mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-27 01:08:33 +00:00
1 line
3.2 MiB
1 line
3.2 MiB
(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{98255:function(e){function t(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=function(){return[]},t.resolve=t,t.id=98255,e.exports=t},82908:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i},e.exports.default=e.exports,e.exports.__esModule=!0},36457:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},78495:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,{Z:function(){return i}})},75905:function(e,t,n){"use strict";function i(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return i}})},3574:function(e,t,n){"use strict";function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return i}})},61680:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return i}})},44829:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(84937),r=n(87660);function o(e,t,n){return(o=(0,r.Z)()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&(0,i.Z)(o,n.prototype),o}).apply(null,arguments)}},11254:function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}n.d(t,{Z:function(){return r}})},20454:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(92749);function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,i.Z)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}},37859:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(12558),r=n(87660),o=n(38852);function a(e){var t=(0,r.Z)();return function(){var n,r=(0,i.Z)(e);if(t){var a=(0,i.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,o.Z)(this,n)}}},91035:function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return i}})},51751:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(12558);function r(e,t,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,i.Z)(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}},12558:function(e,t,n){"use strict";function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,{Z:function(){return i}})},49843:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(84937);function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,i.Z)(e,t)}},87660:function(e,t,n){"use strict";function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}n.d(t,{Z:function(){return i}})},84080:function(e,t,n){"use strict";function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return i}})},20983:function(e,t,n){"use strict";function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return i}})},38852:function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return o}});var r=n(3574);function o(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?(0,r.Z)(e):t}},84937:function(e,t,n){"use strict";function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return i}})},10270:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(75905),r=n(92749),o=n(20983);function a(e,t){return(0,i.Z)(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||(0,r.Z)(e,t)||(0,o.Z)()}},76262:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(75905),r=n(84080),o=n(92749),a=n(20983);function s(e){return(0,i.Z)(e)||(0,r.Z)(e)||(0,o.Z)(e)||(0,a.Z)()}},25801:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(78495),r=n(84080),o=n(92749);function a(e){return function(e){if(Array.isArray(e))return(0,i.Z)(e)}(e)||(0,r.Z)(e)||(0,o.Z)(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.")}()}},92749:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(78495);function r(e,t){if(e){if("string"==typeof e)return(0,i.Z)(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)?(0,i.Z)(e,t):void 0}}},35036:function(e){e.exports=function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}},e.exports.default=e.exports,e.exports.__esModule=!0},13969:function(e){e.exports=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.")},e.exports.default=e.exports,e.exports.__esModule=!0},6326:function(e,t,n){var i=n(36457),r=n(35036),o=n(54850),a=n(13969);e.exports=function(e,t){return i(e)||r(e,t)||o(e,t)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},54850:function(e,t,n){var i=n(82908);e.exports=function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},26552:function(e,t,n){e.exports=n(55590)},61855:function(e,t,n){"use strict";n.d(t,{ZT:function(){return r},mG:function(){return o},Jh:function(){return a},ev:function(){return s}});var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function r(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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})}function a(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function s(e,t){for(var n=0,i=t.length,r=e.length;n<i;n++,r++)e[r]=t[n];return e}},739:function(e,t,n){"use strict";n.d(t,{l3:function(){return s},_j:function(){return o},LC:function(){return a},ZN:function(){return y},jt:function(){return c},pV:function(){return m},F4:function(){return p},IO:function(){return g},vP:function(){return u},SB:function(){return h},oB:function(){return d},eR:function(){return f},X$:function(){return l},ZE:function(){return _},k1:function(){return b}});var i=n(11254),r=n(61680),o=function e(){(0,r.Z)(this,e)},a=function e(){(0,r.Z)(this,e)},s="*";function l(e,t){return{type:7,name:e,definitions:t,options:{}}}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function d(e){return{type:6,styles:e,offset:null}}function h(e,t,n){return{type:0,name:e,styles:t,options:n}}function p(e){return{type:5,steps:e}}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function v(e){Promise.resolve(null).then(e)}var y=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;(0,r.Z)(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(0,i.Z)(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;v(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(){this._started=!1}},{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}(),_=function(){function e(t){var n=this;(0,r.Z)(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,o=0,a=0,s=this.players.length;0==s?v(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==s&&n._onFinish()}),e.onDestroy(function(){++o==s&&n._onDestroy()}),e.onStart(function(){++a==s&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return(0,i.Z)(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}(),b="!"},6517:function(e,t,n){"use strict";n.d(t,{rt:function(){return ne},s1:function(){return N},$s:function(){return E},kH:function(){return X},Em:function(){return D},tE:function(){return V},qV:function(){return j},qm:function(){return te},Kd:function(){return H},X6:function(){return Y},yG:function(){return J}});var i=n(10270),r=n(51751),o=n(12558),a=n(49843),s=n(37859),l=n(61680),c=n(11254),u=n(40098),d=n(37602),h=n(68707),p=n(5051),f=n(43161),m=n(32819),g=n(59371),v=n(57263),y=n(58780),_=n(85639),b=n(48359),w=n(78081),S=n(15427),x=n(96798);function C(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var k="cdk-describedby-message-container",T="cdk-describedby-message",A="cdk-describedby-host",Z=0,M=new Map,O=null,E=function(){var e=function(){function e(t){(0,l.Z)(this,e),this._document=t}return(0,c.Z)(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=P(t,n);"string"!=typeof t?(I(t),M.set(i,{messageElement:t,referenceCount:0})):M.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=P(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=M.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}O&&0===O.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[".concat(A,"]")),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute(A);O&&this._deleteMessagesContainer(),M.clear()}},{key:"_createMessageElement",value:function(e,t){var n=this._document.createElement("div");I(n),n.textContent=e,t&&n.setAttribute("role",t),this._createMessagesContainer(),O.appendChild(n),M.set(P(e,t),{messageElement:n,referenceCount:0})}},{key:"_deleteMessageElement",value:function(e){var t=M.get(e),n=t&&t.messageElement;O&&n&&O.removeChild(n),M.delete(e)}},{key:"_createMessagesContainer",value:function(){if(!O){var e=this._document.getElementById(k);e&&e.parentNode&&e.parentNode.removeChild(e),(O=this._document.createElement("div")).id=k,O.style.visibility="hidden",O.classList.add("cdk-visually-hidden"),this._document.body.appendChild(O)}}},{key:"_deleteMessagesContainer",value:function(){O&&O.parentNode&&(O.parentNode.removeChild(O),O=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(e){var t=C(e,"aria-describedby").filter(function(e){return 0!=e.indexOf(T)});e.setAttribute("aria-describedby",t.join(" "))}},{key:"_addMessageReference",value:function(e,t){var n,i,r,o=M.get(t);i=o.messageElement.id,(r=C(n=e,"aria-describedby")).some(function(e){return e.trim()==i.trim()})||(r.push(i.trim()),n.setAttribute("aria-describedby",r.join(" "))),e.setAttribute(A,""),o.referenceCount++}},{key:"_removeMessageReference",value:function(e,t){var n,i,r,o,a=M.get(t);a.referenceCount--,r=a.messageElement.id,(o=C(n=e,i="aria-describedby").filter(function(e){return e!=r.trim()})).length?n.setAttribute(i,o.join(" ")):n.removeAttribute(i),e.removeAttribute(A)}},{key:"_isElementDescribedByMessage",value:function(e,t){var n=C(e,"aria-describedby"),i=M.get(t),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}},{key:"_canBeDescribed",value:function(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;var n=null==t?"":"".concat(t).trim(),i=e.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}},{key:"_isElementNode",value:function(e){return e.nodeType===this._document.ELEMENT_NODE}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.LFG(u.K0))},e.\u0275prov=d.Yz7({factory:function(){return new e(d.LFG(u.K0))},token:e,providedIn:"root"}),e}();function P(e,t){return"string"==typeof e?"".concat(t||"","/").concat(e):e}function I(e){e.id||(e.id="".concat(T,"-").concat(Z++))}var q=function(){function e(t){var n=this;(0,l.Z)(this,e),this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new h.xQ,this._typeaheadSubscription=p.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new h.xQ,this.change=new h.xQ,t instanceof d.n_E&&t.changes.subscribe(function(e){if(n._activeItem){var t=e.toArray().indexOf(n._activeItem);t>-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return(0,c.Z)(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((0,g.b)(function(t){return e._pressedLetters.push(t)}),(0,v.b)(t),(0,y.h)(function(){return e._pressedLetters.length>0}),(0,_.U)(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i<n.length+1;i++){var r=(e._activeItemIndex+i)%n.length,o=n[r];if(!e._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(r);break}}e._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case m.Mf:return void this.tabOut.next();case m.JH:if(this._vertical&&i){this.setNextItemActive();break}return;case m.LH:if(this._vertical&&i){this.setPreviousItemActive();break}return;case m.SV:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case m.oh:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case m.Sd:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case m.uR:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||(0,m.Vb)(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=m.A&&n<=m.Z||n>=m.xE&&n<=m.aO)&&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),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof d.n_E?this._items.toArray():this._items}}]),e}(),N=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,c.Z)(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),(0,r.Z)((0,o.Z)(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(q),D=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,l.Z)(this,n),(e=t.apply(this,arguments))._origin="program",e}return(0,c.Z)(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){(0,r.Z)((0,o.Z)(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(q),R=function(){var e=function(){function e(t){(0,l.Z)(this,e),this._platform=t}return(0,c.Z)(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(t){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===F(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=F(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||L(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.LFG(S.t4))},e.\u0275prov=d.Yz7({factory:function(){return new e(d.LFG(S.t4))},token:e,providedIn:"root"}),e}();function L(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 F(e){if(!L(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var B=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,l.Z)(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return(0,c.Z)(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(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusInitialElement(e))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusFirstTabbableElement(e))})})}},{key:"focusLastTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusLastTabbableElement(e))})})}},{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(e){var t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(t.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",t),!this._checker.isFocusable(t)){var n=this._getFirstTabbableElement(t);return null==n||n.focus(e),!!n}return t.focus(e),!0}return this.focusFirstTabbableElement(e)}},{key:"focusFirstTabbableElement",value:function(e){var t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}},{key:"focusLastTabbableElement",value:function(e){var t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_getLastTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe((0,b.q)(1)).subscribe(e)}}]),e}(),j=function(){var e=function(){function e(t,n,i){(0,l.Z)(this,e),this._checker=t,this._ngZone=n,this._document=i}return(0,c.Z)(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new B(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.LFG(R),d.LFG(d.R0b),d.LFG(u.K0))},e.\u0275prov=d.Yz7({factory:function(){return new e(d.LFG(R),d.LFG(d.R0b),d.LFG(u.K0))},token:e,providedIn:"root"}),e}();"undefined"!=typeof Element&∈var z=new d.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),U=new d.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),H=function(){var e=function(){function e(t,n,i,r){(0,l.Z)(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return(0,c.Z)(e,[{key:"announce",value:function(e){for(var t,n,i=this,r=this._defaultOptions,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return 1===a.length&&"number"==typeof a[0]?n=a[0]:(t=a[0],n=a[1]),this.clear(),clearTimeout(this._previousTimeout),t||(t=r&&r.politeness?r.politeness:"polite"),null==n&&r&&(n=r.duration),this._liveElement.setAttribute("aria-live",t),this._ngZone.runOutsideAngular(function(){return new Promise(function(t){clearTimeout(i._previousTimeout),i._previousTimeout=setTimeout(function(){i._liveElement.textContent=e,t(),"number"==typeof n&&(i._previousTimeout=setTimeout(function(){return i.clear()},n))},100)})})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),n=this._document.createElement("div"),i=0;i<t.length;i++)t[i].parentNode.removeChild(t[i]);return n.classList.add(e),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),this._document.body.appendChild(n),n}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.LFG(z,8),d.LFG(d.R0b),d.LFG(u.K0),d.LFG(U,8))},e.\u0275prov=d.Yz7({factory:function(){return new e(d.LFG(z,8),d.LFG(d.R0b),d.LFG(u.K0),d.LFG(U,8))},token:e,providedIn:"root"}),e}();function Y(e){return 0===e.buttons}function J(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 G=new d.OlP("cdk-focus-monitor-default-options"),W=(0,S.i$)({passive:!0,capture:!0}),V=function(){var e=function(){function e(t,n,i,r){var o=this;(0,l.Z)(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=Y(e)?"keyboard":"mouse";o._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){J(e)?o._lastTouchTarget||o._setOriginForCurrentEventQueue("keyboard"):(null!=o._touchTimeoutId&&clearTimeout(o._touchTimeoutId),o._lastTouchTarget=Q(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=Q(e),n="focus"===e.type?o._onFocus:o._onBlur,i=t;i;i=i.parentElement)n.call(o,e,i)},this._document=i,this._detectionMode=(null==r?void 0:r.detectionMode)||0}return(0,c.Z)(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,w.fI)(e);if(!this._platform.isBrowser||1!==n.nodeType)return(0,f.of)(null);var i=(0,S.kV)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var o={checkChildren:t,subject:new h.xQ,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=(0,w.fI)(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,o=(0,w.fI)(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(function(e){var n=(0,i.Z)(e,2);return r._originChanged(n[0],t,n[1])}):(this._setOriginForCurrentEventQueue(t),"function"==typeof o.focus&&o.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=Q(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===Q(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,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,W),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,W)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,W),e.addEventListener("mousedown",t._documentMousedownListener,W),e.addEventListener("touchstart",t._documentTouchstartListener,W),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,W),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,W),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,W),i.removeEventListener("mousedown",this._documentMousedownListener,W),i.removeEventListener("touchstart",this._documentTouchstartListener,W),r.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,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.LFG(d.R0b),d.LFG(S.t4),d.LFG(u.K0,8),d.LFG(G,8))},e.\u0275prov=d.Yz7({factory:function(){return new e(d.LFG(d.R0b),d.LFG(S.t4),d.LFG(u.K0,8),d.LFG(G,8))},token:e,providedIn:"root"}),e}();function Q(e){return e.composedPath?e.composedPath()[0]:e.target}var X=function(){var e=function(){function e(t,n){(0,l.Z)(this,e),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new d.vpe}return(0,c.Z)(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)(d.Y36(d.SBq),d.Y36(V))},e.\u0275dir=d.lG2({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),e}(),K="cdk-high-contrast-black-on-white",$="cdk-high-contrast-white-on-black",ee="cdk-high-contrast-active",te=function(){var e=function(){function e(t,n){(0,l.Z)(this,e),this._platform=t,this._document=n}return(0,c.Z)(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove(ee),e.remove(K),e.remove($),this._hasCheckedHighContrastMode=!0;var t=this.getHighContrastMode();1===t?(e.add(ee),e.add(K)):2===t&&(e.add(ee),e.add($))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.LFG(S.t4),d.LFG(u.K0))},e.\u0275prov=d.Yz7({factory:function(){return new e(d.LFG(S.t4),d.LFG(u.K0))},token:e,providedIn:"root"}),e}(),ne=function(){var e=function e(t){(0,l.Z)(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(d.LFG(te))},e.\u0275mod=d.oAB({type:e}),e.\u0275inj=d.cJS({imports:[[S.ud,x.Q8]]}),e}()},8392:function(e,t,n){"use strict";n.d(t,{vT:function(){return c},Is:function(){return l}});var i=n(61680),r=n(11254),o=n(37602),a=n(40098),s=new o.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,o.f3M)(a.K0)}}),l=function(){var e=function(){function e(t){if((0,i.Z)(this,e),this.value="ltr",this.change=new o.vpe,t){var n=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===n||"rtl"===n?n:"ltr"}}return(0,r.Z)(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.LFG(s,8))},e.\u0275prov=o.Yz7({factory:function(){return new e(o.LFG(s,8))},token:e,providedIn:"root"}),e}(),c=function(){var e=function e(){(0,i.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({}),e}()},37429:function(e,t,n){"use strict";n.d(t,{P3:function(){return f},o2:function(){return h},Ov:function(){return v},A8:function(){return y},yy:function(){return m},eX:function(){return g},k:function(){return _},Z9:function(){return p}});var i=n(20454),r=n(11254),o=n(49843),a=n(37859),s=n(61680),l=n(17504),c=n(43161),u=n(68707),d=n(37602),h=function e(){(0,s.Z)(this,e)};function p(e){return e&&"function"==typeof e.connect}var f=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,s.Z)(this,n),(i=t.call(this))._data=e,i}return(0,r.Z)(n,[{key:"connect",value:function(){return(0,l.b)(this._data)?this._data:(0,c.of)(this._data)}},{key:"disconnect",value:function(){}}]),n}(h),m=function(){function e(){(0,s.Z)(this,e)}return(0,r.Z)(e,[{key:"applyChanges",value:function(e,t,n,i,r){e.forEachOperation(function(e,i,o){var a,s;if(null==e.previousIndex){var l=n(e,i,o);a=t.createEmbeddedView(l.templateRef,l.context,l.index),s=1}else null==o?(t.remove(i),s=3):(a=t.get(i),t.move(a,o),s=2);r&&r({context:null==a?void 0:a.context,operation:s,record:e})})}},{key:"detach",value:function(){}}]),e}(),g=function(){function e(){(0,s.Z)(this,e),this.viewCacheSize=20,this._viewCache=[]}return(0,r.Z)(e,[{key:"applyChanges",value:function(e,t,n,i,r){var o=this;e.forEachOperation(function(e,a,s){var l,c;null==e.previousIndex?c=(l=o._insertView(function(){return n(e,a,s)},s,t,i(e)))?1:0:null==s?(o._detachAndCacheView(a,t),c=3):(l=o._moveView(a,s,t,i(e)),c=2),r&&r({context:null==l?void 0:l.context,operation:c,record:e})})}},{key:"detach",value:function(){var e,t=(0,i.Z)(this._viewCache);try{for(t.s();!(e=t.n()).done;)e.value.destroy()}catch(n){t.e(n)}finally{t.f()}this._viewCache=[]}},{key:"_insertView",value:function(e,t,n,i){var r=this._insertViewFromCache(t,n);if(!r){var o=e();return n.createEmbeddedView(o.templateRef,o.context,o.index)}r.context.$implicit=i}},{key:"_detachAndCacheView",value:function(e,t){var n=t.detach(e);this._maybeCacheView(n,t)}},{key:"_moveView",value:function(e,t,n,i){var r=n.get(e);return n.move(r,t),r.context.$implicit=i,r}},{key:"_maybeCacheView",value:function(e,t){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(e);else{var n=t.indexOf(e);-1===n?e.destroy():t.remove(n)}}},{key:"_insertViewFromCache",value:function(e,t){var n=this._viewCache.pop();return n&&t.insert(n,e),n||null}}]),e}(),v=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,s.Z)(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new u.xQ,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return(0,r.Z)(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),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._markSelected(t)}),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._unmarkSelected(t)}),this._emitChangeEvent()}},{key:"toggle",value:function(e){this.isSelected(e)?this.deselect(e):this.select(e)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(e){return this._selection.has(e)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(e){this._multiple&&this.selected&&this._selected.sort(e)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}},{key:"_unmarkSelected",value:function(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}},{key:"_unmarkAll",value:function(){var e=this;this.isEmpty()||this._selection.forEach(function(t){return e._unmarkSelected(t)})}},{key:"_verifyValueAssignment",value:function(e){}}]),e}(),y=function(){var e=function(){function e(){(0,s.Z)(this,e),this._listeners=[]}return(0,r.Z)(e,[{key:"notify",value:function(e,t){var n,r=(0,i.Z)(this._listeners);try{for(r.s();!(n=r.n()).done;)(0,n.value)(e,t)}catch(o){r.e(o)}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=d.Yz7({factory:function(){return new e},token:e,providedIn:"root"}),e}(),_=new d.OlP("_ViewRepeater")},32819:function(e,t,n){"use strict";n.d(t,{A:function(){return v},ZH:function(){return i},yY:function(){return f},JH:function(){return p},uR:function(){return l},K5:function(){return o},hY:function(){return a},Sd:function(){return c},oh:function(){return u},aO:function(){return g},SV:function(){return h},L_:function(){return s},Mf:function(){return r},LH:function(){return d},Z:function(){return y},xE:function(){return m},Vb:function(){return _}});var i=8,r=9,o=13,a=27,s=32,l=35,c=36,u=37,d=38,h=39,p=40,f=46,m=48,g=57,v=65,y=90;function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length?n.some(function(t){return e[t]}):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}},96798:function(e,t,n){"use strict";n.d(t,{wD:function(){return h},yq:function(){return d},Q8:function(){return p}});var i=n(61680),r=n(11254),o=n(78081),a=n(37602),s=n(89797),l=n(68707),c=n(57263),u=function(){var e=function(){function e(){(0,i.Z)(this,e)}return(0,r.Z)(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=a.Yz7({factory:function(){return new e},token:e,providedIn:"root"}),e}(),d=function(){var e=function(){function e(t){(0,i.Z)(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return(0,r.Z)(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=(0,o.fI)(e);return new s.y(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new l.xQ,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(u))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(u))},token:e,providedIn:"root"}),e}(),h=function(){var e=function(){function e(t,n,r){(0,i.Z)(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=r,this.event=new a.vpe,this._disabled=!1,this._currentSubscription=null}return(0,r.Z)(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,o.Ig)(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=(0,o.su)(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((0,c.b)(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)(a.Y36(d),a.Y36(a.SBq),a.Y36(a.R0b))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),p=function(){var e=function e(){(0,i.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[u]}),e}()},93889:function(e,t,n){"use strict";n.d(t,{pI:function(){return ie},xu:function(){return ne},aV:function(){return $},X_:function(){return I},Xj:function(){return B},U8:function(){return oe}});var i=n(10270),r=n(20454),o=n(51751),a=n(12558),s=n(49843),l=n(37859),c=n(61680),u=n(11254),d=n(28722),h=n(37602),p=n(15427),f=n(8392),m=n(40098),g=n(78081),v=n(80785),y=n(68707),_=n(5051),b=n(55371),w=n(48359),S=n(44213),x=n(49196),C=n(32819),k=(0,p.Mq)(),T=function(){function e(t,n){(0,c.Z)(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return(0,u.Z)(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=(0,g.HM)(-this._previousScrollPosition.left),e.style.top=(0,g.HM)(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),k&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),k&&(t.scrollBehavior=i,n.scrollBehavior=r)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}(),A=function(){function e(t,n,i,r){var o=this;(0,c.Z)(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return(0,u.Z)(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}(),Z=function(){function e(){(0,c.Z)(this,e)}return(0,u.Z)(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function M(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 O(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 E=function(){function e(t,n,i,r){(0,c.Z)(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return(0,u.Z)(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;M(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),P=function(){var e=function e(t,n,i,r){var o=this;(0,c.Z)(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new Z},this.close=function(e){return new A(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new T(o._viewportRuler,o._document)},this.reposition=function(e){return new E(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r};return e.\u0275fac=function(t){return new(t||e)(h.LFG(d.mF),h.LFG(d.rL),h.LFG(h.R0b),h.LFG(m.K0))},e.\u0275prov=h.Yz7({factory:function(){return new e(h.LFG(d.mF),h.LFG(d.rL),h.LFG(h.R0b),h.LFG(m.K0))},token:e,providedIn:"root"}),e}(),I=function e(t){if((0,c.Z)(this,e),this.scrollStrategy=new Z,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];void 0!==t[r]&&(this[r]=t[r])}},q=function e(t,n,i,r,o){(0,c.Z)(this,e),this.offsetX=i,this.offsetY=r,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY},N=function e(t,n){(0,c.Z)(this,e),this.connectionPair=t,this.scrollableViewProperties=n},D=function(){var e=function(){function e(t){(0,c.Z)(this,e),this._attachedOverlays=[],this._document=t}return(0,u.Z)(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)(h.LFG(m.K0))},e.\u0275prov=h.Yz7({factory:function(){return new e(h.LFG(m.K0))},token:e,providedIn:"root"}),e}(),R=function(){var e=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e){var i;return(0,c.Z)(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return(0,u.Z)(n,[{key:"add",value:function(e){(0,o.Z)((0,a.Z)(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}(D);return e.\u0275fac=function(t){return new(t||e)(h.LFG(m.K0))},e.\u0275prov=h.Yz7({factory:function(){return new e(h.LFG(m.K0))},token:e,providedIn:"root"}),e}(),L=function(){var e=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i){var r;return(0,c.Z)(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},r}return(0,u.Z)(n,[{key:"add",value:function(e){if((0,o.Z)((0,a.Z)(n.prototype),"add",this).call(this,e),!this._isAttached){var t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(h.LFG(m.K0),h.LFG(p.t4))},e.\u0275prov=h.Yz7({factory:function(){return new e(h.LFG(m.K0),h.LFG(p.t4))},token:e,providedIn:"root"}),e}(),F=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),B=function(){var e=function(){function e(t,n){(0,c.Z)(this,e),this._platform=n,this._document=t}return(0,u.Z)(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||F)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 i=this._document.createElement("div");i.classList.add(e),F?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.LFG(m.K0),h.LFG(p.t4))},e.\u0275prov=h.Yz7({factory:function(){return new e(h.LFG(m.K0),h.LFG(p.t4))},token:e,providedIn:"root"}),e}(),j=function(){function e(t,n,i,r,o,a,s,l,u){var d=this;(0,c.Z)(this,e),this._portalOutlet=t,this._host=n,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=u,this._backdropElement=null,this._backdropClick=new y.xQ,this._attachments=new y.xQ,this._detachments=new y.xQ,this._locationChanges=_.w.EMPTY,this._backdropClickHandler=function(e){return d._backdropClick.next(e)},this._keydownEvents=new y.xQ,this._outsidePointerEvents=new y.xQ,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}return(0,u.Z)(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((0,w.q)(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=(0,g.HM)(this._config.width),e.height=(0,g.HM)(this._config.height),e.minWidth=(0,g.HM)(this._config.minWidth),e.minHeight=(0,g.HM)(this._config.minHeight),e.maxWidth=(0,g.HM)(this._config.maxWidth),e.maxHeight=(0,g.HM)(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,i=function i(){t&&(t.removeEventListener("click",e._backdropClickHandler),t.removeEventListener("transitionend",i),t.parentNode&&t.parentNode.removeChild(t)),e._backdropElement==t&&(e._backdropElement=null),e._config.backdropClass&&e._toggleClasses(t,e._config.backdropClass,!1),clearTimeout(n)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",n=this._ngZone.runOutsideAngular(function(){return setTimeout(i,500)})}}},{key:"_toggleClasses",value:function(e,t,n){var i=e.classList;(0,g.Eq)(t).forEach(function(e){e&&(n?i.add(e):i.remove(e))})}},{key:"_detachContentWhenStable",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){var t=e._ngZone.onStable.pipe((0,S.R)((0,b.T)(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}(),z="cdk-overlay-connected-position-bounding-box",U=/([A-Za-z%]+)$/,H=function(){function e(t,n,i,r,o){(0,c.Z)(this,e),this._viewportRuler=n,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new y.xQ,this._resizeSubscription=_.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}return(0,u.Z)(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){var t=this;this._validatePositions(),e.hostElement.classList.add(z),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){t._isInitialRender=!0,t.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var e,t,n=this._originRect,i=this._overlayRect,o=this._viewportRect,a=[],s=(0,r.Z)(this._preferredPositions);try{for(s.s();!(t=s.n()).done;){var l=t.value,c=this._getOriginPoint(n,l),u=this._getOverlayPoint(c,i,l),d=this._getOverlayFit(u,i,o,l);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,c);this._canFitWithFlexibleDimensions(d,u,o)?a.push({position:l,origin:c,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(c,l)}):(!e||e.overlayFit.visibleArea<d.visibleArea)&&(e={overlayFit:d,overlayPoint:u,originPoint:c,position:l,overlayRect:i})}}catch(y){s.e(y)}finally{s.f()}if(a.length){var h,p=null,f=-1,m=(0,r.Z)(a);try{for(m.s();!(h=m.n()).done;){var g=h.value,v=g.boundingBoxRect.width*g.boundingBoxRect.height*(g.position.weight||1);v>f&&(f=v,p=g)}}catch(y){m.e(y)}finally{m.f()}return this._isPushed=!1,void this._applyPosition(p.position,p.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&&Y(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(z),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,{x:e.x+i,y:e.y+("center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height)}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=G(t),o=e.x,a=e.y,s=this._getOffset(i,"x"),l=this._getOffset(i,"y");s&&(o+=s),l&&(a+=l);var c=0-a,u=a+r.height-n.height,d=this._subtractOverflows(r.width,0-o,o+r.width-n.width),h=this._subtractOverflows(r.height,c,u),p=d*h;return{visibleArea:p,isCompletelyWithinViewport:r.width*r.height===p,fitsInViewportVertically:h===r.height,fitsInViewportHorizontally:d==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=J(this._overlayRef.getConfig().minHeight),a=J(this._overlayRef.getConfig().minWidth);return(e.fitsInViewportVertically||null!=o&&o<=i)&&(e.fitsInViewportHorizontally||null!=a&&a<=r)}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=G(t),a=this._viewportRect,s=Math.max(e.x+o.width-a.width,0),l=Math.max(e.y+o.height-a.height,0),c=Math.max(a.top-n.top-e.y,0),u=Math.max(a.left-n.left-e.x,0);return this._previousPushAmount={x:i=o.width<=a.width?u||-s:e.x<this._viewportMargin?a.left-n.left-e.x:0,y:r=o.height<=a.height?c||-l:e.y<this._viewportMargin?a.top-n.top-e.y:0},{x:e.x+i,y:e.y+r}}},{key:"_applyPosition",value:function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){var n=this._getScrollVisibility(),i=new N(e,n);this._positionChanges.next(i)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var r=0;r<n.length;r++)n[r].style.transformOrigin="".concat(t," ").concat(i)}}},{key:"_calculateBoundingBoxRect",value:function(e,t){var n,i,r,o,a,s,l=this._viewportRect,c=this._isRtl();if("top"===t.overlayY)n=l.height-(i=e.y)+this._viewportMargin;else if("bottom"===t.overlayY)n=l.height-(r=l.height-e.y+2*this._viewportMargin)+this._viewportMargin;else{var u=Math.min(l.bottom-e.y+l.top,e.y),d=this._lastBoundingBoxSize.height;i=e.y-u,(n=2*u)>d&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-d/2)}if("end"===t.overlayX&&!c||"start"===t.overlayX&&c)s=l.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!c||"end"===t.overlayX&&c)a=e.x,o=l.right-e.x;else{var h=Math.min(l.right-e.x+l.left,e.x),p=this._lastBoundingBoxSize.width;a=e.x-h,(o=2*h)>p&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-p/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=(0,g.HM)(n.height),i.top=(0,g.HM)(n.top),i.bottom=(0,g.HM)(n.bottom),i.width=(0,g.HM)(n.width),i.left=(0,g.HM)(n.left),i.right=(0,g.HM)(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=(0,g.HM)(r)),o&&(i.maxWidth=(0,g.HM)(o))}this._lastBoundingBoxSize=n,Y(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){Y(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Y(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();Y(n,this._getExactOverlayY(t,e,a)),Y(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),c&&(s+="translateY(".concat(c,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=(0,g.HM)(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=(0,g.HM)(o.maxWidth):r&&(n.maxWidth="")),Y(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(r.y+this._overlayRect.height),"px"):i.top=(0,g.HM)(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right="".concat(this._document.documentElement.clientWidth-(r.x+this._overlayRect.width),"px"):i.left=(0,g.HM)(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:O(e,n),isOriginOutsideView:M(e,n),isOverlayClipped:O(t,n),isOverlayOutsideView:M(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce(function(e,t){return e-Math.max(t,0)},e)}},{key:"_getNarrowedViewportRect",value:function(){var e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(e){var t=this;this._pane&&(0,g.Eq)(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 h.SBq)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 Y(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function J(e){if("number"!=typeof e&&null!=e){var t=e.split(U),n=(0,i.Z)(t,2),r=n[1];return r&&"px"!==r?null:parseFloat(n[0])}return e||null}function G(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 W=function(){function e(t,n,i,r,o,a,s){(0,c.Z)(this,e),this._preferredPositions=[],this._positionStrategy=new H(i,r,o,a,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,n),this.onPositionChange=this._positionStrategy.positionChanges}return(0,u.Z)(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,i){var r=new q(e,t,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}},{key:"withOffsetX",value:function(e){return this._positionStrategy.withDefaultOffsetX(e),this}},{key:"withOffsetY",value:function(e){return this._positionStrategy.withDefaultOffsetY(e),this}},{key:"withLockedPosition",value:function(e){return this._positionStrategy.withLockedPosition(e),this}},{key:"withPositions",value:function(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(e){return this._positionStrategy.setOrigin(e),this}}]),e}(),V="cdk-global-overlay-wrapper",Q=function(){function e(){(0,c.Z)(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return(0,u.Z)(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(V),this._isDisposed=!1}},{key:"top",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),l=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=l?"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=l?"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(V),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),X=function(){var e=function(){function e(t,n,i,r){(0,c.Z)(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return(0,u.Z)(e,[{key:"global",value:function(){return new Q}},{key:"connectedTo",value:function(e,t,n){return new W(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new H(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.LFG(d.rL),h.LFG(m.K0),h.LFG(p.t4),h.LFG(B))},e.\u0275prov=h.Yz7({factory:function(){return new e(h.LFG(d.rL),h.LFG(m.K0),h.LFG(p.t4),h.LFG(B))},token:e,providedIn:"root"}),e}(),K=0,$=function(){var e=function(){function e(t,n,i,r,o,a,s,l,u,d,h){(0,c.Z)(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=l,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}return(0,u.Z)(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new I(e);return r.direction=r.direction||this._directionality.value,new j(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-".concat(K++),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(h.z2F)),new v.u0(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.LFG(P),h.LFG(B),h.LFG(h._Vd),h.LFG(X),h.LFG(R),h.LFG(h.zs3),h.LFG(h.R0b),h.LFG(m.K0),h.LFG(f.Is),h.LFG(m.Ye),h.LFG(L))},e.\u0275prov=h.Yz7({token:e,factory:e.\u0275fac}),e}(),ee=[{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"}],te=new h.OlP("cdk-connected-overlay-scroll-strategy"),ne=function(){var e=function e(t){(0,c.Z)(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(h.Y36(h.SBq))},e.\u0275dir=h.lG2({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),ie=function(){var e=function(){function e(t,n,i,r,o){(0,c.Z)(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.EMPTY,this._attachSubscription=_.w.EMPTY,this._detachSubscription=_.w.EMPTY,this._positionSubscription=_.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new h.vpe,this.positionChange=new h.vpe,this.attach=new h.vpe,this.detach=new h.vpe,this.overlayKeydown=new h.vpe,this.overlayOutsideClick=new h.vpe,this._templatePortal=new v.UE(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return(0,u.Z)(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=(0,g.Ig)(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=(0,g.Ig)(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=(0,g.Ig)(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=(0,g.Ig)(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=(0,g.Ig)(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=ee);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!==C.hY||e.disableClose||(0,C.Vb)(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 I({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((0,x.o)(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)(h.Y36($),h.Y36(h.Rgc),h.Y36(h.s_b),h.Y36(te),h.Y36(f.Is,8))},e.\u0275dir=h.lG2({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:[h.TTD]}),e}(),re={provide:te,deps:[$],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},oe=function(){var e=function e(){(0,c.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.oAB({type:e}),e.\u0275inj=h.cJS({providers:[$,re],imports:[[f.vT,v.eL,d.Cl],d.Cl]}),e}()},15427:function(e,t,n){"use strict";n.d(t,{t4:function(){return h},ud:function(){return p},ht:function(){return b},kV:function(){return _},_i:function(){return y},qK:function(){return m},i$:function(){return g},Mq:function(){return v}});var i,r=n(61680),o=n(37602),a=n(40098);try{i="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(w){i=!1}var s,l,c,u,d,h=function(){var e=function e(t){(0,r.Z)(this,e),this._platformId=t,this.isBrowser=this._platformId?(0,a.NF)(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&&!i)&&"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)(o.LFG(o.Lbi))},e.\u0275prov=o.Yz7({factory:function(){return new e(o.LFG(o.Lbi))},token:e,providedIn:"root"}),e}(),p=function(){var e=function e(){(0,r.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({}),e}(),f=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function m(){if(s)return s;if("object"!=typeof document||!document)return s=new Set(f);var e=document.createElement("input");return s=new Set(f.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function g(e){return function(){if(null==l&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return l=!0}}))}finally{l=l||!1}return l}()?e:!!e.capture}function v(){if(null==u){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return u=!1;if("scrollBehavior"in document.documentElement.style)u=!0;else{var e=Element.prototype.scrollTo;u=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return u}function y(){if("object"!=typeof document||!document)return 0;if(null==c){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),c=0,0===e.scrollLeft&&(e.scrollLeft=1,c=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return c}function _(e){if(function(){if(null==d){var e="undefined"!=typeof document?document.head:null;d=!(!e||!e.createShadowRoot&&!e.attachShadow)}return d}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function b(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}},80785:function(e,t,n){"use strict";n.d(t,{en:function(){return g},ig:function(){return y},Pl:function(){return _},C5:function(){return p},u0:function(){return v},eL:function(){return b},UE:function(){return f}});var i=n(3574),r=n(51751),o=n(12558),a=n(49843),s=n(37859),l=n(61680),c=n(11254),u=n(37602),d=n(40098),h=function(){function e(){(0,l.Z)(this,e)}return(0,c.Z)(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}(),p=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r,o){var a;return(0,l.Z)(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(h),f=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var o;return(0,l.Z)(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return(0,c.Z)(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,(0,r.Z)((0,o.Z)(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,(0,r.Z)((0,o.Z)(n.prototype),"detach",this).call(this)}}]),n}(h),m=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,l.Z)(this,n),(i=t.call(this)).element=e instanceof u.SBq?e.nativeElement:e,i}return n}(h),g=function(){function e(){(0,l.Z)(this,e),this._isDisposed=!1,this.attachDomPortal=null}return(0,c.Z)(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof p?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof f?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof m?(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}(),v=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,a,s,c,u){var d,h;return(0,l.Z)(this,n),(h=t.call(this)).outletElement=e,h._componentFactoryResolver=a,h._appRef=s,h._defaultInjector=c,h.attachDomPortal=function(e){var t=e.element,a=h._document.createComment("dom-portal");t.parentNode.insertBefore(a,t),h.outletElement.appendChild(t),h._attachedPortal=e,(0,r.Z)((d=(0,i.Z)(h),(0,o.Z)(n.prototype)),"setDisposeFn",d).call(d,function(){a.parentNode&&a.parentNode.replaceChild(t,a)})},h._document=u,h}return(0,c.Z)(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),this._attachedPortal=e,i}},{key:"dispose",value:function(){(0,r.Z)((0,o.Z)(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}(g),y=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){return(0,l.Z)(this,n),t.call(this,e,i)}return n}(f);return e.\u0275fac=function(t){return new(t||e)(u.Y36(u.Rgc),u.Y36(u.s_b))},e.\u0275dir=u.lG2({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[u.qOj]}),e}(),_=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,a,s){var c,d;return(0,l.Z)(this,n),(d=t.call(this))._componentFactoryResolver=e,d._viewContainerRef=a,d._isInitialized=!1,d.attached=new u.vpe,d.attachDomPortal=function(e){var t=e.element,a=d._document.createComment("dom-portal");e.setAttachedHost((0,i.Z)(d)),t.parentNode.insertBefore(a,t),d._getRootNode().appendChild(t),d._attachedPortal=e,(0,r.Z)((c=(0,i.Z)(d),(0,o.Z)(n.prototype)),"setDisposeFn",c).call(c,function(){a.parentNode&&a.parentNode.replaceChild(t,a)})},d._document=s,d}return(0,c.Z)(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&(0,r.Z)((0,o.Z)(n.prototype),"detach",this).call(this),e&&(0,r.Z)((0,o.Z)(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(){(0,r.Z)((0,o.Z)(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),(0,r.Z)((0,o.Z)(n.prototype),"setDisposeFn",this).call(this,function(){return a.destroy()}),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return(0,r.Z)((0,o.Z)(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(g);return e.\u0275fac=function(t){return new(t||e)(u.Y36(u._Vd),u.Y36(u.s_b),u.Y36(d.K0))},e.\u0275dir=u.lG2({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[u.qOj]}),e}(),b=function(){var e=function e(){(0,l.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=u.oAB({type:e}),e.\u0275inj=u.cJS({}),e}()},28722:function(e,t,n){"use strict";n.d(t,{PQ:function(){return y},ZD:function(){return b},mF:function(){return v},Cl:function(){return w},rL:function(){return _}}),n(10270),n(20454),n(51751),n(12558),n(49843),n(37859);var i=n(61680),r=n(11254),o=n(78081),a=n(37602),s=n(68707),l=n(43161),c=n(89797),u=n(33090),d=(n(58172),n(8285),n(5051),n(17504),n(76161),n(54562)),h=n(58780),p=n(44213),f=(n(57682),n(4363),n(34487),n(61106),n(15427)),m=n(40098),g=n(8392);n(37429);var v=function(){var e=function(){function e(t,n,r){(0,i.Z)(this,e),this._ngZone=t,this._platform=n,this._scrolled=new s.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}return(0,r.Z)(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.y(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe((0,d.e)(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):(0,l.of)()}},{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((0,h.h)(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=(0,o.fI)(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var t=e._getWindow();return(0,u.R)(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)(a.LFG(a.R0b),a.LFG(f.t4),a.LFG(m.K0,8))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(a.R0b),a.LFG(f.t4),a.LFG(m.K0,8))},token:e,providedIn:"root"}),e}(),y=function(){var e=function(){function e(t,n,r,o){var a=this;(0,i.Z)(this,e),this.elementRef=t,this.scrollDispatcher=n,this.ngZone=r,this.dir=o,this._destroyed=new s.xQ,this._elementScrolled=new c.y(function(e){return a.ngZone.runOutsideAngular(function(){return(0,u.R)(a.elementRef.nativeElement,"scroll").pipe((0,p.R)(a._destroyed)).subscribe(e)})})}return(0,r.Z)(e,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(e){var t=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=n?e.end:e.start),null==e.right&&(e.right=n?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),n&&0!=(0,f._i)()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==(0,f._i)()?e.left=e.right:1==(0,f._i)()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}},{key:"_applyScrollToOptions",value:function(e){var t=this.elementRef.nativeElement;(0,f.Mq)()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}},{key:"measureScrollOffset",value:function(e){var t="left",n="right",i=this.elementRef.nativeElement;if("top"==e)return i.scrollTop;if("bottom"==e)return i.scrollHeight-i.clientHeight-i.scrollTop;var r=this.dir&&"rtl"==this.dir.value;return"start"==e?e=r?n:t:"end"==e&&(e=r?t:n),r&&2==(0,f._i)()?e==t?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:r&&1==(0,f._i)()?e==t?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:e==t?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(v),a.Y36(a.R0b),a.Y36(g.Is,8))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),e}(),_=function(){var e=function(){function e(t,n,r){var o=this;(0,i.Z)(this,e),this._platform=t,this._change=new s.xQ,this._changeListener=function(e){o._change.next(e)},this._document=r,n.runOutsideAngular(function(){if(t.isBrowser){var e=o._getWindow();e.addEventListener("resize",o._changeListener),e.addEventListener("orientationchange",o._changeListener)}o.change().subscribe(function(){return o._updateViewportSize()})})}return(0,r.Z)(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe((0,d.e)(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)(a.LFG(f.t4),a.LFG(a.R0b),a.LFG(m.K0,8))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(f.t4),a.LFG(a.R0b),a.LFG(m.K0,8))},token:e,providedIn:"root"}),e}(),b=function(){var e=function e(){(0,i.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),w=function(){var e=function e(){(0,i.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[g.vT,f.ud,b],g.vT,b]}),e}()},78081:function(e,t,n){"use strict";n.d(t,{t6:function(){return a},Eq:function(){return s},Ig:function(){return r},HM:function(){return l},fI:function(){return c},su:function(){return o}});var i=n(37602);function r(e){return null!=e&&"false"!=="".concat(e)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return a(e)?Number(e):t}function a(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function s(e){return Array.isArray(e)?e:[e]}function l(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function c(e){return e instanceof i.SBq?e.nativeElement:e}},40098:function(e,t,n){"use strict";n.d(t,{mr:function(){return T},Ov:function(){return $},ez:function(){return ee},K0:function(){return f},Do:function(){return Z},V_:function(){return v},Ye:function(){return M},S$:function(){return C},mk:function(){return R},sg:function(){return F},O5:function(){return j},PC:function(){return W},RF:function(){return Y},n9:function(){return J},ED:function(){return G},tP:function(){return V},b0:function(){return A},lw:function(){return m},EM:function(){return ie},JF:function(){return ae},NF:function(){return ne},w_:function(){return p},bD:function(){return te},q:function(){return d},Mx:function(){return D},HT:function(){return h}});var i=n(20454),r=n(10270),o=n(49843),a=n(37859),s=n(11254),l=n(61680),c=n(37602),u=null;function d(){return u}function h(e){u||(u=e)}var p=function e(){(0,l.Z)(this,e)},f=new c.OlP("DocumentToken"),m=function(){var e=function(){function e(){(0,l.Z)(this,e)}return(0,s.Z)(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,c.Yz7)({factory:g,token:e,providedIn:"platform"}),e}();function g(){return(0,c.LFG)(y)}var v=new c.OlP("Location Initialized"),y=function(){var e=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,l.Z)(this,n),(i=t.call(this))._doc=e,i._init(),i}return(0,s.Z)(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return d().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=d().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=d().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{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){_()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){_()?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:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}]),n}(m);return e.\u0275fac=function(t){return new(t||e)(c.LFG(f))},e.\u0275prov=(0,c.Yz7)({factory:b,token:e,providedIn:"platform"}),e}();function _(){return!!window.history.pushState}function b(){return new y((0,c.LFG)(f))}function w(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 S(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 x(e){return e&&"?"!==e[0]?"?"+e:e}var C=function(){var e=function(){function e(){(0,l.Z)(this,e)}return(0,s.Z)(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,c.Yz7)({factory:k,token:e,providedIn:"root"}),e}();function k(e){var t=(0,c.LFG)(f).location;return new A((0,c.LFG)(m),t&&t.origin||"")}var T=new c.OlP("appBaseHref"),A=function(){var e=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var r;if((0,l.Z)(this,n),(r=t.call(this))._platformLocation=e,r._removeListenerFns=[],null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,r}return(0,s.Z)(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return w(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+x(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+x(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+x(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(C);return e.\u0275fac=function(t){return new(t||e)(c.LFG(m),c.LFG(T,8))},e.\u0275prov=c.Yz7({token:e,factory:e.\u0275fac}),e}(),Z=function(){var e=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",r._removeListenerFns=[],null!=i&&(r._baseHref=i),r}return(0,s.Z)(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(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=w(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+x(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+x(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(C);return e.\u0275fac=function(t){return new(t||e)(c.LFG(m),c.LFG(T,8))},e.\u0275prov=c.Yz7({token:e,factory:e.\u0275fac}),e}(),M=function(){var e=function(){function e(t,n){var i=this;(0,l.Z)(this,e),this._subject=new c.vpe,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=S(E(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return(0,s.Z)(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+x(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,E(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+x(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+x(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{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)(c.LFG(C),c.LFG(m))},e.normalizeQueryParams=x,e.joinWithSlash=w,e.stripTrailingSlash=S,e.\u0275prov=(0,c.Yz7)({factory:O,token:e,providedIn:"root"}),e}();function O(){return new M((0,c.LFG)(C),(0,c.LFG)(m))}function E(e){return e.replace(/\/index.html$/,"")}var P=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}({}),I=c.kL8,q=function e(){(0,l.Z)(this,e)},N=function(){var e=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,l.Z)(this,n),(i=t.call(this)).locale=e,i}return(0,s.Z)(n,[{key:"getPluralCategory",value:function(e,t){switch(I(t||this.locale)(e)){case P.Zero:return"zero";case P.One:return"one";case P.Two:return"two";case P.Few:return"few";case P.Many:return"many";default:return"other"}}}]),n}(q);return e.\u0275fac=function(t){return new(t||e)(c.LFG(c.soG))},e.\u0275prov=c.Yz7({token:e,factory:e.\u0275fac}),e}();function D(e,t){t=encodeURIComponent(t);var n,o=(0,i.Z)(e.split(";"));try{for(o.s();!(n=o.n()).done;){var a=n.value,s=a.indexOf("="),l=-1==s?[a,""]:[a.slice(0,s),a.slice(s+1)],c=(0,r.Z)(l,2),u=c[1];if(c[0].trim()===t)return decodeURIComponent(u)}}catch(d){o.e(d)}finally{o.f()}return null}var R=function(){var e=function(){function e(t,n,i,r){(0,l.Z)(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return(0,s.Z)(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&&((0,c.sIi)(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((0,c.AaK)(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)(c.Y36(c.ZZ4),c.Y36(c.aQg),c.Y36(c.SBq),c.Y36(c.Qsj))},e.\u0275dir=c.lG2({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),L=function(){function e(t,n,i,r){(0,l.Z)(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return(0,s.Z)(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}(),F=function(){var e=function(){function e(t,n,i){(0,l.Z)(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return(0,s.Z)(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(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new L(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new B(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var l=new B(e,s);n.push(l)}});for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var r=0,o=this._viewContainer.length;r<o;r++){var a=this._viewContainer.get(r);a.context.index=r,a.context.count=o,a.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(c.ZZ4))},e.\u0275dir=c.lG2({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e}(),B=function e(t,n){(0,l.Z)(this,e),this.record=t,this.view=n},j=function(){var e=function(){function e(t,n){(0,l.Z)(this,e),this._viewContainer=t,this._context=new z,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return(0,s.Z)(e,[{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){U("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){U("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)(c.Y36(c.s_b),c.Y36(c.Rgc))},e.\u0275dir=c.lG2({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e}(),z=function e(){(0,l.Z)(this,e),this.$implicit=null,this.ngIf=null};function U(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat((0,c.AaK)(t),"'."))}var H=function(){function e(t,n){(0,l.Z)(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}return(0,s.Z)(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}(),Y=function(){var e=function(){function e(){(0,l.Z)(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return(0,s.Z)(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=c.lG2({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e}(),J=function(){var e=function(){function e(t,n,i){(0,l.Z)(this,e),this.ngSwitch=i,i._addCase(),this._view=new H(t,n)}return(0,s.Z)(e,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(Y,9))},e.\u0275dir=c.lG2({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e}(),G=function(){var e=function e(t,n,i){(0,l.Z)(this,e),i._addDefault(new H(t,n))};return e.\u0275fac=function(t){return new(t||e)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(Y,9))},e.\u0275dir=c.lG2({type:e,selectors:[["","ngSwitchDefault",""]]}),e}(),W=function(){var e=function(){function e(t,n,i){(0,l.Z)(this,e),this._ngEl=t,this._differs=n,this._renderer=i,this._ngStyle=null,this._differ=null}return(0,s.Z)(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=e.split("."),i=(0,r.Z)(n,2),o=i[0],a=i[1];null!=(t=null!=t&&a?"".concat(t).concat(a):t)?this._renderer.setStyle(this._ngEl.nativeElement,o,t):this._renderer.removeStyle(this._ngEl.nativeElement,o)}},{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)(c.Y36(c.SBq),c.Y36(c.aQg),c.Y36(c.Qsj))},e.\u0275dir=c.lG2({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e}(),V=function(){var e=function(){function e(t){(0,l.Z)(this,e),this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return(0,s.Z)(e,[{key:"ngOnChanges",value:function(e){if(e.ngTemplateOutlet){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&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(c.Y36(c.s_b))},e.\u0275dir=c.lG2({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[c.TTD]}),e}(),Q=function(){function e(){(0,l.Z)(this,e)}return(0,s.Z)(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}(),X=new(function(){function e(){(0,l.Z)(this,e)}return(0,s.Z)(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}()),K=new Q,$=function(){var e=function(){function e(t){(0,l.Z)(this,e),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return(0,s.Z)(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((0,c.QGY)(t))return X;if((0,c.F4k)(t))return K;throw n=e,Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat((0,c.AaK)(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)(c.Y36(c.sBO,16))},e.\u0275pipe=c.Yjl({name:"async",type:e,pure:!1}),e}(),ee=function(){var e=function e(){(0,l.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.oAB({type:e}),e.\u0275inj=c.cJS({providers:[{provide:q,useClass:N}]}),e}(),te="browser";function ne(e){return e===te}var ie=function(){var e=function e(){(0,l.Z)(this,e)};return e.\u0275prov=(0,c.Yz7)({token:e,providedIn:"root",factory:function(){return new re((0,c.LFG)(f),window)}}),e}(),re=function(){function e(t,n){(0,l.Z)(this,e),this.document=t,this.window=n,this.offset=function(){return[0,0]}}return(0,s.Z)(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){if(this.supportsScrolling()){var t=function(e,t){var n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow))for(var i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;r;){var o=r.shadowRoot;if(o){var a=o.getElementById(t)||o.querySelector('[name="'.concat(t,'"]'));if(a)return a}r=i.nextNode()}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=oe(this.window.history)||oe(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 oe(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var ae=function e(){(0,l.Z)(this,e)}},75472:function(e,t,n){"use strict";n.d(t,{eN:function(){return N},JF:function(){return W},UA:function(){return I}});var i=n(49843),r=n(37859),o=n(10270),a=n(25801),s=n(11254),l=n(61680),c=n(40098),u=n(37602),d=n(43161),h=n(89797),p=n(38575),f=n(58780),m=n(85639),g=function e(){(0,l.Z)(this,e)},v=function e(){(0,l.Z)(this,e)},y=function(){function e(t){var n=this;(0,l.Z)(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return(0,s.Z)(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,(0,a.Z)(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),_=function(){function e(){(0,l.Z)(this,e)}return(0,s.Z)(e,[{key:"encodeKey",value:function(e){return w(e)}},{key:"encodeValue",value:function(e){return w(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function b(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),r=-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],a=(0,o.Z)(r,2),s=a[0],l=a[1],c=n.get(s)||[];c.push(l),n.set(s,c)}),n}function w(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function S(e){return"".concat(e)}var x=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,l.Z)(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new _,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=b(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return(0,s.Z)(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 i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,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(S(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(S(t.value));-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),C=function(){function e(){(0,l.Z)(this,e),this.map=new Map}return(0,s.Z)(e,[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function k(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function T(e){return"undefined"!=typeof Blob&&e instanceof Blob}function A(e){return"undefined"!=typeof FormData&&e instanceof FormData}var Z=function(){function e(t,n,i,r){var o;if((0,l.Z)(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new y),this.context||(this.context=new C),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s<n.length-1?"&":"")+a}}else this.params=new x,this.urlWithParams=n}return(0,s.Z)(e,[{key:"serializeBody",value:function(){return null===this.body?null:k(this.body)||T(this.body)||A(this.body)||"string"==typeof this.body?this.body:this.body instanceof x?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||A(this.body)?null:T(this.body)?this.body.type||null:k(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof x?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}},{key:"clone",value:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,l=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,c=n.headers||this.headers,u=n.params||this.params,d=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},c)),n.setParams&&(u=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},u)),new e(i,r,a,{params:u,headers:c,context:d,reportProgress:l,responseType:o,withCredentials:s})}}]),e}(),M=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}({}),O=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";(0,l.Z)(this,e),this.headers=t.headers||new y,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},E=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.Z)(this,n),(e=t.call(this,i)).type=M.ResponseHeader,e}return(0,s.Z)(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}(O),P=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.Z)(this,n),(e=t.call(this,i)).type=M.Response,e.body=void 0!==i.body?i.body:null,e}return(0,s.Z)(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}(O),I=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e){var i;return(0,l.Z)(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(O);function q(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var N=function(){var e=function(){function e(t){(0,l.Z)(this,e),this.handler=t}return(0,s.Z)(e,[{key:"request",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof Z)n=e;else{var o=void 0;o=r.headers instanceof y?r.headers:new y(r.headers);var a=void 0;r.params&&(a=r.params instanceof x?r.params:new x({fromObject:r.params})),n=new Z(e,t,void 0!==r.body?r.body:null,{headers:o,context:r.context,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=(0,d.of)(n).pipe((0,p.b)(function(e){return i.handler.handle(e)}));if(e instanceof Z||"events"===r.observe)return s;var l=s.pipe((0,f.h)(function(e){return e instanceof P}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe((0,m.U)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return l.pipe((0,m.U)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return l.pipe((0,m.U)(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 l.pipe((0,m.U)(function(e){return e.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new x).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,q(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,q(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,q(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.LFG(g))},e.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac}),e}(),D=function(){function e(t,n){(0,l.Z)(this,e),this.next=t,this.interceptor=n}return(0,s.Z)(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),R=new u.OlP("HTTP_INTERCEPTORS"),L=function(){var e=function(){function e(){(0,l.Z)(this,e)}return(0,s.Z)(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac}),e}(),F=/^\)\]\}',?\n/,B=function(){var e=function(){function e(t){(0,l.Z)(this,e),this.xhrFactory=t}return(0,s.Z)(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 h.y(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,l=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new y(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new E({headers:r,status:t,statusText:n,url:o})},c=function(){var t=l(),r=t.headers,o=t.status,a=t.statusText,s=t.url,c=null;204!==o&&(c=void 0===i.response?i.responseText:i.response),0===o&&(o=c?200:0);var u=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof c){var d=c;c=c.replace(F,"");try{c=""!==c?JSON.parse(c):null}catch(h){c=d,u&&(u=!1,c={error:h,text:c})}}u?(n.next(new P({body:c,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new I({error:c,headers:r,status:o,statusText:a,url:s||void 0}))},u=function(e){var t=l(),r=new I({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t.url||void 0});n.error(r)},d=!1,h=function(t){d||(n.next(l()),d=!0);var r={type:M.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},p=function(e){var t={type:M.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",c),i.addEventListener("error",u),i.addEventListener("timeout",u),i.addEventListener("abort",u),e.reportProgress&&(i.addEventListener("progress",h),null!==a&&i.upload&&i.upload.addEventListener("progress",p)),i.send(a),n.next({type:M.Sent}),function(){i.removeEventListener("error",u),i.removeEventListener("abort",u),i.removeEventListener("load",c),i.removeEventListener("timeout",u),e.reportProgress&&(i.removeEventListener("progress",h),null!==a&&i.upload&&i.upload.removeEventListener("progress",p)),i.readyState!==i.DONE&&i.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.LFG(c.JF))},e.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac}),e}(),j=new u.OlP("XSRF_COOKIE_NAME"),z=new u.OlP("XSRF_HEADER_NAME"),U=function e(){(0,l.Z)(this,e)},H=function(){var e=function(){function e(t,n,i){(0,l.Z)(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return(0,s.Z)(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,c.Mx)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.LFG(c.K0),u.LFG(u.Lbi),u.LFG(j))},e.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac}),e}(),Y=function(){var e=function(){function e(t,n){(0,l.Z)(this,e),this.tokenService=t,this.headerName=n}return(0,s.Z)(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.LFG(U),u.LFG(z))},e.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac}),e}(),J=function(){var e=function(){function e(t,n){(0,l.Z)(this,e),this.backend=t,this.injector=n,this.chain=null}return(0,s.Z)(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(R,[]);this.chain=t.reduceRight(function(e,t){return new D(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.LFG(v),u.LFG(u.zs3))},e.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac}),e}(),G=function(){var e=function(){function e(){(0,l.Z)(this,e)}return(0,s.Z)(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Y,useClass:L}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:j,useValue:t.cookieName}:[],t.headerName?{provide:z,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=u.oAB({type:e}),e.\u0275inj=u.cJS({providers:[Y,{provide:R,useExisting:Y,multi:!0},{provide:U,useClass:H},{provide:j,useValue:"XSRF-TOKEN"},{provide:z,useValue:"X-XSRF-TOKEN"}]}),e}(),W=function(){var e=function e(){(0,l.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=u.oAB({type:e}),e.\u0275inj=u.cJS({providers:[N,{provide:g,useClass:J},B,{provide:v,useExisting:B}],imports:[[G.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}()},37602:function(e,t,n){"use strict";n.d(t,{deG:function(){return kn},tb:function(){return Fc},AFp:function(){return qc},ip1:function(){return Pc},CZH:function(){return Ic},hGG:function(){return Nu},z2F:function(){return Cu},sBO:function(){return Ml},Sil:function(){return Qc},_Vd:function(){return $s},EJc:function(){return zc},SBq:function(){return il},a5r:function(){return Eu},qLn:function(){return Gi},vpe:function(){return hc},gxx:function(){return jo},tBr:function(){return Vn},XFs:function(){return H},OlP:function(){return Cn},zs3:function(){return ia},ZZ4:function(){return Sl},aQg:function(){return Cl},soG:function(){return jc},YKP:function(){return Ll},v3s:function(){return Tu},h0i:function(){return Rl},PXZ:function(){return vu},R0b:function(){return $c},FiY:function(){return Qn},Lbi:function(){return Lc},g9A:function(){return Rc},n_E:function(){return fc},Qsj:function(){return al},FYo:function(){return ol},JOm:function(){return $i},Tiy:function(){return ll},q3G:function(){return Ri},tp0:function(){return Xn},EAV:function(){return Mu},Rgc:function(){return ql},dDg:function(){return au},DyG:function(){return Tn},GfV:function(){return cl},s_b:function(){return Bl},ifc:function(){return Q},eFA:function(){return _u},Ez6:function(){return q},G48:function(){return fu},Gpc:function(){return T},f3M:function(){return Un},X6Q:function(){return pu},_c5:function(){return Iu},VLi:function(){return lu},c2e:function(){return Bc},zSh:function(){return Uo},wAp:function(){return Ls},vHH:function(){return M},EiD:function(){return Ni},mCW:function(){return yi},qzn:function(){return si},JVY:function(){return ci},pB0:function(){return pi},eBb:function(){return di},L6k:function(){return ui},LAX:function(){return hi},cg1:function(){return Ns},Tjo:function(){return Pu},kL8:function(){return Ds},yhl:function(){return li},dqk:function(){return te},sIi:function(){return pa},CqO:function(){return Ra},QGY:function(){return Na},F4k:function(){return Da},RDi:function(){return je},AaK:function(){return x},z3N:function(){return ai},qOj:function(){return oa},TTD:function(){return qe},_Bn:function(){return Vs},xp6:function(){return zr},uIk:function(){return ya},Q2q:function(){return wa},zWS:function(){return Sa},Tol:function(){return ds},Gre:function(){return Ms},ekj:function(){return ls},Suo:function(){return Tc},Xpm:function(){return he},lG2:function(){return be},Yz7:function(){return I},cJS:function(){return N},oAB:function(){return ve},Yjl:function(){return we},Y36:function(){return ka},_UZ:function(){return Oa},GkF:function(){return Ia},BQk:function(){return Pa},ynx:function(){return Ea},qZA:function(){return Ma},TgZ:function(){return Za},EpF:function(){return qa},n5z:function(){return _n},Ikx:function(){return Os},LFG:function(){return zn},$8M:function(){return wn},NdJ:function(){return La},CRH:function(){return Ac},kcU:function(){return Nt},O4$:function(){return qt},oxw:function(){return Ua},ALo:function(){return ac},lcZ:function(){return sc},xi3:function(){return lc},Hsn:function(){return Ja},F$t:function(){return Ya},Q6J:function(){return Ta},s9C:function(){return Ga},MGl:function(){return Wa},hYB:function(){return Va},DdM:function(){return ec},VKq:function(){return tc},WLB:function(){return nc},iGM:function(){return Cc},MAs:function(){return Ca},pYS:function(){return Xi},evT:function(){return Qi},Jf7:function(){return Vi},CHM:function(){return at},oJD:function(){return Li},Ckj:function(){return Fi},LSH:function(){return Bi},B6R:function(){return pe},kYT:function(){return ye},Akn:function(){return cs},Udp:function(){return ss},WFA:function(){return Fa},d8E:function(){return Es},YNc:function(){return xa},W1O:function(){return Ec},_uU:function(){return Cs},Oqu:function(){return ks},hij:function(){return Ts},AsE:function(){return As},lnq:function(){return Zs},Gf:function(){return kc}});var i=n(51751),r=n(12558),o=n(3574),a=n(10270),s=(n(91035),n(76262),n(20454)),l=n(25801),c=n(44829),u=n(11254),d=n(61680),h=n(49843),p=n(37859),f=n(84937);function m(e){var t="function"==typeof Map?new Map:void 0;return(m=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(0,c.Z)(e,arguments,(0,r.Z)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,f.Z)(n,e)})(e)}var g=n(5051),v=n(68707),y=n(89797),_=n(55371),b=n(16338);function w(e){for(var t in e)if(e[t]===w)return t;throw Error("Could not find renamed property on target object.")}function S(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function x(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(x).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 C(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var k=w({__forward_ref__:w});function T(e){return e.__forward_ref__=T,e.toString=function(){return x(this())},e}function A(e){return Z(e)?e():e}function Z(e){return"function"==typeof e&&e.hasOwnProperty(k)&&e.__forward_ref__===T}var M=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(e,i){var r;return(0,d.Z)(this,n),(r=t.call(this,function(e,t){var n=e?"NG0".concat(e,": "):"";return"".concat(n).concat(t)}(e,i))).code=e,r}return n}(m(Error));function O(e){return"string"==typeof e?e:null==e?"":String(e)}function E(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():O(e)}function P(e,t){var n=t?" in ".concat(t):"";throw new M("201","No provider for ".concat(E(e)," found").concat(n))}function I(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var q=I;function N(e){return{providers:e.providers||[],imports:e.imports||[]}}function D(e){return R(e,B)||R(e,z)}function R(e,t){return e.hasOwnProperty(t)?e[t]:null}function L(e){return e&&(e.hasOwnProperty(j)||e.hasOwnProperty(U))?e[j]:null}var F,B=w({"\u0275prov":w}),j=w({"\u0275inj":w}),z=w({ngInjectableDef:w}),U=w({ngInjectorDef:w}),H=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 Y(){return F}function J(e){var t=F;return F=e,t}function G(e,t,n){var i=D(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&H.Optional?null:void 0!==t?t:void P(x(e),"Injector")}function W(e){return{toString:e}.toString()}var V=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Q=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),X="undefined"!=typeof globalThis&&globalThis,K="undefined"!=typeof window&&window,$="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ee="undefined"!=typeof global&&global,te=X||ee||K||$,ne={},ie=[],re=w({"\u0275cmp":w}),oe=w({"\u0275dir":w}),ae=w({"\u0275pipe":w}),se=w({"\u0275mod":w}),le=w({"\u0275loc":w}),ce=w({"\u0275fac":w}),ue=w({__NG_ELEMENT_ID__:w}),de=0;function he(e){return W(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===V.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ie,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Q.Emulated,id:"c",styles:e.styles||ie,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=de++,n.inputs=_e(e.inputs,t),n.outputs=_e(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(fe)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(me)}:null,n})}function pe(e,t,n){var i=e.\u0275cmp;i.directiveDefs=function(){return t.map(fe)},i.pipeDefs=function(){return n.map(me)}}function fe(e){return Se(e)||function(e){return e[oe]||null}(e)}function me(e){return function(e){return e[ae]||null}(e)}var ge={};function ve(e){var t={type:e.type,bootstrap:e.bootstrap||ie,declarations:e.declarations||ie,imports:e.imports||ie,exports:e.exports||ie,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&W(function(){ge[e.id]=e.type}),t}function ye(e,t){return W(function(){var n=xe(e,!0);n.declarations=t.declarations||ie,n.imports=t.imports||ie,n.exports=t.exports||ie})}function _e(e,t){if(null==e)return ne;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var be=he;function we(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Se(e){return e[re]||null}function xe(e,t){var n=e[se]||null;if(!n&&!0===t)throw new Error("Type ".concat(x(e)," does not have '\u0275mod' property."));return n}var Ce=20,ke=10;function Te(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ae(e){return Array.isArray(e)&&!0===e[1]}function Ze(e){return 0!=(8&e.flags)}function Me(e){return 2==(2&e.flags)}function Oe(e){return 1==(1&e.flags)}function Ee(e){return null!==e.template}function Pe(e,t){return e.hasOwnProperty(ce)?e[ce]:null}var Ie=function(){function e(t,n,i){(0,d.Z)(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return(0,u.Z)(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function qe(){return Ne}function Ne(e){return e.type.prototype.ngOnChanges&&(e.setInput=Re),De}function De(){var e=Le(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===ne)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Re(e,t,n,i){var r=Le(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:ne,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],l=a[s];o[s]=new Ie(l&&l.currentValue,t,a===ne),e[i]=t}function Le(e){return e.__ngSimpleChanges__||null}qe.ngInherit=!0;var Fe="http://www.w3.org/2000/svg",Be=void 0;function je(e){Be=e}function ze(){return void 0!==Be?Be:"undefined"!=typeof document?document:void 0}function Ue(e){return!!e.listen}var He={createRenderer:function(e,t){return ze()}};function Ye(e){for(;Array.isArray(e);)e=e[0];return e}function Je(e,t){return Ye(t[e])}function Ge(e,t){return Ye(t[e.index])}function We(e,t){return e.data[t]}function Ve(e,t){return e[t]}function Qe(e,t){var n=t[e];return Te(n)?n:n[0]}function Xe(e){return 4==(4&e[2])}function Ke(e){return 128==(128&e[2])}function $e(e,t){return null==t?null:e[t]}function et(e){e[18]=0}function tt(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var nt={lFrame:Tt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function it(){return nt.bindingsEnabled}function rt(){return nt.lFrame.lView}function ot(){return nt.lFrame.tView}function at(e){return nt.lFrame.contextLView=e,e[8]}function st(){for(var e=lt();null!==e&&64===e.type;)e=e.parent;return e}function lt(){return nt.lFrame.currentTNode}function ct(e,t){var n=nt.lFrame;n.currentTNode=e,n.isParent=t}function ut(){return nt.lFrame.isParent}function dt(){nt.lFrame.isParent=!1}function ht(){return nt.isInCheckNoChangesMode}function pt(e){nt.isInCheckNoChangesMode=e}function ft(){var e=nt.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function mt(){return nt.lFrame.bindingIndex}function gt(){return nt.lFrame.bindingIndex++}function vt(e){var t=nt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function yt(e){nt.lFrame.currentDirectiveIndex=e}function _t(e){var t=nt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function bt(){return nt.lFrame.currentQueryIndex}function wt(e){nt.lFrame.currentQueryIndex=e}function St(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function xt(e,t,n){if(n&H.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&H.Host||null===(i=St(r))||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var o=nt.lFrame=kt();return o.currentTNode=t,o.lView=e,!0}function Ct(e){var t=kt(),n=e[1];nt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function kt(){var e=nt.lFrame,t=null===e?null:e.child;return null===t?Tt(e):t}function Tt(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 At(){var e=nt.lFrame;return nt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Zt=At;function Mt(){var e=At();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 Ot(e){return(nt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,nt.lFrame.contextLView))[8]}function Et(){return nt.lFrame.selectedIndex}function Pt(e){nt.lFrame.selectedIndex=e}function It(){var e=nt.lFrame;return We(e.tView,e.selectedIndex)}function qt(){nt.lFrame.currentNamespace=Fe}function Nt(){nt.lFrame.currentNamespace=null}function Dt(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n<i;n++){var r=e.data[n].type.prototype,o=r.ngAfterContentInit,a=r.ngAfterContentChecked,s=r.ngAfterViewInit,l=r.ngAfterViewChecked,c=r.ngOnDestroy;o&&(e.contentHooks||(e.contentHooks=[])).push(-n,o),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),l&&((e.viewHooks||(e.viewHooks=[])).push(n,l),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,l)),null!=c&&(e.destroyHooks||(e.destroyHooks=[])).push(n,c)}}function Rt(e,t,n){Bt(e,t,3,n)}function Lt(e,t,n,i){(3&e[2])===n&&Bt(e,t,n,i)}function Ft(e,t){var n=e[2];(3&n)===t&&(n&=2047,e[2]=n+=1)}function Bt(e,t,n,i){for(var r=null!=i?i:-1,o=t.length-1,a=0,s=void 0!==i?65535&e[18]:0;s<o;s++)if("number"==typeof t[s+1]){if(a=t[s],null!=i&&a>=i)break}else t[s]<0&&(e[18]+=65536),(a<r||-1==r)&&(jt(e,n,t,s),e[18]=(4294901760&e[18])+s+2),s++}function jt(e,t,n,i){var r=n[i]<0,o=n[i+1],a=e[r?-n[i]:n[i]];if(r){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var zt=-1,Ut=function e(t,n,i){(0,d.Z)(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Ht(e,t,n){for(var i=Ue(e),r=0;r<n.length;){var o=n[r];if("number"==typeof o){if(0!==o)break;r++;var a=n[r++],s=n[r++],l=n[r++];i?e.setAttribute(t,s,l,a):t.setAttributeNS(a,s,l)}else{var c=o,u=n[++r];Jt(c)?i&&e.setProperty(t,c,u):i?e.setAttribute(t,c,u):t.setAttribute(c,u),r++}}return r}function Yt(e){return 3===e||4===e||6===e}function Jt(e){return 64===e.charCodeAt(0)}function Gt(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,i=0;i<t.length;i++){var r=t[i];"number"==typeof r?n=r:0===n||Wt(e,n,r,null,-1===n||2===n?t[++i]:null)}return e}function Wt(e,t,n,i,r){var o=0,a=e.length;if(-1===t)a=-1;else for(;o<e.length;){var s=e[o++];if("number"==typeof s){if(s===t){a=-1;break}if(s>t){a=o-1;break}}}for(;o<e.length;){var l=e[o];if("number"==typeof l)break;if(l===n){if(null===i)return void(null!==r&&(e[o+1]=r));if(i===e[o+1])return void(e[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==a&&(e.splice(a,0,t),o=a+1),e.splice(o++,0,n),null!==i&&e.splice(o++,0,i),null!==r&&e.splice(o++,0,r)}function Vt(e){return e!==zt}function Qt(e){return 32767&e}function Xt(e,t){for(var n=e>>16,i=t;n>0;)i=i[15],n--;return i}var Kt=!0;function $t(e){var t=Kt;return Kt=e,t}var en=0;function tn(e,t){var n=rn(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,nn(i.data,e),nn(t,null),nn(i.blueprint,null));var r=on(e,t),o=e.injectorIndex;if(Vt(r))for(var a=Qt(r),s=Xt(r,t),l=s[1].data,c=0;c<8;c++)t[o+c]=s[a+c]|l[a+c];return t[o+8]=r,o}function nn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function rn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function on(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return zt;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return zt}function an(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ue)&&(i=n[ue]),null==i&&(i=n[ue]=en++);var r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function sn(e,t,n){if(n&H.Optional)return e;P(t,"NodeInjector")}function ln(e,t,n,i){if(n&H.Optional&&void 0===i&&(i=null),0==(n&(H.Self|H.Host))){var r=e[9],o=J(void 0);try{return r?r.get(t,i,n&H.Optional):G(t,i,n&H.Optional)}finally{J(o)}}return sn(i,t,n)}function cn(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:H.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=mn(n);if("function"==typeof o){if(!xt(t,e,i))return i&H.Host?sn(r,n,i):ln(t,n,i,r);try{var a=o(i);if(null!=a||i&H.Optional)return a;P(n)}finally{Zt()}}else if("number"==typeof o){var s=null,l=rn(e,t),c=zt,u=i&H.Host?t[16][6]:null;for((-1===l||i&H.SkipSelf)&&((c=-1===l?on(e,t):t[l+8])!==zt&&vn(i,!1)?(s=t[1],l=Qt(c),t=Xt(c,t)):l=-1);-1!==l;){var d=t[1];if(gn(o,l,d.data)){var h=hn(l,t,n,s,i,u);if(h!==un)return h}(c=t[l+8])!==zt&&vn(i,t[1].data[l+8]===u)&&gn(o,l,t)?(s=d,l=Qt(c),t=Xt(c,t)):l=-1}}}return ln(t,n,i,r)}var un={};function dn(){return new yn(st(),rt())}function hn(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],l=pn(s,a,n,null==i?Me(s)&&Kt:i!=a&&0!=(3&s.type),r&H.Host&&o===s);return null!==l?fn(t,a,l,s):un}function pn(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,l=e.directiveStart,c=o>>20,u=r?s+c:e.directiveEnd,d=i?s:s+c;d<u;d++){var h=a[d];if(d<l&&n===h||d>=l&&h.type===n)return d}if(r){var p=a[l];if(p&&Ee(p)&&p.type===n)return l}return null}function fn(e,t,n,i){var r=e[n],o=t.data;if(r instanceof Ut){var a=r;a.resolving&&function(e,t){throw new M("200","Circular dependency in DI detected for ".concat(e).concat(""))}(E(o[n]));var s=$t(a.canSeeViewProviders);a.resolving=!0;var l=a.injectImpl?J(a.injectImpl):null;xt(e,i,H.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnInit,o=i.ngDoCheck;if(i.ngOnChanges){var a=Ne(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==l&&J(l),$t(s),a.resolving=!1,Zt()}}return r}function mn(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(ue)?e[ue]:void 0;return"number"==typeof t?t>=0?255&t:dn:t}function gn(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function vn(e,t){return!(e&H.Self||e&H.Host&&t)}var yn=function(){function e(t,n){(0,d.Z)(this,e),this._tNode=t,this._lView=n}return(0,u.Z)(e,[{key:"get",value:function(e,t){return cn(this._tNode,this._lView,e,void 0,t)}}]),e}();function _n(e){return W(function(){for(var t=e.prototype.constructor,n=t[ce]||bn(t),i=Object.prototype,r=Object.getPrototypeOf(e.prototype).constructor;r&&r!==i;){var o=r[ce]||bn(r);if(o&&o!==n)return o;r=Object.getPrototypeOf(r)}return function(e){return new e}})}function bn(e){return Z(e)?function(){var t=bn(A(e));return t&&t()}:Pe(e)}function wn(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var i=n.length,r=0;r<i;){var o=n[r];if(Yt(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(o===t)return n[r+1];r+=2}}return null}(st(),e)}var Sn="__parameters__";function xn(e,t,n){return W(function(){var i=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof r)return i.apply(this,t),this;var o=(0,c.Z)(r,t);return a.annotation=o,a;function a(e,t,n){for(var i=e.hasOwnProperty(Sn)?e[Sn]:Object.defineProperty(e,Sn,{value:[]})[Sn];i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(o),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}var Cn=function(){function e(t,n){(0,d.Z)(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=I({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return(0,u.Z)(e,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),e}(),kn=new Cn("AnalyzeForEntryComponents"),Tn=Function;function An(e,t){void 0===t&&(t=e);for(var n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),An(i,t)):t!==e&&t.push(i)}return t}function Zn(e,t){e.forEach(function(e){return Array.isArray(e)?Zn(e,t):t(e)})}function Mn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function On(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function En(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function Pn(e,t,n){var i=qn(e,t);return i>=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function In(e,t){var n=qn(e,t);if(n>=0)return e[1|n]}function qn(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var Nn={},Dn=/\n/gm,Rn="__source",Ln=w({provide:String,useValue:w}),Fn=void 0;function Bn(e){var t=Fn;return Fn=e,t}function jn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H.Default;if(void 0===Fn)throw new Error("inject() must be called from an injection context");return null===Fn?G(e,void 0,t):Fn.get(e,t&H.Optional?null:void 0,t)}function zn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H.Default;return(Y()||jn)(A(e),t)}var Un=zn;function Hn(e){for(var t=[],n=0;n<e.length;n++){var i=A(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,o=H.Default,a=0;a<i.length;a++){var s=i[a],l=s.__NG_DI_FLAG__;"number"==typeof l?-1===l?r=s.token:o|=l:r=s}t.push(zn(r,o))}else t.push(zn(i))}return t}function Yn(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}function Jn(e,t,n,i){var r=e.ngTempTokenPath;throw t[Rn]&&r.unshift(t[Rn]),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=x(t);if(Array.isArray(t))r=t.map(x).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):x(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(Dn,"\n "))}("\n"+e.message,r,n,i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}var Gn,Wn,Vn=Yn(xn("Inject",function(e){return{token:e}}),-1),Qn=Yn(xn("Optional"),8),Xn=Yn(xn("SkipSelf"),4);function Kn(e){var t;return(null===(t=function(){if(void 0===Gn&&(Gn=null,te.trustedTypes))try{Gn=te.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Gn}())||void 0===t?void 0:t.createHTML(e))||e}function $n(e){var t;return(null===(t=function(){if(void 0===Wn&&(Wn=null,te.trustedTypes))try{Wn=te.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Wn}())||void 0===t?void 0:t.createHTML(e))||e}var ei=function(){function e(t){(0,d.Z)(this,e),this.changingThisBreaksApplicationSecurity=t}return(0,u.Z)(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),ti=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,u.Z)(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(ei),ni=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,u.Z)(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(ei),ii=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,u.Z)(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(ei),ri=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,u.Z)(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(ei),oi=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,u.Z)(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(ei);function ai(e){return e instanceof ei?e.changingThisBreaksApplicationSecurity:e}function si(e,t){var n=li(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 li(e){return e instanceof ei&&e.getTypeName()||null}function ci(e){return new ti(e)}function ui(e){return new ni(e)}function di(e){return new ii(e)}function hi(e){return new ri(e)}function pi(e){return new oi(e)}var fi=function(){function e(t){(0,d.Z)(this,e),this.inertDocumentHelper=t}return(0,u.Z)(e,[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var t=(new window.DOMParser).parseFromString(Kn(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(n){return null}}}]),e}(),mi=function(){function e(t){if((0,d.Z)(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return(0,u.Z)(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Kn(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Kn(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var i=t.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||e.removeAttribute(i)}for(var r=e.firstChild;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}]),e}(),gi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,vi=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function yi(e){return(e=String(e)).match(gi)||e.match(vi)?e:"unsafe:"+e}function _i(e){var t,n={},i=(0,s.Z)(e.split(","));try{for(i.s();!(t=i.n()).done;)n[t.value]=!0}catch(r){i.e(r)}finally{i.f()}return n}function bi(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];for(var s in a)a.hasOwnProperty(s)&&(e[s]=!0)}return e}var wi,Si=_i("area,br,col,hr,img,wbr"),xi=_i("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ci=_i("rp,rt"),ki=bi(Ci,xi),Ti=bi(Si,bi(xi,_i("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")),bi(Ci,_i("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")),ki),Ai=_i("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Zi=_i("srcset"),Mi=bi(Ai,Zi,_i("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"),_i("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")),Oi=_i("script,style,template"),Ei=function(){function e(){(0,d.Z)(this,e),this.sanitizedSomething=!1,this.buf=[]}return(0,u.Z)(e,[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t,n=e.nodeName.toLowerCase();if(!Ti.hasOwnProperty(n))return this.sanitizedSomething=!0,!Oi.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);for(var i=e.attributes,r=0;r<i.length;r++){var o=i.item(r),a=o.name,s=a.toLowerCase();if(Mi.hasOwnProperty(s)){var l=o.value;Ai[s]&&(l=yi(l)),Zi[s]&&(t=l,l=(t=String(t)).split(",").map(function(e){return yi(e.trim())}).join(", ")),this.buf.push(" ",a,'="',qi(l),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();Ti.hasOwnProperty(t)&&!Si.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(qi(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}(),Pi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ii=/([^\#-~ |!])/g;function qi(e){return e.replace(/&/g,"&").replace(Pi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ii,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function Ni(e,t){var n=null;try{wi=wi||function(e){var t=new mi(e);return function(){try{return!!(new window.DOMParser).parseFromString(Kn(""),"text/html")}catch(e){return!1}}()?new fi(t):t}(e);var i=t?String(t):"";n=wi.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=wi.getInertBodyElement(i)}while(i!==o);return Kn((new Ei).sanitizeChildren(Di(n)||n))}finally{if(n)for(var a=Di(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Di(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ri=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 Li(e){var t=ji();return t?$n(t.sanitize(Ri.HTML,e)||""):si(e,"HTML")?$n(ai(e)):Ni(ze(),O(e))}function Fi(e){var t=ji();return t?t.sanitize(Ri.STYLE,e)||"":si(e,"Style")?ai(e):O(e)}function Bi(e){var t=ji();return t?t.sanitize(Ri.URL,e)||"":si(e,"URL")?ai(e):yi(O(e))}function ji(){var e=rt();return e&&e[12]}function zi(e,t){e.__ngContext__=t}function Ui(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Hi(e){return e.ngDebugContext}function Yi(e){return e.ngOriginalError}function Ji(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e.error.apply(e,n)}var Gi=function(){function e(){(0,d.Z)(this,e),this._console=console}return(0,u.Z)(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||Ji}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?Hi(e)?Hi(e):this._findContext(Yi(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=Yi(e);t&&Yi(t);)t=Yi(t);return t}}]),e}(),Wi=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(te)}();function Vi(e){return e.ownerDocument.defaultView}function Qi(e){return e.ownerDocument}function Xi(e){return e.ownerDocument.body}function Ki(e){return e instanceof Function?e():e}var $i=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function er(e,t){return(void 0)(e,t)}function tr(e){var t=e[3];return Ae(t)?t[3]:t}function nr(e){return rr(e[13])}function ir(e){return rr(e[4])}function rr(e){for(;null!==e&&!Ae(e);)e=e[4];return e}function or(e,t,n,i,r){if(null!=i){var o,a=!1;Ae(i)?o=i:Te(i)&&(a=!0,i=i[0]);var s=Ye(i);0===e&&null!==n?null==r?fr(t,n,s):pr(t,n,s,r||null,!0):1===e&&null!==n?pr(t,n,s,r||null,!0):2===e?function(e,t,n){var i=gr(e,t);i&&function(e,t,n,i){Ue(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,s,a):3===e&&t.destroyNode(s),null!=o&&function(e,t,n,i,r){var o=n[7];o!==Ye(n)&&or(t,e,i,o,r);for(var a=ke;a<n.length;a++){var s=n[a];Cr(s[1],s,e,t,i,o)}}(t,e,o,n,r)}}function ar(e,t){return Ue(e)?e.createText(t):e.createTextNode(t)}function sr(e,t,n){return Ue(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function lr(e,t){var n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,tt(r,-1)),n.splice(i,1)}function cr(e,t){if(!(e.length<=ke)){var n,i=ke+t,r=e[i];if(r){var o=r[17];null!==o&&o!==e&&lr(o,r),t>0&&(e[i-1][4]=r[4]);var a=On(e,ke+t);Cr(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function ur(e,t){if(!(256&t[2])){var n=t[11];Ue(n)&&n.destroyNode&&Cr(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return dr(e[1],e);for(;t;){var n=null;if(Te(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Te(t)&&dr(t[1],t),t=t[3];null===t&&(t=e),Te(t)&&dr(t[1],t),n=t&&t[4]}t=n}}(t)}}function dr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i<n.length;i+=2){var r=t[n[i]];if(!(r instanceof Ut)){var o=n[i+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2){var s=r[o[a]],l=o[a+1];try{l.call(s)}finally{}}else try{o.call(r)}finally{}}}}(e,t),function(e,t){var n=e.cleanup,i=t[7],r=-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]),l=i[r=n[o+2]],c=n[o+3];"boolean"==typeof c?s.removeEventListener(n[o],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{var u=i[r=n[o+1]];n[o].call(u)}if(null!==i){for(var d=r+1;d<i.length;d++)(0,i[d])();t[7]=null}}(e,t),1===t[1].type&&Ue(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&Ae(t[3])){n!==t[3]&&lr(n,t);var i=t[19];null!==i&&i.detachView(e)}}}function hr(e,t,n){return function(e,t,n){for(var i=t;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){var r=e.data[i.directiveStart].encapsulation;if(r===Q.None||r===Q.Emulated)return null}return Ge(i,n)}(e,t.parent,n)}function pr(e,t,n,i,r){Ue(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function fr(e,t,n){Ue(e)?e.appendChild(t,n):t.appendChild(n)}function mr(e,t,n,i,r){null!==i?pr(e,t,n,i,r):fr(e,t,n)}function gr(e,t){return Ue(e)?e.parentNode(t):t.parentNode}function vr(e,t,n){return yr(e,t,n)}var yr=function(e,t,n){return 40&e.type?Ge(e,n):null};function _r(e,t,n,i){var r=hr(e,i,t),o=t[11],a=vr(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(var s=0;s<n.length;s++)mr(o,r,n[s],a,!1);else mr(o,r,n,a,!1)}function br(e,t){if(null!==t){var n=t.type;if(3&n)return Ge(t,e);if(4&n)return Sr(-1,e[t.index]);if(8&n){var i=t.child;if(null!==i)return br(e,i);var r=e[t.index];return Ae(r)?Sr(-1,r):Ye(r)}if(32&n)return er(t,e)()||Ye(e[t.index]);var o=wr(e,t);return null!==o?Array.isArray(o)?o[0]:br(tr(e[16]),o):br(e,t.next)}return null}function wr(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Sr(e,t){var n=ke+e+1;if(n<t.length){var i=t[n],r=i[1].firstChild;if(null!==r)return br(i,r)}return t[7]}function xr(e,t,n,i,r,o,a){for(;null!=n;){var s=i[n.index],l=n.type;if(a&&0===t&&(s&&zi(Ye(s),i),n.flags|=4),64!=(64&n.flags))if(8&l)xr(e,t,n.child,i,r,o,!1),or(t,e,r,s,o);else if(32&l){for(var c=er(n,i),u=void 0;u=c();)or(t,e,r,u,o);or(t,e,r,s,o)}else 16&l?Tr(e,t,i,n,r,o):or(t,e,r,s,o);n=a?n.projectionNext:n.next}}function Cr(e,t,n,i,r,o){xr(n,i,e.firstChild,t,r,o,!1)}function kr(e,t,n){Tr(t[11],0,t,n,hr(e,n,t),vr(n.parent||t[6],n,t))}function Tr(e,t,n,i,r,o){var a=n[16],s=a[6].projection[i.projection];if(Array.isArray(s))for(var l=0;l<s.length;l++)or(t,e,r,s[l],o);else xr(e,t,s,a[3],r,o,!0)}function Ar(e,t,n){Ue(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Zr(e,t,n){Ue(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function Mr(e,t,n){for(var i=e.length;;){var r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){var o=t.length;if(r+o===i||e.charCodeAt(r+o)<=32)return r}n=r+1}}var Or="ng-template";function Er(e,t,n){for(var i=0;i<e.length;){var r=e[i++];if(n&&"class"===r){if(-1!==Mr((r=e[i]).toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Pr(e){return 4===e.type&&e.value!==Or}function Ir(e,t,n){return t===(4!==e.type||n?e.value:Or)}function qr(e,t,n){for(var i=4,r=e.attrs||[],o=function(e){for(var t=0;t<e.length;t++)if(Yt(e[t]))return t;return e.length}(r),a=!1,s=0;s<t.length;s++){var l=t[s];if("number"!=typeof l){if(!a)if(4&i){if(i=2|1&i,""!==l&&!Ir(e,l,n)||""===l&&1===t.length){if(Nr(i))return!1;a=!0}}else{var c=8&i?l:t[++s];if(8&i&&null!==e.attrs){if(!Er(e.attrs,c,n)){if(Nr(i))return!1;a=!0}continue}var u=Dr(8&i?"class":l,r,Pr(e),n);if(-1===u){if(Nr(i))return!1;a=!0;continue}if(""!==c){var d;d=u>o?"":r[u+1].toLowerCase();var h=8&i?d:null;if(h&&-1!==Mr(h,c,0)||2&i&&c!==d){if(Nr(i))return!1;a=!0}}}}else{if(!a&&!Nr(i)&&!Nr(l))return!1;if(a&&Nr(l))continue;a=!1,i=l|1&i}}return Nr(i)||a}function Nr(e){return 0==(1&e)}function Dr(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r<t.length;){var a=t[r];if(a===e)return r;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=t[++r];"string"==typeof s;)s=t[++r];continue}if(4===a)break;if(0===a){r+=4;continue}}r+=o?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function Rr(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<t.length;i++)if(qr(e,t[i],n))return!0;return!1}function Lr(e,t){e:for(var n=0;n<t.length;n++){var i=t[n];if(e.length===i.length){for(var r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function Fr(e,t){return e?":not("+t.trim()+")":t}function Br(e){for(var t=e[0],n=1,i=2,r="",o=!1;n<e.length;){var a=e[n];if("string"==typeof a)if(2&i){var s=e[++n];r+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||Nr(a)||(t+=Fr(o,r),r=""),i=a,o=o||!Nr(i);n++}return""!==r&&(t+=Fr(o,r)),t}var jr={};function zr(e){Ur(ot(),rt(),Et()+e,ht())}function Ur(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&Rt(t,r,n)}else{var o=e.preOrderHooks;null!==o&&Lt(t,o,0,n)}Pt(n)}function Hr(e,t){return e<<17|t<<2}function Yr(e){return e>>17&32767}function Jr(e){return 2|e}function Gr(e){return(131068&e)>>2}function Wr(e,t){return-131069&e|t<<2}function Vr(e){return 1|e}function Qr(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var r=n[i+1];if(-1!==r){var o=e.data[r];wt(n[i]),o.contentQueries(2,t[r],r)}}}function Xr(e,t,n,i,r,o,a,s,l,c){var u=t.blueprint.slice();return u[0]=r,u[2]=140|i,et(u),u[3]=u[15]=e,u[8]=n,u[10]=a||e&&e[10],u[11]=s||e&&e[11],u[12]=l||e&&e[12]||null,u[9]=c||e&&e[9]||null,u[6]=o,u[16]=2==t.type?e[16]:u,u}function Kr(e,t,n,i,r){var o,a,s=e.data[t];if(null===s)s=function(e,t,n,i,r){var o=lt(),a=ut(),s=e.data[t]=function(e,t,n,i,r,o){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,n,t,i,r);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,i,r),nt.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;var l=(a=(o=nt.lFrame).currentTNode,o.isParent?a:a.parent);s.injectorIndex=null===l?-1:l.injectorIndex}return ct(s,!0),s}function $r(e,t,n,i){if(0===n)return-1;for(var r=t.length,o=0;o<n;o++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function eo(e,t,n){Ct(t);try{var i=e.viewQuery;null!==i&&Po(1,i,n);var r=e.template;null!==r&&io(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Qr(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++)Ao(e,t[n])}(t,o)}catch(a){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),a}finally{t[2]&=-5,Mt()}}function to(e,t,n,i){var r=t[2];if(256!=(256&r)){Ct(t);var o=ht();try{et(t),nt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&io(e,t,n,2,i);var a=3==(3&r);if(!o)if(a){var s=e.preOrderCheckHooks;null!==s&&Rt(t,s,null)}else{var l=e.preOrderHooks;null!==l&&Lt(t,l,0,null),Ft(t,0)}if(function(e){for(var t=nr(e);null!==t;t=ir(t))if(t[2])for(var n=t[9],i=0;i<n.length;i++){var r=n[i];0==(1024&r[2])&&tt(r[3],1),r[2]|=1024}}(t),function(e){for(var t=nr(e);null!==t;t=ir(t))for(var n=ke;n<t.length;n++){var i=t[n],r=i[1];Ke(i)&&to(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&Qr(e,t),!o)if(a){var c=e.contentCheckHooks;null!==c&&Rt(t,c)}else{var u=e.contentHooks;null!==u&&Lt(t,u,1),Ft(t,1)}!function(e,t){var n,i,r=e.hostBindingOpCodes;if(null!==r)try{for(var o=0;o<r.length;o++){var a=r[o];if(a<0)Pt(~a);else{var s=a,l=r[++o],c=r[++o];n=s,i=void 0,(i=nt.lFrame).bindingIndex=i.bindingRootIndex=l,yt(n),c(2,t[s])}}}finally{Pt(-1)}}(e,t);var d=e.components;null!==d&&function(e,t){for(var n=0;n<t.length;n++)ko(e,t[n])}(t,d);var h=e.viewQuery;if(null!==h&&Po(2,h,i),!o)if(a){var p=e.viewCheckHooks;null!==p&&Rt(t,p)}else{var f=e.viewHooks;null!==f&&Lt(t,f,2),Ft(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,tt(t[3],-1))}finally{Mt()}}}function no(e,t,n,i){var r=t[10],o=!ht(),a=Xe(t);try{o&&!a&&r.begin&&r.begin(),a&&eo(e,t,i),to(e,t,n,i)}finally{o&&!a&&r.end&&r.end()}}function io(e,t,n,i,r){var o=Et(),a=2&i;try{Pt(-1),a&&t.length>Ce&&Ur(e,t,Ce,ht()),n(i,r)}finally{Pt(o)}}function ro(e,t,n){if(Ze(t))for(var i=t.directiveEnd,r=t.directiveStart;r<i;r++){var o=e.data[r];o.contentQueries&&o.contentQueries(1,n[r],r)}}function oo(e,t,n){it()&&(function(e,t,n,i){var r=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||tn(n,t),zi(i,t);for(var a=n.initialInputs,s=r;s<o;s++){var l=e.data[s],c=Ee(l);c&&bo(t,n,l);var u=fn(t,e,s,n);zi(u,t),null!==a&&So(0,s-r,u,l,0,a),c&&(Qe(n.index,t)[8]=u)}}(e,t,n,Ge(n,t)),128==(128&n.flags)&&function(e,t,n){var i=n.directiveStart,r=n.directiveEnd,o=n.index,a=nt.lFrame.currentDirectiveIndex;try{Pt(o);for(var s=i;s<r;s++){var l=e.data[s],c=t[s];yt(s),null===l.hostBindings&&0===l.hostVars&&null===l.hostAttrs||mo(l,c)}}finally{Pt(-1),yt(a)}}(e,t,n))}function ao(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ge,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o<i.length;o+=2){var a=i[o+1],s=-1===a?n(t,e):e[a];e[r++]=s}}function so(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=lo(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function lo(e,t,n,i,r,o,a,s,l,c){var u=Ce+i,d=u+r,h=function(e,t){for(var n=[],i=0;i<t;i++)n.push(i<e?null:jr);return n}(u,d),p="function"==typeof c?c():c;return h[1]={type:e,blueprint:h,template:n,queries:null,viewQuery:s,declTNode:t,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,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:l,consts:p,incompleteFirstPass:!1}}function co(e,t,n,i){var r=qo(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&No(e).push(i,r.length-1))}function uo(e,t,n){for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function ho(e,t,n,i,r,o,a,s){var l,c,u=Ge(t,n),d=t.inputs;!s&&null!=d&&(l=d[i])?(Lo(e,n,l,i,r),Me(t)&&function(e,t){var n=Qe(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(c=i)?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c,r=null!=a?a(r,t.value||"",i):r,Ue(o)?o.setProperty(u,i,r):Jt(i)||(u.setProperty?u.setProperty(i,r):u[i]=r))}function po(e,t,n,i){var r=!1;if(it()){var o=function(e,t,n){var i=e.directiveRegistry,r=null;if(i)for(var o=0;o<i.length;o++){var a=i[o];Rr(n,a.selectors,!1)&&(r||(r=[]),an(tn(n,t),e,a.type),Ee(a)?(go(e,n),r.unshift(a)):r.push(a))}return r}(e,t,n),a=null===i?null:{"":-1};if(null!==o){r=!0,yo(n,e.data.length,o.length);for(var s=0;s<o.length;s++){var l=o[s];l.providersResolver&&l.providersResolver(l)}for(var c=!1,u=!1,d=$r(e,t,o.length,null),h=0;h<o.length;h++){var p=o[h];n.mergedAttrs=Gt(n.mergedAttrs,p.hostAttrs),_o(e,n,t,d,p),vo(d,p,a),null!==p.contentQueries&&(n.flags|=8),null===p.hostBindings&&null===p.hostAttrs&&0===p.hostVars||(n.flags|=128);var f=p.type.prototype;!c&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),c=!0),u||!f.ngOnChanges&&!f.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),u=!0),d++}!function(e,t){for(var n=t.directiveEnd,i=e.data,r=t.attrs,o=[],a=null,s=null,l=t.directiveStart;l<n;l++){var c=i[l],u=c.inputs,d=null===r||Pr(t)?null:xo(u,r);o.push(d),a=uo(u,l,a),s=uo(c.outputs,l,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 i=e.localNames=[],r=0;r<t.length;r+=2){var o=n[t[r+1]];if(null==o)throw new M("301","Export of name '".concat(t[r+1],"' not found!"));i.push(t[r],o)}}(n,i,a)}return n.mergedAttrs=Gt(n.mergedAttrs,n.attrs),r}function fo(e,t,n,i,r,o){var a=o.hostBindings;if(a){var s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);var l=~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)!=l&&s.push(l),s.push(i,r,a)}}function mo(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function go(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function vo(e,t,n){if(n){if(t.exportAs)for(var i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;Ee(t)&&(n[""]=e)}}function yo(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function _o(e,t,n,i,r){e.data[i]=r;var o=r.factory||(r.factory=Pe(r.type)),a=new Ut(o,Ee(r),null);e.blueprint[i]=a,n[i]=a,fo(e,t,0,i,$r(e,n,r.hostVars,jr),r)}function bo(e,t,n){var i=Ge(t,e),r=so(n),o=e[10],a=Zo(e,Xr(e,r,null,n.onPush?64:16,i,t,o,o.createRenderer(i,n),null,null));e[t.index]=a}function wo(e,t,n,i,r,o){var a=Ge(e,t);!function(e,t,n,i,r,o,a){if(null==o)Ue(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{var s=null==a?O(o):a(o,i||"",r);Ue(e)?e.setAttribute(t,r,s,n):n?t.setAttributeNS(n,r,s):t.setAttribute(r,s)}}(t[11],a,o,e.value,n,i,r)}function So(e,t,n,i,r,o){var a=o[t];if(null!==a)for(var s=i.setInput,l=0;l<a.length;){var c=a[l++],u=a[l++],d=a[l++];null!==s?i.setInput(n,d,c,u):n[u]=d}}function xo(e,t){for(var n=null,i=0;i<t.length;){var r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Co(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function ko(e,t){var n=Qe(t,e);if(Ke(n)){var i=n[1];80&n[2]?to(i,n,i.template,n[8]):n[5]>0&&To(n)}}function To(e){for(var t=nr(e);null!==t;t=ir(t))for(var n=ke;n<t.length;n++){var i=t[n];if(1024&i[2]){var r=i[1];to(r,i,r.template,i[8])}else i[5]>0&&To(i)}var o=e[1].components;if(null!==o)for(var a=0;a<o.length;a++){var s=Qe(o[a],e);Ke(s)&&s[5]>0&&To(s)}}function Ao(e,t){var n=Qe(t,e),i=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),eo(i,n,n[8])}function Zo(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=tr(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function Oo(e,t,n){var i=t[10];i.begin&&i.begin();try{to(e,t,e.template,n)}catch(r){throw Ro(t,r),r}finally{i.end&&i.end()}}function Eo(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],i=Ui(n),r=i[1];no(r,i,r.template,n)}}(e[8])}function Po(e,t,n){wt(0),t(e,n)}var Io=function(){return Promise.resolve(null)}();function qo(e){return e[7]||(e[7]=[])}function No(e){return e.cleanup||(e.cleanup=[])}function Do(e,t,n){return(null===e||Ee(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],i=n?n.get(Gi,null):null;i&&i.handleError(t)}function Lo(e,t,n,i,r){for(var o=0;o<n.length;){var a=n[o++],s=n[o++],l=t[a],c=e.data[a];null!==c.setInput?c.setInput(l,r,i,s):l[s]=r}}function Fo(e,t,n){var i=Je(t,e);!function(e,t,n){Ue(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}function Bo(e,t,n){var i=n?e.styles:null,r=n?e.classes:null,o=0;if(null!==t)for(var a=0;a<t.length;a++){var s=t[a];"number"==typeof s?o=s:1==o?r=C(r,s):2==o&&(i=C(i,s+": "+t[++a]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}var jo=new Cn("INJECTOR",-1),zo=function(){function e(){(0,d.Z)(this,e)}return(0,u.Z)(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nn;if(t===Nn){var n=new Error("NullInjectorError: No provider for ".concat(x(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Uo=new Cn("Set Injector scope."),Ho={},Yo={},Jo=void 0;function Go(){return void 0===Jo&&(Jo=new zo),Jo}function Wo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Vo(e,n,t||Go(),i)}var Vo=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,d.Z)(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&Zn(n,function(e){return r.processProvider(e,t,n)}),Zn([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(jo,Ko(void 0,this));var s=this.records.get(Uo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:x(t))}return(0,u.Z)(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]:Nn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:H.Default;this.assertNotDestroyed();var i=Bn(this);try{if(!(n&H.SkipSelf)){var r=this.records.get(e);if(void 0===r){var o=ta(e)&&D(e);r=o&&this.injectableDefInScope(o)?Ko(Qo(e),Ho):null,this.records.set(e,r)}if(null!=r)return this.hydrate(e,r)}var a=n&H.Self?Go():this.parent;return a.get(e,t=n&H.Optional&&t===Nn?null:t)}catch(l){if("NullInjectorError"===l.name){var s=l.ngTempTokenPath=l.ngTempTokenPath||[];if(s.unshift(x(e)),i)throw l;return Jn(l,e,"R3InjectorError",this.source)}throw l}finally{Bn(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(x(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=A(e)))return!1;var r=L(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=L(o)),null==r)return!1;if(null!=r.imports&&!s){var l;n.push(a);try{Zn(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===l&&(l=[]),l.push(e))})}finally{}if(void 0!==l)for(var c=function(e){var t=l[e],n=t.ngModule,r=t.providers;Zn(r,function(e){return i.processProvider(e,n,r||ie)})},u=0;u<l.length;u++)c(u)}this.injectorDefTypes.add(a);var d=Pe(a)||function(){return new a};this.records.set(a,Ko(d,Ho));var h=r.providers;if(null!=h&&!s){var p=e;Zn(h,function(e){return i.processProvider(e,p,h)})}return void 0!==o&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var i=ea(e=A(e))?e:A(e&&e.provide),r=function(e,t,n){return $o(e)?Ko(void 0,e.useValue):Ko(Xo(e),Ho)}(e);if(ea(e)||!0!==e.multi)this.records.get(i);else{var o=this.records.get(i);o||((o=Ko(void 0,Ho,!0)).factory=function(){return Hn(o.multi)},this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,r)}},{key:"hydrate",value:function(e,t){var n;return t.value===Ho&&(t.value=Yo,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){if(!e.providedIn)return!1;var t=A(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}]),e}();function Qo(e){var t=D(e),n=null!==t?t.factory:Pe(e);if(null!==n)return n;if(e instanceof Cn)throw new Error("Token ".concat(x(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=En(t,"?");throw new Error("Can't resolve all parameters for ".concat(x(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[B]||e[z]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Xo(e,t,n){var i,r=void 0;if(ea(e)){var o=A(e);return Pe(o)||Qo(o)}if($o(e))r=function(){return A(e.useValue)};else if((i=e)&&i.useFactory)r=function(){return e.useFactory.apply(e,(0,l.Z)(Hn(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))r=function(){return zn(A(e.useExisting))};else{var a=A(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Pe(a)||Qo(a);r=function(){return(0,c.Z)(a,(0,l.Z)(Hn(e.deps)))}}return r}function Ko(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&&Ln in e}function ea(e){return"function"==typeof e}function ta(e){return"function"==typeof e||"object"==typeof e&&e instanceof Cn}var na=function(e,t,n){return function(e){var t=Wo(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)},ia=function(){var e=function(){function e(){(0,d.Z)(this,e)}return(0,u.Z)(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?na(e,t,""):na(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Nn,e.NULL=new zo,e.\u0275prov=I({token:e,providedIn:"any",factory:function(){return zn(jo)}}),e.__NG_ELEMENT_ID__=-1,e}();function ra(e,t){Dt(Ui(e)[1],st())}function oa(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(Ee(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=aa(e.inputs),o.declaredInputs=aa(e.declaredInputs),o.outputs=aa(e.outputs);var a=r.hostBindings;a&&ca(e,a);var s=r.viewQuery,l=r.contentQueries;if(s&&sa(e,s),l&&la(e,l),S(e.inputs,r.inputs),S(e.declaredInputs,r.declaredInputs),S(e.outputs,r.outputs),Ee(r)&&r.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(r.data.animation)}}var u=r.features;if(u)for(var d=0;d<u.length;d++){var h=u[d];h&&h.ngInherit&&h(e),h===oa&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,i=e.length-1;i>=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Gt(r.hostAttrs,n=Gt(n,r.hostAttrs))}}(i)}function aa(e){return e===ne?{}:e===ie?[]:e}function sa(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function la(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function ca(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var ua=null;function da(){if(!ua){var e=te.Symbol;if(e&&e.iterator)ua=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(ua=i)}}return ua}var ha=function(){function e(t){(0,d.Z)(this,e),this.wrapped=t}return(0,u.Z)(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 pa(e){return!!fa(e)&&(Array.isArray(e)||!(e instanceof Map)&&da()in e)}function fa(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ma(e,t,n){return e[t]=n}function ga(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function va(e,t,n,i){var r=ga(e,t,n);return ga(e,t+1,i)||r}function ya(e,t,n,i){var r=rt();return ga(r,gt(),t)&&(ot(),wo(It(),r,e,t,n,i)),ya}function _a(e,t,n,i){return ga(e,gt(),n)?t+O(n)+i:jr}function ba(e,t,n,i,r,o){var a=va(e,mt(),n,r);return vt(2),a?t+O(n)+i+O(r)+o:jr}function wa(e,t,n,i,r,o){var a=rt(),s=_a(a,t,n,i);return s!==jr&&wo(It(),a,e,s,r,o),wa}function Sa(e,t,n,i,r,o,a,s){var l=rt(),c=ba(l,t,n,i,r,o);return c!==jr&&wo(It(),l,e,c,a,s),Sa}function xa(e,t,n,i,r,o,a,s){var l=rt(),c=ot(),u=e+Ce,d=c.firstCreatePass?function(e,t,n,i,r,o,a,s,l){var c=t.consts,u=Kr(t,e,4,a||null,$e(c,s));po(t,n,u,$e(c,l)),Dt(t,u);var d=u.tViews=lo(2,u,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,n,i,r,o,a):c.data[u];ct(d,!1);var h=l[11].createComment("");_r(c,l,h,d),zi(h,l),Zo(l,l[u]=Co(h,l,h,d)),Oe(d)&&oo(c,l,d),null!=a&&ao(l,d,s)}function Ca(e){return Ve(nt.lFrame.contextLView,Ce+e)}function ka(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H.Default,n=rt();if(null===n)return zn(e,t);var i=st();return cn(i,n,A(e),t)}function Ta(e,t,n){var i=rt();return ga(i,gt(),t)&&ho(ot(),It(),i,e,t,i[11],n,!1),Ta}function Aa(e,t,n,i,r){var o=r?"class":"style";Lo(e,n,t.inputs[o],o,i)}function Za(e,t,n,i){var r=rt(),o=ot(),a=Ce+e,s=r[11],l=r[a]=sr(s,t,nt.lFrame.currentNamespace),c=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,l=Kr(t,e,2,r,$e(s,o));return po(t,n,l,$e(s,a)),null!==l.attrs&&Bo(l,l.attrs,!1),null!==l.mergedAttrs&&Bo(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(a,o,r,0,t,n,i):o.data[a];ct(c,!0);var u=c.mergedAttrs;null!==u&&Ht(s,l,u);var d=c.classes;null!==d&&Zr(s,l,d);var h=c.styles;null!==h&&Ar(s,l,h),64!=(64&c.flags)&&_r(o,r,l,c),0===nt.lFrame.elementDepthCount&&zi(l,r),nt.lFrame.elementDepthCount++,Oe(c)&&(oo(o,r,c),ro(o,c,r)),null!==i&&ao(r,c)}function Ma(){var e=st();ut()?dt():ct(e=e.parent,!1);var t=e;nt.lFrame.elementDepthCount--;var n=ot();n.firstCreatePass&&(Dt(n,e),Ze(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Aa(n,t,rt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Aa(n,t,rt(),t.stylesWithoutHost,!1)}function Oa(e,t,n,i){Za(e,t,n,i),Ma()}function Ea(e,t,n){var i=rt(),r=ot(),o=e+Ce,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=$e(o,i),s=Kr(t,e,8,"ng-container",a);return null!==a&&Bo(s,a,!0),po(t,n,s,$e(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,r,i,t,n):r.data[o];ct(a,!0);var s=i[o]=i[11].createComment("");_r(r,i,s,a),zi(s,i),Oe(a)&&(oo(r,i,a),ro(r,a,i)),null!=n&&ao(i,a)}function Pa(){var e=st(),t=ot();ut()?dt():ct(e=e.parent,!1),t.firstCreatePass&&(Dt(t,e),Ze(e)&&t.queries.elementEnd(e))}function Ia(e,t,n){Ea(e,t,n),Pa()}function qa(){return rt()}function Na(e){return!!e&&"function"==typeof e.then}function Da(e){return!!e&&"function"==typeof e.subscribe}var Ra=Da;function La(e,t,n,i){var r=rt(),o=ot(),a=st();return Ba(o,r,r[11],a,e,t,!!n,i),La}function Fa(e,t){var n=st(),i=rt(),r=ot();return Ba(r,i,Do(_t(r.data),n,i),n,e,t,!1),Fa}function Ba(e,t,n,i,r,o,a,s){var l=Oe(i),c=e.firstCreatePass&&No(e),u=qo(t),d=!0;if(3&i.type||s){var h=Ge(i,t),p=s?s(h):h,f=u.length,m=s?function(e){return s(Ye(e[i.index]))}:i.index;if(Ue(n)){var g=null;if(!s&&l&&(g=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;o<r.length-1;o+=2){var a=r[o];if(a===n&&r[o+1]===i){var s=t[7],l=r[o+2];return s.length>l?s[l]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,d=!1;else{o=za(i,t,0,o,!1);var v=n.listen(p,r,o);u.push(o,v),c&&c.push(r,m,f,f+1)}}else o=za(i,t,0,o,!0),p.addEventListener(r,o,a),u.push(o),c&&c.push(r,m,f,a)}else o=za(i,t,0,o,!1);var y,_=i.outputs;if(d&&null!==_&&(y=_[r])){var b=y.length;if(b)for(var w=0;w<b;w+=2){var S=t[y[w]][y[w+1]].subscribe(o),x=u.length;u.push(o,S),c&&c.push(r,i.index,x,-(x+1))}}}function ja(e,t,n,i){try{return!1!==n(i)}catch(r){return Ro(e,r),!1}}function za(e,t,n,i,r){return function n(o){if(o===Function)return i;var a=2&e.flags?Qe(e.index,t):t;0==(32&t[2])&&Mo(a);for(var s=ja(t,0,i,o),l=n.__ngNextListenerFn__;l;)s=ja(t,0,l,o)&&s,l=l.__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 Ot(e)}function Ha(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r<t.length;r++){var o=t[r];if("*"!==o){if(null===i?Rr(e,o,!0):Lr(i,o))return r}else n=r}return n}function Ya(e){var t=rt()[16][6];if(!t.projection)for(var n=t.projection=En(e?e.length:1,null),i=n.slice(),r=t.child;null!==r;){var o=e?Ha(r,e):0;null!==o&&(i[o]?i[o].projectionNext=r:n[o]=r,i[o]=r),r=r.next}}function Ja(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=rt(),r=ot(),o=Kr(r,Ce+e,16,null,n||null);null===o.projection&&(o.projection=t),dt(),64!=(64&o.flags)&&kr(r,i,o)}function Ga(e,t,n){return Wa(e,"",t,"",n),Ga}function Wa(e,t,n,i,r){var o=rt(),a=_a(o,t,n,i);return a!==jr&&ho(ot(),It(),o,e,a,o[11],r,!1),Wa}function Va(e,t,n,i,r,o,a){var s=rt(),l=ba(s,t,n,i,r,o);return l!==jr&&ho(ot(),It(),s,e,l,s[11],a,!1),Va}function Qa(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?Yr(o):Gr(o),l=!1;0!==s&&(!1===l||a);){var c=e[s+1];Xa(e[s],t)&&(l=!0,e[s+1]=i?Vr(c):Jr(c)),s=i?Yr(c):Gr(c)}l&&(e[n+1]=i?Jr(o):Vr(o))}function Xa(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&qn(e,t)>=0}var Ka={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function $a(e){return e.substring(Ka.key,Ka.keyEnd)}function es(e){return e.substring(Ka.value,Ka.valueEnd)}function ts(e,t){var n=Ka.textEnd;return n===t?-1:(t=Ka.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Ka.key=t,n),rs(e,t,n))}function ns(e,t){var n=Ka.textEnd,i=Ka.key=rs(e,t,n);return n===i?-1:(i=Ka.keyEnd=function(e,t,n){for(var i;t<n&&(45===(i=e.charCodeAt(t))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(e,i,n),i=os(e,i,n),i=Ka.value=rs(e,i,n),i=Ka.valueEnd=function(e,t,n){for(var i=-1,r=-1,o=-1,a=t,s=a;a<n;){var l=e.charCodeAt(a++);if(59===l)return s;34===l||39===l?s=a=as(e,l,a,n):t===a-4&&85===o&&82===r&&76===i&&40===l?s=a=as(e,41,a,n):l>32&&(s=a),o=r,r=i,i=-33&l}return s}(e,i,n),os(e,i,n))}function is(e){Ka.key=0,Ka.keyEnd=0,Ka.value=0,Ka.valueEnd=0,Ka.textEnd=e.length}function rs(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function os(e,t,n,i){return(t=rs(e,t,n))<n&&t++,t}function as(e,t,n,i){for(var r=-1,o=n;o<i;){var a=e.charCodeAt(o++);if(a==t&&92!==r)return o;r=92==a&&92===r?0:a}throw new Error}function ss(e,t,n){return ps(e,t,n,!1),ss}function ls(e,t){return ps(e,t,null,!0),ls}function cs(e){fs(_s,us,e,!1)}function us(e,t){for(var n=function(e){return is(e),ns(e,rs(e,0,Ka.textEnd))}(t);n>=0;n=ns(t,n))_s(e,$a(t),es(t))}function ds(e){fs(Pn,hs,e,!0)}function hs(e,t){for(var n=function(e){return is(e),ts(e,rs(e,0,Ka.textEnd))}(t);n>=0;n=ts(t,n))Pn(e,$a(t),!0)}function ps(e,t,n,i){var r=rt(),o=ot(),a=vt(2);o.firstUpdatePass&&gs(o,e,a,i),t!==jr&&ga(r,a,t)&&bs(o,o.data[Et()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=x(ai(e)))),e}(t,n),i,a)}function fs(e,t,n,i){var r=ot(),o=vt(2);r.firstUpdatePass&&gs(r,null,o,i);var a=rt();if(n!==jr&&ga(a,o,n)){var s=r.data[Et()];if(xs(s,i)&&!ms(r,o)){var l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(n=C(l,n||"")),Aa(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===jr&&(r=ie);for(var l=0,c=0,u=0<r.length?r[0]:null,d=0<o.length?o[0]:null;null!==u||null!==d;){var h=l<r.length?r[l+1]:void 0,p=c<o.length?o[c+1]:void 0,f=null,m=void 0;u===d?(l+=2,c+=2,h!==p&&(f=d,m=p)):null===d||null!==u&&u<d?(l+=2,f=u):(c+=2,f=d,m=p),null!==f&&bs(e,t,n,i,f,m,a,s),u=l<r.length?r[l]:null,d=c<o.length?o[c]:null}}(r,s,a,a[11],a[o+1],a[o+1]=function(e,t,n){if(null==n||""===n)return ie;var i=[],r=ai(n);if(Array.isArray(r))for(var o=0;o<r.length;o++)e(i,r[o],!0);else if("object"==typeof r)for(var a in r)r.hasOwnProperty(a)&&e(i,a,r[a]);else"string"==typeof r&&t(i,r);return i}(e,t,n),i,o)}}function ms(e,t){return t>=e.expandoStartIndex}function gs(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[Et()],a=ms(e,n);xs(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=_t(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=ys(n=vs(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=vs(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Gr(i))return e[Yr(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[Yr(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=ys(s=vs(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i=void 0,r=t.directiveEnd,o=1+t.directiveStylingLast;o<r;o++)i=ys(i,e[o].hostAttrs,n);return ys(i,t.attrs,n)}(e,t,i)}return void 0!==o&&(i?t.residualClasses=o:t.residualStyles=o),n}(r,o,t,i),function(e,t,n,i,r,o){var a=o?t.classBindings:t.styleBindings,s=Yr(a),l=Gr(a);e[i]=n;var c,u=!1;if(Array.isArray(n)?(null===(c=n[1])||qn(n,c)>0)&&(u=!0):c=n,r)if(0!==l){var d=Yr(e[s+1]);e[i+1]=Hr(d,s),0!==d&&(e[d+1]=Wr(e[d+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=Hr(s,0),0!==s&&(e[s+1]=Wr(e[s+1],i)),s=i;else e[i+1]=Hr(l,0),0===s?s=i:e[l+1]=Wr(e[l+1],i),l=i;u&&(e[i+1]=Jr(e[i+1])),Qa(e,c,i,!0),Qa(e,c,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&qn(o,t)>=0&&(n[i+1]=Vr(n[i+1]))}(t,c,e,i,o),a=Hr(s,l),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function vs(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(i=ys(i,(o=t[s]).hostAttrs,r),o!==e);)s++;return null!==e&&(n.directiveStylingLast=s),i}function ys(e,t,n){var i=n?1:2,r=-1;if(null!==t)for(var o=0;o<t.length;o++){var a=t[o];"number"==typeof a?r=a:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Pn(e,a,!!n||t[++o]))}return void 0===e?null:e}function _s(e,t,n){Pn(e,t,ai(n))}function bs(e,t,n,i,r,o,a,s){if(3&t.type){var l=e.data,c=l[s+1];Ss(1==(1&c)?ws(l,t,n,r,Gr(c),a):void 0)||(Ss(o)||2==(2&c)&&(o=ws(l,null,n,r,s,a)),function(e,t,n,i,r){var o=Ue(e);if(t)r?o?e.addClass(n,i):n.classList.add(i):o?e.removeClass(n,i):n.classList.remove(i);else{var a=-1===i.indexOf("-")?void 0:$i.DashCase;if(null==r)o?e.removeStyle(n,i,a):n.style.removeProperty(i);else{var s="string"==typeof r&&r.endsWith("!important");s&&(r=r.slice(0,-10),a|=$i.Important),o?e.setStyle(n,i,r,a):n.style.setProperty(i,r,s?"important":"")}}}(i,a,Je(Et(),n),r,o))}}function ws(e,t,n,i,r,o){for(var a=null===t,s=void 0;r>0;){var l=e[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u,h=n[r+1];h===jr&&(h=d?ie:void 0);var p=d?In(h,i):u===i?h:void 0;if(c&&!Ss(p)&&(p=In(l,i)),Ss(p)&&(s=p,a))return s;var f=e[r+1];r=a?Yr(f):Gr(f)}if(null!==t){var m=o?t.residualClasses:t.residualStyles;null!=m&&(s=In(m,i))}return s}function Ss(e){return void 0!==e}function xs(e,t){return 0!=(e.flags&(t?16:32))}function Cs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=rt(),i=ot(),r=e+Ce,o=i.firstCreatePass?Kr(i,r,1,t,null):i.data[r],a=n[r]=ar(n[11],t);_r(i,n,a,o),ct(o,!1)}function ks(e){return Ts("",e,""),ks}function Ts(e,t,n){var i=rt(),r=_a(i,e,t,n);return r!==jr&&Fo(i,Et(),r),Ts}function As(e,t,n,i,r){var o=rt(),a=ba(o,e,t,n,i,r);return a!==jr&&Fo(o,Et(),a),As}function Zs(e,t,n,i,r,o,a){var s=rt(),l=function(e,t,n,i,r,o,a,s){var l=function(e,t,n,i,r){var o=va(e,t,n,i);return ga(e,t+2,r)||o}(e,mt(),n,r,a);return vt(3),l?t+O(n)+i+O(r)+o+O(a)+s:jr}(s,e,t,n,i,r,o,a);return l!==jr&&Fo(s,Et(),l),Zs}function Ms(e,t,n){fs(Pn,hs,_a(rt(),e,t,n),!0)}function Os(e,t,n){var i=rt();return ga(i,gt(),t)&&ho(ot(),It(),i,e,t,i[11],n,!0),Os}function Es(e,t,n){var i=rt();if(ga(i,gt(),t)){var r=ot(),o=It();ho(r,o,i,e,t,Do(_t(r.data),o,i),n,!0)}return Es}var Ps=void 0,Is=["en",[["a","p"],["AM","PM"],Ps],[["AM","PM"],Ps,Ps],[["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"]],Ps,[["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"]],Ps,[["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}",Ps,"{1} 'at' {0}",Ps],[".",",",";","%","+","-","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}],qs={};function Ns(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Rs(t);if(n)return n;var i=t.split("-")[0];if(n=Rs(i))return n;if("en"===i)return Is;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function Ds(e){return Ns(e)[Ls.PluralCase]}function Rs(e){return e in qs||(qs[e]=te.ng&&te.ng.common&&te.ng.common.locales&&te.ng.common.locales[e]),qs[e]}var Ls=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}({}),Fs="en-US";function Bs(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(n,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function js(e,t,n){var i=ot();if(i.firstCreatePass){var r=Ee(e);zs(n,i.data,i.blueprint,r,!0),zs(t,i.data,i.blueprint,r,!1)}}function zs(e,t,n,i,r){if(e=A(e),Array.isArray(e))for(var o=0;o<e.length;o++)zs(e[o],t,n,i,r);else{var a=ot(),s=rt(),l=ea(e)?e:A(e.provide),c=Xo(e),u=st(),d=1048575&u.providerIndexes,h=u.directiveStart,p=u.providerIndexes>>20;if(ea(e)||!e.multi){var f=new Ut(c,r,ka),m=Ys(l,t,r?d:d+p,h);-1===m?(an(tn(u,s),a,l),Us(a,e,t.length),t.push(l),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),n.push(f),s.push(f)):(n[m]=f,s[m]=f)}else{var g=Ys(l,t,d+p,h),v=Ys(l,t,d,d+p),y=v>=0&&n[v];if(r&&!y||!r&&!(g>=0&&n[g])){an(tn(u,s),a,l);var _=function(e,t,n,i,r){var o=new Ut(e,n,ka);return o.multi=[],o.index=t,o.componentProviders=0,Hs(o,r,i&&!n),o}(r?Gs:Js,n.length,r,i,c);!r&&y&&(n[v].providerFactory=_),Us(a,e,t.length,0),t.push(l),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),n.push(_),s.push(_)}else Us(a,e,g>-1?g:v,Hs(n[r?v:g],c,!r&&i));!r&&i&&y&&n[v].componentProviders++}}}function Us(e,t,n,i){var r=ea(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function Hs(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ys(e,t,n,i){for(var r=n;r<i;r++)if(t[r]===e)return r;return-1}function Js(e,t,n,i){return Ws(this.multi,[])}function Gs(e,t,n,i){var r,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=fn(n,n[1],this.providerFactory.index,i);Ws(o,r=s.slice(0,a));for(var l=a;l<s.length;l++)r.push(s[l])}else Ws(o,r=[]);return r}function Ws(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function Vs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return js(n,i?i(e):e,t)}}}var Qs=function e(){(0,d.Z)(this,e)},Xs=function e(){(0,d.Z)(this,e)},Ks=function(){function e(){(0,d.Z)(this,e)}return(0,u.Z)(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(x(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),$s=function(){var e=function e(){(0,d.Z)(this,e)};return e.NULL=new Ks,e}();function el(){}function tl(e,t){return new il(Ge(e,t))}var nl=function(){return tl(st(),rt())},il=function(){var e=function e(t){(0,d.Z)(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=nl,e}();function rl(e){return e instanceof il?e.nativeElement:e}var ol=function e(){(0,d.Z)(this,e)},al=function(){var e=function e(){(0,d.Z)(this,e)};return e.__NG_ELEMENT_ID__=function(){return sl()},e}(),sl=function(){var e=rt(),t=Qe(st().index,e);return function(e){return e[11]}(Te(t)?t:e)},ll=function(){var e=function e(){(0,d.Z)(this,e)};return e.\u0275prov=I({token:e,providedIn:"root",factory:function(){return null}}),e}(),cl=function e(t){(0,d.Z)(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},ul=new cl("12.0.2"),dl=function(){function e(){(0,d.Z)(this,e)}return(0,u.Z)(e,[{key:"supports",value:function(e){return pa(e)}},{key:"create",value:function(e){return new pl(e)}}]),e}(),hl=function(e,t){return t},pl=function(){function e(t){(0,d.Z)(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||hl}return(0,u.Z)(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex<vl(n,i,r)?t:n,a=vl(o,i,r),s=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{r||(r=[]);var l=a-i,c=s-i;if(l!=c){for(var u=0;u<l;u++){var d=u<r.length?r[u]:r[u]=0,h=d+u;c<=h&&h<l&&(r[u]=d+1)}r[o.previousIndex]=c-l}}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=[]),!pa(e))throw new Error("Error trying to diff '".concat(x(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,i,r,o=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)r=this._trackByFn(s,i=e[s]),null!==o&&Object.is(o.trackById,r)?(a&&(o=this._verifyReinsertion(o,i,r,s)),Object.is(o.item,i)||this._addIdentityChange(o,i)):(o=this._mismatch(o,i,r,s),a=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var i,r=e[da()]();!(i=r.next()).done;)t(i.value)}(e,function(e){r=t._trackByFn(n,e),null!==o&&Object.is(o.trackById,r)?(a&&(o=t._verifyReinsertion(o,e,r,n)),Object.is(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,r,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=e,this.isDirty}},{key:"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,i){var r;return null===e?r=this._itTail:(r=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,r,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):e=this._addAfter(new fl(t,n),r,i),e}},{key:"_verifyReinsertion",value:function(e,t,n,i){var r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new gl),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 gl),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}(),fl=function e(t,n){(0,d.Z)(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},ml=function(){function e(){(0,d.Z)(this,e),this._head=null,this._tail=null}return(0,u.Z)(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}(),gl=function(){function e(){(0,d.Z)(this,e),this.map=new Map}return(0,u.Z)(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new ml,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 vl(e,t,n){var i=e.previousIndex;if(null===i)return i;var r=0;return n&&i<n.length&&(r=n[i]),i+t+r}var yl=function(){function e(){(0,d.Z)(this,e)}return(0,u.Z)(e,[{key:"supports",value:function(e){return e instanceof Map||fa(e)}},{key:"create",value:function(){return new _l}}]),e}(),_l=function(){function e(){(0,d.Z)(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(0,u.Z)(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(x(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,i){if(n&&n.key===i)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var r=t._getOrCreateRecordForKey(i,e);n=t._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}var o=new bl(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}(),bl=function e(t){(0,d.Z)(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 wl(){return new Sl([new dl])}var Sl=function(){var e=function(){function e(t){(0,d.Z)(this,e),this.factories=t}return(0,u.Z)(e,[{key:"find",value:function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||wl())},deps:[[e,new Xn,new Qn]]}}}]),e}();return e.\u0275prov=I({token:e,providedIn:"root",factory:wl}),e}();function xl(){return new Cl([new yl])}var Cl=function(){var e=function(){function e(t){(0,d.Z)(this,e),this.factories=t}return(0,u.Z)(e,[{key:"find",value:function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||xl())},deps:[[e,new Xn,new Qn]]}}}]),e}();return e.\u0275prov=I({token:e,providedIn:"root",factory:xl}),e}();function kl(e,t,n,i){for(var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&i.push(Ye(o)),Ae(o))for(var a=ke;a<o.length;a++){var s=o[a],c=s[1].firstChild;null!==c&&kl(s[1],s,c,i)}var u=n.type;if(8&u)kl(e,t,n.child,i);else if(32&u)for(var d=er(n,t),h=void 0;h=d();)i.push(h);else if(16&u){var p=wr(t,n);if(Array.isArray(p))i.push.apply(i,(0,l.Z)(p));else{var f=tr(t[16]);kl(f[1],f,p,i,!0)}}n=r?n.projectionNext:n.next}return i}var Tl=function(){function e(t,n){(0,d.Z)(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}return(0,u.Z)(e,[{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return kl(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(e){this._lView[8]=e}},{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(Ae(e)){var t=e[8],n=t?t.indexOf(this):-1;n>-1&&(cr(e,n),On(t,n))}this._attachedToViewContainer=!1}ur(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){co(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(){Oo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){pt(!0);try{Oo(e,t,n)}finally{pt(!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,Cr(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}(),Al=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(e){var i;return(0,d.Z)(this,n),(i=t.call(this,e))._view=e,i}return(0,u.Z)(n,[{key:"detectChanges",value:function(){Eo(this._view)}},{key:"checkNoChanges",value:function(){!function(e){pt(!0);try{Eo(e)}finally{pt(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Tl),Zl=function(e){return function(e,t,n){if(Me(e)&&!n){var i=Qe(e.index,t);return new Tl(i,i)}return 47&e.type?new Tl(t[16],t):null}(st(),rt(),16==(16&e))},Ml=function(){var e=function e(){(0,d.Z)(this,e)};return e.__NG_ELEMENT_ID__=Zl,e}(),Ol=[new yl],El=new Sl([new dl]),Pl=new Cl(Ol),Il=function(){return Dl(st(),rt())},ql=function(){var e=function e(){(0,d.Z)(this,e)};return e.__NG_ELEMENT_ID__=Il,e}(),Nl=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(e,i,r){var o;return(0,d.Z)(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return(0,u.Z)(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Xr(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),eo(t,n,e),new Tl(n)}}]),n}(ql);function Dl(e,t){return 4&e.type?new Nl(t,e,tl(e,t)):null}var Rl=function e(){(0,d.Z)(this,e)},Ll=function e(){(0,d.Z)(this,e)},Fl=function(){return Hl(st(),rt())},Bl=function(){var e=function e(){(0,d.Z)(this,e)};return e.__NG_ELEMENT_ID__=Fl,e}(),jl=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(e,i,r){var o;return(0,d.Z)(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return(0,u.Z)(n,[{key:"element",get:function(){return tl(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new yn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=on(this._hostTNode,this._hostLView);if(Vt(e)){var t=Xt(e,this._hostLView),n=Qt(e);return new yn(t[1].data[n+8],t)}return new yn(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=zl(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-ke}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(Rl,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,i=n[1];if(Ae(n[3])){var r=this.indexOf(e);if(-1!==r)this.detach(r);else{var o=n[3],a=new jl(o,o[6],o[3]);a.detach(a.indexOf(e))}}var s=this._adjustIndex(t),l=this._lContainer;!function(e,t,n,i){var r=ke+i,o=n.length;i>0&&(n[r-1][4]=t),i<o-ke?(t[4]=n[r],Mn(n,ke+i,t)):(n.push(t),t[4]=null),t[3]=n;var a=t[17];null!==a&&n!==a&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(a,t);var s=t[19];null!==s&&s.insertView(e),t[2]|=128}(i,n,l,s);var c=Sr(s,l),u=n[11],d=gr(u,l[7]);return null!==d&&function(e,t,n,i,r,o){i[0]=r,i[6]=t,Cr(e,i,n,1,r,o)}(i,l[6],u,n,d,c),e.attachToViewContainerRef(),Mn(Ul(l),s,e),e}},{key:"move",value:function(e,t){return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=zl(this._lContainer);return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){var t=this._adjustIndex(e,-1),n=cr(this._lContainer,t);n&&(On(Ul(this._lContainer),t),ur(n[1],n))}},{key:"detach",value:function(e){var t=this._adjustIndex(e,-1),n=cr(this._lContainer,t);return n&&null!=On(Ul(this._lContainer),t)?new Tl(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}(Bl);function zl(e){return e[8]}function Ul(e){return e[8]||(e[8]=[])}function Hl(e,t){var n,i=t[e.index];if(Ae(i))n=i;else{var r;if(8&e.type)r=Ye(i);else{var o=t[11];r=o.createComment("");var a=Ge(e,t);pr(o,gr(o,a),r,function(e,t){return Ue(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=Co(i,t,r,e),Zo(t,n)}return new jl(n,e,t)}var Yl={},Jl=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(e){var i;return(0,d.Z)(this,n),(i=t.call(this)).ngModule=e,i}return(0,u.Z)(n,[{key:"resolveComponentFactory",value:function(e){var t=Se(e);return new Vl(t,this.ngModule)}}]),n}($s);function Gl(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var Wl=new Cn("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Wi}}),Vl=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(e,i){var r;return(0,d.Z)(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(Br).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return(0,u.Z)(n,[{key:"inputs",get:function(){return Gl(this.componentDef.inputs)}},{key:"outputs",get:function(){return Gl(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,Yl,r);return o!==Yl||i===Yl?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(ol,He),l=a.get(ll,null),c=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=n?function(e,t,n){if(Ue(e))return e.selectRootElement(t,n===Q.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(c,n,this.componentDef.encapsulation):sr(s.createRenderer(null,this.componentDef),u,function(e){var t=e.toLowerCase();return"svg"===t?Fe:"math"===t?"http://www.w3.org/1998/MathML/":null}(u)),h=this.componentDef.onPush?576:528,p={components:[],scheduler:Wi,clean:Io,playerHandler:null,flags:0},f=lo(0,null,null,1,0,null,null,null,null,null),m=Xr(null,f,p,h,null,null,s,c,l,a);Ct(m);try{var g=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=Kr(a,20,2,"#host",null),l=s.mergedAttrs=t.hostAttrs;null!==l&&(Bo(s,l,!0),null!==e&&(Ht(r,e,l),null!==s.classes&&Zr(r,e,s.classes),null!==s.styles&&Ar(r,e,s.styles)));var c=i.createRenderer(e,t),u=Xr(n,so(t),null,t.onPush?64:16,n[20],s,i,c,null,null);return a.firstCreatePass&&(an(tn(s,n),a,t.type),go(a,s),yo(s,n.length,1)),Zo(n,u),n[20]=u}(d,this.componentDef,m,s,c);if(d)if(n)Ht(c,d,["ng-version",ul.full]);else{var v=function(e){for(var t=[],n=[],i=1,r=2;i<e.length;){var o=e[i];if("string"==typeof o)2===r?""!==o&&t.push(o,e[++i]):8===r&&n.push(o);else{if(!Nr(r))break;r=o}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),y=v.attrs,_=v.classes;y&&Ht(c,d,y),_&&_.length>0&&Zr(c,d,_.join(" "))}if(o=We(f,Ce),void 0!==t)for(var b=o.projection=[],w=0;w<this.ngContentSelectors.length;w++){var S=t[w];b.push(null!=S?Array.from(S):null)}r=function(e,t,n,i,r){var o=n[1],a=function(e,t,n){var i=st();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),_o(e,i,t,$r(e,t,1,null),n));var r=fn(t,e,i.directiveStart,i);zi(r,t);var o=Ge(i,t);return o&&zi(o,t),r}(o,n,t);if(i.components.push(a),e[8]=a,r&&r.forEach(function(e){return e(a,t)}),t.contentQueries){var s=st();t.contentQueries(1,a,s.directiveStart)}var l=st();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Pt(l.index),fo(n[1],l,0,l.directiveStart,l.directiveEnd,t),mo(t,a)),a}(g,this.componentDef,m,p,[ra]),eo(f,m,null)}finally{Mt()}return new Ql(this.componentType,r,tl(o,m),m,o)}}]),n}(Xs),Ql=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(e,i,r,o,a){var s;return(0,d.Z)(this,n),(s=t.call(this)).location=r,s._rootLView=o,s._tNode=a,s.instance=i,s.hostView=s.changeDetectorRef=new Al(o),s.componentType=e,s}return(0,u.Z)(n,[{key:"injector",get:function(){return new yn(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(e){this.hostView.onDestroy(e)}}]),n}(Qs),Xl=new Map,Kl=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(e,i){var r;(0,d.Z)(this,n),(r=t.call(this))._parent=i,r._bootstrapComponents=[],r.injector=(0,o.Z)(r),r.destroyCbs=[],r.componentFactoryResolver=new Jl((0,o.Z)(r));var a=xe(e),s=e[le]||null;return s&&Bs(s),r._bootstrapComponents=Ki(a.bootstrap),r._r3Injector=Wo(e,i,[{provide:Rl,useValue:(0,o.Z)(r)},{provide:$s,useValue:r.componentFactoryResolver}],x(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return(0,u.Z)(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ia.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:H.Default;return e===ia||e===Rl||e===jo?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}(Rl),$l=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(e){var i,r,o;return(0,d.Z)(this,n),(i=t.call(this)).moduleType=e,null!==xe(e)&&(r=e,o=new Set,function e(t){var n=xe(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(x(t)," vs ").concat(x(t.name)))}(i,Xl.get(i),t),Xl.set(i,t));var r,a=Ki(n.imports),l=(0,s.Z)(a);try{for(l.s();!(r=l.n()).done;){var c=r.value;o.has(c)||(o.add(c),e(c))}}catch(u){l.e(u)}finally{l.f()}}(r)),i}return(0,u.Z)(n,[{key:"create",value:function(e){return new Kl(this.moduleType,e)}}]),n}(Ll);function ec(e,t,n){var i=ft()+e,r=rt();return r[i]===jr?ma(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function tc(e,t,n,i){return rc(rt(),ft(),e,t,n,i)}function nc(e,t,n,i,r){return oc(rt(),ft(),e,t,n,i,r)}function ic(e,t){var n=e[t];return n===jr?void 0:n}function rc(e,t,n,i,r,o){var a=t+n;return ga(e,a,r)?ma(e,a+1,o?i.call(o,r):i(r)):ic(e,a+1)}function oc(e,t,n,i,r,o,a){var s=t+n;return va(e,s,r,o)?ma(e,s+2,a?i.call(a,r,o):i(r,o)):ic(e,s+2)}function ac(e,t){var n,i=ot(),r=e+Ce;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new M("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=Pe(n.type)),a=J(ka);try{var s=$t(!1),l=o();return $t(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,rt(),r,l),l}finally{J(a)}}function sc(e,t,n){var i=e+Ce,r=rt(),o=Ve(r,i);return uc(r,cc(r,i)?rc(r,ft(),t,o.transform,n,o):o.transform(n))}function lc(e,t,n,i){var r=e+Ce,o=rt(),a=Ve(o,r);return uc(o,cc(o,r)?oc(o,ft(),t,a.transform,n,i,a):a.transform(n,i))}function cc(e,t){return e[1].data[t].pure}function uc(e,t){return ha.isWrapped(t)&&(t=ha.unwrap(t),e[mt()]=jr),t}function dc(e){return function(t){setTimeout(e,void 0,t)}}var hc=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,d.Z)(this,n),(e=t.call(this)).__isAsync=i,e}return(0,u.Z)(n,[{key:"emit",value:function(e){(0,i.Z)((0,r.Z)(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,o){var a,s,l,c=e,u=t||function(){return null},d=o;if(e&&"object"==typeof e){var h=e;c=null===(a=h.next)||void 0===a?void 0:a.bind(h),u=null===(s=h.error)||void 0===s?void 0:s.bind(h),d=null===(l=h.complete)||void 0===l?void 0:l.bind(h)}this.__isAsync&&(u=dc(u),c&&(c=dc(c)),d&&(d=dc(d)));var p=(0,i.Z)((0,r.Z)(n.prototype),"subscribe",this).call(this,{next:c,error:u,complete:d});return e instanceof g.w&&e.add(p),p}}]),n}(v.xQ);function pc(){return this._results[da()]()}var fc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,d.Z)(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=da(),i=e.prototype;i[n]||(i[n]=pc)}return(0,u.Z)(e,[{key:"changes",get:function(){return this._changes||(this._changes=new hc)}},{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 i=An(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++){var r=e[i],o=t[i];if(n&&(r=n(r),o=n(o)),o!==r)return!1}return!0}(n._results,i,t))&&(n._results=i,n.length=i.length,n.last=i[this.length-1],n.first=i[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}(),mc=function(){function e(t){(0,d.Z)(this,e),this.queryList=t,this.matches=null}return(0,u.Z)(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),gc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,d.Z)(this,e),this.queries=t}return(0,u.Z)(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o<i;o++){var a=n.getByIndex(o);r.push(this.queries[a.indexInDeclarationView].clone())}return new e(r)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==Oc(e,t).matches&&this.queries[t].setDirty()}}]),e}(),vc=function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,d.Z)(this,e),this.predicate=t,this.flags=n,this.read=i},yc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,d.Z)(this,e),this.queries=t}return(0,u.Z)(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,i=0;i<this.length;i++){var r=null!==n?n.length:0,o=this.getByIndex(i).embeddedTView(t,r);o&&(o.indexInDeclarationView=i,null!==n?n.push(o):n=[o])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(e){this.queries.push(e)}}]),e}(),_c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;(0,d.Z)(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return(0,u.Z)(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 i=0;i<n.length;i++){var r=n[i];this.matchTNodeWithReadOption(e,t,bc(t,r)),this.matchTNodeWithReadOption(e,t,pn(t,e,r,!1,!1))}else n===ql?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,pn(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===il||i===Bl||i===ql&&4&t.type)this.addMatch(t.index,-2);else{var r=pn(t,e,i,!1,!1);null!==r&&this.addMatch(t.index,r)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}]),e}();function bc(e,t){var n=e.localNames;if(null!==n)for(var i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function wc(e,t,n,i){return-1===n?function(e,t){return 11&e.type?tl(e,t):4&e.type?Dl(e,t):null}(t,e):-2===n?function(e,t,n){return n===il?tl(t,e):n===ql?Dl(t,e):n===Bl?Hl(t,e):void 0}(e,t,i):fn(e,e[1],n,t)}function Sc(e,t,n,i){var r=t[19].queries[i];if(null===r.matches){for(var o=e.data,a=n.matches,s=[],l=0;l<a.length;l+=2){var c=a[l];s.push(c<0?null:wc(t,o[c],a[l+1],n.metadata.read))}r.matches=s}return r.matches}function xc(e,t,n,i){var r=e.queries.getByIndex(n),o=r.matches;if(null!==o)for(var a=Sc(e,t,r,n),s=0;s<o.length;s+=2){var l=o[s];if(l>0)i.push(a[s/2]);else{for(var c=o[s+1],u=t[-l],d=ke;d<u.length;d++){var h=u[d];h[17]===h[3]&&xc(h[1],h,c,i)}if(null!==u[9])for(var p=u[9],f=0;f<p.length;f++){var m=p[f];xc(m[1],m,c,i)}}}return i}function Cc(e){var t=rt(),n=ot(),i=bt();wt(i+1);var r=Oc(n,i);if(e.dirty&&Xe(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{var o=r.crossesNgTemplate?xc(n,t,i,[]):Sc(n,t,r,i);e.reset(o,rl),e.notifyOnChanges()}return!0}return!1}function kc(e,t,n){var i=ot();i.firstCreatePass&&(Mc(i,new vc(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Zc(i,rt(),t)}function Tc(e,t,n,i){var r=ot();if(r.firstCreatePass){var o=st();Mc(r,new vc(t,n,i),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)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}Zc(r,rt(),n)}function Ac(){return e=rt(),t=bt(),e[19].queries[t].queryList;var e,t}function Zc(e,t,n){var i=new fc(4==(4&n));co(e,t,i,i.destroy),null===t[19]&&(t[19]=new gc),t[19].queries.push(new mc(i))}function Mc(e,t,n){null===e.queries&&(e.queries=new yc),e.queries.track(new _c(t,n))}function Oc(e,t){return e.queries.getByIndex(t)}function Ec(e,t){return Dl(e,t)}var Pc=new Cn("Application Initializer"),Ic=function(){var e=function(){function e(t){var n=this;(0,d.Z)(this,e),this.appInits=t,this.resolve=el,this.reject=el,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return(0,u.Z)(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var i=function(n){var i=e.appInits[n]();if(Na(i))t.push(i);else if(Ra(i)){var r=new Promise(function(e,t){i.subscribe({complete:e,error:t})});t.push(r)}},r=0;r<this.appInits.length;r++)i(r);Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zn(Pc,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}(),qc=new Cn("AppId"),Nc={provide:qc,useFactory:function(){return"".concat(Dc()).concat(Dc()).concat(Dc())},deps:[]};function Dc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Rc=new Cn("Platform Initializer"),Lc=new Cn("Platform ID"),Fc=new Cn("appBootstrapListener"),Bc=function(){var e=function(){function e(){(0,d.Z)(this,e)}return(0,u.Z)(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=I({token:e,factory:e.\u0275fac}),e}(),jc=new Cn("LocaleId"),zc=new Cn("DefaultCurrencyCode"),Uc=function e(t,n){(0,d.Z)(this,e),this.ngModuleFactory=t,this.componentFactories=n},Hc=function(e){return new $l(e)},Yc=Hc,Jc=function(e){return Promise.resolve(Hc(e))},Gc=function(e){var t=Hc(e),n=Ki(xe(e).declarations).reduce(function(e,t){var n=Se(t);return n&&e.push(new Vl(n)),e},[]);return new Uc(t,n)},Wc=Gc,Vc=function(e){return Promise.resolve(Gc(e))},Qc=function(){var e=function(){function e(){(0,d.Z)(this,e),this.compileModuleSync=Yc,this.compileModuleAsync=Jc,this.compileModuleAndAllComponentsSync=Wc,this.compileModuleAndAllComponentsAsync=Vc}return(0,u.Z)(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=I({token:e,factory:e.\u0275fac}),e}(),Xc=function(){return Promise.resolve(0)}();function Kc(e){"undefined"==typeof Zone?Xc.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var $c=function(){function e(t){var n=t.enableLongStackTrace,i=void 0!==n&&n,r=t.shouldCoalesceEventChangeDetection,o=void 0!==r&&r,a=t.shouldCoalesceRunChangeDetection,s=void 0!==a&&a;if((0,d.Z)(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new hc(!1),this.onMicrotaskEmpty=new hc(!1),this.onStable=new hc(!1),this.onError=new hc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var l,c,u=this;u._nesting=0,u._outer=u._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(u._inner=u._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(u._inner=u._inner.fork(Zone.longStackTraceZoneSpec)),u.shouldCoalesceEventChangeDetection=!s&&o,u.shouldCoalesceRunChangeDetection=s,u.lastRequestAnimationFrameId=-1,u.nativeRequestAnimationFrame=function(){var e=te.requestAnimationFrame,t=te.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,c=function(){!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(te,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,nu(e),e.isCheckStableRunning=!0,tu(e),e.isCheckStableRunning=!1},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),nu(e))}(l)},(l=u)._inner=l._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,n,i,r,o){try{return iu(l),e.invokeTask(n,i,r,o)}finally{(l.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||l.shouldCoalesceRunChangeDetection)&&c(),ru(l)}},onInvoke:function(e,t,n,i,r,o,a){try{return iu(l),e.invoke(n,i,r,o,a)}finally{l.shouldCoalesceRunChangeDetection&&c(),ru(l)}},onHasTask:function(e,t,n,i){e.hasTask(n,i),t===n&&("microTask"==i.change?(l._hasPendingMicrotasks=i.microTask,nu(l),tu(l)):"macroTask"==i.change&&(l.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,t,n,i){return e.handleError(n,i),l.runOutsideAngular(function(){return l.onError.emit(i)}),!1}})}return(0,u.Z)(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,i){var r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,e,eu,el,el);try{return r.runTask(o,t,n)}finally{r.cancelTask(o)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}(),eu={};function tu(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 nu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function iu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ru(e){e._nesting--,tu(e)}var ou=function(){function e(){(0,d.Z)(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new hc,this.onMicrotaskEmpty=new hc,this.onStable=new hc,this.onError=new hc}return(0,u.Z)(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,i){return e.apply(t,n)}}]),e}(),au=function(){var e=function(){function e(t){var n=this;(0,d.Z)(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(0,u.Z)(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(){$c.assertNotInAngularZone(),Kc(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())Kc(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]}},{key:"addCallback",value:function(e,t,n){var i=this,r=-1;t&&t>0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" 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)(zn($c))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}(),su=function(){var e=function(){function e(){(0,d.Z)(this,e),this._applications=new Map,uu.addToWindow(this)}return(0,u.Z)(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 uu.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}();function lu(e){uu=e}var cu,uu=new(function(){function e(){(0,d.Z)(this,e)}return(0,u.Z)(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),du=!0,hu=!1;function pu(){return hu=!0,du}function fu(){if(hu)throw new Error("Cannot enable prod mode after platform setup.");du=!1}var mu=function(e,t,n){var i=new $l(n);return Promise.resolve(i)},gu=new Cn("AllowMultipleToken"),vu=function e(t,n){(0,d.Z)(this,e),this.name=t,this.token=n};function yu(e){if(cu&&!cu.destroyed&&!cu.injector.get(gu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");cu=e.get(Su);var t=e.get(Rc,null);return t&&t.forEach(function(e){return e()}),cu}function _u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new Cn(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=wu();if(!o||o.injector.get(gu,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:Uo,useValue:"platform"});yu(ia.create({providers:a,name:i}))}return bu(r)}}function bu(e){var t=wu();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 wu(){return cu&&!cu.destroyed?cu:null}var Su=function(){var e=function(){function e(t){(0,d.Z)(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return(0,u.Z)(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,o=(i={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===(n=t?t.ngZone:void 0)?new ou:("zone.js"===n?void 0:n)||new $c({enableLongStackTrace:pu(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),a=[{provide:$c,useValue:o}];return o.run(function(){var t=ia.create({providers:a,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Gi,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var e=o.onError.subscribe({next:function(e){i.handleError(e)}});n.onDestroy(function(){ku(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var o=((a=n.injector.get(Ic)).runInitializers(),a.donePromise.then(function(){return Bs(n.injector.get(jc,Fs)||Fs),r._moduleDoBootstrap(n),n}));return Na(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(i,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=xu({},n);return mu(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Cu);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(x(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)(zn(ia))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}();function xu(e,t){return Array.isArray(t)?t.reduce(xu,e):Object.assign(Object.assign({},e),t)}var Cu=function(){var e=function(){function e(t,n,i,r,o){var a=this;(0,d.Z)(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,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 s=new y.y(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 y.y(function(e){var t;a._zone.runOutsideAngular(function(){t=a._zone.onStable.subscribe(function(){$c.assertNotInAngularZone(),Kc(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){$c.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=(0,_.T)(s,l.pipe((0,b.B)()))}return(0,u.Z)(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Xs?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(Rl),o=n.create(ia.NULL,[],t||n.selector,r),a=o.location.nativeElement,s=o.injector.get(au,null),l=s&&o.injector.get(su);return s&&l&&l.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),ku(i.components,o),l&&l.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=(0,s.Z)(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}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;ku(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Fc,[]).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)(zn($c),zn(ia),zn(Gi),zn($s),zn(Ic))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}();function ku(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Tu=function e(){(0,d.Z)(this,e)},Au=function e(){(0,d.Z)(this,e)},Zu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Mu=function(){var e=function(){function e(t,n){(0,d.Z)(this,e),this._compiler=t,this._config=n||Zu}return(0,u.Z)(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=e.split("#"),r=(0,a.Z)(i,2),o=r[0],s=r[1];return void 0===s&&(s="default"),n(98255)(o).then(function(e){return e[s]}).then(function(e){return Ou(e,o,s)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=e.split("#"),i=(0,a.Z)(t,2),r=i[0],o=i[1],s="NgFactory";return void 0===o&&(o="default",s=""),n(98255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[o+s]}).then(function(e){return Ou(e,r,o)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(zn(Qc),zn(Au,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}();function Ou(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Eu=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return n}(function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return n}(Ml)),Pu=function(e){return null},Iu=_u(null,"core",[{provide:Lc,useValue:"unknown"},{provide:Su,deps:[ia]},{provide:su,deps:[]},{provide:Bc,deps:[]}]),qu=[{provide:Cu,useClass:Cu,deps:[$c,ia,Gi,$s,Ic]},{provide:Wl,deps:[$c],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Ic,useClass:Ic,deps:[[new Qn,Pc]]},{provide:Qc,useClass:Qc,deps:[]},Nc,{provide:Sl,useFactory:function(){return El},deps:[]},{provide:Cl,useFactory:function(){return Pl},deps:[]},{provide:jc,useFactory:function(e){return Bs(e=e||"undefined"!=typeof $localize&&$localize.locale||Fs),e},deps:[[new Vn(jc),new Qn,new Xn]]},{provide:zc,useValue:"USD"}],Nu=function(){var e=function e(t){(0,d.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)(zn(Cu))},e.\u0275mod=ve({type:e}),e.\u0275inj=N({providers:qu}),e}()},19061:function(e,t,n){"use strict";n.d(t,{Zs:function(){return Re},Fj:function(){return b},qu:function(){return ze},NI:function(){return ge},u:function(){return Ie},cw:function(){return ve},sg:function(){return Ee},u5:function(){return Fe},Cf:function(){return x},JU:function(){return v},a5:function(){return H},JJ:function(){return J},JL:function(){return G},F:function(){return we},On:function(){return Ce},wV:function(){return Ae},UX:function(){return Be},kI:function(){return T},_Y:function(){return ke}});var i=n(3574),r=n(20454),o=n(25801),a=n(49843),s=n(37859),l=n(61680),c=n(11254),u=n(37602),d=n(40098),h=n(61493),p=n(91925),f=n(85639),m=function(){var e=function(){function e(t,n){(0,l.Z)(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return(0,c.Z)(e,[{key:"setProperty",value:function(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"setDisabledState",value:function(e){this.setProperty("disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.Y36(u.Qsj),u.Y36(u.SBq))},e.\u0275dir=u.lG2({type:e}),e}(),g=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return n}(m);return e.\u0275fac=function(){var t;return function(n){return(t||(t=u.n5z(e)))(n||e)}}(),e.\u0275dir=u.lG2({type:e,features:[u.qOj]}),e}(),v=new u.OlP("NgValueAccessor"),y={provide:v,useExisting:(0,u.Gpc)(function(){return b}),multi:!0},_=new u.OlP("CompositionEventMode"),b=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var o,a;return(0,l.Z)(this,n),(o=t.call(this,e,i))._compositionMode=r,o._composing=!1,null==o._compositionMode&&(o._compositionMode=(a=(0,d.q)()?(0,d.q)().getUserAgent():"",!/android (\d+)/.test(a.toLowerCase()))),o}return(0,c.Z)(n,[{key:"writeValue",value:function(e){this.setProperty("value",null==e?"":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)}}]),n}(m);return e.\u0275fac=function(t){return new(t||e)(u.Y36(u.Qsj),u.Y36(u.SBq),u.Y36(_,8))},e.\u0275dir=u.lG2({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&&u.NdJ("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:[u._Bn([y]),u.qOj]}),e}();function w(e){return null==e||0===e.length}function S(e){return null!=e&&"number"==typeof e.length}var x=new u.OlP("NgValidators"),C=new u.OlP("NgAsyncValidators"),k=/^(?=.{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])?)*$/,T=function(){function e(){(0,l.Z)(this,e)}return(0,c.Z)(e,null,[{key:"min",value:function(e){return t=e,function(e){if(w(e.value)||w(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(w(e.value)||w(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 A(e)}},{key:"requiredTrue",value:function(e){return Z(e)}},{key:"email",value:function(e){return function(e){return w(e.value)||k.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return t=e,function(e){return w(e.value)||!S(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 S(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?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(w(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):M;var t,n,i}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return N(e)}},{key:"composeAsync",value:function(e){return R(e)}}]),e}();function A(e){return w(e.value)?{required:!0}:null}function Z(e){return!0===e.value?null:{required:!0}}function M(e){return null}function O(e){return null!=e}function E(e){var t=(0,u.QGY)(e)?(0,h.D)(e):e;return(0,u.CqO)(t),t}function P(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 I(e,t){return t.map(function(t){return t(e)})}function q(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function N(e){if(!e)return null;var t=e.filter(O);return 0==t.length?null:function(e){return P(I(e,t))}}function D(e){return null!=e?N(q(e)):null}function R(e){if(!e)return null;var t=e.filter(O);return 0==t.length?null:function(e){var n=I(e,t).map(E);return(0,p.D)(n).pipe((0,f.U)(P))}}function L(e){return null!=e?R(q(e)):null}function F(e,t){return null===e?[t]:Array.isArray(e)?[].concat((0,o.Z)(e),[t]):[e,t]}function B(e){return e._rawValidators}function j(e){return e._rawAsyncValidators}var z=function(){var e=function(){function e(){(0,l.Z)(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return(0,c.Z)(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=D(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=L(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=u.lG2({type:e}),e}(),U=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,c.Z)(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(z);return e.\u0275fac=function(){var t;return function(n){return(t||(t=u.n5z(e)))(n||e)}}(),e.\u0275dir=u.lG2({type:e,features:[u.qOj]}),e}(),H=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,l.Z)(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(z),Y=function(){function e(t){(0,l.Z)(this,e),this._cd=t}return(0,c.Z)(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}(),J=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){return(0,l.Z)(this,n),t.call(this,e)}return n}(Y);return e.\u0275fac=function(t){return new(t||e)(u.Y36(H,2))},e.\u0275dir=u.lG2({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&u.ekj("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:[u.qOj]}),e}(),G=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){return(0,l.Z)(this,n),t.call(this,e)}return n}(Y);return e.\u0275fac=function(t){return new(t||e)(u.Y36(U,10))},e.\u0275dir=u.lG2({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&u.ekj("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:[u.qOj]}),e}();function W(e,t){return[].concat((0,o.Z)(t.path),[e])}function V(e,t){K(e,t),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&&ee(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&&ee(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 Q(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),$(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function X(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function K(e,t){var n=B(e);null!==t.validator?e.setValidators(F(n,t.validator)):"function"==typeof n&&e.setValidators([n]);var i=j(e);null!==t.asyncValidator?e.setAsyncValidators(F(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);var r=function(){return e.updateValueAndValidity()};X(t._rawValidators,r),X(t._rawAsyncValidators,r)}function $(e,t){var n=!1;if(null!==e){if(null!==t.validator){var i=B(e);if(Array.isArray(i)&&i.length>0){var r=i.filter(function(e){return e!==t.validator});r.length!==i.length&&(n=!0,e.setValidators(r))}}if(null!==t.asyncValidator){var o=j(e);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(e){return e!==t.asyncValidator});a.length!==o.length&&(n=!0,e.setAsyncValidators(a))}}}var s=function(){};return X(t._rawValidators,s),X(t._rawAsyncValidators,s),n}function ee(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function te(e,t){K(e,t)}function ne(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function ie(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 re(e,t){if(!t)return null;Array.isArray(t);var n=void 0,i=void 0,r=void 0;return t.forEach(function(e){e.constructor===b?n=e:Object.getPrototypeOf(e.constructor)===g?i=e:r=e}),r||i||n||null}function oe(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var ae="VALID",se="INVALID",le="PENDING",ce="DISABLED";function ue(e){return(fe(e)?e.validators:e)||null}function de(e){return Array.isArray(e)?D(e):e||null}function he(e,t){return(fe(t)?t.asyncValidators:e)||null}function pe(e){return Array.isArray(e)?L(e):e||null}function fe(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var me=function(){function e(t,n){(0,l.Z)(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=de(this._rawValidators),this._composedAsyncValidatorFn=pe(this._rawAsyncValidators)}return(0,c.Z)(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===ae}},{key:"invalid",get:function(){return this.status===se}},{key:"pending",get:function(){return this.status==le}},{key:"disabled",get:function(){return this.status===ce}},{key:"enabled",get:function(){return this.status!==ce}},{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=de(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=pe(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=le,!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=ce,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=ae,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!==ae&&this.status!==le||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()?ce:ae}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=le,this._hasOwnPendingAsyncValidator=!0;var n=E(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof ve?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof ye&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"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 u.vpe,this.statusChanges=new u.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?ce:this.errors?se:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(le)?le:this._anyControlsHaveStatus(se)?se:ae}},{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){fe(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),ge=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return(0,l.Z)(this,n),(e=t.call(this,ue(r),he(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),e}return(0,c.Z)(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){oe(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){oe(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}(me),ve=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var o;return(0,l.Z)(this,n),(o=t.call(this,ue(i),he(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return(0,c.Z)(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){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof ge?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 i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t<n.length;t++){var i=n[t],r=this.controls[i];if(this.contains(i)&&e(r))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t})}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild(function(e,i){n=t(n,e,i)}),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++)if(this.controls[t[e]].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(me),ye=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var o;return(0,l.Z)(this,n),(o=t.call(this,ue(i),he(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return(0,c.Z)(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};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({emitEvent:n.emitEvent}),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,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof ge?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{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=(0,r.Z)(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}(me),_e={provide:U,useExisting:(0,u.Gpc)(function(){return we})},be=function(){return Promise.resolve(null)}(),we=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new u.vpe,r.form=new ve({},D(e),L(i)),r}return(0,c.Z)(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;be.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),V(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;be.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),oe(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;be.then(function(){var n=t._findContainer(e.path),i=new ve({});te(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;be.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;be.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,ie(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}(U);return e.\u0275fac=function(t){return new(t||e)(u.Y36(x,10),u.Y36(C,10))},e.\u0275dir=u.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&u.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u._Bn([_e]),u.qOj]}),e}(),Se={provide:H,useExisting:(0,u.Gpc)(function(){return Ce})},xe=function(){return Promise.resolve(null)}(),Ce=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,r,o,a){var s;return(0,l.Z)(this,n),(s=t.call(this)).control=new ge,s._registered=!1,s.update=new u.vpe,s._parent=e,s._setValidators(r),s._setAsyncValidators(o),s.valueAccessor=re((0,i.Z)(s),a),s}return(0,c.Z)(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),ne(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?W(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(){V(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;xe.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;xe.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}]),n}(H);return e.\u0275fac=function(t){return new(t||e)(u.Y36(U,9),u.Y36(x,10),u.Y36(C,10),u.Y36(v,10))},e.\u0275dir=u.lG2({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:[u._Bn([Se]),u.qOj,u.TTD]}),e}(),ke=function(){var e=function e(){(0,l.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=u.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),Te={provide:v,useExisting:(0,u.Gpc)(function(){return Ae}),multi:!0},Ae=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,c.Z)(n,[{key:"writeValue",value:function(e){this.setProperty("value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}}]),n}(g);return e.\u0275fac=function(){var t;return function(n){return(t||(t=u.n5z(e)))(n||e)}}(),e.\u0275dir=u.lG2({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&u.NdJ("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[u._Bn([Te]),u.qOj]}),e}(),Ze=function(){var e=function e(){(0,l.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=u.oAB({type:e}),e.\u0275inj=u.cJS({}),e}(),Me=new u.OlP("NgModelWithFormControlWarning"),Oe={provide:U,useExisting:(0,u.Gpc)(function(){return Ee})},Ee=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new u.vpe,r._setValidators(e),r._setAsyncValidators(i),r}return(0,c.Z)(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&&($(this.form,this),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 V(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){Q(e.control||null,e),oe(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,ie(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,i=e.form.get(t.path);n!==i&&(Q(n||null,t),i instanceof ge&&(V(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);te(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 $(e,t)}(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(){K(this.form,this),this._oldForm&&$(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(U);return e.\u0275fac=function(t){return new(t||e)(u.Y36(x,10),u.Y36(C,10))},e.\u0275dir=u.lG2({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&u.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u._Bn([Oe]),u.qOj,u.TTD]}),e}(),Pe={provide:H,useExisting:(0,u.Gpc)(function(){return Ie})},Ie=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,r,o,a,s){var c;return(0,l.Z)(this,n),(c=t.call(this))._ngModelWarningConfig=s,c._added=!1,c.update=new u.vpe,c._ngModelWarningSent=!1,c._parent=e,c._setValidators(r),c._setAsyncValidators(o),c.valueAccessor=re((0,i.Z)(c),a),c}return(0,c.Z)(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),ne(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 W(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}(H);return e.\u0275fac=function(t){return new(t||e)(u.Y36(U,13),u.Y36(x,10),u.Y36(C,10),u.Y36(v,10),u.Y36(Me,8))},e.\u0275dir=u.lG2({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[u._Bn([Pe]),u.qOj,u.TTD]}),e._ngModelWarningSentOnce=!1,e}(),qe={provide:x,useExisting:(0,u.Gpc)(function(){return De}),multi:!0},Ne={provide:x,useExisting:(0,u.Gpc)(function(){return Re}),multi:!0},De=function(){var e=function(){function e(){(0,l.Z)(this,e),this._required=!1}return(0,c.Z)(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!=="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?A(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=u.lG2({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&u.uIk("required",t.required?"":null)},inputs:{required:"required"},features:[u._Bn([qe])]}),e}(),Re=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,c.Z)(n,[{key:"validate",value:function(e){return this.required?Z(e):null}}]),n}(De);return e.\u0275fac=function(){var t;return function(n){return(t||(t=u.n5z(e)))(n||e)}}(),e.\u0275dir=u.lG2({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&u.uIk("required",t.required?"":null)},features:[u._Bn([Ne]),u.qOj]}),e}(),Le=function(){var e=function e(){(0,l.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=u.oAB({type:e}),e.\u0275inj=u.cJS({imports:[[Ze]]}),e}(),Fe=function(){var e=function e(){(0,l.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=u.oAB({type:e}),e.\u0275inj=u.cJS({imports:[Le]}),e}(),Be=function(){var e=function(){function e(){(0,l.Z)(this,e)}return(0,c.Z)(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:Me,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=u.oAB({type:e}),e.\u0275inj=u.cJS({imports:[Le]}),e}();function je(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}var ze=function(){var e=function(){function e(){(0,l.Z)(this,e)}return(0,c.Z)(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),i=null,r=null,o=void 0;return null!=t&&(je(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new ve(n,{asyncValidators:r,updateOn:o,validators:i})}},{key:"control",value:function(e,t,n){return new ge(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map(function(e){return i._createControl(e)});return new ye(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n}},{key:"_createControl",value:function(e){return e instanceof ge||e instanceof ve||e instanceof ye?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=(0,u.Yz7)({factory:function(){return new e},token:e,providedIn:Be}),e}()},59412:function(e,t,n){"use strict";n.d(t,{yN:function(){return C},mZ:function(){return k},rD:function(){return N},K7:function(){return ie},HF:function(){return $},Y2:function(){return W},BQ:function(){return Z},X2:function(){return D},uc:function(){return F},Nv:function(){return re},ey:function(){return le},Ng:function(){return de},nP:function(){return X},us:function(){return K},wG:function(){return V},si:function(){return Q},IR:function(){return Y},CB:function(){return ce},jH:function(){return ue},pj:function(){return O},Kr:function(){return E},Id:function(){return M},FD:function(){return I},dB:function(){return q},sb:function(){return P},E0:function(){return R}}),n(3574),n(51751),n(12558);var i=n(49843),r=n(37859),o=n(11254),a=n(61680),s=n(37602),l=n(6517),c=n(8392),u=new s.GfV("12.0.2"),d=n(40098),h=n(78081),p=n(68707),f=n(89797),m=n(15427),g=n(57682),v=n(38480),y=n(32819),_=["*",[["mat-option"],["ng-container"]]],b=["*","mat-option, ng-container"];function w(e,t){if(1&e&&s._UZ(0,"mat-pseudo-checkbox",4),2&e){var n=s.oxw();s.Q6J("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function S(e,t){if(1&e&&(s.TgZ(0,"span",5),s._uU(1),s.qZA()),2&e){var n=s.oxw();s.xp6(1),s.hij("(",n.group.label,")")}}var x=["*"],C=function(){var e=function e(){(0,a.Z)(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}(),k=function(){var e=function e(){(0,a.Z)(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),T=new s.GfV("12.0.2"),A=new s.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Z=function(){var e=function(){function e(t,n,i){(0,a.Z)(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return(0,o.Z)(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return(0,s.X6Q)()&&!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)&&T.full!==u.full&&console.warn("The Angular Material version ("+T.full+") does not match the Angular CDK version ("+u.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(s.LFG(l.qm),s.LFG(A,8),s.LFG(d.K0))},e.\u0275mod=s.oAB({type:e}),e.\u0275inj=s.cJS({imports:[[c.vT],c.vT]}),e}();function M(e){return function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){var e;(0,a.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disabled=!1,e}return(0,o.Z)(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,h.Ig)(e)}}]),n}(e)}function O(e,t){return function(e){(0,i.Z)(s,e);var n=(0,r.Z)(s);function s(){var e;(0,a.Z)(this,s);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).defaultColor=t,e.color=t,e}return(0,o.Z)(s,[{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)}}]),s}(e)}function E(e){return function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){var e;(0,a.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disableRipple=!1,e}return(0,o.Z)(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=(0,h.Ig)(e)}}]),n}(e)}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){(0,i.Z)(s,e);var n=(0,r.Z)(s);function s(){var e;(0,a.Z)(this,s);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r)))._tabIndex=t,e.defaultTabIndex=t,e}return(0,o.Z)(s,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?(0,h.su)(e):this.defaultTabIndex}}]),s}(e)}function I(e){return function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){var e;(0,a.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).errorState=!1,e.stateChanges=new p.xQ,e}return(0,o.Z)(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 q(e){return function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){var e;(0,a.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._isInitialized=!1,e._pendingSubscribers=[],e.initialized=new f.y(function(t){e._isInitialized?e._notifySubscriber(t):e._pendingSubscribers.push(t)}),e}return(0,o.Z)(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 N=function(){var e=function(){function e(){(0,a.Z)(this,e)}return(0,o.Z)(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=s.Yz7({factory:function(){return new e},token:e,providedIn:"root"}),e}(),D=function(){var e=function e(){(0,a.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=s.lG2({type:e,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),e}();function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";e.changes.pipe((0,g.O)(e)).subscribe(function(e){var i=e.length;L(t,"".concat(n,"-2-line"),!1),L(t,"".concat(n,"-3-line"),!1),L(t,"".concat(n,"-multi-line"),!1),2===i||3===i?L(t,"".concat(n,"-").concat(i,"-line"),!0):i>3&&L(t,"".concat(n,"-multi-line"),!0)})}function L(e,t,n){var i=e.nativeElement.classList;n?i.add(t):i.remove(t)}var F=function(){var e=function e(){(0,a.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=s.oAB({type:e}),e.\u0275inj=s.cJS({imports:[[Z],Z]}),e}(),B=function(){function e(t,n,i){(0,a.Z)(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return(0,o.Z)(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),j={enterDuration:450,exitDuration:400},z=(0,m.i$)({passive:!0}),U=["mousedown","touchstart"],H=["mouseup","mouseleave","touchend","touchcancel"],Y=function(){function e(t,n,i,r){(0,a.Z)(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=(0,h.fI)(i))}return(0,o.Z)(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},j),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||G(e,t,r),s=e-r.left,l=t-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left="".concat(s-a,"px"),u.style.top="".concat(l-a,"px"),u.style.height="".concat(2*a,"px"),u.style.width="".concat(2*a,"px"),null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration="".concat(c,"ms"),this._containerElement.appendChild(u),J(u),u.style.transform="scale(1)";var d=new B(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(function(){var e=d===n._mostRecentTransientRipple;d.state=1,i.persistent||e&&n._isPointerDown||d.fadeOut()},c),d}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},j),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=(0,h.fI)(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(U))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(H),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=(0,l.X6)(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&&!(0,l.yG)(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,z)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(U.forEach(function(t){e._triggerElement.removeEventListener(t,e,z)}),this._pointerUpEventsRegistered&&H.forEach(function(t){e._triggerElement.removeEventListener(t,e,z)}))}}]),e}();function J(e){window.getComputedStyle(e).getPropertyValue("opacity")}function G(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}var W=new s.OlP("mat-ripple-global-options"),V=function(){var e=function(){function e(t,n,i,r,o){(0,a.Z)(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Y(this,n,t,i)}return(0,o.Z)(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),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:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{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)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(m.t4),s.Y36(W,8),s.Y36(v.Qb,8))},e.\u0275dir=s.lG2({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&s.ekj("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}(),Q=function(){var e=function e(){(0,a.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=s.oAB({type:e}),e.\u0275inj=s.cJS({imports:[[Z,m.ud],Z]}),e}(),X=function(){var e=function e(t){(0,a.Z)(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(s.Y36(v.Qb,8))},e.\u0275cmp=s.Xpm({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&s.ekj("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}(),K=function(){var e=function e(){(0,a.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=s.oAB({type:e}),e.\u0275inj=s.cJS({imports:[[Z]]}),e}(),$=new s.OlP("MAT_OPTION_PARENT_COMPONENT"),ee=M(function e(){(0,a.Z)(this,e)}),te=0,ne=function(){var e=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e){var i,r;return(0,a.Z)(this,n),(i=t.call(this))._labelId="mat-optgroup-label-".concat(te++),i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(ee);return e.\u0275fac=function(t){return new(t||e)(s.Y36($,8))},e.\u0275dir=s.lG2({type:e,inputs:{label:"label"},features:[s.qOj]}),e}(),ie=new s.OlP("MatOptgroup"),re=function(){var e=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return n}(ne);return e.\u0275fac=function(){var t;return function(n){return(t||(t=s.n5z(e)))(n||e)}}(),e.\u0275cmp=s.Xpm({type:e,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(e,t){2&e&&(s.uIk("role",t._inert?null:"group")("aria-disabled",t._inert?null:t.disabled.toString())("aria-labelledby",t._inert?null:t._labelId),s.ekj("mat-optgroup-disabled",t.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[s._Bn([{provide:ie,useExisting:e}]),s.qOj],ngContentSelectors:b,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(e,t){1&e&&(s.F$t(_),s.TgZ(0,"span",0),s._uU(1),s.Hsn(2),s.qZA(),s.Hsn(3,1)),2&e&&(s.Q6J("id",t._labelId),s.xp6(1),s.hij("",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}(),oe=0,ae=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,a.Z)(this,e),this.source=t,this.isUserInput=n},se=function(){var e=function(){function e(t,n,i,r){(0,a.Z)(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(oe++),this.onSelectionChange=new s.vpe,this._stateChanges=new p.xQ}return(0,o.Z)(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=(0,h.Ig)(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!==y.K5&&e.keyCode!==y.L_||(0,y.Vb)(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 ae(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(void 0),s.Y36(ne))},e.\u0275dir=s.lG2({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),le=function(){var e=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i,r,o){return(0,a.Z)(this,n),t.call(this,e,i,r,o)}return n}(se);return e.\u0275fac=function(t){return new(t||e)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36($,8),s.Y36(ie,8))},e.\u0275cmp=s.Xpm({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&s.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(s.Ikx("id",t.id),s.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),s.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[s.qOj],ngContentSelectors:x,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&&(s.F$t(),s.YNc(0,w,1,2,"mat-pseudo-checkbox",0),s.TgZ(1,"span",1),s.Hsn(2),s.qZA(),s.YNc(3,S,2,1,"span",2),s._UZ(4,"div",3)),2&e&&(s.Q6J("ngIf",t.multiple),s.xp6(3),s.Q6J("ngIf",t.group&&t.group._inert),s.xp6(1),s.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[d.O5,V,X],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 ce(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;a<e+1;a++)i[a].group&&i[a].group===r[o]&&o++;return o}return 0}function ue(e,t,n,i){return e<n?e:e+t>n+i?Math.max(0,e-i+t):n}var de=function(){var e=function e(){(0,a.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=s.oAB({type:e}),e.\u0275inj=s.cJS({imports:[[Q,d.ez,Z,K]]}),e}()},93386:function(e,t,n){"use strict";n.d(t,{d:function(){return l},t:function(){return c}});var i=n(61680),r=n(11254),o=n(78081),a=n(59412),s=n(37602),l=function(){var e=function(){function e(){(0,i.Z)(this,e),this._vertical=!1,this._inset=!1}return(0,r.Z)(e,[{key:"vertical",get:function(){return this._vertical},set:function(e){this._vertical=(0,o.Ig)(e)}},{key:"inset",get:function(){return this._inset},set:function(e){this._inset=(0,o.Ig)(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s.Xpm({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(s.uIk("aria-orientation",t.vertical?"vertical":"horizontal"),s.ekj("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}(),c=function(){var e=function e(){(0,i.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=s.oAB({type:e}),e.\u0275inj=s.cJS({imports:[[a.BQ],a.BQ]}),e}()},36410:function(e,t,n){"use strict";n.d(t,{G_:function(){return ee},TO:function(){return z},KE:function(){return te},Eo:function(){return H},lN:function(){return ne},hX:function(){return J},R9:function(){return Q}});var i=n(25801),r=n(11254),o=n(49843),a=n(37859),s=n(61680),l=n(96798),c=n(40098),u=n(37602),d=n(59412),h=n(78081),p=n(68707),f=n(55371),m=n(33090),g=n(57682),v=n(44213),y=n(48359),_=n(739),b=n(38480),w=n(8392),S=n(15427),x=["underline"],C=["connectionContainer"],k=["inputContainer"],T=["label"];function A(e,t){1&e&&(u.ynx(0),u.TgZ(1,"div",14),u._UZ(2,"div",15),u._UZ(3,"div",16),u._UZ(4,"div",17),u.qZA(),u.TgZ(5,"div",18),u._UZ(6,"div",15),u._UZ(7,"div",16),u._UZ(8,"div",17),u.qZA(),u.BQk())}function Z(e,t){1&e&&(u.TgZ(0,"div",19),u.Hsn(1,1),u.qZA())}function M(e,t){if(1&e&&(u.ynx(0),u.Hsn(1,2),u.TgZ(2,"span"),u._uU(3),u.qZA(),u.BQk()),2&e){var n=u.oxw(2);u.xp6(3),u.Oqu(n._control.placeholder)}}function O(e,t){1&e&&u.Hsn(0,3,["*ngSwitchCase","true"])}function E(e,t){1&e&&(u.TgZ(0,"span",23),u._uU(1," *"),u.qZA())}function P(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"label",20,21),u.NdJ("cdkObserveContent",function(){return u.CHM(n),u.oxw().updateOutlineGap()}),u.YNc(2,M,4,1,"ng-container",12),u.YNc(3,O,1,0,"ng-content",12),u.YNc(4,E,2,0,"span",22),u.qZA()}if(2&e){var i=u.oxw();u.ekj("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),u.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),u.uIk("for",i._control.id)("aria-owns",i._control.id),u.xp6(2),u.Q6J("ngSwitchCase",!1),u.xp6(1),u.Q6J("ngSwitchCase",!0),u.xp6(1),u.Q6J("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function I(e,t){1&e&&(u.TgZ(0,"div",24),u.Hsn(1,4),u.qZA())}function q(e,t){if(1&e&&(u.TgZ(0,"div",25,26),u._UZ(2,"span",27),u.qZA()),2&e){var n=u.oxw();u.xp6(2),u.ekj("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function N(e,t){if(1&e&&(u.TgZ(0,"div"),u.Hsn(1,5),u.qZA()),2&e){var n=u.oxw();u.Q6J("@transitionMessages",n._subscriptAnimationState)}}function D(e,t){if(1&e&&(u.TgZ(0,"div",31),u._uU(1),u.qZA()),2&e){var n=u.oxw(2);u.Q6J("id",n._hintLabelId),u.xp6(1),u.Oqu(n.hintLabel)}}function R(e,t){if(1&e&&(u.TgZ(0,"div",28),u.YNc(1,D,2,2,"div",29),u.Hsn(2,6),u._UZ(3,"div",30),u.Hsn(4,7),u.qZA()),2&e){var n=u.oxw();u.Q6J("@transitionMessages",n._subscriptAnimationState),u.xp6(1),u.Q6J("ngIf",n.hintLabel)}}var L=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],F=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],B=0,j=new u.OlP("MatError"),z=function(){var e=function e(t,n){(0,s.Z)(this,e),this.id="mat-error-".concat(B++),t||n.nativeElement.setAttribute("aria-live","polite")};return e.\u0275fac=function(t){return new(t||e)(u.$8M("aria-live"),u.Y36(u.SBq))},e.\u0275dir=u.lG2({type:e,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&u.uIk("id",t.id)},inputs:{id:"id"},features:[u._Bn([{provide:j,useExisting:e}])]}),e}(),U={transitionMessages:(0,_.X$)("transitionMessages",[(0,_.SB)("enter",(0,_.oB)({opacity:1,transform:"translateY(0%)"})),(0,_.eR)("void => enter",[(0,_.oB)({opacity:0,transform:"translateY(-5px)"}),(0,_.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},H=function(){var e=function e(){(0,s.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=u.lG2({type:e}),e}(),Y=new u.OlP("MatHint"),J=function(){var e=function e(){(0,s.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=u.lG2({type:e,selectors:[["mat-label"]]}),e}(),G=function(){var e=function e(){(0,s.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=u.lG2({type:e,selectors:[["mat-placeholder"]]}),e}(),W=new u.OlP("MatPrefix"),V=new u.OlP("MatSuffix"),Q=function(){var e=function e(){(0,s.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=u.lG2({type:e,selectors:[["","matSuffix",""]],features:[u._Bn([{provide:V,useExisting:e}])]}),e}(),X=0,K=(0,d.pj)(function e(t){(0,s.Z)(this,e),this._elementRef=t},"primary"),$=new u.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ee=new u.OlP("MatFormField"),te=function(){var e=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r,o,a,l,c,u){var d;return(0,s.Z)(this,n),(d=t.call(this,e))._elementRef=e,d._changeDetectorRef=i,d._dir=o,d._defaults=a,d._platform=l,d._ngZone=c,d._outlineGapCalculationNeededImmediately=!1,d._outlineGapCalculationNeededOnStable=!1,d._destroyed=new p.xQ,d._showAlwaysAnimate=!1,d._subscriptAnimationState="",d._hintLabel="",d._hintLabelId="mat-hint-".concat(X++),d._labelId="mat-form-field-label-".concat(X++),d.floatLabel=d._getDefaultFloatLabelState(),d._animationsEnabled="NoopAnimations"!==u,d.appearance=a&&a.appearance?a.appearance:"legacy",d._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,d}return(0,r.Z)(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=(0,h.Ig)(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((0,g.O)(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,v.R)(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe((0,v.R)(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),(0,f.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,g.O)(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,g.O)(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,v.R)(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,(0,m.R)(this._label.nativeElement,"transitionend").pipe((0,y.q)(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,(0,i.Z)(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,(0,i.Z)(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),l=e.children,c=this._getStartEnd(l[0].getBoundingClientRect()),u=0,d=0;d<l.length;d++)u+=l[d].offsetWidth;t=Math.abs(c-s)-5,n=u>0?.75*u+10:0}for(var h=0;h<r.length;h++)r[h].style.width="".concat(t,"px");for(var p=0;p<o.length;p++)o[p].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}(K);return e.\u0275fac=function(t){return new(t||e)(u.Y36(u.SBq),u.Y36(u.sBO),u.Y36(u.SBq),u.Y36(w.Is,8),u.Y36($,8),u.Y36(S.t4),u.Y36(u.R0b),u.Y36(b.Qb,8))},e.\u0275cmp=u.Xpm({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var i;1&e&&(u.Suo(n,H,5),u.Suo(n,H,7),u.Suo(n,J,5),u.Suo(n,J,7),u.Suo(n,G,5),u.Suo(n,j,5),u.Suo(n,Y,5),u.Suo(n,W,5),u.Suo(n,V,5)),2&e&&(u.iGM(i=u.CRH())&&(t._controlNonStatic=i.first),u.iGM(i=u.CRH())&&(t._controlStatic=i.first),u.iGM(i=u.CRH())&&(t._labelChildNonStatic=i.first),u.iGM(i=u.CRH())&&(t._labelChildStatic=i.first),u.iGM(i=u.CRH())&&(t._placeholderChild=i.first),u.iGM(i=u.CRH())&&(t._errorChildren=i),u.iGM(i=u.CRH())&&(t._hintChildren=i),u.iGM(i=u.CRH())&&(t._prefixChildren=i),u.iGM(i=u.CRH())&&(t._suffixChildren=i))},viewQuery:function(e,t){var n;1&e&&(u.Gf(x,5),u.Gf(C,7),u.Gf(k,5),u.Gf(T,5)),2&e&&(u.iGM(n=u.CRH())&&(t.underlineRef=n.first),u.iGM(n=u.CRH())&&(t._connectionContainerRef=n.first),u.iGM(n=u.CRH())&&(t._inputContainerRef=n.first),u.iGM(n=u.CRH())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,t){2&e&&u.ekj("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)("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:[u._Bn([{provide:ee,useExisting:e}]),u.qOj],ngContentSelectors:F,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&&(u.F$t(L),u.TgZ(0,"div",0),u.TgZ(1,"div",1,2),u.NdJ("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),u.YNc(3,A,9,0,"ng-container",3),u.YNc(4,Z,2,0,"div",4),u.TgZ(5,"div",5,6),u.Hsn(7),u.TgZ(8,"span",7),u.YNc(9,P,5,16,"label",8),u.qZA(),u.qZA(),u.YNc(10,I,2,0,"div",9),u.qZA(),u.YNc(11,q,3,4,"div",10),u.TgZ(12,"div",11),u.YNc(13,N,2,1,"div",12),u.YNc(14,R,5,2,"div",13),u.qZA(),u.qZA()),2&e&&(u.xp6(3),u.Q6J("ngIf","outline"==t.appearance),u.xp6(1),u.Q6J("ngIf",t._prefixChildren.length),u.xp6(5),u.Q6J("ngIf",t._hasFloatingLabel()),u.xp6(1),u.Q6J("ngIf",t._suffixChildren.length),u.xp6(1),u.Q6J("ngIf","outline"!=t.appearance),u.xp6(1),u.Q6J("ngSwitch",t._getDisplayedMessages()),u.xp6(1),u.Q6J("ngSwitchCase","error"),u.xp6(1),u.Q6J("ngSwitchCase","hint"))},directives:[c.O5,c.RF,c.n9,l.wD],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:[U.transitionMessages]},changeDetection:0}),e}(),ne=function(){var e=function e(){(0,s.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=u.oAB({type:e}),e.\u0275inj=u.cJS({imports:[[c.ez,d.BQ,l.Q8],d.BQ]}),e}()},73044:function(e,t,n){"use strict";n.d(t,{gD:function(){return $},LD:function(){return ee}});var i=n(51751),r=n(12558),o=n(25801),a=n(11254),s=n(3574),l=n(49843),c=n(37859),u=n(61680),d=n(93889),h=n(40098),p=n(37602),f=n(59412),m=n(36410),g=n(28722),v=n(6517),y=n(78081),_=n(37429),b=n(32819),w=n(68707),S=n(4499),x=n(55371),C=n(57682),k=n(34487),T=n(48359),A=n(58780),Z=n(85639),M=n(76161),O=n(44213),E=n(739),P=n(8392),I=n(19061),q=["trigger"],N=["panel"];function D(e,t){if(1&e&&(p.TgZ(0,"span",8),p._uU(1),p.qZA()),2&e){var n=p.oxw();p.xp6(1),p.Oqu(n.placeholder)}}function R(e,t){if(1&e&&(p.TgZ(0,"span",12),p._uU(1),p.qZA()),2&e){var n=p.oxw(2);p.xp6(1),p.Oqu(n.triggerValue)}}function L(e,t){1&e&&p.Hsn(0,0,["*ngSwitchCase","true"])}function F(e,t){if(1&e&&(p.TgZ(0,"span",9),p.YNc(1,R,2,1,"span",10),p.YNc(2,L,1,0,"ng-content",11),p.qZA()),2&e){var n=p.oxw();p.Q6J("ngSwitch",!!n.customTrigger),p.xp6(2),p.Q6J("ngSwitchCase",!0)}}function B(e,t){if(1&e){var n=p.EpF();p.TgZ(0,"div",13),p.TgZ(1,"div",14,15),p.NdJ("@transformPanel.done",function(e){return p.CHM(n),p.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return p.CHM(n),p.oxw()._handleKeydown(e)}),p.Hsn(3,1),p.qZA(),p.qZA()}if(2&e){var i=p.oxw();p.Q6J("@transformPanelWrap",void 0),p.xp6(1),p.Gre("mat-select-panel ",i._getPanelTheme(),""),p.Udp("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),p.Q6J("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),p.uIk("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var j=[[["mat-select-trigger"]],"*"],z=["mat-select-trigger","*"],U={transformPanelWrap:(0,E.X$)("transformPanelWrap",[(0,E.eR)("* => void",(0,E.IO)("@transformPanel",[(0,E.pV)()],{optional:!0}))]),transformPanel:(0,E.X$)("transformPanel",[(0,E.SB)("void",(0,E.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,E.SB)("showing",(0,E.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,E.SB)("showing-multiple",(0,E.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,E.eR)("void => *",(0,E.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,E.eR)("* => void",(0,E.jt)("100ms 25ms linear",(0,E.oB)({opacity:0})))])},H=0,Y=256,J=new p.OlP("mat-select-scroll-strategy"),G=new p.OlP("MAT_SELECT_CONFIG"),W={provide:J,deps:[d.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},V=function e(t,n){(0,u.Z)(this,e),this.source=t,this.value=n},Q=(0,f.Kr)((0,f.sb)((0,f.Id)((0,f.FD)(function e(t,n,i,r,o){(0,u.Z)(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o})))),X=new p.OlP("MatSelectTrigger"),K=function(){var e=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,a,l,c,d,h,f,m,g,v,y,_){var b,M,O,E;return(0,u.Z)(this,n),(b=t.call(this,l,a,d,h,m))._viewportRuler=e,b._changeDetectorRef=i,b._ngZone=r,b._dir=c,b._parentFormField=f,b.ngControl=m,b._liveAnnouncer=y,b._defaultOptions=_,b._panelOpen=!1,b._compareWith=function(e,t){return e===t},b._uid="mat-select-".concat(H++),b._triggerAriaLabelledBy=null,b._destroy=new w.xQ,b._onChange=function(){},b._onTouched=function(){},b._valueId="mat-select-value-".concat(H++),b._panelDoneAnimatingStream=new w.xQ,b._overlayPanelClass=(null===(M=b._defaultOptions)||void 0===M?void 0:M.overlayPanelClass)||"",b._focused=!1,b.controlType="mat-select",b._required=!1,b._multiple=!1,b._disableOptionCentering=null!==(E=null===(O=b._defaultOptions)||void 0===O?void 0:O.disableOptionCentering)&&void 0!==E&&E,b.ariaLabel="",b.optionSelectionChanges=(0,S.P)(function(){var e=b.options;return e?e.changes.pipe((0,C.O)(e),(0,k.w)(function(){return x.T.apply(void 0,(0,o.Z)(e.map(function(e){return e.onSelectionChange})))})):b._ngZone.onStable.pipe((0,T.q)(1),(0,k.w)(function(){return b.optionSelectionChanges}))}),b.openedChange=new p.vpe,b._openedStream=b.openedChange.pipe((0,A.h)(function(e){return e}),(0,Z.U)(function(){})),b._closedStream=b.openedChange.pipe((0,A.h)(function(e){return!e}),(0,Z.U)(function(){})),b.selectionChange=new p.vpe,b.valueChange=new p.vpe,b.ngControl&&(b.ngControl.valueAccessor=(0,s.Z)(b)),null!=(null==_?void 0:_.typeaheadDebounceInterval)&&(b._typeaheadDebounceInterval=_.typeaheadDebounceInterval),b._scrollStrategyFactory=v,b._scrollStrategy=b._scrollStrategyFactory(),b.tabIndex=parseInt(g)||0,b.id=b.id,b}return(0,a.Z)(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=(0,y.Ig)(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=(0,y.Ig)(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=(0,y.Ig)(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=(0,y.su)(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 _.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,M.x)(),(0,O.R)(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,O.R)(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((0,C.O)(null),(0,O.R)(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=t===b.JH||t===b.LH||t===b.oh||t===b.SV,i=t===b.K5||t===b.L_,r=this._keyManager;if(!r.isTyping()&&i&&!(0,b.Vb)(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=n===b.JH||n===b.LH,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||n!==b.K5&&n!==b.L_||!t.activeItem||(0,b.Vb)(e))if(!r&&this._multiple&&n===b.A&&e.ctrlKey){e.preventDefault();var o=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(o?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this._overlayDir.positionChange.pipe((0,T.q)(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(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new v.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,O.R)(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe((0,O.R)(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=(0,x.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,O.R)(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),x.T.apply(void 0,(0,o.Z)(this.options.map(function(e){return e._stateChanges}))).pipe((0,O.R)(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(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}(Q);return e.\u0275fac=function(t){return new(t||e)(p.Y36(g.rL),p.Y36(p.sBO),p.Y36(p.R0b),p.Y36(f.rD),p.Y36(p.SBq),p.Y36(P.Is,8),p.Y36(I.F,8),p.Y36(I.sg,8),p.Y36(m.G_,8),p.Y36(I.a5,10),p.$8M("tabindex"),p.Y36(J),p.Y36(v.Kd),p.Y36(G,8))},e.\u0275dir=p.lG2({type:e,viewQuery:function(e,t){var n;1&e&&(p.Gf(q,5),p.Gf(N,5),p.Gf(d.pI,5)),2&e&&(p.iGM(n=p.CRH())&&(t.trigger=n.first),p.iGM(n=p.CRH())&&(t.panel=n.first),p.iGM(n=p.CRH())&&(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:[p.qOj,p.TTD]}),e}(),$=function(){var e=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;return(0,u.Z)(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(0,a.Z)(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;(0,i.Z)((0,r.Z)(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,O.R)(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;(0,i.Z)((0,r.Z)(n.prototype),"_canOpen",this).call(this)&&((0,i.Z)((0,r.Z)(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((0,T.q)(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=(0,f.CB)(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=(0,f.jH)((e+t)*n,n,this.panel.nativeElement.scrollTop,Y)}},{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()),(0,i.Z)((0,r.Z)(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new V(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this._overlayDir.offsetX=Math.round(e),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(Y/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-Y)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,Y)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,Y),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=(0,f.CB)(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{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}(K);return e.\u0275fac=function(){var t;return function(n){return(t||(t=p.n5z(e)))(n||e)}}(),e.\u0275cmp=p.Xpm({type:e,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(p.Suo(n,X,5),p.Suo(n,f.ey,5),p.Suo(n,f.K7,5)),2&e&&(p.iGM(i=p.CRH())&&(t.customTrigger=i.first),p.iGM(i=p.CRH())&&(t.options=i),p.iGM(i=p.CRH())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&p.NdJ("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(p.uIk("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()),p.ekj("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:[p._Bn([{provide:m.Eo,useExisting:e},{provide:f.HF,useExisting:e}]),p.qOj],ngContentSelectors:z,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&&(p.F$t(j),p.TgZ(0,"div",0,1),p.NdJ("click",function(){return t.toggle()}),p.TgZ(3,"div",2),p.YNc(4,D,2,1,"span",3),p.YNc(5,F,3,2,"span",4),p.qZA(),p.TgZ(6,"div",5),p._UZ(7,"div",6),p.qZA(),p.qZA(),p.YNc(8,B,4,14,"ng-template",7),p.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=p.MAs(1);p.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),p.xp6(3),p.Q6J("ngSwitch",t.empty),p.uIk("id",t._valueId),p.xp6(1),p.Q6J("ngSwitchCase",!0),p.xp6(1),p.Q6J("ngSwitchCase",!1),p.xp6(3),p.Q6J("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:[d.xu,h.RF,h.n9,d.pI,h.ED,h.mk],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:[U.transformPanelWrap,U.transformPanel]},changeDetection:0}),e}(),ee=function(){var e=function e(){(0,u.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p.oAB({type:e}),e.\u0275inj=p.cJS({providers:[W],imports:[[h.ez,d.U8,f.Ng,f.BQ],g.ZD,m.lN,f.Ng,f.BQ]}),e}()},88802:function(e,t,n){"use strict";n.d(t,{uX:function(){return te},SP:function(){return de},uD:function(){return K},Nh:function(){return ye}}),n(3574);var i=n(25801),r=n(51751),o=n(12558),a=n(49843),s=n(37859),l=n(61680),c=n(11254),u=n(6517),d=n(96798),h=n(80785),p=n(40098),f=n(37602),m=n(59412),g=n(38480),v=n(68707),y=n(5051),_=n(55371),b=n(33090),w=n(43161),S=n(5041),x=n(739),C=n(57682),k=n(76161),T=n(44213),A=n(78081),Z=n(15427),M=n(32819),O=n(8392),E=n(28722);function P(e,t){1&e&&f.Hsn(0)}var I=["*"];function q(e,t){}var N=function(e){return{animationDuration:e}},D=function(e,t){return{value:e,params:t}},R=["tabBodyWrapper"],L=["tabHeader"];function F(e,t){}function B(e,t){if(1&e&&f.YNc(0,F,0,0,"ng-template",9),2&e){var n=f.oxw().$implicit;f.Q6J("cdkPortalOutlet",n.templateLabel)}}function j(e,t){if(1&e&&f._uU(0),2&e){var n=f.oxw().$implicit;f.Oqu(n.textLabel)}}function z(e,t){if(1&e){var n=f.EpF();f.TgZ(0,"div",6),f.NdJ("click",function(){var e=f.CHM(n),t=e.$implicit,i=e.index,r=f.oxw(),o=f.MAs(1);return r._handleClick(t,o,i)})("cdkFocusChange",function(e){var t=f.CHM(n).index;return f.oxw()._tabFocusChanged(e,t)}),f.TgZ(1,"div",7),f.YNc(2,B,1,1,"ng-template",8),f.YNc(3,j,1,1,"ng-template",8),f.qZA(),f.qZA()}if(2&e){var i=t.$implicit,r=t.index,o=f.oxw();f.ekj("mat-tab-label-active",o.selectedIndex==r),f.Q6J("id",o._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||o.disableRipple),f.uIk("tabIndex",o._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),f.xp6(2),f.Q6J("ngIf",i.templateLabel),f.xp6(1),f.Q6J("ngIf",!i.templateLabel)}}function U(e,t){if(1&e){var n=f.EpF();f.TgZ(0,"mat-tab-body",10),f.NdJ("_onCentered",function(){return f.CHM(n),f.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return f.CHM(n),f.oxw()._setTabBodyWrapperHeight(e)}),f.qZA()}if(2&e){var i=t.$implicit,r=t.index,o=f.oxw();f.ekj("mat-tab-body-active",o.selectedIndex==r),f.Q6J("id",o._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",o.animationDuration),f.uIk("aria-labelledby",o._getTabLabelId(r))}}var H=["tabListContainer"],Y=["tabList"],J=["nextPaginator"],G=["previousPaginator"],W=new f.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(e){return{left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"}}}}),V=function(){var e=function(){function e(t,n,i,r){(0,l.Z)(this,e),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return(0,c.Z)(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)(f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(W),f.Y36(g.Qb,8))},e.\u0275dir=f.lG2({type:e,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&f.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),e}(),Q=new f.OlP("MatTabContent"),X=new f.OlP("MatTabLabel"),K=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return n}(h.ig);return e.\u0275fac=function(){var t;return function(n){return(t||(t=f.n5z(e)))(n||e)}}(),e.\u0275dir=f.lG2({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[f._Bn([{provide:X,useExisting:e}]),f.qOj]}),e}(),$=(0,m.Id)(function e(){(0,l.Z)(this,e)}),ee=new f.OlP("MAT_TAB_GROUP"),te=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this))._viewContainerRef=e,r._closestTabGroup=i,r.textLabel="",r._contentPortal=null,r._stateChanges=new v.xQ,r.position=null,r.origin=null,r.isActive=!1,r}return(0,c.Z)(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 h.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(e){e&&(this._templateLabel=e)}}]),n}($);return e.\u0275fac=function(t){return new(t||e)(f.Y36(f.s_b),f.Y36(ee,8))},e.\u0275cmp=f.Xpm({type:e,selectors:[["mat-tab"]],contentQueries:function(e,t,n){var i;1&e&&(f.Suo(n,X,5),f.Suo(n,Q,7,f.Rgc)),2&e&&(f.iGM(i=f.CRH())&&(t.templateLabel=i.first),f.iGM(i=f.CRH())&&(t._explicitContent=i.first))},viewQuery:function(e,t){var n;1&e&&f.Gf(f.Rgc,7),2&e&&f.iGM(n=f.CRH())&&(t._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[f.qOj,f.TTD],ngContentSelectors:I,decls:1,vars:0,template:function(e,t){1&e&&(f.F$t(),f.YNc(0,P,1,0,"ng-template"))},encapsulation:2}),e}(),ne={translateTab:(0,x.X$)("translateTab",[(0,x.SB)("center, void, left-origin-center, right-origin-center",(0,x.oB)({transform:"none"})),(0,x.SB)("left",(0,x.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,x.SB)("right",(0,x.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,x.eR)("* => left, * => right, left => center, right => center",(0,x.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,x.eR)("void => left-origin-center",[(0,x.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,x.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,x.eR)("void => right-origin-center",[(0,x.oB)({transform:"translate3d(100%, 0, 0)"}),(0,x.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},ie=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r,o){var a;return(0,l.Z)(this,n),(a=t.call(this,e,i,o))._host=r,a._centeringSub=y.w.EMPTY,a._leavingSub=y.w.EMPTY,a}return(0,c.Z)(n,[{key:"ngOnInit",value:function(){var e=this;(0,r.Z)((0,o.Z)(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,C.O)(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(){(0,r.Z)((0,o.Z)(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(h.Pl);return e.\u0275fac=function(t){return new(t||e)(f.Y36(f._Vd),f.Y36(f.s_b),f.Y36((0,f.Gpc)(function(){return oe})),f.Y36(p.K0))},e.\u0275dir=f.lG2({type:e,selectors:[["","matTabBodyHost",""]],features:[f.qOj]}),e}(),re=function(){var e=function(){function e(t,n,i){var r=this;(0,l.Z)(this,e),this._elementRef=t,this._dir=n,this._dirChangeSubscription=y.w.EMPTY,this._translateTabComplete=new v.xQ,this._onCentering=new f.vpe,this._beforeCentering=new f.vpe,this._afterLeavingCenter=new f.vpe,this._onCentered=new f.vpe(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(e){r._computePositionAnimationState(e),i.markForCheck()})),this._translateTabComplete.pipe((0,k.x)(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){r._isCenterPosition(e.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(e.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})}return(0,c.Z)(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)(f.Y36(f.SBq),f.Y36(O.Is,8),f.Y36(f.sBO))},e.\u0275dir=f.lG2({type:e,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),e}(),oe=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){return(0,l.Z)(this,n),t.call(this,e,i,r)}return n}(re);return e.\u0275fac=function(t){return new(t||e)(f.Y36(f.SBq),f.Y36(O.Is,8),f.Y36(f.sBO))},e.\u0275cmp=f.Xpm({type:e,selectors:[["mat-tab-body"]],viewQuery:function(e,t){var n;1&e&&f.Gf(h.Pl,5),2&e&&f.iGM(n=f.CRH())&&(t._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[f.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(f.TgZ(0,"div",0,1),f.NdJ("@translateTab.start",function(e){return t._onTranslateTabStarted(e)})("@translateTab.done",function(e){return t._translateTabComplete.next(e)}),f.YNc(2,q,0,0,"ng-template",2),f.qZA()),2&e&&f.Q6J("@translateTab",f.WLB(3,D,t._position,f.VKq(1,N,t.animationDuration)))},directives:[ie],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:[ne.translateTab]}}),e}(),ae=new f.OlP("MAT_TABS_CONFIG"),se=0,le=function e(){(0,l.Z)(this,e)},ce=(0,m.pj)((0,m.Kr)(function e(t){(0,l.Z)(this,e),this._elementRef=t}),"primary"),ue=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r,o){var a;return(0,l.Z)(this,n),(a=t.call(this,e))._changeDetectorRef=i,a._animationMode=o,a._tabs=new f.n_E,a._indexToSelect=0,a._tabBodyWrapperHeight=0,a._tabsSubscription=y.w.EMPTY,a._tabLabelSubscription=y.w.EMPTY,a._selectedIndex=null,a.headerPosition="above",a.selectedIndexChange=new f.vpe,a.focusChange=new f.vpe,a.animationDone=new f.vpe,a.selectedTabChange=new f.vpe(!0),a._groupId=se++,a.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",a.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,a.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,a}return(0,c.Z)(n,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(e){this._dynamicHeight=(0,A.Ig)(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){this._indexToSelect=(0,A.su)(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;if(!n){this.selectedTabChange.emit(this._createChangeEvent(t));var i=this._tabBodyWrapper.nativeElement;i.style.minHeight=i.clientHeight+"px"}Promise.resolve().then(function(){e._tabs.forEach(function(e,n){return e.isActive=n===t}),n||(e.selectedIndexChange.emit(t),e._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(n,i){n.position=i-t,null==e._selectedIndex||0!=n.position||n.origin||(n.origin=t-e._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var e=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(e._clampTabIndex(e._indexToSelect)===e._selectedIndex)for(var t=e._tabs.toArray(),n=0;n<t.length;n++)if(t[n].isActive){e._indexToSelect=e._selectedIndex=n;break}e._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var e=this;this._allTabs.changes.pipe((0,C.O)(this._allTabs)).subscribe(function(t){e._tabs.reset(t.filter(function(t){return t._closestTabGroup===e||!t._closestTabGroup})),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:"focusTab",value:function(e){var t=this._tabHeader;t&&(t.focusIndex=e)}},{key:"_focusChanged",value:function(e){this.focusChange.emit(this._createChangeEvent(e))}},{key:"_createChangeEvent",value:function(e){var t=new le;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=_.T.apply(void 0,(0,i.Z)(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}(ce);return e.\u0275fac=function(t){return new(t||e)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(ae,8),f.Y36(g.Qb,8))},e.\u0275dir=f.lG2({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:[f.qOj]}),e}(),de=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r,o){return(0,l.Z)(this,n),t.call(this,e,i,r,o)}return n}(ue);return e.\u0275fac=function(t){return new(t||e)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(ae,8),f.Y36(g.Qb,8))},e.\u0275cmp=f.Xpm({type:e,selectors:[["mat-tab-group"]],contentQueries:function(e,t,n){var i;1&e&&f.Suo(n,te,5),2&e&&f.iGM(i=f.CRH())&&(t._allTabs=i)},viewQuery:function(e,t){var n;1&e&&(f.Gf(R,5),f.Gf(L,5)),2&e&&(f.iGM(n=f.CRH())&&(t._tabBodyWrapper=n.first),f.iGM(n=f.CRH())&&(t._tabHeader=n.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&f.ekj("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[f._Bn([{provide:ee,useExisting:e}]),f.qOj],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&&(f.TgZ(0,"mat-tab-header",0,1),f.NdJ("indexFocused",function(e){return t._focusChanged(e)})("selectFocusedIndex",function(e){return t.selectedIndex=e}),f.YNc(2,z,4,14,"div",2),f.qZA(),f.TgZ(3,"div",3,4),f.YNc(5,U,1,8,"mat-tab-body",5),f.qZA()),2&e&&(f.Q6J("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),f.xp6(2),f.Q6J("ngForOf",t._tabs),f.xp6(1),f.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),f.xp6(2),f.Q6J("ngForOf",t._tabs))},directives:function(){return[ve,p.sg,pe,m.wG,u.kH,p.O5,h.Pl,oe]},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}(),he=(0,m.Id)(function e(){(0,l.Z)(this,e)}),pe=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,l.Z)(this,n),(i=t.call(this)).elementRef=e,i}return(0,c.Z)(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}(he);return e.\u0275fac=function(t){return new(t||e)(f.Y36(f.SBq))},e.\u0275dir=f.lG2({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(f.uIk("aria-disabled",!!t.disabled),f.ekj("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[f.qOj]}),e}(),fe=(0,Z.i$)({passive:!0}),me=function(){var e=function(){function e(t,n,i,r,o,a,s){var c=this;(0,l.Z)(this,e),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=o,this._platform=a,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new v.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new v.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new f.vpe,this.indexFocused=new f.vpe,o.runOutsideAngular(function(){(0,b.R)(t.nativeElement,"mouseleave").pipe((0,T.R)(c._destroyed)).subscribe(function(){c._stopInterval()})})}return(0,c.Z)(e,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){e=(0,A.su)(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}},{key:"ngAfterViewInit",value:function(){var e=this;(0,b.R)(this._previousPaginator.nativeElement,"touchstart",fe).pipe((0,T.R)(this._destroyed)).subscribe(function(){e._handlePaginatorPress("before")}),(0,b.R)(this._nextPaginator.nativeElement,"touchstart",fe).pipe((0,T.R)(this._destroyed)).subscribe(function(){e._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var e=this,t=this._dir?this._dir.change:(0,w.of)("ltr"),n=this._viewportRuler.change(150),i=function(){e.updatePagination(),e._alignInkBarToSelectedTab()};this._keyManager=new u.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),(0,_.T)(t,n,this._items.changes).pipe((0,T.R)(this._destroyed)).subscribe(function(){e._ngZone.run(function(){return Promise.resolve().then(i)}),e._keyManager.withHorizontalOrientation(e._getLayoutDirection())}),this._keyManager.change.pipe((0,T.R)(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(!(0,M.Vb)(e))switch(e.keyCode){case M.K5:case M.L_: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,i,r=this._tabListContainer.nativeElement.offsetWidth,o=t.elementRef.nativeElement,a=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=a)+s:n=(i=this._tabList.nativeElement.offsetWidth-a)-s;var l=this.scrollDistance,c=this.scrollDistance+r;n<l?this.scrollDistance-=l-n+60:i>c&&(this.scrollDistance+=i-c+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(),(0,S.H)(650,100).pipe((0,T.R)((0,_.T)(this._stopScrolling,this._destroyed))).subscribe(function(){var t=n._scrollHeader(e),i=t.distance;(0===i||i>=t.maxScrollDistance)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(E.rL),f.Y36(O.Is,8),f.Y36(f.R0b),f.Y36(Z.t4),f.Y36(g.Qb,8))},e.\u0275dir=f.lG2({type:e,inputs:{disablePagination:"disablePagination"}}),e}(),ge=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r,o,a,s,c){var u;return(0,l.Z)(this,n),(u=t.call(this,e,i,r,o,a,s,c))._disableRipple=!1,u}return(0,c.Z)(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=(0,A.Ig)(e)}},{key:"_itemSelected",value:function(e){e.preventDefault()}}]),n}(me);return e.\u0275fac=function(t){return new(t||e)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(E.rL),f.Y36(O.Is,8),f.Y36(f.R0b),f.Y36(Z.t4),f.Y36(g.Qb,8))},e.\u0275dir=f.lG2({type:e,inputs:{disableRipple:"disableRipple"},features:[f.qOj]}),e}(),ve=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r,o,a,s,c){return(0,l.Z)(this,n),t.call(this,e,i,r,o,a,s,c)}return n}(ge);return e.\u0275fac=function(t){return new(t||e)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(E.rL),f.Y36(O.Is,8),f.Y36(f.R0b),f.Y36(Z.t4),f.Y36(g.Qb,8))},e.\u0275cmp=f.Xpm({type:e,selectors:[["mat-tab-header"]],contentQueries:function(e,t,n){var i;1&e&&f.Suo(n,pe,4),2&e&&f.iGM(i=f.CRH())&&(t._items=i)},viewQuery:function(e,t){var n;1&e&&(f.Gf(V,7),f.Gf(H,7),f.Gf(Y,7),f.Gf(J,5),f.Gf(G,5)),2&e&&(f.iGM(n=f.CRH())&&(t._inkBar=n.first),f.iGM(n=f.CRH())&&(t._tabListContainer=n.first),f.iGM(n=f.CRH())&&(t._tabList=n.first),f.iGM(n=f.CRH())&&(t._nextPaginator=n.first),f.iGM(n=f.CRH())&&(t._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&f.ekj("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[f.qOj],ngContentSelectors:I,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&&(f.F$t(),f.TgZ(0,"div",0,1),f.NdJ("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(e){return t._handlePaginatorPress("before",e)})("touchend",function(){return t._stopInterval()}),f._UZ(2,"div",2),f.qZA(),f.TgZ(3,"div",3,4),f.NdJ("keydown",function(e){return t._handleKeydown(e)}),f.TgZ(5,"div",5,6),f.NdJ("cdkObserveContent",function(){return t._onContentChanges()}),f.TgZ(7,"div",7),f.Hsn(8),f.qZA(),f._UZ(9,"mat-ink-bar"),f.qZA(),f.qZA(),f.TgZ(10,"div",8,9),f.NdJ("mousedown",function(e){return t._handlePaginatorPress("after",e)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),f._UZ(12,"div",2),f.qZA()),2&e&&(f.ekj("mat-tab-header-pagination-disabled",t._disableScrollBefore),f.Q6J("matRippleDisabled",t._disableScrollBefore||t.disableRipple),f.xp6(5),f.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),f.xp6(5),f.ekj("mat-tab-header-pagination-disabled",t._disableScrollAfter),f.Q6J("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[m.wG,d.wD,V],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}(),ye=function(){var e=function e(){(0,l.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=f.oAB({type:e}),e.\u0275inj=f.cJS({imports:[[p.ez,m.BQ,h.eL,m.si,d.Q8,u.rt],m.BQ]}),e}()},38480:function(e,t,n){"use strict";n.d(t,{Qb:function(){return Wt},PW:function(){return Kt}});var i=n(10270),r=n(61680),o=n(11254),a=n(49843),s=n(37859),l=n(37602),c=n(29176),u=n(739),d=n(51751),h=n(12558),p=n(20454),f=n(25801);function m(){return"undefined"!=typeof window&&void 0!==window.document}function g(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function v(e){switch(e.length){case 0:return new u.ZN;case 1:return e[0];default:return new u.ZE(e)}}function y(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],l=-1,c=null;if(i.forEach(function(e){var n=e.offset,i=n==l,d=i&&c||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),s){case u.k1:s=r[n];break;case u.l3:s=o[n];break;default:s=t.normalizeStyleValue(n,i,s,a)}d[i]=s}),i||s.push(d),c=d,l=n}),a.length){var d="\n - ";throw new Error("Unable to animate due to the following errors:".concat(d).concat(a.join(d)))}return s}function _(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&b(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&b(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&b(n,"destroy",e))})}}function b(e,t,n){var i=n.totalTime,r=w(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function w(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function S(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function x(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var C=function(e,t){return!1},k=function(e,t){return!1},T=function(e,t,n){return[]},A=g();(A||"undefined"!=typeof Element)&&(C=m()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},k=function(){if(A||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])}:k}(),T=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),o=0;o<r.length;o++)i.push(r[o]);else{var a=e.querySelector(t);a&&i.push(a)}return i});var Z=null,M=!1;function O(e){Z||(Z=("undefined"!=typeof document?document.body:null)||{},M=!!Z.style&&"WebkitAppearance"in Z.style);var t=!0;return Z.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in Z.style)&&M&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Z.style),t}var E=k,P=C,I=T;function q(e){var t={};return Object.keys(e).forEach(function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}var N=function(){var e=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,[{key:"validateStyleProperty",value:function(e){return O(e)}},{key:"matchesElement",value:function(e,t){return E(e,t)}},{key:"containsElement",value:function(e,t){return P(e,t)}},{key:"query",value:function(e,t,n){return I(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new u.ZN(n,i)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac}),e}(),D=function(){var e=function e(){(0,r.Z)(this,e)};return e.NOOP=new N,e}(),R="ng-enter",L="ng-leave",F="ng-trigger",B=".ng-trigger",j="ng-animating",z=".ng-animating";function U(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:H(parseFloat(t[1]),t[2])}function H(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Y(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=H(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=H(parseFloat(s),a[4]));var l=a[5];l&&(o=l)}else i=e;if(!n){var c=!1,u=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),c=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&t.splice(u,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:r,easing:o}}(e,t,n)}function J(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 G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else J(e,n);return n}function W(e,t,n){return n?t+":"+n+";":""}function V(e){for(var t="",n=0;n<e.style.length;n++){var i=e.style.item(n);t+=W(0,i,e.style.getPropertyValue(i))}for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(t+=W(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[r]));e.setAttribute("style",t)}function Q(e,t,n){e.style&&(Object.keys(t).forEach(function(i){var r=re(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),g()&&V(e))}function X(e,t){e.style&&(Object.keys(t).forEach(function(t){var n=re(t);e.style[n]=""}),g()&&V(e))}function K(e){return Array.isArray(e)?1==e.length?e[0]:(0,u.vP)(e):e}var $=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function ee(e){var t=[];if("string"==typeof e){for(var n;n=$.exec(e);)t.push(n[1]);$.lastIndex=0}return t}function te(e,t,n){var i=e.toString(),r=i.replace($,function(e,i){var r=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param ".concat(i)),r=""),r.toString()});return r==i?e:r}function ne(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var ie=/-+([a-z0-9])/g;function re(e){return e.replace(ie,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()})}function oe(e,t){return 0===e||0===t}function ae(e,t,n){var i=Object.keys(n);if(i.length&&t.length){var r=t[0],o=[];if(i.forEach(function(e){r.hasOwnProperty(e)||o.push(e),r[e]=n[e]}),o.length)for(var a=function(){var n=t[s];o.forEach(function(t){n[t]=le(e,t)})},s=1;s<t.length;s++)a()}return t}function se(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 le(e,t){return window.getComputedStyle(e)[t]}var ce="*",ue=new Set(["true","1"]),de=new Set(["false","0"]);function he(e,t){var n=ue.has(e)||de.has(e),i=ue.has(t)||de.has(t);return function(r,o){var a=e==ce||e==r,s=t==ce||t==o;return!a&&n&&"boolean"==typeof r&&(a=r?ue.has(e):de.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?ue.has(t):de.has(t)),a&&s}}var pe=":self",fe=new RegExp("s*".concat(pe,"s*,?"),"g");function me(e,t,n){return new ge(e).build(t,n)}var ge=function(){function e(t){(0,r.Z)(this,e),this._driver=t}return(0,o.Z)(e,[{key:"build",value:function(e,t){var n=new ve(t);return this._resetContextStyleTimingState(n),se(this,K(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,l=s.name;l.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,o.push(n.visitState(s,t))}),s.name=l}else if(1==e.type){var c=n.visitTransition(e,t);i+=c.queryCount,r+=c.depCount,a.push(c)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach(function(e){if(ye(e)){var t=e;Object.keys(t).forEach(function(e){ee(t[e]).forEach(function(e){o.hasOwnProperty(e)||r.add(e)})})}}),r.size){var a=ne(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n,i,r,o=se(this,K(e.animation),t);return{type:1,matchers:(n=e.expr,i=t.errors,r=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(he(o,s)),"<"!=a[0]||o==ce&&s==ce||t.push(he(s,o))}(e,r,i)}):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:_e(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return se(n,e,t)}),options:_e(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=se(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:_e(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return be(Y(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=be(0,0,"");return r.dynamic=!0,r.strValue=i,r}return be((n=n||Y(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:(0,u.oB)({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=(0,u.oB)(s)}t.currentTime+=i.duration+i.delay;var l=this.visitStyle(o,t);l.isEmptyStep=a,n=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==u.l3?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(ye(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a,s,l,c=t.collectedStyles[t.currentQuerySelector],u=c[i],d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(u.startTime,'ms" and "').concat(u.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),d=!1),o=u.startTime),d&&(c[i]={startTime:o,endTime:r}),t.options&&(a=t.errors,s=t.options.params||{},(l=ee(e[i])).length&&l.forEach(function(e){s.hasOwnProperty(e)||a.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,l=0,c=e.steps.map(function(e){var i=n._makeStyleAst(e,t),c=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(ye(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(ye(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),u=0;return null!=c&&(r++,u=i.offset=c),s=s||u<0||u>1,a=a||u<l,l=u,o.push(u),i});s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&t.errors.push("Please ensure that all keyframe offsets are in order");var u=e.steps.length,d=0;r>0&&r<u?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(d=1/(u-1));var h=u-1,p=t.currentTime,f=t.currentAnimateTimings,m=f.duration;return c.forEach(function(e,r){var a=d>0?r==h?1:d*r:o[r],s=a*m;t.currentTime=p+f.delay+s,f.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:se(this,K(e.animation),t),options:_e(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:_e(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:_e(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var o=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return e==pe});return t&&(e=e.replace(fe,"")),[e=e.replace(/@\*/g,B).replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,z),t]}(e.selector),a=(0,i.Z)(o,2),s=a[0],l=a[1];t.currentQuerySelector=n.length?n+" "+s:s,S(t.collectedStyles,t.currentQuerySelector,{});var c=se(this,K(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:l,animation:c,originalSelector:e.selector,options:_e(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"}:Y(e.timings,t.errors,!0);return{type:12,animation:se(this,K(e.animation),t),timings:n,options:null}}}]),e}(),ve=function e(t){(0,r.Z)(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 ye(e){return!Array.isArray(e)&&"object"==typeof e}function _e(e){var t;return e?(e=J(e)).params&&(e.params=(t=e.params)?J(t):null):e={},e}function be(e,t,n){return{duration:e,delay:t,easing:n}}function we(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var Se=function(){function e(){(0,r.Z)(this,e),this._map=new Map}return(0,o.Z)(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,(0,f.Z)(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),xe=new RegExp(":enter","g"),Ce=new RegExp(":leave","g");function ke(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Te).buildKeyframes(e,t,n,i,r,o,a,s,l,c)}var Te=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new Se;var u=new Ze(e,t,l,i,r,c,[]);u.options=s,u.currentTimeline.setStyles([o],null,u.errors,s),se(this,n,u);var d=u.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(a).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,u.errors,s)}return d.length?d.map(function(e){return e.buildKeyframes()}):[we(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?U(n.duration):null,o=null!=n.delay?U(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),se(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Ae);var a=U(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return se(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?U(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),se(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return Y(t.params?te(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?U(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ae);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var l=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(l=s.currentTimeline),se(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var l=t.currentTimeline;s&&l.delayNextStep(s);var c=l.currentTime;se(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}]),e}(),Ae={},Ze=function(){function e(t,n,i,o,a,s,l,c){(0,r.Z)(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=a,this.errors=s,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ae,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Me(this._driver,n,0),l.push(this.currentTimeline)}return(0,o.Z)(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=U(i.duration)),null!=i.delay&&(r.delay=U(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=te(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Ae,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Oe(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(xe,"."+this._enterClassName)).replace(Ce,"."+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,(0,f.Z)(s))}return r||0!=a.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}]),e}(),Me=function(){function e(t,n,i,o){(0,r.Z)(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=o,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(0,o.Z)(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]||u.l3,t._currentKeyframe[e]=u.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var o=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]=u.l3}):G(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=te(a[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:u.l3),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"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 i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=G(o,!0);Object.keys(s).forEach(function(e){var i=s[e];i==u.k1?t.add(e):i==u.l3&&n.add(e)}),i||(s.offset=a/e.duration),r.push(s)});var o=t.size?ne(t.values()):[],a=n.size?ne(n.values()):[];if(i){var s=r[0],l=J(s);s.offset=0,l.offset=1,r=[s,l]}return we(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}]),e}(),Oe=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,o,a,s,l){var c,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,r.Z)(this,n),(c=t.call(this,e,i,l.delay)).element=i,c.keyframes=o,c.preStyleProps=a,c.postStyleProps=s,c._stretchStartingKeyframe=u,c.timings={duration:l.duration,delay:l.delay,easing:l.easing},c}return(0,o.Z)(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,l=G(e[0],!1);l.offset=0,o.push(l);var c=G(e[0],!1);c.offset=Ee(s),o.push(c);for(var u=e.length-1,d=1;d<=u;d++){var h=G(e[d],!1);h.offset=Ee((n+h.offset*i)/a),o.push(h)}i=a,n=0,r="",e=o}return we(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(Me);function Ee(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 Pe=function e(){(0,r.Z)(this,e)},Ie=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"normalizePropertyName",value:function(e,t){return re(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(qe[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(Pe),qe=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 Ne(e,t,n,i,r,o,a,s,l,c,u,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}var De={},Re=function(){function e(t,n,i){(0,r.Z)(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return(0,o.Z)(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,l,c){var u=[],d=this.ast.options&&this.ast.options.params||De,h=this.buildStyles(n,a&&a.params||De,u),p=s&&s.params||De,f=this.buildStyles(i,p,u),m=new Set,g=new Map,v=new Map,y="void"===i,_={params:Object.assign(Object.assign({},d),p)},b=c?[]:ke(e,t,this.ast.animation,r,o,h,f,_,l,u),w=0;if(b.forEach(function(e){w=Math.max(e.duration+e.delay,w)}),u.length)return Ne(t,this._triggerName,n,i,y,h,f,[],[],g,v,w,u);b.forEach(function(e){var n=e.element,i=S(g,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=S(v,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&m.add(n)});var x=ne(m.values());return Ne(t,this._triggerName,n,i,y,h,f,b,x,g,v,w)}}]),e}(),Le=function(){function e(t,n){(0,r.Z)(this,e),this.styles=t,this.defaultParams=n}return(0,o.Z)(e,[{key:"buildStyles",value:function(e,t){var n={},i=J(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var o=r[e];o.length>1&&(o=te(o,i,t)),n[e]=o})}}),n}}]),e}(),Fe=function(){function e(t,n){var i=this;(0,r.Z)(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new Le(e.style,e.options&&e.options.params||{})}),Be(this.states,"true","1"),Be(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new Re(t,e,i.states))}),this.fallbackTransition=new Re(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return(0,o.Z)(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Be(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var je=new Se,ze=function(){function e(t,n,i){(0,r.Z)(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return(0,o.Z)(e,[{key:"register",value:function(e,t){var n=[],i=me(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=y(this._driver,this._normalizer,i,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=ke(this._driver,t,a,R,L,{},{},r,je,o)).forEach(function(e){var t=S(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,u.l3)})});var l=n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}),c=v(l);return this._playersById[e]=c,c.onDestroy(function(){return i.destroy(e)}),this.players.push(c),c}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=w(t,"","","");return _(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Ue="ng-animate-queued",He="ng-animate-disabled",Ye=".ng-animate-disabled",Je="ng-star-inserted",Ge=[],We={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ve={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,r.Z)(this,e),this.namespaceId=n;var i=t&&t.hasOwnProperty("value"),o=i?t.value:t;if(this.value=nt(o),i){var a=J(t);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return(0,o.Z)(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}(),Xe="void",Ke=new Qe(Xe),$e=function(){function e(t,n,i){(0,r.Z)(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,st(n,this._hostClassName)}return(0,o.Z)(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=S(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var l=S(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(st(e,F),st(e,"ng-trigger-"+t),l[t]=Ke),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete l[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new tt(this.id,t,e),s=this._engine.statesByElement.get(e);s||(st(e,F),st(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var l=s[t],c=new Qe(n,this.id),u=n&&n.hasOwnProperty("value");!u&&l&&c.absorbOptions(l.options),s[t]=c,l||(l=Ke);var d=c.value===Xe;if(d||l.value!==c.value){var h=S(this._engine.playersByElement,e,[]);h.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var p=o.matchTransition(l.value,c.value,e,c.params),f=!1;if(!p){if(!r)return;p=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:p,fromState:l,toState:c,player:a,isFallbackTransition:f}),f||(st(e,Ue),a.onStart(function(){lt(e,Ue)})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),h.push(a),a}if(!dt(l.params,c.params)){var m=[],g=o.matchStyles(l.value,l.params,m),v=o.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(function(){X(e,g),Q(e,v)})}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,i){t._elementListeners.set(i,n.filter(function(t){return t.name!=e}))})}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,i=this._engine.driver.query(e,B,!0);i.forEach(function(e){if(!e.__ng_removed){var i=n._engine.fetchNamespacesByElement(e);i.size?i.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):n.clearElementCache(e)}}),this._engine.afterFlushAnimationsDone(function(){return i.forEach(function(e){return n.clearElementCache(e)})})}},{key:"triggerLeaveAnimation",value:function(e,t,n,i){var r=this,o=this._engine.statesByElement.get(e);if(o){var a=[];if(Object.keys(o).forEach(function(t){if(r._triggers[t]){var n=r.trigger(e,t,Xe,i);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&v(a).onDone(function(){return r._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(n&&i){var r=new Set;n.forEach(function(n){var o=n.name;if(!r.has(o)){r.add(o);var a=t._triggers[o].fallbackTransition,s=i[o]||Ke,l=new Qe(Xe),c=new tt(t.id,o,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:o,transition:a,fromState:s,toState:l,player:c,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,t){var n=this,i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var r=!1;if(i.totalAnimations){var o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else for(var a=e;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==We||(i.afterFlush(function(){return n.clearElementCache(e)}),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){st(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach(function(i){var r=i.player;if(!r.destroyed){var o=i.element,a=t._elementListeners.get(o);a&&a.forEach(function(t){if(t.name==i.triggerName){var n=w(o,i.triggerName,i.fromState.value,i.toState.value);n._data=e,_(i.player,t.phase,n,t.callback)}}),r.markedForDestroy?t._engine.afterFlush(function(){r.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(e,n){var i=e.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:t._engine.driver.containsElement(e.element,n.element)?1:-1})}},{key:"destroy",value:function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find(function(t){return t.element===e})||t}}]),e}(),et=function(){function e(t,n,i){(0,r.Z)(this,e),this.bodyNode=t,this.driver=n,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(e,t){}}return(0,o.Z)(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 $e(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r<i.length;r++){var o=n[i[r]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&t.add(a)}}return t}},{key:"trigger",value:function(e,t,n,i){if(it(t)){var r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}},{key:"insertNode",value:function(e,t,n,i){if(it(t)){var r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;var o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),st(e,He)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),lt(e,He))}},{key:"removeNode",value:function(e,t,n,i){if(it(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return it(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,B,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,z,!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 v(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=We,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,Ye)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Ye,!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i<this.collectedEnterElements.length;i++){var r=this.collectedEnterElements[i];st(r,Je)}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 l=this.collectedLeaveElements[s];this.processLeaveNode(l)}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 c=this._whenQuietFns;this._whenQuietFns=[],n.length?v(n).onDone(function(){c.forEach(function(e){return e()})}):c.forEach(function(e){return e()})}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(e.join("\n")))}},{key:"_flushAnimations",value:function(e,t){var n=this,i=new Se,r=[],o=new Map,a=[],s=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(function(e){d.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),i=0;i<t.length;i++)d.add(t[i])});var h=this.bodyNode,p=Array.from(this.statesByElement.keys()),m=at(p,this.collectedEnterElements),g=new Map,y=0;m.forEach(function(e,t){var n=R+y++;g.set(t,n),e.forEach(function(e){return st(e,n)})});for(var _=[],b=new Set,w=new Set,x=0;x<this.collectedLeaveElements.length;x++){var C=this.collectedLeaveElements[x],k=C.__ng_removed;k&&k.setForRemoval&&(_.push(C),b.add(C),k.hasAnimation?this.driver.query(C,".ng-star-inserted",!0).forEach(function(e){return b.add(e)}):w.add(C))}var T=new Map,A=at(p,Array.from(b));A.forEach(function(e,t){var n=L+y++;T.set(t,n),e.forEach(function(e){return st(e,n)})}),e.push(function(){m.forEach(function(e,t){var n=g.get(t);e.forEach(function(e){return lt(e,n)})}),A.forEach(function(e,t){var n=T.get(t);e.forEach(function(e){return lt(e,n)})}),_.forEach(function(e){n.processLeaveNode(e)})});for(var Z=[],M=[],O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(Z.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),p=T.get(o),f=g.get(o),m=n._buildInstruction(e,i,f,p,d);if(m.errors&&m.errors.length)M.push(m);else{if(d)return t.onStart(function(){return X(o,m.fromStyles)}),t.onDestroy(function(){return Q(o,m.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return X(o,m.fromStyles)}),t.onDestroy(function(){return Q(o,m.toStyles)}),void r.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(o,m.timelines),a.push({instruction:m,player:t,element:o}),m.queriedElements.forEach(function(e){return S(s,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=l.get(t);i||l.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(M.length){var E=[];M.forEach(function(e){E.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return E.push("- ".concat(e,"\n"))})}),Z.forEach(function(e){return e.destroy()}),this.reportError(E)}var P=new Map,I=new Map;a.forEach(function(e){var t=e.element;i.has(t)&&(I.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,P))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){S(P,t,[]).push(e),e.destroy()})});var q=_.filter(function(e){return ht(e,l,c)}),N=new Map;ot(N,this.driver,w,c,u.l3).forEach(function(e){ht(e,l,c)&&q.push(e)});var D=new Map;m.forEach(function(e,t){ot(D,n.driver,new Set(e),l,u.k1)}),q.forEach(function(e){var t=N.get(e),n=D.get(e);N.set(e,Object.assign(Object.assign({},t),n))});var F=[],B=[],j={};a.forEach(function(e){var t=e.element,a=e.player,s=e.instruction;if(i.has(t)){if(d.has(t))return a.onDestroy(function(){return Q(t,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var l=j;if(I.size>1){for(var c=t,u=[];c=c.parentNode;){var h=I.get(c);if(h){l=h;break}u.push(c)}u.forEach(function(e){return I.set(e,l)})}var p=n._buildAnimation(a.namespaceId,s,P,o,D,N);if(a.setRealPlayer(p),l===j)F.push(a);else{var f=n.playersByElement.get(l);f&&f.length&&(a.parentPlayer=v(f)),r.push(a)}}else X(t,s.fromStyles),a.onDestroy(function(){return Q(t,s.toStyles)}),B.push(a),d.has(t)&&r.push(a)}),B.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=v(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var U=0;U<_.length;U++){var H=_[U],Y=H.__ng_removed;if(lt(H,L),!Y||!Y.hasAnimation){var J=[];if(s.size){var G=s.get(H);G&&G.length&&J.push.apply(J,(0,f.Z)(G));for(var W=this.driver.query(H,z,!0),V=0;V<W.length;V++){var K=s.get(W[V]);K&&K.length&&J.push.apply(J,(0,f.Z)(K))}}var $=J.filter(function(e){return!e.destroyed});$.length?ct(this,H,$):this.processLeaveNode(H)}}return _.length=0,F.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()}),F}},{key:"elementContainsData",value:function(e,t){var n=!1,i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,n,i,r){var o=[];if(t){var a=this.playersByQueriedElement.get(e);a&&(o=a)}else{var s=this.playersByElement.get(e);if(s){var l=!r||r==Xe;s.forEach(function(e){e.queued||(l||e.triggerName==i)&&o.push(e)})}}return(n||i)&&(o=o.filter(function(e){return!(n&&n!=e.namespaceId||i&&i!=e.triggerName)})),o}},{key:"_beforeAnimationBuild",value:function(e,t,n){var i,r=this,o=t.element,a=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName,l=(0,p.Z)(t.timelines);try{var c=function(){var e=i.value.element,l=e!==o,c=S(n,e,[]);r._getPreviousPlayers(e,l,a,s,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),c.push(e)})};for(l.s();!(i=l.n()).done;)c()}catch(u){l.e(u)}finally{l.f()}X(o,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,i,r,o){var a=this,s=t.triggerName,l=t.element,c=[],d=new Set,h=new Set,p=t.timelines.map(function(t){var p=t.element;d.add(p);var f=p.__ng_removed;if(f&&f.removedBeforeQueried)return new u.ZN(t.duration,t.delay);var m,g,v=p!==l,_=(m=(n.get(p)||Ge).map(function(e){return e.getRealPlayer()}),g=[],ut(m,g),g).filter(function(e){return!!e.element&&e.element===p}),b=r.get(p),w=o.get(p),S=y(a.driver,a._normalizer,p,t.keyframes,b,w),x=a._buildPlayer(t,S,_);if(t.subTimeline&&i&&h.add(p),v){var C=new tt(e,s,p);C.setRealPlayer(x),c.push(C)}return x});c.forEach(function(e){S(a.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var i;if(e instanceof Map){if(i=e.get(t)){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&e.delete(t)}}else if(i=e[t]){if(i.length){var o=i.indexOf(n);i.splice(o,1)}0==i.length&&delete e[t]}return i}(a.playersByQueriedElement,e.element,e)})}),d.forEach(function(e){return st(e,j)});var f=v(p);return f.onDestroy(function(){d.forEach(function(e){return lt(e,j)}),Q(l,t.toStyles)}),h.forEach(function(e){S(i,e,[]).push(f)}),f}},{key:"_buildPlayer",value:function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new u.ZN(e.duration,e.delay)}}]),e}(),tt=function(){function e(t,n,i){(0,r.Z)(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new u.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return(0,o.Z)(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 _(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){S(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 nt(e){return null!=e?e:null}function it(e){return e&&1===e.nodeType}function rt(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function ot(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(rt(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Ve,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return rt(e,o[s++])}),a}function at(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}function st(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function lt(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function ct(e,t,n){v(n).onDone(function(){return e.processLeaveNode(t)})}function ut(e,t){for(var n=0;n<e.length;n++){var i=e[n];i instanceof u.ZE?ut(i.players,t):t.push(i)}}function dt(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}function ht(e,t,n){var i=n.get(e);if(!i)return!1;var r=t.get(e);return r?i.forEach(function(e){return r.add(e)}):t.set(e,i),n.delete(e),!0}var pt=function(){function e(t,n,i){var o=this;(0,r.Z)(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new et(t,n,i),this._timelineEngine=new ze(t,n,i),this._transitionEngine.onRemovalComplete=function(e,t){return o.onRemovalComplete(e,t)}}return(0,o.Z)(e,[{key:"registerTrigger",value:function(e,t,n,i,r){var o=e+"-"+i,a=this._triggerCache[o];if(!a){var s=[],l=me(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(e,t){return new Fe(e,t)}(i,l),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}},{key:"onRemove",value:function(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,r){if("@"==n.charAt(0)){var o=x(n),a=(0,i.Z)(o,2);this._timelineEngine.command(a[0],t,a[1],r)}else this._transitionEngine.trigger(e,t,n,r)}},{key:"listen",value:function(e,t,n,r,o){if("@"==n.charAt(0)){var a=x(n),s=(0,i.Z)(a,2);return this._timelineEngine.listen(s[0],t,s[1],o)}return this._transitionEngine.listen(e,t,n,r,o)}},{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 ft(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=gt(t[0]),t.length>1&&(i=gt(t[t.length-1]))):t&&(n=gt(t)),n||i?new mt(e,n,i):null}var mt=function(){var e=function(){function e(t,n,i){(0,r.Z)(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var o=e.initialStylesByElement.get(t);o||e.initialStylesByElement.set(t,o={}),this._initialStyles=o}return(0,o.Z)(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(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&&(X(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function gt(e){for(var t=null,n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];vt(r)&&((t=t||{})[r]=e[r])}return t}function vt(e){return"display"===e||"position"===e}var yt="animation",_t="animationend",bt=function(){function e(t,n,i,o,a,s,l){var c=this;(0,r.Z)(this,e),this._element=t,this._name=n,this._duration=i,this._delay=o,this._easing=a,this._fillMode=s,this._onDoneFn=l,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return c._handleCallback(e)}}return(0,o.Z)(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=Tt(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)","===e.charAt(n)&&0}(n),t="".concat(n,", ").concat(t)),kt(e,"",t),Ct(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){wt(this._element,this._name,"paused")}},{key:"resume",value:function(){wt(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=St(this._element,this._name);this._position=e*this._duration,kt(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(),Ct(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),t=this._name,(i=xt(n=Tt(e=this._element,"").split(","),t))>=0&&(n.splice(i,1),kt(e,"",n.join(","))))}}]),e}();function wt(e,t,n){kt(e,"PlayState",n,St(e,t))}function St(e,t){var n=Tt(e,"");return n.indexOf(",")>0?xt(n.split(","),t):xt([n],t)}function xt(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Ct(e,t,n){n?e.removeEventListener(_t,t):e.addEventListener(_t,t)}function kt(e,t,n,i){var r=yt+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function Tt(e,t){return e.style[yt+t]||""}var At=function(){function e(t,n,i,o,a,s,l,c){(0,r.Z)(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=o,this._delay=a,this._finalStyles=l,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=o+a,this._buildStyler()}return(0,o.Z)(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._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new bt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:le(e.element,i))})}this.currentSnapshot=t}}]),e}(),Zt=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this)).element=e,o._startingStyles={},o.__initialized=!1,o._styles=q(i),o}return(0,o.Z)(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]}),(0,d.Z)((0,h.Z)(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])}),(0,d.Z)((0,h.Z)(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,(0,d.Z)((0,h.Z)(n.prototype),"destroy",this).call(this))}}]),n}(u.ZN),Mt="gen_css_kf_",Ot=function(){function e(){(0,r.Z)(this,e),this._count=0}return(0,o.Z)(e,[{key:"validateStyleProperty",value:function(e){return O(e)}},{key:"matchesElement",value:function(e,t){return E(e,t)}},{key:"containsElement",value:function(e,t){return P(e,t)}},{key:"query",value:function(e,t,n){return I(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 q(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof At}),s={};oe(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var l=Pt(t=ae(e,t,s));if(0==n)return new Zt(e,l);var c="".concat(Mt).concat(this._count++),u=this.buildKeyframeElement(e,c,t),d=Et(e);d.appendChild(u);var h=ft(e,t),p=new At(e,t,c,n,i,r,l,h);return p.onDestroy(function(){return It(u)}),p}}]),e}();function Et(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head}function Pt(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 It(e){e.parentNode.removeChild(e)}var qt=function(){function e(t,n,i,o){(0,r.Z)(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return(0,o.Z)(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]:le(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}(),Nt=function(){function e(){(0,r.Z)(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Dt().toString()),this._cssKeyframesDriver=new Ot}return(0,o.Z)(e,[{key:"validateStyleProperty",value:function(e){return O(e)}},{key:"matchesElement",value:function(e,t){return E(e,t)}},{key:"containsElement",value:function(e,t){return P(e,t)}},{key:"query",value:function(e,t,n){return I(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0,s=!a&&!this._isNativeImpl;if(s)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var l=0==i?"both":"forwards",c={duration:n,delay:i,fill:l};r&&(c.easing=r);var u={},d=o.filter(function(e){return e instanceof qt});oe(n,i)&&d.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var h=ft(e,t=ae(e,t=t.map(function(e){return G(e,!1)}),u));return new qt(e,t,c,h)}}]),e}();function Dt(){return m()&&Element.prototype.animate||{}}var Rt=n(40098),Lt=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this))._nextAnimationId=0,o._renderer=e.createRenderer(i.body,{id:"0",encapsulation:l.ifc.None,styles:[],data:{animation:[]}}),o}return(0,o.Z)(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?(0,u.vP)(e):e;return jt(this._renderer,null,t,"register",[n]),new Ft(t,this._renderer)}}]),n}(u._j);return e.\u0275fac=function(t){return new(t||e)(l.LFG(l.FYo),l.LFG(Rt.K0))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac}),e}(),Ft=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this))._id=e,o._renderer=i,o}return(0,o.Z)(n,[{key:"create",value:function(e,t){return new Bt(this._id,e,t||{},this._renderer)}}]),n}(u.LC),Bt=function(){function e(t,n,i,o){(0,r.Z)(this,e),this.id=t,this.element=n,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return(0,o.Z)(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return jt(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"),this._started=!1}},{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 jt(e,t,n,i,r){return e.setProperty(t,"@@".concat(n,":").concat(i),r)}var zt="@",Ut="@.disabled",Ht=function(){var e=function(){function e(t,n,i){(0,r.Z)(this,e),this.delegate=t,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return(0,o.Z)(e,[{key:"createRenderer",value:function(e,t){var n=this,i=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var r=this._rendererCache.get(i);return r||(r=new Yt("",i,this.engine),this._rendererCache.set(i,r)),r}var o=t.id,a=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,e),t.data.animation.forEach(function t(i){Array.isArray(i)?i.forEach(t):n.engine.registerTrigger(o,a,e,i.name,i)}),new Jt(this,a,i,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then(function(){e._microtaskId++})}},{key:"scheduleListenerCallback",value:function(e,t,n){var 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=(0,i.Z)(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)(l.LFG(l.FYo),l.LFG(pt),l.LFG(l.R0b))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac}),e}(),Yt=function(){function e(t,n,i){(0,r.Z)(this,e),this.namespaceId=t,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}return(0,o.Z)(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 i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){t.charAt(0)==zt&&t==Ut?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}(),Jt=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,o,a){var s;return(0,r.Z)(this,n),(s=t.call(this,i,o,a)).factory=e,s.namespaceId=i,s}return(0,o.Z)(n,[{key:"setProperty",value:function(e,t,n){t.charAt(0)==zt?"."==t.charAt(1)&&t==Ut?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,o,a=this;if(t.charAt(0)==zt){var s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),l=t.substr(1),c="";if(l.charAt(0)!=zt){var u=(o=(r=l).indexOf("."),[r.substring(0,o),r.substr(o+1)]),d=(0,i.Z)(u,2);l=d[0],c=d[1]}return this.engine.listen(this.namespaceId,s,l,c,function(e){a.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(Yt),Gt=function(){var e=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,o){return(0,r.Z)(this,n),t.call(this,e.body,i,o)}return(0,o.Z)(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(pt);return e.\u0275fac=function(t){return new(t||e)(l.LFG(Rt.K0),l.LFG(D),l.LFG(Pe))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac}),e}(),Wt=new l.OlP("AnimationModuleType"),Vt=[{provide:u._j,useClass:Lt},{provide:Pe,useFactory:function(){return new Ie}},{provide:pt,useClass:Gt},{provide:l.FYo,useFactory:function(e,t,n){return new Ht(e,t,n)},deps:[c.se,pt,l.R0b]}],Qt=[{provide:D,useFactory:function(){return"function"==typeof Dt()?new Nt:new Ot}},{provide:Wt,useValue:"BrowserAnimations"}].concat(Vt),Xt=[{provide:D,useClass:N},{provide:Wt,useValue:"NoopAnimations"}].concat(Vt),Kt=function(){var e=function(){function e(){(0,r.Z)(this,e)}return(0,o.Z)(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?Xt:Qt}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.oAB({type:e}),e.\u0275inj=l.cJS({providers:Qt,imports:[c.b2]}),e}()},29176:function(e,t,n){"use strict";n.d(t,{b2:function(){return J},H7:function(){return j},Dx:function(){return W},HJ:function(){return $},q6:function(){return H},se:function(){return E}});var i,r=n(51751),o=n(12558),a=n(11254),s=n(61680),l=n(49843),c=n(37859),u=n(40098),d=n(37602),h=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,s.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{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){e.parentNode&&e.parentNode.removeChild(e)}},{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:"getBaseHref",value:function(e){var t=(p=p||document.querySelector("base"))?p.getAttribute("href"):null;return null==t?null:function(e){(i=i||document.createElement("a")).setAttribute("href",e);var t=i.pathname;return"/"===t.charAt(0)?t:"/".concat(t)}(t)}},{key:"resetBaseElement",value:function(){p=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(e){return(0,u.Mx)(document.cookie,e)}}],[{key:"makeCurrent",value:function(){(0,u.HT)(new n)}}]),n}(function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;return(0,s.Z)(this,n),(e=t.apply(this,arguments)).supportsDOMEvents=!0,e}return n}(u.w_)),p=null,f=new d.OlP("TRANSITION_ID"),m=[{provide:d.ip1,useFactory:function(e,t,n){return function(){n.get(d.CZH).donePromise.then(function(){var n=(0,u.q)();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:[f,u.K0,d.zs3],multi:!0}],g=function(){function e(){(0,s.Z)(this,e)}return(0,a.Z)(e,[{key:"addToWindow",value:function(e){d.dqk.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},d.dqk.getAllAngularTestabilities=function(){return e.getAllTestabilities()},d.dqk.getAllAngularRootElements=function(){return e.getAllRootElements()},d.dqk.frameworkStabilizers||(d.dqk.frameworkStabilizers=[]),d.dqk.frameworkStabilizers.push(function(e){var t=d.dqk.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?(0,u.q)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){(0,d.VLi)(new e)}}]),e}(),v=function(){var e=function(){function e(){(0,s.Z)(this,e)}return(0,a.Z)(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=d.Yz7({token:e,factory:e.\u0275fac}),e}(),y=new d.OlP("EventManagerPlugins"),_=function(){var e=function(){function e(t,n){var i=this;(0,s.Z)(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return(0,a.Z)(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i<n.length;i++){var r=n[i];if(r.supports(e))return this._eventNameToPlugin.set(e,r),r}throw new Error("No event manager plugin found for event ".concat(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.LFG(y),d.LFG(d.R0b))},e.\u0275prov=d.Yz7({token:e,factory:e.\u0275fac}),e}(),b=function(){function e(t){(0,s.Z)(this,e),this._doc=t}return(0,a.Z)(e,[{key:"addGlobalEventListener",value:function(e,t,n){var i=(0,u.q)().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target ".concat(i," for event ").concat(t));return this.addEventListener(i,t,n)}}]),e}(),w=function(){var e=function(){function e(){(0,s.Z)(this,e),this._stylesSet=new Set}return(0,a.Z)(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=d.Yz7({token:e,factory:e.\u0275fac}),e}(),S=function(){var e=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,s.Z)(this,n),(i=t.call(this))._doc=e,i._hostNodes=new Map,i._hostNodes.set(e.head,[]),i}return(0,a.Z)(n,[{key:"_addStylesToHost",value:function(e,t,n){var i=this;e.forEach(function(e){var r=i._doc.createElement("style");r.textContent=e,n.push(t.appendChild(r))})}},{key:"addHost",value:function(e){var t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}},{key:"removeHost",value:function(e){var t=this._hostNodes.get(e);t&&t.forEach(x),this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach(function(n,i){t._addStylesToHost(e,i,n)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(e){return e.forEach(x)})}}]),n}(w);return e.\u0275fac=function(t){return new(t||e)(d.LFG(u.K0))},e.\u0275prov=d.Yz7({token:e,factory:e.\u0275fac}),e}();function x(e){(0,u.q)().remove(e)}var C={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/"},k=/%COMP%/g,T="%COMP%",A="_nghost-".concat(T),Z="_ngcontent-".concat(T);function M(e,t,n){for(var i=0;i<t.length;i++){var r=t[i];Array.isArray(r)?M(e,r,n):(r=r.replace(k,e),n.push(r))}return n}function O(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var E=function(){var e=function(){function e(t,n,i){(0,s.Z)(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new P(t)}return(0,a.Z)(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case d.ifc.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new I(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case 1:case d.ifc.ShadowDom:return new q(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=M(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.LFG(_),d.LFG(S),d.LFG(d.AFp))},e.\u0275prov=d.Yz7({token:e,factory:e.\u0275fac}),e}(),P=function(){function e(t){(0,s.Z)(this,e),this.eventManager=t,this.data=Object.create(null)}return(0,a.Z)(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(C[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,i){if(i){t=i+":"+t;var r=C[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var i=C[n];i?e.removeAttributeNS(i,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,i){i&(d.JOm.DashCase|d.JOm.Important)?e.style.setProperty(t,n,i&d.JOm.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&d.JOm.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,O(n)):this.eventManager.addEventListener(e,t,O(n))}}]),e}(),I=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,o){var a;(0,s.Z)(this,n),(a=t.call(this,e)).component=r;var l=M(o+"-"+r.id,r.styles,[]);return i.addStyles(l),a.contentAttr=Z.replace(k,o+"-"+r.id),a.hostAttr=A.replace(k,o+"-"+r.id),a}return(0,a.Z)(n,[{key:"applyToHost",value:function(e){(0,r.Z)((0,o.Z)(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var i=(0,r.Z)((0,o.Z)(n.prototype),"createElement",this).call(this,e,t);return(0,r.Z)((0,o.Z)(n.prototype),"setAttribute",this).call(this,i,this.contentAttr,""),i}}]),n}(P),q=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,i,r,o){var a;(0,s.Z)(this,n),(a=t.call(this,e)).sharedStylesHost=i,a.hostEl=r,a.shadowRoot=r.attachShadow({mode:"open"}),a.sharedStylesHost.addHost(a.shadowRoot);for(var l=M(o.id,o.styles,[]),c=0;c<l.length;c++){var u=document.createElement("style");u.textContent=l[c],a.shadowRoot.appendChild(u)}return a}return(0,a.Z)(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(0,r.Z)((0,o.Z)(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,i){return(0,r.Z)((0,o.Z)(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,i)}},{key:"removeChild",value:function(e,t){return(0,r.Z)((0,o.Z)(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot((0,r.Z)((0,o.Z)(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}(P),N=function(){var e=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){return(0,s.Z)(this,n),t.call(this,e)}return(0,a.Z)(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var i=this;return e.addEventListener(t,n,!1),function(){return i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(b);return e.\u0275fac=function(t){return new(t||e)(d.LFG(u.K0))},e.\u0275prov=d.Yz7({token:e,factory:e.\u0275fac}),e}(),D=["alt","control","meta","shift"],R={"\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"},L={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"},F={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},B=function(){var e=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){return(0,s.Z)(this,n),t.call(this,e)}return(0,a.Z)(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,i){var r=n.parseEventName(t),o=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return(0,u.q)().onAndCancel(e,r.domEventName,o)})}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(t.pop()),o="";if(D.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&L.hasOwnProperty(t)&&(t=L[t]))}return R[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),D.forEach(function(i){i!=n&&(0,F[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(b);return e.\u0275fac=function(t){return new(t||e)(d.LFG(u.K0))},e.\u0275prov=d.Yz7({token:e,factory:e.\u0275fac}),e}(),j=function(){var e=function e(){(0,s.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,d.Yz7)({factory:function(){return(0,d.LFG)(U)},token:e,providedIn:"root"}),e}();function z(e){return new U(e.get(u.K0))}var U=function(){var e=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;return(0,s.Z)(this,n),(i=t.call(this))._doc=e,i}return(0,a.Z)(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case d.q3G.NONE:return t;case d.q3G.HTML:return(0,d.qzn)(t,"HTML")?(0,d.z3N)(t):(0,d.EiD)(this._doc,String(t)).toString();case d.q3G.STYLE:return(0,d.qzn)(t,"Style")?(0,d.z3N)(t):t;case d.q3G.SCRIPT:if((0,d.qzn)(t,"Script"))return(0,d.z3N)(t);throw new Error("unsafe value used in a script context");case d.q3G.URL:return(0,d.yhl)(t),(0,d.qzn)(t,"URL")?(0,d.z3N)(t):(0,d.mCW)(String(t));case d.q3G.RESOURCE_URL:if((0,d.qzn)(t,"ResourceURL"))return(0,d.z3N)(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(0,d.JVY)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return(0,d.L6k)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return(0,d.eBb)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return(0,d.LAX)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return(0,d.pB0)(e)}}]),n}(j);return e.\u0275fac=function(t){return new(t||e)(d.LFG(u.K0))},e.\u0275prov=(0,d.Yz7)({factory:function(){return z((0,d.LFG)(d.gxx))},token:e,providedIn:"root"}),e}(),H=(0,d.eFA)(d._c5,"browser",[{provide:d.Lbi,useValue:u.bD},{provide:d.g9A,useValue:function(){h.makeCurrent(),g.init()},multi:!0},{provide:u.K0,useFactory:function(){return(0,d.RDi)(document),document},deps:[]}]),Y=[[],{provide:d.zSh,useValue:"root"},{provide:d.qLn,useFactory:function(){return new d.qLn},deps:[]},{provide:y,useClass:N,multi:!0,deps:[u.K0,d.R0b,d.Lbi]},{provide:y,useClass:B,multi:!0,deps:[u.K0]},[],{provide:E,useClass:E,deps:[_,S,d.AFp]},{provide:d.FYo,useExisting:E},{provide:w,useExisting:S},{provide:S,useClass:S,deps:[u.K0]},{provide:d.dDg,useClass:d.dDg,deps:[d.R0b]},{provide:_,useClass:_,deps:[y,d.R0b]},{provide:u.JF,useClass:v,deps:[]},[]],J=function(){var e=function(){function e(t){if((0,s.Z)(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(0,a.Z)(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:d.AFp,useValue:t.appId},{provide:f,useExisting:d.AFp},m]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.LFG(e,12))},e.\u0275mod=d.oAB({type:e}),e.\u0275inj=d.cJS({providers:Y,imports:[u.ez,d.hGG]}),e}();function G(){return new W((0,d.LFG)(u.K0))}var W=function(){var e=function(){function e(t){(0,s.Z)(this,e),this._doc=t}return(0,a.Z)(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)(d.LFG(u.K0))},e.\u0275prov=(0,d.Yz7)({factory:G,token:e,providedIn:"root"}),e}(),V="undefined"!=typeof window&&window||{},Q=function e(t,n){(0,s.Z)(this,e),this.msPerTick=t,this.numTicks=n},X=function(){function e(t){(0,s.Z)(this,e),this.appRef=t.injector.get(d.z2F)}return(0,a.Z)(e,[{key:"timeChangeDetection",value:function(e){var t=e&&e.record,n="Change Detection",i=null!=V.console.profile;t&&i&&V.console.profile(n);for(var r=K(),o=0;o<5||K()-r<500;)this.appRef.tick(),o++;var a=K();t&&i&&V.console.profileEnd(n);var s=(a-r)/o;return V.console.log("ran ".concat(o," change detection cycles")),V.console.log("".concat(s.toFixed(2)," ms per check")),new Q(s,o)}}]),e}();function K(){return V.performance&&V.performance.now?V.performance.now():(new Date).getTime()}function $(e){return"profiler",t=new X(e),"undefined"!=typeof COMPILED&&COMPILED||((d.dqk.ng=d.dqk.ng||{}).profiler=t),e;var t}},82605:function(e,t,n){"use strict";n.d(t,{Rf:function(){return o},DM:function(){return a},en:function(){return s},jH:function(){return l},Cf:function(){return c},Db:function(){return u},EG:function(){return d},l4:function(){return h},JY:function(){return p}});var i=n(4839),r={};function o(){return(0,i.KV)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:r}function a(){var e=o(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var i=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return i(n[0])+i(n[1])+i(n[2])+i(n[3])+i(n[4])+i(n[5])+i(n[6])+i(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function s(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);return t?{host:t[4],path:t[5],protocol:t[2],relative:t[5]+(t[6]||"")+(t[8]||"")}:{}}function l(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 c(e){var t=o();if(!("console"in t))return e();var n=t.console,i={};["debug","info","warn","error","log","assert"].forEach(function(e){e in t.console&&n[e].__sentry_original__&&(i[e]=n[e],n[e]=n[e].__sentry_original__)});var r=e();return Object.keys(i).forEach(function(e){n[e]=i[e]}),r}function u(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function d(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 h(){try{return document.location.href}catch(e){return""}}function p(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var i=Date.parse(""+t);return isNaN(i)?6e4:i-e}},4839:function(e,t,n){"use strict";function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function r(e,t){return e.require(t)}n.d(t,{KV:function(){return i},l$:function(){return r}}),e=n.hmd(e)},46354:function(e,t,n){"use strict";n.d(t,{yW:function(){return l}});var i=n(82605),r=n(4839);e=n.hmd(e);var o={nowSeconds:function(){return Date.now()/1e3}},a=(0,r.KV)()?function(){try{return(0,r.l$)(e,"perf_hooks").performance}catch(t){return}}():function(){var e=(0,i.Rf)().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}},l=o.nowSeconds.bind(o);s.nowSeconds.bind(s),function(){var e=(0,i.Rf)().performance;if(e){var t=36e5,n=e.now(),r=Date.now(),o=(e.timeOrigin&&Math.abs(e.timeOrigin+n-r),e.timing&&e.timing.navigationStart);"number"==typeof o&&Math.abs(o+n-r)}}()},39095:function(e,t,n){"use strict";n.d(t,{E$:function(){return I},ym:function(){return N}});var i=n(10270),r=n(61680),o=n(11254),a=n(40098),s=n(37602),l=n(68707),c=n(55371),u=n(93487),d=n(89797),h=(n(33090),n(59371)),p=n(16338),f=n(57682),m=n(85639),g=n(34487),v=n(54562),y=n(44213),_=n(35135),b=n(48359),w=n(4363),S=n(58780),x="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,i=Math.abs(e-t);return i<n}function k(e,t,n,i){var r={top:e.top,bottom:e.bottom,left:e.left,right:e.right};return t.top&&(r.top+=i),t.bottom&&(r.bottom+=i),t.left&&(r.left+=n),t.right&&(r.right+=n),r.height=r.bottom-r.top,r.width=r.right-r.left,r}function T(e){var t=e.clientY,n=e.rect;return t>=n.top&&t<=n.bottom}function A(e){var t=e.clientX,n=e.rect;return t>=n.left&&t<=n.right}function Z(e){var t=e.clientX,n=e.clientY,i=e.allowedEdges,r=e.cursorPrecision,o=e.elm.nativeElement.getBoundingClientRect(),a={};return i.left&&C(t,o.left,r)&&T({clientY:n,rect:o})&&(a.left=!0),i.right&&C(t,o.right,r)&&T({clientY:n,rect:o})&&(a.right=!0),i.top&&C(n,o.top,r)&&A({clientX:t,rect:o})&&(a.top=!0),i.bottom&&C(n,o.bottom,r)&&A({clientX:t,rect:o})&&(a.bottom=!0),a}var M=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function O(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 E(e){var t=e.initialRectangle,n=e.newRectangle,i={};return Object.keys(e.edges).forEach(function(e){i[e]=(n[e]||0)-(t[e]||0)}),i}var P="resize-active",I=function(){var e=function(){function e(t,n,i,o){(0,r.Z)(this,e),this.platformId=t,this.renderer=n,this.elm=i,this.zone=o,this.resizeEdges={},this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=M,this.resizeCursorPrecision=3,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new s.vpe,this.resizing=new s.vpe,this.resizeEnd=new s.vpe,this.mouseup=new l.xQ,this.mousedown=new l.xQ,this.mousemove=new l.xQ,this.destroy$=new l.xQ,this.resizeEdges$=new l.xQ,this.pointerEventListeners=q.getInstance(n,o)}return(0,o.Z)(e,[{key:"ngOnInit",value:function(){var e,t=this,n=(0,c.T)(this.pointerEventListeners.pointerDown,this.mousedown),r=(0,c.T)(this.pointerEventListeners.pointerMove,this.mousemove).pipe((0,h.b)(function(t){e&&t.event.preventDefault()}),(0,p.B)()),o=(0,c.T)(this.pointerEventListeners.pointerUp,this.mouseup),a=function(){e&&e.clonedNode&&(t.elm.nativeElement.parentElement.removeChild(e.clonedNode),t.renderer.setStyle(t.elm.nativeElement,"visibility","inherit"))},s=function(){return Object.assign({},M,t.resizeCursors)};this.resizeEdges$.pipe((0,f.O)(this.resizeEdges),(0,m.U)(function(){return t.resizeEdges&&Object.keys(t.resizeEdges).some(function(e){return!!t.resizeEdges[e]})}),(0,g.w)(function(e){return e?r:u.E}),(0,v.e)(this.mouseMoveThrottleMS),(0,y.R)(this.destroy$)).subscribe(function(n){var i=Z({clientX:n.clientX,clientY:n.clientY,elm:t.elm,allowedEdges:t.resizeEdges,cursorPrecision:t.resizeCursorPrecision}),r=s();if(!e){var o=O(i,r);t.renderer.setStyle(t.elm.nativeElement,"cursor",o)}t.setElementClass(t.elm,"resize-left-hover",!0===i.left),t.setElementClass(t.elm,"resize-right-hover",!0===i.right),t.setElementClass(t.elm,"resize-top-hover",!0===i.top),t.setElementClass(t.elm,"resize-bottom-hover",!0===i.bottom)}),n.pipe((0,_.zg)(function(a){function s(e){return{clientX:e.clientX-a.clientX,clientY:e.clientY-a.clientY}}var l=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 u(e,t){return{x:Math.ceil(e.clientX/t.x),y:Math.ceil(e.clientY/t.y)}}return(0,c.T)(r.pipe((0,b.q)(1)).pipe((0,m.U)(function(e){return[,e]})),r.pipe((0,w.G)())).pipe((0,m.U)(function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];return[n?s(n):n,s(r)]})).pipe((0,S.h)(function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];if(!n)return!0;var o=l(),a=u(n,o),s=u(r,o);return a.x!==s.x||a.y!==s.y})).pipe((0,m.U)(function(e){var t=(0,i.Z)(e,2)[1],n=l();return{clientX:Math.round(t.clientX/n.x)*n.x,clientY:Math.round(t.clientY/n.y)*n.y}})).pipe((0,y.R)((0,c.T)(o,n)))})).pipe((0,S.h)(function(){return!!e})).pipe((0,m.U)(function(t){return k(e.startingRect,e.edges,t.clientX,t.clientY)})).pipe((0,S.h)(function(e){return t.allowNegativeResizes||!!(e.height&&e.width&&e.height>0&&e.width>0)})).pipe((0,S.h)(function(n){return!t.validateResize||t.validateResize({rectangle:n,edges:E({edges:e.edges,initialRectangle:e.startingRect,newRectangle:n})})}),(0,y.R)(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:E({edges:e.edges,initialRectangle:e.startingRect,newRectangle:n}),rectangle:n})}),e.currentRect=n}),n.pipe((0,m.U)(function(e){return e.edges||Z({clientX:e.clientX,clientY:e.clientY,elm:t.elm,allowedEdges:t.resizeEdges,cursorPrecision:t.resizeCursorPrecision})})).pipe((0,S.h)(function(e){return Object.keys(e).length>0}),(0,y.R)(this.destroy$)).subscribe(function(n){e&&a();var i=function(e,t){var n=0,i=0,r=e.nativeElement.style,o=["transform","-ms-transform","-moz-transform","-o-transform"].map(function(e){return r[e]}).find(function(e){return!!e});if(o&&o.includes("translate")&&(n=o.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),i=o.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===t)return{height:e.nativeElement.offsetHeight,width:e.nativeElement.offsetWidth,top:e.nativeElement.offsetTop-i,bottom:e.nativeElement.offsetHeight+e.nativeElement.offsetTop-i,left:e.nativeElement.offsetLeft-n,right:e.nativeElement.offsetWidth+e.nativeElement.offsetLeft-n};var a=e.nativeElement.getBoundingClientRect();return{height:a.height,width:a.width,top:a.top-i,bottom:a.bottom-i,left:a.left-n,right:a.right-n,scrollTop:e.nativeElement.scrollTop,scrollLeft:e.nativeElement.scrollLeft}}(t.elm,t.ghostElementPositioning);e={edges:n,startingRect:i,currentRect:i};var r=s(),o=O(e.edges,r);t.renderer.setStyle(document.body,"cursor",o),t.setElementClass(t.elm,P,!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",O(e.edges,r)),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:E({edges:n,initialRectangle:i,newRectangle:i}),rectangle:k(i,{},0,0)})})}),o.pipe((0,y.R)(this.destroy$)).subscribe(function(){e&&(t.renderer.removeClass(t.elm.nativeElement,P),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:E({edges:e.edges,initialRectangle:e.startingRect,newRectangle:e.currentRect}),rectangle:e.currentRect})}),a(),e=null)})}},{key:"ngOnChanges",value:function(e){e.resizeEdges&&this.resizeEdges$.next(this.resizeEdges)}},{key:"ngOnDestroy",value:function(){(0,a.NF)(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)(s.Y36(s.Lbi),s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(s.R0b))},e.\u0275dir=s.lG2({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:[s.TTD]}),e}(),q=function(){function e(t,n){(0,r.Z)(this,e),this.pointerDown=new d.y(function(e){var i,r;return n.runOutsideAngular(function(){i=t.listen("document","mousedown",function(t){e.next({clientX:t.clientX,clientY:t.clientY,event:t})}),x&&(r=t.listen("document","touchstart",function(t){e.next({clientX:t.touches[0].clientX,clientY:t.touches[0].clientY,event:t})}))}),function(){i(),x&&r()}}).pipe((0,p.B)()),this.pointerMove=new d.y(function(e){var i,r;return n.runOutsideAngular(function(){i=t.listen("document","mousemove",function(t){e.next({clientX:t.clientX,clientY:t.clientY,event:t})}),x&&(r=t.listen("document","touchmove",function(t){e.next({clientX:t.targetTouches[0].clientX,clientY:t.targetTouches[0].clientY,event:t})}))}),function(){i(),x&&r()}}).pipe((0,p.B)()),this.pointerUp=new d.y(function(e){var i,r,o;return n.runOutsideAngular(function(){i=t.listen("document","mouseup",function(t){e.next({clientX:t.clientX,clientY:t.clientY,event:t})}),x&&(r=t.listen("document","touchend",function(t){e.next({clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,event:t})}),o=t.listen("document","touchcancel",function(t){e.next({clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,event:t})}))}),function(){i(),x&&(r(),o())}}).pipe((0,p.B)())}return(0,o.Z)(e,null,[{key:"getInstance",value:function(t,n){return e.instance||(e.instance=new e(t,n)),e.instance}}]),e}(),N=function(){var e=function e(){(0,r.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=s.oAB({type:e}),e.\u0275inj=s.cJS({}),e}()},57695:function(e,t,n){var i=n(53523),r=n(95863),o=n(49023),a=n(15909),s=/^\s*\|\s*/;function l(e,t){var n={};for(var i in e)n[i]=e[i].syntax||e[i];for(var r in t)r in e?t[r].syntax?n[r]=s.test(t[r].syntax)?n[r]+" "+t[r].syntax.trim():t[r].syntax:delete n[r]:t[r].syntax&&(n[r]=t[r].syntax.replace(s,""));return n}function c(e){var t={};for(var n in e)t[n]=e[n].syntax;return t}e.exports={types:l(o,a.syntaxes),atrules:function(e,t){var n={};for(var i in e){var r=t[i]&&t[i].descriptors||null;n[i]={prelude:i in t&&"prelude"in t[i]?t[i].prelude:e[i].prelude||null,descriptors:e[i].descriptors?l(e[i].descriptors,r||{}):r&&c(r)}}for(var o in t)hasOwnProperty.call(e,o)||(n[o]={prelude:t[o].prelude||null,descriptors:t[o].descriptors&&c(t[o].descriptors)});return n}(function(e){var t=Object.create(null);for(var n in e){var i=e[n],r=null;if(i.descriptors)for(var o in r=Object.create(null),i.descriptors)r[o]=i.descriptors[o].syntax;t[n.substr(1)]={prelude:i.syntax.trim().match(/^@\S+\s+([^;\{]*)/)[1].trim()||null,descriptors:r}}return t}(i),a.atrules),properties:l(r,a.properties)}},63335:function(e){function t(e){return{prev:null,next:null,data:e}}function n(e,t,n){var i;return null!==r?(i=r,r=r.cursor,i.prev=t,i.next=n,i.cursor=e.cursor):i={prev:t,next:n,cursor:e.cursor},e.cursor=i,i}function i(e){var t=e.cursor;e.cursor=t.cursor,t.prev=null,t.next=null,t.cursor=r,r=t}var r=null,o=function(){this.cursor=null,this.head=null,this.tail=null};o.createItem=t,o.prototype.createItem=t,o.prototype.updateCursors=function(e,t,n,i){for(var r=this.cursor;null!==r;)r.prev===e&&(r.prev=t),r.next===n&&(r.next=i),r=r.cursor},o.prototype.getSize=function(){for(var e=0,t=this.head;t;)e++,t=t.next;return e},o.prototype.fromArray=function(e){var n=null;this.head=null;for(var i=0;i<e.length;i++){var r=t(e[i]);null!==n?n.next=r:this.head=r,r.prev=n,n=r}return this.tail=n,this},o.prototype.toJSON=o.prototype.toArray=function(){for(var e=this.head,t=[];e;)t.push(e.data),e=e.next;return t},o.prototype.isEmpty=function(){return null===this.head},o.prototype.first=function(){return this.head&&this.head.data},o.prototype.last=function(){return this.tail&&this.tail.data},o.prototype.forEach=o.prototype.each=function(e,t){var r;void 0===t&&(t=this);for(var o=n(this,null,this.head);null!==o.next;)o.next=(r=o.next).next,e.call(t,r.data,r,this);i(this)},o.prototype.forEachRight=o.prototype.eachRight=function(e,t){var r;void 0===t&&(t=this);for(var o=n(this,this.tail,null);null!==o.prev;)o.prev=(r=o.prev).prev,e.call(t,r.data,r,this);i(this)},o.prototype.reduce=function(e,t,r){var o;void 0===r&&(r=this);for(var a=n(this,null,this.head),s=t;null!==a.next;)a.next=(o=a.next).next,s=e.call(r,s,o.data,o,this);return i(this),s},o.prototype.reduceRight=function(e,t,r){var o;void 0===r&&(r=this);for(var a=n(this,this.tail,null),s=t;null!==a.prev;)a.prev=(o=a.prev).prev,s=e.call(r,s,o.data,o,this);return i(this),s},o.prototype.nextUntil=function(e,t,r){if(null!==e){var o;void 0===r&&(r=this);for(var a=n(this,null,e);null!==a.next&&(a.next=(o=a.next).next,!t.call(r,o.data,o,this)););i(this)}},o.prototype.prevUntil=function(e,t,r){if(null!==e){var o;void 0===r&&(r=this);for(var a=n(this,e,null);null!==a.prev&&(a.prev=(o=a.prev).prev,!t.call(r,o.data,o,this)););i(this)}},o.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},o.prototype.map=function(e,t){var n=new o,i=this.head;for(void 0===t&&(t=this);null!==i;)n.appendData(e.call(t,i.data,i,this)),i=i.next;return n},o.prototype.filter=function(e,t){var n=new o,i=this.head;for(void 0===t&&(t=this);null!==i;)e.call(t,i.data,i,this)&&n.appendData(i.data),i=i.next;return n},o.prototype.clear=function(){this.head=null,this.tail=null},o.prototype.copy=function(){for(var e=new o,n=this.head;null!==n;)e.insert(t(n.data)),n=n.next;return e},o.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},o.prototype.prependData=function(e){return this.prepend(t(e))},o.prototype.append=function(e){return this.insert(e)},o.prototype.appendData=function(e){return this.insert(t(e))},o.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},o.prototype.insertData=function(e,n){return this.insert(t(e),n)},o.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},o.prototype.push=function(e){this.insert(t(e))},o.prototype.pop=function(){if(null!==this.tail)return this.remove(this.tail)},o.prototype.unshift=function(e){this.prepend(t(e))},o.prototype.shift=function(){if(null!==this.head)return this.remove(this.head)},o.prototype.prependList=function(e){return this.insertList(e,this.head)},o.prototype.appendList=function(e){return this.insertList(e)},o.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},o.prototype.replace=function(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)},e.exports=o},88373:function(e,t,n){var i=n(62146),r=n(97555).isBOM,o=function(){this.lines=null,this.columns=null,this.linesAndColumnsComputed=!1};o.prototype={setSource:function(e,t,n,i){this.source=e,this.startOffset=void 0===t?0:t,this.startLine=void 0===n?1:n,this.startColumn=void 0===i?1:i,this.linesAndColumnsComputed=!1},ensureLinesAndColumnsComputed:function(){this.linesAndColumnsComputed||(function(e,t){for(var n=t.length,o=i(e.lines,n),a=e.startLine,s=i(e.columns,n),l=e.startColumn,c=t.length>0?r(t.charCodeAt(0)):0;c<n;c++){var u=t.charCodeAt(c);o[c]=a,s[c]=l++,10!==u&&13!==u&&12!==u||(13===u&&c+1<n&&10===t.charCodeAt(c+1)&&(o[++c]=a,s[c]=l),a++,l=1)}o[c]=a,s[c]=l,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},52556:function(e,t,n){var i=n(92455),r=" ";function o(e,t){function n(e,t){return i.slice(e,t).map(function(t,n){for(var i=String(e+n+1);i.length<c;)i=" "+i;return i+" |"+t}).join("\n")}var i=e.source.split(/\r\n?|\n|\f/),o=e.line,a=e.column,s=Math.max(1,o-t)-1,l=Math.min(o+t,i.length+1),c=Math.max(4,String(l).length)+1,u=0;(a+=(r.length-1)*(i[o-1].substr(0,a-1).match(/\t/g)||[]).length)>100&&(u=a-60+3,a=58);for(var d=s;d<=l;d++)d>=0&&d<i.length&&(i[d]=i[d].replace(/\t/g,r),i[d]=(u>0&&i[d].length>u?"\u2026":"")+i[d].substr(u,98)+(i[d].length>u+100-1?"\u2026":""));return[n(s,o),new Array(a+c+2).join("-")+"^",n(o,l)].filter(Boolean).join("\n")}e.exports=function(e,t,n,r,a){var s=i("SyntaxError",e);return s.source=t,s.offset=n,s.line=r,s.column=a,s.sourceFragment=function(e){return o(s,isNaN(e)?0:e)},Object.defineProperty(s,"formattedMessage",{get:function(){return"Parse error: "+s.message+"\n"+o(s,2)}}),s.parseError={offset:n,line:r,column:a},s}},13146:function(e,t,n){var i=n(97077),r=i.TYPE,o=i.NAME,a=n(74586).cmpStr,s=r.EOF,l=r.WhiteSpace,c=r.Comment,u=16777215,d=24,h=function(){this.offsetAndType=null,this.balance=null,this.reset()};h.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]>>d:s},lookupOffset:function(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e-1]&u:this.source.length},lookupValue:function(e,t){return(e+=this.tokenIndex)<this.tokenCount&&a(this.source,this.offsetAndType[e-1]&u,this.offsetAndType[e]&u,t)},getTokenStart:function(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&u:this.offsetAndType[this.tokenCount]&u:this.firstCharOffset},getRawLength:function(e,t){var n,i=e,r=this.offsetAndType[Math.max(i-1,0)]&u;e:for(;i<this.tokenCount&&!((n=this.balance[i])<e);i++)switch(t(this.offsetAndType[i]>>d,this.source,r)){case 1:break e;case 2:i++;break e;default:this.balance[n]===i&&(i=n),r=this.offsetAndType[i]&u}return i-this.tokenIndex},isBalanceEdge:function(e){return this.balance[this.tokenIndex]<e},isDelim:function(e,t){return t?this.lookupType(t)===r.Delim&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===r.Delim&&this.source.charCodeAt(this.tokenStart)===e},getTokenValue:function(){return this.source.substring(this.tokenStart,this.tokenEnd)},getTokenLength:function(){return this.tokenEnd-this.tokenStart},substrToCursor:function(e){return this.source.substring(e,this.tokenStart)},skipWS:function(){for(var e=this.tokenIndex,t=0;e<this.tokenCount&&this.offsetAndType[e]>>d===l;e++,t++);t>0&&this.skip(t)},skipSC:function(){for(;this.tokenType===l||this.tokenType===c;)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])>>d,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])>>d,this.tokenEnd=e&u):(this.tokenIndex=this.tokenCount,this.eof=!0,this.tokenType=s,this.tokenStart=this.tokenEnd=this.source.length)},forEachToken:function(e){for(var t=0,n=this.firstCharOffset;t<this.tokenCount;t++){var i=n,r=this.offsetAndType[t],o=r&u;n=o,e(r>>d,i,o,t)}},dump:function(){var e=this,t=new Array(this.tokenCount);return this.forEachToken(function(n,i,r,a){t[a]={idx:a,type:o[n],chunk:e.source.substring(i,r),balance:e.balance[a]}}),t}},e.exports=h},62146:function(e){var t="undefined"!=typeof Uint32Array?Uint32Array:Array;e.exports=function(e,n){return null===e||e.length<n?new t(Math.max(n+1024,16384)):e}},62139:function(e,t,n){var i=n(63335);e.exports=function(e){return{fromPlainObject:function(t){return e(t,{enter:function(e){e.children&&e.children instanceof i==0&&(e.children=(new i).fromArray(e.children))}}),t},toPlainObject:function(t){return e(t,{leave:function(e){e.children&&e.children instanceof i&&(e.children=e.children.toArray())}}),t}}}},6063:function(e,t,n){var i=n(92455);e.exports=function(e,t,n){var r=i("SyntaxError",e);return r.input=t,r.offset=n,r.rawMessage=e,r.message=r.rawMessage+"\n "+r.input+"\n--"+new Array((r.offset||r.input.length)+1).join("-")+"^",r}},58298:function(e){function t(e){return e}function n(e,t,i,r){var o,a;switch(e.type){case"Group":o=function(e,t,i,r){var o=" "===e.combinator||r?e.combinator:" "+e.combinator+" ",a=e.terms.map(function(e){return n(e,t,i,r)}).join(o);return(e.explicit||i)&&(a=(r||","===a[0]?"[":"[ ")+a+(r?"]":" ]")),a}(e,t,i,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return n(e.term,t,i,r)+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,i){var r=t,o=!1,a=!1;return"function"==typeof i?r=i:i&&(o=Boolean(i.forceBraces),a=Boolean(i.compact),"function"==typeof i.decorate&&(r=i.decorate)),n(e,r,o,a)}},37149:function(e,t,n){e.exports={SyntaxError:n(6063),parse:n(11261),generate:n(58298),walk:n(37363)}},11261:function(e,t,n){var i=n(57674),r=123,o=function(e){for(var t="function"==typeof Uint32Array?new Uint32Array(128):new Array(128),n=0;n<128;n++)t[n]=(i=String.fromCharCode(n),/[a-zA-Z0-9\-]/.test(i)?1:0);var i;return t}(),a={" ":1,"&&":2,"||":3,"|":4};function s(e){return e.substringToPos(e.findWsEnd(e.pos))}function l(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 c(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 d(e){var t,n=null;return e.eat(r),t=c(e),44===e.charCode()?(e.pos++,125!==e.charCode()&&(n=c(e))):n=t,e.eat(125),{min:Number(t),max:n?Number(n):0}}function h(e,t){var n=function(e){var t=null,n=!1;switch(e.charCode()){case 42:e.pos++,t={min:0,max:0};break;case 43:e.pos++,t={min:1,max:0};break;case 63:e.pos++,t={min:0,max:1};break;case 35:e.pos++,n=!0,t=e.charCode()===r?d(e):{min:1,max:0};break;case r:t=d(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 p(e){var t=e.peek();return""===t?null:{type:"Token",value:t}}function f(e,t){function n(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}for(t=Object.keys(t).sort(function(e,t){return a[e]-a[t]});t.length>0;){for(var i=t.shift(),r=0,o=0;r<e.length;r++){var s=e[r];"Combinator"===s.type&&(s.value===i?(-1===o&&(o=r-1),e.splice(r,1),r--):(-1!==o&&r-o>1&&(e.splice(o,r-o,n(e.slice(o,r),i)),r=o+1),o=-1))}-1!==o&&t.length&&e.splice(o,r-o,n(e.slice(o,r),i))}return i}function m(e){for(var t,n=[],i={},r=null,o=e.pos;t=g(e);)"Spaces"!==t.type&&("Combinator"===t.type?(null!==r&&"Combinator"!==r.type||(e.pos=o,e.error("Unexpected combinator")),i[t.value]=!0):null!==r&&"Combinator"!==r.type&&(i[" "]=!0,n.push({type:"Combinator",value:" "})),n.push(t),r=t,o=e.pos);return null!==r&&"Combinator"===r.type&&(e.pos-=o,e.error("Unexpected combinator")),{type:"Group",terms:n,combinator:f(n,i)||" ",disallowEmpty:!1,explicit:!1}}function g(e){var t=e.charCode();if(t<128&&1===o[t])return function(e){var t;return t=l(e),40===e.charCode()?(e.pos++,{type:"Function",name:t}):h(e,{type:"Keyword",name:t})}(e);switch(t){case 93:break;case 91:return h(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=l(e),e.eat(39),e.eat(62),h(e,{type:"Property",name:t})}(e):function(e){var t,n=null;return e.eat(60),t=l(e),40===e.charCode()&&41===e.nextCharCode()&&(e.pos+=2,t+="()"),91===e.charCodeAt(e.findWsEnd(e.pos))&&(s(e),n=function(e){var t=null,n=null,i=1;return e.eat(91),45===e.charCode()&&(e.peek(),i=-1),-1==i&&8734===e.charCode()?e.peek():t=i*Number(c(e)),s(e),e.eat(44),s(e),8734===e.charCode()?e.peek():(i=1,45===e.charCode()&&(e.peek(),i=-1),n=i*Number(c(e))),e.eat(93),null===t&&null===n?null:{type:"Range",min:t,max:n}}(e)),e.eat(62),h(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 h(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:l(e)}):p(e);case 42:case 43:case 63:case 35:case 33:break;case r:if((t=e.nextCharCode())<48||t>57)return p(e);break;default:return p(e)}}function v(e){var t=new i(e),n=m(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type&&(n=n.terms[0]),n}v("[a&&<b>#|<'c'>*||e() f{2} /,(% g#{1,2} h{2,})]!"),e.exports=v},57674:function(e,t,n){var i=n(6063),r=function(e){this.str=e,this.pos=0};r.prototype={charCodeAt:function(e){return e<this.str.length?this.str.charCodeAt(e):0},charCode:function(){return this.charCodeAt(this.pos)},nextCharCode:function(){return this.charCodeAt(this.pos+1)},nextNonWsCode:function(e){return this.charCodeAt(this.findWsEnd(e))},findWsEnd:function(e){for(;e<this.str.length;e++){var t=this.str.charCodeAt(e);if(13!==t&&10!==t&&12!==t&&32!==t&&9!==t)break}return e},substringToPos:function(e){return this.str.substring(this.pos,this.pos=e)},eat:function(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++},peek:function(){return this.pos<this.str.length?this.str.charAt(this.pos++):""},error:function(e){throw new i(e,this.str,this.pos)}},e.exports=r},37363:function(e){var t=function(){};function n(e){return"function"==typeof e?e:t}e.exports=function(e,i,r){var o=t,a=t;if("function"==typeof i?o=i:i&&(o=n(i.enter),a=n(i.leave)),o===t&&a===t)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(o.call(r,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}a.call(r,t)}(e)}},9861:function(e,t,n){var i=n(79274),r=Object.prototype.hasOwnProperty;function o(e,t){var n=null;e.children.forEach("function"!=typeof t?this.node:function(e){null!==n&&t.call(this,n),this.node(e),n=e},this)}e.exports=function(e){function t(e){if(!r.call(n,e.type))throw new Error("Unknown node type: "+e.type);n[e.type].call(this,e)}var n={};if(e.node)for(var a in e.node)n[a]=e.node[a].generate;return function(e,n){var r="",a={children:o,node:t,chunk:function(e){r+=e},result:function(){return r}};return n&&("function"==typeof n.decorator&&(a=n.decorator(a)),n.sourceMap&&(a=i(a))),a.node(e),a.result()}}},79274:function(e,t,n){var i=n(30673).h,r={Atrule:!0,Selector:!0,Declaration:!0};e.exports=function(e){var t=new i,n=1,o=0,a={line:1,column:0},s={line:0,column:0},l=!1,c={line:1,column:0},u={generated:c},d=e.node;e.node=function(e){if(e.loc&&e.loc.start&&r.hasOwnProperty(e.type)){var i=e.loc.start.line,h=e.loc.start.column-1;s.line===i&&s.column===h||(s.line=i,s.column=h,a.line=n,a.column=o,l&&(l=!1,a.line===c.line&&a.column===c.column||t.addMapping(u)),l=!0,t.addMapping({source:e.loc.source,original:s,generated:a}))}d.call(this,e),l&&r.hasOwnProperty(e.type)&&(c.line=n,c.column=o)};var h=e.chunk;e.chunk=function(e){for(var t=0;t<e.length;t++)10===e.charCodeAt(t)?(n++,o=0):o++;h(e)};var p=e.result;return e.result=function(){return l&&t.addMapping(u),{css:p(),map:t}},e}},59473:function(e,t,n){e.exports=n(39158)},63539:function(e,t,n){var i=n(6326).default,r=n(40533).SyntaxReferenceError,o=n(40533).SyntaxMatchError,a=n(50643),s=n(71473),l=n(11261),c=n(58298),u=n(37363),d=n(73130),h=n(60997).buildMatchGraph,p=n(77569).matchAsTree,f=n(24988),m=n(62798),g=n(92363).getStructureFromConfig,v=h("inherit | initial | unset"),y=h("inherit | initial | unset | <-ms-legacy-expression>");function _(e,t,n){var i={};for(var r in e)e[r].syntax&&(i[r]=n?e[r].syntax:c(e[r].syntax,{compact:t}));return i}function b(e,t,n){for(var r={},o=0,a=Object.entries(e);o<a.length;o++){var s=i(a[o],2),l=s[1];r[s[0]]={prelude:l.prelude&&(n?l.prelude.syntax:c(l.prelude.syntax,{compact:t})),descriptors:l.descriptors&&_(l.descriptors,t,n)}}return r}function w(e,t,n){return{matched:e,iterations:n,error:t,getTrace:f.getTrace,isType:f.isType,isProperty:f.isProperty,isKeyword:f.isKeyword}}function S(e,t,n,i){var r,a=d(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)?w(null,new Error("Matching for a tree with var() is not supported")):(i&&(r=p(a,e.valueCommonSyntax,e)),i&&r.match||(r=p(a,t.match,e)).match?w(r.match,null,r.iterations):w(null,new o(r.reason,t.syntax,n,r),r.iterations))}var x=function(e,t,n){if(this.valueCommonSyntax=v,this.syntax=t,this.generic=!1,this.atrules={},this.properties={},this.types={},this.structure=n||g(e),e){if(e.types)for(var i in e.types)this.addType_(i,e.types[i]);if(e.generic)for(var i in this.generic=!0,s)this.addType_(i,s[i]);if(e.atrules)for(var i in e.atrules)this.addAtrule_(i,e.atrules[i]);if(e.properties)for(var i in e.properties)this.addProperty_(i,e.properties[i])}};x.prototype={structure:{},checkStructure:function(e){function t(e,t){i.push({node:e,message:t})}var n=this.structure,i=[];return this.syntax.walk(e,function(e){n.hasOwnProperty(e.type)?n[e.type].check(e,t):t(e,"Unknown node type `"+e.type+"`")}),!!i.length&&i},createDescriptor:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r={type:t,name:n},o={type:t,name:n,parent:i,syntax:null,match:null};return"function"==typeof e?o.match=h(e,r):("string"==typeof e?Object.defineProperty(o,"syntax",{get:function(){return Object.defineProperty(o,"syntax",{value:l(e)}),o.syntax}}):o.syntax=e,Object.defineProperty(o,"match",{get:function(){return Object.defineProperty(o,"match",{value:h(o.syntax,r)}),o.match}})),o},addAtrule_:function(e,t){var n=this;t&&(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce(function(i,r){return i[r]=n.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,e),i},{}):null})},addProperty_:function(e,t){t&&(this.properties[e]=this.createDescriptor(t,"Property",e))},addType_:function(e,t){t&&(this.types[e]=this.createDescriptor(t,"Type",e),t===s["-ms-legacy-expression"]&&(this.valueCommonSyntax=y))},checkAtruleName:function(e){if(!this.getAtrule(e))return new r("Unknown at-rule","@"+e)},checkAtrulePrelude:function(e,t){var n=this.checkAtruleName(e);if(n)return n;var i=this.getAtrule(e);return!i.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):i.prelude&&!t?new SyntaxError("At-rule `@"+e+"` should contain a prelude"):void 0},checkAtruleDescriptorName:function(e,t){var n=this.checkAtruleName(e);if(n)return n;var i=this.getAtrule(e),o=a.keyword(t);return i.descriptors?i.descriptors[o.name]||i.descriptors[o.basename]?void 0:new r("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")},checkPropertyName:function(e){return a.property(e).custom?new Error("Lexer matching doesn't applicable for custom properties"):this.getProperty(e)?void 0:new r("Unknown property",e)},matchAtrulePrelude:function(e,t){var n=this.checkAtrulePrelude(e,t);return n?w(null,n):t?S(this,this.getAtrule(e).prelude,t,!1):w(null,null)},matchAtruleDescriptor:function(e,t,n){var i=this.checkAtruleDescriptorName(e,t);if(i)return w(null,i);var r=this.getAtrule(e),o=a.keyword(t);return S(this,r.descriptors[o.name]||r.descriptors[o.basename],n,!1)},matchDeclaration:function(e){return"Declaration"!==e.type?w(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)},matchProperty:function(e,t){var n=this.checkPropertyName(e);return n?w(null,n):S(this,this.getProperty(e),t,!0)},matchType:function(e,t){var n=this.getType(e);return n?S(this,n,t,!1):w(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")),S(this,e,t,!1)):w(null,new r("Bad syntax"))},findValueFragments:function(e,t,n,i){return m.matchFragments(this,t,this.matchProperty(e,t),n,i)},findDeclarationValueFragments:function(e,t,n){return m.matchFragments(this,e.value,this.matchDeclaration(e),t,n)},findAllFragments:function(e,t,n){var i=[];return this.syntax.walk(e,{visit:"Declaration",enter:(function(e){i.push.apply(i,this.findDeclarationValueFragments(e,t,n))}).bind(this)}),i},getAtrule:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=a.keyword(e),i=n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name];return i||null},getAtrulePrelude:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getAtrule(e,t);return n&&n.prelude||null},getAtruleDescriptor:function(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null},getProperty:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=a.property(e),i=n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name];return i||null},getType:function(e){return this.types.hasOwnProperty(e)?this.types[e]:null},validate:function(){function e(i,r,o,a){if(o.hasOwnProperty(r))return o[r];o[r]=!1,null!==a.syntax&&u(a.syntax,function(a){if("Type"===a.type||"Property"===a.type){var s="Type"===a.type?i.types:i.properties,l="Type"===a.type?t:n;s.hasOwnProperty(a.name)&&!e(i,a.name,l,s[a.name])||(o[r]=!0)}},this)}var t={},n={};for(var i in this.types)e(this,i,t,this.types[i]);for(var i in this.properties)e(this,i,n,this.properties[i]);return t=Object.keys(t).filter(function(e){return t[e]}),n=Object.keys(n).filter(function(e){return n[e]}),t.length||n.length?{types:t,properties:n}:null},dump:function(e,t){return{generic:this.generic,types:_(this.types,!t,e),properties:_(this.properties,!t,e),atrules:b(this.atrules,!t,e)}},toString:function(){return JSON.stringify(this.dump())}},e.exports=x},40533:function(e,t,n){var i=n(92455),r=n(58298),o={offset:0,line:1,column:1};function a(e,t){var n=e&&e.loc&&e.loc[t];return n?"line"in n?s(n):n:null}function s(e,t){var n={offset:e.offset,line:e.line,column:e.column};if(t){var i=t.split(/\n|\r\n?|\f/);n.offset+=t.length,n.line+=i.length-1,n.column=1===i.length?n.column+t.length:i.pop().length+1}return n}e.exports={SyntaxReferenceError:function(e,t){var n=i("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},SyntaxMatchError:function(e,t,n,l){var c=i("SyntaxMatchError",e),u=function(e,t){for(var n,i,r=e.tokens,l=e.longestMatch,c=l<r.length&&r[l].node||null,u=c!==t?c:null,d=0,h=0,p=0,f="",m=0;m<r.length;m++){var g=r[m].value;m===l&&(h=g.length,d=f.length),null!==u&&r[m].node===u&&(m<=l?p++:p=0),f+=g}return l===r.length||p>1?(n=a(u||t,"end")||s(o,f),i=s(n)):(n=a(u,"start")||s(a(t,"start")||o,f.slice(0,d)),i=a(u,"end")||s(n,f.substr(d,h))),{css:f,mismatchOffset:d,mismatchLength:h,start:n,end:i}}(l,n),d=u.css,h=u.mismatchOffset,p=u.mismatchLength,f=u.start,m=u.end;return c.rawMessage=e,c.syntax=t?r(t):"<generic>",c.css=d,c.mismatchOffset=h,c.mismatchLength=p,c.message=e+"\n syntax: "+c.syntax+"\n value: "+(d||"<empty string>")+"\n --------"+new Array(c.mismatchOffset+1).join("-")+"^",Object.assign(c,f),c.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:f,end:m},c}}},25533:function(e,t,n){var i=n(97555).isDigit,r=n(97555).cmpChar,o=n(97555).TYPE,a=o.Delim,s=o.WhiteSpace,l=o.Comment,c=o.Ident,u=o.Number,d=o.Dimension,h=45,p=!0;function f(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===l);)e=n(++t);return t}function g(e,t,n,r){if(!e)return 0;var o=e.value.charCodeAt(t);if(43===o||o===h){if(n)return 0;t++}for(;t<e.value.length;t++)if(!i(e.value.charCodeAt(t)))return 0;return r+1}function v(e,t,n){var i=!1,r=m(e,t,n);if(null===(e=n(r)))return t;if(e.type!==u){if(!f(e,43)&&!f(e,h))return t;if(i=!0,r=m(n(++r),r,n),null===(e=n(r))&&e.type!==u)return 0}if(!i){var o=e.value.charCodeAt(0);if(43!==o&&o!==h)return 0}return g(e,i?0:1,i,r)}e.exports=function(e,t){var n=0;if(!e)return 0;if(e.type===u)return g(e,0,!1,n);if(e.type===c&&e.value.charCodeAt(0)===h){if(!r(e.value,1,110))return 0;switch(e.value.length){case 2:return v(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==h?0:(n=m(t(++n),n,t),g(e=t(n),0,p,n));default:return e.value.charCodeAt(2)!==h?0:g(e,3,p,n)}}else if(e.type===c||f(e,43)&&t(n+1).type===c){if(e.type!==c&&(e=t(++n)),null===e||!r(e.value,0,110))return 0;switch(e.value.length){case 1:return v(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==h?0:(n=m(t(++n),n,t),g(e=t(n),0,p,n));default:return e.value.charCodeAt(1)!==h?0:g(e,2,p,n)}}else if(e.type===d){for(var o=e.value.charCodeAt(0),a=43===o||o===h?1:0,s=a;s<e.value.length&&i(e.value.charCodeAt(s));s++);return s===a?0:r(e.value,s,110)?s+1===e.value.length?v(t(++n),n,t):e.value.charCodeAt(s+1)!==h?0:s+2===e.value.length?(n=m(t(++n),n,t),g(e=t(n),0,p,n)):g(e,s+2,p,n):0}return 0}},70156:function(e,t,n){var i=n(97555).isHexDigit,r=n(97555).cmpChar,o=n(97555).TYPE,a=o.Ident,s=o.Delim,l=o.Number,c=o.Dimension;function u(e,t){return null!==e&&e.type===s&&e.value.charCodeAt(0)===t}function d(e,t){return e.value.charCodeAt(0)===t}function h(e,t,n){for(var r=t,o=0;r<e.value.length;r++){var a=e.value.charCodeAt(r);if(45===a&&n&&0!==o)return h(e,t+o+1,!1)>0?6:0;if(!i(a))return 0;if(++o>6)return 0}return o}function p(e,t,n){if(!e)return 0;for(;u(n(t),63);){if(++e>6)return 0;t++}return t}e.exports=function(e,t){var n=0;if(null===e||e.type!==a||!r(e.value,0,117))return 0;if(null===(e=t(++n)))return 0;if(u(e,43))return null===(e=t(++n))?0:e.type===a?p(h(e,0,!0),++n,t):u(e,63)?p(1,++n,t):0;if(e.type===l){if(!d(e,43))return 0;var i=h(e,1,!0);return 0===i?0:null===(e=t(++n))?n:e.type===c||e.type===l?d(e,45)&&h(e,1,!1)?n+1:0:p(i,n,t)}return e.type===c&&d(e,43)?p(h(e,1,!0),++n,t):0}},71473:function(e,t,n){var i=n(97555),r=i.isIdentifierStart,o=i.isHexDigit,a=i.isDigit,s=i.cmpStr,l=i.consumeNumber,c=i.TYPE,u=n(25533),d=n(70156),h=["unset","initial","inherit"],p=["calc(","-moz-calc(","-webkit-calc("];function f(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 y(e,t,n){if(e&&"Range"===e.type){var i=Number(void 0!==n&&n!==t.length?t.substr(0,n):t);if(isNaN(i))return!0;if(null!==e.min&&i<e.min)return!0;if(null!==e.max&&i>e.max)return!0}return!1}function _(e,t){var n=e.index,i=0;do{if(i++,e.balance<=n)break}while(e=t(i));return i}function b(e){return function(t,n,i){return null===t?0:t.type===c.Function&&g(t.value,p)?_(t,n):e(t,n,i)}}function w(e){return function(t){return null===t||t.type!==e?0:1}}function S(e){return function(t,n,i){if(null===t||t.type!==c.Dimension)return 0;var r=l(t.value,0);if(null!==e){var o=t.value.indexOf("\\",r),a=-1!==o&&v(t.value,o)?t.value.substring(r,o):t.value.substr(r);if(!1===e.hasOwnProperty(a.toLowerCase()))return 0}return y(i,t.value,r)?0:1}}function x(e){return"function"!=typeof e&&(e=function(){return 0}),function(t,n,i){return null!==t&&t.type===c.Number&&0===Number(t.value)?1:e(t,n,i)}}e.exports={"ident-token":w(c.Ident),"function-token":w(c.Function),"at-keyword-token":w(c.AtKeyword),"hash-token":w(c.Hash),"string-token":w(c.String),"bad-string-token":w(c.BadString),"url-token":w(c.Url),"bad-url-token":w(c.BadUrl),"delim-token":w(c.Delim),"number-token":w(c.Number),"percentage-token":w(c.Percentage),"dimension-token":w(c.Dimension),"whitespace-token":w(c.WhiteSpace),"CDO-token":w(c.CDO),"CDC-token":w(c.CDC),"colon-token":w(c.Colon),"semicolon-token":w(c.Semicolon),"comma-token":w(c.Comma),"[-token":w(c.LeftSquareBracket),"]-token":w(c.RightSquareBracket),"(-token":w(c.LeftParenthesis),")-token":w(c.RightParenthesis),"{-token":w(c.LeftCurlyBracket),"}-token":w(c.RightCurlyBracket),string:w(c.String),ident:w(c.Ident),"custom-ident":function(e){if(null===e||e.type!==c.Ident)return 0;var t=e.value.toLowerCase();return g(t,h)||m(t,"default")?0:1},"custom-property-name":function(e){return null===e||e.type!==c.Ident||45!==f(e.value,0)||45!==f(e.value,1)?0:1},"hex-color":function(e){if(null===e||e.type!==c.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!==c.Hash?0:r(f(e.value,1),f(e.value,2),f(e.value,3))?1:0},"an-plus-b":u,urange:d,"declaration-value":function(e,t){if(!e)return 0;var n=0,i=0,r=e.index;e:do{switch(e.type){case c.BadString:case c.BadUrl:break e;case c.RightCurlyBracket:case c.RightParenthesis:case c.RightSquareBracket:if(e.balance>e.index||e.balance<r)break e;i--;break;case c.Semicolon:if(0===i)break e;break;case c.Delim:if("!"===e.value&&0===i)break e;break;case c.Function:case c.LeftParenthesis:case c.LeftSquareBracket:case c.LeftCurlyBracket:i++}if(n++,e.balance<=r)break}while(e=t(n));return n},"any-value":function(e,t){if(!e)return 0;var n=e.index,i=0;e:do{switch(e.type){case c.BadString:case c.BadUrl:break e;case c.RightCurlyBracket:case c.RightParenthesis:case c.RightSquareBracket:if(e.balance>e.index||e.balance<n)break e}if(i++,e.balance<=n)break}while(e=t(i));return i},dimension:b(S(null)),angle:b(S({deg:!0,grad:!0,rad:!0,turn:!0})),decibel:b(S({db:!0})),frequency:b(S({hz:!0,khz:!0})),flex:b(S({fr:!0})),length:b(x(S({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:b(S({dpi:!0,dpcm:!0,dppx:!0,x:!0})),semitones:b(S({st:!0})),time:b(S({s:!0,ms:!0})),percentage:b(function(e,t,n){return null===e||e.type!==c.Percentage||y(n,e.value,e.value.length-1)?0:1}),zero:x(),number:b(function(e,t,n){if(null===e)return 0;var i=l(e.value,0);return i===e.value.length||v(e.value,i)?y(n,e.value,i)?0:1:0}),integer:b(function(e,t,n){if(null===e||e.type!==c.Number)return 0;for(var i=43===e.value.charCodeAt(0)||45===e.value.charCodeAt(0)?1:0;i<e.value.length;i++)if(!a(e.value.charCodeAt(i)))return 0;return y(n,e.value,i)?0:1}),"-ms-legacy-expression":function(e,t){return null!==e&&m(e.value,"expression(")?_(e,t):0}}},60997:function(e,t,n){var i=n(11261),r={type:"Match"},o={type:"Mismatch"},a={type:"DisallowEmpty"};function s(e,t,n){return t===r&&n===o||e===r&&t===r&&n===r?e:("If"===e.type&&e.else===o&&t===r&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function l(e){return e.length>2&&40===e.charCodeAt(e.length-2)&&41===e.charCodeAt(e.length-1)}function c(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&l(e.name)}function u(e,t,n){switch(e){case" ":for(var i=r,a=t.length-1;a>=0;a--)i=s(p=t[a],i,o);return i;case"|":i=o;var d=null;for(a=t.length-1;a>=0;a--){if(c(p=t[a])&&(null===d&&a>0&&c(t[a-1])&&(i=s({type:"Enum",map:d=Object.create(null)},r,i)),null!==d)){var h=(l(p.name)?p.name.slice(0,-1):p.name).toLowerCase();if(h in d==0){d[h]=p;continue}}d=null,i=s(p,r,i)}return i;case"&&":if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};for(i=o,a=t.length-1;a>=0;a--){var p=t[a];f=t.length>1?u(e,t.filter(function(e){return e!==p}),!1):r,i=s(p,f,i)}return i;case"||":if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};for(i=n?r:o,a=t.length-1;a>=0;a--){var f;p=t[a],f=t.length>1?u(e,t.filter(function(e){return e!==p}),!0):r,i=s(p,f,i)}return i}}function d(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":var t=u(e.combinator,e.terms.map(d),!1);return e.disallowEmpty&&(t=s(t,a,o)),t;case"Multiplier":return function(e){var t=r,n=d(e.term);if(0===e.max)n=s(n,a,o),(t=s(n,null,o)).then=s(r,r,t),e.comma&&(t.then.else=s({type:"Comma",syntax:e},t,o));else for(var i=e.min||1;i<=e.max;i++)e.comma&&t!==r&&(t=s({type:"Comma",syntax:e},t,o)),t=s(n,s(r,r,t),o);if(0===e.min)t=s(r,r,t);else for(i=0;i<e.min-1;i++)e.comma&&t!==r&&(t=s({type:"Comma",syntax:e},t,o)),t=s(n,t,o);return t}(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return 3===e.value.length?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}e.exports={MATCH:r,MISMATCH:o,DISALLOW_EMPTY:a,buildMatchGraph:function(e,t){return"string"==typeof e&&(e=i(e)),{type:"MatchGraph",match:d(e),syntax:t||null,source:e}}}},77569:function(e,t,n){var i=Object.prototype.hasOwnProperty,r=n(60997),o=r.MATCH,a=r.MISMATCH,s=r.DISALLOW_EMPTY,l=n(97077).TYPE,c="Match",u=0;function d(e){for(var t=null,n=null,i=e;null!==i;)n=i.prev,i.prev=t,t=i,i=n;return t}function h(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i>=65&&i<=90&&(i|=32),i!==t.charCodeAt(n))return!1}return!0}function p(e){return null===e||e.type===l.Comma||e.type===l.Function||e.type===l.LeftParenthesis||e.type===l.LeftSquareBracket||e.type===l.LeftCurlyBracket||function(e){return e.type===l.Delim&&"?"!==e.value}(e)}function f(e){return null===e||e.type===l.RightParenthesis||e.type===l.RightSquareBracket||e.type===l.RightCurlyBracket||e.type===l.Delim}function m(e,t,n){function r(){do{A++,T=A<e.length?e[A]:null}while(null!==T&&(T.type===l.WhiteSpace||T.type===l.Comment))}function d(t){var n=A+t;return n<e.length?e[n]:null}function m(e,t){return{nextState:e,matchStack:M,syntaxStack:b,thenStack:w,tokenIndex:A,prev:t}}function g(e){w={nextState:e,matchStack:M,syntaxStack:b,prev:w}}function v(e){S=m(e,S)}function y(){M={type:1,syntax:t.syntax,token:T,prev:M},r(),x=null,A>Z&&(Z=A)}function _(){M=2===M.type?M.prev:{type:3,syntax:b.syntax,token:M.token,prev:M},b=b.prev}var b=null,w=null,S=null,x=null,C=0,k=null,T=null,A=-1,Z=0,M={type:0,syntax:null,token:null,prev:null};for(r();null===k&&++C<15e3;)switch(t.type){case"Match":if(null===w){if(null!==T&&(A!==e.length-1||"\\0"!==T.value&&"\\9"!==T.value)){t=a;break}k=c;break}if((t=w.nextState)===s){if(w.matchStack===M){t=a;break}t=o}for(;w.syntaxStack!==b;)_();w=w.prev;break;case"Mismatch":if(null!==x&&!1!==x)(null===S||A>S.tokenIndex)&&(S=x,x=!1);else if(null===S){k="Mismatch";break}t=S.nextState,w=S.thenStack,b=S.syntaxStack,M=S.matchStack,T=(A=S.tokenIndex)<e.length?e[A]:null,S=S.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 O=t.syntax.terms;if(t.index===O.length){if(0===t.mask||t.syntax.all){t=a;break}t=o;break}if(t.mask===(1<<O.length)-1){t=o;break}for(;t.index<O.length;t.index++){var E=1<<t.index;if(0==(t.mask&E)){v(t),g({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|E}),t=O[t.index++];break}}break;case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(null!==T&&(-1!==(N=T.value.toLowerCase()).indexOf("\\")&&(N=N.replace(/\\[09].*$/,"")),i.call(t.map,N))){t=t.map[N];break}t=a;break;case"Generic":var P=A+Math.floor(t.fn(T,d,null!==b?b.opts:null));if(!isNaN(P)&&P>A){for(;A<P;)y();t=o}else t=a;break;case"Type":case"Property":var I="Type"===t.type?"types":"properties",q=i.call(n,I)?n[I][t.name]:null;if(!q||!q.match)throw new Error("Bad syntax reference: "+("Type"===t.type?"<"+t.name+">":"<'"+t.name+"'>"));if(!1!==x&&null!==T&&"Type"===t.type&&("custom-ident"===t.name&&T.type===l.Ident||"length"===t.name&&"0"===T.value)){null===x&&(x=m(t,S)),t=a;break}b={syntax:t.syntax,opts:t.syntax.opts||null!==b&&b.opts||null,prev:b},M={type:2,syntax:t.syntax,token:M.token,prev:M},t=q.match;break;case"Keyword":var N=t.name;if(null!==T){var D=T.value;if(-1!==D.indexOf("\\")&&(D=D.replace(/\\[09].*$/,"")),h(D,N)){y(),t=o;break}}t=a;break;case"AtKeyword":case"Function":if(null!==T&&h(T.value,t.name)){y(),t=o;break}t=a;break;case"Token":if(null!==T&&T.value===t.value){y(),t=o;break}t=a;break;case"Comma":null!==T&&T.type===l.Comma?p(M.token)?t=a:(y(),t=f(T)?a:o):t=p(M.token)||f(T)?o:a;break;case"String":var R="";for(P=A;P<e.length&&R.length<t.value.length;P++)R+=e[P].value;if(h(R,t.value)){for(;A<P;)y();t=o}else t=a;break;default:throw new Error("Unknown node type: "+t.type)}switch(u+=C,k){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),k="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",M=null;break;case c:for(;null!==b;)_();break;default:M=null}return{tokens:e,reason:k,iterations:C,match:M,longestMatch:Z}}e.exports={matchAsList:function(e,t,n){var i=m(e,t,n||{});if(null!==i.match){var r=d(i.match).prev;for(i.match=[];null!==r;){switch(r.type){case 0:break;case 2:case 3:i.match.push({type:r.type,syntax:r.syntax});break;default:i.match.push({token:r.token.value,node:r.token.node})}r=r.prev}}return i},matchAsTree:function(e,t,n){var i=m(e,t,n||{});if(null===i.match)return i;var r=i.match,o=i.match={syntax:t.syntax||null,match:[]},a=[o];for(r=d(r).prev;null!==r;){switch(r.type){case 2:o.match.push(o={syntax:r.syntax,match:[]}),a.push(o);break;case 3:a.pop(),o=a[a.length-1];break;default:o.match.push({syntax:r.syntax||null,token:r.token.value,node:r.token.node})}r=r.prev}return i},getTotalIterationCount:function(){return u}}},73130:function(e,t,n){var i=n(97555),r=new(n(13146)),o={decorator:function(e){var t=null,n={len:0,node:null},i=[n],r="";return{children:e.children,node:function(n){var i=t;t=n,e.node.call(this,n),t=i},chunk:function(e){r+=e,n.node!==t?i.push({len:e.length,node:t}):n.len+=e.length},result:function(){return a(r,i)}}}};function a(e,t){var n=[],o=0,a=0,s=t?t[a].node:null;for(i(e,r);!r.eof;){if(t)for(;a<t.length&&o+t[a].len<=r.tokenStart;)o+=t[a++].len,s=t[a].node;n.push({type:r.tokenType,value:r.getTokenValue(),index:r.tokenIndex,balance:r.balance[r.tokenIndex],node:s}),r.next()}return n}e.exports=function(e,t){return"string"==typeof e?a(e,null):t.generate(e,o)}},62798:function(e,t,n){var i=n(63335);function r(e){return"node"in e?e.node:r(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 l=[];return null!==n.matched&&function n(c){if(null!==c.syntax&&c.syntax.type===a&&c.syntax.name===s){var u=r(c),d=o(c);e.syntax.walk(t,function(e,t,n){if(e===u){var r=new i;do{if(r.appendData(t.data),t.data===d)break;t=t.next}while(null!==t);l.push({parent:n,nodes:r})}})}Array.isArray(c.match)&&c.match.forEach(n)}(n.matched),l}}},92363:function(e,t,n){var i=n(63335),r=Object.prototype.hasOwnProperty;function o(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function a(e){return Boolean(e)&&o(e.offset)&&o(e.line)&&o(e.column)}function s(e,t){return function(n,o){if(!n||n.constructor!==Object)return o(n,"Type of node should be an Object");for(var s in n){var l=!0;if(!1!==r.call(n,s)){if("type"===s)n.type!==e&&o(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===s){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!=typeof n.loc.source)s+=".source";else if(a(n.loc.start)){if(a(n.loc.end))continue;s+=".end"}else s+=".start";l=!1}else if(t.hasOwnProperty(s)){var c=0;for(l=!1;!l&&c<t[s].length;c++){var u=t[s][c];switch(u){case String:l="string"==typeof n[s];break;case Boolean:l="boolean"==typeof n[s];break;case null:l=null===n[s];break;default:"string"==typeof u?l=n[s]&&n[s].type===u:Array.isArray(u)&&(l=n[s]instanceof i)}}}else o(n,"Unknown field `"+s+"` for "+e+" node type");l||o(n,"Bad value for `"+e+"."+s+"`")}}for(var s in t)r.call(t,s)&&!1===r.call(n,s)&&o(n,"Field `"+e+"."+s+"` is missed")}}function l(e,t){var n=t.structure,i={type:String,loc:!0},o={type:'"'+e+'"'};for(var a in n)if(!1!==r.call(n,a)){for(var l=[],c=i[a]=Array.isArray(n[a])?n[a].slice():[n[a]],u=0;u<c.length;u++){var d=c[u];if(d===String||d===Boolean)l.push(d.name);else if(null===d)l.push("null");else if("string"==typeof d)l.push("<"+d+">");else{if(!Array.isArray(d))throw new Error("Wrong value `"+d+"` in `"+e+"."+a+"` structure definition");l.push("List")}}o[a]=l.join(" | ")}return{docs:o,check:s(e,i)}}e.exports={getStructureFromConfig:function(e){var t={};if(e.node)for(var n in e.node)if(r.call(e.node,n)){var i=e.node[n];if(!i.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=l(n,i)}return t}}},24988:function(e){function t(e){function t(e){return null!==e&&("Type"===e.type||"Property"===e.type||"Keyword"===e.type)}var n=null;return null!==this.matched&&function i(r){if(Array.isArray(r.match)){for(var o=0;o<r.match.length;o++)if(i(r.match[o]))return t(r.syntax)&&n.unshift(r.syntax),!0}else if(r.node===e)return n=t(r.syntax)?[r.syntax]:[],!0;return!1}(this.matched),n}function n(e,n,i){var r=t.call(e,n);return null!==r&&r.some(i)}e.exports={getTrace:t,isType:function(e,t){return n(this,e,function(e){return"Type"===e.type&&e.name===t})},isProperty:function(e,t){return n(this,e,function(e){return"Property"===e.type&&e.name===t})},isKeyword:function(e){return n(this,e,function(e){return"Keyword"===e.type})}}},29365:function(e,t,n){var i=n(88373),r=n(52556),o=n(13146),a=n(63335),s=n(97555),l=n(97077),c=n(74586),u=c.findWhiteSpaceStart,d=c.cmpStr,h=n(15785),p=function(){},f=l.TYPE,m=l.NAME,g=f.WhiteSpace,v=f.Comment,y=f.Ident,_=f.Function,b=f.Url,w=f.Hash,S=f.Percentage,x=f.Number;function C(e){return function(){return this[e]()}}e.exports=function(e){var t={scanner:new o,locationMap:new i,filename:"<unknown>",needPositions:!1,onParseError:p,onParseErrorThrow:!1,parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:h,createList:function(){return new a},createSingleNodeList:function(e){return(new a).appendData(e)},getFirstListNode:function(e){return e&&e.first()},getLastListNode:function(e){return e.last()},parseWithFallback:function(e,t){var n=this.scanner.tokenIndex;try{return e.call(this)}catch(r){if(this.onParseErrorThrow)throw r;var i=t.call(this,n);return this.onParseErrorThrow=!0,this.onParseError(r,i),this.onParseErrorThrow=!1,i}},lookupNonWSType:function(e){do{var t=this.scanner.lookupType(e++);if(t!==g)return t}while(0!==t);return 0},eat:function(e){if(this.scanner.tokenType!==e){var t=this.scanner.tokenStart,n=m[e]+" is expected";switch(e){case y:this.scanner.tokenType===_||this.scanner.tokenType===b?(t=this.scanner.tokenEnd-1,n="Identifier is expected but function found"):n="Identifier is expected";break;case w:this.scanner.isDelim(35)&&(this.scanner.next(),t++,n="Name is expected");break;case S:this.scanner.tokenType===x&&(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(_),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?u(this.scanner.source,this.scanner.source.length-1):this.scanner.tokenStart);throw new r(e||"Unexpected input",this.scanner.source,n.offset,n.line,n.column)}};for(var n in e=function(e){var t={context:{},scope:{},atrule:{},pseudo:{}};if(e.parseContext)for(var n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=C(e.parseContext[n])}if(e.scope)for(var n in e.scope)t.scope[n]=e.scope[n];if(e.atrule)for(var n in e.atrule){var i=e.atrule[n];i.parse&&(t.atrule[n]=i.parse)}if(e.pseudo)for(var n in e.pseudo){var r=e.pseudo[n];r.parse&&(t.pseudo[n]=r.parse)}if(e.node)for(var n in e.node)t[n]=e.node[n].parse;return t}(e||{}))t[n]=e[n];return function(e,n){var i,r=(n=n||{}).context||"default",o=n.onComment;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:p,t.onParseErrorThrow=!1,t.parseAtrulePrelude=!("parseAtrulePrelude"in n)||Boolean(n.parseAtrulePrelude),t.parseRulePrelude=!("parseRulePrelude"in n)||Boolean(n.parseRulePrelude),t.parseValue=!("parseValue"in n)||Boolean(n.parseValue),t.parseCustomProperty="parseCustomProperty"in n&&Boolean(n.parseCustomProperty),!t.context.hasOwnProperty(r))throw new Error("Unknown context `"+r+"`");return"function"==typeof o&&t.scanner.forEachToken(function(n,i,r){if(n===v){var a=t.getLocation(i,r),s=d(e,r-2,r,"*/")?e.slice(i+2,r-2):e.slice(i+2,r);o(s,a)}}),i=t.context[r].call(t,n),t.scanner.eof||t.error(),i}}},15785:function(e,t,n){var i=n(97555).TYPE,r=i.WhiteSpace,o=i.Comment;e.exports=function(e){var t=this.createList(),n=null,i={recognizer:e,space:null,ignoreWS:!1,ignoreWSAfter:!1};for(this.scanner.skipSC();!this.scanner.eof;){switch(this.scanner.tokenType){case o:this.scanner.next();continue;case r:i.ignoreWS?this.scanner.next():i.space=this.WhiteSpace();continue}if(void 0===(n=e.getNode.call(this,i)))break;null!==i.space&&(t.push(i.space),i.space=null),t.push(n),i.ignoreWSAfter?(i.ignoreWSAfter=!1,i.ignoreWS=!0):i.ignoreWS=!1}return t}},71713:function(e){e.exports={parse:{prelude:null,block:function(){return this.Block(!0)}}}},88208:function(e,t,n){var i=n(97555).TYPE,r=i.String,o=i.Ident,a=i.Url,s=i.Function,l=i.LeftParenthesis;e.exports={parse:{prelude:function(){var e=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case r:e.push(this.String());break;case a:case s:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.lookupNonWSType(0)!==o&&this.lookupNonWSType(0)!==l||(e.push(this.WhiteSpace()),e.push(this.MediaQueryList())),e},block:null}}},55682:function(e,t,n){e.exports={"font-face":n(71713),import:n(88208),media:n(81706),page:n(93949),supports:n(46928)}},81706:function(e){e.exports={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}}},93949:function(e){e.exports={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}}},46928:function(e,t,n){var i=n(97555).TYPE,r=i.WhiteSpace,o=i.Comment,a=i.Ident,s=i.Function,l=i.Colon,c=i.LeftParenthesis;function u(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function d(){return this.scanner.skipSC(),this.scanner.tokenType===a&&this.lookupNonWSType(1)===l?this.createSingleNodeList(this.Declaration()):h.call(this)}function h(){var e,t=this.createList(),n=null;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case r:n=this.WhiteSpace();continue;case o:this.scanner.next();continue;case s:e=this.Function(u,this.scope.AtrulePrelude);break;case a:e=this.Identifier();break;case c:e=this.Parentheses(d,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=h.call(this);return null===this.getFirstListNode(e)&&this.error("Condition is expected"),e},block:function(){return this.Block(!1)}}}},53901:function(e,t,n){var i=n(57695);e.exports={generic:!0,types:i.types,atrules:i.atrules,properties:i.properties,node:n(5678)}},15249:function(e,t,n){var i=n(6326).default,r=Object.prototype.hasOwnProperty,o={generic:!0,types:c,atrules:{prelude:u,descriptors:u},properties:c,parseContext:function(e,t){return Object.assign(e,t)},scope:function e(t,n){for(var i in n)r.call(n,i)&&(a(t[i])?e(t[i],s(n[i])):t[i]=s(n[i]));return t},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function a(e){return e&&e.constructor===Object}function s(e){return a(e)?Object.assign({},e):e}function l(e,t){return"string"==typeof t&&/^\s*\|/.test(t)?"string"==typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function c(e,t){if("string"==typeof t)return l(e,t);var n=Object.assign({},e);for(var i in t)r.call(t,i)&&(n[i]=l(r.call(e,i)?e[i]:void 0,t[i]));return n}function u(e,t){var n=c(e,t);return!a(n)||Object.keys(n).length?n:null}function d(e,t,n){for(var o in n)if(!1!==r.call(n,o))if(!0===n[o])o in t&&r.call(t,o)&&(e[o]=s(t[o]));else if(n[o])if("function"==typeof n[o]){var l=n[o];e[o]=l({},e[o]),e[o]=l(e[o]||{},t[o])}else if(a(n[o])){var c={};for(var u in e[o])c[u]=d({},e[o][u],n[o]);for(var h in t[o])c[h]=d(c[h]||{},t[o][h],n[o]);e[o]=c}else if(Array.isArray(n[o])){for(var p={},f=n[o].reduce(function(e,t){return e[t]=!0,e},{}),m=0,g=Object.entries(e[o]||{});m<g.length;m++){var v=i(g[m],2),y=v[0],_=v[1];p[y]={},_&&d(p[y],_,f)}for(var b in t[o])r.call(t[o],b)&&(p[b]||(p[b]={}),t[o]&&t[o][b]&&d(p[b],t[o][b],f));e[o]=p}return e}e.exports=function(e,t){return d(e,t,o)}},76816: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(73241),atrule:n(55682),pseudo:n(31947),node:n(5678)}},29897:function(e,t,n){e.exports={node:n(5678)}},15067:function(e,t,n){var i=n(63335),r=n(52556),o=n(13146),a=n(63539),s=n(37149),l=n(97555),c=n(29365),u=n(9861),d=n(62139),h=n(24523),p=n(30714),f=n(50643),m=n(15249);function g(e){var t=c(e),n=h(e),v=u(e),y=d(n),_={List:i,SyntaxError:r,TokenStream:o,Lexer:a,vendorPrefix:f.vendorPrefix,keyword:f.keyword,property:f.property,isCustomProperty:f.isCustomProperty,definitionSyntax:s,lexer:null,createLexer:function(e){return new a(e,_,_.lexer.structure)},tokenize:l,parse:t,walk:n,generate:v,find:n.find,findLast:n.findLast,findAll:n.findAll,clone:p,fromPlainObject:y.fromPlainObject,toPlainObject:y.toPlainObject,createSyntax:function(e){return g(m({},e))},fork:function(t){var n=m({},e);return g("function"==typeof t?t(n,Object.assign):m(n,t))}};return _.lexer=new a({generic:!0,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},_),_}t.create=function(e){return g(m({},e))}},36728:function(e){e.exports=function(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}},82418:function(e,t,n){var i=n(97555).TYPE,r=n(89604).mode,o=i.Comma,a=i.WhiteSpace;e.exports=function(){var e=this.createList();if(this.scanner.skipSC(),e.push(this.Identifier()),this.scanner.skipSC(),this.scanner.tokenType===o){e.push(this.Operator());var t=this.scanner.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,r.exclamationMarkOrSemicolon,!1);if("Value"===n.type&&n.children.isEmpty())for(var i=t-this.scanner.tokenIndex;i<=0;i++)if(this.scanner.lookupType(i)===a){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}e.push(n)}return e}},39158:function(e,t,n){e.exports=n(15067).create(function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}(n(53901),n(76816),n(29897))),e.exports.version=n(74441).version},34230:function(e,t,n){var i=n(97555).cmpChar,r=n(97555).isDigit,o=n(97555).TYPE,a=o.WhiteSpace,s=o.Comment,l=o.Ident,c=o.Number,u=o.Dimension,d=43,h=45,p=110,f=!0;function m(e,t){var n=this.scanner.tokenStart+e,i=this.scanner.source.charCodeAt(n);for(i!==d&&i!==h||(t&&this.error("Number sign is not allowed"),n++);n<this.scanner.tokenEnd;n++)r(this.scanner.source.charCodeAt(n))||this.error("Integer is expected",n)}function g(e){return m.call(this,0,e)}function v(e,t){if(!i(this.scanner.source,this.scanner.tokenStart+e,t)){var n="";switch(t){case p:n="N is expected";break;case h:n="HyphenMinus is expected"}this.error(n,this.scanner.tokenStart+e)}}function y(){for(var e=0,t=0,n=this.scanner.tokenType;n===a||n===s;)n=this.scanner.lookupType(++e);if(n!==c){if(!this.scanner.isDelim(d,e)&&!this.scanner.isDelim(h,e))return null;t=this.scanner.isDelim(d,e)?d:h;do{n=this.scanner.lookupType(++e)}while(n===a||n===s);n!==c&&(this.scanner.skip(e),g.call(this,f))}return e>0&&this.scanner.skip(e),0===t&&(n=this.scanner.source.charCodeAt(this.scanner.tokenStart))!==d&&n!==h&&this.error("Number sign is expected"),g.call(this,0!==t),t===h?"-"+this.consume(c):this.consume(c)}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===c)g.call(this,!1),n=this.consume(c);else if(this.scanner.tokenType===l&&i(this.scanner.source,this.scanner.tokenStart,h))switch(t="-1",v.call(this,1,p),this.scanner.getTokenLength()){case 2:this.scanner.next(),n=y.call(this);break;case 3:v.call(this,2,h),this.scanner.next(),this.scanner.skipSC(),g.call(this,f),n="-"+this.consume(c);break;default:v.call(this,2,h),m.call(this,3,f),this.scanner.next(),n=this.scanner.substrToCursor(e+2)}else if(this.scanner.tokenType===l||this.scanner.isDelim(d)&&this.scanner.lookupType(1)===l){var o=0;switch(t="1",this.scanner.isDelim(d)&&(o=1,this.scanner.next()),v.call(this,0,p),this.scanner.getTokenLength()){case 1:this.scanner.next(),n=y.call(this);break;case 2:v.call(this,1,h),this.scanner.next(),this.scanner.skipSC(),g.call(this,f),n="-"+this.consume(c);break;default:v.call(this,1,h),m.call(this,2,f),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===d||a===h);s<this.scanner.tokenEnd&&r(this.scanner.source.charCodeAt(s));s++);s===this.scanner.tokenStart+o&&this.error("Integer is expected",this.scanner.tokenStart+o),v.call(this,s-this.scanner.tokenStart,p),t=this.scanner.source.substring(e,s),s+1===this.scanner.tokenEnd?(this.scanner.next(),n=y.call(this)):(v.call(this,s-this.scanner.tokenStart+1,h),s+2===this.scanner.tokenEnd?(this.scanner.next(),this.scanner.skipSC(),g.call(this,f),n="-"+this.consume(c)):(m.call(this,s-this.scanner.tokenStart+2,f),this.scanner.next(),n=this.scanner.substrToCursor(s+1)))}else this.error();return null!==t&&t.charCodeAt(0)===d&&(t=t.substr(1)),null!==n&&n.charCodeAt(0)===d&&(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))}}},24867:function(e,t,n){var i=n(97555).TYPE,r=n(89604).mode,o=i.AtKeyword,a=i.Semicolon,s=i.LeftCurlyBracket,l=i.RightCurlyBracket;function c(e){return this.Raw(e,r.leftCurlyBracketOrSemicolon,!0)}function u(){for(var e,t=1;e=this.scanner.lookupType(t);t++){if(e===l)return!0;if(e===s||e===o)return!1}return!1}e.exports={name:"Atrule",structure:{name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]},parse:function(){var e,t,n=this.scanner.tokenStart,i=null,r=null;switch(this.eat(o),t=(e=this.scanner.substrToCursor(n+1)).toLowerCase(),this.scanner.skipSC(),!1===this.scanner.eof&&this.scanner.tokenType!==s&&this.scanner.tokenType!==a&&(this.parseAtrulePrelude?"AtrulePrelude"===(i=this.parseWithFallback(this.AtrulePrelude.bind(this,e),c)).type&&null===i.children.head&&(i=null):i=c.call(this,this.scanner.tokenIndex),this.scanner.skipSC()),this.scanner.tokenType){case a:this.scanner.next();break;case s:r=this.atrule.hasOwnProperty(t)&&"function"==typeof this.atrule[t].block?this.atrule[t].block.call(this):this.Block(u.call(this))}return{type:"Atrule",loc:this.getLocation(n,this.scanner.tokenStart),name:e,prelude:i,block:r}},generate:function(e){this.chunk("@"),this.chunk(e.name),null!==e.prelude&&(this.chunk(" "),this.node(e.prelude)),e.block?this.node(e.block):this.chunk(";")},walkContext:"atrule"}},19121:function(e,t,n){var i=n(97555).TYPE,r=i.Semicolon,o=i.LeftCurlyBracket;e.exports={name:"AtrulePrelude",structure:{children:[[]]},parse:function(e){var t=null;return null!==e&&(e=e.toLowerCase()),this.scanner.skipSC(),t=this.atrule.hasOwnProperty(e)&&"function"==typeof this.atrule[e].prelude?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.scanner.skipSC(),!0!==this.scanner.eof&&this.scanner.tokenType!==o&&this.scanner.tokenType!==r&&this.error("Semicolon or block is expected"),null===t&&(t=this.createList()),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}},generate:function(e){this.children(e)},walkContext:"atrulePrelude"}},87446:function(e,t,n){var i=n(97555).TYPE,r=i.Ident,o=i.String,a=i.Colon,s=i.LeftSquareBracket,l=i.RightSquareBracket;function c(){this.scanner.eof&&this.error("Unexpected end of input");var e=this.scanner.tokenStart,t=!1,n=!0;return this.scanner.isDelim(42)?(t=!0,n=!1,this.scanner.next()):this.scanner.isDelim(124)||this.eat(r),this.scanner.isDelim(124)?61!==this.scanner.source.charCodeAt(this.scanner.tokenStart+1)?(this.scanner.next(),this.eat(r)):t&&this.error("Identifier is expected",this.scanner.tokenEnd):t&&this.error("Vertical line is expected"),n&&this.scanner.tokenType===a&&(this.scanner.next(),this.eat(r)),{type:"Identifier",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}}function u(){var e=this.scanner.tokenStart,t=this.scanner.source.charCodeAt(e);return 61!==t&&126!==t&&94!==t&&36!==t&&42!==t&&124!==t&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),61!==t&&(this.scanner.isDelim(61)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(e)}e.exports={name:"AttributeSelector",structure:{name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]},parse:function(){var e,t=this.scanner.tokenStart,n=null,i=null,a=null;return this.eat(s),this.scanner.skipSC(),e=c.call(this),this.scanner.skipSC(),this.scanner.tokenType!==l&&(this.scanner.tokenType!==r&&(n=u.call(this),this.scanner.skipSC(),i=this.scanner.tokenType===o?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===r&&(a=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.eat(l),{type:"AttributeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:e,matcher:n,value:i,flags:a}},generate:function(e){var t=" ";this.chunk("["),this.node(e.name),null!==e.matcher&&(this.chunk(e.matcher),null!==e.value&&(this.node(e.value),"String"===e.value.type&&(t=""))),null!==e.flags&&(this.chunk(t),this.chunk(e.flags)),this.chunk("]")}}},33570:function(e,t,n){var i=n(97555).TYPE,r=n(89604).mode,o=i.WhiteSpace,a=i.Comment,s=i.Semicolon,l=i.AtKeyword,c=i.LeftCurlyBracket,u=i.RightCurlyBracket;function d(e){return this.Raw(e,null,!0)}function h(){return this.parseWithFallback(this.Rule,d)}function p(e){return this.Raw(e,r.semicolonIncluded,!0)}function f(){if(this.scanner.tokenType===s)return p.call(this,this.scanner.tokenIndex);var e=this.parseWithFallback(this.Declaration,p);return this.scanner.tokenType===s&&this.scanner.next(),e}e.exports={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(e){var t=e?f:h,n=this.scanner.tokenStart,i=this.createList();this.eat(c);e:for(;!this.scanner.eof;)switch(this.scanner.tokenType){case u:break e;case o:case a:this.scanner.next();break;case l:i.push(this.parseWithFallback(this.Atrule,d));break;default:i.push(t.call(this))}return this.scanner.eof||this.eat(u),{type:"Block",loc:this.getLocation(n,this.scanner.tokenStart),children:i}},generate:function(e){this.chunk("{"),this.children(e,function(e){"Declaration"===e.type&&this.chunk(";")}),this.chunk("}")},walkContext:"block"}},8916:function(e,t,n){var i=n(97555).TYPE,r=i.LeftSquareBracket,o=i.RightSquareBracket;e.exports={name:"Brackets",structure:{children:[[]]},parse:function(e,t){var n,i=this.scanner.tokenStart;return this.eat(r),n=e.call(this,t),this.scanner.eof||this.eat(o),{type:"Brackets",loc:this.getLocation(i,this.scanner.tokenStart),children:n}},generate:function(e){this.chunk("["),this.children(e),this.chunk("]")}}},91485:function(e,t,n){var i=n(97555).TYPE.CDC;e.exports={name:"CDC",structure:[],parse:function(){var e=this.scanner.tokenStart;return this.eat(i),{type:"CDC",loc:this.getLocation(e,this.scanner.tokenStart)}},generate:function(){this.chunk("--\x3e")}}},59315:function(e,t,n){var i=n(97555).TYPE.CDO;e.exports={name:"CDO",structure:[],parse:function(){var e=this.scanner.tokenStart;return this.eat(i),{type:"CDO",loc:this.getLocation(e,this.scanner.tokenStart)}},generate:function(){this.chunk("\x3c!--")}}},37016:function(e,t,n){var i=n(97555).TYPE.Ident;e.exports={name:"ClassSelector",structure:{name:String},parse:function(){return this.scanner.isDelim(46)||this.error("Full stop is expected"),this.scanner.next(),{type:"ClassSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.consume(i)}},generate:function(e){this.chunk("."),this.chunk(e.name)}}},55136:function(e,t,n){var i=n(97555).TYPE.Ident;e.exports={name:"Combinator",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 62:case 43:case 126:this.scanner.next();break;case 47:this.scanner.next(),this.scanner.tokenType===i&&!1!==this.scanner.lookupValue(0,"deep")||this.error("Identifier `deep` is expected"),this.scanner.next(),this.scanner.isDelim(47)||this.error("Solidus is expected"),this.scanner.next();break;default:this.error("Combinator is expected")}return{type:"Combinator",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.name)}}},6875:function(e,t,n){var i=n(97555).TYPE.Comment;e.exports={name:"Comment",structure:{value:String},parse:function(){var e=this.scanner.tokenStart,t=this.scanner.tokenEnd;return this.eat(i),t-e+2>=2&&42===this.scanner.source.charCodeAt(t-2)&&47===this.scanner.source.charCodeAt(t-1)&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e+2,t)}},generate:function(e){this.chunk("/*"),this.chunk(e.value),this.chunk("*/")}}},7217:function(e,t,n){var i=n(50643).isCustomProperty,r=n(97555).TYPE,o=n(89604).mode,a=r.Ident,s=r.Hash,l=r.Colon,c=r.Semicolon,u=r.Delim,d=r.WhiteSpace;function h(e){return this.Raw(e,o.exclamationMarkOrSemicolon,!0)}function p(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!==c&&!1===this.scanner.isDelim(33)&&!1===this.scanner.isBalanceEdge(e)&&this.error(),t}function m(){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 g(){this.eat(u),this.scanner.skipSC();var e=this.consume(a);return"important"===e||e}e.exports={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var e,t=this.scanner.tokenStart,n=this.scanner.tokenIndex,r=m.call(this),o=i(r),a=o?this.parseCustomProperty:this.parseValue,s=o?p:h,u=!1;this.scanner.skipSC(),this.eat(l);var v=this.scanner.tokenIndex;if(o||this.scanner.skipSC(),e=a?this.parseWithFallback(f,s):s.call(this,this.scanner.tokenIndex),o&&"Value"===e.type&&e.children.isEmpty())for(var y=v-this.scanner.tokenIndex;y<=0;y++)if(this.scanner.lookupType(y)===d){e.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.scanner.isDelim(33)&&(u=g.call(this),this.scanner.skipSC()),!1===this.scanner.eof&&this.scanner.tokenType!==c&&!1===this.scanner.isBalanceEdge(n)&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.scanner.tokenStart),important:u,property:r,value:e}},generate:function(e){this.chunk(e.property),this.chunk(":"),this.node(e.value),e.important&&this.chunk(!0===e.important?"!important":"!"+e.important)},walkContext:"declaration"}},69013:function(e,t,n){var i=n(97555).TYPE,r=n(89604).mode,o=i.WhiteSpace,a=i.Comment,s=i.Semicolon;function l(e){return this.Raw(e,r.semicolonIncluded,!0)}e.exports={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var e=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case o:case a:case s:this.scanner.next();break;default:e.push(this.parseWithFallback(this.Declaration,l))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e,function(e){"Declaration"===e.type&&this.chunk(";")})}}},68241:function(e,t,n){var i=n(74586).consumeNumber,r=n(97555).TYPE.Dimension;e.exports={name:"Dimension",structure:{value:String,unit:String},parse:function(){var e=this.scanner.tokenStart,t=i(this.scanner.source,e);return this.eat(r),{type:"Dimension",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e,t),unit:this.scanner.source.substring(t,this.scanner.tokenStart)}},generate:function(e){this.chunk(e.value),this.chunk(e.unit)}}},60298:function(e,t,n){var i=n(97555).TYPE.RightParenthesis;e.exports={name:"Function",structure:{name:String,children:[[]]},parse:function(e,t){var n,r=this.scanner.tokenStart,o=this.consumeFunctionName(),a=o.toLowerCase();return n=t.hasOwnProperty(a)?t[a].call(this,t):e.call(this,t),this.scanner.eof||this.eat(i),{type:"Function",loc:this.getLocation(r,this.scanner.tokenStart),name:o,children:n}},generate:function(e){this.chunk(e.name),this.chunk("("),this.children(e),this.chunk(")")},walkContext:"function"}},50759:function(e,t,n){var i=n(97555).TYPE.Hash;e.exports={name:"Hash",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;return this.eat(i),{type:"Hash",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e+1)}},generate:function(e){this.chunk("#"),this.chunk(e.value)}}},37701:function(e,t,n){var i=n(97555).TYPE.Hash;e.exports={name:"IdSelector",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;return this.eat(i),{type:"IdSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e+1)}},generate:function(e){this.chunk("#"),this.chunk(e.name)}}},71392:function(e,t,n){var i=n(97555).TYPE.Ident;e.exports={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(i)}},generate:function(e){this.chunk(e.name)}}},94179:function(e,t,n){var i=n(97555).TYPE,r=i.Ident,o=i.Number,a=i.Dimension,s=i.LeftParenthesis,l=i.RightParenthesis,c=i.Colon,u=i.Delim;e.exports={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var e,t=this.scanner.tokenStart,n=null;if(this.eat(s),this.scanner.skipSC(),e=this.consume(r),this.scanner.skipSC(),this.scanner.tokenType!==l){switch(this.eat(c),this.scanner.skipSC(),this.scanner.tokenType){case o:n=this.lookupNonWSType(1)===u?this.Ratio():this.Number();break;case a:n=this.Dimension();break;case r:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(l),{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(")")}}},32107:function(e,t,n){var i=n(97555).TYPE,r=i.WhiteSpace,o=i.Comment,a=i.Ident,s=i.LeftParenthesis;e.exports={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var e=this.createList(),t=null,n=null;e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case o:this.scanner.next();continue;case r:n=this.WhiteSpace();continue;case a:t=this.Identifier();break;case s:t=this.MediaFeature();break;default:break e}null!==n&&(e.push(n),n=null),e.push(t)}return null===t&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e)}}},54459:function(e,t,n){var i=n(97555).TYPE.Comma;e.exports={name:"MediaQueryList",structure:{children:[["MediaQuery"]]},parse:function(e){var t=this.createList();for(this.scanner.skipSC();!this.scanner.eof&&(t.push(this.MediaQuery(e)),this.scanner.tokenType===i);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(t),children:t}},generate:function(e){this.children(e,function(){this.chunk(",")})}}},61123:function(e){e.exports={name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(e){this.scanner.skipSC();var t,n=this.scanner.tokenStart,i=n,r=null;return t=this.scanner.lookupValue(0,"odd")||this.scanner.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),this.scanner.skipSC(),e&&this.scanner.lookupValue(0,"of")?(this.scanner.next(),r=this.SelectorList(),this.needPositions&&(i=this.getLastListNode(r.children).loc.end.offset)):this.needPositions&&(i=t.loc.end.offset),{type:"Nth",loc:this.getLocation(n,i),nth:t,selector:r}},generate:function(e){this.node(e.nth),null!==e.selector&&(this.chunk(" of "),this.node(e.selector))}}},63902:function(e,t,n){var i=n(97555).TYPE.Number;e.exports={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(i)}},generate:function(e){this.chunk(e.value)}}},7249:function(e){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)}}},34875:function(e,t,n){var i=n(97555).TYPE,r=i.LeftParenthesis,o=i.RightParenthesis;e.exports={name:"Parentheses",structure:{children:[[]]},parse:function(e,t){var n,i=this.scanner.tokenStart;return this.eat(r),n=e.call(this,t),this.scanner.eof||this.eat(o),{type:"Parentheses",loc:this.getLocation(i,this.scanner.tokenStart),children:n}},generate:function(e){this.chunk("("),this.children(e),this.chunk(")")}}},62173:function(e,t,n){var i=n(74586).consumeNumber,r=n(97555).TYPE.Percentage;e.exports={name:"Percentage",structure:{value:String},parse:function(){var e=this.scanner.tokenStart,t=i(this.scanner.source,e);return this.eat(r),{type:"Percentage",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e,t)}},generate:function(e){this.chunk(e.value),this.chunk("%")}}},38887:function(e,t,n){var i=n(97555).TYPE,r=i.Ident,o=i.Function,a=i.Colon,s=i.RightParenthesis;e.exports={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var e,t,n=this.scanner.tokenStart,i=null;return this.eat(a),this.scanner.tokenType===o?(t=(e=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(t)?(this.scanner.skipSC(),i=this.pseudo[t].call(this),this.scanner.skipSC()):(i=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(s)):e=this.consume(r),{type:"PseudoClassSelector",loc:this.getLocation(n,this.scanner.tokenStart),name:e,children:i}},generate:function(e){this.chunk(":"),this.chunk(e.name),null!==e.children&&(this.chunk("("),this.children(e),this.chunk(")"))},walkContext:"function"}},78076:function(e,t,n){var i=n(97555).TYPE,r=i.Ident,o=i.Function,a=i.Colon,s=i.RightParenthesis;e.exports={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var e,t,n=this.scanner.tokenStart,i=null;return this.eat(a),this.eat(a),this.scanner.tokenType===o?(t=(e=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(t)?(this.scanner.skipSC(),i=this.pseudo[t].call(this),this.scanner.skipSC()):(i=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(s)):e=this.consume(r),{type:"PseudoElementSelector",loc:this.getLocation(n,this.scanner.tokenStart),name:e,children:i}},generate:function(e){this.chunk("::"),this.chunk(e.name),null!==e.children&&(this.chunk("("),this.children(e),this.chunk(")"))},walkContext:"function"}},15482:function(e,t,n){var i=n(97555).isDigit,r=n(97555).TYPE,o=r.Number,a=r.Delim;function s(){this.scanner.skipWS();for(var e=this.consume(o),t=0;t<e.length;t++){var n=e.charCodeAt(t);i(n)||46===n||this.error("Unsigned number is expected",this.scanner.tokenStart-e.length+t)}return 0===Number(e)&&this.error("Zero number is not allowed",this.scanner.tokenStart-e.length),e}e.exports={name:"Ratio",structure:{left:String,right:String},parse:function(){var e,t=this.scanner.tokenStart,n=s.call(this);return this.scanner.skipWS(),this.scanner.isDelim(47)||this.error("Solidus is expected"),this.eat(a),e=s.call(this),{type:"Ratio",loc:this.getLocation(t,this.scanner.tokenStart),left:n,right:e}},generate:function(e){this.chunk(e.left),this.chunk("/"),this.chunk(e.right)}}},89604:function(e,t,n){var i=n(97555).TYPE,r=i.WhiteSpace,o=i.Semicolon,a=i.LeftCurlyBracket,s=i.Delim;function l(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===r?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function c(){return 0}e.exports={name:"Raw",structure:{value:String},parse:function(e,t,n){var i,r=this.scanner.getTokenStart(e);return this.scanner.skip(this.scanner.getRawLength(e,t||c)),i=n&&this.scanner.tokenStart>r?l.call(this):this.scanner.tokenStart,{type:"Raw",loc:this.getLocation(r,i),value:this.scanner.source.substring(r,i)}},generate:function(e){this.chunk(e.value)},mode:{default:c,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}}}},56064:function(e,t,n){var i=n(97555).TYPE,r=n(89604).mode,o=i.LeftCurlyBracket;function a(e){return this.Raw(e,r.leftCurlyBracket,!0)}function s(){var e=this.SelectorList();return"Raw"!==e.type&&!1===this.scanner.eof&&this.scanner.tokenType!==o&&this.error(),e}e.exports={name:"Rule",structure:{prelude:["SelectorList","Raw"],block:["Block"]},parse:function(){var e,t,n=this.scanner.tokenIndex,i=this.scanner.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(s,a):a.call(this,n),t=this.Block(!0),{type:"Rule",loc:this.getLocation(i,this.scanner.tokenStart),prelude:e,block:t}},generate:function(e){this.node(e.prelude),this.node(e.block)},walkContext:"rule"}},43042:function(e){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)}}},38444:function(e,t,n){var i=n(97555).TYPE.Comma;e.exports={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var e=this.createList();!this.scanner.eof&&(e.push(this.Selector()),this.scanner.tokenType===i);)this.scanner.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}},generate:function(e){this.children(e,function(){this.chunk(",")})},walkContext:"selector"}},12565:function(e,t,n){var i=n(97555).TYPE.String;e.exports={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(i)}},generate:function(e){this.chunk(e.value)}}},91348:function(e,t,n){var i=n(97555).TYPE,r=i.WhiteSpace,o=i.Comment,a=i.AtKeyword,s=i.CDO,l=i.CDC;function c(e){return this.Raw(e,null,!1)}e.exports={name:"StyleSheet",structure:{children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},parse:function(){for(var e,t=this.scanner.tokenStart,n=this.createList();!this.scanner.eof;){switch(this.scanner.tokenType){case r:this.scanner.next();continue;case o:if(33!==this.scanner.source.charCodeAt(this.scanner.tokenStart+2)){this.scanner.next();continue}e=this.Comment();break;case s:e=this.CDO();break;case l:e=this.CDC();break;case a:e=this.parseWithFallback(this.Atrule,c);break;default:e=this.parseWithFallback(this.Rule,c)}n.push(e)}return{type:"StyleSheet",loc:this.getLocation(t,this.scanner.tokenStart),children:n}},generate:function(e){this.children(e)},walkContext:"stylesheet"}},16983:function(e,t,n){var i=n(97555).TYPE.Ident;function r(){this.scanner.tokenType!==i&&!1===this.scanner.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.scanner.next()}e.exports={name:"TypeSelector",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;return this.scanner.isDelim(124)?(this.scanner.next(),r.call(this)):(r.call(this),this.scanner.isDelim(124)&&(this.scanner.next(),r.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.name)}}},95616:function(e,t,n){var i=n(97555).isHexDigit,r=n(97555).cmpChar,o=n(97555).TYPE,a=n(97555).NAME,s=o.Ident,l=o.Number,c=o.Dimension;function u(e,t){for(var n=this.scanner.tokenStart+e,r=0;n<this.scanner.tokenEnd;n++){var o=this.scanner.source.charCodeAt(n);if(45===o&&t&&0!==r)return 0===u.call(this,e+r+1,!1)&&this.error(),-1;i(o)||this.error(t&&0!==r?"HyphenMinus"+(r<6?" or hex digit":"")+" is expected":r<6?"Hex digit is expected":"Unexpected input",n),++r>6&&this.error("Too many hex digits",n)}return this.scanner.next(),r}function d(e){for(var t=0;this.scanner.isDelim(63);)++t>e&&this.error("Too many question marks"),this.scanner.next()}function h(e){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==e&&this.error(a[e]+" is expected")}function p(){var e=0;return this.scanner.isDelim(43)?(this.scanner.next(),this.scanner.tokenType===s?void((e=u.call(this,0,!0))>0&&d.call(this,6-e)):this.scanner.isDelim(63)?(this.scanner.next(),void d.call(this,5)):void this.error("Hex digit or question mark is expected")):this.scanner.tokenType===l?(h.call(this,43),e=u.call(this,1,!0),this.scanner.isDelim(63)?void d.call(this,6-e):this.scanner.tokenType===c||this.scanner.tokenType===l?(h.call(this,45),void u.call(this,1,!1)):void 0):this.scanner.tokenType===c?(h.call(this,43),void((e=u.call(this,1,!0))>0&&d.call(this,6-e))):void this.error()}e.exports={name:"UnicodeRange",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;return r(this.scanner.source,e,117)||this.error("U is expected"),r(this.scanner.source,e+1,43)||this.error("Plus sign is expected"),this.scanner.next(),p.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e)}},generate:function(e){this.chunk(e.value)}}},72796:function(e,t,n){var i=n(97555).isWhiteSpace,r=n(97555).cmpStr,o=n(97555).TYPE,a=o.Function,s=o.Url,l=o.RightParenthesis;e.exports={name:"Url",structure:{value:["String","Raw"]},parse:function(){var e,t=this.scanner.tokenStart;switch(this.scanner.tokenType){case s:for(var n=t+4,o=this.scanner.tokenEnd-1;n<o&&i(this.scanner.source.charCodeAt(n));)n++;for(;n<o&&i(this.scanner.source.charCodeAt(o-1));)o--;e={type:"Raw",loc:this.getLocation(n,o),value:this.scanner.source.substring(n,o)},this.eat(s);break;case a:r(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(a),this.scanner.skipSC(),e=this.String(),this.scanner.skipSC(),this.eat(l);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(")")}}},605:function(e){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)}}},48360:function(e,t,n){var i=n(97555).TYPE.WhiteSpace,r=Object.freeze({type:"WhiteSpace",loc:null,value:" "});e.exports={name:"WhiteSpace",structure:{value:String},parse:function(){return this.eat(i),r},generate:function(e){this.chunk(e.value)}}},5678:function(e,t,n){e.exports={AnPlusB:n(34230),Atrule:n(24867),AtrulePrelude:n(19121),AttributeSelector:n(87446),Block:n(33570),Brackets:n(8916),CDC:n(91485),CDO:n(59315),ClassSelector:n(37016),Combinator:n(55136),Comment:n(6875),Declaration:n(7217),DeclarationList:n(69013),Dimension:n(68241),Function:n(60298),Hash:n(50759),Identifier:n(71392),IdSelector:n(37701),MediaFeature:n(94179),MediaQuery:n(32107),MediaQueryList:n(54459),Nth:n(61123),Number:n(63902),Operator:n(7249),Parentheses:n(34875),Percentage:n(62173),PseudoClassSelector:n(38887),PseudoElementSelector:n(78076),Ratio:n(15482),Raw:n(89604),Rule:n(56064),Selector:n(43042),SelectorList:n(38444),String:n(12565),StyleSheet:n(91348),TypeSelector:n(16983),UnicodeRange:n(95616),Url:n(72796),Value:n(605),WhiteSpace:n(48360)}},99281:function(e){e.exports={parse:function(){return this.createSingleNodeList(this.Nth(!1))}}},56849:function(e){e.exports={parse:function(){return this.createSingleNodeList(this.Nth(!0))}}},23317:function(e){e.exports={parse:function(){return this.createSingleNodeList(this.SelectorList())}}},41448:function(e){e.exports={parse:function(){return this.createSingleNodeList(this.Identifier())}}},12742:function(e){e.exports={parse:function(){return this.createSingleNodeList(this.SelectorList())}}},31947:function(e,t,n){e.exports={dir:n(41448),has:n(12742),lang:n(90367),matches:n(74468),not:n(13251),"nth-child":n(3198),"nth-last-child":n(78171),"nth-last-of-type":n(36963),"nth-of-type":n(91002),slotted:n(81307)}},90367:function(e){e.exports={parse:function(){return this.createSingleNodeList(this.Identifier())}}},74468:function(e,t,n){e.exports=n(23317)},13251:function(e,t,n){e.exports=n(23317)},3198:function(e,t,n){e.exports=n(56849)},78171:function(e,t,n){e.exports=n(56849)},36963:function(e,t,n){e.exports=n(99281)},91002:function(e,t,n){e.exports=n(99281)},81307:function(e){e.exports={parse:function(){return this.createSingleNodeList(this.Selector())}}},87714:function(e,t,n){e.exports={getNode:n(5495)}},5495:function(e,t,n){var i=n(97555).cmpChar,r=n(97555).cmpStr,o=n(97555).TYPE,a=o.Ident,s=o.String,l=o.Number,c=o.Function,u=o.Url,d=o.Hash,h=o.Dimension,p=o.Percentage,f=o.LeftParenthesis,m=o.LeftSquareBracket,g=o.Comma,v=o.Delim;e.exports=function(e){switch(this.scanner.tokenType){case d:return this.Hash();case g:return e.space=null,e.ignoreWSAfter=!0,this.Operator();case f:return this.Parentheses(this.readSequence,e.recognizer);case m:return this.Brackets(this.readSequence,e.recognizer);case s:return this.String();case h:return this.Dimension();case p:return this.Percentage();case l:return this.Number();case c:return r(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case u:return this.Url();case a:return i(this.scanner.source,this.scanner.tokenStart,117)&&i(this.scanner.source,this.scanner.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case v:var t=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(47===t||42===t||43===t||45===t)return this.Operator();35===t&&this.error("Hex or identifier is expected",this.scanner.tokenStart+1)}}},73241:function(e,t,n){e.exports={AtrulePrelude:n(87714),Selector:n(59604),Value:n(84761)}},59604:function(e,t,n){var i=n(97555).TYPE,r=i.Delim,o=i.Ident,a=i.Dimension,s=i.Percentage,l=i.Number,c=i.Hash,u=i.Colon,d=i.LeftSquareBracket;e.exports={getNode:function(e){switch(this.scanner.tokenType){case d:return this.AttributeSelector();case c:return this.IdSelector();case u:return this.scanner.lookupType(1)===u?this.PseudoElementSelector():this.PseudoClassSelector();case o:return this.TypeSelector();case l:case s:return this.Percentage();case a:46===this.scanner.source.charCodeAt(this.scanner.tokenStart)&&this.error("Identifier is expected",this.scanner.tokenStart+1);break;case r:switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 43:case 62:case 126:return e.space=null,e.ignoreWSAfter=!0,this.Combinator();case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector()}}}}},84761:function(e,t,n){e.exports={getNode:n(5495),expression:n(36728),var:n(82418)}},88312:function(e){function t(e){return e>=48&&e<=57}function n(e){return e>=65&&e<=90}function i(e){return e>=97&&e<=122}function r(e){return n(e)||i(e)}function o(e){return e>=128}function a(e){return r(e)||o(e)||95===e}function s(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 c(e){return l(e)||32===e||9===e}function u(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 h=0;h<d.length;h++)switch(!0){case c(h):d[h]=p.WhiteSpace;break;case t(h):d[h]=p.Digit;break;case a(h):d[h]=p.NameStart;break;case s(h):d[h]=p.NonPrintable;break;default:d[h]=h||p.Eof}function p(e){return e<128?d[e]:p.NameStart}e.exports={isDigit:t,isHexDigit:function(e){return t(e)||e>=65&&e<=70||e>=97&&e<=102},isUppercaseLetter:n,isLowercaseLetter:i,isLetter:r,isNonAscii:o,isNameStart:a,isName:function(e){return a(e)||t(e)||45===e},isNonPrintable:s,isNewline:l,isWhiteSpace:c,isValidEscape:u,isIdentifierStart:function(e,t,n){return 45===e?a(t)||45===t||u(t,n):!!a(e)||92===e&&u(e,t)},isNumberStart:function(e,n,i){return 43===e||45===e?t(n)?2:46===n&&t(i)?3:0:46===e?t(n)?2:0:t(e)?1:0},isBOM:function(e){return 65279===e||65534===e?1:0},charCodeCategory:p}},97077:function(e){var t={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},n=Object.keys(t).reduce(function(e,n){return e[t[n]]=n,e},{});e.exports={TYPE:t,NAME:n}},97555:function(e,t,n){var i=n(13146),r=n(62146),o=n(97077),a=o.TYPE,s=n(88312),l=s.isNewline,c=s.isName,u=s.isValidEscape,d=s.isNumberStart,h=s.isIdentifierStart,p=s.charCodeCategory,f=s.isBOM,m=n(74586),g=m.cmpStr,v=m.getNewlineLength,y=m.findWhiteSpaceEnd,_=m.consumeEscaped,b=m.consumeName,w=m.consumeNumber,S=m.consumeBadUrlRemnants,x=16777215,C=24;function k(e,t){function n(t){return t<k?e.charCodeAt(t):0}function o(){return O=w(e,O),h(n(O),n(O+1),n(O+2))?(N=a.Dimension,void(O=b(e,O))):37===n(O)?(N=a.Percentage,void O++):void(N=a.Number)}function s(){var t=O;return O=b(e,O),g(e,t,O,"url")&&40===n(O)?34===n(O=y(e,O+1))||39===n(O)?(N=a.Function,void(O=t+4)):void function(){for(N=a.Url,O=y(e,O);O<e.length;O++){var t=e.charCodeAt(O);switch(p(t)){case 41:return void O++;case p.Eof:return;case p.WhiteSpace:return 41===n(O=y(e,O))||O>=e.length?void(O<e.length&&O++):(O=S(e,O),void(N=a.BadUrl));case 34:case 39:case 40:case p.NonPrintable:return O=S(e,O),void(N=a.BadUrl);case 92:if(u(t,n(O+1))){O=_(e,O)-1;break}return O=S(e,O),void(N=a.BadUrl)}}}():40===n(O)?(N=a.Function,void O++):void(N=a.Ident)}function m(t){for(t||(t=n(O++)),N=a.String;O<e.length;O++){var i=e.charCodeAt(O);switch(p(i)){case t:return void O++;case p.Eof:return;case p.WhiteSpace:if(l(i))return O+=v(e,O,i),void(N=a.BadString);break;case 92:if(O===e.length-1)break;var r=n(O+1);l(r)?O+=v(e,O+1,r):u(i,r)&&(O=_(e,O)-1)}}}t||(t=new i);for(var k=(e=String(e||"")).length,T=r(t.offsetAndType,k+1),A=r(t.balance,k+1),Z=0,M=f(n(0)),O=M,E=0,P=0,I=0;O<k;){var q=e.charCodeAt(O),N=0;switch(A[Z]=k,p(q)){case p.WhiteSpace:N=a.WhiteSpace,O=y(e,O+1);break;case 34:m();break;case 35:c(n(O+1))||u(n(O+1),n(O+2))?(N=a.Hash,O=b(e,O+1)):(N=a.Delim,O++);break;case 39:m();break;case 40:N=a.LeftParenthesis,O++;break;case 41:N=a.RightParenthesis,O++;break;case 43:d(q,n(O+1),n(O+2))?o():(N=a.Delim,O++);break;case 44:N=a.Comma,O++;break;case 45:d(q,n(O+1),n(O+2))?o():45===n(O+1)&&62===n(O+2)?(N=a.CDC,O+=3):h(q,n(O+1),n(O+2))?s():(N=a.Delim,O++);break;case 46:d(q,n(O+1),n(O+2))?o():(N=a.Delim,O++);break;case 47:42===n(O+1)?(N=a.Comment,1===(O=e.indexOf("*/",O+2)+2)&&(O=e.length)):(N=a.Delim,O++);break;case 58:N=a.Colon,O++;break;case 59:N=a.Semicolon,O++;break;case 60:33===n(O+1)&&45===n(O+2)&&45===n(O+3)?(N=a.CDO,O+=4):(N=a.Delim,O++);break;case 64:h(n(O+1),n(O+2),n(O+3))?(N=a.AtKeyword,O=b(e,O+1)):(N=a.Delim,O++);break;case 91:N=a.LeftSquareBracket,O++;break;case 92:u(q,n(O+1))?s():(N=a.Delim,O++);break;case 93:N=a.RightSquareBracket,O++;break;case 123:N=a.LeftCurlyBracket,O++;break;case 125:N=a.RightCurlyBracket,O++;break;case p.Digit:o();break;case p.NameStart:s();break;case p.Eof:break;default:N=a.Delim,O++}switch(N){case E:for(E=(P=A[I=P&x])>>C,A[Z]=I,A[I++]=Z;I<Z;I++)A[I]===k&&(A[I]=Z);break;case a.LeftParenthesis:case a.Function:A[Z]=P,P=(E=a.RightParenthesis)<<C|Z;break;case a.LeftSquareBracket:A[Z]=P,P=(E=a.RightSquareBracket)<<C|Z;break;case a.LeftCurlyBracket:A[Z]=P,P=(E=a.RightCurlyBracket)<<C|Z}T[Z++]=N<<C|O}for(T[Z]=a.EOF<<C|O,A[Z]=k,A[k]=k;0!==P;)P=A[I=P&x],A[I]=k;return t.source=e,t.firstCharOffset=M,t.offsetAndType=T,t.tokenCount=Z,t.balance=A,t.reset(),t.next(),t}Object.keys(o).forEach(function(e){k[e]=o[e]}),Object.keys(s).forEach(function(e){k[e]=s[e]}),Object.keys(m).forEach(function(e){k[e]=m[e]}),e.exports=k},74586:function(e,t,n){var i=n(88312),r=i.isDigit,o=i.isHexDigit,a=i.isUppercaseLetter,s=i.isName,l=i.isWhiteSpace,c=i.isValidEscape;function u(e,t){return t<e.length?e.charCodeAt(t):0}function d(e,t,n){return 13===n&&10===u(e,t+1)?2:1}function h(e,t,n){var i=e.charCodeAt(t);return a(i)&&(i|=32),i===n}function p(e,t){for(;t<e.length&&r(e.charCodeAt(t));t++);return t}function f(e,t){if(o(u(e,(t+=2)-1))){for(var n=Math.min(e.length,t+5);t<n&&o(u(e,t));t++);var i=u(e,t);l(i)&&(t+=d(e,t,i))}return t}e.exports={consumeEscaped:f,consumeName:function(e,t){for(;t<e.length;t++){var n=e.charCodeAt(t);if(!s(n)){if(!c(n,u(e,t+1)))break;t=f(e,t)-1}}return t},consumeNumber:function(e,t){var n=e.charCodeAt(t);if(43!==n&&45!==n||(n=e.charCodeAt(t+=1)),r(n)&&(t=p(e,t+1),n=e.charCodeAt(t)),46===n&&r(e.charCodeAt(t+1))&&(n=e.charCodeAt(t+=2),t=p(e,t)),h(e,t,101)){var i=0;45!==(n=e.charCodeAt(t+1))&&43!==n||(i=1,n=e.charCodeAt(t+2)),r(n)&&(t=p(e,t+1+i+1))}return t},consumeBadUrlRemnants:function(e,t){for(;t<e.length;t++){var n=e.charCodeAt(t);if(41===n){t++;break}c(n,u(e,t+1))&&(t=f(e,t))}return t},cmpChar:h,cmpStr:function(e,t,n,i){if(n-t!==i.length)return!1;if(t<0||n>e.length)return!1;for(var r=t;r<n;r++){var o=e.charCodeAt(r),s=i.charCodeAt(r-t);if(a(o)&&(o|=32),o!==s)return!1}return!0},getNewlineLength:d,findWhiteSpaceStart:function(e,t){for(;t>=0&&l(e.charCodeAt(t));t--);return t+1},findWhiteSpaceEnd:function(e,t){for(;t<e.length&&l(e.charCodeAt(t));t++);return t}}},30714:function(e,t,n){var i=n(63335);e.exports=function e(t){var n={};for(var r in t){var o=t[r];o&&(Array.isArray(o)||o instanceof i?o=o.map(e):o.constructor===Object&&(o=e(o))),n[r]=o}return n}},92455:function(e){e.exports=function(e,t){var n=Object.create(SyntaxError.prototype),i=new Error;return n.name=e,n.message=t,Object.defineProperty(n,"stack",{get:function(){return(i.stack||"").replace(/^(.+\n){1,3}/,e+": "+t+"\n")}}),n}},50643:function(e){var t=Object.prototype.hasOwnProperty,n=Object.create(null),i=Object.create(null);function r(e,t){return e.length-(t=t||0)>=2&&45===e.charCodeAt(t)&&45===e.charCodeAt(t+1)}function o(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(t.call(n,e))return n[e];var i=e.toLowerCase();if(t.call(n,i))return n[e]=n[i];var a=r(i,0),s=a?"":o(i,0);return n[e]=Object.freeze({basename:i.substr(s.length),name:i,vendor:s,prefix:s,custom:a})},property:function(e){if(t.call(i,e))return i[e];var n=e,a=e[0];"/"===a?a="/"===e[1]?"//":"/":"_"!==a&&"*"!==a&&"$"!==a&&"#"!==a&&"+"!==a&&"&"!==a&&(a="");var s=r(n,a.length);if(!s&&(n=n.toLowerCase(),t.call(i,n)))return i[e]=i[n];var l=s?"":o(n,a.length),c=n.substr(0,a.length+l.length);return i[e]=Object.freeze({basename:n.substr(c.length),name:n.substr(a.length),hack:a,vendor:l,prefix:c,custom:s})},isCustomProperty:r,vendorPrefix:o}},24523:function(e){var t=Object.prototype.hasOwnProperty,n=function(){};function i(e){return"function"==typeof e?e:n}function r(e,t){return function(n,i,r){n.type===t&&e.call(this,n,i,r)}}function o(e,n){var i=n.structure,r=[];for(var o in i)if(!1!==t.call(i,o)){var a=i[o],s={name:o,type:!1,nullable:!1};Array.isArray(i[o])||(a=[i[o]]);for(var l=0;l<a.length;l++){var c=a[l];null===c?s.nullable=!0:"string"==typeof c?s.type="node":Array.isArray(c)&&(s.type="list")}s.type&&r.push(s)}return r.length?{context:n.walkContext,fields:r}:null}function a(e,t){var n=e.fields.slice(),i=e.context,r="string"==typeof i;return t&&n.reverse(),function(e,o,a,s){var l;r&&(l=o[i],o[i]=e);for(var c=0;c<n.length;c++){var u=n[c],d=e[u.name];if(!u.nullable||d)if("list"===u.type){if(t?d.reduceRight(s,!1):d.reduce(s,!1))return!0}else if(a(d))return!0}r&&(o[i]=l)}}function s(e){return{Atrule:{StyleSheet:e.StyleSheet,Atrule:e.Atrule,Rule:e.Rule,Block:e.Block},Rule:{StyleSheet:e.StyleSheet,Atrule:e.Atrule,Rule:e.Rule,Block:e.Block},Declaration:{StyleSheet:e.StyleSheet,Atrule:e.Atrule,Rule:e.Rule,Block:e.Block,DeclarationList:e.DeclarationList}}}e.exports=function(e){var l=function(e){var n={};for(var i in e.node)if(t.call(e.node,i)){var r=e.node[i];if(!r.structure)throw new Error("Missed `structure` field in `"+i+"` node type definition");n[i]=o(0,r)}return n}(e),c={},u={},d=Symbol("break-walk"),h=Symbol("skip-node");for(var p in l)t.call(l,p)&&null!==l[p]&&(c[p]=a(l[p],!1),u[p]=a(l[p],!0));var f=s(c),m=s(u),g=function(e,t){function o(e,t,n){var i=s.call(v,e,t,n);return i===d||i!==h&&(!(!g.hasOwnProperty(e.type)||!g[e.type](e,v,o,a))||p.call(v,e,t,n)===d)}var a=function(e,t,n,i){return e||o(t,n,i)},s=n,p=n,g=c,v={break:d,skip:h,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof t)s=t;else if(t&&(s=i(t.enter),p=i(t.leave),t.reverse&&(g=u),t.visit)){if(f.hasOwnProperty(t.visit))g=t.reverse?m[t.visit]:f[t.visit];else if(!l.hasOwnProperty(t.visit))throw new Error("Bad value `"+t.visit+"` for `visit` option (should be: "+Object.keys(l).join(", ")+")");s=r(s,t.visit),p=r(p,t.visit)}if(s===n&&p===n)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");o(e)};return g.break=d,g.skip=h,g.find=function(e,t){var n=null;return g(e,function(e,i,r){if(t.call(this,e,i,r))return n=e,d}),n},g.findLast=function(e,t){var n=null;return g(e,{reverse:!0,enter:function(e,i,r){if(t.call(this,e,i,r))return n=e,d}}),n},g.findAll=function(e,t){var n=[];return g(e,function(e,i,r){t.call(this,e,i,r)&&n.push(e)}),n},g}},33931:function(e,t,n){var i;!function(r,o,a){if(r){for(var s,l={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"},c={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",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},h=1;h<20;++h)l[111+h]="f"+h;for(h=0;h<=9;++h)l[h+96]=h.toString();_.prototype.bind=function(e,t,n){var i=this;return i._bindMultiple.call(i,e=e instanceof Array?e:[e],t,n),i},_.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},_.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},_.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},_.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(y(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},_.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},_.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);s=null},_.init=function(){var e=_(o);for(var t in e)"_"!==t.charAt(0)&&(_[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},_.init(),r.Mousetrap=_,e.exports&&(e.exports=_),void 0===(i=(function(){return _}).call(t,n,t,e))||(e.exports=i)}function p(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function f(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return l[e.which]?l[e.which]:c[e.which]?c[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={},l)e>95&&e<112||l.hasOwnProperty(e)&&(s[l[e]]=e);return s}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function v(e,t){var n,i,r,o=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),r=0;r<n.length;++r)d[i=n[r]]&&(i=d[i]),t&&"keypress"!=t&&u[i]&&(i=u[i],o.push("shift")),m(i)&&o.push(i);return{key:i,modifiers:o,action:t=g(i,o,t)}}function y(e,t){return null!==e&&e!==o&&(e===t||y(e.parentNode,t))}function _(e){var t=this;if(e=e||o,!(t instanceof _))return new _(e);t.target=e,t._callbacks={},t._directMap={};var n,i={},r=!1,a=!1,s=!1;function l(e){e=e||{};var t,n=!1;for(t in i)e[t]?n=!0:i[t]=0;n||(s=!1)}function c(e,n,r,o,a,s){var l,c,u,d=[],h=r.type;if(!t._callbacks[e])return[];for("keyup"==h&&m(e)&&(n=[e]),l=0;l<t._callbacks[e].length;++l)c=t._callbacks[e][l],(o||!c.seq||i[c.seq]==c.level)&&h==c.action&&(("keypress"!=h||r.metaKey||r.ctrlKey)&&(u=c.modifiers,n.sort().join(",")!==u.sort().join(","))||((!o&&c.combo==a||o&&c.seq==o&&c.level==s)&&t._callbacks[e].splice(l,1),d.push(c)));return d}function u(e,n,i,r){t.stopCallback(n,n.target||n.srcElement,i,r)||!1===e(n,i)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function d(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=f(e);n&&("keyup"!=e.type||r!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):r=!1)}function h(e,o,a,d,p){t._directMap[e+":"+a]=o;var m,g=(e=e.replace(/\s+/g," ")).split(" ");g.length>1?function(e,t,o,a){function c(t){return function(){s=t,++i[e],clearTimeout(n),n=setTimeout(l,1e3)}}function d(t){u(o,t,e),"keyup"!==a&&(r=f(t)),setTimeout(l,10)}i[e]=0;for(var p=0;p<t.length;++p){var m=p+1===t.length?d:c(a||v(t[p+1]).action);h(t[p],m,a,e,p)}}(e,g,o,a):(m=v(e,a),t._callbacks[m.key]=t._callbacks[m.key]||[],c(m.key,m.modifiers,{type:m.action},d,e,p),t._callbacks[m.key][d?"unshift":"push"]({callback:o,modifiers:m.modifiers,action:m.action,seq:d,level:p,combo:e}))}t._handleKey=function(e,t,n){var i,r=c(e,t,n),o={},d=0,h=!1;for(i=0;i<r.length;++i)r[i].seq&&(d=Math.max(d,r[i].level));for(i=0;i<r.length;++i)if(r[i].seq){if(r[i].level!=d)continue;h=!0,o[r[i].seq]=1,u(r[i].callback,n,r[i].combo,r[i].seq)}else h||u(r[i].callback,n,r[i].combo);var p="keypress"==n.type&&a;n.type!=s||m(e)||p||l(o),a=h&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var i=0;i<e.length;++i)h(e[i],t,n)},p(e,"keypress",d),p(e,"keydown",d),p(e,"keyup",d)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},55590:function(e){var t=function(e){"use strict";var t,n=Object.prototype,i=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(E){l=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var r=Object.create((t&&t.prototype instanceof g?t:g).prototype),o=new Z(i||[]);return r._invoke=function(e,t,n){var i=d;return function(r,o){if(i===p)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=k(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(i===d)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var l=u(e,t,n);if("normal"===l.type){if(i=n.done?f:h,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=f,n.method="throw",n.arg=l.arg)}}}(e,n,o),r}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(E){return{type:"throw",arg:E}}}e.wrap=c;var d="suspendedStart",h="suspendedYield",p="executing",f="completed",m={};function g(){}function v(){}function y(){}var _={};_[o]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(M([])));w&&w!==n&&i.call(w,o)&&(_=w);var S=y.prototype=g.prototype=Object.create(_);function x(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(r,o,a,s){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&i.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(d).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,s)})}s(l.arg)}var r;this._invoke=function(e,i){function o(){return new t(function(t,r){n(e,i,t,r)})}return r=r?r.then(o,o):o()}}function k(e,n){var i=e.iterator[n.method];if(i===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,k(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 r=u(i,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,m;var o=r.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 T(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Z(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function M(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 r=-1,a=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:O}}function O(){return{value:t,done:!0}}return v.prototype=S.constructor=y,y.constructor=v,v.displayName=l(y,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,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},x(C.prototype),C.prototype[a]=function(){return this},e.AsyncIterator=C,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new C(c(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},x(S),l(S,s,"Generator"),S[o]=function(){return this},S.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 i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=M,Z.prototype={constructor:Z,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(A),!e)for(var n in this)"t"===n.charAt(0)&&i.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 r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;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),A(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 i=n.completion;if("throw"===i.type){var r=i.arg;A(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:M(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(n){Function("r","regeneratorRuntime = r")(t)}},56938:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);t.Observable=i.Observable,t.Subject=i.Subject;var r=n(37294);t.AnonymousSubject=r.AnonymousSubject;var o=n(37294);t.config=o.config,n(26598),n(87663),n(95351),n(66981),n(31881),n(36800),n(52413),n(86376),n(41029),n(30918),n(79817),n(29023),n(48668),n(61975),n(92442),n(42697),n(63990),n(86230),n(61201),n(32171),n(40439),n(69079),n(9222),n(52357),n(36294),n(12782),n(94618),n(93231),n(96547),n(62374),n(35595),n(57540),n(97010),n(56518),n(59982),n(70198),n(3943),n(95297),n(53842),n(46085),n(46753),n(12452),n(51341),n(41575),n(42657),n(17109),n(89716),n(71255),n(75197),n(70992),n(3106),n(54506),n(16161),n(11405),n(37132),n(45396),n(41154),n(96986),n(67259),n(89015),n(57301),n(4993),n(77490),n(4533),n(42215),n(95564),n(61431),n(68663),n(63566),n(62729),n(48483),n(32979),n(78104),n(64259),n(30336),n(46315),n(60771),n(92700),n(43545),n(89242),n(70177),n(43800),n(33434),n(37179),n(97810),n(27430),n(44633),n(37953),n(58435),n(14234),n(98741),n(43263),n(57180),n(87700),n(34860),n(67751),n(63733),n(38596),n(20038),n(58186),n(77538),n(33866),n(1676),n(3018),n(58003),n(77394),n(92947),n(27971),n(33934),n(43126),n(6320),n(96813),n(20425),n(70140),n(32035),n(49421),n(9693),n(87276),n(63934),n(17360),n(37222),n(55214),n(22854),n(65259),n(84715),n(27798),n(98441),n(56238),n(42145);var a=n(94117);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(53520);t.TestScheduler=s.TestScheduler;var l=n(94117);t.Subscriber=l.Subscriber,t.AsyncSubject=l.AsyncSubject,t.ConnectableObservable=l.ConnectableObservable,t.TimeoutError=l.TimeoutError,t.VirtualTimeScheduler=l.VirtualTimeScheduler;var c=n(55905);t.AjaxResponse=c.AjaxResponse,t.AjaxError=c.AjaxError,t.AjaxTimeoutError=c.AjaxTimeoutError;var u=n(94117),d=n(37294),h=n(37294);t.TimeInterval=h.TimeInterval,t.Timestamp=h.Timestamp;var p=n(73033);t.operators=p,t.Scheduler={asap:u.asapScheduler,queue:u.queueScheduler,animationFrame:u.animationFrameScheduler,async:u.asyncScheduler},t.Symbol={rxSubscriber:d.rxSubscriber,observable:d.observable,iterator:d.iterator}},26598:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.bindCallback=i.bindCallback},87663:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.bindNodeCallback=i.bindNodeCallback},95351:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.combineLatest=i.combineLatest},66981:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.concat=i.concat},31881:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.defer=i.defer},12782:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(55905);i.Observable.ajax=r.ajax},94618:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(4194);i.Observable.webSocket=r.webSocket},36800:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.empty=i.empty},52413:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.forkJoin=i.forkJoin},86376:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.from=i.from},41029:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.fromEvent=i.fromEvent},30918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.fromEventPattern=i.fromEventPattern},79817:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.fromPromise=i.from},29023:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.generate=i.generate},48668:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.if=i.iif},61975:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.interval=i.interval},92442:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.merge=i.merge},63990:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);function r(){return i.NEVER}t.staticNever=r,i.Observable.never=r},86230:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.of=i.of},61201:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.onErrorResumeNext=i.onErrorResumeNext},32171:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.pairs=i.pairs},42697:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.race=i.race},40439:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.range=i.range},9222:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.throw=i.throwError,i.Observable.throwError=i.throwError},52357:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.timer=i.timer},69079:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.using=i.using},36294:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);i.Observable.zip=i.zip},77490:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(20325);i.Observable.prototype.audit=r.audit},4533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(55702);i.Observable.prototype.auditTime=r.auditTime},93231:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(19931);i.Observable.prototype.buffer=r.buffer},96547:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(38173);i.Observable.prototype.bufferCount=r.bufferCount},62374:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(93690);i.Observable.prototype.bufferTime=r.bufferTime},35595:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(79681);i.Observable.prototype.bufferToggle=r.bufferToggle},57540:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(75311);i.Observable.prototype.bufferWhen=r.bufferWhen},97010:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(26306);i.Observable.prototype.catch=r._catch,i.Observable.prototype._catch=r._catch},56518:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(15869);i.Observable.prototype.combineAll=r.combineAll},59982:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(23265);i.Observable.prototype.combineLatest=r.combineLatest},70198:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(31179);i.Observable.prototype.concat=r.concat},3943:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(16148);i.Observable.prototype.concatAll=r.concatAll},95297:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(28552);i.Observable.prototype.concatMap=r.concatMap},53842:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(91798);i.Observable.prototype.concatMapTo=r.concatMapTo},46085:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(93653);i.Observable.prototype.count=r.count},12452:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(36477);i.Observable.prototype.debounce=r.debounce},51341:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(61529);i.Observable.prototype.debounceTime=r.debounceTime},41575:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(64502);i.Observable.prototype.defaultIfEmpty=r.defaultIfEmpty},42657:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(33674);i.Observable.prototype.delay=r.delay},17109:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(49477);i.Observable.prototype.delayWhen=r.delayWhen},46753:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(21941);i.Observable.prototype.dematerialize=r.dematerialize},89716:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(18053);i.Observable.prototype.distinct=r.distinct},71255:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(13598);i.Observable.prototype.distinctUntilChanged=r.distinctUntilChanged},75197:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(94936);i.Observable.prototype.distinctUntilKeyChanged=r.distinctUntilKeyChanged},70992:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(21790);i.Observable.prototype.do=r._do,i.Observable.prototype._do=r._do},11405:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(2538);i.Observable.prototype.elementAt=r.elementAt},61431:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(58136);i.Observable.prototype.every=r.every},3106:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(26734);i.Observable.prototype.exhaust=r.exhaust},54506:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(2084);i.Observable.prototype.exhaustMap=r.exhaustMap},16161:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(2945);i.Observable.prototype.expand=r.expand},37132:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(3704);i.Observable.prototype.filter=r.filter},45396:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(58870);i.Observable.prototype.finally=r._finally,i.Observable.prototype._finally=r._finally},41154:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(16201);i.Observable.prototype.find=r.find},96986:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(95148);i.Observable.prototype.findIndex=r.findIndex},67259:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(96050);i.Observable.prototype.first=r.first},89015:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(16309);i.Observable.prototype.groupBy=r.groupBy},57301:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(3640);i.Observable.prototype.ignoreElements=r.ignoreElements},4993:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(87486);i.Observable.prototype.isEmpty=r.isEmpty},42215:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(30274);i.Observable.prototype.last=r.last},95564:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(11668);i.Observable.prototype.let=r.letProto,i.Observable.prototype.letBind=r.letProto},68663:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(23307);i.Observable.prototype.map=r.map},63566:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(3498);i.Observable.prototype.mapTo=r.mapTo},62729:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(70845);i.Observable.prototype.materialize=r.materialize},48483:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(96415);i.Observable.prototype.max=r.max},32979:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(33836);i.Observable.prototype.merge=r.merge},78104:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(58610);i.Observable.prototype.mergeAll=r.mergeAll},64259:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(36098);i.Observable.prototype.mergeMap=r.mergeMap,i.Observable.prototype.flatMap=r.mergeMap},30336:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(53033);i.Observable.prototype.flatMapTo=r.mergeMapTo,i.Observable.prototype.mergeMapTo=r.mergeMapTo},46315:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(11444);i.Observable.prototype.mergeScan=r.mergeScan},60771:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(6626);i.Observable.prototype.min=r.min},92700:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(4291);i.Observable.prototype.multicast=r.multicast},43545:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(37675);i.Observable.prototype.observeOn=r.observeOn},89242:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(92878);i.Observable.prototype.onErrorResumeNext=r.onErrorResumeNext},70177:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(94401);i.Observable.prototype.pairwise=r.pairwise},43800:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(93110);i.Observable.prototype.partition=r.partition},33434:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(53937);i.Observable.prototype.pluck=r.pluck},37179:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(81e3);i.Observable.prototype.publish=r.publish},97810:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(78665);i.Observable.prototype.publishBehavior=r.publishBehavior},44633:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(34696);i.Observable.prototype.publishLast=r.publishLast},27430:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(35543);i.Observable.prototype.publishReplay=r.publishReplay},37953:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(33963);i.Observable.prototype.race=r.race},58435:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(99216);i.Observable.prototype.reduce=r.reduce},14234:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(19613);i.Observable.prototype.repeat=r.repeat},98741:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(72798);i.Observable.prototype.repeatWhen=r.repeatWhen},43263:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(59813);i.Observable.prototype.retry=r.retry},57180:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(5419);i.Observable.prototype.retryWhen=r.retryWhen},87700:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(58693);i.Observable.prototype.sample=r.sample},34860:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(86803);i.Observable.prototype.sampleTime=r.sampleTime},67751:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(65036);i.Observable.prototype.scan=r.scan},63733:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(12201);i.Observable.prototype.sequenceEqual=r.sequenceEqual},38596:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(86892);i.Observable.prototype.share=r.share},20038:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(9050);i.Observable.prototype.shareReplay=r.shareReplay},58186:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(13533);i.Observable.prototype.single=r.single},77538:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(65846);i.Observable.prototype.skip=r.skip},33866:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(90955);i.Observable.prototype.skipLast=r.skipLast},1676:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(75479);i.Observable.prototype.skipUntil=r.skipUntil},3018:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(76841);i.Observable.prototype.skipWhile=r.skipWhile},58003:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(66560);i.Observable.prototype.startWith=r.startWith},77394:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(92265);i.Observable.prototype.subscribeOn=r.subscribeOn},92947:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(41428);i.Observable.prototype.switch=r._switch,i.Observable.prototype._switch=r._switch},27971:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(5193);i.Observable.prototype.switchMap=r.switchMap},33934:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(34022);i.Observable.prototype.switchMapTo=r.switchMapTo},43126:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(204);i.Observable.prototype.take=r.take},6320:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(62299);i.Observable.prototype.takeLast=r.takeLast},96813:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(93542);i.Observable.prototype.takeUntil=r.takeUntil},20425:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(79214);i.Observable.prototype.takeWhile=r.takeWhile},70140:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(35922);i.Observable.prototype.throttle=r.throttle},32035:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(41941);i.Observable.prototype.throttleTime=r.throttleTime},49421:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(99194);i.Observable.prototype.timeInterval=r.timeInterval},9693:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(53358);i.Observable.prototype.timeout=r.timeout},87276:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(41237);i.Observable.prototype.timeoutWith=r.timeoutWith},63934:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(84485);i.Observable.prototype.timestamp=r.timestamp},17360:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(23552);i.Observable.prototype.toArray=r.toArray},37222:function(){},55214:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(13977);i.Observable.prototype.window=r.window},22854:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(54052);i.Observable.prototype.windowCount=r.windowCount},65259:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(17884);i.Observable.prototype.windowTime=r.windowTime},84715:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(18835);i.Observable.prototype.windowToggle=r.windowToggle},27798:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(84220);i.Observable.prototype.windowWhen=r.windowWhen},98441:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(41603);i.Observable.prototype.withLatestFrom=r.withLatestFrom},56238:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(83313);i.Observable.prototype.zip=r.zipProto},42145:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(80396);i.Observable.prototype.zipAll=r.zipAll},20325:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.audit=function(e){return i.audit(e)(this)}},55702:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(73033);t.auditTime=function(e,t){return void 0===t&&(t=i.asyncScheduler),r.auditTime(e,t)(this)}},19931:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.buffer=function(e){return i.buffer(e)(this)}},38173:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.bufferCount=function(e,t){return void 0===t&&(t=null),i.bufferCount(e,t)(this)}},93690:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(37294),o=n(73033);t.bufferTime=function(e){var t=arguments.length,n=i.asyncScheduler;r.isScheduler(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var a=null;t>=2&&(a=arguments[1]);var s=Number.POSITIVE_INFINITY;return t>=3&&(s=arguments[2]),o.bufferTime(e,a,s,n)(this)}},79681:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.bufferToggle=function(e,t){return i.bufferToggle(e,t)(this)}},75311:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.bufferWhen=function(e){return i.bufferWhen(e)(this)}},26306:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t._catch=function(e){return i.catchError(e)(this)}},15869:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.combineAll=function(e){return i.combineAll(e)(this)}},23265:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(37294);t.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&r.isArray(e[0])&&(e=e[0].slice()),this.lift.call(i.of.apply(void 0,[this].concat(e)),new r.CombineLatestOperator(n))}},31179:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lift.call(i.concat.apply(void 0,[this].concat(e)))}},16148:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.concatAll=function(){return i.concatAll()(this)}},28552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.concatMap=function(e){return i.concatMap(e)(this)}},91798:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.concatMapTo=function(e){return i.concatMapTo(e)(this)}},93653:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.count=function(e){return i.count(e)(this)}},36477:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.debounce=function(e){return i.debounce(e)(this)}},61529:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(73033);t.debounceTime=function(e,t){return void 0===t&&(t=i.asyncScheduler),r.debounceTime(e,t)(this)}},64502:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.defaultIfEmpty=function(e){return void 0===e&&(e=null),i.defaultIfEmpty(e)(this)}},33674:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(73033);t.delay=function(e,t){return void 0===t&&(t=i.asyncScheduler),r.delay(e,t)(this)}},49477:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.delayWhen=function(e,t){return i.delayWhen(e,t)(this)}},21941:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.dematerialize=function(){return i.dematerialize()(this)}},18053:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.distinct=function(e,t){return i.distinct(e,t)(this)}},13598:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.distinctUntilChanged=function(e,t){return i.distinctUntilChanged(e,t)(this)}},94936:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.distinctUntilKeyChanged=function(e,t){return i.distinctUntilKeyChanged(e,t)(this)}},21790:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t._do=function(e,t,n){return i.tap(e,t,n)(this)}},2538:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.elementAt=function(e,t){return i.elementAt.apply(void 0,arguments)(this)}},58136:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.every=function(e,t){return i.every(e,t)(this)}},26734:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.exhaust=function(){return i.exhaust()(this)}},2084:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.exhaustMap=function(e){return i.exhaustMap(e)(this)}},2945:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.expand=function(e,t,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),i.expand(e,t=(t||0)<1?Number.POSITIVE_INFINITY:t,n)(this)}},3704:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.filter=function(e,t){return i.filter(e,t)(this)}},58870:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t._finally=function(e){return i.finalize(e)(this)}},16201:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.find=function(e,t){return i.find(e,t)(this)}},95148:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.findIndex=function(e,t){return i.findIndex(e,t)(this)}},96050:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.first=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.first.apply(void 0,e)(this)}},16309:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.groupBy=function(e,t,n,r){return i.groupBy(e,t,n,r)(this)}},3640:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.ignoreElements=function(){return i.ignoreElements()(this)}},87486:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.isEmpty=function(){return i.isEmpty()(this)}},30274:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.last=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.last.apply(void 0,e)(this)}},11668:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.letProto=function(e){return e(this)}},23307:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.map=function(e,t){return i.map(e,t)(this)}},3498:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.mapTo=function(e){return i.mapTo(e)(this)}},70845:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.materialize=function(){return i.materialize()(this)}},96415:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.max=function(e){return i.max(e)(this)}},33836:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lift.call(i.merge.apply(void 0,[this].concat(e)))}},58610:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.mergeAll=function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),i.mergeAll(e)(this)}},36098:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.mergeMap=function(e,t){return void 0===t&&(t=Number.POSITIVE_INFINITY),i.mergeMap(e,t)(this)}},53033:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.mergeMapTo=function(e,t){return void 0===t&&(t=Number.POSITIVE_INFINITY),i.mergeMapTo(e,t)(this)}},11444:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.mergeScan=function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),i.mergeScan(e,t,n)(this)}},6626:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.min=function(e){return i.min(e)(this)}},4291:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.multicast=function(e,t){return i.multicast(e,t)(this)}},37675:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.observeOn=function(e,t){return void 0===t&&(t=0),i.observeOn(e,t)(this)}},92878:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.onErrorResumeNext.apply(void 0,e)(this)}},94401:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.pairwise=function(){return i.pairwise()(this)}},93110:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.partition=function(e,t){return i.partition(e,t)(this)}},53937:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.pluck.apply(void 0,e)(this)}},81e3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.publish=function(e){return i.publish(e)(this)}},78665:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.publishBehavior=function(e){return i.publishBehavior(e)(this)}},34696:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.publishLast=function(){return i.publishLast()(this)}},35543:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.publishReplay=function(e,t,n,r){return i.publishReplay(e,t,n,r)(this)}},33963:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.race.apply(void 0,e)(this)}},99216:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.reduce=function(e,t){return arguments.length>=2?i.reduce(e,t)(this):i.reduce(e)(this)}},19613:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.repeat=function(e){return void 0===e&&(e=-1),i.repeat(e)(this)}},72798:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.repeatWhen=function(e){return i.repeatWhen(e)(this)}},59813:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.retry=function(e){return void 0===e&&(e=-1),i.retry(e)(this)}},5419:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.retryWhen=function(e){return i.retryWhen(e)(this)}},58693:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.sample=function(e){return i.sample(e)(this)}},86803:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(73033);t.sampleTime=function(e,t){return void 0===t&&(t=i.asyncScheduler),r.sampleTime(e,t)(this)}},65036:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.scan=function(e,t){return arguments.length>=2?i.scan(e,t)(this):i.scan(e)(this)}},12201:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.sequenceEqual=function(e,t){return i.sequenceEqual(e,t)(this)}},86892:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.share=function(){return i.share()(this)}},9050:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.shareReplay=function(e,t,n){return e&&"object"==typeof e?i.shareReplay(e)(this):i.shareReplay(e,t,n)(this)}},13533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.single=function(e){return i.single(e)(this)}},65846:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.skip=function(e){return i.skip(e)(this)}},90955:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.skipLast=function(e){return i.skipLast(e)(this)}},75479:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.skipUntil=function(e){return i.skipUntil(e)(this)}},76841:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.skipWhile=function(e){return i.skipWhile(e)(this)}},66560:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.startWith.apply(void 0,e)(this)}},92265:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.subscribeOn=function(e,t){return void 0===t&&(t=0),i.subscribeOn(e,t)(this)}},41428:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t._switch=function(){return i.switchAll()(this)}},5193:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.switchMap=function(e){return i.switchMap(e)(this)}},34022:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.switchMapTo=function(e){return i.switchMapTo(e)(this)}},204:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.take=function(e){return i.take(e)(this)}},62299:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.takeLast=function(e){return i.takeLast(e)(this)}},93542:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.takeUntil=function(e){return i.takeUntil(e)(this)}},79214:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.takeWhile=function(e){return i.takeWhile(e)(this)}},35922:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033),r=n(37294);t.throttle=function(e,t){return void 0===t&&(t=r.defaultThrottleConfig),i.throttle(e,t)(this)}},41941:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(37294),o=n(73033);t.throttleTime=function(e,t,n){return void 0===t&&(t=i.asyncScheduler),void 0===n&&(n=r.defaultThrottleConfig),o.throttleTime(e,t,n)(this)}},99194:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(73033);t.timeInterval=function(e){return void 0===e&&(e=i.asyncScheduler),r.timeInterval(e)(this)}},53358:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(73033);t.timeout=function(e,t){return void 0===t&&(t=i.asyncScheduler),r.timeout(e,t)(this)}},41237:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(73033);t.timeoutWith=function(e,t,n){return void 0===n&&(n=i.asyncScheduler),r.timeoutWith(e,t,n)(this)}},84485:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(73033);t.timestamp=function(e){return void 0===e&&(e=i.asyncScheduler),r.timestamp(e)(this)}},23552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.toArray=function(){return i.toArray()(this)}},13977:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.window=function(e){return i.window(e)(this)}},54052:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.windowCount=function(e,t){return void 0===t&&(t=0),i.windowCount(e,t)(this)}},17884:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117),r=n(37294),o=n(73033);t.windowTime=function(e){var t=i.asyncScheduler,n=null,a=Number.POSITIVE_INFINITY;return r.isScheduler(arguments[3])&&(t=arguments[3]),r.isScheduler(arguments[2])?t=arguments[2]:r.isNumeric(arguments[2])&&(a=Number(arguments[2])),r.isScheduler(arguments[1])?t=arguments[1]:r.isNumeric(arguments[1])&&(n=Number(arguments[1])),o.windowTime(e,n,a,t)(this)}},18835:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.windowToggle=function(e,t){return i.windowToggle(e,t)(this)}},84220:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.windowWhen=function(e){return i.windowWhen(e)(this)}},41603:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.withLatestFrom.apply(void 0,e)(this)}},83313:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94117);t.zipProto=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lift.call(i.zip.apply(void 0,[this].concat(e)))}},80396:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73033);t.zipAll=function(e){return i.zipAll(e)(this)}},53628:function(e,t,n){},55905:function(e,t,n){"use strict";n.r(t),n.d(t,{ajax:function(){return i.h},AjaxResponse:function(){return r.vD},AjaxError:function(){return r.iM},AjaxTimeoutError:function(){return r.cw}});var i=n(30437),r=n(51361)},94117:function(e,t,n){"use strict";n.r(t),n.d(t,{ArgumentOutOfRangeError:function(){return C.W},AsyncSubject:function(){return u.c},BehaviorSubject:function(){return l.X},ConnectableObservable:function(){return r.c},EMPTY:function(){return H.E},EmptyError:function(){return k.K},GroupedObservable:function(){return o.T},NEVER:function(){return te},Notification:function(){return _.P},NotificationKind:function(){return _.W},ObjectUnsubscribedError:function(){return T.N},Observable:function(){return i.y},ReplaySubject:function(){return c.t},Scheduler:function(){return g.b},Subject:function(){return s.xQ},Subscriber:function(){return y.L},Subscription:function(){return v.w},TimeoutError:function(){return Z.W},UnsubscriptionError:function(){return A.B},VirtualAction:function(){return m.h},VirtualTimeScheduler:function(){return m.y},animationFrame:function(){return f.r},animationFrameScheduler:function(){return f.Z},asap:function(){return d.e},asapScheduler:function(){return d.E},async:function(){return h.P},asyncScheduler:function(){return h.z},bindCallback:function(){return q},bindNodeCallback:function(){return R},combineLatest:function(){return j.aj},concat:function(){return z.z},config:function(){return ye.v},defer:function(){return U.P},empty:function(){return H.c},forkJoin:function(){return Y.D},from:function(){return J.D},fromEvent:function(){return G.R},fromEventPattern:function(){return V},generate:function(){return Q},identity:function(){return S.y},iif:function(){return K},interval:function(){return $.F},isObservable:function(){return x.b},merge:function(){return ee.T},never:function(){return ne},noop:function(){return w.Z},observable:function(){return a.L},of:function(){return ie.of},onErrorResumeNext:function(){return re},pairs:function(){return oe},partition:function(){return ue},pipe:function(){return b.z},queue:function(){return p.c},queueScheduler:function(){return p.N},race:function(){return de.S3},range:function(){return he.w},scheduled:function(){return ve.x},throwError:function(){return pe._},timer:function(){return fe.H},using:function(){return me},zip:function(){return ge.$R}});var i=n(89797),r=n(39887),o=n(86072),a=n(57694),s=n(68707),l=n(90838),c=n(82667),u=n(3435),d=n(8285),h=n(46813),p=n(60641),f=n(58172),m=n(2296),g=n(67801),v=n(5051),y=n(39874),_=n(80286),b=n(96194),w=n(66029),S=n(57070),x=n(17504),C=n(9855),k=n(64646),T=n(1696),A=n(66351),Z=n(98691),M=n(25801),O=n(85639),E=n(20006),P=n(78985),I=n(91299);function q(e,t,n){if(t){if(!(0,I.K)(t))return function(){return q(e,n).apply(void 0,arguments).pipe((0,O.U)(function(e){return(0,P.k)(e)?t.apply(void 0,(0,M.Z)(e)):t(e)}))};n=t}return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var a,s=this,l={context:s,subject:a,callbackFunc:e,scheduler:n};return new i.y(function(t){if(n)return n.schedule(N,0,{args:r,subscriber:t,params:l});if(!a){a=new u.c;try{e.apply(s,[].concat(r,[function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];a.next(t.length<=1?t[0]:t),a.complete()}]))}catch(i){(0,E._)(a)?a.error(i):console.warn(i)}}return a.subscribe(t)})}}function N(e){var t=this,n=e.args,i=e.subscriber,r=e.params,o=r.callbackFunc,a=r.context,s=r.scheduler,l=r.subject;if(!l){l=r.subject=new u.c;try{o.apply(a,[].concat((0,M.Z)(n),[function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.add(s.schedule(D,0,{value:n.length<=1?n[0]:n,subject:l}))}]))}catch(c){l.error(c)}}this.add(l.subscribe(i))}function D(e){var t=e.subject;t.next(e.value),t.complete()}function R(e,t,n){if(t){if(!(0,I.K)(t))return function(){return R(e,n).apply(void 0,arguments).pipe((0,O.U)(function(e){return(0,P.k)(e)?t.apply(void 0,(0,M.Z)(e)):t(e)}))};n=t}return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var a={subject:void 0,args:r,callbackFunc:e,scheduler:n,context:this};return new i.y(function(t){var i=a.context,o=a.subject;if(n)return n.schedule(L,0,{params:a,subscriber:t,context:i});if(!o){o=a.subject=new u.c;try{e.apply(i,[].concat(r,[function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.shift();i?o.error(i):(o.next(t.length<=1?t[0]:t),o.complete())}]))}catch(s){(0,E._)(o)?o.error(s):console.warn(s)}}return o.subscribe(t)})}}function L(e){var t=this,n=e.params,i=e.subscriber,r=e.context,o=n.callbackFunc,a=n.args,s=n.scheduler,l=n.subject;if(!l){l=n.subject=new u.c;try{o.apply(r,[].concat((0,M.Z)(a),[function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.shift();t.add(r?s.schedule(B,0,{err:r,subject:l}):s.schedule(F,0,{value:n.length<=1?n[0]:n,subject:l}))}]))}catch(c){this.add(s.schedule(B,0,{err:c,subject:l}))}}this.add(l.subscribe(i))}function F(e){var t=e.subject;t.next(e.value),t.complete()}function B(e){e.subject.error(e.err)}var j=n(81370),z=n(60131),U=n(4499),H=n(93487),Y=n(91925),J=n(61493),G=n(33090),W=n(20684);function V(e,t,n){return n?V(e,t).pipe((0,O.U)(function(e){return(0,P.k)(e)?n.apply(void 0,(0,M.Z)(e)):n(e)})):new i.y(function(n){var i,r=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n.next(1===t.length?t[0]:t)};try{i=e(r)}catch(o){return void n.error(o)}if((0,W.m)(t))return function(){return t(r,i)}})}function Q(e,t,n,r,o){var a,s;return 1==arguments.length?(s=e.initialState,t=e.condition,n=e.iterate,a=e.resultSelector||S.y,o=e.scheduler):void 0===r||(0,I.K)(r)?(s=e,a=S.y,o=r):(s=e,a=r),new i.y(function(e){var i=s;if(o)return o.schedule(X,0,{subscriber:e,iterate:n,condition:t,resultSelector:a,state:i});for(;;){if(t){var r=void 0;try{r=t(i)}catch(c){return void e.error(c)}if(!r){e.complete();break}}var l=void 0;try{l=a(i)}catch(c){return void e.error(c)}if(e.next(l),e.closed)break;try{i=n(i)}catch(c){return void e.error(c)}}})}function X(e){var t=e.subscriber,n=e.condition;if(!t.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(o){return void t.error(o)}else e.needIterate=!0;if(n){var i;try{i=n(e.state)}catch(o){return void t.error(o)}if(!i)return void t.complete();if(t.closed)return}var r;try{r=e.resultSelector(e.state)}catch(o){return void t.error(o)}if(!t.closed&&(t.next(r),!t.closed))return this.schedule(e)}}function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H.E,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:H.E;return(0,U.P)(function(){return e()?t:n})}var $=n(57434),ee=n(55371),te=new i.y(w.Z);function ne(){return te}var ie=n(43161);function re(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return H.E;var r=t[0],o=t.slice(1);return 1===t.length&&(0,P.k)(r)?re.apply(void 0,(0,M.Z)(r)):new i.y(function(e){var t=function(){return e.add(re.apply(void 0,(0,M.Z)(o)).subscribe(e))};return(0,J.D)(r).subscribe({next:function(t){e.next(t)},error:t,complete:t})})}function oe(e,t){return new i.y(t?function(n){var i=Object.keys(e),r=new v.w;return r.add(t.schedule(ae,0,{keys:i,index:0,subscriber:n,subscription:r,obj:e})),r}:function(t){for(var n=Object.keys(e),i=0;i<n.length&&!t.closed;i++){var r=n[i];e.hasOwnProperty(r)&&t.next([r,e[r]])}t.complete()})}function ae(e){var t=e.keys,n=e.index,i=e.subscriber,r=e.subscription,o=e.obj;if(!i.closed)if(n<t.length){var a=t[n];i.next([a,o[a]]),r.add(this.schedule({keys:t,index:n+1,subscriber:i,subscription:r,obj:o}))}else i.complete()}var se=n(59849),le=n(20735),ce=n(58780);function ue(e,t,n){return[(0,ce.h)(t,n)(new i.y((0,le.s)(e))),(0,ce.h)((0,se.f)(t,n))(new i.y((0,le.s)(e)))]}var de=n(31695),he=n(10961),pe=n(11363),fe=n(5041);function me(e,t){return new i.y(function(n){var i,r;try{i=e()}catch(a){return void n.error(a)}try{r=t(i)}catch(a){return void n.error(a)}var o=(r?(0,J.D)(r):H.E).subscribe(n);return function(){o.unsubscribe(),i&&i.unsubscribe()}})}var ge=n(43008),ve=n(77493),ye=n(10817)},37294:function(e,t,n){"use strict";n.r(t),n.d(t,{AjaxError:function(){return b.iM},AjaxObservable:function(){return b.i6},AjaxResponse:function(){return b.vD},AjaxSubscriber:function(){return b.de},AjaxTimeoutError:function(){return b.cw},AnonymousSubject:function(){return s.ug},ArgumentOutOfRangeError:function(){return P.W},CombineLatestOperator:function(){return S.Ms},EmptyError:function(){return I.K},GroupedObservable:function(){return A.T},Immediate:function(){return q.H},InnerSubscriber:function(){return r.d},ObjectUnsubscribedError:function(){return N.N},OuterSubscriber:function(){return o.L},Scheduler:function(){return a.b},SubjectSubscription:function(){return l.W},SubscribeOnObservable:function(){return C.e},Subscriber:function(){return c.L},TimeInterval:function(){return T.R},TimeoutError:function(){return D.W},Timestamp:function(){return k.E},UnsubscriptionError:function(){return R.B},WebSocketSubject:function(){return w.p},ajax:function(){return y.h},ajaxDelete:function(){return b._c},ajaxGet:function(){return b.Ck},ajaxGetJSON:function(){return b.uX},ajaxPatch:function(){return b.YB},ajaxPost:function(){return b.tB},ajaxPut:function(){return b.Vk},applyMixins:function(){return L.e},config:function(){return i.v},defaultThrottleConfig:function(){return Z.d},dispatch:function(){return x.W},errorObject:function(){return F},fromIterable:function(){return g},fromPromise:function(){return p},hostReportError:function(){return B.z},identity:function(){return j.y},isArray:function(){return z.k},isArrayLike:function(){return U.z},isDate:function(){return H.J},isFunction:function(){return Y.m},isIterable:function(){return J.T},isNumeric:function(){return G.k},isObject:function(){return W.K},isObservable:function(){return V.c},isPromise:function(){return Q.t},isScheduler:function(){return X.K},iterator:function(){return O.hZ},noop:function(){return K.Z},not:function(){return $.f},observable:function(){return E.L},pipe:function(){return ee.z},root:function(){return te.J},rxSubscriber:function(){return M.b},subscribeTo:function(){return ne.s},subscribeToArray:function(){return ie.V},subscribeToIterable:function(){return f.u},subscribeToObservable:function(){return re.h},subscribeToPromise:function(){return d.A},subscribeToResult:function(){return oe.D},toSubscriber:function(){return ae.Y},tryCatch:function(){return le},webSocket:function(){return _.j}});var i=n(10817),r=n(22320),o=n(7283),a=n(67801),s=n(68707),l=n(18480),c=n(39874),u=n(89797),d=n(56112),h=n(10498);function p(e,t){return t?(0,h.c)(e,t):new u.y((0,d.A)(e))}var f=n(49089),m=n(60612);function g(e,t){if(!e)throw new Error("Iterable cannot be null");return t?(0,m.Q)(e,t):new u.y((0,f.u)(e))}var v,y=n(30437),_=n(99298),b=n(51361),w=n(46095),S=n(81370),x=n(10961),C=n(18613),k=n(63706),T=n(73445),A=n(86072),Z=n(243),M=n(79542),O=n(81695),E=n(57694),P=n(9855),I=n(64646),q=n(96421),N=n(1696),D=n(98691),R=n(66351),L=n(2808),F={e:{}},B=n(82009),j=n(57070),z=n(78985),U=n(30621),H=n(88972),Y=n(20684),J=n(2762),G=n(11705),W=n(64902),V=n(19104),Q=n(36514),X=n(91299),K=n(66029),$=n(59849),ee=n(96194),te=n(44962),ne=n(20735),ie=n(22312),re=n(71414),oe=n(61454),ae=n(3410);function se(){F.e=void 0;try{return v.apply(this,arguments)}catch(e){return F.e=e,F}finally{v=void 0}}function le(e){return v=e,se}},3435:function(e,t,n){"use strict";n.d(t,{c:function(){return d}});var i=n(61680),r=n(11254),o=n(51751),a=n(12558),s=n(49843),l=n(37859),c=n(68707),u=n(5051),d=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;return(0,i.Z)(this,n),(e=t.apply(this,arguments)).value=null,e.hasNext=!1,e.hasCompleted=!1,e}return(0,r.Z)(n,[{key:"_subscribe",value:function(e){return this.hasError?(e.error(this.thrownError),u.w.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),u.w.EMPTY):(0,o.Z)((0,a.Z)(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||(0,o.Z)((0,a.Z)(n.prototype),"error",this).call(this,e)}},{key:"complete",value:function(){this.hasCompleted=!0,this.hasNext&&(0,o.Z)((0,a.Z)(n.prototype),"next",this).call(this,this.value),(0,o.Z)((0,a.Z)(n.prototype),"complete",this).call(this)}}]),n}(c.xQ)},90838:function(e,t,n){"use strict";n.d(t,{X:function(){return d}});var i=n(61680),r=n(11254),o=n(51751),a=n(12558),s=n(49843),l=n(37859),c=n(68707),u=n(1696),d=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e){var r;return(0,i.Z)(this,n),(r=t.call(this))._value=e,r}return(0,r.Z)(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=(0,o.Z)((0,a.Z)(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.N;return this._value}},{key:"next",value:function(e){(0,o.Z)((0,a.Z)(n.prototype),"next",this).call(this,this._value=e)}}]),n}(c.xQ)},22320:function(e,t,n){"use strict";n.d(t,{d:function(){return s}});var i=n(61680),r=n(11254),o=n(49843),a=n(37859),s=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,r,o){var a;return(0,i.Z)(this,n),(a=t.call(this)).parent=e,a.outerValue=r,a.outerIndex=o,a.index=0,a}return(0,r.Z)(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(39874).L)},80286:function(e,t,n){"use strict";n.d(t,{W:function(){return l},P:function(){return c}});var i=n(61680),r=n(11254),o=n(93487),a=n(43161),s=n(11363),l=function(e){return e.NEXT="N",e.ERROR="E",e.COMPLETE="C",e}({}),c=function(){var e=function(){function e(t,n,r){(0,i.Z)(this,e),this.kind=t,this.value=n,this.error=r,this.hasValue="N"===t}return(0,r.Z)(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(0,a.of)(this.value);case"E":return(0,s._)(this.error);case"C":return(0,o.c)()}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}()},89797:function(e,t,n){"use strict";n.d(t,{y:function(){return u}});var i=n(61680),r=n(11254),o=n(20006),a=n(3410),s=n(57694),l=n(96194),c=n(10817),u=function(){var e=function(){function e(t){(0,i.Z)(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return(0,r.Z)(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,r=(0,a.Y)(e,t,n);if(r.add(i?i.call(r,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),c.v.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){c.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),(0,o._)(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=d(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:s.L,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:(0,l.U)(t)(this)}},{key:"toPromise",value:function(e){var t=this;return new(e=d(e))(function(e,n){var i;t.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})}}]),e}();return e.create=function(t){return new e(t)},e}();function d(e){if(e||(e=c.v.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},88944:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var i=n(10817),r=n(82009),o={closed:!0,next:function(e){},error:function(e){if(i.v.useDeprecatedSynchronousErrorHandling)throw e;(0,r.z)(e)},complete:function(){}}},7283:function(e,t,n){"use strict";n.d(t,{L:function(){return s}});var i=n(61680),r=n(11254),o=n(49843),a=n(37859),s=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(n(39874).L)},82667:function(e,t,n){"use strict";n.d(t,{t:function(){return m}});var i=n(61680),r=n(11254),o=n(51751),a=n(12558),s=n(49843),l=n(37859),c=n(68707),u=n(60641),d=n(5051),h=n(25110),p=n(1696),f=n(18480),m=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,a=arguments.length>2?arguments[2]:void 0;return(0,i.Z)(this,n),(e=t.call(this)).scheduler=a,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=r<1?1:r,e._windowTime=o<1?1:o,o===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return(0,r.Z)(n,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}(0,o.Z)((0,a.Z)(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new g(this._getNow(),e)),this._trimBufferThenGetEvents()),(0,o.Z)((0,a.Z)(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new p.N;if(this.isStopped||this.hasError?t=d.w.EMPTY:(this.observers.push(e),t=new f.W(this,e)),r&&e.add(e=new h.ht(e,r)),n)for(var a=0;a<o&&!e.closed;a++)e.next(i[a]);else for(var s=0;s<o&&!e.closed;s++)e.next(i[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||u.c).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(e-i[o].time<n);)o++;return r>t&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i}}]),n}(c.xQ),g=function e(t,n){(0,i.Z)(this,e),this.time=t,this.value=n}},67801:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var i=n(61680),r=n(11254),o=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;(0,i.Z)(this,e),this.SchedulerAction=t,this.now=n}return(0,r.Z)(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}()},68707:function(e,t,n){"use strict";n.d(t,{Yc:function(){return m},xQ:function(){return g},ug:function(){return v}});var i=n(11254),r=n(51751),o=n(12558),a=n(61680),s=n(49843),l=n(37859),c=n(89797),u=n(39874),d=n(5051),h=n(1696),p=n(18480),f=n(79542),m=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e){var i;return(0,a.Z)(this,n),(i=t.call(this,e)).destination=e,i}return n}(u.L),g=function(){var e=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;return(0,a.Z)(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return(0,i.Z)(n,[{key:f.b,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 h.N;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)}},{key:"error",value:function(e){if(this.closed)throw new h.N;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new h.N;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new h.N;return(0,r.Z)((0,o.Z)(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new h.N;return this.hasError?(e.error(this.thrownError),d.w.EMPTY):this.isStopped?(e.complete(),d.w.EMPTY):(this.observers.push(e),new p.W(this,e))}},{key:"asObservable",value:function(){var e=new c.y;return e.source=this,e}}]),n}(c.y);return e.create=function(e,t){return new v(e,t)},e}(),v=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i){var r;return(0,a.Z)(this,n),(r=t.call(this)).destination=e,r.source=i,r}return(0,i.Z)(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):d.w.EMPTY}}]),n}(g)},18480:function(e,t,n){"use strict";n.d(t,{W:function(){return s}});var i=n(61680),r=n(11254),o=n(49843),a=n(37859),s=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,r){var o;return(0,i.Z)(this,n),(o=t.call(this)).subject=e,o.subscriber=r,o.closed=!1,o}return(0,r.Z)(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(5051).w)},39874:function(e,t,n){"use strict";n.d(t,{L:function(){return g}});var i=n(61680),r=n(11254),o=n(3574),a=n(51751),s=n(12558),l=n(49843),c=n(37859),u=n(20684),d=n(88944),h=n(5051),p=n(79542),f=n(10817),m=n(82009),g=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,r,a){var s;switch((0,i.Z)(this,n),(s=t.call(this)).syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=d.c;break;case 1:if(!e){s.destination=d.c;break}if("object"==typeof e){e instanceof n?(s.syncErrorThrowable=e.syncErrorThrowable,s.destination=e,e.add((0,o.Z)(s))):(s.syncErrorThrowable=!0,s.destination=new v((0,o.Z)(s),e));break}default:s.syncErrorThrowable=!0,s.destination=new v((0,o.Z)(s),e,r,a)}return s}return(0,r.Z)(n,[{key:p.b,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,(0,a.Z)((0,s.Z)(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,i){var r=new n(e,t,i);return r.syncErrorThrowable=!1,r}}]),n}(h.w),v=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,r,a,s){var l,c;(0,i.Z)(this,n),(l=t.call(this))._parentSubscriber=e;var h=(0,o.Z)(l);return(0,u.m)(r)?c=r:r&&(c=r.next,a=r.error,s=r.complete,r!==d.c&&(h=Object.create(r),(0,u.m)(h.unsubscribe)&&l.add(h.unsubscribe.bind(h)),h.unsubscribe=l.unsubscribe.bind((0,o.Z)(l)))),l._context=h,l._next=c,l._error=a,l._complete=s,l}return(0,r.Z)(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;f.v.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=f.v.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):(0,m.z)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;(0,m.z)(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)};f.v.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(),f.v.useDeprecatedSynchronousErrorHandling)throw n;(0,m.z)(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!f.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return f.v.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):((0,m.z)(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(g)},5051:function(e,t,n){"use strict";n.d(t,{w:function(){return c}});var i=n(61680),r=n(11254),o=n(78985),a=n(64902),s=n(20684),l=n(66351),c=function(){var e,t=function(){function e(t){(0,i.Z)(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return(0,r.Z)(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var d=0;d<n.length;++d)n[d].remove(this);if((0,s.m)(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(m){t=m instanceof l.B?u(m.errors):[m]}}if((0,o.k)(c))for(var h=-1,p=c.length;++h<p;){var f=c[h];if((0,a.K)(f))try{f.unsubscribe()}catch(m){t=t||[],m instanceof l.B?t=t.concat(u(m.errors)):t.push(m)}}if(t)throw new l.B(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}();return t.EMPTY=((e=new t).closed=!0,e),t}();function u(e){return e.reduce(function(e,t){return e.concat(t instanceof l.B?t.errors:t)},[])}},10817:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var i=!1,r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=e},get useDeprecatedSynchronousErrorHandling(){return i}}},32124:function(e,t,n){"use strict";n.d(t,{IY:function(){return u},Ds:function(){return d},ft:function(){return h}});var i=n(61680),r=n(11254),o=n(49843),a=n(37859),s=n(39874),l=n(89797),c=n(20735),u=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var r;return(0,i.Z)(this,n),(r=t.call(this)).parent=e,r}return(0,r.Z)(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.L),d=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(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.L);function h(e,t){if(!t.closed){if(e instanceof l.y)return e.subscribe(t);var n;try{n=(0,c.s)(e)(t)}catch(i){t.error(i)}return n}}},39887:function(e,t,n){"use strict";n.d(t,{c:function(){return p},N:function(){return f}});var i=n(51751),r=n(12558),o=n(61680),a=n(11254),s=n(49843),l=n(37859),c=n(68707),u=n(89797),d=(n(39874),n(5051)),h=n(26575),p=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return(0,a.Z)(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 d.w).add(this.source.subscribe(new m(this.getSubject(),this))),e.closed&&(this._connection=null,e=d.w.EMPTY)),e}},{key:"refCount",value:function(){return(0,h.x)()(this)}}]),n}(u.y),f=function(){var e=p.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){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this,e)).connectable=i,r}return(0,a.Z)(n,[{key:"_error",value:function(e){this._unsubscribe(),(0,i.Z)((0,r.Z)(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),(0,i.Z)((0,r.Z)(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}(c.Yc)},18613:function(e,t,n){"use strict";n.d(t,{e:function(){return u}});var i=n(61680),r=n(11254),o=n(49843),a=n(37859),s=n(89797),l=n(8285),c=n(11705),u=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.e;return(0,i.Z)(this,n),(r=t.call(this)).source=e,r.delayTime=o,r.scheduler=a,(!(0,c.k)(o)||o<0)&&(r.delayTime=0),a&&"function"==typeof a.schedule||(r.scheduler=l.e),r}return(0,r.Z)(n,[{key:"_subscribe",value:function(e){return this.scheduler.schedule(n.dispatch,this.delayTime,{source:this.source,subscriber:e})}}],[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.e;return new n(e,t,i)}},{key:"dispatch",value:function(e){return this.add(e.source.subscribe(e.subscriber))}}]),n}(s.y)},81370:function(e,t,n){"use strict";n.d(t,{aj:function(){return p},Ms:function(){return f}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(91299),l=n(78985),c=n(7283),u=n(61454),d=n(80503),h={};function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=void 0,r=void 0;return(0,s.K)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&(0,l.k)(t[0])&&(t=t[0]),(0,d.n)(t,r).lift(new f(i))}var f=function(){function e(t){(0,o.Z)(this,e),this.resultSelector=t}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new m(e,this.resultSelector))}}]),e}(),m=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this,e)).resultSelector=i,r.active=0,r.values=[],r.observables=[],r}return(0,a.Z)(n,[{key:"_next",value:function(e){this.values.push(h),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++)this.add((0,u.D)(this,e[n],void 0,n))}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n){var i=this.values,r=this.toRespond?i[n]===h?--this.toRespond:this.toRespond:0;i[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(c.L)},60131:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var i=n(43161),r=n(95416);function o(){return(0,r.u)()(i.of.apply(void 0,arguments))}},4499:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var i=n(89797),r=n(61493),o=n(93487);function a(e){return new i.y(function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?(0,r.D)(n):(0,o.c)()).subscribe(t)})}},51361:function(e,t,n){"use strict";n.d(t,{Ck:function(){return h},tB:function(){return p},_c:function(){return f},Vk:function(){return m},YB:function(){return g},uX:function(){return y},i6:function(){return _},de:function(){return b},vD:function(){return w},iM:function(){return S},cw:function(){return C}});var i=n(51751),r=n(12558),o=n(61680),a=n(11254),s=n(49843),l=n(37859),c=n(44962),u=n(89797),d=n(39874);function h(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 f(e,t){return new _({method:"DELETE",url:e,headers:t})}function m(e,t,n){return new _({method:"PUT",url:e,body:t,headers:n})}function g(e,t,n){return new _({method:"PATCH",url:e,body:t,headers:n})}var v=(0,n(85639).U)(function(e,t){return e.response});function y(e,t){return v(new _({method:"GET",url:e,responseType:"json",headers:t}))}var _=function(){var e=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e){var i;(0,o.Z)(this,n),i=t.call(this);var r={async:!0,createXHR:function(){return this.crossDomain?function(){if(c.J.XMLHttpRequest)return new c.J.XMLHttpRequest;if(c.J.XDomainRequest)return new c.J.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(c.J.XMLHttpRequest)return new c.J.XMLHttpRequest;var e;try{for(var t=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(new c.J.ActiveXObject(e=t[n]))break}catch(i){}return new c.J.ActiveXObject(e)}catch(i){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)r.url=e;else for(var a in e)e.hasOwnProperty(a)&&(r[a]=e[a]);return i.request=r,i}return(0,a.Z)(n,[{key:"_subscribe",value:function(e){return new b(e,this.request)}}]),n}(u.y);return e.create=function(){var t=function(t){return new e(t)};return t.get=h,t.post=p,t.delete=f,t.put=m,t.patch=g,t.getJSON=y,t}(),e}(),b=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i){var r;(0,o.Z)(this,n),(r=t.call(this,e)).request=i,r.done=!1;var a=i.headers=i.headers||{};return i.crossDomain||r.getHeader(a,"X-Requested-With")||(a["X-Requested-With"]="XMLHttpRequest"),r.getHeader(a,"Content-Type")||c.J.FormData&&i.body instanceof c.J.FormData||void 0===i.body||(a["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),i.body=r.serializeBody(i.body,r.getHeader(i.headers,"Content-Type")),r.send(),r}return(0,a.Z)(n,[{key:"next",value:function(e){this.done=!0;var t,n=this.xhr,i=this.request,r=this.destination;try{t=new w(e,n,i)}catch(o){return r.error(o)}r.next(t)}},{key:"send",value:function(){var e=this.request,t=this.request,n=t.user,i=t.method,r=t.url,o=t.async,a=t.password,s=t.headers,l=t.body;try{var c=this.xhr=e.createXHR();this.setupEvents(c,e),n?c.open(i,r,o,n,a):c.open(i,r,o),o&&(c.timeout=e.timeout,c.responseType=e.responseType),"withCredentials"in c&&(c.withCredentials=!!e.withCredentials),this.setHeaders(c,s),l?c.send(l):c.send()}catch(u){this.error(u)}}},{key:"serializeBody",value:function(e,t){if(!e||"string"==typeof e)return e;if(c.J.FormData&&e instanceof c.J.FormData)return e;if(t){var n=t.indexOf(";");-1!==n&&(t=t.substring(0,n))}switch(t){case"application/x-www-form-urlencoded":return Object.keys(e).map(function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))}).join("&");case"application/json":return JSON.stringify(e);default:return e}}},{key:"setHeaders",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setRequestHeader(n,t[n])}},{key:"getHeader",value:function(e,t){for(var n in e)if(n.toLowerCase()===t.toLowerCase())return e[n]}},{key:"setupEvents",value:function(e,t){var n,i,r=t.progressSubscriber;function o(e){var t,n=o.subscriber,i=o.progressSubscriber,r=o.request;i&&i.error(e);try{t=new C(this,r)}catch(a){t=a}n.error(t)}function a(e){}function s(e){var t=s.subscriber,n=s.progressSubscriber,i=s.request;if(4===this.readyState){var r=1223===this.status?204:this.status;if(0===r&&(r=("text"===this.responseType?this.response||this.responseText:this.response)?200:0),r<400)n&&n.complete(),t.next(e),t.complete();else{var o;n&&n.error(e);try{o=new S("ajax error "+r,this,i)}catch(a){o=a}t.error(o)}}}e.ontimeout=o,o.request=t,o.subscriber=this,o.progressSubscriber=r,e.upload&&"withCredentials"in e&&(r&&(n=function(e){n.progressSubscriber.next(e)},c.J.XDomainRequest?e.onprogress=n:e.upload.onprogress=n,n.progressSubscriber=r),e.onerror=i=function(e){var t,n=i.progressSubscriber,r=i.subscriber,o=i.request;n&&n.error(e);try{t=new S("ajax error",this,o)}catch(a){t=a}r.error(t)},i.request=t,i.subscriber=this,i.progressSubscriber=r),e.onreadystatechange=a,a.subscriber=this,a.progressSubscriber=r,a.request=t,e.onload=s,s.subscriber=this,s.progressSubscriber=r,s.request=t}},{key:"unsubscribe",value:function(){var e=this.xhr;!this.done&&e&&4!==e.readyState&&"function"==typeof e.abort&&e.abort(),(0,i.Z)((0,r.Z)(n.prototype),"unsubscribe",this).call(this)}}]),n}(d.L),w=function e(t,n,i){(0,o.Z)(this,e),this.originalEvent=t,this.xhr=n,this.request=i,this.status=n.status,this.responseType=n.responseType||i.responseType,this.response=x(this.responseType,n)},S=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=x(this.responseType,t),this}return e.prototype=Object.create(Error.prototype),e}();function x(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 C=function(e,t){return S.call(this,"ajax timeout",e,t),this.name="AjaxTimeoutError",this}},46095:function(e,t,n){"use strict";n.d(t,{p:function(){return m}});var i=n(61680),r=n(11254),o=n(51751),a=n(12558),s=n(49843),l=n(37859),c=n(68707),u=n(39874),d=n(89797),h=n(5051),p=n(82667),f={url:"",deserializer:function(e){return JSON.parse(e.data)},serializer:function(e){return JSON.stringify(e)}},m=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,r){var o;if((0,i.Z)(this,n),o=t.call(this),e instanceof d.y)o.destination=r,o.source=e;else{var a=o._config=Object.assign({},f);if(o._output=new c.xQ,"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 p.t}return o}return(0,r.Z)(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 p.t),this._output=new c.xQ}},{key:"multiplex",value:function(e,t,n){var i=this;return new d.y(function(r){try{i.next(e())}catch(a){r.error(a)}var o=i.subscribe(function(e){try{n(e)&&r.next(e)}catch(a){r.error(a)}},function(e){return r.error(e)},function(){return r.complete()});return function(){try{i.next(t())}catch(a){r.error(a)}o.unsubscribe()}})}},{key:"_connectSocket",value:function(){var e=this,t=this._config,n=t.WebSocketCtor,i=t.protocol,r=t.url,o=t.binaryType,a=this._output,s=null;try{s=i?new n(r,i):new n(r),this._socket=s,o&&(this._socket.binaryType=o)}catch(c){return void a.error(c)}var l=new h.w(function(){e._socket=null,s&&1===s.readyState&&s.close()});s.onopen=function(t){if(!e._socket)return s.close(),void e._resetState();var n=e._config.openObserver;n&&n.next(t);var i=e.destination;e.destination=u.L.create(function(n){if(1===s.readyState)try{s.send((0,e._config.serializer)(n))}catch(t){e.destination.error(t)}},function(t){var n=e._config.closingObserver;n&&n.next(void 0),t&&t.code?s.close(t.code,t.reason):a.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),e._resetState()},function(){var t=e._config.closingObserver;t&&t.next(void 0),s.close(),e._resetState()}),i&&i instanceof p.t&&l.add(i.subscribe(e.destination))},s.onerror=function(t){e._resetState(),a.error(t)},s.onclose=function(t){e._resetState();var n=e._config.closeObserver;n&&n.next(t),t.wasClean?a.complete():a.error(t)},s.onmessage=function(t){try{a.next((0,e._config.deserializer)(t))}catch(n){a.error(n)}}}},{key:"_subscribe",value:function(e){var t=this,n=this.source;return n?n.subscribe(e):(this._socket||this._connectSocket(),this._output.subscribe(e),e.add(function(){var e=t._socket;0===t._output.observers.length&&(e&&1===e.readyState&&e.close(),t._resetState())}),e)}},{key:"unsubscribe",value:function(){var e=this._socket;e&&1===e.readyState&&e.close(),this._resetState(),(0,o.Z)((0,a.Z)(n.prototype),"unsubscribe",this).call(this)}}]),n}(c.ug)},30437:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var i=n(51361),r=function(){return i.i6.create}()},99298:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});var i=n(46095);function r(e){return new i.p(e)}},93487:function(e,t,n){"use strict";n.d(t,{E:function(){return r},c:function(){return o}});var i=n(89797),r=new i.y(function(e){return e.complete()});function o(e){return e?function(e){return new i.y(function(t){return e.schedule(function(){return t.complete()})})}(e):r}},91925:function(e,t,n){"use strict";n.d(t,{D:function(){return c}});var i=n(25801),r=n(89797),o=n(78985),a=n(85639),s=n(64902),l=n(61493);function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var r=t[0];if((0,o.k)(r))return u(r,null);if((0,s.K)(r)&&Object.getPrototypeOf(r)===Object.prototype){var l=Object.keys(r);return u(l.map(function(e){return r[e]}),l)}}if("function"==typeof t[t.length-1]){var c=t.pop();return u(t=1===t.length&&(0,o.k)(t[0])?t[0]:t,null).pipe((0,a.U)(function(e){return c.apply(void 0,(0,i.Z)(e))}))}return u(t,null)}function u(e,t){return new r.y(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var c=(0,l.D)(e[s]),u=!1;n.add(c.subscribe({next:function(e){u||(u=!0,a++),r[s]=e},error:function(e){return n.error(e)},complete:function(){++o!==i&&u||(a===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},c=0;c<i;c++)s(c);else n.complete()})}},61493:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var i=n(89797),r=n(20735),o=n(77493);function a(e,t){return t?(0,o.x)(e,t):e instanceof i.y?e:new i.y((0,r.s)(e))}},80503:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var i=n(89797),r=n(22312),o=n(55835);function a(e,t){return t?(0,o.r)(e,t):new i.y((0,r.V)(e))}},33090:function(e,t,n){"use strict";n.d(t,{R:function(){return l}});var i=n(25801),r=n(89797),o=n(78985),a=n(20684),s=n(85639);function l(e,t,n,u){return(0,a.m)(n)&&(u=n,n=void 0),u?l(e,t,n).pipe((0,s.U)(function(e){return(0,o.k)(e)?u.apply(void 0,(0,i.Z)(e)):u(e)})):new r.y(function(i){c(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function c(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}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 l=e;e.addListener(t,n),o=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,d=e.length;u<d;u++)c(e[u],t,n,i,r)}i.add(o)}},57434:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});var i=n(89797),r=n(46813),o=n(11705);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P;return(!(0,o.k)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=r.P),new i.y(function(n){return n.add(t.schedule(s,e,{subscriber:n,counter:0,period:e})),n})}function s(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}},55371:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var i=n(89797),r=n(91299),o=n(65890),a=n(80503);function s(){for(var e=Number.POSITIVE_INFINITY,t=null,n=arguments.length,s=new Array(n),l=0;l<n;l++)s[l]=arguments[l];var c=s[s.length-1];return(0,r.K)(c)?(t=s.pop(),s.length>1&&"number"==typeof s[s.length-1]&&(e=s.pop())):"number"==typeof c&&(e=s.pop()),null===t&&1===s.length&&s[0]instanceof i.y?s[0]:(0,o.J)(e)((0,a.n)(s,t))}},43161:function(e,t,n){"use strict";n.d(t,{of:function(){return a}});var i=n(91299),r=n(80503),o=n(55835);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(0,i.K)(a)?(t.pop(),(0,o.r)(t,a)):(0,r.n)(t)}},31695:function(e,t,n){"use strict";n.d(t,{S3:function(){return d}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(78985),l=n(80503),c=n(7283),u=n(61454);function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){if(!(0,s.k)(t[0]))return t[0];t=t[0]}return(0,l.n)(t,void 0).lift(new h)}var h=function(){function e(){(0,o.Z)(this,e)}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new p(e))}}]),e}(),p=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e){var i;return(0,o.Z)(this,n),(i=t.call(this,e)).hasFirst=!1,i.observables=[],i.subscriptions=[],i}return(0,a.Z)(n,[{key:"_next",value:function(e){this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var i=(0,u.D)(this,e[n],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 i=0;i<this.subscriptions.length;i++)if(i!==n){var r=this.subscriptions[i];r.unsubscribe(),this.remove(r)}this.subscriptions=null}this.destination.next(t)}}]),n}(c.L)},10961:function(e,t,n){"use strict";n.d(t,{w:function(){return r},W:function(){return o}});var i=n(89797);function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return new i.y(function(i){void 0===t&&(t=e,e=0);var r=0,a=e;if(n)return n.schedule(o,0,{index:r,count:t,start:e,subscriber:i});for(;;){if(r++>=t){i.complete();break}if(i.next(a++),i.closed)break}})}function o(e){var t=e.start,n=e.index,i=e.subscriber;n>=e.count?i.complete():(i.next(t),i.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}},11363:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});var i=n(89797);function r(e,t){return new i.y(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)}},5041:function(e,t,n){"use strict";n.d(t,{H:function(){return s}});var i=n(89797),r=n(46813),o=n(11705),a=n(91299);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(0,o.k)(t)?s=Number(t)<1?1:Number(t):(0,a.K)(t)&&(n=t),(0,a.K)(n)||(n=r.P),new i.y(function(t){var i=(0,o.k)(e)?e:+e-n.now();return n.schedule(l,i,{index:0,period:s,subscriber:t})})}function l(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}},43008:function(e,t,n){"use strict";n.d(t,{$R:function(){return h},mx:function(){return p}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(80503),l=n(78985),c=n(39874),u=n(81695),d=n(32124);function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return"function"==typeof i&&t.pop(),(0,s.n)(t,void 0).lift(new p(i))}var p=function(){function e(t){(0,o.Z)(this,e),this.resultSelector=t}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new f(e,this.resultSelector))}}]),e}(),f=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r;return arguments.length>2&&void 0!==arguments[2]||Object.create(null),(0,o.Z)(this,n),(r=t.call(this,e)).resultSelector=i,r.iterators=[],r.active=0,r.resultSelector="function"==typeof i?i:void 0,r}return(0,a.Z)(n,[{key:"_next",value:function(e){var t=this.iterators;(0,l.k)(e)?t.push(new g(e)):t.push("function"==typeof e[u.hZ]?new m(e[u.hZ]()):new v(this.destination,this,e))}},{key:"_complete",value:function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var n=0;n<t;n++){var i=e[n];i.stillUnsubscribed?this.destination.add(i.subscribe()):this.active--}}else this.destination.complete()}},{key:"notifyInactive",value:function(){this.active--,0===this.active&&this.destination.complete()}},{key:"checkIterators",value:function(){for(var e=this.iterators,t=e.length,n=this.destination,i=0;i<t;i++){var r=e[i];if("function"==typeof r.hasValue&&!r.hasValue())return}for(var o=!1,a=[],s=0;s<t;s++){var l=e[s],c=l.next();if(l.hasCompleted()&&(o=!0),c.done)return void n.complete();a.push(c.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}(c.L),m=function(){function e(t){(0,o.Z)(this,e),this.iterator=t,this.nextResult=t.next()}return(0,a.Z)(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){(0,o.Z)(this,e),this.array=t,this.index=0,this.length=0,this.length=t.length}return(0,a.Z)(e,[{key:u.hZ,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){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i,r){var a;return(0,o.Z)(this,n),(a=t.call(this,e)).parent=i,a.observable=r,a.stillUnsubscribed=!0,a.buffer=[],a.isComplete=!1,a}return(0,a.Z)(n,[{key:u.hZ,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(0,d.ft)(this.observable,new d.IY(this))}}]),n}(d.Ds)},67494:function(e,t,n){"use strict";n.d(t,{U:function(){return l}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(32124);function l(e){return function(t){return t.lift(new c(e))}}var c=function(){function e(t){(0,o.Z)(this,e),this.durationSelector=t}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.durationSelector))}}]),e}(),u=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this,e)).durationSelector=i,r.hasValue=!1,r}return(0,a.Z)(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(i){return this.destination.error(i)}var n=(0,s.ft)(t,new s.IY(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.Ds)},54562:function(e,t,n){"use strict";n.d(t,{e:function(){return a}});var i=n(46813),r=n(67494),o=n(5041);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.P;return(0,r.U)(function(){return(0,o.H)(e,t)})}},13426:function(e,t,n){"use strict";n.d(t,{K:function(){return u}});var i=n(51751),r=n(12558),o=n(49843),a=n(37859),s=n(61680),l=n(11254),c=n(32124);function u(e){return function(t){var n=new d(e),i=t.lift(n);return n.caught=i}}var d=function(){function e(t){(0,s.Z)(this,e),this.selector=t}return(0,l.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.selector,this.caught))}}]),e}(),h=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r){var o;return(0,s.Z)(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return(0,l.Z)(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(s){return void(0,i.Z)((0,r.Z)(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var o=new c.IY(this);this.add(o);var a=(0,c.ft)(t,o);a!==o&&this.add(a)}}}]),n}(c.Ds)},95416:function(e,t,n){"use strict";n.d(t,{u:function(){return r}});var i=n(65890);function r(){return(0,i.J)(1)}},38575:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var i=n(35135);function r(e,t){return(0,i.zg)(e,t,1)}},75398:function(e,t,n){"use strict";n.d(t,{Q:function(){return l}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(39874);function l(e){return function(t){return t.lift(new c(e,t))}}var c=function(){function e(t,n){(0,o.Z)(this,e),this.predicate=t,this.source=n}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.predicate,this.source))}}]),e}(),u=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i,r){var a;return(0,o.Z)(this,n),(a=t.call(this,e)).predicate=i,a.source=r,a.count=0,a.index=0,a}return(0,a.Z)(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.L)},57263:function(e,t,n){"use strict";n.d(t,{b:function(){return c}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(39874),l=n(46813);function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.P;return function(n){return n.lift(new u(e,t))}}var u=function(){function e(t,n){(0,o.Z)(this,e),this.dueTime=t,this.scheduler=n}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new d(e,this.dueTime,this.scheduler))}}]),e}(),d=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i,r){var a;return(0,o.Z)(this,n),(a=t.call(this,e)).dueTime=i,a.scheduler=r,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return(0,a.Z)(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(h,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.L);function h(e){e.debouncedNext()}},34235:function(e,t,n){"use strict";n.d(t,{d:function(){return l}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(39874);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new c(e))}}var c=function(){function e(t){(0,o.Z)(this,e),this.defaultValue=t}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.defaultValue))}}]),e}(),u=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return(0,a.Z)(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.L)},86004:function(e,t,n){"use strict";n.d(t,{g:function(){return d}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(46813),l=n(88972),c=n(39874),u=n(80286);function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.P,n=(0,l.J)(e),i=n?+e-t.now():Math.abs(e);return function(e){return e.lift(new h(i,t))}}var h=function(){function e(t,n){(0,o.Z)(this,e),this.delay=t,this.scheduler=n}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new p(e,this.delay,this.scheduler))}}]),e}(),p=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i,r){var a;return(0,o.Z)(this,n),(a=t.call(this,e)).delay=i,a.scheduler=r,a.queue=[],a.active=!1,a.errored=!1,a}return(0,a.Z)(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 f(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(u.P.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.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(c.L),f=function e(t,n){(0,o.Z)(this,e),this.time=t,this.notification=n}},76161:function(e,t,n){"use strict";n.d(t,{x:function(){return l}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(39874);function l(e,t){return function(n){return n.lift(new c(e,t))}}var c=function(){function e(t,n){(0,o.Z)(this,e),this.compare=t,this.keySelector=n}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.compare,this.keySelector))}}]),e}(),u=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i,r){var a;return(0,o.Z)(this,n),(a=t.call(this,e)).keySelector=r,a.hasKey=!1,"function"==typeof i&&(a.compare=i),a}return(0,a.Z)(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(s.L)},58780:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(39874);function l(e,t){return function(n){return n.lift(new c(e,t))}}var c=function(){function e(t,n){(0,o.Z)(this,e),this.predicate=t,this.thisArg=n}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.predicate,this.thisArg))}}]),e}(),u=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i,r){var a;return(0,o.Z)(this,n),(a=t.call(this,e)).predicate=i,a.thisArg=r,a.count=0,a}return(0,a.Z)(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.L)},59803:function(e,t,n){"use strict";n.d(t,{x:function(){return c}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(39874),l=n(5051);function c(e){return function(t){return t.lift(new u(e))}}var u=function(){function e(t){(0,o.Z)(this,e),this.callback=t}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new d(e,this.callback))}}]),e}(),d=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this,e)).add(new l.w(i)),r}return n}(s.L)},64233:function(e,t,n){"use strict";n.d(t,{P:function(){return c}});var i=n(64646),r=n(58780),o=n(48359),a=n(34235),s=n(88942),l=n(57070);function c(e,t){var n=arguments.length>=2;return function(c){return c.pipe(e?(0,r.h)(function(t,n){return e(t,n,c)}):l.y,(0,o.q)(1),n?(0,a.d)(t):(0,s.T)(function(){return new i.K}))}}},86072:function(e,t,n){"use strict";n.d(t,{v:function(){return p},T:function(){return v}});var i=n(51751),r=n(12558),o=n(49843),a=n(37859),s=n(61680),l=n(11254),c=n(39874),u=n(5051),d=n(89797),h=n(68707);function p(e,t,n,i){return function(r){return r.lift(new f(e,t,n,i))}}var f=function(){function e(t,n,i,r){(0,s.Z)(this,e),this.keySelector=t,this.elementSelector=n,this.durationSelector=i,this.subjectSelector=r}return(0,l.Z)(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){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r,o,a){var l;return(0,s.Z)(this,n),(l=t.call(this,e)).keySelector=i,l.elementSelector=r,l.durationSelector=o,l.subjectSelector=a,l.groups=null,l.attemptedToUnsubscribe=!1,l.count=0,l}return(0,l.Z)(n,[{key:"_next",value:function(e){var t;try{t=this.keySelector(e)}catch(n){return void this.error(n)}this._group(e,t)}},{key:"_group",value:function(e,t){var n=this.groups;n||(n=this.groups=new Map);var i,r=n.get(t);if(this.elementSelector)try{i=this.elementSelector(e)}catch(s){this.error(s)}else i=e;if(!r){r=this.subjectSelector?this.subjectSelector():new h.xQ,n.set(t,r);var o=new v(t,r,this);if(this.destination.next(o),this.durationSelector){var a;try{a=this.durationSelector(new v(t,r))}catch(s){return void this.error(s)}this.add(a.subscribe(new g(t,r,this)))}}r.closed||r.next(i)}},{key:"_error",value:function(e){var t=this.groups;t&&(t.forEach(function(t,n){t.error(e)}),t.clear()),this.destination.error(e)}},{key:"_complete",value:function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()}},{key:"removeGroup",value:function(e){this.groups.delete(e)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&(0,i.Z)((0,r.Z)(n.prototype),"unsubscribe",this).call(this))}}]),n}(c.L),g=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r){var o;return(0,s.Z)(this,n),(o=t.call(this,i)).key=e,o.group=i,o.parent=r,o}return(0,l.Z)(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}(c.L),v=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,r){var o;return(0,s.Z)(this,n),(o=t.call(this)).key=e,o.groupSubject=i,o.refCountSubscription=r,o}return(0,l.Z)(n,[{key:"_subscribe",value:function(e){var t=new u.w,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&t.add(new y(n)),t.add(i.subscribe(e)),t}}]),n}(d.y),y=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,s.Z)(this,n),(i=t.call(this)).parent=e,e.count++,i}return(0,l.Z)(n,[{key:"unsubscribe",value:function(){var e=this.parent;e.closed||this.closed||((0,i.Z)((0,r.Z)(n.prototype),"unsubscribe",this).call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())}}]),n}(u.w)},99583:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var i=n(64646),r=n(58780),o=n(64397),a=n(88942),s=n(34235),l=n(57070);function c(e,t){var n=arguments.length>=2;return function(c){return c.pipe(e?(0,r.h)(function(t,n){return e(t,n,c)}):l.y,(0,o.h)(1),n?(0,s.d)(t):(0,a.T)(function(){return new i.K}))}}},85639:function(e,t,n){"use strict";n.d(t,{U:function(){return c}});var i=n(3574),r=n(49843),o=n(37859),a=n(61680),s=n(11254),l=n(39874);function c(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){(0,a.Z)(this,e),this.project=t,this.thisArg=n}return(0,s.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new d(e,this.project,this.thisArg))}}]),e}(),d=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e,r,o){var s;return(0,a.Z)(this,n),(s=t.call(this,e)).project=r,s.count=0,s.thisArg=o||(0,i.Z)(s),s}return(0,s.Z)(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}(l.L)},12698:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(39874);function l(e){return function(t){return t.lift(new c(e))}}var c=function(){function e(t){(0,o.Z)(this,e),this.value=t}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.value))}}]),e}(),u=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this,e)).value=i,r}return(0,a.Z)(n,[{key:"_next",value:function(e){this.destination.next(this.value)}}]),n}(s.L)},65890:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var i=n(35135),r=n(57070);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,i.zg)(r.y,e)}},35135:function(e,t,n){"use strict";n.d(t,{zg:function(){return u},VS:function(){return p}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(85639),l=n(61493),c=n(32124);function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(u(function(n,i){return(0,l.D)(e(n,i)).pipe((0,s.U)(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new d(e,n))})}var d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,o.Z)(this,e),this.project=t,this.concurrent=n}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.project,this.concurrent))}}]),e}(),h=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return(0,o.Z)(this,n),(r=t.call(this,e)).project=i,r.concurrent=a,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return(0,a.Z)(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new c.IY(this),n=this.destination;n.add(t);var i=(0,c.ft)(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(c.Ds),p=u},4981:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var i=n(61680),r=n(11254),o=n(39887);function a(e,t){return function(n){var i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new s(i,t));var r=Object.create(n,o.N);return r.source=n,r.subjectFactory=i,r}}var s=function(){function e(t,n){(0,i.Z)(this,e),this.subjectFactory=t,this.selector=n}return(0,r.Z)(e,[{key:"call",value:function(e,t){var n=this.selector,i=this.subjectFactory(),r=n(i).subscribe(e);return r.add(t.subscribe(i)),r}}]),e}()},25110:function(e,t,n){"use strict";n.d(t,{QV:function(){return c},ht:function(){return d}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(39874),l=n(80286);function c(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;(0,o.Z)(this,e),this.scheduler=t,this.delay=n}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new d(e,this.scheduler,this.delay))}}]),e}(),d=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,o.Z)(this,n),(r=t.call(this,e)).scheduler=i,r.delay=a,r}return(0,a.Z)(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new h(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(l.P.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(l.P.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(l.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){e.notification.observe(e.destination),this.unsubscribe()}}]),n}(s.L),h=function e(t,n){(0,o.Z)(this,e),this.notification=t,this.destination=n}},4363:function(e,t,n){"use strict";n.d(t,{G:function(){return l}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(39874);function l(){return function(e){return e.lift(new c)}}var c=function(){function e(){(0,o.Z)(this,e)}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e))}}]),e}(),u=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e){var i;return(0,o.Z)(this,n),(i=t.call(this,e)).hasPrev=!1,i}return(0,a.Z)(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.L)},26575:function(e,t,n){"use strict";n.d(t,{x:function(){return l}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(39874);function l(){return function(e){return e.lift(new c(e))}}var c=function(){function e(t){(0,o.Z)(this,e),this.connectable=t}return(0,a.Z)(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new u(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),u=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this,e)).connectable=i,r}return(0,a.Z)(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(s.L)},31927:function(e,t,n){"use strict";n.d(t,{R:function(){return l}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(39874);function l(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new c(e,t,n))}}var c=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,o.Z)(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),u=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i,r,a){var s;return(0,o.Z)(this,n),(s=t.call(this,e)).accumulator=i,s._seed=r,s.hasSeed=a,s.index=0,s}return(0,a.Z)(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(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(s.L)},16338:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var i=n(4981),r=n(26575),o=n(68707);function a(){return new o.xQ}function s(){return function(e){return(0,r.x)()((0,i.O)(a)(e))}}},61106:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});var i=n(82667);function r(e,t,n){var r;return r=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,r=e.bufferSize,o=void 0===r?Number.POSITIVE_INFINITY:r,a=e.windowTime,s=void 0===a?Number.POSITIVE_INFINITY:a,l=e.refCount,c=e.scheduler,u=0,d=!1,h=!1;return function(e){var r;u++,!t||d?(d=!1,t=new i.t(o,s,c),r=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){d=!0,t.error(e)},complete:function(){h=!0,n=void 0,t.complete()}}),h&&(n=void 0)):r=t.subscribe(this),this.add(function(){u--,r.unsubscribe(),r=void 0,n&&!h&&l&&0===u&&(n.unsubscribe(),n=void 0,t=void 0)})}}(r))}}},18756:function(e,t,n){"use strict";n.d(t,{T:function(){return l}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(39874);function l(e){return function(t){return t.lift(new c(e))}}var c=function(){function e(t){(0,o.Z)(this,e),this.total=t}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.total))}}]),e}(),u=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return(0,a.Z)(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(s.L)},57682:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var i=n(60131),r=n(91299);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(0,r.K)(o)?(t.pop(),function(e){return(0,i.z)(t,e,o)}):function(e){return(0,i.z)(t,e)}}},34487:function(e,t,n){"use strict";n.d(t,{w:function(){return h}});var i=n(51751),r=n(12558),o=n(49843),a=n(37859),s=n(61680),l=n(11254),c=n(85639),u=n(61493),d=n(32124);function h(e,t){return"function"==typeof t?function(n){return n.pipe(h(function(n,i){return(0,u.D)(e(n,i)).pipe((0,c.U)(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new p(e))}}var p=function(){function e(t){(0,s.Z)(this,e),this.project=t}return(0,l.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new f(e,this.project))}}]),e}(),f=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var r;return(0,s.Z)(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return(0,l.Z)(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new d.IY(this),i=this.destination;i.add(n),this.innerSubscription=(0,d.ft)(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||(0,i.Z)((0,r.Z)(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&&(0,i.Z)((0,r.Z)(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),n}(d.Ds)},48359:function(e,t,n){"use strict";n.d(t,{q:function(){return u}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(39874),l=n(9855),c=n(93487);function u(e){return function(t){return 0===e?(0,c.c)():t.lift(new d(e))}}var d=function(){function e(t){if((0,o.Z)(this,e),this.total=t,this.total<0)throw new l.W}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.total))}}]),e}(),h=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return(0,a.Z)(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.L)},64397:function(e,t,n){"use strict";n.d(t,{h:function(){return u}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(39874),l=n(9855),c=n(93487);function u(e){return function(t){return 0===e?(0,c.c)():t.lift(new d(e))}}var d=function(){function e(t){if((0,o.Z)(this,e),this.total=t,this.total<0)throw new l.W}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.total))}}]),e}(),h=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return(0,a.Z)(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=t++%n;e.next(i[o])}e.complete()}}]),n}(s.L)},44213:function(e,t,n){"use strict";n.d(t,{R:function(){return l}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(32124);function l(e){return function(t){return t.lift(new c(e))}}var c=function(){function e(t){(0,o.Z)(this,e),this.notifier=t}return(0,a.Z)(e,[{key:"call",value:function(e,t){var n=new u(e),i=(0,s.ft)(this.notifier,new s.IY(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),u=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e){var i;return(0,o.Z)(this,n),(i=t.call(this,e)).seenValue=!1,i}return(0,a.Z)(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(s.Ds)},49196:function(e,t,n){"use strict";n.d(t,{o:function(){return l}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(39874);function l(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new c(e,t))}}var c=function(){function e(t,n){(0,o.Z)(this,e),this.predicate=t,this.inclusive=n}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.predicate,this.inclusive))}}]),e}(),u=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i,r){var a;return(0,o.Z)(this,n),(a=t.call(this,e)).predicate=i,a.inclusive=r,a.index=0,a}return(0,a.Z)(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(s.L)},59371:function(e,t,n){"use strict";n.d(t,{b:function(){return d}});var i=n(3574),r=n(49843),o=n(37859),a=n(61680),s=n(11254),l=n(39874),c=n(66029),u=n(20684);function d(e,t,n){return function(i){return i.lift(new h(e,t,n))}}var h=function(){function e(t,n,i){(0,a.Z)(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return(0,s.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new p(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),p=function(e){(0,r.Z)(n,e);var t=(0,o.Z)(n);function n(e,r,o,s){var l;return(0,a.Z)(this,n),(l=t.call(this,e))._tapNext=c.Z,l._tapError=c.Z,l._tapComplete=c.Z,l._tapError=o||c.Z,l._tapComplete=s||c.Z,(0,u.m)(r)?(l._context=(0,i.Z)(l),l._tapNext=r):r&&(l._context=r,l._tapNext=r.next||c.Z,l._tapError=r.error||c.Z,l._tapComplete=r.complete||c.Z),l}return(0,s.Z)(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}(l.L)},243:function(e,t,n){"use strict";n.d(t,{d:function(){return l},P:function(){return c}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(32124),l={leading:!0,trailing:!1};function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;return function(n){return n.lift(new u(e,!!t.leading,!!t.trailing))}}var u=function(){function e(t,n,i){(0,o.Z)(this,e),this.durationSelector=t,this.leading=n,this.trailing=i}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new d(e,this.durationSelector,this.leading,this.trailing))}}]),e}(),d=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i,r,a){var s;return(0,o.Z)(this,n),(s=t.call(this,e)).destination=e,s.durationSelector=i,s._leading=r,s._trailing=a,s._hasValue=!1,s}return(0,a.Z)(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=(0,s.ft)(t,new s.IY(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.Ds)},88942:function(e,t,n){"use strict";n.d(t,{T:function(){return c}});var i=n(49843),r=n(37859),o=n(61680),a=n(11254),s=n(64646),l=n(39874);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return function(t){return t.lift(new u(e))}}var u=function(){function e(t){(0,o.Z)(this,e),this.errorFactory=t}return(0,a.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new d(e,this.errorFactory))}}]),e}(),d=function(e){(0,i.Z)(n,e);var t=(0,r.Z)(n);function n(e,i){var r;return(0,o.Z)(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return(0,a.Z)(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}(l.L);function h(){return new s.K}},73445:function(e,t,n){"use strict";n.d(t,{J:function(){return l},R:function(){return c}});var i=n(61680),r=n(46813),o=n(31927),a=n(4499),s=n(85639);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.P;return function(t){return(0,a.P)(function(){return t.pipe((0,o.R)(function(t,n){var i=t.current;return{value:n,current:e.now(),last:i}},{current:e.now(),value:void 0,last:void 0}),(0,s.U)(function(e){return new c(e.value,e.current-e.last)}))})}}var c=function e(t,n){(0,i.Z)(this,e),this.value=t,this.interval=n}},63706:function(e,t,n){"use strict";n.d(t,{A:function(){return a},E:function(){return s}});var i=n(61680),r=n(46813),o=n(85639);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.P;return(0,o.U)(function(t){return new s(t,e.now())})}var s=function e(t,n){(0,i.Z)(this,e),this.value=t,this.timestamp=n}},55835:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var i=n(89797),r=n(5051);function o(e,t){return new i.y(function(n){var i=new r.w,o=0;return i.add(t.schedule(function(){o!==e.length?(n.next(e[o++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},60612:function(e,t,n){"use strict";n.d(t,{Q:function(){return a}});var i=n(89797),r=n(5051),o=n(81695);function a(e,t){if(!e)throw new Error("Iterable cannot be null");return new i.y(function(n){var i,a=new r.w;return a.add(function(){i&&"function"==typeof i.return&&i.return()}),a.add(t.schedule(function(){i=e[o.hZ](),a.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),a})}},10498:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var i=n(89797),r=n(5051);function o(e,t){return new i.y(function(n){var i=new r.w;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}},77493:function(e,t,n){"use strict";n.d(t,{x:function(){return p}});var i=n(89797),r=n(5051),o=n(57694),a=n(10498),s=n(55835),l=n(60612),c=n(19104),u=n(36514),d=n(30621),h=n(2762);function p(e,t){if(null!=e){if((0,c.c)(e))return function(e,t){return new i.y(function(n){var i=new r.w;return i.add(t.schedule(function(){var r=e[o.L]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i})}(e,t);if((0,u.t)(e))return(0,a.c)(e,t);if((0,d.z)(e))return(0,s.r)(e,t);if((0,h.T)(e)||"string"==typeof e)return(0,l.Q)(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}},4065:function(e,t,n){"use strict";n.d(t,{o:function(){return s}});var i=n(61680),r=n(11254),o=n(49843),a=n(37859),s=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,r){var o;return(0,i.Z)(this,n),(o=t.call(this,e,r)).scheduler=e,o.work=r,o.pending=!1,o}return(0,r.Z)(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,r){return(0,i.Z)(this,n),t.call(this)}return(0,r.Z)(n,[{key:"schedule",value:function(e){return this}}]),n}(n(5051).w))},81572:function(e,t,n){"use strict";n.d(t,{v:function(){return d}});var i=n(61680),r=n(11254),o=n(3574),a=n(51751),s=n(12558),l=n(49843),c=n(37859),u=n(67801),d=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.b.now;return(0,i.Z)(this,n),(r=t.call(this,e,function(){return n.delegate&&n.delegate!==(0,o.Z)(r)?n.delegate.now():a()})).actions=[],r.active=!1,r.scheduled=void 0,r}return(0,r.Z)(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):(0,a.Z)((0,s.Z)(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(u.b)},2296:function(e,t,n){"use strict";n.d(t,{y:function(){return d},h:function(){return h}});var i=n(51751),r=n(12558),o=n(61680),a=n(11254),s=n(49843),l=n(37859),c=n(4065),u=n(81572),d=function(){var e=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return(0,o.Z)(this,n),(e=t.call(this,i,function(){return e.frame})).maxFrames=r,e.frame=0,e.index=-1,e}return(0,a.Z)(n,[{key:"flush",value:function(){for(var e,t,n=this.actions,i=this.maxFrames;(t=n[0])&&t.delay<=i&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}}}]),n}(u.v);return e.frameTimeFactor=10,e}(),h=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.index+=1;return(0,o.Z)(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r.index=a,r.active=!0,r.index=e.index=a,r}return(0,a.Z)(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return(0,i.Z)((0,r.Z)(n.prototype),"schedule",this).call(this,e,t);this.active=!1;var o=new n(this.scheduler,this.work);return this.add(o),o.schedule(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=e.frame+i;var r=e.actions;return r.push(this),r.sort(n.sortActions),!0}},{key:"recycleAsyncId",value:function(e,t){}},{key:"_execute",value:function(e,t){if(!0===this.active)return(0,i.Z)((0,r.Z)(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}(c.o)},58172:function(e,t,n){"use strict";n.d(t,{r:function(){return d},Z:function(){return u}});var i=n(61680),r=n(11254),o=n(51751),a=n(12558),s=n(49843),l=n(37859),c=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,r){var o;return(0,i.Z)(this,n),(o=t.call(this,e,r)).scheduler=e,o.work=r,o}return(0,r.Z)(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?(0,o.Z)((0,a.Z)(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return(0,o.Z)((0,a.Z)(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(n(4065).o),u=new(function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(n(81572).v))(c),d=u},8285:function(e,t,n){"use strict";n.d(t,{e:function(){return h},E:function(){return d}});var i=n(61680),r=n(11254),o=n(51751),a=n(12558),s=n(49843),l=n(37859),c=n(96421),u=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,r){var o;return(0,i.Z)(this,n),(o=t.call(this,e,r)).scheduler=e,o.work=r,o}return(0,r.Z)(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?(0,o.Z)((0,a.Z)(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=c.H.setImmediate(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return(0,o.Z)((0,a.Z)(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(c.H.clearImmediate(t),e.scheduled=void 0)}}]),n}(n(4065).o),d=new(function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(n(81572).v))(u),h=d},46813:function(e,t,n){"use strict";n.d(t,{z:function(){return r},P:function(){return o}});var i=n(4065),r=new(n(81572).v)(i.o),o=r},60641:function(e,t,n){"use strict";n.d(t,{c:function(){return d},N:function(){return u}});var i=n(61680),r=n(11254),o=n(51751),a=n(12558),s=n(49843),l=n(37859),c=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,r){var o;return(0,i.Z)(this,n),(o=t.call(this,e,r)).scheduler=e,o.work=r,o}return(0,r.Z)(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?(0,o.Z)((0,a.Z)(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?(0,o.Z)((0,a.Z)(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?(0,o.Z)((0,a.Z)(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(n(4065).o),u=new(function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return n}(n(81572).v))(c),d=u},81695:function(e,t,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,{hZ:function(){return r}});var r=i()},57694:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var i=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},79542:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var i=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},9855:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},64646:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}()},96421:function(e,t,n){"use strict";n.d(t,{H:function(){return s}});var i=1,r=function(){return Promise.resolve()}(),o={};function a(e){return e in o&&(delete o[e],!0)}var s={setImmediate:function(e){var t=i++;return o[t]=!0,r.then(function(){return a(t)&&e()}),t},clearImmediate:function(e){a(e)}}},1696:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},98691:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}()},66351:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});var i=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map(function(e,t){return"".concat(t+1,") ").concat(e.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}()},2808:function(e,t,n){"use strict";function i(e,t){for(var n=0,i=t.length;n<i;n++)for(var r=t[n],o=Object.getOwnPropertyNames(r.prototype),a=0,s=o.length;a<s;a++){var l=o[a];e.prototype[l]=r.prototype[l]}}n.d(t,{e:function(){return i}})},20006:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});var i=n(39874);function r(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof i.L?t:null}return!0}},82009:function(e,t,n){"use strict";function i(e){setTimeout(function(){throw e},0)}n.d(t,{z:function(){return i}})},57070:function(e,t,n){"use strict";function i(e){return e}n.d(t,{y:function(){return i}})},78985:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var i=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}()},30621:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},88972:function(e,t,n){"use strict";function i(e){return e instanceof Date&&!isNaN(+e)}n.d(t,{J:function(){return i}})},20684:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,{m:function(){return i}})},19104:function(e,t,n){"use strict";n.d(t,{c:function(){return r}});var i=n(57694);function r(e){return e&&"function"==typeof e[i.L]}},2762:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var i=n(81695);function r(e){return e&&"function"==typeof e[i.hZ]}},11705:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var i=n(78985);function r(e){return!(0,i.k)(e)&&e-parseFloat(e)+1>=0}},64902:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,{K:function(){return i}})},17504:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var i=n(89797);function r(e){return!!e&&(e instanceof i.y||"function"==typeof e.lift&&"function"==typeof e.subscribe)}},36514:function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,{t:function(){return i}})},91299:function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,{K:function(){return i}})},66029:function(e,t,n){"use strict";function i(){}n.d(t,{Z:function(){return i}})},59849:function(e,t,n){"use strict";function i(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}n.d(t,{f:function(){return i}})},96194:function(e,t,n){"use strict";n.d(t,{z:function(){return r},U:function(){return o}});var i=n(57070);function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(t)}function o(e){return 0===e.length?i.y:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}},44962:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var i="undefined"!=typeof window&&window,r="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o="undefined"!=typeof global&&global,a=i||o||r},20735:function(e,t,n){"use strict";n.d(t,{s:function(){return h}});var i=n(22312),r=n(56112),o=n(49089),a=n(71414),s=n(30621),l=n(36514),c=n(64902),u=n(81695),d=n(57694),h=function(e){if(e&&"function"==typeof e[d.L])return(0,a.h)(e);if((0,s.z)(e))return(0,i.V)(e);if((0,l.t)(e))return(0,r.A)(e);if(e&&"function"==typeof e[u.hZ])return(0,o.u)(e);var t=(0,c.K)(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)}},22312:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var i=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}}},49089:function(e,t,n){"use strict";n.d(t,{u:function(){return r}});var i=n(81695),r=function(e){return function(t){for(var n=e[i.hZ]();;){var r=void 0;try{r=n.next()}catch(o){return t.error(o),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}}},71414:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var i=n(57694),r=function(e){return function(t){var n=e[i.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}}},56112:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(82009),r=function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,i.z),t}}},61454:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var i=n(22320),r=n(20735),o=n(89797);function a(e,t,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new i.d(e,n,a);if(!s.closed)return t instanceof o.y?t.subscribe(s):(0,r.s)(t)(s)}},3410:function(e,t,n){"use strict";n.d(t,{Y:function(){return a}});var i=n(39874),r=n(79542),o=n(88944);function a(e,t,n){if(e){if(e instanceof i.L)return e;if(e[r.b])return e[r.b]()}return e||t||n?new i.L(e,t,n):new i.L(o.c)}},73033:function(e,t,n){"use strict";n.r(t),n.d(t,{audit:function(){return i.U},auditTime:function(){return r.e},buffer:function(){return d},bufferCount:function(){return v},bufferTime:function(){return x},bufferToggle:function(){return I},bufferWhen:function(){return D},catchError:function(){return F.K},combineAll:function(){return j},combineLatest:function(){return Y},concat:function(){return G},concatAll:function(){return W.u},concatMap:function(){return V.b},concatMapTo:function(){return Q},count:function(){return X.Q},debounce:function(){return K},debounceTime:function(){return te.b},defaultIfEmpty:function(){return ne.d},delay:function(){return ie.g},delayWhen:function(){return oe},dematerialize:function(){return ue},distinct:function(){return pe},distinctUntilChanged:function(){return ge.x},distinctUntilKeyChanged:function(){return ve},elementAt:function(){return Se},endWith:function(){return Ce},every:function(){return ke},exhaust:function(){return Ze},exhaustMap:function(){return Pe},expand:function(){return Ne},filter:function(){return _e.h},finalize:function(){return Le.x},find:function(){return Fe},findIndex:function(){return ze},first:function(){return Ue.P},flatMap:function(){return dt.VS},groupBy:function(){return He.v},ignoreElements:function(){return Ye},isEmpty:function(){return We},last:function(){return Xe.Z},map:function(){return Ee.U},mapTo:function(){return Ke.h},materialize:function(){return et},max:function(){return st},merge:function(){return ct},mergeAll:function(){return ut.J},mergeMap:function(){return dt.zg},mergeMapTo:function(){return ht},mergeScan:function(){return pt},min:function(){return gt},multicast:function(){return vt.O},observeOn:function(){return yt.QV},onErrorResumeNext:function(){return _t},pairwise:function(){return St.G},partition:function(){return Ct},pluck:function(){return kt},publish:function(){return Zt},publishBehavior:function(){return Ot},publishLast:function(){return Pt},publishReplay:function(){return qt},race:function(){return Dt},reduce:function(){return at},refCount:function(){return Qt.x},repeat:function(){return Lt},repeatWhen:function(){return jt},retry:function(){return Ht},retryWhen:function(){return Gt},sample:function(){return Xt},sampleTime:function(){return en},scan:function(){return it.R},sequenceEqual:function(){return on},share:function(){return cn.B},shareReplay:function(){return un.d},single:function(){return hn},skip:function(){return mn.T},skipLast:function(){return gn},skipUntil:function(){return _n},skipWhile:function(){return Sn},startWith:function(){return kn.O},subscribeOn:function(){return An},switchAll:function(){return En},switchMap:function(){return Mn.w},switchMapTo:function(){return Pn},take:function(){return we.q},takeLast:function(){return rt.h},takeUntil:function(){return In.R},takeWhile:function(){return qn.o},tap:function(){return Nn.b},throttle:function(){return Dn.P},throttleTime:function(){return Rn},throwIfEmpty:function(){return be.T},timeInterval:function(){return jn.J},timeout:function(){return Wn},timeoutWith:function(){return Hn},timestamp:function(){return Vn.A},toArray:function(){return Xn},window:function(){return Kn},windowCount:function(){return ti},windowTime:function(){return oi},windowToggle:function(){return hi},windowWhen:function(){return mi},withLatestFrom:function(){return yi},zip:function(){return Si},zipAll:function(){return xi}});var i=n(67494),r=n(54562),o=n(3574),a=n(49843),s=n(37859),l=n(61680),c=n(11254),u=n(32124);function d(e){return function(t){return t.lift(new h(e))}}var h=function(){function e(t){(0,l.Z)(this,e),this.closingNotifier=t}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new p(e,this.closingNotifier))}}]),e}(),p=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this,e)).buffer=[],r.add((0,u.ft)(i,new u.IY((0,o.Z)(r)))),r}return(0,c.Z)(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.Ds),f=n(51751),m=n(12558),g=n(39874);function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n){return n.lift(new y(e,t))}}var y=function(){function e(t,n){(0,l.Z)(this,e),this.bufferSize=t,this.startBufferEvery=n,this.subscriberClass=n&&t!==n?b:_}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))}}]),e}(),_=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this,e)).bufferSize=i,r.buffer=[],r}return(0,c.Z)(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),(0,f.Z)((0,m.Z)(n.prototype),"_complete",this).call(this)}}]),n}(g.L),b=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var o;return(0,l.Z)(this,n),(o=t.call(this,e)).bufferSize=i,o.startBufferEvery=r,o.buffers=[],o.count=0,o}return(0,c.Z)(n,[{key:"_next",value:function(e){var t=this.bufferSize,n=this.startBufferEvery,i=this.buffers,r=this.count;this.count++,r%n==0&&i.push([]);for(var o=i.length;o--;){var a=i[o];a.push(e),a.length===t&&(i.splice(o,1),this.destination.next(a))}}},{key:"_complete",value:function(){for(var e=this.buffers,t=this.destination;e.length>0;){var i=e.shift();i.length>0&&t.next(i)}(0,f.Z)((0,m.Z)(n.prototype),"_complete",this).call(this)}}]),n}(g.L),w=n(46813),S=n(91299);function x(e){var t=arguments.length,n=w.P;(0,S.K)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var i=null;t>=2&&(i=arguments[1]);var r=Number.POSITIVE_INFINITY;return t>=3&&(r=arguments[2]),function(t){return t.lift(new C(e,i,r,n))}}var C=function(){function e(t,n,i,r){(0,l.Z)(this,e),this.bufferTimeSpan=t,this.bufferCreationInterval=n,this.maxBufferSize=i,this.scheduler=r}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new T(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}]),e}(),k=function e(){(0,l.Z)(this,e),this.buffer=[]},T=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r,a,s){var c;(0,l.Z)(this,n),(c=t.call(this,e)).bufferTimeSpan=i,c.bufferCreationInterval=r,c.maxBufferSize=a,c.scheduler=s,c.contexts=[];var u=c.openContext();if(c.timespanOnly=null==r||r<0,c.timespanOnly){var d={subscriber:(0,o.Z)(c),context:u,bufferTimeSpan:i};c.add(u.closeAction=s.schedule(A,i,d))}else{var h={subscriber:(0,o.Z)(c),context:u},p={bufferTimeSpan:i,bufferCreationInterval:r,subscriber:(0,o.Z)(c),scheduler:s};c.add(u.closeAction=s.schedule(M,i,h)),c.add(s.schedule(Z,r,p))}return c}return(0,c.Z)(n,[{key:"_next",value:function(e){for(var t,n=this.contexts,i=n.length,r=0;r<i;r++){var o=n[r],a=o.buffer;a.push(e),a.length==this.maxBufferSize&&(t=o)}t&&this.onBufferFull(t)}},{key:"_error",value:function(e){this.contexts.length=0,(0,f.Z)((0,m.Z)(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){for(var e=this.contexts,t=this.destination;e.length>0;){var i=e.shift();t.next(i.buffer)}(0,f.Z)((0,m.Z)(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(A,n,{subscriber:this,context:e,bufferTimeSpan:n}))}}},{key:"openContext",value:function(){var e=new k;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.L);function A(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 Z(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,i=e.subscriber,r=e.scheduler,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(M,n,{subscriber:i,context:o})),this.schedule(e,t))}function M(e){e.subscriber.closeContext(e.context)}var O=n(5051),E=n(61454),P=n(7283);function I(e,t){return function(n){return n.lift(new q(e,t))}}var q=function(){function e(t,n){(0,l.Z)(this,e),this.openings=t,this.closingSelector=n}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new N(e,this.openings,this.closingSelector))}}]),e}(),N=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var a;return(0,l.Z)(this,n),(a=t.call(this,e)).closingSelector=r,a.contexts=[],a.add((0,E.D)((0,o.Z)(a),i)),a}return(0,c.Z)(n,[{key:"_next",value:function(e){for(var t=this.contexts,n=t.length,i=0;i<n;i++)t[i].buffer.push(e)}},{key:"_error",value:function(e){for(var t=this.contexts;t.length>0;){var i=t.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,(0,f.Z)((0,m.Z)(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,(0,f.Z)((0,m.Z)(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 O.w,i={buffer:[],subscription:n};t.push(i);var r=(0,E.D)(this,e,i);!r||r.closed?this.closeBuffer(i):(r.context=i,this.add(r),n.add(r))}}]),n}(P.L);function D(e){return function(t){return t.lift(new R(e))}}var R=function(){function e(t){(0,l.Z)(this,e),this.closingSelector=t}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new L(e,this.closingSelector))}}]),e}(),L=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this,e)).closingSelector=i,r.subscribing=!1,r.openBuffer(),r}return(0,c.Z)(n,[{key:"_next",value:function(e){this.buffer.push(e)}},{key:"_complete",value:function(){var e=this.buffer;e&&this.destination.next(e),(0,f.Z)((0,m.Z)(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 O.w,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add((0,u.ft)(e,new u.IY(this))),this.subscribing=!1}}]),n}(u.Ds),F=n(13426),B=n(81370);function j(e){return function(t){return t.lift(new B.Ms(e))}}var z=n(25801),U=n(78985),H=n(61493);function Y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=null;return"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&(0,U.k)(t[0])&&(t=t[0].slice()),function(e){return e.lift.call((0,H.D)([e].concat((0,z.Z)(t))),new B.Ms(i))}}var J=n(60131);function G(){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(J.z.apply(void 0,[e].concat(t)))}}var W=n(95416),V=n(38575);function Q(e,t){return(0,V.b)(function(){return e},t)}var X=n(75398);function K(e){return function(t){return t.lift(new $(e))}}var $=function(){function e(t){(0,l.Z)(this,e),this.durationSelector=t}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new ee(e,this.durationSelector))}}]),e}(),ee=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this,e)).durationSelector=i,r.hasValue=!1,r}return(0,c.Z)(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=(0,u.ft)(t,new u.IY(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,(0,f.Z)((0,m.Z)(n.prototype),"_next",this).call(this,e)}}}]),n}(u.Ds),te=n(57263),ne=n(34235),ie=n(86004),re=n(89797);function oe(e,t){return t?function(n){return new le(n,t).lift(new ae(e))}:function(t){return t.lift(new ae(e))}}var ae=function(){function e(t){(0,l.Z)(this,e),this.delayDurationSelector=t}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new se(e,this.delayDurationSelector))}}]),e}(),se=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this,e)).delayDurationSelector=i,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return(0,c.Z)(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(e),this.removeSubscription(r),this.tryComplete()}},{key:"notifyError",value:function(e,t){this._error(e)}},{key:"notifyComplete",value:function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()}},{key:"_next",value:function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(i){this.destination.error(i)}}},{key:"_complete",value:function(){this.completed=!0,this.tryComplete(),this.unsubscribe()}},{key:"removeSubscription",value:function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue}},{key:"tryDelay",value:function(e,t){var n=(0,E.D)(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}(P.L),le=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this)).source=e,r.subscriptionDelay=i,r}return(0,c.Z)(n,[{key:"_subscribe",value:function(e){this.subscriptionDelay.subscribe(new ce(e,this.source))}}]),n}(re.y),ce=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this)).parent=e,r.source=i,r.sourceSubscribed=!1,r}return(0,c.Z)(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.L);function ue(){return function(e){return e.lift(new de)}}var de=function(){function e(){(0,l.Z)(this,e)}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new he(e))}}]),e}(),he=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){return(0,l.Z)(this,n),t.call(this,e)}return(0,c.Z)(n,[{key:"_next",value:function(e){e.observe(this.destination)}}]),n}(g.L);function pe(e,t){return function(n){return n.lift(new fe(e,t))}}var fe=function(){function e(t,n){(0,l.Z)(this,e),this.keySelector=t,this.flushes=n}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new me(e,this.keySelector,this.flushes))}}]),e}(),me=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var a;return(0,l.Z)(this,n),(a=t.call(this,e)).keySelector=i,a.values=new Set,r&&a.add((0,u.ft)(r,new u.IY((0,o.Z)(a)))),a}return(0,c.Z)(n,[{key:"notifyNext",value:function(){this.values.clear()}},{key:"notifyError",value:function(e){this._error(e)}},{key:"_next",value:function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)}},{key:"_useKeySelector",value:function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(i){return void n.error(i)}this._finalizeNext(t,e)}},{key:"_finalizeNext",value:function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))}}]),n}(u.Ds),ge=n(76161);function ve(e,t){return(0,ge.x)(function(n,i){return t?t(n[e],i[e]):n[e]===i[e]})}var ye=n(9855),_e=n(58780),be=n(88942),we=n(48359);function Se(e,t){if(e<0)throw new ye.W;var n=arguments.length>=2;return function(i){return i.pipe((0,_e.h)(function(t,n){return n===e}),(0,we.q)(1),n?(0,ne.d)(t):(0,be.T)(function(){return new ye.W}))}}var xe=n(43161);function Ce(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return(0,J.z)(e,xe.of.apply(void 0,t))}}function ke(e,t){return function(n){return n.lift(new Te(e,t,n))}}var Te=function(){function e(t,n,i){(0,l.Z)(this,e),this.predicate=t,this.thisArg=n,this.source=i}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new Ae(e,this.predicate,this.thisArg,this.source))}}]),e}(),Ae=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r,a){var s;return(0,l.Z)(this,n),(s=t.call(this,e)).predicate=i,s.thisArg=r,s.source=a,s.index=0,s.thisArg=r||(0,o.Z)(s),s}return(0,c.Z)(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.L);function Ze(){return function(e){return e.lift(new Me)}}var Me=function(){function e(){(0,l.Z)(this,e)}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new Oe(e))}}]),e}(),Oe=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,l.Z)(this,n),(i=t.call(this,e)).hasCompleted=!1,i.hasSubscription=!1,i}return(0,c.Z)(n,[{key:"_next",value:function(e){this.hasSubscription||(this.hasSubscription=!0,this.add((0,u.ft)(e,new u.IY(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.Ds),Ee=n(85639);function Pe(e,t){return t?function(n){return n.pipe(Pe(function(n,i){return(0,H.D)(e(n,i)).pipe((0,Ee.U)(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new Ie(e))}}var Ie=function(){function e(t){(0,l.Z)(this,e),this.project=t}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new qe(e,this.project))}}]),e}(),qe=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this,e)).project=i,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return(0,c.Z)(n,[{key:"_next",value:function(e){this.hasSubscription||this.tryNext(e)}},{key:"tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new u.IY(this),n=this.destination;n.add(t);var i=(0,u.ft)(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),n}(u.Ds);function Ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,n=arguments.length>2?arguments[2]:void 0;return t=(t||0)<1?Number.POSITIVE_INFINITY:t,function(i){return i.lift(new De(e,t,n))}}var De=function(){function e(t,n,i){(0,l.Z)(this,e),this.project=t,this.concurrent=n,this.scheduler=i}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new Re(e,this.project,this.concurrent,this.scheduler))}}]),e}(),Re=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r,o){var a;return(0,l.Z)(this,n),(a=t.call(this,e)).project=i,a.concurrent=r,a.scheduler=o,a.index=0,a.active=0,a.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(a.buffer=[]),a}return(0,c.Z)(n,[{key:"_next",value:function(e){var t=this.destination;if(t.closed)this._complete();else{var i=this.index++;if(this.active<this.concurrent){t.next(e);try{var r=(0,this.project)(e,i);this.scheduler?this.destination.add(this.scheduler.schedule(n.dispatch,0,{subscriber:this,result:r,value:e,index:i})):this.subscribeToProjection(r,e,i)}catch(o){t.error(o)}}else this.buffer.push(e)}}},{key:"subscribeToProjection",value:function(e,t,n){this.active++,this.destination.add((0,u.ft)(e,new u.IY(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.Ds),Le=n(59803);function Fe(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(n){return n.lift(new Be(e,n,!1,t))}}var Be=function(){function e(t,n,i,r){(0,l.Z)(this,e),this.predicate=t,this.source=n,this.yieldIndex=i,this.thisArg=r}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new je(e,this.predicate,this.source,this.yieldIndex,this.thisArg))}}]),e}(),je=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r,o,a){var s;return(0,l.Z)(this,n),(s=t.call(this,e)).predicate=i,s.source=r,s.yieldIndex=o,s.thisArg=a,s.index=0,s}return(0,c.Z)(n,[{key:"notifyComplete",value:function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()}},{key:"_next",value:function(e){var t=this.predicate,n=this.thisArg,i=this.index++;try{t.call(n||this,e,i,this.source)&&this.notifyComplete(this.yieldIndex?i:e)}catch(r){this.destination.error(r)}}},{key:"_complete",value:function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}]),n}(g.L);function ze(e,t){return function(n){return n.lift(new Be(e,n,!0,t))}}var Ue=n(64233),He=n(86072);function Ye(){return function(e){return e.lift(new Je)}}var Je=function(){function e(){(0,l.Z)(this,e)}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new Ge(e))}}]),e}(),Ge=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,l.Z)(this,n),t.apply(this,arguments)}return(0,c.Z)(n,[{key:"_next",value:function(e){}}]),n}(g.L);function We(){return function(e){return e.lift(new Ve)}}var Ve=function(){function e(){(0,l.Z)(this,e)}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new Qe(e))}}]),e}(),Qe=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){return(0,l.Z)(this,n),t.call(this,e)}return(0,c.Z)(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.L),Xe=n(99583),Ke=n(12698),$e=n(80286);function et(){return function(e){return e.lift(new tt)}}var tt=function(){function e(){(0,l.Z)(this,e)}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new nt(e))}}]),e}(),nt=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){return(0,l.Z)(this,n),t.call(this,e)}return(0,c.Z)(n,[{key:"_next",value:function(e){this.destination.next($e.P.createNext(e))}},{key:"_error",value:function(e){var t=this.destination;t.next($e.P.createError(e)),t.complete()}},{key:"_complete",value:function(){var e=this.destination;e.next($e.P.createComplete()),e.complete()}}]),n}(g.L),it=n(31927),rt=n(64397),ot=n(96194);function at(e,t){return arguments.length>=2?function(n){return(0,ot.z)((0,it.R)(e,t),(0,rt.h)(1),(0,ne.d)(t))(n)}:function(t){return(0,ot.z)((0,it.R)(function(t,n,i){return e(t,n,i+1)}),(0,rt.h)(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 lt=n(55371);function ct(){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(lt.T.apply(void 0,[e].concat(t)))}}var ut=n(65890),dt=n(35135);function ht(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?(0,dt.zg)(function(){return e},t,n):("number"==typeof t&&(n=t),(0,dt.zg)(function(){return e},n))}function pt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return function(i){return i.lift(new ft(e,t,n))}}var ft=function(){function e(t,n,i){(0,l.Z)(this,e),this.accumulator=t,this.seed=n,this.concurrent=i}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new mt(e,this.accumulator,this.seed,this.concurrent))}}]),e}(),mt=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r,o){var a;return(0,l.Z)(this,n),(a=t.call(this,e)).accumulator=i,a.acc=r,a.concurrent=o,a.hasValue=!1,a.hasCompleted=!1,a.buffer=[],a.active=0,a.index=0,a}return(0,c.Z)(n,[{key:"_next",value:function(e){if(this.active<this.concurrent){var t,n=this.index++,i=this.destination;try{t=(0,this.accumulator)(this.acc,e,n)}catch(r){return i.error(r)}this.active++,this._innerSub(t)}else this.buffer.push(e)}},{key:"_innerSub",value:function(e){var t=new u.IY(this),n=this.destination;n.add(t);var i=(0,u.ft)(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()}},{key:"notifyNext",value:function(e){var t=this.destination;this.acc=e,this.hasValue=!0,t.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}]),n}(u.Ds);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(4981),yt=n(25110);function _t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&(0,U.k)(t[0])&&(t=t[0]),function(e){return e.lift(new bt(t))}}var bt=function(){function e(t){(0,l.Z)(this,e),this.nextSources=t}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new wt(e,this.nextSources))}}]),e}(),wt=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this,e)).destination=e,r.nextSources=i,r}return(0,c.Z)(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.IY(this),n=this.destination;n.add(t);var i=(0,u.ft)(e,t);i!==t&&n.add(i)}else this.destination.complete()}}]),n}(u.Ds),St=n(4363),xt=n(59849);function Ct(e,t){return function(n){return[(0,_e.h)(e,t)(n),(0,_e.h)((0,xt.f)(e,t))(n)]}}function kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.length;if(0===i)throw new Error("list of properties cannot be empty.");return function(e){return(0,Ee.U)(Tt(t,i))(e)}}function Tt(e,t){return function(n){for(var i=n,r=0;r<t;r++){var o=null!=i?i[e[r]]:void 0;if(void 0===o)return;i=o}return i}}var At=n(68707);function Zt(e){return e?(0,vt.O)(function(){return new At.xQ},e):(0,vt.O)(new At.xQ)}var Mt=n(90838);function Ot(e){return function(t){return(0,vt.O)(new Mt.X(e))(t)}}var Et=n(3435);function Pt(){return function(e){return(0,vt.O)(new Et.c)(e)}}var It=n(82667);function qt(e,t,n,i){n&&"function"!=typeof n&&(i=n);var r="function"==typeof n?n:void 0,o=new It.t(e,t,i);return function(e){return(0,vt.O)(function(){return o},r)(e)}}var Nt=n(31695);function Dt(){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&&(0,U.k)(t[0])&&(t=t[0]),e.lift.call(Nt.S3.apply(void 0,[e].concat((0,z.Z)(t))))}}var Rt=n(93487);function Lt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(t){return 0===e?(0,Rt.c)():t.lift(new Ft(e<0?-1:e-1,t))}}var Ft=function(){function e(t,n){(0,l.Z)(this,e),this.count=t,this.source=n}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new Bt(e,this.count,this.source))}}]),e}(),Bt=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var o;return(0,l.Z)(this,n),(o=t.call(this,e)).count=i,o.source=r,o}return(0,c.Z)(n,[{key:"complete",value:function(){if(!this.isStopped){var e=this.source,t=this.count;if(0===t)return(0,f.Z)((0,m.Z)(n.prototype),"complete",this).call(this);t>-1&&(this.count=t-1),e.subscribe(this._unsubscribeAndRecycle())}}}]),n}(g.L);function jt(e){return function(t){return t.lift(new zt(e))}}var zt=function(){function e(t){(0,l.Z)(this,e),this.notifier=t}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new Ut(e,this.notifier,t))}}]),e}(),Ut=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var o;return(0,l.Z)(this,n),(o=t.call(this,e)).notifier=i,o.source=r,o.sourceIsBeingSubscribedTo=!0,o}return(0,c.Z)(n,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return(0,f.Z)((0,m.Z)(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(0,f.Z)((0,m.Z)(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,(0,f.Z)((0,m.Z)(n.prototype),"_unsubscribeAndRecycle",this).call(this),this._unsubscribe=e,this}},{key:"subscribeToRetries",value:function(){var e;this.notifications=new At.xQ;try{e=(0,this.notifier)(this.notifications)}catch(t){return(0,f.Z)((0,m.Z)(n.prototype),"complete",this).call(this)}this.retries=e,this.retriesSubscription=(0,u.ft)(e,new u.IY(this))}}]),n}(u.Ds);function Ht(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(t){return t.lift(new Yt(e,t))}}var Yt=function(){function e(t,n){(0,l.Z)(this,e),this.count=t,this.source=n}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new Jt(e,this.count,this.source))}}]),e}(),Jt=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var o;return(0,l.Z)(this,n),(o=t.call(this,e)).count=i,o.source=r,o}return(0,c.Z)(n,[{key:"error",value:function(e){if(!this.isStopped){var t=this.source,i=this.count;if(0===i)return(0,f.Z)((0,m.Z)(n.prototype),"error",this).call(this,e);i>-1&&(this.count=i-1),t.subscribe(this._unsubscribeAndRecycle())}}}]),n}(g.L);function Gt(e){return function(t){return t.lift(new Wt(e,t))}}var Wt=function(){function e(t,n){(0,l.Z)(this,e),this.notifier=t,this.source=n}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new Vt(e,this.notifier,this.source))}}]),e}(),Vt=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var o;return(0,l.Z)(this,n),(o=t.call(this,e)).notifier=i,o.source=r,o}return(0,c.Z)(n,[{key:"error",value:function(e){if(!this.isStopped){var t=this.errors,i=this.retries,r=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{t=new At.xQ;try{i=(0,this.notifier)(t)}catch(o){return(0,f.Z)((0,m.Z)(n.prototype),"error",this).call(this,o)}r=(0,u.ft)(i,new u.IY(this))}this._unsubscribeAndRecycle(),this.errors=t,this.retries=i,this.retriesSubscription=r,t.next(e)}}},{key:"_unsubscribe",value:function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"notifyNext",value:function(){var e=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)}}]),n}(u.Ds),Qt=n(26575);function Xt(e){return function(t){return t.lift(new Kt(e))}}var Kt=function(){function e(t){(0,l.Z)(this,e),this.notifier=t}return(0,c.Z)(e,[{key:"call",value:function(e,t){var n=new $t(e),i=t.subscribe(n);return i.add((0,u.ft)(this.notifier,new u.IY(n))),i}}]),e}(),$t=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,l.Z)(this,n),(e=t.apply(this,arguments)).hasValue=!1,e}return(0,c.Z)(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.Ds);function en(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.P;return function(n){return n.lift(new tn(e,t))}}var tn=function(){function e(t,n){(0,l.Z)(this,e),this.period=t,this.scheduler=n}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new nn(e,this.period,this.scheduler))}}]),e}(),nn=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var a;return(0,l.Z)(this,n),(a=t.call(this,e)).period=i,a.scheduler=r,a.hasValue=!1,a.add(r.schedule(rn,i,{subscriber:(0,o.Z)(a),period:i})),a}return(0,c.Z)(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.L);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){(0,l.Z)(this,e),this.compareTo=t,this.comparator=n}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new sn(e,this.compareTo,this.comparator))}}]),e}(),sn=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var a;return(0,l.Z)(this,n),(a=t.call(this,e)).compareTo=i,a.comparator=r,a._a=[],a._b=[],a._oneComplete=!1,a.destination.add(i.subscribe(new ln(e,(0,o.Z)(a)))),a}return(0,c.Z)(n,[{key:"_next",value:function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())}},{key:"_complete",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}},{key:"checkValues",value:function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var i=e.shift(),r=t.shift(),o=!1;try{o=n?n(i,r):i===r}catch(a){this.destination.error(a)}o||this.emit(!1)}}},{key:"emit",value:function(e){var t=this.destination;t.next(e),t.complete()}},{key:"nextB",value:function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())}},{key:"completeB",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}]),n}(g.L),ln=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this,e)).parent=i,r}return(0,c.Z)(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.L),cn=n(16338),un=n(61106),dn=n(64646);function hn(e){return function(t){return t.lift(new pn(e,t))}}var pn=function(){function e(t,n){(0,l.Z)(this,e),this.predicate=t,this.source=n}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new fn(e,this.predicate,this.source))}}]),e}(),fn=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var o;return(0,l.Z)(this,n),(o=t.call(this,e)).predicate=i,o.source=r,o.seenValue=!1,o.index=0,o}return(0,c.Z)(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 dn.K)}}]),n}(g.L),mn=n(18756);function gn(e){return function(t){return t.lift(new vn(e))}}var vn=function(){function e(t){if((0,l.Z)(this,e),this._skipCount=t,this._skipCount<0)throw new ye.W}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(0===this._skipCount?new g.L(e):new yn(e,this._skipCount))}}]),e}(),yn=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this,e))._skipCount=i,r._count=0,r._ring=new Array(i),r}return(0,c.Z)(n,[{key:"_next",value:function(e){var t=this._skipCount,n=this._count++;if(n<t)this._ring[n]=e;else{var i=n%t,r=this._ring,o=r[i];r[i]=e,this.destination.next(o)}}}]),n}(g.L);function _n(e){return function(t){return t.lift(new bn(e))}}var bn=function(){function e(t){(0,l.Z)(this,e),this.notifier=t}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new wn(e,this.notifier))}}]),e}(),wn=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;(0,l.Z)(this,n),(r=t.call(this,e)).hasValue=!1;var a=new u.IY((0,o.Z)(r));r.add(a),r.innerSubscription=a;var s=(0,u.ft)(i,a);return s!==a&&(r.add(s),r.innerSubscription=s),r}return(0,c.Z)(n,[{key:"_next",value:function(e){this.hasValue&&(0,f.Z)((0,m.Z)(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.Ds);function Sn(e){return function(t){return t.lift(new xn(e))}}var xn=function(){function e(t){(0,l.Z)(this,e),this.predicate=t}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new Cn(e,this.predicate))}}]),e}(),Cn=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this,e)).predicate=i,r.skipping=!0,r.index=0,r}return(0,c.Z)(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.L),kn=n(57682),Tn=n(18613);function An(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new Zn(e,t))}}var Zn=function(){function e(t,n){(0,l.Z)(this,e),this.scheduler=t,this.delay=n}return(0,c.Z)(e,[{key:"call",value:function(e,t){return new Tn.e(t,this.delay,this.scheduler).subscribe(e)}}]),e}(),Mn=n(34487),On=n(57070);function En(){return(0,Mn.w)(On.y)}function Pn(e,t){return t?(0,Mn.w)(function(){return e},t):(0,Mn.w)(function(){return e})}var In=n(44213),qn=n(49196),Nn=n(59371),Dn=n(243);function Rn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.P,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dn.d;return function(i){return i.lift(new Ln(e,t,n.leading,n.trailing))}}var Ln=function(){function e(t,n,i,r){(0,l.Z)(this,e),this.duration=t,this.scheduler=n,this.leading=i,this.trailing=r}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new Fn(e,this.duration,this.scheduler,this.leading,this.trailing))}}]),e}(),Fn=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r,o,a){var s;return(0,l.Z)(this,n),(s=t.call(this,e)).duration=i,s.scheduler=r,s.leading=o,s.trailing=a,s._hasTrailingValue=!1,s._trailingValue=null,s}return(0,c.Z)(n,[{key:"_next",value:function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Bn,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}},{key:"_complete",value:function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}},{key:"clearThrottle",value:function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}}]),n}(g.L);function Bn(e){e.subscriber.clearThrottle()}var jn=n(73445),zn=n(98691),Un=n(88972);function Hn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w.P;return function(i){var r=(0,Un.J)(e),o=r?+e-n.now():Math.abs(e);return i.lift(new Yn(o,r,t,n))}}var Yn=function(){function e(t,n,i,r){(0,l.Z)(this,e),this.waitFor=t,this.absoluteTimeout=n,this.withObservable=i,this.scheduler=r}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new Jn(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),e}(),Jn=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r,o,a){var s;return(0,l.Z)(this,n),(s=t.call(this,e)).absoluteTimeout=i,s.waitFor=r,s.withObservable=o,s.scheduler=a,s.scheduleTimeout(),s}return(0,c.Z)(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(),(0,f.Z)((0,m.Z)(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((0,u.ft)(t,new u.IY(e)))}}]),n}(u.Ds),Gn=n(11363);function Wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.P;return Hn(e,(0,Gn._)(new zn.W),t)}var Vn=n(63706);function Qn(e,t,n){return 0===n?[t]:(e.push(t),e)}function Xn(){return at(Qn,[])}function Kn(e){return function(t){return t.lift(new $n(e))}}var $n=function(){function e(t){(0,l.Z)(this,e),this.windowBoundaries=t}return(0,c.Z)(e,[{key:"call",value:function(e,t){var n=new ei(e),i=t.subscribe(n);return i.closed||n.add((0,u.ft)(this.windowBoundaries,new u.IY(n))),i}}]),e}(),ei=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,l.Z)(this,n),(i=t.call(this,e)).window=new At.xQ,e.next(i.window),i}return(0,c.Z)(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 At.xQ;t.next(n)}}]),n}(u.Ds);function ti(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new ni(e,t))}}var ni=function(){function e(t,n){(0,l.Z)(this,e),this.windowSize=t,this.startWindowEvery=n}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new ii(e,this.windowSize,this.startWindowEvery))}}]),e}(),ii=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var o;return(0,l.Z)(this,n),(o=t.call(this,e)).destination=e,o.windowSize=i,o.startWindowEvery=r,o.windows=[new At.xQ],o.count=0,e.next(o.windows[0]),o}return(0,c.Z)(n,[{key:"_next",value:function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,r=this.windows,o=r.length,a=0;a<o&&!this.closed;a++)r[a].next(e);var s=this.count-i+1;if(s>=0&&s%t==0&&!this.closed&&r.shift().complete(),++this.count%t==0&&!this.closed){var l=new At.xQ;r.push(l),n.next(l)}}},{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.L),ri=n(11705);function oi(e){var t=w.P,n=null,i=Number.POSITIVE_INFINITY;return(0,S.K)(arguments[3])&&(t=arguments[3]),(0,S.K)(arguments[2])?t=arguments[2]:(0,ri.k)(arguments[2])&&(i=Number(arguments[2])),(0,S.K)(arguments[1])?t=arguments[1]:(0,ri.k)(arguments[1])&&(n=Number(arguments[1])),function(r){return r.lift(new ai(e,n,i,t))}}var ai=function(){function e(t,n,i,r){(0,l.Z)(this,e),this.windowTimeSpan=t,this.windowCreationInterval=n,this.maxWindowSize=i,this.scheduler=r}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new li(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}]),e}(),si=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,l.Z)(this,n),(e=t.apply(this,arguments))._numberOfNextedValues=0,e}return(0,c.Z)(n,[{key:"next",value:function(e){this._numberOfNextedValues++,(0,f.Z)((0,m.Z)(n.prototype),"next",this).call(this,e)}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}]),n}(At.xQ),li=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r,a,s){var c;(0,l.Z)(this,n),(c=t.call(this,e)).destination=e,c.windowTimeSpan=i,c.windowCreationInterval=r,c.maxWindowSize=a,c.scheduler=s,c.windows=[];var u=c.openWindow();if(null!==r&&r>=0){var d={subscriber:(0,o.Z)(c),window:u,context:null},h={windowTimeSpan:i,windowCreationInterval:r,subscriber:(0,o.Z)(c),scheduler:s};c.add(s.schedule(di,i,d)),c.add(s.schedule(ui,r,h))}else{var p={subscriber:(0,o.Z)(c),window:u,windowTimeSpan:i};c.add(s.schedule(ci,i,p))}return c}return(0,c.Z)(n,[{key:"_next",value:function(e){for(var t=this.windows,n=t.length,i=0;i<n;i++){var r=t[i];r.closed||(r.next(e),r.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(r))}}},{key:"_error",value:function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)}},{key:"_complete",value:function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()}},{key:"openWindow",value:function(){var e=new si;return this.windows.push(e),this.destination.next(e),e}},{key:"closeWindow",value:function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)}}]),n}(g.L);function ci(e){var t=e.subscriber,n=e.windowTimeSpan,i=e.window;i&&t.closeWindow(i),e.window=t.openWindow(),this.schedule(e,n)}function ui(e){var t=e.windowTimeSpan,n=e.subscriber,i=e.scheduler,r=e.windowCreationInterval,o=n.openWindow(),a=this,s={action:a,subscription:null};s.subscription=i.schedule(di,t,{subscriber:n,window:o,context:s}),a.add(s.subscription),a.schedule(e,r)}function di(e){var t=e.subscriber,n=e.window,i=e.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),t.closeWindow(n)}function hi(e,t){return function(n){return n.lift(new pi(e,t))}}var pi=function(){function e(t,n){(0,l.Z)(this,e),this.openings=t,this.closingSelector=n}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new fi(e,this.openings,this.closingSelector))}}]),e}(),fi=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var a;return(0,l.Z)(this,n),(a=t.call(this,e)).openings=i,a.closingSelector=r,a.contexts=[],a.add(a.openSubscription=(0,E.D)((0,o.Z)(a),i,i)),a}return(0,c.Z)(n,[{key:"_next",value:function(e){var t=this.contexts;if(t)for(var n=t.length,i=0;i<n;i++)t[i].window.next(e)}},{key:"_error",value:function(e){var t=this.contexts;if(this.contexts=null,t)for(var i=t.length,r=-1;++r<i;){var o=t[r];o.window.error(e),o.subscription.unsubscribe()}(0,f.Z)((0,m.Z)(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,i=-1;++i<t;){var r=e[i];r.window.complete(),r.subscription.unsubscribe()}(0,f.Z)((0,m.Z)(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,n=-1;++n<t;){var i=e[n];i.window.unsubscribe(),i.subscription.unsubscribe()}}},{key:"notifyNext",value:function(e,t,n,i,r){if(e===this.openings){var o;try{o=(0,this.closingSelector)(t)}catch(u){return this.error(u)}var a=new At.xQ,s=new O.w,l={window:a,subscription:s};this.contexts.push(l);var c=(0,E.D)(this,o,l);c.closed?this.closeWindow(this.contexts.length-1):(c.context=l,s.add(c)),this.destination.next(a)}else this.closeWindow(this.contexts.indexOf(e))}},{key:"notifyError",value:function(e){this.error(e)}},{key:"notifyComplete",value:function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))}},{key:"closeWindow",value:function(e){if(-1!==e){var t=this.contexts,n=t[e],i=n.window,r=n.subscription;t.splice(e,1),i.complete(),r.unsubscribe()}}}]),n}(P.L);function mi(e){return function(t){return t.lift(new gi(e))}}var gi=function(){function e(t){(0,l.Z)(this,e),this.closingSelector=t}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new vi(e,this.closingSelector))}}]),e}(),vi=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,l.Z)(this,n),(r=t.call(this,e)).destination=e,r.closingSelector=i,r.openWindow(),r}return(0,c.Z)(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.openWindow(r)}},{key:"notifyError",value:function(e){this._error(e)}},{key:"notifyComplete",value:function(e){this.openWindow(e)}},{key:"_next",value:function(e){this.window.next(e)}},{key:"_error",value:function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()}},{key:"unsubscribeClosingNotification",value:function(){this.closingNotification&&this.closingNotification.unsubscribe()}},{key:"openWindow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.remove(e),e.unsubscribe());var t=this.window;t&&t.complete();var n,i=this.window=new At.xQ;this.destination.next(i);try{var r=this.closingSelector;n=r()}catch(o){return this.destination.error(o),void this.window.error(o)}this.add(this.closingNotification=(0,E.D)(this,n))}}]),n}(P.L);function yi(){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 _i(t,n))}}var _i=function(){function e(t,n){(0,l.Z)(this,e),this.observables=t,this.project=n}return(0,c.Z)(e,[{key:"call",value:function(e,t){return t.subscribe(new bi(e,this.observables,this.project))}}]),e}(),bi=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r){var a;(0,l.Z)(this,n),(a=t.call(this,e)).observables=i,a.project=r,a.toRespond=[];var s=i.length;a.values=new Array(s);for(var c=0;c<s;c++)a.toRespond.push(c);for(var u=0;u<s;u++){var d=i[u];a.add((0,E.D)((0,o.Z)(a),d,void 0,u))}return a}return(0,c.Z)(n,[{key:"notifyNext",value:function(e,t,n){this.values[n]=t;var i=this.toRespond;if(i.length>0){var r=i.indexOf(n);-1!==r&&i.splice(r,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(e){if(0===this.toRespond.length){var t=[e].concat((0,z.Z)(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}(P.L),wi=n(43008);function Si(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return e.lift.call(wi.$R.apply(void 0,[e].concat(t)))}}function xi(e){return function(t){return t.lift(new wi.mx(e))}}},53520:function(e,t,n){"use strict";n.r(t),n.d(t,{TestScheduler:function(){return v}});var i=n(61680),r=n(11254),o=n(51751),a=n(12558),s=n(49843),l=n(37859),c=n(89797),u=n(80286),d=n(5051),h=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,i.Z)(this,e),this.subscribedFrame=t,this.unsubscribedFrame=n},p=(n(2808),function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,r){var o;return(0,i.Z)(this,n),(o=t.call(this,function(e){var t=this,n=t.logSubscribedFrame(),i=new d.w;return i.add(new d.w(function(){t.logUnsubscribedFrame(n)})),t.scheduleMessages(e),i})).messages=e,o.subscriptions=[],o.scheduler=r,o}return(0,r.Z)(n,[{key:"scheduleMessages",value:function(e){for(var t=this.messages.length,n=0;n<t;n++){var i=this.messages[n];e.add(this.scheduler.schedule(function(e){e.message.notification.observe(e.subscriber)},i.frame,{message:i,subscriber:e}))}}}]),n}(c.y)),f=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e,r){var o;return(0,i.Z)(this,n),(o=t.call(this)).messages=e,o.subscriptions=[],o.scheduler=r,o}return(0,r.Z)(n,[{key:"_subscribe",value:function(e){var t=this,i=t.logSubscribedFrame(),r=new d.w;return r.add(new d.w(function(){t.logUnsubscribedFrame(i)})),r.add((0,o.Z)((0,a.Z)(n.prototype),"_subscribe",this).call(this,e)),r}},{key:"setup",value:function(){for(var e=this,t=e.messages.length,n=0;n<t;n++)!function(){var t=e.messages[n];e.scheduler.schedule(function(){t.notification.observe(e)},t.frame)}()}}]),n}(n(68707).xQ),m=n(2296),g=n(81572),v=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e){var r;return(0,i.Z)(this,n),(r=t.call(this,m.h,750)).assertDeepEqual=e,r.hotObservables=[],r.coldObservables=[],r.flushTests=[],r.runMode=!1,r}return(0,r.Z)(n,[{key:"createTime",value:function(e){var t=e.indexOf("|");if(-1===t)throw new Error('marble diagram for time should have a completion marker "|"');return t*n.frameTimeFactor}},{key:"createColdObservable",value:function(e,t,i){if(-1!==e.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==e.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var r=n.parseMarbles(e,t,i,void 0,this.runMode),o=new p(r,this);return this.coldObservables.push(o),o}},{key:"createHotObservable",value:function(e,t,i){if(-1!==e.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var r=n.parseMarbles(e,t,i,void 0,this.runMode),o=new f(r,this);return this.hotObservables.push(o),o}},{key:"materializeInnerObservable",value:function(e,t){var n=this,i=[];return e.subscribe(function(e){i.push({frame:n.frame-t,notification:u.P.createNext(e)})},function(e){i.push({frame:n.frame-t,notification:u.P.createError(e)})},function(){i.push({frame:n.frame-t,notification:u.P.createComplete()})}),i}},{key:"expectObservable",value:function(e){var t,i=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=[],a={actual:o,ready:!1},s=n.parseMarblesAsSubscriptions(r,this.runMode),l=s.subscribedFrame===Number.POSITIVE_INFINITY?0:s.subscribedFrame,d=s.unsubscribedFrame;this.schedule(function(){t=e.subscribe(function(e){var t=e;e instanceof c.y&&(t=i.materializeInnerObservable(t,i.frame)),o.push({frame:i.frame,notification:u.P.createNext(t)})},function(e){o.push({frame:i.frame,notification:u.P.createError(e)})},function(){o.push({frame:i.frame,notification:u.P.createComplete()})})},l),d!==Number.POSITIVE_INFINITY&&this.schedule(function(){return t.unsubscribe()},d),this.flushTests.push(a);var h=this.runMode;return{toBe:function(e,t,i){a.ready=!0,a.expected=n.parseMarbles(e,t,i,!0,h)}}}},{key:"expectSubscriptions",value:function(e){var t={actual:e,ready:!1};this.flushTests.push(t);var i=this.runMode;return{toBe:function(e){var r="string"==typeof e?[e]:e;t.ready=!0,t.expected=r.map(function(e){return n.parseMarblesAsSubscriptions(e,i)})}}}},{key:"flush",value:function(){for(var e=this,t=this.hotObservables;t.length>0;)t.shift().setup();(0,o.Z)((0,a.Z)(n.prototype),"flush",this).call(this),this.flushTests=this.flushTests.filter(function(t){return!t.ready||(e.assertDeepEqual(t.actual,t.expected),!1)})}},{key:"run",value:function(e){var t=n.frameTimeFactor,i=this.maxFrames;n.frameTimeFactor=1,this.maxFrames=Number.POSITIVE_INFINITY,this.runMode=!0,g.v.delegate=this;var r={cold:this.createColdObservable.bind(this),hot:this.createHotObservable.bind(this),flush:this.flush.bind(this),expectObservable:this.expectObservable.bind(this),expectSubscriptions:this.expectSubscriptions.bind(this)};try{var o=e(r);return this.flush(),o}finally{n.frameTimeFactor=t,this.maxFrames=i,this.runMode=!1,g.v.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 h(Number.POSITIVE_INFINITY);for(var i=e.length,r=-1,o=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,s=0,l=0;l<i;l++){var c=s,u=function(e){c+=e*t.frameTimeFactor},d=e[l];switch(d){case" ":n||u(1);break;case"-":u(1);break;case"(":r=s,u(1);break;case")":r=-1,u(1);break;case"^":if(o!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");o=r>-1?r:s,u(1);break;case"!":if(a!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");a=r>-1?r:s;break;default:if(n&&d.match(/^[0-9]$/)&&(0===l||" "===e[l-1])){var p=e.slice(l),f=p.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(f){l+=f[0].length-1;var m=parseFloat(f[1]),g=f[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 '"+d+"'.")}s=c}return a<0?new h(o):new h(o,a)}},{key:"parseMarbles",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(-1!==e.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var a=e.length,s=[],l=o?e.replace(/^[ ]+/,"").indexOf("^"):e.indexOf("^"),c=-1===l?0:l*-this.frameTimeFactor,d="object"!=typeof t?function(e){return e}:function(e){return r&&t[e]instanceof p?t[e].messages:t[e]},h=-1,f=0;f<a;f++){var m=c,g=function(e){m+=e*i.frameTimeFactor},v=void 0,y=e[f];switch(y){case" ":o||g(1);break;case"-":g(1);break;case"(":h=c,g(1);break;case")":h=-1,g(1);break;case"|":v=u.P.createComplete(),g(1);break;case"^":g(1);break;case"#":v=u.P.createError(n||"error"),g(1);break;default:if(o&&y.match(/^[0-9]$/)&&(0===f||" "===e[f-1])){var _=e.slice(f),b=_.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(b){f+=b[0].length-1;var w=parseFloat(b[1]),S=b[2],x=void 0;switch(S){case"ms":x=w;break;case"s":x=1e3*w;break;case"m":x=1e3*w*60}g(x/this.frameTimeFactor);break}}v=u.P.createNext(d(y)),g(1)}v&&s.push({frame:h>-1?h:c,notification:v}),c=m}return s}}]),n}(m.y)},4194:function(e,t,n){"use strict";n.r(t),n.d(t,{webSocket:function(){return i.j},WebSocketSubject:function(){return r.p}});var i=n(99298),r=n(46095)},26918:function(e,t,n){"use strict";n(68663)},56205:function(e,t){"use strict";var n;!function(){var i=t||{}||this||window;void 0===(n=(function(){return i}).apply(t,[]))||(e.exports=n),i.default=i;var r="http://www.w3.org/2000/xmlns/",o="http://www.w3.org/2000/svg",a=/url\(["']?(.+?)["']?\)/,s={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},l=function(e){return e instanceof HTMLElement||e instanceof SVGElement},c=function(e){if(!l(e))throw new Error("an HTMLElement or SVGElement is required; got "+e)},u=function(e){return new Promise(function(t,n){l(e)?t(e):n(new Error("an HTMLElement or SVGElement is required; got "+e))})},d=function(e,t,n){var i=e.viewBox&&e.viewBox.baseVal&&e.viewBox.baseVal[n]||null!==t.getAttribute(n)&&!t.getAttribute(n).match(/%$/)&&parseInt(t.getAttribute(n))||e.getBoundingClientRect()[n]||parseInt(t.style[n])||parseInt(window.getComputedStyle(e).getPropertyValue(n));return null==i||isNaN(parseFloat(i))?0:i},h=function(e){for(var t=window.atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(t.length),r=new Uint8Array(i),o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return new Blob([i],{type:n})},p={},f=null,m=function(){if(!navigator.msSaveOrOpenBlob&&!("download"in document.createElement("a")))return{popup:window.open()}};i.prepareSvg=function(e,t,n){c(e);var i=t||{},l=i.left,u=void 0===l?0:l,h=i.top,m=void 0===h?0:h,g=i.width,v=i.height,y=i.scale,_=void 0===y?1:y,b=i.responsive,w=void 0!==b&&b,S=i.excludeCss,x=void 0!==S&&S;return function(e){return Promise.all(Array.from(e.querySelectorAll("image")).map(function(e){var t,n=e.getAttributeNS("http://www.w3.org/1999/xlink","href")||e.getAttribute("href");return n?((t=n)&&0===t.lastIndexOf("http",0)&&-1===t.lastIndexOf(window.location.host)&&(n+=(-1===n.indexOf("?")?"?":"&")+"t="+(new Date).valueOf()),new Promise(function(t,i){var r=document.createElement("canvas"),o=new Image;o.crossOrigin="anonymous",o.src=n,o.onerror=function(){return i(new Error("Could not load "+n))},o.onload=function(){r.width=o.width,r.height=o.height,r.getContext("2d").drawImage(o,0,0),e.setAttributeNS("http://www.w3.org/1999/xlink","href",r.toDataURL("image/png")),t(!0)}})):Promise.resolve(null)}))}(e).then(function(){var i=e.cloneNode(!0);i.style.backgroundColor=(t||{}).backgroundColor||e.style.backgroundColor;var l=function(e,t,n,i){if("svg"===e.tagName)return{width:n||d(e,t,"width"),height:i||d(e,t,"height")};if(e.getBBox){var r=e.getBBox();return{width:r.x+r.width,height:r.y+r.height}}}(e,i,g,v),c=l.width,h=l.height;if("svg"!==e.tagName){if(!e.getBBox)return void console.error("Attempted to render non-SVG element",e);null!=i.getAttribute("transform")&&i.setAttribute("transform",i.getAttribute("transform").replace(/translate\(.*?\)/,""));var y=document.createElementNS("http://www.w3.org/2000/svg","svg");y.appendChild(i),i=y}if(i.setAttribute("version","1.1"),i.setAttribute("viewBox",[u,m,c,h].join(" ")),i.getAttribute("xmlns")||i.setAttributeNS(r,"xmlns",o),i.getAttribute("xmlns:xlink")||i.setAttributeNS(r,"xmlns:xlink","http://www.w3.org/1999/xlink"),w?(i.removeAttribute("width"),i.removeAttribute("height"),i.setAttribute("preserveAspectRatio","xMinYMin meet")):(i.setAttribute("width",c*_),i.setAttribute("height",h*_)),Array.from(i.querySelectorAll("foreignObject > *")).forEach(function(e){e.setAttributeNS(r,"xmlns","svg"===e.tagName?o:"http://www.w3.org/1999/xhtml")}),!x)return function(e,t){var n=t||{},i=n.selectorRemap,r=n.modifyStyle,o=n.fonts,l=n.excludeUnusedCss,c=n.modifyCss||function(e,t){return(i?i(e):e)+"{"+(r?r(t):t)+"}\n"},u=[],d=void 0===o,h=o||[];return(f||(f=Array.from(document.styleSheets).map(function(e){try{return{rules:e.cssRules,href:e.href}}catch(t){return console.warn("Stylesheet could not be loaded: "+e.href,t),{}}}))).forEach(function(t){var n=t.rules,i=t.href;n&&Array.from(n).forEach(function(t){if(void 0!==t.style)if(function(e,t){if(t)try{return e.querySelector(t)||e.parentNode&&e.parentNode.querySelector(t)}catch(n){console.warn('Invalid CSS selector "'+t+'"',n)}}(e,t.selectorText))u.push(c(t.selectorText,t.style.cssText));else if(d&&t.cssText.match(/^@font-face/)){var n=function(e,t){var n=e.cssText.match(a),i=n&&n[1]||"";if(i&&!i.match(/^data:/)&&"about:blank"!==i){var r,o,l=i.startsWith("../")?t+"/../"+i:i.startsWith("./")?t+"/."+i:i;return{text:e.cssText,format:(r=l,o=Object.keys(s).filter(function(e){return r.indexOf("."+e)>0}).map(function(e){return s[e]}),o?o[0]:(console.error("Unknown font format for "+r+". Fonts may not be working correctly."),"application/octet-stream")),url:l}}}(t,i);n&&h.push(n)}else l||u.push(t.cssText)})}),function(e){return Promise.all(e.map(function(e){return new Promise(function(t,n){if(p[e.url])return t(p[e.url]);var i=new XMLHttpRequest;i.addEventListener("load",function(){var n=function(e){for(var t="",n=new Uint8Array(e),i=0;i<n.byteLength;i++)t+=String.fromCharCode(n[i]);return window.btoa(t)}(i.response),r=e.text.replace(a,'url("data:'+e.format+";base64,"+n+'")')+"\n";p[e.url]=r,t(r)}),i.addEventListener("error",function(n){console.warn("Failed to load font from: "+e.url,n),p[e.url]=null,t(null)}),i.addEventListener("abort",function(n){console.warn("Aborted loading font from: "+e.url,n),t(null)}),i.open("GET",e.url),i.responseType="arraybuffer",i.send()})})).then(function(e){return e.filter(function(e){return e}).join("")})}(h).then(function(e){return u.join("\n")+e})}(e,t).then(function(e){var t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML="<![CDATA[\n"+e+"\n]]>";var r=document.createElement("defs");r.appendChild(t),i.insertBefore(r,i.firstChild);var o=document.createElement("div");o.appendChild(i);var a=o.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if("function"!=typeof n)return{src:a,width:c,height:h};n(a,c,h)});var b=document.createElement("div");b.appendChild(i);var S=b.innerHTML;if("function"!=typeof n)return{src:S,width:c,height:h};n(S,c,h)})},i.svgAsDataUri=function(e,t,n){return c(e),i.prepareSvg(e,t).then(function(e){var t=e.width,i=e.height,r="data:image/svg+xml;base64,"+window.btoa(decodeURIComponent(encodeURIComponent('<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [<!ENTITY nbsp " ">]>'+e.src).replace(/%([0-9A-F]{2})/g,function(e,t){var n=String.fromCharCode("0x"+t);return"%"===n?"%25":n})));return"function"==typeof n&&n(r,t,i),r})},i.svgAsPngUri=function(e,t,n){c(e);var r=t||{},o=r.encoderType,a=void 0===o?"image/png":o,s=r.encoderOptions,l=void 0===s?.8:s,u=r.canvg,d=function(e){var t=e.src,i=e.width,r=e.height,o=document.createElement("canvas"),s=o.getContext("2d"),c=window.devicePixelRatio||1;o.width=i*c,o.height=r*c,o.style.width=o.width+"px",o.style.height=o.height+"px",s.setTransform(c,0,0,c,0,0),u?u(o,t):s.drawImage(t,0,0);var d=void 0;try{d=o.toDataURL(a,l)}catch(h){if("undefined"!=typeof SecurityError&&h instanceof SecurityError||"SecurityError"===h.name)return void console.error("Rendered SVG images cannot be downloaded in this browser.");throw h}return"function"==typeof n&&n(d,o.width,o.height),Promise.resolve(d)};return u?i.prepareSvg(e,t).then(d):i.svgAsDataUri(e,t).then(function(e){return new Promise(function(t,n){var i=new Image;i.onload=function(){return t(d({src:i,width:i.width,height:i.height}))},i.onerror=function(){n("There was an error loading the data URI as an image on the following SVG\n"+window.atob(e.slice(26))+"Open the following link to see browser's diagnosis\n"+e)},i.src=e})})},i.download=function(e,t,n){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(h(t),e);else{var i=document.createElement("a");if("download"in i){i.download=e,i.style.display="none",document.body.appendChild(i);try{var r=h(t),o=URL.createObjectURL(r);i.href=o,i.onclick=function(){return requestAnimationFrame(function(){return URL.revokeObjectURL(o)})}}catch(a){console.error(a),console.warn("Error while getting object URL. Falling back to string URL."),i.href=t}i.click(),document.body.removeChild(i)}else n&&n.popup&&(n.popup.document.title=e,n.popup.location.replace(t))}},i.saveSvg=function(e,t,n){var r=m();return u(e).then(function(e){return i.svgAsDataUri(e,n||{})}).then(function(e){return i.download(t,e,r)})},i.saveSvgAsPng=function(e,t,n){var r=m();return u(e).then(function(e){return i.svgAsPngUri(e,n||{})}).then(function(e){return i.download(t,e,r)})}}()},5042:function(e,t,n){var i=n(25523),r=Object.prototype.hasOwnProperty,o="undefined"!=typeof Map;function a(){this._array=[],this._set=o?new Map:Object.create(null)}a.fromArray=function(e,t){for(var n=new a,i=0,r=e.length;i<r;i++)n.add(e[i],t);return n},a.prototype.size=function(){return o?this._set.size:Object.getOwnPropertyNames(this._set).length},a.prototype.add=function(e,t){var n=o?e:i.toSetString(e),a=o?this.has(e):r.call(this._set,n),s=this._array.length;a&&!t||this._array.push(e),a||(o?this._set.set(e,s):this._set[n]=s)},a.prototype.has=function(e){if(o)return this._set.has(e);var t=i.toSetString(e);return r.call(this._set,t)},a.prototype.indexOf=function(e){if(o){var t=this._set.get(e);if(t>=0)return t}else{var n=i.toSetString(e);if(r.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},a.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},a.prototype.toArray=function(){return this._array.slice()},t.I=a},78619:function(e,t,n){var i=n(7698);t.encode=function(e){var t,n="",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,(r>>>=5)>0&&(t|=32),n+=i.encode(t)}while(r>0);return n},t.decode=function(e,t,n){var r,o,a,s,l=e.length,c=0,u=0;do{if(t>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=i.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&o),c+=(o&=31)<<u,u+=5}while(r);n.value=(s=(a=c)>>1,1==(1&a)?-s:s),n.rest=t}},7698: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}},66306:function(e,t,n){var i=n(25523);function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){var t,n,r,o;(o=(n=e).generatedLine)>(r=(t=this._last).generatedLine)||o==r&&n.generatedColumn>=t.generatedColumn||i.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(i.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.H=r},30673:function(e,t,n){var i=n(78619),r=n(25523),o=n(5042).I,a=n(66306).H;function s(e){e||(e={}),this._file=r.getArg(e,"file",null),this._sourceRoot=r.getArg(e,"sourceRoot",null),this._skipValidation=r.getArg(e,"skipValidation",!1),this._sources=new o,this._names=new o,this._mappings=new a,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,n=new s({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(i.source=e.source,null!=t&&(i.source=r.relative(t,i.source)),i.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(i.name=e.name)),n.addMapping(i)}),e.sources.forEach(function(i){var o=i;null!==t&&(o=r.relative(t,i)),n._sources.has(o)||n._sources.add(o);var a=e.sourceContentFor(i);null!=a&&n.setSourceContent(i,a)}),n},s.prototype.addMapping=function(e){var t=r.getArg(e,"generated"),n=r.getArg(e,"original",null),i=r.getArg(e,"source",null),o=r.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,i,o),null!=i&&(i=String(i),this._sources.has(i)||this._sources.add(i)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:i,name:o})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=r.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var i=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');i=e.file}var a=this._sourceRoot;null!=a&&(i=r.relative(a,i));var s=new o,l=new o;this._mappings.unsortedForEach(function(t){if(t.source===i&&null!=t.originalLine){var o=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=o.source&&(t.source=o.source,null!=n&&(t.source=r.join(n,t.source)),null!=a&&(t.source=r.relative(a,t.source)),t.originalLine=o.line,t.originalColumn=o.column,null!=o.name&&(t.name=o.name))}var c=t.source;null==c||s.has(c)||s.add(c);var u=t.name;null==u||l.has(u)||l.add(u)},this),this._sources=s,this._names=l,e.sources.forEach(function(t){var i=e.sourceContentFor(t);null!=i&&(null!=n&&(t=r.join(n,t)),null!=a&&(t=r.relative(a,t)),this.setSourceContent(t,i))},this)},s.prototype._validateMapping=function(e,t,n,i){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||i)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:i}))},s.prototype._serializeMappings=function(){for(var e,t,n,o,a=0,s=1,l=0,c=0,u=0,d=0,h="",p=this._mappings.toArray(),f=0,m=p.length;f<m;f++){if(e="",(t=p[f]).generatedLine!==s)for(a=0;t.generatedLine!==s;)e+=";",s++;else if(f>0){if(!r.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=","}e+=i.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(o=this._sources.indexOf(t.source),e+=i.encode(o-d),d=o,e+=i.encode(t.originalLine-1-c),c=t.originalLine-1,e+=i.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=i.encode(n-u),u=n)),h+=e}return h},s.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=r.relative(t,e));var n=r.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.h=s},25523:function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,i=/^data:.+\,.+$/;function r(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function o(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e){var n=e,i=r(e);if(i){if(!i.path)return e;n=i.path}for(var a,s=t.isAbsolute(n),l=n.split(/\/+/),c=0,u=l.length-1;u>=0;u--)"."===(a=l[u])?l.splice(u,1):".."===a?c++:c>0&&(""===a?(l.splice(u+1,c),c=0):(l.splice(u,2),c--));return""===(n=l.join("/"))&&(n=s?"/":"."),i?(i.path=n,o(i)):n}function s(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),s=r(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),o(n);if(n||t.match(i))return t;if(s&&!s.host&&!s.path)return s.host=t,o(s);var l="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=l,o(s)):l}t.urlParse=r,t.urlGenerate=o,t.normalize=a,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var i=e.lastIndexOf("/");if(i<0)return t;if((e=e.slice(0,i)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var l=!("__proto__"in Object.create(null));function c(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 d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=l?c:function(e){return u(e)?"$"+e:e},t.fromSetString=l?c:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var i=d(e.source,t.source);return 0!==i||0!=(i=e.originalLine-t.originalLine)||0!=(i=e.originalColumn-t.originalColumn)||n||0!=(i=e.generatedColumn-t.generatedColumn)||0!=(i=e.generatedLine-t.generatedLine)?i:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var i=e.generatedLine-t.generatedLine;return 0!==i||0!=(i=e.generatedColumn-t.generatedColumn)||n||0!==(i=d(e.source,t.source))||0!=(i=e.originalLine-t.originalLine)||0!=(i=e.originalColumn-t.originalColumn)?i:d(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=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var i=r(n);if(!i)throw new Error("sourceMapURL could not be parsed");if(i.path){var l=i.path.lastIndexOf("/");l>=0&&(i.path=i.path.substring(0,l+1))}t=s(o(i),t)}return a(t)}},52402:function(e){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],i=e[1],r=e[2],o=e[3];i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&r|~i&o)+t[0]-680876936|0)<<7|n>>>25)+i|0)&i|~n&r)+t[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&i)+t[2]+606105819|0)<<17|r>>>15)+o|0)&o|~r&n)+t[3]-1044525330|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&r|~i&o)+t[4]-176418897|0)<<7|n>>>25)+i|0)&i|~n&r)+t[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&i)+t[6]-1473231341|0)<<17|r>>>15)+o|0)&o|~r&n)+t[7]-45705983|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&r|~i&o)+t[8]+1770035416|0)<<7|n>>>25)+i|0)&i|~n&r)+t[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&i)+t[10]-42063|0)<<17|r>>>15)+o|0)&o|~r&n)+t[11]-1990404162|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&r|~i&o)+t[12]+1804603682|0)<<7|n>>>25)+i|0)&i|~n&r)+t[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&i)+t[14]-1502002290|0)<<17|r>>>15)+o|0)&o|~r&n)+t[15]+1236535329|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&o|r&~o)+t[1]-165796510|0)<<5|n>>>27)+i|0)&r|i&~r)+t[6]-1069501632|0)<<9|o>>>23)+n|0)&i|n&~i)+t[11]+643717713|0)<<14|r>>>18)+o|0)&n|o&~n)+t[0]-373897302|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&o|r&~o)+t[5]-701558691|0)<<5|n>>>27)+i|0)&r|i&~r)+t[10]+38016083|0)<<9|o>>>23)+n|0)&i|n&~i)+t[15]-660478335|0)<<14|r>>>18)+o|0)&n|o&~n)+t[4]-405537848|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&o|r&~o)+t[9]+568446438|0)<<5|n>>>27)+i|0)&r|i&~r)+t[14]-1019803690|0)<<9|o>>>23)+n|0)&i|n&~i)+t[3]-187363961|0)<<14|r>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&o|r&~o)+t[13]-1444681467|0)<<5|n>>>27)+i|0)&r|i&~r)+t[2]-51403784|0)<<9|o>>>23)+n|0)&i|n&~i)+t[7]+1735328473|0)<<14|r>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i^r^o)+t[5]-378558|0)<<4|n>>>28)+i|0)^i^r)+t[8]-2022574463|0)<<11|o>>>21)+n|0)^n^i)+t[11]+1839030562|0)<<16|r>>>16)+o|0)^o^n)+t[14]-35309556|0)<<23|i>>>9)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i^r^o)+t[1]-1530992060|0)<<4|n>>>28)+i|0)^i^r)+t[4]+1272893353|0)<<11|o>>>21)+n|0)^n^i)+t[7]-155497632|0)<<16|r>>>16)+o|0)^o^n)+t[10]-1094730640|0)<<23|i>>>9)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i^r^o)+t[13]+681279174|0)<<4|n>>>28)+i|0)^i^r)+t[0]-358537222|0)<<11|o>>>21)+n|0)^n^i)+t[3]-722521979|0)<<16|r>>>16)+o|0)^o^n)+t[6]+76029189|0)<<23|i>>>9)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i^r^o)+t[9]-640364487|0)<<4|n>>>28)+i|0)^i^r)+t[12]-421815835|0)<<11|o>>>21)+n|0)^n^i)+t[15]+530742520|0)<<16|r>>>16)+o|0)^o^n)+t[2]-995338651|0)<<23|i>>>9)+r|0,i=((i+=((o=((o+=(i^((n=((n+=(r^(i|~o))+t[0]-198630844|0)<<6|n>>>26)+i|0)|~r))+t[7]+1126891415|0)<<10|o>>>22)+n|0)^((r=((r+=(n^(o|~i))+t[14]-1416354905|0)<<15|r>>>17)+o|0)|~n))+t[5]-57434055|0)<<21|i>>>11)+r|0,i=((i+=((o=((o+=(i^((n=((n+=(r^(i|~o))+t[12]+1700485571|0)<<6|n>>>26)+i|0)|~r))+t[3]-1894986606|0)<<10|o>>>22)+n|0)^((r=((r+=(n^(o|~i))+t[10]-1051523|0)<<15|r>>>17)+o|0)|~n))+t[1]-2054922799|0)<<21|i>>>11)+r|0,i=((i+=((o=((o+=(i^((n=((n+=(r^(i|~o))+t[8]+1873313359|0)<<6|n>>>26)+i|0)|~r))+t[15]-30611744|0)<<10|o>>>22)+n|0)^((r=((r+=(n^(o|~i))+t[6]-1560198380|0)<<15|r>>>17)+o|0)|~n))+t[13]+1309151649|0)<<21|i>>>11)+r|0,i=((i+=((o=((o+=(i^((n=((n+=(r^(i|~o))+t[4]-145523070|0)<<6|n>>>26)+i|0)|~r))+t[11]-1120210379|0)<<10|o>>>22)+n|0)^((r=((r+=(n^(o|~i))+t[2]+718787259|0)<<15|r>>>17)+o|0)|~n))+t[9]-343485551|0)<<21|i>>>11)+r|0,e[0]=n+e[0]|0,e[1]=i+e[1]|0,e[2]=r+e[2]|0,e[3]=o+e[3]|0}function i(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 r(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,r,o,a,s,l,c=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(u,i(e.substring(t-64,t)));for(r=(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<r;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*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,n(u,o),u}function a(e){var n,i="";for(n=0;n<4;n+=1)i+=t[e>>8*n+4&15]+t[e>>8*n&15];return i}function s(e){var t;for(t=0;t<e.length;t+=1)e[t]=a(e[t]);return e.join("")}function l(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function c(e){var t,n=[],i=e.length;for(t=0;t<i-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 i,r,o,a,s=this.byteLength,l=e(t,s),c=s;return void 0!==n&&(c=e(n,s)),l>c?new ArrayBuffer(0):(i=c-l,r=new ArrayBuffer(i),o=new Uint8Array(r),a=new Uint8Array(this,l,i),o.set(a),r)}}(),u.prototype.append=function(e){return this.appendBinary(l(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,r=this._buff.length;for(t=64;t<=r;t+=64)n(this._hash,i(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,n,i=this._buff,r=i.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<r;t+=1)o[t>>2]|=i.charCodeAt(t)<<(t%4<<3);return this._finish(o,r),n=s(this._hash),e&&(n=c(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 i,r,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;i=(i=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),r=parseInt(i[2],16),o=parseInt(i[1],16)||0,e[14]=r,e[15]=o,n(this._hash,e)},u.hash=function(e,t){return u.hashBinary(l(e),t)},u.hashBinary=function(e,t){var n=s(o(e));return t?c(n):n},(u.ArrayBuffer=function(){this.reset()}).prototype.append=function(e){var t,i,o,a,s=(i=this._buff.buffer,o=e,!0,(a=new Uint8Array(i.byteLength+o.byteLength)).set(new Uint8Array(i)),a.set(new Uint8Array(o),i.byteLength),a),l=s.length;for(this._length+=e.byteLength,t=64;t<=l;t+=64)n(this._hash,r(s.subarray(t-64,t)));return this._buff=t-64<l?new Uint8Array(s.buffer.slice(t-64)):new Uint8Array(0),this},u.ArrayBuffer.prototype.end=function(e){var t,n,i=this._buff,r=i.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<r;t+=1)o[t>>2]|=i[t]<<(t%4<<3);return this._finish(o,r),n=s(this._hash),e&&(n=c(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,i=e.length,r=new ArrayBuffer(i),o=new Uint8Array(r);for(n=0;n<i;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 i=s(function(e){var t,i,o,a,s,l,c=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(u,r(e.subarray(t-64,t)));for(i=(e=t-64<c?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<i;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*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,n(u,o),u}(new Uint8Array(e)));return t?c(i):i},u}()},49940:function(e,t,n){var i=n(33499),r=n(54968),o=r;o.v1=i,o.v4=r,e.exports=o},83702:function(e){for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var i=n||0;return[t[e[i++]],t[e[i++]],t[e[i++]],t[e[i++]],"-",t[e[i++]],t[e[i++]],"-",t[e[i++]],t[e[i++]],"-",t[e[i++]],t[e[i++]],"-",t[e[i++]],t[e[i++]],t[e[i++]],t[e[i++]],t[e[i++]],t[e[i++]]].join("")}},1942:function(e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}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}}},33499:function(e,t,n){var i,r,o=n(1942),a=n(83702),s=0,l=0;e.exports=function(e,t,n){var c=t&&n||0,u=t||[],d=(e=e||{}).node||i,h=void 0!==e.clockseq?e.clockseq:r;if(null==d||null==h){var p=o();null==d&&(d=i=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==h&&(h=r=16383&(p[6]<<8|p[7]))}var f=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:l+1,g=f-s+(m-l)/1e4;if(g<0&&void 0===e.clockseq&&(h=h+1&16383),(g<0||f>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=f,l=m,r=h;var v=(1e4*(268435455&(f+=122192928e5))+m)%4294967296;u[c++]=v>>>24&255,u[c++]=v>>>16&255,u[c++]=v>>>8&255,u[c++]=255&v;var y=f/4294967296*1e4&268435455;u[c++]=y>>>8&255,u[c++]=255&y,u[c++]=y>>>24&15|16,u[c++]=y>>>16&255,u[c++]=h>>>8|128,u[c++]=255&h;for(var _=0;_<6;++_)u[c+_]=d[_];return t||a(u)}},54968:function(e,t,n){var i=n(1942),r=n(83702);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||i)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||r(a)}},3397:function(e){window,e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,(function(t){return e[t]}).bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttachAddon=void 0;var i=function(){function e(e,t){this._disposables=[],this._socket=e,this._socket.binaryType="arraybuffer",this._bidirectional=!t||!1!==t.bidirectional}return e.prototype.activate=function(e){var t=this;this._disposables.push(r(this._socket,"message",function(t){var n=t.data;e.write("string"==typeof n?n:new Uint8Array(n))})),this._bidirectional&&(this._disposables.push(e.onData(function(e){return t._sendData(e)})),this._disposables.push(e.onBinary(function(e){return t._sendBinary(e)}))),this._disposables.push(r(this._socket,"close",function(){return t.dispose()})),this._disposables.push(r(this._socket,"error",function(){return t.dispose()}))},e.prototype.dispose=function(){this._disposables.forEach(function(e){return e.dispose()})},e.prototype._sendData=function(e){1===this._socket.readyState&&this._socket.send(e)},e.prototype._sendBinary=function(e){if(1===this._socket.readyState){for(var t=new Uint8Array(e.length),n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);this._socket.send(t)}},e}();function r(e,t,n){return e.addEventListener(t,n),{dispose:function(){n&&e.removeEventListener(t,n)}}}t.AttachAddon=i}])},97916:function(e){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")),i=Math.max(0,parseInt(t.getPropertyValue("width"))),r=window.getComputedStyle(this._terminal.element),o=n-(parseInt(r.getPropertyValue("padding-top"))+parseInt(r.getPropertyValue("padding-bottom"))),a=i-(parseInt(r.getPropertyValue("padding-right"))+parseInt(r.getPropertyValue("padding-left")))-e.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(a/e._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(o/e._renderService.dimensions.actualCellHeight))}}}},e}();t.FitAddon=n}},t={};return function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}(775)}()},20039:function(e){self,e.exports=function(){"use strict";var e={4567:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;var o=n(9042),a=n(6114),s=n(6193),l=n(3656),c=n(844),u=n(5596),d=n(9631),h=function(e){function t(t,n){var i=e.call(this)||this;i._terminal=t,i._renderService=n,i._liveRegionLineCount=0,i._charsToConsume=[],i._charsToAnnounce="",i._accessibilityTreeRoot=document.createElement("div"),i._accessibilityTreeRoot.classList.add("xterm-accessibility"),i._rowContainer=document.createElement("div"),i._rowContainer.setAttribute("role","list"),i._rowContainer.classList.add("xterm-accessibility-tree"),i._rowElements=[];for(var r=0;r<i._terminal.rows;r++)i._rowElements[r]=i._createAccessibilityTreeNode(),i._rowContainer.appendChild(i._rowElements[r]);if(i._topBoundaryFocusListener=function(e){return i._onBoundaryFocus(e,0)},i._bottomBoundaryFocusListener=function(e){return i._onBoundaryFocus(e,1)},i._rowElements[0].addEventListener("focus",i._topBoundaryFocusListener),i._rowElements[i._rowElements.length-1].addEventListener("focus",i._bottomBoundaryFocusListener),i._refreshRowsDimensions(),i._accessibilityTreeRoot.appendChild(i._rowContainer),i._renderRowsDebouncer=new s.RenderDebouncer(i._renderRows.bind(i)),i._refreshRows(),i._liveRegion=document.createElement("div"),i._liveRegion.classList.add("live-region"),i._liveRegion.setAttribute("aria-live","assertive"),i._accessibilityTreeRoot.appendChild(i._liveRegion),!i._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return i._terminal.element.insertAdjacentElement("afterbegin",i._accessibilityTreeRoot),i.register(i._renderRowsDebouncer),i.register(i._terminal.onResize(function(e){return i._onResize(e.rows)})),i.register(i._terminal.onRender(function(e){return i._refreshRows(e.start,e.end)})),i.register(i._terminal.onScroll(function(){return i._refreshRows()})),i.register(i._terminal.onA11yChar(function(e){return i._onChar(e)})),i.register(i._terminal.onLineFeed(function(){return i._onChar("\n")})),i.register(i._terminal.onA11yTab(function(e){return i._onTab(e)})),i.register(i._terminal.onKey(function(e){return i._onKey(e.key)})),i.register(i._terminal.onBlur(function(){return i._clearLiveRegion()})),i.register(i._renderService.onDimensionsChange(function(){return i._refreshRowsDimensions()})),i._screenDprMonitor=new u.ScreenDprMonitor,i.register(i._screenDprMonitor),i._screenDprMonitor.setListener(function(){return i._refreshRowsDimensions()}),i.register(l.addDisposableDomListener(window,"resize",function(){return i._refreshRowsDimensions()})),i}return r(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),d.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},t.prototype._onBoundaryFocus=function(e,t){var n=e.target,i=this._rowElements[0===t?1:this._rowElements.length-2];if(n.getAttribute("aria-posinset")!==(0===t?"1":""+this._terminal.buffer.lines.length)&&e.relatedTarget===i){var r,o;if(0===t?(r=n,o=this._rowElements.pop(),this._rowContainer.removeChild(o)):(r=this._rowElements.shift(),o=n,this._rowContainer.removeChild(r)),r.removeEventListener("focus",this._topBoundaryFocusListener),o.removeEventListener("focus",this._bottomBoundaryFocusListener),0===t){var a=this._createAccessibilityTreeNode();this._rowElements.unshift(a),this._rowContainer.insertAdjacentElement("afterbegin",a)}else a=this._createAccessibilityTreeNode(),this._rowElements.push(a),this._rowContainer.appendChild(a);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===t?-1:1),this._rowElements[0===t?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}},t.prototype._onResize=function(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},t.prototype._onTab=function(e){for(var t=0;t<e;t++)this._onChar(" ")},t.prototype._onChar=function(e){var t=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=o.tooMuchOutput)),a.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){t._accessibilityTreeRoot.appendChild(t._liveRegion)},0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,a.isMac&&d.removeElementFromParent(this._liveRegion)},t.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},t.prototype._refreshRows=function(e,t){this._renderRowsDebouncer.refresh(e,t,this._terminal.rows)},t.prototype._renderRows=function(e,t){for(var n=this._terminal.buffer,i=n.lines.length.toString(),r=e;r<=t;r++){var o=n.translateBufferLineToString(n.ydisp+r,!0),a=(n.ydisp+r+1).toString(),s=this._rowElements[r];s&&(0===o.length?s.innerText="\xa0":s.textContent=o,s.setAttribute("aria-posinset",a),s.setAttribute("aria-setsize",i))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}},t.prototype._refreshRowDimensions=function(e){e.style.height=this._renderService.dimensions.actualCellHeight+"px"},t.prototype._announceCharacters=function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},t}(c.Disposable);t.AccessibilityManager=h},3614:function(e,t){function n(e){return e.replace(/\r?\n/g,"\r")}function i(e,t){return t?"\x1b[200~"+e+"\x1b[201~":e}function r(e,t,r){e=i(e=n(e),r.decPrivateModes.bracketedPasteMode),r.triggerDataEvent(e,!0),t.value=""}function o(e,t,n){var i=n.getBoundingClientRect(),r=e.clientX-i.left-10,o=e.clientY-i.top-10;t.style.width="20px",t.style.height="20px",t.style.left=r+"px",t.style.top=o+"px",t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=n,t.bracketTextForPaste=i,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&&r(e.clipboardData.getData("text/plain"),t,n)},t.paste=r,t.moveTextAreaUnderMouseCursor=o,t.rightClickHandler=function(e,t,n,i,r){o(e,t,n),r&&i.rightClickSelect(e),t.value=i.selectionText,t.select()}},4774:function(e,t){var n,i,r,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,i){return void 0!==i?"#"+a(e)+a(t)+a(n)+a(i):"#"+a(e)+a(t)+a(n)},e.toRgba=function(e,t,n,i){return void 0===i&&(i=255),(e<<24|t<<16|n<<8|i)>>>0}}(n=t.channels||(t.channels={})),(i=t.color||(t.color={})).blend=function(e,t){var i=(255&t.rgba)/255;if(1===i)return{css:t.css,rgba:t.rgba};var r=t.rgba>>16&255,o=t.rgba>>8&255,a=e.rgba>>24&255,s=e.rgba>>16&255,l=e.rgba>>8&255,c=a+Math.round(((t.rgba>>24&255)-a)*i),u=s+Math.round((r-s)*i),d=l+Math.round((o-l)*i);return{css:n.toCss(c,u,d),rgba:n.toRgba(c,u,d)}},i.isOpaque=function(e){return 255==(255&e.rgba)},i.ensureContrastRatio=function(e,t,n){var i=o.ensureContrastRatio(e.rgba,t.rgba,n);if(i)return o.toColor(i>>24&255,i>>16&255,i>>8&255)},i.opaque=function(e){var t=(255|e.rgba)>>>0,i=o.toChannels(t);return{css:n.toCss(i[0],i[1],i[2]),rgba:t}},i.opacity=function(e,t){var i=Math.round(255*t),r=o.toChannels(e.rgba),a=r[0],s=r[1],l=r[2];return{css:n.toCss(a,s,l,i),rgba:n.toRgba(a,s,l,i)}},(t.css||(t.css={})).toColor=function(e){switch(e.length){case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(e){function t(e,t,n){var i=e/255,r=t/255,o=n/255;return.2126*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(r=t.rgb||(t.rgb={})),function(e){function t(e,t,n){for(var i=e>>24&255,o=e>>16&255,a=e>>8&255,l=t>>24&255,c=t>>16&255,u=t>>8&255,d=s(r.relativeLuminance2(l,u,c),r.relativeLuminance2(i,o,a));d<n&&(l>0||c>0||u>0);)l-=Math.max(0,Math.ceil(.1*l)),c-=Math.max(0,Math.ceil(.1*c)),u-=Math.max(0,Math.ceil(.1*u)),d=s(r.relativeLuminance2(l,u,c),r.relativeLuminance2(i,o,a));return(l<<24|c<<16|u<<8|255)>>>0}function i(e,t,n){for(var i=e>>24&255,o=e>>16&255,a=e>>8&255,l=t>>24&255,c=t>>16&255,u=t>>8&255,d=s(r.relativeLuminance2(l,u,c),r.relativeLuminance2(i,o,a));d<n&&(l<255||c<255||u<255);)l=Math.min(255,l+Math.ceil(.1*(255-l))),c=Math.min(255,c+Math.ceil(.1*(255-c))),u=Math.min(255,u+Math.ceil(.1*(255-u))),d=s(r.relativeLuminance2(l,u,c),r.relativeLuminance2(i,o,a));return(l<<24|c<<16|u<<8|255)>>>0}e.ensureContrastRatio=function(e,n,o){var a=r.relativeLuminance(e>>8),l=r.relativeLuminance(n>>8);if(s(a,l)<o)return l<a?t(e,n,o):i(e,n,o)},e.reduceLuminance=t,e.increaseLuminance=i,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,i){return{css:n.toCss(e,t,i),rgba:n.toRgba(e,t,i)}}}(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 i=n(4774),r=n(7239),o=i.css.toColor("#ffffff"),a=i.css.toColor("#000000"),s=i.css.toColor("#ffffff"),l=i.css.toColor("#000000"),c={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var e=[i.css.toColor("#2e3436"),i.css.toColor("#cc0000"),i.css.toColor("#4e9a06"),i.css.toColor("#c4a000"),i.css.toColor("#3465a4"),i.css.toColor("#75507b"),i.css.toColor("#06989a"),i.css.toColor("#d3d7cf"),i.css.toColor("#555753"),i.css.toColor("#ef2929"),i.css.toColor("#8ae234"),i.css.toColor("#fce94f"),i.css.toColor("#729fcf"),i.css.toColor("#ad7fa8"),i.css.toColor("#34e2e2"),i.css.toColor("#eeeeec")],t=[0,95,135,175,215,255],n=0;n<216;n++){var r=t[n/36%6|0],o=t[n/6%6|0],a=t[n%6];e.push({css:i.channels.toCss(r,o,a),rgba:i.channels.toRgba(r,o,a)})}for(n=0;n<24;n++){var s=8+10*n;e.push({css:i.channels.toCss(s,s,s),rgba:i.channels.toRgba(s,s,s)})}return e}());var u=function(){function e(e,n){this.allowTransparency=n;var u=e.createElement("canvas");u.width=1,u.height=1;var d=u.getContext("2d");if(!d)throw new Error("Could not get rendering context");this._ctx=d,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new r.ColorContrastCache,this.colors={foreground:o,background:a,cursor:s,cursorAccent:l,selectionTransparent:c,selectionOpaque:i.color.blend(a,c),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,l,!0),this.colors.selectionTransparent=this._parseColor(e.selection,c,!0),this.colors.selectionOpaque=i.color.blend(this.colors.background,this.colors.selectionTransparent),i.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=i.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(e.black,t.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,t.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,t.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,t.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,t.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,t.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,t.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,t.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,t.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},e.prototype._parseColor=function(e,t,n){if(void 0===n&&(n=this.allowTransparency),void 0===e)return t;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+e+" is invalid using fallback "+t.css),t;this._ctx.fillRect(0,0,1,1);var r=this._ctx.getImageData(0,0,1,1).data;if(255!==r[3]){if(!n)return console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+t.css+"."),t;var o=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(e){return Number(e)}),a=o[0],s=o[1],l=o[2],c=Math.round(255*o[3]);return{rgba:i.channels.toRgba(a,s,l,c),css:e}}return{css:this._ctx.fillStyle,rgba:i.channels.toRgba(r[0],r[1],r[2],r[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 i=0,r=t;i<r.length;i++){var o=r[i];null===(e=null==o?void 0:o.parentElement)||void 0===e||e.removeChild(o)}}},3656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,n,i){e.addEventListener(t,n,i);var r=!1;return{dispose:function(){r||(r=!0,e.removeEventListener(t,n,i))}}}},3551:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZone=t.Linkifier=void 0;var o=n(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 i=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=n):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,n)),this._mouseZoneManager.clearAll(t,n),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return i._linkifyRows()},e._timeBeforeLatency))},e.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var e=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var t=e.ydisp+this._rowsToLinkify.start;if(!(t>=e.lines.length)){for(var n=e.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,i=Math.ceil(2e3/this._bufferService.cols),r=this._bufferService.buffer.iterator(!1,t,n,i,i);r.hasNext();)for(var o=r.next(),a=0;a<this._linkMatchers.length;a++)this._doLinkifyRow(o.range.first,o.content,this._linkMatchers[a]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},e.prototype.registerLinkMatcher=function(e,t,n){if(void 0===n&&(n={}),!t)throw new Error("handler must be defined");var i={id:this._nextLinkMatcherId++,regex:e,handler:t,matchIndex:n.matchIndex,validationCallback:n.validationCallback,hoverTooltipCallback:n.tooltipCallback,hoverLeaveCallback:n.leaveCallback,willLinkActivate:n.willLinkActivate,priority:n.priority||0};return this._addLinkMatcherToList(i),i.id},e.prototype._addLinkMatcherToList=function(e){if(0!==this._linkMatchers.length){for(var t=this._linkMatchers.length-1;t>=0;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},e.prototype.deregisterLinkMatcher=function(e){for(var t=0;t<this._linkMatchers.length;t++)if(this._linkMatchers[t].id===e)return this._linkMatchers.splice(t,1),!0;return!1},e.prototype._doLinkifyRow=function(e,t,n){for(var i,r=this,o=new RegExp(n.regex.source,(n.regex.flags||"")+"g"),a=-1,s=function(){var s=i["number"!=typeof n.matchIndex?0:n.matchIndex];if(!s)return l._logService.debug("match found without corresponding matchIndex",i,n),"break";if(a=t.indexOf(s,a+1),o.lastIndex=a+s.length,a<0)return"break";var c=l._bufferService.buffer.stringIndexToBufferIndex(e,a);if(c[0]<0)return"break";var u=l._bufferService.buffer.lines.get(c[0]);if(!u)return"break";var d=u.getFg(c[1]),h=d?d>>9&511:void 0;n.validationCallback?n.validationCallback(s,function(e){r._rowsTimeoutId||e&&r._addLink(c[1],c[0]-r._bufferService.buffer.ydisp,s,n,h)}):l._addLink(c[1],c[0]-l._bufferService.buffer.ydisp,s,n,h)},l=this;null!==(i=o.exec(t))&&"break"!==s(););},e.prototype._addLink=function(e,t,n,i,r){var o=this;if(this._mouseZoneManager&&this._element){var a=this._unicodeService.getStringCellWidth(n),s=e%this._bufferService.cols,c=t+Math.floor(e/this._bufferService.cols),u=(s+a)%this._bufferService.cols,d=c+Math.floor((s+a)/this._bufferService.cols);0===u&&(u=this._bufferService.cols,d--),this._mouseZoneManager.add(new l(s+1,c+1,u+1,d+1,function(e){if(i.handler)return i.handler(e,n);var t=window.open();t?(t.opener=null,t.location.href=n):console.warn("Opening link blocked as opener could not be cleared")},function(){o._onShowLinkUnderline.fire(o._createLinkHoverEvent(s,c,u,d,r)),o._element.classList.add("xterm-cursor-pointer")},function(e){o._onLinkTooltip.fire(o._createLinkHoverEvent(s,c,u,d,r)),i.hoverTooltipCallback&&i.hoverTooltipCallback(e,n,{start:{x:s,y:c},end:{x:u,y:d}})},function(){o._onHideLinkUnderline.fire(o._createLinkHoverEvent(s,c,u,d,r)),o._element.classList.remove("xterm-cursor-pointer"),i.hoverLeaveCallback&&i.hoverLeaveCallback()},function(e){return!i.willLinkActivate||i.willLinkActivate(e,n)}))}},e.prototype._createLinkHoverEvent=function(e,t,n,i,r){return{x1:e,y1:t,x2:n,y2:i,cols:this._bufferService.cols,fg:r}},e._timeBeforeLatency=200,e=i([r(0,a.IBufferService),r(1,a.ILogService),r(2,a.IUnicodeService)],e)}();t.Linkifier=s;var l=function(e,t,n,i,r,o,a,s,l){this.x1=e,this.y1=t,this.x2=n,this.y2=i,this.clickCallback=r,this.hoverCallback=o,this.tooltipCallback=a,this.leaveCallback=s,this.willLinkActivate=l};t.MouseZone=l},6465:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;var s=n(2585),l=n(8460),c=n(844),u=n(3656),d=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 l.EventEmitter),n._onHideLinkUnderline=n.register(new l.EventEmitter),n.register(c.getDisposeArrayDisposable(n._linkCacheDisposables)),n}return r(t,e),Object.defineProperty(t.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),t.prototype.registerLinkProvider=function(e){var t=this;return this._linkProviders.push(e),{dispose:function(){var n=t._linkProviders.indexOf(e);-1!==n&&t._linkProviders.splice(n,1)}}},t.prototype.attachToDom=function(e,t,n){var i=this;this._element=e,this._mouseService=t,this._renderService=n,this.register(u.addDisposableDomListener(this._element,"mouseleave",function(){i._isMouseOut=!0,i._clearCurrentLink()})),this.register(u.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(u.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},t.prototype._onMouseMove=function(e){if(this._lastMouseEvent=e,this._element&&this._mouseService){var t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(t){this._isMouseOut=!1;for(var n=e.composedPath(),i=0;i<n.length;i++){var r=n[i];if(r.classList.contains("xterm"))break;if(r.classList.contains("xterm-hover"))return}this._lastBufferCell&&t.x===this._lastBufferCell.x&&t.y===this._lastBufferCell.y||(this._onHover(t),this._lastBufferCell=t)}}},t.prototype._onHover=function(e){if(this._activeLine!==e.y)return this._clearCurrentLink(),void this._askForLink(e,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))},t.prototype._askForLink=function(e,t){var n,i=this;this._activeProviderReplies&&t||(null===(n=this._activeProviderReplies)||void 0===n||n.forEach(function(e){null==e||e.forEach(function(e){e.link.dispose&&e.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);var r=!1;this._linkProviders.forEach(function(n,o){var a;t?(null===(a=i._activeProviderReplies)||void 0===a?void 0:a.get(o))&&(r=i._checkLinkProviderResult(o,e,r)):n.provideLinks(e.y,function(t){var n,a;if(!i._isMouseOut){var s=null==t?void 0:t.map(function(e){return{link:e}});null===(n=i._activeProviderReplies)||void 0===n||n.set(o,s),r=i._checkLinkProviderResult(o,e,r),(null===(a=i._activeProviderReplies)||void 0===a?void 0:a.size)===i._linkProviders.length&&i._removeIntersectingLinks(e.y,i._activeProviderReplies)}})})},t.prototype._removeIntersectingLinks=function(e,t){for(var n=new Set,i=0;i<t.size;i++){var r=t.get(i);if(r)for(var o=0;o<r.length;o++)for(var a=r[o],s=a.link.range.end.y>e?this._bufferService.cols:a.link.range.end.x,l=a.link.range.start.y<e?0:a.link.range.start.x;l<=s;l++){if(n.has(l)){r.splice(o--,1);break}n.add(l)}}},t.prototype._checkLinkProviderResult=function(e,t,n){var i,r=this;if(!this._activeProviderReplies)return n;for(var o=this._activeProviderReplies.get(e),a=!1,s=0;s<e;s++)this._activeProviderReplies.has(s)&&!this._activeProviderReplies.get(s)||(a=!0);if(!a&&o){var l=o.find(function(e){return r._linkAtPosition(e.link,t)});l&&(n=!0,this._handleNewLink(l))}if(this._activeProviderReplies.size===this._linkProviders.length&&!n)for(s=0;s<this._activeProviderReplies.size;s++){var c=null===(i=this._activeProviderReplies.get(s))||void 0===i?void 0:i.find(function(e){return r._linkAtPosition(e.link,t)});if(c){n=!0,this._handleNewLink(c);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,c.disposeArray(this._linkCacheDisposables))},t.prototype._handleNewLink=function(e){var t=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var n=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);n&&this._linkAtPosition(e.link,n)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:void 0===e.link.decorations||e.link.decorations.underline,pointerCursor:void 0===e.link.decorations||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:function(){var e,n;return null===(n=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===n?void 0:n.decorations.pointerCursor},set:function(e){var n,i;(null===(n=t._currentLink)||void 0===n?void 0:n.state)&&t._currentLink.state.decorations.pointerCursor!==e&&(t._currentLink.state.decorations.pointerCursor=e,t._currentLink.state.isHovered&&(null===(i=t._element)||void 0===i||i.classList.toggle("xterm-cursor-pointer",e)))}},underline:{get:function(){var e,n;return null===(n=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===n?void 0:n.decorations.underline},set:function(n){var i,r,o;(null===(i=t._currentLink)||void 0===i?void 0:i.state)&&(null===(o=null===(r=t._currentLink)||void 0===r?void 0:r.state)||void 0===o?void 0:o.decorations.underline)!==n&&(t._currentLink.state.decorations.underline=n,t._currentLink.state.isHovered&&t._fireUnderlineEvent(e.link,n))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(e){t._clearCurrentLink(0===e.start?0:e.start+1+t._bufferService.buffer.ydisp,e.end+1+t._bufferService.buffer.ydisp)})))}},t.prototype._linkHover=function(e,t,n){var i;(null===(i=this._currentLink)||void 0===i?void 0:i.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(n,t.text)},t.prototype._fireUnderlineEvent=function(e,t){var n=e.range,i=this._bufferService.buffer.ydisp,r=this._createLinkUnderlineEvent(n.start.x-1,n.start.y-i-1,n.end.x,n.end.y-i-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(r)},t.prototype._linkLeave=function(e,t,n){var i;(null===(i=this._currentLink)||void 0===i?void 0:i.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(n,t.text)},t.prototype._linkAtPosition=function(e,t){var n=e.range.start.y<t.y,i=e.range.end.y>t.y;return(e.range.start.y===e.range.end.y&&e.range.start.x<=t.x&&e.range.end.x>=t.x||n&&e.range.end.x>=t.x||i&&e.range.start.x<=t.x||n&&i)&&e.range.start.y<=t.y&&e.range.end.y>=t.y},t.prototype._positionFromMouseEvent=function(e,t,n){var i=n.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(i)return{x:i[0],y:i[1]+this._bufferService.buffer.ydisp}},t.prototype._createLinkUnderlineEvent=function(e,t,n,i,r){return{x1:e,y1:t,x2:n,y2:i,cols:this._bufferService.cols,fg:r}},o([a(0,s.IBufferService)],t)}(c.Disposable);t.Linkifier2=d},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 i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZoneManager=void 0;var s=n(844),l=n(3656),c=n(4725),u=n(2585),d=function(e){function t(t,n,i,r,o,a){var s=e.call(this)||this;return s._element=t,s._screenElement=n,s._bufferService=i,s._mouseService=r,s._selectionService=o,s._optionsService=a,s._zones=[],s._areZonesActive=!1,s._lastHoverCoords=[void 0,void 0],s._initialSelectionLength=0,s.register(l.addDisposableDomListener(s._element,"mousedown",function(e){return s._onMouseDown(e)})),s._mouseMoveListener=function(e){return s._onMouseMove(e)},s._mouseLeaveListener=function(e){return s._onMouseLeave(e)},s._clickListener=function(e){return s._onClick(e)},s}return r(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},t.prototype.add=function(e){this._zones.push(e),1===this._zones.length&&this._activate()},t.prototype.clearAll=function(e,t){if(0!==this._zones.length){e&&t||(e=0,t=this._bufferService.rows-1);for(var n=0;n<this._zones.length;n++){var i=this._zones[n];(i.y1>e&&i.y1<=t+1||i.y2>e&&i.y2<=t+1||i.y1<e&&i.y2>t+1)&&(this._currentZone&&this._currentZone===i&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(n--,1))}0===this._zones.length&&this._deactivate()}},t.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},t.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},t.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},t.prototype._onHover=function(e){var t=this,n=this._findZoneEventAt(e);n!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),n&&(this._currentZone=n,n.hoverCallback&&n.hoverCallback(e),this._tooltipTimeout=window.setTimeout(function(){return t._onTooltip(e)},this._optionsService.options.linkTooltipHoverDuration)))},t.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var t=this._findZoneEventAt(e);null==t||t.tooltipCallback(e)},t.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var t=this._findZoneEventAt(e);(null==t?void 0:t.willLinkActivate(e))&&(e.preventDefault(),e.stopImmediatePropagation())}},t.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},t.prototype._onClick=function(e){var t=this._findZoneEventAt(e),n=this._getSelectionLength();t&&n===this._initialSelectionLength&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},t.prototype._findZoneEventAt=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(t)for(var n=t[0],i=t[1],r=0;r<this._zones.length;r++){var o=this._zones[r];if(o.y1===o.y2){if(i===o.y1&&n>=o.x1&&n<o.x2)return o}else if(i===o.y1&&n>=o.x1||i===o.y2&&n<o.x2||i>o.y1&&i<o.y2)return o}},o([a(2,u.IBufferService),a(3,c.IMouseService),a(4,c.ISelectionService),a(5,u.IOptionsService)],t)}(s.Disposable);t.MouseZoneManager=d},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 i=this;this._rowCount=n,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return i._innerRefresh()}))},e.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(e,t)}},e}();t.RenderDebouncer=n},5596:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._currentDevicePixelRatio=window.devicePixelRatio,t}return r(t,e),t.prototype.setListener=function(e){var t=this;this._listener&&this.clearListener(),this._listener=e,this._outerListener=function(){t._listener&&(t._listener(window.devicePixelRatio,t._currentDevicePixelRatio),t._updateDpr())},this._updateDpr()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearListener()},t.prototype._updateDpr=function(){var e;this._outerListener&&(null===(e=this._resolutionMediaMatchList)||void 0===e||e.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},t.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},t}(n(844).Disposable);t.ScreenDprMonitor=o},3236:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var o=n(2950),a=n(1680),s=n(3614),l=n(2584),c=n(5435),u=n(3525),d=n(3551),h=n(9312),p=n(6114),f=n(3656),m=n(9042),g=n(357),v=n(6954),y=n(4567),_=n(1296),b=n(7399),w=n(8460),S=n(8437),x=n(5680),C=n(3230),k=n(4725),T=n(428),A=n(8934),Z=n(6465),M=n(5114),O=n(8969),E=n(4774),P=n(4269),I="undefined"!=typeof window?window.document:null,q=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.browser=p,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._onBell=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(d.Linkifier),n.linkifier2=n.register(n._instantiationService.createInstance(Z.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.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 r(t,e),Object.defineProperty(t.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBell",{get:function(){return this._onBell.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;if(this._colorManager){for(var i=0,r=e.colors;i<r.length;i++){var o=r[i],a=E.rgba.toColor(o.red,o.green,o.blue);this._colorManager.colors.ansi[o.colorIndex]=a}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,i;this._isDisposed||(e.prototype.dispose.call(this),null===(t=this._renderService)||void 0===t||t.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},null===(i=null===(n=this.element)||void 0===n?void 0:n.parentNode)||void 0===i||i.removeChild(this.element))},t.prototype._setup=function(){e.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(t.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),t.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},t.prototype._updateOptions=function(t){var n,i,r,o;switch(e.prototype._updateOptions.call(this,t),t){case"fontFamily":case"fontSize":null===(n=this._renderService)||void 0===n||n.clear(),null===(i=this._charSizeService)||void 0===i||i.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":null===(r=this.viewport)||void 0===r||r.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new y.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(l.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(l.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},t.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){var e=this.buffer.lines.get(this.buffer.ybase+this.buffer.y);if(e){var t=Math.min(this.buffer.x,this.cols-1),n=this._renderService.dimensions.actualCellHeight,i=e.getWidth(t),r=this._renderService.dimensions.actualCellWidth*i,o=this.buffer.y*this._renderService.dimensions.actualCellHeight;this.textarea.style.left=t*this._renderService.dimensions.actualCellWidth+"px",this.textarea.style.top=o+"px",this.textarea.style.width=r+"px",this.textarea.style.height=n+"px",this.textarea.style.lineHeight=n+"px",this.textarea.style.zIndex="-5"}}},t.prototype._initGlobal=function(){var e=this;this._bindKeys(),this.register(f.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(f.addDisposableDomListener(this.textarea,"paste",t)),this.register(f.addDisposableDomListener(this.element,"paste",t)),this.register(p.isFirefox?f.addDisposableDomListener(this.element,"mousedown",function(t){2===t.button&&s.rightClickHandler(t,e.textarea,e.screenElement,e._selectionService,e.options.rightClickSelectsWord)}):f.addDisposableDomListener(this.element,"contextmenu",function(t){s.rightClickHandler(t,e.textarea,e.screenElement,e._selectionService,e.options.rightClickSelectsWord)})),p.isLinux&&this.register(f.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(f.addDisposableDomListener(this.textarea,"keyup",function(t){return e._keyUp(t)},!0)),this.register(f.addDisposableDomListener(this.textarea,"keydown",function(t){return e._keyDown(t)},!0)),this.register(f.addDisposableDomListener(this.textarea,"keypress",function(t){return e._keyPress(t)},!0)),this.register(f.addDisposableDomListener(this.textarea,"compositionstart",function(){return e._compositionHelper.compositionstart()})),this.register(f.addDisposableDomListener(this.textarea,"compositionupdate",function(t){return e._compositionHelper.compositionupdate(t)})),this.register(f.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(f.addDisposableDomListener(this.textarea,"focus",function(e){return t._onTextAreaFocus(e)})),this.register(f.addDisposableDomListener(this.textarea,"blur",function(){return t._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var i=this._instantiationService.createInstance(M.CoreBrowserService,this.textarea);this._instantiationService.setService(k.ICoreBrowserService,i),this._charSizeService=this._instantiationService.createInstance(T.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(k.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new x.ColorManager(I,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(e){return t._colorManager.onOptionsChange(e)})),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(P.CharacterJoinerService),this._instantiationService.setService(k.ICharacterJoinerService,this._characterJoinerService);var r=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(C.RenderService,r,this.rows,this.screenElement)),this._instantiationService.setService(k.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._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._soundService=this._instantiationService.createInstance(g.SoundService),this._instantiationService.setService(k.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(A.MouseService),this._instantiationService.setService(k.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(a.Viewport,function(e){return t.scrollLines(e,!0,1)},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(h.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(k.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.event(function(e){t.viewport.syncScrollArea(),t._selectionService.refresh()})),this.register(f.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(f.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 y.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(_.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},t.prototype._setTheme=function(e){var t,n,i;this._theme=e,null===(t=this._colorManager)||void 0===t||t.setTheme(e),null===(n=this._renderService)||void 0===n||n.setColors(this._colorManager.colors),null===(i=this.viewport)||void 0===i||i.onThemeChange(this._colorManager.colors)},t.prototype.bindMouse=function(){var e=this,t=this,n=this.element;function i(e){var n,i,r=t._mouseService.getRawByteCoords(e,t.screenElement,t.cols,t.rows);if(!r)return!1;switch(e.overrideType||e.type){case"mousemove":i=32,void 0===e.buttons?(n=3,void 0!==e.button&&(n=e.button<3?e.button:3)):n=1&e.buttons?0:4&e.buttons?1:2&e.buttons?2:3;break;case"mouseup":i=0,n=e.button<3?e.button:3;break;case"mousedown":i=1,n=e.button<3?e.button:3;break;case"wheel":0!==e.deltaY&&(i=e.deltaY<0?0:1),n=4;break;default:return!1}return!(void 0===i||void 0===n||n>4)&&t._coreMouseService.triggerMouseEvent({col:r.x-33,row:r.y-33,button:n,action:i,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})}var r={mouseup:null,wheel:null,mousedrag:null,mousemove:null},o=function(t){return i(t),t.buttons||(e._document.removeEventListener("mouseup",r.mouseup),r.mousedrag&&e._document.removeEventListener("mousemove",r.mousedrag)),e.cancel(t)},a=function(t){return i(t),t.preventDefault(),e.cancel(t)},s=function(e){e.buttons&&i(e)},c=function(e){e.buttons||i(e)};this.register(this._coreMouseService.onProtocolChange(function(t){t?("debug"===e.optionsService.options.logLevel&&e._logService.debug("Binding to mouse events:",e._coreMouseService.explainEvents(t)),e.element.classList.add("enable-mouse-events"),e._selectionService.disable()):(e._logService.debug("Unbinding from mouse events."),e.element.classList.remove("enable-mouse-events"),e._selectionService.enable()),8&t?r.mousemove||(n.addEventListener("mousemove",c),r.mousemove=c):(n.removeEventListener("mousemove",r.mousemove),r.mousemove=null),16&t?r.wheel||(n.addEventListener("wheel",a,{passive:!1}),r.wheel=a):(n.removeEventListener("wheel",r.wheel),r.wheel=null),2&t?r.mouseup||(r.mouseup=o):(e._document.removeEventListener("mouseup",r.mouseup),r.mouseup=null),4&t?r.mousedrag||(r.mousedrag=s):(e._document.removeEventListener("mousemove",r.mousedrag),r.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(f.addDisposableDomListener(n,"mousedown",function(t){if(t.preventDefault(),e.focus(),e._coreMouseService.areMouseEventsActive&&!e._selectionService.shouldForceSelection(t))return i(t),r.mouseup&&e._document.addEventListener("mouseup",r.mouseup),r.mousedrag&&e._document.addEventListener("mousemove",r.mousedrag),e.cancel(t)})),this.register(f.addDisposableDomListener(n,"wheel",function(t){if(r.wheel);else if(!e.buffer.hasScrollback){var n=e.viewport.getLinesScrolled(t);if(0===n)return;for(var i=l.C0.ESC+(e._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(t.deltaY<0?"A":"B"),o="",a=0;a<Math.abs(n);a++)o+=i;e._coreService.triggerDataEvent(o,!0)}},{passive:!0})),this.register(f.addDisposableDomListener(n,"wheel",function(t){if(!r.wheel)return e.viewport.onWheel(t)?void 0:e.cancel(t)},{passive:!1})),this.register(f.addDisposableDomListener(n,"touchstart",function(t){if(!e._coreMouseService.areMouseEventsActive)return e.viewport.onTouchStart(t),e.cancel(t)},{passive:!0})),this.register(f.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){var t;(null===(t=this._selectionService)||void 0===t?void 0:t.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,i){void 0===i&&(i=0),e.prototype.scrollLines.call(this,t,n,i),this.refresh(0,this.rows-1)},t.prototype.paste=function(e){s.paste(e,this.textarea,this._coreService)},t.prototype.attachCustomKeyEventHandler=function(e){this._customKeyEventHandler=e},t.prototype.registerLinkMatcher=function(e,t,n){var i=this.linkifier.registerLinkMatcher(e,t,n);return this.refresh(0,this.rows-1),i},t.prototype.deregisterLinkMatcher=function(e){this.linkifier.deregisterLinkMatcher(e)&&this.refresh(0,this.rows-1)},t.prototype.registerLinkProvider=function(e){return this.linkifier2.registerLinkProvider(e)},t.prototype.registerCharacterJoiner=function(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t},t.prototype.deregisterCharacterJoiner=function(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(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._bufferService.scrollToBottom(),!1;var t=b.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!==l.C0.ETX&&t.key!==l.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(){var e;this._soundBell()&&(null===(e=this._soundService)||void 0===e||e.playBellSound()),this._onBell.fire()},t.prototype.resize=function(t,n){t!==this.cols||n!==this.rows?e.prototype.resize.call(this,t,n):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},t.prototype._afterResize=function(e,t){var n,i;null===(n=this._charSizeService)||void 0===n||n.measure(),null===(i=this.viewport)||void 0===i||i.syncScrollArea(!0)},t.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(S.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}},t.prototype.reset=function(){var t,n;this.options.rows=this.rows,this.options.cols=this.cols;var i=this._customKeyEventHandler;this._setup(),e.prototype.reset.call(this),null===(t=this._selectionService)||void 0===t||t.reset(),this._customKeyEventHandler=i,this.refresh(0,this.rows-1),null===(n=this.viewport)||void 0===n||n.syncScrollArea()},t.prototype._reportWindowsOptions=function(e){if(this._renderService)switch(e){case c.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var t=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),n=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(l.C0.ESC+"[4;"+n+";"+t+"t");break;case c.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var i=this._renderService.dimensions.scaledCellWidth.toFixed(0),r=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(l.C0.ESC+"[6;"+r+";"+i+"t")}},t.prototype.cancel=function(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1},t.prototype._visualBell=function(){return!1},t.prototype._soundBell=function(){return"sound"===this.options.bellStyle},t}(O.CoreTerminal);t.Terminal=q},1680:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;var s=n(844),l=n(3656),c=n(4725),u=n(2585),d=function(e){function t(t,n,i,r,o,a,s){var c=e.call(this)||this;return c._scrollLines=t,c._viewportElement=n,c._scrollArea=i,c._bufferService=r,c._optionsService=o,c._charSizeService=a,c._renderService=s,c.scrollBarWidth=0,c._currentRowHeight=0,c._lastRecordedBufferLength=0,c._lastRecordedViewportHeight=0,c._lastRecordedBufferHeight=0,c._lastTouchY=0,c._lastScrollTop=0,c._wheelPartialScroll=0,c._refreshAnimationFrame=null,c._ignoreNextScrollEvent=!1,c.scrollBarWidth=c._viewportElement.offsetWidth-c._scrollArea.offsetWidth||15,c.register(l.addDisposableDomListener(c._viewportElement,"scroll",c._onScroll.bind(c))),setTimeout(function(){return c.syncScrollArea()},0),c}return r(t,e),t.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},t.prototype._refresh=function(e){var t=this;if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return t._innerRefresh()}))},t.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null},t.prototype.syncScrollArea=function(e){if(void 0===e&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._bufferService.buffer.ydisp*this._currentRowHeight&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(e)},t.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t)}},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,c.ICharSizeService),a(6,c.IRenderService)],t)}(s.Disposable);t.Viewport=d},2950:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;var o=n(4725),a=n(2585),s=function(){function e(e,t,n,i,r,o){this._textarea=e,this._compositionView=t,this._bufferService=n,this._optionsService=i,this._coreService=r,this._renderService=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 i=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(i,!0)}},e.prototype._handleAnyTextareaChanges=function(){var e=this,t=this._textarea.value;setTimeout(function(){if(!e._isComposing){var n=e._textarea.value.replace(t,"");n.length>0&&(e._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.min(this._bufferService.buffer.x,this._bufferService.cols-1),i=this._renderService.dimensions.actualCellHeight,r=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,o=n*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=o+"px",this._compositionView.style.top=r+"px",this._compositionView.style.height=i+"px",this._compositionView.style.lineHeight=i+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var a=this._compositionView.getBoundingClientRect();this._textarea.style.left=o+"px",this._textarea.style.top=r+"px",this._textarea.style.width=Math.max(a.width,1)+"px",this._textarea.style.height=Math.max(a.height,1)+"px",this._textarea.style.lineHeight=a.height+"px"}e||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},i([r(2,a.IBufferService),r(3,a.IOptionsService),r(4,a.ICoreService),r(5,o.IRenderService)],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,i,r,o,a,s,l){if(o){var c=n(e,t);if(c)return c[0]=Math.ceil((c[0]+(l?a/2:0))/a),c[1]=Math.ceil(c[1]/s),c[0]=Math.min(Math.max(c[0],1),i+(l?1:0)),c[1]=Math.min(Math.max(c[1],1),r),c}},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 i=n(2584);function r(e,t,n,i){var r=e-o(n,e),s=t-o(n,t);return c(Math.abs(r-s)-function(e,t,n){for(var i=0,r=e-o(n,e),s=t-o(n,t),l=0;l<Math.abs(r-s);l++){var c="A"===a(e,t)?-1:1,u=n.buffer.lines.get(r+c*l);u&&u.isWrapped&&i++}return i}(e,t,n),l(a(e,t),i))}function o(e,t){for(var n=0,i=e.buffer.lines.get(t),r=i&&i.isWrapped;r&&t>=0&&t<e.rows;)n++,r=(i=e.buffer.lines.get(--t))&&i.isWrapped;return n}function a(e,t){return e>t?"A":"B"}function s(e,t,n,i,r,o){for(var a=e,s=t,l="";a!==n||s!==i;)a+=r?1:-1,r&&a>o.cols-1?(l+=o.buffer.translateBufferLineToString(s,!1,e,a),a=0,e=0,s++):!r&&a<0&&(l+=o.buffer.translateBufferLineToString(s,!1,0,e+1),e=a=o.cols-1,s--);return l+o.buffer.translateBufferLineToString(s,!1,e,a)}function l(e,t){return i.C0.ESC+(t?"O":"[")+e}function c(e,t){e=Math.floor(e);for(var n="",i=0;i<e;i++)n+=t;return n}t.moveToCellSequence=function(e,t,n,i){var a,u=n.buffer.x,d=n.buffer.y;if(!n.buffer.hasScrollback)return function(e,t,n,i,a,u){return 0===r(t,i,a,u).length?"":c(s(e,t,e,t-o(a,t),!1,a).length,l("D",u))}(u,d,0,t,n,i)+r(d,t,n,i)+function(e,t,n,i,a,u){var d;d=r(t,i,a,u).length>0?i-o(a,i):t;var h=i,p=function(e,t,n,i,a,s){var l;return l=r(n,i,a,s).length>0?i-o(a,i):t,e<n&&l<=i||e>=n&&l<i?"C":"D"}(e,t,n,i,a,u);return c(s(e,d,n,h,"C"===p,a).length,l(p,u))}(u,d,e,t,n,i);if(d===t)return a=u>e?"D":"C",c(Math.abs(u-e),l(a,i));a=d>t?"D":"C";var h=Math.abs(d-t);return c(function(e,t){return t.cols-e}(d>t?e:u,n)+(h-1)*n.cols+1+((d>t?u:e)-1),l(a,i))}},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,i={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(i),t.dispose=function(){return n._wrappedAddonDispose(i)},t.activate(e)},e.prototype._wrappedAddonDispose=function(e){if(!e.isDisposed){for(var t=-1,n=0;n<this._addons.length;n++)if(this._addons[n]===e){t=n;break}if(-1===t)throw new Error("Could not dispose an addon that has not been loaded");e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}},e}();t.AddonManager=n},4389:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var i=n(511),r=n(3236),o=n(9042),a=n(8460),s=n(244),l=function(){function e(e){this._core=new r.Terminal(e),this._addonManager=new s.AddonManager}return e.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(e.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBell",{get:function(){return this._core.onBell},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 h(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unicode",{get:function(){return this._checkProposedApi(),new p(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,i=e;n<i.length;n++){var r=i[n];if(r===1/0||isNaN(r)||r%1!=0)throw new Error("This API only accepts integers")}},e}();t.Terminal=l;var c=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 d(t)},e.prototype.getNullCell=function(){return new i.CellData},e}(),u=function(){function e(e){var t=this;this._core=e,this._onBufferChange=new a.EventEmitter,this._normal=new c(this._core.buffers.normal,"normal"),this._alternate=new c(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}(),d=function(){function e(e){this._line=e}return Object.defineProperty(e.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),e.prototype.getCell=function(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new i.CellData)},e.prototype.translateToString=function(e,t,n){return this._line.translateToString(e,t,n)},e}(),h=function(){function e(e){this._core=e}return e.prototype.registerCsiHandler=function(e,t){return this._core.registerCsiHandler(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.registerDcsHandler(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.registerEscHandler(e,t)},e.prototype.addEscHandler=function(e,t){return this.registerEscHandler(e,t)},e.prototype.registerOscHandler=function(e,t){return this._core.registerOscHandler(e,t)},e.prototype.addOscHandler=function(e,t){return this.registerOscHandler(e,t)},e}(),p=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 i=n(643),r=n(8803),o=n(1420),a=n(3734),s=n(1752),l=n(4774),c=n(9631),u=function(){function e(e,t,n,i,r,o,a,s){this._container=e,this._alpha=i,this._colors=r,this._rendererId=o,this._bufferService=a,this._optionsService=s,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=n.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return e.prototype.dispose=function(){var e;c.removeElementFromParent(this._canvas),null===(e=this._charAtlas)||void 0===e||e.dispose()},e.prototype._initCanvas=function(){this._ctx=s.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},e.prototype.onOptionsChanged=function(){},e.prototype.onBlur=function(){},e.prototype.onFocus=function(){},e.prototype.onCursorMove=function(){},e.prototype.onGridChanged=function(e,t){},e.prototype.onSelectionChanged=function(e,t,n){void 0===n&&(n=!1)},e.prototype.setColors=function(e){this._refreshCharAtlas(e)},e.prototype._setTransparency=function(e){if(e!==this._alpha){var t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},e.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=o.acquireCharAtlas(this._optionsService.options,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},e.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},e.prototype._fillCells=function(e,t,n,i){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight)},e.prototype._fillBottomLineAtCells=function(e,t,n){void 0===n&&(n=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,n*this._scaledCellWidth,window.devicePixelRatio)},e.prototype._fillLeftLineAtCell=function(e,t,n){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio*n,this._scaledCellHeight)},e.prototype._strokeRectAtCell=function(e,t,n,i){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,n*this._scaledCellWidth-window.devicePixelRatio,i*this._scaledCellHeight-window.devicePixelRatio)},e.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},e.prototype._clearCells=function(e,t,n,i){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight))},e.prototype._fillCharTrueColor=function(e,t,n){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="ideographic",this._clipRow(n),this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},e.prototype._drawChars=function(e,t,n){var o,a,s=this._getContrastColor(e);s||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,t,n,s):(e.isInverse()?(o=e.isBgDefault()?r.INVERTED_DEFAULT_COLOR:e.getBgColor(),a=e.isFgDefault()?r.INVERTED_DEFAULT_COLOR:e.getFgColor()):(a=e.isBgDefault()?i.DEFAULT_COLOR:e.getBgColor(),o=e.isFgDefault()?i.DEFAULT_COLOR:e.getFgColor()),o+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&o<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||i.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||i.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=a,this._currentGlyphIdentifier.fg=o,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,t*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,t,n))},e.prototype._drawUncachedChars=function(e,t,n,i){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline="ideographic",e.isInverse())if(i)this._ctx.fillStyle=i.css;else if(e.isBgDefault())this._ctx.fillStyle=l.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+a.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var o=e.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&o<8&&(o+=8),this._ctx.fillStyle=this._colors.ansi[o].css}else if(i)this._ctx.fillStyle=i.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+a.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var s=e.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&s<8&&(s+=8),this._ctx.fillStyle=this._colors.ansi[s].css}this._clipRow(n),e.isDim()&&(this._ctx.globalAlpha=r.DIM_OPACITY),this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},e.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},e.prototype._getFont=function(e,t){return(t?"italic":"")+" "+(e?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},e.prototype._getContrastColor=function(e){if(1!==this._optionsService.options.minimumContrastRatio){var t=this._colors.contrastCache.getColor(e.bg,e.fg);if(void 0!==t)return t||void 0;var n=e.getFgColor(),i=e.getFgColorMode(),r=e.getBgColor(),o=e.getBgColorMode(),a=!!e.isInverse(),s=!!e.isInverse();if(a){var c=n;n=r,r=c;var u=i;i=o,o=u}var d=this._resolveBackgroundRgba(o,r,a),h=this._resolveForegroundRgba(i,n,a,s),p=l.rgba.ensureContrastRatio(d,h,this._optionsService.options.minimumContrastRatio);if(p){var f={css:l.channels.toCss(p>>24&255,p>>16&255,p>>8&255),rgba:p};return this._colors.contrastCache.setColor(e.bg,e.fg,f),f}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},e.prototype._resolveBackgroundRgba=function(e,t,n){switch(e){case 16777216:case 33554432:return this._colors.ansi[t].rgba;case 50331648:return t<<8;case 0:default:return n?this._colors.foreground.rgba:this._colors.background.rgba}},e.prototype._resolveForegroundRgba=function(e,t,n,i){switch(e){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&i&&t<8&&(t+=8),this._colors.ansi[t].rgba;case 50331648:return t<<8;case 0:default:return n?this._colors.background.rgba:this._colors.foreground.rgba}},e}();t.BaseRenderLayer=u},2512:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CursorRenderLayer=void 0;var s=n(1546),l=n(511),c=n(2585),u=n(4725),d=600,h=function(e){function t(t,n,i,r,o,a,s,c,u){var d=e.call(this,t,"cursor",n,!0,i,r,a,s)||this;return d._onRequestRedraw=o,d._coreService=c,d._coreBrowserService=u,d._cell=new l.CellData,d._state={x:0,y:0,isFocused:!1,style:"",width:0},d._cursorRenderers={bar:d._renderBarCursor.bind(d),block:d._renderBlockCursor.bind(d),underline:d._renderUnderlineCursor.bind(d)},d}return r(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},t.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var e,t=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new p(this._coreBrowserService.isFocused,function(){t._render(!0)})):(null===(e=this._cursorBlinkStateManager)||void 0===e||e.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype.onGridChanged=function(e,t){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(e){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var t=this._bufferService.buffer.ybase+this._bufferService.buffer.y,n=t-this._bufferService.buffer.ydisp;if(n<0||n>=this._bufferService.rows)this._clearCursor();else{var i=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(t).loadCell(i,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var r=this._optionsService.options.cursorStyle;return r&&"block"!==r?this._cursorRenderers[r](i,n,this._cell):this._renderBlurCursor(i,n,this._cell),this._ctx.restore(),this._state.x=i,this._state.y=n,this._state.isFocused=!1,this._state.style=r,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===i&&this._state.y===n&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](i,n,this._cell),this._ctx.restore(),this._state.x=i,this._state.y=n,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},t.prototype._renderBarCursor=function(e,t,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(e,t,this._optionsService.options.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(e,t,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(e,t,n.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(n,e,t),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(e,t,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(e,t),this._ctx.restore()},t.prototype._renderBlurCursor=function(e,t,n){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(e,t,n.getWidth(),1),this._ctx.restore()},o([a(5,c.IBufferService),a(6,c.IOptionsService),a(7,c.ICoreService),a(8,u.ICoreBrowserService)],t)}(s.BaseRenderLayer);t.CursorRenderLayer=h;var p=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=d),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(t._animationTimeRestarted){var e=d-(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=d-(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})},d)},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 i=this.cache[n].length;i<t;i++)this.cache[n].push(void 0);this.cache[n].length=t}this.cache.length=e},e.prototype.clear=function(){for(var e=0;e<this.cache.length;e++)for(var t=0;t<this.cache[e].length;t++)this.cache[e][t]=void 0},e}();t.GridCache=n},5098:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkRenderLayer=void 0;var s=n(1546),l=n(8803),c=n(2040),u=n(2585),d=function(e){function t(t,n,i,r,o,a,s,l){var c=e.call(this,t,"link",n,!0,i,r,s,l)||this;return o.onShowLinkUnderline(function(e){return c._onShowLinkUnderline(e)}),o.onHideLinkUnderline(function(e){return c._onHideLinkUnderline(e)}),a.onShowLinkUnderline(function(e){return c._onShowLinkUnderline(e)}),a.onHideLinkUnderline(function(e){return c._onHideLinkUnderline(e)}),c}return r(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state=void 0},t.prototype.reset=function(){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(e){if(this._ctx.fillStyle=e.fg===l.INVERTED_DEFAULT_COLOR?this._colors.background.css:e.fg&&c.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()},o([a(6,u.IBufferService),a(7,u.IOptionsService)],t)}(s.BaseRenderLayer);t.LinkRenderLayer=d},3525:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Renderer=void 0;var s=n(9596),l=n(4149),c=n(2512),u=n(5098),d=n(844),h=n(4725),p=n(2585),f=n(1420),m=n(8460),g=1,v=function(e){function t(t,n,i,r,o,a,d,h){var p=e.call(this)||this;return p._colors=t,p._screenElement=n,p._bufferService=a,p._charSizeService=d,p._optionsService=h,p._id=g++,p._onRequestRedraw=new m.EventEmitter,p._renderLayers=[o.createInstance(s.TextRenderLayer,p._screenElement,0,p._colors,p._optionsService.options.allowTransparency,p._id),o.createInstance(l.SelectionRenderLayer,p._screenElement,1,p._colors,p._id),o.createInstance(u.LinkRenderLayer,p._screenElement,2,p._colors,p._id,i,r),o.createInstance(c.CursorRenderLayer,p._screenElement,3,p._colors,p._id,p._onRequestRedraw)],p.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},p._devicePixelRatio=window.devicePixelRatio,p._updateDimensions(),p.onOptionsChanged(),p}return r(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){for(var t=0,n=this._renderLayers;t<n.length;t++)n[t].dispose();e.prototype.dispose.call(this),f.removeTerminalFromCache(this._id)},t.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},t.prototype.setColors=function(e){this._colors=e;for(var t=0,n=this._renderLayers;t<n.length;t++){var i=n[t];i.setColors(this._colors),i.reset()}},t.prototype.onResize=function(e,t){this._updateDimensions();for(var n=0,i=this._renderLayers;n<i.length;n++)i[n].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},t.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},t.prototype.onBlur=function(){this._runOperation(function(e){return e.onBlur()})},t.prototype.onFocus=function(){this._runOperation(function(e){return e.onFocus()})},t.prototype.onSelectionChanged=function(e,t,n){void 0===n&&(n=!1),this._runOperation(function(i){return i.onSelectionChanged(e,t,n)})},t.prototype.onCursorMove=function(){this._runOperation(function(e){return e.onCursorMove()})},t.prototype.onOptionsChanged=function(){this._runOperation(function(e){return e.onOptionsChanged()})},t.prototype.clear=function(){this._runOperation(function(e){return e.reset()})},t.prototype._runOperation=function(e){for(var t=0,n=this._renderLayers;t<n.length;t++)e(n[t])},t.prototype.renderRows=function(e,t){for(var n=0,i=this._renderLayers;n<i.length;n++)i[n].onGridChanged(e,t)},t.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=1===this._optionsService.options.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},o([a(4,p.IInstantiationService),a(5,p.IBufferService),a(6,h.ICharSizeService),a(7,p.IOptionsService)],t)}(d.Disposable);t.Renderer=v},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 i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRenderLayer=void 0;var s=n(1546),l=n(2585),c=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t,"selection",n,!0,i,r,o,a)||this;return s._clearState(),s}return r(t,e),t.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._clearState()},t.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},t.prototype.onSelectionChanged=function(e,t,n){if(this._didStateChange(e,t,n,this._bufferService.buffer.ydisp))if(this._clearAll(),e&&t){var i=e[1]-this._bufferService.buffer.ydisp,r=t[1]-this._bufferService.buffer.ydisp,o=Math.max(i,0),a=Math.min(r,this._bufferService.rows-1);if(o>=this._bufferService.rows||a<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,n){var s=e[0];this._fillCells(s,o,t[0]-s,a-o+1)}else{this._fillCells(s=i===o?e[0]:0,o,(o===r?t[0]:this._bufferService.cols)-s,1);var l=Math.max(a-o-1,0);this._fillCells(0,o+1,this._bufferService.cols,l),o!==a&&this._fillCells(0,a,r===a?t[0]:this._bufferService.cols,1)}this._state.start=[e[0],e[1]],this._state.end=[t[0],t[1]],this._state.columnSelectMode=n,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},t.prototype._didStateChange=function(e,t,n,i){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||n!==this._state.columnSelectMode||i!==this._state.ydisp},t.prototype._areCoordinatesEqual=function(e,t){return!(!e||!t)&&e[0]===t[0]&&e[1]===t[1]},o([a(4,l.IBufferService),a(5,l.IOptionsService)],t)}(s.BaseRenderLayer);t.SelectionRenderLayer=c},9596:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextRenderLayer=void 0;var s=n(3700),l=n(1546),c=n(3734),u=n(643),d=n(511),h=n(2585),p=n(4725),f=n(4269),m=function(e){function t(t,n,i,r,o,a,l,c){var u=e.call(this,t,"text",n,r,i,o,a,l)||this;return u._characterJoinerService=c,u._characterWidth=0,u._characterFont="",u._characterOverlapCache={},u._workCell=new d.CellData,u._state=new s.GridCache,u}return r(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t);var n=this._getFont(!1,!1);this._characterWidth===t.scaledCharWidth&&this._characterFont===n||(this._characterWidth=t.scaledCharWidth,this._characterFont=n,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},t.prototype.reset=function(){this._state.clear(),this._clearAll()},t.prototype._forEachCell=function(e,t,n){for(var i=e;i<=t;i++)for(var r=i+this._bufferService.buffer.ydisp,o=this._bufferService.buffer.lines.get(r),a=this._characterJoinerService.getJoinedCharacters(r),s=0;s<this._bufferService.cols;s++){o.loadCell(s,this._workCell);var l=this._workCell,c=!1,d=s;if(0!==l.getWidth()){if(a.length>0&&s===a[0][0]){c=!0;var h=a.shift();l=new f.JoinedCellData(this._workCell,o.translateToString(!0,h[0],h[1]),h[1]-h[0]),d=h[1]-1}!c&&this._isOverlapping(l)&&d<o.length-1&&o.getCodePoint(d+1)===u.NULL_CELL_CODE&&(l.content&=-12582913,l.content|=2<<22),n(l,s,i),s=d}}},t.prototype._drawBackground=function(e,t){var n=this,i=this._ctx,r=this._bufferService.cols,o=0,a=0,s=null;i.save(),this._forEachCell(e,t,function(e,t,l){var u=null;e.isInverse()?u=e.isFgDefault()?n._colors.foreground.css:e.isFgRGB()?"rgb("+c.AttributeData.toColorRGB(e.getFgColor()).join(",")+")":n._colors.ansi[e.getFgColor()].css:e.isBgRGB()?u="rgb("+c.AttributeData.toColorRGB(e.getBgColor()).join(",")+")":e.isBgPalette()&&(u=n._colors.ansi[e.getBgColor()].css),null===s&&(o=t,a=l),l!==a?(i.fillStyle=s||"",n._fillCells(o,a,r-o,1),o=t,a=l):s!==u&&(i.fillStyle=s||"",n._fillCells(o,a,t-o,1),o=t,a=l),s=u}),null!==s&&(i.fillStyle=s,this._fillCells(o,a,r-o,1)),i.restore()},t.prototype._drawForeground=function(e,t){var n=this;this._forEachCell(e,t,function(e,t,i){if(!e.isInvisible()&&(n._drawChars(e,t,i),e.isUnderline())){if(n._ctx.save(),e.isInverse())if(e.isBgDefault())n._ctx.fillStyle=n._colors.background.css;else if(e.isBgRGB())n._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var r=e.getBgColor();n._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&r<8&&(r+=8),n._ctx.fillStyle=n._colors.ansi[r].css}else if(e.isFgDefault())n._ctx.fillStyle=n._colors.foreground.css;else if(e.isFgRGB())n._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var o=e.getFgColor();n._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&o<8&&(o+=8),n._ctx.fillStyle=n._colors.ansi[o].css}n._fillBottomLineAtCells(t,i,e.getWidth()),n._ctx.restore()}})},t.prototype.onGridChanged=function(e,t){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,e,this._bufferService.cols,t-e+1),this._drawBackground(e,t),this._drawForeground(e,t))},t.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},t.prototype._isOverlapping=function(e){if(1!==e.getWidth())return!1;if(e.getCode()<256)return!1;var t=e.getChars();if(this._characterOverlapCache.hasOwnProperty(t))return this._characterOverlapCache[t];this._ctx.save(),this._ctx.font=this._characterFont;var n=Math.floor(this._ctx.measureText(t).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=n,n},o([a(5,h.IBufferService),a(6,h.IOptionsService),a(7,p.ICharacterJoinerService)],t)}(l.BaseRenderLayer);t.TextRenderLayer=m},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 i=n(2040),r=n(1906),o=[];t.acquireCharAtlas=function(e,t,n,a,s){for(var l=i.generateConfig(a,s,e,n),c=0;c<o.length;c++){var u=(d=o[c]).ownedBy.indexOf(t);if(u>=0){if(i.configEquals(d.config,l))return d.atlas;1===d.ownedBy.length?(d.atlas.dispose(),o.splice(c,1)):d.ownedBy.splice(u,1);break}}for(c=0;c<o.length;c++){var d=o[c];if(i.configEquals(d.config,l))return d.ownedBy.push(t),d.atlas}var h={atlas:new r.DynamicCharAtlas(document,l),config:l,ownedBy:[t]};return o.push(h),h.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 i=n(643);t.generateConfig=function(e,t,n,i){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:i.foreground,background:i.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:i.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<i.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 i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.NoneCharAtlas=t.DynamicCharAtlas=t.getGlyphCacheKey=void 0;var o=n(8803),a=n(9616),s=n(5680),l=n(7001),c=n(6114),u=n(1752),d=n(4774),h={css:"rgba(0, 0, 0, 0)",rgba:0};function p(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=p;var f=function(e){function t(t,n){var i=e.call(this)||this;i._config=n,i._drawToCacheCount=0,i._glyphsWaitingOnBitmap=[],i._bitmapCommitTimeout=null,i._bitmap=null,i._cacheCanvas=t.createElement("canvas"),i._cacheCanvas.width=1024,i._cacheCanvas.height=1024,i._cacheCtx=u.throwIfFalsy(i._cacheCanvas.getContext("2d",{alpha:!0}));var r=t.createElement("canvas");r.width=i._config.scaledCharWidth,r.height=i._config.scaledCharHeight,i._tmpCtx=u.throwIfFalsy(r.getContext("2d",{alpha:i._config.allowTransparency})),i._width=Math.floor(1024/i._config.scaledCharWidth),i._height=Math.floor(1024/i._config.scaledCharHeight);var o=i._width*i._height;return i._cacheMap=new l.LRUMap(o),i._cacheMap.prealloc(o),i}return r(t,e),t.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},t.prototype.beginFrame=function(){this._drawToCacheCount=0},t.prototype.draw=function(e,t,n,i){if(32===t.code)return!0;if(!this._canCache(t))return!1;var r=p(t),o=this._cacheMap.get(r);if(null!=o)return this._drawFromCache(e,o,n,i),!0;if(this._drawToCacheCount<100){var a;a=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var s=this._drawToCache(t,a);return this._cacheMap.set(r,s),this._drawFromCache(e,s,n,i),!0}return!1},t.prototype._canCache=function(e){return e.code<256},t.prototype._toCoordinateX=function(e){return e%this._width*this._config.scaledCharWidth},t.prototype._toCoordinateY=function(e){return Math.floor(e/this._width)*this._config.scaledCharHeight},t.prototype._drawFromCache=function(e,t,n,i){if(!t.isEmpty){var r=this._toCoordinateX(t.index),o=this._toCoordinateY(t.index);e.drawImage(t.inBitmap?this._bitmap:this._cacheCanvas,r,o,this._config.scaledCharWidth,this._config.scaledCharHeight,n,i,this._config.scaledCharWidth,this._config.scaledCharHeight)}},t.prototype._getColorFromAnsiIndex=function(e){return e<this._config.colors.ansi.length?this._config.colors.ansi[e]:s.DEFAULT_ANSI_COLORS[e]},t.prototype._getBackgroundColor=function(e){return this._config.allowTransparency?h: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?d.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="ideographic",this._tmpCtx.fillStyle=this._getForegroundColor(e).css,e.dim&&(this._tmpCtx.globalAlpha=o.DIM_OPACITY),this._tmpCtx.fillText(e.chars,0,this._config.scaledCharHeight),this._tmpCtx.restore();var i=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),r=!1;this._config.allowTransparency||(r=function(e,t){for(var n=!0,i=t.rgba>>>24,r=t.rgba>>>16&255,o=t.rgba>>>8&255,a=0;a<e.data.length;a+=4)e.data[a]===i&&e.data[a+1]===r&&e.data[a+2]===o?e.data[a+3]=0:n=!1;return n}(i,n));var a=this._toCoordinateX(t),s=this._toCoordinateY(t);this._cacheCtx.putImageData(i,a,s);var l={index:t,isEmpty:r,inBitmap:!1};return this._addGlyphToBitmap(l),l},t.prototype._addGlyphToBitmap=function(e){var t=this;!("createImageBitmap"in window)||c.isFirefox||c.isSafari||(this._glyphsWaitingOnBitmap.push(e),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout(function(){return t._generateBitmap()},100)))},t.prototype._generateBitmap=function(){var e=this,t=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(n){e._bitmap=n;for(var i=0;i<t.length;i++)t[i].inBitmap=!0}),this._bitmapCommitTimeout=null},t}(a.BaseCharAtlas);t.DynamicCharAtlas=f;var m=function(e){function t(t,n){return e.call(this)||this}return r(t,e),t.prototype.draw=function(e,t,n,i){return!1},t}(a.BaseCharAtlas);t.NoneCharAtlas=m},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 i=this._nodePool;i.length>0?((n=i.pop()).key=e,n.value=t):n={prev:null,next:null,key:e,value:t},this._map[e]=n,this.size++}this._appendNode(n)},e}();t.LRUMap=n},1296:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;var s=n(3787),l=n(8803),c=n(844),u=n(4725),d=n(2585),h=n(8460),p=n(4774),f=n(9631),m="xterm-dom-renderer-owner-",g="xterm-fg-",v="xterm-bg-",y="xterm-focus",_=1,b=function(e){function t(t,n,i,r,o,a,l,c,u,d){var h=e.call(this)||this;return h._colors=t,h._element=n,h._screenElement=i,h._viewportElement=r,h._linkifier=o,h._linkifier2=a,h._charSizeService=c,h._optionsService=u,h._bufferService=d,h._terminalClass=_++,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=l.createInstance(s.DomRendererRowFactory,document,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 r(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return(new h.EventEmitter).event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._element.classList.remove(m+this._terminalClass),f.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,i){t+=e._terminalSelector+" ."+g+i+" { color: "+n.css+"; }"+e._terminalSelector+" ."+v+i+" { background-color: "+n.css+"; }"}),t+=this._terminalSelector+" ."+g+l.INVERTED_DEFAULT_COLOR+" { color: "+p.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+v+l.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 i=document.createElement("div");this._rowContainer.appendChild(i),this._rowElements.push(i)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())},t.prototype.onResize=function(e,t){this._refreshRowElements(e,t),this._updateDimensions()},t.prototype.onCharSizeChanged=function(){this._updateDimensions()},t.prototype.onBlur=function(){this._rowContainer.classList.remove(y)},t.prototype.onFocus=function(){this._rowContainer.classList.add(y)},t.prototype.onSelectionChanged=function(e,t,n){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(e&&t){var i=e[1]-this._bufferService.buffer.ydisp,r=t[1]-this._bufferService.buffer.ydisp,o=Math.max(i,0),a=Math.min(r,this._bufferService.rows-1);if(!(o>=this._bufferService.rows||a<0)){var s=document.createDocumentFragment();n?s.appendChild(this._createSelectionElement(o,e[0],t[0],a-o+1)):(s.appendChild(this._createSelectionElement(o,i===o?e[0]:0,o===r?t[0]:this._bufferService.cols)),s.appendChild(this._createSelectionElement(o+1,0,this._bufferService.cols,a-o-1)),o!==a&&s.appendChild(this._createSelectionElement(a,0,r===a?t[0]:this._bufferService.cols))),this._selectionContainer.appendChild(s)}}},t.prototype._createSelectionElement=function(e,t,n,i){void 0===i&&(i=1);var r=document.createElement("div");return r.style.height=i*this.dimensions.actualCellHeight+"px",r.style.top=e*this.dimensions.actualCellHeight+"px",r.style.left=t*this.dimensions.actualCellWidth+"px",r.style.width=this.dimensions.actualCellWidth*(n-t)+"px",r},t.prototype.onCursorMove=function(){},t.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},t.prototype.clear=function(){for(var e=0,t=this._rowElements;e<t.length;e++)t[e].innerText=""},t.prototype.renderRows=function(e,t){for(var n=this._bufferService.buffer.ybase+this._bufferService.buffer.y,i=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),r=this._optionsService.options.cursorBlink,o=e;o<=t;o++){var a=this._rowElements[o];a.innerText="";var s=o+this._bufferService.buffer.ydisp,l=this._bufferService.buffer.lines.get(s);a.appendChild(this._rowFactory.createRow(l,s,s===n,this._optionsService.options.cursorStyle,i,r,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(t.prototype,"_terminalSelector",{get:function(){return"."+m+this._terminalClass},enumerable:!1,configurable:!0}),t.prototype._onLinkHover=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)},t.prototype._onLinkLeave=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)},t.prototype._setCellUnderline=function(e,t,n,i,r,o){for(;e!==t||n!==i;){var a=this._rowElements[n];if(!a)return;var s=a.children[e];s&&(s.style.textDecoration=o?"underline":"none"),++e>=r&&(e=0,n++)}},o([a(6,d.IInstantiationService),a(7,u.ICharSizeService),a(8,d.IOptionsService),a(9,d.IBufferService)],t)}(c.Disposable);t.DomRenderer=b},3787:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.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 o=n(8803),a=n(643),s=n(511),l=n(2585),c=n(4774),u=n(4725),d=n(4269);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 h=function(){function e(e,t,n,i){this._document=e,this._colors=t,this._characterJoinerService=n,this._optionsService=i,this._workCell=new s.CellData}return e.prototype.setColors=function(e){this._colors=e},e.prototype.createRow=function(e,n,i,r,s,l,u,h){for(var f=this._document.createDocumentFragment(),m=this._characterJoinerService.getJoinedCharacters(n),g=0,v=Math.min(e.length,h)-1;v>=0;v--)if(e.loadCell(v,this._workCell).getCode()!==a.NULL_CELL_CODE||i&&v===s){g=v+1;break}for(v=0;v<g;v++){e.loadCell(v,this._workCell);var y=this._workCell.getWidth();if(0!==y){var _=!1,b=v,w=this._workCell;if(m.length>0&&v===m[0][0]){_=!0;var S=m.shift();w=new d.JoinedCellData(this._workCell,e.translateToString(!0,S[0],S[1]),S[1]-S[0]),b=S[1]-1,y=w.getWidth()}var x=this._document.createElement("span");if(y>1&&(x.style.width=u*y+"px"),_&&(x.style.display="inline",s>=v&&s<=b&&(s=v)),i&&v===s)switch(x.classList.add(t.CURSOR_CLASS),l&&x.classList.add(t.CURSOR_BLINK_CLASS),r){case"bar":x.classList.add(t.CURSOR_STYLE_BAR_CLASS);break;case"underline":x.classList.add(t.CURSOR_STYLE_UNDERLINE_CLASS);break;default:x.classList.add(t.CURSOR_STYLE_BLOCK_CLASS)}w.isBold()&&x.classList.add(t.BOLD_CLASS),w.isItalic()&&x.classList.add(t.ITALIC_CLASS),w.isDim()&&x.classList.add(t.DIM_CLASS),w.isUnderline()&&x.classList.add(t.UNDERLINE_CLASS),x.textContent=w.isInvisible()?a.WHITESPACE_CELL_CHAR:w.getChars()||a.WHITESPACE_CELL_CHAR;var C=w.getFgColor(),k=w.getFgColorMode(),T=w.getBgColor(),A=w.getBgColorMode(),Z=!!w.isInverse();if(Z){var M=C;C=T,T=M;var O=k;k=A,A=O}switch(k){case 16777216:case 33554432:w.isBold()&&C<8&&this._optionsService.options.drawBoldTextInBrightColors&&(C+=8),this._applyMinimumContrast(x,this._colors.background,this._colors.ansi[C])||x.classList.add("xterm-fg-"+C);break;case 50331648:var E=c.rgba.toColor(C>>16&255,C>>8&255,255&C);this._applyMinimumContrast(x,this._colors.background,E)||this._addStyle(x,"color:#"+p(C.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(x,this._colors.background,this._colors.foreground)||Z&&x.classList.add("xterm-fg-"+o.INVERTED_DEFAULT_COLOR)}switch(A){case 16777216:case 33554432:x.classList.add("xterm-bg-"+T);break;case 50331648:this._addStyle(x,"background-color:#"+p(T.toString(16),"0",6));break;case 0:default:Z&&x.classList.add("xterm-bg-"+o.INVERTED_DEFAULT_COLOR)}f.appendChild(x),v=b}}return f},e.prototype._applyMinimumContrast=function(e,t,n){if(1===this._optionsService.options.minimumContrastRatio)return!1;var i=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===i&&(i=c.color.ensureContrastRatio(t,n,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=i?i:null)),!!i&&(this._addStyle(e,"color:"+i.css),!0)},e.prototype._addStyle=function(e,t){e.setAttribute("style",""+(e.getAttribute("style")||"")+t+";")},i([r(2,u.ICharacterJoinerService),r(3,l.IOptionsService)],e)}();function p(e,t,n){for(;e.length<n;)e=t+e;return e}t.DomRendererRowFactory=h},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 i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;var o=n(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 l(e,t,this._optionsService)}return Object.defineProperty(e.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),e.prototype.measure=function(){var e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())},i([r(2,o.IOptionsService)],e)}();t.CharSizeService=s;var l=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}()},4269:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;var s=n(3734),l=n(643),c=n(511),u=n(2585),d=function(e){function t(t,n,i){var r=e.call(this)||this;return r.content=0,r.combinedData="",r.fg=t.fg,r.bg=t.bg,r.combinedData=n,r._width=i,r}return r(t,e),t.prototype.isCombined=function(){return 2097152},t.prototype.getWidth=function(){return this._width},t.prototype.getChars=function(){return this.combinedData},t.prototype.getCode=function(){return 2097151},t.prototype.setFromCharData=function(e){throw new Error("not implemented")},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(s.AttributeData);t.JoinedCellData=d;var h=function(){function e(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new c.CellData}return e.prototype.register=function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id},e.prototype.deregister=function(e){for(var t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1},e.prototype.getJoinedCharacters=function(e){if(0===this._characterJoiners.length)return[];var t=this._bufferService.buffer.lines.get(e);if(!t||0===t.length)return[];for(var n=[],i=t.translateToString(!0),r=0,o=0,a=0,s=t.getFg(0),c=t.getBg(0),u=0;u<t.getTrimmedLength();u++)if(t.loadCell(u,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==s||this._workCell.bg!==c){if(u-r>1)for(var d=this._getJoinedRanges(i,a,o,t,r),h=0;h<d.length;h++)n.push(d[h]);r=u,a=o,s=this._workCell.fg,c=this._workCell.bg}o+=this._workCell.getChars().length||l.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-r>1)for(d=this._getJoinedRanges(i,a,o,t,r),h=0;h<d.length;h++)n.push(d[h]);return n},e.prototype._getJoinedRanges=function(t,n,i,r,o){for(var a=t.substring(n,i),s=this._characterJoiners[0].handler(a),l=1;l<this._characterJoiners.length;l++)for(var c=this._characterJoiners[l].handler(a),u=0;u<c.length;u++)e._mergeRanges(s,c[u]);return this._stringRangesToCellRanges(s,r,o),s},e.prototype._stringRangesToCellRanges=function(e,t,n){var i=0,r=!1,o=0,a=e[i];if(a){for(var s=n;s<this._bufferService.cols;s++){var c=t.getWidth(s),u=t.getString(s).length||l.WHITESPACE_CELL_CHAR.length;if(0!==c){if(!r&&a[0]<=o&&(a[0]=s,r=!0),a[1]<=o){if(a[1]=s,!(a=e[++i]))break;a[0]<=o?(a[0]=s,r=!0):r=!1}o+=u}}a&&(a[1]=this._bufferService.cols)}},e._mergeRanges=function(e,t){for(var n=!1,i=0;i<e.length;i++){var r=e[i];if(n){if(t[1]<=r[0])return e[i-1][1]=t[1],e;if(t[1]<=r[1])return e[i-1][1]=Math.max(t[1],r[1]),e.splice(i,1),e;e.splice(i,1),i--}else{if(t[1]<=r[0])return e.splice(i,0,t),e;if(t[1]<=r[1])return r[0]=Math.min(t[0],r[0]),e;t[0]<r[1]&&(r[0]=Math.min(t[0],r[0]),n=!0)}}return n?e[e.length-1][1]=t[1]:e.push(t),e},e=o([a(0,u.IBufferService)],e)}();t.CharacterJoinerService=h},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 i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;var o=n(4725),a=n(9806),s=function(){function e(e,t){this._renderService=e,this._charSizeService=t}return e.prototype.getCoords=function(e,t,n,i,r){return a.getCoords(e,t,n,i,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,r)},e.prototype.getRawByteCoords=function(e,t,n,i){var r=this.getCoords(e,t,n,i);return a.getRawByteCoords(r)},i([r(0,o.IRenderService),r(1,o.ICharSizeService)],e)}();t.MouseService=s},3230:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;var s=n(6193),l=n(8460),c=n(844),u=n(5596),d=n(3656),h=n(2585),p=n(4725),f=function(e){function t(t,n,i,r,o,a){var c=e.call(this)||this;if(c._renderer=t,c._rowCount=n,c._charSizeService=o,c._isPaused=!1,c._needsFullRefresh=!1,c._isNextRenderRedrawOnly=!0,c._needsSelectionRefresh=!1,c._canvasWidth=0,c._canvasHeight=0,c._selectionState={start:void 0,end:void 0,columnSelectMode:!1},c._onDimensionsChange=new l.EventEmitter,c._onRender=new l.EventEmitter,c._onRefreshRequest=new l.EventEmitter,c.register({dispose:function(){return c._renderer.dispose()}}),c._renderDebouncer=new s.RenderDebouncer(function(e,t){return c._renderRows(e,t)}),c.register(c._renderDebouncer),c._screenDprMonitor=new u.ScreenDprMonitor,c._screenDprMonitor.setListener(function(){return c.onDevicePixelRatioChange()}),c.register(c._screenDprMonitor),c.register(a.onResize(function(e){return c._fullRefresh()})),c.register(r.onOptionChange(function(){return c._renderer.onOptionsChanged()})),c.register(c._charSizeService.onCharSizeChange(function(){return c.onCharSizeChanged()})),c._renderer.onRequestRedraw(function(e){return c.refreshRows(e.start,e.end,!0)}),c.register(d.addDisposableDomListener(window,"resize",function(){return c.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var h=new IntersectionObserver(function(e){return c._onIntersectionChange(e[e.length-1])},{threshold:0});h.observe(i),c.register({dispose:function(){return h.disconnect()}})}return c}return r(t,e),Object.defineProperty(t.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),t.prototype._onIntersectionChange=function(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,this._isPaused||this._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()},o([a(3,h.IOptionsService),a(4,p.ICharSizeService),a(5,h.IBufferService)],t)}(c.Disposable);t.RenderService=f},9312:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;var s=n(6114),l=n(456),c=n(511),u=n(8460),d=n(4725),h=n(2585),p=n(9806),f=n(9504),m=n(844),g=n(4841),v=String.fromCharCode(160),y=new RegExp(v,"g"),_=function(e){function t(t,n,i,r,o,a,s,d){var h=e.call(this)||this;return h._element=t,h._screenElement=n,h._linkifier=i,h._bufferService=r,h._coreService=o,h._mouseService=a,h._optionsService=s,h._renderService=d,h._dragScrollAmount=0,h._enabled=!0,h._workCell=new c.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 l.SelectionModel(h._bufferService),h._activeSelectionMode=0,h}return r(t,e),Object.defineProperty(t.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._removeMouseDownListeners()},t.prototype.reset=function(){this.clearSelection()},t.prototype.disable=function(){this.clearSelection(),this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var n=this._bufferService.buffer,i=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var r=e[1];r<=t[1];r++){var o=n.translateBufferLineToString(r,!0,e[0],t[0]);i.push(o)}}else{for(i.push(n.translateBufferLineToString(e[1],!0,e[0],e[1]===t[1]?t[0]:void 0)),r=e[1]+1;r<=t[1]-1;r++){var a=n.lines.get(r);o=n.translateBufferLineToString(r,!0),a&&a.isWrapped?i[i.length-1]+=o:i.push(o)}e[1]!==t[1]&&(a=n.lines.get(t[1]),o=n.translateBufferLineToString(t[1],!0,0,t[0]),a&&a.isWrapped?i[i.length-1]+=o:i.push(o))}return i.map(function(e){return e.replace(y," ")}).join(s.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),t.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},t.prototype.refresh=function(e){var t=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return t._refresh()})),s.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},t.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},t.prototype._isClickInSelection=function(e){var t=this._getMouseBufferCoords(e),n=this._model.finalSelectionStart,i=this._model.finalSelectionEnd;return!!(n&&i&&t)&&this._areCoordsInSelection(t,n,i)},t.prototype._areCoordsInSelection=function(e,t,n){return e[1]>t[1]&&e[1]<n[1]||t[1]===n[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<n[0]||t[1]<n[1]&&e[1]===n[1]&&e[0]<n[0]||t[1]<n[1]&&e[1]===t[1]&&e[0]>=t[0]},t.prototype._selectWordAtCursor=function(e,t){var n,i,r=null===(i=null===(n=this._linkifier.currentLink)||void 0===n?void 0:n.link)||void 0===i?void 0:i.range;if(r)return this._model.selectionStart=[r.start.x-1,r.start.y-1],this._model.selectionStartLength=g.getRangeLength(r,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var o=this._getMouseBufferCoords(e);return!!o&&(this._selectWordAt(o,t),this._model.selectionEnd=void 0,!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=p.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){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)},t.prototype._onTripleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))},t.prototype.shouldColumnSelect=function(e){return e.altKey&&!(s.isMac&&this._optionsService.options.macOptionClickForcesSelection)},t.prototype._onMouseMove=function(e){if(e.stopImmediatePropagation(),this._model.selectionStart){var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[0]=this._model.selectionEnd[1]<this._model.selectionStart[1]?0:this._bufferService.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),3!==this._activeSelectionMode&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var n=this._bufferService.buffer;if(this._model.selectionEnd[1]<n.lines.length){var i=n.lines.get(this._model.selectionEnd[1]);i&&0===i.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},t.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var e=this._bufferService.buffer;this._dragScrollAmount>0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}},t.prototype._onMouseUp=function(e){var t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&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 i=f.moveToCellSequence(n[0]-1,n[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(i,!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],i=0;t[0]>=i;i++){var r=e.loadCell(i,this._workCell).getChars().length;0===this._workCell.getWidth()?n--:r>1&&t[0]!==i&&(n+=r-1)}return n},t.prototype.setSelection=function(e,t,n){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=n,this.refresh()},t.prototype.rightClickSelect=function(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},t.prototype._getWordAt=function(e,t,n,i){if(void 0===n&&(n=!0),void 0===i&&(i=!0),!(e[0]>=this._bufferService.cols)){var r=this._bufferService.buffer,o=r.lines.get(e[1]);if(o){var a=r.translateBufferLineToString(e[1],!1),s=this._convertViewportColToCharacterIndex(o,e),l=s,c=e[0]-s,u=0,d=0,h=0,p=0;if(" "===a.charAt(s)){for(;s>0&&" "===a.charAt(s-1);)s--;for(;l<a.length&&" "===a.charAt(l+1);)l++}else{var f=e[0],m=e[0];0===o.getWidth(f)&&(u++,f--),2===o.getWidth(m)&&(d++,m++);var g=o.getString(m).length;for(g>1&&(p+=g-1,l+=g-1);f>0&&s>0&&!this._isCharWordSeparator(o.loadCell(f-1,this._workCell));){o.loadCell(f-1,this._workCell);var v=this._workCell.getChars().length;0===this._workCell.getWidth()?(u++,f--):v>1&&(h+=v-1,s-=v-1),s--,f--}for(;m<o.length&&l+1<a.length&&!this._isCharWordSeparator(o.loadCell(m+1,this._workCell));){o.loadCell(m+1,this._workCell);var y=this._workCell.getChars().length;2===this._workCell.getWidth()?(d++,m++):y>1&&(p+=y-1,l+=y-1),l++,m++}}l++;var _=s+c-u+h,b=Math.min(this._bufferService.cols,l-s+u+d-h-p);if(t||""!==a.slice(s,l).trim()){if(n&&0===_&&32!==o.getCodePoint(0)){var w=r.lines.get(e[1]-1);if(w&&o.isWrapped&&32!==w.getCodePoint(this._bufferService.cols-1)){var S=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(S){var x=this._bufferService.cols-S.start;_-=x,b+=x}}}if(i&&_+b===this._bufferService.cols&&32!==o.getCodePoint(this._bufferService.cols-1)){var C=r.lines.get(e[1]+1);if(C&&C.isWrapped&&32!==C.getCodePoint(0)){var k=this._getWordAt([0,e[1]+1],!1,!1,!0);k&&(b+=k.length)}}return{start:_,length:b}}}}},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(3,h.IBufferService),a(4,h.ICoreService),a(5,d.IMouseService),a(6,h.IOptionsService),a(7,d.IRenderService)],t)}(m.Disposable);t.SelectionService=_},4725:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ICharacterJoinerService=t.ISoundService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;var i=n(8343);t.ICharSizeService=i.createDecorator("CharSizeService"),t.ICoreBrowserService=i.createDecorator("CoreBrowserService"),t.IMouseService=i.createDecorator("MouseService"),t.IRenderService=i.createDecorator("RenderService"),t.ISelectionService=i.createDecorator("SelectionService"),t.ISoundService=i.createDecorator("SoundService"),t.ICharacterJoinerService=i.createDecorator("CharacterJoinerService")},357:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SoundService=void 0;var o=n(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,i=new Uint8Array(n),r=0;r<n;r++)i[r]=t.charCodeAt(r);return i.buffer},e.prototype._removeMimeType=function(e){return e.split(",")[1]},e=i([r(0,o.IOptionsService)],e)}();t.SoundService=a},6349:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;var i=n(8460),r=function(){function e(e){this._maxLength=e,this.onDeleteEmitter=new i.EventEmitter,this.onInsertEmitter=new i.EventEmitter,this.onTrimEmitter=new i.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(e.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxLength",{get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),n=0;n<Math.min(e,this.length);n++)t[n]=this._array[this._getCyclicIndex(n)];this._array=t,this._maxLength=e,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},set:function(e){if(e>this._length)for(var t=this._length;t<e;t++)this._array[t]=void 0;this._length=e},enumerable:!1,configurable:!0}),e.prototype.get=function(e){return this._array[this._getCyclicIndex(e)]},e.prototype.set=function(e,t){this._array[this._getCyclicIndex(e)]=t},e.prototype.push=function(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},e.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(e.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),e.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},e.prototype.splice=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(t){for(var r=e;r<this._length-t;r++)this._array[this._getCyclicIndex(r)]=this._array[this._getCyclicIndex(r+t)];this._length-=t,this.onDeleteEmitter.fire({index:e,amount:t})}for(r=this._length-1;r>=e;r--)this._array[this._getCyclicIndex(r+n.length)]=this._array[this._getCyclicIndex(r)];for(r=0;r<n.length;r++)this._array[this._getCyclicIndex(e+r)]=n[r];if(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 i=t-1;i>=0;i--)this.set(e+i+n,this.get(e+i));var r=e+t+n-this._length;if(r>0)for(this._length+=r;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(i=0;i<t;i++)this.set(e+i+n,this.get(e+i))}},e.prototype._getCyclicIndex=function(e){return(this._startIndex+e)%this._maxLength},e}();t.CircularList=r},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 i=Array.isArray(t)?[]:{};for(var r in t)i[r]=n<=1?t[r]:t[r]?e(t[r],n-1):t[r];return i}},8969:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;var o=n(844),a=n(2585),s=n(4348),l=n(7866),c=n(744),u=n(7302),d=n(6975),h=n(8460),p=n(1753),f=n(3730),m=n(1480),g=n(7994),v=n(9282),y=n(5435),_=n(5981),b=!1,w=function(e){function t(t){var n=e.call(this)||this;return n._onBinary=new h.EventEmitter,n._onData=new h.EventEmitter,n._onLineFeed=new h.EventEmitter,n._onResize=new h.EventEmitter,n._onScroll=new h.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(c.BufferService)),n._instantiationService.setService(a.IBufferService,n._bufferService),n._logService=n._instantiationService.createInstance(l.LogService),n._instantiationService.setService(a.ILogService,n._logService),n._coreService=n.register(n._instantiationService.createInstance(d.CoreService,function(){return n.scrollToBottom()})),n._instantiationService.setService(a.ICoreService,n._coreService),n._coreMouseService=n._instantiationService.createInstance(p.CoreMouseService),n._instantiationService.setService(a.ICoreMouseService,n._coreMouseService),n._dirtyRowService=n._instantiationService.createInstance(f.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 y.InputHandler(n._bufferService,n._charsetService,n._coreService,n._dirtyRowService,n._logService,n.optionsService,n._coreMouseService,n.unicodeService),n.register(h.forwardEvent(n._inputHandler.onLineFeed,n._onLineFeed)),n.register(n._inputHandler),n.register(h.forwardEvent(n._bufferService.onResize,n._onResize)),n.register(h.forwardEvent(n._coreService.onData,n._onData)),n.register(h.forwardEvent(n._coreService.onBinary,n._onBinary)),n.register(n.optionsService.onOptionChange(function(e){return n._updateOptions(e)})),n.register(n._bufferService.onScroll(function(e){n._onScroll.fire({position:n._bufferService.buffer.ydisp,source:0}),n._dirtyRowService.markRangeDirty(n._bufferService.buffer.scrollTop,n._bufferService.buffer.scrollBottom)})),n._writeBuffer=new _.WriteBuffer(function(e,t){return n._inputHandler.parse(e,t)}),n}return r(t,e),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){var e=this;return this._onScrollApi||(this._onScrollApi=new h.EventEmitter,this.register(this._onScroll.event(function(t){var n;null===(n=e._onScrollApi)||void 0===n||n.fire(t.position)}))),this._onScrollApi.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,t){this._logService.logLevel<=a.LogLevelEnum.WARN&&!b&&(this._logService.warn("writeSync is unreliable and will be removed soon."),b=!0),this._writeBuffer.writeSync(e,t)},t.prototype.resize=function(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,c.MINIMUM_COLS),t=Math.max(t,c.MINIMUM_ROWS),this._bufferService.resize(e,t))},t.prototype.scroll=function(e,t){void 0===t&&(t=!1),this._bufferService.scroll(e,t)},t.prototype.scrollLines=function(e,t,n){this._bufferService.scrollLines(e,t,n)},t.prototype.scrollPages=function(e){this._bufferService.scrollPages(e)},t.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},t.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},t.prototype.scrollToLine=function(e){this._bufferService.scrollToLine(e)},t.prototype.registerEscHandler=function(e,t){return this._inputHandler.registerEscHandler(e,t)},t.prototype.registerDcsHandler=function(e,t){return this._inputHandler.registerDcsHandler(e,t)},t.prototype.registerCsiHandler=function(e,t){return this._inputHandler.registerCsiHandler(e,t)},t.prototype.registerOscHandler=function(e,t){return this._inputHandler.registerOscHandler(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.registerCsiHandler({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=w},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=[],i=0;i<this._listeners.length;i++)n.push(this._listeners[i]);for(i=0;i<n.length;i++)n[i].call(void 0,e,t)},e.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},e}();t.EventEmitter=n,t.forwardEvent=function(e,t){return e(function(e){return t.fire(e)})}},5435:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InputHandler=t.WindowsOptionsReportType=void 0;var o,a=n(2584),s=n(7116),l=n(2015),c=n(844),u=n(8273),d=n(482),h=n(8437),p=n(8460),f=n(643),m=n(511),g=n(3734),v=n(2585),y=n(6242),_=n(6351),b={"(":0,")":1,"*":2,"+":3,"-":1,".":2},w=131072;function S(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 x=function(){function e(e,t,n,i){this._bufferService=e,this._coreService=t,this._logService=n,this._optionsService=i,this._data=new Uint32Array(0)}return e.prototype.hook=function(e){this._data=new Uint32Array(0)},e.prototype.put=function(e,t,n){this._data=u.concat(this._data,e.subarray(t,n))},e.prototype.unhook=function(e){if(!e)return this._data=new Uint32Array(0),!0;var t=d.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,i,r,o,c,u,f,g){void 0===g&&(g=new l.EscapeSequenceParser);var v=e.call(this)||this;v._bufferService=t,v._charsetService=n,v._coreService=i,v._dirtyRowService=r,v._logService=o,v._optionsService=c,v._coreMouseService=u,v._unicodeService=f,v._parser=g,v._parseBuffer=new Uint32Array(4096),v._stringDecoder=new d.StringToUtf32,v._utf8Decoder=new d.Utf8ToUtf32,v._workCell=new m.CellData,v._windowTitle="",v._iconName="",v._windowTitleStack=[],v._iconNameStack=[],v._curAttrData=h.DEFAULT_ATTR_DATA.clone(),v._eraseAttrDataInternal=h.DEFAULT_ATTR_DATA.clone(),v._onRequestBell=new p.EventEmitter,v._onRequestRefreshRows=new p.EventEmitter,v._onRequestReset=new p.EventEmitter,v._onRequestSyncScrollBar=new p.EventEmitter,v._onRequestWindowsOptionsReport=new p.EventEmitter,v._onA11yChar=new p.EventEmitter,v._onA11yTab=new p.EventEmitter,v._onCursorMove=new p.EventEmitter,v._onLineFeed=new p.EventEmitter,v._onScroll=new p.EventEmitter,v._onTitleChange=new p.EventEmitter,v._onAnsiColorChange=new p.EventEmitter,v._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},v.register(v._parser),v._parser.setCsiHandlerFallback(function(e,t){v._logService.debug("Unknown CSI code: ",{identifier:v._parser.identToString(e),params:t.toArray()})}),v._parser.setEscHandlerFallback(function(e){v._logService.debug("Unknown ESC code: ",{identifier:v._parser.identToString(e)})}),v._parser.setExecuteHandlerFallback(function(e){v._logService.debug("Unknown EXECUTE code: ",{code:e})}),v._parser.setOscHandlerFallback(function(e,t,n){v._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:n})}),v._parser.setDcsHandlerFallback(function(e,t,n){"HOOK"===t&&(n=n.toArray()),v._logService.debug("Unknown DCS code: ",{identifier:v._parser.identToString(e),action:t,payload:n})}),v._parser.setPrintHandler(function(e,t,n){return v.print(e,t,n)}),v._parser.registerCsiHandler({final:"@"},function(e){return v.insertChars(e)}),v._parser.registerCsiHandler({intermediates:" ",final:"@"},function(e){return v.scrollLeft(e)}),v._parser.registerCsiHandler({final:"A"},function(e){return v.cursorUp(e)}),v._parser.registerCsiHandler({intermediates:" ",final:"A"},function(e){return v.scrollRight(e)}),v._parser.registerCsiHandler({final:"B"},function(e){return v.cursorDown(e)}),v._parser.registerCsiHandler({final:"C"},function(e){return v.cursorForward(e)}),v._parser.registerCsiHandler({final:"D"},function(e){return v.cursorBackward(e)}),v._parser.registerCsiHandler({final:"E"},function(e){return v.cursorNextLine(e)}),v._parser.registerCsiHandler({final:"F"},function(e){return v.cursorPrecedingLine(e)}),v._parser.registerCsiHandler({final:"G"},function(e){return v.cursorCharAbsolute(e)}),v._parser.registerCsiHandler({final:"H"},function(e){return v.cursorPosition(e)}),v._parser.registerCsiHandler({final:"I"},function(e){return v.cursorForwardTab(e)}),v._parser.registerCsiHandler({final:"J"},function(e){return v.eraseInDisplay(e)}),v._parser.registerCsiHandler({prefix:"?",final:"J"},function(e){return v.eraseInDisplay(e)}),v._parser.registerCsiHandler({final:"K"},function(e){return v.eraseInLine(e)}),v._parser.registerCsiHandler({prefix:"?",final:"K"},function(e){return v.eraseInLine(e)}),v._parser.registerCsiHandler({final:"L"},function(e){return v.insertLines(e)}),v._parser.registerCsiHandler({final:"M"},function(e){return v.deleteLines(e)}),v._parser.registerCsiHandler({final:"P"},function(e){return v.deleteChars(e)}),v._parser.registerCsiHandler({final:"S"},function(e){return v.scrollUp(e)}),v._parser.registerCsiHandler({final:"T"},function(e){return v.scrollDown(e)}),v._parser.registerCsiHandler({final:"X"},function(e){return v.eraseChars(e)}),v._parser.registerCsiHandler({final:"Z"},function(e){return v.cursorBackwardTab(e)}),v._parser.registerCsiHandler({final:"`"},function(e){return v.charPosAbsolute(e)}),v._parser.registerCsiHandler({final:"a"},function(e){return v.hPositionRelative(e)}),v._parser.registerCsiHandler({final:"b"},function(e){return v.repeatPrecedingCharacter(e)}),v._parser.registerCsiHandler({final:"c"},function(e){return v.sendDeviceAttributesPrimary(e)}),v._parser.registerCsiHandler({prefix:">",final:"c"},function(e){return v.sendDeviceAttributesSecondary(e)}),v._parser.registerCsiHandler({final:"d"},function(e){return v.linePosAbsolute(e)}),v._parser.registerCsiHandler({final:"e"},function(e){return v.vPositionRelative(e)}),v._parser.registerCsiHandler({final:"f"},function(e){return v.hVPosition(e)}),v._parser.registerCsiHandler({final:"g"},function(e){return v.tabClear(e)}),v._parser.registerCsiHandler({final:"h"},function(e){return v.setMode(e)}),v._parser.registerCsiHandler({prefix:"?",final:"h"},function(e){return v.setModePrivate(e)}),v._parser.registerCsiHandler({final:"l"},function(e){return v.resetMode(e)}),v._parser.registerCsiHandler({prefix:"?",final:"l"},function(e){return v.resetModePrivate(e)}),v._parser.registerCsiHandler({final:"m"},function(e){return v.charAttributes(e)}),v._parser.registerCsiHandler({final:"n"},function(e){return v.deviceStatus(e)}),v._parser.registerCsiHandler({prefix:"?",final:"n"},function(e){return v.deviceStatusPrivate(e)}),v._parser.registerCsiHandler({intermediates:"!",final:"p"},function(e){return v.softReset(e)}),v._parser.registerCsiHandler({intermediates:" ",final:"q"},function(e){return v.setCursorStyle(e)}),v._parser.registerCsiHandler({final:"r"},function(e){return v.setScrollRegion(e)}),v._parser.registerCsiHandler({final:"s"},function(e){return v.saveCursor(e)}),v._parser.registerCsiHandler({final:"t"},function(e){return v.windowOptions(e)}),v._parser.registerCsiHandler({final:"u"},function(e){return v.restoreCursor(e)}),v._parser.registerCsiHandler({intermediates:"'",final:"}"},function(e){return v.insertColumns(e)}),v._parser.registerCsiHandler({intermediates:"'",final:"~"},function(e){return v.deleteColumns(e)}),v._parser.setExecuteHandler(a.C0.BEL,function(){return v.bell()}),v._parser.setExecuteHandler(a.C0.LF,function(){return v.lineFeed()}),v._parser.setExecuteHandler(a.C0.VT,function(){return v.lineFeed()}),v._parser.setExecuteHandler(a.C0.FF,function(){return v.lineFeed()}),v._parser.setExecuteHandler(a.C0.CR,function(){return v.carriageReturn()}),v._parser.setExecuteHandler(a.C0.BS,function(){return v.backspace()}),v._parser.setExecuteHandler(a.C0.HT,function(){return v.tab()}),v._parser.setExecuteHandler(a.C0.SO,function(){return v.shiftOut()}),v._parser.setExecuteHandler(a.C0.SI,function(){return v.shiftIn()}),v._parser.setExecuteHandler(a.C1.IND,function(){return v.index()}),v._parser.setExecuteHandler(a.C1.NEL,function(){return v.nextLine()}),v._parser.setExecuteHandler(a.C1.HTS,function(){return v.tabSet()}),v._parser.registerOscHandler(0,new y.OscHandler(function(e){return v.setTitle(e),v.setIconName(e),!0})),v._parser.registerOscHandler(1,new y.OscHandler(function(e){return v.setIconName(e)})),v._parser.registerOscHandler(2,new y.OscHandler(function(e){return v.setTitle(e)})),v._parser.registerOscHandler(4,new y.OscHandler(function(e){return v.setAnsiColor(e)})),v._parser.registerEscHandler({final:"7"},function(){return v.saveCursor()}),v._parser.registerEscHandler({final:"8"},function(){return v.restoreCursor()}),v._parser.registerEscHandler({final:"D"},function(){return v.index()}),v._parser.registerEscHandler({final:"E"},function(){return v.nextLine()}),v._parser.registerEscHandler({final:"H"},function(){return v.tabSet()}),v._parser.registerEscHandler({final:"M"},function(){return v.reverseIndex()}),v._parser.registerEscHandler({final:"="},function(){return v.keypadApplicationMode()}),v._parser.registerEscHandler({final:">"},function(){return v.keypadNumericMode()}),v._parser.registerEscHandler({final:"c"},function(){return v.fullReset()}),v._parser.registerEscHandler({final:"n"},function(){return v.setgLevel(2)}),v._parser.registerEscHandler({final:"o"},function(){return v.setgLevel(3)}),v._parser.registerEscHandler({final:"|"},function(){return v.setgLevel(3)}),v._parser.registerEscHandler({final:"}"},function(){return v.setgLevel(2)}),v._parser.registerEscHandler({final:"~"},function(){return v.setgLevel(1)}),v._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return v.selectDefaultCharset()}),v._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return v.selectDefaultCharset()});var _=function(e){b._parser.registerEscHandler({intermediates:"(",final:e},function(){return v.selectCharset("("+e)}),b._parser.registerEscHandler({intermediates:")",final:e},function(){return v.selectCharset(")"+e)}),b._parser.registerEscHandler({intermediates:"*",final:e},function(){return v.selectCharset("*"+e)}),b._parser.registerEscHandler({intermediates:"+",final:e},function(){return v.selectCharset("+"+e)}),b._parser.registerEscHandler({intermediates:"-",final:e},function(){return v.selectCharset("-"+e)}),b._parser.registerEscHandler({intermediates:".",final:e},function(){return v.selectCharset("."+e)}),b._parser.registerEscHandler({intermediates:"/",final:e},function(){return v.selectCharset("/"+e)})},b=this;for(var w in s.CHARSETS)_(w);return v._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return v.screenAlignmentPattern()}),v._parser.setErrorHandler(function(e){return v._logService.error("Parsing error: ",e),e}),v._parser.registerDcsHandler({intermediates:"$",final:"q"},new x(v._bufferService,v._coreService,v._logService,v._optionsService)),v}return r(t,e),Object.defineProperty(t.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"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._preserveStack=function(e,t,n,i){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=n,this._parseStack.position=i},t.prototype._logSlowResolvingAsync=function(e){this._logService.logLevel<=v.LogLevelEnum.WARN&&Promise.race([e,new Promise(function(e,t){return setTimeout(function(){return t("#SLOW_TIMEOUT")},5e3)})]).catch(function(e){if("#SLOW_TIMEOUT"!==e)throw e;console.warn("async parser handler taking longer than 5000 ms")})},t.prototype.parse=function(e,t){var n,i=this._bufferService.buffer,r=i.x,o=i.y,a=0,s=this._parseStack.paused;if(s){if(n=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(n),n;r=this._parseStack.cursorStartX,o=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>w&&(a=this._parseStack.position+w)}if(this._logService.debug("parsing data",e),this._parseBuffer.length<e.length&&this._parseBuffer.length<w&&(this._parseBuffer=new Uint32Array(Math.min(e.length,w))),s||this._dirtyRowService.clearRange(),e.length>w)for(var l=a;l<e.length;l+=w){var c=l+w<e.length?l+w:e.length,u="string"==typeof e?this._stringDecoder.decode(e.substring(l,c),this._parseBuffer):this._utf8Decoder.decode(e.subarray(l,c),this._parseBuffer);if(n=this._parser.parse(this._parseBuffer,u))return this._preserveStack(r,o,u,l),this._logSlowResolvingAsync(n),n}else if(!s&&(u="string"==typeof e?this._stringDecoder.decode(e,this._parseBuffer):this._utf8Decoder.decode(e,this._parseBuffer),n=this._parser.parse(this._parseBuffer,u)))return this._preserveStack(r,o,u,0),this._logSlowResolvingAsync(n),n;(i=this._bufferService.buffer).x===r&&i.y===o||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},t.prototype.print=function(e,t,n){var i,r,o=this._bufferService.buffer,a=this._charsetService.charset,s=this._optionsService.options.screenReaderMode,l=this._bufferService.cols,c=this._coreService.decPrivateModes.wraparound,u=this._coreService.modes.insertMode,h=this._curAttrData,p=o.lines.get(o.ybase+o.y);this._dirtyRowService.markDirty(o.y),o.x&&n-t>0&&2===p.getWidth(o.x-1)&&p.setCellFromCodePoint(o.x-1,0,1,h.fg,h.bg,h.extended);for(var m=t;m<n;++m){if(r=this._unicodeService.wcwidth(i=e[m]),i<127&&a){var g=a[String.fromCharCode(i)];g&&(i=g.charCodeAt(0))}if(s&&this._onA11yChar.fire(d.stringFromCodePoint(i)),r||!o.x){if(o.x+r-1>=l)if(c){for(;o.x<l;)p.setCellFromCodePoint(o.x++,0,1,h.fg,h.bg,h.extended);o.x=0,o.y++,o.y===o.scrollBottom+1?(o.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(o.y>=this._bufferService.rows&&(o.y=this._bufferService.rows-1),o.lines.get(o.ybase+o.y).isWrapped=!0),p=o.lines.get(o.ybase+o.y)}else if(o.x=l-1,2===r)continue;if(u&&(p.insertCells(o.x,r,o.getNullCell(h),h),2===p.getWidth(l-1)&&p.setCellFromCodePoint(l-1,f.NULL_CELL_CODE,f.NULL_CELL_WIDTH,h.fg,h.bg,h.extended)),p.setCellFromCodePoint(o.x++,i,r,h.fg,h.bg,h.extended),r>0)for(;--r;)p.setCellFromCodePoint(o.x++,0,0,h.fg,h.bg,h.extended)}else p.getWidth(o.x-1)?p.addCodepointToCell(o.x-1,i):p.addCodepointToCell(o.x-2,i)}n-t>0&&(p.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<l&&n-t>0&&0===p.getWidth(o.x)&&!p.hasContent(o.x)&&p.setCellFromCodePoint(o.x,0,1,h.fg,h.bg,h.extended),this._dirtyRowService.markDirty(o.y)},t.prototype.registerCsiHandler=function(e,t){var n=this;return this._parser.registerCsiHandler(e,"t"!==e.final||e.prefix||e.intermediates?t:function(e){return!S(e.params[0],n._optionsService.options.windowOptions)||t(e)})},t.prototype.registerDcsHandler=function(e,t){return this._parser.registerDcsHandler(e,new _.DcsHandler(t))},t.prototype.registerEscHandler=function(e,t){return this._parser.registerEscHandler(e,t)},t.prototype.registerOscHandler=function(e,t){return this._parser.registerOscHandler(e,new y.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._bufferService.scroll(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,i){void 0===i&&(i=!1);var r=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+e);r.replaceCells(t,n,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i&&(r.isWrapped=!1)},t.prototype._resetBufferLine=function(e){var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+e);t.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),t.isWrapped=!1},t.prototype.eraseInDisplay=function(e){var t;switch(this._restrictCursor(),e.params[0]){case 0:for(this._dirtyRowService.markDirty(t=this._bufferService.buffer.y),this._eraseInBufferLine(t++,this._bufferService.buffer.x,this._bufferService.cols,0===this._bufferService.buffer.x);t<this._bufferService.rows;t++)this._resetBufferLine(t);this._dirtyRowService.markDirty(t);break;case 1:for(this._dirtyRowService.markDirty(t=this._bufferService.buffer.y),this._eraseInBufferLine(t,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(t+1).isWrapped=!1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 2:for(this._dirtyRowService.markDirty((t=this._bufferService.rows)-1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 3:var n=this._bufferService.buffer.lines.length-this._bufferService.rows;n>0&&(this._bufferService.buffer.lines.trimStart(n),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-n,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-n,0),this._onScroll.fire(0))}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 i=n.ybase+n.y,r=this._bufferService.rows-1+n.ybase-(this._bufferService.rows-1-n.scrollBottom)+1;t--;)n.lines.splice(r-1,1),n.lines.splice(i,0,n.getBlankLine(this._eraseAttrData()));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 i,r=n.ybase+n.y;for(i=this._bufferService.rows-1+n.ybase-(i=this._bufferService.rows-1-n.scrollBottom);t--;)n.lines.splice(r,1),n.lines.splice(i,0,n.getBlankLine(this._eraseAttrData()));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(h.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,i=t.scrollTop;i<=t.scrollBottom;++i){var r=t.lines.get(t.ybase+i);r.deleteCells(0,n,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),r.isWrapped=!1}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,i=t.scrollTop;i<=t.scrollBottom;++i){var r=t.lines.get(t.ybase+i);r.insertCells(0,n,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),r.isWrapped=!1}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,i=t.scrollTop;i<=t.scrollBottom;++i){var r=this._bufferService.buffer.lines.get(t.ybase+i);r.insertCells(t.x,n,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),r.isWrapped=!1}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,i=t.scrollTop;i<=t.scrollBottom;++i){var r=t.lines.get(t.ybase+i);r.deleteCells(t.x,n,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),r.isWrapped=!1}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),i=0;i<t;++i)n[i]=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,i,r){return 2===t?(e|=50331648,e&=-16777216,e|=g.AttributeData.fromColorRGB([n,i,r])):5===t&&(e&=-50331904,e|=33554432|255&n),e},t.prototype._extractColor=function(e,t,n){var i=[0,0,-1,0,0,0],r=0,o=0;do{if(i[o+r]=e.params[t+o],e.hasSubParams(t+o)){var a=e.getSubParams(t+o),s=0;do{5===i[1]&&(r=1),i[o+s+1+r]=a[s]}while(++s<a.length&&s+o+1+r<i.length);break}if(5===i[1]&&o+r>=2||2===i[1]&&o+r>=5)break;i[1]&&(r=1)}while(++o+t<e.length&&o+r<i.length);for(s=2;s<i.length;++s)-1===i[s]&&(i[s]=0);switch(i[0]){case 38:n.fg=this._updateAttrColor(n.fg,i[1],i[3],i[4],i[5]);break;case 48:n.bg=this._updateAttrColor(n.bg,i[1],i[3],i[4],i[5]);break;case 58:n.extended=n.extended.clone(),n.extended.underlineColor=this._updateAttrColor(n.extended.underlineColor,i[1],i[3],i[4],i[5])}return o},t.prototype._processUnderline=function(e,t){t.extended=t.extended.clone(),(!~e||e>5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()},t.prototype.charAttributes=function(e){if(1===e.length&&0===e.params[0])return this._curAttrData.fg=h.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=h.DEFAULT_ATTR_DATA.bg,!0;for(var t,n=e.length,i=this._curAttrData,r=0;r<n;r++)(t=e.params[r])>=30&&t<=37?(i.fg&=-50331904,i.fg|=16777216|t-30):t>=40&&t<=47?(i.bg&=-50331904,i.bg|=16777216|t-40):t>=90&&t<=97?(i.fg&=-50331904,i.fg|=16777224|t-90):t>=100&&t<=107?(i.bg&=-50331904,i.bg|=16777224|t-100):0===t?(i.fg=h.DEFAULT_ATTR_DATA.fg,i.bg=h.DEFAULT_ATTR_DATA.bg):1===t?i.fg|=134217728:3===t?i.bg|=67108864:4===t?(i.fg|=268435456,this._processUnderline(e.hasSubParams(r)?e.getSubParams(r)[0]:1,i)):5===t?i.fg|=536870912:7===t?i.fg|=67108864:8===t?i.fg|=1073741824:2===t?i.bg|=134217728:21===t?this._processUnderline(2,i):22===t?(i.fg&=-134217729,i.bg&=-134217729):23===t?i.bg&=-67108865:24===t?i.fg&=-268435457:25===t?i.fg&=-536870913:27===t?i.fg&=-67108865:28===t?i.fg&=-1073741825:39===t?(i.fg&=-67108864,i.fg|=16777215&h.DEFAULT_ATTR_DATA.fg):49===t?(i.bg&=-67108864,i.bg|=16777215&h.DEFAULT_ATTR_DATA.bg):38===t||48===t||58===t?r+=this._extractColor(e,r,i):59===t?(i.extended=i.extended.clone(),i.extended.underlineColor=-1,i.updateExtended()):100===t?(i.fg&=-67108864,i.fg|=16777215&h.DEFAULT_ATTR_DATA.fg,i.bg&=-67108864,i.bg|=16777215&h.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=h.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(!S(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:[]},i=/(\d+);rgb:([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})/gi;null!==(t=i.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(b[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._bufferService.scroll(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=h.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=h.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 i=t.lines.get(t.ybase+t.y+n);i&&(i.fill(e),i.isWrapped=!1)}return this._dirtyRowService.markAllDirty(),this._setCursor(0,0),!0},t}(c.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 i(e){for(var t=0,n=e;t<n.length;t++)n[t].dispose();e.length=0}t.Disposable=n,t.disposeArray=i,t.getDisposeArrayDisposable=function(e){return{dispose:function(){return i(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,i=n?"node":navigator.userAgent,r=n?"node":navigator.platform;t.isFirefox=i.includes("Firefox"),t.isSafari=/^((?!chrome|android).)*safari/i.test(i),t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(r),t.isIpad="iPad"===r,t.isIphone="iPhone"===r,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(r),t.isLinux=r.indexOf("Linux")>=0},8273:function(e,t){function n(e,t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=e.length),n>=e.length)return e;i=i>=e.length?e.length:(e.length+i)%e.length;for(var r=n=(e.length+n)%e.length;r<i;++r)e[r]=t;return e}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=t.fillFallback=t.fill=void 0,t.fill=function(e,t,i,r){return e.fill?e.fill(t,i,r):n(e,t,i,r)},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 i=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),r=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);r&&n&&(r.isWrapped=n[i.CHAR_DATA_CODE_INDEX]!==i.NULL_CELL_CODE&&n[i.CHAR_DATA_CODE_INDEX]!==i.WHITESPACE_CELL_CODE)}},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 i}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 i=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=i},9092:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BufferStringIterator=t.Buffer=t.MAX_BUFFER_SIZE=void 0;var i=n(6349),r=n(8437),o=n(511),a=n(643),s=n(4634),l=n(4863),c=n(7116),u=n(3734);t.MAX_BUFFER_SIZE=4294967295;var d=function(){function e(e,t,n){this._hasScrollback=e,this._optionsService=t,this._bufferService=n,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=r.DEFAULT_ATTR_DATA.clone(),this.savedCharset=c.DEFAULT_CHARSET,this.markers=[],this._nullCell=o.CellData.fromCharData([0,a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE]),this._whitespaceCell=o.CellData.fromCharData([0,a.WHITESPACE_CELL_CHAR,a.WHITESPACE_CELL_WIDTH,a.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new i.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return e.prototype.getNullCell=function(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new u.ExtendedAttrs),this._nullCell},e.prototype.getWhitespaceCell=function(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new u.ExtendedAttrs),this._whitespaceCell},e.prototype.getBlankLine=function(e,t){return new r.BufferLine(this._bufferService.cols,this.getNullCell(e),t)},Object.defineProperty(e.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._rows},enumerable:!1,configurable:!0}),e.prototype._getCorrectBufferLength=function(e){if(!this._hasScrollback)return e;var n=e+this._optionsService.options.scrollback;return n>t.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:n},e.prototype.fillViewportRows=function(e){if(0===this.lines.length){void 0===e&&(e=r.DEFAULT_ATTR_DATA);for(var t=this._rows;t--;)this.lines.push(this.getBlankLine(e))}},e.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new i.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},e.prototype.resize=function(e,t){var n=this.getNullCell(r.DEFAULT_ATTR_DATA),i=this._getCorrectBufferLength(t);if(i>this.lines.maxLength&&(this.lines.maxLength=i),this.lines.length>0){if(this._cols<e)for(var o=0;o<this.lines.length;o++)this.lines.get(o).resize(e,n);var a=0;if(this._rows<t)for(var s=this._rows;s<t;s++)this.lines.length<t+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new r.BufferLine(e,n)):this.ybase>0&&this.lines.length<=this.ybase+this.y+a+1?(this.ybase--,a++,this.ydisp>0&&this.ydisp--):this.lines.push(new r.BufferLine(e,n)));else for(s=this._rows;s>t;s--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(i<this.lines.maxLength){var l=this.lines.length-i;l>0&&(this.lines.trimStart(l),this.ybase=Math.max(this.ybase-l,0),this.ydisp=Math.max(this.ydisp-l,0),this.savedY=Math.max(this.savedY-l,0)),this.lines.maxLength=i}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),a&&(this.y+=a),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(o=0;o<this.lines.length;o++)this.lines.get(o).resize(e,n);this._cols=e,this._rows=t},Object.defineProperty(e.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),e.prototype._reflow=function(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))},e.prototype._reflowLarger=function(e,t){var n=s.reflowLargerGetLinesToRemove(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(r.DEFAULT_ATTR_DATA));if(n.length>0){var i=s.reflowLargerCreateNewLayout(this.lines,n);s.reflowLargerApplyNewLayout(this.lines,i.layout),this._reflowLargerAdjustViewport(e,t,i.countRemoved)}},e.prototype._reflowLargerAdjustViewport=function(e,t,n){for(var i=this.getNullCell(r.DEFAULT_ATTR_DATA),o=n;o-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new r.BufferLine(e,i))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-n,0)},e.prototype._reflowSmaller=function(e,t){for(var n=this.getNullCell(r.DEFAULT_ATTR_DATA),i=[],o=0,a=this.lines.length-1;a>=0;a--){var l=this.lines.get(a);if(!(!l||!l.isWrapped&&l.getTrimmedLength()<=e)){for(var c=[l];l.isWrapped&&a>0;)l=this.lines.get(--a),c.unshift(l);var u=this.ybase+this.y;if(!(u>=a&&u<a+c.length)){var d,h=c[c.length-1].getTrimmedLength(),p=s.reflowSmallerGetNewLineLengths(c,this._cols,e),f=p.length-c.length;d=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+f):Math.max(0,this.lines.length-this.lines.maxLength+f);for(var m=[],g=0;g<f;g++){var v=this.getBlankLine(r.DEFAULT_ATTR_DATA,!0);m.push(v)}m.length>0&&(i.push({start:a+c.length+o,newLines:m}),o+=m.length),c.push.apply(c,m);var y=p.length-1,_=p[y];0===_&&(_=p[--y]);for(var b=c.length-f-1,w=h;b>=0;){var S=Math.min(w,_);if(c[y].copyCellsFrom(c[b],w-S,_-S,S,!0),0==(_-=S)&&(_=p[--y]),0==(w-=S)){b--;var x=Math.max(b,0);w=s.getWrappedLineTrimmedLength(c,x,this._cols)}}for(g=0;g<c.length;g++)p[g]<e&&c[g].setCell(p[g],n);for(var C=f-d;C-- >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+f,this.ybase+t-1)}}}if(i.length>0){var k=[],T=[];for(g=0;g<this.lines.length;g++)T.push(this.lines.get(g));var A=this.lines.length,Z=A-1,M=0,O=i[M];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+o);var E=0;for(g=Math.min(this.lines.maxLength-1,A+o-1);g>=0;g--)if(O&&O.start>Z+E){for(var P=O.newLines.length-1;P>=0;P--)this.lines.set(g--,O.newLines[P]);g++,k.push({index:Z+1,amount:O.newLines.length}),E+=O.newLines.length,O=i[++M]}else this.lines.set(g,T[Z--]);var I=0;for(g=k.length-1;g>=0;g--)k[g].index+=I,this.lines.onInsertEmitter.fire(k[g]),I+=k[g].amount;var q=Math.max(0,A+o-this.lines.maxLength);q>0&&this.lines.onTrimEmitter.fire(q)}},e.prototype.stringIndexToBufferIndex=function(e,t,n){for(void 0===n&&(n=!1);t;){var i=this.lines.get(e);if(!i)return[-1,-1];for(var r=n?i.getTrimmedLength():i.length,o=0;o<r;++o)if(i.get(o)[a.CHAR_DATA_WIDTH_INDEX]&&(t-=i.get(o)[a.CHAR_DATA_CHAR_INDEX].length||1),t<0)return[e,o];e++}return[e,0]},e.prototype.translateBufferLineToString=function(e,t,n,i){void 0===n&&(n=0);var r=this.lines.get(e);return r?r.translateToString(t,n,i):""},e.prototype.getWrappedRangeForLine=function(e){for(var t=e,n=e;t>0&&this.lines.get(t).isWrapped;)t--;for(;n+1<this.lines.length&&this.lines.get(n+1).isWrapped;)n++;return{first:t,last:n}},e.prototype.setupTabStops=function(e){for(null!=e?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.options.tabStopWidth)this.tabs[e]=!0},e.prototype.prevStop=function(e){for(null==e&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e},e.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e},e.prototype.addMarker=function(e){var t=this,n=new l.Marker(e);return this.markers.push(n),n.register(this.lines.onTrim(function(e){n.line-=e,n.line<0&&n.dispose()})),n.register(this.lines.onInsert(function(e){n.line>=e.index&&(n.line+=e.amount)})),n.register(this.lines.onDelete(function(e){n.line>=e.index&&n.line<e.index+e.amount&&n.dispose(),n.line>e.index&&(n.line-=e.amount)})),n.register(n.onDispose(function(){return t._removeMarker(n)})),n},e.prototype._removeMarker=function(e){this.markers.splice(this.markers.indexOf(e),1)},e.prototype.iterator=function(e,t,n,i,r){return new h(this,e,t,n,i,r)},e}();t.Buffer=d;var h=function(){function e(e,t,n,i,r,o){void 0===n&&(n=0),void 0===i&&(i=e.lines.length),void 0===r&&(r=0),void 0===o&&(o=0),this._buffer=e,this._trimRight=t,this._startIndex=n,this._endIndex=i,this._startOverscan=r,this._endOverscan=o,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return e.prototype.hasNext=function(){return this._current<this._endIndex},e.prototype.next=function(){var e=this._buffer.getWrappedRangeForLine(this._current);e.first<this._startIndex-this._startOverscan&&(e.first=this._startIndex-this._startOverscan),e.last>this._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var t="",n=e.first;n<=e.last;++n)t+=this._buffer.translateBufferLineToString(n,this._trimRight);return this._current=e.last+1,{range:e,content:t}},e}();t.BufferStringIterator=h},8437:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;var i=n(482),r=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 i=t||o.CellData.fromCharData([0,r.NULL_CELL_CHAR,r.NULL_CELL_WIDTH,r.NULL_CELL_CODE]),a=0;a<e;++a)this.setCell(a,i);this.length=e}return e.prototype.get=function(e){var t=this._data[3*e+0],n=2097151&t;return[this._data[3*e+1],2097152&t?this._combined[e]:n?i.stringFromCodePoint(n):"",t>>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):n]},e.prototype.set=function(e,t){this._data[3*e+1]=t[r.CHAR_DATA_ATTR_INDEX],t[r.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[r.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[r.CHAR_DATA_WIDTH_INDEX]<<22},e.prototype.getWidth=function(e){return this._data[3*e+0]>>22},e.prototype.hasWidth=function(e){return 12582912&this._data[3*e+0]},e.prototype.getFg=function(e){return this._data[3*e+1]},e.prototype.getBg=function(e){return this._data[3*e+2]},e.prototype.hasContent=function(e){return 4194303&this._data[3*e+0]},e.prototype.getCodePoint=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t},e.prototype.isCombined=function(e){return 2097152&this._data[3*e+0]},e.prototype.getString=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?i.stringFromCodePoint(2097151&t):""},e.prototype.loadCell=function(e,t){var n=3*e;return t.content=this._data[n+0],t.fg=this._data[n+1],t.bg=this._data[n+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t},e.prototype.setCell=function(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg},e.prototype.setCellFromCodePoint=function(e,t,n,i,r,o){268435456&r&&(this._extendedAttrs[e]=o),this._data[3*e+0]=t|n<<22,this._data[3*e+1]=i,this._data[3*e+2]=r},e.prototype.addCodepointToCell=function(e,t){var n=this._data[3*e+0];2097152&n?this._combined[e]+=i.stringFromCodePoint(t):(2097151&n?(this._combined[e]=i.stringFromCodePoint(2097151&n)+i.stringFromCodePoint(t),n&=-2097152,n|=2097152):n=t|1<<22,this._data[3*e+0]=n)},e.prototype.insertCells=function(e,t,n,i){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs),t<this.length-e){for(var r=new o.CellData,s=this.length-e-t-1;s>=0;--s)this.setCell(e+t+s,this.loadCell(e+s,r));for(s=0;s<t;++s)this.setCell(e+s,n)}else for(s=e;s<this.length;++s)this.setCell(s,n);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs)},e.prototype.deleteCells=function(e,t,n,i){if(t<this.length-(e%=this.length)){for(var r=new o.CellData,s=0;s<this.length-e-t;++s)this.setCell(e+s,this.loadCell(e+t+s,r));for(s=this.length-t;s<this.length;++s)this.setCell(s,n)}else for(s=e;s<this.length;++s)this.setCell(s,n);e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs),0!==this.getWidth(e)||this.hasContent(e)||this.setCellFromCodePoint(e,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs)},e.prototype.replaceCells=function(e,t,n,i){for(e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs),t<this.length&&2===this.getWidth(t-1)&&this.setCellFromCodePoint(t,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new a.ExtendedAttrs);e<t&&e<this.length;)this.setCell(e++,n)},e.prototype.resize=function(e,t){if(e!==this.length){if(e>this.length){var n=new Uint32Array(3*e);this.length&&n.set(3*e<this._data.length?this._data.subarray(0,3*e):this._data),this._data=n;for(var i=this.length;i<e;++i)this.setCell(i,t)}else if(e){(n=new Uint32Array(3*e)).set(this._data.subarray(0,3*e)),this._data=n;var r=Object.keys(this._combined);for(i=0;i<r.length;i++){var o=parseInt(r[i],10);o>=e&&delete this._combined[o]}}else this._data=new Uint32Array(0),this._combined={};this.length=e}},e.prototype.fill=function(e){this._combined={},this._extendedAttrs={};for(var t=0;t<this.length;++t)this.setCell(t,e)},e.prototype.copyFrom=function(e){for(var t in this.length!==e.length?this._data=new Uint32Array(e._data):this._data.set(e._data),this.length=e.length,this._combined={},e._combined)this._combined[t]=e._combined[t];for(var t in this._extendedAttrs={},e._extendedAttrs)this._extendedAttrs[t]=e._extendedAttrs[t];this.isWrapped=e.isWrapped},e.prototype.clone=function(){var t=new e(0);for(var n in t._data=new Uint32Array(this._data),t.length=this.length,this._combined)t._combined[n]=this._combined[n];for(var n in this._extendedAttrs)t._extendedAttrs[n]=this._extendedAttrs[n];return t.isWrapped=this.isWrapped,t},e.prototype.getTrimmedLength=function(){for(var e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0},e.prototype.copyCellsFrom=function(e,t,n,i,r){var o=e._data;if(r)for(var a=i-1;a>=0;a--)for(var s=0;s<3;s++)this._data[3*(n+a)+s]=o[3*(t+a)+s];else for(a=0;a<i;a++)for(s=0;s<3;s++)this._data[3*(n+a)+s]=o[3*(t+a)+s];var l=Object.keys(e._combined);for(s=0;s<l.length;s++){var c=parseInt(l[s],10);c>=t&&(this._combined[c-t+n]=e._combined[c])}},e.prototype.translateToString=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=0),void 0===n&&(n=this.length),e&&(n=Math.min(n,this.getTrimmedLength()));for(var o="";t<n;){var a=this._data[3*t+0],s=2097151&a;o+=2097152&a?this._combined[t]:s?i.stringFromCodePoint(s):r.WHITESPACE_CELL_CHAR,t+=a>>22||1}return o},e}();t.BufferLine=s},4841:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y===e.end.y)return e.end.x-e.start.x+1;if(e.start.y>e.end.y)throw new Error("Buffer range end ("+e.end.x+", "+e.end.y+") cannot be before start ("+e.start.x+", "+e.start.y+")");return t*(e.end.y-e.start.y-1)+t-e.start.x+e.end.x}},4634:function(e,t){function n(e,t,n){if(t===e.length-1)return e[t].getTrimmedLength();var i=!e[t].hasContent(n-1)&&1===e[t].getWidth(n-1),r=2===e[t+1].getWidth(0);return i&&r?n-1:n}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(e,t,i,r,o){for(var a=[],s=0;s<e.length-1;s++){var l=s,c=e.get(++l);if(c.isWrapped){for(var u=[e.get(s)];l<e.length&&c.isWrapped;)u.push(c),c=e.get(++l);if(r>=s&&r<l)s+=u.length-1;else{for(var d=0,h=n(u,d,t),p=1,f=0;p<u.length;){var m=n(u,p,t),g=Math.min(m-f,i-h);u[d].copyCellsFrom(u[p],f,h,g,!1),(h+=g)===i&&(d++,h=0),(f+=g)===m&&(p++,f=0),0===h&&0!==d&&2===u[d-1].getWidth(i-1)&&(u[d].copyCellsFrom(u[d-1],i-1,h++,1,!1),u[d-1].setCell(i-1,o))}u[d].replaceCells(h,i,o);for(var v=0,y=u.length-1;y>0&&(y>d||0===u[y].getTrimmedLength());y--)v++;v>0&&(a.push(s+u.length-v),a.push(v)),s+=u.length-1}}}return a},t.reflowLargerCreateNewLayout=function(e,t){for(var n=[],i=0,r=t[i],o=0,a=0;a<e.length;a++)if(r===a){var s=t[++i];e.onDeleteEmitter.fire({index:a-o,amount:s}),a+=s-1,o+=s,r=t[++i]}else n.push(a);return{layout:n,countRemoved:o}},t.reflowLargerApplyNewLayout=function(e,t){for(var n=[],i=0;i<t.length;i++)n.push(e.get(t[i]));for(i=0;i<n.length;i++)e.set(i,n[i]);e.length=t.length},t.reflowSmallerGetNewLineLengths=function(e,t,i){for(var r=[],o=e.map(function(i,r){return n(e,r,t)}).reduce(function(e,t){return e+t}),a=0,s=0,l=0;l<o;){if(o-l<i){r.push(o-l);break}a+=i;var c=n(e,s,t);a>c&&(a-=c,s++);var u=2===e[s].getWidth(a-1);u&&a--;var d=u?i-1:i;r.push(d),l+=d}return r},t.getWrappedLineTrimmedLength=n},5295:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;var o=n(9092),a=n(8460),s=function(e){function t(t,n){var i=e.call(this)||this;return i._optionsService=t,i._bufferService=n,i._onBufferActivate=i.register(new a.EventEmitter),i.reset(),i}return r(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 i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;var o=n(482),a=n(643),s=n(3734),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.content=0,t.fg=0,t.bg=0,t.extended=new s.ExtendedAttrs,t.combinedData="",t}return r(t,e),t.fromCharData=function(e){var n=new t;return n.setFromCharData(e),n},t.prototype.isCombined=function(){return 2097152&this.content},t.prototype.getWidth=function(){return this.content>>22},t.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?o.stringFromCodePoint(2097151&this.content):""},t.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},t.prototype.setFromCharData=function(e){this.fg=e[a.CHAR_DATA_ATTR_INDEX],this.bg=0;var t=!1;if(e[a.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[a.CHAR_DATA_CHAR_INDEX].length){var n=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=n&&n<=56319){var i=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=i&&i<=57343?this.content=1024*(n-55296)+i-56320+65536|e[a.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[a.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[a.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[a.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(s.AttributeData);t.CellData=l},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 i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;var o=n(8460),a=function(e){function t(n){var i=e.call(this)||this;return i.line=n,i._id=t._nextId++,i.isDisposed=!1,i._onDispose=new o.EventEmitter,i}return r(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),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,i;Object.defineProperty(t,"__esModule",{value:!0}),t.C1=t.C0=void 0,(i=t.C0||(t.C0={})).NUL="\0",i.SOH="\x01",i.STX="\x02",i.ETX="\x03",i.EOT="\x04",i.ENQ="\x05",i.ACK="\x06",i.BEL="\x07",i.BS="\b",i.HT="\t",i.LF="\n",i.VT="\v",i.FF="\f",i.CR="\r",i.SO="\x0e",i.SI="\x0f",i.DLE="\x10",i.DC1="\x11",i.DC2="\x12",i.DC3="\x13",i.DC4="\x14",i.NAK="\x15",i.SYN="\x16",i.ETB="\x17",i.CAN="\x18",i.EM="\x19",i.SUB="\x1a",i.ESC="\x1b",i.FS="\x1c",i.GS="\x1d",i.RS="\x1e",i.US="\x1f",i.SP=" ",i.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 i=n(2584),r={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,n,o){var a={type:0,cancel:!1,key:void 0},s=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?a.key=t?i.C0.ESC+"OA":i.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?a.key=t?i.C0.ESC+"OD":i.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?a.key=t?i.C0.ESC+"OC":i.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(a.key=t?i.C0.ESC+"OB":i.C0.ESC+"[B");break;case 8:if(e.shiftKey){a.key=i.C0.BS;break}if(e.altKey){a.key=i.C0.ESC+i.C0.DEL;break}a.key=i.C0.DEL;break;case 9:if(e.shiftKey){a.key=i.C0.ESC+"[Z";break}a.key=i.C0.HT,a.cancel=!0;break;case 13:a.key=e.altKey?i.C0.ESC+i.C0.CR:i.C0.CR,a.cancel=!0;break;case 27:a.key=i.C0.ESC,e.altKey&&(a.key=i.C0.ESC+i.C0.ESC),a.cancel=!0;break;case 37:if(e.metaKey)break;s?(a.key=i.C0.ESC+"[1;"+(s+1)+"D",a.key===i.C0.ESC+"[1;3D"&&(a.key=i.C0.ESC+(n?"b":"[1;5D"))):a.key=t?i.C0.ESC+"OD":i.C0.ESC+"[D";break;case 39:if(e.metaKey)break;s?(a.key=i.C0.ESC+"[1;"+(s+1)+"C",a.key===i.C0.ESC+"[1;3C"&&(a.key=i.C0.ESC+(n?"f":"[1;5C"))):a.key=t?i.C0.ESC+"OC":i.C0.ESC+"[C";break;case 38:if(e.metaKey)break;s?(a.key=i.C0.ESC+"[1;"+(s+1)+"A",n||a.key!==i.C0.ESC+"[1;3A"||(a.key=i.C0.ESC+"[1;5A")):a.key=t?i.C0.ESC+"OA":i.C0.ESC+"[A";break;case 40:if(e.metaKey)break;s?(a.key=i.C0.ESC+"[1;"+(s+1)+"B",n||a.key!==i.C0.ESC+"[1;3B"||(a.key=i.C0.ESC+"[1;5B")):a.key=t?i.C0.ESC+"OB":i.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(a.key=i.C0.ESC+"[2~");break;case 46:a.key=s?i.C0.ESC+"[3;"+(s+1)+"~":i.C0.ESC+"[3~";break;case 36:a.key=s?i.C0.ESC+"[1;"+(s+1)+"H":t?i.C0.ESC+"OH":i.C0.ESC+"[H";break;case 35:a.key=s?i.C0.ESC+"[1;"+(s+1)+"F":t?i.C0.ESC+"OF":i.C0.ESC+"[F";break;case 33:e.shiftKey?a.type=2:a.key=i.C0.ESC+"[5~";break;case 34:e.shiftKey?a.type=3:a.key=i.C0.ESC+"[6~";break;case 112:a.key=s?i.C0.ESC+"[1;"+(s+1)+"P":i.C0.ESC+"OP";break;case 113:a.key=s?i.C0.ESC+"[1;"+(s+1)+"Q":i.C0.ESC+"OQ";break;case 114:a.key=s?i.C0.ESC+"[1;"+(s+1)+"R":i.C0.ESC+"OR";break;case 115:a.key=s?i.C0.ESC+"[1;"+(s+1)+"S":i.C0.ESC+"OS";break;case 116:a.key=s?i.C0.ESC+"[15;"+(s+1)+"~":i.C0.ESC+"[15~";break;case 117:a.key=s?i.C0.ESC+"[17;"+(s+1)+"~":i.C0.ESC+"[17~";break;case 118:a.key=s?i.C0.ESC+"[18;"+(s+1)+"~":i.C0.ESC+"[18~";break;case 119:a.key=s?i.C0.ESC+"[19;"+(s+1)+"~":i.C0.ESC+"[19~";break;case 120:a.key=s?i.C0.ESC+"[20;"+(s+1)+"~":i.C0.ESC+"[20~";break;case 121:a.key=s?i.C0.ESC+"[21;"+(s+1)+"~":i.C0.ESC+"[21~";break;case 122:a.key=s?i.C0.ESC+"[23;"+(s+1)+"~":i.C0.ESC+"[23~";break;case 123:a.key=s?i.C0.ESC+"[24;"+(s+1)+"~":i.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(n&&!o||!e.altKey||e.metaKey)!n||e.altKey||e.ctrlKey||e.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=i.C0.US):65===e.keyCode&&(a.type=1);else{var l=r[e.keyCode],c=l&&l[e.shiftKey?1:0];c?a.key=i.C0.ESC+c:e.keyCode>=65&&e.keyCode<=90&&(a.key=i.C0.ESC+String.fromCharCode(e.ctrlKey?e.keyCode-64:e.keyCode+32))}else e.keyCode>=65&&e.keyCode<=90?a.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?a.key=i.C0.NUL:e.keyCode>=51&&e.keyCode<=55?a.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?a.key=i.C0.DEL:219===e.keyCode?a.key=i.C0.ESC:220===e.keyCode?a.key=i.C0.FS:221===e.keyCode&&(a.key=i.C0.GS)}return a}},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 i="",r=t;r<n;++r){var o=e[r];o>65535?(o-=65536,i+=String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):i+=String.fromCharCode(o)}return i};var 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 i=0,r=0;this._interim&&(56320<=(s=e.charCodeAt(r++))&&s<=57343?t[i++]=1024*(this._interim-55296)+s-56320+65536:(t[i++]=this._interim,t[i++]=s),this._interim=0);for(var o=r;o<n;++o){var a=e.charCodeAt(o);if(55296<=a&&a<=56319){if(++o>=n)return this._interim=a,i;var s;56320<=(s=e.charCodeAt(o))&&s<=57343?t[i++]=1024*(a-55296)+s-56320+65536:(t[i++]=a,t[i++]=s)}else 65279!==a&&(t[i++]=a)}return i},e}();t.StringToUtf32=n;var i=function(){function e(){this.interim=new Uint8Array(3)}return e.prototype.clear=function(){this.interim.fill(0)},e.prototype.decode=function(e,t){var n=e.length;if(!n)return 0;var i,r,o,a,s=0,l=0,c=0;if(this.interim[0]){var u=!1,d=this.interim[0];d&=192==(224&d)?31:224==(240&d)?15:7;for(var h=0,p=void 0;(p=63&this.interim[++h])&&h<4;)d<<=6,d|=p;for(var f=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,m=f-h;c<m;){if(c>=n)return 0;if(128!=(192&(p=e[c++]))){c--,u=!0;break}this.interim[h++]=p,d<<=6,d|=63&p}u||(2===f?d<128?c--:t[s++]=d:3===f?d<2048||d>=55296&&d<=57343||65279===d||(t[s++]=d):d<65536||d>1114111||(t[s++]=d)),this.interim.fill(0)}for(var g=n-4,v=c;v<n;){for(;!(!(v<g)||128&(i=e[v])||128&(r=e[v+1])||128&(o=e[v+2])||128&(a=e[v+3]));)t[s++]=i,t[s++]=r,t[s++]=o,t[s++]=a,v+=4;if((i=e[v++])<128)t[s++]=i;else if(192==(224&i)){if(v>=n)return this.interim[0]=i,s;if(128!=(192&(r=e[v++]))){v--;continue}if((l=(31&i)<<6|63&r)<128){v--;continue}t[s++]=l}else if(224==(240&i)){if(v>=n)return this.interim[0]=i,s;if(128!=(192&(r=e[v++]))){v--;continue}if(v>=n)return this.interim[0]=i,this.interim[1]=r,s;if(128!=(192&(o=e[v++]))){v--;continue}if((l=(15&i)<<12|(63&r)<<6|63&o)<2048||l>=55296&&l<=57343||65279===l)continue;t[s++]=l}else if(240==(248&i)){if(v>=n)return this.interim[0]=i,s;if(128!=(192&(r=e[v++]))){v--;continue}if(v>=n)return this.interim[0]=i,this.interim[1]=r,s;if(128!=(192&(o=e[v++]))){v--;continue}if(v>=n)return this.interim[0]=i,this.interim[1]=r,this.interim[2]=o,s;if(128!=(192&(a=e[v++]))){v--;continue}if((l=(7&i)<<18|(63&r)<<12|(63&o)<<6|63&a)<65536||l>1114111)continue;t[s++]=l}}return s},e}();t.Utf8ToUtf32=i},225:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;var i,r=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",!i){i=new Uint8Array(65536),r.fill(i,1),i[0]=0,r.fill(i,0,1,32),r.fill(i,0,127,160),r.fill(i,2,4352,4448),i[9001]=2,i[9002]=2,r.fill(i,2,11904,42192),i[12351]=1,r.fill(i,2,44032,55204),r.fill(i,2,63744,64256),r.fill(i,2,65040,65050),r.fill(i,2,65072,65136),r.fill(i,2,65280,65377),r.fill(i,2,65504,65511);for(var e=0;e<o.length;++e)r.fill(i,0,o[e][0],o[e][1]+1)}}return e.prototype.wcwidth=function(e){return e<32?0:e<127?1:e<65536?i[e]:function(e,t){var n,i=0,r=t.length-1;if(e<t[0][0]||e>t[r][1])return!1;for(;r>=i;)if(e>t[n=i+r>>1][1])i=n+1;else{if(!(e<t[n][0]))return!0;r=n-1}return!1}(e,a)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1},e}();t.UnicodeV6=s},5981:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;var n="undefined"==typeof queueMicrotask?function(e){Promise.resolve().then(e)}:queueMicrotask,i=function(){function e(e){this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0}return e.prototype.writeSync=function(e,t){if(void 0!==t&&this._syncCalls>t)this._syncCalls=0;else if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var n;for(this._isSyncWriting=!0;n=this._writeBuffer.shift();){this._action(n);var i=this._callbacks.shift();i&&i()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},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(e,t){var i=this;void 0===e&&(e=0),void 0===t&&(t=!0);for(var r=e||Date.now();this._writeBuffer.length>this._bufferOffset;){var o=this._writeBuffer[this._bufferOffset],a=this._action(o,t);if(a)return void a.catch(function(e){return n(function(){throw e}),Promise.resolve(!1)}).then(function(e){return Date.now()-r>=12?setTimeout(function(){return i._innerWrite(0,e)}):i._innerWrite(r,e)});var s=this._callbacks[this._bufferOffset];if(s&&s(),this._bufferOffset++,this._pendingData-=o.length,Date.now()-r>=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 i._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0)},e}();t.WriteBuffer=i},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 i=n(482),r=n(8742),o=n(5770),a=[],s=function(){function e(){this._handlers=Object.create(null),this._active=a,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}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(){if(this._active.length)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=a,this._ident=0},e.prototype.hook=function(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||a,this._active.length)for(var n=this._active.length-1;n>=0;n--)this._active[n].hook(t);else this._handlerFb(this._ident,"HOOK",t)},e.prototype.put=function(e,t,n){if(this._active.length)for(var r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,n);else this._handlerFb(this._ident,"PUT",i.utf32ToString(e,t,n))},e.prototype.unhook=function(e,t){if(void 0===t&&(t=!0),this._active.length){var n=!1,i=this._active.length-1,r=!1;if(this._stack.paused&&(i=this._stack.loopPosition-1,n=t,r=this._stack.fallThrough,this._stack.paused=!1),!r&&!1===n){for(;i>=0&&!0!==(n=this._active[i].unhook(e));i--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!1,n;i--}for(;i>=0;i--)if((n=this._active[i].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!0,n}else this._handlerFb(this._ident,"UNHOOK",e);this._active=a,this._ident=0},e}();t.DcsParser=s;var l=new r.Params;l.addParam(0);var c=function(){function e(e){this._handler=e,this._data="",this._params=l,this._hitLimit=!1}return e.prototype.hook=function(e){this._params=e.length>1||e.params[0]?e.clone():l,this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,n){this._hitLimit||(this._data+=i.utf32ToString(e,t,n),this._data.length>o.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.unhook=function(e){var t=this,n=!1;if(this._hitLimit)n=!1;else if(e&&(n=this._handler(this._data,this._params))instanceof Promise)return n.then(function(e){return t._params=l,t._data="",t._hitLimit=!1,e});return this._params=l,this._data="",this._hitLimit=!1,n},e}();t.DcsHandler=c},2015:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;var o=n(844),a=n(8273),s=n(8742),l=n(6242),c=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,i){this.table[t<<8|e]=n<<4|i},e.prototype.addMany=function(e,t,n,i){for(var r=0;r<e.length;r++)this.table[t<<8|e[r]]=n<<4|i},e}();t.TransitionTable=u;var d=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)},i=n(32,127),r=n(0,24);r.push(25),r.push.apply(r,n(28,32));var o,a=n(0,14);for(o in e.setDefault(1,0),e.addMany(i,0,2,0),a)e.addMany([24,26,153,154],o,3,0),e.addMany(n(128,144),o,3,0),e.addMany(n(144,152),o,3,0),e.add(156,o,0,0),e.add(27,o,11,1),e.add(157,o,4,8),e.addMany([152,158,159],o,0,7),e.add(155,o,11,3),e.add(144,o,11,9);return e.addMany(r,0,3,0),e.addMany(r,1,3,1),e.add(127,1,0,1),e.addMany(r,8,0,8),e.addMany(r,3,3,3),e.add(127,3,0,3),e.addMany(r,4,3,4),e.add(127,4,0,4),e.addMany(r,6,3,6),e.addMany(r,5,3,5),e.add(127,5,0,5),e.addMany(r,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(i,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(n(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(i,7,0,7),e.addMany(r,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(n(64,127),3,7,0),e.addMany(n(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(n(48,60),4,8,4),e.addMany(n(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(n(32,64),6,0,6),e.add(127,6,0,6),e.addMany(n(64,127),6,0,0),e.addMany(n(32,48),3,9,5),e.addMany(n(32,48),5,9,5),e.addMany(n(48,64),5,0,6),e.addMany(n(64,127),5,7,0),e.addMany(n(32,48),4,9,5),e.addMany(n(32,48),1,9,2),e.addMany(n(32,48),2,9,2),e.addMany(n(48,127),2,10,0),e.addMany(n(48,80),1,10,0),e.addMany(n(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(n(96,127),1,10,0),e.add(80,1,11,9),e.addMany(r,9,0,9),e.add(127,9,0,9),e.addMany(n(28,32),9,0,9),e.addMany(n(32,48),9,9,12),e.addMany(n(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(r,11,0,11),e.addMany(n(32,128),11,0,11),e.addMany(n(28,32),11,0,11),e.addMany(r,10,0,10),e.add(127,10,0,10),e.addMany(n(28,32),10,0,10),e.addMany(n(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(n(32,48),10,9,12),e.addMany(r,12,0,12),e.add(127,12,0,12),e.addMany(n(28,32),12,0,12),e.addMany(n(32,48),12,9,12),e.addMany(n(48,64),12,0,11),e.addMany(n(64,127),12,12,13),e.addMany(n(64,127),10,12,13),e.addMany(n(64,127),9,12,13),e.addMany(r,13,13,13),e.addMany(i,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(d,0,2,0),e.add(d,8,5,8),e.add(d,6,0,6),e.add(d,11,0,11),e.add(d,13,13,13),e}();var h=function(e){function n(n){void 0===n&&(n=t.VT500_TRANSITION_TABLE);var i=e.call(this)||this;return i._transitions=n,i._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},i.initialState=0,i.currentState=i.initialState,i._params=new s.Params,i._params.addParam(0),i._collect=0,i.precedingCodepoint=0,i._printHandlerFb=function(e,t,n){},i._executeHandlerFb=function(e){},i._csiHandlerFb=function(e,t){},i._escHandlerFb=function(e){},i._errorHandlerFb=function(e){return e},i._printHandler=i._printHandlerFb,i._executeHandlers=Object.create(null),i._csiHandlers=Object.create(null),i._escHandlers=Object.create(null),i._oscParser=new l.OscParser,i._dcsParser=new c.DcsParser,i._errorHandler=i._errorHandlerFb,i.registerEscHandler({final:"\\"},function(){return!0}),i}return r(n,e),n.prototype._identifier=function(e,t){void 0===t&&(t=[64,126]);var n=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if((n=e.prefix.charCodeAt(0))&&60>n||n>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var i=0;i<e.intermediates.length;++i){var r=e.intermediates.charCodeAt(i);if(32>r||r>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");n<<=8,n|=r}}if(1!==e.final.length)throw new Error("final must be a single byte");var o=e.final.charCodeAt(0);if(t[0]>o||o>t[1])throw new Error("final must be in range "+t[0]+" .. "+t[1]);return(n<<=8)|o},n.prototype.identToString=function(e){for(var t=[];e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")},n.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},n.prototype.setPrintHandler=function(e){this._printHandler=e},n.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},n.prototype.registerEscHandler=function(e,t){var n=this._identifier(e,[48,126]);void 0===this._escHandlers[n]&&(this._escHandlers[n]=[]);var i=this._escHandlers[n];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},n.prototype.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 i=this._csiHandlers[n];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.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,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])},n.prototype._preserveStack=function(e,t,n,i,r){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=n,this._parseStack.transition=i,this._parseStack.chunkPos=r},n.prototype.parse=function(e,t,n){var i,r=0,o=0,a=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,a=this._parseStack.chunkPos+1;else{if(void 0===n||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var s=this._parseStack.handlers,l=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===n&&l>-1)for(;l>=0&&!0!==(i=s[l](this._params));l--)if(i instanceof Promise)return this._parseStack.handlerPos=l,i;this._parseStack.handlers=[];break;case 4:if(!1===n&&l>-1)for(;l>=0&&!0!==(i=s[l]());l--)if(i instanceof Promise)return this._parseStack.handlerPos=l,i;this._parseStack.handlers=[];break;case 6:if(i=this._dcsParser.unhook(24!==(r=e[this._parseStack.chunkPos])&&26!==r,n))return i;27===r&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(i=this._oscParser.end(24!==(r=e[this._parseStack.chunkPos])&&26!==r,n))return i;27===r&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,a=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var c=a;c<t;++c){switch((o=this._transitions.table[this.currentState<<8|((r=e[c])<160?r:d)])>>4){case 2:for(var u=c+1;;++u){if(u>=t||(r=e[u])<32||r>126&&r<d){this._printHandler(e,c,u),c=u-1;break}if(++u>=t||(r=e[u])<32||r>126&&r<d){this._printHandler(e,c,u),c=u-1;break}if(++u>=t||(r=e[u])<32||r>126&&r<d){this._printHandler(e,c,u),c=u-1;break}if(++u>=t||(r=e[u])<32||r>126&&r<d){this._printHandler(e,c,u),c=u-1;break}}break;case 3:this._executeHandlers[r]?this._executeHandlers[r]():this._executeHandlerFb(r),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:c,code:r,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:for(var h=(s=this._csiHandlers[this._collect<<8|r])?s.length-1:-1;h>=0&&!0!==(i=s[h](this._params));h--)if(i instanceof Promise)return this._preserveStack(3,s,h,o,c),i;h<0&&this._csiHandlerFb(this._collect<<8|r,this._params),this.precedingCodepoint=0;break;case 8:do{switch(r){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(r-48)}}while(++c<t&&(r=e[c])>47&&r<60);c--;break;case 9:this._collect<<=8,this._collect|=r;break;case 10:for(var p=this._escHandlers[this._collect<<8|r],f=p?p.length-1:-1;f>=0&&!0!==(i=p[f]());f--)if(i instanceof Promise)return this._preserveStack(4,p,f,o,c),i;f<0&&this._escHandlerFb(this._collect<<8|r),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|r,this._params);break;case 13:for(var m=c+1;;++m)if(m>=t||24===(r=e[m])||26===r||27===r||r>127&&r<d){this._dcsParser.put(e,c,m),c=m-1;break}break;case 14:if(i=this._dcsParser.unhook(24!==r&&26!==r))return this._preserveStack(6,[],0,o,c),i;27===r&&(o|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(var g=c+1;;g++)if(g>=t||(r=e[g])<32||r>127&&r<d){this._oscParser.put(e,c,g),c=g-1;break}break;case 6:if(i=this._oscParser.end(24!==r&&26!==r))return this._preserveStack(5,[],0,o,c),i;27===r&&(o|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&o}},n}(o.Disposable);t.EscapeSequenceParser=h},6242:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;var i=n(5770),r=n(482),o=[],a=function(){function e(){this._state=0,this._active=o,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}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(){if(2===this._state)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!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 i=this._active.length-1;i>=0;i--)this._active[i].put(e,t,n);else this._handlerFb(this._id,"PUT",r.utf32ToString(e,t,n))},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 i=e[t++];if(59===i){this._state=2,this._start();break}if(i<48||57<i)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+i-48}2===this._state&&n-t>0&&this._put(e,t,n)}},e.prototype.end=function(e,t){if(void 0===t&&(t=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var n=!1,i=this._active.length-1,r=!1;if(this._stack.paused&&(i=this._stack.loopPosition-1,n=t,r=this._stack.fallThrough,this._stack.paused=!1),!r&&!1===n){for(;i>=0&&!0!==(n=this._active[i].end(e));i--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!1,n;i--}for(;i>=0;i--)if((n=this._active[i].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!0,n}else this._handlerFb(this._id,"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+=r.utf32ToString(e,t,n),this._data.length>i.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.end=function(e){var t=this,n=!1;if(this._hitLimit)n=!1;else if(e&&(n=this._handler(this._data))instanceof Promise)return n.then(function(e){return t._data="",t._hitLimit=!1,e});return this._data="",this._hitLimit=!1,n},e}();t.OscHandler=s},8742:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;var n=2147483647,i=function(){function e(e,t){if(void 0===e&&(e=32),void 0===t&&(t=32),this.maxLength=e,this.maxSubParamsLength=t,t>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return e.fromArray=function(t){var n=new e;if(!t.length)return n;for(var i=t[0]instanceof Array?1:0;i<t.length;++i){var r=t[i];if(r instanceof Array)for(var o=0;o<r.length;++o)n.addSubParam(r[o]);else n.addParam(r)}return n},e.prototype.clone=function(){var t=new e(this.maxLength,this.maxSubParamsLength);return t.params.set(this.params),t.length=this.length,t._subParams.set(this._subParams),t._subParamsLength=this._subParamsLength,t._subParamsIdx.set(this._subParamsIdx),t._rejectDigits=this._rejectDigits,t._rejectSubDigits=this._rejectSubDigits,t._digitIsSub=this._digitIsSub,t},e.prototype.toArray=function(){for(var e=[],t=0;t<this.length;++t){e.push(this.params[t]);var n=this._subParamsIdx[t]>>8,i=255&this._subParamsIdx[t];i-n>0&&e.push(Array.prototype.slice.call(this._subParams,n,i))}return e},e.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},e.prototype.addParam=function(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>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,i=255&this._subParamsIdx[t];i-n>0&&(e[t]=this._subParams.slice(n,i))}return e},e.prototype.addDigit=function(e){var t;if(!(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var i=this._digitIsSub?this._subParams:this.params,r=i[t-1];i[t-1]=~r?Math.min(10*r+e,n):e}},e}();t.Params=i},744:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;var s=n(2585),l=n(5295),c=n(8460),u=n(844);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;var d=function(e){function n(n){var i=e.call(this)||this;return i._optionsService=n,i.isUserScrolling=!1,i._onResize=new c.EventEmitter,i._onScroll=new c.EventEmitter,i.cols=Math.max(n.options.cols,t.MINIMUM_COLS),i.rows=Math.max(n.options.rows,t.MINIMUM_ROWS),i.buffers=new l.BufferSet(n,i),i}return r(n,e),Object.defineProperty(n.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onScroll",{get:function(){return this._onScroll.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},n.prototype.scroll=function(e,t){void 0===t&&(t=!1);var n,i=this.buffer;(n=this._cachedBlankLine)&&n.length===this.cols&&n.getFg(0)===e.fg&&n.getBg(0)===e.bg||(n=i.getBlankLine(e,t),this._cachedBlankLine=n),n.isWrapped=t;var r=i.ybase+i.scrollTop,o=i.ybase+i.scrollBottom;if(0===i.scrollTop){var a=i.lines.isFull;o===i.lines.length-1?a?i.lines.recycle().copyFrom(n):i.lines.push(n.clone()):i.lines.splice(o+1,0,n.clone()),a?this.isUserScrolling&&(i.ydisp=Math.max(i.ydisp-1,0)):(i.ybase++,this.isUserScrolling||i.ydisp++)}else i.lines.shiftElements(r+1,o-r+1-1,-1),i.lines.set(o,n.clone());this.isUserScrolling||(i.ydisp=i.ybase),this._onScroll.fire(i.ydisp)},n.prototype.scrollLines=function(e,t,n){var i=this.buffer;if(e<0){if(0===i.ydisp)return;this.isUserScrolling=!0}else e+i.ydisp>=i.ybase&&(this.isUserScrolling=!1);var r=i.ydisp;i.ydisp=Math.max(Math.min(i.ydisp+e,i.ybase),0),r!==i.ydisp&&(t||this._onScroll.fire(i.ydisp))},n.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},n.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},n.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},n.prototype.scrollToLine=function(e){var t=e-this.buffer.ydisp;0!==t&&this.scrollLines(t)},o([a(0,s.IOptionsService)],n)}(u.Disposable);t.BufferService=d},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 i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;var o=n(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 l(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 c=String.fromCharCode,u={DEFAULT:function(e){var t=[l(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":"\x1b[M"+c(t[0])+c(t[1])+c(t[2])},SGR:function(e){var t=0===e.action&&4!==e.button?"m":"M";return"\x1b[<"+l(e,!0)+";"+e.col+";"+e.row+t}},d=function(){function e(e,t){this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new a.EventEmitter,this._lastEvent=null;for(var n=0,i=Object.keys(s);n<i.length;n++){var r=i[n];this.addProtocol(r,s[r])}for(var o=0,l=Object.keys(u);o<l.length;o++){var c=l[o];this.addEncoding(c,u[c])}this.reset()}return e.prototype.addProtocol=function(e,t){this._protocols[e]=t},e.prototype.addEncoding=function(e,t){this._encodings[e]=t},Object.defineProperty(e.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(e){if(!this._protocols[e])throw new Error('unknown protocol "'+e+'"');this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areMouseEventsActive",{get:function(){return 0!==this._protocols[this._activeProtocol].events},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(e){if(!this._encodings[e])throw new Error('unknown encoding "'+e+'"');this._activeEncoding=e},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(e.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),e.prototype.triggerMouseEvent=function(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._compareEvents(this._lastEvent,e))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;var t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0},e.prototype.explainEvents=function(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}},e.prototype._compareEvents=function(e,t){return e.col===t.col&&e.row===t.row&&e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift},i([r(0,o.IBufferService),r(1,o.ICoreService)],e)}();t.CoreMouseService=d},6975:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;var s=n(2585),l=n(8460),c=n(1439),u=n(844),d=Object.freeze({insertMode:!1}),h=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),p=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o._bufferService=n,o._logService=i,o._optionsService=r,o.isCursorInitialized=!1,o.isCursorHidden=!1,o._onData=o.register(new l.EventEmitter),o._onUserInput=o.register(new l.EventEmitter),o._onBinary=o.register(new l.EventEmitter),o._scrollToBottom=t,o.register({dispose:function(){return o._scrollToBottom=void 0}}),o.modes=c.clone(d),o.decPrivateModes=c.clone(h),o}return r(t,e),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this.modes=c.clone(d),this.decPrivateModes=c.clone(h)},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=p},3730:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirtyRowService=void 0;var o=n(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)},i([r(0,o.IBufferService)],e)}();t.DirtyRowService=a},4348:function(e,t,n){var i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;var r=n(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,i=e;n<i.length;n++){var r=i[n];this.set(r[0],r[1])}}return e.prototype.set=function(e,t){var n=this._entries.get(e);return this._entries.set(e,t),n},e.prototype.forEach=function(e){this._entries.forEach(function(t,n){return e(n,t)})},e.prototype.has=function(e){return this._entries.has(e)},e.prototype.get=function(e){return this._entries.get(e)},e}();t.ServiceCollection=a;var s=function(){function e(){this._services=new a,this._services.set(r.IInstantiationService,this)}return e.prototype.setService=function(e,t){this._services.set(e,t)},e.prototype.getService=function(e){return this._services.get(e)},e.prototype.createInstance=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=o.getServiceDependencies(e).sort(function(e,t){return e.index-t.index}),a=[],s=0,l=r;s<l.length;s++){var c=l[s],u=this._services.get(c.id);if(!u)throw new Error("[createInstance] "+e.name+" depends on UNKNOWN service "+c.id+".");a.push(u)}var d=r.length>0?r[0].index:t.length;if(t.length!==d)throw new Error("[createInstance] First service dependency of "+e.name+" at position "+(d+1)+" conflicts with "+t.length+" static arguments");return new(e.bind.apply(e,i([void 0],i(t,a))))},e}();t.InstantiationService=s},7866:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=void 0;var a=n(2585),s={debug:a.LogLevelEnum.DEBUG,info:a.LogLevelEnum.INFO,warn:a.LogLevelEnum.WARN,error:a.LogLevelEnum.ERROR,off:a.LogLevelEnum.OFF},l=function(){function e(e){var t=this;this._optionsService=e,this.logLevel=a.LogLevelEnum.OFF,this._updateLogLevel(),this._optionsService.onOptionChange(function(e){"logLevel"===e&&t._updateLogLevel()})}return e.prototype._updateLogLevel=function(){this.logLevel=s[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.LogLevelEnum.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.LogLevelEnum.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.LogLevelEnum.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.LogLevelEnum.ERROR&&this._log(console.error,e,t)},i([r(0,a.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 i=n(8460),r=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:r.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"],l=function(){function e(e){this._onOptionChange=new i.EventEmitter,this.options=o.clone(t.DEFAULT_OPTIONS);for(var n=0,r=Object.keys(e);n<r.length;n++){var a=r[n];if(a in this.options)try{this.options[a]=this._sanitizeAndValidateOption(a,e[a])}catch(e){console.error(e)}}}return Object.defineProperty(e.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),e.prototype.setOption=function(e,n){if(!(e in t.DEFAULT_OPTIONS))throw new Error('No option with key "'+e+'"');if(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=l},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 i=function e(t,i,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(e,t,r)};return i.toString=function(){return e},t.serviceRegistry.set(e,i),i}},2585:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IUnicodeService=t.LogLevelEnum=t.IOptionsService=t.ILogService=t.IInstantiationService=t.IDirtyRowService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;var i,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"),(i=t.LogLevelEnum||(t.LogLevelEnum={}))[i.DEBUG=0]="DEBUG",i[i.INFO=1]="INFO",i[i.WARN=2]="WARN",i[i.ERROR=3]="ERROR",i[i.OFF=4]="OFF",t.IUnicodeService=r.createDecorator("UnicodeService")},1480:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;var i=n(8460),r=n(225),o=function(){function e(){this._providers=Object.create(null),this._active="",this._onChange=new i.EventEmitter;var e=new r.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}return Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._active},set:function(e){if(!this._providers[e])throw new Error('unknown Unicode version "'+e+'"');this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)},enumerable:!1,configurable:!0}),e.prototype.register=function(e){this._providers[e.version]=e},e.prototype.wcwidth=function(e){return this._activeProvider.wcwidth(e)},e.prototype.getStringCellWidth=function(e){for(var t=0,n=e.length,i=0;i<n;++i){var r=e.charCodeAt(i);if(55296<=r&&r<=56319){if(++i>=n)return t+this.wcwidth(r);var o=e.charCodeAt(i);56320<=o&&o<=57343?r=1024*(r-55296)+o-56320+65536:t+=this.wcwidth(o)}t+=this.wcwidth(r)}return t},e}();t.UnicodeService=o}},t={};return function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{}};return e[i].call(r.exports,r,r.exports,n),r.exports}(4389)}()},18419:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var i=n(90838),r=n(68707),o=function(){function e(){this.data=[],this.dataChange=new i.X([]),this.itemUpdated=new r.xQ}return e.prototype.getItems=function(){return this.data},e.prototype.add=function(e){this.findIndex(e)>=0?this.update(e):(this.data.push(e),this.dataChange.next(this.data))},e.prototype.set=function(e){var t=this;e.forEach(function(e){var n=t.findIndex(e);if(n>=0){var i=Object.assign(t.data[n],e);t.data[n]=i}else t.data.push(e)}),this.data.filter(function(n){return 0===e.filter(function(e){return t.getItemKey(e)===t.getItemKey(n)}).length}).forEach(function(e){return t.remove(e)}),this.dataChange.next(this.data)},e.prototype.get=function(e){var t=this,n=this.data.findIndex(function(n){return t.getItemKey(n)===e});if(n>=0)return this.data[n]},e.prototype.update=function(e){var t=this.findIndex(e);if(t>=0){var n=Object.assign(this.data[t],e);this.data[t]=n,this.dataChange.next(this.data),this.itemUpdated.next(n)}},e.prototype.remove=function(e){var t=this.findIndex(e);t>=0&&(this.data.splice(t,1),this.dataChange.next(this.data))},Object.defineProperty(e.prototype,"changes",{get:function(){return this.dataChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemChanged",{get:function(){return this.itemUpdated},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this.data=[],this.dataChange.next(this.data)},e.prototype.findIndex=function(e){var t=this;return this.data.findIndex(function(n){return t.getItemKey(n)===t.getItemKey(e)})},e}()},3941:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});var i=n(61855),r=n(18419),o=n(37602),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.ZT)(t,e),t.prototype.getItemKey=function(e){return e.link_id},t.\u0275fac=function(){var e;return function(n){return(e||(e=o.n5z(t)))(n||t)}}(),t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t}(r.o)},96852:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var i=n(61855),r=n(18419),o=n(37602),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.ZT)(t,e),t.prototype.getItemKey=function(e){return e.node_id},t.\u0275fac=function(){var e;return function(n){return(e||(e=o.n5z(t)))(n||t)}}(),t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t}(r.o)},36889:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var i=n(37602),r=n(96153),o=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.\u0275fac=function(t){return new(t||e)(i.LFG(r.wh))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}()},96153:function(e,t,n){"use strict";n.d(t,{gc:function(){return c},wh:function(){return u}});var i=n(61855),r=n(37602),o=n(11363),a=n(13426),s=n(75472),l=function(e){function t(t){return e.call(this,t)||this}return(0,i.ZT)(t,e),t.fromError=function(e,n){var i=new t(e);return i.originalError=n,i},t}(Error),c=function(){function e(){}return e.prototype.handleError=function(e){var t=e;return"HttpErrorResponse"===e.name&&0===e.status&&(t=l.fromError("Server is unreachable",e)),(0,o._)(t)},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),u=function(){function e(e,t){this.http=e,this.errorHandler=t,this.requestsNotificationEmitter=new r.vpe}return e.prototype.get=function(e,t,n){n=this.getJsonOptions(n);var i=this.getOptionsForServer(e,t,n);return this.requestsNotificationEmitter.emit("GET "+i.url),this.http.get(i.url,i.options).pipe((0,a.K)(this.errorHandler.handleError))},e.prototype.getText=function(e,t,n){n=this.getTextOptions(n);var i=this.getOptionsForServer(e,t,n);return this.requestsNotificationEmitter.emit("GET "+i.url),this.http.get(i.url,i.options).pipe((0,a.K)(this.errorHandler.handleError))},e.prototype.post=function(e,t,n,i){i=this.getJsonOptions(i);var r=this.getOptionsForServer(e,t,i);return this.requestsNotificationEmitter.emit("POST "+r.url),this.http.post(r.url,n,r.options).pipe((0,a.K)(this.errorHandler.handleError))},e.prototype.put=function(e,t,n,i){i=this.getJsonOptions(i);var r=this.getOptionsForServer(e,t,i);return this.requestsNotificationEmitter.emit("PUT "+r.url),this.http.put(r.url,n,r.options).pipe((0,a.K)(this.errorHandler.handleError))},e.prototype.delete=function(e,t,n){n=this.getJsonOptions(n);var i=this.getOptionsForServer(e,t,n);return this.requestsNotificationEmitter.emit("DELETE "+i.url),this.http.delete(i.url,i.options).pipe((0,a.K)(this.errorHandler.handleError))},e.prototype.patch=function(e,t,n,i){i=this.getJsonOptions(i);var r=this.getOptionsForServer(e,t,i);return this.http.patch(r.url,n,r.options).pipe((0,a.K)(this.errorHandler.handleError))},e.prototype.head=function(e,t,n){n=this.getJsonOptions(n);var i=this.getOptionsForServer(e,t,n);return this.http.head(i.url,i.options).pipe((0,a.K)(this.errorHandler.handleError))},e.prototype.options=function(e,t,n){n=this.getJsonOptions(n);var i=this.getOptionsForServer(e,t,n);return this.http.options(i.url,i.options).pipe((0,a.K)(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 i=btoa(e.login+":"+e.password);n.headers.Authorization="Basic "+i}return{url:t,options:n}},e.\u0275fac=function(t){return new(t||e)(r.LFG(s.eN),r.LFG(c))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}()},14200:function(e,t,n){"use strict";n.d(t,{Y:function(){return l}});var i=n(68707),r=n(37602),o=n(96153),a=n(10503),s=n(2094),l=function(){function e(e,t,n){this.httpServer=e,this.settingsService=t,this.recentlyOpenedProjectService=n,this.projectListSubject=new i.xQ}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.isReadOnly=function(e){return!!e.readonly&&e.readonly},e.\u0275fac=function(t){return new(t||e)(r.LFG(o.wh),r.LFG(a.g),r.LFG(s.p))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}()},2094:function(e,t,n){"use strict";n.d(t,{p:function(){return r}});var i=n(37602),r=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=i.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}()},10503:function(e,t,n){"use strict";n.d(t,{g:function(){return r}});var i=n(37602),r=function(){function e(){this.settings={crash_reports:!0,console_command:void 0},this.reportsSettings="crash_reports",this.consoleSettings="console_command",this.getItem(this.reportsSettings)&&(this.settings.crash_reports="true"===this.getItem(this.reportsSettings)),this.getItem(this.consoleSettings)&&(this.settings.console_command=this.getItem(this.consoleSettings))}return e.prototype.setReportsSettings=function(e){this.settings.crash_reports=e,this.removeItem(this.reportsSettings),this.setItem(this.reportsSettings,e?"true":"false")},e.prototype.getReportsSettings=function(){return"true"===this.getItem(this.reportsSettings)},e.prototype.setConsoleSettings=function(e){this.settings.console_command=e,this.removeItem(this.consoleSettings),this.setItem(this.consoleSettings,e)},e.prototype.getConsoleSettings=function(){return this.getItem(this.consoleSettings)},e.prototype.removeItem=function(e){localStorage.removeItem(e)},e.prototype.setItem=function(e,t){localStorage.setItem(e,t)},e.prototype.getItem=function(e){return localStorage.getItem(e)},e.prototype.getAll=function(){return this.settings},e.prototype.setAll=function(e){this.settings=e,this.setConsoleSettings(e.console_command),this.setReportsSettings(e.crash_reports)},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}()},15132:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var i=n(37602),r=n(90838),o=function(){function e(){this._darkMode$=new r.X(!1),this.darkMode$=this._darkMode$.asObservable(),this.themeChanged=new i.vpe,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=i.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}()},41952:function(e,t,n){"use strict";var i={};n.r(i),n.d(i,{active:function(){return Ps},arc:function(){return ZS},area:function(){return qS},areaRadial:function(){return US},ascending:function(){return Xt},axisBottom:function(){return Kn},axisLeft:function(){return $n},axisRight:function(){return Xn},axisTop:function(){return Qn},bisect:function(){return nn},bisectLeft:function(){return tn},bisectRight:function(){return en},bisector:function(){return Kt},brush:function(){return il},brushSelection:function(){return el},brushX:function(){return tl},brushY:function(){return nl},chord:function(){return hl},clientPoint:function(){return Ar},cluster:function(){return Bm},color:function(){return $r},contourDensity:function(){return ic},contours:function(){return Kl},create:function(){return Sr},creator:function(){return hi},cross:function(){return an},csvFormat:function(){return yc},csvFormatRows:function(){return _c},csvParse:function(){return gc},csvParseRows:function(){return vc},cubehelix:function(){return Ro},curveBasis:function(){return xx},curveBasisClosed:function(){return kx},curveBasisOpen:function(){return Ax},curveBundle:function(){return Mx},curveCardinal:function(){return Px},curveCardinalClosed:function(){return qx},curveCardinalOpen:function(){return Dx},curveCatmullRom:function(){return Fx},curveCatmullRomClosed:function(){return jx},curveCatmullRomOpen:function(){return Ux},curveLinear:function(){return OS},curveLinearClosed:function(){return Yx},curveMonotoneX:function(){return $x},curveMonotoneY:function(){return eC},curveNatural:function(){return iC},curveStep:function(){return oC},curveStepAfter:function(){return sC},curveStepBefore:function(){return aC},customEvent:function(){return pr},descending:function(){return sn},deviation:function(){return un},dispatch:function(){return ai},drag:function(){return uc},dragDisable:function(){return qr},dragEnable:function(){return Nr},dsvFormat:function(){return fc},easeBack:function(){return Xc},easeBackIn:function(){return Vc},easeBackInOut:function(){return Xc},easeBackOut:function(){return Qc},easeBounce:function(){return Jc},easeBounceIn:function(){return Yc},easeBounceInOut:function(){return Gc},easeBounceOut:function(){return Jc},easeCircle:function(){return Uc},easeCircleIn:function(){return jc},easeCircleInOut:function(){return Uc},easeCircleOut:function(){return zc},easeCubic:function(){return Zs},easeCubicIn:function(){return Ts},easeCubicInOut:function(){return Zs},easeCubicOut:function(){return As},easeElastic:function(){return eu},easeElasticIn:function(){return $c},easeElasticInOut:function(){return tu},easeElasticOut:function(){return eu},easeExp:function(){return Bc},easeExpIn:function(){return Lc},easeExpInOut:function(){return Bc},easeExpOut:function(){return Fc},easeLinear:function(){return kc},easePoly:function(){return Ec},easePolyIn:function(){return Mc},easePolyInOut:function(){return Ec},easePolyOut:function(){return Oc},easeQuad:function(){return Zc},easeQuadIn:function(){return Tc},easeQuadInOut:function(){return Zc},easeQuadOut:function(){return Ac},easeSin:function(){return Dc},easeSinIn:function(){return qc},easeSinInOut:function(){return Dc},easeSinOut:function(){return Nc},entries:function(){return Ul},event:function(){return sr},extent:function(){return dn},forceCenter:function(){return nu},forceCollide:function(){return mu},forceLink:function(){return yu},forceManyBody:function(){return Cu},forceRadial:function(){return ku},forceSimulation:function(){return xu},forceX:function(){return Tu},forceY:function(){return Au},format:function(){return Ru},formatDefaultLocale:function(){return ju},formatLocale:function(){return Bu},formatPrefix:function(){return Lu},formatSpecifier:function(){return Iu},geoAlbers:function(){return sm},geoAlbersUsa:function(){return lm},geoArea:function(){return Dd},geoAzimuthalEqualArea:function(){return hm},geoAzimuthalEqualAreaRaw:function(){return dm},geoAzimuthalEquidistant:function(){return fm},geoAzimuthalEquidistantRaw:function(){return pm},geoBounds:function(){return Zh},geoCentroid:function(){return Bh},geoCircle:function(){return Xh},geoClipAntimeridian:function(){return lp},geoClipCircle:function(){return cp},geoClipExtent:function(){return pp},geoClipRectangle:function(){return hp},geoConicConformal:function(){return bm},geoConicConformalRaw:function(){return _m},geoConicEqualArea:function(){return am},geoConicEqualAreaRaw:function(){return om},geoConicEquidistant:function(){return Cm},geoConicEquidistantRaw:function(){return xm},geoContains:function(){return qp},geoDistance:function(){return kp},geoEquirectangular:function(){return Sm},geoEquirectangularRaw:function(){return wm},geoGnomonic:function(){return Tm},geoGnomonicRaw:function(){return km},geoGraticule:function(){return Rp},geoGraticule10:function(){return Lp},geoIdentity:function(){return Zm},geoInterpolate:function(){return Fp},geoLength:function(){return Sp},geoMercator:function(){return gm},geoMercatorRaw:function(){return mm},geoNaturalEarth1:function(){return Om},geoNaturalEarth1Raw:function(){return Mm},geoOrthographic:function(){return Pm},geoOrthographicRaw:function(){return Em},geoPath:function(){return zf},geoProjection:function(){return nm},geoProjectionMutator:function(){return im},geoRotation:function(){return Wh},geoStereographic:function(){return qm},geoStereographicRaw:function(){return Im},geoStream:function(){return xd},geoTransform:function(){return Uf},geoTransverseMercator:function(){return Dm},geoTransverseMercatorRaw:function(){return Nm},hcl:function(){return To},hierarchy:function(){return zm},histogram:function(){return kn},hsl:function(){return so},interpolate:function(){return ia},interpolateArray:function(){return Qo},interpolateBasis:function(){return Bo},interpolateBasisClosed:function(){return jo},interpolateBlues:function(){return Ow},interpolateBrBG:function(){return zb},interpolateBuGn:function(){return aw},interpolateBuPu:function(){return lw},interpolateCool:function(){return Uw},interpolateCubehelix:function(){return Ta},interpolateCubehelixDefault:function(){return jw},interpolateCubehelixLong:function(){return Aa},interpolateDate:function(){return Xo},interpolateGnBu:function(){return uw},interpolateGreens:function(){return Pw},interpolateGreys:function(){return qw},interpolateHcl:function(){return xa},interpolateHclLong:function(){return Ca},interpolateHsl:function(){return _a},interpolateHslLong:function(){return ba},interpolateInferno:function(){return Vw},interpolateLab:function(){return wa},interpolateMagma:function(){return Ww},interpolateNumber:function(){return Ko},interpolateObject:function(){return $o},interpolateOrRd:function(){return hw},interpolateOranges:function(){return Bw},interpolatePRGn:function(){return Hb},interpolatePiYG:function(){return Jb},interpolatePlasma:function(){return Qw},interpolatePuBu:function(){return gw},interpolatePuBuGn:function(){return fw},interpolatePuOr:function(){return Wb},interpolatePuRd:function(){return yw},interpolatePurples:function(){return Dw},interpolateRainbow:function(){return Yw},interpolateRdBu:function(){return Qb},interpolateRdGy:function(){return Kb},interpolateRdPu:function(){return bw},interpolateRdYlBu:function(){return ew},interpolateRdYlGn:function(){return nw},interpolateReds:function(){return Lw},interpolateRgb:function(){return Jo},interpolateRgbBasis:function(){return Wo},interpolateRgbBasisClosed:function(){return Vo},interpolateRound:function(){return ra},interpolateSpectral:function(){return rw},interpolateString:function(){return na},interpolateTransformCss:function(){return pa},interpolateTransformSvg:function(){return fa},interpolateViridis:function(){return Gw},interpolateWarm:function(){return zw},interpolateYlGn:function(){return Cw},interpolateYlGnBu:function(){return Sw},interpolateYlOrBr:function(){return Tw},interpolateYlOrRd:function(){return Zw},interpolateZoom:function(){return va},interrupt:function(){return es},interval:function(){return wC},isoFormat:function(){return wb},isoParse:function(){return Sb},keys:function(){return jl},lab:function(){return _o},line:function(){return IS},lineRadial:function(){return zS},linkHorizontal:function(){return KS},linkRadial:function(){return ex},linkVertical:function(){return $S},local:function(){return Cr},map:function(){return El},matcher:function(){return bi},max:function(){return Mn},mean:function(){return On},median:function(){return En},merge:function(){return Pn},min:function(){return In},mouse:function(){return Zr},namespace:function(){return ci},namespaces:function(){return li},nest:function(){return Pl},now:function(){return Fa},pack:function(){return pg},packEnclose:function(){return Wm},packSiblings:function(){return sg},pairs:function(){return rn},partition:function(){return _g},path:function(){return wl},permute:function(){return qn},pie:function(){return RS},pointRadial:function(){return HS},polygonArea:function(){return Bg},polygonCentroid:function(){return jg},polygonContains:function(){return Jg},polygonHull:function(){return Yg},polygonLength:function(){return Gg},precisionFixed:function(){return zu},precisionPrefix:function(){return Uu},precisionRound:function(){return Hu},quadtree:function(){return cu},quantile:function(){return Tn},quantize:function(){return Za},radialArea:function(){return US},radialLine:function(){return zS},randomBates:function(){return $g},randomExponential:function(){return ev},randomIrwinHall:function(){return Kg},randomLogNormal:function(){return Xg},randomNormal:function(){return Qg},randomUniform:function(){return Vg},range:function(){return vn},rgb:function(){return io},ribbon:function(){return Al},scaleBand:function(){return av},scaleIdentity:function(){return _v},scaleImplicit:function(){return rv},scaleLinear:function(){return yv},scaleLog:function(){return Av},scaleOrdinal:function(){return ov},scalePoint:function(){return lv},scalePow:function(){return Mv},scaleQuantile:function(){return Ev},scaleQuantize:function(){return Pv},scaleSequential:function(){return Mb},scaleSqrt:function(){return Ov},scaleThreshold:function(){return Iv},scaleTime:function(){return Ab},scaleUtc:function(){return Zb},scan:function(){return Nn},schemeAccent:function(){return Pb},schemeBlues:function(){return Mw},schemeBrBG:function(){return jb},schemeBuGn:function(){return ow},schemeBuPu:function(){return sw},schemeCategory10:function(){return Eb},schemeDark2:function(){return Ib},schemeGnBu:function(){return cw},schemeGreens:function(){return Ew},schemeGreys:function(){return Iw},schemeOrRd:function(){return dw},schemeOranges:function(){return Fw},schemePRGn:function(){return Ub},schemePaired:function(){return qb},schemePastel1:function(){return Nb},schemePastel2:function(){return Db},schemePiYG:function(){return Yb},schemePuBu:function(){return mw},schemePuBuGn:function(){return pw},schemePuOr:function(){return Gb},schemePuRd:function(){return vw},schemePurples:function(){return Nw},schemeRdBu:function(){return Vb},schemeRdGy:function(){return Xb},schemeRdPu:function(){return _w},schemeRdYlBu:function(){return $b},schemeRdYlGn:function(){return tw},schemeReds:function(){return Rw},schemeSet1:function(){return Rb},schemeSet2:function(){return Lb},schemeSet3:function(){return Fb},schemeSpectral:function(){return iw},schemeYlGn:function(){return xw},schemeYlGnBu:function(){return ww},schemeYlOrBr:function(){return kw},schemeYlOrRd:function(){return Aw},select:function(){return wr},selectAll:function(){return Mr},selection:function(){return br},selector:function(){return fi},selectorAll:function(){return gi},set:function(){return Bl},shuffle:function(){return Dn},stack:function(){return dC},stackOffsetDiverging:function(){return pC},stackOffsetExpand:function(){return hC},stackOffsetNone:function(){return lC},stackOffsetSilhouette:function(){return fC},stackOffsetWiggle:function(){return mC},stackOrderAscending:function(){return gC},stackOrderDescending:function(){return yC},stackOrderInsideOut:function(){return _C},stackOrderNone:function(){return cC},stackOrderReverse:function(){return bC},stratify:function(){return Cg},style:function(){return Di},sum:function(){return Rn},symbol:function(){return _x},symbolCircle:function(){return tx},symbolCross:function(){return nx},symbolDiamond:function(){return ox},symbolSquare:function(){return ux},symbolStar:function(){return cx},symbolTriangle:function(){return hx},symbolWye:function(){return vx},symbols:function(){return yx},thresholdFreedmanDiaconis:function(){return An},thresholdScott:function(){return Zn},thresholdSturges:function(){return Cn},tickIncrement:function(){return Sn},tickStep:function(){return xn},ticks:function(){return wn},timeDay:function(){return ty},timeDays:function(){return ny},timeFormat:function(){return o_},timeFormatDefaultLocale:function(){return _b},timeFormatLocale:function(){return i_},timeFriday:function(){return cy},timeFridays:function(){return gy},timeHour:function(){return Kv},timeHours:function(){return $v},timeInterval:function(){return Dv},timeMillisecond:function(){return Lv},timeMilliseconds:function(){return Fv},timeMinute:function(){return Vv},timeMinutes:function(){return Qv},timeMonday:function(){return oy},timeMondays:function(){return hy},timeMonth:function(){return _y},timeMonths:function(){return by},timeParse:function(){return a_},timeSaturday:function(){return uy},timeSaturdays:function(){return vy},timeSecond:function(){return Jv},timeSeconds:function(){return Gv},timeSunday:function(){return ry},timeSundays:function(){return dy},timeThursday:function(){return ly},timeThursdays:function(){return my},timeTuesday:function(){return ay},timeTuesdays:function(){return py},timeWednesday:function(){return sy},timeWednesdays:function(){return fy},timeWeek:function(){return ry},timeWeeks:function(){return dy},timeYear:function(){return Sy},timeYears:function(){return xy},timeout:function(){return Ga},timer:function(){return za},timerFlush:function(){return Ua},touch:function(){return Or},touches:function(){return Er},transition:function(){return xs},transpose:function(){return Ln},tree:function(){return Eg},treemap:function(){return Dg},treemapBinary:function(){return Rg},treemapDice:function(){return yg},treemapResquarify:function(){return Fg},treemapSlice:function(){return Pg},treemapSliceDice:function(){return Lg},treemapSquarify:function(){return Ng},tsvFormat:function(){return xc},tsvFormatRows:function(){return Cc},tsvParse:function(){return wc},tsvParseRows:function(){return Sc},utcDay:function(){return Ey},utcDays:function(){return Py},utcFormat:function(){return s_},utcFriday:function(){return Fy},utcFridays:function(){return Jy},utcHour:function(){return Zy},utcHours:function(){return My},utcMillisecond:function(){return Lv},utcMilliseconds:function(){return Fv},utcMinute:function(){return ky},utcMinutes:function(){return Ty},utcMonday:function(){return Ny},utcMondays:function(){return zy},utcMonth:function(){return Vy},utcMonths:function(){return Qy},utcParse:function(){return l_},utcSaturday:function(){return By},utcSaturdays:function(){return Gy},utcSecond:function(){return Jv},utcSeconds:function(){return Gv},utcSunday:function(){return qy},utcSundays:function(){return jy},utcThursday:function(){return Ly},utcThursdays:function(){return Yy},utcTuesday:function(){return Dy},utcTuesdays:function(){return Uy},utcWednesday:function(){return Ry},utcWednesdays:function(){return Hy},utcWeek:function(){return qy},utcWeeks:function(){return jy},utcYear:function(){return Ky},utcYears:function(){return $y},values:function(){return zl},variance:function(){return cn},voronoi:function(){return sk},window:function(){return Pi},zip:function(){return Bn},zoom:function(){return wk},zoomIdentity:function(){return dk},zoomTransform:function(){return hk}});var r,o=n(29176),a=n(91035),s=(n(38852),n(76262),n(44829),n(10270)),l=n(20454),c=n(51751),u=n(12558),d=n(49843),h=n(37859),p=n(25801),f=n(61680),m=n(11254);n(26552),"undefined"!=typeof window&&window,"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,"undefined"!=typeof global&&global;var g="%COMP%";"_nghost-".concat(g),"_ngcontent-".concat(g);var v=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff";"[^".concat(v,"]"),"[".concat(v,"]{2,}"),(0,a.Z)(r={},4,4),(0,a.Z)(r,1,1),(0,a.Z)(r,2,2),(0,a.Z)(r,0,0),(0,a.Z)(r,3,3);var y=n(37602),_=n(40098),b=n(28722),w=n(15427),S=n(78081),x=n(68707),C=n(5051),k=n(57434),T=n(58172),A=n(89797),Z=n(55371),M=n(44213),O=n(57682),E=n(85639),P=n(48359),I=n(59371),q=n(34487),N=n(8392);function D(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function R(e,t){var n=t?"":"none";D(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function L(e,t){var n=e.style;n.position=t?"":"fixed",n.top=n.opacity=t?"":"0",n.left=t?"":"-999em"}function F(e,t){return t?e+" "+t:e}function B(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function j(e,t){return e.getPropertyValue(t).split(",").map(function(e){return e.trim()})}function z(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 U(e,t,n){return n>=e.top&&n<=e.bottom&&t>=e.left&&t<=e.right}function H(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function Y(e,t,n,i){var r=e.width*t,o=e.height*t;return i>e.top-o&&i<e.bottom+o&&n>e.left-r&&n<e.right+r}var J=function(){function e(t,n){(0,f.Z)(this,e),this._document=t,this._viewportRuler=n,this.positions=new Map}return(0,m.Z)(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:z(e)})})}},{key:"handleScroll",value:function(e){var t=e.target,n=this.positions.get(t);if(!n)return null;var i,r,o=t===this._document?t.documentElement:t,a=n.scrollPosition;if(t===this._document){var s=this._viewportRuler.getViewportScrollPosition();i=s.top,r=s.left}else i=t.scrollTop,r=t.scrollLeft;var l=a.top-i,c=a.left-r;return this.positions.forEach(function(e,n){e.clientRect&&t!==n&&o.contains(n)&&H(e.clientRect,l,c)}),a.top=i,a.left=r,{top:l,left:c}}}]),e}();function G(e){var t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),i=e.nodeName.toLowerCase();t.removeAttribute("id");for(var r=0;r<n.length;r++)n[r].removeAttribute("id");return"canvas"===i?X(e,t):"input"!==i&&"select"!==i&&"textarea"!==i||Q(e,t),W("canvas",e,t,X),W("input, textarea, select",e,t,Q),t}function W(e,t,n,i){var r=t.querySelectorAll(e);if(r.length)for(var o=n.querySelectorAll(e),a=0;a<r.length;a++)i(r[a],o[a])}var V=0;function Q(e,t){"file"!==t.type&&(t.value=e.value),"radio"===t.type&&t.name&&(t.name="mat-clone-".concat(t.name,"-").concat(V++))}function X(e,t){var n=t.getContext("2d");if(n)try{n.drawImage(e,0,0)}catch(i){}}var K=(0,w.i$)({passive:!0}),$=(0,w.i$)({passive:!1}),ee=function(){function e(t,n,i,r,o,a){var s=this;(0,f.Z)(this,e),this._config=n,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new x.xQ,this._pointerMoveSubscription=C.w.EMPTY,this._pointerUpSubscription=C.w.EMPTY,this._scrollSubscription=C.w.EMPTY,this._resizeSubscription=C.w.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 x.xQ,this.started=new x.xQ,this.released=new x.xQ,this.ended=new x.xQ,this.entered=new x.xQ,this.exited=new x.xQ,this.dropped=new x.xQ,this.moved=this._moveEvents,this._pointerDown=function(e){if(s.beforeStarted.next(),s._handles.length){var t=s._handles.find(function(t){var n=e.target;return!!n&&(n===t||t.contains(n))});!t||s._disabledHandles.has(t)||s.disabled||s._initializeDragSequence(t,e)}else s.disabled||s._initializeDragSequence(s._rootElement,e)},this._pointerMove=function(e){var t=s._getPointerPositionOnPage(e);if(s._hasStartedDragging){s._boundaryElement&&(s._previewRect&&(s._previewRect.width||s._previewRect.height)||(s._previewRect=(s._preview||s._rootElement).getBoundingClientRect())),e.preventDefault();var n=s._getConstrainedPointerPosition(t);if(s._hasMoved=!0,s._lastKnownPointerPosition=t,s._updatePointerDirectionDelta(n),s._dropContainer)s._updateActiveDropContainer(n,t);else{var i=s._activeTransform;if(i.x=n.x-s._pickupPositionOnPage.x+s._passiveTransform.x,i.y=n.y-s._pickupPositionOnPage.y+s._passiveTransform.y,s._applyRootElementTransform(i.x,i.y),"undefined"!=typeof SVGElement&&s._rootElement instanceof SVGElement){var r="translate(".concat(i.x," ").concat(i.y,")");s._rootElement.setAttribute("transform",r)}}s._moveEvents.observers.length&&s._ngZone.run(function(){s._moveEvents.next({source:s,pointerPosition:n,event:e,distance:s._getDragDistance(n),delta:s._pointerDirectionDelta})})}else if(Math.abs(t.x-s._pickupPositionOnPage.x)+Math.abs(t.y-s._pickupPositionOnPage.y)>=s._config.dragStartThreshold){var o=Date.now()>=s._dragStartTime+s._getDragStartDelay(e),a=s._dropContainer;if(!o)return void s._endDragSequence(e);a&&(a.isDragging()||a.isReceiving())||(e.preventDefault(),s._hasStartedDragging=!0,s._ngZone.run(function(){return s._startDragSequence(e)}))}},this._pointerUp=function(e){s._endDragSequence(e)},this.withRootElement(t).withParent(n.parentDragRef||null),this._parentPositions=new J(i,o),a.registerDragItem(this)}return(0,m.Z)(e,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=(0,S.Ig)(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(function(e){return R(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(0,S.fI)(e)}),this._handles.forEach(function(e){return R(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=(0,S.fI)(e);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){n.addEventListener("mousedown",t._pointerDown,$),n.addEventListener("touchstart",t._pointerDown,K)}),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?(0,S.fI)(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()&&ie(this._rootElement),ie(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),R(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),R(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:"withPreviewContainer",value:function(e){return this._previewContainer=e,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&&ie(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&ie(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)});else{this._passiveTransform.x=this._activeTransform.x;var n=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){t.ended.next({source:t,distance:t._getDragDistance(n),dropPoint:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(e){re(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var t=this._dropContainer;if(t){var n=this._rootElement,i=n.parentNode,r=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();i.insertBefore(o,n),this._initialTransform=n.style.transform||"",this._preview=this._createPreviewElement(),L(n,!1),this._document.body.appendChild(i.replaceChild(r,n)),this._getPreviewInsertionPoint(i,a).appendChild(this._preview),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 i=this.isDragging(),r=re(t),o=!r&&0!==t.button,a=this._rootElement,s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),!(i||o||s)){this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor||"",a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(function(e){n._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=z(this._boundaryElement));var l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;L(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var n=t._dropContainer,i=n.getItemIndex(t),r=t._getPointerPositionOnPage(e),o=t._getDragDistance(r),a=n._isOverContainer(r.x,r.y);t.ended.next({source:t,distance:o,dropPoint:r}),t.dropped.next({item:t,currentIndex:i,previousIndex:t._initialIndex,container:n,previousContainer:t._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r}),n.drop(t,i,t._initialIndex,t._initialContainer,a,o,r),t._dropContainer=t._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,t){var n=this,i=e.x,r=e.y,o=t.x,a=t.y,s=this._initialContainer._getSiblingContainerFromPosition(this,i,r);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,r)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(function(){n.exited.next({item:n,container:n._dropContainer}),n._dropContainer.exit(n),n._dropContainer=s,n._dropContainer.enter(n,i,r,s===n._initialContainer&&s.sortingDisabled?n._initialIndex:void 0),n.entered.next({item:n,container:s,currentIndex:s.getItemIndex(n)})}),this._dropContainer._startScrollingIfNecessary(o,a),this._dropContainer._sortItem(this,i,r,this._pointerDirectionDelta),this._applyPreviewTransform(i-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,n=this.previewClass,i=t?t.template:null;if(i&&t){var r=t.matchSize?this._rootElement.getBoundingClientRect():null,o=t.viewContainer.createEmbeddedView(i,t.context);o.detectChanges(),e=oe(o,this._document),this._previewRef=o,t.matchSize?ae(e,r):e.style.transform=te(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var a=this._rootElement;ae(e=G(a),a.getBoundingClientRect()),this._initialTransform&&(e.style.transform=this._initialTransform)}return D(e.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"".concat(this._config.zIndex||1e3)}),R(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._applyPreviewTransform(t.left,t.top);var n=function(e){var t=getComputedStyle(e),n=j(t,"transition-property"),i=n.find(function(e){return"transform"===e||"all"===e});if(!i)return 0;var r=n.indexOf(i),o=j(t,"transition-duration"),a=j(t,"transition-delay");return B(o[r])+B(a[r])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(t){var i=function n(i){(!i||i.target===e._preview&&"transform"===i.propertyName)&&(e._preview.removeEventListener("transitionend",n),t(),clearTimeout(r))},r=setTimeout(i,1.5*n);e._preview.addEventListener("transitionend",i)})})}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,n=t?t.template:null;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),e=oe(this._placeholderRef,this._document)):e=G(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,r=i?i.getBoundingClientRect():n,o=re(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition();return{x:r.left-n.left+(o.pageX-r.left-a.left),y:r.top-n.top+(o.pageY-r.top-a.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=this._getViewportScrollPosition(),n=re(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=n.pageX-t.left,r=n.pageY-t.top;if(this._ownerSVGElement){var o=this._ownerSVGElement.getScreenCTM();if(o){var a=this._ownerSVGElement.createSVGPoint();return a.x=i,a.y=r,a.matrixTransform(o.inverse())}}return{x:i,y:r}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this._dropContainer?this._dropContainer.lockAxis:null,n=this.constrainPosition?this.constrainPosition(e,this):e,i=n.x,r=n.y;if("x"===this.lockAxis||"x"===t?r=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(i=this._pickupPositionOnPage.x),this._boundaryRect){var o=this._pickupPositionInElement,a=o.x,s=o.y,l=this._boundaryRect,c=this._previewRect,u=l.top+s,d=l.bottom-(c.height-s);i=ne(i,l.left+a,l.right-(c.width-a)),r=ne(r,u,d)}return{x:i,y:r}}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,n=e.y,i=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-r.x),a=Math.abs(n-r.y);return o>this._config.pointerDirectionChangeThreshold&&(i.x=t>r.x?1:-1,r.x=t),a>this._config.pointerDirectionChangeThreshold&&(i.y=n>r.y?1:-1,r.y=n),i}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,R(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,$),e.removeEventListener("touchstart",this._pointerDown,K)}},{key:"_applyRootElementTransform",value:function(e,t){var n=te(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=F(n,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(e,t){var n,i=(null===(n=this._previewTemplate)||void 0===n?void 0:n.template)?void 0:this._initialTransform,r=te(e,t);this._preview.style.transform=F(r,i)}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,n=e.y;if(!(0===t&&0===n||this.isDragging())&&this._boundaryElement){var i=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===i.width&&0===i.height||0===r.width&&0===r.height)){var o=i.left-r.left,a=r.right-i.right,s=i.top-r.top,l=r.bottom-i.bottom;i.width>r.width?(o>0&&(t+=o),a>0&&(t-=a)):t=0,i.height>r.height?(s>0&&(n+=s),l>0&&(n-=l)):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:re(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))&&H(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=(0,w.kV)(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(e,t){var n=this._previewContainer||"global";if("parent"===n)return e;if("global"===n){var i=this._document;return t||i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement||i.body}return(0,S.fI)(n)}}]),e}();function te(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function ne(e,t,n){return Math.max(t,Math.min(n,e))}function ie(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function re(e){return"t"===e.type[0]}function oe(e,t){var n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];var i=t.createElement("div");return n.forEach(function(e){return i.appendChild(e)}),i}function ae(e,t){e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px"),e.style.transform=te(t.left,t.top)}function se(e,t){return Math.max(0,Math.min(t,e))}var le=function(){function e(t,n,i,r,o){var a=this;(0,f.Z)(this,e),this._dragDropRegistry=n,this._ngZone=r,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 x.xQ,this.entered=new x.xQ,this.exited=new x.xQ,this.dropped=new x.xQ,this.sorted=new x.xQ,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=C.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new x.xQ,this._cachedShadowRoot=null,this._startScrollInterval=function(){a._stopScrolling(),(0,k.F)(0,T.Z).pipe((0,M.R)(a._stopScrollTimers)).subscribe(function(){var e=a._scrollNode,t=a.autoScrollStep;1===a._verticalScrollDirection?ue(e,-t):2===a._verticalScrollDirection&&ue(e,t),1===a._horizontalScrollDirection?de(e,-t):2===a._horizontalScrollDirection&&de(e,t)})},this.element=(0,S.fI)(t),this._document=i,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new J(i,o)}return(0,m.Z)(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,i){var r;this._draggingStarted(),null==i?-1===(r=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(r=this._getItemIndexFromPointerPosition(e,t,n)):r=i;var o=this._activeDraggables,a=o.indexOf(e),s=e.getPlaceholderElement(),l=o[r];if(l===e&&(l=o[r+1]),a>-1&&o.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){var c=l.getRootElement();c.parentElement.insertBefore(s,c),o.splice(r,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){var u=o[0].getRootElement();u.parentNode.insertBefore(s,u),o.unshift(e)}else(0,S.fI)(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,i,r,o,a){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:r,distance:o,dropPoint:a})}},{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=(0,S.fI)(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat((0,p.Z)(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?ce("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(t){return t.drag===e}):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,n,i){if(!this.sortingDisabled&&this._clientRect&&Y(this._clientRect,.05,t,n)){var r=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,n,i);if(!(-1===o&&r.length>0)){var a="horizontal"===this._orientation,s=ce(r,function(t){return t.drag===e}),l=r[o],c=l.clientRect,u=s>o?1:-1,d=this._getItemOffsetPx(r[s].clientRect,c,u),h=this._getSiblingOffsetPx(s,r,u),p=r.slice();!function(e,t,n){var i=se(t,e.length-1),r=se(n,e.length-1);if(i!==r){for(var o=e[i],a=r<i?-1:1,s=i;s!==r;s+=a)e[s]=e[s+a];e[r]=o}}(r,s,o),this.sorted.next({previousIndex:s,currentIndex:o,container:this,item:e}),r.forEach(function(t,n){if(p[n]!==t){var i=t.drag===e,r=i?d:h,o=i?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=r,a?(o.style.transform=F("translate3d(".concat(Math.round(t.offset),"px, 0, 0)"),t.initialTransform),H(t.clientRect,0,r)):(o.style.transform=F("translate3d(0, ".concat(Math.round(t.offset),"px, 0)"),t.initialTransform),H(t.clientRect,r,0))}}),this._previousSwap.overlaps=U(c,t,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?i.x:i.y}}}},{key:"_startScrollingIfNecessary",value:function(e,t){var n=this;if(!this.autoScrollDisabled){var i,r=0,o=0;if(this._parentPositions.positions.forEach(function(a,l){if(l!==n._document&&a.clientRect&&!i&&Y(a.clientRect,.05,e,t)){var c=function(e,t,n,i){var r=he(t,i),o=pe(t,n),a=0,s=0;if(r){var l=e.scrollTop;1===r?l>0&&(a=1):e.scrollHeight-l>e.clientHeight&&(a=2)}if(o){var c=e.scrollLeft;1===o?c>0&&(s=1):e.scrollWidth-c>e.clientWidth&&(s=2)}return[a,s]}(l,a.clientRect,e,t),u=(0,s.Z)(c,2);o=u[1],((r=u[0])||o)&&(i=l)}}),!r&&!o){var a=this._viewportRuler.getViewportSize(),l=a.width,c=a.height,u={width:l,height:c,top:0,right:l,bottom:c,left:0};r=he(u,t),o=pe(u,e),i=window}!i||r===this._verticalScrollDirection&&o===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var e=(0,S.fI)(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=(0,S.fI)(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,initialTransform:t.style.transform||"",clientRect:z(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=(0,S.fI)(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(t){var n,i=t.getRootElement();if(i){var r=null===(n=e._itemPositions.find(function(e){return e.drag===t}))||void 0===n?void 0:n.initialTransform;i.style.transform=r||""}}),this._siblings.forEach(function(t){return t._stopReceiving(e)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=t[e].clientRect,o=t[e+-1*n],a=r[i?"width":"height"]*n;if(o){var s=i?"left":"top",l=i?"right":"bottom";-1===n?a-=o.clientRect[s]-r[l]:a+=r[s]-o.clientRect[l]}return a}},{key:"_getItemOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=i?t.left-e.left:t.top-e.top;return-1===n&&(r+=i?t.width-e.width:t.height-e.height),r}},{key:"_shouldEnterAsFirstChild",value:function(e,t){if(!this._activeDraggables.length)return!1;var n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){var r=n[n.length-1].clientRect;return i?e>=r.right:t>=r.bottom}var o=n[0].clientRect;return i?e<=o.left:t<=o.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,n,i){var r=this,o="horizontal"===this._orientation,a=ce(this._itemPositions,function(a,s,l){var c=a.drag,u=a.clientRect;return c===e?l.length<2:(!i||c!==r._previousSwap.drag||!r._previousSwap.overlaps||(o?i.x:i.y)!==r._previousSwap.delta)&&(o?t>=Math.floor(u.left)&&t<Math.floor(u.right):n>=Math.floor(u.top)&&n<Math.floor(u.bottom))});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&&U(this._clientRect,e,t)}},{key:"_getSiblingContainerFromPosition",value:function(e,t,n){return this._siblings.find(function(i){return i._canReceive(e,t,n)})}},{key:"_canReceive",value:function(e,t,n){if(!this._clientRect||!U(this._clientRect,t,n)||!this.enterPredicate(e,this))return!1;var i=this._getShadowRoot().elementFromPoint(t,n);if(!i)return!1;var r=(0,S.fI)(this.element);return i===r||r.contains(i)}},{key:"_startReceiving",value:function(e,t){var n=this,i=this._activeSiblings;!i.has(e)&&t.every(function(e){return n.enterPredicate(e,n)||n._draggables.indexOf(e)>-1})&&(i.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){H(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=(0,w.kV)((0,S.fI)(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 ce(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1}function ue(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function de(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function he(e,t){var n=e.top,i=e.bottom,r=.05*e.height;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}function pe(e,t){var n=e.left,i=e.right,r=.05*e.width;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}var fe=(0,w.i$)({passive:!1,capture:!0}),me=function(){var e=function(){function e(t,n){var i=this;(0,f.Z)(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 x.xQ,this.pointerUp=new x.xQ,this.scroll=new x.xQ,this._preventDefaultWhileDragging=function(e){i._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=function(e){i._activeDragInstances.length>0&&(i._activeDragInstances.some(i._draggingPredicate)&&e.preventDefault(),i.pointerMove.next(e))},this._document=n}return(0,m.Z)(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,fe)})}},{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,fe)}},{key:"startDragging",value:function(e,t){var n=this;if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){var i=t.type.startsWith("touch");this._globalListeners.set(i?"touchend":"mouseup",{handler:function(e){return n.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return n.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:fe}),i||this._globalListeners.set("mousemove",{handler:function(e){return n.pointerMove.next(e)},options:fe}),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)(y.LFG(y.R0b),y.LFG(_.K0))},e.\u0275prov=y.Yz7({factory:function(){return new e(y.LFG(y.R0b),y.LFG(_.K0))},token:e,providedIn:"root"}),e}(),ge={dragStartThreshold:5,pointerDirectionChangeThreshold:5},ve=function(){var e=function(){function e(t,n,i,r){(0,f.Z)(this,e),this._document=t,this._ngZone=n,this._viewportRuler=i,this._dragDropRegistry=r}return(0,m.Z)(e,[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ge;return new ee(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new le(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.LFG(_.K0),y.LFG(y.R0b),y.LFG(b.rL),y.LFG(me))},e.\u0275prov=y.Yz7({factory:function(){return new e(y.LFG(_.K0),y.LFG(y.R0b),y.LFG(b.rL),y.LFG(me))},token:e,providedIn:"root"}),e}(),ye=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({providers:[ve],imports:[b.ZD]}),e}(),_e=n(93889),be=n(37429),we=n(61493),Se=n(90838),xe=n(17504),Ce=n(43161),ke=[[["caption"]],[["colgroup"],["col"]]],Te=["caption","colgroup, col"];function Ae(e){return function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){var e;(0,f.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._sticky=!1,e._hasStickyChanged=!1,e}return(0,m.Z)(n,[{key:"sticky",get:function(){return this._sticky},set:function(e){var t=this._sticky;this._sticky=(0,S.Ig)(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 Ze=new y.OlP("CDK_TABLE"),Me=function(){var e=function e(t){(0,f.Z)(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.Rgc))},e.\u0275dir=y.lG2({type:e,selectors:[["","cdkCellDef",""]]}),e}(),Oe=function(){var e=function e(t){(0,f.Z)(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.Rgc))},e.\u0275dir=y.lG2({type:e,selectors:[["","cdkHeaderCellDef",""]]}),e}(),Ee=function(){var e=function e(t){(0,f.Z)(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.Rgc))},e.\u0275dir=y.lG2({type:e,selectors:[["","cdkFooterCellDef",""]]}),e}(),Pe=Ae(function e(){(0,f.Z)(this,e)}),Ie=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e){var i;return(0,f.Z)(this,n),(i=t.call(this))._table=e,i._stickyEnd=!1,i}return(0,m.Z)(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=(0,S.Ig)(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}(Pe);return e.\u0275fac=function(t){return new(t||e)(y.Y36(Ze,8))},e.\u0275dir=y.lG2({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,n){var i;1&e&&(y.Suo(n,Me,5),y.Suo(n,Oe,5),y.Suo(n,Ee,5)),2&e&&(y.iGM(i=y.CRH())&&(t.cell=i.first),y.iGM(i=y.CRH())&&(t.headerCell=i.first),y.iGM(i=y.CRH())&&(t.footerCell=i.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[y._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),y.qOj]}),e}(),qe=function e(t,n){(0,f.Z)(this,e);var i,r=n.nativeElement.classList,o=(0,l.Z)(t._columnCssClassName);try{for(o.s();!(i=o.n()).done;)r.add(i.value)}catch(a){o.e(a)}finally{o.f()}},Ne=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i){return(0,f.Z)(this,n),t.call(this,e,i)}return n}(qe);return e.\u0275fac=function(t){return new(t||e)(y.Y36(Ie),y.Y36(y.SBq))},e.\u0275dir=y.lG2({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[y.qOj]}),e}(),De=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i){return(0,f.Z)(this,n),t.call(this,e,i)}return n}(qe);return e.\u0275fac=function(t){return new(t||e)(y.Y36(Ie),y.Y36(y.SBq))},e.\u0275dir=y.lG2({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[y.qOj]}),e}(),Re=function e(){(0,f.Z)(this,e),this.tasks=[],this.endTasks=[]},Le=new y.OlP("_COALESCED_STYLE_SCHEDULER"),Fe=function(){var e=function(){function e(t){(0,f.Z)(this,e),this._ngZone=t,this._currentSchedule=null,this._destroyed=new x.xQ}return(0,m.Z)(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 Re,this._getScheduleObservable().pipe((0,M.R)(this._destroyed)).subscribe(function(){for(;e._currentSchedule.tasks.length||e._currentSchedule.endTasks.length;){var t=e._currentSchedule;e._currentSchedule=new Re;var n,i=(0,l.Z)(t.tasks);try{for(i.s();!(n=i.n()).done;)(0,n.value)()}catch(a){i.e(a)}finally{i.f()}var r,o=(0,l.Z)(t.endTasks);try{for(o.s();!(r=o.n()).done;)(0,r.value)()}catch(a){o.e(a)}finally{o.f()}}e._currentSchedule=null}))}},{key:"_getScheduleObservable",value:function(){return this._ngZone.isStable?(0,we.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,P.q)(1))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.LFG(y.R0b))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),Be=function(){var e=function(){function e(t,n){(0,f.Z)(this,e),this.template=t,this._differs=n}return(0,m.Z)(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 ze?e.headerCell.template:this instanceof He?e.footerCell.template:e.cell.template}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.Rgc),y.Y36(y.ZZ4))},e.\u0275dir=y.lG2({type:e,features:[y.TTD]}),e}(),je=Ae(function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(Be)),ze=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r){var o;return(0,f.Z)(this,n),(o=t.call(this,e,i))._table=r,o}return(0,m.Z)(n,[{key:"ngOnChanges",value:function(e){(0,c.Z)((0,u.Z)(n.prototype),"ngOnChanges",this).call(this,e)}}]),n}(je);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.Rgc),y.Y36(y.ZZ4),y.Y36(Ze,8))},e.\u0275dir=y.lG2({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[y.qOj,y.TTD]}),e}(),Ue=Ae(function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(Be)),He=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r){var o;return(0,f.Z)(this,n),(o=t.call(this,e,i))._table=r,o}return(0,m.Z)(n,[{key:"ngOnChanges",value:function(e){(0,c.Z)((0,u.Z)(n.prototype),"ngOnChanges",this).call(this,e)}}]),n}(Ue);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.Rgc),y.Y36(y.ZZ4),y.Y36(Ze,8))},e.\u0275dir=y.lG2({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[y.qOj,y.TTD]}),e}(),Ye=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r){var o;return(0,f.Z)(this,n),(o=t.call(this,e,i))._table=r,o}return n}(Be);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.Rgc),y.Y36(y.ZZ4),y.Y36(Ze,8))},e.\u0275dir=y.lG2({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[y.qOj]}),e}(),Je=function(){var e=function(){function e(t){(0,f.Z)(this,e),this._viewContainer=t,e.mostRecentCellOutlet=this}return(0,m.Z)(e,[{key:"ngOnDestroy",value:function(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.s_b))},e.\u0275dir=y.lG2({type:e,selectors:[["","cdkCellOutlet",""]]}),e.mostRecentCellOutlet=null,e}(),Ge=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=y.Xpm({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&&y.GkF(0,0)},directives:[Je],encapsulation:2}),e}(),We=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=y.Xpm({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&&y.GkF(0,0)},directives:[Je],encapsulation:2}),e}(),Ve=function(){var e=function e(t){(0,f.Z)(this,e),this.templateRef=t};return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.Rgc))},e.\u0275dir=y.lG2({type:e,selectors:[["ng-template","cdkNoDataRow",""]]}),e}(),Qe=["top","bottom","left","right"],Xe=function(){function e(t,n,i,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6?arguments[6]:void 0;(0,f.Z)(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,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(0,m.Z)(e,[{key:"clearStickyPositioning",value:function(e,t){var n,i=this,r=[],o=(0,l.Z)(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.nodeType===a.ELEMENT_NODE){r.push(a);for(var s=0;s<a.children.length;s++)r.push(a.children[s])}}}catch(c){o.e(c)}finally{o.f()}this._coalescedStyleScheduler.schedule(function(){var e,n=(0,l.Z)(r);try{for(n.s();!(e=n.n()).done;)i._removeStickyStyle(e.value,t)}catch(c){n.e(c)}finally{n.f()}})}},{key:"updateStickyColumns",value:function(e,t,n){var i=this,r=!(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,r),c=this._getStickyStartColumnPositions(s,t),u=this._getStickyEndColumnPositions(s,n),d=t.lastIndexOf(!0),h=n.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var r,o="rtl"===i.direction,p=o?"right":"left",f=o?"left":"right",m=(0,l.Z)(e);try{for(m.s();!(r=m.n()).done;)for(var g=r.value,v=0;v<a;v++){var y=g.children[v];t[v]&&i._addStickyStyle(y,p,c[v],v===d),n[v]&&i._addStickyStyle(y,f,u[v],v===h)}}catch(_){m.e(_)}finally{m.f()}i._positionListener&&(i._positionListener.stickyColumnsUpdated({sizes:-1===d?[]:s.slice(0,d+1).map(function(e,n){return t[n]?e:null})}),i._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 i=this;if(this._isBrowser){for(var r="bottom"===n?e.slice().reverse():e,o="bottom"===n?t.slice().reverse():t,a=[],s=[],c=[],u=0,d=0;u<r.length;u++)if(o[u]){a[u]=d;var h=r[u];c[u]=this._isNativeHtmlTable?Array.from(h.children):[h];var p=h.getBoundingClientRect().height;d+=p,s[u]=p}var f=o.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(function(){for(var e,t,u=0;u<r.length;u++)if(o[u]){var d,h=a[u],p=u===f,m=(0,l.Z)(c[u]);try{for(m.s();!(d=m.n()).done;)i._addStickyStyle(d.value,n,h,p)}catch(g){m.e(g)}finally{m.f()}}"top"===n?null===(e=i._positionListener)||void 0===e||e.stickyHeaderRowsUpdated({sizes:s,offsets:a,elements:c}):null===(t=i._positionListener)||void 0===t||t.stickyFooterRowsUpdated({sizes:s,offsets:a,elements:c})})}}},{key:"updateStickyFooterContainer",value:function(e,t){var n=this;if(this._isNativeHtmlTable){var i=e.querySelector("tfoot");this._coalescedStyleScheduler.schedule(function(){t.some(function(e){return!e})?n._removeStickyStyle(i,["bottom"]):n._addStickyStyle(i,"bottom",0,!1)})}}},{key:"_removeStickyStyle",value:function(e,t){var n,i=(0,l.Z)(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;e.style[r]="",e.classList.remove(this._borderCellCss[r])}}catch(o){i.e(o)}finally{i.f()}Qe.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,i){e.classList.add(this._stickCellCss),i&&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},i=0,r=(0,l.Z)(Qe);try{for(r.s();!(t=r.n()).done;){var o=t.value;e.style[o]&&(i+=n[o])}}catch(a){r.e(a)}finally{r.f()}return i?"".concat(i):""}},{key:"_getCellWidths",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=e.children,r=0;r<i.length;r++){var o=i[r];n.push(o.getBoundingClientRect().width)}return this._cachedCellWidths=n,n}},{key:"_getStickyStartColumnPositions",value:function(e,t){for(var n=[],i=0,r=0;r<e.length;r++)t[r]&&(n[r]=i,i+=e[r]);return n}},{key:"_getStickyEndColumnPositions",value:function(e,t){for(var n=[],i=0,r=e.length;r>0;r--)t[r]&&(n[r]=i,i+=e[r]);return n}}]),e}(),Ke=new y.OlP("CDK_SPL"),$e=function(){var e=function e(t,n){(0,f.Z)(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.s_b),y.Y36(y.SBq))},e.\u0275dir=y.lG2({type:e,selectors:[["","rowOutlet",""]]}),e}(),et=function(){var e=function e(t,n){(0,f.Z)(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.s_b),y.Y36(y.SBq))},e.\u0275dir=y.lG2({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),tt=function(){var e=function e(t,n){(0,f.Z)(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.s_b),y.Y36(y.SBq))},e.\u0275dir=y.lG2({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),nt=function(){var e=function e(t,n){(0,f.Z)(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.s_b),y.Y36(y.SBq))},e.\u0275dir=y.lG2({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),it=function(){var e=function(){function e(t,n,i,r,o,a,s,l,c,u,d){(0,f.Z)(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=i,this._dir=o,this._platform=s,this._viewRepeater=l,this._coalescedStyleScheduler=c,this._viewportRuler=u,this._stickyPositioningListener=d,this._onDestroy=new x.xQ,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 Se.X({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return(0,m.Z)(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=(0,S.Ig)(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=(0,S.Ig)(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.change().pipe((0,M.R)(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(),(0,be.Z9)(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.applyChanges(t,n,function(t,n,i){return e._getEmbeddedViewArgs(t.item,i)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),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),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat((0,p.Z)(t),(0,p.Z)(n),(0,p.Z)(i)),["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var i=[],r=0;r<n.length;r++)e._renderRows[r].rowDef===t&&i.push(n[r]);e._addStickyColumnStyles(i,t)}),i.forEach(function(t,n){e._addStickyColumnStyles([t],e._footerRowDefs[n])}),Array.from(this._columnDefsByName.values()).forEach(function(e){return e.resetStickyChanged()})}},{key:"_getAllRenderRows",value:function(){var e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var n=0;n<this._data.length;n++){var i=this._data[n],r=this._getRenderRowsForData(i,n,t.get(i));this._cachedRenderRowsMap.has(i)||this._cachedRenderRowsMap.set(i,new WeakMap);for(var o=0;o<r.length;o++){var a=r[o],s=this._cachedRenderRowsMap.get(a.data);s.has(a.rowDef)?s.get(a.rowDef).push(a):s.set(a.rowDef,[a]),e.push(a)}}return e}},{key:"_getRenderRowsForData",value:function(e,t,n){return this._getRowDefs(e,t).map(function(i){var r=n&&n.has(i)?n.get(i):[];if(r.length){var o=r.shift();return o.dataIndex=t,o}return{data:e,rowDef:i,dataIndex:t}})}},{key:"_cacheColumnDefs",value:function(){var e=this;this._columnDefsByName.clear(),rt(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=rt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=rt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=rt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var e=this._rowDefs.filter(function(e){return!e.when});this._defaultRowDef=e[0]}},{key:"_renderUpdatedColumns",value:function(){var e=function(e,t){return e||!!t.getColumnsDiff()},t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();var n=this._headerRowDefs.reduce(e,!1);n&&this._forceRenderHeaderRows();var i=this._footerRowDefs.reduce(e,!1);return i&&this._forceRenderFooterRows(),t||n||i}},{key:"_switchDataSource",value:function(e){this._data=[],(0,be.Z9)(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&&((0,be.Z9)(this.dataSource)?e=this.dataSource.connect(this):(0,xe.b)(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,Ce.of)(this.dataSource)),this._renderChangeSubscription=e.pipe((0,M.R)(this._onDestroy)).subscribe(function(e){t._data=e||[],t.renderRows()}))}},{key:"_forceRenderHeaderRows",value:function(){var e=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),r=i.map(function(e){return e.sticky}),o=i.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,r,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n<e.viewContainer.length;n++){var i=e.viewContainer.get(n);t.push(i.rootNodes[0])}return t}},{key:"_getRowDefs",value:function(e,t){if(1==this._rowDefs.length)return[this._rowDefs[0]];var n=[];if(this.multiTemplateDataRows)n=this._rowDefs.filter(function(n){return!n.when||n.when(t,e)});else{var i=this._rowDefs.find(function(n){return n.when&&n.when(t,e)})||this._defaultRowDef;i&&n.push(i)}return n}},{key:"_getEmbeddedViewArgs",value:function(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}},{key:"_renderRow",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),r}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,i=(0,l.Z)(this._getCellTemplates(e));try{for(i.s();!(n=i.n()).done;)Je.mostRecentCellOutlet&&Je.mostRecentCellOutlet._viewContainer.createEmbeddedView(n.value,t)}catch(r){i.e(r)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t<n;t++){var i=e.get(t).context;i.count=n,i.first=0===t,i.last=t===n-1,i.even=t%2==0,i.odd=!i.even,this.multiTemplateDataRows?(i.dataIndex=this._renderRows[t].dataIndex,i.renderIndex=t):i.index=this._renderRows[t].dataIndex}}},{key:"_getCellTemplates",value:function(e){var t=this;return e&&e.columns?Array.from(e.columns,function(n){var i=t._columnDefsByName.get(n);return e.extractCellTemplate(i)}):[]}},{key:"_applyNativeTableSections",value:function(){for(var e=this._document.createDocumentFragment(),t=0,n=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];t<n.length;t++){var i=n[t],r=this._document.createElement(i.tag);r.setAttribute("role","rowgroup");var o,a=(0,l.Z)(i.outlets);try{for(a.s();!(o=a.n()).done;)r.appendChild(o.value.elementRef.nativeElement)}catch(s){a.e(s)}finally{a.f()}e.appendChild(r)}this._elementRef.nativeElement.appendChild(e)}},{key:"_forceRenderDataRows",value:function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}},{key:"_checkStickyStates",value:function(){var e=function(e,t){return e||t.hasStickyChanged()};this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}},{key:"_setupStickyStyler",value:function(){var e=this;this._stickyStyler=new Xe(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,Ce.of)()).pipe((0,M.R)(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)(y.Y36(y.ZZ4),y.Y36(y.sBO),y.Y36(y.SBq),y.$8M("role"),y.Y36(N.Is,8),y.Y36(_.K0),y.Y36(w.t4),y.Y36(be.k),y.Y36(Le),y.Y36(b.rL),y.Y36(Ke,12))},e.\u0275cmp=y.Xpm({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,n){var i;1&e&&(y.Suo(n,Ve,5),y.Suo(n,Ie,5),y.Suo(n,Ye,5),y.Suo(n,ze,5),y.Suo(n,He,5)),2&e&&(y.iGM(i=y.CRH())&&(t._noDataRow=i.first),y.iGM(i=y.CRH())&&(t._contentColumnDefs=i),y.iGM(i=y.CRH())&&(t._contentRowDefs=i),y.iGM(i=y.CRH())&&(t._contentHeaderRowDefs=i),y.iGM(i=y.CRH())&&(t._contentFooterRowDefs=i))},viewQuery:function(e,t){var n;1&e&&(y.Gf($e,7),y.Gf(et,7),y.Gf(tt,7),y.Gf(nt,7)),2&e&&(y.iGM(n=y.CRH())&&(t._rowOutlet=n.first),y.iGM(n=y.CRH())&&(t._headerRowOutlet=n.first),y.iGM(n=y.CRH())&&(t._footerRowOutlet=n.first),y.iGM(n=y.CRH())&&(t._noDataRowOutlet=n.first))},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&y.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[y._Bn([{provide:Ze,useExisting:e},{provide:be.k,useClass:be.yy},{provide:Le,useClass:Fe},{provide:Ke,useValue:null}])],ngContentSelectors:Te,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(y.F$t(ke),y.Hsn(0),y.Hsn(1,1),y.GkF(2,0),y.GkF(3,1),y.GkF(4,2),y.GkF(5,3))},directives:[et,$e,nt,tt],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),e}();function rt(e,t){return e.concat(Array.from(t))}var ot=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[b.Cl]]}),e}(),at=n(75472),st=n(19061),lt=n(59412),ct=n(32819),ut=n(33090),dt=n(58780),ht=(n(12698),n(76161)),pt=n(57263),ft=n(739),mt=n(38480),gt=n(6517),vt=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[_.ez,lt.BQ,w.ud,b.ZD],b.ZD,lt.BQ]}),e}(),yt=n(82667),_t=n(81370);function bt(e,t){var n,i;return i=t,"function"==typeof(e=void 0===(n=e)?void 0===i?n:i:n)?function(){for(var t=arguments,n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=t[r];return!!e.apply(this,i)}:e?function(){return!0}:function(){return!1}}var wt="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},St=function(e){return null!=e&&"object"===(void 0===e?"undefined":wt(e))&&1===e.nodeType&&"object"===wt(e.style)&&"object"===wt(e.ownerDocument)};function xt(e,t){if(t=Zt(t,!0),!St(t))return-1;for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function Ct(e,t){return-1!==xt(e,t)}function kt(e,t){for(var n=0;n<t.length;n++)Ct(e,t[n])||e.push(t[n]);return t}function Tt(e){for(var t=arguments,n=[],i=arguments.length-1;i-- >0;)n[i]=t[i+1];return kt(e,n=n.map(Zt))}function At(e){for(var t=arguments,n=[],i=arguments.length-1;i-- >0;)n[i]=t[i+1];return n.map(Zt).reduce(function(t,n){var i=xt(e,n);return-1!==i?t.concat(e.splice(i,1)):t},[])}function Zt(e,t){if("string"==typeof e)try{return document.querySelector(e)}catch(n){throw n}if(!St(e)&&!t)throw new TypeError(e+" is not a DOM element.");return e}function Mt(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 Ot,Et=void 0;"function"!=typeof Object.create?(Ot=function(){},Et=function(e,t){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");Ot.prototype=e||{};var n=new Ot;return Ot.prototype=null,void 0!==t&&Object.defineProperties(n,t),null===e&&(n.__proto__=null),n}):Et=Object.create;var Pt=Et,It=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function qt(e,t){t=t||{};for(var n=Pt(e),i=0;i<It.length;i++)void 0!==t[It[i]]&&(n[It[i]]=t[It[i]]);return n}function Nt(e,t){console.log("data ",t),e.data=t||{},e.dispatched="mousemove"}var Dt=["webkit","moz","ms","o"],Rt=function(){if("undefined"==typeof window)return function(){};for(var e=0,t=Dt.length;e<t&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[Dt[e]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var n=0;window.requestAnimationFrame=function(e){var t=(new Date).getTime(),i=Math.max(0,16-t-n),r=window.setTimeout(function(){return e(t+i)},i);return n=t+i,r}}return window.requestAnimationFrame.bind(window)}(),Lt=function(){if("undefined"==typeof window)return function(){};for(var e=0,t=Dt.length;e<t&&!window.cancelAnimationFrame;++e)window.cancelAnimationFrame=window[Dt[e]+"CancelAnimationFrame"]||window[Dt[e]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}();function Ft(e,t){void 0===t&&(t={});var n=this,i=4,r=!1;if("object"!=typeof t.margin){var o=t.margin||-1;this.margin={left:o,right:o,top:o,bottom:o}}else this.margin=t.margin;this.scrollWhenOutside=t.scrollWhenOutside||!1;var a,s={},l=function(e,t){var n=bt((t=t||{}).allowUpdate,!0);return function(t){if(t=t||window.event,e.target=t.target||t.srcElement||t.originalTarget,e.element=this,e.type=t.type,n(t)){if(t.targetTouches)e.x=t.targetTouches[0].clientX,e.y=t.targetTouches[0].clientY,e.pageX=t.targetTouches[0].pageX,e.pageY=t.targetTouches[0].pageY,e.screenX=t.targetTouches[0].screenX,e.screenY=t.targetTouches[0].screenY;else{if(null===t.pageX&&null!==t.clientX){var i=t.target&&t.target.ownerDocument||document,r=i.documentElement,o=i.body;e.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)}else e.pageX=t.pageX,e.pageY=t.pageY;e.x=t.clientX,e.y=t.clientY,e.screenX=t.screenX,e.screenY=t.screenY}e.clientX=e.x,e.clientY=e.y}}}(s),c=(a={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null},{destroy:function(){a=null},dispatch:MouseEvent?function(e,t,n){var i=new MouseEvent("mousemove",qt(a,t));return Nt(i,n),e.dispatchEvent(i)}:"function"==typeof document.createEvent?function(e,t,n){var i=qt(a,t),r=document.createEvent("MouseEvents");return r.initMouseEvent("mousemove",!0,!0,window,0,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget),Nt(r,n),e.dispatchEvent(r)}:"function"==typeof document.createEventObject?function(e,t,n){var i=document.createEventObject(),r=qt(a,t);for(var o in r)i[o]=r[o];return Nt(i,n),e.dispatchEvent(i)}:void 0}),u=!1;window.addEventListener("mousemove",l,!1),window.addEventListener("touchmove",l,!1),isNaN(t.maxSpeed)||(i=t.maxSpeed),"object"!=typeof i&&(i={left:i,right:i,top:i,bottom:i}),this.autoScroll=bt(t.autoScroll),this.syncMove=bt(t.syncMove,!1),this.destroy=function(t){window.removeEventListener("mousemove",l,!1),window.removeEventListener("touchmove",l,!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",_,!1),window.removeEventListener("mousemove",w,!1),window.removeEventListener("touchmove",w,!1),window.removeEventListener("scroll",m,!0),e=[],t&&y()},this.add=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return Tt.apply(void 0,[e].concat(t)),this},this.remove=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return At.apply(void 0,[e].concat(t))};var d,h=null;"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),function(t){e=[],t.forEach(function(e){e===window?h=window:n.add(e)})}(e),Object.defineProperties(this,{down:{get:function(){return u}},maxSpeed:{get:function(){return i}},point:{get:function(){return s}},scrolling:{get:function(){return r}}});var p,f=null;function m(t){for(var n=0;n<e.length;n++)if(e[n]===t.target){r=!0;break}r&&Rt(function(){return r=!1})}function g(){u=!0}function v(){u=!1,y()}function y(){Lt(p),Lt(d)}function _(){u=!1}function b(){for(var t=null,n=0;n<e.length;n++)Bt(s,e[n])&&(t=e[n]);return t}function w(t){if(n.autoScroll()&&!t.dispatched){var i=t.target,r=document.body;f&&!Bt(s,f)&&(n.scrollWhenOutside||(f=null)),i&&i.parentNode===r?i=b():(i=function(t){if(!t)return null;if(f===t)return t;if(Ct(e,t))return t;for(;t=t.parentNode;)if(Ct(e,t))return t;return null}(i))||(i=b()),i&&i!==f&&(f=i),h&&(Lt(d),d=Rt(S)),f&&(Lt(p),p=Rt(x))}}function S(){C(h),Lt(d),d=Rt(S)}function x(){f&&(C(f),Lt(p),p=Rt(x))}function C(e){var t,i,r=Mt(e);t=s.x<r.left+n.margin.left?Math.floor(Math.max(-1,(s.x-r.left)/n.margin.left-1)*n.maxSpeed.left):s.x>r.right-n.margin.right?Math.ceil(Math.min(1,(s.x-r.right)/n.margin.right+1)*n.maxSpeed.right):0,i=s.y<r.top+n.margin.top?Math.floor(Math.max(-1,(s.y-r.top)/n.margin.top-1)*n.maxSpeed.top):s.y>r.bottom-n.margin.bottom?Math.ceil(Math.min(1,(s.y-r.bottom)/n.margin.bottom+1)*n.maxSpeed.bottom):0,n.syncMove()&&c.dispatch(e,{pageX:s.pageX+t,pageY:s.pageY+i,clientX:s.x+t,clientY:s.y+i}),setTimeout(function(){i&&function(e,t){e===window?window.scrollTo(e.pageXOffset,e.pageYOffset+t):e.scrollTop+=t}(e,i),t&&function(e,t){e===window?window.scrollTo(e.pageXOffset+t,e.pageYOffset):e.scrollLeft+=t}(e,t)})}window.addEventListener("mousedown",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",_,!1),window.addEventListener("scroll",m,!0)}function Bt(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=Mt(t);return e.y>n.top&&e.y<n.bottom&&e.x>n.left&&e.x<n.right}(e,t)}var jt=n(35135),zt=n(16338),Ut=n(64397),Ht=n(75398),Yt=n(4363),Jt=function(){var e=function e(){(0,f.Z)(this,e),this.currentDrag=new x.xQ};return e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e.ngInjectableDef=(0,y.Ez6)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Gt=function(){var e=function e(t){(0,f.Z)(this,e),this.elementRef=t,this.activeLongPressDrag=!1,this.longPressConfig={duration:300,delta:30}};return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq))},e.\u0275dir=y.lG2({type:e,selectors:[["","mwlDraggableScrollContainer",""]],inputs:{activeLongPressDrag:"activeLongPressDrag",longPressConfig:"longPressConfig"}}),e}(),Wt=function(){var e=function(){function e(t,n,i,r,o,a,s){(0,f.Z)(this,e),this.element=t,this.renderer=n,this.draggableHelper=i,this.zone=r,this.vcr=o,this.scrollContainer=a,this.document=s,this.dragAxis={x:!0,y:!0},this.dragSnapGrid={},this.ghostDragEnabled=!0,this.showOriginalElementWhileDragging=!1,this.dragCursor="",this.autoScroll={margin:20},this.dragPointerDown=new y.vpe,this.dragStart=new y.vpe,this.ghostElementCreated=new y.vpe,this.dragging=new y.vpe,this.dragEnd=new y.vpe,this.pointerDown$=new x.xQ,this.pointerMove$=new x.xQ,this.pointerUp$=new x.xQ,this.eventListenerSubscriptions={},this.destroy$=new x.xQ,this.timeLongPress={timerBegin:0,timerEnd:0}}return(0,m.Z)(e,[{key:"ngOnInit",value:function(){var e=this;this.checkEventListeners();var t=this.pointerDown$.pipe((0,dt.h)(function(){return e.canDrag()}),(0,jt.zg)(function(t){t.event.stopPropagation&&!e.scrollContainer&&t.event.stopPropagation();var n=e.renderer.createElement("style");e.renderer.setAttribute(n,"type","text/css"),e.renderer.appendChild(n,e.renderer.createText("\n body * {\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n ")),requestAnimationFrame(function(){e.document.head.appendChild(n)});var i=e.getScrollPosition(),r=new A.y(function(t){return e.renderer.listen(e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window","scroll",function(e){return t.next(e)})}).pipe((0,O.O)(i),(0,E.U)(function(){return e.getScrollPosition()})),o=new x.xQ,a=new yt.t;e.zone.run(function(){e.dragPointerDown.next({x:0,y:0})});var l=(0,Z.T)(e.pointerUp$,e.pointerDown$,a,e.destroy$).pipe((0,zt.B)()),c=(0,_t.aj)([e.pointerMove$,r]).pipe((0,E.U)(function(e){var n=(0,s.Z)(e,2),i=n[0],r=n[1];return{currentDrag$:o,transformX:i.clientX-t.clientX,transformY:i.clientY-t.clientY,clientX:i.clientX,clientY:i.clientY,scrollLeft:r.left,scrollTop:r.top,target:i.event.target}}),(0,E.U)(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}),(0,E.U)(function(t){return e.dragAxis.x||(t.transformX=0),e.dragAxis.y||(t.transformY=0),t}),(0,E.U)(function(e){return Object.assign({},e,{x:e.transformX+(e.scrollLeft-i.left),y:e.transformY+(e.scrollTop-i.top)})}),(0,dt.h)(function(t){return!e.validateDrag||e.validateDrag({x:t.x,y:t.y,transform:{x:t.transformX,y:t.transformY}})}),(0,M.R)(l),(0,zt.B)()),u=c.pipe((0,P.q)(1),(0,zt.B)()),d=c.pipe((0,Ut.h)(1),(0,zt.B)());return u.subscribe(function(t){var n=t.clientX,i=t.clientY,r=t.x,s=t.y;if(e.zone.run(function(){e.dragStart.next({cancelDrag$:a})}),e.scroller=new Ft([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 l=e.element.nativeElement.getBoundingClientRect(),c=e.element.nativeElement.cloneNode(!0);if(e.showOriginalElementWhileDragging||e.renderer.setStyle(e.element.nativeElement,"visibility","hidden"),e.ghostElementAppendTo?e.ghostElementAppendTo.appendChild(c):e.element.nativeElement.parentNode.insertBefore(c,e.element.nativeElement.nextSibling),e.ghostElement=c,e.document.body.style.cursor=e.dragCursor,e.setElementStyles(c,{position:"fixed",top:"".concat(l.top,"px"),left:"".concat(l.left,"px"),width:"".concat(l.width,"px"),height:"".concat(l.height,"px"),cursor:e.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),e.ghostElementTemplate){var u=e.vcr.createEmbeddedView(e.ghostElementTemplate);c.innerHTML="",u.rootNodes.filter(function(e){return e instanceof Node}).forEach(function(e){c.appendChild(e)}),d.subscribe(function(){e.vcr.remove(e.vcr.indexOf(u))})}e.zone.run(function(){e.ghostElementCreated.emit({clientX:n-r,clientY:i-s,element:c})}),d.subscribe(function(){c.parentElement.removeChild(c),e.ghostElement=null,e.renderer.setStyle(e.element.nativeElement,"visibility","")})}e.draggableHelper.currentDrag.next(o)}),d.pipe((0,jt.zg)(function(e){var t=a.pipe((0,Ht.Q)(),(0,P.q)(1),(0,E.U)(function(t){return Object.assign({},e,{dragCancelled:t>0})}));return a.complete(),t})).subscribe(function(t){var n,i,r,a=t.x,s=t.y,l=t.dragCancelled;e.scroller.destroy(),e.zone.run(function(){e.dragEnd.next({x:a,y:s,dragCancelled:l})}),n=e.renderer,i=e.element,(r=e.dragActiveClass)&&r.split(" ").forEach(function(e){return n.removeClass(i.nativeElement,e)}),o.complete()}),(0,Z.T)(l,d).pipe((0,P.q)(1)).subscribe(function(){requestAnimationFrame(function(){e.document.head.removeChild(n)})}),c}),(0,zt.B)());(0,Z.T)(t.pipe((0,P.q)(1),(0,E.U)(function(e){return[,e]})),t.pipe((0,Yt.G)())).pipe((0,dt.h)(function(e){var t=(0,s.Z)(e,2),n=t[0],i=t[1];return!n||n.x!==i.x||n.y!==i.y}),(0,E.U)(function(e){return(0,s.Z)(e,2)[1]})).subscribe(function(t){var n=t.x,i=t.y,r=t.currentDrag$,o=t.clientX,a=t.clientY,s=t.transformX,l=t.transformY,c=t.target;e.zone.run(function(){e.dragging.next({x:n,y:i})}),requestAnimationFrame(function(){if(e.ghostElement){var t="translate3d(".concat(s,"px, ").concat(l,"px, 0px)");e.setElementStyles(e.ghostElement,{transform:t,"-webkit-transform":t,"-ms-transform":t,"-moz-transform":t,"-o-transform":t})}}),r.next({clientX:o,clientY:a,dropData:e.dropData,target:c})})}},{key:"ngOnChanges",value:function(e){e.dragAxis&&this.checkEventListeners()}},{key:"ngOnDestroy",value:function(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}},{key:"checkEventListeners",value:function(){var e=this,t=this.canDrag(),n=Object.keys(this.eventListenerSubscriptions).length>0;t&&!n?this.zone.runOutsideAngular(function(){e.eventListenerSubscriptions.mousedown=e.renderer.listen(e.element.nativeElement,"mousedown",function(t){e.onMouseDown(t)}),e.eventListenerSubscriptions.mouseup=e.renderer.listen("document","mouseup",function(t){e.onMouseUp(t)}),e.eventListenerSubscriptions.touchstart=e.renderer.listen(e.element.nativeElement,"touchstart",function(t){e.onTouchStart(t)}),e.eventListenerSubscriptions.touchend=e.renderer.listen("document","touchend",function(t){e.onTouchEnd(t)}),e.eventListenerSubscriptions.touchcancel=e.renderer.listen("document","touchcancel",function(t){e.onTouchEnd(t)}),e.eventListenerSubscriptions.mouseenter=e.renderer.listen(e.element.nativeElement,"mouseenter",function(){e.onMouseEnter()}),e.eventListenerSubscriptions.mouseleave=e.renderer.listen(e.element.nativeElement,"mouseleave",function(){e.onMouseLeave()})}):!t&&n&&this.unsubscribeEventListeners()}},{key:"onMouseDown",value:function(e){var t=this;0===e.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",function(e){t.pointerMove$.next({event:e,clientX:e.clientX,clientY:e.clientY})})),this.pointerDown$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}},{key:"onMouseUp",value:function(e){0===e.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}},{key:"onTouchStart",value:function(e){var t,n,i,r=this;if((this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&(this.timeLongPress.timerBegin=Date.now(),n=!1,i=this.hasScrollbar(),t=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){var o=(0,ut.R)(this.document,"contextmenu").subscribe(function(e){e.preventDefault()}),a=(0,ut.R)(this.document,"touchmove",{passive:!1}).subscribe(function(o){(r.scrollContainer&&r.scrollContainer.activeLongPressDrag||r.touchStartLongPress)&&!n&&i&&(n=r.shouldBeginDrag(e,o,t)),(r.scrollContainer&&r.scrollContainer.activeLongPressDrag||r.touchStartLongPress)&&i&&!n||(o.preventDefault(),r.pointerMove$.next({event:o,clientX:o.targetTouches[0].clientX,clientY:o.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=function(){o.unsubscribe(),a.unsubscribe()}}this.pointerDown$.next({event:e,clientX:e.touches[0].clientX,clientY:e.touches[0].clientY})}},{key:"onTouchEnd",value:function(e){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&this.enableScroll()),this.pointerUp$.next({event:e,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY})}},{key:"onMouseEnter",value:function(){this.setCursor(this.dragCursor)}},{key:"onMouseLeave",value:function(){this.setCursor("")}},{key:"canDrag",value:function(){return this.dragAxis.x||this.dragAxis.y}},{key:"setCursor",value:function(e){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",e)}},{key:"unsubscribeEventListeners",value:function(){var e=this;Object.keys(this.eventListenerSubscriptions).forEach(function(t){e.eventListenerSubscriptions[t](),delete e.eventListenerSubscriptions[t]})}},{key:"setElementStyles",value:function(e,t){var n=this;Object.keys(t).forEach(function(i){n.renderer.setStyle(e,i,t[i])})}},{key:"getScrollElement",value:function(){return this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.body}},{key:"getScrollPosition",value:function(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||this.document.documentElement.scrollTop,left:window.pageXOffset||this.document.documentElement.scrollLeft}}},{key:"shouldBeginDrag",value:function(e,t,n){var i=this.getScrollPosition(),r=Math.abs(i.top-n.top),o=Math.abs(i.left-n.left),a=Math.abs(t.targetTouches[0].clientX-e.touches[0].clientX)-o,s=Math.abs(t.targetTouches[0].clientY-e.touches[0].clientY)-r,l=this.touchStartLongPress?this.touchStartLongPress:{delta:this.scrollContainer.longPressConfig.delta,delay:this.scrollContainer.longPressConfig.duration};return(a+s>l.delta||r>0||o>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=l.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)(y.Y36(y.SBq),y.Y36(y.Qsj),y.Y36(Jt),y.Y36(y.R0b),y.Y36(y.s_b),y.Y36(Gt,8),y.Y36(_.K0))},e.\u0275dir=y.lG2({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:[y.TTD]}),e}(),Vt=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({}),e}(),Qt=n(39095);function Xt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Kt(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Xt(t(e),n)}),{left:function(t,n,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i<r;){var o=i+r>>>1;e(t[o],n)<0?i=o+1:r=o}return i},right:function(t,n,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i<r;){var o=i+r>>>1;e(t[o],n)>0?r=o:i=o+1}return i}}}var $t=Kt(Xt),en=$t.right,tn=$t.left,nn=en;function rn(e,t){null==t&&(t=on);for(var n=0,i=e.length-1,r=e[0],o=new Array(i<0?0:i);n<i;)o[n]=t(r,r=e[++n]);return o}function on(e,t){return[e,t]}function an(e,t,n){var i,r,o,a,s=e.length,l=t.length,c=new Array(s*l);for(null==n&&(n=on),i=o=0;i<s;++i)for(a=e[i],r=0;r<l;++r,++o)c[o]=n(a,t[r]);return c}function sn(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function ln(e){return null===e?NaN:+e}function cn(e,t){var n,i,r=e.length,o=0,a=-1,s=0,l=0;if(null==t)for(;++a<r;)isNaN(n=ln(e[a]))||(l+=(i=n-s)*(n-(s+=i/++o)));else for(;++a<r;)isNaN(n=ln(t(e[a],a,e)))||(l+=(i=n-s)*(n-(s+=i/++o)));if(o>1)return l/(o-1)}function un(e,t){var n=cn(e,t);return n?Math.sqrt(n):n}function dn(e,t){var n,i,r,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(n=e[a])&&n>=n)for(i=r=n;++a<o;)null!=(n=e[a])&&(i>n&&(i=n),r<n&&(r=n))}else for(;++a<o;)if(null!=(n=t(e[a],a,e))&&n>=n)for(i=r=n;++a<o;)null!=(n=t(e[a],a,e))&&(i>n&&(i=n),r<n&&(r=n));return[i,r]}var hn=Array.prototype,pn=hn.slice,fn=hn.map;function mn(e){return function(){return e}}function gn(e){return e}function vn(e,t,n){e=+e,t=+t,n=(r=arguments.length)<2?(t=e,e=0,1):r<3?1:+n;for(var i=-1,r=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(r);++i<r;)o[i]=e+i*n;return o}var yn=Math.sqrt(50),_n=Math.sqrt(10),bn=Math.sqrt(2);function wn(e,t,n){var i,r,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((i=t<e)&&(r=e,e=t,t=r),0===(a=Sn(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(r=Math.ceil(t-e+1));++s<r;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(r=Math.ceil(e-t+1));++s<r;)o[s]=(e-s)/a;return i&&o.reverse(),o}function Sn(e,t,n){var i=(t-e)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=yn?10:o>=_n?5:o>=bn?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=yn?10:o>=_n?5:o>=bn?2:1)}function xn(e,t,n){var i=Math.abs(t-e)/Math.max(0,n),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=yn?r*=10:o>=_n?r*=5:o>=bn&&(r*=2),t<e?-r:r}function Cn(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1}function kn(){var e=gn,t=dn,n=Cn;function i(i){var r,o,a=i.length,s=new Array(a);for(r=0;r<a;++r)s[r]=e(i[r],r,i);var l=t(s),c=l[0],u=l[1],d=n(s,c,u);Array.isArray(d)||(d=xn(c,u,d),d=vn(Math.ceil(c/d)*d,u,d));for(var h=d.length;d[0]<=c;)d.shift(),--h;for(;d[h-1]>u;)d.pop(),--h;var p,f=new Array(h+1);for(r=0;r<=h;++r)(p=f[r]=[]).x0=r>0?d[r-1]:c,p.x1=r<h?d[r]:u;for(r=0;r<a;++r)c<=(o=s[r])&&o<=u&&f[nn(d,o,0,h)].push(i[r]);return f}return i.value=function(t){return arguments.length?(e="function"==typeof t?t:mn(t),i):e},i.domain=function(e){return arguments.length?(t="function"==typeof e?e:mn([e[0],e[1]]),i):t},i.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?mn(pn.call(e)):mn(e),i):n},i}function Tn(e,t,n){if(null==n&&(n=ln),i=e.length){if((t=+t)<=0||i<2)return+n(e[0],0,e);if(t>=1)return+n(e[i-1],i-1,e);var i,r=(i-1)*t,o=Math.floor(r),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(r-o)}}function An(e,t,n){return e=fn.call(e,ln).sort(Xt),Math.ceil((n-t)/(2*(Tn(e,.75)-Tn(e,.25))*Math.pow(e.length,-1/3)))}function Zn(e,t,n){return Math.ceil((n-t)/(3.5*un(e)*Math.pow(e.length,-1/3)))}function Mn(e,t){var n,i,r=e.length,o=-1;if(null==t){for(;++o<r;)if(null!=(n=e[o])&&n>=n)for(i=n;++o<r;)null!=(n=e[o])&&n>i&&(i=n)}else for(;++o<r;)if(null!=(n=t(e[o],o,e))&&n>=n)for(i=n;++o<r;)null!=(n=t(e[o],o,e))&&n>i&&(i=n);return i}function On(e,t){var n,i=e.length,r=i,o=-1,a=0;if(null==t)for(;++o<i;)isNaN(n=ln(e[o]))?--r:a+=n;else for(;++o<i;)isNaN(n=ln(t(e[o],o,e)))?--r:a+=n;if(r)return a/r}function En(e,t){var n,i=e.length,r=-1,o=[];if(null==t)for(;++r<i;)isNaN(n=ln(e[r]))||o.push(n);else for(;++r<i;)isNaN(n=ln(t(e[r],r,e)))||o.push(n);return Tn(o.sort(Xt),.5)}function Pn(e){for(var t,n,i,r=e.length,o=-1,a=0;++o<r;)a+=e[o].length;for(n=new Array(a);--r>=0;)for(t=(i=e[r]).length;--t>=0;)n[--a]=i[t];return n}function In(e,t){var n,i,r=e.length,o=-1;if(null==t){for(;++o<r;)if(null!=(n=e[o])&&n>=n)for(i=n;++o<r;)null!=(n=e[o])&&i>n&&(i=n)}else for(;++o<r;)if(null!=(n=t(e[o],o,e))&&n>=n)for(i=n;++o<r;)null!=(n=t(e[o],o,e))&&i>n&&(i=n);return i}function qn(e,t){for(var n=t.length,i=new Array(n);n--;)i[n]=e[t[n]];return i}function Nn(e,t){if(n=e.length){var n,i,r=0,o=0,a=e[o];for(null==t&&(t=Xt);++r<n;)(t(i=e[r],a)<0||0!==t(a,a))&&(a=i,o=r);return 0===t(a,a)?o:void 0}}function Dn(e,t,n){for(var i,r,o=(null==n?e.length:n)-(t=null==t?0:+t);o;)r=Math.random()*o--|0,i=e[o+t],e[o+t]=e[r+t],e[r+t]=i;return e}function Rn(e,t){var n,i=e.length,r=-1,o=0;if(null==t)for(;++r<i;)(n=+e[r])&&(o+=n);else for(;++r<i;)(n=+t(e[r],r,e))&&(o+=n);return o}function Ln(e){if(!(r=e.length))return[];for(var t=-1,n=In(e,Fn),i=new Array(n);++t<n;)for(var r,o=-1,a=i[t]=new Array(r);++o<r;)a[o]=e[o][t];return i}function Fn(e){return e.length}function Bn(){return Ln(arguments)}var jn=Array.prototype.slice;function zn(e){return e}var Un=1e-6;function Hn(e){return"translate("+(e+.5)+",0)"}function Yn(e){return"translate(0,"+(e+.5)+")"}function Jn(e){return function(t){return+e(t)}}function Gn(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function Wn(){return!this.__axis}function Vn(e,t){var n=[],i=null,r=null,o=6,a=6,s=3,l=1===e||4===e?-1:1,c=4===e||2===e?"x":"y",u=1===e||3===e?Hn:Yn;function d(d){var h=null==i?t.ticks?t.ticks.apply(t,n):t.domain():i,p=null==r?t.tickFormat?t.tickFormat.apply(t,n):zn:r,f=Math.max(o,0)+s,m=t.range(),g=+m[0]+.5,v=+m[m.length-1]+.5,y=(t.bandwidth?Gn:Jn)(t.copy()),_=d.selection?d.selection():d,b=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(h,t).order(),S=w.exit(),x=w.enter().append("g").attr("class","tick"),C=w.select("line"),k=w.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(x),C=C.merge(x.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),k=k.merge(x.append("text").attr("fill","currentColor").attr(c,l*f).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),d!==_&&(b=b.transition(d),w=w.transition(d),C=C.transition(d),k=k.transition(d),S=S.transition(d).attr("opacity",Un).attr("transform",function(e){return isFinite(e=y(e))?u(e):this.getAttribute("transform")}),x.attr("opacity",Un).attr("transform",function(e){var t=this.parentNode.__axis;return u(t&&isFinite(t=t(e))?t:y(e))})),S.remove(),b.attr("d",4===e||2==e?a?"M"+l*a+","+g+"H0.5V"+v+"H"+l*a:"M0.5,"+g+"V"+v:a?"M"+g+","+l*a+"V0.5H"+v+"V"+l*a:"M"+g+",0.5H"+v),w.attr("opacity",1).attr("transform",function(e){return u(y(e))}),C.attr(c+"2",l*o),k.attr(c,l*f).text(p),_.filter(Wn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),_.each(function(){this.__axis=y})}return d.scale=function(e){return arguments.length?(t=e,d):t},d.ticks=function(){return n=jn.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:jn.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(i=null==e?null:jn.call(e),d):i&&i.slice()},d.tickFormat=function(e){return arguments.length?(r=e,d):r},d.tickSize=function(e){return arguments.length?(o=a=+e,d):o},d.tickSizeInner=function(e){return arguments.length?(o=+e,d):o},d.tickSizeOuter=function(e){return arguments.length?(a=+e,d):a},d.tickPadding=function(e){return arguments.length?(s=+e,d):s},d}function Qn(e){return Vn(1,e)}function Xn(e){return Vn(2,e)}function Kn(e){return Vn(3,e)}function $n(e){return Vn(4,e)}var ei={value:function(){}};function ti(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e);i[e]=[]}return new ni(i)}function ni(e){this._=e}function ii(e,t){return e.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");if(i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}})}function ri(e,t){for(var n,i=0,r=e.length;i<r;++i)if((n=e[i]).name===t)return n.value}function oi(e,t,n){for(var i=0,r=e.length;i<r;++i)if(e[i].name===t){e[i]=ei,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=n&&e.push({name:t,value:n}),e}ni.prototype=ti.prototype={constructor:ni,on:function(e,t){var n,i=this._,r=ii(e+"",i),o=-1,a=r.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++o<a;)if(n=(e=r[o]).type)i[n]=oi(i[n],e.name,t);else if(null==t)for(n in i)i[n]=oi(i[n],e.name,null);return this}for(;++o<a;)if((n=(e=r[o]).type)&&(n=ri(i[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ni(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),o=0;o<n;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(i=this._[e]).length;o<n;++o)i[o].value.apply(t,r)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],r=0,o=i.length;r<o;++r)i[r].value.apply(t,n)}};var ai=ti,si="http://www.w3.org/1999/xhtml",li={svg:"http://www.w3.org/2000/svg",xhtml:si,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ci(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),li.hasOwnProperty(t)?{space:li[t],local:e}:e}function ui(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===si&&t.documentElement.namespaceURI===si?t.createElement(e):t.createElementNS(n,e)}}function di(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function hi(e){var t=ci(e);return(t.local?di:ui)(t)}function pi(){}function fi(e){return null==e?pi:function(){return this.querySelector(e)}}function mi(){return[]}function gi(e){return null==e?mi:function(){return this.querySelectorAll(e)}}var vi=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var yi=document.documentElement;if(!yi.matches){var _i=yi.webkitMatchesSelector||yi.msMatchesSelector||yi.mozMatchesSelector||yi.oMatchesSelector;vi=function(e){return function(){return _i.call(this,e)}}}}var bi=vi;function wi(e){return new Array(e.length)}function Si(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function xi(e,t,n,i,r,o){for(var a,s=0,l=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],i[s]=a):n[s]=new Si(e,o[s]);for(;s<l;++s)(a=t[s])&&(r[s]=a)}function Ci(e,t,n,i,r,o,a){var s,l,c,u={},d=t.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=c="$"+a.call(l,l.__data__,s,t),c in u?r[s]=l:u[c]=l);for(s=0;s<h;++s)(l=u[c="$"+a.call(e,o[s],s,o)])?(i[s]=l,l.__data__=o[s],u[c]=null):n[s]=new Si(e,o[s]);for(s=0;s<d;++s)(l=t[s])&&u[p[s]]===l&&(r[s]=l)}function ki(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ti(e){return function(){this.removeAttribute(e)}}function Ai(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Zi(e,t){return function(){this.setAttribute(e,t)}}function Mi(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Oi(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Ei(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)}}function Pi(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Ii(e){return function(){this.style.removeProperty(e)}}function qi(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ni(e,t,n){return function(){var i=t.apply(this,arguments);null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function Di(e,t){return e.style.getPropertyValue(t)||Pi(e).getComputedStyle(e,null).getPropertyValue(t)}function Ri(e){return function(){delete this[e]}}function Li(e,t){return function(){this[e]=t}}function Fi(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Bi(e){return e.trim().split(/^|\s+/)}function ji(e){return e.classList||new zi(e)}function zi(e){this._node=e,this._names=Bi(e.getAttribute("class")||"")}function Ui(e,t){for(var n=ji(e),i=-1,r=t.length;++i<r;)n.add(t[i])}function Hi(e,t){for(var n=ji(e),i=-1,r=t.length;++i<r;)n.remove(t[i])}function Yi(e){return function(){Ui(this,e)}}function Ji(e){return function(){Hi(this,e)}}function Gi(e,t){return function(){(t.apply(this,arguments)?Ui:Hi)(this,e)}}function Wi(){this.textContent=""}function Vi(e){return function(){this.textContent=e}}function Qi(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Xi(){this.innerHTML=""}function Ki(e){return function(){this.innerHTML=e}}function $i(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function er(){this.nextSibling&&this.parentNode.appendChild(this)}function tr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function nr(){return null}function ir(){var e=this.parentNode;e&&e.removeChild(this)}function rr(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function or(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}Si.prototype={constructor:Si,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)}},zi.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 ar={},sr=null;function lr(e,t,n){return e=cr(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function cr(e,t,n){return function(i){var r=sr;sr=i;try{e.call(this,this.__data__,t,n)}finally{sr=r}}}function ur(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 dr(e){return function(){var t=this.__on;if(t){for(var n,i=0,r=-1,o=t.length;i<o;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++r]=n:this.removeEventListener(n.type,n.listener,n.capture);++r?t.length=r:delete this.__on}}}function hr(e,t,n){var i=ar.hasOwnProperty(e.type)?lr:cr;return function(r,o,a){var s,l=this.__on,c=i(t,o,a);if(l)for(var u=0,d=l.length;u<d;++u)if((s=l[u]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=t);this.addEventListener(e.type,c,n),s={type:e.type,name:e.name,value:t,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function pr(e,t,n,i){var r=sr;e.sourceEvent=sr,sr=e;try{return t.apply(n,i)}finally{sr=r}}function fr(e,t,n){var i=Pi(e),r=i.CustomEvent;"function"==typeof r?r=new r(t,n):(r=i.document.createEvent("Event"),n?(r.initEvent(t,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(t,!1,!1)),e.dispatchEvent(r)}function mr(e,t){return function(){return fr(this,e,t)}}function gr(e,t){return function(){return fr(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ar={mouseenter:"mouseover",mouseleave:"mouseout"}));var vr=[null];function yr(e,t){this._groups=e,this._parents=t}function _r(){return new yr([[document.documentElement]],vr)}yr.prototype=_r.prototype={constructor:yr,select:function(e){"function"!=typeof e&&(e=fi(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var o,a,s=t[r],l=s.length,c=i[r]=new Array(l),u=0;u<l;++u)(o=s[u])&&(a=e.call(o,o.__data__,u,s))&&("__data__"in o&&(a.__data__=o.__data__),c[u]=a);return new yr(i,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=gi(e));for(var t=this._groups,n=t.length,i=[],r=[],o=0;o<n;++o)for(var a,s=t[o],l=s.length,c=0;c<l;++c)(a=s[c])&&(i.push(e.call(a,a.__data__,c,s)),r.push(a));return new yr(i,r)},filter:function(e){"function"!=typeof e&&(e=bi(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var o,a=t[r],s=a.length,l=i[r]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new yr(i,this._parents)},data:function(e,t){if(!e)return f=new Array(this.size()),u=-1,this.each(function(e){f[++u]=e}),f;var n,i=t?Ci:xi,r=this._parents,o=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var a=o.length,s=new Array(a),l=new Array(a),c=new Array(a),u=0;u<a;++u){var d=r[u],h=o[u],p=h.length,f=e.call(d,d&&d.__data__,u,r),m=f.length,g=l[u]=new Array(m),v=s[u]=new Array(m);i(d,h,g,v,c[u]=new Array(p),f,t);for(var y,_,b=0,w=0;b<m;++b)if(y=g[b]){for(b>=w&&(w=b+1);!(_=v[w])&&++w<m;);y._next=_||null}}return(s=new yr(s,r))._enter=l,s._exit=c,s},enter:function(){return new yr(this._enter||this._groups.map(wi),this._parents)},exit:function(){return new yr(this._exit||this._groups.map(wi),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,i=t.length,r=Math.min(i,n.length),o=new Array(i),a=0;a<r;++a)for(var s,l=t[a],c=n[a],u=l.length,d=o[a]=new Array(u),h=0;h<u;++h)(s=l[h]||c[h])&&(d[h]=s);for(;a<i;++a)o[a]=t[a];return new yr(o,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,r=e[t],o=r.length-1,a=r[o];--o>=0;)(i=r[o])&&(a&&a!==i.nextSibling&&a.parentNode.insertBefore(i,a),a=i);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=ki);for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var a,s=n[o],l=s.length,c=r[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(t)}return new yr(r,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],r=0,o=i.length;r<o;++r){var a=i[r];if(a)return a}return null},size:function(){var e=0;return this.each(function(){++e}),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var r,o=t[n],a=0,s=o.length;a<s;++a)(r=o[a])&&e.call(r,r.__data__,a,o);return this},attr:function(e,t){var n=ci(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?Ai:Ti:"function"==typeof t?n.local?Ei:Oi:n.local?Mi:Zi)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?Ii:"function"==typeof t?Ni:qi)(e,t,null==n?"":n)):Di(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Ri:"function"==typeof t?Fi:Li)(e,t)):this.node()[e]},classed:function(e,t){var n=Bi(e+"");if(arguments.length<2){for(var i=ji(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof t?Gi:t?Yi:Ji)(n,t))},text:function(e){return arguments.length?this.each(null==e?Wi:("function"==typeof e?Qi:Vi)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Xi:("function"==typeof e?$i:Ki)(e)):this.node().innerHTML},raise:function(){return this.each(er)},lower:function(){return this.each(tr)},append:function(e){var t="function"==typeof e?e:hi(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:hi(e),i=null==t?nr:"function"==typeof t?t:fi(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(ir)},clone:function(e){return this.select(e?or:rr)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,r,o=ur(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?hr:dr,null==n&&(n=!1),i=0;i<a;++i)this.each(s(o[i],t,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(i=0,l=s[c];i<a;++i)if((r=o[i]).type===l.type&&r.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?gr:mr)(e,t))}};var br=_r;function wr(e){return"string"==typeof e?new yr([[document.querySelector(e)]],[document.documentElement]):new yr([[e]],vr)}function Sr(e){return wr(hi(e).call(document.documentElement))}var xr=0;function Cr(){return new kr}function kr(){this._="@"+(++xr).toString(36)}function Tr(){for(var e,t=sr;e=t.sourceEvent;)t=e;return t}function Ar(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}var r=e.getBoundingClientRect();return[t.clientX-r.left-e.clientLeft,t.clientY-r.top-e.clientTop]}function Zr(e){var t=Tr();return t.changedTouches&&(t=t.changedTouches[0]),Ar(e,t)}function Mr(e){return"string"==typeof e?new yr([document.querySelectorAll(e)],[document.documentElement]):new yr([null==e?[]:e],vr)}function Or(e,t,n){arguments.length<3&&(n=t,t=Tr().changedTouches);for(var i,r=0,o=t?t.length:0;r<o;++r)if((i=t[r]).identifier===n)return Ar(e,i);return null}function Er(e,t){null==t&&(t=Tr().touches);for(var n=0,i=t?t.length:0,r=new Array(i);n<i;++n)r[n]=Ar(e,t[n]);return r}function Pr(){sr.stopImmediatePropagation()}function Ir(){sr.preventDefault(),sr.stopImmediatePropagation()}function qr(e){var t=e.document.documentElement,n=wr(e).on("dragstart.drag",Ir,!0);"onselectstart"in t?n.on("selectstart.drag",Ir,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Nr(e,t){var n=e.document.documentElement,i=wr(e).on("dragstart.drag",null);t&&(i.on("click.drag",Ir,!0),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Dr(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Rr(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Lr(){}kr.prototype=Cr.prototype={constructor:kr,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 Fr=.7,Br=1/Fr,jr="\\s*([+-]?\\d+)\\s*",zr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ur="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hr=/^#([0-9a-f]{3})$/,Yr=/^#([0-9a-f]{6})$/,Jr=new RegExp("^rgb\\("+[jr,jr,jr]+"\\)$"),Gr=new RegExp("^rgb\\("+[Ur,Ur,Ur]+"\\)$"),Wr=new RegExp("^rgba\\("+[jr,jr,jr,zr]+"\\)$"),Vr=new RegExp("^rgba\\("+[Ur,Ur,Ur,zr]+"\\)$"),Qr=new RegExp("^hsl\\("+[zr,Ur,Ur]+"\\)$"),Xr=new RegExp("^hsla\\("+[zr,Ur,Ur,zr]+"\\)$"),Kr={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 $r(e){var t;return e=(e+"").trim().toLowerCase(),(t=Hr.exec(e))?new ro((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Yr.exec(e))?eo(parseInt(t[1],16)):(t=Jr.exec(e))?new ro(t[1],t[2],t[3],1):(t=Gr.exec(e))?new ro(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Wr.exec(e))?to(t[1],t[2],t[3],t[4]):(t=Vr.exec(e))?to(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Qr.exec(e))?oo(t[1],t[2]/100,t[3]/100,1):(t=Xr.exec(e))?oo(t[1],t[2]/100,t[3]/100,t[4]):Kr.hasOwnProperty(e)?eo(Kr[e]):"transparent"===e?new ro(NaN,NaN,NaN,0):null}function eo(e){return new ro(e>>16&255,e>>8&255,255&e,1)}function to(e,t,n,i){return i<=0&&(e=t=n=NaN),new ro(e,t,n,i)}function no(e){return e instanceof Lr||(e=$r(e)),e?new ro((e=e.rgb()).r,e.g,e.b,e.opacity):new ro}function io(e,t,n,i){return 1===arguments.length?no(e):new ro(e,t,n,null==i?1:i)}function ro(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function oo(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new lo(e,t,n,i)}function ao(e){if(e instanceof lo)return new lo(e.h,e.s,e.l,e.opacity);if(e instanceof Lr||(e=$r(e)),!e)return new lo;if(e instanceof lo)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,r=Math.min(t,n,i),o=Math.max(t,n,i),a=NaN,s=o-r,l=(o+r)/2;return s?(a=t===o?(n-i)/s+6*(n<i):n===o?(i-t)/s+2:(t-n)/s+4,s/=l<.5?o+r:2-o-r,a*=60):s=l>0&&l<1?0:a,new lo(a,s,l,e.opacity)}function so(e,t,n,i){return 1===arguments.length?ao(e):new lo(e,t,n,null==i?1:i)}function lo(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function co(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Dr(Lr,$r,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Dr(ro,io,Rr(Lr,{brighter:function(e){return e=null==e?Br:Math.pow(Br,e),new ro(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Fr:Math.pow(Fr,e),new ro(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+")")}})),Dr(lo,so,Rr(Lr,{brighter:function(e){return e=null==e?Br:Math.pow(Br,e),new lo(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Fr:Math.pow(Fr,e),new lo(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,r=2*n-i;return new ro(co(e>=240?e-240:e+120,r,i),co(e,r,i),co(e<120?e+240:e-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var uo=Math.PI/180,ho=180/Math.PI,po=.96422,fo=.82521,mo=4/29,go=6/29,vo=3*go*go;function yo(e){if(e instanceof bo)return new bo(e.l,e.a,e.b,e.opacity);if(e instanceof Ao){if(isNaN(e.h))return new bo(e.l,0,0,e.opacity);var t=e.h*uo;return new bo(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof ro||(e=no(e));var n,i,r=Co(e.r),o=Co(e.g),a=Co(e.b),s=wo((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?n=i=s:(n=wo((.4360747*r+.3850649*o+.1430804*a)/po),i=wo((.0139322*r+.0971045*o+.7141733*a)/fo)),new bo(116*s-16,500*(n-s),200*(s-i),e.opacity)}function _o(e,t,n,i){return 1===arguments.length?yo(e):new bo(e,t,n,null==i?1:i)}function bo(e,t,n,i){this.l=+e,this.a=+t,this.b=+n,this.opacity=+i}function wo(e){return e>.008856451679035631?Math.pow(e,1/3):e/vo+mo}function So(e){return e>go?e*e*e:vo*(e-mo)}function xo(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Co(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ko(e){if(e instanceof Ao)return new Ao(e.h,e.c,e.l,e.opacity);if(e instanceof bo||(e=yo(e)),0===e.a&&0===e.b)return new Ao(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ho;return new Ao(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function To(e,t,n,i){return 1===arguments.length?ko(e):new Ao(e,t,n,null==i?1:i)}function Ao(e,t,n,i){this.h=+e,this.c=+t,this.l=+n,this.opacity=+i}Dr(bo,_o,Rr(Lr,{brighter:function(e){return new bo(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new bo(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 ro(xo(3.1338561*(t=po*So(t))-1.6168667*(e=1*So(e))-.4906146*(n=fo*So(n))),xo(-.9787684*t+1.9161415*e+.033454*n),xo(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Dr(Ao,To,Rr(Lr,{brighter:function(e){return new Ao(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Ao(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return yo(this).rgb()}}));var Zo=-.14861,Mo=1.78277,Oo=-.29227,Eo=-.90649,Po=1.97294,Io=Po*Eo,qo=Po*Mo,No=Mo*Oo-Eo*Zo;function Do(e){if(e instanceof Lo)return new Lo(e.h,e.s,e.l,e.opacity);e instanceof ro||(e=no(e));var t=e.g/255,n=e.b/255,i=(No*n+Io*(e.r/255)-qo*t)/(No+Io-qo),r=n-i,o=(Po*(t-i)-Oo*r)/Eo,a=Math.sqrt(o*o+r*r)/(Po*i*(1-i)),s=a?Math.atan2(o,r)*ho-120:NaN;return new Lo(s<0?s+360:s,a,i,e.opacity)}function Ro(e,t,n,i){return 1===arguments.length?Do(e):new Lo(e,t,n,null==i?1:i)}function Lo(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Fo(e,t,n,i,r){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*i+a*r)/6}function Bo(e){var t=e.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),r=e[i],o=e[i+1];return Fo((n-i/t)*t,i>0?e[i-1]:2*r-o,r,o,i<t-1?e[i+2]:2*o-r)}}function jo(e){var t=e.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*t);return Fo((n-i/t)*t,e[(i+t-1)%t],e[i%t],e[(i+1)%t],e[(i+2)%t])}}function zo(e){return function(){return e}}function Uo(e,t){return function(n){return e+n*t}}function Ho(e,t){var n=t-e;return n?Uo(e,n>180||n<-180?n-360*Math.round(n/360):n):zo(isNaN(e)?t:e)}function Yo(e,t){var n=t-e;return n?Uo(e,n):zo(isNaN(e)?t:e)}Dr(Lo,Ro,Rr(Lr,{brighter:function(e){return e=null==e?Br:Math.pow(Br,e),new Lo(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Fr:Math.pow(Fr,e),new Lo(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*uo,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),i=Math.cos(e),r=Math.sin(e);return new ro(255*(t+n*(Zo*i+Mo*r)),255*(t+n*(Oo*i+Eo*r)),255*(t+n*(Po*i)),this.opacity)}}));var Jo=function e(t){var n=function(e){return 1==(e=+e)?Yo:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):zo(isNaN(t)?n:t)}}(t);function i(e,t){var i=n((e=io(e)).r,(t=io(t)).r),r=n(e.g,t.g),o=n(e.b,t.b),a=Yo(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=r(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function Go(e){return function(t){var n,i,r=t.length,o=new Array(r),a=new Array(r),s=new Array(r);for(n=0;n<r;++n)i=io(t[n]),o[n]=i.r||0,a[n]=i.g||0,s[n]=i.b||0;return o=e(o),a=e(a),s=e(s),i.opacity=1,function(e){return i.r=o(e),i.g=a(e),i.b=s(e),i+""}}}var Wo=Go(Bo),Vo=Go(jo);function Qo(e,t){var n,i=t?t.length:0,r=e?Math.min(i,e.length):0,o=new Array(r),a=new Array(i);for(n=0;n<r;++n)o[n]=ia(e[n],t[n]);for(;n<i;++n)a[n]=t[n];return function(e){for(n=0;n<r;++n)a[n]=o[n](e);return a}}function Xo(e,t){var n=new Date;return t-=e=+e,function(i){return n.setTime(e+t*i),n}}function Ko(e,t){return t-=e=+e,function(n){return e+t*n}}function $o(e,t){var n,i={},r={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=ia(e[n],t[n]):r[n]=t[n];return function(e){for(n in i)r[n]=i[n](e);return r}}var ea=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ta=new RegExp(ea.source,"g");function na(e,t){var n,i,r,o=ea.lastIndex=ta.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=ea.exec(e))&&(i=ta.exec(t));)(r=i.index)>o&&(r=t.slice(o,r),s[a]?s[a]+=r:s[++a]=r),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Ko(n,i)})),o=ta.lastIndex;return o<t.length&&(r=t.slice(o),s[a]?s[a]+=r:s[++a]=r),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,i=0;i<t;++i)s[(n=l[i]).i]=n.x(e);return s.join("")})}function ia(e,t){var n,i=typeof t;return null==t||"boolean"===i?zo(t):("number"===i?Ko:"string"===i?(n=$r(t))?(t=n,Jo):na:t instanceof $r?Jo:t instanceof Date?Xo:Array.isArray(t)?Qo:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?$o:Ko)(e,t)}function ra(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}}var oa,aa,sa,la,ca=180/Math.PI,ua={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function da(e,t,n,i,r,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(s=Math.sqrt(n*n+i*i))&&(n/=s,i/=s,l/=s),e*i<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:r,translateY:o,rotate:Math.atan2(t,e)*ca,skewX:Math.atan(l)*ca,scaleX:a,scaleY:s}}function ha(e,t,n,i){function r(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],l=[];return o=e(o),a=e(a),function(e,i,r,o,a,s){if(e!==r||i!==o){var l=a.push("translate(",null,t,null,n);s.push({i:l-4,x:Ko(e,r)},{i:l-2,x:Ko(i,o)})}else(r||o)&&a.push("translate("+r+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,l),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(r(n)+"rotate(",null,i)-2,x:Ko(e,t)})):t&&n.push(r(n)+"rotate("+t+i)}(o.rotate,a.rotate,s,l),function(e,t,n,o){e!==t?o.push({i:n.push(r(n)+"skewX(",null,i)-2,x:Ko(e,t)}):t&&n.push(r(n)+"skewX("+t+i)}(o.skewX,a.skewX,s,l),function(e,t,n,i,o,a){if(e!==n||t!==i){var s=o.push(r(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Ko(e,n)},{i:s-2,x:Ko(t,i)})}else 1===n&&1===i||o.push(r(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(e){for(var t,n=-1,i=l.length;++n<i;)s[(t=l[n]).i]=t.x(e);return s.join("")}}}var pa=ha(function(e){return"none"===e?ua:(oa||(oa=document.createElement("DIV"),aa=document.documentElement,sa=document.defaultView),oa.style.transform=e,e=sa.getComputedStyle(aa.appendChild(oa),null).getPropertyValue("transform"),aa.removeChild(oa),da(+(e=e.slice(7,-1).split(","))[0],+e[1],+e[2],+e[3],+e[4],+e[5]))},"px, ","px)","deg)"),fa=ha(function(e){return null==e?ua:(la||(la=document.createElementNS("http://www.w3.org/2000/svg","g")),la.setAttribute("transform",e),(e=la.transform.baseVal.consolidate())?da((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):ua)},", ",")",")"),ma=Math.SQRT2;function ga(e){return((e=Math.exp(e))+1/e)/2}function va(e,t){var n,i,r=e[0],o=e[1],a=e[2],s=t[2],l=t[0]-r,c=t[1]-o,u=l*l+c*c;if(u<1e-12)i=Math.log(s/a)/ma,n=function(e){return[r+e*l,o+e*c,a*Math.exp(ma*e*i)]};else{var d=Math.sqrt(u),h=(s*s-a*a+4*u)/(2*a*2*d),p=(s*s-a*a-4*u)/(2*s*2*d),f=Math.log(Math.sqrt(h*h+1)-h),m=Math.log(Math.sqrt(p*p+1)-p);i=(m-f)/ma,n=function(e){var t,n=e*i,s=ga(f),u=a/(2*d)*(s*(t=ma*n+f,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(f));return[r+u*l,o+u*c,a*s/ga(ma*n+f)]}}return n.duration=1e3*i,n}function ya(e){return function(t,n){var i=e((t=so(t)).h,(n=so(n)).h),r=Yo(t.s,n.s),o=Yo(t.l,n.l),a=Yo(t.opacity,n.opacity);return function(e){return t.h=i(e),t.s=r(e),t.l=o(e),t.opacity=a(e),t+""}}}var _a=ya(Ho),ba=ya(Yo);function wa(e,t){var n=Yo((e=_o(e)).l,(t=_o(t)).l),i=Yo(e.a,t.a),r=Yo(e.b,t.b),o=Yo(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=i(t),e.b=r(t),e.opacity=o(t),e+""}}function Sa(e){return function(t,n){var i=e((t=To(t)).h,(n=To(n)).h),r=Yo(t.c,n.c),o=Yo(t.l,n.l),a=Yo(t.opacity,n.opacity);return function(e){return t.h=i(e),t.c=r(e),t.l=o(e),t.opacity=a(e),t+""}}}var xa=Sa(Ho),Ca=Sa(Yo);function ka(e){return function t(n){function i(t,i){var r=e((t=Ro(t)).h,(i=Ro(i)).h),o=Yo(t.s,i.s),a=Yo(t.l,i.l),s=Yo(t.opacity,i.opacity);return function(e){return t.h=r(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,i.gamma=t,i}(1)}var Ta=ka(Ho),Aa=ka(Yo);function Za(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e(i/(t-1));return n}var Ma,Oa,Ea=0,Pa=0,Ia=0,qa=0,Na=0,Da=0,Ra="object"==typeof performance&&performance.now?performance:Date,La="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Fa(){return Na||(La(Ba),Na=Ra.now()+Da)}function Ba(){Na=0}function ja(){this._call=this._time=this._next=null}function za(e,t,n){var i=new ja;return i.restart(e,t,n),i}function Ua(){Fa(),++Ea;for(var e,t=Ma;t;)(e=Na-t._time)>=0&&t._call.call(null,e),t=t._next;--Ea}function Ha(){Na=(qa=Ra.now())+Da,Ea=Pa=0;try{Ua()}finally{Ea=0,function(){for(var e,t,n=Ma,i=1/0;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Ma=t);Oa=e,Ja(i)}(),Na=0}}function Ya(){var e=Ra.now(),t=e-qa;t>1e3&&(Da-=t,qa=e)}function Ja(e){Ea||(Pa&&(Pa=clearTimeout(Pa)),e-Na>24?(e<1/0&&(Pa=setTimeout(Ha,e-Ra.now()-Da)),Ia&&(Ia=clearInterval(Ia))):(Ia||(qa=Ra.now(),Ia=setInterval(Ya,1e3)),Ea=1,La(Ha)))}function Ga(e,t,n){var i=new ja;return i.restart(function(n){i.stop(),e(n+t)},t=null==t?0:+t,n),i}ja.prototype=za.prototype={constructor:ja,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Fa():+n)+(null==t?0:+t),this._next||Oa===this||(Oa?Oa._next=this:Ma=this,Oa=this),this._call=e,this._time=n,Ja()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ja())}};var Wa=ai("start","end","interrupt"),Va=[];function Qa(e,t,n,i,r,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var i,r=e.__transition;function o(l){var c,u,d,h;if(1!==n.state)return s();for(c in r)if((h=r[c]).name===n.name){if(3===h.state)return Ga(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=6,h.timer.stop(),delete r[c])}if(Ga(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(l))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=h);i.length=u+1}}function a(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=i.length;++o<a;)i[o].call(null,r);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}r[t]=n,n.timer=za(function(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)},0,n.time)}(e,n,{name:t,index:i,group:r,on:Wa,tween:Va,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Xa(e,t){var n=$a(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function Ka(e,t){var n=$a(e,t);if(n.state>2)throw new Error("too late; already started");return n}function $a(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function es(e,t){var n,i,r,o=e.__transition,a=!0;if(o){for(r in t=null==t?null:t+"",o)(n=o[r]).name===t?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),i&&n.on.call("interrupt",e,e.__data__,n.index,n.group),delete o[r]):a=!1;a&&delete e.__transition}}function ts(e,t){var n,i;return function(){var r=Ka(this,e),o=r.tween;if(o!==n)for(var a=0,s=(i=n=o).length;a<s;++a)if(i[a].name===t){(i=i.slice()).splice(a,1);break}r.tween=i}}function ns(e,t,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var o=Ka(this,e),a=o.tween;if(a!==i){r=(i=a).slice();for(var s={name:t,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===t){r[l]=s;break}l===c&&r.push(s)}o.tween=r}}function is(e,t,n){var i=e._id;return e.each(function(){var e=Ka(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return $a(e,i).value[t]}}function rs(e,t){var n;return("number"==typeof t?Ko:t instanceof $r?Jo:(n=$r(t))?(t=n,Jo):na)(e,t)}function os(e){return function(){this.removeAttribute(e)}}function as(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ss(e,t,n){var i,r;return function(){var o=this.getAttribute(e);return o===n?null:o===i?r:r=t(i=o,n)}}function ls(e,t,n){var i,r;return function(){var o=this.getAttributeNS(e.space,e.local);return o===n?null:o===i?r:r=t(i=o,n)}}function cs(e,t,n){var i,r,o;return function(){var a,s=n(this);if(null!=s)return(a=this.getAttribute(e))===s?null:a===i&&s===r?o:o=t(i=a,r=s);this.removeAttribute(e)}}function us(e,t,n){var i,r,o;return function(){var a,s=n(this);if(null!=s)return(a=this.getAttributeNS(e.space,e.local))===s?null:a===i&&s===r?o:o=t(i=a,r=s);this.removeAttributeNS(e.space,e.local)}}function ds(e,t){function n(){var n=this,i=t.apply(n,arguments);return i&&function(t){n.setAttributeNS(e.space,e.local,i(t))}}return n._value=t,n}function hs(e,t){function n(){var n=this,i=t.apply(n,arguments);return i&&function(t){n.setAttribute(e,i(t))}}return n._value=t,n}function ps(e,t){return function(){Xa(this,e).delay=+t.apply(this,arguments)}}function fs(e,t){return t=+t,function(){Xa(this,e).delay=t}}function ms(e,t){return function(){Ka(this,e).duration=+t.apply(this,arguments)}}function gs(e,t){return t=+t,function(){Ka(this,e).duration=t}}function vs(e,t){if("function"!=typeof t)throw new Error;return function(){Ka(this,e).ease=t}}function ys(e,t,n){var i,r,o=function(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})}(t)?Xa:Ka;return function(){var a=o(this,e),s=a.on;s!==i&&(r=(i=s).copy()).on(t,n),a.on=r}}var _s=br.prototype.constructor;function bs(e,t,n){function i(){var i=this,r=t.apply(i,arguments);return r&&function(t){i.style.setProperty(e,r(t),n)}}return i._value=t,i}var ws=0;function Ss(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function xs(e){return br().transition(e)}function Cs(){return++ws}var ks=br.prototype;function Ts(e){return e*e*e}function As(e){return--e*e*e+1}function Zs(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}Ss.prototype=xs.prototype={constructor:Ss,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=fi(e));for(var i=this._groups,r=i.length,o=new Array(r),a=0;a<r;++a)for(var s,l,c=i[a],u=c.length,d=o[a]=new Array(u),h=0;h<u;++h)(s=c[h])&&(l=e.call(s,s.__data__,h,c))&&("__data__"in s&&(l.__data__=s.__data__),d[h]=l,Qa(d[h],t,n,h,d,$a(s,n)));return new Ss(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=gi(e));for(var i=this._groups,r=i.length,o=[],a=[],s=0;s<r;++s)for(var l,c=i[s],u=c.length,d=0;d<u;++d)if(l=c[d]){for(var h,p=e.call(l,l.__data__,d,c),f=$a(l,n),m=0,g=p.length;m<g;++m)(h=p[m])&&Qa(h,t,n,m,p,f);o.push(p),a.push(l)}return new Ss(o,a,t,n)},filter:function(e){"function"!=typeof e&&(e=bi(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var o,a=t[r],s=a.length,l=i[r]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new Ss(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,r=Math.min(i,n.length),o=new Array(i),a=0;a<r;++a)for(var s,l=t[a],c=n[a],u=l.length,d=o[a]=new Array(u),h=0;h<u;++h)(s=l[h]||c[h])&&(d[h]=s);for(;a<i;++a)o[a]=t[a];return new Ss(o,this._parents,this._name,this._id)},selection:function(){return new _s(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Cs(),i=this._groups,r=i.length,o=0;o<r;++o)for(var a,s=i[o],l=s.length,c=0;c<l;++c)if(a=s[c]){var u=$a(a,t);Qa(a,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Ss(i,this._parents,e,n)},call:ks.call,nodes:ks.nodes,node:ks.node,size:ks.size,empty:ks.empty,each:ks.each,on:function(e,t){var n=this._id;return arguments.length<2?$a(this.node(),n).on.on(e):this.each(ys(n,e,t))},attr:function(e,t){var n=ci(e),i="transform"===n?fa:rs;return this.attrTween(e,"function"==typeof t?(n.local?us:cs)(n,i,is(this,"attr."+e,t)):null==t?(n.local?as:os)(n):(n.local?ls:ss)(n,i,t+""))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var i=ci(e);return this.tween(n,(i.local?ds:hs)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?pa:rs;return null==t?this.styleTween(e,function(e,t){var n,i,r;return function(){var o=Di(this,e),a=(this.style.removeProperty(e),Di(this,e));return o===a?null:o===n&&a===i?r:r=t(n=o,i=a)}}(e,i)).on("end.style."+e,function(e){return function(){this.style.removeProperty(e)}}(e)):this.styleTween(e,"function"==typeof t?function(e,t,n){var i,r,o;return function(){var a=Di(this,e),s=n(this);return null==s&&(this.style.removeProperty(e),s=Di(this,e)),a===s?null:a===i&&s===r?o:o=t(i=a,r=s)}}(e,i,is(this,"style."+e,t)):function(e,t,n){var i,r;return function(){var o=Di(this,e);return o===n?null:o===i?r:r=t(i=o,n)}}(e,i,t+""),n)},styleTween:function(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==t)return this.tween(i,null);if("function"!=typeof t)throw new Error;return this.tween(i,bs(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}}(is(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i,r=$a(this.node(),n).tween,o=0,a=r.length;o<a;++o)if((i=r[o]).name===e)return i.value;return null}return this.each((null==t?ts:ns)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?ps:fs)(t,e)):$a(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?ms:gs)(t,e)):$a(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(vs(t,e)):$a(this.node(),t).ease}};var Ms={time:null,delay:0,duration:250,ease:Zs};function Os(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return Ms.time=Fa(),Ms;return n}br.prototype.interrupt=function(e){return this.each(function(){es(this,e)})},br.prototype.transition=function(e){var t,n;e instanceof Ss?(t=e._id,e=e._name):(t=Cs(),(n=Ms).time=Fa(),e=null==e?null:e+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var a,s=i[o],l=s.length,c=0;c<l;++c)(a=s[c])&&Qa(a,e,t,c,s,n||Os(a,t));return new Ss(i,this._parents,e,t)};var Es=[null];function Ps(e,t){var n,i,r=e.__transition;if(r)for(i in t=null==t?null:t+"",r)if((n=r[i]).state>1&&n.name===t)return new Ss([[e]],Es,t,+i);return null}function Is(e){return function(){return e}}function qs(e,t,n){this.target=e,this.type=t,this.selection=n}function Ns(){sr.stopImmediatePropagation()}function Ds(){sr.preventDefault(),sr.stopImmediatePropagation()}var Rs={name:"drag"},Ls={name:"space"},Fs={name:"handle"},Bs={name:"center"},js={name:"x",handles:["e","w"].map(Vs),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]]}},zs={name:"y",handles:["n","s"].map(Vs),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]]}},Us={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(Vs),input:function(e){return e},output:function(e){return e}},Hs={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"},Ys={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Js={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Gs={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ws={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Vs(e){return{type:e}}function Qs(){return!sr.button}function Xs(){var e=this.ownerSVGElement||this;return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function Ks(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function $s(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function el(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function tl(){return rl(js)}function nl(){return rl(zs)}function il(){return rl(Us)}function rl(e){var t,n=Xs,i=Qs,r=ai(a,"start","brush","end"),o=6;function a(t){var n=t.property("__brush",d).selectAll(".overlay").data([Vs("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Hs.overlay).merge(n).each(function(){var e=Ks(this).extent;wr(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([Vs("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Hs.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=t.selectAll(".handle").data(e.handles,function(e){return e.type});i.exit().remove(),i.enter().append("rect").attr("class",function(e){return"handle handle--"+e.type}).attr("cursor",function(e){return Hs[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=wr(this),t=Ks(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 l(e,t){return e.__brush.emitter||new c(e,t)}function c(e,t){this.that=e,this.args=t,this.state=e.__brush,this.active=0}function u(){if(sr.touches){if(sr.changedTouches.length<sr.touches.length)return Ds()}else if(t)return;if(i.apply(this,arguments)){var n,r,o,a,c,u,d,h,p,f,m,g,v,y=this,_=sr.target.__data__.type,b="selection"===(sr.metaKey?_="overlay":_)?Rs:sr.altKey?Bs:Fs,w=e===zs?null:Gs[_],S=e===js?null:Ws[_],x=Ks(y),C=x.extent,k=x.selection,T=C[0][0],A=C[0][1],Z=C[1][0],M=C[1][1],O=w&&S&&sr.shiftKey,E=Zr(y),P=E,I=l(y,arguments).beforestart();"overlay"===_?x.selection=k=[[n=e===zs?T:E[0],o=e===js?A:E[1]],[c=e===zs?Z:n,d=e===js?M:o]]:(n=k[0][0],o=k[0][1],c=k[1][0],d=k[1][1]),r=n,a=o,u=c,h=d;var q=wr(y).attr("pointer-events","none"),N=q.selectAll(".overlay").attr("cursor",Hs[_]);if(sr.touches)q.on("touchmove.brush",R,!0).on("touchend.brush touchcancel.brush",F,!0);else{var D=wr(sr.view).on("keydown.brush",B,!0).on("keyup.brush",j,!0).on("mousemove.brush",R,!0).on("mouseup.brush",F,!0);qr(sr.view)}Ns(),es(y),s.call(y),I.start()}function R(){var e=Zr(y);!O||g||v||(Math.abs(e[0]-P[0])>Math.abs(e[1]-P[1])?v=!0:g=!0),P=e,m=!0,Ds(),L()}function L(){var e;switch(p=P[0]-E[0],f=P[1]-E[1],b){case Ls:case Rs:w&&(p=Math.max(T-n,Math.min(Z-c,p)),r=n+p,u=c+p),S&&(f=Math.max(A-o,Math.min(M-d,f)),a=o+f,h=d+f);break;case Fs:w<0?(p=Math.max(T-n,Math.min(Z-n,p)),r=n+p,u=c):w>0&&(p=Math.max(T-c,Math.min(Z-c,p)),r=n,u=c+p),S<0?(f=Math.max(A-o,Math.min(M-o,f)),a=o+f,h=d):S>0&&(f=Math.max(A-d,Math.min(M-d,f)),a=o,h=d+f);break;case Bs:w&&(r=Math.max(T,Math.min(Z,n-p*w)),u=Math.max(T,Math.min(Z,c+p*w))),S&&(a=Math.max(A,Math.min(M,o-f*S)),h=Math.max(A,Math.min(M,d+f*S)))}u<r&&(w*=-1,e=n,n=c,c=e,e=r,r=u,u=e,_ in Ys&&N.attr("cursor",Hs[_=Ys[_]])),h<a&&(S*=-1,e=o,o=d,d=e,e=a,a=h,h=e,_ in Js&&N.attr("cursor",Hs[_=Js[_]])),x.selection&&(k=x.selection),g&&(r=k[0][0],u=k[1][0]),v&&(a=k[0][1],h=k[1][1]),k[0][0]===r&&k[0][1]===a&&k[1][0]===u&&k[1][1]===h||(x.selection=[[r,a],[u,h]],s.call(y),I.brush())}function F(){if(Ns(),sr.touches){if(sr.touches.length)return;t&&clearTimeout(t),t=setTimeout(function(){t=null},500),q.on("touchmove.brush touchend.brush touchcancel.brush",null)}else Nr(sr.view,m),D.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);q.attr("pointer-events","all"),N.attr("cursor",Hs.overlay),x.selection&&(k=x.selection),$s(k)&&(x.selection=null,s.call(y)),I.end()}function B(){switch(sr.keyCode){case 16:O=w&&S;break;case 18:b===Fs&&(w&&(c=u-p*w,n=r+p*w),S&&(d=h-f*S,o=a+f*S),b=Bs,L());break;case 32:b!==Fs&&b!==Bs||(w<0?c=u-p:w>0&&(n=r-p),S<0?d=h-f:S>0&&(o=a-f),b=Ls,N.attr("cursor",Hs.selection),L());break;default:return}Ds()}function j(){switch(sr.keyCode){case 16:O&&(g=v=O=!1,L());break;case 18:b===Bs&&(w<0?c=u:w>0&&(n=r),S<0?d=h:S>0&&(o=a),b=Fs,L());break;case 32:b===Ls&&(sr.altKey?(w&&(c=u-p*w,n=r+p*w),S&&(d=h-f*S,o=a+f*S),b=Bs):(w<0?c=u:w>0&&(n=r),S<0?d=h:S>0&&(o=a),b=Fs),N.attr("cursor",Hs[_]),L());break;default:return}Ds()}}function d(){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(){l(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){l(this,arguments).end()}).tween("brush",function(){var t=this,i=t.__brush,r=l(t,arguments),o=i.selection,a=e.input("function"==typeof n?n.apply(this,arguments):n,i.extent),c=ia(o,a);function u(e){i.selection=1===e&&$s(a)?null:c(e),s.call(t),r.brush()}return o&&a?u:u(1)}):t.each(function(){var t=this,i=arguments,r=t.__brush,o=e.input("function"==typeof n?n.apply(t,i):n,r.extent),a=l(t,i).beforestart();es(t),r.selection=null==o||$s(o)?null:o,s.call(t),a.start().brush().end()})},c.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){pr(new qs(a,t,e.output(this.state.selection)),r.apply,r,[t,this.that,this.args])}},a.extent=function(e){return arguments.length?(n="function"==typeof e?e:Is([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),a):n},a.filter=function(e){return arguments.length?(i="function"==typeof e?e:Is(!!e),a):i},a.handleSize=function(e){return arguments.length?(o=+e,a):o},a.on=function(){var e=r.on.apply(r,arguments);return e===r?a:e},a}var ol=Math.cos,al=Math.sin,sl=Math.PI,ll=sl/2,cl=2*sl,ul=Math.max;function dl(e){return function(t,n){return e(t.source.value+t.target.value,n.source.value+n.target.value)}}function hl(){var e=0,t=null,n=null,i=null;function r(r){var o,a,s,l,c,u,d=r.length,h=[],p=vn(d),f=[],m=[],g=m.groups=new Array(d),v=new Array(d*d);for(o=0,c=-1;++c<d;){for(a=0,u=-1;++u<d;)a+=r[c][u];h.push(a),f.push(vn(d)),o+=a}for(t&&p.sort(function(e,n){return t(h[e],h[n])}),n&&f.forEach(function(e,t){e.sort(function(e,i){return n(r[t][e],r[t][i])})}),l=(o=ul(0,cl-e*d)/o)?e:cl/d,a=0,c=-1;++c<d;){for(s=a,u=-1;++u<d;){var y=p[c],_=f[y][u],b=r[y][_],w=a,S=a+=b*o;v[_*d+y]={index:y,subindex:_,startAngle:w,endAngle:S,value:b}}g[y]={index:y,startAngle:s,endAngle:a,value:h[y]},a+=l}for(c=-1;++c<d;)for(u=c-1;++u<d;){var x=v[u*d+c],C=v[c*d+u];(x.value||C.value)&&m.push(x.value<C.value?{source:C,target:x}:{source:x,target:C})}return i?m.sort(i):m}return r.padAngle=function(t){return arguments.length?(e=ul(0,t),r):e},r.sortGroups=function(e){return arguments.length?(t=e,r):t},r.sortSubgroups=function(e){return arguments.length?(n=e,r):n},r.sortChords=function(e){return arguments.length?(null==e?i=null:(i=dl(e))._=e,r):i&&i._},r}var pl=Array.prototype.slice;function fl(e){return function(){return e}}var ml=Math.PI,gl=2*ml,vl=1e-6,yl=gl-vl;function _l(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function bl(){return new _l}_l.prototype=bl.prototype={constructor:_l,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,i){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(e,t,n,i,r,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(e,t,n,i,r){var o=this._x1,a=this._y1,s=(n=+n)-(e=+e),l=(i=+i)-(t=+t),c=o-e,u=a-t,d=c*c+u*u;if((r=+r)<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>vl)if(Math.abs(u*s-l*c)>vl&&r){var h=n-o,p=i-a,f=s*s+l*l,m=h*h+p*p,g=Math.sqrt(f),v=Math.sqrt(d),y=r*Math.tan((ml-Math.acos((f+d-m)/(2*g*v)))/2),_=y/v,b=y/g;Math.abs(_-1)>vl&&(this._+="L"+(e+_*c)+","+(t+_*u)),this._+="A"+r+","+r+",0,0,"+ +(u*h>c*p)+","+(this._x1=e+b*s)+","+(this._y1=t+b*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,i,r,o){e=+e,t=+t,o=!!o;var a=(n=+n)*Math.cos(i),s=n*Math.sin(i),l=e+a,c=t+s,u=1^o,d=o?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>vl||Math.abs(this._y1-c)>vl)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%gl+gl),d>yl?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>vl&&(this._+="A"+n+","+n+",0,"+ +(d>=ml)+","+u+","+(this._x1=e+n*Math.cos(r))+","+(this._y1=t+n*Math.sin(r))))},rect:function(e,t,n,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var wl=bl;function Sl(e){return e.source}function xl(e){return e.target}function Cl(e){return e.radius}function kl(e){return e.startAngle}function Tl(e){return e.endAngle}function Al(){var e=Sl,t=xl,n=Cl,i=kl,r=Tl,o=null;function a(){var a,s=pl.call(arguments),l=e.apply(this,s),c=t.apply(this,s),u=+n.apply(this,(s[0]=l,s)),d=i.apply(this,s)-ll,h=r.apply(this,s)-ll,p=u*ol(d),f=u*al(d),m=+n.apply(this,(s[0]=c,s)),g=i.apply(this,s)-ll,v=r.apply(this,s)-ll;if(o||(o=a=wl()),o.moveTo(p,f),o.arc(0,0,u,d,h),d===g&&h===v||(o.quadraticCurveTo(0,0,m*ol(g),m*al(g)),o.arc(0,0,m,g,v)),o.quadraticCurveTo(0,0,p,f),o.closePath(),a)return o=null,a+""||null}return a.radius=function(e){return arguments.length?(n="function"==typeof e?e:fl(+e),a):n},a.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:fl(+e),a):i},a.endAngle=function(e){return arguments.length?(r="function"==typeof e?e:fl(+e),a):r},a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(e){return arguments.length?(t=e,a):t},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a}var Zl="$";function Ml(){}function Ol(e,t){var n=new Ml;if(e instanceof Ml)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var i,r=-1,o=e.length;if(null==t)for(;++r<o;)n.set(r,e[r]);else for(;++r<o;)n.set(t(i=e[r],r,e),i)}else if(e)for(var a in e)n.set(a,e[a]);return n}Ml.prototype=Ol.prototype={constructor:Ml,has:function(e){return Zl+e in this},get:function(e){return this[Zl+e]},set:function(e,t){return this[Zl+e]=t,this},remove:function(e){var t=Zl+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Zl&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Zl&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Zl&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Zl&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Zl&&++e;return e},empty:function(){for(var e in this)if(e[0]===Zl)return!1;return!0},each:function(e){for(var t in this)t[0]===Zl&&e(this[t],t.slice(1),this)}};var El=Ol;function Pl(){var e,t,n,i=[],r=[];function o(n,r,a,s){if(r>=i.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var l,c,u,d=-1,h=n.length,p=i[r++],f=El(),m=a();++d<h;)(u=f.get(l=p(c=n[d])+""))?u.push(c):f.set(l,[c]);return f.each(function(e,t){s(m,t,o(e,r,a,s))}),m}function a(e,n){if(++n>i.length)return e;var o,s=r[n-1];return null!=t&&n>=i.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,Il,ql)},map:function(e){return o(e,0,Nl,Dl)},entries:function(e){return a(o(e,0,Nl,Dl),0)},key:function(e){return i.push(e),n},sortKeys:function(e){return r[i.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}}function Il(){return{}}function ql(e,t,n){e[t]=n}function Nl(){return El()}function Dl(e,t,n){e.set(t,n)}function Rl(){}var Ll=El.prototype;function Fl(e,t){var n=new Rl;if(e instanceof Rl)e.each(function(e){n.add(e)});else if(e){var i=-1,r=e.length;if(null==t)for(;++i<r;)n.add(e[i]);else for(;++i<r;)n.add(t(e[i],i,e))}return n}Rl.prototype=Fl.prototype={constructor:Rl,has:Ll.has,add:function(e){return this[Zl+(e+="")]=e,this},remove:Ll.remove,clear:Ll.clear,values:Ll.keys,size:Ll.size,empty:Ll.empty,each:Ll.each};var Bl=Fl;function jl(e){var t=[];for(var n in e)t.push(n);return t}function zl(e){var t=[];for(var n in e)t.push(e[n]);return t}function Ul(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t}var Hl=Array.prototype.slice;function Yl(e,t){return e-t}function Jl(e){return function(){return e}}function Gl(e,t){for(var n,i=-1,r=t.length;++i<r;)if(n=Wl(e,t[i]))return n;return 0}function Wl(e,t){for(var n=t[0],i=t[1],r=-1,o=0,a=e.length,s=a-1;o<a;s=o++){var l=e[o],c=l[0],u=l[1],d=e[s],h=d[0],p=d[1];if(Vl(l,d,t))return 0;u>i!=p>i&&n<(h-c)*(i-u)/(p-u)+c&&(r=-r)}return r}function Vl(e,t,n){var i,r,o,a;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])==(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(r=e[i=+(e[0]===t[0])],a=t[i],r<=(o=n[i])&&o<=a||a<=o&&o<=r)}function Ql(){}var Xl=[[],[[[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]]],[]];function Kl(){var e=1,t=1,n=Cn,i=s;function r(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(Yl);else{var i=dn(e),r=i[0],a=i[1];t=xn(r,a,t),t=vn(Math.floor(r/t)*t,Math.floor(a/t)*t,t)}return t.map(function(t){return o(e,t)})}function o(n,r){var o=[],s=[];return function(n,i,r){var o,s,l,c,u,d=new Array,h=new Array;for(o=s=-1,Xl[(l=n[0]>=i)<<1].forEach(p);++o<e-1;)Xl[l|(l=n[o+1]>=i)<<1].forEach(p);for(Xl[l<<0].forEach(p);++s<t-1;){for(o=-1,Xl[(l=n[s*e+e]>=i)<<1|(c=n[s*e]>=i)<<2].forEach(p);++o<e-1;)u=c,Xl[l|(l=n[s*e+e+o+1]>=i)<<1|(c=n[s*e+o+1]>=i)<<2|u<<3].forEach(p);Xl[l|c<<3].forEach(p)}for(o=-1,Xl[(c=n[s*e]>=i)<<2].forEach(p);++o<e-1;)u=c,Xl[(c=n[s*e+o+1]>=i)<<2|u<<3].forEach(p);function p(e){var t,n,i=[e[0][0]+o,e[0][1]+s],l=[e[1][0]+o,e[1][1]+s],c=a(i),u=a(l);(t=h[c])?(n=d[u])?(delete h[t.end],delete d[n.start],t===n?(t.ring.push(l),r(t.ring)):d[t.start]=h[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete h[t.end],t.ring.push(l),h[t.end=u]=t):(t=d[u])?(n=h[c])?(delete d[t.start],delete h[n.end],t===n?(t.ring.push(l),r(t.ring)):d[n.start]=h[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete d[t.start],t.ring.unshift(i),d[t.start=c]=t):d[c]=h[u]={start:c,end:u,ring:[i,l]}}Xl[c<<3].forEach(p)}(n,r,function(e){i(e,n,r),function(e){for(var t=0,n=e.length,i=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)i+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return i}(e)>0?o.push([e]):s.push(e)}),s.forEach(function(e){for(var t,n=0,i=o.length;n<i;++n)if(-1!==Gl((t=o[n])[0],e))return void t.push(e)}),{type:"MultiPolygon",value:r,coordinates:o}}function a(t){return 2*t[0]+t[1]*(e+1)*4}function s(n,i,r){n.forEach(function(n){var o,a=n[0],s=n[1],l=0|a,c=0|s,u=i[c*e+l];a>0&&a<e&&l===a&&(n[0]=a+(r-(o=i[c*e+l-1]))/(u-o)-.5),s>0&&s<t&&c===s&&(n[1]=s+(r-(o=i[(c-1)*e+l]))/(u-o)-.5)})}return r.contour=o,r.size=function(n){if(!arguments.length)return[e,t];var i=Math.ceil(n[0]),o=Math.ceil(n[1]);if(!(i>0&&o>0))throw new Error("invalid size");return e=i,t=o,r},r.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?Jl(Hl.call(e)):Jl(e),r):n},r.smooth=function(e){return arguments.length?(i=e?s:Ql,r):i===s},r}function $l(e,t,n){for(var i=e.width,r=e.height,o=1+(n<<1),a=0;a<r;++a)for(var s=0,l=0;s<i+n;++s)s<i&&(l+=e.data[s+a*i]),s>=n&&(s>=o&&(l-=e.data[s-o+a*i]),t.data[s-n+a*i]=l/Math.min(s+1,i-1+o-s,o))}function ec(e,t,n){for(var i=e.width,r=e.height,o=1+(n<<1),a=0;a<i;++a)for(var s=0,l=0;s<r+n;++s)s<r&&(l+=e.data[a+s*i]),s>=n&&(s>=o&&(l-=e.data[a+(s-o)*i]),t.data[a+(s-n)*i]=l/Math.min(s+1,r-1+o-s,o))}function tc(e){return e[0]}function nc(e){return e[1]}function ic(){var e=tc,t=nc,n=960,i=500,r=20,o=2,a=3*r,s=n+2*a>>o,l=i+2*a>>o,c=Jl(20);function u(n){var i=new Float32Array(s*l),u=new Float32Array(s*l);n.forEach(function(n,r,c){var u=e(n,r,c)+a>>o,d=t(n,r,c)+a>>o;u>=0&&u<s&&d>=0&&d<l&&++i[u+d*s]}),$l({width:s,height:l,data:i},{width:s,height:l,data:u},r>>o),ec({width:s,height:l,data:u},{width:s,height:l,data:i},r>>o),$l({width:s,height:l,data:i},{width:s,height:l,data:u},r>>o),ec({width:s,height:l,data:u},{width:s,height:l,data:i},r>>o),$l({width:s,height:l,data:i},{width:s,height:l,data:u},r>>o),ec({width:s,height:l,data:u},{width:s,height:l,data:i},r>>o);var h=c(i);if(!Array.isArray(h)){var p=Mn(i);h=xn(0,p,h),(h=vn(0,Math.floor(p/h)*h,h)).shift()}return Kl().thresholds(h).size([s,l])(i).map(d)}function d(e){return e.value*=Math.pow(2,-2*o),e.coordinates.forEach(h),e}function h(e){e.forEach(p)}function p(e){e.forEach(f)}function f(e){e[0]=e[0]*Math.pow(2,o)-a,e[1]=e[1]*Math.pow(2,o)-a}function m(){return s=n+2*(a=3*r)>>o,l=i+2*a>>o,u}return u.x=function(t){return arguments.length?(e="function"==typeof t?t:Jl(+t),u):e},u.y=function(e){return arguments.length?(t="function"==typeof e?e:Jl(+e),u):t},u.size=function(e){if(!arguments.length)return[n,i];var t=Math.ceil(e[0]),r=Math.ceil(e[1]);if(!(t>=0||t>=0))throw new Error("invalid size");return n=t,i=r,m()},u.cellSize=function(e){if(!arguments.length)return 1<<o;if(!((e=+e)>=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(e)/Math.LN2),m()},u.thresholds=function(e){return arguments.length?(c="function"==typeof e?e:Array.isArray(e)?Jl(Hl.call(e)):Jl(e),u):c},u.bandwidth=function(e){if(!arguments.length)return Math.sqrt(r*(r+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return r=Math.round((Math.sqrt(4*e*e+1)-1)/2),m()},u}function rc(e){return function(){return e}}function oc(e,t,n,i,r,o,a,s,l,c){this.target=e,this.type=t,this.subject=n,this.identifier=i,this.active=r,this.x=o,this.y=a,this.dx=s,this.dy=l,this._=c}function ac(){return!sr.ctrlKey&&!sr.button}function sc(){return this.parentNode}function lc(e){return null==e?{x:sr.x,y:sr.y}:e}function cc(){return navigator.maxTouchPoints||"ontouchstart"in this}function uc(){var e,t,n,i,r=ac,o=sc,a=lc,s=cc,l={},c=ai("start","drag","end"),u=0,d=0;function h(e){e.on("mousedown.drag",p).filter(s).on("touchstart.drag",g).on("touchmove.drag",v).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(){if(!i&&r.apply(this,arguments)){var a=_("mouse",o.apply(this,arguments),Zr,this,arguments);a&&(wr(sr.view).on("mousemove.drag",f,!0).on("mouseup.drag",m,!0),qr(sr.view),Pr(),n=!1,e=sr.clientX,t=sr.clientY,a("start"))}}function f(){if(Ir(),!n){var i=sr.clientX-e,r=sr.clientY-t;n=i*i+r*r>d}l.mouse("drag")}function m(){wr(sr.view).on("mousemove.drag mouseup.drag",null),Nr(sr.view,n),Ir(),l.mouse("end")}function g(){if(r.apply(this,arguments)){var e,t,n=sr.changedTouches,i=o.apply(this,arguments),a=n.length;for(e=0;e<a;++e)(t=_(n[e].identifier,i,Or,this,arguments))&&(Pr(),t("start"))}}function v(){var e,t,n=sr.changedTouches,i=n.length;for(e=0;e<i;++e)(t=l[n[e].identifier])&&(Ir(),t("drag"))}function y(){var e,t,n=sr.changedTouches,r=n.length;for(i&&clearTimeout(i),i=setTimeout(function(){i=null},500),e=0;e<r;++e)(t=l[n[e].identifier])&&(Pr(),t("end"))}function _(e,t,n,i,r){var o,s,d,p=n(t,e),f=c.copy();if(pr(new oc(h,"beforestart",o,e,u,p[0],p[1],0,0,f),function(){return null!=(sr.subject=o=a.apply(i,r))&&(s=o.x-p[0]||0,d=o.y-p[1]||0,!0)}))return function a(c){var m,g=p;switch(c){case"start":l[e]=a,m=u++;break;case"end":delete l[e],--u;case"drag":p=n(t,e),m=u}pr(new oc(h,c,o,e,m,p[0]+s,p[1]+d,p[0]-g[0],p[1]-g[1],f),f.apply,f,[c,i,r])}}return h.filter=function(e){return arguments.length?(r="function"==typeof e?e:rc(!!e),h):r},h.container=function(e){return arguments.length?(o="function"==typeof e?e:rc(e),h):o},h.subject=function(e){return arguments.length?(a="function"==typeof e?e:rc(e),h):a},h.touchable=function(e){return arguments.length?(s="function"==typeof e?e:rc(!!e),h):s},h.on=function(){var e=c.on.apply(c,arguments);return e===c?h:e},h.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,h):Math.sqrt(d)},h}oc.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var dc={},hc={};function pc(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}")}function fc(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function i(e,t){var i,r=[],o=e.length,a=0,s=0,l=o<=0,c=!1;function u(){if(l)return hc;if(c)return c=!1,dc;var t,i,r=a;if(34===e.charCodeAt(r)){for(;a++<o&&34!==e.charCodeAt(a)||34===e.charCodeAt(++a););return(t=a)>=o?l=!0:10===(i=e.charCodeAt(a++))?c=!0:13===i&&(c=!0,10===e.charCodeAt(a)&&++a),e.slice(r+1,t-1).replace(/""/g,'"')}for(;a<o;){if(10===(i=e.charCodeAt(t=a++)))c=!0;else if(13===i)c=!0,10===e.charCodeAt(a)&&++a;else if(i!==n)continue;return e.slice(r,t)}return l=!0,e.slice(r,o)}for(10===e.charCodeAt(o-1)&&--o,13===e.charCodeAt(o-1)&&--o;(i=u())!==hc;){for(var d=[];i!==dc&&i!==hc;)d.push(i),i=u();t&&null==(d=t(d,s++))||r.push(d)}return r}function r(t){return t.map(o).join(e)}function o(e){return null==e?"":t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,r,o=i(e,function(e,i){if(n)return n(e,i-1);r=e,n=t?function(e,t){var n=pc(e);return function(i,r){return t(n(i),r,e)}}(e,t):pc(e)});return o.columns=r||[],o},parseRows:i,format:function(t,n){return null==n&&(n=function(e){var t=Object.create(null),n=[];return e.forEach(function(e){for(var i in e)i in t||n.push(t[i]=i)}),n}(t)),[n.map(o).join(e)].concat(t.map(function(t){return n.map(function(e){return o(t[e])}).join(e)})).join("\n")},formatRows:function(e){return e.map(r).join("\n")}}}var mc=fc(","),gc=mc.parse,vc=mc.parseRows,yc=mc.format,_c=mc.formatRows,bc=fc("\t"),wc=bc.parse,Sc=bc.parseRows,xc=bc.format,Cc=bc.formatRows;function kc(e){return+e}function Tc(e){return e*e}function Ac(e){return e*(2-e)}function Zc(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}var Mc=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),Oc=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),Ec=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),Pc=Math.PI,Ic=Pc/2;function qc(e){return 1==+e?1:1-Math.cos(e*Ic)}function Nc(e){return Math.sin(e*Ic)}function Dc(e){return(1-Math.cos(Pc*e))/2}function Rc(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}function Lc(e){return Rc(1-+e)}function Fc(e){return 1-Rc(e)}function Bc(e){return((e*=2)<=1?Rc(1-e):2-Rc(e-1))/2}function jc(e){return 1-Math.sqrt(1-e*e)}function zc(e){return Math.sqrt(1- --e*e)}function Uc(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var Hc=7.5625;function Yc(e){return 1-Jc(1-e)}function Jc(e){return(e=+e)<.36363636363636365?Hc*e*e:e<.7272727272727273?Hc*(e-=.5454545454545454)*e+.75:e<.9090909090909091?Hc*(e-=.8181818181818182)*e+.9375:Hc*(e-=.9545454545454546)*e+.984375}function Gc(e){return((e*=2)<=1?1-Jc(1-e):Jc(e-1)+1)/2}var Wc=1.70158,Vc=function e(t){function n(e){return(e=+e)*e*(t*(e-1)+e)}return t=+t,n.overshoot=e,n}(Wc),Qc=function e(t){function n(e){return--e*e*((e+1)*t+e)+1}return t=+t,n.overshoot=e,n}(Wc),Xc=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}(Wc),Kc=2*Math.PI,$c=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=Kc);function r(e){return t*Rc(- --e)*Math.sin((i-e)/n)}return r.amplitude=function(t){return e(t,n*Kc)},r.period=function(n){return e(t,n)},r}(1,.3),eu=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=Kc);function r(e){return 1-t*Rc(e=+e)*Math.sin((e+i)/n)}return r.amplitude=function(t){return e(t,n*Kc)},r.period=function(n){return e(t,n)},r}(1,.3),tu=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=Kc);function r(e){return((e=2*e-1)<0?t*Rc(-e)*Math.sin((i-e)/n):2-t*Rc(e)*Math.sin((i+e)/n))/2}return r.amplitude=function(t){return e(t,n*Kc)},r.period=function(n){return e(t,n)},r}(1,.3);function nu(e,t){var n;function i(){var i,r,o=n.length,a=0,s=0;for(i=0;i<o;++i)a+=(r=n[i]).x,s+=r.y;for(a=a/o-e,s=s/o-t,i=0;i<o;++i)(r=n[i]).x-=a,r.y-=s}return null==e&&(e=0),null==t&&(t=0),i.initialize=function(e){n=e},i.x=function(t){return arguments.length?(e=+t,i):e},i.y=function(e){return arguments.length?(t=+e,i):t},i}function iu(e){return function(){return e}}function ru(){return 1e-6*(Math.random()-.5)}function ou(e,t,n,i){if(isNaN(t)||isNaN(n))return e;var r,o,a,s,l,c,u,d,h,p=e._root,f={data:i},m=e._x0,g=e._y0,v=e._x1,y=e._y1;if(!p)return e._root=f,e;for(;p.length;)if((c=t>=(o=(m+v)/2))?m=o:v=o,(u=n>=(a=(g+y)/2))?g=a:y=a,r=p,!(p=p[d=u<<1|c]))return r[d]=f,e;if(s=+e._x.call(null,p.data),l=+e._y.call(null,p.data),t===s&&n===l)return f.next=p,r?r[d]=f:e._root=f,e;do{r=r?r[d]=new Array(4):e._root=new Array(4),(c=t>=(o=(m+v)/2))?m=o:v=o,(u=n>=(a=(g+y)/2))?g=a:y=a}while((d=u<<1|c)==(h=(l>=a)<<1|s>=o));return r[h]=p,r[d]=f,e}function au(e,t,n,i,r){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=r}function su(e){return e[0]}function lu(e){return e[1]}function cu(e,t,n){var i=new uu(null==t?su:t,null==n?lu:n,NaN,NaN,NaN,NaN);return null==e?i:i.addAll(e)}function uu(e,t,n,i,r,o){this._x=e,this._y=t,this._x0=n,this._y0=i,this._x1=r,this._y1=o,this._root=void 0}function du(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var hu=cu.prototype=uu.prototype;function pu(e){return e.x+e.vx}function fu(e){return e.y+e.vy}function mu(e){var t,n,i=1,r=1;function o(){for(var e,o,s,l,c,u,d,h=t.length,p=0;p<r;++p)for(o=cu(t,pu,fu).visitAfter(a),e=0;e<h;++e)d=(u=n[(s=t[e]).index])*u,l=s.x+s.vx,c=s.y+s.vy,o.visit(f);function f(e,t,n,r,o){var a=e.data,h=e.r,p=u+h;if(!a)return t>l+p||r<l-p||n>c+p||o<c-p;if(a.index>s.index){var f=l-a.x-a.vx,m=c-a.y-a.vy,g=f*f+m*m;g<p*p&&(0===f&&(g+=(f=ru())*f),0===m&&(g+=(m=ru())*m),g=(p-(g=Math.sqrt(g)))/g*i,s.vx+=(f*=g)*(p=(h*=h)/(d+h)),s.vy+=(m*=g)*p,a.vx-=f*(p=1-p),a.vy-=m*p)}}}function a(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function s(){if(t){var i,r,o=t.length;for(n=new Array(o),i=0;i<o;++i)n[(r=t[i]).index]=+e(r,i,t)}}return"function"!=typeof e&&(e=iu(null==e?1:+e)),o.initialize=function(e){t=e,s()},o.iterations=function(e){return arguments.length?(r=+e,o):r},o.strength=function(e){return arguments.length?(i=+e,o):i},o.radius=function(t){return arguments.length?(e="function"==typeof t?t:iu(+t),s(),o):e},o}function gu(e){return e.index}function vu(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function yu(e){var t,n,i,r,o,a=gu,s=function(e){return 1/Math.min(r[e.source.index],r[e.target.index])},l=iu(30),c=1;function u(i){for(var r=0,a=e.length;r<c;++r)for(var s,l,u,d,h,p,f,m=0;m<a;++m)d=(u=(s=e[m]).target).x+u.vx-(l=s.source).x-l.vx||ru(),h=u.y+u.vy-l.y-l.vy||ru(),h*=p=((p=Math.sqrt(d*d+h*h))-n[m])/p*i*t[m],u.vx-=(d*=p)*(f=o[m]),u.vy-=h*f,l.vx+=d*(f=1-f),l.vy+=h*f}function d(){if(i){var s,l,c=i.length,u=e.length,d=El(i,a);for(s=0,r=new Array(c);s<u;++s)(l=e[s]).index=s,"object"!=typeof l.source&&(l.source=vu(d,l.source)),"object"!=typeof l.target&&(l.target=vu(d,l.target)),r[l.source.index]=(r[l.source.index]||0)+1,r[l.target.index]=(r[l.target.index]||0)+1;for(s=0,o=new Array(u);s<u;++s)o[s]=r[(l=e[s]).source.index]/(r[l.source.index]+r[l.target.index]);t=new Array(u),h(),n=new Array(u),p()}}function h(){if(i)for(var n=0,r=e.length;n<r;++n)t[n]=+s(e[n],n,e)}function p(){if(i)for(var t=0,r=e.length;t<r;++t)n[t]=+l(e[t],t,e)}return null==e&&(e=[]),u.initialize=function(e){i=e,d()},u.links=function(t){return arguments.length?(e=t,d(),u):e},u.id=function(e){return arguments.length?(a=e,u):a},u.iterations=function(e){return arguments.length?(c=+e,u):c},u.strength=function(e){return arguments.length?(s="function"==typeof e?e:iu(+e),h(),u):s},u.distance=function(e){return arguments.length?(l="function"==typeof e?e:iu(+e),p(),u):l},u}function _u(e){return e.x}function bu(e){return e.y}hu.copy=function(){var e,t,n=new uu(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return n;if(!i.length)return n._root=du(i),n;for(e=[{source:i,target:n._root=new Array(4)}];i=e.pop();)for(var r=0;r<4;++r)(t=i.source[r])&&(t.length?e.push({source:t,target:i.target[r]=new Array(4)}):i.target[r]=du(t));return n},hu.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return ou(this.cover(t,n),t,n,e)},hu.addAll=function(e){var t,n,i,r,o=e.length,a=new Array(o),s=new Array(o),l=1/0,c=1/0,u=-1/0,d=-1/0;for(n=0;n<o;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(r=+this._y.call(null,t))||(a[n]=i,s[n]=r,i<l&&(l=i),i>u&&(u=i),r<c&&(c=r),r>d&&(d=r));if(l>u||c>d)return this;for(this.cover(l,c).cover(u,d),n=0;n<o;++n)ou(this,a[n],s[n],e[n]);return this},hu.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,i=this._y0,r=this._x1,o=this._y1;if(isNaN(n))r=(n=Math.floor(e))+1,o=(i=Math.floor(t))+1;else{for(var a,s,l=r-n,c=this._root;n>e||e>=r||i>t||t>=o;)switch(s=(t<i)<<1|e<n,(a=new Array(4))[s]=c,c=a,l*=2,s){case 0:r=n+l,o=i+l;break;case 1:n=r-l,o=i+l;break;case 2:r=n+l,i=o-l;break;case 3:n=r-l,i=o-l}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=i,this._x1=r,this._y1=o,this},hu.data=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},hu.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]]},hu.find=function(e,t,n){var i,r,o,a,s,l,c,u=this._x0,d=this._y0,h=this._x1,p=this._y1,f=[],m=this._root;for(m&&f.push(new au(m,u,d,h,p)),null==n?n=1/0:(u=e-n,d=t-n,h=e+n,p=t+n,n*=n);l=f.pop();)if(!(!(m=l.node)||(r=l.x0)>h||(o=l.y0)>p||(a=l.x1)<u||(s=l.y1)<d))if(m.length){var g=(r+a)/2,v=(o+s)/2;f.push(new au(m[3],g,v,a,s),new au(m[2],r,v,g,s),new au(m[1],g,o,a,v),new au(m[0],r,o,g,v)),(c=(t>=v)<<1|e>=g)&&(l=f[f.length-1],f[f.length-1]=f[f.length-1-c],f[f.length-1-c]=l)}else{var y=e-+this._x.call(null,m.data),_=t-+this._y.call(null,m.data),b=y*y+_*_;if(b<n){var w=Math.sqrt(n=b);u=e-w,d=t-w,h=e+w,p=t+w,i=m.data}}return i},hu.remove=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e)))return this;var t,n,i,r,o,a,s,l,c,u,d,h,p=this._root,f=this._x0,m=this._y0,g=this._x1,v=this._y1;if(!p)return this;if(p.length)for(;;){if((c=o>=(s=(f+g)/2))?f=s:g=s,(u=a>=(l=(m+v)/2))?m=l:v=l,t=p,!(p=p[d=u<<1|c]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,h=d)}for(;p.data!==e;)if(i=p,!(p=p.next))return this;return(r=p.next)&&delete p.next,i?(r?i.next=r:delete i.next,this):t?(r?t[d]=r:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[h]=p:this._root=p),this):(this._root=r,this)},hu.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},hu.root=function(){return this._root},hu.size=function(){var e=0;return this.visit(function(t){if(!t.length)do{++e}while(t=t.next)}),e},hu.visit=function(e){var t,n,i,r,o,a,s=[],l=this._root;for(l&&s.push(new au(l,this._x0,this._y0,this._x1,this._y1));t=s.pop();)if(!e(l=t.node,i=t.x0,r=t.y0,o=t.x1,a=t.y1)&&l.length){var c=(i+o)/2,u=(r+a)/2;(n=l[3])&&s.push(new au(n,c,u,o,a)),(n=l[2])&&s.push(new au(n,i,u,c,a)),(n=l[1])&&s.push(new au(n,c,r,o,u)),(n=l[0])&&s.push(new au(n,i,r,c,u))}return this},hu.visitAfter=function(e){var t,n=[],i=[];for(this._root&&n.push(new au(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var r=t.node;if(r.length){var o,a=t.x0,s=t.y0,l=t.x1,c=t.y1,u=(a+l)/2,d=(s+c)/2;(o=r[0])&&n.push(new au(o,a,s,u,d)),(o=r[1])&&n.push(new au(o,u,s,l,d)),(o=r[2])&&n.push(new au(o,a,d,u,c)),(o=r[3])&&n.push(new au(o,u,d,l,c))}i.push(t)}for(;t=i.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},hu.x=function(e){return arguments.length?(this._x=e,this):this._x},hu.y=function(e){return arguments.length?(this._y=e,this):this._y};var wu,Su=Math.PI*(3-Math.sqrt(5));function xu(e){var t,n=1,i=.001,r=1-Math.pow(i,1/300),o=0,a=.6,s=El(),l=za(u),c=ai("tick","end");function u(){d(),c.call("tick",t),n<i&&(l.stop(),c.call("end",t))}function d(){var t,i,l=e.length;for(n+=(o-n)*r,s.each(function(e){e(n)}),t=0;t<l;++t)null==(i=e[t]).fx?i.x+=i.vx*=a:(i.x=i.fx,i.vx=0),null==i.fy?i.y+=i.vy*=a:(i.y=i.fy,i.vy=0)}function h(){for(var t,n=0,i=e.length;n<i;++n){if((t=e[n]).index=n,isNaN(t.x)||isNaN(t.y)){var r=10*Math.sqrt(n),o=n*Su;t.x=r*Math.cos(o),t.y=r*Math.sin(o)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function p(t){return t.initialize&&t.initialize(e),t}return null==e&&(e=[]),h(),t={tick:d,restart:function(){return l.restart(u),t},stop:function(){return l.stop(),t},nodes:function(n){return arguments.length?(e=n,h(),s.each(p),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(i=+e,t):i},alphaDecay:function(e){return arguments.length?(r=+e,t):+r},alphaTarget:function(e){return arguments.length?(o=+e,t):o},velocityDecay:function(e){return arguments.length?(a=1-e,t):1-a},force:function(e,n){return arguments.length>1?(null==n?s.remove(e):s.set(e,p(n)),t):s.get(e)},find:function(t,n,i){var r,o,a,s,l,c=0,u=e.length;for(null==i?i=1/0:i*=i,c=0;c<u;++c)(a=(r=t-(s=e[c]).x)*r+(o=n-s.y)*o)<i&&(l=s,i=a);return l},on:function(e,n){return arguments.length>1?(c.on(e,n),t):c.on(e)}}}function Cu(){var e,t,n,i,r=iu(-30),o=1,a=1/0,s=.81;function l(i){var r,o=e.length,a=cu(e,_u,bu).visitAfter(u);for(n=i,r=0;r<o;++r)t=e[r],a.visit(d)}function c(){if(e){var t,n,o=e.length;for(i=new Array(o),t=0;t<o;++t)i[(n=e[t]).index]=+r(n,t,e)}}function u(e){var t,n,r,o,a,s=0,l=0;if(e.length){for(r=o=a=0;a<4;++a)(t=e[a])&&(n=Math.abs(t.value))&&(s+=t.value,l+=n,r+=n*t.x,o+=n*t.y);e.x=r/l,e.y=o/l}else{(t=e).x=t.data.x,t.y=t.data.y;do{s+=i[t.data.index]}while(t=t.next)}e.value=s}function d(e,r,l,c){if(!e.value)return!0;var u=e.x-t.x,d=e.y-t.y,h=c-r,p=u*u+d*d;if(h*h/s<p)return p<a&&(0===u&&(p+=(u=ru())*u),0===d&&(p+=(d=ru())*d),p<o&&(p=Math.sqrt(o*p)),t.vx+=u*e.value*n/p,t.vy+=d*e.value*n/p),!0;if(!(e.length||p>=a)){(e.data!==t||e.next)&&(0===u&&(p+=(u=ru())*u),0===d&&(p+=(d=ru())*d),p<o&&(p=Math.sqrt(o*p)));do{e.data!==t&&(t.vx+=u*(h=i[e.data.index]*n/p),t.vy+=d*h)}while(e=e.next)}}return l.initialize=function(t){e=t,c()},l.strength=function(e){return arguments.length?(r="function"==typeof e?e:iu(+e),c(),l):r},l.distanceMin=function(e){return arguments.length?(o=e*e,l):Math.sqrt(o)},l.distanceMax=function(e){return arguments.length?(a=e*e,l):Math.sqrt(a)},l.theta=function(e){return arguments.length?(s=e*e,l):Math.sqrt(s)},l}function ku(e,t,n){var i,r,o,a=iu(.1);function s(e){for(var a=0,s=i.length;a<s;++a){var l=i[a],c=l.x-t||1e-6,u=l.y-n||1e-6,d=Math.sqrt(c*c+u*u),h=(o[a]-d)*r[a]*e/d;l.vx+=c*h,l.vy+=u*h}}function l(){if(i){var t,n=i.length;for(r=new Array(n),o=new Array(n),t=0;t<n;++t)o[t]=+e(i[t],t,i),r[t]=isNaN(o[t])?0:+a(i[t],t,i)}}return"function"!=typeof e&&(e=iu(+e)),null==t&&(t=0),null==n&&(n=0),s.initialize=function(e){i=e,l()},s.strength=function(e){return arguments.length?(a="function"==typeof e?e:iu(+e),l(),s):a},s.radius=function(t){return arguments.length?(e="function"==typeof t?t:iu(+t),l(),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}function Tu(e){var t,n,i,r=iu(.1);function o(e){for(var r,o=0,a=t.length;o<a;++o)(r=t[o]).vx+=(i[o]-r.x)*n[o]*e}function a(){if(t){var o,a=t.length;for(n=new Array(a),i=new Array(a),o=0;o<a;++o)n[o]=isNaN(i[o]=+e(t[o],o,t))?0:+r(t[o],o,t)}}return"function"!=typeof e&&(e=iu(null==e?0:+e)),o.initialize=function(e){t=e,a()},o.strength=function(e){return arguments.length?(r="function"==typeof e?e:iu(+e),a(),o):r},o.x=function(t){return arguments.length?(e="function"==typeof t?t:iu(+t),a(),o):e},o}function Au(e){var t,n,i,r=iu(.1);function o(e){for(var r,o=0,a=t.length;o<a;++o)(r=t[o]).vy+=(i[o]-r.y)*n[o]*e}function a(){if(t){var o,a=t.length;for(n=new Array(a),i=new Array(a),o=0;o<a;++o)n[o]=isNaN(i[o]=+e(t[o],o,t))?0:+r(t[o],o,t)}}return"function"!=typeof e&&(e=iu(null==e?0:+e)),o.initialize=function(e){t=e,a()},o.strength=function(e){return arguments.length?(r="function"==typeof e?e:iu(+e),a(),o):r},o.y=function(t){return arguments.length?(e="function"==typeof t?t:iu(+t),a(),o):e},o}function Zu(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function Mu(e){return(e=Zu(Math.abs(e)))?e[1]:NaN}function Ou(e,t){var n=Zu(e,t);if(!n)return e+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}var Eu={"":function(e,t){e:for(var n,i=(e=e.toPrecision(t)).length,r=1,o=-1;r<i;++r)switch(e[r]){case".":o=n=r;break;case"0":0===o&&(o=r),n=r;break;case"e":break e;default:o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(n+1):e},"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Ou(100*e,t)},r:Ou,s:function(e,t){var n=Zu(e,t);if(!n)return e+"";var i=n[0],r=n[1],o=r-(wu=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,a=i.length;return o===a?i:o>a?i+new Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+Zu(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)}},Pu=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function Iu(e){return new qu(e)}function qu(e){if(!(t=Pu.exec(e)))throw new Error("invalid format: "+e);var t,n=t[1]||" ",i=t[2]||">",r=t[3]||"-",o=t[4]||"",a=!!t[5],s=t[6]&&+t[6],l=!!t[7],c=t[8]&&+t[8].slice(1),u=t[9]||"";"n"===u?(l=!0,u="g"):Eu[u]||(u=""),(a||"0"===n&&"="===i)&&(a=!0,n="0",i="="),this.fill=n,this.align=i,this.sign=r,this.symbol=o,this.zero=a,this.width=s,this.comma=l,this.precision=c,this.type=u}function Nu(e){return e}Iu.prototype=qu.prototype,qu.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 Du,Ru,Lu,Fu=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Bu(e){var t,n,i=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,i){for(var r=e.length,o=[],a=0,s=t[0],l=0;r>0&&s>0&&(l+s+1>i&&(s=Math.max(1,i-l)),o.push(e.substring(r-=s,r+s)),!((l+=s+1)>i));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}):Nu,r=e.currency,o=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(e.numerals):Nu,s=e.percent||"%";function l(e){var t=(e=Iu(e)).fill,n=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,h=e.comma,p=e.precision,f=e.type,m="$"===c?r[0]:"#"===c&&/[boxX]/.test(f)?"0"+f.toLowerCase():"",g="$"===c?r[1]:/[%p]/.test(f)?s:"",v=Eu[f],y=!f||/[defgprs%]/.test(f);function _(e){var r,s,c,_=m,b=g;if("c"===f)b=v(e)+b,e="";else{var w=(e=+e)<0;if(e=v(Math.abs(e),p),w&&0==+e&&(w=!1),_=(w?"("===l?l:"-":"-"===l||"("===l?"":l)+_,b=("s"===f?Fu[8+wu/3]:"")+b+(w&&"("===l?")":""),y)for(r=-1,s=e.length;++r<s;)if(48>(c=e.charCodeAt(r))||c>57){b=(46===c?o+e.slice(r+1):e.slice(r))+b,e=e.slice(0,r);break}}h&&!u&&(e=i(e,1/0));var S=_.length+e.length+b.length,x=S<d?new Array(d-S+1).join(t):"";switch(h&&u&&(e=i(x+e,x.length?d-b.length:1/0),x=""),n){case"<":e=_+e+b+x;break;case"=":e=_+x+e+b;break;case"^":e=x.slice(0,S=x.length>>1)+_+e+b+x.slice(S);break;default:e=x+_+e+b}return a(e)}return p=null==p?f?6:12:/[gprs]/.test(f)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),_.toString=function(){return e+""},_}return{format:l,formatPrefix:function(e,t){var n=l(((e=Iu(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(Mu(t)/3))),r=Math.pow(10,-i),o=Fu[8+i/3];return function(e){return n(r*e)+o}}}}function ju(e){return Du=Bu(e),Ru=Du.format,Lu=Du.formatPrefix,Du}function zu(e){return Math.max(0,-Mu(Math.abs(e)))}function Uu(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Mu(t)/3)))-Mu(Math.abs(e)))}function Hu(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Mu(t)-Mu(e))+1}function Yu(){return new Ju}function Ju(){this.reset()}ju({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Ju.prototype={constructor:Ju,reset:function(){this.s=this.t=0},add:function(e){Wu(Gu,e,this.t),Wu(this,Gu.s,this.s),this.s?this.t+=Gu.t:this.s=Gu.t},valueOf:function(){return this.s}};var Gu=new Ju;function Wu(e,t,n){var i=e.s=t+n,r=i-t;e.t=t-(i-r)+(n-r)}var Vu=1e-6,Qu=Math.PI,Xu=Qu/2,Ku=Qu/4,$u=2*Qu,ed=180/Qu,td=Qu/180,nd=Math.abs,id=Math.atan,rd=Math.atan2,od=Math.cos,ad=Math.ceil,sd=Math.exp,ld=(Math,Math.log),cd=Math.pow,ud=Math.sin,dd=Math.sign||function(e){return e>0?1:e<0?-1:0},hd=Math.sqrt,pd=Math.tan;function fd(e){return e>1?0:e<-1?Qu:Math.acos(e)}function md(e){return e>1?Xu:e<-1?-Xu:Math.asin(e)}function gd(e){return(e=ud(e/2))*e}function vd(){}function yd(e,t){e&&bd.hasOwnProperty(e.type)&&bd[e.type](e,t)}var _d={Feature:function(e,t){yd(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,i=-1,r=n.length;++i<r;)yd(n[i].geometry,t)}},bd={Sphere:function(e,t){t.sphere()},Point:function(e,t){t.point((e=e.coordinates)[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)t.point((e=n[i])[0],e[1],e[2])},LineString:function(e,t){wd(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)wd(n[i],t,0)},Polygon:function(e,t){Sd(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)Sd(n[i],t)},GeometryCollection:function(e,t){for(var n=e.geometries,i=-1,r=n.length;++i<r;)yd(n[i],t)}};function wd(e,t,n){var i,r=-1,o=e.length-n;for(t.lineStart();++r<o;)t.point((i=e[r])[0],i[1],i[2]);t.lineEnd()}function Sd(e,t){var n=-1,i=e.length;for(t.polygonStart();++n<i;)wd(e[n],t,1);t.polygonEnd()}function xd(e,t){e&&_d.hasOwnProperty(e.type)?_d[e.type](e,t):yd(e,t)}var Cd,kd,Td,Ad,Zd,Md=Yu(),Od=Yu(),Ed={point:vd,lineStart:vd,lineEnd:vd,polygonStart:function(){Md.reset(),Ed.lineStart=Pd,Ed.lineEnd=Id},polygonEnd:function(){var e=+Md;Od.add(e<0?$u+e:e),this.lineStart=this.lineEnd=this.point=vd},sphere:function(){Od.add($u)}};function Pd(){Ed.point=qd}function Id(){Nd(Cd,kd)}function qd(e,t){Ed.point=Nd,Cd=e,kd=t,Td=e*=td,Ad=od(t=(t*=td)/2+Ku),Zd=ud(t)}function Nd(e,t){var n=(e*=td)-Td,i=n>=0?1:-1,r=i*n,o=od(t=(t*=td)/2+Ku),a=ud(t),s=Zd*a,l=Ad*o+s*od(r),c=s*i*ud(r);Md.add(rd(c,l)),Td=e,Ad=o,Zd=a}function Dd(e){return Od.reset(),xd(e,Ed),2*Od}function Rd(e){return[rd(e[1],e[0]),md(e[2])]}function Ld(e){var t=e[0],n=e[1],i=od(n);return[i*od(t),i*ud(t),ud(n)]}function Fd(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Bd(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 jd(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function zd(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Ud(e){var t=hd(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Hd,Yd,Jd,Gd,Wd,Vd,Qd,Xd,Kd,$d,eh,th,nh,ih,rh,oh,ah,sh,lh,ch,uh,dh,hh,ph,fh,mh,gh=Yu(),vh={point:yh,lineStart:bh,lineEnd:wh,polygonStart:function(){vh.point=Sh,vh.lineStart=xh,vh.lineEnd=Ch,gh.reset(),Ed.polygonStart()},polygonEnd:function(){Ed.polygonEnd(),vh.point=yh,vh.lineStart=bh,vh.lineEnd=wh,Md<0?(Hd=-(Jd=180),Yd=-(Gd=90)):gh>Vu?Gd=90:gh<-1e-6&&(Yd=-90),$d[0]=Hd,$d[1]=Jd}};function yh(e,t){Kd.push($d=[Hd=e,Jd=e]),t<Yd&&(Yd=t),t>Gd&&(Gd=t)}function _h(e,t){var n=Ld([e*td,t*td]);if(Xd){var i=Bd(Xd,n),r=Bd([i[1],-i[0],0],i);Ud(r),r=Rd(r);var o,a=e-Wd,s=a>0?1:-1,l=r[0]*ed*s,c=nd(a)>180;c^(s*Wd<l&&l<s*e)?(o=r[1]*ed)>Gd&&(Gd=o):c^(s*Wd<(l=(l+360)%360-180)&&l<s*e)?(o=-r[1]*ed)<Yd&&(Yd=o):(t<Yd&&(Yd=t),t>Gd&&(Gd=t)),c?e<Wd?kh(Hd,e)>kh(Hd,Jd)&&(Jd=e):kh(e,Jd)>kh(Hd,Jd)&&(Hd=e):Jd>=Hd?(e<Hd&&(Hd=e),e>Jd&&(Jd=e)):e>Wd?kh(Hd,e)>kh(Hd,Jd)&&(Jd=e):kh(e,Jd)>kh(Hd,Jd)&&(Hd=e)}else Kd.push($d=[Hd=e,Jd=e]);t<Yd&&(Yd=t),t>Gd&&(Gd=t),Xd=n,Wd=e}function bh(){vh.point=_h}function wh(){$d[0]=Hd,$d[1]=Jd,vh.point=yh,Xd=null}function Sh(e,t){if(Xd){var n=e-Wd;gh.add(nd(n)>180?n+(n>0?360:-360):n)}else Vd=e,Qd=t;Ed.point(e,t),_h(e,t)}function xh(){Ed.lineStart()}function Ch(){Sh(Vd,Qd),Ed.lineEnd(),nd(gh)>Vu&&(Hd=-(Jd=180)),$d[0]=Hd,$d[1]=Jd,Xd=null}function kh(e,t){return(t-=e)<0?t+360:t}function Th(e,t){return e[0]-t[0]}function Ah(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}function Zh(e){var t,n,i,r,o,a,s;if(Gd=Jd=-(Hd=Yd=1/0),Kd=[],xd(e,vh),n=Kd.length){for(Kd.sort(Th),t=1,o=[i=Kd[0]];t<n;++t)Ah(i,(r=Kd[t])[0])||Ah(i,r[1])?(kh(i[0],r[1])>kh(i[0],i[1])&&(i[1]=r[1]),kh(r[0],i[1])>kh(i[0],i[1])&&(i[0]=r[0])):o.push(i=r);for(a=-1/0,t=0,i=o[n=o.length-1];t<=n;i=r,++t)(s=kh(i[1],(r=o[t])[0]))>a&&(a=s,Hd=r[0],Jd=i[1])}return Kd=$d=null,Hd===1/0||Yd===1/0?[[NaN,NaN],[NaN,NaN]]:[[Hd,Yd],[Jd,Gd]]}var Mh={sphere:vd,point:Oh,lineStart:Ph,lineEnd:Nh,polygonStart:function(){Mh.lineStart=Dh,Mh.lineEnd=Rh},polygonEnd:function(){Mh.lineStart=Ph,Mh.lineEnd=Nh}};function Oh(e,t){e*=td;var n=od(t*=td);Eh(n*od(e),n*ud(e),ud(t))}function Eh(e,t,n){++eh,nh+=(e-nh)/eh,ih+=(t-ih)/eh,rh+=(n-rh)/eh}function Ph(){Mh.point=Ih}function Ih(e,t){e*=td;var n=od(t*=td);ph=n*od(e),fh=n*ud(e),mh=ud(t),Mh.point=qh,Eh(ph,fh,mh)}function qh(e,t){e*=td;var n=od(t*=td),i=n*od(e),r=n*ud(e),o=ud(t),a=rd(hd((a=fh*o-mh*r)*a+(a=mh*i-ph*o)*a+(a=ph*r-fh*i)*a),ph*i+fh*r+mh*o);th+=a,oh+=a*(ph+(ph=i)),ah+=a*(fh+(fh=r)),sh+=a*(mh+(mh=o)),Eh(ph,fh,mh)}function Nh(){Mh.point=Oh}function Dh(){Mh.point=Lh}function Rh(){Fh(dh,hh),Mh.point=Oh}function Lh(e,t){dh=e,hh=t,e*=td,t*=td,Mh.point=Fh;var n=od(t);ph=n*od(e),fh=n*ud(e),mh=ud(t),Eh(ph,fh,mh)}function Fh(e,t){e*=td;var n=od(t*=td),i=n*od(e),r=n*ud(e),o=ud(t),a=fh*o-mh*r,s=mh*i-ph*o,l=ph*r-fh*i,c=hd(a*a+s*s+l*l),u=md(c),d=c&&-u/c;lh+=d*a,ch+=d*s,uh+=d*l,th+=u,oh+=u*(ph+(ph=i)),ah+=u*(fh+(fh=r)),sh+=u*(mh+(mh=o)),Eh(ph,fh,mh)}function Bh(e){eh=th=nh=ih=rh=oh=ah=sh=lh=ch=uh=0,xd(e,Mh);var t=lh,n=ch,i=uh,r=t*t+n*n+i*i;return r<1e-12&&(t=oh,n=ah,i=sh,th<Vu&&(t=nh,n=ih,i=rh),(r=t*t+n*n+i*i)<1e-12)?[NaN,NaN]:[rd(n,t)*ed,md(i/hd(r))*ed]}function jh(e){return function(){return e}}function zh(e,t){function n(n,i){return n=e(n,i),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,i){return(n=t.invert(n,i))&&e.invert(n[0],n[1])}),n}function Uh(e,t){return[e>Qu?e-$u:e<-Qu?e+$u:e,t]}function Hh(e,t,n){return(e%=$u)?t||n?zh(Jh(e),Gh(t,n)):Jh(e):t||n?Gh(t,n):Uh}function Yh(e){return function(t,n){return[(t+=e)>Qu?t-$u:t<-Qu?t+$u:t,n]}}function Jh(e){var t=Yh(e);return t.invert=Yh(-e),t}function Gh(e,t){var n=od(e),i=ud(e),r=od(t),o=ud(t);function a(e,t){var a=od(t),s=od(e)*a,l=ud(e)*a,c=ud(t),u=c*n+s*i;return[rd(l*r-u*o,s*n-c*i),md(u*r+l*o)]}return a.invert=function(e,t){var a=od(t),s=od(e)*a,l=ud(e)*a,c=ud(t),u=c*r-l*o;return[rd(l*r+c*o,s*n+u*i),md(u*n-s*i)]},a}function Wh(e){function t(t){return(t=e(t[0]*td,t[1]*td))[0]*=ed,t[1]*=ed,t}return e=Hh(e[0]*td,e[1]*td,e.length>2?e[2]*td:0),t.invert=function(t){return(t=e.invert(t[0]*td,t[1]*td))[0]*=ed,t[1]*=ed,t},t}function Vh(e,t,n,i,r,o){if(n){var a=od(t),s=ud(t),l=i*n;null==r?(r=t+i*$u,o=t-l/2):(r=Qh(a,r),o=Qh(a,o),(i>0?r<o:r>o)&&(r+=i*$u));for(var c,u=r;i>0?u>o:u<o;u-=l)c=Rd([a,-s*od(u),-s*ud(u)]),e.point(c[0],c[1])}}function Qh(e,t){(t=Ld(t))[0]-=e,Ud(t);var n=fd(-t[1]);return((-t[2]<0?-n:n)+$u-Vu)%$u}function Xh(){var e,t,n=jh([0,0]),i=jh(90),r=jh(6),o={point:function(n,i){e.push(n=t(n,i)),n[0]*=ed,n[1]*=ed}};function a(){var a=n.apply(this,arguments),s=i.apply(this,arguments)*td,l=r.apply(this,arguments)*td;return e=[],t=Hh(-a[0]*td,-a[1]*td,0).invert,Vh(o,s,l,1),a={type:"Polygon",coordinates:[e]},e=t=null,a}return a.center=function(e){return arguments.length?(n="function"==typeof e?e:jh([+e[0],+e[1]]),a):n},a.radius=function(e){return arguments.length?(i="function"==typeof e?e:jh(+e),a):i},a.precision=function(e){return arguments.length?(r="function"==typeof e?e:jh(+e),a):r},a}function Kh(){var e,t=[];return{point:function(t,n){e.push([t,n])},lineStart:function(){t.push(e=[])},lineEnd:vd,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function $h(e,t){return nd(e[0]-t[0])<Vu&&nd(e[1]-t[1])<Vu}function ep(e,t,n,i){this.x=e,this.z=t,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}function tp(e,t,n,i,r){var o,a,s=[],l=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n,i=e[0],a=e[t];if($h(i,a)){for(r.lineStart(),o=0;o<t;++o)r.point((i=e[o])[0],i[1]);r.lineEnd()}else s.push(n=new ep(i,e,null,!0)),l.push(n.o=new ep(i,null,n,!1)),s.push(n=new ep(a,e,null,!1)),l.push(n.o=new ep(a,null,n,!0))}}),s.length){for(l.sort(t),np(s),np(l),o=0,a=l.length;o<a;++o)l[o].e=n=!n;for(var c,u,d=s[0];;){for(var h=d,p=!0;h.v;)if((h=h.n)===d)return;c=h.z,r.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(o=0,a=c.length;o<a;++o)r.point((u=c[o])[0],u[1]);else i(h.x,h.n.x,1,r);h=h.n}else{if(p)for(o=(c=h.p.z).length-1;o>=0;--o)r.point((u=c[o])[0],u[1]);else i(h.x,h.p.x,-1,r);h=h.p}c=(h=h.o).z,p=!p}while(!h.v);r.lineEnd()}}}function np(e){if(t=e.length){for(var t,n,i=0,r=e[0];++i<t;)r.n=n=e[i],n.p=r,r=n;r.n=n=e[0],n.p=r}}Uh.invert=Uh;var ip=Yu();function rp(e,t){var n=t[0],i=t[1],r=ud(i),o=[ud(n),-od(n),0],a=0,s=0;ip.reset(),1===r?i=Xu+Vu:-1===r&&(i=-Xu-Vu);for(var l=0,c=e.length;l<c;++l)if(d=(u=e[l]).length)for(var u,d,h=u[d-1],p=h[0],f=h[1]/2+Ku,m=ud(f),g=od(f),v=0;v<d;++v,p=_,m=w,g=S,h=y){var y=u[v],_=y[0],b=y[1]/2+Ku,w=ud(b),S=od(b),x=_-p,C=x>=0?1:-1,k=C*x,T=k>Qu,A=m*w;if(ip.add(rd(A*C*ud(k),g*S+A*od(k))),a+=T?x+C*$u:x,T^p>=n^_>=n){var Z=Bd(Ld(h),Ld(y));Ud(Z);var M=Bd(o,Z);Ud(M);var O=(T^x>=0?-1:1)*md(M[2]);(i>O||i===O&&(Z[0]||Z[1]))&&(s+=T^x>=0?1:-1)}}return(a<-1e-6||a<Vu&&ip<-1e-6)^1&s}function op(e,t,n,i){return function(r){var o,a,s,l=t(r),c=Kh(),u=t(c),d=!1,h={point:p,lineStart:m,lineEnd:g,polygonStart:function(){h.point=v,h.lineStart=y,h.lineEnd=_,a=[],o=[]},polygonEnd:function(){h.point=p,h.lineStart=m,h.lineEnd=g,a=Pn(a);var e=rp(o,i);a.length?(d||(r.polygonStart(),d=!0),tp(a,sp,e,n,r)):e&&(d||(r.polygonStart(),d=!0),r.lineStart(),n(null,null,1,r),r.lineEnd()),d&&(r.polygonEnd(),d=!1),a=o=null},sphere:function(){r.polygonStart(),r.lineStart(),n(null,null,1,r),r.lineEnd(),r.polygonEnd()}};function p(t,n){e(t,n)&&r.point(t,n)}function f(e,t){l.point(e,t)}function m(){h.point=f,l.lineStart()}function g(){h.point=p,l.lineEnd()}function v(e,t){s.push([e,t]),u.point(e,t)}function y(){u.lineStart(),s=[]}function _(){v(s[0][0],s[0][1]),u.lineEnd();var e,t,n,i,l=u.clean(),h=c.result(),p=h.length;if(s.pop(),o.push(s),s=null,p)if(1&l){if((t=(n=h[0]).length-1)>0){for(d||(r.polygonStart(),d=!0),r.lineStart(),e=0;e<t;++e)r.point((i=n[e])[0],i[1]);r.lineEnd()}}else p>1&&2&l&&h.push(h.pop().concat(h.shift())),a.push(h.filter(ap))}return h}}function ap(e){return e.length>1}function sp(e,t){return((e=e.x)[0]<0?e[1]-Xu-Vu:Xu-e[1])-((t=t.x)[0]<0?t[1]-Xu-Vu:Xu-t[1])}var lp=op(function(){return!0},function(e){var t,n=NaN,i=NaN,r=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?Qu:-Qu,l=nd(o-n);nd(l-Qu)<Vu?(e.point(n,i=(i+a)/2>0?Xu:-Xu),e.point(r,i),e.lineEnd(),e.lineStart(),e.point(s,i),e.point(o,i),t=0):r!==s&&l>=Qu&&(nd(n-r)<Vu&&(n-=r*Vu),nd(o-s)<Vu&&(o-=s*Vu),i=function(e,t,n,i){var r,o,a=ud(e-n);return nd(a)>Vu?id((ud(t)*(o=od(i))*ud(n)-ud(i)*(r=od(t))*ud(e))/(r*o*a)):(t+i)/2}(n,i,o,a),e.point(r,i),e.lineEnd(),e.lineStart(),e.point(s,i),t=0),e.point(n=o,i=a),r=s},lineEnd:function(){e.lineEnd(),n=i=NaN},clean:function(){return 2-t}}},function(e,t,n,i){var r;if(null==e)i.point(-Qu,r=n*Xu),i.point(0,r),i.point(Qu,r),i.point(Qu,0),i.point(Qu,-r),i.point(0,-r),i.point(-Qu,-r),i.point(-Qu,0),i.point(-Qu,r);else if(nd(e[0]-t[0])>Vu){var o=e[0]<t[0]?Qu:-Qu;i.point(-o,r=n*o/2),i.point(0,r),i.point(o,r)}else i.point(t[0],t[1])},[-Qu,-Xu]);function cp(e){var t=od(e),n=6*td,i=t>0,r=nd(t)>Vu;function o(e,n){return od(e)*od(n)>t}function a(e,n,i){var r=[1,0,0],o=Bd(Ld(e),Ld(n)),a=Fd(o,o),s=o[0],l=a-s*s;if(!l)return!i&&e;var c=t*a/l,u=-t*s/l,d=Bd(r,o),h=zd(r,c);jd(h,zd(o,u));var p=d,f=Fd(h,p),m=Fd(p,p),g=f*f-m*(Fd(h,h)-1);if(!(g<0)){var v=hd(g),y=zd(p,(-f-v)/m);if(jd(y,h),y=Rd(y),!i)return y;var _,b=e[0],w=n[0],S=e[1],x=n[1];w<b&&(_=b,b=w,w=_);var C=w-b,k=nd(C-Qu)<Vu;if(!k&&x<S&&(_=S,S=x,x=_),k||C<Vu?k?S+x>0^y[1]<(nd(y[0]-b)<Vu?S:x):S<=y[1]&&y[1]<=x:C>Qu^(b<=y[0]&&y[0]<=w)){var T=zd(p,(-f+v)/m);return jd(T,h),[y,Rd(T)]}}}function s(t,n){var r=i?e:Qu-e,o=0;return t<-r?o|=1:t>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}return op(o,function(e){var t,n,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(d,h){var p,f=[d,h],m=o(d,h),g=i?m?0:s(d,h):m?s(d+(d<0?Qu:-Qu),h):0;if(!t&&(c=l=m)&&e.lineStart(),m!==l&&(!(p=a(t,f))||$h(t,p)||$h(f,p))&&(f[0]+=Vu,f[1]+=Vu,m=o(f[0],f[1])),m!==l)u=0,m?(e.lineStart(),p=a(f,t),e.point(p[0],p[1])):(p=a(t,f),e.point(p[0],p[1]),e.lineEnd()),t=p;else if(r&&t&&i^m){var v;g&n||!(v=a(f,t,!0))||(u=0,i?(e.lineStart(),e.point(v[0][0],v[0][1]),e.point(v[1][0],v[1][1]),e.lineEnd()):(e.point(v[1][0],v[1][1]),e.lineEnd(),e.lineStart(),e.point(v[0][0],v[0][1])))}!m||t&&$h(t,f)||e.point(f[0],f[1]),t=f,l=m,n=g},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return u|(c&&l)<<1}}},function(t,i,r,o){Vh(o,e,n,r,t,i)},i?[0,-e]:[-Qu,e-Qu])}var up=1e9,dp=-up;function hp(e,t,n,i){function r(r,o){return e<=r&&r<=n&&t<=o&&o<=i}function o(r,o,s,c){var u=0,d=0;if(null==r||(u=a(r,s))!==(d=a(o,s))||l(r,o)<0^s>0)do{c.point(0===u||3===u?e:n,u>1?i:t)}while((u=(u+s+4)%4)!==d);else c.point(o[0],o[1])}function a(i,r){return nd(i[0]-e)<Vu?r>0?0:3:nd(i[0]-n)<Vu?r>0?2:1:nd(i[1]-t)<Vu?r>0?1:0:r>0?3:2}function s(e,t){return l(e.x,t.x)}function l(e,t){var n=a(e,1),i=a(t,1);return n!==i?n-i:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var l,c,u,d,h,p,f,m,g,v,y,_=a,b=Kh(),w={point:S,lineStart:function(){w.point=x,c&&c.push(u=[]),v=!0,g=!1,f=m=NaN},lineEnd:function(){l&&(x(d,h),p&&g&&b.rejoin(),l.push(b.result())),w.point=S,g&&_.lineEnd()},polygonStart:function(){_=b,l=[],c=[],y=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,r=c.length;n<r;++n)for(var o,a,s=c[n],l=1,u=s.length,d=s[0],h=d[0],p=d[1];l<u;++l)o=h,a=p,h=(d=s[l])[0],p=d[1],a<=i?p>i&&(h-o)*(i-a)>(p-a)*(e-o)&&++t:p<=i&&(h-o)*(i-a)<(p-a)*(e-o)&&--t;return t}(),n=y&&t,r=(l=Pn(l)).length;(n||r)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),r&&tp(l,s,t,o,a),a.polygonEnd()),_=a,l=c=u=null}};function S(e,t){r(e,t)&&_.point(e,t)}function x(o,a){var s=r(o,a);if(c&&u.push([o,a]),v)d=o,h=a,p=s,v=!1,s&&(_.lineStart(),_.point(o,a));else if(s&&g)_.point(o,a);else{var l=[f=Math.max(dp,Math.min(up,f)),m=Math.max(dp,Math.min(up,m))],b=[o=Math.max(dp,Math.min(up,o)),a=Math.max(dp,Math.min(up,a))];!function(e,t,n,i,r,o){var a,s=e[0],l=e[1],c=0,u=1,d=t[0]-s,h=t[1]-l;if(a=n-s,d||!(a>0)){if(a/=d,d<0){if(a<c)return;a<u&&(u=a)}else if(d>0){if(a>u)return;a>c&&(c=a)}if(a=r-s,d||!(a<0)){if(a/=d,d<0){if(a>u)return;a>c&&(c=a)}else if(d>0){if(a<c)return;a<u&&(u=a)}if(a=i-l,h||!(a>0)){if(a/=h,h<0){if(a<c)return;a<u&&(u=a)}else if(h>0){if(a>u)return;a>c&&(c=a)}if(a=o-l,h||!(a<0)){if(a/=h,h<0){if(a>u)return;a>c&&(c=a)}else if(h>0){if(a<c)return;a<u&&(u=a)}return c>0&&(e[0]=s+c*d,e[1]=l+c*h),u<1&&(t[0]=s+u*d,t[1]=l+u*h),!0}}}}}(l,b,e,t,n,i)?s&&(_.lineStart(),_.point(o,a),y=!1):(g||(_.lineStart(),_.point(l[0],l[1])),_.point(b[0],b[1]),s||_.lineEnd(),y=!1)}f=o,m=a,g=s}return w}}function pp(){var e,t,n,i=0,r=0,o=960,a=500;return n={stream:function(n){return e&&t===n?e:e=hp(i,r,o,a)(t=n)},extent:function(s){return arguments.length?(i=+s[0][0],r=+s[0][1],o=+s[1][0],a=+s[1][1],e=t=null,n):[[i,r],[o,a]]}}}var fp,mp,gp,vp=Yu(),yp={sphere:vd,point:vd,lineStart:function(){yp.point=bp,yp.lineEnd=_p},lineEnd:vd,polygonStart:vd,polygonEnd:vd};function _p(){yp.point=yp.lineEnd=vd}function bp(e,t){fp=e*=td,mp=ud(t*=td),gp=od(t),yp.point=wp}function wp(e,t){e*=td;var n=ud(t*=td),i=od(t),r=nd(e-fp),o=od(r),a=i*ud(r),s=gp*n-mp*i*o,l=mp*n+gp*i*o;vp.add(rd(hd(a*a+s*s),l)),fp=e,mp=n,gp=i}function Sp(e){return vp.reset(),xd(e,yp),+vp}var xp=[null,null],Cp={type:"LineString",coordinates:xp};function kp(e,t){return xp[0]=e,xp[1]=t,Sp(Cp)}var Tp={Feature:function(e,t){return Zp(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,i=-1,r=n.length;++i<r;)if(Zp(n[i].geometry,t))return!0;return!1}},Ap={Sphere:function(){return!0},Point:function(e,t){return Mp(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)if(Mp(n[i],t))return!0;return!1},LineString:function(e,t){return Op(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)if(Op(n[i],t))return!0;return!1},Polygon:function(e,t){return Ep(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)if(Ep(n[i],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,i=-1,r=n.length;++i<r;)if(Zp(n[i],t))return!0;return!1}};function Zp(e,t){return!(!e||!Ap.hasOwnProperty(e.type))&&Ap[e.type](e,t)}function Mp(e,t){return 0===kp(e,t)}function Op(e,t){var n=kp(e[0],e[1]);return kp(e[0],t)+kp(t,e[1])<=n+Vu}function Ep(e,t){return!!rp(e.map(Pp),Ip(t))}function Pp(e){return(e=e.map(Ip)).pop(),e}function Ip(e){return[e[0]*td,e[1]*td]}function qp(e,t){return(e&&Tp.hasOwnProperty(e.type)?Tp[e.type]:Zp)(e,t)}function Np(e,t,n){var i=vn(e,t-Vu,n).concat(t);return function(e){return i.map(function(t){return[e,t]})}}function Dp(e,t,n){var i=vn(e,t-Vu,n).concat(t);return function(e){return i.map(function(t){return[t,e]})}}function Rp(){var e,t,n,i,r,o,a,s,l,c,u,d,h=10,p=h,f=90,m=360,g=2.5;function v(){return{type:"MultiLineString",coordinates:y()}}function y(){return vn(ad(i/f)*f,n,f).map(u).concat(vn(ad(s/m)*m,a,m).map(d)).concat(vn(ad(t/h)*h,e,h).filter(function(e){return nd(e%f)>Vu}).map(l)).concat(vn(ad(o/p)*p,r,p).filter(function(e){return nd(e%m)>Vu}).map(c))}return v.lines=function(){return y().map(function(e){return{type:"LineString",coordinates:e}})},v.outline=function(){return{type:"Polygon",coordinates:[u(i).concat(d(a).slice(1),u(n).reverse().slice(1),d(s).reverse().slice(1))]}},v.extent=function(e){return arguments.length?v.extentMajor(e).extentMinor(e):v.extentMinor()},v.extentMajor=function(e){return arguments.length?(s=+e[0][1],a=+e[1][1],(i=+e[0][0])>(n=+e[1][0])&&(e=i,i=n,n=e),s>a&&(e=s,s=a,a=e),v.precision(g)):[[i,s],[n,a]]},v.extentMinor=function(n){return arguments.length?(o=+n[0][1],r=+n[1][1],(t=+n[0][0])>(e=+n[1][0])&&(n=t,t=e,e=n),o>r&&(n=o,o=r,r=n),v.precision(g)):[[t,o],[e,r]]},v.step=function(e){return arguments.length?v.stepMajor(e).stepMinor(e):v.stepMinor()},v.stepMajor=function(e){return arguments.length?(f=+e[0],m=+e[1],v):[f,m]},v.stepMinor=function(e){return arguments.length?(h=+e[0],p=+e[1],v):[h,p]},v.precision=function(h){return arguments.length?(g=+h,l=Np(o,r,90),c=Dp(t,e,g),u=Np(s,a,90),d=Dp(i,n,g),v):g},v.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function Lp(){return Rp()()}function Fp(e,t){var n=e[0]*td,i=e[1]*td,r=t[0]*td,o=t[1]*td,a=od(i),s=ud(i),l=od(o),c=ud(o),u=a*od(n),d=a*ud(n),h=l*od(r),p=l*ud(r),f=2*md(hd(gd(o-i)+a*l*gd(r-n))),m=ud(f),g=f?function(e){var t=ud(e*=f)/m,n=ud(f-e)/m,i=n*u+t*h,r=n*d+t*p,o=n*s+t*c;return[rd(r,i)*ed,rd(o,hd(i*i+r*r))*ed]}:function(){return[n*ed,i*ed]};return g.distance=f,g}function Bp(e){return e}var jp,zp,Up,Hp,Yp=Yu(),Jp=Yu(),Gp={point:vd,lineStart:vd,lineEnd:vd,polygonStart:function(){Gp.lineStart=Wp,Gp.lineEnd=Xp},polygonEnd:function(){Gp.lineStart=Gp.lineEnd=Gp.point=vd,Yp.add(nd(Jp)),Jp.reset()},result:function(){var e=Yp/2;return Yp.reset(),e}};function Wp(){Gp.point=Vp}function Vp(e,t){Gp.point=Qp,jp=Up=e,zp=Hp=t}function Qp(e,t){Jp.add(Hp*e-Up*t),Up=e,Hp=t}function Xp(){Qp(jp,zp)}var Kp,$p,ef,tf,nf=Gp,rf=1/0,of=rf,af=-rf,sf=af,lf={point:function(e,t){e<rf&&(rf=e),e>af&&(af=e),t<of&&(of=t),t>sf&&(sf=t)},lineStart:vd,lineEnd:vd,polygonStart:vd,polygonEnd:vd,result:function(){var e=[[rf,of],[af,sf]];return af=sf=-(of=rf=1/0),e}},cf=0,uf=0,df=0,hf=0,pf=0,ff=0,mf=0,gf=0,vf=0,yf={point:_f,lineStart:bf,lineEnd:xf,polygonStart:function(){yf.lineStart=Cf,yf.lineEnd=kf},polygonEnd:function(){yf.point=_f,yf.lineStart=bf,yf.lineEnd=xf},result:function(){var e=vf?[mf/vf,gf/vf]:ff?[hf/ff,pf/ff]:df?[cf/df,uf/df]:[NaN,NaN];return cf=uf=df=hf=pf=ff=mf=gf=vf=0,e}};function _f(e,t){cf+=e,uf+=t,++df}function bf(){yf.point=wf}function wf(e,t){yf.point=Sf,_f(ef=e,tf=t)}function Sf(e,t){var n=e-ef,i=t-tf,r=hd(n*n+i*i);hf+=r*(ef+e)/2,pf+=r*(tf+t)/2,ff+=r,_f(ef=e,tf=t)}function xf(){yf.point=_f}function Cf(){yf.point=Tf}function kf(){Af(Kp,$p)}function Tf(e,t){yf.point=Af,_f(Kp=ef=e,$p=tf=t)}function Af(e,t){var n=e-ef,i=t-tf,r=hd(n*n+i*i);hf+=r*(ef+e)/2,pf+=r*(tf+t)/2,ff+=r,mf+=(r=tf*e-ef*t)*(ef+e),gf+=r*(tf+t),vf+=3*r,_f(ef=e,tf=t)}var Zf=yf;function Mf(e){this._context=e}Mf.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,$u)}},result:vd};var Of,Ef,Pf,If,qf,Nf=Yu(),Df={point:vd,lineStart:function(){Df.point=Rf},lineEnd:function(){Of&&Lf(Ef,Pf),Df.point=vd},polygonStart:function(){Of=!0},polygonEnd:function(){Of=null},result:function(){var e=+Nf;return Nf.reset(),e}};function Rf(e,t){Df.point=Lf,Ef=If=e,Pf=qf=t}function Lf(e,t){Nf.add(hd((If-=e)*If+(qf-=t)*qf)),If=e,qf=t}var Ff=Df;function Bf(){this._string=[]}function jf(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function zf(e,t){var n,i,r=4.5;function o(e){return e&&("function"==typeof r&&i.pointRadius(+r.apply(this,arguments)),xd(e,n(i))),i.result()}return o.area=function(e){return xd(e,n(nf)),nf.result()},o.measure=function(e){return xd(e,n(Ff)),Ff.result()},o.bounds=function(e){return xd(e,n(lf)),lf.result()},o.centroid=function(e){return xd(e,n(Zf)),Zf.result()},o.projection=function(t){return arguments.length?(n=null==t?(e=null,Bp):(e=t).stream,o):e},o.context=function(e){return arguments.length?(i=null==e?(t=null,new Bf):new Mf(t=e),"function"!=typeof r&&i.pointRadius(r),o):t},o.pointRadius=function(e){return arguments.length?(r="function"==typeof e?e:(i.pointRadius(+e),+e),o):r},o.projection(e).context(t)}function Uf(e){return{stream:Hf(e)}}function Hf(e){return function(t){var n=new Yf;for(var i in e)n[i]=e[i];return n.stream=t,n}}function Yf(){}function Jf(e,t,n){var i=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=i&&e.clipExtent(null),xd(n,e.stream(lf)),t(lf.result()),null!=i&&e.clipExtent(i),e}function Gf(e,t,n){return Jf(e,function(n){var i=t[1][0]-t[0][0],r=t[1][1]-t[0][1],o=Math.min(i/(n[1][0]-n[0][0]),r/(n[1][1]-n[0][1])),a=+t[0][0]+(i-o*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(r-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([a,s])},n)}function Wf(e,t,n){return Gf(e,[[0,0],t],n)}function Vf(e,t,n){return Jf(e,function(n){var i=+t,r=i/(n[1][0]-n[0][0]),o=(i-r*(n[1][0]+n[0][0]))/2,a=-r*n[0][1];e.scale(150*r).translate([o,a])},n)}function Qf(e,t,n){return Jf(e,function(n){var i=+t,r=i/(n[1][1]-n[0][1]),o=-r*n[0][0],a=(i-r*(n[1][1]+n[0][1]))/2;e.scale(150*r).translate([o,a])},n)}Bf.prototype={_radius:4.5,_circle:jf(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=jf(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}},Yf.prototype={constructor:Yf,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 Xf=od(30*td);function Kf(e,t){return+t?function(e,t){function n(i,r,o,a,s,l,c,u,d,h,p,f,m,g){var v=c-i,y=u-r,_=v*v+y*y;if(_>4*t&&m--){var b=a+h,w=s+p,S=l+f,x=hd(b*b+w*w+S*S),C=md(S/=x),k=nd(nd(S)-1)<Vu||nd(o-d)<Vu?(o+d)/2:rd(w,b),T=e(k,C),A=T[0],Z=T[1],M=A-i,O=Z-r,E=y*M-v*O;(E*E/_>t||nd((v*M+y*O)/_-.5)>.3||a*h+s*p+l*f<Xf)&&(n(i,r,o,a,s,l,A,Z,k,b/=x,w/=x,S,m,g),g.point(A,Z),n(A,Z,k,b,w,S,c,u,d,h,p,f,m,g))}}return function(t){var i,r,o,a,s,l,c,u,d,h,p,f,m={point:g,lineStart:v,lineEnd:_,polygonStart:function(){t.polygonStart(),m.lineStart=b},polygonEnd:function(){t.polygonEnd(),m.lineStart=v}};function g(n,i){n=e(n,i),t.point(n[0],n[1])}function v(){u=NaN,m.point=y,t.lineStart()}function y(i,r){var o=Ld([i,r]),a=e(i,r);n(u,d,c,h,p,f,u=a[0],d=a[1],c=i,h=o[0],p=o[1],f=o[2],16,t),t.point(u,d)}function _(){m.point=g,t.lineEnd()}function b(){v(),m.point=w,m.lineEnd=S}function w(e,t){y(i=e,t),r=u,o=d,a=h,s=p,l=f,m.point=y}function S(){n(u,d,c,h,p,f,r,o,i,a,s,l,16,t),m.lineEnd=_,_()}return m}}(e,t):function(e){return Hf({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}(e)}var $f=Hf({point:function(e,t){this.stream.point(e*td,t*td)}});function em(e,t,n){function i(i,r){return[t+e*i,n-e*r]}return i.invert=function(i,r){return[(i-t)/e,(n-r)/e]},i}function tm(e,t,n,i){var r=od(i),o=ud(i),a=r*e,s=o*e,l=r/e,c=o/e,u=(o*n-r*t)/e,d=(o*t+r*n)/e;function h(e,i){return[a*e-s*i+t,n-s*e-a*i]}return h.invert=function(e,t){return[l*e-c*t+u,d-c*e-l*t]},h}function nm(e){return im(function(){return e})()}function im(e){var t,n,i,r,o,a,s,l,c,u,d=150,h=480,p=250,f=0,m=0,g=0,v=0,y=0,_=0,b=null,w=lp,S=null,x=Bp,C=.5;function k(e){return l(e[0]*td,e[1]*td)}function T(e){return(e=l.invert(e[0],e[1]))&&[e[0]*ed,e[1]*ed]}function A(){var e=tm(d,0,0,_).apply(null,t(f,m)),i=(_?tm:em)(d,h-e[0],p-e[1],_);return n=Hh(g,v,y),s=zh(t,i),l=zh(n,s),a=Kf(s,C),Z()}function Z(){return c=u=null,k}return k.stream=function(e){return c&&u===e?c:c=$f(function(e){return Hf({point:function(t,n){var i=e(t,n);return this.stream.point(i[0],i[1])}})}(n)(w(a(x(u=e)))))},k.preclip=function(e){return arguments.length?(w=e,b=void 0,Z()):w},k.postclip=function(e){return arguments.length?(x=e,S=i=r=o=null,Z()):x},k.clipAngle=function(e){return arguments.length?(w=+e?cp(b=e*td):(b=null,lp),Z()):b*ed},k.clipExtent=function(e){return arguments.length?(x=null==e?(S=i=r=o=null,Bp):hp(S=+e[0][0],i=+e[0][1],r=+e[1][0],o=+e[1][1]),Z()):null==S?null:[[S,i],[r,o]]},k.scale=function(e){return arguments.length?(d=+e,A()):d},k.translate=function(e){return arguments.length?(h=+e[0],p=+e[1],A()):[h,p]},k.center=function(e){return arguments.length?(f=e[0]%360*td,m=e[1]%360*td,A()):[f*ed,m*ed]},k.rotate=function(e){return arguments.length?(g=e[0]%360*td,v=e[1]%360*td,y=e.length>2?e[2]%360*td:0,A()):[g*ed,v*ed,y*ed]},k.angle=function(e){return arguments.length?(_=e%360*td,A()):_*ed},k.precision=function(e){return arguments.length?(a=Kf(s,C=e*e),Z()):hd(C)},k.fitExtent=function(e,t){return Gf(k,e,t)},k.fitSize=function(e,t){return Wf(k,e,t)},k.fitWidth=function(e,t){return Vf(k,e,t)},k.fitHeight=function(e,t){return Qf(k,e,t)},function(){return t=e.apply(this,arguments),k.invert=t.invert&&T,A()}}function rm(e){var t=0,n=Qu/3,i=im(e),r=i(t,n);return r.parallels=function(e){return arguments.length?i(t=e[0]*td,n=e[1]*td):[t*ed,n*ed]},r}function om(e,t){var n=ud(e),i=(n+ud(t))/2;if(nd(i)<Vu)return function(e){var t=od(e);function n(e,n){return[e*t,ud(n)/t]}return n.invert=function(e,n){return[e/t,md(n*t)]},n}(e);var r=1+n*(2*i-n),o=hd(r)/i;function a(e,t){var n=hd(r-2*i*ud(t))/i;return[n*ud(e*=i),o-n*od(e)]}return a.invert=function(e,t){var n=o-t;return[rd(e,nd(n))/i*dd(n),md((r-(e*e+n*n)*i*i)/(2*i))]},a}function am(){return rm(om).scale(155.424).center([0,33.6442])}function sm(){return am().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function lm(){var e,t,n,i,r,o,a=sm(),s=am().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=am().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(e,t){o=[e,t]}};function u(e){var t=e[0],a=e[1];return o=null,n.point(t,a),o||(i.point(t,a),o)||(r.point(t,a),o)}function d(){return e=t=null,u}return u.invert=function(e){var t=a.scale(),n=a.translate(),i=(e[0]-n[0])/t,r=(e[1]-n[1])/t;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?s:r>=.166&&r<.234&&i>=-.214&&i<-.115?l:a).invert(e)},u.stream=function(n){return e&&t===n?e:(i=[a.stream(t=n),s.stream(n),l.stream(n)],r=i.length,e={point:function(e,t){for(var n=-1;++n<r;)i[n].point(e,t)},sphere:function(){for(var e=-1;++e<r;)i[e].sphere()},lineStart:function(){for(var e=-1;++e<r;)i[e].lineStart()},lineEnd:function(){for(var e=-1;++e<r;)i[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<r;)i[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<r;)i[e].polygonEnd()}});var i,r},u.precision=function(e){return arguments.length?(a.precision(e),s.precision(e),l.precision(e),d()):a.precision()},u.scale=function(e){return arguments.length?(a.scale(e),s.scale(.35*e),l.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(c),i=s.translate([o-.307*t,u+.201*t]).clipExtent([[o-.425*t+Vu,u+.12*t+Vu],[o-.214*t-Vu,u+.234*t-Vu]]).stream(c),r=l.translate([o-.205*t,u+.212*t]).clipExtent([[o-.214*t+Vu,u+.166*t+Vu],[o-.115*t-Vu,u+.234*t-Vu]]).stream(c),d()},u.fitExtent=function(e,t){return Gf(u,e,t)},u.fitSize=function(e,t){return Wf(u,e,t)},u.fitWidth=function(e,t){return Vf(u,e,t)},u.fitHeight=function(e,t){return Qf(u,e,t)},u.scale(1070)}function cm(e){return function(t,n){var i=od(t),r=od(n),o=e(i*r);return[o*r*ud(t),o*ud(n)]}}function um(e){return function(t,n){var i=hd(t*t+n*n),r=e(i),o=ud(r),a=od(r);return[rd(t*o,i*a),md(i&&n*o/i)]}}var dm=cm(function(e){return hd(2/(1+e))});function hm(){return nm(dm).scale(124.75).clipAngle(179.999)}dm.invert=um(function(e){return 2*md(e/2)});var pm=cm(function(e){return(e=fd(e))&&e/ud(e)});function fm(){return nm(pm).scale(79.4188).clipAngle(179.999)}function mm(e,t){return[e,ld(pd((Xu+t)/2))]}function gm(){return vm(mm).scale(961/$u)}function vm(e){var t,n,i,r=nm(e),o=r.center,a=r.scale,s=r.translate,l=r.clipExtent,c=null;function u(){var o=Qu*a(),s=r(Wh(r.rotate()).invert([0,0]));return l(null==c?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:e===mm?[[Math.max(s[0]-o,c),t],[Math.min(s[0]+o,n),i]]:[[c,Math.max(s[1]-o,t)],[n,Math.min(s[1]+o,i)]])}return r.scale=function(e){return arguments.length?(a(e),u()):a()},r.translate=function(e){return arguments.length?(s(e),u()):s()},r.center=function(e){return arguments.length?(o(e),u()):o()},r.clipExtent=function(e){return arguments.length?(null==e?c=t=n=i=null:(c=+e[0][0],t=+e[0][1],n=+e[1][0],i=+e[1][1]),u()):null==c?null:[[c,t],[n,i]]},u()}function ym(e){return pd((Xu+e)/2)}function _m(e,t){var n=od(e),i=e===t?ud(e):ld(n/od(t))/ld(ym(t)/ym(e)),r=n*cd(ym(e),i)/i;if(!i)return mm;function o(e,t){r>0?t<-Xu+Vu&&(t=-Xu+Vu):t>Xu-Vu&&(t=Xu-Vu);var n=r/cd(ym(t),i);return[n*ud(i*e),r-n*od(i*e)]}return o.invert=function(e,t){var n=r-t,o=dd(i)*hd(e*e+n*n);return[rd(e,nd(n))/i*dd(n),2*id(cd(r/o,1/i))-Xu]},o}function bm(){return rm(_m).scale(109.5).parallels([30,30])}function wm(e,t){return[e,t]}function Sm(){return nm(wm).scale(152.63)}function xm(e,t){var n=od(e),i=e===t?ud(e):(n-od(t))/(t-e),r=n/i+e;if(nd(i)<Vu)return wm;function o(e,t){var n=r-t,o=i*e;return[n*ud(o),r-n*od(o)]}return o.invert=function(e,t){var n=r-t;return[rd(e,nd(n))/i*dd(n),r-dd(i)*hd(e*e+n*n)]},o}function Cm(){return rm(xm).scale(131.154).center([0,13.9389])}function km(e,t){var n=od(t),i=od(e)*n;return[n*ud(e)/i,ud(t)/i]}function Tm(){return nm(km).scale(144.049).clipAngle(60)}function Am(e,t,n,i){return 1===e&&1===t&&0===n&&0===i?Bp:Hf({point:function(r,o){this.stream.point(r*e+n,o*t+i)}})}function Zm(){var e,t,n,i,r,o,a=1,s=0,l=0,c=1,u=1,d=Bp,h=null,p=Bp;function f(){return i=r=null,o}return o={stream:function(e){return i&&r===e?i:i=d(p(r=e))},postclip:function(i){return arguments.length?(p=i,h=e=t=n=null,f()):p},clipExtent:function(i){return arguments.length?(p=null==i?(h=e=t=n=null,Bp):hp(h=+i[0][0],e=+i[0][1],t=+i[1][0],n=+i[1][1]),f()):null==h?null:[[h,e],[t,n]]},scale:function(e){return arguments.length?(d=Am((a=+e)*c,a*u,s,l),f()):a},translate:function(e){return arguments.length?(d=Am(a*c,a*u,s=+e[0],l=+e[1]),f()):[s,l]},reflectX:function(e){return arguments.length?(d=Am(a*(c=e?-1:1),a*u,s,l),f()):c<0},reflectY:function(e){return arguments.length?(d=Am(a*c,a*(u=e?-1:1),s,l),f()):u<0},fitExtent:function(e,t){return Gf(o,e,t)},fitSize:function(e,t){return Wf(o,e,t)},fitWidth:function(e,t){return Vf(o,e,t)},fitHeight:function(e,t){return Qf(o,e,t)}}}function Mm(e,t){var n=t*t,i=n*n;return[e*(.8707-.131979*n+i*(i*(.003971*n-.001529*i)-.013791)),t*(1.007226+n*(.015085+i*(.028874*n-.044475-.005916*i)))]}function Om(){return nm(Mm).scale(175.295)}function Em(e,t){return[od(t)*ud(e),ud(t)]}function Pm(){return nm(Em).scale(249.5).clipAngle(90.000001)}function Im(e,t){var n=od(t),i=1+od(e)*n;return[n*ud(e)/i,ud(t)/i]}function qm(){return nm(Im).scale(250).clipAngle(142)}function Nm(e,t){return[ld(pd((Xu+t)/2)),-e]}function Dm(){var e=vm(Nm),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 Rm(e,t){return e.parent===t.parent?1:2}function Lm(e,t){return e+t.x}function Fm(e,t){return Math.max(e,t.y)}function Bm(){var e=Rm,t=1,n=1,i=!1;function r(r){var o,a=0;r.eachAfter(function(t){var n=t.children;n?(t.x=function(e){return e.reduce(Lm,0)/e.length}(n),t.y=function(e){return 1+e.reduce(Fm,0)}(n)):(t.x=o?a+=e(t,o):0,t.y=0,o=t)});var s=function(e){for(var t;t=e.children;)e=t[0];return e}(r),l=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(r),c=s.x-e(s,l)/2,u=l.x+e(l,s)/2;return r.eachAfter(i?function(e){e.x=(e.x-r.x)*t,e.y=(r.y-e.y)*n}:function(e){e.x=(e.x-c)/(u-c)*t,e.y=(1-(r.y?e.y/r.y:1))*n})}return r.separation=function(t){return arguments.length?(e=t,r):e},r.size=function(e){return arguments.length?(i=!1,t=+e[0],n=+e[1],r):i?null:[t,n]},r.nodeSize=function(e){return arguments.length?(i=!0,t=+e[0],n=+e[1],r):i?[t,n]:null},r}function jm(e){var t=0,n=e.children,i=n&&n.length;if(i)for(;--i>=0;)t+=n[i].value;else t=1;e.value=t}function zm(e,t){var n,i,r,o,a,s=new Jm(e),l=+e.value&&(s.value=e.value),c=[s];for(null==t&&(t=Um);n=c.pop();)if(l&&(n.value=+n.data.value),(r=t(n.data))&&(a=r.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(i=n.children[o]=new Jm(r[o])),i.parent=n,i.depth=n.depth+1;return s.eachBefore(Ym)}function Um(e){return e.children}function Hm(e){e.data=e.data.data}function Ym(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Jm(e){this.data=e,this.depth=this.height=0,this.parent=null}pm.invert=um(function(e){return e}),mm.invert=function(e,t){return[e,2*id(sd(t))-Xu]},wm.invert=wm,km.invert=um(id),Mm.invert=function(e,t){var n,i=t,r=25;do{var o=i*i,a=o*o;i-=n=(i*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-t)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(nd(n)>Vu&&--r>0);return[e/(.8707+(o=i*i)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),i]},Em.invert=um(md),Im.invert=um(function(e){return 2*id(e)}),Nm.invert=function(e,t){return[-t,2*id(sd(e))-Xu]},Jm.prototype=zm.prototype={constructor:Jm,count:function(){return this.eachAfter(jm)},each:function(e){var t,n,i,r,o=this,a=[o];do{for(t=a.reverse(),a=[];o=t.pop();)if(e(o),n=o.children)for(i=0,r=n.length;i<r;++i)a.push(n[i])}while(a.length);return this},eachAfter:function(e){for(var t,n,i,r=this,o=[r],a=[];r=o.pop();)if(a.push(r),t=r.children)for(n=0,i=t.length;n<i;++n)o.push(t[n]);for(;r=a.pop();)e(r);return this},eachBefore:function(e){for(var t,n,i=this,r=[i];i=r.pop();)if(e(i),t=i.children)for(n=t.length-1;n>=0;--n)r.push(t[n]);return this},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,i=t.children,r=i&&i.length;--r>=0;)n+=i[r].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),i=t.ancestors(),r=null;for(e=n.pop(),t=i.pop();e===t;)r=e,e=n.pop(),t=i.pop();return r}(t,e),i=[t];t!==n;)i.push(t=t.parent);for(var r=i.length;e!==n;)i.splice(r,0,e),e=e.parent;return i},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each(function(t){e.push(t)}),e},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return zm(this).eachBefore(Hm)}};var Gm=Array.prototype.slice;function Wm(e){for(var t,n,i=0,r=(e=function(e){for(var t,n,i=e.length;i;)n=Math.random()*i--|0,t=e[i],e[i]=e[n],e[n]=t;return e}(Gm.call(e))).length,o=[];i<r;)t=e[i],n&&Xm(n,t)?++i:(n=$m(o=Vm(o,t)),i=0);return n}function Vm(e,t){var n,i;if(Km(t,e))return[t];for(n=0;n<e.length;++n)if(Qm(t,e[n])&&Km(eg(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(i=n+1;i<e.length;++i)if(Qm(eg(e[n],e[i]),t)&&Qm(eg(e[n],t),e[i])&&Qm(eg(e[i],t),e[n])&&Km(tg(e[n],e[i],t),e))return[e[n],e[i],t];throw new Error}function Qm(e,t){var n=e.r-t.r,i=t.x-e.x,r=t.y-e.y;return n<0||n*n<i*i+r*r}function Xm(e,t){var n=e.r-t.r+1e-6,i=t.x-e.x,r=t.y-e.y;return n>0&&n*n>i*i+r*r}function Km(e,t){for(var n=0;n<t.length;++n)if(!Xm(e,t[n]))return!1;return!0}function $m(e){switch(e.length){case 1:return function(e){return{x:e.x,y:e.y,r:e.r}}(e[0]);case 2:return eg(e[0],e[1]);case 3:return tg(e[0],e[1],e[2])}}function eg(e,t){var n=e.x,i=e.y,r=e.r,o=t.x,a=t.y,s=t.r,l=o-n,c=a-i,u=s-r,d=Math.sqrt(l*l+c*c);return{x:(n+o+l/d*u)/2,y:(i+a+c/d*u)/2,r:(d+r+s)/2}}function tg(e,t,n){var i=e.x,r=e.y,o=e.r,a=t.x,s=t.y,l=t.r,c=n.x,u=n.y,d=n.r,h=i-a,p=i-c,f=r-s,m=r-u,g=l-o,v=d-o,y=i*i+r*r-o*o,_=y-a*a-s*s+l*l,b=y-c*c-u*u+d*d,w=p*f-h*m,S=(f*b-m*_)/(2*w)-i,x=(m*g-f*v)/w,C=(p*_-h*b)/(2*w)-r,k=(h*v-p*g)/w,T=x*x+k*k-1,A=2*(o+S*x+C*k),Z=S*S+C*C-o*o,M=-(T?(A+Math.sqrt(A*A-4*T*Z))/(2*T):Z/A);return{x:i+S+x*M,y:r+C+k*M,r:M}}function ng(e,t,n){var i,r,o,a,s=e.x-t.x,l=e.y-t.y,c=s*s+l*l;c?(r=t.r+n.r,a=e.r+n.r,(r*=r)>(a*=a)?(i=(c+a-r)/(2*c),o=Math.sqrt(Math.max(0,a/c-i*i)),n.x=e.x-i*s-o*l,n.y=e.y-i*l+o*s):(i=(c+r-a)/(2*c),o=Math.sqrt(Math.max(0,r/c-i*i)),n.x=t.x+i*s-o*l,n.y=t.y+i*l+o*s)):(n.x=t.x+n.r,n.y=t.y)}function ig(e,t){var n=e.r+t.r-1e-6,i=t.x-e.x,r=t.y-e.y;return n>0&&n*n>i*i+r*r}function rg(e){var t=e._,n=e.next._,i=t.r+n.r,r=(t.x*n.r+n.x*t.r)/i,o=(t.y*n.r+n.y*t.r)/i;return r*r+o*o}function og(e){this._=e,this.next=null,this.previous=null}function ag(e){if(!(r=e.length))return 0;var t,n,i,r,o,a,s,l,c,u,d;if((t=e[0]).x=0,t.y=0,!(r>1))return t.r;if(t.x=-(n=e[1]).r,n.x=t.r,n.y=0,!(r>2))return t.r+n.r;ng(n,t,i=e[2]),t=new og(t),n=new og(n),i=new og(i),t.next=i.previous=n,n.next=t.previous=i,i.next=n.previous=t;e:for(s=3;s<r;++s){ng(t._,n._,i=e[s]),i=new og(i),l=n.next,c=t.previous,u=n._.r,d=t._.r;do{if(u<=d){if(ig(l._,i._)){t.next=n=l,n.previous=t,--s;continue e}u+=l._.r,l=l.next}else{if(ig(c._,i._)){(t=c).next=n,n.previous=t,--s;continue e}d+=c._.r,c=c.previous}}while(l!==c.next);for(i.previous=t,i.next=n,t.next=n.previous=n=i,o=rg(t);(i=i.next)!==n;)(a=rg(i))<o&&(t=i,o=a);n=t.next}for(t=[n._],i=n;(i=i.next)!==n;)t.push(i._);for(i=Wm(t),s=0;s<r;++s)(t=e[s]).x-=i.x,t.y-=i.y;return i.r}function sg(e){return ag(e),e}function lg(e){return null==e?null:cg(e)}function cg(e){if("function"!=typeof e)throw new Error;return e}function ug(){return 0}function dg(e){return function(){return e}}function hg(e){return Math.sqrt(e.value)}function pg(){var e=null,t=1,n=1,i=ug;function r(r){return r.x=t/2,r.y=n/2,e?r.eachBefore(fg(e)).eachAfter(mg(i,.5)).eachBefore(gg(1)):r.eachBefore(fg(hg)).eachAfter(mg(ug,1)).eachAfter(mg(i,r.r/Math.min(t,n))).eachBefore(gg(Math.min(t,n)/(2*r.r))),r}return r.radius=function(t){return arguments.length?(e=lg(t),r):e},r.size=function(e){return arguments.length?(t=+e[0],n=+e[1],r):[t,n]},r.padding=function(e){return arguments.length?(i="function"==typeof e?e:dg(+e),r):i},r}function fg(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function mg(e,t){return function(n){if(i=n.children){var i,r,o,a=i.length,s=e(n)*t||0;if(s)for(r=0;r<a;++r)i[r].r+=s;if(o=ag(i),s)for(r=0;r<a;++r)i[r].r-=s;n.r=o+s}}}function gg(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)}}function vg(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)}function yg(e,t,n,i,r){for(var o,a=e.children,s=-1,l=a.length,c=e.value&&(i-t)/e.value;++s<l;)(o=a[s]).y0=n,o.y1=r,o.x0=t,o.x1=t+=o.value*c}function _g(){var e=1,t=1,n=0,i=!1;function r(r){var o=r.height+1;return r.x0=r.y0=n,r.x1=e,r.y1=t/o,r.eachBefore(function(e,t){return function(i){i.children&&yg(i,i.x0,e*(i.depth+1)/t,i.x1,e*(i.depth+2)/t);var r=i.x0,o=i.y0,a=i.x1-n,s=i.y1-n;a<r&&(r=a=(r+a)/2),s<o&&(o=s=(o+s)/2),i.x0=r,i.y0=o,i.x1=a,i.y1=s}}(t,o)),i&&r.eachBefore(vg),r}return r.round=function(e){return arguments.length?(i=!!e,r):i},r.size=function(n){return arguments.length?(e=+n[0],t=+n[1],r):[e,t]},r.padding=function(e){return arguments.length?(n=+e,r):n},r}var bg={depth:-1},wg={};function Sg(e){return e.id}function xg(e){return e.parentId}function Cg(){var e=Sg,t=xg;function n(n){var i,r,o,a,s,l,c,u=n.length,d=new Array(u),h={};for(r=0;r<u;++r)s=d[r]=new Jm(i=n[r]),null!=(l=e(i,r,n))&&(l+="")&&(h[c="$"+(s.id=l)]=c in h?wg:s);for(r=0;r<u;++r)if(s=d[r],null!=(l=t(n[r],r,n))&&(l+="")){if(!(a=h["$"+l]))throw new Error("missing: "+l);if(a===wg)throw new Error("ambiguous: "+l);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=bg,o.eachBefore(function(e){e.depth=e.parent.depth+1,--u}).eachBefore(Ym),o.parent=null,u>0)throw new Error("cycle");return o}return n.id=function(t){return arguments.length?(e=cg(t),n):e},n.parentId=function(e){return arguments.length?(t=cg(e),n):t},n}function kg(e,t){return e.parent===t.parent?1:2}function Tg(e){var t=e.children;return t?t[0]:e.t}function Ag(e){var t=e.children;return t?t[t.length-1]:e.t}function Zg(e,t,n){var i=n/(t.i-e.i);t.c-=i,t.s+=n,e.c+=i,t.z+=n,t.m+=n}function Mg(e,t,n){return e.a.parent===t.parent?e.a:n}function Og(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}function Eg(){var e=kg,t=1,n=1,i=null;function r(r){var l=function(e){for(var t,n,i,r,o,a=new Og(e,0),s=[a];t=s.pop();)if(i=t._.children)for(t.children=new Array(o=i.length),r=o-1;r>=0;--r)s.push(n=t.children[r]=new Og(i[r],r)),n.parent=t;return(a.parent=new Og(null,0)).children=[a],a}(r);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(a),i)r.eachBefore(s);else{var c=r,u=r,d=r;r.eachBefore(function(e){e.x<c.x&&(c=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)});var h=c===u?1:e(c,u)/2,p=h-c.x,f=t/(u.x+h+p),m=n/(d.depth||1);r.eachBefore(function(e){e.x=(e.x+p)*f,e.y=e.depth*m})}return r}function o(t){var n=t.children,i=t.parent.children,r=t.i?i[t.i-1]:null;if(n){!function(e){for(var t,n=0,i=0,r=e.children,o=r.length;--o>=0;)(t=r[o]).z+=n,t.m+=n,n+=t.s+(i+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;r?(t.z=r.z+e(t._,r._),t.m=t.z-o):t.z=o}else r&&(t.z=r.z+e(t._,r._));t.parent.A=function(t,n,i){if(n){for(var r,o=t,a=t,s=n,l=o.parent.children[0],c=o.m,u=a.m,d=s.m,h=l.m;s=Ag(s),o=Tg(o),s&&o;)l=Tg(l),(a=Ag(a)).a=t,(r=s.z+d-o.z-c+e(s._,o._))>0&&(Zg(Mg(s,t,i),t,r),c+=r,u+=r),d+=s.m,c+=o.m,h+=l.m,u+=a.m;s&&!Ag(a)&&(a.t=s,a.m+=d-u),o&&!Tg(l)&&(l.t=o,l.m+=c-h,i=t)}return i}(t,r,t.parent.A||i[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return r.separation=function(t){return arguments.length?(e=t,r):e},r.size=function(e){return arguments.length?(i=!1,t=+e[0],n=+e[1],r):i?null:[t,n]},r.nodeSize=function(e){return arguments.length?(i=!0,t=+e[0],n=+e[1],r):i?[t,n]:null},r}function Pg(e,t,n,i,r){for(var o,a=e.children,s=-1,l=a.length,c=e.value&&(r-n)/e.value;++s<l;)(o=a[s]).x0=t,o.x1=i,o.y0=n,o.y1=n+=o.value*c}Og.prototype=Object.create(Jm.prototype);var Ig=(1+Math.sqrt(5))/2;function qg(e,t,n,i,r,o){for(var a,s,l,c,u,d,h,p,f,m,g,v=[],y=t.children,_=0,b=0,w=y.length,S=t.value;_<w;){l=r-n,c=o-i;do{u=y[b++].value}while(!u&&b<w);for(d=h=u,g=u*u*(m=Math.max(c/l,l/c)/(S*e)),f=Math.max(h/g,g/d);b<w;++b){if(u+=s=y[b].value,s<d&&(d=s),s>h&&(h=s),g=u*u*m,(p=Math.max(h/g,g/d))>f){u-=s;break}f=p}v.push(a={value:u,dice:l<c,children:y.slice(_,b)}),a.dice?yg(a,n,i,r,S?i+=c*u/S:o):Pg(a,n,i,S?n+=l*u/S:r,o),S-=u,_=b}return v}var Ng=function e(t){function n(e,n,i,r,o){qg(t,e,n,i,r,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(Ig);function Dg(){var e=Ng,t=!1,n=1,i=1,r=[0],o=ug,a=ug,s=ug,l=ug,c=ug;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=i,e.eachBefore(d),r=[0],t&&e.eachBefore(vg),e}function d(t){var n=r[t.depth],i=t.x0+n,u=t.y0+n,d=t.x1-n,h=t.y1-n;d<i&&(i=d=(i+d)/2),h<u&&(u=h=(u+h)/2),t.x0=i,t.y0=u,t.x1=d,t.y1=h,t.children&&(n=r[t.depth+1]=o(t)/2,i+=c(t)-n,u+=a(t)-n,(d-=s(t)-n)<i&&(i=d=(i+d)/2),(h-=l(t)-n)<u&&(u=h=(u+h)/2),e(t,i,u,d,h))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],i=+e[1],u):[n,i]},u.tile=function(t){return arguments.length?(e=cg(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:dg(+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:dg(+e),u):a},u.paddingRight=function(e){return arguments.length?(s="function"==typeof e?e:dg(+e),u):s},u.paddingBottom=function(e){return arguments.length?(l="function"==typeof e?e:dg(+e),u):l},u.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:dg(+e),u):c},u}function Rg(e,t,n,i,r){var o,a,s=e.children,l=s.length,c=new Array(l+1);for(c[0]=a=o=0;o<l;++o)c[o+1]=a+=s[o].value;!function e(t,n,i,r,o,a,l){if(t>=n-1){var u=s[t];return u.x0=r,u.y0=o,u.x1=a,void(u.y1=l)}for(var d=c[t],h=i/2+d,p=t+1,f=n-1;p<f;){var m=p+f>>>1;c[m]<h?p=m+1:f=m}h-c[p-1]<c[p]-h&&t+1<p&&--p;var g=c[p]-d,v=i-g;if(a-r>l-o){var y=(r*v+a*g)/i;e(t,p,g,r,o,y,l),e(p,n,v,y,o,a,l)}else{var _=(o*v+l*g)/i;e(t,p,g,r,o,a,_),e(p,n,v,r,_,a,l)}}(0,l,e.value,t,n,i,r)}function Lg(e,t,n,i,r){(1&e.depth?Pg:yg)(e,t,n,i,r)}var Fg=function e(t){function n(e,n,i,r,o){if((a=e._squarify)&&a.ratio===t)for(var a,s,l,c,u,d=-1,h=a.length,p=e.value;++d<h;){for(l=(s=a[d]).children,c=s.value=0,u=l.length;c<u;++c)s.value+=l[c].value;s.dice?yg(s,n,i,r,i+=(o-i)*s.value/p):Pg(s,n,i,n+=(r-n)*s.value/p,o),p-=s.value}else e._squarify=a=qg(t,e,n,i,r,o),a.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(Ig);function Bg(e){for(var t,n=-1,i=e.length,r=e[i-1],o=0;++n<i;)o+=(t=r)[1]*(r=e[n])[0]-t[0]*r[1];return o/2}function jg(e){for(var t,n,i=-1,r=e.length,o=0,a=0,s=e[r-1],l=0;++i<r;)l+=n=(t=s)[0]*(s=e[i])[1]-s[0]*t[1],o+=(t[0]+s[0])*n,a+=(t[1]+s[1])*n;return[o/(l*=3),a/l]}function zg(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Ug(e,t){return e[0]-t[0]||e[1]-t[1]}function Hg(e){for(var t=e.length,n=[0,1],i=2,r=2;r<t;++r){for(;i>1&&zg(e[n[i-2]],e[n[i-1]],e[r])<=0;)--i;n[i++]=r}return n.slice(0,i)}function Yg(e){if((n=e.length)<3)return null;var t,n,i=new Array(n),r=new Array(n);for(t=0;t<n;++t)i[t]=[+e[t][0],+e[t][1],t];for(i.sort(Ug),t=0;t<n;++t)r[t]=[i[t][0],-i[t][1]];var o=Hg(i),a=Hg(r),s=a[0]===o[0],l=a[a.length-1]===o[o.length-1],c=[];for(t=o.length-1;t>=0;--t)c.push(e[i[o[t]][2]]);for(t=+s;t<a.length-l;++t)c.push(e[i[a[t]][2]]);return c}function Jg(e,t){for(var n,i,r=e.length,o=e[r-1],a=t[0],s=t[1],l=o[0],c=o[1],u=!1,d=0;d<r;++d)n=(o=e[d])[0],(i=o[1])>s!=c>s&&a<(l-n)*(s-i)/(c-i)+n&&(u=!u),l=n,c=i;return u}function Gg(e){for(var t,n,i=-1,r=e.length,o=e[r-1],a=o[0],s=o[1],l=0;++i<r;)t=a,n=s,t-=a=(o=e[i])[0],n-=s=o[1],l+=Math.sqrt(t*t+n*n);return l}function Wg(){return Math.random()}var Vg=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}(Wg),Qg=function e(t){function n(e,n){var i,r;return e=null==e?0:+e,n=null==n?1:+n,function(){var o;if(null!=i)o=i,i=null;else do{i=2*t()-1,o=2*t()-1,r=i*i+o*o}while(!r||r>1);return e+n*o*Math.sqrt(-2*Math.log(r)/r)}}return n.source=e,n}(Wg),Xg=function e(t){function n(){var e=Qg.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(Wg),Kg=function e(t){function n(e){return function(){for(var n=0,i=0;i<e;++i)n+=t();return n}}return n.source=e,n}(Wg),$g=function e(t){function n(e){var n=Kg.source(t)(e);return function(){return n()/e}}return n.source=e,n}(Wg),ev=function e(t){function n(e){return function(){return-Math.log(1-t())/e}}return n.source=e,n}(Wg),tv=Array.prototype,nv=tv.map,iv=tv.slice,rv={name:"implicit"};function ov(e){var t=El(),n=[],i=rv;function r(r){var o=r+"",a=t.get(o);if(!a){if(i!==rv)return i;t.set(o,a=n.push(r))}return e[(a-1)%e.length]}return e=null==e?[]:iv.call(e),r.domain=function(e){if(!arguments.length)return n.slice();n=[],t=El();for(var i,o,a=-1,s=e.length;++a<s;)t.has(o=(i=e[a])+"")||t.set(o,n.push(i));return r},r.range=function(t){return arguments.length?(e=iv.call(t),r):e.slice()},r.unknown=function(e){return arguments.length?(i=e,r):i},r.copy=function(){return ov().domain(n).range(e).unknown(i)},r}function av(){var e,t,n=ov().unknown(void 0),i=n.domain,r=n.range,o=[0,1],a=!1,s=0,l=0,c=.5;function u(){var n=i().length,u=o[1]<o[0],d=o[u-0],h=o[1-u];e=(h-d)/Math.max(1,n-s+2*l),a&&(e=Math.floor(e)),d+=(h-d-e*(n-s))*c,t=e*(1-s),a&&(d=Math.round(d),t=Math.round(t));var p=vn(n).map(function(t){return d+e*t});return r(u?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),u()):i()},n.range=function(e){return arguments.length?(o=[+e[0],+e[1]],u()):o.slice()},n.rangeRound=function(e){return o=[+e[0],+e[1]],a=!0,u()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,u()):a},n.padding=function(e){return arguments.length?(s=l=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?(l=Math.max(0,Math.min(1,e)),u()):l},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),u()):c},n.copy=function(){return av().domain(i()).range(o).round(a).paddingInner(s).paddingOuter(l).align(c)},u()}function sv(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return sv(t())},e}function lv(){return sv(av().paddingInner(1))}function cv(e){return function(){return e}}function uv(e){return+e}var dv=[0,1];function hv(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:cv(t)}function pv(e,t,n,i){var r=e[0],o=e[1],a=t[0],s=t[1];return o<r?(r=n(o,r),a=i(s,a)):(r=n(r,o),a=i(a,s)),function(e){return a(r(e))}}function fv(e,t,n,i){var r=Math.min(e.length,t.length)-1,o=new Array(r),a=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)o[s]=n(e[s],e[s+1]),a[s]=i(t[s],t[s+1]);return function(t){var n=nn(e,t,1,r)-1;return a[n](o[n](t))}}function mv(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function gv(e,t){var n,i,r,o=dv,a=dv,s=ia,l=!1;function c(){return n=Math.min(o.length,a.length)>2?fv:pv,i=r=null,u}function u(t){return(i||(i=n(o,a,l?function(e){return function(t,n){var i=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:i(e)}}}(e):e,s)))(+t)}return u.invert=function(e){return(r||(r=n(a,o,hv,l?function(e){return function(t,n){var i=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:i(e)}}}(t):t)))(+e)},u.domain=function(e){return arguments.length?(o=nv.call(e,uv),c()):o.slice()},u.range=function(e){return arguments.length?(a=iv.call(e),c()):a.slice()},u.rangeRound=function(e){return a=iv.call(e),s=ra,c()},u.clamp=function(e){return arguments.length?(l=!!e,c()):l},u.interpolate=function(e){return arguments.length?(s=e,c()):s},c()}function vv(e){var t=e.domain;return e.ticks=function(e){var n=t();return wn(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return function(e,t,n){var i,r=e[0],o=e[e.length-1],a=xn(r,o,null==t?10:t);switch((n=Iu(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(r),Math.abs(o));return null!=n.precision||isNaN(i=Uu(a,s))||(n.precision=i),Lu(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=Hu(a,Math.max(Math.abs(r),Math.abs(o))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=zu(a))||(n.precision=i-2*("%"===n.type))}return Ru(n)}(t(),e,n)},e.nice=function(n){null==n&&(n=10);var i,r=t(),o=0,a=r.length-1,s=r[o],l=r[a];return l<s&&(i=s,s=l,l=i,i=o,o=a,a=i),(i=Sn(s,l,n))>0?i=Sn(s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i,n):i<0&&(i=Sn(s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i,n)),i>0?(r[o]=Math.floor(s/i)*i,r[a]=Math.ceil(l/i)*i,t(r)):i<0&&(r[o]=Math.ceil(s*i)/i,r[a]=Math.floor(l*i)/i,t(r)),e},e}function yv(){var e=gv(hv,Ko);return e.copy=function(){return mv(e,yv())},vv(e)}function _v(){var e=[0,1];function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=nv.call(n,uv),t):e.slice()},t.copy=function(){return _v().domain(e)},vv(t)}function bv(e,t){var n,i=0,r=(e=e.slice()).length-1,o=e[i],a=e[r];return a<o&&(n=i,i=r,r=n,n=o,o=a,a=n),e[i]=t.floor(o),e[r]=t.ceil(a),e}function wv(e,t){return(t=Math.log(t/e))?function(n){return Math.log(n/e)/t}:cv(t)}function Sv(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 xv(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Cv(e){return 10===e?xv:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function kv(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 Tv(e){return function(t){return-e(-t)}}function Av(){var e=gv(wv,Sv).domain([1,10]),t=e.domain,n=10,i=kv(10),r=Cv(10);function o(){return i=kv(n),r=Cv(n),t()[0]<0&&(i=Tv(i),r=Tv(r)),e}return e.base=function(e){return arguments.length?(n=+e,o()):n},e.domain=function(e){return arguments.length?(t(e),o()):t()},e.ticks=function(e){var o,a=t(),s=a[0],l=a[a.length-1];(o=l<s)&&(h=s,s=l,l=h);var c,u,d,h=i(s),p=i(l),f=null==e?10:+e,m=[];if(!(n%1)&&p-h<f){if(h=Math.round(h)-1,p=Math.round(p)+1,s>0){for(;h<p;++h)for(u=1,c=r(h);u<n;++u)if(!((d=c*u)<s)){if(d>l)break;m.push(d)}}else for(;h<p;++h)for(u=n-1,c=r(h);u>=1;--u)if(!((d=c*u)<s)){if(d>l)break;m.push(d)}}else m=wn(h,p,Math.min(p-h,f)).map(r);return o?m.reverse():m},e.tickFormat=function(t,o){if(null==o&&(o=10===n?".0e":","),"function"!=typeof o&&(o=Ru(o)),t===1/0)return o;null==t&&(t=10);var a=Math.max(1,n*t/e.ticks().length);return function(e){var t=e/r(Math.round(i(e)));return t*n<n-.5&&(t*=n),t<=a?o(e):""}},e.nice=function(){return t(bv(t(),{floor:function(e){return r(Math.floor(i(e)))},ceil:function(e){return r(Math.ceil(i(e)))}}))},e.copy=function(){return mv(e,Av().base(n))},e}function Zv(e,t){return e<0?-Math.pow(-e,t):Math.pow(e,t)}function Mv(){var e=1,t=gv(function(t,n){return(n=Zv(n,e)-(t=Zv(t,e)))?function(i){return(Zv(i,e)-t)/n}:cv(n)},function(t,n){return n=Zv(n,e)-(t=Zv(t,e)),function(i){return Zv(t+n*i,1/e)}}),n=t.domain;return t.exponent=function(t){return arguments.length?(e=+t,n(n())):e},t.copy=function(){return mv(t,Mv().exponent(e))},vv(t)}function Ov(){return Mv().exponent(.5)}function Ev(){var e=[],t=[],n=[];function i(){var i=0,o=Math.max(1,t.length);for(n=new Array(o-1);++i<o;)n[i-1]=Tn(e,i/o);return r}function r(e){if(!isNaN(e=+e))return t[nn(n,e)]}return r.invertExtent=function(i){var r=t.indexOf(i);return r<0?[NaN,NaN]:[r>0?n[r-1]:e[0],r<n.length?n[r]:e[e.length-1]]},r.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var n,r=0,o=t.length;r<o;++r)null==(n=t[r])||isNaN(n=+n)||e.push(n);return e.sort(Xt),i()},r.range=function(e){return arguments.length?(t=iv.call(e),i()):t.slice()},r.quantiles=function(){return n.slice()},r.copy=function(){return Ev().domain(e).range(t)},r}function Pv(){var e=0,t=1,n=1,i=[.5],r=[0,1];function o(e){if(e<=e)return r[nn(i,e,0,n)]}function a(){var r=-1;for(i=new Array(n);++r<n;)i[r]=((r+1)*t-(r-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?(e=+n[0],t=+n[1],a()):[e,t]},o.range=function(e){return arguments.length?(n=(r=iv.call(e)).length-1,a()):r.slice()},o.invertExtent=function(o){var a=r.indexOf(o);return a<0?[NaN,NaN]:a<1?[e,i[0]]:a>=n?[i[n-1],t]:[i[a-1],i[a]]},o.copy=function(){return Pv().domain([e,t]).range(r)},vv(o)}function Iv(){var e=[.5],t=[0,1],n=1;function i(i){if(i<=i)return t[nn(e,i,0,n)]}return i.domain=function(r){return arguments.length?(e=iv.call(r),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(r){return arguments.length?(t=iv.call(r),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(n){var i=t.indexOf(n);return[e[i-1],e[i]]},i.copy=function(){return Iv().domain(e).range(t)},i}var qv=new Date,Nv=new Date;function Dv(e,t,n,i){function r(t){return e(t=new Date(+t)),t}return r.floor=r,r.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},r.round=function(e){var t=r(e),n=r.ceil(e);return e-t<n-e?t:n},r.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},r.range=function(n,i,o){var a,s=[];if(n=r.ceil(n),o=null==o?1:Math.floor(o),!(n<i&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<i);return s},r.filter=function(n){return Dv(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,i){if(e>=e)if(i<0)for(;++i<=0;)for(;t(e,-1),!n(e););else for(;--i>=0;)for(;t(e,1),!n(e););})},n&&(r.count=function(t,i){return qv.setTime(+t),Nv.setTime(+i),e(qv),e(Nv),Math.floor(n(qv,Nv))},r.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?r.filter(i?function(t){return i(t)%e==0}:function(t){return r.count(0,t)%e==0}):r:null}),r}var Rv=Dv(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Rv.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Dv(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Rv:null};var Lv=Rv,Fv=Rv.range,Bv=1e3,jv=6e4,zv=36e5,Uv=864e5,Hv=6048e5,Yv=Dv(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Bv)},function(e,t){return(t-e)/Bv},function(e){return e.getUTCSeconds()}),Jv=Yv,Gv=Yv.range,Wv=Dv(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Bv)},function(e,t){e.setTime(+e+t*jv)},function(e,t){return(t-e)/jv},function(e){return e.getMinutes()}),Vv=Wv,Qv=Wv.range,Xv=Dv(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Bv-e.getMinutes()*jv)},function(e,t){e.setTime(+e+t*zv)},function(e,t){return(t-e)/zv},function(e){return e.getHours()}),Kv=Xv,$v=Xv.range,ey=Dv(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())*jv)/Uv},function(e){return e.getDate()-1}),ty=ey,ny=ey.range;function iy(e){return Dv(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())*jv)/Hv})}var ry=iy(0),oy=iy(1),ay=iy(2),sy=iy(3),ly=iy(4),cy=iy(5),uy=iy(6),dy=ry.range,hy=oy.range,py=ay.range,fy=sy.range,my=ly.range,gy=cy.range,vy=uy.range,yy=Dv(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()}),_y=yy,by=yy.range,wy=Dv(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()});wy.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Dv(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 Sy=wy,xy=wy.range,Cy=Dv(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*jv)},function(e,t){return(t-e)/jv},function(e){return e.getUTCMinutes()}),ky=Cy,Ty=Cy.range,Ay=Dv(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*zv)},function(e,t){return(t-e)/zv},function(e){return e.getUTCHours()}),Zy=Ay,My=Ay.range,Oy=Dv(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Uv},function(e){return e.getUTCDate()-1}),Ey=Oy,Py=Oy.range;function Iy(e){return Dv(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)/Hv})}var qy=Iy(0),Ny=Iy(1),Dy=Iy(2),Ry=Iy(3),Ly=Iy(4),Fy=Iy(5),By=Iy(6),jy=qy.range,zy=Ny.range,Uy=Dy.range,Hy=Ry.range,Yy=Ly.range,Jy=Fy.range,Gy=By.range,Wy=Dv(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()}),Vy=Wy,Qy=Wy.range,Xy=Dv(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()});Xy.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Dv(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 Ky=Xy,$y=Xy.range;function e_(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 t_(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 n_(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function i_(e){var t=e.dateTime,n=e.date,i=e.time,r=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=m_(r),u=g_(r),d=m_(o),h=g_(o),p=m_(a),f=g_(a),m=m_(s),g=g_(s),v=m_(l),y=g_(l),_={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:D_,e:D_,f:j_,H:R_,I:L_,j:F_,L:B_,m:z_,M:U_,p:function(e){return r[+(e.getHours()>=12)]},Q:vb,s:yb,S:H_,u:Y_,U:J_,V:G_,w:W_,W:V_,x:null,X:null,y:Q_,Y:X_,Z:K_,"%":gb},b={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:$_,e:$_,f:rb,H:eb,I:tb,j:nb,L:ib,m:ob,M:ab,p:function(e){return r[+(e.getUTCHours()>=12)]},Q:vb,s:yb,S:sb,u:lb,U:cb,V:ub,w:db,W:hb,x:null,X:null,y:pb,Y:fb,Z:mb,"%":gb},w={a:function(e,t,n){var i=p.exec(t.slice(n));return i?(e.w=f[i[0].toLowerCase()],n+i[0].length):-1},A:function(e,t,n){var i=d.exec(t.slice(n));return i?(e.w=h[i[0].toLowerCase()],n+i[0].length):-1},b:function(e,t,n){var i=v.exec(t.slice(n));return i?(e.m=y[i[0].toLowerCase()],n+i[0].length):-1},B:function(e,t,n){var i=m.exec(t.slice(n));return i?(e.m=g[i[0].toLowerCase()],n+i[0].length):-1},c:function(e,n,i){return C(e,t,n,i)},d:T_,e:T_,f:P_,H:Z_,I:Z_,j:A_,L:E_,m:k_,M:M_,p:function(e,t,n){var i=c.exec(t.slice(n));return i?(e.p=u[i[0].toLowerCase()],n+i[0].length):-1},Q:q_,s:N_,S:O_,u:y_,U:__,V:b_,w:v_,W:w_,x:function(e,t,i){return C(e,n,t,i)},X:function(e,t,n){return C(e,i,t,n)},y:x_,Y:S_,Z:C_,"%":I_};function S(e,t){return function(n){var i,r,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(r=c_[i=e.charAt(++s)])?i=e.charAt(++s):r="e"===i?" ":"0",(o=t[i])&&(i=o(n,r)),a.push(i),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function x(e,t){return function(n){var i,r,o=n_(1900);if(C(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=t_(n_(o.y))).getUTCDay(),i=r>4||0===r?Ny.ceil(i):Ny(i),i=Ey.offset(i,7*(o.V-1)),o.y=i.getUTCFullYear(),o.m=i.getUTCMonth(),o.d=i.getUTCDate()+(o.w+6)%7):(r=(i=t(n_(o.y))).getDay(),i=r>4||0===r?oy.ceil(i):oy(i),i=ty.offset(i,7*(o.V-1)),o.y=i.getFullYear(),o.m=i.getMonth(),o.d=i.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),r="Z"in o?t_(n_(o.y)).getUTCDay():t(n_(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,t_(o)):t(o)}}function C(e,t,n,i){for(var r,o,a=0,s=t.length,l=n.length;a<s;){if(i>=l)return-1;if(37===(r=t.charCodeAt(a++))){if(r=t.charAt(a++),!(o=w[r in c_?t.charAt(a++):r])||(i=o(e,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return _.x=S(n,_),_.X=S(i,_),_.c=S(t,_),b.x=S(n,b),b.X=S(i,b),b.c=S(t,b),{format:function(e){var t=S(e+="",_);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",e_);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+="",b);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e,t_);return t.toString=function(){return e},t}}}var r_,o_,a_,s_,l_,c_={"-":"",_:" ",0:"0"},u_=/^\s*\d+/,d_=/^%/,h_=/[\\^$*+?|[\]().{}]/g;function p_(e,t,n){var i=e<0?"-":"",r=(i?-e:e)+"",o=r.length;return i+(o<n?new Array(n-o+1).join(t)+r:r)}function f_(e){return e.replace(h_,"\\$&")}function m_(e){return new RegExp("^(?:"+e.map(f_).join("|")+")","i")}function g_(e){for(var t={},n=-1,i=e.length;++n<i;)t[e[n].toLowerCase()]=n;return t}function v_(e,t,n){var i=u_.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function y_(e,t,n){var i=u_.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function __(e,t,n){var i=u_.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function b_(e,t,n){var i=u_.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function w_(e,t,n){var i=u_.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function S_(e,t,n){var i=u_.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function x_(e,t,n){var i=u_.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function C_(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function k_(e,t,n){var i=u_.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function T_(e,t,n){var i=u_.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function A_(e,t,n){var i=u_.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function Z_(e,t,n){var i=u_.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function M_(e,t,n){var i=u_.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function O_(e,t,n){var i=u_.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function E_(e,t,n){var i=u_.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function P_(e,t,n){var i=u_.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function I_(e,t,n){var i=d_.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function q_(e,t,n){var i=u_.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function N_(e,t,n){var i=u_.exec(t.slice(n));return i?(e.Q=1e3*+i[0],n+i[0].length):-1}function D_(e,t){return p_(e.getDate(),t,2)}function R_(e,t){return p_(e.getHours(),t,2)}function L_(e,t){return p_(e.getHours()%12||12,t,2)}function F_(e,t){return p_(1+ty.count(Sy(e),e),t,3)}function B_(e,t){return p_(e.getMilliseconds(),t,3)}function j_(e,t){return B_(e,t)+"000"}function z_(e,t){return p_(e.getMonth()+1,t,2)}function U_(e,t){return p_(e.getMinutes(),t,2)}function H_(e,t){return p_(e.getSeconds(),t,2)}function Y_(e){var t=e.getDay();return 0===t?7:t}function J_(e,t){return p_(ry.count(Sy(e),e),t,2)}function G_(e,t){var n=e.getDay();return e=n>=4||0===n?ly(e):ly.ceil(e),p_(ly.count(Sy(e),e)+(4===Sy(e).getDay()),t,2)}function W_(e){return e.getDay()}function V_(e,t){return p_(oy.count(Sy(e),e),t,2)}function Q_(e,t){return p_(e.getFullYear()%100,t,2)}function X_(e,t){return p_(e.getFullYear()%1e4,t,4)}function K_(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+p_(t/60|0,"0",2)+p_(t%60,"0",2)}function $_(e,t){return p_(e.getUTCDate(),t,2)}function eb(e,t){return p_(e.getUTCHours(),t,2)}function tb(e,t){return p_(e.getUTCHours()%12||12,t,2)}function nb(e,t){return p_(1+Ey.count(Ky(e),e),t,3)}function ib(e,t){return p_(e.getUTCMilliseconds(),t,3)}function rb(e,t){return ib(e,t)+"000"}function ob(e,t){return p_(e.getUTCMonth()+1,t,2)}function ab(e,t){return p_(e.getUTCMinutes(),t,2)}function sb(e,t){return p_(e.getUTCSeconds(),t,2)}function lb(e){var t=e.getUTCDay();return 0===t?7:t}function cb(e,t){return p_(qy.count(Ky(e),e),t,2)}function ub(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Ly(e):Ly.ceil(e),p_(Ly.count(Ky(e),e)+(4===Ky(e).getUTCDay()),t,2)}function db(e){return e.getUTCDay()}function hb(e,t){return p_(Ny.count(Ky(e),e),t,2)}function pb(e,t){return p_(e.getUTCFullYear()%100,t,2)}function fb(e,t){return p_(e.getUTCFullYear()%1e4,t,4)}function mb(){return"+0000"}function gb(){return"%"}function vb(e){return+e}function yb(e){return Math.floor(+e/1e3)}function _b(e){return r_=i_(e),o_=r_.format,a_=r_.parse,s_=r_.utcFormat,l_=r_.utcParse,r_}_b({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 bb="%Y-%m-%dT%H:%M:%S.%LZ",wb=Date.prototype.toISOString?function(e){return e.toISOString()}:s_(bb),Sb=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:l_(bb),xb=31536e6;function Cb(e){return new Date(e)}function kb(e){return e instanceof Date?+e:+new Date(+e)}function Tb(e,t,n,i,r,o,a,s,l){var c=gv(hv,Ko),u=c.invert,d=c.domain,h=l(".%L"),p=l(":%S"),f=l("%I:%M"),m=l("%I %p"),g=l("%a %d"),v=l("%b %d"),y=l("%B"),_=l("%Y"),b=[[a,1,1e3],[a,5,5e3],[a,15,15e3],[a,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[r,1,36e5],[r,3,108e5],[r,6,216e5],[r,12,432e5],[i,1,864e5],[i,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,xb]];function w(s){return(a(s)<s?h:o(s)<s?p:r(s)<s?f:i(s)<s?m:t(s)<s?n(s)<s?g:v:e(s)<s?y:_)(s)}function S(t,n,i,r){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(i-n)/t,a=Kt(function(e){return e[2]}).right(b,o);a===b.length?(r=xn(n/xb,i/xb,t),t=e):a?(r=(a=b[o/b[a-1][2]<b[a][2]/o?a-1:a])[1],t=a[0]):(r=Math.max(xn(n,i,t),1),t=s)}return null==r?t:t.every(r)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(nv.call(e,kb)):d().map(Cb)},c.ticks=function(e,t){var n,i=d(),r=i[0],o=i[i.length-1],a=o<r;return a&&(n=r,r=o,o=n),n=(n=S(e,r,o,t))?n.range(r,o+1):[],a?n.reverse():n},c.tickFormat=function(e,t){return null==t?w:l(t)},c.nice=function(e,t){var n=d();return(e=S(e,n[0],n[n.length-1],t))?d(bv(n,e)):c},c.copy=function(){return mv(c,Tb(e,t,n,i,r,o,a,s,l))},c}function Ab(){return Tb(Sy,_y,ry,ty,Kv,Vv,Jv,Lv,o_).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}function Zb(){return Tb(Ky,Vy,qy,Ey,Zy,ky,Jv,Lv,s_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function Mb(e){var t=0,n=1,i=!1;function r(r){var o=(r-t)/(n-t);return e(i?Math.max(0,Math.min(1,o)):o)}return r.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],r):[t,n]},r.clamp=function(e){return arguments.length?(i=!!e,r):i},r.interpolator=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return Mb(e).domain([t,n]).clamp(i)},vv(r)}function Ob(e){for(var t=e.length/6|0,n=new Array(t),i=0;i<t;)n[i]="#"+e.slice(6*i,6*++i);return n}var Eb=Ob("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Pb=Ob("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Ib=Ob("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),qb=Ob("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Nb=Ob("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Db=Ob("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Rb=Ob("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Lb=Ob("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Fb=Ob("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function Bb(e){return Wo(e[e.length-1])}var jb=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Ob),zb=Bb(jb),Ub=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Ob),Hb=Bb(Ub),Yb=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Ob),Jb=Bb(Yb),Gb=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Ob),Wb=Bb(Gb),Vb=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Ob),Qb=Bb(Vb),Xb=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Ob),Kb=Bb(Xb),$b=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Ob),ew=Bb($b),tw=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Ob),nw=Bb(tw),iw=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Ob),rw=Bb(iw),ow=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Ob),aw=Bb(ow),sw=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Ob),lw=Bb(sw),cw=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Ob),uw=Bb(cw),dw=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Ob),hw=Bb(dw),pw=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Ob),fw=Bb(pw),mw=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Ob),gw=Bb(mw),vw=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Ob),yw=Bb(vw),_w=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Ob),bw=Bb(_w),ww=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Ob),Sw=Bb(ww),xw=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Ob),Cw=Bb(xw),kw=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Ob),Tw=Bb(kw),Aw=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Ob),Zw=Bb(Aw),Mw=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Ob),Ow=Bb(Mw),Ew=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Ob),Pw=Bb(Ew),Iw=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Ob),qw=Bb(Iw),Nw=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Ob),Dw=Bb(Nw),Rw=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Ob),Lw=Bb(Rw),Fw=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Ob),Bw=Bb(Fw),jw=Aa(Ro(300,.5,0),Ro(-240,.5,1)),zw=Aa(Ro(-100,.75,.35),Ro(80,1.5,.8)),Uw=Aa(Ro(260,.75,.35),Ro(80,1.5,.8)),Hw=Ro();function Yw(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Hw.h=360*e-100,Hw.s=1.5-1.5*t,Hw.l=.8-.9*t,Hw+""}function Jw(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var Gw=Jw(Ob("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Ww=Jw(Ob("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Vw=Jw(Ob("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Qw=Jw(Ob("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Xw(e,t){return e.each(function(){var e=t.apply(this,arguments),n=wr(this);for(var i in e)n.attr(i,e[i])})}function Kw(e,t){for(var n in t)e.attr(n,t[n]);return e}function $w(e,t,n){return e.each(function(){var e=t.apply(this,arguments),i=wr(this);for(var r in e)i.style(r,e[r],n)})}function eS(e,t,n){for(var i in t)e.style(i,t[i],n);return e}function tS(e,t){return e.each(function(){var e=t.apply(this,arguments),n=wr(this);for(var i in e)n.property(i,e[i])})}function nS(e,t){for(var n in t)e.property(n,t[n]);return e}function iS(e,t){return e.each(function(){var n=t.apply(this,arguments),i=wr(this).transition(e);for(var r in n)i.attr(r,n[r])})}function rS(e,t){for(var n in t)e.attr(n,t[n]);return e}function oS(e,t,n){return e.each(function(){var i=t.apply(this,arguments),r=wr(this).transition(e);for(var o in i)r.style(o,i[o],n)})}function aS(e,t,n){for(var i in t)e.style(i,t[i],n);return e}function sS(e){return function(){return e}}br.prototype.attrs=function(e){return("function"==typeof e?Xw:Kw)(this,e)},br.prototype.styles=function(e,t){return("function"==typeof e?$w:eS)(this,e,null==t?"":t)},br.prototype.properties=function(e){return("function"==typeof e?tS:nS)(this,e)},xs.prototype.attrs=function(e){return("function"==typeof e?iS:rS)(this,e)},xs.prototype.styles=function(e,t){return("function"==typeof e?oS:aS)(this,e,null==t?"":t)};var lS=Math.abs,cS=Math.atan2,uS=Math.cos,dS=Math.max,hS=Math.min,pS=Math.sin,fS=Math.sqrt,mS=1e-12,gS=Math.PI,vS=gS/2,yS=2*gS;function _S(e){return e>1?0:e<-1?gS:Math.acos(e)}function bS(e){return e>=1?vS:e<=-1?-vS:Math.asin(e)}function wS(e){return e.innerRadius}function SS(e){return e.outerRadius}function xS(e){return e.startAngle}function CS(e){return e.endAngle}function kS(e){return e&&e.padAngle}function TS(e,t,n,i,r,o,a,s){var l=n-e,c=i-t,u=a-r,d=s-o,h=d*l-u*c;if(!(h*h<mS))return[e+(h=(u*(t-o)-d*(e-r))/h)*l,t+h*c]}function AS(e,t,n,i,r,o,a){var s=e-n,l=t-i,c=(a?o:-o)/fS(s*s+l*l),u=c*l,d=-c*s,h=e+u,p=t+d,f=n+u,m=i+d,g=(h+f)/2,v=(p+m)/2,y=f-h,_=m-p,b=y*y+_*_,w=r-o,S=h*m-f*p,x=(_<0?-1:1)*fS(dS(0,w*w*b-S*S)),C=(S*_-y*x)/b,k=(-S*y-_*x)/b,T=(S*_+y*x)/b,A=(-S*y+_*x)/b,Z=C-g,M=k-v,O=T-g,E=A-v;return Z*Z+M*M>O*O+E*E&&(C=T,k=A),{cx:C,cy:k,x01:-u,y01:-d,x11:C*(r/w-1),y11:k*(r/w-1)}}function ZS(){var e=wS,t=SS,n=sS(0),i=null,r=xS,o=CS,a=kS,s=null;function l(){var l,c,u=+e.apply(this,arguments),d=+t.apply(this,arguments),h=r.apply(this,arguments)-vS,p=o.apply(this,arguments)-vS,f=lS(p-h),m=p>h;if(s||(s=l=wl()),d<u&&(c=d,d=u,u=c),d>mS)if(f>yS-mS)s.moveTo(d*uS(h),d*pS(h)),s.arc(0,0,d,h,p,!m),u>mS&&(s.moveTo(u*uS(p),u*pS(p)),s.arc(0,0,u,p,h,m));else{var g,v,y=h,_=p,b=h,w=p,S=f,x=f,C=a.apply(this,arguments)/2,k=C>mS&&(i?+i.apply(this,arguments):fS(u*u+d*d)),T=hS(lS(d-u)/2,+n.apply(this,arguments)),A=T,Z=T;if(k>mS){var M=bS(k/u*pS(C)),O=bS(k/d*pS(C));(S-=2*M)>mS?(b+=M*=m?1:-1,w-=M):(S=0,b=w=(h+p)/2),(x-=2*O)>mS?(y+=O*=m?1:-1,_-=O):(x=0,y=_=(h+p)/2)}var E=d*uS(y),P=d*pS(y),I=u*uS(w),q=u*pS(w);if(T>mS){var N,D=d*uS(_),R=d*pS(_),L=u*uS(b),F=u*pS(b);if(f<=yS-mS&&(N=TS(E,P,L,F,D,R,I,q))){var B=E-N[0],j=P-N[1],z=D-N[0],U=R-N[1],H=1/pS(_S((B*z+j*U)/(fS(B*B+j*j)*fS(z*z+U*U)))/2),Y=fS(N[0]*N[0]+N[1]*N[1]);A=hS(T,(u-Y)/(H-1)),Z=hS(T,(d-Y)/(H+1))}}x>mS?Z>mS?(g=AS(L,F,E,P,d,Z,m),v=AS(D,R,I,q,d,Z,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),Z<T?s.arc(g.cx,g.cy,Z,cS(g.y01,g.x01),cS(v.y01,v.x01),!m):(s.arc(g.cx,g.cy,Z,cS(g.y01,g.x01),cS(g.y11,g.x11),!m),s.arc(0,0,d,cS(g.cy+g.y11,g.cx+g.x11),cS(v.cy+v.y11,v.cx+v.x11),!m),s.arc(v.cx,v.cy,Z,cS(v.y11,v.x11),cS(v.y01,v.x01),!m))):(s.moveTo(E,P),s.arc(0,0,d,y,_,!m)):s.moveTo(E,P),u>mS&&S>mS?A>mS?(g=AS(I,q,D,R,u,-A,m),v=AS(E,P,L,F,u,-A,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),A<T?s.arc(g.cx,g.cy,A,cS(g.y01,g.x01),cS(v.y01,v.x01),!m):(s.arc(g.cx,g.cy,A,cS(g.y01,g.x01),cS(g.y11,g.x11),!m),s.arc(0,0,u,cS(g.cy+g.y11,g.cx+g.x11),cS(v.cy+v.y11,v.cx+v.x11),m),s.arc(v.cx,v.cy,A,cS(v.y11,v.x11),cS(v.y01,v.x01),!m))):s.arc(0,0,u,w,b,m):s.lineTo(I,q)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,i=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-gS/2;return[uS(i)*n,pS(i)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:sS(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:sS(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:sS(+e),l):n},l.padRadius=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:sS(+e),l):i},l.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:sS(+e),l):r},l.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:sS(+e),l):o},l.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:sS(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}function MS(e){this._context=e}function OS(e){return new MS(e)}function ES(e){return e[0]}function PS(e){return e[1]}function IS(){var e=ES,t=PS,n=sS(!0),i=null,r=OS,o=null;function a(a){var s,l,c,u=a.length,d=!1;for(null==i&&(o=r(c=wl())),s=0;s<=u;++s)!(s<u&&n(l=a[s],s,a))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(l,s,a),+t(l,s,a));if(c)return o=null,c+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:sS(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:sS(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:sS(!!e),a):n},a.curve=function(e){return arguments.length?(r=e,null!=i&&(o=r(i)),a):r},a.context=function(e){return arguments.length?(null==e?i=o=null:o=r(i=e),a):i},a}function qS(){var e=ES,t=null,n=sS(0),i=PS,r=sS(!0),o=null,a=OS,s=null;function l(l){var c,u,d,h,p,f=l.length,m=!1,g=new Array(f),v=new Array(f);for(null==o&&(s=a(p=wl())),c=0;c<=f;++c){if(!(c<f&&r(h=l[c],c,l))===m)if(m=!m)u=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=c-1;d>=u;--d)s.point(g[d],v[d]);s.lineEnd(),s.areaEnd()}m&&(g[c]=+e(h,c,l),v[c]=+n(h,c,l),s.point(t?+t(h,c,l):g[c],i?+i(h,c,l):v[c]))}if(p)return s=null,p+""||null}function c(){return IS().defined(r).curve(a).context(o)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:sS(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:sS(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:sS(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:sS(+e),i=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:sS(+e),l):n},l.y1=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:sS(+e),l):i},l.lineX0=l.lineY0=function(){return c().x(e).y(n)},l.lineY1=function(){return c().x(e).y(i)},l.lineX1=function(){return c().x(t).y(n)},l.defined=function(e){return arguments.length?(r="function"==typeof e?e:sS(!!e),l):r},l.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),l):a},l.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),l):o},l}function NS(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function DS(e){return e}function RS(){var e=DS,t=NS,n=null,i=sS(0),r=sS(yS),o=sS(0);function a(a){var s,l,c,u,d,h=a.length,p=0,f=new Array(h),m=new Array(h),g=+i.apply(this,arguments),v=Math.min(yS,Math.max(-yS,r.apply(this,arguments)-g)),y=Math.min(Math.abs(v)/h,o.apply(this,arguments)),_=y*(v<0?-1:1);for(s=0;s<h;++s)(d=m[f[s]=s]=+e(a[s],s,a))>0&&(p+=d);for(null!=t?f.sort(function(e,n){return t(m[e],m[n])}):null!=n&&f.sort(function(e,t){return n(a[e],a[t])}),s=0,c=p?(v-h*_)/p:0;s<h;++s,g=u)m[l=f[s]]={data:a[l],index:s,value:d=m[l],startAngle:g,endAngle:u=g+(d>0?d*c:0)+_,padAngle:y};return m}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:sS(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:sS(+e),a):i},a.endAngle=function(e){return arguments.length?(r="function"==typeof e?e:sS(+e),a):r},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:sS(+e),a):o},a}MS.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 LS=BS(OS);function FS(e){this._curve=e}function BS(e){function t(t){return new FS(e(t))}return t._curve=e,t}function jS(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(BS(e)):t()._curve},e}function zS(){return jS(IS().curve(LS))}function US(){var e=qS().curve(LS),t=e.curve,n=e.lineX0,i=e.lineX1,r=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return jS(n())},delete e.lineX0,e.lineEndAngle=function(){return jS(i())},delete e.lineX1,e.lineInnerRadius=function(){return jS(r())},delete e.lineY0,e.lineOuterRadius=function(){return jS(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(BS(e)):t()._curve},e}function HS(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}FS.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 YS=Array.prototype.slice;function JS(e){return e.source}function GS(e){return e.target}function WS(e){var t=JS,n=GS,i=ES,r=PS,o=null;function a(){var a,s=YS.call(arguments),l=t.apply(this,s),c=n.apply(this,s);if(o||(o=a=wl()),e(o,+i.apply(this,(s[0]=l,s)),+r.apply(this,s),+i.apply(this,(s[0]=c,s)),+r.apply(this,s)),a)return o=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(i="function"==typeof e?e:sS(+e),a):i},a.y=function(e){return arguments.length?(r="function"==typeof e?e:sS(+e),a):r},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a}function VS(e,t,n,i,r){e.moveTo(t,n),e.bezierCurveTo(t=(t+i)/2,n,t,r,i,r)}function QS(e,t,n,i,r){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+r)/2,i,n,i,r)}function XS(e,t,n,i,r){var o=HS(t,n),a=HS(t,n=(n+r)/2),s=HS(i,n),l=HS(i,r);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],l[0],l[1])}function KS(){return WS(VS)}function $S(){return WS(QS)}function ex(){var e=WS(XS);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var tx={draw:function(e,t){var n=Math.sqrt(t/gS);e.moveTo(n,0),e.arc(0,0,n,0,yS)}},nx={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()}},ix=Math.sqrt(1/3),rx=2*ix,ox={draw:function(e,t){var n=Math.sqrt(t/rx),i=n*ix;e.moveTo(0,-n),e.lineTo(i,0),e.lineTo(0,n),e.lineTo(-i,0),e.closePath()}},ax=Math.sin(gS/10)/Math.sin(7*gS/10),sx=Math.sin(yS/10)*ax,lx=-Math.cos(yS/10)*ax,cx={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),i=sx*n,r=lx*n;e.moveTo(0,-n),e.lineTo(i,r);for(var o=1;o<5;++o){var a=yS*o/5,s=Math.cos(a),l=Math.sin(a);e.lineTo(l*n,-s*n),e.lineTo(s*i-l*r,l*i+s*r)}e.closePath()}},ux={draw:function(e,t){var n=Math.sqrt(t),i=-n/2;e.rect(i,i,n,n)}},dx=Math.sqrt(3),hx={draw:function(e,t){var n=-Math.sqrt(t/(3*dx));e.moveTo(0,2*n),e.lineTo(-dx*n,-n),e.lineTo(dx*n,-n),e.closePath()}},px=-.5,fx=Math.sqrt(3)/2,mx=1/Math.sqrt(12),gx=3*(mx/2+1),vx={draw:function(e,t){var n=Math.sqrt(t/gx),i=n/2,r=n*mx,o=i,a=n*mx+n,s=-o,l=a;e.moveTo(i,r),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(px*i-fx*r,fx*i+px*r),e.lineTo(px*o-fx*a,fx*o+px*a),e.lineTo(px*s-fx*l,fx*s+px*l),e.lineTo(px*i+fx*r,px*r-fx*i),e.lineTo(px*o+fx*a,px*a-fx*o),e.lineTo(px*s+fx*l,px*l-fx*s),e.closePath()}},yx=[tx,nx,ox,ux,cx,hx,vx];function _x(){var e=sS(tx),t=sS(64),n=null;function i(){var i;if(n||(n=i=wl()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return i.type=function(t){return arguments.length?(e="function"==typeof t?t:sS(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:sS(+e),i):t},i.context=function(e){return arguments.length?(n=null==e?null:e,i):n},i}function bx(){}function wx(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 Sx(e){this._context=e}function xx(e){return new Sx(e)}function Cx(e){this._context=e}function kx(e){return new Cx(e)}function Tx(e){this._context=e}function Ax(e){return new Tx(e)}function Zx(e,t){this._basis=new Sx(e),this._beta=t}Sx.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:wx(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:wx(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Cx.prototype={areaStart:bx,areaEnd:bx,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:wx(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Tx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:wx(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Zx.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var i,r=e[0],o=t[0],a=e[n]-r,s=t[n]-o,l=-1;++l<=n;)this._basis.point(this._beta*e[l]+(1-this._beta)*(r+(i=l/n)*a),this._beta*t[l]+(1-this._beta)*(o+i*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Mx=function e(t){function n(e){return 1===t?new Sx(e):new Zx(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Ox(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 Ex(e,t){this._context=e,this._k=(1-t)/6}Ex.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:Ox(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:Ox(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 Px=function e(t){function n(e){return new Ex(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ix(e,t){this._context=e,this._k=(1-t)/6}Ix.prototype={areaStart:bx,areaEnd:bx,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:Ox(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 qx=function e(t){function n(e){return new Ix(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Nx(e,t){this._context=e,this._k=(1-t)/6}Nx.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:Ox(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 Dx=function e(t){function n(e){return new Nx(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Rx(e,t,n){var i=e._x1,r=e._y1,o=e._x2,a=e._y2;if(e._l01_a>mS){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,r=(r*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>mS){var c=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*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(i,r,o,a,e._x2,e._y2)}function Lx(e,t){this._context=e,this._alpha=t}Lx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Rx(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 Fx=function e(t){function n(e){return t?new Lx(e,t):new Ex(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Bx(e,t){this._context=e,this._alpha=t}Bx.prototype={areaStart:bx,areaEnd:bx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Rx(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 jx=function e(t){function n(e){return t?new Bx(e,t):new Ix(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function zx(e,t){this._context=e,this._alpha=t}zx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Rx(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 Ux=function e(t){function n(e){return t?new zx(e,t):new Nx(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Hx(e){this._context=e}function Yx(e){return new Hx(e)}function Jx(e){return e<0?-1:1}function Gx(e,t,n){var i=e._x1-e._x0,r=t-e._x1,o=(e._y1-e._y0)/(i||r<0&&-0),a=(n-e._y1)/(r||i<0&&-0),s=(o*r+a*i)/(i+r);return(Jx(o)+Jx(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Wx(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Vx(e,t,n){var i=e._x0,r=e._x1,o=e._y1,a=(r-i)/3;e._context.bezierCurveTo(i+a,e._y0+a*t,r-a,o-a*n,r,o)}function Qx(e){this._context=e}function Xx(e){this._context=new Kx(e)}function Kx(e){this._context=e}function $x(e){return new Qx(e)}function eC(e){return new Xx(e)}function tC(e){this._context=e}function nC(e){var t,n,i=e.length-1,r=new Array(i),o=new Array(i),a=new Array(i);for(r[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<i-1;++t)r[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(r[i-1]=2,o[i-1]=7,a[i-1]=8*e[i-1]+e[i],t=1;t<i;++t)o[t]-=n=r[t]/o[t-1],a[t]-=n*a[t-1];for(r[i-1]=a[i-1]/o[i-1],t=i-2;t>=0;--t)r[t]=(a[t]-r[t+1])/o[t];for(o[i-1]=(e[i]+r[i-1])/2,t=0;t<i-1;++t)o[t]=2*e[t+1]-r[t+1];return[r,o]}function iC(e){return new tC(e)}function rC(e,t){this._context=e,this._t=t}function oC(e){return new rC(e,.5)}function aC(e){return new rC(e,0)}function sC(e){return new rC(e,1)}function lC(e,t){if((r=e.length)>1)for(var n,i,r,o=1,a=e[t[0]],s=a.length;o<r;++o)for(i=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function cC(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function uC(e,t){return e[t]}function dC(){var e=sS([]),t=cC,n=lC,i=uC;function r(r){var o,a,s=e.apply(this,arguments),l=r.length,c=s.length,u=new Array(c);for(o=0;o<c;++o){for(var d,h=s[o],p=u[o]=new Array(l),f=0;f<l;++f)p[f]=d=[0,+i(r[f],h,f,r)],d.data=r[f];p.key=h}for(o=0,a=t(u);o<c;++o)u[a[o]].index=o;return n(u,a),u}return r.keys=function(t){return arguments.length?(e="function"==typeof t?t:sS(YS.call(t)),r):e},r.value=function(e){return arguments.length?(i="function"==typeof e?e:sS(+e),r):i},r.order=function(e){return arguments.length?(t=null==e?cC:"function"==typeof e?e:sS(YS.call(e)),r):t},r.offset=function(e){return arguments.length?(n=null==e?lC:e,r):n},r}function hC(e,t){if((i=e.length)>0){for(var n,i,r,o=0,a=e[0].length;o<a;++o){for(r=n=0;n<i;++n)r+=e[n][o][1]||0;if(r)for(n=0;n<i;++n)e[n][o][1]/=r}lC(e,t)}}function pC(e,t){if((s=e.length)>1)for(var n,i,r,o,a,s,l=0,c=e[t[0]].length;l<c;++l)for(o=a=0,n=0;n<s;++n)(r=(i=e[t[n]][l])[1]-i[0])>=0?(i[0]=o,i[1]=o+=r):r<0?(i[1]=a,i[0]=a+=r):i[0]=o}function fC(e,t){if((n=e.length)>0){for(var n,i=0,r=e[t[0]],o=r.length;i<o;++i){for(var a=0,s=0;a<n;++a)s+=e[a][i][1]||0;r[i][1]+=r[i][0]=-s/2}lC(e,t)}}function mC(e,t){if((r=e.length)>0&&(i=(n=e[t[0]]).length)>0){for(var n,i,r,o=0,a=1;a<i;++a){for(var s=0,l=0,c=0;s<r;++s){for(var u=e[t[s]],d=u[a][1]||0,h=(d-(u[a-1][1]||0))/2,p=0;p<s;++p){var f=e[t[p]];h+=(f[a][1]||0)-(f[a-1][1]||0)}l+=d,c+=h*d}n[a-1][1]+=n[a-1][0]=o,l&&(o-=c/l)}n[a-1][1]+=n[a-1][0]=o,lC(e,t)}}function gC(e){var t=e.map(vC);return cC(e).sort(function(e,n){return t[e]-t[n]})}function vC(e){for(var t,n=0,i=-1,r=e.length;++i<r;)(t=+e[i][1])&&(n+=t);return n}function yC(e){return gC(e).reverse()}function _C(e){var t,n,i=e.length,r=e.map(vC),o=cC(e).sort(function(e,t){return r[t]-r[e]}),a=0,s=0,l=[],c=[];for(t=0;t<i;++t)n=o[t],a<s?(a+=r[n],l.push(n)):(s+=r[n],c.push(n));return c.reverse().concat(l)}function bC(e){return cC(e).reverse()}function wC(e,t,n){var i=new ja,r=t;return null==t?(i.restart(e,t,n),i):(t=+t,n=null==n?Fa():+n,i.restart(function o(a){a+=r,i.restart(o,r+=t,n),e(a)},t,n),i)}function SC(e){return function(){return e}}function xC(e){return e[0]}function CC(e){return e[1]}function kC(){this._=null}function TC(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function AC(e,t){var n=t,i=t.R,r=n.U;r?r.L===n?r.L=i:r.R=i:e._=i,i.U=r,n.U=i,n.R=i.L,n.R&&(n.R.U=n),i.L=n}function ZC(e,t){var n=t,i=t.L,r=n.U;r?r.L===n?r.L=i:r.R=i:e._=i,i.U=r,n.U=i,n.L=i.R,n.L&&(n.L.U=n),i.R=n}function MC(e){for(;e.L;)e=e.L;return e}Hx.prototype={areaStart:bx,areaEnd:bx,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))}},Qx.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:Vx(this,this._t0,Wx(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,Vx(this,Wx(this,n=Gx(this,e,t)),n);break;default:Vx(this,this._t0,n=Gx(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Xx.prototype=Object.create(Qx.prototype)).point=function(e,t){Qx.prototype.point.call(this,t,e)},Kx.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,i,r,o){this._context.bezierCurveTo(t,e,i,n,o,r)}},tC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var i=nC(e),r=nC(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(i[0][o],r[0][o],i[1][o],r[1][o],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},rC.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}},kC.prototype={constructor:kC,insert:function(e,t){var n,i,r;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=MC(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(i=n.U).L?(r=i.R)&&r.C?(n.C=r.C=!1,i.C=!0,e=i):(e===n.R&&(AC(this,n),n=(e=n).U),n.C=!1,i.C=!0,ZC(this,i)):(r=i.L)&&r.C?(n.C=r.C=!1,i.C=!0,e=i):(e===n.L&&(ZC(this,n),n=(e=n).U),n.C=!1,i.C=!0,AC(this,i)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,i,r=e.U,o=e.L,a=e.R;if(n=o?a?MC(a):o:a,r?r.L===e?r.L=n:r.R=n:this._=n,o&&a?(i=n.C,n.C=e.C,n.L=o,o.U=n,n!==a?(r=n.U,n.U=e.U,r.L=e=n.R,n.R=a,a.U=n):(n.U=r,r=n,e=n.R)):(i=e.C,e=n),e&&(e.U=r),!i)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===r.L){if((t=r.R).C&&(t.C=!1,r.C=!0,AC(this,r),t=r.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,ZC(this,t),t=r.R),t.C=r.C,r.C=t.R.C=!1,AC(this,r),e=this._;break}}else if((t=r.L).C&&(t.C=!1,r.C=!0,ZC(this,r),t=r.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,AC(this,t),t=r.L),t.C=r.C,r.C=t.L.C=!1,ZC(this,r),e=this._;break}t.C=!0,e=r,r=r.U}while(!e.C);e&&(e.C=!1)}}};var OC=kC;function EC(e,t,n,i){var r=[null,null],o=tk.push(r)-1;return r.left=e,r.right=t,n&&IC(r,e,t,n),i&&IC(r,t,e,i),$C[e.index].halfedges.push(o),$C[t.index].halfedges.push(o),r}function PC(e,t,n){var i=[t,n];return i.left=e,i}function IC(e,t,n,i){e[0]||e[1]?e.left===n?e[1]=i:e[0]=i:(e[0]=i,e.left=t,e.right=n)}function qC(e,t,n,i,r){var o,a=e[0],s=e[1],l=a[0],c=a[1],u=0,d=1,h=s[0]-l,p=s[1]-c;if(o=t-l,h||!(o>0)){if(o/=h,h<0){if(o<u)return;o<d&&(d=o)}else if(h>0){if(o>d)return;o>u&&(u=o)}if(o=i-l,h||!(o<0)){if(o/=h,h<0){if(o>d)return;o>u&&(u=o)}else if(h>0){if(o<u)return;o<d&&(d=o)}if(o=n-c,p||!(o>0)){if(o/=p,p<0){if(o<u)return;o<d&&(d=o)}else if(p>0){if(o>d)return;o>u&&(u=o)}if(o=r-c,p||!(o<0)){if(o/=p,p<0){if(o>d)return;o>u&&(u=o)}else if(p>0){if(o<u)return;o<d&&(d=o)}return!(u>0||d<1)||(u>0&&(e[0]=[l+u*h,c+u*p]),d<1&&(e[1]=[l+d*h,c+d*p]),!0)}}}}}function NC(e,t,n,i,r){var o=e[1];if(o)return!0;var a,s,l=e[0],c=e.left,u=e.right,d=c[0],h=c[1],p=u[0],f=u[1],m=(d+p)/2;if(f===h){if(m<t||m>=i)return;if(d>p){if(l){if(l[1]>=r)return}else l=[m,n];o=[m,r]}else{if(l){if(l[1]<n)return}else l=[m,r];o=[m,n]}}else if(s=(h+f)/2-(a=(d-p)/(f-h))*m,a<-1||a>1)if(d>p){if(l){if(l[1]>=r)return}else l=[(n-s)/a,n];o=[(r-s)/a,r]}else{if(l){if(l[1]<n)return}else l=[(r-s)/a,r];o=[(n-s)/a,n]}else if(h<f){if(l){if(l[0]>=i)return}else l=[t,a*t+s];o=[i,a*i+s]}else{if(l){if(l[0]<t)return}else l=[i,a*i+s];o=[t,a*t+s]}return e[0]=l,e[1]=o,!0}function DC(e,t){var n=e.site,i=t.left,r=t.right;return n===r&&(r=i,i=n),r?Math.atan2(r[1]-i[1],r[0]-i[0]):(n===i?(i=t[1],r=t[0]):(i=t[0],r=t[1]),Math.atan2(i[0]-r[0],r[1]-i[1]))}function RC(e,t){return t[+(t.left!==e.site)]}function LC(e,t){return t[+(t.left===e.site)]}var FC,BC=[];function jC(){TC(this),this.x=this.y=this.arc=this.site=this.cy=null}function zC(e){var t=e.P,n=e.N;if(t&&n){var i=t.site,r=e.site,o=n.site;if(i!==o){var a=r[0],s=r[1],l=i[0]-a,c=i[1]-s,u=o[0]-a,d=o[1]-s,h=2*(l*d-c*u);if(!(h>=-ik)){var p=l*l+c*c,f=u*u+d*d,m=(d*p-c*f)/h,g=(l*f-u*p)/h,v=BC.pop()||new jC;v.arc=e,v.site=r,v.x=m+a,v.y=(v.cy=g+s)+Math.sqrt(m*m+g*g),e.circle=v;for(var y=null,_=ek._;_;)if(v.y<_.y||v.y===_.y&&v.x<=_.x){if(!_.L){y=_.P;break}_=_.L}else{if(!_.R){y=_;break}_=_.R}ek.insert(y,v),y||(FC=v)}}}}function UC(e){var t=e.circle;t&&(t.P||(FC=t.N),ek.remove(t),BC.push(t),TC(t),e.circle=null)}var HC=[];function YC(){TC(this),this.edge=this.site=this.circle=null}function JC(e){var t=HC.pop()||new YC;return t.site=e,t}function GC(e){UC(e),KC.remove(e),HC.push(e),TC(e)}function WC(e){var t=e.circle,n=t.x,i=t.cy,r=[n,i],o=e.P,a=e.N,s=[e];GC(e);for(var l=o;l.circle&&Math.abs(n-l.circle.x)<nk&&Math.abs(i-l.circle.cy)<nk;)o=l.P,s.unshift(l),GC(l),l=o;s.unshift(l),UC(l);for(var c=a;c.circle&&Math.abs(n-c.circle.x)<nk&&Math.abs(i-c.circle.cy)<nk;)a=c.N,s.push(c),GC(c),c=a;s.push(c),UC(c);var u,d=s.length;for(u=1;u<d;++u)IC((c=s[u]).edge,(l=s[u-1]).site,c.site,r);(c=s[d-1]).edge=EC((l=s[0]).site,c.site,null,r),zC(l),zC(c)}function VC(e){for(var t,n,i,r,o=e[0],a=e[1],s=KC._;s;)if((i=QC(s,a)-o)>nk)s=s.L;else{if(!((r=o-XC(s,a))>nk)){i>-nk?(t=s.P,n=s):r>-nk?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){$C[e.index]={site:e,halfedges:[]}}(e);var l=JC(e);if(KC.insert(t,l),t||n){if(t===n)return UC(t),n=JC(t.site),KC.insert(l,n),l.edge=n.edge=EC(t.site,l.site),zC(t),void zC(n);if(n){UC(t),UC(n);var c=t.site,u=c[0],d=c[1],h=e[0]-u,p=e[1]-d,f=n.site,m=f[0]-u,g=f[1]-d,v=2*(h*g-p*m),y=h*h+p*p,_=m*m+g*g,b=[(g*y-p*_)/v+u,(h*_-m*y)/v+d];IC(n.edge,c,f,b),l.edge=EC(c,e,null,b),n.edge=EC(e,f,null,b),zC(t),zC(n)}else l.edge=EC(t.site,l.site)}}function QC(e,t){var n=e.site,i=n[0],r=n[1],o=r-t;if(!o)return i;var a=e.P;if(!a)return-1/0;var s=(n=a.site)[0],l=n[1],c=l-t;if(!c)return s;var u=s-i,d=1/o-1/c,h=u/c;return d?(-h+Math.sqrt(h*h-2*d*(u*u/(-2*c)-l+c/2+r-o/2)))/d+i:(i+s)/2}function XC(e,t){var n=e.N;if(n)return QC(n,t);var i=e.site;return i[1]===t?i[0]:1/0}var KC,$C,ek,tk,nk=1e-6,ik=1e-12;function rk(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function ok(e,t){return t[1]-e[1]||t[0]-e[0]}function ak(e,t){var n,i,r,o=e.sort(ok).pop();for(tk=[],$C=new Array(e.length),KC=new OC,ek=new OC;;)if(r=FC,o&&(!r||o[1]<r.y||o[1]===r.y&&o[0]<r.x))o[0]===n&&o[1]===i||(VC(o),n=o[0],i=o[1]),o=e.pop();else{if(!r)break;WC(r.arc)}if(function(){for(var e,t,n,i,r=0,o=$C.length;r<o;++r)if((e=$C[r])&&(i=(t=e.halfedges).length)){var a=new Array(i),s=new Array(i);for(n=0;n<i;++n)a[n]=n,s[n]=DC(e,tk[t[n]]);for(a.sort(function(e,t){return s[t]-s[e]}),n=0;n<i;++n)s[n]=t[a[n]];for(n=0;n<i;++n)t[n]=s[n]}}(),t){var a=+t[0][0],s=+t[0][1],l=+t[1][0],c=+t[1][1];!function(e,t,n,i){for(var r,o=tk.length;o--;)NC(r=tk[o],e,t,n,i)&&qC(r,e,t,n,i)&&(Math.abs(r[0][0]-r[1][0])>nk||Math.abs(r[0][1]-r[1][1])>nk)||delete tk[o]}(a,s,l,c),function(e,t,n,i){var r,o,a,s,l,c,u,d,h,p,f,m,g=$C.length,v=!0;for(r=0;r<g;++r)if(o=$C[r]){for(a=o.site,s=(l=o.halfedges).length;s--;)tk[l[s]]||l.splice(s,1);for(s=0,c=l.length;s<c;)f=(p=LC(o,tk[l[s]]))[0],m=p[1],d=(u=RC(o,tk[l[++s%c]]))[0],h=u[1],(Math.abs(f-d)>nk||Math.abs(m-h)>nk)&&(l.splice(s,0,tk.push(PC(a,p,Math.abs(f-e)<nk&&i-m>nk?[e,Math.abs(d-e)<nk?h:i]:Math.abs(m-i)<nk&&n-f>nk?[Math.abs(h-i)<nk?d:n,i]:Math.abs(f-n)<nk&&m-t>nk?[n,Math.abs(d-n)<nk?h:t]:Math.abs(m-t)<nk&&f-e>nk?[Math.abs(h-t)<nk?d:e,t]:null))-1),++c);c&&(v=!1)}if(v){var y,_,b,w=1/0;for(r=0,v=null;r<g;++r)(o=$C[r])&&(b=(y=(a=o.site)[0]-e)*y+(_=a[1]-t)*_)<w&&(w=b,v=o);if(v){var S=[e,t],x=[e,i],C=[n,i],k=[n,t];v.halfedges.push(tk.push(PC(a=v.site,S,x))-1,tk.push(PC(a,x,C))-1,tk.push(PC(a,C,k))-1,tk.push(PC(a,k,S))-1)}}for(r=0;r<g;++r)(o=$C[r])&&(o.halfedges.length||delete $C[r])}(a,s,l,c)}this.edges=tk,this.cells=$C,KC=ek=tk=$C=null}function sk(){var e=xC,t=CC,n=null;function i(i){return new ak(i.map(function(n,r){var o=[Math.round(e(n,r,i)/nk)*nk,Math.round(t(n,r,i)/nk)*nk];return o.index=r,o.data=n,o}),n)}return i.polygons=function(e){return i(e).polygons()},i.links=function(e){return i(e).links()},i.triangles=function(e){return i(e).triangles()},i.x=function(t){return arguments.length?(e="function"==typeof t?t:SC(+t),i):e},i.y=function(e){return arguments.length?(t="function"==typeof e?e:SC(+e),i):t},i.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],i):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},i.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],i):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},i}function lk(e){return function(){return e}}function ck(e,t,n){this.target=e,this.type=t,this.transform=n}function uk(e,t,n){this.k=e,this.x=t,this.y=n}ak.prototype={constructor:ak,polygons:function(){var e=this.edges;return this.cells.map(function(t){var n=t.halfedges.map(function(n){return RC(t,e[n])});return n.data=t.site.data,n})},triangles:function(){var e=[],t=this.edges;return this.cells.forEach(function(n,i){if(o=(r=n.halfedges).length)for(var r,o,a,s=n.site,l=-1,c=t[r[o-1]],u=c.left===s?c.right:c.left;++l<o;)a=u,u=(c=t[r[l]]).left===s?c.right:c.left,a&&u&&i<a.index&&i<u.index&&rk(s,a,u)<0&&e.push([s.data,a.data,u.data])}),e},links:function(){return this.edges.filter(function(e){return e.right}).map(function(e){return{source:e.left.data,target:e.right.data}})},find:function(e,t,n){for(var i,r,o=this,a=o._found||0,s=o.cells.length;!(r=o.cells[a]);)if(++a>=s)return null;var l=e-r.site[0],c=t-r.site[1],u=l*l+c*c;do{r=o.cells[i=a],a=null,r.halfedges.forEach(function(n){var i=o.edges[n],s=i.left;if(s!==r.site&&s||(s=i.right)){var l=e-s[0],c=t-s[1],d=l*l+c*c;d<u&&(u=d,a=s.index)}})}while(null!==a);return o._found=i,null==n||u<=n*n?r.site:null}},uk.prototype={constructor:uk,scale:function(e){return 1===e?this:new uk(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new uk(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 dk=new uk(1,0,0);function hk(e){return e.__zoom||dk}function pk(){sr.stopImmediatePropagation()}function fk(){sr.preventDefault(),sr.stopImmediatePropagation()}function mk(){return!sr.ctrlKey&&!sr.button}function gk(){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 vk(){return this.__zoom||dk}function yk(){return-sr.deltaY*(1===sr.deltaMode?.05:sr.deltaMode?1:.002)}function _k(){return navigator.maxTouchPoints||"ontouchstart"in this}function bk(e,t,n){var i=e.invertX(t[0][0])-n[0][0],r=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(r>i?(i+r)/2:Math.min(0,i)||Math.max(0,r),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function wk(){var e,t,n=mk,i=gk,r=bk,o=yk,a=_k,s=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],c=250,u=va,d=ai("start","zoom","end"),h=500,p=0;function f(e){e.property("__zoom",vk).on("wheel.zoom",w).on("mousedown.zoom",S).on("dblclick.zoom",x).filter(a).on("touchstart.zoom",C).on("touchmove.zoom",k).on("touchend.zoom touchcancel.zoom",T).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 uk(t,e.x,e.y)}function g(e,t,n){var i=t[0]-n[0]*e.k,r=t[1]-n[1]*e.k;return i===e.x&&r===e.y?e:new uk(e.k,i,r)}function v(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function y(e,t,n){e.on("start.zoom",function(){_(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){_(this,arguments).end()}).tween("zoom",function(){var e=this,r=arguments,o=_(e,r),a=i.apply(e,r),s=n||v(a),l=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),c=e.__zoom,d="function"==typeof t?t.apply(e,r):t,h=u(c.invert(s).concat(l/c.k),d.invert(s).concat(l/d.k));return function(e){if(1===e)e=d;else{var t=h(e),n=l/t[2];e=new uk(n,s[0]-t[0]*n,s[1]-t[1]*n)}o.zoom(null,e)}})}function _(e,t,n){return!n&&e.__zooming||new b(e,t)}function b(e,t){this.that=e,this.args=t,this.active=0,this.extent=i.apply(e,t),this.taps=0}function w(){if(n.apply(this,arguments)){var e=_(this,arguments),t=this.__zoom,i=Math.max(s[0],Math.min(s[1],t.k*Math.pow(2,o.apply(this,arguments)))),a=Zr(this);t.k!==i&&(e.wheel?(e.mouse[0][0]===a[0]&&e.mouse[0][1]===a[1]||(e.mouse[1]=t.invert(e.mouse[0]=a)),clearTimeout(e.wheel)):(e.mouse=[a,t.invert(a)],es(this),e.start()),fk(),e.wheel=setTimeout(c,150),e.zoom("mouse",r(g(m(t,i),e.mouse[0],e.mouse[1]),e.extent,l)))}function c(){e.wheel=null,e.end()}}function S(){if(!t&&n.apply(this,arguments)){var e=_(this,arguments,!0),i=wr(sr.view).on("mousemove.zoom",c,!0).on("mouseup.zoom",u,!0),o=Zr(this),a=sr.clientX,s=sr.clientY;qr(sr.view),pk(),e.mouse=[o,this.__zoom.invert(o)],es(this),e.start()}function c(){if(fk(),!e.moved){var t=sr.clientX-a,n=sr.clientY-s;e.moved=t*t+n*n>p}e.zoom("mouse",r(g(e.that.__zoom,e.mouse[0]=Zr(e.that),e.mouse[1]),e.extent,l))}function u(){i.on("mousemove.zoom mouseup.zoom",null),Nr(sr.view,e.moved),fk(),e.end()}}function x(){if(n.apply(this,arguments)){var e=this.__zoom,t=Zr(this),o=e.invert(t),a=e.k*(sr.shiftKey?.5:2),s=r(g(m(e,a),t,o),i.apply(this,arguments),l);fk(),c>0?wr(this).transition().duration(c).call(y,s,t):wr(this).call(f.transform,s)}}function C(){if(n.apply(this,arguments)){var t,i,r,o,a=sr.touches,s=a.length,l=_(this,arguments,sr.changedTouches.length===s);for(pk(),i=0;i<s;++i)o=[o=Or(this,a,(r=a[i]).identifier),this.__zoom.invert(o),r.identifier],l.touch0?l.touch1||(l.touch1=o,l.taps=0):(l.touch0=o,t=!0,l.taps=1+!!e);e&&(e=clearTimeout(e)),t&&(l.taps<2&&(e=setTimeout(function(){e=null},h)),es(this),l.start())}}function k(){if(this.__zooming){var t,n,i,o,a=_(this,arguments),s=sr.changedTouches,c=s.length;for(fk(),e&&(e=clearTimeout(e)),a.taps=0,t=0;t<c;++t)i=Or(this,s,(n=s[t]).identifier),a.touch0&&a.touch0[2]===n.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===n.identifier&&(a.touch1[0]=i);if(n=a.that.__zoom,a.touch1){var u=a.touch0[0],d=a.touch0[1],h=a.touch1[0],p=a.touch1[1],f=(f=h[0]-u[0])*f+(f=h[1]-u[1])*f,v=(v=p[0]-d[0])*v+(v=p[1]-d[1])*v;n=m(n,Math.sqrt(f/v)),i=[(u[0]+h[0])/2,(u[1]+h[1])/2],o=[(d[0]+p[0])/2,(d[1]+p[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],o=a.touch0[1]}a.zoom("touch",r(g(n,i,o),a.extent,l))}}function T(){if(this.__zooming){var e,n,i=_(this,arguments),r=sr.changedTouches,o=r.length;for(pk(),t&&clearTimeout(t),t=setTimeout(function(){t=null},h),e=0;e<o;++e)n=r[e],i.touch0&&i.touch0[2]===n.identifier?delete i.touch0:i.touch1&&i.touch1[2]===n.identifier&&delete i.touch1;if(i.touch1&&!i.touch0&&(i.touch0=i.touch1,delete i.touch1),i.touch0)i.touch0[1]=this.__zoom.invert(i.touch0[0]);else if(i.end(),2===i.taps){var a=wr(this).on("dblclick.zoom");a&&a.apply(this,arguments)}}}return f.transform=function(e,t){var n=e.selection?e.selection():e;n.property("__zoom",vk),e!==n?y(e,t):n.interrupt().each(function(){_(this,arguments).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},f.scaleBy=function(e,t){f.scaleTo(e,function(){var e=this.__zoom.k,n="function"==typeof t?t.apply(this,arguments):t;return e*n})},f.scaleTo=function(e,t){f.transform(e,function(){var e=i.apply(this,arguments),n=this.__zoom,o=v(e),a=n.invert(o),s="function"==typeof t?t.apply(this,arguments):t;return r(g(m(n,s),o,a),e,l)})},f.translateBy=function(e,t,n){f.transform(e,function(){return r(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),l)})},f.translateTo=function(e,t,n){f.transform(e,function(){var e=i.apply(this,arguments),o=this.__zoom,a=v(e);return r(dk.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,l)})},b.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){pr(new ck(f,e,this.that.__zoom),d.apply,d,[e,this.that,this.args])}},f.wheelDelta=function(e){return arguments.length?(o="function"==typeof e?e:lk(+e),f):o},f.filter=function(e){return arguments.length?(n="function"==typeof e?e:lk(!!e),f):n},f.touchable=function(e){return arguments.length?(a="function"==typeof e?e:lk(!!e),f):a},f.extent=function(e){return arguments.length?(i="function"==typeof e?e:lk([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),f):i},f.scaleExtent=function(e){return arguments.length?(s[0]=+e[0],s[1]=+e[1],f):[s[0],s[1]]},f.translateExtent=function(e){return arguments.length?(l[0][0]=+e[0][0],l[1][0]=+e[1][0],l[0][1]=+e[0][1],l[1][1]=+e[1][1],f):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},f.constrain=function(e){return arguments.length?(r=e,f):r},f.duration=function(e){return arguments.length?(c=+e,f):c},f.interpolate=function(e){return arguments.length?(u=e,f):u},f.on=function(){var e=d.on.apply(d,arguments);return e===d?f:e},f.clickDistance=function(e){return arguments.length?(p=(e=+e)*e,f):Math.sqrt(p)},f}hk.prototype=uk.prototype;var Sk=function(){function e(){(0,f.Z)(this,e)}return(0,m.Z)(e,[{key:"getD3",value:function(){return i}}]),e}(),xk=n(5041);function Ck(e,t){if(1&e&&(y.O4$(),y.TgZ(0,"linearGradient"),y._UZ(1,"stop",5),y._UZ(2,"stop",6),y.qZA()),2&e){var n=y.oxw(2);y.uIk("id",n.svg.outerLinearGradient.id),y.xp6(1),y.uIk("stop-color",n.svg.outerLinearGradient.colorStop1)("stop-opacity",1),y.xp6(1),y.uIk("stop-color",n.svg.outerLinearGradient.colorStop2)("stop-opacity",1)}}function kk(e,t){if(1&e&&(y.O4$(),y.TgZ(0,"radialGradient"),y._UZ(1,"stop",5),y._UZ(2,"stop",6),y.qZA()),2&e){var n=y.oxw(2);y.uIk("id",n.svg.radialGradient.id),y.xp6(1),y.uIk("stop-color",n.svg.radialGradient.colorStop1)("stop-opacity",1),y.xp6(1),y.uIk("stop-color",n.svg.radialGradient.colorStop2)("stop-opacity",1)}}function Tk(e,t){if(1&e&&(y.O4$(),y._UZ(0,"circle")),2&e){var n=y.oxw(3);y.uIk("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 Ak(e,t){if(1&e&&(y.O4$(),y._UZ(0,"circle")),2&e){var n=y.oxw(3);y.Q2q("fill","url(#",n.svg.radialGradient.id,")"),y.uIk("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 Zk(e,t){if(1&e&&(y.O4$(),y.ynx(0),y.YNc(1,Tk,1,7,"circle",2),y.YNc(2,Ak,1,7,"circle",2),y.BQk()),2&e){var n=y.oxw(2);y.xp6(1),y.Q6J("ngIf",!n.options.backgroundGradient),y.xp6(1),y.Q6J("ngIf",n.options.backgroundGradient)}}function Mk(e,t){if(1&e&&(y.O4$(),y._UZ(0,"circle")),2&e){var n=y.oxw(2);y.uIk("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 Ok(e,t){if(1&e&&(y.O4$(),y._UZ(0,"path")),2&e){var n=y.oxw(3);y.uIk("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 Ek(e,t){if(1&e&&(y.O4$(),y._UZ(0,"path")),2&e){var n=y.oxw(3);y.Q2q("stroke","url(#",n.svg.outerLinearGradient.id,")"),y.uIk("d",n.svg.path.d)("stroke-width",n.svg.path.strokeWidth)("stroke-linecap",n.svg.path.strokeLinecap)("fill",n.svg.path.fill)}}function Pk(e,t){if(1&e&&(y.O4$(),y.ynx(0),y.YNc(1,Ok,1,5,"path",2),y.YNc(2,Ek,1,5,"path",2),y.BQk()),2&e){var n=y.oxw(2);y.xp6(1),y.Q6J("ngIf",!n.options.outerStrokeGradient),y.xp6(1),y.Q6J("ngIf",n.options.outerStrokeGradient)}}function Ik(e,t){if(1&e&&(y.O4$(),y.TgZ(0,"tspan"),y._uU(1),y.qZA()),2&e){var n=t.$implicit,i=y.oxw(4);y.uIk("x",i.svg.title.x)("y",i.svg.title.y)("dy",n.dy)("font-size",i.svg.title.fontSize)("font-weight",i.svg.title.fontWeight)("fill",i.svg.title.color),y.xp6(1),y.Oqu(n.span)}}function qk(e,t){if(1&e&&(y.O4$(),y.ynx(0),y.YNc(1,Ik,2,7,"tspan",8),y.BQk()),2&e){var n=y.oxw(3);y.xp6(1),y.Q6J("ngForOf",n.svg.title.tspans)}}function Nk(e,t){if(1&e&&(y.O4$(),y.TgZ(0,"tspan"),y._uU(1),y.qZA()),2&e){var n=y.oxw(3);y.uIk("font-size",n.svg.units.fontSize)("font-weight",n.svg.units.fontWeight)("fill",n.svg.units.color),y.xp6(1),y.Oqu(n.svg.units.text)}}function Dk(e,t){if(1&e&&(y.O4$(),y.TgZ(0,"tspan"),y._uU(1),y.qZA()),2&e){var n=t.$implicit,i=y.oxw(4);y.uIk("x",i.svg.subtitle.x)("y",i.svg.subtitle.y)("dy",n.dy)("font-size",i.svg.subtitle.fontSize)("font-weight",i.svg.subtitle.fontWeight)("fill",i.svg.subtitle.color),y.xp6(1),y.Oqu(n.span)}}function Rk(e,t){if(1&e&&(y.O4$(),y.ynx(0),y.YNc(1,Dk,2,7,"tspan",8),y.BQk()),2&e){var n=y.oxw(3);y.xp6(1),y.Q6J("ngForOf",n.svg.subtitle.tspans)}}function Lk(e,t){if(1&e&&(y.O4$(),y.TgZ(0,"text",7),y.YNc(1,qk,2,1,"ng-container",2),y.YNc(2,Nk,2,4,"tspan",2),y.YNc(3,Rk,2,1,"ng-container",2),y.qZA()),2&e){var n=y.oxw(2);y.uIk("x",n.svg.circle.cx)("y",n.svg.circle.cy)("text-anchor",n.svg.title.textAnchor),y.xp6(1),y.Q6J("ngIf",n.options.showTitle),y.xp6(1),y.Q6J("ngIf",n.options.showUnits),y.xp6(1),y.Q6J("ngIf",n.options.showSubtitle)}}function Fk(e,t){if(1&e&&(y.O4$(),y._UZ(0,"image",9)),2&e){var n=y.oxw(2);y.uIk("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 Bk(e,t){if(1&e){var n=y.EpF();y.O4$(),y.TgZ(0,"svg",1),y.NdJ("click",function(e){return y.CHM(n),y.oxw().emitClickEvent(e)}),y.TgZ(1,"defs"),y.YNc(2,Ck,3,5,"linearGradient",2),y.YNc(3,kk,3,5,"radialGradient",2),y.qZA(),y.YNc(4,Zk,3,2,"ng-container",2),y.YNc(5,Mk,1,6,"circle",2),y.YNc(6,Pk,3,2,"ng-container",2),y.YNc(7,Lk,4,6,"text",3),y.YNc(8,Fk,1,5,"image",4),y.qZA()}if(2&e){var i=y.oxw();y.uIk("viewBox",i.svg.viewBox)("height",i.svg.height)("width",i.svg.width)("class",i.options.class),y.xp6(2),y.Q6J("ngIf",i.options.outerStrokeGradient),y.xp6(1),y.Q6J("ngIf",i.options.backgroundGradient),y.xp6(1),y.Q6J("ngIf",i.options.showBackground),y.xp6(1),y.Q6J("ngIf",i.options.showInnerStroke),y.xp6(1),y.Q6J("ngIf",0!=+i.options.percent||i.options.showZeroOuterStroke),y.xp6(1),y.Q6J("ngIf",!i.options.showImage&&(i.options.showTitle||i.options.showUnits||i.options.showSubtitle)),y.xp6(1),y.Q6J("ngIf",i.options.showImage)}}var jk=function e(){(0,f.Z)(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},zk=function(){var e=function(){function e(t,n,i){var r=this;(0,f.Z)(this,e),this.elRef=n,this.document=i,this.onClick=new y.vpe,this.svgElement=null,this.isInViewport=!1,this.onViewportChanged=new y.vpe,this._viewportChangedSubscriber=null,this.options=new jk,this.defaultOptions=new jk,this._lastPercent=0,this._gradientUUID=null,this.render=function(){r.applyOptions(),r.options.lazy?(null===r.svgElement&&r.draw(r._lastPercent),r.isInViewport&&(r.options.animation&&r.options.animationDuration>0?r.animate(r._lastPercent,r.options.percent):r.draw(r.options.percent),r._lastPercent=r.options.percent)):(r.options.animation&&r.options.animationDuration>0?r.animate(r._lastPercent,r.options.percent):r.draw(r.options.percent),r._lastPercent=r.options.percent)},this.polarToCartesian=function(e,t,n,i){var r=i*Math.PI/180;return{x:e+Math.sin(r)*n,y:t-Math.cos(r)*n}},this.draw=function(e){var t=(e=void 0===e?r.options.percent:Math.abs(e))>100?100:e,n=2*r.options.radius+2*r.options.outerStrokeWidth;r.options.showBackground&&(n+=2*r.options.backgroundStrokeWidth+r.max(0,2*r.options.backgroundPadding));var i,o,a={x:n/2,y:n/2},c={x:a.x,y:a.y-r.options.radius},u=r.polarToCartesian(a.x,a.y,r.options.radius,360*(r.options.clockwise?t:100-t)/100);if(100===t&&(u.x=u.x+(r.options.clockwise?-.01:.01)),t>50){var d=(0,s.Z)(r.options.clockwise?[1,1]:[1,0],2);i=d[0],o=d[1]}else{var h=(0,s.Z)(r.options.clockwise?[0,1]:[0,0],2);i=h[0],o=h[1]}var f=r.options.animateTitle?e:r.options.percent,m=f>r.options.maxPercent?"".concat(r.options.maxPercent.toFixed(r.options.toFixed),"+"):f.toFixed(r.options.toFixed),g=r.options.animateSubtitle?e:r.options.percent,v={x:a.x,y:a.y,textAnchor:"middle",color:r.options.titleColor,fontSize:r.options.titleFontSize,fontWeight:r.options.titleFontWeight,texts:[],tspans:[]};if(void 0!==r.options.titleFormat&&"Function"===r.options.titleFormat.constructor.name){var y=r.options.titleFormat(f);y instanceof Array?v.texts=(0,p.Z)(y):v.texts.push(y.toString())}else"auto"===r.options.title?v.texts.push(m):r.options.title instanceof Array?v.texts=(0,p.Z)(r.options.title):v.texts.push(r.options.title.toString());var _={x:a.x,y:a.y,textAnchor:"middle",color:r.options.subtitleColor,fontSize:r.options.subtitleFontSize,fontWeight:r.options.subtitleFontWeight,texts:[],tspans:[]};if(void 0!==r.options.subtitleFormat&&"Function"===r.options.subtitleFormat.constructor.name){var b=r.options.subtitleFormat(g);b instanceof Array?_.texts=(0,p.Z)(b):_.texts.push(b.toString())}else r.options.subtitle instanceof Array?_.texts=(0,p.Z)(r.options.subtitle):_.texts.push(r.options.subtitle.toString());var w={text:"".concat(r.options.units),fontSize:r.options.unitsFontSize,fontWeight:r.options.unitsFontWeight,color:r.options.unitsColor},S=0,x=1;if(r.options.showTitle&&(S+=v.texts.length),r.options.showSubtitle&&(S+=_.texts.length),r.options.showTitle){var C,k=(0,l.Z)(v.texts);try{for(k.s();!(C=k.n()).done;)v.tspans.push({span:C.value,dy:r.getRelativeY(x,S)}),x++}catch(Z){k.e(Z)}finally{k.f()}}if(r.options.showSubtitle){var T,A=(0,l.Z)(_.texts);try{for(A.s();!(T=A.n()).done;)_.tspans.push({span:T.value,dy:r.getRelativeY(x,S)}),x++}catch(Z){A.e(Z)}finally{A.f()}}null===r._gradientUUID&&(r._gradientUUID=r.uuid()),r.svg={viewBox:"0 0 ".concat(n," ").concat(n),width:r.options.responsive?"100%":n,height:r.options.responsive?"100%":n,backgroundCircle:{cx:a.x,cy:a.y,r:r.options.radius+r.options.outerStrokeWidth/2+r.options.backgroundPadding,fill:r.options.backgroundColor,fillOpacity:r.options.backgroundOpacity,stroke:r.options.backgroundStroke,strokeWidth:r.options.backgroundStrokeWidth},path:{d:"M ".concat(c.x," ").concat(c.y,"\n A ").concat(r.options.radius," ").concat(r.options.radius," 0 ").concat(i," ").concat(o," ").concat(u.x," ").concat(u.y),stroke:r.options.outerStrokeColor,strokeWidth:r.options.outerStrokeWidth,strokeLinecap:r.options.outerStrokeLinecap,fill:"none"},circle:{cx:a.x,cy:a.y,r:r.options.radius-r.options.space-r.options.outerStrokeWidth/2-r.options.innerStrokeWidth/2,fill:"none",stroke:r.options.innerStrokeColor,strokeWidth:r.options.innerStrokeWidth},title:v,units:w,subtitle:_,image:{x:a.x-r.options.imageWidth/2,y:a.y-r.options.imageHeight/2,src:r.options.imageSrc,width:r.options.imageWidth,height:r.options.imageHeight},outerLinearGradient:{id:"outer-linear-"+r._gradientUUID,colorStop1:r.options.outerStrokeColor,colorStop2:"transparent"===r.options.outerStrokeGradientStopColor?"#FFF":r.options.outerStrokeGradientStopColor},radialGradient:{id:"radial-"+r._gradientUUID,colorStop1:r.options.backgroundColor,colorStop2:"transparent"===r.options.backgroundGradientStopColor?"#FFF":r.options.backgroundGradientStopColor}}},this.getAnimationParameters=function(e,t){var n,i,o,a=r.options.startFromZero||e<0?0:e,s=t<0?0:r.min(t,r.options.maxPercent),l=Math.abs(Math.round(s-a));return l>=100?(n=100,i=r.options.animateTitle||r.options.animateSubtitle?Math.round(l/n):1):(n=l,i=1),(o=Math.round(r.options.animationDuration/n))<10&&(n=r.options.animationDuration/(o=10),i=!r.options.animateTitle&&!r.options.animateSubtitle&&l>100?Math.round(100/n):Math.round(l/n)),i<1&&(i=1),{times:n,step:i,interval:o}},this.animate=function(e,t){r._timerSubscription&&!r._timerSubscription.closed&&r._timerSubscription.unsubscribe();var n=r.options.startFromZero?0:e,i=t,o=r.getAnimationParameters(n,i),a=o.step,s=o.interval,l=n;r._timerSubscription=n<i?(0,xk.H)(0,s).subscribe(function(){(l+=a)<=i?!r.options.animateTitle&&!r.options.animateSubtitle&&l>=100?(r.draw(i),r._timerSubscription.unsubscribe()):r.draw(l):(r.draw(i),r._timerSubscription.unsubscribe())}):(0,xk.H)(0,s).subscribe(function(){(l-=a)>=i?!r.options.animateTitle&&!r.options.animateSubtitle&&i>=100?(r.draw(i),r._timerSubscription.unsubscribe()):r.draw(l):(r.draw(i),r._timerSubscription.unsubscribe())})},this.emitClickEvent=function(e){r.options.renderOnClick&&r.animate(0,r.options.percent),r.onClick.emit(e)},this.applyOptions=function(){for(var e=0,t=Object.keys(r.options);e<t.length;e++){var n=t[e];r.hasOwnProperty(n)&&void 0!==r[n]?r.options[n]=r[n]:r.templateOptions&&void 0!==r.templateOptions[n]&&(r.options[n]=r.templateOptions[n])}r.options.radius=Math.abs(+r.options.radius),r.options.space=+r.options.space,r.options.percent=+r.options.percent>0?+r.options.percent:0,r.options.maxPercent=Math.abs(+r.options.maxPercent),r.options.animationDuration=Math.abs(r.options.animationDuration),r.options.outerStrokeWidth=Math.abs(+r.options.outerStrokeWidth),r.options.innerStrokeWidth=Math.abs(+r.options.innerStrokeWidth),r.options.backgroundPadding=+r.options.backgroundPadding},this.getRelativeY=function(e,t){return(1*(e-t/2)-.18).toFixed(2)+"em"},this.min=function(e,t){return e<t?e:t},this.max=function(e,t){return e>t?e:t},this.uuid=function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)})},this.findSvgElement=function(){if(null===this.svgElement){var e=this.elRef.nativeElement.getElementsByTagName("svg");e.length>0&&(this.svgElement=e[0])}},this.checkViewport=function(){r.findSvgElement();var e=r.isInViewport;r.isInViewport=r.isElementInViewport(r.svgElement),e!==r.isInViewport&&r.onViewportChanged.emit({oldValue:e,newValue:r.isInViewport})},this.onScroll=function(e){r.checkViewport()},this.loadEventsForLazyMode=function(){if(r.options.lazy){r.document.addEventListener("scroll",r.onScroll,!0),r.window.addEventListener("resize",r.onScroll,!0),null===r._viewportChangedSubscriber&&(r._viewportChangedSubscriber=r.onViewportChanged.subscribe(function(e){e.newValue&&r.render()}));var e=(0,xk.H)(0,50).subscribe(function(){null===r.svgElement?r.checkViewport():e.unsubscribe()})}},this.unloadEventsForLazyMode=function(){r.document.removeEventListener("scroll",r.onScroll,!0),r.window.removeEventListener("resize",r.onScroll,!0),null!==r._viewportChangedSubscriber&&(r._viewportChangedSubscriber.unsubscribe(),r._viewportChangedSubscriber=null)},this.document=i,this.window=this.document.defaultView,Object.assign(this.options,t),Object.assign(this.defaultOptions,t)}return(0,m.Z)(e,[{key:"isDrawing",value:function(){return this._timerSubscription&&!this._timerSubscription.closed}},{key:"isElementInViewport",value:function(e){if(null==e)return!1;var t,n=e.getBoundingClientRect(),i=e.parentNode;do{if(t=i.getBoundingClientRect(),n.top>=t.bottom)return!1;if(n.bottom<=t.top)return!1;if(n.left>=t.right)return!1;if(n.right<=t.left)return!1;i=i.parentNode}while(i!=this.document.body);return!(n.top>=(this.window.innerHeight||this.document.documentElement.clientHeight)||n.bottom<=0||n.left>=(this.window.innerWidth||this.document.documentElement.clientWidth)||n.right<=0)}},{key:"ngOnInit",value:function(){this.loadEventsForLazyMode()}},{key:"ngOnDestroy",value:function(){this.unloadEventsForLazyMode()}},{key:"ngOnChanges",value:function(e){this.render(),"lazy"in e&&(e.lazy.currentValue?this.loadEventsForLazyMode():this.unloadEventsForLazyMode())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.Y36(jk),y.Y36(y.SBq),y.Y36(_.K0))},e.\u0275cmp=y.Xpm({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:[y.TTD],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&&y.YNc(0,Bk,9,11,"svg",0),2&e&&y.Q6J("ngIf",t.svg)},directives:[_.O5,_.sg],encapsulation:2}),e}(),Uk=function(){var e=function(){function e(){(0,f.Z)(this,e)}return(0,m.Z)(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[{provide:jk,useValue:t}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[_.ez]]}),e}(),Hk=function(){function e(t){(0,f.Z)(this,e),this.rawFile=t;var n,i=(n=t)&&(n.nodeName||n.prop&&n.attr&&n.find)?t.value:t;this["_createFrom"+("string"==typeof i?"FakePath":"Object")](i)}return(0,m.Z)(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}(),Yk=function(){function e(t,n,i){(0,f.Z)(this,e),this.url="/",this.headers=[],this.withCredentials=!0,this.formData=[],this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.index=void 0,this.uploader=t,this.some=n,this.options=i,this.file=new Hk(n),this._file=n,t.options&&(this.method=t.options.method||"POST",this.alias=t.options.itemAlias||"file"),this.url=t.options.url}return(0,m.Z)(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}(),Jk=function(){var e=function(){function e(){(0,f.Z)(this,e)}return(0,m.Z)(e,null,[{key:"getMimeClass",value:function(e){var t="application";return-1!==this.mime_psd.indexOf(e.type)||e.type.match("image.*")?t="image":e.type.match("video.*")?t="video":e.type.match("audio.*")?t="audio":"application/pdf"===e.type?t="pdf":-1!==this.mime_compress.indexOf(e.type)?t="compress":-1!==this.mime_doc.indexOf(e.type)?t="doc":-1!==this.mime_xsl.indexOf(e.type)?t="xls":-1!==this.mime_ppt.indexOf(e.type)&&(t="ppt"),"application"===t&&(t=this.fileTypeDetection(e.name)),t}},{key:"fileTypeDetection",value:function(e){var t={jpg:"image",jpeg:"image",tif:"image",psd:"image",bmp:"image",png:"image",nef:"image",tiff:"image",cr2:"image",dwg:"image",cdr:"image",ai:"image",indd:"image",pin:"image",cdp:"image",skp:"image",stp:"image","3dm":"image",mp3:"audio",wav:"audio",wma:"audio",mod:"audio",m4a:"audio",compress:"compress",zip:"compress",rar:"compress","7z":"compress",lz:"compress",z01:"compress",bz2:"compress",gz:"compress",pdf:"pdf",xls:"xls",xlsx:"xls",ods:"xls",mp4:"video",avi:"video",wmv:"video",mpg:"video",mts:"video",flv:"video","3gp":"video",vob:"video",m4v:"video",mpeg:"video",m2ts:"video",mov:"video",doc:"doc",docx:"doc",eps:"doc",txt:"doc",odt:"doc",rtf:"doc",ppt:"ppt",pptx:"ppt",pps:"ppt",ppsx:"ppt",odp:"ppt"},n=e.split(".");if(n.length<2)return"application";var i=n[n.length-1].toLowerCase();return void 0===t[i]?"application":t[i]}}]),e}();return e.mime_doc=["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"],e.mime_xsl=["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],e.mime_ppt=["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],e.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],e.mime_compress=["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream","application/x-zip-compressed","application/zip-compressed","application/x-7z-compressed","application/gzip","application/x-bzip2"],e}(),Gk=function(){function e(t){(0,f.Z)(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 y.vpe}return(0,m.Z)(e,[{key:"setOptions",value:function(e){this.options=Object.assign(this.options,e),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload,this.options.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&this.options.filters.unshift({name:"fileSize",fn:this._fileSizeFilter}),this.options.allowedFileType&&this.options.filters.unshift({name:"fileType",fn:this._fileTypeFilter}),this.options.allowedMimeType&&this.options.filters.unshift({name:"mimeType",fn:this._mimeTypeFilter});for(var t=0;t<this.queue.length;t++)this.queue[t].url=this.options.url}},{key:"addToQueue",value:function(e,t,n){var i,r=this,o=[],a=(0,l.Z)(e);try{for(a.s();!(i=a.n()).done;)o.push(i.value)}catch(d){a.e(d)}finally{a.f()}var s=this._getFilters(n),c=this.queue.length,u=[];o.map(function(e){t||(t=r.options);var n=new Hk(e);if(r._isValidFile(n,s,t)){var i=new Yk(r,e,t);u.push(i),r.queue.push(i),r._onAfterAddingFile(i)}else r._onWhenAddingFileFailed(n,s[r._failFilterIndex],t)}),this.queue.length!==c&&(this._onAfterAddingAll(u),this.progress=this._getTotalProgress()),this._render(),this.options.autoUpload&&this.uploadAll()}},{key:"removeFromQueue",value:function(e){var t=this.getIndexOfItem(e),n=this.queue[t];n.isUploading&&n.cancel(),this.queue.splice(t,1),this.progress=this._getTotalProgress()}},{key:"clearQueue",value:function(){for(;this.queue.length;)this.queue[0].remove();this.progress=0}},{key:"uploadItem",value:function(e){var t=this.getIndexOfItem(e),n=this.queue[t],i=this.options.isHTML5?"_xhrTransport":"_iframeTransport";n._prepareToUploading(),this.isUploading||(this.isUploading=!0,this[i](n))}},{key:"cancelItem",value:function(e){var t=this.getIndexOfItem(e),n=this.queue[t];n&&n.isUploading&&(this.options.isHTML5?n._xhr:n._form).abort()}},{key:"uploadAll",value:function(){var e=this.getNotUploadedItems().filter(function(e){return!e.isUploading});e.length&&(e.map(function(e){return e._prepareToUploading()}),e[0].upload())}},{key:"cancelAll",value:function(){this.getNotUploadedItems().map(function(e){return e.cancel()})}},{key:"isFile",value:function(e){return function(e){return File&&e instanceof File}(e)}},{key:"isFileLikeObject",value:function(e){return e instanceof Hk}},{key:"getIndexOfItem",value:function(e){return"number"==typeof e?e:this.queue.indexOf(e)}},{key:"getNotUploadedItems",value:function(){return this.queue.filter(function(e){return!e.isUploaded})}},{key:"getReadyItems",value:function(){return this.queue.filter(function(e){return e.isReady&&!e.isUploading}).sort(function(e,t){return e.index-t.index})}},{key:"destroy",value:function(){}},{key:"onAfterAddingAll",value:function(e){return{fileItems:e}}},{key:"onBuildItemForm",value:function(e,t){return{fileItem:e,form:t}}},{key:"onAfterAddingFile",value:function(e){return{fileItem:e}}},{key:"onWhenAddingFileFailed",value:function(e,t,n){return{item:e,filter:t,options:n}}},{key:"onBeforeUploadItem",value:function(e){return{fileItem:e}}},{key:"onProgressItem",value:function(e,t){return{fileItem:e,progress:t}}},{key:"onProgressAll",value:function(e){return{progress:e}}},{key:"onSuccessItem",value:function(e,t,n,i){return{item:e,response:t,status:n,headers:i}}},{key:"onErrorItem",value:function(e,t,n,i){return{item:e,response:t,status:n,headers:i}}},{key:"onCancelItem",value:function(e,t,n,i){return{item:e,response:t,status:n,headers:i}}},{key:"onCompleteItem",value:function(e,t,n,i){return{item:e,response:t,status:n,headers:i}}},{key:"onCompleteAll",value:function(){}},{key:"_mimeTypeFilter",value:function(e){return!(this.options.allowedMimeType&&-1===this.options.allowedMimeType.indexOf(e.type))}},{key:"_fileSizeFilter",value:function(e){return!(this.options.maxFileSize&&e.size>this.options.maxFileSize)}},{key:"_fileTypeFilter",value:function(e){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(Jk.getMimeClass(e)))}},{key:"_onErrorItem",value:function(e,t,n,i){e._onError(t,n,i),this.onErrorItem(e,t,n,i)}},{key:"_onCompleteItem",value:function(e,t,n,i){e._onComplete(t,n,i),this.onCompleteItem(e,t,n,i);var r=this.getReadyItems()[0];this.isUploading=!1,r?r.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())}},{key:"_headersGetter",value:function(e){return function(t){return t?e[t.toLowerCase()]||void 0:e}}},{key:"_xhrTransport",value:function(e){var t,n=this,i=this,r=e._xhr=new XMLHttpRequest;if(this._onBeforeUploadItem(e),"number"!=typeof e._file.size)throw new TypeError("The file specified is no longer valid");if(this.options.disableMultipart)t=this.options.formatDataFunction(e);else{t=new FormData,this._onBuildItemForm(e,t);var o=function(){return t.append(e.alias,e._file,e.file.name)};this.options.parametersBeforeFiles||o(),void 0!==this.options.additionalParameter&&Object.keys(this.options.additionalParameter).forEach(function(i){var r=n.options.additionalParameter[i];"string"==typeof r&&r.indexOf("{{file_name}}")>=0&&(r=r.replace("{{file_name}}",e.file.name)),t.append(i,r)}),this.options.parametersBeforeFiles&&o()}if(r.upload.onprogress=function(t){var i=Math.round(t.lengthComputable?100*t.loaded/t.total:0);n._onProgressItem(e,i)},r.onload=function(){var t=n._parseHeaders(r.getAllResponseHeaders()),i=n._transformResponse(r.response,t),o=n._isSuccessCode(r.status)?"Success":"Error";n["_on"+o+"Item"](e,i,r.status,t),n._onCompleteItem(e,i,r.status,t)},r.onerror=function(){var t=n._parseHeaders(r.getAllResponseHeaders()),i=n._transformResponse(r.response,t);n._onErrorItem(e,i,r.status,t),n._onCompleteItem(e,i,r.status,t)},r.onabort=function(){var t=n._parseHeaders(r.getAllResponseHeaders()),i=n._transformResponse(r.response,t);n._onCancelItem(e,i,r.status,t),n._onCompleteItem(e,i,r.status,t)},r.open(e.method,e.url,!0),r.withCredentials=e.withCredentials,this.options.headers){var a,s=(0,l.Z)(this.options.headers);try{for(s.s();!(a=s.n()).done;){var c=a.value;r.setRequestHeader(c.name,c.value)}}catch(p){s.e(p)}finally{s.f()}}if(e.headers.length){var u,d=(0,l.Z)(e.headers);try{for(d.s();!(u=d.n()).done;){var h=u.value;r.setRequestHeader(h.name,h.value)}}catch(p){d.e(p)}finally{d.f()}}this.authToken&&r.setRequestHeader(this.authTokenHeader,this.authToken),r.onreadystatechange=function(){r.readyState==XMLHttpRequest.DONE&&i.response.emit(r.responseText)},this.options.formatDataFunctionIsAsync?t.then(function(e){return r.send(JSON.stringify(e))}):r.send(t),this._render()}},{key:"_getTotalProgress",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.options.removeAfterUpload)return e;var t=this.getNotUploadedItems().length,n=t?this.queue.length-t:this.queue.length,i=100/this.queue.length,r=e*i/100;return Math.round(n*i+r)}},{key:"_getFilters",value:function(e){if(!e)return this.options.filters;if(Array.isArray(e))return e;if("string"==typeof e){var t=e.match(/[^\s,]+/g);return this.options.filters.filter(function(e){return-1!==t.indexOf(e.name)})}return this.options.filters}},{key:"_render",value:function(){}},{key:"_queueLimitFilter",value:function(){return void 0===this.options.queueLimit||this.queue.length<this.options.queueLimit}},{key:"_isValidFile",value:function(e,t,n){var i=this;return this._failFilterIndex=-1,!t.length||t.every(function(t){return i._failFilterIndex++,t.fn.call(i,e,n)})}},{key:"_isSuccessCode",value:function(e){return e>=200&&e<300||304===e}},{key:"_transformResponse",value:function(e,t){return e}},{key:"_parseHeaders",value:function(e){var t,n,i,r={};return e?(e.split("\n").map(function(e){i=e.indexOf(":"),t=e.slice(0,i).trim().toLowerCase(),n=e.slice(i+1).trim(),t&&(r[t]=r[t]?r[t]+", "+n:n)}),r):r}},{key:"_onWhenAddingFileFailed",value:function(e,t,n){this.onWhenAddingFileFailed(e,t,n)}},{key:"_onAfterAddingFile",value:function(e){this.onAfterAddingFile(e)}},{key:"_onAfterAddingAll",value:function(e){this.onAfterAddingAll(e)}},{key:"_onBeforeUploadItem",value:function(e){e._onBeforeUpload(),this.onBeforeUploadItem(e)}},{key:"_onBuildItemForm",value:function(e,t){e._onBuildForm(t),this.onBuildItemForm(e,t)}},{key:"_onProgressItem",value:function(e,t){var n=this._getTotalProgress(t);this.progress=n,e._onProgress(t),this.onProgressItem(e,t),this.onProgressAll(n),this._render()}},{key:"_onSuccessItem",value:function(e,t,n,i){e._onSuccess(t,n,i),this.onSuccessItem(e,t,n,i)}},{key:"_onCancelItem",value:function(e,t,n,i){e._onCancel(t,n,i),this.onCancelItem(e,t,n,i)}}]),e}(),Wk=function(){var e=function(){function e(t){(0,f.Z)(this,e),this.onFileSelected=new y.vpe,this.element=t}return(0,m.Z)(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)(y.Y36(y.SBq))},e.\u0275dir=y.lG2({type:e,selectors:[["","ng2FileSelect",""]],hostBindings:function(e,t){1&e&&y.NdJ("change",function(){return t.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}}),e}(),Vk=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[_.ez]]}),e}(),Qk=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}(),Xk=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Kk=function(e){function t(){return e.call(this)||this}return Xk(t,e),t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y.Yz7({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(Qk),$k=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({providers:[{provide:Qk,useClass:Kk}]}),e}(),eT=function(){function e(){(0,f.Z)(this,e)}return(0,m.Z)(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}(),tT=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.call(this)}return n}(eT);return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),nT=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({providers:[{provide:eT,useClass:tT}]}),e}(),iT=n(3574),rT=n(64646),oT=n(60131),aT=n(4499),sT=n(93487),lT=n(39887),cT=n(31927),uT=n(13426),dT=n(38575),hT=n(99583),pT=n(64233),fT=n(26575),mT=n(59803),gT=n(65890),vT=function e(t,n){(0,f.Z)(this,e),this.id=t,this.url=n},yT=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,f.Z)(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return(0,m.Z)(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(vT),_T=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r){var o;return(0,f.Z)(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return(0,m.Z)(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(vT),bT=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r){var o;return(0,f.Z)(this,n),(o=t.call(this,e,i)).reason=r,o}return(0,m.Z)(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(vT),wT=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r){var o;return(0,f.Z)(this,n),(o=t.call(this,e,i)).error=r,o}return(0,m.Z)(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(vT),ST=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o){var a;return(0,f.Z)(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return(0,m.Z)(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(vT),xT=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o){var a;return(0,f.Z)(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return(0,m.Z)(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(vT),CT=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o,a){var s;return(0,f.Z)(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return(0,m.Z)(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}(vT),kT=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o){var a;return(0,f.Z)(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return(0,m.Z)(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(vT),TT=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o){var a;return(0,f.Z)(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return(0,m.Z)(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(vT),AT=function(){function e(t){(0,f.Z)(this,e),this.route=t}return(0,m.Z)(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),ZT=function(){function e(t){(0,f.Z)(this,e),this.route=t}return(0,m.Z)(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),MT=function(){function e(t){(0,f.Z)(this,e),this.snapshot=t}return(0,m.Z)(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),OT=function(){function e(t){(0,f.Z)(this,e),this.snapshot=t}return(0,m.Z)(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),ET=function(){function e(t){(0,f.Z)(this,e),this.snapshot=t}return(0,m.Z)(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),PT=function(){function e(t){(0,f.Z)(this,e),this.snapshot=t}return(0,m.Z)(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),IT=function(){function e(t,n,i){(0,f.Z)(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return(0,m.Z)(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}(),qT="primary",NT=function(){function e(t){(0,f.Z)(this,e),this.params=t||{}}return(0,m.Z)(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 DT(e){return new NT(e)}function RT(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function LT(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;for(var r={},o=0;o<i.length;o++){var a=i[o],s=e[o];if(a.startsWith(":"))r[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function FT(e,t){var n,i=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!i||!r||i.length!=r.length)return!1;for(var o=0;o<i.length;o++)if(!BT(e[n=i[o]],t[n]))return!1;return!0}function BT(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;var n=(0,p.Z)(e).sort(),i=(0,p.Z)(t).sort();return n.every(function(e,t){return i[t]===e})}return e===t}function jT(e){return Array.prototype.concat.apply([],e)}function zT(e){return e.length>0?e[e.length-1]:null}function UT(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function HT(e){return(0,y.CqO)(e)?e:(0,y.QGY)(e)?(0,we.D)(Promise.resolve(e)):(0,Ce.of)(e)}var YT={exact:function e(t,n,i){if(!eA(t.segments,n.segments))return!1;if(!QT(t.segments,n.segments,i))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r],i))return!1}return!0},subset:WT},JT={exact:function(e,t){return FT(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return BT(e[n],t[n])})},ignored:function(){return!0}};function GT(e,t,n){return YT[n.paths](e.root,t.root,n.matrixParams)&&JT[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function WT(e,t,n){return VT(e,t,t.segments,n)}function VT(e,t,n,i){if(e.segments.length>n.length){var r=e.segments.slice(0,n.length);return!!eA(r,n)&&!t.hasChildren()&&!!QT(r,n,i)}if(e.segments.length===n.length){if(!eA(e.segments,n))return!1;if(!QT(e.segments,n,i))return!1;for(var o in t.children){if(!e.children[o])return!1;if(!WT(e.children[o],t.children[o],i))return!1}return!0}var a=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!eA(e.segments,a)&&!!QT(e.segments,a,i)&&!!e.children.primary&&VT(e.children.primary,t,s,i)}function QT(e,t,n){return t.every(function(t,i){return JT[n](e[i].parameters,t.parameters)})}var XT=function(){function e(t,n,i){(0,f.Z)(this,e),this.root=t,this.queryParams=n,this.fragment=i}return(0,m.Z)(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=DT(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return iA.serialize(this)}}]),e}(),KT=function(){function e(t,n){var i=this;(0,f.Z)(this,e),this.segments=t,this.children=n,this.parent=null,UT(n,function(e,t){return e.parent=i})}return(0,m.Z)(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return rA(this)}}]),e}(),$T=function(){function e(t,n){(0,f.Z)(this,e),this.path=t,this.parameters=n}return(0,m.Z)(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=DT(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return dA(this)}}]),e}();function eA(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var tA=function e(){(0,f.Z)(this,e)},nA=function(){function e(){(0,f.Z)(this,e)}return(0,m.Z)(e,[{key:"parse",value:function(e){var t=new gA(e);return new XT(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,i="/".concat(oA(e.root,!0)),r=(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(sA(e),"=").concat(sA(t))}).join("&"):"".concat(sA(e),"=").concat(sA(n))})).length?"?".concat(n.join("&")):""),o="string"==typeof e.fragment?"#".concat(function(e){return encodeURI(e)}(e.fragment)):"";return"".concat(i).concat(r).concat(o)}}]),e}(),iA=new nA;function rA(e){return e.segments.map(function(e){return dA(e)}).join("/")}function oA(e,t){if(!e.hasChildren())return rA(e);if(t){var n=e.children.primary?oA(e.children.primary,!1):"",i=[];return UT(e.children,function(e,t){t!==qT&&i.push("".concat(t,":").concat(oA(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return UT(e.children,function(e,i){i===qT&&(n=n.concat(t(e,i)))}),UT(e.children,function(e,i){i!==qT&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return n===qT?[oA(e.children.primary,!1)]:["".concat(n,":").concat(oA(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(rA(e),"/").concat(r[0]):"".concat(rA(e),"/(").concat(r.join("//"),")")}function aA(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function sA(e){return aA(e).replace(/%3B/gi,";")}function lA(e){return aA(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function cA(e){return decodeURIComponent(e)}function uA(e){return cA(e.replace(/\+/g,"%20"))}function dA(e){return"".concat(lA(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(lA(e),"=").concat(lA(t[e]))}).join("")));var t}var hA=/^[^\/()?;=#]+/;function pA(e){var t=e.match(hA);return t?t[0]:""}var fA=/^[^=?&#]+/,mA=/^[^?&#]+/,gA=function(){function e(t){(0,f.Z)(this,e),this.url=t,this.remaining=t}return(0,m.Z)(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new KT([],{}):new KT([],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 KT(e,t)),n}},{key:"parseSegment",value:function(){var e=pA(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new $T(cA(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=pA(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=pA(this.remaining);i&&this.capture(n=i)}e[cA(t)]=cA(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(fA);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(mA);return t?t[0]:""}(this.remaining);i&&this.capture(n=i)}var r=uA(t),o=uA(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(e[r]=a=[a]),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=pA(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=qT);var o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new KT([],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}(),vA=function(){function e(t){(0,f.Z)(this,e),this._root=t}return(0,m.Z)(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=yA(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=yA(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=_A(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 _A(e,this._root).map(function(e){return e.value})}}]),e}();function yA(e,t){if(e===t.value)return t;var n,i=(0,l.Z)(t.children);try{for(i.s();!(n=i.n()).done;){var r=yA(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function _A(e,t){if(e===t.value)return[t];var n,i=(0,l.Z)(t.children);try{for(i.s();!(n=i.n()).done;){var r=_A(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var bA=function(){function e(t,n){(0,f.Z)(this,e),this.value=t,this.children=n}return(0,m.Z)(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function wA(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var SA=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i){var r;return(0,f.Z)(this,n),(r=t.call(this,e)).snapshot=i,MA((0,iT.Z)(r),e),r}return(0,m.Z)(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(vA);function xA(e,t){var n=function(e,t){var n=new AA([],{},{},"",{},qT,t,null,e.root,-1,{});return new ZA("",new bA(n,[]))}(e,t),i=new Se.X([new $T("",{})]),r=new Se.X({}),o=new Se.X({}),a=new Se.X({}),s=new Se.X(""),l=new CA(i,r,a,s,o,qT,t,n.root);return l.snapshot=n.root,new SA(new bA(l,[]),n)}var CA=function(){function e(t,n,i,r,o,a,s,l){(0,f.Z)(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=l}return(0,m.Z)(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((0,E.U)(function(e){return DT(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,E.U)(function(e){return DT(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function kA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return TA(n.slice(i))}function TA(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 AA=function(){function e(t,n,i,r,o,a,s,l,c,u,d){(0,f.Z)(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}return(0,m.Z)(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=DT(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=DT(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}(),ZA=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i){var r;return(0,f.Z)(this,n),(r=t.call(this,i)).url=e,MA((0,iT.Z)(r),i),r}return(0,m.Z)(n,[{key:"toString",value:function(){return OA(this._root)}}]),n}(vA);function MA(e,t){t.value._routerState=e,t.children.forEach(function(t){return MA(e,t)})}function OA(e){var t=e.children.length>0?" { ".concat(e.children.map(OA).join(", ")," } "):"";return"".concat(e.value).concat(t)}function EA(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,FT(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),FT(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(!FT(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),FT(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function PA(e,t){var n,i;return FT(e.params,t.params)&&eA(n=e.url,i=t.url)&&n.every(function(e,t){return FT(e.parameters,i[t].parameters)})&&!(!e.parent!=!t.parent)&&(!e.parent||PA(e.parent,t.parent))}function IA(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){var i=n.value;i._futureSnapshot=t.value;var r=function(e,t,n){return t.children.map(function(t){var i,r=(0,l.Z)(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(e.shouldReuseRoute(t.value,o.value.snapshot))return IA(e,t,o)}}catch(a){r.e(a)}finally{r.f()}return IA(e,t)})}(e,t,n);return new bA(i,r)}if(e.shouldAttach(t.value)){var o=e.retrieve(t.value);if(null!==o){var a=o.route;return qA(t,a),a}}var s=function(e){return new CA(new Se.X(e.url),new Se.X(e.params),new Se.X(e.queryParams),new Se.X(e.fragment),new Se.X(e.data),e.outlet,e.component,e)}(t.value),c=t.children.map(function(t){return IA(e,t)});return new bA(s,c)}function qA(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)qA(e.children[n],t.children[n])}function NA(e,t,n,i,r){if(0===n.length)return LA(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new BA(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return UT(i.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat((0,p.Z)(e),[{outlets:o}])}if(i.segmentPath)return[].concat((0,p.Z)(e),[i.segmentPath])}return"string"!=typeof i?[].concat((0,p.Z)(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat((0,p.Z)(e),[i])},[]);return new BA(n,t,i)}(n);if(o.toRoot())return LA(t.root,new KT([],{}),t,i,r);var a=function(e,t,n){if(e.isAbsolute)return new jA(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new jA(i,i===t.root,0)}var r=DA(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new jA(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?UA(a.segmentGroup,a.index,o.commands):zA(a.segmentGroup,a.index,o.commands);return LA(a.segmentGroup,s,t,i,r)}function DA(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function RA(e){return"object"==typeof e&&null!=e&&e.outlets}function LA(e,t,n,i,r){var o={};return i&&UT(i,function(e,t){o[t]=Array.isArray(e)?e.map(function(e){return"".concat(e)}):"".concat(e)}),new XT(n.root===e?t:FA(n.root,e,t),o,r)}function FA(e,t,n){var i={};return UT(e.children,function(e,r){i[r]=e===t?n:FA(e,t,n)}),new KT(e.segments,i)}var BA=function(){function e(t,n,i){if((0,f.Z)(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=i,t&&i.length>0&&DA(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(RA);if(r&&r!==zT(i))throw new Error("{outlets:{}} has to be the last command")}return(0,m.Z)(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),jA=function e(t,n,i){(0,f.Z)(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function zA(e,t,n){if(e||(e=new KT([],{})),0===e.segments.length&&e.hasChildren())return UA(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r<e.segments.length;){if(i>=n.length)return o;var a=e.segments[r],s=n[i];if(RA(s))break;var l="".concat(s),c=i<n.length-1?n[i+1]:null;if(r>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!GA(l,c,a))return o;i+=2}else{if(!GA(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){var o=new KT(e.segments.slice(0,i.pathIndex),{});return o.children.primary=new KT(e.segments.slice(i.pathIndex),e.children),UA(o,0,r)}return i.match&&0===r.length?new KT(e.segments,{}):i.match&&!e.hasChildren()?HA(e,t,n):i.match?UA(e,0,r):HA(e,t,n)}function UA(e,t,n){if(0===n.length)return new KT(e.segments,{});var i=function(e){return RA(e[0])?e[0].outlets:(0,a.Z)({},qT,e)}(n),r={};return UT(i,function(n,i){"string"==typeof n&&(n=[n]),null!==n&&(r[i]=zA(e.children[i],t,n))}),UT(e.children,function(e,t){void 0===i[t]&&(r[t]=e)}),new KT(e.segments,r)}function HA(e,t,n){for(var i=e.segments.slice(0,t),r=0;r<n.length;){var o=n[r];if(RA(o)){var a=YA(o.outlets);return new KT(i,a)}if(0===r&&DA(n[0]))i.push(new $T(e.segments[t].path,JA(n[0]))),r++;else{var s=RA(o)?o.outlets.primary:"".concat(o),l=r<n.length-1?n[r+1]:null;s&&l&&DA(l)?(i.push(new $T(s,JA(l))),r+=2):(i.push(new $T(s,{})),r++)}}return new KT(i,{})}function YA(e){var t={};return UT(e,function(e,n){"string"==typeof e&&(e=[e]),null!==e&&(t[n]=HA(new KT([],{}),0,e))}),t}function JA(e){var t={};return UT(e,function(e,n){return t[n]="".concat(e)}),t}function GA(e,t,n){return e==n.path&&FT(t,n.parameters)}var WA=function(){function e(t,n,i,r){(0,f.Z)(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=i,this.forwardEvent=r}return(0,m.Z)(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),EA(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var i=this,r=wA(t);e.children.forEach(function(e){var t=e.value.outlet;i.deactivateRoutes(e,r[t],n),delete r[t]}),UT(r,function(e,t){i.deactivateRouteAndItsChildren(e,n)})}},{key:"deactivateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(i===r)if(i.component){var o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var i=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:i,route:e,contexts:r})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){for(var n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,r=wA(e),o=0,a=Object.keys(r);o<a.length;o++)this.deactivateRouteAndItsChildren(r[a[o]],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}},{key:"activateChildRoutes",value:function(e,t,n){var i=this,r=wA(t);e.children.forEach(function(e){i.activateRoutes(e,r[e.value.outlet],n),i.forwardEvent(new PT(e.value.snapshot))}),e.children.length&&this.forwardEvent(new OT(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(EA(i),i===r)if(i.component){var o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(i.component){var a=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){var s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),VA(s.route)}else{var l=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),c=l?l.module.componentFactoryResolver:null;a.attachRef=null,a.route=i,a.resolver=c,a.outlet&&a.outlet.activateWith(i,c),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function VA(e){EA(e.value),e.children.forEach(VA)}var QA=function e(t,n){(0,f.Z)(this,e),this.routes=t,this.module=n};function XA(e){return"function"==typeof e}function KA(e){return e instanceof XT}var $A=Symbol("INITIAL_VALUE");function eZ(){return(0,q.w)(function(e){return(0,_t.aj)(e.map(function(e){return e.pipe((0,P.q)(1),(0,O.O)($A))})).pipe((0,cT.R)(function(e,t){var n=!1;return t.reduce(function(e,i,r){if(e!==$A)return e;if(i===$A&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||KA(i))return i}return e},e)},$A),(0,dt.h)(function(e){return e!==$A}),(0,E.U)(function(e){return KA(e)?e:!0===e}),(0,P.q)(1))})}var tZ=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=y.Xpm({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&y._UZ(0,"router-outlet")},directives:function(){return[iM]},encapsulation:2}),e}();function nZ(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var i=e[n],r=rZ(t,i);iZ(i,r)}}function iZ(e,t){e.children&&nZ(e.children,t)}function rZ(e,t){return t?e||t.path?e&&!t.path?"".concat(e,"/"):!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function oZ(e){var t=e.children&&e.children.map(oZ),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==qT&&(n.component=tZ),n}function aZ(e){return e.outlet||qT}function sZ(e,t){var n=e.filter(function(e){return aZ(e)===t});return n.push.apply(n,(0,p.Z)(e.filter(function(e){return aZ(e)!==t}))),n}var lZ={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function cZ(e,t,n){var i;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},lZ):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||LT)(n,e,t);if(!r)return Object.assign({},lZ);var o={};UT(r.posParams,function(e,t){o[t]=e.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function uZ(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&pZ(e,n,i)){var o=new KT(t,hZ(e,t,i,new KT(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&fZ(e,n,i)){var a=new KT(e.segments,dZ(e,t,n,i,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new KT(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function dZ(e,t,n,i,r,o){var a,s={},c=(0,l.Z)(i);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(mZ(e,n,u)&&!r[aZ(u)]){var d=new KT([],{});d._sourceSegment=e,d._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[aZ(u)]=d}}}catch(h){c.e(h)}finally{c.f()}return Object.assign(Object.assign({},r),s)}function hZ(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,a=(0,l.Z)(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&aZ(s)!==qT){var c=new KT([],{});c._sourceSegment=e,c._segmentIndexShift=t.length,r[aZ(s)]=c}}}catch(u){a.e(u)}finally{a.f()}return r}function pZ(e,t,n){return n.some(function(n){return mZ(e,t,n)&&aZ(n)!==qT})}function fZ(e,t,n){return n.some(function(n){return mZ(e,t,n)})}function mZ(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function gZ(e,t,n,i){return!!(aZ(e)===i||i!==qT&&mZ(t,n,e))&&("**"===e.path||cZ(t,e,n).matched)}function vZ(e,t,n){return 0===t.length&&!e.children[n]}var yZ=function e(t){(0,f.Z)(this,e),this.segmentGroup=t||null},_Z=function e(t){(0,f.Z)(this,e),this.urlTree=t};function bZ(e){return new A.y(function(t){return t.error(new yZ(e))})}function wZ(e){return new A.y(function(t){return t.error(new _Z(e))})}function SZ(e){return new A.y(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var xZ=function(){function e(t,n,i,r,o){(0,f.Z)(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(y.h0i)}return(0,m.Z)(e,[{key:"apply",value:function(){var e=this,t=uZ(this.urlTree.root,[],[],this.config).segmentGroup,n=new KT(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,qT).pipe((0,E.U)(function(t){return e.createUrlTree(CZ(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe((0,uT.K)(function(t){if(t instanceof _Z)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof yZ)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,qT).pipe((0,E.U)(function(n){return t.createUrlTree(CZ(n),e.queryParams,e.fragment)})).pipe((0,uT.K)(function(e){if(e instanceof yZ)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new KT([],(0,a.Z)({},qT,e)):e;return new XT(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe((0,E.U)(function(e){return new KT([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],o=0,a=Object.keys(n.children);o<a.length;o++){var s=a[o];"primary"===s?r.unshift(s):r.push(s)}return(0,we.D)(r).pipe((0,dT.b)(function(r){var o=n.children[r],a=sZ(t,r);return i.expandSegmentGroup(e,a,o,r).pipe((0,E.U)(function(e){return{segment:e,outlet:r}}))}),(0,cT.R)(function(e,t){return e[t.outlet]=t.segment,e},{}),(0,hT.Z)())}},{key:"expandSegment",value:function(e,t,n,i,r,o){var a=this;return(0,we.D)(n).pipe((0,dT.b)(function(s){return a.expandSegmentAgainstRoute(e,t,n,s,i,r,o).pipe((0,uT.K)(function(e){if(e instanceof yZ)return(0,Ce.of)(null);throw e}))}),(0,pT.P)(function(e){return!!e}),(0,uT.K)(function(e,n){if(e instanceof rT.K||"EmptyError"===e.name){if(vZ(t,i,r))return(0,Ce.of)(new KT([],{}));throw new yZ(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return gZ(i,t,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):bZ(t):bZ(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?wZ(o):this.lineralizeSegments(n,o).pipe((0,jt.zg)(function(n){var o=new KT(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=cZ(t,i,r),l=s.consumedSegments,c=s.lastChild,u=s.positionalParamSegments;if(!s.matched)return bZ(t);var d=this.applyRedirectCommands(l,i.redirectTo,u);return i.redirectTo.startsWith("/")?wZ(d):this.lineralizeSegments(i,d).pipe((0,jt.zg)(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,Ce.of)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe((0,E.U)(function(e){return n._loadedConfig=e,new KT(i,{})})):(0,Ce.of)(new KT(i,{}));var a=cZ(t,n,i),s=a.consumedSegments,l=a.lastChild;if(!a.matched)return bZ(t);var c=i.slice(l);return this.getChildConfig(e,n,i).pipe((0,jt.zg)(function(e){var i=e.module,a=e.routes,l=uZ(t,s,c,a),u=l.segmentGroup,d=l.slicedSegments,h=new KT(u.segments,u.children);if(0===d.length&&h.hasChildren())return o.expandChildren(i,a,h).pipe((0,E.U)(function(e){return new KT(s,e)}));if(0===a.length&&0===d.length)return(0,Ce.of)(new KT(s,{}));var p=aZ(n)===r;return o.expandSegment(i,h,a,d,p?qT:r,!0).pipe((0,E.U)(function(e){return new KT(s.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?(0,Ce.of)(new QA(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?(0,Ce.of)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe((0,jt.zg)(function(n){return n?i.configLoader.load(e.injector,t).pipe((0,E.U)(function(e){return t._loadedConfig=e,e})):function(e){return new A.y(function(t){return t.error(RT("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):(0,Ce.of)(new QA([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;if(!r||0===r.length)return(0,Ce.of)(!0);var o=r.map(function(i){var r,o=e.get(i);if(function(e){return e&&XA(e.canLoad)}(o))r=o.canLoad(t,n);else{if(!XA(o))throw new Error("Invalid CanLoad guard");r=o(t,n)}return HT(r)});return(0,Ce.of)(o).pipe(eZ(),(0,I.b)(function(e){if(KA(e)){var t=RT('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),(0,E.U)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,Ce.of)(n);if(i.numberOfChildren>1||!i.children.primary)return SZ(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new XT(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return UT(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return UT(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new KT(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=(0,l.Z)(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return e}}]),e}();function CZ(e){for(var t={},n=0,i=Object.keys(e.children);n<i.length;n++){var r=i[n],o=CZ(e.children[r]);(o.segments.length>0||o.hasChildren())&&(t[r]=o)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new KT(e.segments.concat(t.segments),t.children)}return e}(new KT(e.segments,t))}var kZ=function e(t){(0,f.Z)(this,e),this.path=t,this.route=this.path[this.path.length-1]},TZ=function e(t,n){(0,f.Z)(this,e),this.component=t,this.route=n};function AZ(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function ZZ(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=wA(t);return e.children.forEach(function(e){MZ(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),UT(o,function(e,t){return EZ(e,n.getContext(t),r)}),r}function MZ(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var l=OZ(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new kZ(i)):(o.data=a.data,o._resolvedData=a._resolvedData),ZZ(e,t,o.component?s?s.children:null:n,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new TZ(s.outlet.component,a))}else a&&EZ(t,s,r),r.canActivateChecks.push(new kZ(i)),ZZ(e,null,o.component?s?s.children:null:n,i,r);return r}function OZ(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!eA(e.url,t.url);case"pathParamsOrQueryParamsChange":return!eA(e.url,t.url)||!FT(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!PA(e,t)||!FT(e.queryParams,t.queryParams);case"paramsChange":default:return!PA(e,t)}}function EZ(e,t,n){var i=wA(e),r=e.value;UT(i,function(e,i){EZ(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new TZ(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var PZ=function e(){(0,f.Z)(this,e)};function IZ(e){return new A.y(function(t){return t.error(e)})}var qZ=function(){function e(t,n,i,r,o,a){(0,f.Z)(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return(0,m.Z)(e,[{key:"recognize",value:function(){var e=uZ(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,qT);if(null===t)return null;var n=new AA([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},qT,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new bA(n,t),r=new ZA(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=kA(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i<r.length;i++){var o=r[i],a=t.children[o],s=sZ(e,o),l=this.processSegmentGroup(s,a,o);if(null===l)return null;n.push.apply(n,(0,p.Z)(l))}var c=NZ(n);return c.sort(function(e,t){return e.value.outlet===qT?-1:t.value.outlet===qT?1:e.value.outlet.localeCompare(t.value.outlet)}),c}},{key:"processSegment",value:function(e,t,n,i){var r,o=(0,l.Z)(e);try{for(o.s();!(r=o.n()).done;){var a=this.processSegmentAgainstRoute(r.value,t,n,i);if(null!==a)return a}}catch(s){o.e(s)}finally{o.f()}return vZ(t,n,i)?[]:null}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo||!gZ(e,t,n,i))return null;var r,o=[],a=[];if("**"===e.path){var s=n.length>0?zT(n).parameters:{};r=new AA(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,LZ(e),aZ(e),e.component,e,DZ(t),RZ(t)+n.length,FZ(e))}else{var l=cZ(t,e,n);if(!l.matched)return null;o=l.consumedSegments,a=n.slice(l.lastChild),r=new AA(o,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,LZ(e),aZ(e),e.component,e,DZ(t),RZ(t)+o.length,FZ(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),u=uZ(t,o,a,c.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),d=u.segmentGroup,h=u.slicedSegments;if(0===h.length&&d.hasChildren()){var p=this.processChildren(c,d);return null===p?null:[new bA(r,p)]}if(0===c.length&&0===h.length)return[new bA(r,[])];var f=aZ(e)===i,m=this.processSegment(c,d,h,f?qT:i);return null===m?null:[new bA(r,m)]}}]),e}();function NZ(e){var t,n=[],i=new Set,r=(0,l.Z)(e);try{var o=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,o=n.find(function(t){return e.value.routeConfig===t.value.routeConfig});void 0!==o?((r=o.children).push.apply(r,(0,p.Z)(e.children)),i.add(o)):n.push(e)};for(r.s();!(t=r.n()).done;)o()}catch(d){r.e(d)}finally{r.f()}var a,s=(0,l.Z)(i);try{for(s.s();!(a=s.n()).done;){var c=a.value,u=NZ(c.children);n.push(new bA(c.value,u))}}catch(d){s.e(d)}finally{s.f()}return n.filter(function(e){return!i.has(e)})}function DZ(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function RZ(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 LZ(e){return e.data||{}}function FZ(e){return e.resolve||{}}function BZ(e){return(0,q.w)(function(t){var n=e(t);return n?(0,we.D)(n).pipe((0,E.U)(function(){return t})):(0,Ce.of)(t)})}var jZ=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(function(){function e(){(0,f.Z)(this,e)}return(0,m.Z)(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}()),zZ=new y.OlP("ROUTES"),UZ=function(){function e(t,n,i,r){(0,f.Z)(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return(0,m.Z)(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe((0,E.U)(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new QA(jT(r.injector.get(zZ,void 0,y.XFs.Self|y.XFs.Optional)).map(oZ),r)}),(0,uT.K)(function(e){throw t._loader$=void 0,e}));return t._loader$=new lT.c(i,function(){return new x.xQ}).pipe((0,fT.x)()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?(0,we.D)(this.loader.load(e)):HT(e()).pipe((0,jt.zg)(function(e){return e instanceof y.YKP?(0,Ce.of)(e):(0,we.D)(t.compiler.compileModuleAsync(e))}))}}]),e}(),HZ=function e(){(0,f.Z)(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new YZ,this.attachRef=null},YZ=function(){function e(){(0,f.Z)(this,e),this.contexts=new Map}return(0,m.Z)(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 HZ,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),JZ=function(){function e(){(0,f.Z)(this,e)}return(0,m.Z)(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 GZ(e){throw e}function WZ(e,t,n){return t.parse("/")}function VZ(e,t){return(0,Ce.of)(null)}var QZ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},XZ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},KZ=function(){var e=function(){function e(t,n,i,r,o,a,s,l){var c=this;(0,f.Z)(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new x.xQ,this.errorHandler=GZ,this.malformedUriErrorHandler=WZ,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:VZ,afterPreactivation:VZ},this.urlHandlingStrategy=new JZ,this.routeReuseStrategy=new jZ,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(y.h0i),this.console=o.get(y.c2e);var u=o.get(y.R0b);this.isNgZoneEnabled=u instanceof y.R0b&&y.R0b.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new XT(new KT([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new UZ(a,s,function(e){return c.triggerEvent(new AT(e))},function(e){return c.triggerEvent(new ZT(e))}),this.routerState=xA(this.currentUrlTree,this.rootComponentType),this.transitions=new Se.X({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(0,m.Z)(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe((0,dt.h)(function(e){return 0!==e.id}),(0,E.U)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),(0,q.w)(function(e){var i,r,o,a=!1,s=!1;return(0,Ce.of)(e).pipe((0,I.b)(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}}),(0,q.w)(function(e){var i,r,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return(0,Ce.of)(e).pipe((0,q.w)(function(e){var i=t.transitions.getValue();return n.next(new yT(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?sT.E:Promise.resolve(e)}),(i=t.ngModule.injector,r=t.configLoader,o=t.urlSerializer,a=t.config,(0,q.w)(function(e){return function(e,t,n,i,r){return new xZ(e,t,n,i,r).apply()}(i,r,o,e.extractedUrl,a).pipe((0,E.U)(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))})),(0,I.b)(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,o){return(0,jt.zg)(function(i){return function(e,t,n,i){var r=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 qZ(e,t,n,i,r,o).recognize();return null===a?IZ(new PZ):(0,Ce.of)(a)}catch(s){return IZ(s)}}(e,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,t.serializeUrl(a)),r,o).pipe((0,E.U)(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var a})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),(0,I.b)(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 i=new ST(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var l=e.extractedUrl,c=e.source,u=e.restoredState,d=e.extras,h=new yT(e.id,t.serializeUrl(l),c,u);n.next(h);var p=xA(l,t.rootComponentType).snapshot;return(0,Ce.of)(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:l,extras:Object.assign(Object.assign({},d),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),sT.E}),BZ(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})}),(0,I.b)(function(e){var n=new xT(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,E.U)(function(e){return Object.assign(Object.assign({},e),{guards:(n=e.targetSnapshot,i=e.currentSnapshot,r=t.rootContexts,o=n._root,ZZ(o,i?i._root:null,r,[o.value]))});var n,i,r,o}),function(e,t){return(0,jt.zg)(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?(0,Ce.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return(0,we.D)(e).pipe((0,jt.zg)(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,Ce.of)(!0);var a=o.map(function(o){var a,s=AZ(o,t,r);if(function(e){return e&&XA(e.canDeactivate)}(s))a=HT(s.canDeactivate(e,t,n,i));else{if(!XA(s))throw new Error("Invalid CanDeactivate guard");a=HT(s(e,t,n,i))}return a.pipe((0,pT.P)())});return(0,Ce.of)(a).pipe(eZ())}(e.component,e.route,n,t,i)}),(0,pT.P)(function(e){return!0!==e},!0))}(s,i,r,e).pipe((0,jt.zg)(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return(0,we.D)(t).pipe((0,dT.b)(function(t){return(0,oT.z)(function(e,t){return null!==e&&t&&t(new MT(e)),(0,Ce.of)(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new ET(e)),(0,Ce.of)(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return(0,aT.P)(function(){var r=t.guards.map(function(r){var o,a=AZ(r,t.node,n);if(function(e){return e&&XA(e.canActivateChild)}(a))o=HT(a.canActivateChild(i,e));else{if(!XA(a))throw new Error("Invalid CanActivateChild guard");o=HT(a(i,e))}return o.pipe((0,pT.P)())});return(0,Ce.of)(r).pipe(eZ())})});return(0,Ce.of)(r).pipe(eZ())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return(0,Ce.of)(!0);var r=i.map(function(i){return(0,aT.P)(function(){var r,o=AZ(i,t,n);if(function(e){return e&&XA(e.canActivate)}(o))r=HT(o.canActivate(t,e));else{if(!XA(o))throw new Error("Invalid CanActivate guard");r=HT(o(t,e))}return r.pipe((0,pT.P)())})});return(0,Ce.of)(r).pipe(eZ())}(e,t.route,n))}),(0,pT.P)(function(e){return!0!==e},!0))}(i,a,e,t):(0,Ce.of)(n)}),(0,E.U)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),(0,I.b)(function(e){if(KA(e.guardsResult)){var n=RT('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new CT(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),(0,dt.h)(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var i=new bT(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(i),e.resolve(!1),!1}return!0}),BZ(function(e){if(e.guards.canActivateChecks.length)return(0,Ce.of)(e).pipe((0,I.b)(function(e){var n=new kT(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,q.w)(function(e){var i,r,o=!1;return(0,Ce.of)(e).pipe((i=t.paramsInheritanceStrategy,r=t.ngModule.injector,(0,jt.zg)(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return(0,Ce.of)(e);var o=0;return(0,we.D)(n).pipe((0,dT.b)(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return(0,Ce.of)({});var o={};return(0,we.D)(r).pipe((0,jt.zg)(function(r){return function(e,t,n,i){var r=AZ(e,t,i);return HT(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe((0,I.b)(function(e){o[r]=e}))}),(0,Ut.h)(1),(0,jt.zg)(function(){return Object.keys(o).length===r.length?(0,Ce.of)(o):sT.E}))}(e._resolve,e,t,i).pipe((0,E.U)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),kA(e,n).resolve),null}))}(e.route,t,i,r)}),(0,I.b)(function(){return o++}),(0,Ut.h)(1),(0,jt.zg)(function(t){return o===n.length?(0,Ce.of)(e):sT.E}))})),(0,I.b)({next:function(){return o=!0},complete:function(){if(!o){var i=new bT(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),e.resolve(!1)}}}))}),(0,I.b)(function(e){var n=new TT(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),BZ(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})}),(0,E.U)(function(e){var n=function(e,t,n){var i=IA(e,t._root,n?n._root:void 0);return new SA(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),(0,I.b)(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},(0,E.U)(function(e){return new WA(r,e.targetRouterState,e.currentRouterState,o).activate(i),e})),(0,I.b)({next:function(){a=!0},complete:function(){a=!0}}),(0,mT.x)(function(){if(!a&&!s){t.resetUrlToCurrentUrlTree();var i=new bT(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(i),e.resolve(!1)}t.currentNavigation=null}),(0,uT.K)(function(i){if(s=!0,(l=i)&&l.ngNavigationCancelingError){var r=KA(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new bT(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(o),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.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 wT(e.id,t.serializeUrl(e.extractedUrl),i);n.next(a);try{e.resolve(t.errorHandler(i))}catch(c){e.reject(c)}}var l;return sT.E}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"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){nZ(e),this.config=e.map(oZ),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,i=t.queryParams,r=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,s=n||this.routerState.root,l=a?this.currentUrlTree.fragment:r,c=null;switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),NA(s,this.currentUrlTree,e,c,null!=l?l:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=KA(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return $Z(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){var n;if(n=!0===t?Object.assign({},QZ):!1===t?Object.assign({},XZ):t,KA(e))return GT(this.currentUrlTree,e,n);var i=this.parseUrl(e);return GT(this.currentUrlTree,i,n)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(t,n){var i=e[n];return null!=i&&(t[n]=i),t},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new _T(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(e,t,n,i,r){if(this.disposed)return Promise.resolve(!1);var o,a,s,l=this.getTransition(),c="imperative"!==t&&"imperative"===(null==l?void 0:l.source),u=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===e.toString();if(c&&u)return Promise.resolve(!0);r?(o=r.resolve,a=r.reject,s=r.promise):s=new Promise(function(e,t){o=e,a=t});var d=++this.navigationId;return this.setTransition({id:d,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(e){return Promise.reject(e)})}},{key:"setBrowserUrl",value:function(e,t,n,i){var r=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.LFG(y.DyG),y.LFG(tA),y.LFG(YZ),y.LFG(_.Ye),y.LFG(y.zs3),y.LFG(y.v3s),y.LFG(y.Sil),y.LFG(void 0))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}();function $Z(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 eM=function(){var e=function(){function e(t,n,i,r,o){(0,f.Z)(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new x.xQ,null==i&&r.setAttribute(o.nativeElement,"tabindex","0")}return(0,m.Z)(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:nM(this.skipLocationChange),replaceUrl:nM(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:nM(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.Y36(KZ),y.Y36(CA),y.$8M("tabindex"),y.Y36(y.Qsj),y.Y36(y.SBq))},e.\u0275dir=y.lG2({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&y.NdJ("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:[y.TTD]}),e}(),tM=function(){var e=function(){function e(t,n,i){var r=this;(0,f.Z)(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.onChanges=new x.xQ,this.subscription=t.events.subscribe(function(e){e instanceof _T&&r.updateTargetUrlAndHref()})}return(0,m.Z)(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,i,r){if(0!==e||t||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:nM(this.skipLocationChange),replaceUrl:nM(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:nM(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.Y36(KZ),y.Y36(CA),y.Y36(_.S$))},e.\u0275dir=y.lG2({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&y.NdJ("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(y.Ikx("href",t.href,y.LSH),y.uIk("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:[y.TTD]}),e}();function nM(e){return""===e||!!e}var iM=function(){var e=function(){function e(t,n,i,r,o){(0,f.Z)(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new y.vpe,this.deactivateEvents=new y.vpe,this.name=r||qT,t.onChildOutletCreated(this.name,this)}return(0,m.Z)(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),i=this.parentContexts.getOrCreateContext(this.name).children,r=new rM(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.Y36(YZ),y.Y36(y.s_b),y.Y36(y._Vd),y.$8M("name"),y.Y36(y.sBO))},e.\u0275dir=y.lG2({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),rM=function(){function e(t,n,i){(0,f.Z)(this,e),this.route=t,this.childContexts=n,this.parent=i}return(0,m.Z)(e,[{key:"get",value:function(e,t){return e===CA?this.route:e===YZ?this.childContexts:this.parent.get(e,t)}}]),e}(),oM=function e(){(0,f.Z)(this,e)},aM=function(){function e(){(0,f.Z)(this,e)}return(0,m.Z)(e,[{key:"preload",value:function(e,t){return t().pipe((0,uT.K)(function(){return(0,Ce.of)(null)}))}}]),e}(),sM=function(){function e(){(0,f.Z)(this,e)}return(0,m.Z)(e,[{key:"preload",value:function(e,t){return(0,Ce.of)(null)}}]),e}(),lM=function(){var e=function(){function e(t,n,i,r,o){(0,f.Z)(this,e),this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new UZ(n,i,function(e){return t.triggerEvent(new AT(e))},function(e){return t.triggerEvent(new ZT(e))})}return(0,m.Z)(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe((0,dt.h)(function(e){return e instanceof _T}),(0,dT.b)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(y.h0i);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=(0,l.Z)(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var a=o._loadedConfig;i.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(e,o)):o.children&&i.push(this.processRoutes(e,o.children))}}catch(s){r.e(s)}finally{r.f()}return(0,we.D)(i).pipe((0,gT.J)(),(0,E.U)(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?(0,Ce.of)(t._loadedConfig):n.loader.load(e.injector,t)).pipe((0,jt.zg)(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.LFG(KZ),y.LFG(y.v3s),y.LFG(y.Sil),y.LFG(y.zs3),y.LFG(oM))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),cM=function(){var e=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,f.Z)(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return(0,m.Z)(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 yT?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof _T&&(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 IT&&(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 IT(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)(y.LFG(KZ),y.LFG(_.EM),y.LFG(void 0))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),uM=new y.OlP("ROUTER_CONFIGURATION"),dM=new y.OlP("ROUTER_FORROOT_GUARD"),hM=[_.Ye,{provide:tA,useClass:nA},{provide:KZ,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,u=new KZ(null,e,t,n,i,r,o,jT(a));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),_M(s,u),s.enableTracing&&u.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[tA,YZ,_.Ye,y.zs3,y.v3s,y.Sil,zZ,uM,[function e(){(0,f.Z)(this,e)},new y.FiY],[function e(){(0,f.Z)(this,e)},new y.FiY]]},YZ,{provide:CA,useFactory:function(e){return e.routerState.root},deps:[KZ]},{provide:y.v3s,useClass:y.EAV},lM,sM,aM,{provide:uM,useValue:{enableTracing:!1}}];function pM(){return new y.PXZ("Router",KZ)}var fM=function(){var e=function(){function e(t,n){(0,f.Z)(this,e)}return(0,m.Z)(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[hM,yM(t),{provide:dM,useFactory:vM,deps:[[KZ,new y.FiY,new y.tp0]]},{provide:uM,useValue:n||{}},{provide:_.S$,useFactory:gM,deps:[_.lw,[new y.tBr(_.mr),new y.FiY],uM]},{provide:cM,useFactory:mM,deps:[KZ,_.EM,uM]},{provide:oM,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:sM},{provide:y.PXZ,multi:!0,useFactory:pM},[bM,{provide:y.ip1,multi:!0,useFactory:wM,deps:[bM]},{provide:xM,useFactory:SM,deps:[bM]},{provide:y.tb,multi:!0,useExisting:xM}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[yM(t)]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.LFG(dM,8),y.LFG(KZ,8))},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({}),e}();function mM(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new cM(e,t,n)}function gM(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new _.Do(e,t):new _.b0(e,t)}function vM(e){return"guarded"}function yM(e){return[{provide:y.deG,multi:!0,useValue:e},{provide:zZ,multi:!0,useValue:e}]}function _M(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 bM=function(){var e=function(){function e(t){(0,f.Z)(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new x.xQ}return(0,m.Z)(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(_.V_,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(KZ),r=e.injector.get(uM);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?(0,Ce.of)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(uM),n=this.injector.get(lM),i=this.injector.get(cM),r=this.injector.get(KZ),o=this.injector.get(y.z2F);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.LFG(y.zs3))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}();function wM(e){return e.appInitializer.bind(e)}function SM(e){return e.bootstrapListener.bind(e)}var xM=new y.OlP("Router Initializer"),CM=function(){return function(){}}(),kM=n(96153),TM=function(){function e(e){this.httpServer=e,this.serverIds=[],this.serviceInitialized=new x.xQ,this.serverIds=this.getServerIds(),this.isServiceInitialized=!0,this.serviceInitialized.next(this.isServiceInitialized)}return e.prototype.getServerIds=function(){var e=localStorage.getItem("serverIds");return(null==e?void 0:e.length)>0?e.split(","):[]},e.prototype.updateServerIds=function(){localStorage.removeItem("serverIds"),localStorage.setItem("serverIds",this.serverIds.toString())},e.prototype.get=function(e){var t=JSON.parse(localStorage.getItem("server-"+e));return new Promise(function(e){e(t)})},e.prototype.create=function(e){return e.id=this.serverIds.length+1,localStorage.setItem("server-"+e.id,JSON.stringify(e)),this.serverIds.push("server-"+e.id),this.updateServerIds(),new Promise(function(t){t(e)})},e.prototype.update=function(e){return localStorage.removeItem("server-"+e.id),localStorage.setItem("server-"+e.id,JSON.stringify(e)),new Promise(function(t){t(e)})},e.prototype.findAll=function(){var e=this;return new Promise(function(t){var n=[];e.serverIds.forEach(function(e){var t=JSON.parse(localStorage.getItem(e));n.push(t)}),t(n)})},e.prototype.delete=function(e){return localStorage.removeItem("server-"+e.id),this.serverIds=this.serverIds.filter(function(t){return t!=="server-"+e.id}),this.updateServerIds(),new Promise(function(t){t(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(i,r){n.findAll().then(function(o){var a=o.find(function(e){return"bundled"===e.location});if(a)a.host=e,a.port=t,a.protocol=location.protocol,n.update(a).then(function(e){i(e)},r);else{var s=new CM;s.name="local",s.host=e,s.port=t,s.location="bundled",s.protocol=location.protocol,n.create(s).then(function(e){i(e)},r)}},r)})},e.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),AM=function(){return function(e,t,n){void 0===n&&(n=!1),this.visible=e,this.error=t,this.clear=n}}(),ZM=function(){function e(){this.state=new Se.X(new AM(!1))}return e.prototype.setError=function(e){this.state.next(new AM(!1,e.error))},e.prototype.clear=function(){this.state.next(new AM(!1,null,!0))},e.prototype.activate=function(){this.state.next(new AM(!0))},e.prototype.deactivate=function(){this.state.next(new AM(!1))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function MM(e,t){if(1&e&&(y.O4$(),y._UZ(0,"circle",3)),2&e){var n=y.oxw();y.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),y.uIk("r",n._getCircleRadius())}}function OM(e,t){if(1&e&&(y.O4$(),y._UZ(0,"circle",3)),2&e){var n=y.oxw();y.Udp("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),y.uIk("r",n._getCircleRadius())}}function EM(e,t){if(1&e&&(y.O4$(),y._UZ(0,"circle",3)),2&e){var n=y.oxw();y.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),y.uIk("r",n._getCircleRadius())}}function PM(e,t){if(1&e&&(y.O4$(),y._UZ(0,"circle",3)),2&e){var n=y.oxw();y.Udp("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),y.uIk("r",n._getCircleRadius())}}var IM=".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",qM=(0,lt.pj)(function e(t){(0,f.Z)(this,e),this._elementRef=t},"primary"),NM=new y.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),DM=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o,a){var s;(0,f.Z)(this,n),(s=t.call(this,e))._elementRef=e,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var l=n._diameters;return s._spinnerAnimationLabel=s._getSpinnerAnimationLabel(),l.has(r.head)||l.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===o&&!!a&&!a._forceAnimations,a&&(a.diameter&&(s.diameter=a.diameter),a.strokeWidth&&(s.strokeWidth=a.strokeWidth)),s}return(0,m.Z)(n,[{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=(0,S.su)(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=(0,S.su)(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,(0,S.su)(e)))}},{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=(0,w.kV)(e)||this._document.head,this._attachStyleNode();var t="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");e.classList.add(t)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var e=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(e," ").concat(e)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var e=this._styleRoot,t=this._diameter,i=n._diameters,r=i.get(e);if(!r||!r.has(t)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),e.appendChild(o),r||(r=new Set,i.set(e,r)),r.add(t)}}},{key:"_getAnimationText",value:function(){var e=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*e)).replace(/END_VALUE/g,"".concat(.2*e)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),n}(qM);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq),y.Y36(w.t4),y.Y36(_.K0,8),y.Y36(mt.Qb,8),y.Y36(NM))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(y.uIk("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),y.Udp("width",t.diameter,"px")("height",t.diameter,"px"),y.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[y.qOj],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&&(y.O4$(),y.TgZ(0,"svg",0),y.YNc(1,MM,1,9,"circle",1),y.YNc(2,OM,1,7,"circle",2),y.qZA()),2&e&&(y.Udp("width",t.diameter,"px")("height",t.diameter,"px"),y.Q6J("ngSwitch","indeterminate"===t.mode),y.uIk("viewBox",t._getViewBox()),y.xp6(1),y.Q6J("ngSwitchCase",!0),y.xp6(1),y.Q6J("ngSwitchCase",!1))},directives:[_.RF,_.n9],styles:[IM],encapsulation:2,changeDetection:0}),e._diameters=new WeakMap,e}(),RM=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o,a){var s;return(0,f.Z)(this,n),(s=t.call(this,e,i,r,o,a)).mode="indeterminate",s}return n}(DM);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq),y.Y36(w.t4),y.Y36(_.K0,8),y.Y36(mt.Qb,8),y.Y36(NM))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(y.Udp("width",t.diameter,"px")("height",t.diameter,"px"),y.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[y.qOj],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&&(y.O4$(),y.TgZ(0,"svg",0),y.YNc(1,EM,1,9,"circle",1),y.YNc(2,PM,1,7,"circle",2),y.qZA()),2&e&&(y.Udp("width",t.diameter,"px")("height",t.diameter,"px"),y.Q6J("ngSwitch","indeterminate"===t.mode),y.uIk("viewBox",t._getViewBox()),y.xp6(1),y.Q6J("ngSwitchCase",!0),y.xp6(1),y.Q6J("ngSwitchCase",!1))},directives:[_.RF,_.n9],styles:[IM],encapsulation:2,changeDetection:0}),e}(),LM=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[lt.BQ,_.ez],lt.BQ]}),e}(),FM=n(11363),BM=n(91925),jM=["*"];function zM(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function UM(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 HM(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var YM=function e(t,n,i){(0,f.Z)(this,e),this.url=t,this.svgText=n,this.options=i},JM=function(){var e=function(){function e(t,n,i,r){(0,f.Z)(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}return(0,m.Z)(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new YM(n,null,i))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(y.q3G.HTML,n);if(!r)throw HM(n);return this._addSvgIconConfig(e,t,new YM("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new YM(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(y.q3G.HTML,t);if(!i)throw HM(t);return this._addSvgIconSetConfig(e,new YM("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(y.q3G.RESOURCE_URL,e);if(!n)throw UM(e);var i=this._cachedIconsByUrl.get(n);return i?(0,Ce.of)(GM(i)):this._loadSvgIconFromConfig(new YM(e,null)).pipe((0,I.b)(function(e){return t._cachedIconsByUrl.set(n,e)}),(0,E.U)(function(e){return GM(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=WM(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):(0,FM._)(zM(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?(0,Ce.of)(GM(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,E.U)(function(e){return GM(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);if(i)return(0,Ce.of)(i);var r=t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe((0,uT.K)(function(t){var i=n._sanitizer.sanitize(y.q3G.RESOURCE_URL,e.url),r="Loading icon set URL: ".concat(i," failed: ").concat(t.message);return n._errorHandler.handleError(new Error(r)),(0,Ce.of)(null)}))});return(0,BM.D)(r).pipe((0,E.U)(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw zM(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),o=this._extractSvgIconFromSet(r,e,i.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe((0,I.b)(function(t){return e.svgText=t}),(0,E.U)(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?(0,Ce.of)(null):this._fetchIcon(e).pipe((0,I.b)(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("<svg></svg>");return o.appendChild(r),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString("<svg></svg>"),n=e.attributes,i=0;i<n.length;i++){var r=n[i],o=r.name;"id"!==o&&t.setAttribute(o,r.value)}for(var a=0;a<e.childNodes.length;a++)e.childNodes[a].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[a].cloneNode(!0));return t}},{key:"_setSvgAttributes",value:function(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}},{key:"_fetchIcon",value:function(e){var t,n=this,i=e.url,r=e.options,o=null!==(t=null==r?void 0:r.withCredentials)&&void 0!==t&&t;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==i)throw Error('Cannot fetch icon from URL "'.concat(i,'".'));var a=this._sanitizer.sanitize(y.q3G.RESOURCE_URL,i);if(!a)throw UM(i);var s=this._inProgressUrlFetches.get(a);if(s)return s;var l=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe((0,mT.x)(function(){return n._inProgressUrlFetches.delete(a)}),(0,zt.B)());return this._inProgressUrlFetches.set(a,l),l}},{key:"_addSvgIconConfig",value:function(e,t,n){return this._svgIconConfigs.set(WM(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 i=this._resolvers[n](t,e);if(i)return VM(i)?new YM(i.url,null,i.options):new YM(i,null)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.LFG(at.eN,8),y.LFG(o.H7),y.LFG(_.K0,8),y.LFG(y.qLn))},e.\u0275prov=y.Yz7({factory:function(){return new e(y.LFG(at.eN,8),y.LFG(o.H7),y.LFG(_.K0,8),y.LFG(y.qLn))},token:e,providedIn:"root"}),e}();function GM(e){return e.cloneNode(!0)}function WM(e,t){return e+":"+t}function VM(e){return!(!e.url||!e.options)}var QM,XM=(0,lt.pj)(function e(t){(0,f.Z)(this,e),this._elementRef=t}),KM=new y.OlP("mat-icon-location",{providedIn:"root",factory:function(){var e=(0,y.f3M)(_.K0),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),$M=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],eO=$M.map(function(e){return"[".concat(e,"]")}).join(", "),tO=/^url\(['"]?#(.*?)['"]?\)$/,nO=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o,a){var s;return(0,f.Z)(this,n),(s=t.call(this,e))._iconRegistry=i,s._location=o,s._errorHandler=a,s._inline=!1,s._currentIconFetch=C.w.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true"),s}return(0,m.Z)(n,[{key:"inline",get:function(){return this._inline},set:function(e){this._inline=(0,S.Ig)(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 i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}},{key:"_clearSvgElement",value:function(){var e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){var n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(e){return"string"==typeof e?e.trim().split(" ")[0]:e}},{key:"_prependPathToReferences",value:function(e){var t=this._elementsWithExternalReferences;t&&t.forEach(function(t,n){t.forEach(function(t){n.setAttribute(t.name,"url('".concat(e,"#").concat(t.value,"')"))})})}},{key:"_cacheChildrenWithExternalReferences",value:function(e){for(var t=e.querySelectorAll(eO),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,i=function(e){$M.forEach(function(i){var r=t[e],o=r.getAttribute(i),a=o?o.match(tO):null;if(a){var s=n.get(r);s||n.set(r,s=[]),s.push({name:i,value:a[1]})}})},r=0;r<t.length;r++)i(r)}},{key:"_updateSvgIcon",value:function(e){var t=this;if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){var n=this._splitIconName(e),i=(0,s.Z)(n,2),r=i[0],o=i[1];r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe((0,P.q)(1)).subscribe(function(e){return t._setSvgElement(e)},function(e){var n="Error retrieving icon ".concat(r,":").concat(o,"! ").concat(e.message);t._errorHandler.handleError(new Error(n))})}}}]),n}(XM);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq),y.Y36(JM),y.$8M("aria-hidden"),y.Y36(KM),y.Y36(y.qLn))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(y.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),y.ekj("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:[y.qOj],ngContentSelectors:jM,decls:1,vars:0,template:function(e,t){1&e&&(y.F$t(),y.Hsn(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}(),iO=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[lt.BQ],lt.BQ]}),e}(),rO=["mat-button",""],oO=["*"],aO=".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",sO=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],lO=(0,lt.pj)((0,lt.Id)((0,lt.Kr)(function e(t){(0,f.Z)(this,e),this._elementRef=t}))),cO=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r){var o;(0,f.Z)(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=(0,l.Z)(sO);try{for(s.s();!(a=s.n()).done;){var c=a.value;o._hasHostAttributes(c)&&o._getHostElement().classList.add(c)}}catch(u){s.e(u)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return(0,m.Z)(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),i=0;i<t;i++)n[i]=arguments[i];return n.some(function(t){return e._getHostElement().hasAttribute(t)})}}]),n}(lO);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq),y.Y36(gt.tE),y.Y36(mt.Qb,8))},e.\u0275cmp=y.Xpm({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&&y.Gf(lt.wG,5),2&e&&y.iGM(n=y.CRH())&&(t.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(y.uIk("disabled",t.disabled||null),y.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[y.qOj],attrs:rO,ngContentSelectors:oO,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&&(y.F$t(),y.TgZ(0,"span",0),y.Hsn(1),y.qZA(),y._UZ(2,"span",1),y._UZ(3,"span",2)),2&e&&(y.xp6(2),y.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),y.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[lt.wG],styles:[aO],encapsulation:2,changeDetection:0}),e}(),uO=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r){return(0,f.Z)(this,n),t.call(this,i,e,r)}return(0,m.Z)(n,[{key:"_haltDisabledEvents",value:function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}}]),n}(cO);return e.\u0275fac=function(t){return new(t||e)(y.Y36(gt.tE),y.Y36(y.SBq),y.Y36(mt.Qb,8))},e.\u0275cmp=y.Xpm({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&&y.NdJ("click",function(e){return t._haltDisabledEvents(e)}),2&e&&(y.uIk("tabindex",t.disabled?-1:t.tabIndex||0)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString()),y.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[y.qOj],attrs:rO,ngContentSelectors:oO,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&&(y.F$t(),y.TgZ(0,"span",0),y.Hsn(1),y.qZA(),y._UZ(2,"span",1),y._UZ(3,"span",2)),2&e&&(y.xp6(2),y.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),y.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[lt.wG],styles:[aO],encapsulation:2,changeDetection:0}),e}(),dO=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[lt.si,lt.BQ],lt.BQ]}),e}(),hO=n(18756),pO=new Set,fO=function(){var e=function(){function e(t){(0,f.Z)(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):mO}return(0,m.Z)(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!pO.has(e))try{QM||((QM=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(QM)),QM.sheet&&(QM.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),pO.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.LFG(w.t4))},e.\u0275prov=y.Yz7({factory:function(){return new e(y.LFG(w.t4))},token:e,providedIn:"root"}),e}();function mO(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var gO=function(){var e=function(){function e(t,n){(0,f.Z)(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new x.xQ}return(0,m.Z)(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return vO((0,S.Eq)(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=vO((0,S.Eq)(e)).map(function(e){return t._registerQuery(e).observable}),i=(0,_t.aj)(n);return(i=(0,oT.z)(i.pipe((0,P.q)(1)),i.pipe((0,hO.T)(1),(0,pt.b)(0)))).pipe((0,E.U)(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new A.y(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe((0,O.O)(n),(0,E.U)(function(t){return{query:e,matches:t.matches}}),(0,M.R)(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.LFG(fO),y.LFG(y.R0b))},e.\u0275prov=y.Yz7({factory:function(){return new e(y.LFG(fO),y.LFG(y.R0b))},token:e,providedIn:"root"}),e}();function vO(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var yO="(min-width: 960px) and (max-width: 1279.98px)",_O="(min-width: 1280px) and (max-width: 1919.98px)",bO="(min-width: 1920px)",wO=n(80785),SO={tooltipState:(0,ft.X$)("state",[(0,ft.SB)("initial, void, hidden",(0,ft.oB)({opacity:0,transform:"scale(0)"})),(0,ft.SB)("visible",(0,ft.oB)({transform:"scale(1)"})),(0,ft.eR)("* => visible",(0,ft.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,ft.F4)([(0,ft.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,ft.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,ft.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,ft.eR)("* => hidden",(0,ft.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,ft.oB)({opacity:0})))])},xO="tooltip-panel",CO=(0,w.i$)({passive:!0}),kO=new y.OlP("mat-tooltip-scroll-strategy"),TO={provide:kO,deps:[_e.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},AO=new y.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),ZO=function(){var e=function(){function e(t,n,i,r,o,a,s,l,c,u,d,h){var p=this;(0,f.Z)(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=l,this._dir=u,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new x.xQ,this._handleKeydown=function(e){p._isTooltipVisible()&&e.keyCode===ct.hY&&!(0,ct.Vb)(e)&&(e.preventDefault(),e.stopPropagation(),p._ngZone.run(function(){return p.hide(0)}))},this._scrollStrategy=c,this._document=h,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),u.change.pipe((0,M.R)(this._destroyed)).subscribe(function(){p._overlayRef&&p._updatePosition(p._overlayRef)}),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",p._handleKeydown)})}return(0,m.Z)(e,[{key:"position",get:function(){return this._position},set:function(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,S.Ig)(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((0,M.R)(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=(0,s.Z)(t,2);e.removeEventListener(n[0],n[1],CO)}),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 wO.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,M.R)(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(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe((0,M.R)(this._destroyed)).subscribe(function(t){e._updateCurrentPositionClass(t.connectionPair),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:"".concat(this._cssClassPrefix,"-").concat(xO),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,M.R)(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(e){var t=e.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,P.q)(1),(0,M.R)(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:"_updateCurrentPositionClass",value:function(e){var t,n=e.overlayY,i=e.originX;if((t="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===e.originY?"above":"below")!==this._currentPosition){var r=this._overlayRef;if(r){var o="".concat(this._cssClassPrefix,"-").concat(xO,"-");r.removePanelClass(o+this._currentPosition),r.addPanelClass(o+t)}this._currentPosition=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 i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=(0,s.Z)(e,2);t._elementRef.nativeElement.addEventListener(n[0],n[1],CO)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=this._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)(y.Y36(_e.aV),y.Y36(y.SBq),y.Y36(b.mF),y.Y36(y.s_b),y.Y36(y.R0b),y.Y36(w.t4),y.Y36(gt.$s),y.Y36(gt.tE),y.Y36(void 0),y.Y36(N.Is),y.Y36(void 0),y.Y36(_.K0))},e.\u0275dir=y.lG2({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),MO=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o,a,s,l,c,u,d,h,p){var m;return(0,f.Z)(this,n),(m=t.call(this,e,i,r,o,a,s,l,c,u,d,h,p))._tooltipComponent=EO,m}return n}(ZO);return e.\u0275fac=function(t){return new(t||e)(y.Y36(_e.aV),y.Y36(y.SBq),y.Y36(b.mF),y.Y36(y.s_b),y.Y36(y.R0b),y.Y36(w.t4),y.Y36(gt.$s),y.Y36(gt.tE),y.Y36(kO),y.Y36(N.Is,8),y.Y36(AO,8),y.Y36(_.K0))},e.\u0275dir=y.lG2({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[y.qOj]}),e}(),OO=function(){var e=function(){function e(t){(0,f.Z)(this,e),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new x.xQ}return(0,m.Z)(e,[{key:"show",value:function(e){var t=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=void 0,t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=void 0,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),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)(y.Y36(y.sBO))},e.\u0275dir=y.lG2({type:e}),e}(),EO=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i){var r;return(0,f.Z)(this,n),(r=t.call(this,e))._breakpointObserver=i,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return n}(OO);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.sBO),y.Y36(gO))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&y.NdJ("click",function(){return t._handleBodyInteraction()},!1,y.pYS)("auxclick",function(){return t._handleBodyInteraction()},!1,y.pYS),2&e&&y.Udp("zoom","visible"===t._visibility?1:null)},features:[y.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;1&e&&(y.TgZ(0,"div",0),y.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),y.ALo(1,"async"),y._uU(2),y.qZA()),2&e&&(y.ekj("mat-tooltip-handset",null==(n=y.lcZ(1,5,t._isHandset))?null:n.matches),y.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),y.xp6(2),y.Oqu(t.message))},directives:[_.mk],pipes:[_.Ov],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:[SO.tooltipState]},changeDetection:0}),e}(),PO=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({providers:[TO],imports:[[gt.rt,_.ez,_e.U8,lt.BQ],lt.BQ,b.ZD]}),e}();function IO(e,t){1&e&&(y.TgZ(0,"div",4),y._UZ(1,"mat-spinner",5),y.qZA())}function qO(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",6),y.TgZ(1,"div",7),y.TgZ(2,"mat-icon"),y._uU(3,"error_outline"),y.qZA(),y.qZA(),y.TgZ(4,"div"),y._uU(5),y.qZA(),y.TgZ(6,"div"),y.TgZ(7,"button",8),y.NdJ("click",function(){return y.CHM(n),y.oxw(2).refresh()}),y.TgZ(8,"mat-icon"),y._uU(9,"refresh"),y.qZA(),y.qZA(),y.TgZ(10,"button",9),y.TgZ(11,"mat-icon"),y._uU(12,"home"),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2);y.xp6(5),y.hij("Error occurred: ",i.error.message,"")}}function NO(e,t){if(1&e&&(y.TgZ(0,"div",1),y.YNc(1,IO,2,0,"div",2),y.YNc(2,qO,13,1,"div",3),y.qZA()),2&e){var n=y.oxw();y.xp6(1),y.Q6J("ngIf",n.visible&&!n.error),y.xp6(1),y.Q6J("ngIf",n.error)}}var DO=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)(y.Y36(ZM),y.Y36(KZ))},e.\u0275cmp=y.Xpm({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&&y.YNc(0,NO,3,2,"div",0),2&e&&y.Q6J("ngIf",t.visible||t.error)},directives:[_.O5,RM,nO,cO,MO,eM],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}(),RO=function(){function e(e,t,n,i){this.router=e,this.serverService=t,this.progressService=n,this.document=i}return e.prototype.ngOnInit=function(){var e=this;this.progressService.activate(),setTimeout(function(){var t;t=parseInt(e.document.location.port,10)?parseInt(e.document.location.port,10):"https:"==e.document.location.protocol?443: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)(y.Y36(KZ),y.Y36(TM),y.Y36(ZM),y.Y36(_.K0))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-bundled-server-finder"]],decls:1,vars:0,template:function(e,t){1&e&&y._UZ(0,"app-progress")},directives:[DO],styles:[""]}),e}(),LO=n(61855),FO=function(){function e(){this.dataChange=new Se.X([])}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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function BO(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",1),y.TgZ(1,"button",2),y.NdJ("click",function(){return y.CHM(n),y.oxw().action()}),y._uU(2),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(2),y.Oqu(i.data.action)}}function jO(e,t){}var zO=new y.OlP("MatSnackBarData"),UO=function e(){(0,f.Z)(this,e),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},HO=Math.pow(2,31)-1,YO=function(){function e(t,n){var i=this;(0,f.Z)(this,e),this._overlayRef=n,this._afterDismissed=new x.xQ,this._afterOpened=new x.xQ,this._onAction=new x.xQ,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(function(){return i.dismiss()}),t._onExit.subscribe(function(){return i._finishDismiss()})}return(0,m.Z)(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()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(e){var t=this;this._durationTimeoutId=setTimeout(function(){return t.dismiss()},Math.min(e,HO))}},{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}(),JO=function(){var e=function(){function e(t,n){(0,f.Z)(this,e),this.snackBarRef=t,this.data=n}return(0,m.Z)(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)(y.Y36(YO),y.Y36(zO))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"span"),y._uU(1),y.qZA(),y.YNc(2,BO,3,1,"div",0)),2&e&&(y.xp6(1),y.Oqu(t.data.message),y.xp6(1),y.Q6J("ngIf",t.hasAction))},directives:[_.O5,cO],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}(),GO={snackBarState:(0,ft.X$)("state",[(0,ft.SB)("void, hidden",(0,ft.oB)({transform:"scale(0.8)",opacity:0})),(0,ft.SB)("visible",(0,ft.oB)({transform:"scale(1)",opacity:1})),(0,ft.eR)("* => visible",(0,ft.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,ft.eR)("* => void, * => hidden",(0,ft.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,ft.oB)({opacity:0})))])},WO=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o,a){var s;return(0,f.Z)(this,n),(s=t.call(this))._ngZone=e,s._elementRef=i,s._changeDetectorRef=r,s._platform=o,s.snackBarConfig=a,s._announceDelay=150,s._destroyed=!1,s._onAnnounce=new x.xQ,s._onExit=new x.xQ,s._onEnter=new x.xQ,s._animationState="void",s.attachDomPortal=function(e){return s._assertNotAttached(),s._applySnackBarClasses(),s._portalOutlet.attachDomPortal(e)},s._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",s._platform.FIREFOX&&("polite"===s._live&&(s._role="status"),"assertive"===s._live&&(s._role="alert")),s}return(0,m.Z)(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((0,P.q)(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 i=null;e._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(i=document.activeElement),t.removeAttribute("aria-hidden"),n.appendChild(t),null==i||i.focus(),e._onAnnounce.next(),e._onAnnounce.complete()}},e._announceDelay)})}}]),n}(wO.en);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.R0b),y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(w.t4),y.Y36(UO))},e.\u0275cmp=y.Xpm({type:e,selectors:[["snack-bar-container"]],viewQuery:function(e,t){var n;1&e&&y.Gf(wO.Pl,7),2&e&&y.iGM(n=y.CRH())&&(t._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,t){1&e&&y.WFA("@state.done",function(e){return t.onAnimationEnd(e)}),2&e&&y.d8E("@state",t._animationState)},features:[y.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,t){1&e&&(y.TgZ(0,"div",0),y.YNc(1,jO,0,0,"ng-template",1),y.qZA(),y._UZ(2,"div")),2&e&&(y.xp6(2),y.uIk("aria-live",t._live)("role",t._role))},directives:[wO.Pl],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:[GO.snackBarState]}}),e}(),VO=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[_e.U8,wO.eL,_.ez,dO,lt.BQ],lt.BQ]}),e}(),QO=new y.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new UO}}),XO=function(){var e=function(){function e(t,n,i,r,o,a){(0,f.Z)(this,e),this._overlay=t,this._live=n,this._injector=i,this._breakpointObserver=r,this._parentSnackBar=o,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=JO,this.snackBarContainerComponent=WO,this.handsetCssClass="mat-snack-bar-handset"}return(0,m.Z)(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,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:e,action:t},i.announcementMessage===e&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(e,t){var n=y.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:UO,useValue:t}]}),i=new wO.C5(this.snackBarContainerComponent,t.viewContainerRef,n),r=e.attach(i);return r.instance.snackBarConfig=t,r.instance}},{key:"_attach",value:function(e,t){var n=this,i=Object.assign(Object.assign(Object.assign({},new UO),this._defaultConfig),t),r=this._createOverlay(i),o=this._attachSnackBarContainer(r,i),a=new YO(o,r);if(e instanceof y.Rgc){var s=new wO.UE(e,null,{$implicit:i.data,snackBarRef:a});a.instance=o.attachTemplatePortal(s)}else{var l=this._createInjector(i,a),c=new wO.C5(e,void 0,l),u=o.attachComponentPortal(c);a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe((0,M.R)(r.detachments())).subscribe(function(e){var t=r.overlayElement.classList;e.matches?t.add(n.handsetCssClass):t.remove(n.handsetCssClass)}),i.announcementMessage&&o._onAnnounce.subscribe(function(){n._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(a,i),this._openedSnackBarRef=a,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(e,t){var n=this;e.afterDismissed().subscribe(function(){n._openedSnackBarRef==e&&(n._openedSnackBarRef=null),t.announcementMessage&&n._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),t.duration&&t.duration>0&&e.afterOpened().subscribe(function(){return e._dismissAfter(t.duration)})}},{key:"_createOverlay",value:function(e){var t=new _e.X_;t.direction=e.direction;var n=this._overlay.position().global(),i="rtl"===e.direction,r="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!i||"end"===e.horizontalPosition&&i,o=!r&&"center"!==e.horizontalPosition;return r?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===e.verticalPosition?n.top("0"):n.bottom("0"),t.positionStrategy=n,this._overlay.create(t)}},{key:"_createInjector",value:function(e,t){return y.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:YO,useValue:t},{provide:zO,useValue:e.data}]})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.LFG(_e.aV),y.LFG(gt.Kd),y.LFG(y.zs3),y.LFG(gO),y.LFG(e,12),y.LFG(QO))},e.\u0275prov=y.Yz7({factory:function(){return new e(y.LFG(_e.aV),y.LFG(gt.Kd),y.LFG(y.gxx),y.LFG(gO),y.LFG(e,12),y.LFG(QO))},token:e,providedIn:VO}),e}(),KO=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.\u0275fac=function(t){return new(t||e)(y.LFG(XO),y.LFG(y.R0b))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),$O=["*",[["mat-card-footer"]]],eE=["*","mat-card-footer"],tE=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=y.lG2({type:e,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),e}(),nE=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=y.lG2({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),e}(),iE=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=y.lG2({type:e,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),e}(),rE=function(){var e=function e(){(0,f.Z)(this,e),this.align="start"};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=y.lG2({type:e,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(e,t){2&e&&y.ekj("mat-card-actions-align-end","end"===t.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),e}(),oE=function(){var e=function e(t){(0,f.Z)(this,e),this._animationMode=t};return e.\u0275fac=function(t){return new(t||e)(y.Y36(mt.Qb,8))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&y.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:eE,decls:2,vars:0,template:function(e,t){1&e&&(y.F$t($O),y.Hsn(0),y.Hsn(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}(),aE=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[lt.BQ],lt.BQ]}),e}(),sE=n(36410),lE=(n(54562),(0,w.i$)({passive:!0})),cE=function(){var e=function(){function e(t,n){(0,f.Z)(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return(0,m.Z)(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return sT.E;var n=(0,S.fI)(e),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new x.xQ,o="cdk-text-field-autofilled",a=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(o)&&(n.classList.remove(o),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!1})})):(n.classList.add(o),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",a,lE),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",a,lE)}}),r}},{key:"stopMonitoring",value:function(e){var t=(0,S.fI)(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)(y.LFG(w.t4),y.LFG(y.R0b))},e.\u0275prov=y.Yz7({factory:function(){return new e(y.LFG(w.t4),y.LFG(y.R0b))},token:e,providedIn:"root"}),e}(),uE=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[w.ud]]}),e}(),dE=new y.OlP("MAT_INPUT_VALUE_ACCESSOR"),hE=["button","checkbox","file","hidden","image","radio","range","reset","submit"],pE=0,fE=(0,lt.FD)(function e(t,n,i,r){(0,f.Z)(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),mE=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o,a,s,l,c,u,d){var h;(0,f.Z)(this,n),(h=t.call(this,s,o,a,r))._elementRef=e,h._platform=i,h.ngControl=r,h._autofillMonitor=c,h._formField=d,h._uid="mat-input-".concat(pE++),h.focused=!1,h.stateChanges=new x.xQ,h.controlType="mat-input",h.autofilled=!1,h._disabled=!1,h._required=!1,h._type="text",h._readonly=!1,h._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return(0,w.qK)().has(e)});var p=h._elementRef.nativeElement,m=p.nodeName.toLowerCase();return h._inputValueAccessor=l||p,h._previousNativeValue=h.value,h.id=h.id,i.IOS&&u.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||0!==t.selectionStart||0!==t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),h._isServer=!h._platform.isBrowser,h._isNativeSelect="select"===m,h._isTextarea="textarea"===m,h._isNativeSelect&&(h.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select"),h}return(0,m.Z)(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=(0,S.Ig)(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=(0,S.Ig)(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&(0,w.qK)().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=(0,S.Ig)(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 i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){hE.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}(fE);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq),y.Y36(w.t4),y.Y36(st.a5,10),y.Y36(st.F,8),y.Y36(st.sg,8),y.Y36(lt.rD),y.Y36(dE,10),y.Y36(cE),y.Y36(y.R0b),y.Y36(sE.G_,8))},e.\u0275dir=y.lG2({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&&y.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(y.Ikx("disabled",t.disabled)("required",t.required),y.uIk("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.errorState&&!t.empty)("aria-required",t.required),y.ekj("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:[y._Bn([{provide:sE.Eo,useExisting:e}]),y.qOj,y.TTD]}),e}(),gE=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({providers:[lt.rD],imports:[[uE,sE.lN,lt.BQ],uE,sE.lN]}),e}(),vE=n(73044);function yE(e,t){1&e&&(y.TgZ(0,"mat-error"),y._uU(1,"You must enter a value"),y.qZA())}function _E(e,t){if(1&e&&(y.TgZ(0,"mat-option",14),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.key),y.xp6(1),y.hij(" ",n.name," ")}}function bE(e,t){if(1&e&&(y.TgZ(0,"mat-option",14),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.key),y.xp6(1),y.hij(" ",n.name," ")}}function wE(e,t){if(1&e&&(y.TgZ(0,"mat-option",14),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.key),y.xp6(1),y.hij(" ",n.name," ")}}function SE(e,t){if(1&e&&(y.TgZ(0,"mat-form-field"),y.TgZ(1,"mat-select",15),y.YNc(2,wE,2,2,"mat-option",10),y.qZA(),y.qZA()),2&e){var n=y.oxw();y.xp6(2),y.Q6J("ngForOf",n.authorizations)}}function xE(e,t){1&e&&(y.TgZ(0,"mat-form-field"),y._UZ(1,"input",16),y.qZA())}function CE(e,t){1&e&&(y.TgZ(0,"mat-form-field"),y._UZ(1,"input",17),y.qZA())}var kE=function(){function e(e,t,n,i,r){this.serverService=e,this.serverDatabase=t,this.route=n,this.router=i,this.toasterService=r,this.serverOptionsVisibility=!1,this.authorizations=[{key:"none",name:"No authorization"},{key:"basic",name:"Basic authorization"}],this.protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}],this.locations=[{key:"local",name:"Local"},{key:"remote",name:"Remote"}],this.serverForm=new st.cw({name:new st.NI("",[st.kI.required]),location:new st.NI(""),protocol:new st.NI("http:"),authorization:new st.NI("none"),login:new st.NI(""),password:new st.NI("")})}return e.prototype.ngOnInit=function(){return(0,LO.mG)(this,void 0,void 0,function(){var e=this;return(0,LO.Jh)(this,function(t){return this.serverService.isServiceInitialized&&this.getServers(),this.serverService.serviceInitialized.subscribe(function(t){return(0,LO.mG)(e,void 0,void 0,function(){return(0,LO.Jh)(this,function(e){return t&&this.getServers(),[2]})})}),[2]})})},e.prototype.getServers=function(){return(0,LO.mG)(this,void 0,void 0,function(){var e,t,n=this;return(0,LO.Jh)(this,function(i){switch(i.label){case 0:return this.serverIp=this.route.snapshot.paramMap.get("server_ip"),this.serverPort=+this.route.snapshot.paramMap.get("server_port"),this.projectId=this.route.snapshot.paramMap.get("project_id"),[4,this.serverService.findAll()];case 1:return e=i.sent(),(t=e.filter(function(e){return e.host===n.serverIp&&e.port===n.serverPort})[0])?this.router.navigate(["/server",t.id,"project",this.projectId]):this.serverOptionsVisibility=!0,[2]}})})},e.prototype.createServer=function(){var e=this;if(this.serverForm.get("name").hasError||this.serverForm.get("location").hasError||this.serverForm.get("protocol").hasError)if("basic"!==this.serverForm.get("authorization").value||this.serverForm.get("login").value||this.serverForm.get("password").value){var t=new CM;t.host=this.serverIp,t.port=this.serverPort,t.name=this.serverForm.get("name").value,t.location=this.serverForm.get("location").value,t.protocol=this.serverForm.get("protocol").value,t.authorization=this.serverForm.get("authorization").value,t.login=this.serverForm.get("login").value,t.password=this.serverForm.get("password").value,this.serverService.create(t).then(function(t){e.router.navigate(["/server",t.id,"project",e.projectId])})}else this.toasterService.error("Please use correct values");else this.toasterService.error("Please use correct values")},e.\u0275fac=function(t){return new(t||e)(y.Y36(TM),y.Y36(FO),y.Y36(CA),y.Y36(KZ),y.Y36(KO))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-direct-link"]],decls:23,vars:8,consts:[[1,"content",3,"hidden"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],["matInput","","tabindex","1","formControlName","name","placeholder","Name"],[4,"ngIf"],["placeholder","Location","formControlName","location"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Protocol","formControlName","protocol"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Authorization","formControlName","authorization"],["matInput","","tabindex","1","formControlName","login","placeholder","Login"],["matInput","","type","password","tabindex","1","formControlName","password","placeholder","Password"]],template:function(e,t){1&e&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Add new server"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"mat-card",5),y.TgZ(7,"form",6),y.TgZ(8,"mat-form-field"),y._UZ(9,"input",7),y.YNc(10,yE,2,0,"mat-error",8),y.qZA(),y.TgZ(11,"mat-form-field"),y.TgZ(12,"mat-select",9),y.YNc(13,_E,2,2,"mat-option",10),y.qZA(),y.qZA(),y.TgZ(14,"mat-form-field"),y.TgZ(15,"mat-select",11),y.YNc(16,bE,2,2,"mat-option",10),y.qZA(),y.qZA(),y.YNc(17,SE,3,1,"mat-form-field",8),y.YNc(18,xE,2,0,"mat-form-field",8),y.YNc(19,CE,2,0,"mat-form-field",8),y.qZA(),y.qZA(),y.TgZ(20,"div",12),y.TgZ(21,"button",13),y.NdJ("click",function(){return t.createServer()}),y._uU(22,"Add server"),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.Q6J("hidden",!t.serverOptionsVisibility),y.xp6(7),y.Q6J("formGroup",t.serverForm),y.xp6(3),y.Q6J("ngIf",t.serverForm.get("name").hasError("required")),y.xp6(3),y.Q6J("ngForOf",t.locations),y.xp6(3),y.Q6J("ngForOf",t.protocols),y.xp6(1),y.Q6J("ngIf","remote"===t.serverForm.get("location").value),y.xp6(1),y.Q6J("ngIf","basic"===t.serverForm.get("authorization").value),y.xp6(1),y.Q6J("ngIf","basic"===t.serverForm.get("authorization").value))},directives:[oE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,_.O5,vE.gD,_.sg,cO,sE.TO,lt.ey],styles:["mat-form-field{width:100%}"],encapsulation:2}),e}(),TE=0,AE=new y.OlP("CdkAccordion"),ZE=function(){var e=function(){function e(){(0,f.Z)(this,e),this._stateChanges=new x.xQ,this._openCloseAllActions=new x.xQ,this.id="cdk-accordion-".concat(TE++),this._multi=!1}return(0,m.Z)(e,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=(0,S.Ig)(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=y.lG2({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[y._Bn([{provide:AE,useExisting:e}]),y.TTD]}),e}(),ME=0,OE=function(){var e=function(){function e(t,n,i){var r=this;(0,f.Z)(this,e),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=C.w.EMPTY,this.closed=new y.vpe,this.opened=new y.vpe,this.destroyed=new y.vpe,this.expandedChange=new y.vpe,this.id="cdk-accordion-child-".concat(ME++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen(function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return(0,m.Z)(e,[{key:"expanded",get:function(){return this._expanded},set:function(e){e=(0,S.Ig)(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=(0,S.Ig)(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)(y.Y36(AE,12),y.Y36(y.sBO),y.Y36(be.A8))},e.\u0275dir=y.lG2({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[y._Bn([{provide:AE,useValue:void 0}])]}),e}(),EE=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({}),e}(),PE=["body"];function IE(e,t){}var qE=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],NE=["mat-expansion-panel-header","*","mat-action-row"];function DE(e,t){if(1&e&&y._UZ(0,"span",2),2&e){var n=y.oxw();y.Q6J("@indicatorRotate",n._getExpandedState())}}var RE=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],LE=["mat-panel-title","mat-panel-description","*"],FE=new y.OlP("MAT_ACCORDION"),BE="225ms cubic-bezier(0.4,0.0,0.2,1)",jE={indicatorRotate:(0,ft.X$)("indicatorRotate",[(0,ft.SB)("collapsed, void",(0,ft.oB)({transform:"rotate(0deg)"})),(0,ft.SB)("expanded",(0,ft.oB)({transform:"rotate(180deg)"})),(0,ft.eR)("expanded <=> collapsed, void => collapsed",(0,ft.jt)(BE))]),bodyExpansion:(0,ft.X$)("bodyExpansion",[(0,ft.SB)("collapsed, void",(0,ft.oB)({height:"0px",visibility:"hidden"})),(0,ft.SB)("expanded",(0,ft.oB)({height:"*",visibility:"visible"})),(0,ft.eR)("expanded <=> collapsed, void => collapsed",(0,ft.jt)(BE))])},zE=function(){var e=function e(t){(0,f.Z)(this,e),this._template=t};return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.Rgc))},e.\u0275dir=y.lG2({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e}(),UE=0,HE=new y.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),YE=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o,a,s,l){var c;return(0,f.Z)(this,n),(c=t.call(this,e,i,r))._viewContainerRef=o,c._animationMode=s,c._hideToggle=!1,c.afterExpand=new y.vpe,c.afterCollapse=new y.vpe,c._inputChanges=new x.xQ,c._headerId="mat-expansion-panel-header-".concat(UE++),c._bodyAnimationDone=new x.xQ,c.accordion=e,c._document=a,c._bodyAnimationDone.pipe((0,ht.x)(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){"void"!==e.fromState&&("expanded"===e.toState?c.afterExpand.emit():"collapsed"===e.toState&&c.afterCollapse.emit())}),l&&(c.hideToggle=l.hideToggle),c}return(0,m.Z)(n,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=(0,S.Ig)(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((0,O.O)(null),(0,dt.h)(function(){return e.expanded&&!e._portal}),(0,P.q)(1)).subscribe(function(){e._portal=new wO.UE(e._lazyContent._template,e._viewContainerRef)})}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){(0,c.Z)((0,u.Z)(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}(OE);return e.\u0275fac=function(t){return new(t||e)(y.Y36(FE,12),y.Y36(y.sBO),y.Y36(be.A8),y.Y36(y.s_b),y.Y36(_.K0),y.Y36(mt.Qb,8),y.Y36(HE,8))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;1&e&&y.Suo(n,zE,5),2&e&&y.iGM(i=y.CRH())&&(t._lazyContent=i.first)},viewQuery:function(e,t){var n;1&e&&y.Gf(PE,5),2&e&&y.iGM(n=y.CRH())&&(t._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&y.ekj("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:[y._Bn([{provide:FE,useValue:void 0}]),y.qOj,y.TTD],ngContentSelectors:NE,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&&(y.F$t(qE),y.Hsn(0),y.TgZ(1,"div",0,1),y.NdJ("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),y.TgZ(3,"div",2),y.Hsn(4,1),y.YNc(5,IE,0,0,"ng-template",3),y.qZA(),y.Hsn(6,2),y.qZA()),2&e&&(y.xp6(1),y.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),y.uIk("aria-labelledby",t._headerId),y.xp6(4),y.Q6J("cdkPortalOutlet",t._portal))},directives:[wO.Pl],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:[jE.bodyExpansion]},changeDetection:0}),e}(),JE=function(){var e=function(){function e(t,n,i,r,o,a){var s=this;(0,f.Z)(this,e),this.panel=t,this._element=n,this._focusMonitor=i,this._changeDetectorRef=r,this._animationMode=a,this._parentChangeSubscription=C.w.EMPTY;var l=t.accordion?t.accordion._stateChanges.pipe((0,dt.h)(function(e){return!(!e.hideToggle&&!e.togglePosition)})):sT.E;this._parentChangeSubscription=(0,Z.T)(t.opened,t.closed,l,t._inputChanges.pipe((0,dt.h)(function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)}))).subscribe(function(){return s._changeDetectorRef.markForCheck()}),t.closed.pipe((0,dt.h)(function(){return t._containsFocus()})).subscribe(function(){return i.focusVia(n,"program")}),o&&(this.expandedHeight=o.expandedHeight,this.collapsedHeight=o.collapsedHeight)}return(0,m.Z)(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 ct.L_:case ct.K5:(0,ct.Vb)(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)(y.Y36(YE,1),y.Y36(y.SBq),y.Y36(gt.tE),y.Y36(y.sBO),y.Y36(HE,8),y.Y36(mt.Qb,8))},e.\u0275cmp=y.Xpm({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&&y.NdJ("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(y.uIk("id",t.panel._headerId)("tabindex",t.disabled?-1:0)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),y.Udp("height",t._getHeaderHeight()),y.ekj("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:LE,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(y.F$t(RE),y.TgZ(0,"span",0),y.Hsn(1),y.Hsn(2,1),y.Hsn(3,2),y.qZA(),y.YNc(4,DE,1,1,"span",1)),2&e&&(y.xp6(4),y.Q6J("ngIf",t._showToggle()))},directives:[_.O5],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:[jE.indicatorRotate]},changeDetection:0}),e}(),GE=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=y.lG2({type:e,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),e}(),WE=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=y.lG2({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e}(),VE=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){var e;return(0,f.Z)(this,n),(e=t.apply(this,arguments))._ownHeaders=new y.n_E,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return(0,m.Z)(n,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=(0,S.Ig)(e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe((0,O.O)(this._headers)).subscribe(function(t){e._ownHeaders.reset(t.filter(function(t){return t.panel.accordion===e})),e._ownHeaders.notifyOnChanges()}),this._keyManager=new gt.Em(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(){(0,c.Z)((0,u.Z)(n.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),n}(ZE);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275dir=y.lG2({type:e,selectors:[["mat-accordion"]],contentQueries:function(e,t,n){var i;1&e&&y.Suo(n,JE,5),2&e&&y.iGM(i=y.CRH())&&(t._headers=i)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&y.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[y._Bn([{provide:FE,useExisting:e}]),y.qOj]}),e}(),QE=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[_.ez,lt.BQ,EE,wO.eL]]}),e}(),XE=n(93386),KE=["*"],$E='.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',eP=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],tP=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],nP=(0,lt.Id)((0,lt.Kr)(function e(){(0,f.Z)(this,e)})),iP=(0,lt.Kr)(function e(){(0,f.Z)(this,e)}),rP=new y.OlP("MatList"),oP=new y.OlP("MatNavList"),aP=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){var e;return(0,f.Z)(this,n),(e=t.apply(this,arguments))._stateChanges=new x.xQ,e}return(0,m.Z)(n,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(nP);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[y._Bn([{provide:oP,useExisting:e}]),y.qOj,y.TTD],ngContentSelectors:KE,decls:1,vars:0,template:function(e,t){1&e&&(y.F$t(),y.Hsn(0))},styles:[$E],encapsulation:2,changeDetection:0}),e}(),sP=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e){var i;return(0,f.Z)(this,n),(i=t.call(this))._elementRef=e,i._stateChanges=new x.xQ,"action-list"===i._getListType()&&e.nativeElement.classList.add("mat-action-list"),i}return(0,m.Z)(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}(nP);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[y._Bn([{provide:rP,useExisting:e}]),y.qOj,y.TTD],ngContentSelectors:KE,decls:1,vars:0,template:function(e,t){1&e&&(y.F$t(),y.Hsn(0))},styles:[$E],encapsulation:2,changeDetection:0}),e}(),lP=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=y.lG2({type:e,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),e}(),cP=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=y.lG2({type:e,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),e}(),uP=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o){var a;(0,f.Z)(this,n),(a=t.call(this))._element=e,a._isInteractiveList=!1,a._destroyed=new x.xQ,a._disabled=!1,a._isInteractiveList=!!(r||o&&"action-list"===o._getListType()),a._list=r||o;var s=a._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),a._list&&a._list._stateChanges.pipe((0,M.R)(a._destroyed)).subscribe(function(){i.markForCheck()}),a}return(0,m.Z)(n,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(e){this._disabled=(0,S.Ig)(e)}},{key:"ngAfterContentInit",value:function(){(0,lt.E0)(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}(iP);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(oP,8),y.Y36(rP,8))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,n){var i;1&e&&(y.Suo(n,lP,5),y.Suo(n,cP,5),y.Suo(n,lt.X2,5)),2&e&&(y.iGM(i=y.CRH())&&(t._avatar=i.first),y.iGM(i=y.CRH())&&(t._icon=i.first),y.iGM(i=y.CRH())&&(t._lines=i))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&y.ekj("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:[y.qOj],ngContentSelectors:tP,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&&(y.F$t(eP),y.TgZ(0,"div",0),y._UZ(1,"div",1),y.Hsn(2),y.TgZ(3,"div",2),y.Hsn(4,1),y.qZA(),y.Hsn(5,2),y.qZA()),2&e&&(y.xp6(1),y.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[lt.wG],encapsulation:2,changeDetection:0}),e}(),dP=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[lt.uc,lt.si,lt.BQ,lt.us,_.ez],lt.uc,lt.BQ,lt.us,XE.t]}),e}(),hP=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.prototype.goToDocumentation=function(){window.location.href="https://docs.gns3.com/docs/"},e.\u0275fac=function(t){return new(t||e)(y.Y36(at.eN))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-help"]],decls:38,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"innerHTML"],["mat-button","","color","primary",1,"full-width",3,"click"]],template:function(e,t){1&e&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"h1"),y._uU(3,"Help"),y.qZA(),y.qZA(),y.TgZ(4,"div",2),y.TgZ(5,"div",3),y.TgZ(6,"mat-accordion"),y.TgZ(7,"mat-expansion-panel"),y.TgZ(8,"mat-expansion-panel-header"),y.TgZ(9,"mat-panel-title"),y._uU(10," Useful shortcuts "),y.qZA(),y.qZA(),y.TgZ(11,"mat-list"),y.TgZ(12,"mat-list-item"),y._uU(13," ctrl + + to zoom in "),y.qZA(),y.TgZ(14,"mat-list-item"),y._uU(15," ctrl + - to zoom out "),y.qZA(),y.TgZ(16,"mat-list-item"),y._uU(17," ctrl + 0 to reset zoom "),y.qZA(),y.TgZ(18,"mat-list-item"),y._uU(19," ctrl + h to hide toolbar "),y.qZA(),y.TgZ(20,"mat-list-item"),y._uU(21," ctrl + a to select all items on map "),y.qZA(),y.TgZ(22,"mat-list-item"),y._uU(23," ctrl + shift + a to deselect all items on map "),y.qZA(),y.TgZ(24,"mat-list-item"),y._uU(25," ctrl + shift + s to go to preferences "),y.qZA(),y.qZA(),y.qZA(),y.TgZ(26,"mat-expansion-panel"),y.TgZ(27,"mat-expansion-panel-header"),y.TgZ(28,"mat-panel-title"),y._uU(29," Third party components "),y.qZA(),y.qZA(),y._UZ(30,"div",4),y.qZA(),y.TgZ(31,"mat-expansion-panel"),y.TgZ(32,"mat-expansion-panel-header"),y.TgZ(33,"mat-panel-title"),y._uU(34," Release notes "),y.qZA(),y.qZA(),y._UZ(35,"div",4),y.qZA(),y.qZA(),y.qZA(),y.TgZ(36,"button",5),y.NdJ("click",function(){return t.goToDocumentation()}),y._uU(37,"Go to documentation"),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(30),y.Q6J("innerHTML",t.thirdpartylicenses,y.oJD),y.xp6(5),y.Q6J("innerHTML",t.releasenotes,y.oJD))},directives:[VE,YE,JE,WE,sP,uP,cO],styles:[".full-width[_ngcontent-%COMP%]{width:100%;margin-top:20px}"]}),e}(),pP=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.\u0275fac=function(t){return new(t||e)(y.LFG(eT))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),fP=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.\u0275fac=function(t){return new(t||e)(y.LFG(pP))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),mP=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.\u0275fac=function(t){return new(t||e)(y.LFG(eT),y.LFG(fP))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),gP=[[["caption"]],[["colgroup"],["col"]]],vP=["caption","colgroup, col"],yP=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){var e;return(0,f.Z)(this,n),(e=t.apply(this,arguments)).stickyCssClass="mat-table-sticky",e.needsPositionStickyOnElement=!1,e}return n}(it);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&y.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[y._Bn([{provide:be.k,useClass:be.yy},{provide:it,useExisting:e},{provide:Ze,useExisting:e},{provide:Le,useClass:Fe},{provide:Ke,useValue:null}]),y.qOj],ngContentSelectors:vP,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(y.F$t(gP),y.Hsn(0),y.Hsn(1,1),y.GkF(2,0),y.GkF(3,1),y.GkF(4,2),y.GkF(5,3))},directives:[et,$e,nt,tt],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}(),_P=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(Me);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275dir=y.lG2({type:e,selectors:[["","matCellDef",""]],features:[y._Bn([{provide:Me,useExisting:e}]),y.qOj]}),e}(),bP=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(Oe);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275dir=y.lG2({type:e,selectors:[["","matHeaderCellDef",""]],features:[y._Bn([{provide:Oe,useExisting:e}]),y.qOj]}),e}(),wP=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"name",get:function(){return this._name},set:function(e){this._setNameInput(e)}},{key:"_updateColumnCssClassName",value:function(){(0,c.Z)((0,u.Z)(n.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),n}(Ie);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275dir=y.lG2({type:e,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[y._Bn([{provide:Ie,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),y.qOj]}),e}(),SP=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(Ne);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275dir=y.lG2({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[y.qOj]}),e}(),xP=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(De);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275dir=y.lG2({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[y.qOj]}),e}(),CP=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(ze);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275dir=y.lG2({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[y._Bn([{provide:ze,useExisting:e}]),y.qOj]}),e}(),kP=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(Ye);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275dir=y.lG2({type:e,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[y._Bn([{provide:Ye,useExisting:e}]),y.qOj]}),e}(),TP=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(Ge);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[y._Bn([{provide:Ge,useExisting:e}]),y.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&y.GkF(0,0)},directives:[Je],encapsulation:2}),e}(),AP=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(We);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[y._Bn([{provide:We,useExisting:e}]),y.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&y.GkF(0,0)},directives:[Je],encapsulation:2}),e}(),ZP=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[ot,lt.BQ],lt.BQ]}),e}(),MP=9007199254740991,OP=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,f.Z)(this,n),(e=t.call(this))._renderData=new Se.X([]),e._filter=new Se.X(""),e._internalPageChanges=new x.xQ,e._renderChangesSubscription=null,e.sortingDataAccessor=function(e,t){var n=e[t];if((0,S.t6)(n)){var i=Number(n);return i<MP?i:n}return n},e.sortData=function(t,n){var i=n.active,r=n.direction;return i&&""!=r?t.sort(function(t,n){var o=e.sortingDataAccessor(t,i),a=e.sortingDataAccessor(n,i),s=typeof o,l=typeof a;s!==l&&("number"===s&&(o+=""),"number"===l&&(a+=""));var c=0;return null!=o&&null!=a?o>a?c=1:o<a&&(c=-1):null!=o?c=1:null!=a&&(c=-1),c*("asc"==r?1:-1)}):t},e.filterPredicate=function(e,t){var n=Object.keys(e).reduce(function(t,n){return t+e[n]+"\u25ec"},"").toLowerCase(),i=t.trim().toLowerCase();return-1!=n.indexOf(i)},e._data=new Se.X(i),e._updateChangeSubscription(),e}return(0,m.Z)(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?(0,Z.T)(this._sort.sortChange,this._sort.initialized):(0,Ce.of)(null),i=this._paginator?(0,Z.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,Ce.of)(null),r=(0,_t.aj)([this._data,this._filter]).pipe((0,E.U)(function(e){var n=(0,s.Z)(e,1);return t._filterData(n[0])})),o=(0,_t.aj)([r,n]).pipe((0,E.U)(function(e){var n=(0,s.Z)(e,1);return t._orderData(n[0])})),a=(0,_t.aj)([o,i]).pipe((0,E.U)(function(e){var n=(0,s.Z)(e,1);return t._pageData(n[0])}));null===(e=this._renderChangesSubscription)||void 0===e||e.unsubscribe(),this._renderChangesSubscription=a.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 i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,t._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var e;null===(e=this._renderChangesSubscription)||void 0===e||e.unsubscribe(),this._renderChangesSubscription=null}}]),n}(be.o2)),EP=n(15132),PP=function(e,t){return{hidden:e,lightTheme:t}},IP=/<a href="(.*)">(.*)<\/a><br\/>(.*)<br\/>\s*<button><a .*>(.*)<\/a>\s*<\/button>/i,qP=function(){function e(e,t,n){this.httpClient=e,this.themeService=t,this.location=n,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.location.path().includes("nodes")||(this.httpClient.get("https://servedbyadbutler.com/adserve/;ID=165803;size=0x0;setID=371476;type=json;").subscribe(function(t){var n,i;if(null===(i=null===(n=null==t?void 0:t.placements)||void 0===n?void 0:n.placement_1)||void 0===i?void 0:i.body)try{var r=t.placements.placement_1.body.replace(/(\r\n|\n|\r)/gm,""),o=IP.exec(r);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)(y.Y36(at.eN),y.Y36(EP.f),y.Y36(_.Ye))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"span",2),y.TgZ(3,"a",3),y._uU(4),y.qZA(),y.qZA(),y.TgZ(5,"button"),y.TgZ(6,"a",3),y._uU(7),y.qZA(),y.qZA(),y.qZA(),y.TgZ(8,"mat-icon",4),y.NdJ("click",function(){return t.hide()}),y._uU(9,"close"),y.qZA(),y.qZA()),2&e&&(y.Q6J("ngClass",y.WLB(5,PP,!t.isVisible,t.isLightThemeEnabled)),y.xp6(3),y.Q6J("href",t.adUrl,y.LSH),y.xp6(1),y.Oqu(t.adBody),y.xp6(2),y.Q6J("href",t.adUrl,y.LSH),y.xp6(1),y.Oqu(t.buttonLabel))},directives:[_.mk,nO],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 NP(e,t){if(1&e&&(y.ynx(0),y._uU(1),y.BQk()),2&e){var n=y.oxw();y.xp6(1),y.Oqu(n.buttonText)}}var DP=function(){function e(e){this.electronService=e,this.installedChanged=new y.vpe,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)(y.Y36(eT))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-install-software"]],inputs:{software:"software"},outputs:{installedChanged:"installedChanged"},features:[y.TTD],decls:2,vars:2,consts:[["mat-button","","color","primary",3,"disabled","click"],[4,"ngIf"]],template:function(e,t){1&e&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.install()}),y.YNc(1,NP,2,1,"ng-container",1),y.qZA()),2&e&&(y.Q6J("disabled",t.disabled),y.xp6(1),y.Q6J("ngIf",t.readyToInstall))},directives:[cO,_.O5],styles:[""]}),e}();function RP(e,t){1&e&&(y.TgZ(0,"mat-header-cell"),y._uU(1," Name "),y.qZA())}function LP(e,t){if(1&e&&(y.ynx(0),y._uU(1),y.BQk()),2&e){var n=y.oxw().$implicit;y.xp6(1),y.hij(" ",n.name," ")}}function FP(e,t){1&e&&(y.ynx(0),y._UZ(1,"app-adbutler",14),y.BQk())}function BP(e,t){if(1&e&&(y.TgZ(0,"mat-cell"),y.YNc(1,LP,2,1,"ng-container",13),y.YNc(2,FP,2,0,"ng-container",13),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Q6J("ngIf","adbutler"!==n.type),y.xp6(1),y.Q6J("ngIf","adbutler"===n.type)}}function jP(e,t){1&e&&y._UZ(0,"mat-header-cell")}function zP(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"app-install-software",17),y.NdJ("installedChanged",function(e){return y.CHM(n),y.oxw(2).onInstalled(e)}),y.qZA()}if(2&e){var i=y.oxw().$implicit;y.Q6J("software",i)}}function UP(e,t){if(1&e&&(y.TgZ(0,"mat-cell",15),y.YNc(1,zP,1,1,"app-install-software",16),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Q6J("ngIf","adbutler"!==n.type)}}function HP(e,t){1&e&&y._UZ(0,"mat-header-row")}function YP(e,t){1&e&&y._UZ(0,"mat-row")}var JP=function(){function e(e,t){this.installedSoftwareService=e,this.changeDetectorRef=t,this.displayedColumns=["name","actions"]}return e.prototype.ngOnInit=function(){this.dataSource=new GP(this.installedSoftwareService)},e.prototype.onInstalled=function(e){this.dataSource.refresh(),this.changeDetectorRef.detectChanges()},e.\u0275fac=function(t){return new(t||e)(y.Y36(mP),y.Y36(y.sBO))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"h1"),y._uU(3,"Installed software"),y.qZA(),y.qZA(),y.TgZ(4,"div",2),y.TgZ(5,"div",3),y.TgZ(6,"mat-table",4,5),y.ynx(8,6),y.YNc(9,RP,2,0,"mat-header-cell",7),y.YNc(10,BP,3,2,"mat-cell",8),y.BQk(),y.ynx(11,9),y.YNc(12,jP,1,0,"mat-header-cell",7),y.YNc(13,UP,2,1,"mat-cell",10),y.BQk(),y.YNc(14,HP,1,0,"mat-header-row",11),y.YNc(15,YP,1,0,"mat-row",12),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(6),y.Q6J("dataSource",t.dataSource),y.xp6(8),y.Q6J("matHeaderRowDef",t.displayedColumns),y.xp6(1),y.Q6J("matRowDefColumns",t.displayedColumns))},directives:[yP,wP,bP,_P,CP,kP,SP,xP,_.O5,qP,DP,TP,AP],styles:[""]}),e}(),GP=function(e){function t(t){var n=e.call(this)||this;return n.installedSoftwareService=t,n.installed=new Se.X([]),n}return(0,LO.ZT)(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}(be.o2),WP=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y._UZ(2,"br"),y.TgZ(3,"h1"),y._uU(4,"404 Page not found"),y.qZA(),y.TgZ(5,"button",2),y._uU(6,"Navigate to homepage"),y.qZA(),y.qZA(),y.qZA())},directives:[cO,eM],styles:["div[_ngcontent-%COMP%]{text-align:center}"]}),e}(),VP=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)(y.Y36(CA))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Built-in preferences"),y.qZA(),y.TgZ(5,"button",4),y._uU(6," Back "),y.qZA(),y.qZA(),y.qZA(),y.TgZ(7,"div",5),y.TgZ(8,"div",6),y.TgZ(9,"mat-nav-list"),y.TgZ(10,"mat-list-item",7),y._uU(11," Ethernet hubs "),y.qZA(),y.TgZ(12,"mat-list-item",7),y._uU(13," Ethernet switches "),y.qZA(),y.TgZ(14,"mat-list-item",7),y._uU(15," Cloud nodes "),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(5),y.MGl("routerLink","/server/",t.serverId,"/preferences"),y.xp6(5),y.MGl("routerLink","/server/",t.serverId,"/preferences/builtin/ethernet-hubs"),y.xp6(2),y.MGl("routerLink","/server/",t.serverId,"/preferences/builtin/ethernet-switches"),y.xp6(2),y.MGl("routerLink","/server/",t.serverId,"/preferences/builtin/cloud-nodes"))},directives:[cO,eM,aP,uP],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}(),QP=n(49940),XP=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.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),KP=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(0,Ce.of)({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(0,Ce.of)({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(0,Ce.of)({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(0,Ce.of)({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(0,Ce.of)({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(0,Ce.of)({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(0,Ce.of)({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(0,Ce.of)({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(0,Ce.of)({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(0,Ce.of)({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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),$P=n(36889),eI=["input"],tI=function(){return{enterDuration:150}},nI=["*"],iI=new y.OlP("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),rI=0,oI={provide:st.JU,useExisting:(0,y.Gpc)(function(){return cI}),multi:!0},aI=function e(t,n){(0,f.Z)(this,e),this.source=t,this.value=n},sI=new y.OlP("MatRadioGroup"),lI=function(){var e=function(){function e(t){(0,f.Z)(this,e),this._changeDetector=t,this._value=null,this._name="mat-radio-group-".concat(rI++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new y.vpe}return(0,m.Z)(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=(0,S.Ig)(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,S.Ig)(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 aI(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)(y.Y36(y.sBO))},e.\u0275dir=y.lG2({type:e,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),e}(),cI=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(lI);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275dir=y.lG2({type:e,selectors:[["mat-radio-group"]],contentQueries:function(e,t,n){var i;1&e&&y.Suo(n,hI,5),2&e&&y.iGM(i=y.CRH())&&(t._radios=i)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[y._Bn([oI,{provide:sI,useExisting:e}]),y.qOj]}),e}(),uI=(0,lt.Kr)((0,lt.sb)(function e(t){(0,f.Z)(this,e),this._elementRef=t})),dI=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o,a,s,l,c){var u;return(0,f.Z)(this,n),(u=t.call(this,i))._changeDetector=r,u._focusMonitor=o,u._radioDispatcher=a,u._animationMode=s,u._providerOverride=l,u._uniqueId="mat-radio-".concat(++rI),u.id=u._uniqueId,u.change=new y.vpe,u._checked=!1,u._value=null,u._removeUniqueSelectionListener=function(){},u.radioGroup=e,c&&(u.tabIndex=(0,S.su)(c,0)),u._removeUniqueSelectionListener=a.listen(function(e,t){e!==u.id&&t===u.name&&(u.checked=!1)}),u}return(0,m.Z)(n,[{key:"checked",get:function(){return this._checked},set:function(e){var t=(0,S.Ig)(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((0,S.Ig)(e))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(e){this._required=(0,S.Ig)(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 aI(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}(uI);return e.\u0275fac=function(t){return new(t||e)(y.Y36(lI),y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(gt.tE),y.Y36(be.A8),y.Y36(String),y.Y36(void 0),y.Y36(String))},e.\u0275dir=y.lG2({type:e,viewQuery:function(e,t){var n;1&e&&y.Gf(eI,5),2&e&&y.iGM(n=y.CRH())&&(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:[y.qOj]}),e}(),hI=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o,a,s,l,c){return(0,f.Z)(this,n),t.call(this,e,i,r,o,a,s,l,c)}return n}(dI);return e.\u0275fac=function(t){return new(t||e)(y.Y36(sI,8),y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(gt.tE),y.Y36(be.A8),y.Y36(mt.Qb,8),y.Y36(iI,8),y.$8M("tabindex"))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&y.NdJ("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(y.uIk("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),y.ekj("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:[y.qOj],ngContentSelectors:nI,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&&(y.F$t(),y.TgZ(0,"label",0,1),y.TgZ(2,"span",2),y._UZ(3,"span",3),y._UZ(4,"span",4),y.TgZ(5,"input",5,6),y.NdJ("change",function(e){return t._onInputChange(e)})("click",function(e){return t._onInputClick(e)}),y.qZA(),y.TgZ(7,"span",7),y._UZ(8,"span",8),y.qZA(),y.qZA(),y.TgZ(9,"span",9),y.TgZ(10,"span",10),y._uU(11,"\xa0"),y.qZA(),y.Hsn(12),y.qZA(),y.qZA()),2&e){var n=y.MAs(1);y.uIk("for",t.inputId),y.xp6(5),y.Q6J("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),y.uIk("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),y.xp6(2),y.Q6J("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",y.DdM(18,tI)),y.xp6(2),y.ekj("mat-radio-label-before","before"==t.labelPosition)}},directives:[lt.wG],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;top:0;left:0}.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-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),e}(),pI=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[lt.si,lt.BQ],lt.BQ]}),e}(),fI=function(){function e(e,t,n,i,r,o,a,s){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.router=i,this.toasterService=r,this.templateMocksService=o,this.formBuilder=a,this.computeService=s,this.templateName="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new st.NI("",st.kI.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=(0,QP.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)(y.Y36(CA),y.Y36(TM),y.Y36(XP),y.Y36(KZ),y.Y36(KO),y.Y36(KP),y.Y36(st.qu),y.Y36($P.X))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"New cloud node template"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"mat-card",5),y.TgZ(7,"mat-radio-group",6),y.TgZ(8,"mat-radio-button",7),y.NdJ("click",function(){return t.setServerType("local")}),y._uU(9,"Run the cloud node locally"),y.qZA(),y.TgZ(10,"mat-radio-button",8),y.NdJ("click",function(){return t.setServerType("gns3 vm")}),y._uU(11,"Run the cloud node on the GNS3 VM"),y.qZA(),y.qZA(),y.TgZ(12,"form",9),y.TgZ(13,"mat-form-field",10),y._UZ(14,"input",11),y.qZA(),y.qZA(),y.qZA(),y.TgZ(15,"div",12),y.TgZ(16,"button",13),y.NdJ("click",function(){return t.goBack()}),y._uU(17,"Cancel"),y.qZA(),y.TgZ(18,"button",14),y.NdJ("click",function(){return t.addTemplate()}),y._uU(19,"Add template"),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(10),y.Q6J("disabled",!t.isGns3VmAvailable),y.xp6(2),y.Q6J("formGroup",t.formGroup))},directives:[oE,cI,hI,st._Y,st.JL,st.sg,sE.KE,st.Fj,mE,st.JJ,st.u,cO],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}(),mI=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","vnc","spice","http","https","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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),gI=n(61106),vI=function(){function e(e){this.httpServer=e,this.symbols=new Se.X([]),this.maximumSymbolSize=80}return e.prototype.getMaximumSymbolSize=function(){return this.maximumSymbolSize},e.prototype.get=function(e){return this.symbols.getValue().find(function(t){return t.symbol_id===e})},e.prototype.getDimensions=function(e,t){var n=encodeURI(t);return this.httpServer.get(e,"/symbols/"+n+"/dimensions")},e.prototype.scaleDimensionsForNode=function(e){var t=e.width>e.height?this.maximumSymbolSize/e.width:this.maximumSymbolSize/e.height;return{width:e.width*t,height:e.height*t}},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((0,gI.d)(1))),this.cache},e.prototype.raw=function(e,t){var n=encodeURI(t);return this.httpServer.getText(e,"/symbols/"+n+"/raw")},e.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),yI=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=y.Yjl({name:"filenamefilter",type:e,pure:!0}),e}(),_I=function(e){return{buttonSelected:e}},bI=function(e){return{imageSelected:e}};function wI(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",12),y.TgZ(1,"button",13),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw().setSelected(e.symbol_id)}),y._UZ(2,"img",14),y.qZA(),y.qZA()}if(2&e){var i=t.$implicit,r=y.oxw();y.xp6(1),y.Q6J("ngClass",y.VKq(3,_I,r.isSelected===i.symbol_id)),y.xp6(1),y.Q6J("ngClass",y.VKq(5,bI,r.isSelected===i.symbol_id))("src",r.getImageSourceForTemplate(i.symbol_id),y.LSH)}}var SI=function(){return{standalone:!0}},xI=function(){function e(e){this.symbolService=e,this.symbolChanged=new y.vpe,this.symbols=[],this.filteredSymbols=[],this.isSelected="",this.searchText=""}return e.prototype.ngOnInit=function(){this.isSelected=this.symbol,this.loadSymbols()},e.prototype.setFilter=function(e){this.filteredSymbols="all"===e?this.symbols:this.symbols.filter("builtin"===e?function(e){return e.builtin}:function(e){return!e.builtin})},e.prototype.setSelected=function(e){this.isSelected=e,this.symbolChanged.emit(this.isSelected)},e.prototype.loadSymbols=function(){var e=this;this.symbolService.list(this.server).subscribe(function(t){e.symbols=t,e.filteredSymbols=t})},e.prototype.uploadSymbolFile=function(e){this.readSymbolFile(e.target)},e.prototype.readSymbolFile=function(e){var t=this,n=e.files[0],i=e.files[0].name,r=new FileReader,o=new Image;r.onloadend=function(){var e=t.createSvgFileForImage(r.result,o);t.symbolService.add(t.server,i,e).subscribe(function(){t.loadSymbols()})},o.onload=function(){r.readAsDataURL(n)},o.src=window.URL.createObjectURL(n)},e.prototype.createSvgFileForImage=function(e,t){return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="'+t.height+'" \n width="'+t.width+'">\n<image height="'+t.height+'" width="'+t.width+'" xlink:href="'+e+'"/>\n</svg>'},e.prototype.getImageSourceForTemplate=function(e){return this.server.protocol+"//"+this.server.host+":"+this.server.port+"/v2/symbols/"+e+"/raw"},e.\u0275fac=function(t){return new(t||e)(y.Y36(vI))},e.\u0275cmp=y.Xpm({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=y.EpF();y.TgZ(0,"div",0),y.TgZ(1,"mat-radio-group",1),y.TgZ(2,"mat-radio-button",2),y.NdJ("click",function(){return t.setFilter("all")}),y._uU(3,"All symbols"),y.qZA(),y.TgZ(4,"mat-radio-button",3),y.NdJ("click",function(){return t.setFilter("builtin")}),y._uU(5,"Built-in symbols"),y.qZA(),y.TgZ(6,"mat-radio-button",4),y.NdJ("click",function(){return t.setFilter("custom")}),y._uU(7,"Custom symbols"),y.qZA(),y.qZA(),y.TgZ(8,"input",5,6),y.NdJ("change",function(e){return t.uploadSymbolFile(e)}),y.qZA(),y.TgZ(10,"button",7),y.NdJ("click",function(){return y.CHM(n),y.MAs(9).click()}),y.TgZ(11,"mat-icon"),y._uU(12,"add"),y.qZA(),y._uU(13," Add symbol "),y.qZA(),y.qZA(),y.TgZ(14,"form"),y.TgZ(15,"mat-form-field",8),y.TgZ(16,"input",9),y.NdJ("ngModelChange",function(e){return t.searchText=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(17,"div",10),y.YNc(18,wI,3,7,"div",11),y.ALo(19,"filenamefilter"),y.qZA()}2&e&&(y.xp6(16),y.Q6J("ngModel",t.searchText)("ngModelOptions",y.DdM(6,SI)),y.xp6(2),y.Q6J("ngForOf",y.xi3(19,3,t.filteredSymbols,t.searchText)))},directives:[cI,hI,cO,nO,st._Y,st.JL,st.F,sE.KE,mE,st.Fj,st.JJ,st.On,_.sg,_.mk],pipes:[yI],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}(),CI=function(){function e(){this.symbolChangedEmitter=new y.vpe,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=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Symbol selection"),y.qZA(),y.TgZ(5,"button",4),y.NdJ("click",function(){return t.cancelChooseSymbol()}),y._uU(6,"Cancel"),y.qZA(),y.TgZ(7,"button",5),y.NdJ("click",function(){return t.chooseSymbol()}),y._uU(8,"Choose symbol"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(9,"div",6),y.TgZ(10,"app-symbols",7),y.NdJ("symbolChanged",function(e){return t.symbolChanged(e)}),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(10),y.Q6J("server",t.server)("symbol",t.symbol))},directives:[cO,xI],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 kI(e,t){if(1&e&&(y.TgZ(0,"mat-option",32),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}function TI(e,t){if(1&e&&(y.TgZ(0,"mat-option",32),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function AI(e,t){if(1&e&&(y.TgZ(0,"div",7),y.TgZ(1,"div",7),y._uU(2),y.qZA(),y._UZ(3,"br"),y._UZ(4,"br"),y.qZA()),2&e){var n=t.$implicit;y.xp6(2),y.Oqu(n.name)}}function ZI(e,t){if(1&e&&(y.TgZ(0,"mat-option",32),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function MI(e,t){if(1&e&&(y.TgZ(0,"div",7),y.TgZ(1,"div",7),y._uU(2),y.qZA(),y._UZ(3,"br"),y._UZ(4,"br"),y.qZA()),2&e){var n=t.$implicit;y.xp6(2),y.Oqu(n.name)}}function OI(e,t){1&e&&(y.TgZ(0,"th",42),y._uU(1,"Name"),y.qZA())}function EI(e,t){if(1&e&&(y.TgZ(0,"td",43),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.name)}}function PI(e,t){1&e&&(y.TgZ(0,"th",42),y._uU(1,"Local port"),y.qZA())}function II(e,t){if(1&e&&(y.TgZ(0,"td",43),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.rport)}}function qI(e,t){1&e&&(y.TgZ(0,"th",42),y._uU(1,"Type"),y.qZA())}function NI(e,t){if(1&e&&(y.TgZ(0,"td",43),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.rhost)}}function DI(e,t){1&e&&(y.TgZ(0,"th",42),y._uU(1,"Remote port"),y.qZA())}function RI(e,t){if(1&e&&(y.TgZ(0,"td",43),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.lport)}}function LI(e,t){1&e&&y._UZ(0,"tr",44)}function FI(e,t){1&e&&y._UZ(0,"tr",45)}function BI(e,t){if(1&e&&(y.TgZ(0,"table",33),y.ynx(1,34),y.YNc(2,OI,2,0,"th",35),y.YNc(3,EI,2,1,"td",36),y.BQk(),y.ynx(4,37),y.YNc(5,PI,2,0,"th",35),y.YNc(6,II,2,1,"td",36),y.BQk(),y.ynx(7,38),y.YNc(8,qI,2,0,"th",35),y.YNc(9,NI,2,1,"td",36),y.BQk(),y.ynx(10,39),y.YNc(11,DI,2,0,"th",35),y.YNc(12,RI,2,1,"td",36),y.BQk(),y.YNc(13,LI,1,0,"tr",40),y.YNc(14,FI,1,0,"tr",41),y.qZA()),2&e){var n=y.oxw(2);y.Q6J("dataSource",n.dataSourceUdp),y.xp6(13),y.Q6J("matHeaderRowDef",n.displayedColumns),y.xp6(1),y.Q6J("matRowDefColumns",n.displayedColumns)}}function jI(e,t){1&e&&y._UZ(0,"br")}var zI=function(){return{standalone:!0}};function UI(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",6),y.TgZ(1,"mat-accordion"),y.TgZ(2,"mat-expansion-panel"),y.TgZ(3,"mat-expansion-panel-header"),y.TgZ(4,"mat-panel-title"),y._uU(5," General "),y.qZA(),y.qZA(),y.TgZ(6,"mat-form-field",7),y.TgZ(7,"input",8),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().cloudNodeTemplate.name=e}),y.qZA(),y.qZA(),y.TgZ(8,"mat-form-field",7),y.TgZ(9,"input",9),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().cloudNodeTemplate.default_name_format=e}),y.qZA(),y.qZA(),y.TgZ(10,"mat-form-field",7),y.TgZ(11,"input",10),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().cloudNodeTemplate.symbol=e}),y.qZA(),y.qZA(),y.TgZ(12,"button",11),y.NdJ("click",function(){return y.CHM(n),y.oxw().chooseSymbol()}),y._uU(13,"Choose symbol"),y.qZA(),y._UZ(14,"br"),y._UZ(15,"br"),y.TgZ(16,"mat-form-field",7),y.TgZ(17,"mat-select",12),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().cloudNodeTemplate.category=e}),y.YNc(18,kI,2,2,"mat-option",13),y.qZA(),y.qZA(),y.TgZ(19,"mat-form-field",14),y.TgZ(20,"mat-select",15),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().cloudNodeTemplate.console_type=e}),y.YNc(21,TI,2,2,"mat-option",13),y.qZA(),y.qZA(),y.TgZ(22,"mat-form-field",7),y.TgZ(23,"input",16),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().cloudNodeTemplate.remote_console_host=e}),y.qZA(),y.qZA(),y.TgZ(24,"mat-form-field",7),y.TgZ(25,"input",17),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().cloudNodeTemplate.remote_console_port=e}),y.qZA(),y.qZA(),y.TgZ(26,"mat-form-field",7),y.TgZ(27,"input",18),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().cloudNodeTemplate.remote_console_http_path=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(28,"mat-expansion-panel"),y.TgZ(29,"mat-expansion-panel-header"),y.TgZ(30,"mat-panel-title"),y._uU(31," Ethernet interfaces "),y.qZA(),y.qZA(),y.YNc(32,AI,5,1,"div",19),y.TgZ(33,"mat-form-field",14),y.TgZ(34,"mat-select",20),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().ethernetInterface=e}),y.YNc(35,ZI,2,2,"mat-option",13),y.qZA(),y.qZA(),y.TgZ(36,"button",21),y.NdJ("click",function(){return y.CHM(n),y.oxw().onAddEthernetInterface()}),y._uU(37,"Add"),y.qZA(),y.qZA(),y.TgZ(38,"mat-expansion-panel"),y.TgZ(39,"mat-expansion-panel-header"),y.TgZ(40,"mat-panel-title"),y._uU(41," TAP interfaces "),y.qZA(),y.qZA(),y.YNc(42,MI,5,1,"div",19),y.TgZ(43,"mat-form-field",7),y.TgZ(44,"input",22),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().tapInterface=e}),y.qZA(),y.qZA(),y.TgZ(45,"button",21),y.NdJ("click",function(){return y.CHM(n),y.oxw().onAddTapInterface()}),y._uU(46,"Add"),y.qZA(),y.qZA(),y.TgZ(47,"mat-expansion-panel"),y.TgZ(48,"mat-expansion-panel-header"),y.TgZ(49,"mat-panel-title"),y._uU(50," UDP tunnels "),y.qZA(),y.qZA(),y.YNc(51,BI,15,3,"table",23),y.YNc(52,jI,1,0,"br",24),y.TgZ(53,"mat-form-field",7),y.TgZ(54,"input",25),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().newPort.name=e}),y.qZA(),y.qZA(),y.TgZ(55,"mat-form-field",7),y.TgZ(56,"input",26),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().newPort.lport=e}),y.qZA(),y.qZA(),y.TgZ(57,"mat-form-field",7),y.TgZ(58,"input",27),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().newPort.rhost=e}),y.qZA(),y.qZA(),y.TgZ(59,"mat-form-field",7),y.TgZ(60,"input",28),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().newPort.rport=e}),y.qZA(),y.qZA(),y.TgZ(61,"button",21),y.NdJ("click",function(){return y.CHM(n),y.oxw().onAddUdpInterface()}),y._uU(62,"Add"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(63,"div",29),y.TgZ(64,"button",30),y.NdJ("click",function(){return y.CHM(n),y.oxw().goBack()}),y._uU(65,"Cancel"),y.qZA(),y.TgZ(66,"button",31),y.NdJ("click",function(){return y.CHM(n),y.oxw().onSave()}),y._uU(67,"Save"),y.qZA(),y._UZ(68,"br"),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(7),y.Q6J("ngModel",i.cloudNodeTemplate.name),y.xp6(2),y.Q6J("ngModel",i.cloudNodeTemplate.default_name_format),y.xp6(2),y.Q6J("ngModel",i.cloudNodeTemplate.symbol),y.xp6(6),y.Q6J("ngModel",i.cloudNodeTemplate.category),y.xp6(1),y.Q6J("ngForOf",i.categories),y.xp6(2),y.Q6J("ngModel",i.cloudNodeTemplate.console_type),y.xp6(1),y.Q6J("ngForOf",i.consoleTypes),y.xp6(2),y.Q6J("ngModel",i.cloudNodeTemplate.remote_console_host),y.xp6(2),y.Q6J("ngModel",i.cloudNodeTemplate.remote_console_port),y.xp6(2),y.Q6J("ngModel",i.cloudNodeTemplate.remote_console_http_path),y.xp6(5),y.Q6J("ngForOf",i.portsMappingEthernet),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(22,zI))("ngModel",i.ethernetInterface),y.xp6(1),y.Q6J("ngForOf",i.ethernetInterfaces),y.xp6(7),y.Q6J("ngForOf",i.portsMappingTap),y.xp6(2),y.Q6J("ngModel",i.tapInterface),y.xp6(7),y.Q6J("ngIf",i.dataSourceUdp.length),y.xp6(1),y.Q6J("ngIf",i.dataSourceUdp.length),y.xp6(2),y.Q6J("ngModel",i.newPort.name),y.xp6(2),y.Q6J("ngModel",i.newPort.lport),y.xp6(2),y.Q6J("ngModel",i.newPort.rhost),y.xp6(2),y.Q6J("ngModel",i.newPort.rport)}}function HI(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"app-symbols-menu",46),y.NdJ("symbolChangedEmitter",function(e){return y.CHM(n),y.oxw().symbolChanged(e)}),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("server",i.server)("symbol",i.cloudNodeTemplate.symbol)}}var YI=function(e){return{shadowed:e}},JI=function(){function e(e,t,n,i,r,o){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.toasterService=i,this.builtInTemplatesConfigurationService=r,this.router=o,this.isSymbolSelectionOpened=!1,this.categories=[],this.consoleTypes=[],this.tapInterface="",this.ethernetInterface="",this.ethernetInterfaces=["Ethernet 2","Ethernet 3"],this.portsMappingEthernet=[],this.portsMappingTap=[],this.portsMappingUdp=[],this.displayedColumns=["name","lport","rhost","rport"],this.dataSourceUdp=[],this.newPort={name:"",port_number:0}}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id"),n=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(t){e.server=t,e.getConfiguration(),e.builtInTemplatesService.getTemplate(e.server,n).subscribe(function(t){e.cloudNodeTemplate=t,e.portsMappingEthernet=e.cloudNodeTemplate.ports_mapping.filter(function(e){return"ethernet"===e.type}),e.portsMappingTap=e.cloudNodeTemplate.ports_mapping.filter(function(e){return"tap"===e.type}),e.portsMappingUdp=e.cloudNodeTemplate.ports_mapping.filter(function(e){return"udp"===e.type}),e.dataSourceUdp=e.portsMappingUdp})})},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","cloud-nodes"])},e.prototype.getConfiguration=function(){this.categories=this.builtInTemplatesConfigurationService.getCategoriesForCloudNodes(),this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForCloudNodes()},e.prototype.onAddEthernetInterface=function(){this.ethernetInterface&&this.portsMappingEthernet.push({interface:this.ethernetInterface,name:this.ethernetInterface,port_number:0,type:"ethernet"})},e.prototype.onAddTapInterface=function(){this.tapInterface&&this.portsMappingTap.push({interface:this.tapInterface,name:this.tapInterface,port_number:0,type:"tap"})},e.prototype.onAddUdpInterface=function(){this.portsMappingUdp.push(this.newPort),this.dataSourceUdp=(0,LO.ev)([],this.portsMappingUdp),this.newPort={name:"",port_number:0}},e.prototype.onSave=function(){var e=this;this.cloudNodeTemplate.ports_mapping=(0,LO.ev)((0,LO.ev)([],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)(y.Y36(CA),y.Y36(TM),y.Y36(XP),y.Y36(KO),y.Y36(mI),y.Y36(KZ))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Cloud configuration"),y.qZA(),y.qZA(),y.qZA(),y.YNc(5,UI,69,23,"div",4),y.qZA(),y.YNc(6,HI,1,2,"app-symbols-menu",5)),2&e&&(y.Q6J("ngClass",y.VKq(3,YI,t.isSymbolSelectionOpened)),y.xp6(5),y.Q6J("ngIf",t.cloudNodeTemplate),y.xp6(1),y.Q6J("ngIf",t.isSymbolSelectionOpened&&t.cloudNodeTemplate))},directives:[_.mk,_.O5,VE,YE,JE,WE,sE.KE,mE,st.Fj,st.JJ,st.On,cO,vE.gD,_.sg,st.wV,lt.ey,yP,wP,bP,_P,CP,kP,SP,xP,TP,AP,CI],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 GI(e,t){}var WI=function e(){(0,f.Z)(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},VI={dialogContainer:(0,ft.X$)("dialogContainer",[(0,ft.SB)("void, exit",(0,ft.oB)({opacity:0,transform:"scale(0.7)"})),(0,ft.SB)("enter",(0,ft.oB)({transform:"none"})),(0,ft.eR)("* => enter",(0,ft.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ft.oB)({transform:"none",opacity:1}))),(0,ft.eR)("* => void, * => exit",(0,ft.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,ft.oB)({opacity:0})))])},QI=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o,a,s){var l;return(0,f.Z)(this,n),(l=t.call(this))._elementRef=e,l._focusTrapFactory=i,l._changeDetectorRef=r,l._config=a,l._focusMonitor=s,l._animationStateChanged=new y.vpe,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(0,m.Z)(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=(0,w.ht)(),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=(0,w.ht)())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=(0,w.ht)();return e===t||e.contains(t)}}]),n}(wO.en);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq),y.Y36(gt.qV),y.Y36(y.sBO),y.Y36(_.K0,8),y.Y36(WI),y.Y36(gt.tE))},e.\u0275dir=y.lG2({type:e,viewQuery:function(e,t){var n;1&e&&y.Gf(wO.Pl,7),2&e&&y.iGM(n=y.CRH())&&(t._portalOutlet=n.first)},features:[y.qOj]}),e}(),XI=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){var e;return(0,f.Z)(this,n),(e=t.apply(this,arguments))._state="enter",e}return(0,m.Z)(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}(QI);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&y.WFA("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(y.Ikx("id",t._id),y.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),y.d8E("@dialogContainer",t._state))},features:[y.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&y.YNc(0,GI,0,0,"ng-template",0)},directives:[wO.Pl],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:[VI.dialogContainer]}}),e}(),KI=0,$I=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(KI++);(0,f.Z)(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new x.xQ,this._afterClosed=new x.xQ,this._beforeClosed=new x.xQ,this._state=0,n._id=r,n._animationStateChanged.pipe((0,dt.h)(function(e){return"opened"===e.state}),(0,P.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe((0,dt.h)(function(e){return"closed"===e.state}),(0,P.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe((0,dt.h)(function(e){return e.keyCode===ct.hY&&!i.disableClose&&!(0,ct.Vb)(e)})).subscribe(function(e){e.preventDefault(),eq(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():eq(i,"mouse")})}return(0,m.Z)(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe((0,dt.h)(function(e){return"closing"===e.state}),(0,P.q)(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 eq(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var tq=new y.OlP("MatDialogData"),nq=new y.OlP("mat-dialog-default-options"),iq=new y.OlP("mat-dialog-scroll-strategy"),rq={provide:iq,deps:[_e.aV],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},oq=function(){var e=function(){function e(t,n,i,r,o,a,s,l,c){var u=this;(0,f.Z)(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=l,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new x.xQ,this._afterOpenedAtThisLevel=new x.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,aT.P)(function(){return u.openDialogs.length?u._getAfterAllClosed():u._getAfterAllClosed().pipe((0,O.O)(void 0))}),this._scrollStrategy=a}return(0,m.Z)(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 WI)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new _e.X_({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=y.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:WI,useValue:t}]}),i=new wO.C5(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof y.Rgc)t.attachTemplatePortal(new wO.UE(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),a=t.attachComponentPortal(new wO.C5(e,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(N.Is,null)||r.push({provide:N.Is,useValue:{value:e.direction,change:(0,Ce.of)()}}),y.zs3.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.Y36(_e.aV),y.Y36(y.zs3),y.Y36(void 0),y.Y36(void 0),y.Y36(_e.Xj),y.Y36(void 0),y.Y36(y.DyG),y.Y36(y.DyG),y.Y36(y.OlP))},e.\u0275dir=y.lG2({type:e}),e}(),aq=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o,a,s,l){return(0,f.Z)(this,n),t.call(this,e,i,o,s,l,a,$I,XI,tq)}return n}(oq);return e.\u0275fac=function(t){return new(t||e)(y.LFG(_e.aV),y.LFG(y.zs3),y.LFG(_.Ye,8),y.LFG(nq,8),y.LFG(iq),y.LFG(e,12),y.LFG(_e.Xj))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),sq=0,lq=function(){var e=function(){function e(t,n,i){(0,f.Z)(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(sq++)}return(0,m.Z)(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)(y.Y36($I,8),y.Y36(y.SBq),y.Y36(aq))},e.\u0275dir=y.lG2({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&y.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),cq=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=y.lG2({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),uq=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=y.lG2({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}(),dq=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({providers:[aq,rq],imports:[[_e.U8,wO.eL,lt.BQ],lt.BQ]}),e}(),hq=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)(y.Y36($I),y.Y36(tq))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"h1",1),y._uU(2,"Delete template"),y.qZA(),y.TgZ(3,"div",2),y._uU(4),y.qZA(),y._UZ(5,"div",3),y.TgZ(6,"div",4),y.TgZ(7,"button",5),y.NdJ("click",function(){return t.onNoClick()}),y._uU(8,"No"),y.qZA(),y.TgZ(9,"button",6),y.NdJ("click",function(){return t.onYesClick()}),y._uU(10," Yes "),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(4),y.hij("Are you sure you want to delete template ",t.templateName,"?"))},directives:[lq,cq,uq,cO],styles:[".dialogcontainer[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.spacer[_ngcontent-%COMP%]{flex-grow:1}"]}),e}(),pq=(n(26918),function(){function e(e){this.httpServer=e,this.newTemplateCreated=new x.xQ}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.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}()),fq=function(){function e(e,t,n){this.templateService=e,this.dialog=t,this.toasterService=n,this.deleteEvent=new y.vpe}return e.prototype.deleteItem=function(e,t){var n=this;this.dialog.open(hq,{width:"300px",height:"250px",data:{templateName:e},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(i){i&&n.templateService.deleteTemplate(n.server,t).subscribe(function(i){n.deleteEvent.emit(t),n.toasterService.success("Template "+e+" deleted.")})})},e.\u0275fac=function(t){return new(t||e)(y.Y36(pq),y.Y36(aq),y.Y36(KO))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-delete-template"]],inputs:{server:"server"},outputs:{deleteEvent:"deleteEvent"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),mq=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=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"mat-card",1),y.TgZ(2,"h6",2),y._uU(3),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(3),y.hij(" ",t.emptyTemplatesListMessage," "))},directives:[oE],styles:[".header[_ngcontent-%COMP%]{text-align:center;color:#a9a9a9}"]}),e}(),gq=n(8285),vq=n(86004),yq=["mat-menu-item",""],_q=["*"];function bq(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",0),y.NdJ("keydown",function(e){return y.CHM(n),y.oxw()._handleKeydown(e)})("click",function(){return y.CHM(n),y.oxw().closed.emit("click")})("@transformMenu.start",function(e){return y.CHM(n),y.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return y.CHM(n),y.oxw()._onAnimationDone(e)}),y.TgZ(1,"div",1),y.Hsn(2),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),y.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var wq={transformMenu:(0,ft.X$)("transformMenu",[(0,ft.SB)("void",(0,ft.oB)({opacity:0,transform:"scale(0.8)"})),(0,ft.eR)("void => enter",(0,ft.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ft.oB)({opacity:1,transform:"scale(1)"}))),(0,ft.eR)("* => void",(0,ft.jt)("100ms 25ms linear",(0,ft.oB)({opacity:0})))]),fadeInItems:(0,ft.X$)("fadeInItems",[(0,ft.SB)("showing",(0,ft.oB)({opacity:1})),(0,ft.eR)("void => *",[(0,ft.oB)({opacity:0}),(0,ft.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Sq=new y.OlP("MatMenuContent"),xq=new y.OlP("MAT_MENU_PANEL"),Cq=(0,lt.Kr)((0,lt.Id)(function e(){(0,f.Z)(this,e)})),kq=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o){var a;return(0,f.Z)(this,n),(a=t.call(this))._elementRef=e,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new x.xQ,a._focused=new x.xQ,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem((0,iT.Z)(a)),a}return(0,m.Z)(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),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r<i.length;r++){var o=i[r];null===(e=o.parentNode)||void 0===e||e.removeChild(o)}return(null===(t=n.textContent)||void 0===t?void 0:t.trim())||""}}]),n}(Cq);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq),y.Y36(_.K0),y.Y36(gt.tE),y.Y36(xq,8))},e.\u0275cmp=y.Xpm({type:e,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,t){1&e&&y.NdJ("click",function(e){return t._checkDisabled(e)})("mouseenter",function(){return t._handleMouseEnter()}),2&e&&(y.uIk("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),y.ekj("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:[y.qOj],attrs:yq,ngContentSelectors:_q,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(y.F$t(),y.Hsn(0),y._UZ(1,"div",0)),2&e&&(y.xp6(1),y.Q6J("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[lt.wG],encapsulation:2,changeDetection:0}),e}(),Tq=new y.OlP("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),Aq=0,Zq=function(){var e=function(){function e(t,n,i){(0,f.Z)(this,e),this._elementRef=t,this._ngZone=n,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new y.n_E,this._tabSubscription=C.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new x.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new y.vpe,this.close=this.closed,this.panelId="mat-menu-panel-".concat(Aq++)}return(0,m.Z)(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=(0,S.Ig)(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=(0,S.Ig)(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 gt.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.closed.emit("tab")}),this._directDescendantItems.changes.pipe((0,O.O)(this._directDescendantItems),(0,q.w)(function(e){return Z.T.apply(void 0,(0,p.Z)(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((0,O.O)(this._directDescendantItems),(0,q.w)(function(e){return Z.T.apply(void 0,(0,p.Z)(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 ct.hY:(0,ct.Vb)(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case ct.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case ct.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:t!==ct.LH&&t!==ct.JH||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((0,P.q)(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t=Math.min(4+e,24),n="mat-elevation-z".concat(t),i=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[n]=!0,this._previousElevation=n)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe((0,O.O)(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)(y.Y36(y.SBq),y.Y36(y.R0b),y.Y36(Tq))},e.\u0275dir=y.lG2({type:e,contentQueries:function(e,t,n){var i;1&e&&(y.Suo(n,Sq,5),y.Suo(n,kq,5),y.Suo(n,kq,4)),2&e&&(y.iGM(i=y.CRH())&&(t.lazyContent=i.first),y.iGM(i=y.CRH())&&(t._allItems=i),y.iGM(i=y.CRH())&&(t.items=i))},viewQuery:function(e,t){var n;1&e&&y.Gf(y.Rgc,5),2&e&&y.iGM(n=y.CRH())&&(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}(),Mq=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r){return(0,f.Z)(this,n),t.call(this,e,i,r)}return n}(Zq);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq),y.Y36(y.R0b),y.Y36(Tq))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&y.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[y._Bn([{provide:xq,useExisting:e}]),y.qOj],ngContentSelectors:_q,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&&(y.F$t(),y.YNc(0,bq,3,6,"ng-template"))},directives:[_.mk],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:[wq.transformMenu,wq.fadeInItems]},changeDetection:0}),e}(),Oq=new y.OlP("mat-menu-scroll-strategy"),Eq={provide:Oq,deps:[_e.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Pq=(0,w.i$)({passive:!0}),Iq=function(){var e=function(){function e(t,n,i,r,o,a,s,l){var c=this;(0,f.Z)(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=s,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=C.w.EMPTY,this._hoverSubscription=C.w.EMPTY,this._menuCloseSubscription=C.w.EMPTY,this._handleTouchStart=function(e){(0,gt.yG)(e)||(c._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new y.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new y.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof Zq?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,Pq),a&&(a._triggersSubmenu=this.triggersSubmenu())}return(0,m.Z)(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,Pq),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 Zq&&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:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{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 Zq?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe((0,dt.h)(function(e){return"void"===e.toState}),(0,P.q)(1),(0,M.R)(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 _e.X_({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=(0,s.Z)("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=(0,s.Z)("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],l=o,c=a,u=n,d=i,h=0;this.triggersSubmenu()?(d=n="before"===this.menu.xPosition?"start":"end",i=u="end"===n?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(l="top"===o?"bottom":"top",c="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:l,overlayX:u,overlayY:o,offsetY:h},{originX:i,originY:l,overlayX:d,overlayY:o,offsetY:h},{originX:n,originY:c,overlayX:u,overlayY:a,offsetY:-h},{originX:i,originY:c,overlayX:d,overlayY:a,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Ce.of)(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,dt.h)(function(t){return t!==e._menuItemInstance}),(0,dt.h)(function(){return e._menuOpen})):(0,Ce.of)();return(0,Z.T)(t,i,r,n)}},{key:"_handleMousedown",value:function(e){(0,gt.X6)(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;t!==ct.K5&&t!==ct.L_||(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===ct.SV&&"ltr"===this.dir||t===ct.oh&&"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((0,dt.h)(function(t){return t===e._menuItemInstance&&!t.disabled}),(0,vq.g)(0,gq.E)).subscribe(function(){e._openedBy="mouse",e.menu instanceof Zq&&e.menu._isAnimating?e.menu._animationDone.pipe((0,P.q)(1),(0,vq.g)(0,gq.E),(0,M.R)(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 wO.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.Y36(_e.aV),y.Y36(y.SBq),y.Y36(y.s_b),y.Y36(Oq),y.Y36(xq,8),y.Y36(kq,10),y.Y36(N.Is,8),y.Y36(gt.tE))},e.\u0275dir=y.lG2({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&y.NdJ("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&y.uIk("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}(),qq=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({providers:[Eq],imports:[lt.BQ]}),e}(),Nq=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({providers:[Eq],imports:[[_.ez,lt.BQ,lt.si,_e.U8,qq],b.ZD,lt.BQ,qq]}),e}();function Dq(e,t){if(1&e&&(y.TgZ(0,"button",10),y._uU(1," Back "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences/builtin")}}function Rq(e,t){if(1&e&&(y.TgZ(0,"button",11),y._uU(1," Add cloud node template "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences/builtin/cloud-nodes/addtemplate")}}function Lq(e,t){1&e&&y._UZ(0,"app-empty-templates-list")}function Fq(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",15),y.TgZ(1,"mat-list-item",16),y._uU(2),y.qZA(),y.TgZ(3,"button",17),y.TgZ(4,"mat-icon"),y._uU(5,"more_vert"),y.qZA(),y.qZA(),y.TgZ(6,"mat-menu",null,18),y.TgZ(8,"button",19),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(3).deleteTemplate(e)}),y.TgZ(9,"mat-icon"),y._uU(10,"delete"),y.qZA(),y.TgZ(11,"span"),y._uU(12,"Delete"),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=t.$implicit,r=y.MAs(7);y.xp6(1),y.s9C("routerLink",i.template_id),y.xp6(1),y.Oqu(i.name),y.xp6(1),y.Q6J("matMenuTriggerFor",r)}}function Bq(e,t){if(1&e&&(y.TgZ(0,"mat-nav-list"),y.YNc(1,Fq,13,3,"div",14),y.qZA()),2&e){var n=y.oxw(2);y.xp6(1),y.Q6J("ngForOf",n.cloudNodesTemplates)}}function jq(e,t){if(1&e&&(y.TgZ(0,"div",12),y.TgZ(1,"div",13),y.YNc(2,Bq,2,1,"mat-nav-list",6),y.qZA(),y.qZA()),2&e){var n=y.oxw();y.xp6(2),y.Q6J("ngIf",n.server)}}var zq=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)(y.Y36(CA),y.Y36(TM),y.Y36(XP))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-cloud-nodes-templates"]],viewQuery:function(e,t){var n;1&e&&y.Gf(fq,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Cloud nodes templates"),y.qZA(),y.YNc(5,Dq,2,1,"button",4),y.YNc(6,Rq,2,1,"button",5),y.qZA(),y.qZA(),y.YNc(7,Lq,1,0,"app-empty-templates-list",6),y.YNc(8,jq,3,1,"div",7),y.qZA(),y.TgZ(9,"app-delete-template",8,9),y.NdJ("deleteEvent",function(){return t.onDeleteEvent()}),y.qZA()),2&e&&(y.xp6(5),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",!t.cloudNodesTemplates.length),y.xp6(1),y.Q6J("ngIf",t.cloudNodesTemplates.length),y.xp6(1),y.Q6J("server",t.server))},directives:[_.O5,fq,cO,eM,mq,aP,_.sg,uP,Iq,nO,Mq,kq],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}(),Uq=function(){function e(e,t,n,i,r,o,a,s){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.router=i,this.toasterService=r,this.templateMocksService=o,this.formBuilder=a,this.computeService=s,this.templateName="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new st.NI("",st.kI.required),numberOfPorts:new st.NI(8,st.kI.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=(0,QP.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)(y.Y36(CA),y.Y36(TM),y.Y36(XP),y.Y36(KZ),y.Y36(KO),y.Y36(KP),y.Y36(st.qu),y.Y36($P.X))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"New Ethernet hub template"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"mat-card",5),y.TgZ(7,"mat-radio-group",6),y.TgZ(8,"mat-radio-button",7),y.NdJ("click",function(){return t.setServerType("local")}),y._uU(9,"Run the Ethernet Hub locally"),y.qZA(),y.TgZ(10,"mat-radio-button",8),y.NdJ("click",function(){return t.setServerType("gns3 vm")}),y._uU(11,"Run the Ethernet Hub on the GNS3 VM"),y.qZA(),y.qZA(),y.TgZ(12,"form",9),y.TgZ(13,"mat-form-field",10),y._UZ(14,"input",11),y.qZA(),y.TgZ(15,"mat-form-field",10),y._UZ(16,"input",12),y.qZA(),y.qZA(),y.qZA(),y.TgZ(17,"div",13),y.TgZ(18,"button",14),y.NdJ("click",function(){return t.goBack()}),y._uU(19,"Cancel"),y.qZA(),y.TgZ(20,"button",15),y.NdJ("click",function(){return t.addTemplate()}),y._uU(21,"Add template"),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(10),y.Q6J("disabled",!t.isGns3VmAvailable),y.xp6(2),y.Q6J("formGroup",t.formGroup))},directives:[oE,cI,hI,st._Y,st.JL,st.sg,sE.KE,st.Fj,mE,st.JJ,st.u,st.wV,cO],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 Hq(e,t){if(1&e&&(y.TgZ(0,"mat-option",19),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}var Yq=function(){return{standalone:!0}};function Jq(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",6),y.TgZ(1,"mat-card"),y.TgZ(2,"form",7),y.TgZ(3,"mat-form-field",8),y.TgZ(4,"input",9),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().ethernetHubTemplate.name=e}),y.qZA(),y.qZA(),y.TgZ(5,"mat-form-field",8),y.TgZ(6,"input",10),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().ethernetHubTemplate.default_name_format=e}),y.qZA(),y.qZA(),y.TgZ(7,"mat-form-field",8),y.TgZ(8,"input",11),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().ethernetHubTemplate.symbol=e}),y.qZA(),y.qZA(),y.TgZ(9,"button",12),y.NdJ("click",function(){return y.CHM(n),y.oxw().chooseSymbol()}),y._uU(10,"Choose symbol"),y.qZA(),y._UZ(11,"br"),y._UZ(12,"br"),y.TgZ(13,"mat-form-field",8),y.TgZ(14,"mat-select",13),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().ethernetHubTemplate.category=e}),y.YNc(15,Hq,2,2,"mat-option",14),y.qZA(),y.qZA(),y.TgZ(16,"mat-form-field",8),y.TgZ(17,"input",15),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().numberOfPorts=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(18,"div",16),y.TgZ(19,"button",17),y.NdJ("click",function(){return y.CHM(n),y.oxw().goBack()}),y._uU(20,"Cancel"),y.qZA(),y.TgZ(21,"button",18),y.NdJ("click",function(){return y.CHM(n),y.oxw().onSave()}),y._uU(22,"Save"),y.qZA(),y._UZ(23,"br"),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(2),y.Q6J("formGroup",i.inputForm),y.xp6(2),y.Q6J("ngModel",i.ethernetHubTemplate.name),y.xp6(2),y.Q6J("ngModel",i.ethernetHubTemplate.default_name_format),y.xp6(2),y.Q6J("ngModel",i.ethernetHubTemplate.symbol),y.xp6(6),y.Q6J("ngModelOptions",y.DdM(9,Yq))("ngModel",i.ethernetHubTemplate.category),y.xp6(1),y.Q6J("ngForOf",i.categories),y.xp6(2),y.Q6J("ngModel",i.numberOfPorts)("ngModelOptions",y.DdM(10,Yq))}}function Gq(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"app-symbols-menu",20),y.NdJ("symbolChangedEmitter",function(e){return y.CHM(n),y.oxw().symbolChanged(e)}),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("server",i.server)("symbol",i.ethernetHubTemplate.symbol)}}var Wq=function(e){return{shadowed:e}},Vq=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.toasterService=i,this.formBuilder=r,this.builtInTemplatesConfigurationService=o,this.router=a,this.isSymbolSelectionOpened=!1,this.categories=[],this.inputForm=this.formBuilder.group({templateName:new st.NI("",st.kI.required),defaultName:new st.NI("",st.kI.required),symbol:new st.NI("",st.kI.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)(y.Y36(CA),y.Y36(TM),y.Y36(XP),y.Y36(KO),y.Y36(st.qu),y.Y36(mI),y.Y36(KZ))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Ethernet hub settings"),y.qZA(),y.qZA(),y.qZA(),y.YNc(5,Jq,24,11,"div",4),y.qZA(),y.YNc(6,Gq,1,2,"app-symbols-menu",5)),2&e&&(y.Q6J("ngClass",y.VKq(3,Wq,t.isSymbolSelectionOpened)),y.xp6(5),y.Q6J("ngIf",t.ethernetHubTemplate),y.xp6(1),y.Q6J("ngIf",t.isSymbolSelectionOpened&&t.ethernetHubTemplate))},directives:[_.mk,_.O5,oE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,cO,vE.gD,st.On,_.sg,st.wV,lt.ey,CI],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 Qq(e,t){if(1&e&&(y.TgZ(0,"button",10),y._uU(1," Back "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences/builtin")}}function Xq(e,t){if(1&e&&(y.TgZ(0,"button",11),y._uU(1," Add Ethernet hub template "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences/builtin/ethernet-hubs/addtemplate")}}function Kq(e,t){1&e&&y._UZ(0,"app-empty-templates-list")}function $q(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",15),y.TgZ(1,"mat-list-item",16),y._uU(2),y.qZA(),y.TgZ(3,"button",17),y.TgZ(4,"mat-icon"),y._uU(5,"more_vert"),y.qZA(),y.qZA(),y.TgZ(6,"mat-menu",null,18),y.TgZ(8,"button",19),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(3).deleteTemplate(e)}),y.TgZ(9,"mat-icon"),y._uU(10,"delete"),y.qZA(),y.TgZ(11,"span"),y._uU(12,"Delete"),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=t.$implicit,r=y.MAs(7);y.xp6(1),y.s9C("routerLink",i.template_id),y.xp6(1),y.Oqu(i.name),y.xp6(1),y.Q6J("matMenuTriggerFor",r)}}function eN(e,t){if(1&e&&(y.TgZ(0,"mat-nav-list"),y.YNc(1,$q,13,3,"div",14),y.qZA()),2&e){var n=y.oxw(2);y.xp6(1),y.Q6J("ngForOf",n.ethernetHubsTemplates)}}function tN(e,t){if(1&e&&(y.TgZ(0,"div",12),y.TgZ(1,"div",13),y.YNc(2,eN,2,1,"mat-nav-list",6),y.qZA(),y.qZA()),2&e){var n=y.oxw();y.xp6(2),y.Q6J("ngIf",n.server)}}var nN=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)(y.Y36(CA),y.Y36(TM),y.Y36(XP))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-ethernet-hubs-templates"]],viewQuery:function(e,t){var n;1&e&&y.Gf(fq,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Ethernet hubs templates"),y.qZA(),y.YNc(5,Qq,2,1,"button",4),y.YNc(6,Xq,2,1,"button",5),y.qZA(),y.qZA(),y.YNc(7,Kq,1,0,"app-empty-templates-list",6),y.YNc(8,tN,3,1,"div",7),y.qZA(),y.TgZ(9,"app-delete-template",8,9),y.NdJ("deleteEvent",function(){return t.onDeleteEvent()}),y.qZA()),2&e&&(y.xp6(5),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",!t.ethernetHubsTemplates.length),y.xp6(1),y.Q6J("ngIf",t.ethernetHubsTemplates.length),y.xp6(1),y.Q6J("server",t.server))},directives:[_.O5,fq,cO,eM,mq,aP,_.sg,uP,Iq,nO,Mq,kq],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}(),iN=function(){function e(e,t,n,i,r,o,a,s){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.router=i,this.toasterService=r,this.templateMocksService=o,this.formBuilder=a,this.computeService=s,this.templateName="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new st.NI("",st.kI.required),numberOfPorts:new st.NI(8,st.kI.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=(0,QP.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)(y.Y36(CA),y.Y36(TM),y.Y36(XP),y.Y36(KZ),y.Y36(KO),y.Y36(KP),y.Y36(st.qu),y.Y36($P.X))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"New Ethernet switch template"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"mat-card",5),y.TgZ(7,"mat-radio-group",6),y.TgZ(8,"mat-radio-button",7),y.NdJ("click",function(){return t.setServerType("local")}),y._uU(9,"Run the Ethernet switch locally"),y.qZA(),y.TgZ(10,"mat-radio-button",8),y.NdJ("click",function(){return t.setServerType("gns3 vm")}),y._uU(11,"Run the Ethernet switch on the GNS3 VM"),y.qZA(),y.qZA(),y.TgZ(12,"form",9),y.TgZ(13,"mat-form-field",10),y._UZ(14,"input",11),y.qZA(),y.TgZ(15,"mat-form-field",10),y._UZ(16,"input",12),y.qZA(),y.qZA(),y.qZA(),y.TgZ(17,"div",13),y.TgZ(18,"button",14),y.NdJ("click",function(){return t.goBack()}),y._uU(19,"Cancel"),y.qZA(),y.TgZ(20,"button",15),y.NdJ("click",function(){return t.addTemplate()}),y._uU(21,"Add template"),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(10),y.Q6J("disabled",!t.isGns3VmAvailable),y.xp6(2),y.Q6J("formGroup",t.formGroup))},directives:[oE,cI,hI,st._Y,st.JL,st.sg,sE.KE,st.Fj,mE,st.JJ,st.u,st.wV,cO],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 rN(e,t){1&e&&(y.TgZ(0,"th",18),y._uU(1,"Port number"),y.qZA())}function oN(e,t){if(1&e&&(y.TgZ(0,"td",19),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.port_number)}}function aN(e,t){1&e&&(y.TgZ(0,"th",18),y._uU(1,"VLAN"),y.qZA())}function sN(e,t){if(1&e&&(y.TgZ(0,"td",19),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.vlan)}}function lN(e,t){1&e&&(y.TgZ(0,"th",18),y._uU(1,"Type"),y.qZA())}function cN(e,t){if(1&e&&(y.TgZ(0,"td",19),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.type)}}function uN(e,t){1&e&&(y.TgZ(0,"th",18),y._uU(1,"EtherType"),y.qZA())}function dN(e,t){if(1&e&&(y.TgZ(0,"td",19),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.ethertype)}}function hN(e,t){1&e&&(y.TgZ(0,"th",18),y._uU(1,"Actions"),y.qZA())}function pN(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"td",19),y.TgZ(1,"button",20),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw().delete(e)}),y.TgZ(2,"mat-icon",21),y._uU(3,"delete"),y.qZA(),y.qZA(),y.qZA()}}function fN(e,t){1&e&&y._UZ(0,"tr",22)}function mN(e,t){1&e&&y._UZ(0,"tr",23)}function gN(e,t){if(1&e&&(y.TgZ(0,"mat-option",24),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function vN(e,t){if(1&e&&(y.TgZ(0,"mat-option",24),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}var yN=function(){return{standalone:!0}},_N=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)(y.Y36(mI))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"table",0),y.ynx(1,1),y.YNc(2,rN,2,0,"th",2),y.YNc(3,oN,2,1,"td",3),y.BQk(),y.ynx(4,4),y.YNc(5,aN,2,0,"th",2),y.YNc(6,sN,2,1,"td",3),y.BQk(),y.ynx(7,5),y.YNc(8,lN,2,0,"th",2),y.YNc(9,cN,2,1,"td",3),y.BQk(),y.ynx(10,6),y.YNc(11,uN,2,0,"th",2),y.YNc(12,dN,2,1,"td",3),y.BQk(),y.ynx(13,7),y.YNc(14,hN,2,0,"th",2),y.YNc(15,pN,4,0,"td",3),y.BQk(),y.YNc(16,fN,1,0,"tr",8),y.YNc(17,mN,1,0,"tr",9),y.qZA(),y._UZ(18,"br"),y.TgZ(19,"mat-form-field",10),y.TgZ(20,"input",11),y.NdJ("ngModelChange",function(e){return t.newPort.port_number=e}),y.qZA(),y.qZA(),y.TgZ(21,"mat-form-field",10),y.TgZ(22,"input",12),y.NdJ("ngModelChange",function(e){return t.newPort.vlan=e}),y.qZA(),y.qZA(),y.TgZ(23,"mat-form-field",13),y.TgZ(24,"mat-select",14),y.NdJ("ngModelChange",function(e){return t.newPort.type=e}),y.YNc(25,gN,2,2,"mat-option",15),y.qZA(),y.qZA(),y.TgZ(26,"mat-form-field",13),y.TgZ(27,"mat-select",16),y.NdJ("ngModelChange",function(e){return t.newPort.ethertype=e}),y.YNc(28,vN,2,2,"mat-option",15),y.qZA(),y.qZA(),y.TgZ(29,"button",17),y.NdJ("click",function(){return t.onAdd()}),y._uU(30,"Add"),y.qZA()),2&e&&(y.Q6J("dataSource",t.ethernetPorts),y.xp6(16),y.Q6J("matHeaderRowDef",t.displayedColumns),y.xp6(1),y.Q6J("matRowDefColumns",t.displayedColumns),y.xp6(3),y.Q6J("ngModel",t.newPort.port_number),y.xp6(2),y.Q6J("ngModel",t.newPort.vlan),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(11,yN))("ngModel",t.newPort.type),y.xp6(1),y.Q6J("ngForOf",t.portTypes),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(12,yN))("ngModel",t.newPort.ethertype),y.xp6(1),y.Q6J("ngForOf",t.etherTypes))},directives:[yP,wP,bP,_P,CP,kP,sE.KE,mE,st.wV,st.Fj,st.JJ,st.On,vE.gD,_.sg,cO,SP,xP,MO,nO,TP,AP,lt.ey],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 bN(e,t){if(1&e&&(y.TgZ(0,"mat-option",22),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}function wN(e,t){if(1&e&&(y.TgZ(0,"mat-option",22),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}var SN=function(){return{standalone:!0}};function xN(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",6),y.TgZ(1,"mat-accordion"),y.TgZ(2,"mat-expansion-panel"),y.TgZ(3,"mat-expansion-panel-header"),y.TgZ(4,"mat-panel-title"),y._uU(5," General settings "),y.qZA(),y.qZA(),y.TgZ(6,"form",7),y.TgZ(7,"mat-form-field",8),y.TgZ(8,"input",9),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().ethernetSwitchTemplate.name=e}),y.qZA(),y.qZA(),y.TgZ(9,"mat-form-field",8),y.TgZ(10,"input",10),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().ethernetSwitchTemplate.default_name_format=e}),y.qZA(),y.qZA(),y.TgZ(11,"mat-form-field",8),y.TgZ(12,"input",11),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().ethernetSwitchTemplate.symbol=e}),y.qZA(),y.qZA(),y.TgZ(13,"button",12),y.NdJ("click",function(){return y.CHM(n),y.oxw().chooseSymbol()}),y._uU(14,"Choose symbol"),y.qZA(),y._UZ(15,"br"),y._UZ(16,"br"),y.TgZ(17,"mat-form-field",8),y.TgZ(18,"mat-select",13),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().ethernetSwitchTemplate.category=e}),y.YNc(19,bN,2,2,"mat-option",14),y.qZA(),y.qZA(),y.TgZ(20,"mat-form-field",15),y.TgZ(21,"mat-select",16),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().ethernetSwitchTemplate.console_type=e}),y.YNc(22,wN,2,2,"mat-option",14),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(23,"mat-expansion-panel"),y.TgZ(24,"mat-expansion-panel-header"),y.TgZ(25,"mat-panel-title"),y._uU(26," Port settings "),y.qZA(),y.qZA(),y._UZ(27,"app-ports",17,18),y.qZA(),y.qZA(),y.TgZ(29,"div",19),y.TgZ(30,"button",20),y.NdJ("click",function(){return y.CHM(n),y.oxw().goBack()}),y._uU(31,"Cancel"),y.qZA(),y.TgZ(32,"button",21),y.NdJ("click",function(){return y.CHM(n),y.oxw().onSave()}),y._uU(33,"Save"),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(6),y.Q6J("formGroup",i.inputForm),y.xp6(2),y.Q6J("ngModel",i.ethernetSwitchTemplate.name),y.xp6(2),y.Q6J("ngModel",i.ethernetSwitchTemplate.default_name_format),y.xp6(2),y.Q6J("ngModel",i.ethernetSwitchTemplate.symbol),y.xp6(6),y.Q6J("ngModelOptions",y.DdM(11,SN))("ngModel",i.ethernetSwitchTemplate.category),y.xp6(1),y.Q6J("ngForOf",i.categories),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(12,SN))("ngModel",i.ethernetSwitchTemplate.console_type),y.xp6(1),y.Q6J("ngForOf",i.consoleTypes),y.xp6(5),y.Q6J("ethernetPorts",i.ethernetSwitchTemplate.ports_mapping)}}function CN(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"app-symbols-menu",23),y.NdJ("symbolChangedEmitter",function(e){return y.CHM(n),y.oxw().symbolChanged(e)}),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("server",i.server)("symbol",i.ethernetSwitchTemplate.symbol)}}var kN=function(e){return{shadowed:e}},TN=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.builtInTemplatesService=n,this.toasterService=i,this.formBuilder=r,this.builtInTemplatesConfigurationService=o,this.router=a,this.isSymbolSelectionOpened=!1,this.categories=[],this.consoleTypes=[],this.inputForm=this.formBuilder.group({templateName:new st.NI("",st.kI.required),defaultName:new st.NI("",st.kI.required),symbol:new st.NI("",st.kI.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)(y.Y36(CA),y.Y36(TM),y.Y36(XP),y.Y36(KO),y.Y36(st.qu),y.Y36(mI),y.Y36(KZ))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-ethernet-switches-template-details"]],viewQuery:function(e,t){var n;1&e&&y.Gf(_N,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Ethernet switch configuration"),y.qZA(),y.qZA(),y.qZA(),y.YNc(5,xN,34,13,"div",4),y.qZA(),y.YNc(6,CN,1,2,"app-symbols-menu",5)),2&e&&(y.Q6J("ngClass",y.VKq(3,kN,t.isSymbolSelectionOpened)),y.xp6(5),y.Q6J("ngIf",t.ethernetSwitchTemplate),y.xp6(1),y.Q6J("ngIf",t.isSymbolSelectionOpened&&t.ethernetSwitchTemplate))},directives:[_.mk,_.O5,VE,YE,JE,WE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,cO,vE.gD,st.On,_.sg,_N,lt.ey,CI],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 AN(e,t){if(1&e&&(y.TgZ(0,"button",10),y._uU(1," Back "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences/builtin")}}function ZN(e,t){if(1&e&&(y.TgZ(0,"button",11),y._uU(1," Add Ethernet switch template "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences/builtin/ethernet-switches/addtemplate")}}function MN(e,t){1&e&&y._UZ(0,"app-empty-templates-list")}function ON(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",15),y.TgZ(1,"mat-list-item",16),y._uU(2),y.qZA(),y.TgZ(3,"button",17),y.TgZ(4,"mat-icon"),y._uU(5,"more_vert"),y.qZA(),y.qZA(),y.TgZ(6,"mat-menu",null,18),y.TgZ(8,"button",19),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(3).deleteTemplate(e)}),y.TgZ(9,"mat-icon"),y._uU(10,"delete"),y.qZA(),y.TgZ(11,"span"),y._uU(12,"Delete"),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=t.$implicit,r=y.MAs(7);y.xp6(1),y.s9C("routerLink",i.template_id),y.xp6(1),y.Oqu(i.name),y.xp6(1),y.Q6J("matMenuTriggerFor",r)}}function EN(e,t){if(1&e&&(y.TgZ(0,"mat-nav-list"),y.YNc(1,ON,13,3,"div",14),y.qZA()),2&e){var n=y.oxw(2);y.xp6(1),y.Q6J("ngForOf",n.ethernetSwitchesTemplates)}}function PN(e,t){if(1&e&&(y.TgZ(0,"div",12),y.TgZ(1,"div",13),y.YNc(2,EN,2,1,"mat-nav-list",6),y.qZA(),y.qZA()),2&e){var n=y.oxw();y.xp6(2),y.Q6J("ngIf",n.server)}}var IN=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)(y.Y36(CA),y.Y36(TM),y.Y36(XP))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-ethernet-switches-templates"]],viewQuery:function(e,t){var n;1&e&&y.Gf(fq,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Ethernet switches templates"),y.qZA(),y.YNc(5,AN,2,1,"button",4),y.YNc(6,ZN,2,1,"button",5),y.qZA(),y.qZA(),y.YNc(7,MN,1,0,"app-empty-templates-list",6),y.YNc(8,PN,3,1,"div",7),y.qZA(),y.TgZ(9,"app-delete-template",8,9),y.NdJ("deleteEvent",function(){return t.onDeleteEvent()}),y.qZA()),2&e&&(y.xp6(5),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",!t.ethernetSwitchesTemplates.length),y.xp6(1),y.Q6J("ngIf",t.ethernetSwitchesTemplates.length),y.xp6(1),y.Q6J("server",t.server))},directives:[_.O5,fq,cO,eM,mq,aP,_.sg,uP,Iq,nO,Mq,kq],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}(),qN=function(){return function(){}}(),NN=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.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),DN=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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function RN(e,t){1&e&&y.Hsn(0)}var LN=["*"],FN=function(){var e=function(){function e(t){(0,f.Z)(this,e),this._elementRef=t}return(0,m.Z)(e,[{key:"focus",value:function(){this._elementRef.nativeElement.focus()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq))},e.\u0275dir=y.lG2({type:e,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),e}(),BN=function(){var e=function e(t){(0,f.Z)(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.Rgc))},e.\u0275dir=y.lG2({type:e,selectors:[["","cdkStepLabel",""]]}),e}(),jN=0,zN="number",UN="edit",HN="done",YN="error",JN=new y.OlP("STEPPER_GLOBAL_OPTIONS"),GN=function(){var e=function(){function e(t,n){(0,f.Z)(this,e),this._stepper=t,this.interacted=!1,this.interactedStream=new y.vpe,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(0,m.Z)(e,[{key:"editable",get:function(){return this._editable},set:function(e){this._editable=(0,S.Ig)(e)}},{key:"optional",get:function(){return this._optional},set:function(e){this._optional=(0,S.Ig)(e)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(e){this._completedOverride=(0,S.Ig)(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=(0,S.Ig)(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()}},{key:"_markAsInteracted",value:function(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.Y36((0,y.Gpc)(function(){return WN})),y.Y36(JN,8))},e.\u0275cmp=y.Xpm({type:e,selectors:[["cdk-step"]],contentQueries:function(e,t,n){var i;1&e&&y.Suo(n,BN,5),2&e&&y.iGM(i=y.CRH())&&(t.stepLabel=i.first)},viewQuery:function(e,t){var n;1&e&&y.Gf(y.Rgc,7),2&e&&y.iGM(n=y.CRH())&&(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"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[y.TTD],ngContentSelectors:LN,decls:1,vars:0,template:function(e,t){1&e&&(y.F$t(),y.YNc(0,RN,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e}(),WN=function(){var e=function(){function e(t,n,i,r){(0,f.Z)(this,e),this._dir=t,this._changeDetectorRef=n,this._elementRef=i,this._destroyed=new x.xQ,this.steps=new y.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new y.vpe,this._orientation="horizontal",this._groupId=jN++,this._document=r}return(0,m.Z)(e,[{key:"linear",get:function(){return this._linear},set:function(e){this._linear=(0,S.Ig)(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){var t,n=(0,S.su)(e);this.steps&&this._steps?(this._isValidIndex(e),null===(t=this.selected)||void 0===t||t._markAsInteracted(),this._selectedIndex!==n&&!this._anyControlsInvalidOrPending(n)&&(n>=this._selectedIndex||this.steps.toArray()[n].editable)&&this._updateSelectedItemIndex(e)):this._selectedIndex=n}},{key:"selected",get:function(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0},set:function(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}},{key:"orientation",get:function(){return this._orientation},set:function(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._steps.changes.pipe((0,O.O)(this._steps),(0,M.R)(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 gt.Em(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,Ce.of)()).pipe((0,O.O)(this._layoutDirection()),(0,M.R)(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]:zN,n=this.steps.toArray()[e],i=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,i):this._getGuidelineLogic(n,i,t)}},{key:"_getDefaultIndicatorLogic",value:function(e,t){return e._showError&&e.hasError&&!t?YN:!e.completed||t?zN:e.editable?UN:HN}},{key:"_getGuidelineLogic",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:zN;return e._showError&&e.hasError&&!t?YN:e.completed&&!t?HN:e.completed&&t?n:e.editable&&t?UN: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=(0,ct.Vb)(e),n=e.keyCode,i=this._keyManager;null==i.activeItemIndex||t||n!==ct.L_&&n!==ct.K5?i.onKeydown(e):(this.selectedIndex=i.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(){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)(y.Y36(N.Is,8),y.Y36(y.sBO),y.Y36(y.SBq),y.Y36(_.K0))},e.\u0275dir=y.lG2({type:e,selectors:[["","cdkStepper",""]],contentQueries:function(e,t,n){var i;1&e&&(y.Suo(n,GN,5),y.Suo(n,FN,5)),2&e&&(y.iGM(i=y.CRH())&&(t._steps=i),y.iGM(i=y.CRH())&&(t._stepHeader=i))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),e}(),VN=function(){var e=function(){function e(t){(0,f.Z)(this,e),this._stepper=t,this.type="submit"}return(0,m.Z)(e,[{key:"_handleClick",value:function(){this._stepper.next()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.Y36(WN))},e.\u0275dir=y.lG2({type:e,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&y.NdJ("click",function(){return t._handleClick()}),2&e&&y.Ikx("type",t.type)},inputs:{type:"type"}}),e}(),QN=function(){var e=function(){function e(t){(0,f.Z)(this,e),this._stepper=t,this.type="button"}return(0,m.Z)(e,[{key:"_handleClick",value:function(){this._stepper.previous()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.Y36(WN))},e.\u0275dir=y.lG2({type:e,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&y.NdJ("click",function(){return t._handleClick()}),2&e&&y.Ikx("type",t.type)},inputs:{type:"type"}}),e}(),XN=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[N.vT]]}),e}();function KN(e,t){if(1&e&&y.GkF(0,8),2&e){var n=y.oxw();y.Q6J("ngTemplateOutlet",n.iconOverrides[n.state])("ngTemplateOutletContext",n._getIconContext())}}function $N(e,t){if(1&e&&(y.TgZ(0,"span"),y._uU(1),y.qZA()),2&e){var n=y.oxw(2);y.xp6(1),y.Oqu(n._getDefaultTextForState(n.state))}}function eD(e,t){if(1&e&&(y.TgZ(0,"mat-icon"),y._uU(1),y.qZA()),2&e){var n=y.oxw(2);y.xp6(1),y.Oqu(n._getDefaultTextForState(n.state))}}function tD(e,t){if(1&e&&(y.ynx(0,9),y.YNc(1,$N,2,1,"span",10),y.YNc(2,eD,2,1,"mat-icon",11),y.BQk()),2&e){var n=y.oxw();y.Q6J("ngSwitch",n.state),y.xp6(1),y.Q6J("ngSwitchCase","number")}}function nD(e,t){if(1&e&&(y.TgZ(0,"div",12),y.GkF(1,13),y.qZA()),2&e){var n=y.oxw();y.xp6(1),y.Q6J("ngTemplateOutlet",n._templateLabel().template)}}function iD(e,t){if(1&e&&(y.TgZ(0,"div",12),y._uU(1),y.qZA()),2&e){var n=y.oxw();y.xp6(1),y.Oqu(n.label)}}function rD(e,t){if(1&e&&(y.TgZ(0,"div",14),y._uU(1),y.qZA()),2&e){var n=y.oxw();y.xp6(1),y.Oqu(n._intl.optionalLabel)}}function oD(e,t){if(1&e&&(y.TgZ(0,"div",15),y._uU(1),y.qZA()),2&e){var n=y.oxw();y.xp6(1),y.Oqu(n.errorMessage)}}function aD(e,t){}function sD(e,t){if(1&e&&(y.Hsn(0),y.YNc(1,aD,0,0,"ng-template",0)),2&e){var n=y.oxw();y.xp6(1),y.Q6J("cdkPortalOutlet",n._portal)}}var lD=["*"];function cD(e,t){1&e&&y._UZ(0,"div",9)}var uD=function(e,t){return{step:e,i:t}};function dD(e,t){if(1&e&&(y.ynx(0),y.GkF(1,7),y.YNc(2,cD,1,0,"div",8),y.BQk()),2&e){var n=t.$implicit,i=t.index,r=t.last;y.oxw(2);var o=y.MAs(4);y.xp6(1),y.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",y.WLB(3,uD,n,i)),y.xp6(1),y.Q6J("ngIf",!r)}}function hD(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",10),y.NdJ("@horizontalStepTransition.done",function(e){return y.CHM(n),y.oxw(2)._animationDone.next(e)}),y.GkF(1,11),y.qZA()}if(2&e){var i=t.$implicit,r=t.index,o=y.oxw(2);y.Q6J("@horizontalStepTransition",o._getAnimationDirection(r))("id",o._getStepContentId(r)),y.uIk("aria-labelledby",o._getStepLabelId(r))("aria-expanded",o.selectedIndex===r),y.xp6(1),y.Q6J("ngTemplateOutlet",i.content)}}function pD(e,t){if(1&e&&(y.ynx(0),y.TgZ(1,"div",3),y.YNc(2,dD,3,6,"ng-container",4),y.qZA(),y.TgZ(3,"div",5),y.YNc(4,hD,2,5,"div",6),y.qZA(),y.BQk()),2&e){var n=y.oxw();y.xp6(2),y.Q6J("ngForOf",n.steps),y.xp6(2),y.Q6J("ngForOf",n.steps)}}function fD(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",13),y.GkF(1,7),y.TgZ(2,"div",14),y.TgZ(3,"div",15),y.NdJ("@verticalStepTransition.done",function(e){return y.CHM(n),y.oxw(2)._animationDone.next(e)}),y.TgZ(4,"div",16),y.GkF(5,11),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=t.$implicit,r=t.index,o=t.last,a=y.oxw(2),s=y.MAs(4);y.xp6(1),y.Q6J("ngTemplateOutlet",s)("ngTemplateOutletContext",y.WLB(9,uD,i,r)),y.xp6(1),y.ekj("mat-stepper-vertical-line",!o),y.xp6(1),y.Q6J("@verticalStepTransition",a._getAnimationDirection(r))("id",a._getStepContentId(r)),y.uIk("aria-labelledby",a._getStepLabelId(r))("aria-expanded",a.selectedIndex===r),y.xp6(2),y.Q6J("ngTemplateOutlet",i.content)}}function mD(e,t){if(1&e&&(y.ynx(0),y.YNc(1,fD,6,12,"div",12),y.BQk()),2&e){var n=y.oxw();y.xp6(1),y.Q6J("ngForOf",n.steps)}}function gD(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-step-header",17),y.NdJ("click",function(){return t.step.select()})("keydown",function(e){return y.CHM(n),y.oxw()._onKeydown(e)}),y.qZA()}if(2&e){var i=t.step,r=t.i,o=y.oxw();y.ekj("mat-horizontal-stepper-header","horizontal"===o.orientation)("mat-vertical-stepper-header","vertical"===o.orientation),y.Q6J("tabIndex",o._getFocusIndex()===r?0:-1)("id",o._getStepLabelId(r))("index",r)("state",o._getIndicatorType(r,i.state))("label",i.stepLabel||i.label)("selected",o.selectedIndex===r)("active",i.completed||o.selectedIndex===r||!o.linear)("optional",i.optional)("errorMessage",i.errorMessage)("iconOverrides",o._iconOverrides)("disableRipple",o.disableRipple)("color",i.color||o.color),y.uIk("aria-posinset",r+1)("aria-setsize",o.steps.length)("aria-controls",o._getStepContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null)}}var vD=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(BN);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275dir=y.lG2({type:e,selectors:[["","matStepLabel",""]],features:[y.qOj]}),e}(),yD=function(){var e=function e(){(0,f.Z)(this,e),this.changes=new x.xQ,this.optionalLabel="Optional"};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=y.Yz7({factory:function(){return new e},token:e,providedIn:"root"}),e}(),_D={provide:yD,deps:[[new y.FiY,new y.tp0,yD]],useFactory:function(e){return e||new yD}},bD=(0,lt.pj)(function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e){return(0,f.Z)(this,n),t.call(this,e)}return n}(FN),"primary"),wD=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o){var a;return(0,f.Z)(this,n),(a=t.call(this,r))._intl=e,a._focusMonitor=i,a._intlSubscription=e.changes.subscribe(function(){return o.markForCheck()}),a}return(0,m.Z)(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 vD?null:this.label}},{key:"_templateLabel",value:function(){return this.label instanceof vD?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}(bD);return e.\u0275fac=function(t){return new(t||e)(y.Y36(yD),y.Y36(gt.tE),y.Y36(y.SBq),y.Y36(y.sBO))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[y.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",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&&(y._UZ(0,"div",0),y.TgZ(1,"div"),y.TgZ(2,"div",1),y.YNc(3,KN,1,2,"ng-container",2),y.YNc(4,tD,3,2,"ng-container",3),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.YNc(6,nD,2,1,"div",5),y.YNc(7,iD,2,1,"div",5),y.YNc(8,rD,2,1,"div",6),y.YNc(9,oD,2,1,"div",7),y.qZA()),2&e&&(y.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),y.xp6(1),y.Gre("mat-step-icon-state-",t.state," mat-step-icon"),y.ekj("mat-step-icon-selected",t.selected),y.xp6(1),y.Q6J("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),y.xp6(1),y.Q6J("ngSwitchCase",!0),y.xp6(2),y.ekj("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),y.xp6(1),y.Q6J("ngIf",t._templateLabel()),y.xp6(1),y.Q6J("ngIf",t._stringLabel()),y.xp6(1),y.Q6J("ngIf",t.optional&&"error"!=t.state),y.xp6(1),y.Q6J("ngIf","error"==t.state))},directives:[lt.wG,_.RF,_.n9,_.ED,_.O5,_.tP,nO],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}(),SD={horizontalStepTransition:(0,ft.X$)("horizontalStepTransition",[(0,ft.SB)("previous",(0,ft.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,ft.SB)("current",(0,ft.oB)({transform:"none",visibility:"inherit"})),(0,ft.SB)("next",(0,ft.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,ft.eR)("* => *",(0,ft.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,ft.X$)("verticalStepTransition",[(0,ft.SB)("previous",(0,ft.oB)({height:"0px",visibility:"hidden"})),(0,ft.SB)("next",(0,ft.oB)({height:"0px",visibility:"hidden"})),(0,ft.SB)("current",(0,ft.oB)({height:"*",visibility:"inherit"})),(0,ft.eR)("* <=> current",(0,ft.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])},xD=function(){var e=function e(t){(0,f.Z)(this,e),this.templateRef=t};return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.Rgc))},e.\u0275dir=y.lG2({type:e,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),e}(),CD=function(){var e=function e(t){(0,f.Z)(this,e),this._template=t};return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.Rgc))},e.\u0275dir=y.lG2({type:e,selectors:[["ng-template","matStepContent",""]]}),e}(),kD=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o){var a;return(0,f.Z)(this,n),(a=t.call(this,e,o))._errorStateMatcher=i,a._viewContainerRef=r,a._isSelected=C.w.EMPTY,a}return(0,m.Z)(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._isSelected=this._stepper.steps.changes.pipe((0,q.w)(function(){return e._stepper.selectionChange.pipe((0,E.U)(function(t){return t.selectedStep===e}),(0,O.O)(e._stepper.selected===e))})).subscribe(function(t){t&&e._lazyContent&&!e._portal&&(e._portal=new wO.UE(e._lazyContent._template,e._viewContainerRef))})}},{key:"ngOnDestroy",value:function(){this._isSelected.unsubscribe()}},{key:"isErrorState",value:function(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}]),n}(GN);return e.\u0275fac=function(t){return new(t||e)(y.Y36((0,y.Gpc)(function(){return MD})),y.Y36(lt.rD,4),y.Y36(y.s_b),y.Y36(JN,8))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-step"]],contentQueries:function(e,t,n){var i;1&e&&(y.Suo(n,vD,5),y.Suo(n,CD,5)),2&e&&(y.iGM(i=y.CRH())&&(t.stepLabel=i.first),y.iGM(i=y.CRH())&&(t._lazyContent=i.first))},inputs:{color:"color"},exportAs:["matStep"],features:[y._Bn([{provide:lt.rD,useExisting:e},{provide:GN,useExisting:e}]),y.qOj],ngContentSelectors:lD,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(y.F$t(),y.YNc(0,sD,2,1,"ng-template"))},directives:[wO.Pl],encapsulation:2,changeDetection:0}),e}(),TD=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(WN);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275dir=y.lG2({type:e,features:[y.qOj]}),e}(),AD=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(TD);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275dir=y.lG2({type:e,selectors:[["mat-horizontal-stepper"]],features:[y.qOj]}),e}(),ZD=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(TD);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275dir=y.lG2({type:e,selectors:[["mat-vertical-stepper"]],features:[y.qOj]}),e}(),MD=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o){var a;(0,f.Z)(this,n),(a=t.call(this,e,i,r,o)).steps=new y.n_E,a.animationDone=new y.vpe,a.labelPosition="end",a._iconOverrides={},a._animationDone=new x.xQ;var s=r.nativeElement.nodeName.toLowerCase();return a.orientation="mat-vertical-stepper"===s?"vertical":"horizontal",a}return(0,m.Z)(n,[{key:"ngAfterContentInit",value:function(){var e=this;(0,c.Z)((0,u.Z)(n.prototype),"ngAfterContentInit",this).call(this),this._icons.forEach(function(t){return e._iconOverrides[t.name]=t.templateRef}),this.steps.changes.pipe((0,M.R)(this._destroyed)).subscribe(function(){e._stateChanged()}),this._animationDone.pipe((0,ht.x)(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState}),(0,M.R)(this._destroyed)).subscribe(function(t){"current"===t.toState&&e.animationDone.emit()})}}]),n}(WN);return e.\u0275fac=function(t){return new(t||e)(y.Y36(N.Is,8),y.Y36(y.sBO),y.Y36(y.SBq),y.Y36(_.K0))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(e,t,n){var i;1&e&&(y.Suo(n,kD,5),y.Suo(n,xD,5)),2&e&&(y.iGM(i=y.CRH())&&(t._steps=i),y.iGM(i=y.CRH())&&(t._icons=i))},viewQuery:function(e,t){var n;1&e&&y.Gf(wD,5),2&e&&y.iGM(n=y.CRH())&&(t._stepHeader=n)},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(e,t){2&e&&(y.uIk("aria-orientation",t.orientation),y.ekj("mat-stepper-horizontal","horizontal"===t.orientation)("mat-stepper-vertical","vertical"===t.orientation)("mat-stepper-label-position-end","horizontal"===t.orientation&&"end"==t.labelPosition)("mat-stepper-label-position-bottom","horizontal"===t.orientation&&"bottom"==t.labelPosition))},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition",disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[y._Bn([{provide:WN,useExisting:e},{provide:AD,useExisting:e},{provide:ZD,useExisting:e}]),y.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[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"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(e,t){1&e&&(y.ynx(0,0),y.YNc(1,pD,5,2,"ng-container",1),y.YNc(2,mD,2,1,"ng-container",1),y.BQk(),y.YNc(3,gD,1,22,"ng-template",null,2,y.W1O)),2&e&&(y.Q6J("ngSwitch",t.orientation),y.xp6(1),y.Q6J("ngSwitchCase","horizontal"),y.xp6(1),y.Q6J("ngSwitchCase","vertical"))},directives:[_.RF,_.n9,_.sg,_.tP,_.O5,wD],styles:['.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'],encapsulation:2,data:{animation:[SD.horizontalStepTransition,SD.verticalStepTransition]},changeDetection:0}),e}(),OD=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(VN);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275dir=y.lG2({type:e,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(e,t){2&e&&y.Ikx("type",t.type)},inputs:{type:"type"},features:[y.qOj]}),e}(),ED=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return n}(QN);return e.\u0275fac=function(){var t;return function(n){return(t||(t=y.n5z(e)))(n||e)}}(),e.\u0275dir=y.lG2({type:e,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(e,t){2&e&&y.Ikx("type",t.type)},inputs:{type:"type"},features:[y.qOj]}),e}(),PD=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({providers:[_D,lt.rD],imports:[[lt.BQ,_.ez,wO.eL,dO,XN,iO,lt.si],lt.BQ]}),e}();function ID(e,t){if(1&e&&(y.TgZ(0,"mat-option",32),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n.image," ")}}var qD=function(){return{standalone:!0}};function ND(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-select",31),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().selectedImage=e}),y.YNc(1,ID,2,2,"mat-option",25),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("ngModelOptions",y.DdM(3,qD))("ngModel",i.selectedImage),y.xp6(1),y.Q6J("ngForOf",i.dockerImages)}}function DD(e,t){1&e&&(y.TgZ(0,"div"),y.TgZ(1,"mat-form-field",17),y._UZ(2,"input",33),y.qZA(),y.qZA())}function RD(e,t){if(1&e&&(y.TgZ(0,"mat-option",32),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}var LD=function(){function e(e,t,n,i,r,o,a,s,l){this.route=e,this.serverService=t,this.dockerService=n,this.toasterService=i,this.router=r,this.formBuilder=o,this.templateMocksService=a,this.configurationService=s,this.computeService=l,this.consoleTypes=[],this.isRemoteComputerChosen=!1,this.dockerImages=[],this.newImageSelected=!1,this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.dockerTemplate=new qN,this.virtualMachineForm=this.formBuilder.group({filename:new st.NI(null,st.kI.required)}),this.containerNameForm=this.formBuilder.group({templateName:new st.NI(null,st.kI.required)}),this.networkAdaptersForm=this.formBuilder.group({adapters:new st.NI("1",st.kI.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=(0,QP.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)(y.Y36(CA),y.Y36(TM),y.Y36(NN),y.Y36(KO),y.Y36(KZ),y.Y36(st.qu),y.Y36(KP),y.Y36(DN),y.Y36($P.X))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"New Docker container template"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"div",5),y.TgZ(7,"mat-vertical-stepper",6),y.TgZ(8,"mat-step",7),y.TgZ(9,"mat-radio-group",8),y.TgZ(10,"mat-radio-button",9),y.NdJ("click",function(){return t.setServerType("local")}),y._uU(11,"Run this Docker container locally"),y.qZA(),y.TgZ(12,"mat-radio-button",10),y.NdJ("click",function(){return t.setServerType("gns3 vm")}),y._uU(13,"Run this Docker container on the GNS3 VM"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(14,"mat-step",11),y.TgZ(15,"form",12),y.TgZ(16,"mat-radio-group",8),y.TgZ(17,"mat-radio-button",9),y.NdJ("click",function(){return t.setDiskImage("existingImage")}),y._uU(18,"Existing image"),y.qZA(),y.TgZ(19,"mat-radio-button",13),y.NdJ("click",function(){return t.setDiskImage("newImage")}),y._uU(20,"New image"),y.qZA(),y.qZA(),y.YNc(21,ND,2,4,"mat-select",14),y.YNc(22,DD,3,0,"div",15),y.qZA(),y.qZA(),y.TgZ(23,"mat-step",16),y.TgZ(24,"form",12),y.TgZ(25,"mat-form-field",17),y._UZ(26,"input",18),y.qZA(),y.qZA(),y.qZA(),y.TgZ(27,"mat-step",19),y.TgZ(28,"form",12),y.TgZ(29,"mat-form-field",17),y._UZ(30,"input",20),y.qZA(),y.qZA(),y.qZA(),y.TgZ(31,"mat-step",21),y.TgZ(32,"mat-form-field",17),y.TgZ(33,"input",22),y.NdJ("ngModelChange",function(e){return t.dockerTemplate.start_command=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(34,"mat-step",23),y.TgZ(35,"mat-select",24),y.NdJ("ngModelChange",function(e){return t.dockerTemplate.console_type=e}),y.YNc(36,RD,2,2,"mat-option",25),y.qZA(),y.qZA(),y.TgZ(37,"mat-step",26),y.TgZ(38,"mat-form-field",17),y.TgZ(39,"textarea",27),y.NdJ("ngModelChange",function(e){return t.dockerTemplate.environment=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(40,"div",28),y.TgZ(41,"button",29),y.NdJ("click",function(){return t.goBack()}),y._uU(42,"Cancel"),y.qZA(),y.TgZ(43,"button",30),y.NdJ("click",function(){return t.addTemplate()}),y._uU(44,"Add template"),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(7),y.Q6J("linear",!0),y.xp6(1),y.Q6J("completed",t.isGns3VmChosen||t.isLocalComputerChosen),y.xp6(4),y.Q6J("disabled",!t.isGns3VmAvailable),y.xp6(2),y.Q6J("completed",t.selectedImage||t.virtualMachineForm.get("filename").value),y.xp6(1),y.Q6J("formGroup",t.virtualMachineForm),y.xp6(6),y.Q6J("ngIf",!t.newImageSelected),y.xp6(1),y.Q6J("ngIf",t.newImageSelected),y.xp6(1),y.Q6J("completed",t.containerNameForm.get("templateName").value),y.xp6(1),y.Q6J("formGroup",t.containerNameForm),y.xp6(3),y.Q6J("completed",t.networkAdaptersForm.get("adapters").value),y.xp6(1),y.Q6J("formGroup",t.networkAdaptersForm),y.xp6(3),y.Q6J("completed",t.dockerTemplate.start_command),y.xp6(2),y.Q6J("ngModel",t.dockerTemplate.start_command),y.xp6(1),y.Q6J("completed",t.dockerTemplate.console_type),y.xp6(1),y.Q6J("ngModelOptions",y.DdM(18,qD))("ngModel",t.dockerTemplate.console_type),y.xp6(1),y.Q6J("ngForOf",t.consoleTypes),y.xp6(3),y.Q6J("ngModel",t.dockerTemplate.environment))},directives:[MD,kD,cI,hI,st._Y,st.JL,st.sg,_.O5,sE.KE,mE,st.Fj,st.JJ,st.u,st.wV,st.On,vE.gD,_.sg,cO,lt.ey],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}(),FD=function(){function e(e,t,n,i,r,o){this.route=e,this.serverService=t,this.dockerService=n,this.toasterService=i,this.router=r,this.formBuilder=o,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new st.NI("",st.kI.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=(0,QP.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)(y.Y36(CA),y.Y36(TM),y.Y36(NN),y.Y36(KO),y.Y36(KZ),y.Y36(st.qu))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Copy Docker container template"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"div",5),y.TgZ(7,"form",6),y.TgZ(8,"mat-form-field",7),y.TgZ(9,"input",8),y.NdJ("ngModelChange",function(e){return t.templateName=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(10,"div",9),y.TgZ(11,"button",10),y.NdJ("click",function(){return t.goBack()}),y._uU(12,"Cancel"),y.qZA(),y.TgZ(13,"button",11),y.NdJ("click",function(){return t.addTemplate()}),y._uU(14,"Copy template"),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(7),y.Q6J("formGroup",t.templateNameForm),y.xp6(2),y.Q6J("ngModel",t.templateName))},directives:[st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,cO],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}(),BD=n(96798),jD=["input"],zD=function(e){return{enterDuration:e}},UD=["*"],HD=new y.OlP("mat-checkbox-default-options",{providedIn:"root",factory:YD});function YD(){return{color:"accent",clickAction:"check-indeterminate"}}var JD=0,GD=YD(),WD={provide:st.JU,useExisting:(0,y.Gpc)(function(){return XD}),multi:!0},VD=function e(){(0,f.Z)(this,e)},QD=(0,lt.sb)((0,lt.pj)((0,lt.Kr)((0,lt.Id)(function e(t){(0,f.Z)(this,e),this._elementRef=t})))),XD=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o,a,s,l){var c;return(0,f.Z)(this,n),(c=t.call(this,e))._changeDetectorRef=i,c._focusMonitor=r,c._ngZone=o,c._animationMode=s,c._options=l,c.ariaLabel="",c.ariaLabelledby=null,c._uniqueId="mat-checkbox-".concat(++JD),c.id=c._uniqueId,c.labelPosition="after",c.name=null,c.change=new y.vpe,c.indeterminateChange=new y.vpe,c._onTouched=function(){},c._currentAnimationClass="",c._currentCheckState=0,c._controlValueAccessorChangeFn=function(){},c._checked=!1,c._disabled=!1,c._indeterminate=!1,c._options=c._options||GD,c.color=c.defaultColor=c._options.color||GD.color,c.tabIndex=parseInt(a)||0,c}return(0,m.Z)(n,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,S.Ig)(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=(0,S.Ig)(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=(0,S.Ig)(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 i=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){n.classList.remove(i)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var e=new VD;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,i=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&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}(QD);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(gt.tE),y.Y36(y.R0b),y.$8M("tabindex"),y.Y36(mt.Qb,8),y.Y36(HD,8))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;1&e&&(y.Gf(jD,5),y.Gf(lt.wG,5)),2&e&&(y.iGM(n=y.CRH())&&(t._inputElement=n.first),y.iGM(n=y.CRH())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(y.Ikx("id",t.id),y.uIk("tabindex",null),y.ekj("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:[y._Bn([WD]),y.qOj],ngContentSelectors:UD,decls:17,vars:21,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&&(y.F$t(),y.TgZ(0,"label",0,1),y.TgZ(2,"span",2),y.TgZ(3,"input",3,4),y.NdJ("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),y.qZA(),y.TgZ(5,"span",5),y._UZ(6,"span",6),y.qZA(),y._UZ(7,"span",7),y.TgZ(8,"span",8),y.O4$(),y.TgZ(9,"svg",9),y._UZ(10,"path",10),y.qZA(),y.kcU(),y._UZ(11,"span",11),y.qZA(),y.qZA(),y.TgZ(12,"span",12,13),y.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),y.TgZ(14,"span",14),y._uU(15,"\xa0"),y.qZA(),y.Hsn(16),y.qZA(),y.qZA()),2&e){var n=y.MAs(1),i=y.MAs(13);y.uIk("for",t.inputId),y.xp6(2),y.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),y.xp6(1),y.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),y.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),y.xp6(2),y.Q6J("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",y.VKq(19,zD,"NoopAnimations"===t._animationMode?0:150))}},directives:[lt.wG,BD.wD],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 .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.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}.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%}\n"],encapsulation:2,changeDetection:0}),e}(),KD=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({}),e}(),$D=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[lt.si,lt.BQ,BD.Q8,KD],lt.BQ,KD]}),e}();function eR(e,t){if(1&e&&(y.TgZ(0,"mat-option",27),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}function tR(e,t){if(1&e&&(y.TgZ(0,"mat-option",27),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function nR(e,t){if(1&e&&(y.TgZ(0,"mat-option",27),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}var iR=function(){return{standalone:!0}};function rR(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",6),y.TgZ(1,"mat-accordion"),y.TgZ(2,"mat-expansion-panel"),y.TgZ(3,"mat-expansion-panel-header"),y.TgZ(4,"mat-panel-title"),y._uU(5," General settings "),y.qZA(),y.qZA(),y.TgZ(6,"form",7),y.TgZ(7,"mat-form-field",8),y.TgZ(8,"input",9),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().dockerTemplate.name=e}),y.qZA(),y.qZA(),y.TgZ(9,"mat-form-field",8),y.TgZ(10,"input",10),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().dockerTemplate.default_name_format=e}),y.qZA(),y.qZA(),y.TgZ(11,"mat-form-field",8),y.TgZ(12,"mat-select",11),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().dockerTemplate.category=e}),y.YNc(13,eR,2,2,"mat-option",12),y.qZA(),y.qZA(),y.TgZ(14,"mat-form-field",8),y.TgZ(15,"input",13),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().dockerTemplate.symbol=e}),y.qZA(),y.qZA(),y.TgZ(16,"button",14),y.NdJ("click",function(){return y.CHM(n),y.oxw().chooseSymbol()}),y._uU(17,"Choose symbol"),y.qZA(),y._UZ(18,"br"),y._UZ(19,"br"),y.TgZ(20,"mat-form-field",8),y.TgZ(21,"input",15),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().dockerTemplate.start_command=e}),y.qZA(),y.qZA(),y.TgZ(22,"mat-form-field",8),y.TgZ(23,"input",16),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().dockerTemplate.adapters=e}),y.qZA(),y.qZA(),y.TgZ(24,"mat-form-field",17),y.TgZ(25,"mat-select",18),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().dockerTemplate.console_type=e}),y.YNc(26,tR,2,2,"mat-option",12),y.qZA(),y.qZA(),y.TgZ(27,"mat-checkbox",19),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().dockerTemplate.console_auto_start=e}),y._uU(28," Auto start console "),y.qZA(),y.TgZ(29,"mat-form-field",17),y.TgZ(30,"mat-select",20),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().dockerTemplate.console_resolution=e}),y.YNc(31,nR,2,2,"mat-option",12),y.qZA(),y.qZA(),y.TgZ(32,"mat-form-field",8),y.TgZ(33,"input",21),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().dockerTemplate.console_http_port=e}),y.qZA(),y.qZA(),y.TgZ(34,"mat-form-field",8),y.TgZ(35,"input",22),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().dockerTemplate.console_http_path=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(36,"h6"),y._uU(37,"Environment"),y.qZA(),y.TgZ(38,"mat-form-field",8),y.TgZ(39,"textarea",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().dockerTemplate.environment=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(40,"mat-expansion-panel"),y.TgZ(41,"mat-expansion-panel-header"),y.TgZ(42,"mat-panel-title"),y._uU(43," Advanced "),y.qZA(),y.qZA(),y.TgZ(44,"h6"),y._uU(45,"Extra hosts"),y.qZA(),y.TgZ(46,"mat-form-field",8),y.TgZ(47,"textarea",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().dockerTemplate.extra_hosts=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(48,"mat-expansion-panel"),y.TgZ(49,"mat-expansion-panel-header"),y.TgZ(50,"mat-panel-title"),y._uU(51," Usage "),y.qZA(),y.qZA(),y.TgZ(52,"mat-form-field",8),y.TgZ(53,"textarea",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().dockerTemplate.usage=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(54,"div",24),y.TgZ(55,"button",25),y.NdJ("click",function(){return y.CHM(n),y.oxw().goBack()}),y._uU(56,"Cancel"),y.qZA(),y.TgZ(57,"button",26),y.NdJ("click",function(){return y.CHM(n),y.oxw().onSave()}),y._uU(58,"Save"),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(6),y.Q6J("formGroup",i.generalSettingsForm),y.xp6(2),y.Q6J("ngModel",i.dockerTemplate.name),y.xp6(2),y.Q6J("ngModel",i.dockerTemplate.default_name_format),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(25,iR))("ngModel",i.dockerTemplate.category),y.xp6(1),y.Q6J("ngForOf",i.categories),y.xp6(2),y.Q6J("ngModel",i.dockerTemplate.symbol),y.xp6(6),y.Q6J("ngModelOptions",y.DdM(26,iR))("ngModel",i.dockerTemplate.start_command),y.xp6(2),y.Q6J("ngModel",i.dockerTemplate.adapters),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(27,iR))("ngModel",i.dockerTemplate.console_type),y.xp6(1),y.Q6J("ngForOf",i.consoleTypes),y.xp6(1),y.Q6J("ngModelOptions",y.DdM(28,iR))("ngModel",i.dockerTemplate.console_auto_start),y.xp6(3),y.Q6J("ngModelOptions",y.DdM(29,iR))("ngModel",i.dockerTemplate.console_resolution),y.xp6(1),y.Q6J("ngForOf",i.consoleResolutions),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(30,iR))("ngModel",i.dockerTemplate.console_http_port),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(31,iR))("ngModel",i.dockerTemplate.console_http_path),y.xp6(4),y.Q6J("ngModel",i.dockerTemplate.environment),y.xp6(8),y.Q6J("ngModel",i.dockerTemplate.extra_hosts),y.xp6(6),y.Q6J("ngModel",i.dockerTemplate.usage)}}function oR(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"app-symbols-menu",28),y.NdJ("symbolChangedEmitter",function(e){return y.CHM(n),y.oxw().symbolChanged(e)}),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("server",i.server)("symbol",i.dockerTemplate.symbol)}}var aR=function(e){return{shadowed:e}},sR=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.dockerService=n,this.toasterService=i,this.configurationService=r,this.formBuilder=o,this.router=a,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.consoleResolutions=[],this.categories=[],this.adapters=[],this.displayedColumns=["adapter_number","port_name"],this.generalSettingsForm=this.formBuilder.group({templateName:new st.NI("",st.kI.required),defaultName:new st.NI("",st.kI.required),adapter:new st.NI("",st.kI.required),symbol:new st.NI("",st.kI.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)(y.Y36(CA),y.Y36(TM),y.Y36(NN),y.Y36(KO),y.Y36(DN),y.Y36(st.qu),y.Y36(KZ))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Docker image configuration"),y.qZA(),y.qZA(),y.qZA(),y.YNc(5,rR,59,32,"div",4),y.qZA(),y.YNc(6,oR,1,2,"app-symbols-menu",5)),2&e&&(y.Q6J("ngClass",y.VKq(3,aR,t.isSymbolSelectionOpened)),y.xp6(5),y.Q6J("ngIf",t.dockerTemplate),y.xp6(1),y.Q6J("ngIf",t.isSymbolSelectionOpened&&t.dockerTemplate))},directives:[_.mk,_.O5,VE,YE,JE,WE,st._Y,st.JL,st.sg,sE.KE,st.Fj,mE,st.JJ,st.u,vE.gD,st.On,_.sg,cO,st.wV,XD,lt.ey,CI],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 lR(e,t){if(1&e&&(y.TgZ(0,"button",10),y._uU(1," Back "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences")}}function cR(e,t){if(1&e&&(y.TgZ(0,"button",11),y._uU(1," Add Docker container template "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences/docker/addtemplate")}}function uR(e,t){1&e&&y._UZ(0,"app-empty-templates-list")}function dR(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",15),y.TgZ(1,"mat-list-item",16),y._uU(2),y.qZA(),y.TgZ(3,"button",17),y.TgZ(4,"mat-icon"),y._uU(5,"more_vert"),y.qZA(),y.qZA(),y.TgZ(6,"mat-menu",null,18),y.TgZ(8,"button",19),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(3).deleteTemplate(e)}),y.TgZ(9,"mat-icon"),y._uU(10,"delete"),y.qZA(),y.TgZ(11,"span"),y._uU(12,"Delete"),y.qZA(),y.qZA(),y.TgZ(13,"button",19),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(3).copyTemplate(e)}),y.TgZ(14,"mat-icon"),y._uU(15,"content_copy"),y.qZA(),y.TgZ(16,"span"),y._uU(17,"Copy"),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=t.$implicit,r=y.MAs(7);y.xp6(1),y.s9C("routerLink",i.template_id),y.xp6(1),y.Oqu(i.name),y.xp6(1),y.Q6J("matMenuTriggerFor",r)}}function hR(e,t){if(1&e&&(y.TgZ(0,"mat-nav-list"),y.YNc(1,dR,18,3,"div",14),y.qZA()),2&e){var n=y.oxw(2);y.xp6(1),y.Q6J("ngForOf",n.dockerTemplates)}}function pR(e,t){if(1&e&&(y.TgZ(0,"div",12),y.TgZ(1,"div",13),y.YNc(2,hR,2,1,"mat-nav-list",6),y.qZA(),y.qZA()),2&e){var n=y.oxw();y.xp6(2),y.Q6J("ngIf",n.server)}}var fR=function(){function e(e,t,n,i){this.route=e,this.serverService=t,this.dockerService=n,this.router=i,this.dockerTemplates=[]}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(t){e.server=t,e.getTemplates()})},e.prototype.getTemplates=function(){var e=this;this.dockerService.getTemplates(this.server).subscribe(function(t){e.dockerTemplates=t.filter(function(e){return"docker"===e.template_type&&!e.builtin})})},e.prototype.deleteTemplate=function(e){this.deleteComponent.deleteItem(e.name,e.template_id)},e.prototype.onDeleteEvent=function(){this.getTemplates()},e.prototype.copyTemplate=function(e){this.router.navigate(["/server",this.server.id,"preferences","docker","templates",e.template_id,"copy"])},e.\u0275fac=function(t){return new(t||e)(y.Y36(CA),y.Y36(TM),y.Y36(NN),y.Y36(KZ))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-docker-templates"]],viewQuery:function(e,t){var n;1&e&&y.Gf(fq,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Docker container templates"),y.qZA(),y.YNc(5,lR,2,1,"button",4),y.YNc(6,cR,2,1,"button",5),y.qZA(),y.qZA(),y.YNc(7,uR,1,0,"app-empty-templates-list",6),y.YNc(8,pR,3,1,"div",7),y.qZA(),y.TgZ(9,"app-delete-template",8,9),y.NdJ("deleteEvent",function(){return t.onDeleteEvent()}),y.qZA()),2&e&&(y.xp6(5),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",!t.dockerTemplates.length),y.xp6(1),y.Q6J("ngIf",t.dockerTemplates.length),y.xp6(1),y.Q6J("server",t.server))},directives:[_.O5,fq,cO,eM,mq,aP,_.sg,uP,Iq,nO,Mq,kq],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}(),mR=function(){return function(){}}(),gR=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.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),vR=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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function yR(e,t){if(1&e&&(y.TgZ(0,"mat-option",36),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.filename),y.xp6(1),y.hij(" ",n.filename," ")}}function _R(e,t){if(1&e&&(y.TgZ(0,"mat-option",36),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function bR(e,t){if(1&e&&(y.TgZ(0,"mat-option",36),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function wR(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-form-field",17),y.TgZ(1,"mat-select",37),y.NdJ("selectionChange",function(e){return y.CHM(n),y.oxw(2).onChassisChosen(e)}),y.YNc(2,bR,2,2,"mat-option",19),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2);y.xp6(2),y.Q6J("ngForOf",i.chassis[i.iosNameForm.get("platform").value])}}function SR(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-checkbox",38),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw(2).isEtherSwitchRouter=e}),y._uU(1," This is an EtherSwitch router "),y.qZA()}if(2&e){var i=y.oxw(2);y.Q6J("ngModel",i.isEtherSwitchRouter)}}function xR(e,t){if(1&e&&(y.TgZ(0,"mat-option",36),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}var CR=function(){return{standalone:!0}};function kR(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-select",41),y.NdJ("ngModelChange",function(e){y.CHM(n);var t=y.oxw().$implicit;return y.oxw(3).networkAdaptersForTemplate[t]=e}),y.YNc(1,xR,2,2,"mat-option",19),y.qZA()}if(2&e){var i=y.oxw().$implicit,r=y.oxw(3);y.MGl("placeholder","Slot ",i,""),y.Q6J("ngModel",r.networkAdaptersForTemplate[i])("ngModelOptions",y.DdM(4,CR)),y.xp6(1),y.Q6J("ngForOf",r.networkAdaptersForPlatform[r.iosNameForm.get("platform").value][i])}}function TR(e,t){if(1&e&&(y.TgZ(0,"div"),y.YNc(1,kR,2,5,"mat-select",40),y.qZA()),2&e){var n=t.$implicit,i=y.oxw(3);y.xp6(1),y.Q6J("ngIf",i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value]&&i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value][n])}}var AR=function(){return[0,1,2,3,4,5,6,7]};function ZR(e,t){1&e&&(y.TgZ(0,"div"),y.YNc(1,TR,2,1,"div",39),y.qZA()),2&e&&(y.xp6(1),y.Q6J("ngForOf",y.DdM(1,AR)))}function MR(e,t){if(1&e&&(y.TgZ(0,"mat-option",36),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function OR(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-select",41),y.NdJ("ngModelChange",function(e){y.CHM(n);var t=y.oxw().$implicit;return y.oxw(3).networkModulesForTemplate[t]=e}),y.YNc(1,MR,2,2,"mat-option",19),y.qZA()}if(2&e){var i=y.oxw().$implicit,r=y.oxw(3);y.MGl("placeholder","WIC ",i,""),y.Q6J("ngModel",r.networkModulesForTemplate[i])("ngModelOptions",y.DdM(4,CR)),y.xp6(1),y.Q6J("ngForOf",r.networkModules[r.iosNameForm.get("platform").value][i])}}function ER(e,t){if(1&e&&(y.TgZ(0,"div"),y.YNc(1,OR,2,5,"mat-select",40),y.qZA()),2&e){var n=t.$implicit,i=y.oxw(3);y.xp6(1),y.Q6J("ngIf",i.networkModules[i.iosNameForm.get("platform").value]&&i.networkModules[i.iosNameForm.get("platform").value][n])}}var PR=function(){return[0,1,2,3]};function IR(e,t){1&e&&(y.TgZ(0,"div"),y.YNc(1,ER,2,1,"div",39),y.qZA()),2&e&&(y.xp6(1),y.Q6J("ngForOf",y.DdM(1,PR)))}function qR(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",5),y.TgZ(1,"div",6),y.TgZ(2,"mat-vertical-stepper",7),y.TgZ(3,"mat-step",8),y.TgZ(4,"mat-radio-group",9),y.TgZ(5,"mat-radio-button",10),y.NdJ("click",function(){return y.CHM(n),y.oxw().setServerType("local")}),y._uU(6,"Run this IOS router locally"),y.qZA(),y.TgZ(7,"mat-radio-button",11),y.NdJ("click",function(){return y.CHM(n),y.oxw().setServerType("gns3 vm")}),y._uU(8,"Run this IOS router on the GNS3 VM"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(9,"mat-step",12),y.TgZ(10,"input",13,14),y.NdJ("change",function(e){return y.CHM(n),y.oxw().addImage(e)}),y.qZA(),y.TgZ(12,"button",15),y.NdJ("click",function(){return y.CHM(n),y.MAs(11).click()}),y._uU(13,"Click to add image"),y.qZA(),y._uU(14," or create from existing one "),y.TgZ(15,"form",16),y.TgZ(16,"mat-form-field",17),y.TgZ(17,"mat-select",18),y.NdJ("selectionChange",function(e){return y.CHM(n),y.oxw().onImageChosen(e)}),y.YNc(18,yR,2,2,"mat-option",19),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(19,"mat-step",20),y.TgZ(20,"form",16),y.TgZ(21,"mat-form-field",17),y._UZ(22,"input",21),y.qZA(),y.TgZ(23,"mat-form-field",17),y.TgZ(24,"mat-select",22),y.NdJ("selectionChange",function(e){return y.CHM(n),y.oxw().onPlatformChosen(e)}),y.YNc(25,_R,2,2,"mat-option",19),y.qZA(),y.qZA(),y.YNc(26,wR,3,1,"mat-form-field",23),y.qZA(),y.YNc(27,SR,2,1,"mat-checkbox",24),y.qZA(),y.TgZ(28,"mat-step",25),y.TgZ(29,"form",16),y.TgZ(30,"mat-form-field",17),y._UZ(31,"input",26),y.TgZ(32,"span",27),y._uU(33,"MB"),y.qZA(),y.qZA(),y.TgZ(34,"mat-label"),y.TgZ(35,"a",28),y._uU(36,"Check for minimum and maximum RAM requirement"),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(37,"mat-step",29),y.YNc(38,ZR,2,2,"div",30),y.qZA(),y.TgZ(39,"mat-step",31),y.YNc(40,IR,2,2,"div",30),y.qZA(),y.TgZ(41,"mat-step",32),y.TgZ(42,"mat-form-field",17),y.TgZ(43,"input",33),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.idlepc=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(44,"div",34),y.TgZ(45,"button",35),y.NdJ("click",function(){return y.CHM(n),y.oxw().goBack()}),y._uU(46,"Cancel"),y.qZA(),y.TgZ(47,"button",15),y.NdJ("click",function(){return y.CHM(n),y.oxw().addTemplate()}),y._uU(48,"Add template"),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(2),y.Q6J("linear",!0),y.xp6(1),y.Q6J("completed",i.isGns3VmChosen||i.isLocalComputerChosen),y.xp6(4),y.Q6J("disabled",!i.isGns3VmAvailable),y.xp6(2),y.Q6J("completed",i.iosImageForm.get("imageName").value),y.xp6(1),y.Q6J("uploader",i.uploader),y.xp6(5),y.Q6J("formGroup",i.iosImageForm),y.xp6(3),y.Q6J("ngForOf",i.iosImages),y.xp6(1),y.Q6J("completed",i.iosNameForm.get("templateName").value&&i.iosNameForm.get("platform").value&&i.iosNameForm.get("chassis").value),y.xp6(1),y.Q6J("formGroup",i.iosNameForm),y.xp6(5),y.Q6J("ngForOf",i.platforms),y.xp6(1),y.Q6J("ngIf",i.chassis[i.iosNameForm.get("platform").value]),y.xp6(1),y.Q6J("ngIf",i.platformsWithEtherSwitchRouterOption[i.iosTemplate.platform]),y.xp6(1),y.Q6J("completed",i.iosMemoryForm.get("memory").value),y.xp6(1),y.Q6J("formGroup",i.iosMemoryForm),y.xp6(6),y.s9C("href",i.ciscoUrl,y.LSH),y.xp6(3),y.Q6J("ngIf",i.selectedPlatform),y.xp6(2),y.Q6J("ngIf",i.iosNameForm.get("platform").value),y.xp6(3),y.Q6J("ngModel",i.iosTemplate.idlepc)}}var NR=function(){function e(e,t,n,i,r,o,a,s,l){this.route=e,this.serverService=t,this.iosService=n,this.toasterService=i,this.formBuilder=r,this.router=o,this.templateMocksService=a,this.iosConfigurationService=s,this.computeService=l,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 mR,this.iosImageForm=this.formBuilder.group({imageName:new st.NI(null,[st.kI.required])}),this.iosNameForm=this.formBuilder.group({templateName:new st.NI(null,[st.kI.required]),platform:new st.NI(null,[st.kI.required]),chassis:new st.NI(null,[st.kI.required])}),this.iosMemoryForm=this.formBuilder.group({memory:new st.NI(null,[st.kI.required])})}return e.prototype.ngOnInit=function(){var e=this;this.uploader=new Gk({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,i,r){e.toasterService.error("An error occured: "+n)},this.uploader.onSuccessItem=function(t,n,i,r){e.getImages(),e.toasterService.success("Image uploaded")};var t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(t){e.server=t,e.getImages(),e.templateMocksService.getIosTemplate().subscribe(function(t){e.iosTemplate=t,e.networkModules=e.iosConfigurationService.getNetworkModules(),e.networkAdaptersForPlatform=e.iosConfigurationService.getNetworkAdaptersForPlatform(),e.networkAdapters=e.iosConfigurationService.getNetworkAdapters(),e.platforms=e.iosConfigurationService.getAvailablePlatforms(),e.platformsWithEtherSwitchRouterOption=e.iosConfigurationService.getPlatformsWithEtherSwitchRouterOption(),e.platformsWithChassis=e.iosConfigurationService.getPlatformsWithChassis(),e.chassis=e.iosConfigurationService.getChassis(),e.defaultRam=e.iosConfigurationService.getDefaultRamSettings()}),e.computeService.getComputes(t).subscribe(function(t){t.filter(function(e){return"vm"===e.compute_id}).length>0&&(e.isGns3VmAvailable=!0)})})},e.prototype.setServerType=function(e){"gns3 vm"===e&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},e.prototype.getImages=function(){var e=this;this.iosService.getImages(this.server).subscribe(function(t){e.iosImages=t})},e.prototype.addImage=function(e){var t=e.target.files[0].name.split("-")[0];this.iosNameForm.controls.templateName.setValue(t);var n=this.iosService.getImagePath(this.server,e.target.files[0].name);this.uploader.queue.forEach(function(e){return e.url=n});var i=this.uploader.queue[0];i.options.disableMultipart=!0,this.uploader.uploadItem(i)},e.prototype.addTemplate=function(){var e=this;!this.iosImageForm.invalid&&!this.iosMemoryForm.invalid&&this.iosNameForm.get("templateName").value&&this.iosNameForm.get("platform").value?(this.iosTemplate.template_id=(0,QP.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)(y.Y36(CA),y.Y36(TM),y.Y36(gR),y.Y36(KO),y.Y36(st.qu),y.Y36(KZ),y.Y36(KP),y.Y36(vR),y.Y36($P.X))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"New IOS router template"),y.qZA(),y.qZA(),y.qZA(),y.YNc(5,qR,49,18,"div",4),y.qZA()),2&e&&(y.xp6(5),y.Q6J("ngIf",t.iosTemplate))},directives:[_.O5,MD,kD,cI,hI,Wk,cO,st._Y,st.JL,st.sg,sE.KE,vE.gD,st.JJ,st.u,_.sg,mE,st.Fj,st.wV,sE.R9,sE.hX,st.On,lt.ey,XD],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}(),DR=function(){function e(e,t,n,i,r,o){this.route=e,this.serverService=t,this.iosService=n,this.toasterService=i,this.router=r,this.formBuilder=o,this.templateName="",this.formGroup=this.formBuilder.group({templateName:new st.NI("",st.kI.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=(0,QP.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)(y.Y36(CA),y.Y36(TM),y.Y36(gR),y.Y36(KO),y.Y36(KZ),y.Y36(st.qu))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Copy IOS router template"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"mat-card",5),y.TgZ(7,"form",6),y.TgZ(8,"mat-form-field",7),y.TgZ(9,"input",8),y.NdJ("ngModelChange",function(e){return t.templateName=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(10,"div",9),y.TgZ(11,"button",10),y.NdJ("click",function(){return t.goBack()}),y._uU(12,"Cancel"),y.qZA(),y.TgZ(13,"button",11),y.NdJ("click",function(){return t.addTemplate()}),y._uU(14,"Copy template"),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(7),y.Q6J("formGroup",t.formGroup),y.xp6(2),y.Q6J("ngModel",t.templateName))},directives:[oE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,cO],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 RR(e,t){if(1&e&&(y.TgZ(0,"mat-option",38),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}function LR(e,t){if(1&e&&(y.TgZ(0,"mat-option",38),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function FR(e,t){if(1&e&&(y.TgZ(0,"mat-option",38),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}var BR=function(){return{standalone:!0}};function jR(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-select",41),y.NdJ("ngModelChange",function(e){y.CHM(n);var t=y.oxw().$implicit;return y.oxw(3).networkAdaptersForTemplate[t]=e}),y.YNc(1,FR,2,2,"mat-option",14),y.qZA()}if(2&e){var i=y.oxw().$implicit,r=y.oxw(3);y.MGl("placeholder","Slot ",i,""),y.Q6J("ngModel",r.networkAdaptersForTemplate[i])("ngModelOptions",y.DdM(4,BR)),y.xp6(1),y.Q6J("ngForOf",r.networkAdapters[r.iosTemplate.chassis][i])}}function zR(e,t){if(1&e&&(y.TgZ(0,"div"),y.YNc(1,jR,2,5,"mat-select",40),y.qZA()),2&e){var n=t.$implicit,i=y.oxw(3);y.xp6(1),y.Q6J("ngIf",i.networkAdapters[i.iosTemplate.chassis][n])}}var UR=function(){return[0,1,2,3,4,5,6,7]};function HR(e,t){1&e&&(y.TgZ(0,"div"),y.YNc(1,zR,2,1,"div",39),y.qZA()),2&e&&(y.xp6(1),y.Q6J("ngForOf",y.DdM(1,UR)))}function YR(e,t){if(1&e&&(y.TgZ(0,"mat-option",38),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function JR(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-select",41),y.NdJ("ngModelChange",function(e){y.CHM(n);var t=y.oxw().$implicit;return y.oxw(3).networkAdaptersForTemplate[t]=e}),y.YNc(1,YR,2,2,"mat-option",14),y.qZA()}if(2&e){var i=y.oxw().$implicit,r=y.oxw(3);y.MGl("placeholder","Slot ",i,""),y.Q6J("ngModel",r.networkAdaptersForTemplate[i])("ngModelOptions",y.DdM(4,BR)),y.xp6(1),y.Q6J("ngForOf",r.networkAdaptersForPlatform[r.iosTemplate.platform][i])}}function GR(e,t){if(1&e&&(y.TgZ(0,"div"),y.YNc(1,JR,2,5,"mat-select",40),y.qZA()),2&e){var n=t.$implicit,i=y.oxw(3);y.xp6(1),y.Q6J("ngIf",i.networkAdaptersForPlatform[i.iosTemplate.platform][n])}}function WR(e,t){1&e&&(y.TgZ(0,"div"),y.YNc(1,GR,2,1,"div",39),y.qZA()),2&e&&(y.xp6(1),y.Q6J("ngForOf",y.DdM(1,UR)))}function VR(e,t){if(1&e&&(y.TgZ(0,"mat-option",38),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function QR(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div"),y.TgZ(1,"mat-select",42),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw(2).iosTemplate.wic0=e}),y.YNc(2,VR,2,2,"mat-option",14),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2);y.xp6(1),y.Q6J("ngModel",i.iosTemplate.wic0)("ngModelOptions",y.DdM(3,BR)),y.xp6(1),y.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][0])}}function XR(e,t){if(1&e&&(y.TgZ(0,"mat-option",38),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function KR(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div"),y.TgZ(1,"mat-select",43),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw(2).iosTemplate.wic1=e}),y.YNc(2,XR,2,2,"mat-option",14),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2);y.xp6(1),y.Q6J("ngModel",i.iosTemplate.wic1)("ngModelOptions",y.DdM(3,BR)),y.xp6(1),y.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][1])}}function $R(e,t){if(1&e&&(y.TgZ(0,"mat-option",38),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function eL(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div"),y.TgZ(1,"mat-select",44),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw(2).iosTemplate.wic2=e}),y.YNc(2,$R,2,2,"mat-option",14),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2);y.xp6(1),y.Q6J("ngModel",i.iosTemplate.wic2)("ngModelOptions",y.DdM(3,BR)),y.xp6(1),y.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][2])}}function tL(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",6),y.TgZ(1,"mat-accordion"),y.TgZ(2,"mat-expansion-panel"),y.TgZ(3,"mat-expansion-panel-header"),y.TgZ(4,"mat-panel-title"),y._uU(5," General settings "),y.qZA(),y.qZA(),y.TgZ(6,"form",7),y.TgZ(7,"mat-form-field",8),y.TgZ(8,"input",9),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.name=e}),y.qZA(),y.qZA(),y.TgZ(9,"mat-form-field",8),y.TgZ(10,"input",10),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.default_name_format=e}),y.qZA(),y.qZA(),y.TgZ(11,"mat-label"),y._uU(12),y.qZA(),y._UZ(13,"br"),y._UZ(14,"br"),y.TgZ(15,"mat-label"),y._uU(16),y.qZA(),y._UZ(17,"br"),y._UZ(18,"br"),y.TgZ(19,"mat-form-field",8),y.TgZ(20,"input",11),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.symbol=e}),y.qZA(),y.qZA(),y.TgZ(21,"button",12),y.NdJ("click",function(){return y.CHM(n),y.oxw().chooseSymbol()}),y._uU(22,"Choose symbol"),y.qZA(),y._UZ(23,"br"),y._UZ(24,"br"),y.TgZ(25,"mat-form-field",8),y.TgZ(26,"mat-select",13),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.category=e}),y.YNc(27,RR,2,2,"mat-option",14),y.qZA(),y.qZA(),y.TgZ(28,"mat-form-field",8),y.TgZ(29,"input",15),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.image=e}),y.qZA(),y.qZA(),y.TgZ(30,"mat-form-field",8),y.TgZ(31,"input",16),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.startup_config=e}),y.qZA(),y.qZA(),y.TgZ(32,"mat-form-field",8),y.TgZ(33,"input",17),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.private_config=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(34,"mat-form-field",18),y.TgZ(35,"mat-select",19),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.console_type=e}),y.YNc(36,LR,2,2,"mat-option",14),y.qZA(),y.qZA(),y.TgZ(37,"mat-checkbox",20),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.console_auto_start=e}),y._uU(38," Auto start console "),y.qZA(),y.qZA(),y.TgZ(39,"mat-expansion-panel"),y.TgZ(40,"mat-expansion-panel-header"),y.TgZ(41,"mat-panel-title"),y._uU(42," Memories and disks "),y.qZA(),y.qZA(),y.TgZ(43,"form",7),y.TgZ(44,"mat-form-field",8),y.TgZ(45,"input",21),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.ram=e}),y.qZA(),y.TgZ(46,"span",22),y._uU(47,"MB"),y.qZA(),y.qZA(),y.TgZ(48,"mat-form-field",8),y.TgZ(49,"input",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.nvram=e}),y.qZA(),y.TgZ(50,"span",22),y._uU(51,"MB"),y.qZA(),y.qZA(),y.TgZ(52,"mat-form-field",8),y.TgZ(53,"input",24),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.iomem=e}),y.qZA(),y.qZA(),y.TgZ(54,"mat-form-field",8),y.TgZ(55,"input",25),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.disk0=e}),y.qZA(),y.qZA(),y.TgZ(56,"mat-form-field",8),y.TgZ(57,"input",26),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.disk1=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(58,"mat-checkbox",20),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.auto_delete_disks=e}),y._uU(59," Automatically delete NVRAM and disk files "),y.qZA(),y.qZA(),y.TgZ(60,"mat-expansion-panel"),y.TgZ(61,"mat-expansion-panel-header"),y.TgZ(62,"mat-panel-title"),y._uU(63," Slots "),y.qZA(),y.qZA(),y.TgZ(64,"h6"),y._uU(65,"Adapters"),y.qZA(),y.YNc(66,HR,2,2,"div",27),y.YNc(67,WR,2,2,"div",27),y._UZ(68,"br"),y._UZ(69,"br"),y.TgZ(70,"h6"),y._uU(71,"WICs"),y.qZA(),y.YNc(72,QR,3,4,"div",27),y.YNc(73,KR,3,4,"div",27),y.YNc(74,eL,3,4,"div",27),y.qZA(),y.TgZ(75,"mat-expansion-panel"),y.TgZ(76,"mat-expansion-panel-header"),y.TgZ(77,"mat-panel-title"),y._uU(78," Advanced "),y.qZA(),y.qZA(),y.TgZ(79,"form",7),y.TgZ(80,"mat-form-field",8),y.TgZ(81,"input",28),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.system_id=e}),y.qZA(),y.qZA(),y.TgZ(82,"mat-form-field",8),y.TgZ(83,"input",29),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.mac_addr=e}),y.qZA(),y.qZA(),y.TgZ(84,"mat-form-field",8),y.TgZ(85,"input",30),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.idlepc=e}),y.qZA(),y.qZA(),y.TgZ(86,"mat-form-field",8),y.TgZ(87,"input",31),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.idlemax=e}),y.qZA(),y.qZA(),y.TgZ(88,"mat-form-field",8),y.TgZ(89,"input",32),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.idlesleep=e}),y.qZA(),y.qZA(),y.TgZ(90,"mat-form-field",8),y.TgZ(91,"input",33),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.exec_area=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(92,"mat-checkbox",20),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.mmap=e}),y._uU(93," Enable mmap support "),y.qZA(),y._UZ(94,"br"),y._UZ(95,"br"),y.TgZ(96,"mat-checkbox",20),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.sparsemem=e}),y._uU(97," Enable sparse memory supoport "),y.qZA(),y.qZA(),y.TgZ(98,"mat-expansion-panel"),y.TgZ(99,"mat-expansion-panel-header"),y.TgZ(100,"mat-panel-title"),y._uU(101," Usage "),y.qZA(),y.qZA(),y.TgZ(102,"mat-form-field",8),y.TgZ(103,"textarea",34),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iosTemplate.usage=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(104,"div",35),y.TgZ(105,"button",36),y.NdJ("click",function(){return y.CHM(n),y.oxw().goBack()}),y._uU(106,"Cancel"),y.qZA(),y.TgZ(107,"button",37),y.NdJ("click",function(){return y.CHM(n),y.oxw().onSave()}),y._uU(108,"Save"),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(6),y.Q6J("formGroup",i.generalSettingsForm),y.xp6(2),y.Q6J("ngModel",i.iosTemplate.name),y.xp6(2),y.Q6J("ngModel",i.iosTemplate.default_name_format),y.xp6(2),y.hij("Platform - ",i.iosTemplate.platform,""),y.xp6(4),y.hij("Chassis - ",i.iosTemplate.chassis,""),y.xp6(4),y.Q6J("ngModel",i.iosTemplate.symbol),y.xp6(6),y.Q6J("ngModelOptions",y.DdM(40,BR))("ngModel",i.iosTemplate.category),y.xp6(1),y.Q6J("ngForOf",i.categories),y.xp6(2),y.Q6J("ngModel",i.iosTemplate.image),y.xp6(2),y.Q6J("ngModel",i.iosTemplate.startup_config),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(41,BR))("ngModel",i.iosTemplate.private_config),y.xp6(2),y.Q6J("ngModel",i.iosTemplate.console_type),y.xp6(1),y.Q6J("ngForOf",i.consoleTypes),y.xp6(1),y.Q6J("ngModel",i.iosTemplate.console_auto_start),y.xp6(6),y.Q6J("formGroup",i.memoryForm),y.xp6(2),y.Q6J("ngModel",i.iosTemplate.ram),y.xp6(4),y.Q6J("ngModel",i.iosTemplate.nvram),y.xp6(4),y.Q6J("ngModel",i.iosTemplate.iomem),y.xp6(2),y.Q6J("ngModel",i.iosTemplate.disk0),y.xp6(2),y.Q6J("ngModel",i.iosTemplate.disk1),y.xp6(1),y.Q6J("ngModel",i.iosTemplate.auto_delete_disks),y.xp6(8),y.Q6J("ngIf",i.iosTemplate.chassis&&i.chassis[i.iosTemplate.platform]),y.xp6(1),y.Q6J("ngIf",i.iosTemplate.platform&&!i.chassis[i.iosTemplate.platform]),y.xp6(5),y.Q6J("ngIf",i.iosTemplate.wic0||""===i.iosTemplate.wic0),y.xp6(1),y.Q6J("ngIf",i.iosTemplate.wic1||""===i.iosTemplate.wic1),y.xp6(1),y.Q6J("ngIf",i.iosTemplate.wic2||""===i.iosTemplate.wic2),y.xp6(5),y.Q6J("formGroup",i.advancedForm),y.xp6(2),y.Q6J("ngModel",i.iosTemplate.system_id),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(42,BR))("ngModel",i.iosTemplate.mac_addr),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(43,BR))("ngModel",i.iosTemplate.idlepc),y.xp6(2),y.Q6J("ngModel",i.iosTemplate.idlemax),y.xp6(2),y.Q6J("ngModel",i.iosTemplate.idlesleep),y.xp6(2),y.Q6J("ngModel",i.iosTemplate.exec_area),y.xp6(1),y.Q6J("ngModel",i.iosTemplate.mmap),y.xp6(4),y.Q6J("ngModel",i.iosTemplate.sparsemem),y.xp6(7),y.Q6J("ngModel",i.iosTemplate.usage)}}function nL(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"app-symbols-menu",45),y.NdJ("symbolChangedEmitter",function(e){return y.CHM(n),y.oxw().symbolChanged(e)}),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("server",i.server)("symbol",i.iosTemplate.symbol)}}var iL=function(e){return{shadowed:e}},rL=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.iosService=n,this.toasterService=i,this.formBuilder=r,this.iosConfigurationService=o,this.router=a,this.isSymbolSelectionOpened=!1,this.networkAdaptersForTemplate=[],this.platforms=[],this.consoleTypes=[],this.platformsWithEtherSwitchRouterOption={},this.platformsWithChassis={},this.chassis={},this.defaultRam={},this.defaultNvram={},this.networkAdapters={},this.networkAdaptersForPlatform={},this.networkModules={},this.generalSettingsForm=this.formBuilder.group({templateName:new st.NI("",st.kI.required),defaultName:new st.NI("",st.kI.required),symbol:new st.NI("",st.kI.required),path:new st.NI("",st.kI.required),initialConfig:new st.NI("",st.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new st.NI("",st.kI.required),nvram:new st.NI("",st.kI.required),iomemory:new st.NI("",st.kI.required),disk0:new st.NI("",st.kI.required),disk1:new st.NI("",st.kI.required)}),this.advancedForm=this.formBuilder.group({systemId:new st.NI("",st.kI.required),idlemax:new st.NI("",st.kI.required),idlesleep:new st.NI("",st.kI.required),execarea:new st.NI("",st.kI.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)(y.Y36(CA),y.Y36(TM),y.Y36(gR),y.Y36(KO),y.Y36(st.qu),y.Y36(vR),y.Y36(KZ))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Dynamips IOS Router configuration"),y.qZA(),y.qZA(),y.qZA(),y.YNc(5,tL,109,44,"div",4),y.qZA(),y.YNc(6,nL,1,2,"app-symbols-menu",5)),2&e&&(y.Q6J("ngClass",y.VKq(3,iL,t.isSymbolSelectionOpened)),y.xp6(5),y.Q6J("ngIf",t.iosTemplate),y.xp6(1),y.Q6J("ngIf",t.isSymbolSelectionOpened&&t.iosTemplate))},directives:[_.mk,_.O5,VE,YE,JE,WE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,sE.hX,cO,vE.gD,st.On,_.sg,XD,st.wV,sE.R9,lt.ey,CI],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 oL(e,t){if(1&e&&(y.TgZ(0,"button",10),y._uU(1," Back "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences")}}function aL(e,t){if(1&e&&(y.TgZ(0,"button",11),y._uU(1," Add IOS router template "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences/dynamips/templates/addtemplate")}}function sL(e,t){1&e&&y._UZ(0,"app-empty-templates-list")}function lL(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",15),y.TgZ(1,"mat-list-item",16),y._uU(2),y.qZA(),y.TgZ(3,"button",17),y.TgZ(4,"mat-icon"),y._uU(5,"more_vert"),y.qZA(),y.qZA(),y.TgZ(6,"mat-menu",null,18),y.TgZ(8,"button",19),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(3).deleteTemplate(e)}),y.TgZ(9,"mat-icon"),y._uU(10,"delete"),y.qZA(),y.TgZ(11,"span"),y._uU(12,"Delete"),y.qZA(),y.qZA(),y.TgZ(13,"button",19),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(3).copyTemplate(e)}),y.TgZ(14,"mat-icon"),y._uU(15,"content_copy"),y.qZA(),y.TgZ(16,"span"),y._uU(17,"Copy"),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=t.$implicit,r=y.MAs(7);y.xp6(1),y.s9C("routerLink",i.template_id),y.xp6(1),y.Oqu(i.name),y.xp6(1),y.Q6J("matMenuTriggerFor",r)}}function cL(e,t){if(1&e&&(y.TgZ(0,"mat-nav-list"),y.YNc(1,lL,18,3,"div",14),y.qZA()),2&e){var n=y.oxw(2);y.xp6(1),y.Q6J("ngForOf",n.iosTemplates)}}function uL(e,t){if(1&e&&(y.TgZ(0,"div",12),y.TgZ(1,"div",13),y.YNc(2,cL,2,1,"mat-nav-list",6),y.qZA(),y.qZA()),2&e){var n=y.oxw();y.xp6(2),y.Q6J("ngIf",n.server)}}var dL=function(){function e(e,t,n,i){this.route=e,this.serverService=t,this.iosService=n,this.router=i,this.iosTemplates=[]}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(t){e.server=t,e.getTemplates()})},e.prototype.getTemplates=function(){var e=this;this.iosService.getTemplates(this.server).subscribe(function(t){e.iosTemplates=t.filter(function(e){return"dynamips"===e.template_type&&!e.builtin})})},e.prototype.deleteTemplate=function(e){this.deleteComponent.deleteItem(e.name,e.template_id)},e.prototype.onDeleteEvent=function(){this.getTemplates()},e.prototype.copyTemplate=function(e){this.router.navigate(["/server",this.server.id,"preferences","dynamips","templates",e.template_id,"copy"])},e.\u0275fac=function(t){return new(t||e)(y.Y36(CA),y.Y36(TM),y.Y36(gR),y.Y36(KZ))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-ios-templates"]],viewQuery:function(e,t){var n;1&e&&y.Gf(fq,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"IOS router templates"),y.qZA(),y.YNc(5,oL,2,1,"button",4),y.YNc(6,aL,2,1,"button",5),y.qZA(),y.qZA(),y.YNc(7,sL,1,0,"app-empty-templates-list",6),y.YNc(8,uL,3,1,"div",7),y.qZA(),y.TgZ(9,"app-delete-template",8,9),y.NdJ("deleteEvent",function(){return t.onDeleteEvent()}),y.qZA()),2&e&&(y.xp6(5),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",!t.iosTemplates.length),y.xp6(1),y.Q6J("ngIf",t.iosTemplates.length),y.xp6(1),y.Q6J("server",t.server))},directives:[_.O5,fq,cO,eM,mq,aP,_.sg,uP,Iq,nO,Mq,kq],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}(),hL=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.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}();function pL(e,t){if(1&e&&(y.TgZ(0,"mat-option",18),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.engine_id),y.xp6(1),y.hij(" ",n.name," ")}}function fL(e,t){if(1&e&&(y.TgZ(0,"mat-option",18),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.vmname),y.xp6(1),y.hij(" ",n.vmname," ")}}var mL=function(){return{standalone:!0}};function gL(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-checkbox",10),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw(2).gns3vm.headless=e}),y._uU(1," Run the VM in headless mode "),y.qZA()}if(2&e){var i=y.oxw(2);y.Q6J("ngModelOptions",y.DdM(2,mL))("ngModel",i.gns3vm.headless)}}function vL(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-form-field",21),y.TgZ(1,"input",25),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw(3).port=e}),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(3);y.xp6(1),y.Q6J("ngModelOptions",y.DdM(2,mL))("ngModel",i.port)}}function yL(e,t){if(1&e&&(y.TgZ(0,"form",19),y.YNc(1,vL,2,3,"mat-form-field",20),y.TgZ(2,"mat-form-field",21),y._UZ(3,"input",22),y.TgZ(4,"span",23),y._uU(5,"MB"),y.qZA(),y.qZA(),y.TgZ(6,"mat-form-field",21),y._UZ(7,"input",24),y.qZA(),y.qZA()),2&e){var n=y.oxw(2);y.Q6J("formGroup",n.vmForm),y.xp6(1),y.Q6J("ngIf","virtualbox"===n.gns3vm.engine||"vmware"===n.gns3vm.engine)}}function _L(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-radio-group",26),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw(2).gns3vm.when_exit=e}),y.TgZ(1,"mat-radio-button",27),y.NdJ("click",function(){return y.CHM(n),y.oxw(2).setCloseAction("keep")}),y._uU(2,"keep the GNS3 VM running"),y.qZA(),y.TgZ(3,"mat-radio-button",28),y.NdJ("click",function(){return y.CHM(n),y.oxw(2).setCloseAction("suspend")}),y._uU(4,"suspend the GNS3 VM"),y.qZA(),y.TgZ(5,"mat-radio-button",29),y.NdJ("click",function(){return y.CHM(n),y.oxw(2).setCloseAction("stop")}),y._uU(6,"stop the GNS3 VM"),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2);y.Q6J("ngModel",i.gns3vm.when_exit)}}function bL(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-card",9),y.TgZ(1,"mat-checkbox",10),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().gns3vm.enable=e}),y._uU(2," Enable the GNS3 VM "),y.qZA(),y.TgZ(3,"mat-form-field",11),y.TgZ(4,"mat-select",12),y.NdJ("selectionChange",function(e){return y.CHM(n),y.oxw().changeVmEngine(e)})("ngModelChange",function(e){return y.CHM(n),y.oxw().gns3vm.engine=e}),y.YNc(5,pL,2,2,"mat-option",13),y.qZA(),y.qZA(),y.TgZ(6,"mat-form-field",11),y.TgZ(7,"mat-select",14),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().gns3vm.vmname=e}),y.YNc(8,fL,2,2,"mat-option",13),y.qZA(),y.qZA(),y.YNc(9,gL,2,3,"mat-checkbox",15),y.YNc(10,yL,8,2,"form",16),y.YNc(11,_L,7,1,"mat-radio-group",17),y.qZA()}if(2&e){var i=y.oxw();y.xp6(1),y.Q6J("ngModelOptions",y.DdM(11,mL))("ngModel",i.gns3vm.enable),y.xp6(3),y.Q6J("ngModelOptions",y.DdM(12,mL))("ngModel",i.gns3vm.engine),y.xp6(1),y.Q6J("ngForOf",i.vmEngines),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(13,mL))("ngModel",i.gns3vm.vmname),y.xp6(1),y.Q6J("ngForOf",i.vms),y.xp6(1),y.Q6J("ngIf","virtualbox"===i.gns3vm.engine||"vmware"===i.gns3vm.engine),y.xp6(1),y.Q6J("ngIf","remote"!==i.gns3vm.engine),y.xp6(1),y.Q6J("ngIf","remote"!==i.gns3vm.engine)}}var wL=function(){function e(e,t,n,i,r,o){this.route=e,this.serverService=t,this.gns3vmService=n,this.router=i,this.formBuilder=r,this.toasterService=o,this.vms=[],this.vmForm=this.formBuilder.group({ram:new st.NI(null,[st.kI.required]),vcpus:new st.NI(null,[st.kI.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)(y.Y36(CA),y.Y36(TM),y.Y36(hL),y.Y36(KZ),y.Y36(st.qu),y.Y36(KO))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"GNS3 VM preferences"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.YNc(6,bL,12,14,"mat-card",5),y.TgZ(7,"div",6),y.TgZ(8,"button",7),y.NdJ("click",function(){return t.goBack()}),y._uU(9,"Cancel"),y.qZA(),y.TgZ(10,"button",8),y.NdJ("click",function(){return t.save()}),y._uU(11,"Save"),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(6),y.Q6J("ngIf",t.gns3vm))},directives:[_.O5,cO,oE,XD,st.JJ,st.On,sE.KE,vE.gD,_.sg,lt.ey,st._Y,st.JL,st.sg,mE,st.Fj,st.wV,st.u,sE.R9,cI,hI],styles:[".form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.radio-selection[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]}),e}(),SL=function(){return function(){}}(),xL=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.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}();function CL(e,t){if(1&e&&(y.TgZ(0,"mat-option",24),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function kL(e,t){if(1&e&&(y.TgZ(0,"mat-option",24),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.path),y.xp6(1),y.hij(" ",n.path," ")}}var TL=function(){return{standalone:!0}};function AL(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-form-field",13),y.TgZ(1,"mat-select",25),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iouTemplate.path=e}),y.YNc(2,kL,2,2,"mat-option",18),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(1),y.Q6J("ngModel",i.iouTemplate.path)("ngModelOptions",y.DdM(3,TL)),y.xp6(1),y.Q6J("ngForOf",i.iouImages)}}function ZL(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div"),y.TgZ(1,"input",26,27),y.NdJ("change",function(e){return y.CHM(n),y.oxw().uploadImageFile(e)}),y.qZA(),y.TgZ(3,"button",28),y.NdJ("click",function(){return y.CHM(n),y.MAs(2).click()}),y._uU(4,"Browse"),y.qZA(),y.TgZ(5,"mat-form-field",29),y._UZ(6,"input",30),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(1),y.Q6J("uploader",i.uploader)}}var ML=function(){function e(e,t,n,i,r,o,a,s){this.route=e,this.serverService=t,this.iouService=n,this.toasterService=i,this.router=r,this.formBuilder=o,this.templateMocksService=a,this.computeService=s,this.isRemoteComputerChosen=!1,this.newImageSelected=!1,this.types=["L2 image","L3 image"],this.iouImages=[],this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.iouTemplate=new SL,this.templateNameForm=this.formBuilder.group({templateName:new st.NI(null,st.kI.required)}),this.imageForm=this.formBuilder.group({imageName:new st.NI("",st.kI.required)})}return e.prototype.ngOnInit=function(){var e=this;this.uploader=new Gk({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,i,r){e.toasterService.error("An error occured: "+n)},this.uploader.onSuccessItem=function(t,n,i,r){e.getImages(),e.toasterService.success("Image uploaded")};var t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(t){e.server=t,e.getImages(),e.templateMocksService.getIouTemplate().subscribe(function(t){e.iouTemplate=t}),e.computeService.getComputes(t).subscribe(function(t){t.filter(function(e){return"vm"===e.compute_id}).length>0&&(e.isGns3VmAvailable=!0)})})},e.prototype.getImages=function(){var e=this;this.iouService.getImages(this.server).subscribe(function(t){e.iouImages=t})},e.prototype.setServerType=function(e){"gns3 vm"===e&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},e.prototype.setDiskImage=function(e){this.newImageSelected="newImage"===e},e.prototype.uploadImageFile=function(e){var t=e.target.files[0].name;this.imageForm.controls.imageName.setValue(t);var n=this.iouService.getImagePath(this.server,t);this.uploader.queue.forEach(function(e){return e.url=n});var i=this.uploader.queue[0];i.options.disableMultipart=!0,this.uploader.uploadItem(i)},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","iou","templates"])},e.prototype.addTemplate=function(){var e=this;!this.templateNameForm.invalid&&(this.newImageSelected&&!this.imageForm.invalid||!this.newImageSelected&&this.iouTemplate.path)?(this.iouTemplate.template_id=(0,QP.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)(y.Y36(CA),y.Y36(TM),y.Y36(xL),y.Y36(KO),y.Y36(KZ),y.Y36(st.qu),y.Y36(KP),y.Y36($P.X))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"New IOU device template"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"div",5),y.TgZ(7,"mat-vertical-stepper",6),y.TgZ(8,"mat-step",7),y.TgZ(9,"mat-radio-group",8),y.TgZ(10,"mat-radio-button",9),y.NdJ("click",function(){return t.setServerType("local")}),y._uU(11,"Run this IOU device locally"),y.qZA(),y.TgZ(12,"mat-radio-button",10),y.NdJ("click",function(){return t.setServerType("gns3 vm")}),y._uU(13,"Run this IOU device on the GNS3 VM"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(14,"mat-step",11),y.TgZ(15,"form",12),y.TgZ(16,"mat-form-field",13),y._UZ(17,"input",14),y.qZA(),y.qZA(),y.qZA(),y.TgZ(18,"mat-step",15),y.TgZ(19,"form",12),y.TgZ(20,"mat-radio-group",8),y.TgZ(21,"mat-radio-button",9),y.NdJ("click",function(){return t.setDiskImage("existingImage")}),y._uU(22,"Existing image"),y.qZA(),y.TgZ(23,"mat-radio-button",16),y.NdJ("click",function(){return t.setDiskImage("newImage")}),y._uU(24,"New image"),y.qZA(),y.qZA(),y.TgZ(25,"mat-form-field",13),y.TgZ(26,"mat-select",17),y.NdJ("ngModelChange",function(e){return t.selectedType=e}),y.YNc(27,CL,2,2,"mat-option",18),y.qZA(),y.qZA(),y.YNc(28,AL,3,4,"mat-form-field",19),y.YNc(29,ZL,7,1,"div",20),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(30,"div",21),y.TgZ(31,"button",22),y.NdJ("click",function(){return t.goBack()}),y._uU(32,"Cancel"),y.qZA(),y.TgZ(33,"button",23),y.NdJ("click",function(){return t.addTemplate()}),y._uU(34,"Add template"),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(7),y.Q6J("linear",!0),y.xp6(1),y.Q6J("completed",t.isGns3VmChosen||t.isLocalComputerChosen),y.xp6(4),y.Q6J("disabled",!t.isGns3VmAvailable),y.xp6(2),y.Q6J("completed",t.templateNameForm.get("templateName").value),y.xp6(1),y.Q6J("formGroup",t.templateNameForm),y.xp6(4),y.Q6J("formGroup",t.imageForm),y.xp6(7),y.Q6J("ngModel",t.selectedType)("ngModelOptions",y.DdM(11,TL)),y.xp6(1),y.Q6J("ngForOf",t.types),y.xp6(1),y.Q6J("ngIf",!t.newImageSelected),y.xp6(1),y.Q6J("ngIf",t.newImageSelected))},directives:[MD,kD,cI,hI,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,vE.gD,st.On,_.sg,_.O5,cO,lt.ey,Wk],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}(),OL=function(){function e(e,t,n,i,r,o){this.route=e,this.serverService=t,this.qemuService=n,this.toasterService=i,this.router=r,this.formBuilder=o,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new st.NI("",st.kI.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=(0,QP.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)(y.Y36(CA),y.Y36(TM),y.Y36(xL),y.Y36(KO),y.Y36(KZ),y.Y36(st.qu))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Copy IOU device template"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"mat-card",5),y.TgZ(7,"form",6),y.TgZ(8,"mat-form-field",7),y.TgZ(9,"input",8),y.NdJ("ngModelChange",function(e){return t.templateName=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(10,"div",9),y.TgZ(11,"button",10),y.NdJ("click",function(){return t.goBack()}),y._uU(12,"Cancel"),y.qZA(),y.TgZ(13,"button",11),y.NdJ("click",function(){return t.addTemplate()}),y._uU(14,"Copy template"),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(7),y.Q6J("formGroup",t.templateNameForm),y.xp6(2),y.Q6J("ngModel",t.templateName))},directives:[oE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,cO],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}(),EL=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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function PL(e,t){if(1&e&&(y.TgZ(0,"mat-option",31),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}function IL(e,t){if(1&e&&(y.TgZ(0,"mat-option",31),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function qL(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-form-field",2),y.TgZ(1,"input",32),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw(2).iouTemplate.ram=e}),y.qZA(),y.TgZ(2,"span",33),y._uU(3,"MB"),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2);y.xp6(1),y.Q6J("ngModel",i.iouTemplate.ram)}}function NL(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-form-field",2),y.TgZ(1,"input",34),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw(2).iouTemplate.nvram=e}),y.qZA(),y.TgZ(2,"span",33),y._uU(3,"MB"),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2);y.xp6(1),y.Q6J("ngModel",i.iouTemplate.nvram)}}var DL=function(){return{standalone:!0}};function RL(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",6),y.TgZ(1,"mat-accordion"),y.TgZ(2,"mat-expansion-panel"),y.TgZ(3,"mat-expansion-panel-header"),y.TgZ(4,"mat-panel-title"),y._uU(5," General settings "),y.qZA(),y.qZA(),y.TgZ(6,"form",7),y.TgZ(7,"mat-form-field",2),y.TgZ(8,"input",8),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iouTemplate.name=e}),y.qZA(),y.qZA(),y.TgZ(9,"mat-form-field",2),y.TgZ(10,"input",9),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iouTemplate.default_name_format=e}),y.qZA(),y.qZA(),y.TgZ(11,"mat-form-field",2),y.TgZ(12,"input",10),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iouTemplate.symbol=e}),y.qZA(),y.qZA(),y.TgZ(13,"button",11),y.NdJ("click",function(){return y.CHM(n),y.oxw().chooseSymbol()}),y._uU(14,"Choose symbol"),y.qZA(),y._UZ(15,"br"),y._UZ(16,"br"),y.TgZ(17,"mat-form-field",2),y.TgZ(18,"mat-select",12),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iouTemplate.category=e}),y.YNc(19,PL,2,2,"mat-option",13),y.qZA(),y.qZA(),y.TgZ(20,"input",14,15),y.NdJ("change",function(e){return y.CHM(n),y.oxw().uploadImageFile(e)}),y.qZA(),y.TgZ(22,"button",16),y.NdJ("click",function(){return y.CHM(n),y.MAs(21).click()}),y._uU(23,"Browse"),y.qZA(),y.TgZ(24,"mat-form-field",17),y.TgZ(25,"input",18),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iouTemplate.path=e}),y.qZA(),y.qZA(),y.TgZ(26,"mat-form-field",2),y.TgZ(27,"input",19),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iouTemplate.startup_config=e}),y.qZA(),y.qZA(),y.TgZ(28,"mat-form-field",2),y.TgZ(29,"input",20),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iouTemplate.private_config=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(30,"mat-form-field",21),y.TgZ(31,"mat-select",22),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iouTemplate.console_type=e}),y.YNc(32,IL,2,2,"mat-option",13),y.qZA(),y.qZA(),y.TgZ(33,"mat-checkbox",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iouTemplate.console_auto_start=e}),y._uU(34," Auto start console "),y.qZA(),y._UZ(35,"br"),y.TgZ(36,"mat-checkbox",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iouTemplate.l1_keepalives=e}),y._uU(37," Enable layer 1 keepalive messages (non-functional) "),y.qZA(),y._UZ(38,"br"),y.TgZ(39,"mat-checkbox",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().defaultSettings=e}),y._uU(40," Use default IOU values for memories "),y.qZA(),y.YNc(41,qL,4,1,"mat-form-field",24),y.YNc(42,NL,4,1,"mat-form-field",24),y.qZA(),y.TgZ(43,"mat-expansion-panel"),y.TgZ(44,"mat-expansion-panel-header"),y.TgZ(45,"mat-panel-title"),y._uU(46," Network "),y.qZA(),y.qZA(),y.TgZ(47,"form",7),y.TgZ(48,"mat-form-field",2),y.TgZ(49,"input",25),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iouTemplate.ethernet_adapters=e}),y.qZA(),y.qZA(),y.TgZ(50,"mat-form-field",2),y.TgZ(51,"input",26),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iouTemplate.serial_adapters=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(52,"mat-expansion-panel"),y.TgZ(53,"mat-expansion-panel-header"),y.TgZ(54,"mat-panel-title"),y._uU(55," Usage "),y.qZA(),y.qZA(),y.TgZ(56,"mat-form-field",2),y.TgZ(57,"textarea",27),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().iouTemplate.usage=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(58,"div",28),y.TgZ(59,"button",29),y.NdJ("click",function(){return y.CHM(n),y.oxw().goBack()}),y._uU(60,"Cancel"),y.qZA(),y.TgZ(61,"button",30),y.NdJ("click",function(){return y.CHM(n),y.oxw().onSave()}),y._uU(62,"Save"),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(6),y.Q6J("formGroup",i.generalSettingsForm),y.xp6(2),y.Q6J("ngModel",i.iouTemplate.name),y.xp6(2),y.Q6J("ngModel",i.iouTemplate.default_name_format),y.xp6(2),y.Q6J("ngModel",i.iouTemplate.symbol),y.xp6(6),y.Q6J("ngModelOptions",y.DdM(22,DL))("ngModel",i.iouTemplate.category),y.xp6(1),y.Q6J("ngForOf",i.categories),y.xp6(6),y.Q6J("ngModel",i.iouTemplate.path),y.xp6(2),y.Q6J("ngModel",i.iouTemplate.startup_config),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(23,DL))("ngModel",i.iouTemplate.private_config),y.xp6(2),y.Q6J("ngModel",i.iouTemplate.console_type),y.xp6(1),y.Q6J("ngForOf",i.consoleTypes),y.xp6(1),y.Q6J("ngModel",i.iouTemplate.console_auto_start),y.xp6(3),y.Q6J("ngModel",i.iouTemplate.l1_keepalives),y.xp6(3),y.Q6J("ngModel",i.defaultSettings),y.xp6(2),y.Q6J("ngIf",!i.defaultSettings),y.xp6(1),y.Q6J("ngIf",!i.defaultSettings),y.xp6(5),y.Q6J("formGroup",i.networkForm),y.xp6(2),y.Q6J("ngModel",i.iouTemplate.ethernet_adapters),y.xp6(2),y.Q6J("ngModel",i.iouTemplate.serial_adapters),y.xp6(6),y.Q6J("ngModel",i.iouTemplate.usage)}}function LL(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"app-symbols-menu",35),y.NdJ("symbolChangedEmitter",function(e){return y.CHM(n),y.oxw().symbolChanged(e)}),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("server",i.server)("symbol",i.iouTemplate.symbol)}}var FL=function(e){return{shadowed:e}},BL=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.iouService=n,this.toasterService=i,this.configurationService=r,this.router=o,this.formBuilder=a,this.isSymbolSelectionOpened=!1,this.defaultSettings=!0,this.consoleTypes=[],this.consoleResolutions=[],this.categories=[],this.generalSettingsForm=this.formBuilder.group({templateName:new st.NI("",st.kI.required),defaultName:new st.NI("",st.kI.required),symbol:new st.NI("",st.kI.required),path:new st.NI("",st.kI.required),initialConfig:new st.NI("",st.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new st.NI("",st.kI.required),serialAdapters:new st.NI("",st.kI.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)(y.Y36(CA),y.Y36(TM),y.Y36(xL),y.Y36(KO),y.Y36(EL),y.Y36(KZ),y.Y36(st.qu))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"IOU device configuration"),y.qZA(),y.qZA(),y.qZA(),y.YNc(5,RL,63,24,"div",4),y.qZA(),y.YNc(6,LL,1,2,"app-symbols-menu",5)),2&e&&(y.Q6J("ngClass",y.VKq(3,FL,t.isSymbolSelectionOpened)),y.xp6(5),y.Q6J("ngIf",t.iouTemplate),y.xp6(1),y.Q6J("ngIf",t.isSymbolSelectionOpened&&t.iouTemplate))},directives:[_.mk,_.O5,VE,YE,JE,WE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,cO,vE.gD,st.On,_.sg,XD,st.wV,lt.ey,sE.R9,CI],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 jL(e,t){if(1&e&&(y.TgZ(0,"button",10),y._uU(1," Back "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences")}}function zL(e,t){if(1&e&&(y.TgZ(0,"button",11),y._uU(1," Add IOU device template "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences/iou/addtemplate")}}function UL(e,t){1&e&&y._UZ(0,"app-empty-templates-list")}function HL(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",15),y.TgZ(1,"mat-list-item",16),y._uU(2),y.qZA(),y.TgZ(3,"button",17),y.TgZ(4,"mat-icon"),y._uU(5,"more_vert"),y.qZA(),y.qZA(),y.TgZ(6,"mat-menu",null,18),y.TgZ(8,"button",19),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(3).deleteTemplate(e)}),y.TgZ(9,"mat-icon"),y._uU(10,"delete"),y.qZA(),y.TgZ(11,"span"),y._uU(12,"Delete"),y.qZA(),y.qZA(),y.TgZ(13,"button",19),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(3).copyTemplate(e)}),y.TgZ(14,"mat-icon"),y._uU(15,"content_copy"),y.qZA(),y.TgZ(16,"span"),y._uU(17,"Copy"),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=t.$implicit,r=y.MAs(7);y.xp6(1),y.s9C("routerLink",i.template_id),y.xp6(1),y.Oqu(i.name),y.xp6(1),y.Q6J("matMenuTriggerFor",r)}}function YL(e,t){if(1&e&&(y.TgZ(0,"mat-nav-list"),y.YNc(1,HL,18,3,"div",14),y.qZA()),2&e){var n=y.oxw(2);y.xp6(1),y.Q6J("ngForOf",n.iouTemplates)}}function JL(e,t){if(1&e&&(y.TgZ(0,"div",12),y.TgZ(1,"div",13),y.YNc(2,YL,2,1,"mat-nav-list",6),y.qZA(),y.qZA()),2&e){var n=y.oxw();y.xp6(2),y.Q6J("ngIf",n.server)}}var GL=function(){function e(e,t,n,i){this.route=e,this.serverService=t,this.iouService=n,this.router=i,this.iouTemplates=[]}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(t){e.server=t,e.getTemplates()})},e.prototype.getTemplates=function(){var e=this;this.iouService.getTemplates(this.server).subscribe(function(t){e.iouTemplates=t.filter(function(e){return"iou"===e.template_type&&!e.builtin})})},e.prototype.deleteTemplate=function(e){this.deleteComponent.deleteItem(e.name,e.template_id)},e.prototype.onDeleteEvent=function(){this.getTemplates()},e.prototype.copyTemplate=function(e){this.router.navigate(["/server",this.server.id,"preferences","iou","templates",e.template_id,"copy"])},e.\u0275fac=function(t){return new(t||e)(y.Y36(CA),y.Y36(TM),y.Y36(xL),y.Y36(KZ))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-iou-templates"]],viewQuery:function(e,t){var n;1&e&&y.Gf(fq,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"IOU device templates"),y.qZA(),y.YNc(5,jL,2,1,"button",4),y.YNc(6,zL,2,1,"button",5),y.qZA(),y.qZA(),y.YNc(7,UL,1,0,"app-empty-templates-list",6),y.YNc(8,JL,3,1,"div",7),y.qZA(),y.TgZ(9,"app-delete-template",8,9),y.NdJ("deleteEvent",function(){return t.onDeleteEvent()}),y.qZA()),2&e&&(y.xp6(5),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",!t.iouTemplates.length),y.xp6(1),y.Q6J("ngIf",t.iouTemplates.length),y.xp6(1),y.Q6J("server",t.server))},directives:[_.O5,fq,cO,eM,mq,aP,_.sg,uP,Iq,nO,Mq,kq],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}(),WL=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)(y.Y36(CA))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Preferences"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"div",5),y.TgZ(7,"mat-nav-list"),y.TgZ(8,"mat-list-item",6),y._uU(9," GNS3 VM "),y.qZA(),y.TgZ(10,"mat-list-item",6),y._uU(11," Built-in "),y.qZA(),y.TgZ(12,"mat-list-item",6),y._uU(13," Dynamips "),y.qZA(),y.TgZ(14,"mat-list-item",6),y._uU(15," IOS on Unix "),y.qZA(),y.TgZ(16,"mat-list-item",6),y._uU(17," VPCS "),y.qZA(),y.TgZ(18,"mat-list-item",6),y._uU(19," QEMU "),y.qZA(),y.TgZ(20,"mat-list-item",6),y._uU(21," VirtualBox "),y.qZA(),y.TgZ(22,"mat-list-item",6),y._uU(23," VMware "),y.qZA(),y.TgZ(24,"mat-list-item",6),y._uU(25," Docker "),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(8),y.MGl("routerLink","/server/",t.serverId,"/preferences/gns3vm"),y.xp6(2),y.MGl("routerLink","/server/",t.serverId,"/preferences/builtin"),y.xp6(2),y.MGl("routerLink","/server/",t.serverId,"/preferences/dynamips/templates"),y.xp6(2),y.MGl("routerLink","/server/",t.serverId,"/preferences/iou/templates"),y.xp6(2),y.MGl("routerLink","/server/",t.serverId,"/preferences/vpcs/templates"),y.xp6(2),y.MGl("routerLink","/server/",t.serverId,"/preferences/qemu/templates"),y.xp6(2),y.MGl("routerLink","/server/",t.serverId,"/preferences/virtualbox/templates"),y.xp6(2),y.MGl("routerLink","/server/",t.serverId,"/preferences/vmware/templates"),y.xp6(2),y.MGl("routerLink","/server/",t.serverId,"/preferences/docker/templates"))},directives:[aP,uP,eM],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}(),VL=function(){return function(){}}(),QL=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.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),XL=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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function KL(e,t){if(1&e&&(y.TgZ(0,"mat-option",29),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n.path," ")}}function $L(e,t){if(1&e&&(y.TgZ(0,"mat-option",29),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function eF(e,t){if(1&e&&(y.TgZ(0,"mat-option",29),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n.filename," ")}}var tF=function(){return{standalone:!0}};function nF(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-select",30),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().selectedImage=e}),y.YNc(1,eF,2,2,"mat-option",17),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("ngModelOptions",y.DdM(3,tF))("ngModel",i.selectedImage),y.xp6(1),y.Q6J("ngForOf",i.qemuImages)}}function iF(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div"),y.TgZ(1,"input",31,32),y.NdJ("change",function(e){return y.CHM(n),y.oxw().uploadImageFile(e)}),y.qZA(),y.TgZ(3,"button",33),y.NdJ("click",function(){return y.CHM(n),y.MAs(2).click()}),y._uU(4,"Browse"),y.qZA(),y.TgZ(5,"mat-form-field",34),y.TgZ(6,"input",35),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().chosenImage=e}),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(1),y.Q6J("uploader",i.uploader),y.xp6(5),y.Q6J("ngModel",i.chosenImage)}}var rF=function(){function e(e,t,n,i,r,o,a,s,l){this.route=e,this.serverService=t,this.qemuService=n,this.toasterService=i,this.router=r,this.formBuilder=o,this.templateMocksService=a,this.configurationService=s,this.computeService=l,this.qemuBinaries=[],this.consoleTypes=[],this.newImageSelected=!1,this.qemuImages=[],this.chosenImage="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.qemuTemplate=new VL,this.nameForm=this.formBuilder.group({templateName:new st.NI(null,st.kI.required)}),this.memoryForm=this.formBuilder.group({ramMemory:new st.NI("256",st.kI.required)}),this.diskForm=this.formBuilder.group({fileName:new st.NI("",st.kI.required)})}return e.prototype.ngOnInit=function(){var e=this;this.uploader=new Gk({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,i,r){e.toasterService.error("An error occured: "+n)},this.uploader.onSuccessItem=function(t,n,i,r){e.qemuService.getImages(e.server).subscribe(function(t){e.qemuImages=t}),e.toasterService.success("Image uploaded")};var t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(t){e.server=t,e.templateMocksService.getQemuTemplate().subscribe(function(t){e.qemuTemplate=t}),e.qemuService.getBinaries(t).subscribe(function(t){e.qemuBinaries=t,e.qemuBinaries[0]&&(e.selectedBinary=e.qemuBinaries[0])}),e.qemuService.getImages(t).subscribe(function(t){e.qemuImages=t}),e.consoleTypes=e.configurationService.getConsoleTypes(),e.computeService.getComputes(t).subscribe(function(t){t.filter(function(e){return"vm"===e.compute_id}).length>0&&(e.isGns3VmAvailable=!0)})})},e.prototype.setServerType=function(e){"gns3 vm"===e&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},e.prototype.setDiskImage=function(e){this.newImageSelected="newImage"===e},e.prototype.uploadImageFile=function(e){var t=e.target.files[0].name;this.diskForm.controls.fileName.setValue(t);var n=this.qemuService.getImagePath(this.server,t);this.uploader.queue.forEach(function(e){return e.url=n});var i=this.uploader.queue[0];i.options&&(i.options.disableMultipart=!0),this.uploader.uploadItem(i)},e.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","qemu","templates"])},e.prototype.addTemplate=function(){var e=this;this.nameForm.invalid||this.memoryForm.invalid||!this.selectedImage&&!this.chosenImage?this.toasterService.error("Fill all required fields"):(this.qemuTemplate.ram=+this.memoryForm.get("ramMemory").value,this.qemuTemplate.qemu_path=this.selectedBinary.path,this.qemuTemplate.hda_disk_image=this.newImageSelected?this.diskForm.get("fileName").value:this.selectedImage.path,this.qemuTemplate.template_id=(0,QP.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)(y.Y36(CA),y.Y36(TM),y.Y36(QL),y.Y36(KO),y.Y36(KZ),y.Y36(st.qu),y.Y36(KP),y.Y36(XL),y.Y36($P.X))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"New QEMU VM template"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"div",5),y.TgZ(7,"mat-vertical-stepper",6),y.TgZ(8,"mat-step",7),y.TgZ(9,"mat-radio-group",8),y.TgZ(10,"mat-radio-button",9),y.NdJ("click",function(){return t.setServerType("local")}),y._uU(11,"Run this QEMU VM locally"),y.qZA(),y.TgZ(12,"mat-radio-button",10),y.NdJ("click",function(){return t.setServerType("gns3 vm")}),y._uU(13,"Run this QEMU VM on the GNS3 VM"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(14,"mat-step",11),y.TgZ(15,"form",12),y.TgZ(16,"mat-form-field",13),y._UZ(17,"input",14),y.qZA(),y._UZ(18,"br"),y.qZA(),y.qZA(),y.TgZ(19,"mat-step",15),y.TgZ(20,"form",12),y.TgZ(21,"mat-form-field",13),y.TgZ(22,"mat-select",16),y.NdJ("ngModelChange",function(e){return t.selectedBinary=e}),y.YNc(23,KL,2,2,"mat-option",17),y.qZA(),y.qZA(),y._UZ(24,"br"),y.TgZ(25,"mat-form-field",13),y._UZ(26,"input",18),y.TgZ(27,"span",19),y._uU(28,"MB"),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(29,"mat-step",20),y.TgZ(30,"mat-form-field",13),y.TgZ(31,"mat-select",21),y.NdJ("ngModelChange",function(e){return t.qemuTemplate.console_type=e}),y.YNc(32,$L,2,2,"mat-option",17),y.qZA(),y.qZA(),y.qZA(),y.TgZ(33,"mat-step",22),y.TgZ(34,"form",12),y.TgZ(35,"mat-radio-group",8),y.TgZ(36,"mat-radio-button",9),y.NdJ("click",function(){return t.setDiskImage("existingImage")}),y._uU(37,"Existing image"),y.qZA(),y.TgZ(38,"mat-radio-button",23),y.NdJ("click",function(){return t.setDiskImage("newImage")}),y._uU(39,"New image"),y.qZA(),y.qZA(),y._UZ(40,"br"),y._UZ(41,"br"),y.YNc(42,nF,2,4,"mat-select",24),y.YNc(43,iF,7,2,"div",25),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(44,"div",26),y.TgZ(45,"button",27),y.NdJ("click",function(){return t.goBack()}),y._uU(46,"Cancel"),y.qZA(),y.TgZ(47,"button",28),y.NdJ("click",function(){return t.addTemplate()}),y._uU(48,"Add template"),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(7),y.Q6J("linear",!0),y.xp6(1),y.Q6J("completed",t.isGns3VmChosen||t.isLocalComputerChosen),y.xp6(4),y.Q6J("disabled",!t.isGns3VmAvailable),y.xp6(2),y.Q6J("completed",t.nameForm.get("templateName").value),y.xp6(1),y.Q6J("formGroup",t.nameForm),y.xp6(4),y.Q6J("completed",t.memoryForm.get("ramMemory").value&&t.selectedBinary),y.xp6(1),y.Q6J("formGroup",t.memoryForm),y.xp6(2),y.Q6J("ngModel",t.selectedBinary)("ngModelOptions",y.DdM(17,tF)),y.xp6(1),y.Q6J("ngForOf",t.qemuBinaries),y.xp6(6),y.Q6J("completed",t.qemuTemplate.console_type),y.xp6(2),y.Q6J("ngModel",t.qemuTemplate.console_type)("ngModelOptions",y.DdM(18,tF)),y.xp6(1),y.Q6J("ngForOf",t.consoleTypes),y.xp6(2),y.Q6J("formGroup",t.diskForm),y.xp6(8),y.Q6J("ngIf",!t.newImageSelected),y.xp6(1),y.Q6J("ngIf",t.newImageSelected))},directives:[MD,kD,cI,hI,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,vE.gD,st.On,_.sg,st.wV,sE.R9,_.O5,cO,lt.ey,Wk],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}(),oF=function(){function e(e,t,n,i,r,o){this.route=e,this.serverService=t,this.qemuService=n,this.toasterService=i,this.router=r,this.formBuilder=o,this.qemuBinaries=[],this.templateName="",this.nameForm=this.formBuilder.group({templateName:new st.NI("",st.kI.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=(0,QP.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)(y.Y36(CA),y.Y36(TM),y.Y36(QL),y.Y36(KO),y.Y36(KZ),y.Y36(st.qu))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Copy QEMU VM template"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"mat-card",5),y.TgZ(7,"form",6),y.TgZ(8,"mat-form-field",7),y.TgZ(9,"input",8),y.NdJ("ngModelChange",function(e){return t.templateName=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(10,"div",9),y.TgZ(11,"button",10),y.NdJ("click",function(){return t.goBack()}),y._uU(12,"Cancel"),y.qZA(),y.TgZ(13,"button",11),y.NdJ("click",function(){return t.addTemplate()}),y._uU(14,"Copy template"),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(7),y.Q6J("formGroup",t.nameForm),y.xp6(2),y.Q6J("ngModel",t.templateName))},directives:[oE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,cO],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 aF(e,t){1&e&&(y.TgZ(0,"th",10),y._uU(1,"Adapter number"),y.qZA())}function sF(e,t){if(1&e&&(y.TgZ(0,"td",11),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.hij("Adapter ",n.adapter_number,"")}}function lF(e,t){1&e&&(y.TgZ(0,"th",10),y._uU(1,"Port name"),y.qZA())}function cF(e,t){if(1&e&&(y.TgZ(0,"td",11),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.hij("Ethernet ",n.adapter_number,"")}}function uF(e,t){1&e&&(y.TgZ(0,"th",10),y._uU(1,"Adapter type"),y.qZA())}function dF(e,t){if(1&e&&(y.TgZ(0,"mat-option",14),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function hF(e,t){if(1&e&&(y.TgZ(0,"td",11),y.TgZ(1,"mat-select",12),y.NdJ("ngModelChange",function(e){return t.$implicit.adapter_type=e}),y.YNc(2,dF,2,2,"mat-option",13),y.qZA(),y.qZA()),2&e){var n=t.$implicit,i=y.oxw();y.xp6(1),y.Q6J("ngModel",n.adapter_type),y.xp6(1),y.Q6J("ngForOf",i.networkTypes)}}function pF(e,t){1&e&&(y.TgZ(0,"th",10),y._uU(1,"Actions"),y.qZA())}function fF(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"td",11),y.TgZ(1,"button",15),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw().delete(e)}),y.TgZ(2,"mat-icon",16),y._uU(3,"delete"),y.qZA(),y.qZA(),y.qZA()}}function mF(e,t){1&e&&y._UZ(0,"tr",17)}function gF(e,t){1&e&&y._UZ(0,"tr",18)}var vF=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=y.Xpm({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&&(y.TgZ(0,"table",0),y.ynx(1,1),y.YNc(2,aF,2,0,"th",2),y.YNc(3,sF,2,1,"td",3),y.BQk(),y.ynx(4,4),y.YNc(5,lF,2,0,"th",2),y.YNc(6,cF,2,1,"td",3),y.BQk(),y.ynx(7,5),y.YNc(8,uF,2,0,"th",2),y.YNc(9,hF,3,2,"td",3),y.BQk(),y.ynx(10,6),y.YNc(11,pF,2,0,"th",2),y.YNc(12,fF,4,0,"td",3),y.BQk(),y.YNc(13,mF,1,0,"tr",7),y.YNc(14,gF,1,0,"tr",8),y.qZA(),y.TgZ(15,"button",9),y.NdJ("click",function(){return t.onAdd()}),y._uU(16,"Add"),y.qZA()),2&e&&(y.Q6J("dataSource",t.adapters),y.xp6(13),y.Q6J("matHeaderRowDef",t.displayedColumns),y.xp6(1),y.Q6J("matRowDefColumns",t.displayedColumns))},directives:[yP,wP,bP,_P,CP,kP,cO,SP,xP,vE.gD,st.JJ,st.On,_.sg,lt.ey,MO,nO,TP,AP],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}(),yF=["customAdapters"],_F=function(){function e(){this.networkTypes=[],this.displayedColumns=[],this.closeConfiguratorEmitter=new y.vpe,this.saveConfigurationEmitter=new y.vpe}return e.prototype.cancelConfigureCustomAdapters=function(){this.closeConfiguratorEmitter.emit(!1)},e.prototype.configureCustomAdapters=function(){var e=this;this.adapters=[],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=y.Xpm({type:e,selectors:[["app-custom-adapters"]],viewQuery:function(e,t){var n;1&e&&y.Gf(yF,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Custom adapters configuration"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"div",5),y._UZ(7,"app-custom-adapters-table",6,7),y.qZA(),y.TgZ(9,"div",8),y.TgZ(10,"button",9),y.NdJ("click",function(){return t.cancelConfigureCustomAdapters()}),y._uU(11,"Cancel"),y.qZA(),y.TgZ(12,"button",10),y.NdJ("click",function(){return t.configureCustomAdapters()}),y._uU(13,"Apply"),y.qZA(),y._UZ(14,"br"),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(7),y.Q6J("networkTypes",t.networkTypes)("displayedColumns",t.displayedColumns)("adapters",t.adapters))},directives:[vF,cO],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}(),bF=["customAdaptersConfigurator"];function wF(e,t){if(1&e&&(y.TgZ(0,"mat-option",54),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}function SF(e,t){if(1&e&&(y.TgZ(0,"mat-option",54),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.path),y.xp6(1),y.hij(" ",n.path," ")}}function xF(e,t){if(1&e&&(y.TgZ(0,"mat-option",54),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}function CF(e,t){if(1&e&&(y.TgZ(0,"mat-option",54),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}function kF(e,t){if(1&e&&(y.TgZ(0,"mat-option",54),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function TF(e,t){if(1&e&&(y.TgZ(0,"mat-option",54),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function AF(e,t){if(1&e&&(y.TgZ(0,"mat-option",54),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function ZF(e,t){if(1&e&&(y.TgZ(0,"mat-option",54),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function MF(e,t){if(1&e&&(y.TgZ(0,"mat-option",54),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function OF(e,t){if(1&e&&(y.TgZ(0,"mat-option",54),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[0]),y.xp6(1),y.AsE(" ",n[1]," (",n[0],") ")}}function EF(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-form-field",10),y.TgZ(1,"input",55),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw(2).qemuTemplate.cpu_throttling=e}),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2);y.xp6(1),y.Q6J("ngModel",i.qemuTemplate.cpu_throttling)}}function PF(e,t){if(1&e&&(y.TgZ(0,"mat-option",54),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function IF(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",8),y.TgZ(1,"mat-accordion"),y.TgZ(2,"mat-expansion-panel"),y.TgZ(3,"mat-expansion-panel-header"),y.TgZ(4,"mat-panel-title"),y._uU(5," General settings "),y.qZA(),y.qZA(),y.TgZ(6,"form",9),y.TgZ(7,"mat-form-field",10),y.TgZ(8,"input",11),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.name=e}),y.qZA(),y.qZA(),y.TgZ(9,"mat-form-field",10),y.TgZ(10,"input",12),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.default_name_format=e}),y.qZA(),y.qZA(),y.TgZ(11,"mat-form-field",10),y.TgZ(12,"input",13),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.symbol=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(13,"button",14),y.NdJ("click",function(){return y.CHM(n),y.oxw().chooseSymbol()}),y._uU(14,"Choose symbol"),y.qZA(),y._UZ(15,"br"),y._UZ(16,"br"),y.TgZ(17,"mat-form-field",10),y.TgZ(18,"mat-select",15),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.category=e}),y.YNc(19,wF,2,2,"mat-option",16),y.qZA(),y.qZA(),y.TgZ(20,"mat-form-field",10),y.TgZ(21,"input",17),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.ram=e}),y.qZA(),y.TgZ(22,"span",18),y._uU(23,"MB"),y.qZA(),y.qZA(),y.TgZ(24,"mat-form-field",10),y.TgZ(25,"input",19),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.cpus=e}),y.qZA(),y.qZA(),y.TgZ(26,"mat-form-field",10),y.TgZ(27,"mat-select",20),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.qemu_path=e}),y.YNc(28,SF,2,2,"mat-option",16),y.qZA(),y.qZA(),y.TgZ(29,"mat-form-field",10),y.TgZ(30,"mat-select",21),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.boot_priority=e}),y.YNc(31,xF,2,2,"mat-option",16),y.qZA(),y.qZA(),y.TgZ(32,"mat-form-field",10),y.TgZ(33,"mat-select",22),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.on_close=e}),y.YNc(34,CF,2,2,"mat-option",16),y.qZA(),y.qZA(),y.TgZ(35,"mat-form-field",23),y.TgZ(36,"mat-select",24),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.console_type=e}),y.YNc(37,kF,2,2,"mat-option",16),y.qZA(),y.qZA(),y.TgZ(38,"mat-checkbox",25),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.console_auto_start=e}),y._uU(39," Auto start console "),y.qZA(),y.qZA(),y.TgZ(40,"mat-expansion-panel"),y.TgZ(41,"mat-expansion-panel-header"),y.TgZ(42,"mat-panel-title"),y._uU(43," HDD "),y.qZA(),y.qZA(),y.TgZ(44,"mat-card"),y._UZ(45,"mat-card-title"),y.TgZ(46,"mat-card-subtitle"),y._uU(47," HDA (Primary Master) "),y.qZA(),y.TgZ(48,"mat-card-content"),y.TgZ(49,"mat-form-field",10),y.TgZ(50,"input",26),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.hda_disk_image=e}),y.qZA(),y.qZA(),y.TgZ(51,"mat-form-field",10),y.TgZ(52,"mat-select",27),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.hda_disk_interface=e}),y.YNc(53,TF,2,2,"mat-option",16),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(54,"mat-card"),y._UZ(55,"mat-card-title"),y.TgZ(56,"mat-card-subtitle"),y._uU(57," HDB (Primary Slave) "),y.qZA(),y.TgZ(58,"mat-card-content"),y.TgZ(59,"mat-form-field",10),y.TgZ(60,"input",26),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.hdb_disk_image=e}),y.qZA(),y.qZA(),y.TgZ(61,"mat-form-field",10),y.TgZ(62,"mat-select",27),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.hdb_disk_interface=e}),y.YNc(63,AF,2,2,"mat-option",16),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(64,"mat-card"),y._UZ(65,"mat-card-title"),y.TgZ(66,"mat-card-subtitle"),y._uU(67," HDC (Secondary Master) "),y.qZA(),y.TgZ(68,"mat-card-content"),y.TgZ(69,"mat-form-field",10),y.TgZ(70,"input",26),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.hdc_disk_image=e}),y.qZA(),y.qZA(),y.TgZ(71,"mat-form-field",10),y.TgZ(72,"mat-select",27),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.hdc_disk_interface=e}),y.YNc(73,ZF,2,2,"mat-option",16),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(74,"mat-card"),y._UZ(75,"mat-card-title"),y.TgZ(76,"mat-card-subtitle"),y._uU(77," HDD (Secondary Slave) "),y.qZA(),y.TgZ(78,"mat-card-content"),y.TgZ(79,"mat-form-field",10),y.TgZ(80,"input",26),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.hdd_disk_image=e}),y.qZA(),y.qZA(),y.TgZ(81,"mat-form-field",10),y.TgZ(82,"mat-select",27),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.hdd_disk_interface=e}),y.YNc(83,MF,2,2,"mat-option",16),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(84,"mat-expansion-panel"),y.TgZ(85,"mat-expansion-panel-header"),y.TgZ(86,"mat-panel-title"),y._uU(87," CD/DVD "),y.qZA(),y.qZA(),y.TgZ(88,"div"),y.TgZ(89,"button",28),y.NdJ("click",function(){return y.CHM(n),y.MAs(92).click()}),y._uU(90,"Browse"),y.qZA(),y.TgZ(91,"input",29,30),y.NdJ("change",function(e){return y.CHM(n),y.oxw().uploadCdromImageFile(e)}),y.qZA(),y.TgZ(93,"mat-form-field",31),y.TgZ(94,"input",32),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.cdrom_image=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(95,"mat-expansion-panel"),y.TgZ(96,"mat-expansion-panel-header"),y.TgZ(97,"mat-panel-title"),y._uU(98," Network "),y.qZA(),y.qZA(),y.TgZ(99,"mat-form-field",10),y.TgZ(100,"input",33),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.adapters=e}),y.qZA(),y.qZA(),y.TgZ(101,"mat-form-field",10),y.TgZ(102,"input",34),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.first_port_name=e}),y.qZA(),y.qZA(),y.TgZ(103,"mat-form-field",10),y.TgZ(104,"input",35),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.port_name_format=e}),y.qZA(),y.qZA(),y.TgZ(105,"mat-form-field",10),y.TgZ(106,"input",36),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.port_segment_size=e}),y.qZA(),y.qZA(),y.TgZ(107,"mat-form-field",10),y.TgZ(108,"input",37),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.mac_address=e}),y.qZA(),y.qZA(),y.TgZ(109,"mat-form-field",10),y.TgZ(110,"mat-select",38),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.adapter_type=e}),y.YNc(111,OF,2,3,"mat-option",16),y.qZA(),y.qZA(),y.TgZ(112,"button",39),y.NdJ("click",function(){return y.CHM(n),y.oxw().setCustomAdaptersConfiguratorState(!0)}),y._uU(113," Configure custom adapters"),y.qZA(),y._UZ(114,"br"),y.TgZ(115,"mat-checkbox",25),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.legacy_networking=e}),y._uU(116," Use the legacy networking mode "),y.qZA(),y.qZA(),y.TgZ(117,"mat-expansion-panel"),y.TgZ(118,"mat-expansion-panel-header"),y.TgZ(119,"mat-panel-title"),y._uU(120," Advanced "),y.qZA(),y.qZA(),y.TgZ(121,"mat-card"),y._UZ(122,"mat-card-title"),y.TgZ(123,"mat-card-subtitle"),y._uU(124," Linux boot specific settings "),y.qZA(),y.TgZ(125,"mat-card-content"),y.TgZ(126,"div"),y.TgZ(127,"button",28),y.NdJ("click",function(){return y.CHM(n),y.MAs(130).click()}),y._uU(128,"Browse"),y.qZA(),y.TgZ(129,"input",29,40),y.NdJ("change",function(e){return y.CHM(n),y.oxw().uploadInitrdFile(e)}),y.qZA(),y.TgZ(131,"mat-form-field",31),y.TgZ(132,"input",41),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.initrd=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(133,"div"),y.TgZ(134,"button",28),y.NdJ("click",function(){return y.CHM(n),y.oxw().filekerenelimage.click()}),y._uU(135," Browse "),y.qZA(),y.TgZ(136,"input",29,42),y.NdJ("change",function(e){return y.CHM(n),y.oxw().uploadKernelImageFile(e)}),y.qZA(),y.TgZ(138,"mat-form-field",31),y.TgZ(139,"input",43),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.kernel_image=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(140,"mat-form-field",10),y.TgZ(141,"input",44),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.kernel_command_line=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(142,"mat-card"),y._UZ(143,"mat-card-title"),y.TgZ(144,"mat-card-subtitle"),y._uU(145," Bios "),y.qZA(),y.TgZ(146,"mat-card-content"),y.TgZ(147,"div"),y.TgZ(148,"button",28),y.NdJ("click",function(){return y.CHM(n),y.MAs(151).click()}),y._uU(149,"Browse"),y.qZA(),y.TgZ(150,"input",29,45),y.NdJ("change",function(e){return y.CHM(n),y.oxw().uploadBiosFile(e)}),y.qZA(),y.TgZ(152,"mat-form-field",31),y.TgZ(153,"input",46),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.bios_image=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(154,"mat-card"),y._UZ(155,"mat-card-title"),y.TgZ(156,"mat-card-subtitle"),y._uU(157," Optimization "),y.qZA(),y.TgZ(158,"mat-card-content"),y.TgZ(159,"mat-checkbox",25),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().activateCpuThrottling=e}),y._uU(160," Activate CPU throttling "),y.qZA(),y.YNc(161,EF,2,1,"mat-form-field",47),y.TgZ(162,"mat-form-field",10),y.TgZ(163,"mat-select",48),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.process_priority=e}),y.YNc(164,PF,2,2,"mat-option",16),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(165,"mat-card"),y._UZ(166,"mat-card-title"),y.TgZ(167,"mat-card-subtitle"),y._uU(168," Additional settings "),y.qZA(),y.TgZ(169,"mat-card-content"),y.TgZ(170,"mat-form-field",10),y.TgZ(171,"input",49),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.options=e}),y.qZA(),y.qZA(),y.TgZ(172,"mat-checkbox",25),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.linked_clone=e}),y._uU(173," Use as a linked base VM "),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(174,"mat-expansion-panel"),y.TgZ(175,"mat-expansion-panel-header"),y.TgZ(176,"mat-panel-title"),y._uU(177," Usage "),y.qZA(),y.qZA(),y.TgZ(178,"mat-form-field",10),y.TgZ(179,"textarea",50),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuTemplate.usage=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(180,"div",51),y.TgZ(181,"button",52),y.NdJ("click",function(){return y.CHM(n),y.oxw().goBack()}),y._uU(182,"Cancel"),y.qZA(),y.TgZ(183,"button",53),y.NdJ("click",function(){return y.CHM(n),y.oxw().onSave()}),y._uU(184,"Save"),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(6),y.Q6J("formGroup",i.generalSettingsForm),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.name),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.default_name_format),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.symbol),y.xp6(6),y.Q6J("ngModel",i.qemuTemplate.category),y.xp6(1),y.Q6J("ngForOf",i.categories),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.ram),y.xp6(4),y.Q6J("ngModel",i.qemuTemplate.cpus),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.qemu_path),y.xp6(1),y.Q6J("ngForOf",i.binaries),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.boot_priority),y.xp6(1),y.Q6J("ngForOf",i.bootPriorities),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.on_close),y.xp6(1),y.Q6J("ngForOf",i.onCloseOptions),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.console_type),y.xp6(1),y.Q6J("ngForOf",i.consoleTypes),y.xp6(1),y.Q6J("ngModel",i.qemuTemplate.console_auto_start),y.xp6(12),y.Q6J("ngModel",i.qemuTemplate.hda_disk_image),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.hda_disk_interface),y.xp6(1),y.Q6J("ngForOf",i.diskInterfaces),y.xp6(7),y.Q6J("ngModel",i.qemuTemplate.hdb_disk_image),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.hdb_disk_interface),y.xp6(1),y.Q6J("ngForOf",i.diskInterfaces),y.xp6(7),y.Q6J("ngModel",i.qemuTemplate.hdc_disk_image),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.hdc_disk_interface),y.xp6(1),y.Q6J("ngForOf",i.diskInterfaces),y.xp6(7),y.Q6J("ngModel",i.qemuTemplate.hdd_disk_image),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.hdd_disk_interface),y.xp6(1),y.Q6J("ngForOf",i.diskInterfaces),y.xp6(11),y.Q6J("ngModel",i.qemuTemplate.cdrom_image),y.xp6(6),y.Q6J("ngModel",i.qemuTemplate.adapters),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.first_port_name),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.port_name_format),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.port_segment_size),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.mac_address),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.adapter_type),y.xp6(1),y.Q6J("ngForOf",i.networkTypes),y.xp6(4),y.Q6J("ngModel",i.qemuTemplate.legacy_networking),y.xp6(17),y.Q6J("ngModel",i.qemuTemplate.initrd),y.xp6(7),y.Q6J("ngModel",i.qemuTemplate.kernel_image),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.kernel_command_line),y.xp6(12),y.Q6J("ngModel",i.qemuTemplate.bios_image),y.xp6(6),y.Q6J("ngModel",i.activateCpuThrottling),y.xp6(2),y.Q6J("ngIf",i.activateCpuThrottling),y.xp6(2),y.Q6J("ngModel",i.qemuTemplate.process_priority),y.xp6(1),y.Q6J("ngForOf",i.priorities),y.xp6(7),y.Q6J("ngModel",i.qemuTemplate.options),y.xp6(1),y.Q6J("ngModel",i.qemuTemplate.linked_clone),y.xp6(7),y.Q6J("ngModel",i.qemuTemplate.usage)}}function qF(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"app-symbols-menu",56),y.NdJ("symbolChangedEmitter",function(e){return y.CHM(n),y.oxw().symbolChanged(e)}),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("server",i.server)("symbol",i.qemuTemplate.symbol)}}var NF=function(e){return{shadowed:e}},DF=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.qemuService=n,this.toasterService=i,this.configurationService=r,this.formBuilder=o,this.router=a,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.diskInterfaces=[],this.networkTypes=[],this.bootPriorities=[],this.onCloseOptions=[],this.categories=[],this.priorities=[],this.binaries=[],this.activateCpuThrottling=!0,this.isConfiguratorOpened=!1,this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.generalSettingsForm=this.formBuilder.group({templateName:new st.NI("",st.kI.required),defaultName:new st.NI("",st.kI.required),symbol:new st.NI("",st.kI.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)(y.Y36(CA),y.Y36(TM),y.Y36(QL),y.Y36(KO),y.Y36(XL),y.Y36(st.qu),y.Y36(KZ))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-qemu-virtual-machine-template-details"]],viewQuery:function(e,t){var n;1&e&&y.Gf(bF,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"QEMU VM configuration"),y.qZA(),y.qZA(),y.qZA(),y.YNc(5,IF,185,49,"div",4),y.qZA(),y.TgZ(6,"app-custom-adapters",5,6),y.NdJ("closeConfiguratorEmitter",function(e){return t.setCustomAdaptersConfiguratorState(e)})("saveConfigurationEmitter",function(e){return t.saveCustomAdapters(e)}),y.qZA(),y.YNc(8,qF,1,2,"app-symbols-menu",7)),2&e&&(y.Q6J("ngClass",y.VKq(6,NF,t.isConfiguratorOpened||t.isSymbolSelectionOpened)),y.xp6(5),y.Q6J("ngIf",t.qemuTemplate),y.xp6(1),y.Q6J("hidden",!(t.isConfiguratorOpened&&t.qemuTemplate))("networkTypes",t.networkTypes)("displayedColumns",t.displayedColumns),y.xp6(2),y.Q6J("ngIf",t.isSymbolSelectionOpened&&t.qemuTemplate))},directives:[_.mk,_.O5,_F,VE,YE,JE,WE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,cO,vE.gD,st.On,_.sg,st.wV,sE.R9,XD,oE,nE,iE,tE,lt.ey,CI],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 RF(e,t){if(1&e&&(y.TgZ(0,"button",10),y._uU(1," Back "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences")}}function LF(e,t){if(1&e&&(y.TgZ(0,"button",11),y._uU(1," Add QEMU VM template "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences/qemu/addtemplate")}}function FF(e,t){1&e&&y._UZ(0,"app-empty-templates-list")}function BF(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",15),y.TgZ(1,"mat-list-item",16),y._uU(2),y.qZA(),y.TgZ(3,"button",17),y.TgZ(4,"mat-icon"),y._uU(5,"more_vert"),y.qZA(),y.qZA(),y.TgZ(6,"mat-menu",null,18),y.TgZ(8,"button",19),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(3).deleteTemplate(e)}),y.TgZ(9,"mat-icon"),y._uU(10,"delete"),y.qZA(),y.TgZ(11,"span"),y._uU(12,"Delete"),y.qZA(),y.qZA(),y.TgZ(13,"button",19),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(3).copyTemplate(e)}),y.TgZ(14,"mat-icon"),y._uU(15,"content_copy"),y.qZA(),y.TgZ(16,"span"),y._uU(17,"Copy"),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=t.$implicit,r=y.MAs(7);y.xp6(1),y.s9C("routerLink",i.template_id),y.xp6(1),y.Oqu(i.name),y.xp6(1),y.Q6J("matMenuTriggerFor",r)}}function jF(e,t){if(1&e&&(y.TgZ(0,"mat-nav-list"),y.YNc(1,BF,18,3,"div",14),y.qZA()),2&e){var n=y.oxw(2);y.xp6(1),y.Q6J("ngForOf",n.qemuTemplates)}}function zF(e,t){if(1&e&&(y.TgZ(0,"div",12),y.TgZ(1,"div",13),y.YNc(2,jF,2,1,"mat-nav-list",6),y.qZA(),y.qZA()),2&e){var n=y.oxw();y.xp6(2),y.Q6J("ngIf",n.server)}}var UF=function(){function e(e,t,n,i){this.route=e,this.serverService=t,this.qemuService=n,this.router=i,this.qemuTemplates=[]}return e.prototype.ngOnInit=function(){var e=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(t){e.server=t,e.getTemplates()})},e.prototype.getTemplates=function(){var e=this;this.qemuService.getTemplates(this.server).subscribe(function(t){e.qemuTemplates=t.filter(function(e){return"qemu"===e.template_type&&!e.builtin})})},e.prototype.deleteTemplate=function(e){this.deleteComponent.deleteItem(e.name,e.template_id)},e.prototype.onDeleteEvent=function(){this.getTemplates()},e.prototype.copyTemplate=function(e){this.router.navigate(["/server",this.server.id,"preferences","qemu","templates",e.template_id,"copy"])},e.\u0275fac=function(t){return new(t||e)(y.Y36(CA),y.Y36(TM),y.Y36(QL),y.Y36(KZ))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-qemu-virtual-machines-templates"]],viewQuery:function(e,t){var n;1&e&&y.Gf(fq,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"QEMU VM templates"),y.qZA(),y.YNc(5,RF,2,1,"button",4),y.YNc(6,LF,2,1,"button",5),y.qZA(),y.qZA(),y.YNc(7,FF,1,0,"app-empty-templates-list",6),y.YNc(8,zF,3,1,"div",7),y.qZA(),y.TgZ(9,"app-delete-template",8,9),y.NdJ("deleteEvent",function(){return t.onDeleteEvent()}),y.qZA()),2&e&&(y.xp6(5),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",!t.qemuTemplates.length),y.xp6(1),y.Q6J("ngIf",t.qemuTemplates.length),y.xp6(1),y.Q6J("server",t.server))},directives:[_.O5,fq,cO,eM,mq,aP,_.sg,uP,Iq,nO,Mq,kq],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}(),HF=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.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}();function YF(e,t){if(1&e&&(y.TgZ(0,"mat-option",15),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n.vmname," ")}}function JF(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",5),y.TgZ(1,"mat-card",6),y.TgZ(2,"form",7),y.TgZ(3,"mat-form-field",8),y.TgZ(4,"mat-select",9),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().selectedVM=e}),y.YNc(5,YF,2,2,"mat-option",10),y.qZA(),y.qZA(),y.qZA(),y.TgZ(6,"mat-checkbox",11),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.linked_clone=e}),y._uU(7," Use as a linked base VM (experimental) "),y.qZA(),y.qZA(),y.TgZ(8,"div",12),y.TgZ(9,"button",13),y.NdJ("click",function(){return y.CHM(n),y.oxw().goBack()}),y._uU(10,"Cancel"),y.qZA(),y.TgZ(11,"button",14),y.NdJ("click",function(){return y.CHM(n),y.oxw().addTemplate()}),y._uU(12,"Add template"),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(2),y.Q6J("formGroup",i.vmForm),y.xp6(2),y.Q6J("ngModel",i.selectedVM),y.xp6(1),y.Q6J("ngForOf",i.virtualMachines),y.xp6(1),y.Q6J("ngModel",i.virtualBoxTemplate.linked_clone)}}var GF=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.virtualBoxService=n,this.toasterService=i,this.templateMocksService=r,this.router=o,this.formBuilder=a,this.vmForm=this.formBuilder.group({vm:new st.NI("",st.kI.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=(0,QP.v4)(),this.virtualBoxService.addTemplate(this.server,this.virtualBoxTemplate).subscribe(function(){e.goBack()}))},e.\u0275fac=function(t){return new(t||e)(y.Y36(CA),y.Y36(TM),y.Y36(HF),y.Y36(KO),y.Y36(KP),y.Y36(KZ),y.Y36(st.qu))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"New VirtualBox VM template"),y.qZA(),y.qZA(),y.qZA(),y.YNc(5,JF,13,4,"div",4),y.qZA()),2&e&&(y.xp6(5),y.Q6J("ngIf",t.virtualBoxTemplate))},directives:[_.O5,oE,st._Y,st.JL,st.sg,sE.KE,vE.gD,st.JJ,st.u,_.sg,XD,st.On,cO,lt.ey],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}(),WF=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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),VF=["customAdaptersConfigurator"];function QF(e,t){if(1&e&&(y.TgZ(0,"mat-option",34),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}function XF(e,t){if(1&e&&(y.TgZ(0,"mat-option",34),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function KF(e,t){if(1&e&&(y.TgZ(0,"mat-option",34),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}function $F(e,t){if(1&e&&(y.TgZ(0,"mat-option",34),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}var eB=function(){return{standalone:!0}};function tB(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",8),y.TgZ(1,"mat-accordion"),y.TgZ(2,"mat-expansion-panel"),y.TgZ(3,"mat-expansion-panel-header"),y.TgZ(4,"mat-panel-title"),y._uU(5," General settings "),y.qZA(),y.qZA(),y.TgZ(6,"form",9),y.TgZ(7,"mat-form-field",10),y.TgZ(8,"input",11),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.name=e}),y.qZA(),y.qZA(),y.TgZ(9,"mat-form-field",10),y.TgZ(10,"input",12),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.default_name_format=e}),y.qZA(),y.qZA(),y.TgZ(11,"mat-form-field",10),y.TgZ(12,"input",13),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.symbol=e}),y.qZA(),y.qZA(),y.TgZ(13,"button",14),y.NdJ("click",function(){return y.CHM(n),y.oxw().chooseSymbol()}),y._uU(14,"Choose symbol"),y.qZA(),y._UZ(15,"br"),y._UZ(16,"br"),y.TgZ(17,"mat-form-field",10),y.TgZ(18,"mat-select",15),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.category=e}),y.YNc(19,QF,2,2,"mat-option",16),y.qZA(),y.qZA(),y.TgZ(20,"mat-form-field",17),y.TgZ(21,"mat-select",18),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.console_type=e}),y.YNc(22,XF,2,2,"mat-option",16),y.qZA(),y.qZA(),y.TgZ(23,"mat-checkbox",19),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.console_auto_start=e}),y._uU(24," Auto start console "),y.qZA(),y.TgZ(25,"mat-form-field",10),y.TgZ(26,"input",20),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.ram=e}),y.qZA(),y.TgZ(27,"span",21),y._uU(28,"MB"),y.qZA(),y.qZA(),y.TgZ(29,"mat-form-field",10),y.TgZ(30,"mat-select",22),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.on_close=e}),y.YNc(31,KF,2,2,"mat-option",16),y.qZA(),y.qZA(),y.qZA(),y.TgZ(32,"mat-checkbox",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.headless=e}),y._uU(33," Start VM in headless mode "),y.qZA(),y._UZ(34,"br"),y.TgZ(35,"mat-checkbox",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.linked_clone=e}),y._uU(36," Use as a linked base VM (experimental) "),y.qZA(),y.qZA(),y.TgZ(37,"mat-expansion-panel"),y.TgZ(38,"mat-expansion-panel-header"),y.TgZ(39,"mat-panel-title"),y._uU(40," Network "),y.qZA(),y.qZA(),y.TgZ(41,"form",9),y.TgZ(42,"mat-form-field",10),y.TgZ(43,"input",24),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.adapters=e}),y.qZA(),y.qZA(),y.TgZ(44,"mat-form-field",10),y.TgZ(45,"input",25),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.first_port_name=e}),y.qZA(),y.qZA(),y.TgZ(46,"mat-form-field",10),y.TgZ(47,"input",26),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.port_name_format=e}),y.qZA(),y.qZA(),y.TgZ(48,"mat-form-field",10),y.TgZ(49,"input",27),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.port_segment_size=e}),y.qZA(),y.qZA(),y.TgZ(50,"mat-form-field",10),y.TgZ(51,"mat-select",28),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.adapter_type=e}),y.YNc(52,$F,2,2,"mat-option",16),y.qZA(),y.qZA(),y.qZA(),y.TgZ(53,"button",29),y.NdJ("click",function(){return y.CHM(n),y.oxw().setCustomAdaptersConfiguratorState(!0)}),y._uU(54," Configure custom adapters"),y.qZA(),y._UZ(55,"br"),y.TgZ(56,"mat-checkbox",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.use_any_adapter=e}),y._uU(57," Allow GNS3 to use any configured VirtualBox adapter "),y.qZA(),y.qZA(),y.TgZ(58,"mat-expansion-panel"),y.TgZ(59,"mat-expansion-panel-header"),y.TgZ(60,"mat-panel-title"),y._uU(61," Usage "),y.qZA(),y.qZA(),y.TgZ(62,"mat-form-field",10),y.TgZ(63,"textarea",30),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().virtualBoxTemplate.usage=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(64,"div",31),y.TgZ(65,"button",32),y.NdJ("click",function(){return y.CHM(n),y.oxw().goBack()}),y._uU(66,"Cancel"),y.qZA(),y.TgZ(67,"button",33),y.NdJ("click",function(){return y.CHM(n),y.oxw().onSave()}),y._uU(68,"Save"),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(6),y.Q6J("formGroup",i.generalSettingsForm),y.xp6(2),y.Q6J("ngModel",i.virtualBoxTemplate.name),y.xp6(2),y.Q6J("ngModel",i.virtualBoxTemplate.default_name_format),y.xp6(2),y.Q6J("ngModel",i.virtualBoxTemplate.symbol),y.xp6(6),y.Q6J("ngModelOptions",y.DdM(29,eB))("ngModel",i.virtualBoxTemplate.category),y.xp6(1),y.Q6J("ngForOf",i.categories),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(30,eB))("ngModel",i.virtualBoxTemplate.console_type),y.xp6(1),y.Q6J("ngForOf",i.consoleTypes),y.xp6(1),y.Q6J("ngModelOptions",y.DdM(31,eB))("ngModel",i.virtualBoxTemplate.console_auto_start),y.xp6(3),y.Q6J("ngModel",i.virtualBoxTemplate.ram),y.xp6(4),y.Q6J("ngModelOptions",y.DdM(32,eB))("ngModel",i.virtualBoxTemplate.on_close),y.xp6(1),y.Q6J("ngForOf",i.onCloseOptions),y.xp6(1),y.Q6J("ngModel",i.virtualBoxTemplate.headless),y.xp6(3),y.Q6J("ngModel",i.virtualBoxTemplate.linked_clone),y.xp6(6),y.Q6J("formGroup",i.networkForm),y.xp6(2),y.Q6J("ngModel",i.virtualBoxTemplate.adapters),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(33,eB))("ngModel",i.virtualBoxTemplate.first_port_name),y.xp6(2),y.Q6J("ngModel",i.virtualBoxTemplate.port_name_format),y.xp6(2),y.Q6J("ngModel",i.virtualBoxTemplate.port_segment_size),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(34,eB))("ngModel",i.virtualBoxTemplate.adapter_type),y.xp6(1),y.Q6J("ngForOf",i.networkTypes),y.xp6(4),y.Q6J("ngModel",i.virtualBoxTemplate.use_any_adapter),y.xp6(7),y.Q6J("ngModel",i.virtualBoxTemplate.usage)}}function nB(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"app-symbols-menu",35),y.NdJ("symbolChangedEmitter",function(e){return y.CHM(n),y.oxw().symbolChanged(e)}),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("server",i.server)("symbol",i.virtualBoxTemplate.symbol)}}var iB=function(e){return{shadowed:e}},rB=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.virtualBoxService=n,this.toasterService=i,this.formBuilder=r,this.virtualBoxConfigurationService=o,this.router=a,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.onCloseOptions=[],this.categories=[],this.networkTypes=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.isConfiguratorOpened=!1,this.generalSettingsForm=this.formBuilder.group({templateName:new st.NI("",st.kI.required),defaultName:new st.NI("",st.kI.required),symbol:new st.NI("",st.kI.required),ram:new st.NI("",st.kI.required)}),this.networkForm=this.formBuilder.group({adapters:new st.NI("",st.kI.required),nameFormat:new st.NI("",st.kI.required),size:new st.NI("",st.kI.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)(y.Y36(CA),y.Y36(TM),y.Y36(HF),y.Y36(KO),y.Y36(st.qu),y.Y36(WF),y.Y36(KZ))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-virtual-box-template-details"]],viewQuery:function(e,t){var n;1&e&&y.Gf(VF,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"VirtualBox VM configuration"),y.qZA(),y.qZA(),y.qZA(),y.YNc(5,tB,69,35,"div",4),y.qZA(),y.TgZ(6,"app-custom-adapters",5,6),y.NdJ("closeConfiguratorEmitter",function(e){return t.setCustomAdaptersConfiguratorState(e)})("saveConfigurationEmitter",function(e){return t.saveCustomAdapters(e)}),y.qZA(),y.YNc(8,nB,1,2,"app-symbols-menu",7)),2&e&&(y.Q6J("ngClass",y.VKq(6,iB,t.isConfiguratorOpened||t.isSymbolSelectionOpened)),y.xp6(5),y.Q6J("ngIf",t.virtualBoxTemplate),y.xp6(1),y.Q6J("hidden",!(t.isConfiguratorOpened&&t.virtualBoxTemplate))("networkTypes",t.networkTypes)("displayedColumns",t.displayedColumns),y.xp6(2),y.Q6J("ngIf",t.isSymbolSelectionOpened&&t.virtualBoxTemplate))},directives:[_.mk,_.O5,_F,VE,YE,JE,WE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,cO,vE.gD,st.On,_.sg,XD,st.wV,sE.R9,lt.ey,CI],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 oB(e,t){if(1&e&&(y.TgZ(0,"button",10),y._uU(1," Back "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences")}}function aB(e,t){if(1&e&&(y.TgZ(0,"button",11),y._uU(1," Add Virtual Box VM template "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences/virtualbox/addtemplate")}}function sB(e,t){1&e&&y._UZ(0,"app-empty-templates-list")}function lB(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",15),y.TgZ(1,"mat-list-item",16),y._uU(2),y.qZA(),y.TgZ(3,"button",17),y.TgZ(4,"mat-icon"),y._uU(5,"more_vert"),y.qZA(),y.qZA(),y.TgZ(6,"mat-menu",null,18),y.TgZ(8,"button",19),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(3).deleteTemplate(e)}),y.TgZ(9,"mat-icon"),y._uU(10,"delete"),y.qZA(),y.TgZ(11,"span"),y._uU(12,"Delete"),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=t.$implicit,r=y.MAs(7);y.xp6(1),y.s9C("routerLink",i.template_id),y.xp6(1),y.Oqu(i.name),y.xp6(1),y.Q6J("matMenuTriggerFor",r)}}function cB(e,t){if(1&e&&(y.TgZ(0,"mat-nav-list"),y.YNc(1,lB,13,3,"div",14),y.qZA()),2&e){var n=y.oxw(2);y.xp6(1),y.Q6J("ngForOf",n.virtualBoxTemplates)}}function uB(e,t){if(1&e&&(y.TgZ(0,"div",12),y.TgZ(1,"div",13),y.YNc(2,cB,2,1,"mat-nav-list",6),y.qZA(),y.qZA()),2&e){var n=y.oxw();y.xp6(2),y.Q6J("ngIf",n.server)}}var dB=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)(y.Y36(CA),y.Y36(TM),y.Y36(HF))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-virtual-box-templates"]],viewQuery:function(e,t){var n;1&e&&y.Gf(fq,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"VirtualBox VM templates"),y.qZA(),y.YNc(5,oB,2,1,"button",4),y.YNc(6,aB,2,1,"button",5),y.qZA(),y.qZA(),y.YNc(7,sB,1,0,"app-empty-templates-list",6),y.YNc(8,uB,3,1,"div",7),y.qZA(),y.TgZ(9,"app-delete-template",8,9),y.NdJ("deleteEvent",function(){return t.onDeleteEvent()}),y.qZA()),2&e&&(y.xp6(5),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",!t.virtualBoxTemplates.length),y.xp6(1),y.Q6J("ngIf",t.virtualBoxTemplates.length),y.xp6(1),y.Q6J("server",t.server))},directives:[_.O5,fq,cO,eM,mq,aP,_.sg,uP,Iq,nO,Mq,kq],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}(),hB=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.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}();function pB(e,t){if(1&e&&(y.TgZ(0,"mat-option",15),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n.vmname," ")}}var fB=function(){return{standalone:!0}};function mB(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",5),y.TgZ(1,"mat-card",6),y.TgZ(2,"form",7),y.TgZ(3,"mat-form-field",8),y.TgZ(4,"mat-select",9),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().selectedVM=e}),y.YNc(5,pB,2,2,"mat-option",10),y.qZA(),y.qZA(),y._UZ(6,"br"),y.TgZ(7,"mat-checkbox",11),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vmwareTemplate.linked_clone=e}),y._uU(8," Use as a linked base VM (experimental) "),y.qZA(),y.qZA(),y.qZA(),y.TgZ(9,"div",12),y.TgZ(10,"button",13),y.NdJ("click",function(){return y.CHM(n),y.oxw().goBack()}),y._uU(11,"Cancel"),y.qZA(),y.TgZ(12,"button",14),y.NdJ("click",function(){return y.CHM(n),y.oxw().addTemplate()}),y._uU(13,"Add template"),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(2),y.Q6J("formGroup",i.templateNameForm),y.xp6(2),y.Q6J("ngModel",i.selectedVM),y.xp6(1),y.Q6J("ngForOf",i.virtualMachines),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(5,fB))("ngModel",i.vmwareTemplate.linked_clone)}}var gB=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.vmwareService=n,this.toasterService=i,this.templateMocksService=r,this.router=o,this.formBuilder=a,this.templateNameForm=this.formBuilder.group({templateName:new st.NI(null,[st.kI.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=(0,QP.v4)(),this.vmwareService.addTemplate(this.server,this.vmwareTemplate).subscribe(function(){e.goBack()}))},e.\u0275fac=function(t){return new(t||e)(y.Y36(CA),y.Y36(TM),y.Y36(hB),y.Y36(KO),y.Y36(KP),y.Y36(KZ),y.Y36(st.qu))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"New VMware VM template"),y.qZA(),y.qZA(),y.qZA(),y.YNc(5,mB,14,6,"div",4),y.qZA()),2&e&&(y.xp6(5),y.Q6J("ngIf",t.vmwareTemplate))},directives:[_.O5,oE,st._Y,st.JL,st.sg,sE.KE,vE.gD,st.JJ,st.u,_.sg,XD,st.On,cO,lt.ey],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}(),vB=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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),yB=["customAdaptersConfigurator"];function _B(e,t){if(1&e&&(y.TgZ(0,"mat-option",32),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}function bB(e,t){if(1&e&&(y.TgZ(0,"mat-option",32),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function wB(e,t){if(1&e&&(y.TgZ(0,"mat-option",32),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}function SB(e,t){if(1&e&&(y.TgZ(0,"mat-option",32),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}var xB=function(){return{standalone:!0}};function CB(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",8),y.TgZ(1,"mat-accordion"),y.TgZ(2,"mat-expansion-panel"),y.TgZ(3,"mat-expansion-panel-header"),y.TgZ(4,"mat-panel-title"),y._uU(5," General settings "),y.qZA(),y.qZA(),y.TgZ(6,"form",9),y.TgZ(7,"mat-form-field",10),y.TgZ(8,"input",11),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vmwareTemplate.name=e}),y.qZA(),y.qZA(),y.TgZ(9,"mat-form-field",10),y.TgZ(10,"input",12),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vmwareTemplate.default_name_format=e}),y.qZA(),y.qZA(),y.TgZ(11,"mat-form-field",10),y.TgZ(12,"input",13),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vmwareTemplate.symbol=e}),y.qZA(),y.qZA(),y.TgZ(13,"button",14),y.NdJ("click",function(){return y.CHM(n),y.oxw().chooseSymbol()}),y._uU(14,"Choose symbol"),y.qZA(),y._UZ(15,"br"),y._UZ(16,"br"),y.TgZ(17,"mat-form-field",10),y.TgZ(18,"mat-select",15),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vmwareTemplate.category=e}),y.YNc(19,_B,2,2,"mat-option",16),y.qZA(),y.qZA(),y.TgZ(20,"mat-form-field",17),y.TgZ(21,"mat-select",18),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vmwareTemplate.console_type=e}),y.YNc(22,bB,2,2,"mat-option",16),y.qZA(),y.qZA(),y.TgZ(23,"mat-checkbox",19),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vmwareTemplate.console_auto_start=e}),y._uU(24," Auto start console "),y.qZA(),y.TgZ(25,"mat-form-field",10),y.TgZ(26,"mat-select",20),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vmwareTemplate.on_close=e}),y.YNc(27,wB,2,2,"mat-option",16),y.qZA(),y.qZA(),y.TgZ(28,"mat-checkbox",19),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vmwareTemplate.headless=e}),y._uU(29," Start VM in headless mode "),y.qZA(),y._UZ(30,"br"),y._UZ(31,"br"),y.TgZ(32,"mat-checkbox",19),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vmwareTemplate.linked_clone=e}),y._uU(33," Use as a linked base VM (experimental) "),y.qZA(),y.qZA(),y.qZA(),y.TgZ(34,"mat-expansion-panel"),y.TgZ(35,"mat-expansion-panel-header"),y.TgZ(36,"mat-panel-title"),y._uU(37," Network "),y.qZA(),y.qZA(),y.TgZ(38,"mat-form-field",10),y.TgZ(39,"input",21),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vmwareTemplate.adapters=e}),y.qZA(),y.qZA(),y.TgZ(40,"mat-form-field",10),y.TgZ(41,"input",22),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vmwareTemplate.first_port_name=e}),y.qZA(),y.qZA(),y.TgZ(42,"mat-form-field",10),y.TgZ(43,"input",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vmwareTemplate.port_name_format=e}),y.qZA(),y.qZA(),y.TgZ(44,"mat-form-field",10),y.TgZ(45,"input",24),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vmwareTemplate.port_segment_size=e}),y.qZA(),y.qZA(),y.TgZ(46,"mat-form-field",10),y.TgZ(47,"mat-select",25),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vmwareTemplate.adapter_type=e}),y.YNc(48,SB,2,2,"mat-option",16),y.qZA(),y.qZA(),y.TgZ(49,"button",26),y.NdJ("click",function(){return y.CHM(n),y.oxw().setCustomAdaptersConfiguratorState(!0)}),y._uU(50," Configure custom adapters"),y.qZA(),y._UZ(51,"br"),y.TgZ(52,"mat-checkbox",27),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vmwareTemplate.use_any_adapter=e}),y._uU(53," Allow GNS3 to override non custom VMware adapter "),y.qZA(),y.qZA(),y.TgZ(54,"mat-expansion-panel"),y.TgZ(55,"mat-expansion-panel-header"),y.TgZ(56,"mat-panel-title"),y._uU(57," Usage "),y.qZA(),y.qZA(),y.TgZ(58,"mat-form-field",10),y.TgZ(59,"textarea",28),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vmwareTemplate.usage=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(60,"div",29),y.TgZ(61,"button",30),y.NdJ("click",function(){return y.CHM(n),y.oxw().goBack()}),y._uU(62,"Cancel"),y.qZA(),y.TgZ(63,"button",31),y.NdJ("click",function(){return y.CHM(n),y.oxw().onSave()}),y._uU(64,"Save"),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(6),y.Q6J("formGroup",i.generalSettingsForm),y.xp6(2),y.Q6J("ngModel",i.vmwareTemplate.name),y.xp6(2),y.Q6J("ngModel",i.vmwareTemplate.default_name_format),y.xp6(2),y.Q6J("ngModel",i.vmwareTemplate.symbol),y.xp6(6),y.Q6J("ngModelOptions",y.DdM(27,xB))("ngModel",i.vmwareTemplate.category),y.xp6(1),y.Q6J("ngForOf",i.categories),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(28,xB))("ngModel",i.vmwareTemplate.console_type),y.xp6(1),y.Q6J("ngForOf",i.consoleTypes),y.xp6(1),y.Q6J("ngModelOptions",y.DdM(29,xB))("ngModel",i.vmwareTemplate.console_auto_start),y.xp6(3),y.Q6J("ngModelOptions",y.DdM(30,xB))("ngModel",i.vmwareTemplate.on_close),y.xp6(1),y.Q6J("ngForOf",i.onCloseOptions),y.xp6(1),y.Q6J("ngModelOptions",y.DdM(31,xB))("ngModel",i.vmwareTemplate.headless),y.xp6(4),y.Q6J("ngModelOptions",y.DdM(32,xB))("ngModel",i.vmwareTemplate.linked_clone),y.xp6(7),y.Q6J("ngModel",i.vmwareTemplate.adapters),y.xp6(2),y.Q6J("ngModel",i.vmwareTemplate.first_port_name),y.xp6(2),y.Q6J("ngModel",i.vmwareTemplate.port_name_format),y.xp6(2),y.Q6J("ngModel",i.vmwareTemplate.port_segment_size),y.xp6(2),y.Q6J("ngModel",i.vmwareTemplate.adapter_type),y.xp6(1),y.Q6J("ngForOf",i.networkTypes),y.xp6(4),y.Q6J("ngModel",i.vmwareTemplate.use_any_adapter),y.xp6(7),y.Q6J("ngModel",i.vmwareTemplate.usage)}}function kB(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"app-symbols-menu",33),y.NdJ("symbolChangedEmitter",function(e){return y.CHM(n),y.oxw().symbolChanged(e)}),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("server",i.server)("symbol",i.vmwareTemplate.symbol)}}var TB=function(e){return{shadowed:e}},AB=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.vmwareService=n,this.toasterService=i,this.formBuilder=r,this.vmwareConfigurationService=o,this.router=a,this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.isConfiguratorOpened=!1,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.categories=[],this.onCloseOptions=[],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({templateName:new st.NI("",st.kI.required),defaultName:new st.NI("",st.kI.required),symbol:new st.NI("",st.kI.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)(y.Y36(CA),y.Y36(TM),y.Y36(hB),y.Y36(KO),y.Y36(st.qu),y.Y36(vB),y.Y36(KZ))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-vmware-template-details"]],viewQuery:function(e,t){var n;1&e&&y.Gf(yB,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"VMware VM configuration"),y.qZA(),y.qZA(),y.qZA(),y.YNc(5,CB,65,33,"div",4),y.qZA(),y.TgZ(6,"app-custom-adapters",5,6),y.NdJ("closeConfiguratorEmitter",function(e){return t.setCustomAdaptersConfiguratorState(e)})("saveConfigurationEmitter",function(e){return t.saveCustomAdapters(e)}),y.qZA(),y.YNc(8,kB,1,2,"app-symbols-menu",7)),2&e&&(y.Q6J("ngClass",y.VKq(6,TB,t.isSymbolSelectionOpened||t.isConfiguratorOpened)),y.xp6(5),y.Q6J("ngIf",t.vmwareTemplate),y.xp6(1),y.Q6J("hidden",!(t.isConfiguratorOpened&&t.vmwareTemplate))("networkTypes",t.networkTypes)("displayedColumns",t.displayedColumns),y.xp6(2),y.Q6J("ngIf",t.isSymbolSelectionOpened&&t.vmwareTemplate))},directives:[_.mk,_.O5,_F,VE,YE,JE,WE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,cO,vE.gD,st.On,_.sg,XD,st.wV,lt.ey,CI],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 ZB(e,t){if(1&e&&(y.TgZ(0,"button",10),y._uU(1," Back "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences")}}function MB(e,t){if(1&e&&(y.TgZ(0,"button",11),y._uU(1," Add VMware template "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences/vmware/addtemplate")}}function OB(e,t){1&e&&y._UZ(0,"app-empty-templates-list")}function EB(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",15),y.TgZ(1,"mat-list-item",16),y._uU(2),y.qZA(),y.TgZ(3,"button",17),y.TgZ(4,"mat-icon"),y._uU(5,"more_vert"),y.qZA(),y.qZA(),y.TgZ(6,"mat-menu",null,18),y.TgZ(8,"button",19),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(3).deleteTemplate(e)}),y.TgZ(9,"mat-icon"),y._uU(10,"delete"),y.qZA(),y.TgZ(11,"span"),y._uU(12,"Delete"),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=t.$implicit,r=y.MAs(7);y.xp6(1),y.s9C("routerLink",i.template_id),y.xp6(1),y.Oqu(i.name),y.xp6(1),y.Q6J("matMenuTriggerFor",r)}}function PB(e,t){if(1&e&&(y.TgZ(0,"mat-nav-list"),y.YNc(1,EB,13,3,"div",14),y.qZA()),2&e){var n=y.oxw(2);y.xp6(1),y.Q6J("ngForOf",n.vmwareTemplates)}}function IB(e,t){if(1&e&&(y.TgZ(0,"div",12),y.TgZ(1,"div",13),y.YNc(2,PB,2,1,"mat-nav-list",6),y.qZA(),y.qZA()),2&e){var n=y.oxw();y.xp6(2),y.Q6J("ngIf",n.server)}}var qB=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)(y.Y36(CA),y.Y36(TM),y.Y36(hB))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-vmware-templates"]],viewQuery:function(e,t){var n;1&e&&y.Gf(fq,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"VMware VM templates"),y.qZA(),y.YNc(5,ZB,2,1,"button",4),y.YNc(6,MB,2,1,"button",5),y.qZA(),y.qZA(),y.YNc(7,OB,1,0,"app-empty-templates-list",6),y.YNc(8,IB,3,1,"div",7),y.qZA(),y.TgZ(9,"app-delete-template",8,9),y.NdJ("deleteEvent",function(){return t.onDeleteEvent()}),y.qZA()),2&e&&(y.xp6(5),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",!t.vmwareTemplates.length),y.xp6(1),y.Q6J("ngIf",t.vmwareTemplates.length),y.xp6(1),y.Q6J("server",t.server))},directives:[_.O5,fq,cO,eM,mq,aP,_.sg,uP,Iq,nO,Mq,kq],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}(),NB=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.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),DB=function(){function e(e,t,n,i,r,o,a,s){this.route=e,this.serverService=t,this.vpcsService=n,this.router=i,this.toasterService=r,this.templateMocksService=o,this.formBuilder=a,this.computeService=s,this.templateName="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.templateNameForm=this.formBuilder.group({templateName:new st.NI(null,[st.kI.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=(0,QP.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)(y.Y36(CA),y.Y36(TM),y.Y36(NB),y.Y36(KZ),y.Y36(KO),y.Y36(KP),y.Y36(st.qu),y.Y36($P.X))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"New VPCS node template"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"mat-card",5),y.TgZ(7,"mat-radio-group",6),y.TgZ(8,"mat-radio-button",7),y.NdJ("click",function(){return t.setServerType("local")}),y._uU(9,"Run the VPCS node locally"),y.qZA(),y.TgZ(10,"mat-radio-button",8),y.NdJ("click",function(){return t.setServerType("gns3 vm")}),y._uU(11,"Run the VPCS node on the GNS3 VM"),y.qZA(),y.qZA(),y.TgZ(12,"form",9),y.TgZ(13,"mat-form-field",10),y._UZ(14,"input",11),y.qZA(),y.qZA(),y.qZA(),y.TgZ(15,"div",12),y.TgZ(16,"button",13),y.NdJ("click",function(){return t.goBack()}),y._uU(17,"Cancel"),y.qZA(),y.TgZ(18,"button",14),y.NdJ("click",function(){return t.addTemplate()}),y._uU(19,"Add template"),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(10),y.Q6J("disabled",!t.isGns3VmAvailable),y.xp6(2),y.Q6J("formGroup",t.templateNameForm))},directives:[oE,cI,hI,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,cO],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}(),RB=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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function LB(e,t){if(1&e&&(y.TgZ(0,"mat-option",23),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}function FB(e,t){if(1&e&&(y.TgZ(0,"mat-option",23),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}var BB=function(){return{standalone:!0}};function jB(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",6),y.TgZ(1,"mat-card",7),y.TgZ(2,"form",8),y.TgZ(3,"mat-form-field",9),y.TgZ(4,"input",10),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vpcsTemplate.name=e}),y.qZA(),y.qZA(),y.TgZ(5,"mat-form-field",9),y.TgZ(6,"input",11),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vpcsTemplate.default_name_format=e}),y.qZA(),y.qZA(),y.TgZ(7,"mat-form-field",9),y.TgZ(8,"input",12),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vpcsTemplate.base_script_file=e}),y.qZA(),y.qZA(),y.TgZ(9,"mat-form-field",9),y.TgZ(10,"input",13),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vpcsTemplate.symbol=e}),y.qZA(),y.qZA(),y.TgZ(11,"button",14),y.NdJ("click",function(){return y.CHM(n),y.oxw().chooseSymbol()}),y._uU(12,"Choose symbol"),y.qZA(),y._UZ(13,"br"),y._UZ(14,"br"),y.TgZ(15,"mat-form-field",9),y.TgZ(16,"mat-select",15),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vpcsTemplate.category=e}),y.YNc(17,LB,2,2,"mat-option",16),y.qZA(),y.qZA(),y.TgZ(18,"mat-form-field",17),y.TgZ(19,"mat-select",18),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vpcsTemplate.console_type=e}),y.YNc(20,FB,2,2,"mat-option",16),y.qZA(),y.qZA(),y.TgZ(21,"mat-checkbox",19),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().vpcsTemplate.console_auto_start=e}),y._uU(22," Auto start console "),y.qZA(),y.qZA(),y.qZA(),y.TgZ(23,"div",20),y.TgZ(24,"button",21),y.NdJ("click",function(){return y.CHM(n),y.oxw().goBack()}),y._uU(25,"Cancel"),y.qZA(),y.TgZ(26,"button",22),y.NdJ("click",function(){return y.CHM(n),y.oxw().onSave()}),y._uU(27,"Save"),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(2),y.Q6J("formGroup",i.inputForm),y.xp6(2),y.Q6J("ngModel",i.vpcsTemplate.name),y.xp6(2),y.Q6J("ngModel",i.vpcsTemplate.default_name_format),y.xp6(2),y.Q6J("ngModel",i.vpcsTemplate.base_script_file),y.xp6(2),y.Q6J("ngModel",i.vpcsTemplate.symbol),y.xp6(6),y.Q6J("ngModelOptions",y.DdM(13,BB))("ngModel",i.vpcsTemplate.category),y.xp6(1),y.Q6J("ngForOf",i.categories),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(14,BB))("ngModel",i.vpcsTemplate.console_type),y.xp6(1),y.Q6J("ngForOf",i.consoleTypes),y.xp6(1),y.Q6J("ngModelOptions",y.DdM(15,BB))("ngModel",i.vpcsTemplate.console_auto_start)}}function zB(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"app-symbols-menu",24),y.NdJ("symbolChangedEmitter",function(e){return y.CHM(n),y.oxw().symbolChanged(e)}),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("server",i.server)("symbol",i.vpcsTemplate.symbol)}}var UB=function(e){return{shadowed:e}},HB=function(){function e(e,t,n,i,r,o,a){this.route=e,this.serverService=t,this.vpcsService=n,this.toasterService=i,this.formBuilder=r,this.vpcsConfigurationService=o,this.router=a,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({templateName:new st.NI("",st.kI.required),defaultName:new st.NI("",st.kI.required),scriptFile:new st.NI("",st.kI.required),symbol:new st.NI("",st.kI.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)(y.Y36(CA),y.Y36(TM),y.Y36(NB),y.Y36(KO),y.Y36(st.qu),y.Y36(RB),y.Y36(KZ))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"VPCS device configuration"),y.qZA(),y.qZA(),y.qZA(),y.YNc(5,jB,28,16,"div",4),y.qZA(),y.YNc(6,zB,1,2,"app-symbols-menu",5)),2&e&&(y.Q6J("ngClass",y.VKq(3,UB,t.isSymbolSelectionOpened)),y.xp6(5),y.Q6J("ngIf",t.vpcsTemplate),y.xp6(1),y.Q6J("ngIf",t.isSymbolSelectionOpened&&t.vpcsTemplate))},directives:[_.mk,_.O5,oE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,cO,vE.gD,st.On,_.sg,XD,lt.ey,CI],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 YB(e,t){if(1&e&&(y.TgZ(0,"button",10),y._uU(1," Back "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences")}}function JB(e,t){if(1&e&&(y.TgZ(0,"button",11),y._uU(1," Add VPCS template "),y.qZA()),2&e){var n=y.oxw();y.MGl("routerLink","/server/",n.server.id,"/preferences/vpcs/addtemplate")}}function GB(e,t){1&e&&y._UZ(0,"app-empty-templates-list")}function WB(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",15),y.TgZ(1,"mat-list-item",16),y._uU(2),y.qZA(),y.TgZ(3,"button",17),y.TgZ(4,"mat-icon"),y._uU(5,"more_vert"),y.qZA(),y.qZA(),y.TgZ(6,"mat-menu",null,18),y.TgZ(8,"button",19),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(3).deleteTemplate(e)}),y.TgZ(9,"mat-icon"),y._uU(10,"delete"),y.qZA(),y.TgZ(11,"span"),y._uU(12,"Delete"),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=t.$implicit,r=y.MAs(7);y.xp6(1),y.s9C("routerLink",i.template_id),y.xp6(1),y.Oqu(i.name),y.xp6(1),y.Q6J("matMenuTriggerFor",r)}}function VB(e,t){if(1&e&&(y.TgZ(0,"mat-nav-list"),y.YNc(1,WB,13,3,"div",14),y.qZA()),2&e){var n=y.oxw(2);y.xp6(1),y.Q6J("ngForOf",n.vpcsTemplates)}}function QB(e,t){if(1&e&&(y.TgZ(0,"div",12),y.TgZ(1,"div",13),y.YNc(2,VB,2,1,"mat-nav-list",6),y.qZA(),y.qZA()),2&e){var n=y.oxw();y.xp6(2),y.Q6J("ngIf",n.server)}}var XB=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)(y.Y36(CA),y.Y36(TM),y.Y36(NB))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-vpcs-templates"]],viewQuery:function(e,t){var n;1&e&&y.Gf(fq,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"VPCS node templates"),y.qZA(),y.YNc(5,YB,2,1,"button",4),y.YNc(6,JB,2,1,"button",5),y.qZA(),y.qZA(),y.YNc(7,GB,1,0,"app-empty-templates-list",6),y.YNc(8,QB,3,1,"div",7),y.qZA(),y.TgZ(9,"app-delete-template",8,9),y.NdJ("deleteEvent",function(){return t.onDeleteEvent()}),y.qZA()),2&e&&(y.xp6(5),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",t.server),y.xp6(1),y.Q6J("ngIf",!t.vpcsTemplates.length),y.xp6(1),y.Q6J("ngIf",t.vpcsTemplates.length),y.xp6(1),y.Q6J("server",t.server))},directives:[_.O5,fq,cO,eM,mq,aP,_.sg,uP,Iq,nO,Mq,kq],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}(),KB=n(33931),$B=n(18419),ej=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,LO.ZT)(t,e),t.prototype.getItemKey=function(e){return e.id},t}($B.o),tj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,LO.ZT)(t,e),t.\u0275fac=function(){var e;return function(n){return(e||(e=y.n5z(t)))(n||t)}}(),t.\u0275prov=y.Yz7({token:t,factory:t.\u0275fac}),t}(ej),nj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,LO.ZT)(t,e),t.\u0275fac=function(){var e;return function(n){return(e||(e=y.n5z(t)))(n||t)}}(),t.\u0275prov=y.Yz7({token:t,factory:t.\u0275fac}),t}(ej),ij=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,LO.ZT)(t,e),t.\u0275fac=function(){var e;return function(n){return(e||(e=y.n5z(t)))(n||t)}}(),t.\u0275prov=y.Yz7({token:t,factory:t.\u0275fac}),t}(ej),rj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,LO.ZT)(t,e),t.\u0275fac=function(){var e;return function(n){return(e||(e=y.n5z(t)))(n||t)}}(),t.\u0275prov=y.Yz7({token:t,factory:t.\u0275fac}),t}(ej),oj=function(){return function(){}}(),aj=function(){return function(){}}(),sj=function(){function e(){}return e.prototype.calculate=function(e,t){var n=document.createElement("text");n.innerText=e,n.setAttribute("fill","#00000"),n.setAttribute("fill-opacity","0"),n.setAttribute("style",t),document.documentElement.appendChild(n);var i=n.getBoundingClientRect();return document.documentElement.removeChild(n),{width:i.width,height:i.height}},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),lj=n(59473),cj=function(){function e(){}return e.prototype.fix=function(e){var t=lj.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")}})}),lj.generate(t)},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),uj=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=lj.parse(e,{context:"declarationList"}),n=null,i=null,r=!0;if(t.children.forEach(function(e){"font-family"===e.property&&e.value&&e.value.children&&e.value.children.forEach(function(e){"Identifier"===e.type&&(n=e),"String"===e.type&&(n=e,r=!1)}),"font-size"===e.property&&e.value&&e.value.children&&e.value.children.forEach(function(e){"Dimension"===e.type&&(i=e)})}),i&&n){var o=i.value,a=this.fix({font_family:(r?n.name:n.value).split('"').join(""),font_size:parseInt(o,10)});r?n.name=a.font_family:n.value=a.font_family,i.value=a.font_size}return lj.generate(t)},e.DEFAULT_FONT="TypeWriter",e.DEFAULT_SIZE=10,e.REPLACE_BY_FONT="Noto Sans",e.REPLACE_BY_SIZE=11,e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),dj=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 aj;n.rotation=e.rotation,n.style=e.style,n.text=e.text,n.x=e.x,n.y=e.y,n.originalX=e.x,n.originalY=e.y,void 0!==t&&(n.id=t.node_id,n.nodeId=t.node_id);var i=this.cssFixer.fix(n.style),r=this.fontFixer.fixStyles(i),o=this.fontBBoxCalculator.calculate(n.text,r);return null!==n.x&&(n.x+=3),null!==n.y&&(n.y+=o.height),n},e.\u0275fac=function(t){return new(t||e)(y.LFG(sj),y.LFG(cj),y.LFG(uj))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),hj=function(){return function(){}}(),pj=function(){function e(){}return e.prototype.convert=function(e){var t=new hj;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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),fj=function(){function e(e,t,n,i,r){this.labelToMapLabel=e,this.portToMapPort=t,this.fontBBoxCalculator=n,this.cssFixer=i,this.fontFixer=r}return e.prototype.convert=function(e){var t=this,n=new oj;if(n.id=e.node_id,n.commandLine=e.command_line,n.computeId=e.compute_id,n.console=e.console,n.consoleHost=e.console_host,n.consoleType=e.console_type,n.firstPortName=e.first_port_name,n.height=e.height,n.label=this.labelToMapLabel?this.labelToMapLabel.convert(e.label,{node_id:e.node_id}):void 0,n.locked=e.locked,n.name=e.name,n.nodeDirectory=e.node_directory,n.nodeType=e.node_type,n.portNameFormat=e.port_name_format,n.portSegmentSize=e.port_segment_size,n.ports=e.ports?e.ports.map(function(e){return t.portToMapPort.convert(e)}):[],n.projectId=e.project_id,n.status=e.status,n.symbol=e.symbol,n.symbolUrl=e.symbol_url,n.usage=e.usage,n.width=e.width,n.x=e.x,n.y=e.y,n.z=e.z,void 0!==n.label){var i=this.cssFixer.fix(n.label.style),r=this.fontFixer.fixStyles(i),o=this.fontBBoxCalculator.calculate(n.label.text,r);null!==e.label.x&&null!==e.label.y||(n.label.x=e.width/2-o.width/2+3,n.label.y=-8)}return n},e.\u0275fac=function(t){return new(t||e)(y.LFG(dj),y.LFG(pj),y.LFG(sj),y.LFG(cj),y.LFG(uj))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),mj=function(){return function(){this.isSelected=!1,this.isMultiplied=!1}}(),gj=function(){return function(){}}(),vj=function(){function e(e){this.labelToMapLabel=e}return e.prototype.convert=function(e,t){var n=new gj;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.\u0275fac=function(t){return new(t||e)(y.LFG(dj))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),yj=function(){function e(e){this.linkNodeToMapLinkNode=e}return e.prototype.convert=function(e){var t=this,n=new mj;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.\u0275fac=function(t){return new(t||e)(y.LFG(vj))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),_j=function(){return function(){}}(),bj=function(){function e(){}return e.prototype.convert=function(e){var t=new _j;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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),wj=function(){return function(){}}(),Sj=function(){function e(){}return e.prototype.convert=function(e){var t=new wj;return t.id=e.symbol_id,t.builtin=e.builtin,t.filename=e.filename,t.raw=e.raw,t},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),xj=function(){return function(e,t,n,i){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===i&&(i=[]),this.index=e,this.nodes=t,this.drawings=n,this.links=i}}(),Cj=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 xj,this.layers[e].index=Number(e)),this.layers[e]},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),kj=function(){function e(){this.LINK_WIDTH=2}return e.prototype.linkTranslation=function(e,t,n){var i,r,o=n.y-t.y;if(0===o)i=0,r=e;else{var a=Math.atan((n.x-t.x)/o);i=-e*Math.cos(a),r=e*Math.sin(a)}return{dx:i,dy:r}},e.prototype.assignDataToLinks=function(e){var t=this,n={};e.forEach(function(e,i){var r=e.source.id,o=e.target.id,a=r<o?r+","+o:o+","+r,s=1;a in n?s=n[a].push(i):n[a]=[i],e.distance=s%2==0?s*t.LINK_WIDTH:(1-s)*t.LINK_WIDTH})},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Tj=function(){function e(e,t,n,i,r,o,a,s,l,c){this.mapNodesDataSource=e,this.mapLinksDataSource=t,this.mapDrawingsDataSource=n,this.mapSymbolsDataSource=i,this.nodeToMapNode=r,this.linkToMapLink=o,this.drawingToMapDrawing=a,this.symbolToMapSymbol=s,this.layersManager=l,this.multiLinkCalculator=c}return e.prototype.setNodes=function(e){var t=this;if(e){var n=e.map(function(e){return t.nodeToMapNode.convert(e)});this.mapNodesDataSource.set(n),this.assignDataToLinks(),this.onDataUpdate()}},e.prototype.setLinks=function(e){var t=this;if(e){var n=e.map(function(e){return t.linkToMapLink.convert(e)});this.mapLinksDataSource.set(n),this.assignDataToLinks(),this.onDataUpdate()}},e.prototype.setDrawings=function(e){var t=this;if(e){var n=e.map(function(e){return t.drawingToMapDrawing.convert(e)});this.mapDrawingsDataSource.set(n),this.onDataUpdate()}},e.prototype.setSymbols=function(e){var t=this;if(e){var n=e.map(function(e){return t.symbolToMapSymbol.convert(e)});this.mapSymbolsDataSource.set(n)}},e.prototype.getNodes=function(){return this.mapNodesDataSource.getItems()},e.prototype.getLinks=function(){return this.mapLinksDataSource.getItems()},e.prototype.getDrawings=function(){return this.mapDrawingsDataSource.getItems()},e.prototype.getSymbols=function(){return this.mapSymbolsDataSource.getItems()},e.prototype.onDataUpdate=function(){this.layersManager.clear(),this.layersManager.setNodes(this.getNodes()),this.layersManager.setLinks(this.getLinks()),this.layersManager.setDrawings(this.getDrawings())},e.prototype.assignDataToLinks=function(){var e={};this.getNodes().forEach(function(t){e[t.id]=t}),this.getLinks().forEach(function(t){var n=t.nodes[0].nodeId,i=t.nodes[1].nodeId;n in e&&(t.source=e[n]),i in e&&(t.target=e[i]),t.source&&t.target&&(t.x=t.source.x+.5*(t.target.x-t.source.x),t.y=t.source.y+.5*(t.target.y-t.source.y))}),this.multiLinkCalculator.assignDataToLinks(this.getLinks())},e.\u0275fac=function(t){return new(t||e)(y.LFG(tj),y.LFG(nj),y.LFG(ij),y.LFG(rj),y.LFG(fj),y.LFG(yj),y.LFG(bj),y.LFG(Sj),y.LFG(Cj),y.LFG(kj))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),Aj=function(){return function(e,t){this.x=e,this.y=t}}(),Zj=function(){return function(e,t){this.width=e,this.height=t}}(),Mj=function(){return function(e,t,n){this.x=e,this.y=t,this.k=n}}(),Oj=function(){function e(){this.centerZeroZeroPoint=!0,this.size=new Zj(0,0),this.transformation=new Mj(0,0,1)}return e.prototype.getZeroZeroTransformationPoint=function(){return this.centerZeroZeroPoint?new Aj(this.size.width/2,this.size.height/2):new Aj(0,0)},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Ej=function(){function e(){this.changesDetected=new y.vpe,this.hasBeenDrawn=!1}return e.prototype.detectChanges=function(){this.changesDetected.emit(!0)},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Pj=function(){function e(){}return e.prototype.getOptimalSize=function(e,t){var n=document.documentElement.clientWidth,i=document.documentElement.clientHeight;return e>n&&(n=e),t>i&&(i=t),new Zj(n,i)},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Ij=function(){function e(){this.isReadOnly=!1}return e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),qj=function(){return function(){}}(),Nj=function(e){function t(t){var n=e.call(this)||this;return n.datum=t,n}return(0,LO.ZT)(t,e),t}(qj),Dj=function(e){function t(t){var n=e.call(this)||this;return n.datum=t,n}return(0,LO.ZT)(t,e),t}(qj),Rj=function(e){function t(t){var n=e.call(this)||this;return n.datum=t,n}return(0,LO.ZT)(t,e),t}(qj),Lj=function(){function e(){this.start=new y.vpe,this.drag=new y.vpe,this.end=new y.vpe}return e.prototype.call=function(e){e.call(this.behaviour())},e.prototype.behaviour=function(){var e,t,n,i=this;return uc().on("start",function(r){t=sr.sourceEvent.clientX,n=sr.sourceEvent.clientY,(e=new Nj(r)).dx=sr.dx,e.dy=sr.dy,e.x=sr.x,e.y=sr.y,i.start.emit(e)}).on("drag",function(e){var r=new Dj(e);r.dx=sr.sourceEvent.clientX-t,r.dy=sr.sourceEvent.clientY-n,t=sr.sourceEvent.clientX,n=sr.sourceEvent.clientY,i.drag.emit(r)}).on("end",function(t){var n=new Rj(t);n.dx=sr.x-e.x,n.dy=sr.y-e.y,i.end.emit(n)})},e}(),Fj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,LO.ZT)(t,e),t}(function(){return function(e,t,n){this.datum=e,this.dx=t,this.dy=n}}()),Bj=function(){return function(e,t,n,i,r){this.datum=e,this.x=t,this.y=n,this.width=i,this.height=r}}(),jj=function(){return function(e,t){this.x=e,this.y=t}}(),zj=function(){return function(e,t,n){this.datum=e,this.x=t,this.y=n}}(),Uj=function(){return function(e,t,n){this.savedText=e,this.x=t,this.y=n}}(),Hj=function(){return function(e,t,n){this.textDrawingId=e,this.editedText=t,this.textElement=n}}(),Yj=function(){return function(e,t){this.event=e,this.drawing=t}}(),Jj=function(){return function(e,t){this.event=e,this.link=t}}(),Gj=function(){return function(e,t){this.event=e,this.interfaceLabel=t}}(),Wj=function(){return function(e,t){this.event=e,this.label=t}}(),Vj=function(){function e(){this.selection={},this.selected=new y.vpe,this.unselected=new y.vpe}return e.prototype.setSelected=function(e){var t=this,n=this.convertToKeyDict(e),i=Object.keys(n).filter(function(e){return!t.isSelectedByKey(e)}).map(function(e){return n[e]}),r=Object.keys(this.selection).filter(function(e){return!(e in n)}).map(function(e){return t.selection[e]});this.selection=n,i.length>0&&this.selected.emit(i),r.length>0&&this.unselected.emit(r)},e.prototype.getSelected=function(){var e=this;return Object.keys(this.selection).map(function(t){return e.selection[t]})},e.prototype.isSelected=function(e){var t=this.getKey(e);return this.isSelectedByKey(t)},e.prototype.isSelectedByKey=function(e){return e in this.selection},e.prototype.getKey=function(e){return e.constructor.name+"-"+e.id},e.prototype.convertToKeyDict=function(e){var t=this,n={};return e.forEach(function(e){n[t.getKey(e)]=e}),n},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Qj=function(){function e(e,t,n,i){this.cssFixer=e,this.fontFixer=t,this.selectionManager=n,this.mapSettings=i,this.onContextMenu=new y.vpe,this.draggable=new Lj,this.enabled=!0}return e.prototype.setEnabled=function(e){this.enabled=e},e.prototype.draw=function(e){var t=this,n=this,i=e.selectAll("g.link_node_position").data(function(e){return[[e.source,e.nodes[0]],[e.target,e.nodes[1]]]}),r=i.enter().append("g").classed("link_node_position",!0),o=i.merge(r);o.attr("transform",function(e){return"translate("+e[0].x+", "+e[0].y+")"});var a=o.selectAll("g.interface_label_container").data(function(e){return t.enabled?[e[1]]:[]}),s=a.enter().append("g").classed("interface_label_container",!0);s.append("rect").attr("class","interface_label_selection"),s.append("text").attr("class","interface_label noselect").attr("interface_label_id",function(e){return""+e.id});var l=a.merge(s).on("contextmenu",function(e,t){event.preventDefault(),n.onContextMenu.emit(new Gj(event,e))});l.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+")"}),l.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=wr(this),n=l.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(l)},e.SURROUNDING_TEXT_BORDER=5,e.\u0275fac=function(t){return new(t||e)(y.LFG(cj),y.LFG(uj),y.LFG(Vj),y.LFG(Ij))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),Xj=function(){return function(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i}}(),Kj=function(){function e(){this.selected=new x.xQ}return e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),$j=function(){function e(e,t){this.context=e,this.selectionEventSource=t,this.rectangleSelected=new x.xQ,this.contextMenuOpened=new y.vpe,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==sr.button)return t.on("contextmenu",function(){sr.preventDefault()}),void n.contextMenuOpened.emit(sr);var i=wr(window),r=this.parentElement,o=n.transformation(Zr(r));n.startSelection(o),t.selectAll(e.SELECTABLE_CLASS).classed("selected",!1),i.on("mousemove.selection",function(){var e=n.transformation(Zr(r));n.moveSelection(o,e)}).on("mouseup.selection",function(){var e=n.transformation(Zr(r));n.endSelection(o,e),i.on("mousemove.selection",null).on("mouseup.selection",null)})})},e.prototype.deactivate=function(e){e.on("mousedown",null)},e.prototype.draw=function(e,t){var n=e.select("g.canvas");if(!n.select("g.selection-line-tool").node()){var i=n.append("g");i.attr("class","selection-line-tool"),this.path=i.append("path"),this.path.attr("class","selection").attr("visibility","hidden")}var r=n.select("g.selection-line-tool"),o=r.attr("status");"activated"!==o&&this.enabled&&(this.activate(e),r.attr("activated")),"deactivated"===o||this.enabled||(this.deactivate(e),r.attr("deactivated"))},e.prototype.startSelection=function(e){this.path.attr("d",this.rect(e[0],e[1],0,0)).attr("visibility","visible")},e.prototype.moveSelection=function(e,t){var n=e[0]/this.context.transformation.k,i=e[1]/this.context.transformation.k;this.path.attr("d",this.rect(n,i,t[0]/this.context.transformation.k-n,t[1]/this.context.transformation.k-i)),this.selectedEvent(e,t)},e.prototype.endSelection=function(e,t){this.path.attr("visibility","hidden"),this.selectedEvent(e,t)},e.prototype.selectedEvent=function(e,t){var n=Math.min(e[0],t[0]),i=Math.min(e[1],t[1]),r=Math.abs(e[0]-t[0]),o=Math.abs(e[1]-t[1]);this.selectionEventSource.selected.next(new Xj(n,i,r,o))},e.prototype.rect=function(e,t,n,i){return"M"+[e,t]+" l"+[n,0]+" l"+[0,i]+" l"+[-n,0]+"z"},e.prototype.transformation=function(e){var t=this.context.getZeroZeroTransformationPoint();return[e[0]-t.x-this.context.transformation.x,e[1]-t.y-this.context.transformation.y]},e.SELECTABLE_CLASS=".selectable",e.\u0275fac=function(t){return new(t||e)(y.LFG(Oj),y.LFG(Kj))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),ez=function(){function e(e){this.context=e,this.enabled=!1,this.needsDeactivate=!1,this.needsActivate=!1,this.zoom=wk().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"===sr.type}),this.zoom.on("zoom",function(){var n=e.select("g.canvas"),i=sr;n.attr("transform",function(){return t.context.transformation.x=i.transform.x,t.context.transformation.y=i.transform.y,t.context.transformation.k=i.transform.k,"translate("+(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x)+", "+(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y)+") scale("+t.context.transformation.k+")"})}),e.call(this.zoom)},e.prototype.deactivate=function(e){e.on("mousedown.zoom",null),this.zoom.on("zoom",null)},e.\u0275fac=function(t){return new(t||e)(y.LFG(Oj))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),tz=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,LO.ZT)(t,e),t}(function(){return function(e,t){this.event=e,this.node=t}}()),nz=function(){function e(e,t,n,i){this.cssFixer=e,this.fontFixer=t,this.selectionManager=n,this.mapSettings=i,this.onContextMenu=new y.vpe,this.draggable=new Lj}return e.prototype.redrawLabel=function(e,t){this.drawLabel(this.selectLabel(e,t))},e.prototype.draw=function(e){var t=this,n=e.selectAll("g.label_container").data(function(e){return[e.label]}),i=n.enter().append("g").attr("class","label_container").attr("label_id",function(e){return e.id}),r=n.merge(i).on("contextmenu",function(e,n){event.preventDefault(),t.onContextMenu.emit(new Wj(event,e))});this.drawLabel(r),n.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(n)},e.prototype.drawLabel=function(e){var t=this,n=e.selectAll("g.label_body").data(function(e){return[e]}),i=n.enter().append("g").attr("class","label_body");i.append("text").attr("class","label"),i.append("rect").attr("class","label_selection");var r=n.merge(i);r.select("text.label").attr("label_id",function(e){return e.id}).attr("style",function(e){var n=t.cssFixer.fix(e.style);return t.fontFixer.fixStyles(n)}).text(function(e){return e.text}).attr("x",function(e){return e.x}).attr("y",function(e){return e.y}).attr("transform",function(e){return"rotate("+e.rotation+", "+e.x+", "+e.y+")"}),r.select("rect.label_selection").attr("visibility",function(e){return t.selectionManager.isSelected(e)?"visible":"hidden"}).attr("stroke","black").attr("stroke-dasharray","3,3").attr("stroke-width","0.5").attr("fill","none").each(function(e){var t=wr(this),n=r.select('text[label_id="'+e.id+'"]').node().getBBox();t.attr("width",n.width+4),t.attr("height",n.height+4),t.attr("x",n.x-2),t.attr("y",n.y-2),t.attr("transform","rotate("+e.rotation+", "+e.x+", "+e.y+")")})},e.prototype.selectLabel=function(e,t){return e.selectAll('g.label_container[label_id="'+t.id+'"]')},e.NODE_LABEL_MARGIN=3,e.\u0275fac=function(t){return new(t||e)(y.LFG(cj),y.LFG(uj),y.LFG(Vj),y.LFG(Ij))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),iz=function(){function e(){this.dragged=new y.vpe,this.labelDragged=new y.vpe,this.clicked=new y.vpe}return e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),rz=function(){function e(){this.symbolScalingSubject=new x.xQ,this.isScrollDisabled=new x.xQ,this.isMapLocked=new x.xQ,this.isTopologySummaryVisible=!0,this.isLogConsoleVisible=!1,this.isLayerNumberVisible=!1,this.logConsoleSubject=new x.xQ,this.mapRenderedEmitter=new y.vpe,this.showInterfaceLabels=!0,this.integrateLinkLabelsToLinks=!0,this.openConsolesInWidget=!1,this.isLayerNumberVisible="true"===localStorage.getItem("layersVisibility"),localStorage.getItem("integrateLinkLabelsToLinks")&&(this.integrateLinkLabelsToLinks="true"===localStorage.getItem("integrateLinkLabelsToLinks")),localStorage.getItem("openConsolesInWidget")&&(this.openConsolesInWidget="true"===localStorage.getItem("openConsolesInWidget")),localStorage.getItem("symbolScaling")?localStorage.getItem("symbolScaling"):localStorage.setItem("symbolScaling","true")}return e.prototype.getSymbolScaling=function(){return"true"===localStorage.getItem("symbolScaling")},e.prototype.setSymbolScaling=function(e){e?localStorage.setItem("symbolScaling","true"):localStorage.setItem("symbolScaling","false"),this.symbolScalingSubject.next(e)},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.prototype.toggleOpenConsolesInWidget=function(e){this.openConsolesInWidget=e,localStorage.removeItem("openConsolesInWidget"),e?localStorage.setItem("openConsolesInWidget","true"):localStorage.setItem("openConsolesInWidget","false")},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}(),oz=function(){function e(e,t,n,i,r){this.graphDataManager=e,this.selectionManager=t,this.labelWidget=n,this.nodesEventSource=i,this.mapSettingsService=r,this.onContextMenu=new y.vpe,this.onContextConsoleMenu=new y.vpe,this.onNodeClicked=new y.vpe}return e.prototype.draw=function(e){var t=this,n=this,i=e.selectAll("g.node_body").data(function(e){return[e]}),r=i.enter().append("g").attr("class","node_body");r.append("image");var o=i.merge(r).classed("selected",function(e){return t.selectionManager.isSelected(e)}).on("click",function(e){t.nodesEventSource.clicked.emit(new zj(e,sr.pageX,sr.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){sr.preventDefault(),n.onContextMenu.emit(new tz(sr,e))}).on("dblclick",function(e,t){sr.preventDefault(),n.onContextConsoleMenu.emit(new tz(sr,e))}).attr("xnode:href",function(e){return e.symbolUrl}).attr("width",function(e){return e.width?e.width:60}).attr("height",function(e){return e.height?e.height:60}).attr("x",function(e){return 0}).attr("y",function(e){return 0}).on("mouseover",function(e){wr(this).attr("class","over")}).on("mouseout",function(e){wr(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.\u0275fac=function(t){return new(t||e)(y.LFG(Tj),y.LFG(Vj),y.LFG(nz),y.LFG(iz),y.LFG(rz))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),az=function(){function e(e,t){this.nodeWidget=e,this.mapSettings=t,this.draggable=new Lj}return e.prototype.redrawNode=function(e,t){this.nodeWidget.draw(this.selectNode(e,t))},e.prototype.draw=function(e){var t=e.selectAll("g.node").data(function(e){return e.nodes?e.nodes:[]},function(e){return e.id}),n=t.enter().append("g").attr("class","node").attr("node_id",function(e){return e.id}),i=t.merge(n);this.nodeWidget.draw(i),t.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(i)},e.prototype.selectNode=function(e,t){return e.selectAll('g.node[node_id="'+t.id+'"]')},e.NODE_LABEL_MARGIN=3,e.\u0275fac=function(t){return new(t||e)(y.LFG(oz),y.LFG(Ij))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),sz=function(){return function(){}}(),lz=function(){function e(){this.drawingLine=new sz,this.drawing=!1,this.data={}}return e.prototype.start=function(e,t,n){var i=this;this.drawing=!0,this.data=n,this.drawingLine.start=new Aj(e,t),this.drawingLine.end=new Aj(e,t),this.selection.on("mousemove",function(e,t){var n=Zr(i.selection.select("g.canvas").node());i.drawingLine.end.x=n[0],i.drawingLine.end.y=n[1],i.draw(null,null)}),this.draw(null,null)},e.prototype.isDrawing=function(){return this.drawing},e.prototype.stop=function(){return this.drawing=!1,this.selection.on("mousemove",null),this.draw(null,null),this.data},e.prototype.connect=function(e,t){this.selection=e},e.prototype.draw=function(e,t){var n=this.selection.select("g.canvas");n.select("g.drawing-line-tool").node()||n.append("g").attr("class","drawing-line-tool");var i=[];this.drawing&&(i=[[[this.drawingLine.start.x,this.drawingLine.start.y],[this.drawingLine.end.x,this.drawingLine.end.y]]]);var r=IS(),o=this.selection.select("g.drawing-line-tool").selectAll("path").data(i),a=o.enter().append("path");o.merge(a).attr("d",r).attr("stroke","#000").attr("stroke-width","2"),o.exit().remove()},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),cz=function(){return function(e,t,n,i){this.x=e,this.y=t,this.status=n,this.port=i}}(),uz=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=wr(this),i=n.select("path"),r=[];if(i.node()){var o=i.node().getPointAtLength(80),a=i.node().getPointAtLength(i.node().getTotalLength()-80);if(i.node().getTotalLength()>220&&e.source&&e.target){var s=e.nodes.find(function(t){return t.nodeId===e.source.id}).label.text,l=e.nodes.find(function(t){return t.nodeId===e.target.id}).label.text;r=[new cz(o.x,o.y,e.capturing&&e.suspend?"suspended":e.source.status,s),new cz(a.x,a.y,e.capturing&&e.suspend?"suspended":e.target.status,l)]}}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 c=(y=n.selectAll("rect.status_started").data(r.filter(function(e){return"started"===e.status}))).enter().append("rect");y.merge(c).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),y.exit().remove();var u=n.selectAll("text.status_started_label").data(r.filter(function(e){return"started"===e.status})),d=u.enter().append("text");u.merge(d).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 h=(_=n.selectAll("rect.status_stopped").data(r.filter(function(e){return"stopped"===e.status}))).enter().append("rect");_.merge(h).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),_.exit().remove();var p=n.selectAll("text.status_stopped_label").data(r.filter(function(e){return"stopped"===e.status})),f=p.enter().append("text");p.merge(f).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"),p.exit().remove();var m=(b=n.selectAll("rect.status_suspended").data(r.filter(function(e){return"suspended"===e.status}))).enter().append("rect");b.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),b.exit().remove();var g=n.selectAll("text.status_suspended_label").data(r.filter(function(e){return"suspended"===e.status})),v=g.enter().append("text");g.merge(v).attr("class","status_suspended_label").text(function(e){return e.port}).attr("x",function(e){return e.x-25}).attr("y",function(e){return e.y+5}).attr("fill","black"),g.exit().remove()}else{var y,_,b;c=(y=n.selectAll("circle.status_started").data(r.filter(function(e){return"started"===e.status}))).enter().append("circle"),y.merge(c).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"),y.exit().remove(),h=(_=n.selectAll("rect.status_stopped").data(r.filter(function(e){return"stopped"===e.status}))).enter().append("rect"),_.merge(h).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"),_.exit().remove(),m=(b=n.selectAll("circle.status_suspended").data(r.filter(function(e){return"suspended"===e.status}))).enter().append("circle"),b.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"),b.exit().remove()}})},e.\u0275fac=function(t){return new(t||e)(y.LFG(rz))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),dz=function(){return function(e,t){this.source=e,this.target=t}}(),hz=function(){function e(){this.onContextMenu=new y.vpe}return e.prototype.linktoEthernetLink=function(e){return new dz([e.source.x+e.source.width/2,e.source.y+e.source.height/2],[e.target.x+e.target.width/2,e.target.y+e.target.height/2])},e.prototype.draw=function(e){var t=this,n=e.selectAll("path.ethernet_link").data(function(e){return"ethernet"===e.linkType?[t.linktoEthernetLink(e)]:[]}),i=n.enter().append("path").attr("class","ethernet_link").on("contextmenu",function(e){var n=event;t.onContextMenu.emit(new Jj(n,e))});i.attr("stroke","#000").attr("stroke-width","2").on("contextmenu",function(e){var n=event;t.onContextMenu.emit(new Jj(n,e))}),n.merge(i).attr("d",function(e){var t=wl();return t.moveTo(e.source[0],e.source[1]),t.lineTo(e.target[0],e.target[1]),t.toString()})},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),pz=function(){return function(e,t,n,i){this.source=e,this.source_angle=t,this.target_angle=n,this.target=i}}(),fz=function(){function e(){this.onContextMenu=new y.vpe}return e.prototype.linkToSerialLink=function(e){var t={x:e.source.x+e.source.width/2,y:e.source.y+e.source.height/2},n={x:e.target.x+e.target.width/2,y:e.target.y+e.target.height/2},i=n.x-t.x,r=n.y-t.y,o=Math.atan2(r,i),a=-Math.PI/4,s=[Math.cos(o+a),Math.sin(o+a)];return new pz([t.x,t.y],[t.x+i/2+15*s[0],t.y+r/2+15*s[1]],[n.x-i/2-15*s[0],n.y-r/2-15*s[1]],[n.x,n.y])},e.prototype.draw=function(e){var t=this,n=e.selectAll("path.serial_link").data(function(e){return"serial"===e.linkType?[t.linkToSerialLink(e)]:[]}),i=n.enter().append("path").attr("class","serial_link").on("contextmenu",function(e){var n=event;t.onContextMenu.emit(new Jj(n,e))});i.attr("stroke","#B22222").attr("fill","none").attr("stroke-width","2"),n.merge(i).attr("d",function(e){var t=wl();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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),mz=function(){function e(e,t,n,i,r,o){this.multiLinkCalculatorHelper=e,this.interfaceLabelWidget=t,this.interfaceStatusWidget=n,this.selectionManager=i,this.ethernetLinkWidget=r,this.serialLinkWidget=o,this.onContextMenu=new y.vpe}return e.prototype.draw=function(e){var t=this,n=e.selectAll("g.link_body").data(function(e){return[e]}),i=n.enter().append("g").attr("class","link_body"),r=n.merge(i).attr("transform",function(e){var n=t.multiLinkCalculatorHelper.linkTranslation(e.distance,e.source,e.target);return"translate ("+n.dx+", "+n.dy+")"});n.select(".capture-icon").remove(),n.filter(function(e){return e.capturing&&!e.suspend&&!(e.filters.bpf||e.filters.corrupt||e.filters.delay||e.filters.frequency_drop||e.filters.packet_loss)}).append("g").on("contextmenu",function(e){t.onContextMenu.emit(new Jj(sr,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 Jj(sr,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 Jj(sr,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 Jj(sr,e))}).attr("class","pause-icon").attr("transform",function(e){return"translate ("+((e.source.x+e.target.x)/2+24)+", "+((e.source.y+e.target.y)/2+24)+") scale(0.5)"}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/pause.svg"),this.serialLinkWidget.draw(r),this.ethernetLinkWidget.draw(r),r.select("path").classed("selected",function(e){return t.selectionManager.isSelected(e)}),this.interfaceLabelWidget.draw(r),this.interfaceStatusWidget.draw(r)},e.\u0275fac=function(t){return new(t||e)(y.LFG(kj),y.LFG(Qj),y.LFG(uz),y.LFG(Vj),y.LFG(hz),y.LFG(fz))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),gz=function(){function e(e,t){this.multiLinkCalculatorHelper=e,this.linkWidget=t}return e.prototype.redrawLink=function(e,t){this.linkWidget.draw(this.selectLink(e,t))},e.prototype.draw=function(e){var t=this,n=e.selectAll("g.link").data(function(e){if(e.links){var n=e.links.filter(function(e){return e.target&&e.source});return t.multiLinkCalculatorHelper.assignDataToLinks(n),n}return[]},function(e){return e.id}),i=n.enter().append("g").attr("class","link").attr("link_id",function(e){return e.id}).attr("map-source",function(e){return e.source.id}).attr("map-target",function(e){return e.target.id}),r=n.merge(i);this.linkWidget.draw(r),n.exit().remove()},e.prototype.selectLink=function(e,t){return e.selectAll('g.link[link_id="'+t.id+'"]')},e.\u0275fac=function(t){return new(t||e)(y.LFG(kj),y.LFG(mz))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),vz=function(){return function(){}}(),yz=function(){return function(){}}(),_z=function(){function e(){}return e.prototype.convert=function(e){var t=new yz,n=e.attributes.getNamedItem("fill");n&&(t.fill=n.value);var i=e.attributes.getNamedItem("fill-opacity");n&&(t.fill_opacity=parseFloat(i.value));var r=e.attributes.getNamedItem("stroke");r&&(t.stroke=r.value);var o=e.attributes.getNamedItem("stroke-width");r&&(t.stroke_width=parseInt(o.value,10));var a=e.attributes.getNamedItem("stroke-dasharray");a&&(t.stroke_dasharray=a.value);var s=e.attributes.getNamedItem("cx");s&&(t.cx=parseInt(s.value,10));var l=e.attributes.getNamedItem("cy");l&&(t.cy=parseInt(l.value,10));var c=e.attributes.getNamedItem("rx");c&&(t.rx=parseInt(c.value,10));var u=e.attributes.getNamedItem("ry");return u&&(t.ry=parseInt(u.value,10)),t},e}(),bz=function(){return function(){}}(),wz=function(){function e(){}return e.prototype.convert=function(e){var t=new bz,n=e.attributes.getNamedItem("xlink:href");n&&(t.data=n.value);var i=e.attributes.getNamedItem("width");i&&(t.width=parseInt(i.value,10));var r=e.attributes.getNamedItem("height");return r&&(t.height=parseInt(r.value,10)),t},e}(),Sz=function(){return function(){}}(),xz=function(){function e(){}return e.prototype.convert=function(e){var t=new Sz,n=e.attributes.getNamedItem("stroke");n&&(t.stroke=n.value);var i=e.attributes.getNamedItem("stroke-width");n&&(t.stroke_width=parseInt(i.value,10));var r=e.attributes.getNamedItem("stroke-dasharray");r&&(t.stroke_dasharray=r.value);var o=e.attributes.getNamedItem("x1");o&&(t.x1=parseInt(o.value,10));var a=e.attributes.getNamedItem("x2");a&&(t.x2=parseInt(a.value,10));var s=e.attributes.getNamedItem("y1");s&&(t.y1=parseInt(s.value,10));var l=e.attributes.getNamedItem("y2");return l&&(t.y2=parseInt(l.value,10)),t},e}(),Cz=function(){return function(){}}(),kz=function(){function e(){}return e.prototype.convert=function(e){var t=new Cz,n=e.attributes.getNamedItem("fill");n&&(t.fill=n.value);var i=e.attributes.getNamedItem("fill-opacity");n&&(t.fill_opacity=parseFloat(i.value));var r=e.attributes.getNamedItem("stroke");r&&(t.stroke=r.value);var o=e.attributes.getNamedItem("stroke-width");r&&(t.stroke_width=parseInt(o.value,10));var a=e.attributes.getNamedItem("stroke-dasharray");a&&(t.stroke_dasharray=a.value);var s=e.attributes.getNamedItem("width");s&&(t.width=parseInt(s.value,10));var l=e.attributes.getNamedItem("height");return l&&(t.height=parseInt(l.value,10)),t},e}(),Tz=function(){return function(){}}(),Az=function(){function e(){}return e.prototype.convert=function(e){var t=new Tz;t.text=e.textContent;var n=e.attributes.getNamedItem("fill");n&&(t.fill=n.value);var i=e.attributes.getNamedItem("fill-opacity");i&&(t.fill_opacity=parseFloat(i.value));var r=e.attributes.getNamedItem("font-family");r&&(t.font_family=r.value);var o=e.attributes.getNamedItem("font-size");o&&(t.font_size=+o.value);var a=e.attributes.getNamedItem("font-weight");a&&(t.font_weight=a.value);var s=e.attributes.getNamedItem("text-decoration");return s&&(t.text_decoration=s.value),t},e}(),Zz=function(){function e(){this.parser=new DOMParser,this.elementParsers={text:new Az,image:new wz,rect:new kz,line:new xz,ellipse:new _z}}return e.prototype.supportedTags=function(){return Object.keys(this.elementParsers)},e.prototype.convert=function(e){var t=this.parser.parseFromString(e,"text/xml").getElementsByTagName("svg");if(1!==t.length)throw new Error("Cannot locate svg element root in '"+e+"'");var n=t[0],i=null,r=null;for(var o in n.children){var a=(r=n.children[o]).nodeName;if(a in this.elementParsers){i=this.elementParsers[a];break}}if(null===i)throw new Error("Cannot find parser for '"+e+"'");var s=i.convert(r);return s.width=+n.getAttribute("width"),s.height=+n.getAttribute("height"),s},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Mz=function(){function e(e){this.fontFixer=e}return e.prototype.draw=function(t){var n=this,i=t.selectAll("text.text_element").data(function(e){return e.element&&e.element instanceof Tz?[e.element]:[]}),r=i.enter().append("text").attr("class","text_element noselect"),o=i.merge(r);o.attr("style",function(e){var t=n.fontFixer.fix(e),i=[];return t.font_family&&i.push('font-family: "'+e.font_family+'"'),t.font_size&&i.push("font-size: "+e.font_size+"pt"),t.font_weight&&i.push("font-weight: "+e.font_weight),i.join("; ")}).attr("fill",function(e){return e.fill}).attr("text-decoration",function(e){return e.text_decoration});var a=o.selectAll("tspan").data(function(e){return e.text.split(/\r?\n/)}),s=a.enter().append("tspan");a.merge(s).text(function(e){return e}).attr("xml:space","preserve").attr("x",0).attr("dy",function(e,t){return 0===t?"0em":"1.4em"}),a.exit().remove(),o.attr("transform",function(){var t=wr(this).selectAll("tspan"),n=this.getBBox().height/t.size();return"translate("+e.MARGIN+", "+(n-e.MARGIN)+")"}),i.exit().remove()},e.MARGIN=4,e.\u0275fac=function(t){return new(t||e)(y.LFG(uj))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),Oz=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 bz?[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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Ez=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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Pz=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 Cz?[e.element]:[]});n.enter().append("line").attr("class","top"),n.enter().append("line").attr("class","bottom"),n.enter().append("line").attr("class","right"),n.enter().append("line").attr("class","left");var i=n.enter().append("rect").attr("class","rect_element noselect");n.merge(i).attr("fill",function(e){return e.fill}).attr("fill-opacity",function(e){return e.fill_opacity}).attr("stroke",function(e){return e.stroke}).attr("stroke-width",function(e){return e.stroke_width}).attr("stroke-dasharray",function(e){return t.qtDasharrayFixer.fix(e.stroke_dasharray)}).attr("width",function(e){return e.width}).attr("height",function(e){return e.height}),n.exit().remove()},e.\u0275fac=function(t){return new(t||e)(y.LFG(Ez))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),Iz=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 Sz?[e.element]:[]});n.enter().append("circle").attr("class","right"),n.enter().append("circle").attr("class","left");var i=n.enter().append("line").attr("class","line_element noselect");n.merge(i).attr("stroke",function(e){return e.stroke}).attr("stroke-width",function(e){return e.stroke_width}).attr("stroke-dasharray",function(e){return t.qtDasharrayFixer.fix(e.stroke_dasharray)}).attr("x1",function(e){return e.x1}).attr("x2",function(e){return e.x2}).attr("y1",function(e){return e.y1}).attr("y2",function(e){return e.y2}),n.exit().remove()},e.\u0275fac=function(t){return new(t||e)(y.LFG(Ez))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),qz=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 yz?[e.element]:[]});n.enter().append("line").attr("class","top"),n.enter().append("line").attr("class","bottom"),n.enter().append("line").attr("class","right"),n.enter().append("line").attr("class","left");var i=n.enter().append("ellipse").attr("class","ellipse_element noselect");n.merge(i).attr("fill",function(e){return e.fill}).attr("fill-opacity",function(e){return e.fill_opacity}).attr("stroke",function(e){return e.stroke}).attr("stroke-width",function(e){return e.stroke_width}).attr("stroke-dasharray",function(e){return t.qtDasharrayFixer.fix(e.stroke_dasharray)}).attr("cx",function(e){return e.cx}).attr("cy",function(e){return e.cy}).attr("rx",function(e){return e.rx}).attr("ry",function(e){return e.ry}),n.exit().remove()},e.\u0275fac=function(t){return new(t||e)(y.LFG(Ez))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),Nz=function(){function e(e,t,n,i,r,o,a){this.textDrawingWidget=e,this.imageDrawingWidget=t,this.rectDrawingWidget=n,this.lineDrawingWidget=i,this.ellipseDrawingWidget=r,this.selectionManager=o,this.mapSettingsService=a,this.drawingWidgets=[],this.drawingWidgets=[this.textDrawingWidget,this.imageDrawingWidget,this.rectDrawingWidget,this.lineDrawingWidget,this.ellipseDrawingWidget]}return e.prototype.draw=function(e){var t=this,n=e.selectAll("g.drawing_body").data(function(e){return[e]}),i=n.enter().append("g").attr("class","drawing_body"),r=n.merge(i).attr("transform",function(e){return"translate("+e.x+","+e.y+") rotate("+e.rotation+")"});this.drawingWidgets.forEach(function(e){e.draw(r)}),r.select(".layer_label_wrapper").remove(),this.mapSettingsService.isLayerNumberVisible&&r.filter(function(e){return e.element instanceof Cz||e.element instanceof yz}).append("rect").attr("class","layer_label_wrapper").attr("width","26").attr("height","26").attr("x",function(e){return e.element?e.element.width/2-13:0}).attr("y",function(e){return e.element?e.element.height/2-13:0}).attr("fill","red"),r.select(".layer_label").remove(),this.mapSettingsService.isLayerNumberVisible&&r.filter(function(e){return e.element instanceof Cz||e.element instanceof yz}).append("text").attr("class","layer_label").text(function(e){return e.z}).attr("x",function(e){return e.z>=100?e.element?e.element.width/2-13:0:e.z>=10?e.element?e.element.width/2-9:0:e.element.width/2-5}).attr("y",function(e){return e.element?e.element.height/2+5:0}).attr("style",function(){var e=[];return e.push('font-family: "Noto Sans"'),e.push("font-size: 11pt"),e.push("font-weight: bold"),e.join("; ")}).attr("fill","#ffffff"),r.select("line.top").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(e){return e.element instanceof yz?e.element.cx-e.element.width/10:"0"}).attr("x2",function(e){return e.element instanceof yz?e.element.cx+e.element.width/10:e.element.width}).attr("y1","0").attr("y2","0").attr("draggable","true").attr("cursor","ns-resize"),r.select("line.bottom").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(e){return e.element instanceof yz?e.element.cx-e.element.width/10:"0"}).attr("x2",function(e){return e.element instanceof yz?e.element.cx+e.element.width/10:e.element.width}).attr("y1",function(e){return e.element.height}).attr("y2",function(e){return e.element.height}).attr("draggable","true").attr("cursor","ns-resize"),r.select("line.right").attr("stroke","transparent").attr("stroke-width","8px").attr("x1","0").attr("x2","0").attr("y1",function(e){return e.element instanceof yz?e.element.cy-e.element.height/10:"0"}).attr("y2",function(e){return e.element instanceof yz?e.element.cy+e.element.height/10:e.element.height}).attr("draggable","true").attr("cursor","ew-resize"),r.select("line.left").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(e){return e.element.width}).attr("x2",function(e){return e.element.width}).attr("y1",function(e){return e.element instanceof yz?e.element.cy-e.element.height/10:"0"}).attr("y2",function(e){return e.element instanceof yz?e.element.cy+e.element.height/10:e.element.height}).attr("draggable","true").attr("cursor","ew-resize"),r.select("circle.left").attr("draggable","true").attr("fill","transparent").attr("stroke","transparent").attr("cx",function(e){return e.element.x1}).attr("cy",function(e){return e.element.y1}).attr("r",10).attr("cursor","move"),r.select("circle.right").attr("draggable","true").attr("fill","transparent").attr("stroke","transparent").attr("cx",function(e){return e.element.x2}).attr("cy",function(e){return e.element.y2}).attr("r",10).attr("cursor","move"),r.classed("drawing_selected",function(e){return t.selectionManager.isSelected(e)})},e.\u0275fac=function(t){return new(t||e)(y.LFG(Mz),y.LFG(Oz),y.LFG(Pz),y.LFG(Iz),y.LFG(qz),y.LFG(Vj),y.LFG(rz))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),Dz=function(){function e(e,t,n,i){this.drawingWidget=e,this.svgToDrawingConverter=t,this.context=n,this.mapSettings=i,this.draggable=new Lj,this.draggingEnabled=!1,this.resizingFinished=new y.vpe,this.onContextMenu=new y.vpe,this.svgToDrawingConverter=new Zz}return e.prototype.redrawDrawing=function(e,t){this.drawingWidget.draw(this.selectDrawing(e,t))},e.prototype.draw=function(e){var t,n,i,r,o=this,a=e.selectAll("g.drawing").data(function(e){return e.drawings.forEach(function(e){try{e.element=o.svgToDrawingConverter.convert(e.svg)}catch(t){}}),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){sr.preventDefault(),o.onContextMenu.emit(new Yj(sr,e))}),l=a.merge(s);this.drawingWidget.draw(l),a.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(l);var c,u,d,h,p=!1,f=uc().on("start",function(e){document.body.style.cursor="ns-resize",i=e.y}).on("drag",function(r){var a=sr;p?(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?(p=!1,t=i,r.element.height=Math.abs(r.element.height+a.dy)):(r.y=a.sourceEvent.pageY-(o.context.getZeroZeroTransformationPoint().y+o.context.transformation.y),r.element.height+=n,r.element instanceof yz&&(r.element.cy=r.element.cy+n/2<0?1:r.element.cy+=n/2,r.element.ry=r.element.ry+n/2<0?1:r.element.ry+=n/2))):r.element.height+a.dy<0?(p=!0,t=i,r.element.height=Math.abs(r.element.height+a.dy)):(r.element.height+=a.dy,r.element instanceof yz&&(r.element.cy=r.element.cy+a.dy/2<0?1:r.element.cy+=a.dy/2,r.element.ry=r.element.ry+a.dy/2<0?1:r.element.ry+=a.dy/2)),o.redrawDrawing(e,r)}).on("end",function(e){document.body.style.cursor="initial",o.resizingFinished.emit(o.createResizingEvent(e))}),m=uc().on("start",function(e){t=sr.sourceEvent.pageY-(o.context.getZeroZeroTransformationPoint().y+o.context.transformation.y),r=t+e.element.height,document.body.style.cursor="ns-resize"}).on("drag",function(i){var a=sr;p?i.element.height+a.dy<0?(p=!1,t=r,i.element.height=Math.abs(i.element.height+a.dy)):(i.element.height+=a.dy,i.element instanceof yz&&(i.element.cy=i.element.cy+a.dy/2<0?1:i.element.cy+=a.dy/2,i.element.ry=i.element.ry+a.dy/2<0?1:i.element.ry+=a.dy/2)):(n=t-(a.sourceEvent.pageY-(o.context.getZeroZeroTransformationPoint().y+o.context.transformation.y)),t=a.sourceEvent.pageY-(o.context.getZeroZeroTransformationPoint().y+o.context.transformation.y),i.element.height+n<0?(t=r,p=!0,i.element.height=Math.abs(i.element.height+a.dy)):(i.y=a.sourceEvent.pageY-(o.context.getZeroZeroTransformationPoint().y+o.context.transformation.y),i.element.height+=n,i.element instanceof yz&&(i.element.cy=i.element.cy+n/2<0?1:i.element.cy+=n/2,i.element.ry=i.element.ry+n/2<0?1:i.element.ry+=n/2))),o.redrawDrawing(e,i)}).on("end",function(e){document.body.style.cursor="initial",o.resizingFinished.emit(o.createResizingEvent(e))}),g=!1,v=uc().on("start",function(e){c=sr.sourceEvent.pageX-(o.context.getZeroZeroTransformationPoint().x+o.context.transformation.x),h=c+e.element.width,document.body.style.cursor="ew-resize"}).on("drag",function(t){var n=sr;g?t.element.width+n.dx<0?(c=h,g=!1,t.element.width=Math.abs(t.element.width+n.dx)):(t.element instanceof yz&&(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=c-(n.sourceEvent.pageX-(o.context.getZeroZeroTransformationPoint().x+o.context.transformation.x)),c=n.sourceEvent.pageX-(o.context.getZeroZeroTransformationPoint().x+o.context.transformation.x),t.element.width+u<0?(c=h,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 yz&&(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))}),y=uc().on("start",function(e){document.body.style.cursor="ew-resize",d=e.x}).on("drag",function(t){var n=sr;g?(u=c-(n.sourceEvent.pageX-(o.context.getZeroZeroTransformationPoint().x+o.context.transformation.x)),c=n.sourceEvent.pageX-(o.context.getZeroZeroTransformationPoint().x+o.context.transformation.x),t.element.width+u<0?(c=d,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 yz&&(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?(c=d,g=!0,t.element.width=Math.abs(t.element.width+n.dx)):(t.element instanceof yz&&(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))}),_=uc().on("start",function(){document.body.style.cursor="move"}).on("drag",function(t){var n=sr;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))}),b=uc().on("start",function(){document.body.style.cursor="move"}).on("drag",function(t){var n=sr;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))});l.select("line.bottom").call(f),l.select("line.top").call(m),l.select("line.right").call(v),l.select("line.left").call(y),l.select("circle.right").call(_),l.select("circle.left").call(b)},e.prototype.createResizingEvent=function(e){var t=new vz;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.\u0275fac=function(t){return new(t||e)(y.LFG(Nz),y.LFG(Zz),y.LFG(Oj),y.LFG(Ij))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),Rz=function(){function e(e,t,n){this.linksWidget=e,this.nodesWidget=t,this.drawingsWidget=n}return e.prototype.draw=function(e,t){var n=e.selectAll("g.layer").data(t,function(e){return e.index.toString()}),i=n.enter().append("g").attr("class","layer");i.append("g").attr("class","links"),i.append("g").attr("class","nodes"),i.append("g").attr("class","drawings");var r=n.merge(i);r.attr("data-index",function(e){return e.index});var o=r.select("g.links"),a=r.select("g.nodes"),s=r.select("g.drawings");n.exit().remove(),this.linksWidget.draw(o),this.nodesWidget.draw(a),this.drawingsWidget.draw(s)},e.\u0275fac=function(t){return new(t||e)(y.LFG(gz),y.LFG(az),y.LFG(Dz))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),Lz=function(){function e(e,t,n,i,r,o){this.nodesWidget=e,this.drawingLineTool=t,this.selectionTool=n,this.movingTool=i,this.layersWidget=r,this.layersManager=o}return e.prototype.getNodesWidget=function(){return this.nodesWidget},e.prototype.getDrawingLineTool=function(){return this.drawingLineTool},e.prototype.getSelectionTool=function(){return this.selectionTool},e.prototype.connect=function(e,t){this.drawingLineTool.connect(e,t)},e.prototype.draw=function(e,t){e.attr("width",t.size.width).attr("height",t.size.height);var n=e.selectAll("g.canvas").data([t]),i=n.enter().append("g").attr("class","canvas");n.merge(i).attr("transform",function(e){return"translate("+(e.getZeroZeroTransformationPoint().x+e.transformation.x)+", "+(e.getZeroZeroTransformationPoint().y+e.transformation.y)+") scale("+e.transformation.k+")"}),this.layersWidget.draw(n,this.layersManager.getLayersList()),this.drawingLineTool.draw(e,t),this.selectionTool.draw(e,t),this.movingTool.draw(e,t)},e.prototype.disconnect=function(e){e.empty&&!e.empty()&&e.selectAll("*").remove()},e.\u0275fac=function(t){return new(t||e)(y.LFG(az),y.LFG(lz),y.LFG($j),y.LFG(ez),y.LFG(Rz),y.LFG(Cj))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),Fz=function(){function e(){this.isSelectionToolActivated=new x.xQ,this.isMovingToolActivated=new x.xQ,this.isTextEditingToolActivated=new x.xQ,this.isTextAddingToolActivated=new x.xQ,this.isDrawLinkToolActivated=new x.xQ}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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Bz=function(){function e(e){this.context=e,this.scaleChangeEmitter=new y.vpe,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.\u0275fac=function(t){return new(t||e)(y.LFG(Oj))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),jz=function(){function e(){this.movingModeState=new y.vpe}return e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),zz=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){wr(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)(y.Y36(y.SBq),y.Y36(jz),y.Y36(Oj))},e.\u0275dir=y.lG2({type:e,selectors:[["","movingCanvas",""]],hostBindings:function(e,t){1&e&&y.NdJ("mousedown",function(e){return t.onMouseDown(e)})}}),e}(),Uz=function(){function e(e,t,n,i){this.element=e,this.movingEventSource=t,this.context=n,this.mapsScaleService=i}return e.prototype.ngOnInit=function(){var e=this;this.movingModeState=this.movingEventSource.movingModeState.subscribe(function(t){t?e.addListener():e.removeListener()})},e.prototype.ngOnDestroy=function(){this.movingModeState.unsubscribe()},e.prototype.addListener=function(){var e=this;this.wheelListener=function(t){t.stopPropagation(),t.preventDefault();var n=t.deltaY;n=0===t.deltaMode?n/100:n/3,wr(e.element.nativeElement).selectAll("g.canvas").data([e.context]).attr("transform",function(){e.context.transformation.k=e.context.transformation.k-n/10;var t=e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,i=e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y,r=e.context.transformation.k;return e.mapsScaleService.setScale(r),"translate("+t+", "+i+") scale("+r+")"})},this.element.nativeElement.addEventListener("wheel",this.wheelListener,{passive:!1})},e.prototype.removeListener=function(){this.element.nativeElement.removeEventListener("wheel",this.wheelListener)},e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq),y.Y36(jz),y.Y36(Oj),y.Y36(Bz))},e.\u0275dir=y.lG2({type:e,selectors:[["","zoomingCanvas",""]]}),e}(),Hz=function(){function e(){this.dragged=new y.vpe,this.resized=new y.vpe,this.selected=new y.vpe,this.pointToAddSelected=new y.vpe,this.saved=new y.vpe,this.textAdded=new y.vpe,this.textEdited=new y.vpe,this.textSaved=new y.vpe}return e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Yz=function(){function e(e,t){this.drawingsEventSource=e,this.context=t}return e.prototype.ngOnInit=function(){var e=this;this.drawingSelected=this.drawingsEventSource.selected.subscribe(function(t){""===t?e.deactivate():e.activate()})},e.prototype.activate=function(){var e=this;this.deactivate(),this.mapListener=function(t){var n=(t.pageX-(e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x))/e.context.transformation.k,i=(t.pageY-(e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y))/e.context.transformation.k;e.drawingsEventSource.pointToAddSelected.emit(new jj(n,i)),e.deactivate()},this.svg.addEventListener("click",this.mapListener)},e.prototype.deactivate=function(){this.svg.removeEventListener("click",this.mapListener)},e.prototype.ngOnDestroy=function(){this.drawingSelected.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(y.Y36(Hz),y.Y36(Oj))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-drawing-adding"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),Jz=["*"],Gz=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 Bj(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)(y.Y36(Dz),y.Y36(Hz))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-drawing-resizing"]],ngContentSelectors:Jz,decls:1,vars:0,template:function(e,t){1&e&&(y.F$t(),y.Hsn(0))},styles:[""]}),e}(),Wz=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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),Vz=function(){function e(e,t,n,i){this.selectionEventSource=e,this.graphDataManager=t,this.inRectangleHelper=n,this.selectionManager=i}return e.prototype.ngOnInit=function(){var e=this;this.onSelection=this.selectionEventSource.selected.subscribe(function(t){var n=e.graphDataManager.getNodes().filter(function(n){return e.inRectangleHelper.inRectangle(t,n.x,n.y)}),i=e.graphDataManager.getLinks().filter(function(n){return e.inRectangleHelper.inRectangle(t,n.x,n.y)}),r=e.graphDataManager.getDrawings().filter(function(n){return e.inRectangleHelper.inRectangle(t,n.x,n.y)}),o=e.graphDataManager.getNodes().filter(function(n){return void 0!==n.label&&e.inRectangleHelper.inRectangle(t,n.x+n.label.x,n.y+n.label.y)}).map(function(e){return e.label}),a=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]}),s=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]}),l=(0,LO.ev)((0,LO.ev)([],a),s),c=(0,LO.ev)((0,LO.ev)((0,LO.ev)((0,LO.ev)((0,LO.ev)([],n),i),r),o),l);e.selectionManager.setSelected(c)})},e.prototype.ngOnDestroy=function(){this.onSelection.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(y.Y36(Kj),y.Y36(Tj),y.Y36(Wz),y.Y36(Vj))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-selection-control"]],decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),Qz=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)(y.Y36(Vj),y.Y36(Ej))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-selection-select"]],decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),Xz=function(){function e(e){this.httpServer=e}return e.prototype.createLink=function(e,t,n,i,r,o,a,s,l){return this.httpServer.post(e,"/projects/"+t.project_id+"/links",{nodes:[{node_id:t.node_id,port_number:n.port_number,adapter_number:n.adapter_number,label:{rotation:0,style:"font-size: 10; font-style: Verdana",text:n.short_name,x:o,y:a}},{node_id:i.node_id,port_number:r.port_number,adapter_number:r.adapter_number,label:{rotation:0,style:"font-size: 10; font-style: Verdana",text:r.short_name,x:s,y:l}}]})},e.prototype.getLink=function(e,t,n){return this.httpServer.get(e,"/projects/"+t+"/links/"+n)},e.prototype.deleteLink=function(e,t){return this.httpServer.delete(e,"/projects/"+t.project_id+"/links/"+t.link_id)},e.prototype.updateLink=function(e,t){return t.x=Math.round(t.x),t.y=Math.round(t.y),this.httpServer.put(e,"/projects/"+t.project_id+"/links/"+t.link_id,t)},e.prototype.getAvailableFilters=function(e,t){return this.httpServer.get(e,"/projects/"+t.project_id+"/links/"+t.link_id+"/available_filters")},e.prototype.updateNodes=function(e,t,n){var i=n.map(function(e){return{node_id:e.node_id,port_number:e.port_number,adapter_number:e.adapter_number,label:{rotation:e.label.rotation,style:e.label.style,text:e.label.text,x:e.label.x,y:e.label.y}}});return this.httpServer.put(e,"/projects/"+t.project_id+"/links/"+t.link_id,{nodes:i})},e.prototype.startCaptureOnLink=function(e,t,n){return this.httpServer.post(e,"/projects/"+t.project_id+"/links/"+t.link_id+"/start_capture",n)},e.prototype.stopCaptureOnLink=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/links/"+t.link_id+"/stop_capture",{})},e.prototype.streamPcap=function(e,t){return this.httpServer.get(e,"/projects/"+t.project_id+"/links/"+t.link_id+"/pcap")},e.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),Kz=n(3941),$z=n(96852),eU=["temporaryTextElement"],tU=function(){function e(e,t,n,i,r,o,a,s,l,c,u){this.drawingsEventSource=e,this.toolsService=t,this.context=n,this.renderer=i,this.mapScaleService=r,this.linkService=o,this.linksDataSource=a,this.nodesDataSource=s,this.selectionManager=l,this.fontFixer=c,this.ngZone=u,this.leftPosition="0px",this.topPosition="0px",this.innerText="",this.addingFinished=new y.vpe}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 Uj(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=wr(this.svg);t.selectAll("g.interface_label_container").select("text.interface_label").on("dblclick",function(n,i,r){e.selectionManager.setSelected([]),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","initial"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"transform","scale("+e.mapScaleService.getScale()+")"),e.editedLink=n,wr(r[i]).attr("visibility","hidden"),wr(r[i]).classed("editingMode",!0),e.editedNode=e.nodesDataSource.get(n.nodeId),e.editedLink=n;var o=(n.label.originalX+e.editedNode.x-1)*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,a=(n.label.originalY+e.editedNode.y+4)*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y;e.leftPosition=o.toString()+"px",e.topPosition=a.toString()+"px",e.temporaryTextElement.nativeElement.innerText=n.label.text;for(var s=[],l=0,c=n.label.style.split(";");l<c.length;l++){var u=c[l];s.push({property:u.split(": ")[0],value:u.split(": ")[1]})}var d={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"};d=e.fontFixer.fix(d),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",d.font_family),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-size",d.font_size+"pt"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-weight",d.font_weight),e.textListener=function(){var n=e.temporaryTextElement.nativeElement.innerText,i=e.linksDataSource.get(e.editedLink.linkId);i.nodes.find(function(t){return t.node_id===e.editedNode.node_id}).label.text=n,e.linkService.updateLink(e.server,i).subscribe(function(n){t.selectAll("text.editingMode").attr("visibility","visible").classed("editingMode",!1),e.innerText="",e.temporaryTextElement.nativeElement.innerText="",e.temporaryTextElement.nativeElement.removeEventListener("focusout",e.textListener),e.clearStyle(),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","none")})},e.temporaryTextElement.nativeElement.addEventListener("focusout",e.textListener),e.temporaryTextElement.nativeElement.focus()})},e.prototype.activateTextEditingForDrawings=function(){var e=this,t=wr(this.svg);t.selectAll("text.text_element").on("dblclick",function(n,i,r){e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","initial"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"transform","scale("+e.mapScaleService.getScale()+")"),e.editedElement=n,wr(r[i]).attr("visibility","hidden"),wr(r[i]).classed("editingMode",!0),e.editingDrawingId=r[i].parentElement.parentElement.getAttribute("drawing_id");var o=r[i].parentElement.getAttribute("transform").split(/\(|\)/),a=Number(o[1].split(/,/)[0])*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,s=Number(o[1].split(/,/)[1])*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y;e.leftPosition=a.toString()+"px",e.topPosition=s.toString()+"px",e.temporaryTextElement.nativeElement.innerText=n.text,e.renderer.setStyle(e.temporaryTextElement.nativeElement,"color",n.fill),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-family",n.font_family),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-size",n.font_size+"pt"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-weight",n.font_weight),e.textListener=function(){e.drawingsEventSource.textEdited.emit(new Hj(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)(y.Y36(Hz),y.Y36(Fz),y.Y36(Oj),y.Y36(y.Qsj),y.Y36(Bz),y.Y36(Xz),y.Y36(Kz.F),y.Y36($z.G),y.Y36(Vj),y.Y36(uj),y.Y36(y.R0b))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-text-editor"]],viewQuery:function(e,t){var n;1&e&&y.Gf(eU,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0,1),y._uU(2),y.qZA()),2&e&&(y.Udp("top",t.topPosition)("left",t.leftPosition),y.xp6(2),y.hij(" ",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}(),nU=function(){function e(){this.created=new y.vpe,this.interfaceDragged=new y.vpe}return e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),iU=function(){function e(e,t,n,i,r,o,a,s,l,c,u){this.nodesWidget=e,this.drawingsWidget=t,this.linksWidget=n,this.labelWidget=i,this.interfaceWidget=r,this.selectionManager=o,this.nodesEventSource=a,this.drawingsEventSource=s,this.graphDataManager=l,this.linksEventSource=c,this.mapSettingsService=u,this.isMapLocked=!1}return e.prototype.ngOnInit=function(){var e=this,t=wr(this.svg);this.mapSettingsSubscription=this.mapSettingsService.isMapLocked.subscribe(function(t){e.isMapLocked=t}),this.start=(0,Z.T)(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 oj&&0===n.filter(function(e){return e instanceof oj&&e.id===t.datum.id}).length&&e.selectionManager.setSelected([t.datum]),t.datum instanceof _j&&0===n.filter(function(e){return e instanceof _j&&e.id===t.datum.id}).length&&e.selectionManager.setSelected([t.datum]),t.datum instanceof aj&&0===n.filter(function(e){return e instanceof aj&&e.id===t.datum.id}).length&&e.selectionManager.setSelected([t.datum]),t.datum instanceof gj&&0===n.filter(function(e){return e instanceof gj&&e.id===t.datum.id}).length&&e.selectionManager.setSelected([t.datum])}),this.drag=(0,Z.T)(this.nodesWidget.draggable.drag,this.drawingsWidget.draggable.drag,this.labelWidget.draggable.drag,this.interfaceWidget.draggable.drag).subscribe(function(n){if(!e.isMapLocked){var i=e.selectionManager.getSelected(),r=i.filter(function(e){return e instanceof oj}),o=r.filter(function(e){return e.locked}),a=r.filter(function(e){return!e.locked});a.forEach(function(i){i.x+=n.dx,i.y+=n.dy,e.nodesWidget.redrawNode(t,i),e.graphDataManager.getLinks().filter(function(e){return void 0!==e.target&&e.target.id===i.id||void 0!==e.source&&e.source.id===i.id}).forEach(function(n){e.linksWidget.redrawLink(t,n)})}),i.filter(function(e){return e instanceof _j}).filter(function(e){return!e.locked}).forEach(function(i){i.x+=n.dx,i.y+=n.dy,e.drawingsWidget.redrawDrawing(t,i)}),i.filter(function(e){return e instanceof aj}).filter(function(e){return 0===o.filter(function(t){return t.id===e.nodeId}).length}).forEach(function(i){if(!(a.filter(function(e){return e.id===i.nodeId}).length>0)){var r=e.graphDataManager.getNodes().filter(function(e){return e.id===i.nodeId})[0];r.label.x+=n.dx,r.label.y+=n.dy,e.labelWidget.redrawLabel(t,i)}}),i.filter(function(e){return e instanceof gj}).filter(function(e){return 0===o.filter(function(t){return t.id===e.nodeId}).length}).forEach(function(i){if(!(a.filter(function(e){return e.id===i.nodeId}).length>0)){var r=e.graphDataManager.getLinks().filter(function(e){return e.nodes[0].id===i.id||e.nodes[1].id===i.id})[0];r.nodes[0].id===i.id&&(r.nodes[0].label.x+=n.dx,r.nodes[0].label.y+=n.dy),r.nodes[1].id===i.id&&(r.nodes[1].label.x+=n.dx,r.nodes[1].label.y+=n.dy),e.linksWidget.redrawLink(t,r)}})}}),this.end=(0,Z.T)(this.nodesWidget.draggable.end,this.drawingsWidget.draggable.end,this.labelWidget.draggable.end,this.interfaceWidget.draggable.end).subscribe(function(t){if(!e.isMapLocked){var n=e.selectionManager.getSelected(),i=n.filter(function(e){return e instanceof oj}),r=i.filter(function(e){return e.locked}),o=i.filter(function(e){return!e.locked});o.forEach(function(n){e.nodesEventSource.dragged.emit(new Fj(n,t.dx,t.dy))}),n.filter(function(e){return e instanceof _j}).filter(function(e){return!e.locked}).forEach(function(n){e.drawingsEventSource.dragged.emit(new Fj(n,t.dx,t.dy))}),n.filter(function(e){return e instanceof aj}).filter(function(e){return 0===r.filter(function(t){return t.id===e.nodeId}).length}).forEach(function(n){o.filter(function(e){return e.id===n.nodeId}).length>0||e.nodesEventSource.labelDragged.emit(new Fj(n,t.dx,t.dy))}),n.filter(function(e){return e instanceof gj}).filter(function(e){return 0===r.filter(function(t){return t.id===e.nodeId}).length}).forEach(function(n){o.filter(function(e){return e.id===n.nodeId}).length>0||e.linksEventSource.interfaceDragged.emit(new Fj(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)(y.Y36(az),y.Y36(Dz),y.Y36(gz),y.Y36(nz),y.Y36(Qj),y.Y36(Vj),y.Y36(iz),y.Y36(Hz),y.Y36(Tj),y.Y36(nU),y.Y36(rz))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-draggable-selection"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),rU=["svg"],oU=["textEditor"],aU=function(){function e(e,t,n,i,r,o,a,s,l,c,u,d,h){this.graphDataManager=e,this.context=t,this.mapChangeDetectorRef=n,this.canvasSizeDetector=i,this.mapSettings=r,this.element=o,this.interfaceLabelWidget=a,this.selectionToolWidget=s,this.movingToolWidget=l,this.graphLayout=c,this.toolsService=u,this.mapScaleService=d,this.mapSettingsService=h,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=wr(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)(y.Y36(Tj),y.Y36(Oj),y.Y36(Ej),y.Y36(Pj),y.Y36(Ij),y.Y36(y.SBq),y.Y36(Qj),y.Y36($j),y.Y36(ez),y.Y36(Lz),y.Y36(Fz),y.Y36(Bz),y.Y36(rz))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-d3-map"]],viewQuery:function(e,t){if(1&e&&(y.Gf(rU,5),y.Gf(oU,5)),2&e){var n=void 0;y.iGM(n=y.CRH())&&(t.svgRef=n.first),y.iGM(n=y.CRH())&&(t.textEditor=n.first)}},hostBindings:function(e,t){1&e&&y.NdJ("resize",function(e){return t.onResize(e)},!1,y.Jf7)},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:[y.TTD],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&&(y.O4$(),y.TgZ(0,"svg",0,1),y.TgZ(2,"filter",2),y._UZ(3,"feColorMatrix",3),y.qZA(),y.TgZ(4,"defs"),y.TgZ(5,"pattern",4),y._UZ(6,"path",5),y.qZA(),y.qZA(),y.TgZ(7,"defs"),y.TgZ(8,"pattern",6),y._UZ(9,"path",7),y.qZA(),y.qZA(),y._UZ(10,"rect",8),y._UZ(11,"rect",9),y.qZA(),y.kcU(),y._UZ(12,"app-drawing-adding",10),y._UZ(13,"app-drawing-resizing"),y._UZ(14,"app-selection-control"),y._UZ(15,"app-selection-select"),y._UZ(16,"app-text-editor",11,12),y._UZ(18,"app-draggable-selection",10)),2&e){var n=y.MAs(1);y.xp6(5),y.uIk("x",t.drawingGridX)("y",t.drawingGridY)("width",t.project.drawing_grid_size)("height",t.project.drawing_grid_size),y.xp6(1),y.zWS("d","M ",t.project.drawing_grid_size," 0 L 0 0 0 ",t.project.drawing_grid_size,""),y.uIk("stroke-width",t.gridVisibility),y.xp6(2),y.uIk("x",t.nodeGridX)("y",t.nodeGridY)("width",t.project.grid_size)("height",t.project.grid_size),y.xp6(1),y.zWS("d","M ",t.project.grid_size," 0 L 0 0 0 ",t.project.grid_size,""),y.uIk("stroke-width",t.gridVisibility),y.xp6(3),y.Q6J("svg",n),y.xp6(4),y.Q6J("server",t.server)("svg",n),y.xp6(2),y.Q6J("svg",n)}},directives:[zz,Uz,Yz,Gz,Vz,Qz,tU,iU],styles:["svg[_ngcontent-%COMP%]{display:block}"]}),e}();function sU(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",1),y.TgZ(1,"button",2),y.NdJ("click",function(){return y.CHM(n),y.oxw().onNoClick()}),y._uU(2,"No"),y.qZA(),y.TgZ(3,"button",3),y.NdJ("click",function(){return y.CHM(n),y.oxw().onYesClick()}),y._uU(4," Yes "),y.qZA(),y.qZA()}}function lU(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",1),y.TgZ(1,"button",4),y.NdJ("click",function(){return y.CHM(n),y.oxw().onNoClick()}),y._uU(2,"Ok"),y.qZA(),y.qZA()}}var cU=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)(y.Y36($I),y.Y36(tq))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"span"),y._uU(1),y.qZA(),y.YNc(2,sU,5,0,"div",0),y.YNc(3,lU,3,0,"div",0)),2&e&&(y.xp6(1),y.Oqu(t.confirmationMessage),y.xp6(1),y.Q6J("ngIf",!t.isOpen),y.xp6(1),y.Q6J("ngIf",t.isOpen))},directives:[_.O5,uq,cO],styles:[""]}),e}(),uU=function(){function e(){}return e.prototype.get=function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),dU=n(14200);function hU(e,t){1&e&&(y.TgZ(0,"mat-error"),y._uU(1,"Project name is required"),y.qZA())}function pU(e,t){1&e&&(y.TgZ(0,"mat-error"),y._uU(1,"Project name is incorrect"),y.qZA())}function fU(e,t){1&e&&(y.TgZ(0,"mat-error"),y._uU(1,"Project with this name exists"),y.qZA())}var mU=function(e){return{"is-invalid":e}},gU=function(){function e(e,t,n,i,r,o,a){this.dialogRef=e,this.router=t,this.dialog=n,this.projectService=i,this.toasterService=r,this.formBuilder=o,this.projectNameValidator=a,this.onAddProject=new y.vpe}return e.prototype.ngOnInit=function(){var e,t;this.projectNameForm=this.formBuilder.group({projectName:new st.NI(null,[st.kI.required,this.projectNameValidator.get],[(e=this.server,t=this.projectService,function(n){return(0,xk.H)(500).pipe((0,q.w)(function(){return t.list(e)}),(0,E.U)(function(e){return e.find(function(e){return e.name===n.value})?{projectExist:!0}:null}))})])})},Object.defineProperty(e.prototype,"form",{get:function(){return this.projectNameForm.controls},enumerable:!1,configurable:!0}),e.prototype.onAddClick=function(){var e=this;this.projectNameForm.invalid||this.projectService.list(this.server).subscribe(function(t){var n=e.projectNameForm.controls.projectName.value,i=t.find(function(e){return e.name===n});i?e.openConfirmationDialog(i):e.addProject()})},e.prototype.onNoClick=function(){this.dialogRef.close()},e.prototype.addProject=function(){var e=this;this.uuid=(0,QP.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(cU,{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)(y.Y36($I),y.Y36(KZ),y.Y36(aq),y.Y36(dU.Y),y.Y36(KO),y.Y36(st.qu),y.Y36(uU))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-add-blank-project-dialog"]],features:[y._Bn([uU])],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&&(y.TgZ(0,"h1",0),y._uU(1,"Create new project"),y.qZA(),y.TgZ(2,"form",1),y.TgZ(3,"mat-form-field",2),y.TgZ(4,"input",3),y.NdJ("keydown",function(e){return t.onKeyDown(e)}),y.qZA(),y.YNc(5,hU,2,0,"mat-error",4),y.YNc(6,pU,2,0,"mat-error",4),y.YNc(7,fU,2,0,"mat-error",4),y.qZA(),y.TgZ(8,"div",5),y.TgZ(9,"button",6),y.NdJ("click",function(){return t.onNoClick()}),y._uU(10,"Cancel"),y.qZA(),y.TgZ(11,"button",7),y.NdJ("click",function(){return t.onAddClick()}),y._uU(12," Add project "),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(2),y.Q6J("formGroup",t.projectNameForm),y.xp6(2),y.Q6J("ngClass",y.VKq(5,mU,null==t.form.projectName?null:t.form.projectName.errors)),y.xp6(1),y.Q6J("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)),y.xp6(1),y.Q6J("ngIf",(null==t.form.projectName?null:t.form.projectName.errors)&&(null==t.form.projectName?null:t.form.projectName.errors.invalidName)),y.xp6(1),y.Q6J("ngIf",(null==t.form.projectName?null:t.form.projectName.errors)&&(null==t.form.projectName?null:t.form.projectName.errors.projectExist)))},directives:[lq,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,_.mk,_.O5,uq,cO,sE.TO],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),e}();function vU(e,t){}var yU=new y.OlP("MatBottomSheetData"),_U=function e(){(0,f.Z)(this,e),this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.closeOnNavigation=!0,this.autoFocus=!1,this.restoreFocus=!0},bU={bottomSheetState:(0,ft.X$)("state",[(0,ft.SB)("void, hidden",(0,ft.oB)({transform:"translateY(100%)"})),(0,ft.SB)("visible",(0,ft.oB)({transform:"translateY(0%)"})),(0,ft.eR)("visible => void, visible => hidden",(0,ft.jt)("".concat(lt.mZ.COMPLEX," ").concat(lt.yN.ACCELERATION_CURVE))),(0,ft.eR)("void => visible",(0,ft.jt)("".concat(lt.mZ.EXITING," ").concat(lt.yN.DECELERATION_CURVE)))])},wU=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o,a,s){var l;return(0,f.Z)(this,n),(l=t.call(this))._elementRef=e,l._changeDetectorRef=i,l._focusTrapFactory=r,l.bottomSheetConfig=s,l._animationState="void",l._animationStateChanged=new y.vpe,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([yO,_O,bO]).subscribe(function(){l._toggleClass("mat-bottom-sheet-container-medium",o.isMatched(yO)),l._toggleClass("mat-bottom-sheet-container-large",o.isMatched(_O)),l._toggleClass("mat-bottom-sheet-container-xlarge",o.isMatched(bO))}),l}return(0,m.Z)(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=(0,w.ht)();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=(0,w.ht)(),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=(0,w.ht)(),this._elementRef.nativeElement.focus&&Promise.resolve().then(function(){return e._elementRef.nativeElement.focus()})}}]),n}(wO.en);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(gt.qV),y.Y36(gO),y.Y36(_.K0,8),y.Y36(_U))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-bottom-sheet-container"]],viewQuery:function(e,t){var n;1&e&&y.Gf(wO.Pl,7),2&e&&y.iGM(n=y.CRH())&&(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&&y.WFA("@state.start",function(e){return t._onAnimationStart(e)})("@state.done",function(e){return t._onAnimationDone(e)}),2&e&&(y.uIk("aria-label",null==t.bottomSheetConfig?null:t.bottomSheetConfig.ariaLabel),y.d8E("@state",t._animationState))},features:[y.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&y.YNc(0,vU,0,0,"ng-template",0)},directives:[wO.Pl],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:[bU.bottomSheetState]}}),e}(),SU=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[_e.U8,lt.BQ,wO.eL],lt.BQ]}),e}(),xU=function(){function e(t,n){var i=this;(0,f.Z)(this,e),this._overlayRef=n,this._afterDismissed=new x.xQ,this._afterOpened=new x.xQ,this.containerInstance=t,this.disableClose=t.bottomSheetConfig.disableClose,t._animationStateChanged.pipe((0,dt.h)(function(e){return"done"===e.phaseName&&"visible"===e.toState}),(0,P.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),t._animationStateChanged.pipe((0,dt.h)(function(e){return"done"===e.phaseName&&"hidden"===e.toState}),(0,P.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),n.dispose()}),n.detachments().pipe((0,P.q)(1)).subscribe(function(){i._afterDismissed.next(i._result),i._afterDismissed.complete()}),(0,Z.T)(n.backdropClick(),n.keydownEvents().pipe((0,dt.h)(function(e){return e.keyCode===ct.hY}))).subscribe(function(e){i.disableClose||"keydown"===e.type&&(0,ct.Vb)(e)||(e.preventDefault(),i.dismiss())})}return(0,m.Z)(e,[{key:"dismiss",value:function(e){var t=this;this._afterDismissed.closed||(this.containerInstance._animationStateChanged.pipe((0,dt.h)(function(e){return"start"===e.phaseName}),(0,P.q)(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}(),CU=new y.OlP("mat-bottom-sheet-default-options"),kU=function(){var e=function(){function e(t,n,i,r){(0,f.Z)(this,e),this._overlay=t,this._injector=n,this._parentBottomSheet=i,this._defaultOptions=r,this._bottomSheetRefAtThisLevel=null}return(0,m.Z)(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,i=function(e,t){return Object.assign(Object.assign({},e),t)}(this._defaultOptions||new _U,t),r=this._createOverlay(i),o=this._attachContainer(r,i),a=new xU(o,r);if(e instanceof y.Rgc)o.attachTemplatePortal(new wO.UE(e,null,{$implicit:i.data,bottomSheetRef:a}));else{var s=new wO.C5(e,void 0,this._createInjector(i,a)),l=o.attachComponentPortal(s);a.instance=l.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=y.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:_U,useValue:t}]}),i=new wO.C5(wU,t.viewContainerRef,n);return e.attach(i).instance}},{key:"_createOverlay",value:function(e){var t=new _e.X_({direction:e.direction,hasBackdrop:e.hasBackdrop,disposeOnNavigation:e.closeOnNavigation,maxWidth:"100%",scrollStrategy:e.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0")});return e.backdropClass&&(t.backdropClass=e.backdropClass),this._overlay.create(t)}},{key:"_createInjector",value:function(e,t){var n=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=[{provide:xU,useValue:t},{provide:yU,useValue:e.data}];return!e.direction||n&&n.get(N.Is,null)||i.push({provide:N.Is,useValue:{value:e.direction,change:(0,Ce.of)()}}),y.zs3.create({parent:n||this._injector,providers:i})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.LFG(_e.aV),y.LFG(y.zs3),y.LFG(e,12),y.LFG(CU,8))},e.\u0275prov=y.Yz7({factory:function(){return new e(y.LFG(_e.aV),y.LFG(y.gxx),y.LFG(e,12),y.LFG(CU,8))},token:e,providedIn:SU}),e}(),TU=function(e){return{lightTheme:e}},AU=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)(y.Y36(xU),y.Y36(EP.f))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y._uU(2),y.qZA(),y.TgZ(3,"div"),y.TgZ(4,"button",2),y.NdJ("click",function(){return t.onNoClick()}),y._uU(5,"No"),y.qZA(),y.TgZ(6,"button",2),y.NdJ("click",function(){return t.onYesClick()}),y._uU(7,"Yes"),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.Q6J("ngClass",y.VKq(2,TU,t.isLightThemeEnabled)),y.xp6(2),y.Oqu(t.message))},directives:[_.mk,cO],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}(),ZU=function(){function e(){}return e.prototype.get=function(e){return+e.value>=0?null:{negativeValue:!0}},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),MU=n(88802);function OU(e,t){1&e&&(y.TgZ(0,"th",26),y._uU(1,"Name"),y.qZA())}function EU(e,t){if(1&e&&(y.TgZ(0,"td",27),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.name)}}function PU(e,t){1&e&&(y.TgZ(0,"th",26),y._uU(1,"Value"),y.qZA())}function IU(e,t){if(1&e&&(y.TgZ(0,"td",27),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.value)}}function qU(e,t){1&e&&(y.TgZ(0,"th",26),y._uU(1,"Actions"),y.qZA())}function NU(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"td",27),y.TgZ(1,"button",28),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw().deleteVariable(e)}),y.TgZ(2,"mat-icon",29),y._uU(3,"delete"),y.qZA(),y.qZA(),y.qZA()}}function DU(e,t){1&e&&y._UZ(0,"tr",30)}function RU(e,t){1&e&&y._UZ(0,"tr",31)}var LU=function(){return{standalone:!0}},FU=function(){function e(e,t,n,i,r){this.dialogRef=e,this.formBuilder=t,this.projectService=n,this.toasterService=i,this.nonNegativeValidator=r,this.displayedColumns=["name","value","actions"],this.variables=[],this.formGroup=this.formBuilder.group({projectName:new st.NI("",[st.kI.required]),width:new st.NI("",[st.kI.required,r.get]),height:new st.NI("",[st.kI.required,r.get]),nodeGridSize:new st.NI("",[st.kI.required,r.get]),drawingGridSize:new st.NI("",[st.kI.required,r.get])}),this.variableFormGroup=this.formBuilder.group({name:new st.NI("",[st.kI.required]),value:new st.NI("",[st.kI.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.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)(y.Y36($I),y.Y36(st.qu),y.Y36(dU.Y),y.Y36(KO),y.Y36(ZU))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1,"Edit project"),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"mat-tab-group"),y.TgZ(4,"mat-tab",2),y.TgZ(5,"form",3),y.TgZ(6,"mat-form-field",4),y._UZ(7,"input",5),y.qZA(),y.TgZ(8,"mat-form-field",4),y._UZ(9,"input",6),y.qZA(),y.TgZ(10,"mat-form-field",4),y._UZ(11,"input",7),y.qZA(),y.TgZ(12,"mat-form-field",4),y._UZ(13,"input",8),y.qZA(),y.TgZ(14,"mat-form-field",4),y._UZ(15,"input",9),y.qZA(),y.qZA(),y.TgZ(16,"mat-checkbox",10),y.NdJ("ngModelChange",function(e){return t.project.auto_open=e}),y._uU(17," Open this project in the background when GNS3 server starts "),y.qZA(),y.TgZ(18,"mat-checkbox",10),y.NdJ("ngModelChange",function(e){return t.project.auto_start=e}),y._uU(19," Start all nodes when this project is opened "),y.qZA(),y.TgZ(20,"mat-checkbox",10),y.NdJ("ngModelChange",function(e){return t.auto_close=e}),y._uU(21," Leave this project running in the background after closing "),y.qZA(),y.TgZ(22,"mat-checkbox",10),y.NdJ("ngModelChange",function(e){return t.project.show_interface_labels=e}),y._uU(23," Show interface labels at start "),y.qZA(),y.qZA(),y.TgZ(24,"mat-tab",11),y.TgZ(25,"form",3),y.TgZ(26,"mat-form-field",4),y._UZ(27,"input",12),y.qZA(),y.TgZ(28,"mat-form-field",4),y._UZ(29,"input",13),y.qZA(),y.qZA(),y.TgZ(30,"button",14),y.NdJ("click",function(){return t.addVariable()}),y._uU(31," Add variable "),y.qZA(),y.TgZ(32,"table",15),y.ynx(33,16),y.YNc(34,OU,2,0,"th",17),y.YNc(35,EU,2,1,"td",18),y.BQk(),y.ynx(36,19),y.YNc(37,PU,2,0,"th",17),y.YNc(38,IU,2,1,"td",18),y.BQk(),y.ynx(39,20),y.YNc(40,qU,2,0,"th",17),y.YNc(41,NU,4,0,"td",18),y.BQk(),y.YNc(42,DU,1,0,"tr",21),y.YNc(43,RU,1,0,"tr",22),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(44,"div",23),y.TgZ(45,"button",24),y.NdJ("click",function(){return t.onNoClick()}),y._uU(46,"Cancel"),y.qZA(),y.TgZ(47,"button",25),y.NdJ("click",function(){return t.onYesClick()}),y._uU(48,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(5),y.Q6J("formGroup",t.formGroup),y.xp6(11),y.Q6J("ngModelOptions",y.DdM(13,LU))("ngModel",t.project.auto_open),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(14,LU))("ngModel",t.project.auto_start),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(15,LU))("ngModel",t.auto_close),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(16,LU))("ngModel",t.project.show_interface_labels),y.xp6(3),y.Q6J("formGroup",t.variableFormGroup),y.xp6(7),y.Q6J("dataSource",t.variables),y.xp6(10),y.Q6J("matHeaderRowDef",t.displayedColumns),y.xp6(1),y.Q6J("matRowDefColumns",t.displayedColumns))},directives:[lq,MU.SP,MU.uX,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,st.wV,XD,st.On,cO,yP,wP,bP,_P,CP,kP,uq,SP,xP,MO,nO,TP,AP],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 BU(e,t){1&e&&(y.TgZ(0,"mat-error"),y._uU(1,"Project name is required"),y.qZA())}function jU(e,t){1&e&&(y.TgZ(0,"mat-error"),y._uU(1,"Project name is incorrect"),y.qZA())}var zU=function(e){return{empty:e}},UU=function(e){return{"is-invalid":e}},HU=function(e){return{width:e}},YU=function(){function e(e,t,n,i,r,o){this.dialog=e,this.dialogRef=t,this.data=n,this.formBuilder=i,this.projectService=r,this.projectNameValidator=o,this.isImportEnabled=!1,this.isFinishEnabled=!1,this.isDeleteVisible=!1,this.resultMessage="The project is being imported... Please wait",this.submitted=!1,this.isFirstStepCompleted=!1,this.onImportProject=new y.vpe,this.projectNameForm=this.formBuilder.group({projectName:new st.NI(null,[st.kI.required,o.get])})}return e.prototype.ngOnInit=function(){var e=this;this.uploader=new Gk({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,i,r){var o=JSON.parse(n);e.resultMessage="An error occured: "+o.message,e.isFinishEnabled=!0},this.uploader.onCompleteItem=function(t,n,i,r){e.onImportProject.emit(e.uuid),e.resultMessage="Project was imported succesfully!",e.isFinishEnabled=!0}},Object.defineProperty(e.prototype,"form",{get:function(){return this.projectNameForm.controls},enumerable:!1,configurable:!0}),e.prototype.uploadProjectFile=function(e){this.projectNameForm.controls.projectName.setValue(e.target.files[0].name.split(".")[0]),this.isImportEnabled=!0,this.isDeleteVisible=!0},e.prototype.onImportClick=function(){var e=this;this.projectNameForm.invalid?this.submitted=!0:this.projectService.list(this.server).subscribe(function(t){var n=e.projectNameForm.controls.projectName.value,i=t.find(function(e){return e.name===n});i?e.openConfirmationDialog(i):e.importProject()})},e.prototype.importProject=function(){var e=this.prepareUploadPath();this.uploader.queue.forEach(function(t){return t.url=e}),this.isFirstStepCompleted=!0,this.uploader.uploadItem(this.uploader.queue[0])},e.prototype.openConfirmationDialog=function(e){var t=this;this.dialog.open(cU,{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=(0,QP.v4)(),this.projectService.getUploadPath(this.server,this.uuid,this.projectNameForm.controls.projectName.value)},e.\u0275fac=function(t){return new(t||e)(y.Y36(aq),y.Y36($I),y.Y36(tq),y.Y36(st.qu),y.Y36(dU.Y),y.Y36(uU))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-import-project-dialog"]],features:[y._Bn([uU])],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=y.EpF();y.TgZ(0,"h1",0),y._uU(1,"Import project"),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"form",2),y.TgZ(4,"input",3,4),y.NdJ("change",function(e){return t.uploadProjectFile(e)}),y.qZA(),y.TgZ(6,"button",5),y.NdJ("click",function(){return y.CHM(n),y.MAs(5).click()}),y._uU(7," Choose file "),y.qZA(),y.TgZ(8,"mat-form-field",6),y._UZ(9,"input",7),y.YNc(10,BU,2,0,"mat-error",8),y.YNc(11,jU,2,0,"mat-error",8),y.qZA(),y.TgZ(12,"button",9),y.TgZ(13,"mat-icon",10),y.NdJ("click",function(){return t.onDeleteClick()}),y._uU(14,"clear"),y.qZA(),y.qZA(),y.TgZ(15,"div",11),y.TgZ(16,"button",12),y.NdJ("click",function(){return t.onNoClick()}),y._uU(17,"Cancel"),y.qZA(),y.TgZ(18,"button",13),y.NdJ("click",function(){return t.onImportClick()}),y._uU(19," Import "),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(20,"div",1),y.TgZ(21,"div",14),y._UZ(22,"div",15),y.qZA(),y.TgZ(23,"div",16),y.TgZ(24,"span"),y._uU(25),y.qZA(),y.qZA(),y.TgZ(26,"div",11),y.TgZ(27,"button",13),y.NdJ("click",function(){return t.onNoClick()}),y._uU(28," Finish "),y.qZA(),y.qZA(),y.qZA()}2&e&&(y.xp6(2),y.Q6J("hidden",t.isFirstStepCompleted),y.xp6(1),y.Q6J("formGroup",t.projectNameForm),y.xp6(1),y.Q6J("uploader",t.uploader),y.xp6(4),y.Q6J("ngClass",y.VKq(13,zU,!t.isDeleteVisible)),y.xp6(1),y.Q6J("ngClass",y.VKq(15,UU,t.form.projectName.errors)),y.xp6(1),y.Q6J("ngIf",t.form.projectName.errors&&t.form.projectName.errors.required),y.xp6(1),y.Q6J("ngIf",t.form.projectName.errors&&t.form.projectName.errors.invalidName),y.xp6(1),y.Q6J("hidden",!t.isDeleteVisible),y.xp6(6),y.Q6J("disabled",!t.isImportEnabled),y.xp6(2),y.Q6J("hidden",!t.isFirstStepCompleted),y.xp6(2),y.Q6J("ngStyle",y.VKq(17,HU,t.uploader.progress+"%")),y.xp6(3),y.Oqu(t.resultMessage),y.xp6(2),y.Q6J("disabled",!t.isFinishEnabled))},directives:[lq,st._Y,st.JL,st.sg,Wk,cO,MO,sE.KE,_.mk,mE,st.Fj,st.JJ,st.u,_.O5,nO,uq,_.PC,sE.TO],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}(),JU=function(e){return{lightTheme:e}},GU=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)(y.Y36(xU),y.Y36(EP.f))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y._uU(2),y.qZA(),y.TgZ(3,"div"),y.TgZ(4,"button",2),y.NdJ("click",function(){return t.onNoClick()}),y._uU(5,"No"),y.qZA(),y.TgZ(6,"button",3),y.NdJ("click",function(){return t.onYesClick()}),y._uU(7,"Yes"),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.Q6J("ngClass",y.VKq(2,JU,t.isLightThemeEnabled)),y.xp6(2),y.hij("Do you want to navigate to ",t.projectMessage,"?"))},directives:[_.mk,cO],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}();function WU(e,t){1&e&&(y.TgZ(0,"mat-error"),y._uU(1,"Project name is required"),y.qZA())}function VU(e,t){1&e&&(y.TgZ(0,"mat-error"),y._uU(1,"Project name is incorrect"),y.qZA())}var QU=function(e){return{"is-invalid":e}},XU=function(){function e(e,t,n,i,r,o){this.dialogRef=e,this.projectService=t,this.nodesDataSource=n,this.toasterService=i,this.formBuilder=r,this.projectNameValidator=o,this.onAddProject=new y.vpe,this.projectNameForm=this.formBuilder.group({projectName:new st.NI(null,[st.kI.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)(y.Y36($I),y.Y36(dU.Y),y.Y36($z.G),y.Y36(KO),y.Y36(st.qu),y.Y36(uU))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-save-project-dialog"]],features:[y._Bn([uU])],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&&(y.TgZ(0,"h1",0),y._uU(1,"Save project as"),y.qZA(),y.TgZ(2,"form",1),y.TgZ(3,"mat-form-field",2),y.TgZ(4,"input",3),y.NdJ("keydown",function(e){return t.onKeyDown(e)}),y.qZA(),y.YNc(5,WU,2,0,"mat-error",4),y.YNc(6,VU,2,0,"mat-error",4),y.qZA(),y.TgZ(7,"div",5),y.TgZ(8,"button",6),y.NdJ("click",function(){return t.onNoClick()}),y._uU(9,"Cancel"),y.qZA(),y.TgZ(10,"button",7),y.NdJ("click",function(){return t.onAddClick()}),y._uU(11,"Save project"),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(2),y.Q6J("formGroup",t.projectNameForm),y.xp6(2),y.Q6J("ngClass",y.VKq(4,QU,null==t.form.projectName?null:t.form.projectName.errors)),y.xp6(1),y.Q6J("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)),y.xp6(1),y.Q6J("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:[lq,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,_.mk,_.O5,uq,cO,sE.TO],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),e}(),KU=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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function $U(e,t){if(1&e&&(y.TgZ(0,"div"),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.hij(" ",n," ")}}var eH=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)(y.Y36($I),y.Y36(KU))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"mat-tab-group",2),y.TgZ(4,"mat-tab",3),y.TgZ(5,"div",4),y.YNc(6,$U,2,1,"div",5),y.qZA(),y.qZA(),y.TgZ(7,"mat-tab",6),y.TgZ(8,"div",4),y._uU(9),y.qZA(),y.qZA(),y.TgZ(10,"mat-tab",7),y.TgZ(11,"div",4),y._uU(12),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(13,"div",8),y.TgZ(14,"button",9),y.NdJ("click",function(){return t.onCloseClick()}),y._uU(15,"Close"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.Oqu(t.node.name),y.xp6(5),y.Q6J("ngForOf",t.infoList),y.xp6(3),y.hij(" ",t.usage," "),y.xp6(3),y.hij(" ",t.commandLine," "))},directives:[lq,MU.SP,MU.uX,_.sg,uq,cO],styles:[".textBox[_ngcontent-%COMP%]{margin-top:10px}"]}),e}(),tH=function(){function e(e){this.dialog=e}return e.prototype.showNode=function(){var e=this.dialog.open(eH,{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)(y.Y36(aq))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.showNode()}),y.TgZ(1,"mat-icon"),y._uU(2,"info"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Show node information"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}(),nH=function(){function e(e){this.httpServer=e}return e.prototype.getNodeById=function(e,t,n){return this.httpServer.get(e,"/projects/"+t+"/nodes/"+n)},e.prototype.start=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/start",{})},e.prototype.startAll=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/start",{})},e.prototype.stop=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/stop",{})},e.prototype.stopAll=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/stop",{})},e.prototype.suspend=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/suspend",{})},e.prototype.suspendAll=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/suspend",{})},e.prototype.reload=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/reload",{})},e.prototype.reloadAll=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/reload",{})},e.prototype.createFromTemplate=function(e,t,n,i,r,o){return this.httpServer.post(e,"/projects/"+t.project_id+"/templates/"+n.template_id,o?{x:Math.round(i),y:Math.round(r),compute_id:o}:{x:Math.round(i),y:Math.round(r),compute_id:"local"})},e.prototype.updatePosition=function(e,t,n,i,r){var o=Math.round(i),a=Math.round(r);return t.snap_to_grid&&(o=Math.round((o+n.width/2)/t.grid_size)*t.grid_size,a=Math.round((a+n.height/2)/t.grid_size)*t.grid_size,o=Math.round(o-n.width/2),a=Math.round(a-n.height/2)),this.httpServer.put(e,"/projects/"+n.project_id+"/nodes/"+n.node_id,{x:o,y:a})},e.prototype.updateLabel=function(e,t,n){return this.httpServer.put(e,"/projects/"+t.project_id+"/nodes/"+t.node_id,{label:{rotation:n.rotation,style:n.style,text:n.text,x:Math.round(n.x),y:Math.round(n.y)}})},e.prototype.updateSymbol=function(e,t,n){return this.httpServer.put(e,"/projects/"+t.project_id+"/nodes/"+t.node_id,{symbol:n})},e.prototype.update=function(e,t){return this.httpServer.put(e,"/projects/"+t.project_id+"/nodes/"+t.node_id,{x:Math.round(t.x),y:Math.round(t.y),z:t.z})},e.prototype.updateNode=function(e,t){return this.httpServer.put(e,"/projects/"+t.project_id+"/nodes/"+t.node_id,{console_type:t.console_type,console_auto_start:t.console_auto_start,locked:t.locked,name:t.name,properties:t.properties})},e.prototype.updateNodeWithCustomAdapters=function(e,t){return this.httpServer.put(e,"/projects/"+t.project_id+"/nodes/"+t.node_id,{console_type:t.console_type,console_auto_start:t.console_auto_start,custom_adapters:t.custom_adapters,name:t.name,properties:t.properties})},e.prototype.delete=function(e,t){return this.httpServer.delete(e,"/projects/"+t.project_id+"/nodes/"+t.node_id)},e.prototype.duplicate=function(e,t){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/duplicate",{x:t.x+10,y:t.y+10,z:t.z})},e.prototype.getNode=function(e,t){return this.httpServer.get(e,"/projects/"+t.project_id+"/nodes/"+t.node_id)},e.prototype.getDefaultCommand=function(){return'putty.exe -telnet %h %p -wt "%d" -gns3 5 -skin 4'},e.prototype.getNetworkConfiguration=function(e,t){return this.httpServer.get(e,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/files/etc/network/interfaces",{responseType:"text"})},e.prototype.saveNetworkConfiguration=function(e,t,n){return this.httpServer.post(e,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/files/etc/network/interfaces",n)},e.prototype.getStartupConfiguration=function(e,t){var n="/projects/"+t.project_id+"/nodes/"+t.node_id;return"vpcs"===t.node_type?n+="/files/startup.vpc":"iou"===t.node_type?n+="/files/startup-config.cfg":"dynamips"===t.node_type&&(n+="/files/configs/i"+t.node_id+"_startup-config.cfg"),this.httpServer.get(e,n,{responseType:"text"})},e.prototype.getPrivateConfiguration=function(e,t){var n="/projects/"+t.project_id+"/nodes/"+t.node_id;return"iou"===t.node_type?n+="/files/private-config.cfg":"dynamips"===t.node_type&&(n+="/files/configs/i"+t.node_id+"_private-config.cfg"),this.httpServer.get(e,n,{responseType:"text"})},e.prototype.saveConfiguration=function(e,t,n){var i="/projects/"+t.project_id+"/nodes/"+t.node_id;return"vpcs"===t.node_type?i+="/files/startup.vpc":"iou"===t.node_type?i+="/files/startup-config.cfg":"dynamips"===t.node_type&&(i+="/files/configs/i"+t.node_id+"_startup-config.cfg"),this.httpServer.post(e,i,n)},e.prototype.savePrivateConfiguration=function(e,t,n){var i="/projects/"+t.project_id+"/nodes/"+t.node_id;return"iou"===t.node_type?i+="/files/private-config.cfg":"dynamips"===t.node_type&&(i+="/files/configs/i"+t.node_id+"_private-config.cfg"),this.httpServer.post(e,i,n)},e.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}();function iH(e,t){1&e&&(y.TgZ(0,"th",27),y._uU(1,"Port : VPI : VCI"),y.qZA())}function rH(e,t){if(1&e&&(y.TgZ(0,"td",28),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.portIn)}}function oH(e,t){1&e&&(y.TgZ(0,"th",27),y._uU(1,"Port : VPI : VCI"),y.qZA())}function aH(e,t){if(1&e&&(y.TgZ(0,"td",28),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.portOut)}}function sH(e,t){1&e&&(y.TgZ(0,"th",27),y._uU(1,"Actions"),y.qZA())}function lH(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"td",28),y.TgZ(1,"button",29),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(2).delete(e)}),y.TgZ(2,"mat-icon",30),y._uU(3,"delete"),y.qZA(),y.qZA(),y.qZA()}}function cH(e,t){1&e&&y._UZ(0,"tr",31)}function uH(e,t){1&e&&y._UZ(0,"tr",32)}function dH(e,t){if(1&e&&(y.TgZ(0,"table",19),y.ynx(1,20),y.YNc(2,iH,2,0,"th",21),y.YNc(3,rH,2,1,"td",22),y.BQk(),y.ynx(4,23),y.YNc(5,oH,2,0,"th",21),y.YNc(6,aH,2,1,"td",22),y.BQk(),y.ynx(7,24),y.YNc(8,sH,2,0,"th",21),y.YNc(9,lH,4,0,"td",22),y.BQk(),y.YNc(10,cH,1,0,"tr",25),y.YNc(11,uH,1,0,"tr",26),y.qZA()),2&e){var n=y.oxw();y.Q6J("dataSource",n.nodeMappingsDataSource),y.xp6(10),y.Q6J("matHeaderRowDef",n.displayedColumns),y.xp6(1),y.Q6J("matRowDefColumns",n.displayedColumns)}}var hH=function(){function e(e,t,n,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.consoleTypes=[],this.nodeMappings=new Map,this.nodeMappingsDataSource=[],this.dataSource=[],this.displayedColumns=["portIn","portOut","actions"],this.sourcePort="",this.sourceVpi="",this.sourceVci="",this.destinationPort="",this.destinationVpi="",this.destinationVci="",this.useVpiOnly=!1,this.nameForm=this.formBuilder.group({name:new st.NI("",st.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new st.NI("",st.kI.required),sourceVci:new st.NI("",st.kI.required),destinationPort:new st.NI("",st.kI.required),destinationVci:new st.NI("",st.kI.required)}),this.abstractForm=this.formBuilder.group({sourceVpi:new st.NI("",st.kI.required),destinationVpi:new st.NI("",st.kI.required)})}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){e.node=t,e.name=t.name;var n=t.properties.mappings;Object.keys(n).forEach(function(t){e.nodeMappings.set(t,n[t])}),e.nodeMappings.forEach(function(t,n){e.nodeMappingsDataSource.push({portIn:n,portOut:t})})})},e.prototype.delete=function(e){this.nodeMappingsDataSource=this.nodeMappingsDataSource.filter(function(t){return t!==e})},e.prototype.add=function(){var e;this.inputForm.valid?this.useVpiOnly?(e={portIn:this.sourcePort+":"+this.sourceVci,portOut:this.destinationPort+":"+this.destinationVci},this.nodeMappingsDataSource.filter(function(t){return t.portIn===e.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())):this.abstractForm.valid?(e={portIn:this.sourcePort+":"+this.sourceVpi+":"+this.sourceVci,portOut:this.destinationPort+":"+this.destinationVpi+":"+this.destinationVci},this.nodeMappingsDataSource.filter(function(t){return t.portIn===e.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())):this.toasterService.error("Fill all required fields."):this.toasterService.error("Fill all required fields.")},e.prototype.clearUserInput=function(){this.sourcePort="0",this.sourceVpi="0",this.sourceVci="0",this.destinationPort="0",this.destinationVpi="0",this.sourceVci="0"},e.prototype.strMapToObj=function(e){for(var t=Object.create(null),n=0,i=e;n<i.length;n++){var r=i[n];t[r[0]]=r[1]}return t},e.prototype.onSaveClick=function(){var e=this;this.nameForm.valid?(this.nodeMappings.clear(),this.nodeMappingsDataSource.forEach(function(t){e.nodeMappings.set(t.portIn,t.portOut)}),this.node.properties.mappings=Array.from(this.nodeMappings).reduce(function(e,t){var n;return Object.assign(e,((n={})[t[0]]=t[1],n))},{}),this.nodeService.updateNode(this.server,this.node).subscribe(function(){e.toasterService.success("Node "+e.node.name+" updated."),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(y.Y36($I),y.Y36(nH),y.Y36(KO),y.Y36(st.qu))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"div",3),y.TgZ(5,"mat-card"),y.YNc(6,dH,12,3,"table",4),y._UZ(7,"br"),y.TgZ(8,"form",5),y.TgZ(9,"mat-form-field",6),y.TgZ(10,"input",7),y.NdJ("ngModelChange",function(e){return t.node.name=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(11,"mat-checkbox",8),y.NdJ("ngModelChange",function(e){return t.useVpiOnly=e}),y._uU(12," Use VPI only (VP tunnel) "),y.qZA(),y.TgZ(13,"form",5),y._uU(14," Source "),y.TgZ(15,"mat-form-field",6),y.TgZ(16,"input",9),y.NdJ("ngModelChange",function(e){return t.sourcePort=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(17,"form",5),y.TgZ(18,"mat-form-field",6),y.TgZ(19,"input",10),y.NdJ("ngModelChange",function(e){return t.sourceVpi=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(20,"form",5),y.TgZ(21,"mat-form-field",6),y.TgZ(22,"input",11),y.NdJ("ngModelChange",function(e){return t.sourceVci=e}),y.qZA(),y.qZA(),y._uU(23," Destination "),y.TgZ(24,"mat-form-field",6),y.TgZ(25,"input",12),y.NdJ("ngModelChange",function(e){return t.destinationPort=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(26,"form",5),y.TgZ(27,"mat-form-field",6),y.TgZ(28,"input",13),y.NdJ("ngModelChange",function(e){return t.destinationVpi=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(29,"form",5),y.TgZ(30,"mat-form-field",6),y.TgZ(31,"input",14),y.NdJ("ngModelChange",function(e){return t.destinationVci=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(32,"button",15),y.NdJ("click",function(){return t.add()}),y._uU(33,"Add"),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(34,"div",16),y.TgZ(35,"button",17),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(36,"Cancel"),y.qZA(),y.TgZ(37,"button",18),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(38,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Configurator for node ",t.name,""),y.xp6(5),y.Q6J("ngIf",t.nodeMappingsDataSource.length),y.xp6(2),y.Q6J("formGroup",t.nameForm),y.xp6(2),y.Q6J("ngModel",t.node.name),y.xp6(1),y.Q6J("ngModel",t.useVpiOnly),y.xp6(2),y.Q6J("formGroup",t.inputForm),y.xp6(3),y.Q6J("ngModel",t.sourcePort),y.xp6(1),y.Q6J("formGroup",t.abstractForm),y.xp6(2),y.Q6J("ngModel",t.sourceVpi),y.xp6(1),y.Q6J("formGroup",t.inputForm),y.xp6(2),y.Q6J("ngModel",t.sourceVci),y.xp6(3),y.Q6J("ngModel",t.destinationPort),y.xp6(1),y.Q6J("formGroup",t.abstractForm),y.xp6(2),y.Q6J("ngModel",t.destinationVpi),y.xp6(1),y.Q6J("formGroup",t.inputForm),y.xp6(2),y.Q6J("ngModel",t.destinationVci))},directives:[lq,oE,_.O5,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,XD,st.On,st.wV,cO,uq,yP,wP,bP,_P,CP,kP,SP,xP,MO,nO,TP,AP],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}();function pH(e,t){1&e&&(y.TgZ(0,"th",18),y._uU(1,"Name"),y.qZA())}function fH(e,t){if(1&e&&(y.TgZ(0,"td",19),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.name)}}function mH(e,t){1&e&&(y.TgZ(0,"th",18),y._uU(1,"Local port"),y.qZA())}function gH(e,t){if(1&e&&(y.TgZ(0,"td",19),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.rport)}}function vH(e,t){1&e&&(y.TgZ(0,"th",18),y._uU(1,"Type"),y.qZA())}function yH(e,t){if(1&e&&(y.TgZ(0,"td",19),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.rhost)}}function _H(e,t){1&e&&(y.TgZ(0,"th",18),y._uU(1,"Remote port"),y.qZA())}function bH(e,t){if(1&e&&(y.TgZ(0,"td",19),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.lport)}}function wH(e,t){1&e&&(y.TgZ(0,"th",18),y._uU(1,"Actions"),y.qZA())}function SH(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"td",19),y.TgZ(1,"button",20),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(2).delete(e)}),y.TgZ(2,"mat-icon",21),y._uU(3,"delete"),y.qZA(),y.qZA(),y.qZA()}}function xH(e,t){1&e&&y._UZ(0,"tr",22)}function CH(e,t){1&e&&y._UZ(0,"tr",23)}function kH(e,t){if(1&e&&(y.TgZ(0,"table",8),y.ynx(1,9),y.YNc(2,pH,2,0,"th",10),y.YNc(3,fH,2,1,"td",11),y.BQk(),y.ynx(4,12),y.YNc(5,mH,2,0,"th",10),y.YNc(6,gH,2,1,"td",11),y.BQk(),y.ynx(7,13),y.YNc(8,vH,2,0,"th",10),y.YNc(9,yH,2,1,"td",11),y.BQk(),y.ynx(10,14),y.YNc(11,_H,2,0,"th",10),y.YNc(12,bH,2,1,"td",11),y.BQk(),y.ynx(13,15),y.YNc(14,wH,2,0,"th",10),y.YNc(15,SH,4,0,"td",11),y.BQk(),y.YNc(16,xH,1,0,"tr",16),y.YNc(17,CH,1,0,"tr",17),y.qZA()),2&e){var n=y.oxw();y.Q6J("dataSource",n.dataSourceUdp),y.xp6(16),y.Q6J("matHeaderRowDef",n.displayedColumns),y.xp6(1),y.Q6J("matRowDefColumns",n.displayedColumns)}}function TH(e,t){1&e&&y._UZ(0,"br")}var AH=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)(y.Y36(mI))},e.\u0275cmp=y.Xpm({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&&(y.YNc(0,kH,18,3,"table",0),y.YNc(1,TH,1,0,"br",1),y.TgZ(2,"mat-form-field",2),y.TgZ(3,"input",3),y.NdJ("ngModelChange",function(e){return t.newPort.name=e}),y.qZA(),y.qZA(),y.TgZ(4,"mat-form-field",2),y.TgZ(5,"input",4),y.NdJ("ngModelChange",function(e){return t.newPort.lport=e}),y.qZA(),y.qZA(),y.TgZ(6,"mat-form-field",2),y.TgZ(7,"input",5),y.NdJ("ngModelChange",function(e){return t.newPort.rhost=e}),y.qZA(),y.qZA(),y.TgZ(8,"mat-form-field",2),y.TgZ(9,"input",6),y.NdJ("ngModelChange",function(e){return t.newPort.rport=e}),y.qZA(),y.qZA(),y.TgZ(10,"button",7),y.NdJ("click",function(){return t.onAddUdpInterface()}),y._uU(11,"Add"),y.qZA()),2&e&&(y.Q6J("ngIf",t.dataSourceUdp.length),y.xp6(1),y.Q6J("ngIf",t.dataSourceUdp.length),y.xp6(2),y.Q6J("ngModel",t.newPort.name),y.xp6(2),y.Q6J("ngModel",t.newPort.lport),y.xp6(2),y.Q6J("ngModel",t.newPort.rhost),y.xp6(2),y.Q6J("ngModel",t.newPort.rport))},directives:[_.O5,sE.KE,mE,st.Fj,st.JJ,st.On,st.wV,cO,yP,wP,bP,_P,CP,kP,SP,xP,MO,nO,TP,AP],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}(),ZH=["udpTunnels"];function MH(e,t){if(1&e&&(y.TgZ(0,"div",16),y.TgZ(1,"div",16),y._uU(2),y.qZA(),y._UZ(3,"br"),y._UZ(4,"br"),y.qZA()),2&e){var n=t.$implicit;y.xp6(2),y.Oqu(n.name)}}function OH(e,t){if(1&e&&(y.TgZ(0,"mat-option",28),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function EH(e,t){if(1&e&&(y.TgZ(0,"div",16),y.TgZ(1,"div",16),y._uU(2),y.qZA(),y._UZ(3,"br"),y._UZ(4,"br"),y.qZA()),2&e){var n=t.$implicit;y.xp6(2),y.Oqu(n.name)}}function PH(e,t){if(1&e&&(y.TgZ(0,"mat-option",28),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}var IH=function(){return{standalone:!0}};function qH(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-tab-group"),y.TgZ(1,"mat-tab",9),y.YNc(2,MH,5,1,"div",10),y.TgZ(3,"mat-form-field",11),y.TgZ(4,"mat-select",12),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().ethernetInterface=e}),y.YNc(5,OH,2,2,"mat-option",13),y.qZA(),y.qZA(),y.TgZ(6,"button",14),y.NdJ("click",function(){return y.CHM(n),y.oxw().onAddEthernetInterface()}),y._uU(7,"Add"),y.qZA(),y.qZA(),y.TgZ(8,"mat-tab",15),y.YNc(9,EH,5,1,"div",10),y.TgZ(10,"mat-form-field",16),y.TgZ(11,"input",17),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().tapInterface=e}),y.qZA(),y.qZA(),y.TgZ(12,"button",14),y.NdJ("click",function(){return y.CHM(n),y.oxw().onAddTapInterface()}),y._uU(13,"Add"),y.qZA(),y.qZA(),y.TgZ(14,"mat-tab",18),y._UZ(15,"app-udp-tunnels",19,20),y.qZA(),y.TgZ(17,"mat-tab",21),y.TgZ(18,"form",22),y.TgZ(19,"mat-form-field",16),y.TgZ(20,"input",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.name=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(21,"mat-form-field",11),y.TgZ(22,"mat-select",24),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.console_type=e}),y.YNc(23,PH,2,2,"mat-option",13),y.qZA(),y.qZA(),y.TgZ(24,"mat-form-field",16),y.TgZ(25,"input",25),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.remote_console_host=e}),y.qZA(),y.qZA(),y.TgZ(26,"mat-form-field",16),y.TgZ(27,"input",26),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.remote_console_port=e}),y.qZA(),y.qZA(),y.TgZ(28,"mat-form-field",16),y.TgZ(29,"input",27),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.remote_console_http_path=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(2),y.Q6J("ngForOf",i.portsMappingEthernet),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(14,IH))("ngModel",i.ethernetInterface),y.xp6(1),y.Q6J("ngForOf",i.ethernetInterfaces),y.xp6(4),y.Q6J("ngForOf",i.portsMappingTap),y.xp6(2),y.Q6J("ngModel",i.tapInterface),y.xp6(4),y.Q6J("dataSourceUdp",i.portsMappingUdp),y.xp6(3),y.Q6J("formGroup",i.generalSettingsForm),y.xp6(2),y.Q6J("ngModel",i.node.name),y.xp6(2),y.Q6J("ngModel",i.node.console_type),y.xp6(1),y.Q6J("ngForOf",i.consoleTypes),y.xp6(2),y.Q6J("ngModel",i.node.properties.remote_console_host),y.xp6(2),y.Q6J("ngModel",i.node.properties.remote_console_port),y.xp6(2),y.Q6J("ngModel",i.node.properties.remote_console_http_path)}}var NH=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.builtInTemplatesConfigurationService=r,this.consoleTypes=[],this.binaries=[],this.onCloseOptions=[],this.bootPriorities=[],this.diskInterfaces=[],this.portsMappingEthernet=[],this.portsMappingTap=[],this.portsMappingUdp=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.tapInterface="",this.ethernetInterface="",this.ethernetInterfaces=["Ethernet 2","Ethernet 3"],this.generalSettingsForm=this.formBuilder.group({name:new st.NI("",st.kI.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)(y.Y36($I),y.Y36(nH),y.Y36(KO),y.Y36(st.qu),y.Y36(mI))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-configurator-cloud"]],viewQuery:function(e,t){var n;1&e&&y.Gf(ZH,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"div",3),y.TgZ(5,"mat-card",4),y.YNc(6,qH,30,15,"mat-tab-group",5),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(7,"div",6),y.TgZ(8,"button",7),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(9,"Cancel"),y.qZA(),y.TgZ(10,"button",8),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(11,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Configurator for node ",t.name,""),y.xp6(5),y.Q6J("ngIf",t.name))},directives:[lq,oE,_.O5,uq,cO,MU.SP,MU.uX,_.sg,sE.KE,vE.gD,st.JJ,st.On,mE,st.Fj,AH,st._Y,st.JL,st.sg,st.u,lt.ey],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 DH(e,t){if(1&e&&(y.TgZ(0,"mat-list-item"),y.TgZ(1,"div",6),y.TgZ(2,"span",7),y._uU(3),y.qZA(),y.TgZ(4,"span",7),y.TgZ(5,"input",9),y.NdJ("ngModelChange",function(e){return t.$implicit.port_name=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e){var n=t.$implicit;y.xp6(3),y.hij(" Adapter ",n.adapter_number," "),y.xp6(2),y.Q6J("ngModel",n.port_name)}}function RH(e,t){if(1&e&&(y.TgZ(0,"div",5),y.TgZ(1,"div",6),y.TgZ(2,"span",7),y._uU(3," Adapter number "),y.qZA(),y.TgZ(4,"span",7),y._uU(5," Port name "),y.qZA(),y.qZA(),y.TgZ(6,"div"),y.TgZ(7,"mat-list"),y.YNc(8,DH,6,2,"mat-list-item",8),y.qZA(),y.qZA(),y.qZA()),2&e){var n=y.oxw();y.xp6(8),y.Q6J("ngForOf",n.adapters)}}var LH=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.dockerConfigurationService=r,this.displayedColumns=["adapter_number","port_name"],this.adapters=[]}return e.prototype.ngOnInit=function(){var e=this;this.node.custom_adapters?this.adapters=this.node.custom_adapters:this.node.ports.forEach(function(t){e.adapters.push({adapter_number:0,port_name:""})})},e.prototype.onSaveClick=function(){var e=this;this.node.custom_adapters=this.adapters,this.nodeService.updateNodeWithCustomAdapters(this.server,this.node).subscribe(function(){e.onCancelClick(),e.toasterService.success("Configuration saved for node "+e.node.name)})},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(y.Y36($I),y.Y36(nH),y.Y36(KO),y.Y36(st.qu),y.Y36(DN))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.YNc(2,RH,9,1,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"button",3),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(5,"Cancel"),y.qZA(),y.TgZ(6,"button",4),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(7,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Configure custom adapters for node ",t.node.name,""),y.xp6(1),y.Q6J("ngIf",t.node))},directives:[lq,_.O5,uq,cO,sP,_.sg,uP,mE,st.Fj,st.JJ,st.On],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 FH(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",5),y.TgZ(1,"textarea",6),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().configuration=e}),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(1),y.Q6J("ngModel",i.configuration)}}var BH=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)(y.Y36($I),y.Y36(nH),y.Y36(KO))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.YNc(2,FH,2,1,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"button",3),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(5,"Cancel"),y.qZA(),y.TgZ(6,"button",4),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(7,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Edit network configuration for node ",t.node.name,""),y.xp6(1),y.Q6J("ngIf",t.node))},directives:[lq,_.O5,uq,cO,mE,st.Fj,st.JJ,st.On],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}"]}),e}();function jH(e,t){if(1&e&&(y.TgZ(0,"mat-option",26),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function zH(e,t){if(1&e&&(y.TgZ(0,"mat-option",26),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}var UH=function(){return{standalone:!0}};function HH(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-tab-group"),y.TgZ(1,"mat-tab",9),y._UZ(2,"br"),y.TgZ(3,"form",10),y.TgZ(4,"mat-form-field",11),y.TgZ(5,"input",12),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.name=e}),y.qZA(),y.qZA(),y.TgZ(6,"mat-form-field",11),y.TgZ(7,"input",13),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.start_command=e}),y.qZA(),y.qZA(),y.TgZ(8,"mat-form-field",11),y.TgZ(9,"input",14),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.adapters=e}),y.qZA(),y.qZA(),y.TgZ(10,"button",15),y.NdJ("click",function(){return y.CHM(n),y.oxw().configureCustomAdapters()}),y._uU(11," Configure custom adapters "),y.qZA(),y.TgZ(12,"mat-form-field",16),y.TgZ(13,"mat-select",17),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.console_type=e}),y.YNc(14,jH,2,2,"mat-option",18),y.qZA(),y.qZA(),y.TgZ(15,"mat-checkbox",19),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.console_auto_start=e}),y._uU(16," Auto start console "),y.qZA(),y.TgZ(17,"mat-form-field",11),y.TgZ(18,"mat-select",20),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.console_resolution=e}),y.YNc(19,zH,2,2,"mat-option",18),y.qZA(),y.qZA(),y.TgZ(20,"mat-form-field",11),y.TgZ(21,"input",21),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.console_http_port=e}),y.qZA(),y.qZA(),y.TgZ(22,"mat-form-field",11),y.TgZ(23,"input",22),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.console_http_path=e}),y.qZA(),y.qZA(),y.TgZ(24,"button",15),y.NdJ("click",function(){return y.CHM(n),y.oxw().editNetworkConfiguration()}),y._uU(25," Edit network configuration "),y.qZA(),y.qZA(),y.TgZ(26,"h6"),y._uU(27,"Environment"),y.qZA(),y.TgZ(28,"mat-form-field",11),y.TgZ(29,"textarea",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.environment=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(30,"mat-tab",24),y.TgZ(31,"h6"),y._uU(32,"Extra hosts"),y.qZA(),y.TgZ(33,"mat-form-field",11),y.TgZ(34,"textarea",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.extra_hosts=e}),y.qZA(),y.qZA(),y._UZ(35,"br"),y.TgZ(36,"h6"),y._uU(37,"Additional directories"),y.qZA(),y.TgZ(38,"mat-form-field",11),y.TgZ(39,"textarea",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.extra_volumes=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(40,"mat-tab",25),y.TgZ(41,"mat-form-field",11),y.TgZ(42,"textarea",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.usage=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(3),y.Q6J("formGroup",i.generalSettingsForm),y.xp6(2),y.Q6J("ngModel",i.node.name),y.xp6(2),y.Q6J("ngModel",i.node.properties.start_command),y.xp6(2),y.Q6J("ngModel",i.node.properties.adapters),y.xp6(4),y.Q6J("ngModelOptions",y.DdM(18,UH))("ngModel",i.node.console_type),y.xp6(1),y.Q6J("ngForOf",i.consoleTypes),y.xp6(1),y.Q6J("ngModelOptions",y.DdM(19,UH))("ngModel",i.node.console_auto_start),y.xp6(3),y.Q6J("ngModelOptions",y.DdM(20,UH))("ngModel",i.node.properties.console_resolution),y.xp6(1),y.Q6J("ngForOf",i.consoleResolutions),y.xp6(2),y.Q6J("ngModel",i.node.properties.console_http_port),y.xp6(2),y.Q6J("ngModel",i.node.properties.console_http_path),y.xp6(6),y.Q6J("ngModel",i.node.properties.environment),y.xp6(5),y.Q6J("ngModel",i.node.properties.extra_hosts),y.xp6(5),y.Q6J("ngModel",i.node.properties.extra_volumes),y.xp6(3),y.Q6J("ngModel",i.node.properties.usage)}}var YH=function(){function e(e,t,n,i,r,o){this.dialogReference=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.dockerConfigurationService=r,this.dialog=o,this.consoleTypes=[],this.consoleResolutions=["640x480","800x600","1024x768","1280x800","1280x1024","1366x768","1920x1080"],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.generalSettingsForm=this.formBuilder.group({name:new st.NI("",st.kI.required),adapter:new st.NI("",st.kI.required),startCommand:new st.NI("",st.kI.required),consoleHttpPort:new st.NI("",st.kI.required),consoleHttpPath:new st.NI("",st.kI.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(LH,this.conf);var e=this.dialogRef.componentInstance;e.server=this.server,e.node=this.node},e.prototype.editNetworkConfiguration=function(){this.dialogRef=this.dialog.open(BH,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)(y.Y36($I),y.Y36(nH),y.Y36(KO),y.Y36(st.qu),y.Y36(DN),y.Y36(aq))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"div",3),y.TgZ(5,"mat-card",4),y.YNc(6,HH,43,21,"mat-tab-group",5),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(7,"div",6),y.TgZ(8,"button",7),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(9,"Cancel"),y.qZA(),y.TgZ(10,"button",8),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(11,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Configurator for node ",t.name,""),y.xp6(5),y.Q6J("ngIf",t.name))},directives:[lq,oE,_.O5,uq,cO,MU.SP,MU.uX,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,st.wV,vE.gD,st.On,_.sg,XD,lt.ey],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 JH(e,t){if(1&e&&(y.TgZ(0,"mat-option",16),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function GH(e,t){if(1&e&&y._UZ(0,"app-ports",17,18),2&e){var n=y.oxw(2);y.Q6J("ethernetPorts",n.node.properties.ports_mapping)}}var WH=function(){return{standalone:!0}};function VH(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",7),y.TgZ(1,"mat-card",8),y.TgZ(2,"form",9),y.TgZ(3,"mat-form-field",10),y.TgZ(4,"input",11),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.name=e}),y.qZA(),y.qZA(),y.TgZ(5,"mat-form-field",12),y.TgZ(6,"mat-select",13),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.console_type=e}),y.YNc(7,JH,2,2,"mat-option",14),y.qZA(),y.qZA(),y.qZA(),y.YNc(8,GH,2,1,"app-ports",15),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(2),y.Q6J("formGroup",i.inputForm),y.xp6(2),y.Q6J("ngModel",i.node.name),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(6,WH))("ngModel",i.node.console_type),y.xp6(1),y.Q6J("ngForOf",i.consoleTypes),y.xp6(1),y.Q6J("ngIf",i.node.properties)}}var QH=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.ethernetSwitchesConfigurationService=r,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new st.NI("",st.kI.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)(y.Y36($I),y.Y36(nH),y.Y36(KO),y.Y36(st.qu),y.Y36(mI))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-configurator-ethernet-switch"]],viewQuery:function(e,t){var n;1&e&&y.Gf(_N,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.YNc(4,VH,9,7,"div",3),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"button",5),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(7,"Cancel"),y.qZA(),y.TgZ(8,"button",6),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(9,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Configurator for node ",t.name,""),y.xp6(3),y.Q6J("ngIf",t.node))},directives:[lq,_.O5,uq,cO,oE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,vE.gD,st.On,_.sg,lt.ey,_N],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}(),XH=function(){return{standalone:!0}},KH=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.vpcsConfigurationService=r,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({name:new st.NI("",st.kI.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)(y.Y36($I),y.Y36(nH),y.Y36(KO),y.Y36(st.qu),y.Y36(RB))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"div",3),y.TgZ(5,"mat-card",4),y.TgZ(6,"form",5),y.TgZ(7,"mat-form-field",6),y.TgZ(8,"input",7),y.NdJ("ngModelChange",function(e){return t.node.name=e}),y.qZA(),y.qZA(),y.TgZ(9,"mat-form-field",6),y.TgZ(10,"input",8),y.NdJ("ngModelChange",function(e){return t.numberOfPorts=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(11,"div",9),y.TgZ(12,"button",10),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(13,"Cancel"),y.qZA(),y.TgZ(14,"button",11),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(15,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Configurator for node ",t.name,""),y.xp6(5),y.Q6J("formGroup",t.inputForm),y.xp6(2),y.Q6J("ngModel",t.node.name),y.xp6(2),y.Q6J("ngModel",t.numberOfPorts)("ngModelOptions",y.DdM(5,XH)))},directives:[lq,oE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,st.wV,st.On,uq,cO],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 $H(e,t){if(1&e&&(y.TgZ(0,"mat-option",23),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function eY(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-tab-group"),y.TgZ(1,"mat-tab",9),y._UZ(2,"br"),y.TgZ(3,"form",10),y.TgZ(4,"mat-form-field",11),y.TgZ(5,"input",12),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.name=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(6,"mat-form-field",13),y.TgZ(7,"mat-select",14),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.console_type=e}),y.YNc(8,$H,2,2,"mat-option",15),y.qZA(),y.qZA(),y.TgZ(9,"mat-checkbox",16),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.console_auto_start=e}),y._uU(10," Auto start console "),y.qZA(),y._UZ(11,"br"),y.qZA(),y.TgZ(12,"mat-tab",17),y._UZ(13,"br"),y.TgZ(14,"form",10),y.TgZ(15,"mat-form-field",11),y.TgZ(16,"input",18),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.ram=e}),y.qZA(),y.TgZ(17,"span",19),y._uU(18,"MB"),y.qZA(),y.qZA(),y.TgZ(19,"mat-form-field",11),y.TgZ(20,"input",20),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.nvram=e}),y.qZA(),y.TgZ(21,"span",19),y._uU(22,"MB"),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(23,"mat-tab",21),y.TgZ(24,"mat-form-field",11),y.TgZ(25,"textarea",22),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.usage=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(3),y.Q6J("formGroup",i.generalSettingsForm),y.xp6(2),y.Q6J("ngModel",i.node.name),y.xp6(2),y.Q6J("ngModel",i.node.console_type),y.xp6(1),y.Q6J("ngForOf",i.consoleTypes),y.xp6(1),y.Q6J("ngModel",i.node.console_auto_start),y.xp6(5),y.Q6J("formGroup",i.memoryForm),y.xp6(2),y.Q6J("ngModel",i.node.properties.ram),y.xp6(4),y.Q6J("ngModel",i.node.properties.nvram),y.xp6(5),y.Q6J("ngModel",i.node.properties.usage)}}var tY=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.configurationService=r,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new st.NI("",st.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new st.NI("",st.kI.required),nvram:new st.NI("",st.kI.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)(y.Y36($I),y.Y36(nH),y.Y36(KO),y.Y36(st.qu),y.Y36(vR))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"div",3),y.TgZ(5,"mat-card",4),y.YNc(6,eY,26,9,"mat-tab-group",5),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(7,"div",6),y.TgZ(8,"button",7),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(9,"Cancel"),y.qZA(),y.TgZ(10,"button",8),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(11,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Configurator for node ",t.name,""),y.xp6(5),y.Q6J("ngIf",t.name))},directives:[lq,oE,_.O5,uq,cO,MU.SP,MU.uX,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,vE.gD,st.On,_.sg,XD,st.wV,sE.R9,lt.ey],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 nY(e,t){if(1&e&&(y.TgZ(0,"mat-option",25),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function iY(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-tab-group"),y.TgZ(1,"mat-tab",9),y._UZ(2,"br"),y.TgZ(3,"form",10),y.TgZ(4,"mat-form-field",11),y.TgZ(5,"input",12),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.name=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(6,"mat-form-field",13),y.TgZ(7,"mat-select",14),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.console_type=e}),y.YNc(8,nY,2,2,"mat-option",15),y.qZA(),y.qZA(),y.TgZ(9,"mat-checkbox",16),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.console_auto_start=e}),y._uU(10," Auto start console "),y.qZA(),y._UZ(11,"br"),y.TgZ(12,"mat-form-field",11),y.TgZ(13,"input",17),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.ram=e}),y.qZA(),y.TgZ(14,"span",18),y._uU(15,"MB"),y.qZA(),y.qZA(),y.TgZ(16,"mat-form-field",11),y.TgZ(17,"input",19),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.nvram=e}),y.qZA(),y.TgZ(18,"span",18),y._uU(19,"MB"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(20,"mat-tab",20),y._UZ(21,"br"),y.TgZ(22,"form",10),y.TgZ(23,"mat-form-field",11),y.TgZ(24,"input",21),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.ethernet_adapters=e}),y.qZA(),y.qZA(),y.TgZ(25,"mat-form-field",11),y.TgZ(26,"input",22),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.serial_adapters=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(27,"mat-tab",23),y.TgZ(28,"mat-form-field",11),y.TgZ(29,"textarea",24),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.usage=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(3),y.Q6J("formGroup",i.generalSettingsForm),y.xp6(2),y.Q6J("ngModel",i.node.name),y.xp6(2),y.Q6J("ngModel",i.node.console_type),y.xp6(1),y.Q6J("ngForOf",i.consoleTypes),y.xp6(1),y.Q6J("ngModel",i.node.console_auto_start),y.xp6(4),y.Q6J("ngModel",i.node.properties.ram),y.xp6(4),y.Q6J("ngModel",i.node.properties.nvram),y.xp6(5),y.Q6J("formGroup",i.networkForm),y.xp6(2),y.Q6J("ngModel",i.node.ethernet_adapters),y.xp6(2),y.Q6J("ngModel",i.node.serial_adapters),y.xp6(3),y.Q6J("ngModel",i.node.properties.usage)}}var rY=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.configurationService=r,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new st.NI("",st.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new st.NI("",st.kI.required),serialAdapters:new st.NI("",st.kI.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)(y.Y36($I),y.Y36(nH),y.Y36(KO),y.Y36(st.qu),y.Y36(EL))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"div",3),y.TgZ(5,"mat-card",4),y.YNc(6,iY,30,11,"mat-tab-group",5),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(7,"div",6),y.TgZ(8,"button",7),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(9,"Cancel"),y.qZA(),y.TgZ(10,"button",8),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(11,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Configurator for node ",t.name,""),y.xp6(5),y.Q6J("ngIf",t.name))},directives:[lq,oE,_.O5,uq,cO,MU.SP,MU.uX,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,vE.gD,st.On,_.sg,XD,st.wV,sE.R9,lt.ey],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}(),oY=function(){function e(e,t,n,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.generalSettingsForm=this.formBuilder.group({name:new st.NI("",st.kI.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)(y.Y36($I),y.Y36(nH),y.Y36(KO),y.Y36(st.qu))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"div",3),y.TgZ(5,"mat-card",4),y.TgZ(6,"form",5),y.TgZ(7,"mat-form-field",6),y.TgZ(8,"input",7),y.NdJ("ngModelChange",function(e){return t.node.name=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(9,"div",8),y.TgZ(10,"button",9),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(11,"Cancel"),y.qZA(),y.TgZ(12,"button",10),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(13,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Configurator for node ",t.name,""),y.xp6(5),y.Q6J("formGroup",t.generalSettingsForm),y.xp6(2),y.Q6J("ngModel",t.node.name))},directives:[lq,oE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,uq,cO],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 aY(e,t){if(1&e&&(y.TgZ(0,"mat-option",16),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function sY(e,t){if(1&e&&(y.TgZ(0,"mat-option",16),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function lY(e,t){if(1&e&&(y.TgZ(0,"mat-option",16),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.value),y.xp6(1),y.hij(" ",n.name," ")}}function cY(e,t){if(1&e&&(y.TgZ(0,"mat-option",16),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function uY(e,t){if(1&e&&(y.TgZ(0,"mat-option",16),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.value),y.xp6(1),y.hij(" ",n.name," ")}}function dY(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div"),y._uU(1," Size options "),y.TgZ(2,"mat-form-field",6),y.TgZ(3,"mat-select",8),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuImg.preallocation=e}),y.YNc(4,sY,2,2,"mat-option",9),y.qZA(),y.qZA(),y.TgZ(5,"mat-form-field",6),y.TgZ(6,"mat-select",17),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuImg.cluster_size=e}),y.YNc(7,lY,2,2,"mat-option",9),y.qZA(),y.qZA(),y._uU(8," Refcounts "),y.TgZ(9,"mat-form-field",6),y.TgZ(10,"mat-select",18),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuImg.lazy_refcounts=e}),y.YNc(11,cY,2,2,"mat-option",9),y.qZA(),y.qZA(),y.TgZ(12,"mat-form-field",6),y.TgZ(13,"mat-select",19),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuImg.refcount_bits=e}),y.YNc(14,uY,2,2,"mat-option",9),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(3),y.Q6J("ngModel",i.qemuImg.preallocation),y.xp6(1),y.Q6J("ngForOf",i.preallocationsOptions),y.xp6(2),y.Q6J("ngModel",i.qemuImg.cluster_size),y.xp6(1),y.Q6J("ngForOf",i.clusterSizeOptions),y.xp6(3),y.Q6J("ngModel",i.qemuImg.lazy_refcounts),y.xp6(1),y.Q6J("ngForOf",i.lazyRefcountsOptions),y.xp6(2),y.Q6J("ngModel",i.qemuImg.refcount_bits),y.xp6(1),y.Q6J("ngForOf",i.clusterSizeOptions)}}function hY(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div"),y.TgZ(1,"mat-radio-group",20),y.TgZ(2,"mat-radio-button",21),y.NdJ("click",function(){return y.CHM(n),y.oxw().setSubformat("dynamic")}),y._uU(3,"Dynamic"),y.qZA(),y.TgZ(4,"mat-radio-button",22),y.NdJ("click",function(){return y.CHM(n),y.oxw().setSubformat("fixed")}),y._uU(5,"Fixed"),y.qZA(),y.qZA(),y.qZA()}}function pY(e,t){if(1&e&&(y.TgZ(0,"mat-option",16),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function fY(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div"),y._uU(1," Adapter type"),y._UZ(2,"br"),y.TgZ(3,"mat-radio-group",23),y.TgZ(4,"mat-radio-button",21),y.NdJ("click",function(){return y.CHM(n),y.oxw().setAdapterType("ide")}),y._uU(5,"IDE"),y.qZA(),y.TgZ(6,"mat-radio-button",22),y.NdJ("click",function(){return y.CHM(n),y.oxw().setAdapterType("lsilogic")}),y._uU(7,"LSI Logic"),y.qZA(),y.TgZ(8,"mat-radio-button",24),y.NdJ("click",function(){return y.CHM(n),y.oxw().setAdapterType("buslogic")}),y._uU(9,"BusLogic"),y.qZA(),y.TgZ(10,"mat-radio-button",25),y.NdJ("click",function(){return y.CHM(n),y.oxw().setAdapterType("legacyESX")}),y._uU(11,"Legacy (ESX)"),y.qZA(),y.qZA(),y._UZ(12,"br"),y._UZ(13,"br"),y._uU(14," Image file sizing mode"),y._UZ(15,"br"),y.TgZ(16,"mat-radio-group",20),y.TgZ(17,"mat-radio-button",21),y.NdJ("click",function(){return y.CHM(n),y.oxw().setSubformat("streamOptimized")}),y._uU(18,"Stream optimized"),y.qZA(),y.TgZ(19,"mat-radio-button",22),y.NdJ("click",function(){return y.CHM(n),y.oxw().setSubformat("twoGbMaxExtentSparse")}),y._uU(20,"Split every 2GB (sparse)"),y.qZA(),y.TgZ(21,"mat-radio-button",24),y.NdJ("click",function(){return y.CHM(n),y.oxw().setSubformat("twoGbMaxExtentFlat")}),y._uU(22,"Split every 2GB (flat)"),y.qZA(),y.TgZ(23,"mat-radio-button",25),y.NdJ("click",function(){return y.CHM(n),y.oxw().setSubformat("monolithicSparse")}),y._uU(24,"Monolithic sparse"),y.qZA(),y.TgZ(25,"mat-radio-button",26),y.NdJ("click",function(){return y.CHM(n),y.oxw().setSubformat("monolithicFlat")}),y._uU(26,"Monolithic flat"),y.qZA(),y.qZA(),y._UZ(27,"br"),y._UZ(28,"br"),y.TgZ(29,"mat-select",27),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().qemuImg.zeroed_grain=e}),y.YNc(30,pY,2,2,"mat-option",9),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(29),y.Q6J("ngModel",i.qemuImg.zeroed_grain),y.xp6(1),y.Q6J("ngForOf",i.zeroedGrainOptions)}}var mY=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.qemuService=r,this.formatOptions=["qcow2","qcow","vhd","vdi","vmdk","raw"],this.preallocationsOptions=["off","metadata","falloc","full"],this.clusterSizeOptions=[{name:"512",value:512},{name:"1k",value:1024},{name:"2k",value:2048},{name:"4k",value:4096},{name:"8k",value:8192},{name:"16k",value:16384},{name:"32k",value:32768},{name:"64k",value:65536},{name:"128k",value:131072},{name:"256k",value:262144},{name:"512k",value:524288},{name:"1024k",value:1048576},{name:"2048k",value:2097152}],this.lazyRefcountsOptions=["off","on"],this.refcountBitsOptions=[1,2,4,8,16,32,64],this.zeroedGrainOptions=["on","off"],this.inputForm=this.formBuilder.group({qemu_img:new st.NI("",st.kI.required),path:new st.NI("",st.kI.required),size:new st.NI("",st.kI.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)(y.Y36($I),y.Y36(nH),y.Y36(KO),y.Y36(st.qu),y.Y36(QL))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1,"Qemu image configurator"),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"div",3),y.TgZ(5,"mat-card",4),y.TgZ(6,"form",5),y.TgZ(7,"mat-form-field",6),y.TgZ(8,"input",7),y.NdJ("ngModelChange",function(e){return t.qemuImg.qemu_img=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(9,"mat-form-field",6),y.TgZ(10,"mat-select",8),y.NdJ("ngModelChange",function(e){return t.qemuImg.format=e}),y.YNc(11,aY,2,2,"mat-option",9),y.qZA(),y.qZA(),y.YNc(12,dY,15,8,"div",10),y.YNc(13,hY,6,0,"div",10),y.YNc(14,fY,31,2,"div",10),y.TgZ(15,"form",5),y.TgZ(16,"mat-form-field",6),y.TgZ(17,"input",11),y.NdJ("ngModelChange",function(e){return t.qemuImg.path=e}),y.qZA(),y.qZA(),y.TgZ(18,"mat-form-field",6),y.TgZ(19,"input",12),y.NdJ("ngModelChange",function(e){return t.qemuImg.size=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(20,"div",13),y.TgZ(21,"button",14),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(22,"Cancel"),y.qZA(),y.TgZ(23,"button",15),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(24,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(6),y.Q6J("formGroup",t.inputForm),y.xp6(2),y.Q6J("ngModel",t.qemuImg.qemu_img),y.xp6(2),y.Q6J("ngModel",t.qemuImg.format),y.xp6(1),y.Q6J("ngForOf",t.formatOptions),y.xp6(1),y.Q6J("ngIf","qcow2"===t.qemuImg.format),y.xp6(1),y.Q6J("ngIf","vhd"===t.qemuImg.format||"vdi"===t.qemuImg.format),y.xp6(1),y.Q6J("ngIf","vmdk"===t.qemuImg.format),y.xp6(1),y.Q6J("formGroup",t.inputForm),y.xp6(2),y.Q6J("ngModel",t.qemuImg.path),y.xp6(2),y.Q6J("ngModel",t.qemuImg.size))},directives:[lq,oE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,vE.gD,st.On,_.sg,_.O5,st.wV,uq,cO,lt.ey,cI,hI],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}(),gY=["customAdapters"];function vY(e,t){if(1&e&&(y.TgZ(0,"mat-option",49),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.path),y.xp6(1),y.hij(" ",n.path," ")}}function yY(e,t){if(1&e&&(y.TgZ(0,"mat-option",49),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}function _Y(e,t){if(1&e&&(y.TgZ(0,"mat-option",49),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}function bY(e,t){if(1&e&&(y.TgZ(0,"mat-option",49),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function wY(e,t){if(1&e&&(y.TgZ(0,"mat-option",49),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.filename),y.xp6(1),y.hij(" ",n.filename," ")}}function SY(e,t){if(1&e&&(y.TgZ(0,"mat-option",49),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function xY(e,t){if(1&e&&(y.TgZ(0,"mat-option",49),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.filename),y.xp6(1),y.hij(" ",n.filename," ")}}function CY(e,t){if(1&e&&(y.TgZ(0,"mat-option",49),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function kY(e,t){if(1&e&&(y.TgZ(0,"mat-option",49),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.filename),y.xp6(1),y.hij(" ",n.filename," ")}}function TY(e,t){if(1&e&&(y.TgZ(0,"mat-option",49),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function AY(e,t){if(1&e&&(y.TgZ(0,"mat-option",49),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.filename),y.xp6(1),y.hij(" ",n.filename," ")}}function ZY(e,t){if(1&e&&(y.TgZ(0,"mat-option",49),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function MY(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-form-field",11),y.TgZ(1,"input",50),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw(2).node.properties.cpu_throttling=e}),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2);y.xp6(1),y.Q6J("ngModel",i.node.properties.cpu_throttling)}}function OY(e,t){if(1&e&&(y.TgZ(0,"mat-option",49),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function EY(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-tab-group"),y.TgZ(1,"mat-tab",9),y._UZ(2,"br"),y.TgZ(3,"form",10),y.TgZ(4,"mat-form-field",11),y.TgZ(5,"input",12),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.name=e}),y.qZA(),y.qZA(),y.TgZ(6,"mat-form-field",11),y.TgZ(7,"input",13),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.ram=e}),y.qZA(),y.TgZ(8,"span",14),y._uU(9,"MB"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(10,"mat-form-field",11),y.TgZ(11,"input",15),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.cpus=e}),y.qZA(),y.qZA(),y.TgZ(12,"mat-form-field",11),y.TgZ(13,"mat-select",16),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.qemu_path=e}),y.YNc(14,vY,2,2,"mat-option",17),y.qZA(),y.qZA(),y.TgZ(15,"mat-form-field",11),y.TgZ(16,"mat-select",18),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.boot_priority=e}),y.YNc(17,yY,2,2,"mat-option",17),y.qZA(),y.qZA(),y.TgZ(18,"mat-form-field",11),y.TgZ(19,"mat-select",19),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.on_close=e}),y.YNc(20,_Y,2,2,"mat-option",17),y.qZA(),y.qZA(),y.TgZ(21,"mat-form-field",20),y.TgZ(22,"mat-select",21),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.console_type=e}),y.YNc(23,bY,2,2,"mat-option",17),y.qZA(),y.qZA(),y.TgZ(24,"mat-checkbox",22),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.console_auto_start=e}),y._uU(25," Auto start console "),y.qZA(),y.qZA(),y.TgZ(26,"mat-tab",23),y.TgZ(27,"mat-card"),y.TgZ(28,"button",24),y.NdJ("click",function(){return y.CHM(n),y.oxw().openQemuImageCreator()}),y._uU(29," Create Qemu image "),y.qZA(),y._UZ(30,"mat-card-title"),y.TgZ(31,"mat-card-subtitle"),y._uU(32," HDA (Primary Master) "),y.qZA(),y.TgZ(33,"mat-card-content"),y.TgZ(34,"mat-select",25),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.hda_disk_image=e}),y.YNc(35,wY,2,2,"mat-option",17),y.qZA(),y.TgZ(36,"mat-form-field",11),y.TgZ(37,"mat-select",26),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.hda_disk_interface=e}),y.YNc(38,SY,2,2,"mat-option",17),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(39,"mat-card"),y._UZ(40,"mat-card-title"),y.TgZ(41,"mat-card-subtitle"),y._uU(42," HDB (Primary Slave) "),y.qZA(),y.TgZ(43,"mat-card-content"),y.TgZ(44,"mat-select",25),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.hdb_disk_image=e}),y.YNc(45,xY,2,2,"mat-option",17),y.qZA(),y.TgZ(46,"mat-form-field",11),y.TgZ(47,"mat-select",26),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.hdb_disk_interface=e}),y.YNc(48,CY,2,2,"mat-option",17),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(49,"mat-card"),y._UZ(50,"mat-card-title"),y.TgZ(51,"mat-card-subtitle"),y._uU(52," HDC (Secondary Master) "),y.qZA(),y.TgZ(53,"mat-card-content"),y.TgZ(54,"mat-select",25),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.hdc_disk_image=e}),y.YNc(55,kY,2,2,"mat-option",17),y.qZA(),y.TgZ(56,"mat-form-field",11),y.TgZ(57,"mat-select",26),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.hdc_disk_interface=e}),y.YNc(58,TY,2,2,"mat-option",17),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(59,"mat-card"),y._UZ(60,"mat-card-title"),y.TgZ(61,"mat-card-subtitle"),y._uU(62," HDD (Secondary Slave) "),y.qZA(),y.TgZ(63,"mat-card-content"),y.TgZ(64,"mat-select",25),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.hdd_disk_image=e}),y.YNc(65,AY,2,2,"mat-option",17),y.qZA(),y.TgZ(66,"mat-form-field",11),y.TgZ(67,"mat-select",26),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.hdd_disk_interface=e}),y.YNc(68,ZY,2,2,"mat-option",17),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(69,"mat-tab",27),y.TgZ(70,"div"),y.TgZ(71,"button",28),y.NdJ("click",function(){return y.CHM(n),y.MAs(74).click()}),y._uU(72,"Browse"),y.qZA(),y.TgZ(73,"input",29,30),y.NdJ("change",function(e){return y.CHM(n),y.oxw().uploadCdromImageFile(e)}),y.qZA(),y.TgZ(75,"mat-form-field",31),y.TgZ(76,"input",32),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.cdrom_image=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(77,"mat-tab",33),y._UZ(78,"br"),y.TgZ(79,"mat-checkbox",22),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.legacy_networking=e}),y._uU(80," Use the legacy networking mode "),y.qZA(),y._UZ(81,"br"),y.TgZ(82,"mat-checkbox",22),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.replicate_network_connection_state=e}),y._uU(83," Replicate network connection state "),y.qZA(),y._UZ(84,"app-custom-adapters-table",34,35),y.qZA(),y.TgZ(86,"mat-tab",36),y.TgZ(87,"mat-card"),y._UZ(88,"mat-card-title"),y.TgZ(89,"mat-card-subtitle"),y._uU(90," Linux boot specific settings "),y.qZA(),y.TgZ(91,"mat-card-content"),y.TgZ(92,"div"),y.TgZ(93,"button",28),y.NdJ("click",function(){return y.CHM(n),y.MAs(96).click()}),y._uU(94," Browse "),y.qZA(),y.TgZ(95,"input",29,37),y.NdJ("change",function(e){return y.CHM(n),y.oxw().uploadInitrdFile(e)}),y.qZA(),y.TgZ(97,"mat-form-field",31),y.TgZ(98,"input",38),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.initrd=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(99,"div"),y.TgZ(100,"button",28),y.NdJ("click",function(){return y.CHM(n),y.oxw().filekerenelimage.click()}),y._uU(101," Browse "),y.qZA(),y.TgZ(102,"input",29,39),y.NdJ("change",function(e){return y.CHM(n),y.oxw().uploadKernelImageFile(e)}),y.qZA(),y.TgZ(104,"mat-form-field",31),y.TgZ(105,"input",40),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.kernel_image=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(106,"mat-form-field",11),y.TgZ(107,"input",41),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.kernel_command_line=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(108,"mat-card"),y._UZ(109,"mat-card-title"),y.TgZ(110,"mat-card-subtitle"),y._uU(111," Bios "),y.qZA(),y.TgZ(112,"mat-card-content"),y.TgZ(113,"div"),y.TgZ(114,"button",28),y.NdJ("click",function(){return y.CHM(n),y.MAs(117).click()}),y._uU(115," Browse "),y.qZA(),y.TgZ(116,"input",29,42),y.NdJ("change",function(e){return y.CHM(n),y.oxw().uploadBiosFile(e)}),y.qZA(),y.TgZ(118,"mat-form-field",31),y.TgZ(119,"input",43),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.bios_image=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(120,"mat-card"),y._UZ(121,"mat-card-title"),y.TgZ(122,"mat-card-subtitle"),y._uU(123," Optimization "),y.qZA(),y.TgZ(124,"mat-card-content"),y.TgZ(125,"mat-checkbox",22),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().activateCpuThrottling=e}),y._uU(126," Activate CPU throttling "),y.qZA(),y.YNc(127,MY,2,1,"mat-form-field",44),y.TgZ(128,"mat-form-field",11),y.TgZ(129,"mat-select",45),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.process_priority=e}),y.YNc(130,OY,2,2,"mat-option",17),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(131,"mat-card"),y._UZ(132,"mat-card-title"),y.TgZ(133,"mat-card-subtitle"),y._uU(134," Additional settings "),y.qZA(),y.TgZ(135,"mat-card-content"),y.TgZ(136,"mat-form-field",11),y.TgZ(137,"input",46),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.options=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(138,"mat-tab",47),y.TgZ(139,"mat-form-field",11),y.TgZ(140,"textarea",48),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.usage=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(3),y.Q6J("formGroup",i.generalSettingsForm),y.xp6(2),y.Q6J("ngModel",i.node.name),y.xp6(2),y.Q6J("ngModel",i.node.properties.ram),y.xp6(4),y.Q6J("ngModel",i.node.properties.cpus),y.xp6(2),y.Q6J("ngModel",i.node.properties.qemu_path),y.xp6(1),y.Q6J("ngForOf",i.binaries),y.xp6(2),y.Q6J("ngModel",i.node.properties.boot_priority),y.xp6(1),y.Q6J("ngForOf",i.bootPriorities),y.xp6(2),y.Q6J("ngModel",i.node.properties.on_close),y.xp6(1),y.Q6J("ngForOf",i.onCloseOptions),y.xp6(2),y.Q6J("ngModel",i.node.console_type),y.xp6(1),y.Q6J("ngForOf",i.consoleTypes),y.xp6(1),y.Q6J("ngModel",i.node.properties.console_auto_start),y.xp6(10),y.Q6J("ngModel",i.node.properties.hda_disk_image),y.xp6(1),y.Q6J("ngForOf",i.qemuImages),y.xp6(2),y.Q6J("ngModel",i.node.properties.hda_disk_interface),y.xp6(1),y.Q6J("ngForOf",i.diskInterfaces),y.xp6(6),y.Q6J("ngModel",i.node.properties.hdb_disk_image),y.xp6(1),y.Q6J("ngForOf",i.qemuImages),y.xp6(2),y.Q6J("ngModel",i.node.properties.hdb_disk_interface),y.xp6(1),y.Q6J("ngForOf",i.diskInterfaces),y.xp6(6),y.Q6J("ngModel",i.node.properties.hdc_disk_image),y.xp6(1),y.Q6J("ngForOf",i.qemuImages),y.xp6(2),y.Q6J("ngModel",i.node.properties.hdc_disk_interface),y.xp6(1),y.Q6J("ngForOf",i.diskInterfaces),y.xp6(6),y.Q6J("ngModel",i.node.properties.hdd_disk_image),y.xp6(1),y.Q6J("ngForOf",i.qemuImages),y.xp6(2),y.Q6J("ngModel",i.node.properties.hdd_disk_interface),y.xp6(1),y.Q6J("ngForOf",i.diskInterfaces),y.xp6(8),y.Q6J("ngModel",i.node.properties.cdrom_image),y.xp6(3),y.Q6J("ngModel",i.node.properties.legacy_networking),y.xp6(3),y.Q6J("ngModel",i.node.properties.replicate_network_connection_state),y.xp6(2),y.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),y.xp6(14),y.Q6J("ngModel",i.node.properties.initrd),y.xp6(7),y.Q6J("ngModel",i.node.properties.kernel_image),y.xp6(2),y.Q6J("ngModel",i.node.properties.kernel_command_line),y.xp6(12),y.Q6J("ngModel",i.node.properties.bios_image),y.xp6(6),y.Q6J("ngModel",i.activateCpuThrottling),y.xp6(2),y.Q6J("ngIf",i.activateCpuThrottling),y.xp6(2),y.Q6J("ngModel",i.node.properties.process_priority),y.xp6(1),y.Q6J("ngForOf",i.priorities),y.xp6(7),y.Q6J("ngModel",i.node.properties.options),y.xp6(3),y.Q6J("ngModel",i.node.properties.usage)}}var PY=function(){function e(e,t,n,i,r,o,a){this.dialog=e,this.dialogRef=t,this.nodeService=n,this.toasterService=i,this.formBuilder=r,this.qemuService=o,this.qemuConfigurationService=a,this.consoleTypes=[],this.binaries=[],this.onCloseOptions=[],this.bootPriorities=[],this.diskInterfaces=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.qemuImages=[],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.generalSettingsForm=this.formBuilder.group({name:new st.NI("",st.kI.required),ram:new st.NI("",st.kI.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(mY,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)(y.Y36(aq),y.Y36($I),y.Y36(nH),y.Y36(KO),y.Y36(st.qu),y.Y36(QL),y.Y36(XL))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-configurator-qemu"]],viewQuery:function(e,t){var n;1&e&&y.Gf(gY,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"div",3),y.TgZ(5,"mat-card",4),y.YNc(6,EY,141,45,"mat-tab-group",5),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(7,"div",6),y.TgZ(8,"button",7),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(9,"Cancel"),y.qZA(),y.TgZ(10,"button",8),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(11,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Configurator for node ",t.name,""),y.xp6(5),y.Q6J("ngIf",t.name))},directives:[lq,oE,_.O5,uq,cO,MU.SP,MU.uX,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,st.wV,sE.R9,st.On,vE.gD,_.sg,XD,nE,iE,tE,vF,lt.ey],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 IY(e,t){1&e&&(y.TgZ(0,"th",24),y._uU(1,"Port : DLCI"),y.qZA())}function qY(e,t){if(1&e&&(y.TgZ(0,"td",25),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.portIn)}}function NY(e,t){1&e&&(y.TgZ(0,"th",24),y._uU(1,"Port : DLCI"),y.qZA())}function DY(e,t){if(1&e&&(y.TgZ(0,"td",25),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Oqu(n.portOut)}}function RY(e,t){1&e&&(y.TgZ(0,"th",24),y._uU(1,"Actions"),y.qZA())}function LY(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"td",25),y.TgZ(1,"button",26),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(2).delete(e)}),y.TgZ(2,"mat-icon",27),y._uU(3,"delete"),y.qZA(),y.qZA(),y.qZA()}}function FY(e,t){1&e&&y._UZ(0,"tr",28)}function BY(e,t){1&e&&y._UZ(0,"tr",29)}function jY(e,t){if(1&e&&(y.TgZ(0,"table",16),y.ynx(1,17),y.YNc(2,IY,2,0,"th",18),y.YNc(3,qY,2,1,"td",19),y.BQk(),y.ynx(4,20),y.YNc(5,NY,2,0,"th",18),y.YNc(6,DY,2,1,"td",19),y.BQk(),y.ynx(7,21),y.YNc(8,RY,2,0,"th",18),y.YNc(9,LY,4,0,"td",19),y.BQk(),y.YNc(10,FY,1,0,"tr",22),y.YNc(11,BY,1,0,"tr",23),y.qZA()),2&e){var n=y.oxw();y.Q6J("dataSource",n.nodeMappingsDataSource),y.xp6(10),y.Q6J("matHeaderRowDef",n.displayedColumns),y.xp6(1),y.Q6J("matRowDefColumns",n.displayedColumns)}}var zY=function(){function e(e,t,n,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.consoleTypes=[],this.nodeMappings=new Map,this.nodeMappingsDataSource=[],this.dataSource=[],this.displayedColumns=["portIn","portOut","actions"],this.sourcePort="",this.sourceDlci="",this.destinationPort="",this.destinationDlci="",this.nameForm=this.formBuilder.group({name:new st.NI("",st.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new st.NI("",st.kI.required),sourceDlci:new st.NI("",st.kI.required),destinationPort:new st.NI("",st.kI.required),destinationDlci:new st.NI("",st.kI.required)})}return e.prototype.ngOnInit=function(){var e=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){e.node=t,e.name=t.name;var n=t.properties.mappings;Object.keys(n).forEach(function(t){e.nodeMappings.set(t,n[t])}),e.nodeMappings.forEach(function(t,n){e.nodeMappingsDataSource.push({portIn:n,portOut:t})})})},e.prototype.delete=function(e){this.nodeMappingsDataSource=this.nodeMappingsDataSource.filter(function(t){return t!==e})},e.prototype.add=function(){if(this.inputForm.valid){var e={portIn:this.sourcePort+":"+this.sourceDlci,portOut:this.destinationPort+":"+this.destinationDlci};this.nodeMappingsDataSource.filter(function(t){return t.portIn===e.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())}else this.toasterService.error("Fill all required fields.")},e.prototype.clearUserInput=function(){this.sourcePort="0",this.sourceDlci="0",this.destinationPort="0",this.destinationDlci="0"},e.prototype.strMapToObj=function(e){for(var t=Object.create(null),n=0,i=e;n<i.length;n++){var r=i[n];t[r[0]]=r[1]}return t},e.prototype.onSaveClick=function(){var e=this;this.nameForm.valid?(this.nodeMappings.clear(),this.nodeMappingsDataSource.forEach(function(t){e.nodeMappings.set(t.portIn,t.portOut)}),this.node.properties.mappings=Array.from(this.nodeMappings).reduce(function(e,t){var n;return Object.assign(e,((n={})[t[0]]=t[1],n))},{}),this.nodeService.updateNode(this.server,this.node).subscribe(function(){e.toasterService.success("Node "+e.node.name+" updated."),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")},e.prototype.onCancelClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(y.Y36($I),y.Y36(nH),y.Y36(KO),y.Y36(st.qu))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"div",3),y.TgZ(5,"mat-card"),y.YNc(6,jY,12,3,"table",4),y._UZ(7,"br"),y.TgZ(8,"form",5),y.TgZ(9,"mat-form-field",6),y.TgZ(10,"input",7),y.NdJ("ngModelChange",function(e){return t.node.name=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(11,"form",5),y._uU(12," Source "),y.TgZ(13,"mat-form-field",6),y.TgZ(14,"input",8),y.NdJ("ngModelChange",function(e){return t.sourcePort=e}),y.qZA(),y.qZA(),y.TgZ(15,"mat-form-field",6),y.TgZ(16,"input",9),y.NdJ("ngModelChange",function(e){return t.sourceDlci=e}),y.qZA(),y.qZA(),y._uU(17," Destination "),y.TgZ(18,"mat-form-field",6),y.TgZ(19,"input",10),y.NdJ("ngModelChange",function(e){return t.destinationPort=e}),y.qZA(),y.qZA(),y.TgZ(20,"mat-form-field",6),y.TgZ(21,"input",11),y.NdJ("ngModelChange",function(e){return t.destinationDlci=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(22,"button",12),y.NdJ("click",function(){return t.add()}),y._uU(23,"Add"),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(24,"div",13),y.TgZ(25,"button",14),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(26,"Cancel"),y.qZA(),y.TgZ(27,"button",15),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(28,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Configurator for node ",t.name,""),y.xp6(5),y.Q6J("ngIf",t.nodeMappingsDataSource.length),y.xp6(2),y.Q6J("formGroup",t.nameForm),y.xp6(2),y.Q6J("ngModel",t.node.name),y.xp6(1),y.Q6J("formGroup",t.inputForm),y.xp6(3),y.Q6J("ngModel",t.sourcePort),y.xp6(2),y.Q6J("ngModel",t.sourceDlci),y.xp6(3),y.Q6J("ngModel",t.destinationPort),y.xp6(2),y.Q6J("ngModel",t.destinationDlci))},directives:[lq,oE,_.O5,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,st.wV,cO,uq,yP,wP,bP,_P,CP,kP,SP,xP,MO,nO,TP,AP],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}(),UY=function(){function e(e,t,n,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.generalSettingsForm=this.formBuilder.group({name:new st.NI("",st.kI.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)(y.Y36($I),y.Y36(nH),y.Y36(KO),y.Y36(st.qu))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"div",3),y.TgZ(5,"mat-card",4),y.TgZ(6,"form",5),y.TgZ(7,"mat-form-field",6),y.TgZ(8,"input",7),y.NdJ("ngModelChange",function(e){return t.node.name=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(9,"div",8),y.TgZ(10,"button",9),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(11,"Cancel"),y.qZA(),y.TgZ(12,"button",10),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(13,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Configurator for node ",t.name,""),y.xp6(5),y.Q6J("formGroup",t.generalSettingsForm),y.xp6(2),y.Q6J("ngModel",t.node.name))},directives:[lq,oE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,uq,cO],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}(),HY=["customAdapters"];function YY(e,t){if(1&e&&(y.TgZ(0,"mat-option",26),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function JY(e,t){if(1&e&&(y.TgZ(0,"mat-option",26),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}var GY=function(){return{standalone:!0}};function WY(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-tab-group"),y.TgZ(1,"mat-tab",9),y._UZ(2,"br"),y.TgZ(3,"form",10),y.TgZ(4,"mat-form-field",11),y.TgZ(5,"input",12),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.name=e}),y.qZA(),y.qZA(),y.TgZ(6,"mat-form-field",13),y.TgZ(7,"mat-select",14),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.console_type=e}),y.YNc(8,YY,2,2,"mat-option",15),y.qZA(),y.qZA(),y.TgZ(9,"mat-checkbox",16),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.console_auto_start=e}),y._uU(10," Auto start console "),y.qZA(),y.TgZ(11,"mat-form-field",11),y.TgZ(12,"input",17),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.ram=e}),y.qZA(),y.TgZ(13,"span",18),y._uU(14,"MB"),y.qZA(),y.qZA(),y.TgZ(15,"mat-form-field",11),y.TgZ(16,"mat-select",19),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.on_close=e}),y.YNc(17,JY,2,2,"mat-option",15),y.qZA(),y.qZA(),y.qZA(),y.TgZ(18,"mat-checkbox",20),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.headless=e}),y._uU(19," Start VM in headless mode "),y.qZA(),y.qZA(),y.TgZ(20,"mat-tab",21),y._UZ(21,"br"),y.TgZ(22,"mat-checkbox",20),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.use_any_adapter=e}),y._uU(23," Allow GNS3 to use any configured VirtualBox adapter "),y.qZA(),y._UZ(24,"app-custom-adapters-table",22,23),y.qZA(),y.TgZ(26,"mat-tab",24),y.TgZ(27,"mat-form-field",11),y.TgZ(28,"textarea",25),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.usage=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(3),y.Q6J("formGroup",i.generalSettingsForm),y.xp6(2),y.Q6J("ngModel",i.node.name),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(17,GY))("ngModel",i.node.console_type),y.xp6(1),y.Q6J("ngForOf",i.consoleTypes),y.xp6(1),y.Q6J("ngModelOptions",y.DdM(18,GY))("ngModel",i.node.console_auto_start),y.xp6(3),y.Q6J("ngModel",i.node.properties.ram),y.xp6(4),y.Q6J("ngModelOptions",y.DdM(19,GY))("ngModel",i.node.properties.on_close),y.xp6(1),y.Q6J("ngForOf",i.onCloseOptions),y.xp6(1),y.Q6J("ngModel",i.node.properties.headless),y.xp6(4),y.Q6J("ngModel",i.node.properties.use_any_adapter),y.xp6(2),y.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),y.xp6(4),y.Q6J("ngModel",i.node.properties.usage)}}var VY=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.virtualBoxConfigurationService=r,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new st.NI("",st.kI.required),ram:new st.NI("",st.kI.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)(y.Y36($I),y.Y36(nH),y.Y36(KO),y.Y36(st.qu),y.Y36(WF))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-configurator-virtualbox"]],viewQuery:function(e,t){var n;1&e&&y.Gf(HY,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"div",3),y.TgZ(5,"mat-card",4),y.YNc(6,WY,29,20,"mat-tab-group",5),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(7,"div",6),y.TgZ(8,"button",7),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(9,"Cancel"),y.qZA(),y.TgZ(10,"button",8),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(11,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Configurator for node ",t.name,""),y.xp6(5),y.Q6J("ngIf",t.name))},directives:[lq,oE,_.O5,uq,cO,MU.SP,MU.uX,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,vE.gD,st.On,_.sg,XD,st.wV,sE.R9,vF,lt.ey],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}(),QY=["customAdapters"];function XY(e,t){if(1&e&&(y.TgZ(0,"mat-option",24),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function KY(e,t){if(1&e&&(y.TgZ(0,"mat-option",24),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}var $Y=function(){return{standalone:!0}};function eJ(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-tab-group"),y.TgZ(1,"mat-tab",9),y._UZ(2,"br"),y.TgZ(3,"form",10),y.TgZ(4,"mat-form-field",11),y.TgZ(5,"input",12),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.name=e}),y.qZA(),y.qZA(),y.TgZ(6,"mat-form-field",13),y.TgZ(7,"mat-select",14),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.console_type=e}),y.YNc(8,XY,2,2,"mat-option",15),y.qZA(),y.qZA(),y.TgZ(9,"mat-checkbox",16),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.console_auto_start=e}),y._uU(10," Auto start console "),y.qZA(),y.TgZ(11,"mat-form-field",11),y.TgZ(12,"mat-select",17),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.on_close=e}),y.YNc(13,KY,2,2,"mat-option",15),y.qZA(),y.qZA(),y.qZA(),y.TgZ(14,"mat-checkbox",18),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.headless=e}),y._uU(15," Start VM in headless mode "),y.qZA(),y._UZ(16,"br"),y.TgZ(17,"mat-checkbox",18),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.linked_clone=e}),y._uU(18," Use a linked base VM (experimental) "),y.qZA(),y.qZA(),y.TgZ(19,"mat-tab",19),y._UZ(20,"br"),y.TgZ(21,"mat-checkbox",18),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.use_any_adapter=e}),y._uU(22," Allow GNS3 to override non custom VMware adapter "),y.qZA(),y._UZ(23,"app-custom-adapters-table",20,21),y.qZA(),y.TgZ(25,"mat-tab",22),y.TgZ(26,"mat-form-field",11),y.TgZ(27,"textarea",23),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().node.properties.usage=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(3),y.Q6J("formGroup",i.generalSettingsForm),y.xp6(2),y.Q6J("ngModel",i.node.name),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(17,$Y))("ngModel",i.node.console_type),y.xp6(1),y.Q6J("ngForOf",i.consoleTypes),y.xp6(1),y.Q6J("ngModelOptions",y.DdM(18,$Y))("ngModel",i.node.console_auto_start),y.xp6(3),y.Q6J("ngModelOptions",y.DdM(19,$Y))("ngModel",i.node.properties.on_close),y.xp6(1),y.Q6J("ngForOf",i.onCloseOptions),y.xp6(1),y.Q6J("ngModel",i.node.properties.headless),y.xp6(3),y.Q6J("ngModel",i.node.properties.linked_clone),y.xp6(4),y.Q6J("ngModel",i.node.properties.use_any_adapter),y.xp6(2),y.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),y.xp6(4),y.Q6J("ngModel",i.node.properties.usage)}}var tJ=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.vmwareConfigurationService=r,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new st.NI("",st.kI.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)(y.Y36($I),y.Y36(nH),y.Y36(KO),y.Y36(st.qu),y.Y36(vB))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-configurator-vmware"]],viewQuery:function(e,t){var n;1&e&&y.Gf(QY,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"div",3),y.TgZ(5,"mat-card",4),y.YNc(6,eJ,28,20,"mat-tab-group",5),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(7,"div",6),y.TgZ(8,"button",7),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(9,"Cancel"),y.qZA(),y.TgZ(10,"button",8),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(11,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Configurator for node ",t.name,""),y.xp6(5),y.Q6J("ngIf",t.name))},directives:[lq,oE,_.O5,uq,cO,MU.SP,MU.uX,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,vE.gD,st.On,_.sg,XD,vF,lt.ey],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 nJ(e,t){if(1&e&&(y.TgZ(0,"mat-option",15),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}var iJ=function(){return{standalone:!0}},rJ=function(){function e(e,t,n,i,r){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.vpcsConfigurationService=r,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new st.NI("",st.kI.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)(y.Y36($I),y.Y36(nH),y.Y36(KO),y.Y36(st.qu),y.Y36(RB))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"div",3),y.TgZ(5,"mat-card",4),y.TgZ(6,"form",5),y.TgZ(7,"mat-form-field",6),y.TgZ(8,"input",7),y.NdJ("ngModelChange",function(e){return t.node.name=e}),y.qZA(),y.qZA(),y.TgZ(9,"mat-form-field",8),y.TgZ(10,"mat-select",9),y.NdJ("ngModelChange",function(e){return t.node.console_type=e}),y.YNc(11,nJ,2,2,"mat-option",10),y.qZA(),y.qZA(),y.TgZ(12,"mat-checkbox",11),y.NdJ("ngModelChange",function(e){return t.node.console_auto_start=e}),y._uU(13," Auto start console "),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(14,"div",12),y.TgZ(15,"button",13),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(16,"Cancel"),y.qZA(),y.TgZ(17,"button",14),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(18,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Configurator for node ",t.name,""),y.xp6(5),y.Q6J("formGroup",t.inputForm),y.xp6(2),y.Q6J("ngModel",t.node.name),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(8,iJ))("ngModel",t.node.console_type),y.xp6(1),y.Q6J("ngForOf",t.consoleTypes),y.xp6(1),y.Q6J("ngModelOptions",y.DdM(9,iJ))("ngModel",t.node.console_auto_start))},directives:[lq,oE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,vE.gD,st.On,_.sg,XD,uq,cO,lt.ey],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}(),oJ=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(rJ,this.conf):"ethernet_hub"===this.node.node_type?this.dialogRef=this.dialog.open(KH,this.conf):"ethernet_switch"===this.node.node_type?this.dialogRef=this.dialog.open(QH,this.conf):"cloud"===this.node.node_type?this.dialogRef=this.dialog.open(NH,this.conf):"dynamips"===this.node.node_type?this.dialogRef=this.dialog.open(tY,this.conf):"iou"===this.node.node_type?this.dialogRef=this.dialog.open(rY,this.conf):"qemu"===this.node.node_type?this.dialogRef=this.dialog.open(PY,this.conf):"virtualbox"===this.node.node_type?this.dialogRef=this.dialog.open(VY,this.conf):"vmware"===this.node.node_type?this.dialogRef=this.dialog.open(tJ,this.conf):"docker"===this.node.node_type?this.dialogRef=this.dialog.open(YH,this.conf):"nat"===this.node.node_type?this.dialogRef=this.dialog.open(oY,this.conf):"frame_relay_switch"===this.node.node_type?this.dialogRef=this.dialog.open(zY,this.conf):"atm_switch"===this.node.node_type?this.dialogRef=this.dialog.open(hH,this.conf):"traceng"===this.node.node_type&&(this.dialogRef=this.dialog.open(UY,this.conf));var e=this.dialogRef.componentInstance;e.server=this.server,e.node=this.node},e.\u0275fac=function(t){return new(t||e)(y.Y36(aq))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.configureNode()}),y.TgZ(1,"mat-icon"),y._uU(2,"settings_applications"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Configure"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}();function aJ(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",1),y.NdJ("click",function(){return y.CHM(n),y.oxw().startNodes()}),y.TgZ(1,"mat-icon"),y._uU(2,"play_arrow"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Start"),y.qZA(),y.qZA()}}var sJ=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)(y.Y36(nH),y.Y36(KO))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-start-node-action"]],inputs:{server:"server",nodes:"nodes"},features:[y.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&y.YNc(0,aJ,5,0,"button",0),2&e&&y.Q6J("ngIf",t.isNodeWithStoppedStatus)},directives:[_.O5,kq,nO],encapsulation:2}),e}();function lJ(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",1),y.NdJ("click",function(){return y.CHM(n),y.oxw().suspendNodes()}),y.TgZ(1,"mat-icon"),y._uU(2,"pause"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Suspend"),y.qZA(),y.qZA()}}var cJ=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)(y.Y36(nH))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-suspend-node-action"]],inputs:{server:"server",nodes:"nodes"},features:[y.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&y.YNc(0,lJ,5,0,"button",0),2&e&&y.Q6J("ngIf",t.isNodeWithStartedStatus)},directives:[_.O5,kq,nO],encapsulation:2}),e}();function uJ(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",1),y.NdJ("click",function(){return y.CHM(n),y.oxw().stopNodes()}),y.TgZ(1,"mat-icon"),y._uU(2,"stop"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Stop"),y.qZA(),y.qZA()}}var dJ=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)(y.Y36(nH))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-stop-node-action"]],inputs:{server:"server",nodes:"nodes"},features:[y.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&y.YNc(0,uJ,5,0,"button",0),2&e&&y.Q6J("ngIf",t.isNodeWithStartedStatus)},directives:[_.O5,kq,nO],encapsulation:2}),e}();function hJ(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",1),y.NdJ("click",function(){return y.CHM(n),y.oxw().reloadNodes()}),y.TgZ(1,"mat-icon"),y._uU(2,"refresh"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Reload"),y.qZA(),y.qZA()}}var pJ=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)(y.Y36(nH))},e.\u0275cmp=y.Xpm({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&&y.YNc(0,hJ,5,0,"button",0),2&e&&y.Q6J("ngIf",t.filteredNodes.length>0)},directives:[_.O5,kq,nO],encapsulation:2}),e}(),fJ=function(){function e(e,t,n){this.router=e,this.toasterService=t,this.mapSettingsService=n,this.nodeConsoleTrigger=new y.vpe,this.closeNodeConsoleTrigger=new x.xQ,this.consoleResized=new x.xQ,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.prototype.getUrl=function(e,t){var n="ws";return"https:"===e.protocol&&(n="wss"),n+"://"+e.host+":"+e.port+"/v2/projects/"+t.project_id+"/nodes/"+t.node_id+"/console/ws"},e.prototype.openConsolesForAllNodesInWidget=function(e){var t=this,n="Please start the following nodes if you want to open consoles for them: ",i=0;e.forEach(function(e){"started"===e.status?(t.mapSettingsService.logConsoleSubject.next(!0),setTimeout(function(){t.openConsoleForNode(e)},500)):(i++,n+=e.name+" ")}),i>0&&this.toasterService.error(n)},e.prototype.openConsolesForAllNodesInNewTabs=function(e){var t=this,n="Please start the following nodes if you want to open consoles for them: ",i=0;e.forEach(function(e){if("started"===e.status){var r=t.router.url.split("/");window.open("/static/web-ui/"+r[1]+"/"+r[2]+"/"+r[3]+"/"+r[4]+"/nodes/"+e.node_id)}else i++,n+=e.name+" "}),i>0&&this.toasterService.error(n)},e.\u0275fac=function(t){return new(t||e)(y.LFG(KZ),y.LFG(KO),y.LFG(rz))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),mJ=function(){function e(e){this.nodeConsoleService=e}return e.prototype.ngOnInit=function(){},e.prototype.openConsole=function(){this.nodeConsoleService.openConsolesForAllNodesInWidget(this.nodes)},e.\u0275fac=function(t){return new(t||e)(y.Y36(fJ))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.openConsole()}),y.TgZ(1,"mat-icon"),y._uU(2,"http"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Web console"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}(),gJ=function(){function e(e){this.nodeConsoleService=e}return e.prototype.ngOnInit=function(){},e.prototype.openConsole=function(){this.nodeConsoleService.openConsolesForAllNodesInNewTabs(this.nodes)},e.\u0275fac=function(t){return new(t||e)(y.Y36(fJ))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.openConsole()}),y.TgZ(1,"mat-icon"),y._uU(2,"http"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Web console in new tab"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}(),vJ=n(10503),yJ=function(){function e(e,t,n,i,r){this.electronService=e,this.serverService=t,this.settingsService=n,this.toasterService=i,this.nodeService=r}return e.prototype.ngOnInit=function(){},e.prototype.console=function(){return(0,LO.mG)(this,void 0,void 0,function(){var e,t,n,i,r;return(0,LO.Jh)(this,function(o){switch(o.label){case 0:if(e=this.settingsService.getConsoleSettings()?this.settingsService.getConsoleSettings():this.nodeService.getDefaultCommand(),0===this.nodes.filter(function(e){return"started"===e.status}).length)return this.toasterService.error("Device needs to be started in order to console to it."),[2];t=0,n=this.nodes,o.label=1;case 1:return t<n.length?"started"!==(i=n[t]).status?[3,3]:(r={command:e,type:i.console_type,host:i.console_host,port:i.console,name:i.name,project_id:i.project_id,node_id:i.node_id,server_url:this.serverService.getServerUrl(this.server)},[4,this.openConsole(r)]):[3,4];case 2:o.sent(),o.label=3;case 3:return t++,[3,1];case 4:return[2]}})})},e.prototype.openConsole=function(e){return(0,LO.mG)(this,void 0,void 0,function(){return(0,LO.Jh)(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)(y.Y36(eT),y.Y36(TM),y.Y36(vJ.g),y.Y36(KO),y.Y36(nH))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.console()}),y.TgZ(1,"mat-icon"),y._uU(2,"web_asset"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Console"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}(),_J=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)(y.Y36(KO),y.Y36(nH))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.openConsole()}),y.TgZ(1,"mat-icon"),y._uU(2,"web_asset"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Console"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}(),bJ=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)(y.Y36(eT))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.open()}),y.TgZ(1,"mat-icon"),y._uU(2,"tab"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Open file explorer"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}(),wJ=function(){function e(e,t,n,i){this.dialogRef=e,this.nodeService=t,this.toasterService=n,this.formBuilder=i,this.inputForm=this.formBuilder.group({name:new st.NI("",st.kI.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)(y.Y36($I),y.Y36(nH),y.Y36(KO),y.Y36(st.qu))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"div",3),y.TgZ(5,"mat-card",4),y.TgZ(6,"form",5),y.TgZ(7,"mat-form-field",6),y.TgZ(8,"input",7),y.NdJ("ngModelChange",function(e){return t.node.name=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(9,"div",8),y.TgZ(10,"button",9),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(11,"Cancel"),y.qZA(),y.TgZ(12,"button",10),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(13,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Change hostname for node ",t.name,""),y.xp6(5),y.Q6J("formGroup",t.inputForm),y.xp6(2),y.Q6J("ngModel",t.node.name))},directives:[lq,oE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,uq,cO],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),SJ=function(){function e(e){this.dialog=e}return e.prototype.ngOnInit=function(){},e.prototype.changeHostname=function(){var e=this.dialog.open(wJ,{autoFocus:!1,disableClose:!0}).componentInstance;e.server=this.server,e.node=this.node},e.\u0275fac=function(t){return new(t||e)(y.Y36(aq))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.changeHostname()}),y.TgZ(1,"mat-icon"),y._uU(2,"edit"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Change hostname"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}(),xJ=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)(y.Y36($I),y.Y36(nH))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"app-symbols",3),y.NdJ("symbolChanged",function(e){return t.symbolChanged(e)}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"button",5),y.NdJ("click",function(){return t.onCloseClick()}),y._uU(7,"Cancel"),y.qZA(),y.TgZ(8,"button",6),y.NdJ("click",function(){return t.onSelectClick()}),y._uU(9,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Change symbol for node: ",t.node.name,""),y.xp6(3),y.Q6J("server",t.server)("symbol",t.symbol))},directives:[lq,xI,uq,cO],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}(),CJ=function(){function e(e){this.dialog=e}return e.prototype.ngOnInit=function(){},e.prototype.changeSymbol=function(){var e=this.dialog.open(xJ,{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)(y.Y36(aq))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.changeSymbol()}),y.TgZ(1,"mat-icon"),y._uU(2,"find_replace"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Change symbol"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}(),kJ=function(){function e(e,t){this.httpServer=e,this.svgToDrawingConverter=t}return e.prototype.add=function(e,t,n,i,r){return this.httpServer.post(e,"/projects/"+t+"/drawings",{svg:r,x:Math.round(n),y:Math.round(i),z:1})},e.prototype.duplicate=function(e,t,n){return this.httpServer.post(e,"/projects/"+t+"/drawings",{svg:n.svg,rotation:n.rotation,x:n.x+10,y:n.y+10,z:n.z})},e.prototype.updatePosition=function(e,t,n,i,r){var o=Math.round(i),a=Math.round(r);return t.snap_to_grid&&(n.element=this.svgToDrawingConverter.convert(n.svg),o=Math.round((o+n.element.width/2)/t.drawing_grid_size)*t.drawing_grid_size,a=Math.round((a+n.element.width/2)/t.drawing_grid_size)*t.drawing_grid_size,o=Math.round(o-n.element.width/2),a=Math.round(a-n.element.height/2)),this.httpServer.put(e,"/projects/"+n.project_id+"/drawings/"+n.drawing_id,{x:o,y:a})},e.prototype.updateSizeAndPosition=function(e,t,n,i,r){return this.httpServer.put(e,"/projects/"+t.project_id+"/drawings/"+t.drawing_id,{svg:r,x:Math.round(n),y:Math.round(i)})},e.prototype.updateText=function(e,t,n){return this.httpServer.put(e,"/projects/"+t.project_id+"/drawings/"+t.drawing_id,{svg:n,x:Math.round(t.x),y:Math.round(t.y),z:t.z})},e.prototype.update=function(e,t){return this.httpServer.put(e,"/projects/"+t.project_id+"/drawings/"+t.drawing_id,{locked:t.locked,svg:t.svg,rotation:t.rotation,x:Math.round(t.x),y:Math.round(t.y),z:t.z})},e.prototype.delete=function(e,t){return this.httpServer.delete(e,"/projects/"+t.project_id+"/drawings/"+t.drawing_id)},e.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh),y.LFG(Zz))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),TJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,LO.ZT)(t,e),t.prototype.getItemKey=function(e){return e.drawing_id},t.\u0275fac=function(){var e;return function(n){return(e||(e=y.n5z(t)))(n||t)}}(),t.\u0275prov=y.Yz7({token:t,factory:t.\u0275fac}),t}($B.o),AJ=function(){function e(e,t,n,i,r){this.nodeService=e,this.nodesDataSource=t,this.drawingService=n,this.drawingsDataSource=i,this.toasterService=r}return e.prototype.duplicate=function(){for(var e=this,t="",n=0,i=this.nodes;n<i.length;n++){var r=i[n];"stopped"===r.status?this.nodeService.duplicate(this.server,r).subscribe(function(t){e.nodesDataSource.add(t)}):t+=r.name+", "}for(var o=0,a=this.drawings;o<a.length;o++){var s=a[o];this.drawingService.duplicate(this.server,s.project_id,s).subscribe(function(t){e.drawingsDataSource.add(t)})}t.length>0&&(t=t.substring(0,t.length-2),this.toasterService.error("Cannot duplicate node data for nodes: "+t))},e.\u0275fac=function(t){return new(t||e)(y.Y36(nH),y.Y36($z.G),y.Y36(kJ),y.Y36(TJ),y.Y36(KO))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.duplicate()}),y.TgZ(1,"mat-icon"),y._uU(2,"filter_none"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Duplicate"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}(),ZJ=function(){function e(){}return e.prototype.convert=function(e){var t="";if(e.element instanceof Cz)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 yz)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 Sz)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 Tz))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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),MJ=function(){function e(){}return e.prototype.get=function(e){return+e.value>-360&&+e.value<=360?null:{negativeValue:!0}},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),OJ=function(){return{standalone:!0}};function EJ(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-form-field",3),y.TgZ(1,"input",12),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().element.stroke_dasharray=e}),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(1),y.Q6J("ngModelOptions",y.DdM(2,OJ))("ngModel",i.element.stroke_dasharray)}}var PJ=function(){function e(e,t,n,i,r,o,a,s,l){this.dialogRef=e,this.drawingToMapDrawingConverter=t,this.mapDrawingToSvgConverter=n,this.drawingService=i,this.drawingsDataSource=r,this.formBuilder=o,this.toasterService=a,this.nonNegativeValidator=s,this.rotationValidator=l,this.formGroup=this.formBuilder.group({borderWidth:new st.NI("",[st.kI.required,s.get]),rotation:new st.NI("",[st.kI.required,l.get])})}return e.prototype.ngOnInit=function(){this.element=new IJ,this.drawing.element instanceof Cz||this.drawing.element instanceof yz?(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 Sz&&(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 Cz||this.drawing.element instanceof yz?(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 Sz&&(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)(y.Y36($I),y.Y36(bj),y.Y36(ZJ),y.Y36(kJ),y.Y36(TJ),y.Y36(st.qu),y.Y36(KO),y.Y36(ZU),y.Y36(MJ))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1,"Style editor"),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"form",2),y.TgZ(4,"mat-form-field",3),y.TgZ(5,"input",4),y.NdJ("ngModelChange",function(e){return t.element.fill=e}),y.qZA(),y.qZA(),y.TgZ(6,"mat-form-field",3),y.TgZ(7,"input",5),y.NdJ("ngModelChange",function(e){return t.element.stroke=e}),y.qZA(),y.qZA(),y.TgZ(8,"mat-form-field",3),y._UZ(9,"input",6),y.qZA(),y.YNc(10,EJ,2,3,"mat-form-field",7),y.TgZ(11,"mat-form-field",3),y._UZ(12,"input",8),y.qZA(),y.qZA(),y.qZA(),y.TgZ(13,"div",9),y.TgZ(14,"button",10),y.NdJ("click",function(){return t.onNoClick()}),y._uU(15,"Cancel"),y.qZA(),y.TgZ(16,"button",11),y.NdJ("click",function(){return t.onYesClick()}),y._uU(17,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(3),y.Q6J("formGroup",t.formGroup),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(6,OJ))("ngModel",t.element.fill),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(7,OJ))("ngModel",t.element.stroke),y.xp6(3),y.Q6J("ngIf",t.element.stroke_dasharray))},directives:[lq,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.On,st.wV,st.u,_.O5,uq,cO],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}(),IJ=function(){return function(){}}();function qJ(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",1),y.NdJ("click",function(){return y.CHM(n),y.oxw().editStyle()}),y.TgZ(1,"mat-icon"),y._uU(2,"style"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Edit style"),y.qZA(),y.qZA()}}var NJ=function(){function e(e){this.dialog=e,this.isImageDrawing=!1}return e.prototype.ngOnChanges=function(){this.isImageDrawing=this.drawing.element instanceof bz},e.prototype.editStyle=function(){var e=this.dialog.open(PJ,{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)(y.Y36(aq))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-edit-style-action"]],inputs:{server:"server",project:"project",drawing:"drawing"},features:[y.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&y.YNc(0,qJ,5,0,"button",0),2&e&&y.Q6J("ngIf",!t.isImageDrawing)},directives:[_.O5,kq,nO],encapsulation:2}),e}(),DJ=["textArea"],RJ=function(){function e(e,t,n,i,r,o,a,s,l,c,u,d,h,p){this.dialogRef=e,this.drawingToMapDrawingConverter=t,this.mapDrawingToSvgConverter=n,this.drawingService=i,this.drawingsDataSource=r,this.renderer=o,this.nodeService=a,this.nodesDataSource=s,this.linkService=l,this.linksDataSource=c,this.formBuilder=u,this.toasterService=d,this.rotationValidator=h,this.fontFixer=p}return e.prototype.ngOnInit=function(){var e=this;this.formGroup=this.formBuilder.group({rotation:new st.NI("",[st.kI.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 Tz,n=0,i=this.label.style.split(";");n<i.length;n++){var r=i[n];e.push({property:r.split(": ")[0],value:r.split(": ")[1]})}return t.text=this.label.text?this.label.text:"",t.font_family=e.find(function(e){return"font-family"===e.property})?e.find(function(e){return"font-family"===e.property}).value:"TypeWriter",t.font_size=e.find(function(e){return"font-size"===e.property})?+e.find(function(e){return"font-size"===e.property}).value:10,t.font_weight=e.find(function(e){return"font-weight"===e.property})?e.find(function(e){return"font-weight"===e.property}).value:"normal",t.fill=e.find(function(e){return"fill"===e.property})?e.find(function(e){return"fill"===e.property}).value:"#000000",t.fill_opacity=e.find(function(e){return"fill-opacity"===e.property})?+e.find(function(e){return"fill-opacity"===e.property}).value:1,t},e.prototype.getStyleFromTextElement=function(){return"font-family: "+this.element.font_family+";font-size: "+this.element.font_size+";font-weight: "+this.element.font_weight+";fill: "+this.element.fill+";fill-opacity: "+this.element.fill_opacity+";"},e.prototype.onNoClick=function(){this.dialogRef.close()},e.prototype.onYesClick=function(){var e=this;if(this.formGroup.valid){if(this.rotation=this.formGroup.get("rotation").value,this.label&&this.node)this.node.label.style=this.getStyleFromTextElement(),this.node.label.rotation=+this.rotation,this.nodeService.updateLabel(this.server,this.node,this.node.label).subscribe(function(t){e.nodesDataSource.update(t),e.dialogRef.close()});else if(this.linkNode&&this.link)this.label.style=this.getStyleFromTextElement(),this.label.rotation=+this.rotation,this.label.text=this.element.text,this.linkService.updateLink(this.server,this.link).subscribe(function(t){e.linksDataSource.update(t),e.dialogRef.close()});else if(this.drawing){this.drawing.rotation=+this.rotation,this.drawing.element=this.element;var t=this.drawingToMapDrawingConverter.convert(this.drawing);t.element=this.drawing.element,this.drawing.svg=this.mapDrawingToSvgConverter.convert(t),this.drawingService.update(this.server,this.drawing).subscribe(function(t){e.drawingsDataSource.update(t),e.dialogRef.close()})}}else this.toasterService.error("Entered data is incorrect")},e.prototype.changeTextColor=function(e){this.renderer.setStyle(this.textArea.nativeElement,"color",e)},e.\u0275fac=function(t){return new(t||e)(y.Y36($I),y.Y36(bj),y.Y36(ZJ),y.Y36(kJ),y.Y36(TJ),y.Y36(y.Qsj),y.Y36(nH),y.Y36($z.G),y.Y36(Xz),y.Y36(Kz.F),y.Y36(st.qu),y.Y36(KO),y.Y36(MJ),y.Y36(uj))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-text-editor"]],viewQuery:function(e,t){var n;1&e&&y.Gf(DJ,7),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"h1",0),y._uU(1,"Text editor"),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"mat-form-field",2),y.TgZ(4,"input",3),y.NdJ("ngModelChange",function(e){return t.changeTextColor(e)})("ngModelChange",function(e){return t.element.fill=e}),y.qZA(),y.qZA(),y.TgZ(5,"form",4),y.TgZ(6,"mat-form-field",2),y._UZ(7,"input",5),y.qZA(),y.qZA(),y.TgZ(8,"textarea",6,7),y.NdJ("ngModelChange",function(e){return t.element.text=e}),y.qZA(),y.qZA(),y.TgZ(10,"div",8),y.TgZ(11,"button",9),y.NdJ("click",function(){return t.onNoClick()}),y._uU(12,"Cancel"),y.qZA(),y.TgZ(13,"button",10),y.NdJ("click",function(){return t.onYesClick()}),y._uU(14,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(4),y.Q6J("ngModel",t.element.fill),y.xp6(1),y.Q6J("formGroup",t.formGroup),y.xp6(3),y.Q6J("ngModel",t.element.text)("readonly",!t.isTextEditable))},directives:[lq,sE.KE,mE,st.Fj,st.JJ,st.On,st._Y,st.JL,st.sg,st.u,uq,cO],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}(),LJ=function(){function e(e){this.dialog=e}return e.prototype.ngOnInit=function(){},e.prototype.editText=function(){var e=this.dialog.open(RJ,{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)(y.Y36(aq))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.editText()}),y.TgZ(1,"mat-icon"),y._uU(2,"text_format"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Edit text"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}();function FJ(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",6),y.TgZ(1,"textarea",7,8),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().config=e}),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(1),y.Q6J("ngModel",i.config)}}function BJ(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-tab-group"),y.TgZ(1,"mat-tab",9),y.TgZ(2,"textarea",10,8),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().config=e}),y.qZA(),y.qZA(),y.TgZ(4,"mat-tab",11),y.TgZ(5,"textarea",10,8),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().privateConfig=e}),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(2),y.Q6J("ngModel",i.config),y.xp6(3),y.Q6J("ngModel",i.privateConfig)}}var jJ=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)(y.Y36($I),y.Y36(nH),y.Y36(KO))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.YNc(2,FJ,3,1,"div",1),y.YNc(3,BJ,7,2,"mat-tab-group",2),y.TgZ(4,"div",3),y.TgZ(5,"button",4),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(6,"Cancel"),y.qZA(),y.TgZ(7,"button",5),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(8,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.hij("Configuration for node ",t.node.name,""),y.xp6(1),y.Q6J("ngIf","vpcs"===t.node.node_type),y.xp6(1),y.Q6J("ngIf","iou"===t.node.node_type||"dynamips"===t.node.node_type))},directives:[lq,_.O5,uq,cO,st.Fj,st.JJ,st.On,MU.SP,MU.uX],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}.textAreaTab[_ngcontent-%COMP%]{width:100%;height:300px}"]}),e}();function zJ(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",1),y.NdJ("click",function(){return y.CHM(n),y.oxw().editConfig()}),y.TgZ(1,"mat-icon"),y._uU(2,"settings"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Edit config"),y.qZA(),y.qZA()}}var UJ=function(){function e(e){this.dialog=e}return e.prototype.editConfig=function(){var e=this.dialog.open(jJ,{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)(y.Y36(aq))},e.\u0275cmp=y.Xpm({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&&y.YNc(0,zJ,5,0,"button",0),2&e&&y.Q6J("ngIf","vpcs"===t.node.node_type||"iou"===t.node.node_type||"dynamips"===t.node.node_type)},directives:[_.O5,kq,nO],encapsulation:2}),e}(),HJ=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)(y.Y36($I))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1,"Choose configuration file"),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"div",2),y.TgZ(4,"div"),y.TgZ(5,"button",3),y.NdJ("click",function(){return t.close("startup-config")}),y._uU(6,"startup configuration"),y.qZA(),y.qZA(),y.TgZ(7,"div"),y.TgZ(8,"button",3),y.NdJ("click",function(){return t.close("private-config")}),y._uU(9,"private configuration"),y.qZA(),y.qZA(),y.qZA(),y.qZA())},directives:[lq,cO],styles:[".container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}"]}),e}();function YJ(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",1),y.NdJ("click",function(){return y.CHM(n),y.oxw().exportConfig()}),y.TgZ(1,"mat-icon"),y._uU(2,"call_made"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Export config"),y.qZA(),y.qZA()}}var JJ=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(HJ,{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)(y.Y36(nH),y.Y36(aq))},e.\u0275cmp=y.Xpm({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&&y.YNc(0,YJ,5,0,"button",0),2&e&&y.Q6J("ngIf","vpcs"===t.node.node_type||"dynamips"===t.node.node_type||"iou"===t.node.node_type)},directives:[_.O5,kq,nO],encapsulation:2}),e}(),GJ=["fileInput"],WJ=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(HJ,{width:"500px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(t){e.configType=t,e.fileInput.nativeElement.click()}):(this.configType="startup-config",this.fileInput.nativeElement.click())},e.prototype.importConfig=function(e){var t=this,n=e.target.files[0],i=new FileReader;i.onload=function(e){var n=i.result;"string"!=typeof n&&(n=n.toString()),"startup-config"===t.configType?t.nodeService.saveConfiguration(t.server,t.node,n).subscribe(function(){t.toasterService.success("Configuration for node "+t.node.name+" imported.")}):"private-config"===t.configType&&t.nodeService.savePrivateConfiguration(t.server,t.node,n).subscribe(function(){t.toasterService.success("Configuration for node "+t.node.name+" imported.")})},i.readAsText(n)},e.\u0275fac=function(t){return new(t||e)(y.Y36(nH),y.Y36(KO),y.Y36(aq))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-import-config-action"]],viewQuery:function(e,t){var n;1&e&&y.Gf(GJ,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"input",0,1),y.NdJ("change",function(e){return t.importConfig(e)}),y.qZA(),y.TgZ(2,"button",2),y.NdJ("click",function(){return t.triggerClick()}),y.TgZ(3,"mat-icon"),y._uU(4,"call_received"),y.qZA(),y.TgZ(5,"span"),y._uU(6,"Import config"),y.qZA(),y.qZA())},directives:[kq,nO],styles:[".non-visible[_ngcontent-%COMP%]{display:none}"]}),e}(),VJ=function(){function e(e,t,n,i){this.nodesDataSource=e,this.drawingsDataSource=t,this.nodeService=n,this.drawingService=i}return e.prototype.ngOnInit=function(){},e.prototype.moveLayerUp=function(){var e=this;this.nodes.forEach(function(t){t.z++,e.nodesDataSource.update(t),e.nodeService.update(e.server,t).subscribe(function(e){})}),this.drawings.forEach(function(t){t.z++,e.drawingsDataSource.update(t),e.drawingService.update(e.server,t).subscribe(function(e){})})},e.\u0275fac=function(t){return new(t||e)(y.Y36($z.G),y.Y36(TJ),y.Y36(nH),y.Y36(kJ))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.moveLayerUp()}),y.TgZ(1,"mat-icon"),y._uU(2,"keyboard_arrow_up"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Move layer up"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}(),QJ=function(){function e(e,t,n,i){this.nodesDataSource=e,this.drawingsDataSource=t,this.nodeService=n,this.drawingService=i}return e.prototype.ngOnInit=function(){},e.prototype.moveLayerDown=function(){var e=this;this.nodes.forEach(function(t){t.z--,e.nodesDataSource.update(t),e.nodeService.update(e.server,t).subscribe(function(e){})}),this.drawings.forEach(function(t){t.z--,e.drawingsDataSource.update(t),e.drawingService.update(e.server,t).subscribe(function(e){})})},e.\u0275fac=function(t){return new(t||e)(y.Y36($z.G),y.Y36(TJ),y.Y36(nH),y.Y36(kJ))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.moveLayerDown()}),y.TgZ(1,"mat-icon"),y._uU(2,"keyboard_arrow_down"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Move layer down"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}(),XJ=function(){function e(e,t,n,i){this.nodesDataSource=e,this.drawingsDataSource=t,this.nodeService=n,this.drawingService=i}return e.prototype.ngOnInit=function(){},e.prototype.bringToFront=function(){var e=this,t=Math.max.apply(Math,this.nodes.map(function(e){return e.z})),n=Math.max.apply(Math,this.drawings.map(function(e){return e.z})),i=Math.max(t,n);i<100&&i++,this.nodes.forEach(function(t){t.z=i,e.nodesDataSource.update(t),e.nodeService.update(e.server,t).subscribe(function(e){})}),this.drawings.forEach(function(t){t.z=i,e.drawingsDataSource.update(t),e.drawingService.update(e.server,t).subscribe(function(e){})})},e.\u0275fac=function(t){return new(t||e)(y.Y36($z.G),y.Y36(TJ),y.Y36(nH),y.Y36(kJ))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.bringToFront()}),y.TgZ(1,"mat-icon"),y._uU(2,"vertical_align_top"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Bring to front"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}(),KJ=function(){function e(){}return e.prototype.startCapture=function(e,t,n,i){location.assign("gns3+pcap://"+e.host+":"+e.port+"?project_id="+t.project_id+"&link_id="+n.link_id+"&name="+i)},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}();function $J(e,t){if(1&e&&(y.TgZ(0,"mat-option",11),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n[1]),y.xp6(1),y.hij(" ",n[0]," ")}}var eG=function(){return{standalone:!0}},tG=function(){function e(e,t,n,i,r,o){this.dialogRef=e,this.linkService=t,this.formBuilder=n,this.toasterService=i,this.nodesDataSource=r,this.packetCaptureService=o,this.linkTypes=[],this.inputForm=this.formBuilder.group({linkType:new st.NI("",st.kI.required),fileName:new st.NI("",st.kI.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)(y.Y36($I),y.Y36(Xz),y.Y36(st.qu),y.Y36(KO),y.Y36($z.G),y.Y36(KJ))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1,"Packet capture"),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"form",2),y.TgZ(4,"mat-form-field",3),y.TgZ(5,"mat-select",4),y.YNc(6,$J,2,2,"mat-option",5),y.qZA(),y.qZA(),y.TgZ(7,"mat-form-field",3),y._UZ(8,"input",6),y.qZA(),y.TgZ(9,"mat-checkbox",7),y.NdJ("ngModelChange",function(e){return t.startProgram=e}),y._uU(10," Start the capture visualization program "),y.qZA(),y.qZA(),y.qZA(),y.TgZ(11,"div",8),y.TgZ(12,"button",9),y.NdJ("click",function(){return t.onNoClick()}),y._uU(13,"Cancel"),y.qZA(),y.TgZ(14,"button",10),y.NdJ("click",function(){return t.onYesClick()}),y._uU(15,"Ok"),y.qZA(),y.qZA()),2&e&&(y.xp6(3),y.Q6J("formGroup",t.inputForm),y.xp6(3),y.Q6J("ngForOf",t.linkTypes),y.xp6(3),y.Q6J("ngModelOptions",y.DdM(4,eG))("ngModel",t.startProgram))},directives:[lq,st._Y,st.JL,st.sg,sE.KE,vE.gD,st.JJ,st.u,st.Fj,_.sg,mE,XD,st.On,uq,cO,lt.ey],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function nG(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",1),y.NdJ("click",function(){return y.CHM(n),y.oxw().startCapture()}),y.TgZ(1,"mat-icon"),y._uU(2,"loupe"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Start capture"),y.qZA(),y.qZA()}}var iG=function(){function e(e){this.dialog=e}return e.prototype.startCapture=function(){var e=this.dialog.open(tG,{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)(y.Y36(aq))},e.\u0275cmp=y.Xpm({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&&y.YNc(0,nG,5,0,"button",0),2&e&&y.Q6J("ngIf",!t.link.capturing)},directives:[_.O5,kq,nO],encapsulation:2}),e}();function rG(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",1),y.NdJ("click",function(){return y.CHM(n),y.oxw().stopCapture()}),y.TgZ(1,"mat-icon"),y._uU(2,"pause_circle_filled"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Stop capture"),y.qZA(),y.qZA()}}var oG=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)(y.Y36(Xz))},e.\u0275cmp=y.Xpm({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&&y.YNc(0,rG,5,0,"button",0),2&e&&y.Q6J("ngIf",t.link.capturing)},directives:[_.O5,kq,nO],encapsulation:2}),e}();function aG(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",1),y.NdJ("click",function(){return y.CHM(n),y.oxw().startCapture()}),y.TgZ(1,"mat-icon"),y._uU(2,"search"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Start Wireshark"),y.qZA(),y.qZA()}}var sG=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)(y.Y36(KJ))},e.\u0275cmp=y.Xpm({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&&y.YNc(0,aG,5,0,"button",0),2&e&&y.Q6J("ngIf",t.link.capturing)},directives:[_.O5,kq,nO],encapsulation:2}),e}();function lG(e,t){if(1&e&&(y.TgZ(0,"div",5),y.TgZ(1,"h6"),y._uU(2),y.qZA(),y.TgZ(3,"span",6),y._uU(4),y.qZA(),y.qZA()),2&e){var n=t.$implicit;y.xp6(2),y.hij(" ",n.name," "),y.xp6(2),y.hij(" ",n.description," ")}}var cG=function(){function e(e){this.dialogRef=e}return e.prototype.onCloseClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(y.Y36($I))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.YNc(3,lG,5,2,"div",2),y.qZA(),y.TgZ(4,"div",3),y.TgZ(5,"button",4),y.NdJ("click",function(){return t.onCloseClick()}),y._uU(6,"Close"),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.Oqu(t.title),y.xp6(2),y.Q6J("ngForOf",t.messages))},directives:[lq,_.sg,uq,cO],styles:[".message[_ngcontent-%COMP%]{margin-bottom:10px}.description[_ngcontent-%COMP%]{color:#b0bec5}"]}),e}();function uG(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-tab-group"),y.TgZ(1,"mat-tab",9),y.TgZ(2,"mat-form-field",10),y.TgZ(3,"input",11),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().filters.frequency_drop[0]=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(4,"mat-tab",12),y.TgZ(5,"mat-form-field",10),y.TgZ(6,"input",13),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().filters.packet_loss[0]=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(7,"mat-tab",14),y.TgZ(8,"mat-form-field",10),y.TgZ(9,"input",15),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().filters.delay[0]=e}),y.qZA(),y.qZA(),y.TgZ(10,"mat-form-field",10),y.TgZ(11,"input",16),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().filters.delay[1]=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(12,"mat-tab",17),y.TgZ(13,"mat-form-field",10),y.TgZ(14,"input",15),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().filters.corrupt[0]=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(15,"mat-tab",18),y.TgZ(16,"mat-form-field",10),y.TgZ(17,"textarea",19),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw().filters.bpf[0]=e}),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(3),y.Q6J("ngModel",i.filters.frequency_drop[0]),y.xp6(3),y.Q6J("ngModel",i.filters.packet_loss[0]),y.xp6(3),y.Q6J("ngModel",i.filters.delay[0]),y.xp6(2),y.Q6J("ngModel",i.filters.delay[1]),y.xp6(3),y.Q6J("ngModel",i.filters.corrupt[0]),y.xp6(3),y.Q6J("ngModel",i.filters.bpf[0])}}var dG=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(cG,{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)(y.Y36($I),y.Y36(Xz),y.Y36(aq))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1,"Packet filters"),y.qZA(),y.TgZ(2,"div",1),y.YNc(3,uG,18,6,"mat-tab-group",2),y.qZA(),y.TgZ(4,"div",3),y._UZ(5,"div",4),y.TgZ(6,"div",5),y.TgZ(7,"button",6),y.NdJ("click",function(){return t.onNoClick()}),y._uU(8,"Cancel"),y.qZA(),y.TgZ(9,"button",6),y.NdJ("click",function(){return t.onResetClick()}),y._uU(10,"Reset"),y.qZA(),y.TgZ(11,"button",7),y.NdJ("click",function(){return t.onYesClick()}),y._uU(12,"Apply"),y.qZA(),y._UZ(13,"div",8),y.TgZ(14,"button",6),y.NdJ("click",function(){return t.onHelpClick()}),y._uU(15,"Help"),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(3),y.Q6J("ngIf",t.filters))},directives:[lq,_.O5,uq,cO,MU.SP,MU.uX,sE.KE,mE,st.wV,st.Fj,st.JJ,st.On],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}(),hG=function(){function e(e){this.dialog=e}return e.prototype.openPacketFilters=function(){var e=this.dialog.open(dG,{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)(y.Y36(aq))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.openPacketFilters()}),y.TgZ(1,"mat-icon"),y._uU(2,"filter_list"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Packet filters"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}();function pG(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",1),y.NdJ("click",function(){return y.CHM(n),y.oxw().resumeLink()}),y.TgZ(1,"mat-icon"),y._uU(2,"play_arrow"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Resume"),y.qZA(),y.qZA()}}var fG=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)(y.Y36(Xz))},e.\u0275cmp=y.Xpm({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&&y.YNc(0,pG,5,0,"button",0),2&e&&y.Q6J("ngIf",t.link.suspend)},directives:[_.O5,kq,nO],encapsulation:2}),e}();function mG(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",1),y.NdJ("click",function(){return y.CHM(n),y.oxw().suspendLink()}),y.TgZ(1,"mat-icon"),y._uU(2,"pause"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Suspend"),y.qZA(),y.qZA()}}var gG=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)(y.Y36(Xz))},e.\u0275cmp=y.Xpm({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&&y.YNc(0,mG,5,0,"button",0),2&e&&y.Q6J("ngIf",!t.link.suspend)},directives:[_.O5,kq,nO],encapsulation:2}),e}(),vG=function(){function e(e,t,n,i){this.nodesDataSource=e,this.drawingsDataSource=t,this.nodeService=n,this.drawingService=i}return e.prototype.ngOnChanges=function(){this.command=1===this.nodes.length&&0===this.drawings.length?this.nodes[0].locked?"Unlock item":"Lock item":0===this.nodes.length&&1===this.drawings.length?this.drawings[0].locked?"Unlock item":"Lock item":"Lock/unlock items"},e.prototype.lock=function(){var e=this;this.nodes.forEach(function(t){t.locked=!t.locked,e.nodeService.updateNode(e.server,t).subscribe(function(t){e.nodesDataSource.update(t)})}),this.drawings.forEach(function(t){t.locked=!t.locked,e.drawingService.update(e.server,t).subscribe(function(t){e.drawingsDataSource.update(t)})})},e.\u0275fac=function(t){return new(t||e)(y.Y36($z.G),y.Y36(TJ),y.Y36(nH),y.Y36(kJ))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-lock-action"]],inputs:{server:"server",nodes:"nodes",drawings:"drawings"},features:[y.TTD],decls:5,vars:1,consts:[["mat-menu-item","",3,"click"]],template:function(e,t){1&e&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.lock()}),y.TgZ(1,"mat-icon"),y._uU(2,"lock"),y.qZA(),y.TgZ(3,"span"),y._uU(4),y.qZA(),y.qZA()),2&e&&(y.xp6(4),y.Oqu(t.command))},directives:[kq,nO],encapsulation:2}),e}(),yG=function(){function e(e,t,n,i,r,o,a){this.nodesDataSource=e,this.drawingsDataSource=t,this.linksDataSource=n,this.nodeService=i,this.drawingService=r,this.linkService=o,this.bottomSheet=a}return e.prototype.ngOnInit=function(){},e.prototype.confirmDelete=function(){var e=this;this.bottomSheet.open(AU);var t=this.bottomSheet._openedBottomSheetRef;t.instance.message="Do you want to delete all selected objects?",t.afterDismissed().subscribe(function(t){t&&e.delete()})},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)(y.Y36($z.G),y.Y36(TJ),y.Y36(Kz.F),y.Y36(nH),y.Y36(kJ),y.Y36(Xz),y.Y36(kU))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.confirmDelete()}),y.TgZ(1,"mat-icon"),y._uU(2,"delete"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Delete"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}(),_G=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)(y.Y36($z.G),y.Y36(nH))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.alignHorizontally()}),y.TgZ(1,"mat-icon"),y._uU(2,"more_horiz"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Align horizontally"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}(),bG=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)(y.Y36($z.G),y.Y36(nH))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.alignVertically()}),y.TgZ(1,"mat-icon"),y._uU(2,"more_vert"),y.qZA(),y.TgZ(3,"span"),y._uU(4,"Align vertically"),y.qZA(),y.qZA())},directives:[kq,nO],encapsulation:2}),e}();function wG(e,t){if(1&e&&y._UZ(0,"app-show-node-action",14),2&e){var n=y.oxw();y.Q6J("server",n.server)("node",n.nodes[0])}}function SG(e,t){if(1&e&&y._UZ(0,"app-config-node-action",14),2&e){var n=y.oxw();y.Q6J("server",n.server)("node",n.nodes[0])}}function xG(e,t){if(1&e&&y._UZ(0,"app-start-node-action",15),2&e){var n=y.oxw();y.Q6J("server",n.server)("nodes",n.nodes)}}function CG(e,t){if(1&e&&y._UZ(0,"app-suspend-node-action",15),2&e){var n=y.oxw();y.Q6J("server",n.server)("nodes",n.nodes)}}function kG(e,t){if(1&e&&y._UZ(0,"app-stop-node-action",15),2&e){var n=y.oxw();y.Q6J("server",n.server)("nodes",n.nodes)}}function TG(e,t){if(1&e&&y._UZ(0,"app-reload-node-action",15),2&e){var n=y.oxw();y.Q6J("server",n.server)("nodes",n.nodes)}}function AG(e,t){if(1&e&&y._UZ(0,"app-http-console-action",15),2&e){var n=y.oxw();y.Q6J("server",n.server)("nodes",n.nodes)}}function ZG(e,t){if(1&e&&y._UZ(0,"app-http-console-new-tab-action",15),2&e){var n=y.oxw();y.Q6J("server",n.server)("nodes",n.nodes)}}function MG(e,t){if(1&e&&y._UZ(0,"app-console-device-action",15),2&e){var n=y.oxw();y.Q6J("server",n.server)("nodes",n.nodes)}}function OG(e,t){if(1&e&&y._UZ(0,"app-console-device-action-browser",14),2&e){var n=y.oxw();y.Q6J("server",n.server)("node",n.nodes[0])}}function EG(e,t){if(1&e&&y._UZ(0,"app-open-file-explorer-action",14),2&e){var n=y.oxw();y.Q6J("server",n.server)("node",n.nodes[0])}}function PG(e,t){if(1&e&&y._UZ(0,"app-change-hostname-action",14),2&e){var n=y.oxw();y.Q6J("server",n.server)("node",n.nodes[0])}}function IG(e,t){if(1&e&&y._UZ(0,"app-change-symbol-action",14),2&e){var n=y.oxw();y.Q6J("server",n.server)("node",n.nodes[0])}}function qG(e,t){if(1&e&&y._UZ(0,"app-duplicate-action",16),2&e){var n=y.oxw();y.Q6J("server",n.server)("project",n.project)("nodes",n.nodes)("drawings",n.drawings)}}function NG(e,t){if(1&e&&y._UZ(0,"app-edit-style-action",17),2&e){var n=y.oxw();y.Q6J("server",n.server)("project",n.project)("drawing",n.drawings[0])}}function DG(e,t){if(1&e&&y._UZ(0,"app-edit-text-action",18),2&e){var n=y.oxw();y.Q6J("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 RG(e,t){if(1&e&&y._UZ(0,"app-edit-config-action",19),2&e){var n=y.oxw();y.Q6J("server",n.server)("project",n.project)("node",n.nodes[0])}}function LG(e,t){if(1&e&&y._UZ(0,"app-export-config-action",14),2&e){var n=y.oxw();y.Q6J("server",n.server)("node",n.nodes[0])}}function FG(e,t){if(1&e&&y._UZ(0,"app-import-config-action",14),2&e){var n=y.oxw();y.Q6J("server",n.server)("node",n.nodes[0])}}function BG(e,t){if(1&e&&y._UZ(0,"app-move-layer-up-action",20),2&e){var n=y.oxw();y.Q6J("server",n.server)("nodes",n.nodes)("drawings",n.drawings)}}function jG(e,t){if(1&e&&y._UZ(0,"app-move-layer-down-action",20),2&e){var n=y.oxw();y.Q6J("server",n.server)("nodes",n.nodes)("drawings",n.drawings)}}function zG(e,t){if(1&e&&y._UZ(0,"app-bring-to-front-action",20),2&e){var n=y.oxw();y.Q6J("server",n.server)("nodes",n.nodes)("drawings",n.drawings)}}function UG(e,t){if(1&e&&y._UZ(0,"app-start-capture-action",21),2&e){var n=y.oxw();y.Q6J("server",n.server)("project",n.project)("link",n.links[0])}}function HG(e,t){if(1&e&&y._UZ(0,"app-stop-capture-action",22),2&e){var n=y.oxw();y.Q6J("server",n.server)("link",n.links[0])}}function YG(e,t){if(1&e&&y._UZ(0,"app-start-capture-on-started-link-action",21),2&e){var n=y.oxw();y.Q6J("server",n.server)("project",n.project)("link",n.links[0])}}function JG(e,t){if(1&e&&y._UZ(0,"app-packet-filters-action",21),2&e){var n=y.oxw();y.Q6J("server",n.server)("project",n.project)("link",n.links[0])}}function GG(e,t){if(1&e&&y._UZ(0,"app-resume-link-action",22),2&e){var n=y.oxw();y.Q6J("server",n.server)("link",n.links[0])}}function WG(e,t){if(1&e&&y._UZ(0,"app-suspend-link-action",22),2&e){var n=y.oxw();y.Q6J("server",n.server)("link",n.links[0])}}function VG(e,t){if(1&e&&y._UZ(0,"app-lock-action",20),2&e){var n=y.oxw();y.Q6J("server",n.server)("nodes",n.nodes)("drawings",n.drawings)}}function QG(e,t){if(1&e&&y._UZ(0,"app-delete-action",23),2&e){var n=y.oxw();y.Q6J("server",n.server)("nodes",n.nodes)("drawings",n.drawings)("links",n.links)}}function XG(e,t){if(1&e&&y._UZ(0,"app-align-horizontally-action",15),2&e){var n=y.oxw();y.Q6J("server",n.server)("nodes",n.nodes)}}function KG(e,t){if(1&e&&y._UZ(0,"app-align-vertically-action",15),2&e){var n=y.oxw();y.Q6J("server",n.server)("nodes",n.nodes)}}var $G=function(){function e(e,t,n,i){this.sanitizer=e,this.changeDetector=t,this.electronService=n,this.projectService=i,this.drawings=[],this.nodes=[],this.labels=[],this.links=[],this.linkNodes=[],this.hasTextCapabilities=!1,this.isElectronApp=!1,this.isBundledServer=!1}return e.prototype.ngOnInit=function(){this.setPosition(0,0),this.isElectronApp=this.electronService.isElectronApp,this.isBundledServer="bundled"===this.server.location},e.prototype.setPosition=function(e,t){this.topPosition=this.sanitizer.bypassSecurityTrustStyle(e+"px"),this.leftPosition=this.sanitizer.bypassSecurityTrustStyle(t+"px"),this.changeDetector.detectChanges()},e.prototype.openMenuForDrawing=function(e,t,n){this.resetCapabilities(),this.hasTextCapabilities=e.element instanceof Tz,this.drawings=[e],this.setPosition(t,n),this.contextMenu.openMenu()},e.prototype.openMenuForNode=function(e,t,n){this.resetCapabilities(),this.nodes=[e],this.setPosition(t,n),this.contextMenu.openMenu()},e.prototype.openMenuForLabel=function(e,t,n,i){this.resetCapabilities(),this.labels=[e],this.nodes=[t],this.setPosition(n,i),this.contextMenu.openMenu()},e.prototype.openMenuForInterfaceLabel=function(e,t,n,i){this.resetCapabilities(),this.linkNodes=[e],this.links=[t],this.setPosition(n,i),this.contextMenu.openMenu()},e.prototype.openMenuForListOfElements=function(e,t,n,i,r,o){this.resetCapabilities(),this.drawings=e,this.nodes=t,this.labels=n,this.links=i,this.setPosition(r,o),this.contextMenu.openMenu()},e.prototype.resetCapabilities=function(){this.drawings=[],this.nodes=[],this.labels=[],this.linkNodes=[],this.links=[],this.hasTextCapabilities=!1},e.\u0275fac=function(t){return new(t||e)(y.Y36(o.H7),y.Y36(y.sBO),y.Y36(eT),y.Y36(dU.Y))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-context-menu"]],viewQuery:function(e,t){var n;1&e&&y.Gf(Iq,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y._UZ(1,"span",1),y.TgZ(2,"mat-menu",2,3),y.YNc(4,wG,1,2,"app-show-node-action",4),y.YNc(5,SG,1,2,"app-config-node-action",4),y.YNc(6,xG,1,2,"app-start-node-action",5),y.YNc(7,CG,1,2,"app-suspend-node-action",5),y.YNc(8,kG,1,2,"app-stop-node-action",5),y.YNc(9,TG,1,2,"app-reload-node-action",5),y.YNc(10,AG,1,2,"app-http-console-action",5),y.YNc(11,ZG,1,2,"app-http-console-new-tab-action",5),y.YNc(12,MG,1,2,"app-console-device-action",5),y.YNc(13,OG,1,2,"app-console-device-action-browser",4),y.YNc(14,EG,1,2,"app-open-file-explorer-action",4),y.YNc(15,PG,1,2,"app-change-hostname-action",4),y.YNc(16,IG,1,2,"app-change-symbol-action",4),y.YNc(17,qG,1,4,"app-duplicate-action",6),y.YNc(18,NG,1,3,"app-edit-style-action",7),y.YNc(19,DG,1,7,"app-edit-text-action",8),y.YNc(20,RG,1,3,"app-edit-config-action",9),y.YNc(21,LG,1,2,"app-export-config-action",4),y.YNc(22,FG,1,2,"app-import-config-action",4),y.YNc(23,BG,1,3,"app-move-layer-up-action",10),y.YNc(24,jG,1,3,"app-move-layer-down-action",10),y.YNc(25,zG,1,3,"app-bring-to-front-action",10),y.YNc(26,UG,1,3,"app-start-capture-action",11),y.YNc(27,HG,1,2,"app-stop-capture-action",12),y.YNc(28,YG,1,3,"app-start-capture-on-started-link-action",11),y.YNc(29,JG,1,3,"app-packet-filters-action",11),y.YNc(30,GG,1,2,"app-resume-link-action",12),y.YNc(31,WG,1,2,"app-suspend-link-action",12),y.YNc(32,VG,1,3,"app-lock-action",10),y.YNc(33,QG,1,4,"app-delete-action",13),y.YNc(34,XG,1,2,"app-align-horizontally-action",5),y.YNc(35,KG,1,2,"app-align-vertically-action",5),y.qZA(),y.qZA()),2&e){var n=y.MAs(3);y.Udp("left",t.leftPosition)("top",t.topPosition),y.xp6(1),y.Q6J("matMenuTriggerFor",n),y.xp6(3),y.Q6J("ngIf",1===t.nodes.length),y.xp6(1),y.Q6J("ngIf",1===t.nodes.length),y.xp6(1),y.Q6J("ngIf",t.nodes.length),y.xp6(1),y.Q6J("ngIf",t.nodes.length),y.xp6(1),y.Q6J("ngIf",t.nodes.length),y.xp6(1),y.Q6J("ngIf",t.nodes.length),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&t.nodes.length>0),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&t.nodes.length>0),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&t.nodes.length&&t.isElectronApp),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.nodes.length&&!t.isElectronApp),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.nodes.length&&t.isElectronApp),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.nodes.length),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.nodes.length),y.xp6(1),y.Q6J("ngIf",t.drawings.length>0||t.nodes.length>0),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&1===t.drawings.length&&!t.hasTextCapabilities),y.xp6(1),y.Q6J("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)),y.xp6(1),y.Q6J("ngIf",1===t.nodes.length&&"vpcs"===t.nodes[0].node_type),y.xp6(1),y.Q6J("ngIf",1===t.nodes.length&&("vpcs"===t.nodes[0].node_type||"iou"===t.nodes[0].node_type||"dynamips"===t.nodes[0].node_type)),y.xp6(1),y.Q6J("ngIf",1===t.nodes.length&&("vpcs"===t.nodes[0].node_type||"iou"===t.nodes[0].node_type||"dynamips"===t.nodes[0].node_type)),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&(t.drawings.length||t.nodes.length)),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&(t.drawings.length||t.nodes.length)),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&(t.drawings.length||t.nodes.length)),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length&&0===t.linkNodes.length),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length&&0===t.linkNodes.length),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length&&0===t.linkNodes.length),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length&&0===t.linkNodes.length),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&0===t.drawings.length&&0===t.nodes.length&&1===t.links.length&&0===t.linkNodes.length),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&(t.drawings.length>0||t.nodes.length>0)),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&(t.drawings.length>0||t.nodes.length>0||t.links.length>0)&&0===t.linkNodes.length),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&t.nodes.length>1),y.xp6(1),y.Q6J("ngIf",!t.projectService.isReadOnly(t.project)&&t.nodes.length>1)}},directives:[Iq,Mq,_.O5,tH,oJ,sJ,cJ,dJ,pJ,mJ,gJ,yJ,_J,bJ,SJ,CJ,AJ,NJ,LJ,UJ,JJ,WJ,VJ,QJ,XJ,iG,oG,sG,hG,fG,gG,vG,yG,_G,bG],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}();function eW(e,t){if(1&e&&(y.TgZ(0,"mat-option",19),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function tW(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-form-field",16),y.TgZ(1,"mat-select",17),y.NdJ("selectionChange",function(e){return y.CHM(n),y.oxw(2)._changePageSize(e.value)}),y.YNc(2,eW,2,2,"mat-option",18),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2);y.Q6J("appearance",i._formFieldAppearance)("color",i.color),y.xp6(1),y.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),y.xp6(1),y.Q6J("ngForOf",i._displayedPageSizeOptions)}}function nW(e,t){if(1&e&&(y.TgZ(0,"div",20),y._uU(1),y.qZA()),2&e){var n=y.oxw(2);y.xp6(1),y.Oqu(n.pageSize)}}function iW(e,t){if(1&e&&(y.TgZ(0,"div",12),y.TgZ(1,"div",13),y._uU(2),y.qZA(),y.YNc(3,tW,3,6,"mat-form-field",14),y.YNc(4,nW,2,1,"div",15),y.qZA()),2&e){var n=y.oxw();y.xp6(2),y.hij(" ",n._intl.itemsPerPageLabel," "),y.xp6(1),y.Q6J("ngIf",n._displayedPageSizeOptions.length>1),y.xp6(1),y.Q6J("ngIf",n._displayedPageSizeOptions.length<=1)}}function rW(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",21),y.NdJ("click",function(){return y.CHM(n),y.oxw().firstPage()}),y.O4$(),y.TgZ(1,"svg",7),y._UZ(2,"path",22),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),y.uIk("aria-label",i._intl.firstPageLabel)}}function oW(e,t){if(1&e){var n=y.EpF();y.O4$(),y.kcU(),y.TgZ(0,"button",23),y.NdJ("click",function(){return y.CHM(n),y.oxw().lastPage()}),y.O4$(),y.TgZ(1,"svg",7),y._UZ(2,"path",24),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),y.uIk("aria-label",i._intl.lastPageLabel)}}var aW=function(){var e=function e(){(0,f.Z)(this,e),this.changes=new x.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of ".concat(n);var i=e*t,r=i<(n=Math.max(n,0))?Math.min(i+t,n):i+t;return"".concat(i+1," \u2013 ").concat(r," of ").concat(n)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=y.Yz7({factory:function(){return new e},token:e,providedIn:"root"}),e}(),sW={provide:aW,deps:[[new y.FiY,new y.tp0,aW]],useFactory:function(e){return e||new aW}},lW=new y.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),cW=(0,lt.Id)((0,lt.dB)(function e(){(0,f.Z)(this,e)})),uW=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r){var o;if((0,f.Z)(this,n),(o=t.call(this))._intl=e,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new y.vpe,o._intlChanges=e.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),r){var a=r.pageSize,s=r.pageSizeOptions,l=r.hidePageSize,c=r.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=s&&(o._pageSizeOptions=s),null!=l&&(o._hidePageSize=l),null!=c&&(o._showFirstLastButtons=c)}return o}return(0,m.Z)(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max((0,S.su)(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=(0,S.su)(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max((0,S.su)(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map(function(e){return(0,S.su)(e)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=(0,S.Ig)(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=(0,S.Ig)(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}(cW);return e.\u0275fac=function(t){return new(t||e)(y.Y36(aW),y.Y36(y.sBO),y.Y36(void 0))},e.\u0275dir=y.lG2({type:e,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[y.qOj]}),e}(),dW=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r){var o;return(0,f.Z)(this,n),o=t.call(this,e,i,r),r&&null!=r.formFieldAppearance&&(o._formFieldAppearance=r.formFieldAppearance),o}return n}(uW);return e.\u0275fac=function(t){return new(t||e)(y.Y36(aW),y.Y36(y.sBO),y.Y36(lW,8))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[y.qOj],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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.YNc(2,iW,5,3,"div",2),y.TgZ(3,"div",3),y.TgZ(4,"div",4),y._uU(5),y.qZA(),y.YNc(6,rW,3,5,"button",5),y.TgZ(7,"button",6),y.NdJ("click",function(){return t.previousPage()}),y.O4$(),y.TgZ(8,"svg",7),y._UZ(9,"path",8),y.qZA(),y.qZA(),y.kcU(),y.TgZ(10,"button",9),y.NdJ("click",function(){return t.nextPage()}),y.O4$(),y.TgZ(11,"svg",7),y._UZ(12,"path",10),y.qZA(),y.qZA(),y.YNc(13,oW,3,5,"button",11),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(2),y.Q6J("ngIf",!t.hidePageSize),y.xp6(3),y.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),y.xp6(1),y.Q6J("ngIf",t.showFirstLastButtons),y.xp6(1),y.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),y.uIk("aria-label",t._intl.previousPageLabel),y.xp6(3),y.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),y.uIk("aria-label",t._intl.nextPageLabel),y.xp6(3),y.Q6J("ngIf",t.showFirstLastButtons))},directives:[_.O5,cO,MO,sE.KE,vE.gD,_.sg,lt.ey],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}(),hW=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({providers:[sW],imports:[[_.ez,dO,vE.LD,PO,lt.BQ]]}),e}(),pW=n(52402),fW=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)(y.Y36($I))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"span"),y._uU(1),y.qZA(),y.TgZ(2,"div",0),y.TgZ(3,"button",1),y.NdJ("click",function(){return t.onNoClick()}),y._uU(4,"No"),y.qZA(),y.TgZ(5,"button",2),y.NdJ("click",function(){return t.onYesClick()}),y._uU(6," Yes "),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.Oqu(t.confirmationMessage))},directives:[uq,cO],styles:[""]}),e}();function mW(e,t){if(1&e&&(y.TgZ(0,"div"),y._uU(1),y.qZA()),2&e){var n=y.oxw();y.xp6(1),y.hij("Adapters: ",n.appliance.qemu.adapters,"")}}function gW(e,t){if(1&e&&(y.TgZ(0,"div"),y._uU(1),y.qZA()),2&e){var n=y.oxw();y.xp6(1),y.hij("Console type: ",n.appliance.qemu.console_type,"")}}var vW=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)(y.Y36($I),y.Y36(tq))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"h1",1),y._uU(2),y.qZA(),y.qZA(),y.TgZ(3,"div",2),y.TgZ(4,"div"),y._uU(5),y.qZA(),y.TgZ(6,"div"),y._uU(7),y.qZA(),y.TgZ(8,"div"),y._uU(9),y.qZA(),y.YNc(10,mW,2,1,"div",3),y.YNc(11,gW,2,1,"div",3),y.qZA(),y.TgZ(12,"div",4),y.TgZ(13,"button",5),y.NdJ("click",function(){return t.onNoClick()}),y._uU(14,"Close"),y.qZA(),y.qZA()),2&e&&(y.xp6(2),y.Oqu(t.appliance.name),y.xp6(3),y.hij("Vendor: ",t.appliance.vendor_name,""),y.xp6(2),y.hij("Status: ",t.appliance.status,""),y.xp6(2),y.hij("Maintainer: ",t.appliance.maintainer,""),y.xp6(1),y.Q6J("ngIf",t.appliance.qemu),y.xp6(1),y.Q6J("ngIf",t.appliance.qemu))},directives:[lq,cq,_.O5,uq,cO],encapsulation:2}),e}();function yW(e,t){1&e&&(y.TgZ(0,"mat-error"),y._uU(1,"Template name is required"),y.qZA())}function _W(e,t){1&e&&(y.TgZ(0,"mat-error"),y._uU(1,"Template name is incorrect"),y.qZA())}function bW(e,t){1&e&&(y.TgZ(0,"mat-error"),y._uU(1,"Template with this name exists"),y.qZA())}var wW=function(e){return{"is-invalid":e}},SW=function(){function e(e,t,n,i,r,o,a,s){this.dialogRef=e,this.router=t,this.dialog=n,this.toasterService=i,this.formBuilder=r,this.templateNameValidator=o,this.templateService=a,this.data=s}return e.prototype.ngOnInit=function(){var e,t,n=this;this.templateNameForm=this.formBuilder.group({templateName:new st.NI(this.data.name,[st.kI.required,this.templateNameValidator.get],[(e=this.server,t=this.templateService,function(n){return(0,xk.H)(500).pipe((0,q.w)(function(){return t.list(e)}),(0,E.U)(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)(y.Y36($I),y.Y36(KZ),y.Y36(aq),y.Y36(KO),y.Y36(st.qu),y.Y36(uU),y.Y36(pq),y.Y36(tq))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-template-name-dialog"]],features:[y._Bn([uU])],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&&(y.TgZ(0,"h1",0),y._uU(1,"Please enter name for the new template"),y.qZA(),y.TgZ(2,"form",1),y.TgZ(3,"mat-form-field",2),y.TgZ(4,"input",3),y.NdJ("keydown",function(e){return t.onKeyDown(e)}),y.qZA(),y.YNc(5,yW,2,0,"mat-error",4),y.YNc(6,_W,2,0,"mat-error",4),y.YNc(7,bW,2,0,"mat-error",4),y.qZA(),y.TgZ(8,"div",5),y.TgZ(9,"button",6),y.NdJ("click",function(){return t.onNoClick()}),y._uU(10,"Cancel"),y.qZA(),y.TgZ(11,"button",7),y.NdJ("click",function(){return t.onAddClick()}),y._uU(12," Add template "),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(2),y.Q6J("formGroup",t.templateNameForm),y.xp6(2),y.Q6J("ngClass",y.VKq(5,wW,null==t.form.templateName?null:t.form.templateName.errors)),y.xp6(1),y.Q6J("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)),y.xp6(1),y.Q6J("ngIf",(null==t.form.templateName?null:t.form.templateName.errors)&&(null==t.form.templateName?null:t.form.templateName.errors.invalidName)),y.xp6(1),y.Q6J("ngIf",(null==t.form.templateName?null:t.form.templateName.errors)&&(null==t.form.templateName?null:t.form.templateName.errors.templateExist)))},directives:[lq,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,_.mk,_.O5,uq,cO,sE.TO],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),e}(),xW=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.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),CW=["mat-sort-header",""];function kW(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",3),y.NdJ("@arrowPosition.start",function(){return y.CHM(n),y.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return y.CHM(n),y.oxw()._disableViewStateAnimation=!1}),y._UZ(1,"div",4),y.TgZ(2,"div",5),y._UZ(3,"div",6),y._UZ(4,"div",7),y._UZ(5,"div",8),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),y.xp6(2),y.Q6J("@indicator",i._getArrowDirectionState()),y.xp6(1),y.Q6J("@leftPointer",i._getArrowDirectionState()),y.xp6(1),y.Q6J("@rightPointer",i._getArrowDirectionState())}}var TW=["*"],AW=new y.OlP("MAT_SORT_DEFAULT_OPTIONS"),ZW=(0,lt.dB)((0,lt.Id)(function e(){(0,f.Z)(this,e)})),MW=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e){var i;return(0,f.Z)(this,n),(i=t.call(this))._defaultOptions=e,i.sortables=new Map,i._stateChanges=new x.xQ,i.start="asc",i._direction="",i.sortChange=new y.vpe,i}return(0,m.Z)(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=(0,S.Ig)(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,i;if(!e)return"";var r=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear),o=function(e,t){var n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,r),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}(ZW);return e.\u0275fac=function(t){return new(t||e)(y.Y36(AW,8))},e.\u0275dir=y.lG2({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:[y.qOj,y.TTD]}),e}(),OW=lt.mZ.ENTERING+" "+lt.yN.STANDARD_CURVE,EW={indicator:(0,ft.X$)("indicator",[(0,ft.SB)("active-asc, asc",(0,ft.oB)({transform:"translateY(0px)"})),(0,ft.SB)("active-desc, desc",(0,ft.oB)({transform:"translateY(10px)"})),(0,ft.eR)("active-asc <=> active-desc",(0,ft.jt)(OW))]),leftPointer:(0,ft.X$)("leftPointer",[(0,ft.SB)("active-asc, asc",(0,ft.oB)({transform:"rotate(-45deg)"})),(0,ft.SB)("active-desc, desc",(0,ft.oB)({transform:"rotate(45deg)"})),(0,ft.eR)("active-asc <=> active-desc",(0,ft.jt)(OW))]),rightPointer:(0,ft.X$)("rightPointer",[(0,ft.SB)("active-asc, asc",(0,ft.oB)({transform:"rotate(45deg)"})),(0,ft.SB)("active-desc, desc",(0,ft.oB)({transform:"rotate(-45deg)"})),(0,ft.eR)("active-asc <=> active-desc",(0,ft.jt)(OW))]),arrowOpacity:(0,ft.X$)("arrowOpacity",[(0,ft.SB)("desc-to-active, asc-to-active, active",(0,ft.oB)({opacity:1})),(0,ft.SB)("desc-to-hint, asc-to-hint, hint",(0,ft.oB)({opacity:.54})),(0,ft.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,ft.oB)({opacity:0})),(0,ft.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,ft.jt)("0ms")),(0,ft.eR)("* <=> *",(0,ft.jt)(OW))]),arrowPosition:(0,ft.X$)("arrowPosition",[(0,ft.eR)("* => desc-to-hint, * => desc-to-active",(0,ft.jt)(OW,(0,ft.F4)([(0,ft.oB)({transform:"translateY(-25%)"}),(0,ft.oB)({transform:"translateY(0)"})]))),(0,ft.eR)("* => hint-to-desc, * => active-to-desc",(0,ft.jt)(OW,(0,ft.F4)([(0,ft.oB)({transform:"translateY(0)"}),(0,ft.oB)({transform:"translateY(25%)"})]))),(0,ft.eR)("* => asc-to-hint, * => asc-to-active",(0,ft.jt)(OW,(0,ft.F4)([(0,ft.oB)({transform:"translateY(25%)"}),(0,ft.oB)({transform:"translateY(0)"})]))),(0,ft.eR)("* => hint-to-asc, * => active-to-asc",(0,ft.jt)(OW,(0,ft.F4)([(0,ft.oB)({transform:"translateY(0)"}),(0,ft.oB)({transform:"translateY(-25%)"})]))),(0,ft.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,ft.oB)({transform:"translateY(0)"})),(0,ft.SB)("hint-to-desc, active-to-desc, desc",(0,ft.oB)({transform:"translateY(-25%)"})),(0,ft.SB)("hint-to-asc, active-to-asc, asc",(0,ft.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,ft.X$)("allowChildren",[(0,ft.eR)("* <=> *",[(0,ft.IO)("@*",(0,ft.pV)(),{optional:!0})])])},PW=function(){var e=function e(){(0,f.Z)(this,e),this.changes=new x.xQ};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=y.Yz7({factory:function(){return new e},token:e,providedIn:"root"}),e}(),IW={provide:PW,deps:[[new y.FiY,new y.tp0,PW]],useFactory:function(e){return e||new PW}},qW=(0,lt.Id)(function e(){(0,f.Z)(this,e)}),NW=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o,a,s){var l;return(0,f.Z)(this,n),(l=t.call(this))._intl=e,l._changeDetectorRef=i,l._sort=r,l._columnDef=o,l._focusMonitor=a,l._elementRef=s,l._showIndicatorHint=!1,l._viewState={},l._arrowDirection="",l._disableViewStateAnimation=!1,l.arrowPosition="after",l._handleStateChanges(),l}return(0,m.Z)(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=(0,S.Ig)(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!==ct.L_&&e.keyCode!==ct.K5||(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=(0,Z.T)(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}(qW);return e.\u0275fac=function(t){return new(t||e)(y.Y36(PW),y.Y36(y.sBO),y.Y36(MW,8),y.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),y.Y36(gt.tE),y.Y36(y.SBq))},e.\u0275cmp=y.Xpm({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&y.NdJ("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&&(y.uIk("aria-sort",t._getAriaSortAttribute()),y.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[y.qOj],attrs:CW,ngContentSelectors:TW,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&&(y.F$t(),y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.Hsn(2),y.qZA(),y.YNc(3,kW,6,6,"div",2),y.qZA()),2&e&&(y.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),y.uIk("tabindex",t._isDisabled()?null:0),y.xp6(3),y.Q6J("ngIf",t._renderArrow()))},directives:[_.O5],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:[EW.indicator,EW.leftPointer,EW.rightPointer,EW.arrowOpacity,EW.arrowPosition,EW.allowChildren]},changeDetection:0}),e}(),DW=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({providers:[IW],imports:[[_.ez,lt.BQ]]}),e}(),RW=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=y.Yjl({name:"datasourcefilter",type:e,pure:!0}),e}(),LW=["stepper"];function FW(e,t){1&e&&y._uU(0,"Please select how you want to create new template")}function BW(e,t){if(1&e&&y._uU(0),2&e){var n=y.oxw();y.Oqu(n.actionTitle)}}function jW(e,t){if(1&e&&(y.TgZ(0,"mat-option",33),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function zW(e,t){1&e&&(y.TgZ(0,"mat-header-cell"),y._uU(1," Name "),y.qZA())}function UW(e,t){if(1&e&&(y.TgZ(0,"mat-cell"),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.hij(" ",n.name," ")}}function HW(e,t){1&e&&(y.TgZ(0,"mat-header-cell"),y._uU(1," Emulator "),y.qZA())}function YW(e,t){if(1&e&&(y.TgZ(0,"mat-cell"),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.hij(" ",n.emulator," ")}}function JW(e,t){1&e&&(y.TgZ(0,"mat-header-cell"),y._uU(1," Vendor "),y.qZA())}function GW(e,t){if(1&e&&(y.TgZ(0,"mat-cell"),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.hij(" ",n.vendor_name," ")}}function WW(e,t){1&e&&(y.TgZ(0,"mat-header-cell"),y._uU(1," Actions "),y.qZA())}function VW(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-cell",34),y.TgZ(1,"button",35),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw().install(e)}),y.TgZ(2,"mat-icon",36),y._uU(3,"archive"),y.qZA(),y.qZA(),y.TgZ(4,"button",37),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw().showInfo(e)}),y.TgZ(5,"mat-icon",38),y._uU(6,"info"),y.qZA(),y.qZA(),y.qZA()}}function QW(e,t){1&e&&y._UZ(0,"mat-header-row")}function XW(e,t){1&e&&y._UZ(0,"mat-row")}function KW(e,t){if(1&e&&y._uU(0),2&e){var n=y.oxw(2);y.Oqu(n.secondActionTitle)}}function $W(e,t){if(1&e&&(y.TgZ(0,"mat-option",33),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n.path," ")}}function eV(e,t){1&e&&(y.TgZ(0,"span"),y.TgZ(1,"mat-icon",52),y._uU(2,"check"),y.qZA(),y.qZA())}function tV(e,t){1&e&&(y.TgZ(0,"span"),y.TgZ(1,"mat-icon",53),y._uU(2,"close"),y.qZA(),y.qZA())}function nV(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",48),y.TgZ(1,"span"),y._uU(2),y.qZA(),y.TgZ(3,"div"),y.YNc(4,eV,3,0,"span",32),y.YNc(5,tV,3,0,"span",32),y.TgZ(6,"input",49,50),y.NdJ("change",function(e){y.CHM(n);var t=y.oxw().$implicit;return y.oxw(3).importImage(e,t.images.hda_disk_image)}),y.qZA(),y.TgZ(8,"button",51),y.NdJ("click",function(){return y.CHM(n),y.MAs(7).click()}),y._uU(9,"Import"),y.qZA(),y.TgZ(10,"button",51),y.NdJ("click",function(){y.CHM(n);var e=y.oxw().$implicit;return y.oxw(3).downloadImageFromVersion(e.images.hda_disk_image)}),y._uU(11," Download "),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw().$implicit,r=y.oxw(3);y.xp6(2),y.hij(" ",i.images.hda_disk_image," "),y.xp6(2),y.Q6J("ngIf",r.checkImageFromVersion(i.images.hda_disk_image)),y.xp6(1),y.Q6J("ngIf",!r.checkImageFromVersion(i.images.hda_disk_image)),y.xp6(1),y.Q6J("uploader",r.uploaderImage)}}function iV(e,t){1&e&&(y.TgZ(0,"span"),y.TgZ(1,"mat-icon",52),y._uU(2,"check"),y.qZA(),y.qZA())}function rV(e,t){1&e&&(y.TgZ(0,"span"),y.TgZ(1,"mat-icon",53),y._uU(2,"close"),y.qZA(),y.qZA())}function oV(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",48),y.TgZ(1,"span"),y._uU(2),y.qZA(),y.TgZ(3,"div"),y.YNc(4,iV,3,0,"span",32),y.YNc(5,rV,3,0,"span",32),y.TgZ(6,"input",49,54),y.NdJ("change",function(e){y.CHM(n);var t=y.oxw().$implicit;return y.oxw(3).importImage(e,t.images.hdb_disk_image)}),y.qZA(),y.TgZ(8,"button",51),y.NdJ("click",function(){return y.CHM(n),y.MAs(7).click()}),y._uU(9,"Import"),y.qZA(),y.TgZ(10,"button",51),y.NdJ("click",function(){y.CHM(n);var e=y.oxw().$implicit;return y.oxw(3).downloadImageFromVersion(e.images.hdb_disk_image)}),y._uU(11," Download "),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw().$implicit,r=y.oxw(3);y.xp6(2),y.hij(" ",i.images.hdb_disk_image," "),y.xp6(2),y.Q6J("ngIf",r.checkImageFromVersion(i.images.hdb_disk_image)),y.xp6(1),y.Q6J("ngIf",!r.checkImageFromVersion(i.images.hdb_disk_image)),y.xp6(1),y.Q6J("uploader",r.uploaderImage)}}function aV(e,t){1&e&&(y.TgZ(0,"span"),y.TgZ(1,"mat-icon",52),y._uU(2,"check"),y.qZA(),y.qZA())}function sV(e,t){1&e&&(y.TgZ(0,"span"),y.TgZ(1,"mat-icon",53),y._uU(2,"close"),y.qZA(),y.qZA())}function lV(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",48),y.TgZ(1,"span"),y._uU(2),y.qZA(),y.TgZ(3,"div"),y.YNc(4,aV,3,0,"span",32),y.YNc(5,sV,3,0,"span",32),y.TgZ(6,"input",49,55),y.NdJ("change",function(e){y.CHM(n);var t=y.oxw().$implicit;return y.oxw(3).importImage(e,t.images.cdrom_image)}),y.qZA(),y.TgZ(8,"button",51),y.NdJ("click",function(){return y.CHM(n),y.MAs(7).click()}),y._uU(9,"Import"),y.qZA(),y.TgZ(10,"button",51),y.NdJ("click",function(){y.CHM(n);var e=y.oxw().$implicit;return y.oxw(3).downloadImageFromVersion(e.images.cdrom_image)}),y._uU(11," Download "),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw().$implicit,r=y.oxw(3);y.xp6(2),y.hij(" ",i.images.cdrom_image," "),y.xp6(2),y.Q6J("ngIf",r.checkImageFromVersion(i.images.cdrom_image)),y.xp6(1),y.Q6J("ngIf",!r.checkImageFromVersion(i.images.cdrom_image)),y.xp6(1),y.Q6J("uploader",r.uploaderImage)}}function cV(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div"),y.TgZ(1,"div",45),y.TgZ(2,"span"),y._uU(3),y.qZA(),y.TgZ(4,"div"),y.TgZ(5,"button",46),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(3).createQemuTemplateFromVersion(e)}),y._uU(6," Create "),y.qZA(),y.qZA(),y.qZA(),y.YNc(7,nV,12,4,"div",47),y.YNc(8,oV,12,4,"div",47),y.YNc(9,lV,12,4,"div",47),y.qZA()}if(2&e){var i=t.$implicit,r=y.oxw(3);y.xp6(3),y.AsE("",r.applianceToInstall.name," version ",i.name,""),y.xp6(4),y.Q6J("ngIf",i.images.hda_disk_image),y.xp6(1),y.Q6J("ngIf",i.images.hdb_disk_image),y.xp6(1),y.Q6J("ngIf",i.images.cdrom_image)}}var uV=function(){return{standalone:!0}};function dV(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div"),y.TgZ(1,"div"),y._uU(2," Server type"),y._UZ(3,"br"),y.TgZ(4,"mat-radio-group",4),y.TgZ(5,"mat-radio-button",39),y.NdJ("click",function(){return y.CHM(n),y.oxw(2).setServerType("local")}),y._uU(6,"Install the appliance locally"),y.qZA(),y.TgZ(7,"mat-radio-button",40),y.NdJ("click",function(){return y.CHM(n),y.oxw(2).setServerType("gns3 vm")}),y._uU(8,"Install the appliance on the GNS3 VM"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(9,"div"),y._uU(10," Qemu binary"),y._UZ(11,"br"),y.TgZ(12,"mat-select",41),y.NdJ("ngModelChange",function(e){return y.CHM(n),y.oxw(2).selectedBinary=e}),y.YNc(13,$W,2,2,"mat-option",14),y.qZA(),y.qZA(),y.TgZ(14,"div"),y._uU(15," Install required files "),y.TgZ(16,"button",42),y.NdJ("click",function(){return y.CHM(n),y.oxw(2).refreshImages()}),y.TgZ(17,"mat-icon",43),y._uU(18,"refresh"),y.qZA(),y.qZA(),y._UZ(19,"br"),y.TgZ(20,"div"),y.YNc(21,cV,10,5,"div",44),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2);y.xp6(5),y.Q6J("disabled",!i.isLinuxPlatform)("checked",!i.isGns3VmChosen),y.xp6(2),y.Q6J("disabled",!i.isGns3VmAvailable)("checked",i.isGns3VmChosen),y.xp6(5),y.Q6J("ngModel",i.selectedBinary)("ngModelOptions",y.DdM(8,uV)),y.xp6(1),y.Q6J("ngForOf",i.qemuBinaries),y.xp6(8),y.Q6J("ngForOf",i.applianceToInstall.versions)}}function hV(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div"),y.TgZ(1,"div"),y._uU(2," Server type"),y._UZ(3,"br"),y.TgZ(4,"mat-radio-group",4),y.TgZ(5,"mat-radio-button",39),y.NdJ("click",function(){return y.CHM(n),y.oxw(2).setServerType("local")}),y._uU(6,"Install the appliance locally"),y.qZA(),y.TgZ(7,"mat-radio-button",40),y.NdJ("click",function(){return y.CHM(n),y.oxw(2).setServerType("gns3 vm")}),y._uU(8,"Install the appliance on the GNS3 VM"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(9,"button",29),y.NdJ("click",function(){return y.CHM(n),y.oxw(2).createDockerTemplate()}),y._uU(10," Create docker template "),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2);y.xp6(5),y.Q6J("disabled",!i.isLinuxPlatform)("checked",!i.isGns3VmChosen),y.xp6(2),y.Q6J("disabled",!i.isGns3VmAvailable)("checked",i.isGns3VmChosen)}}function pV(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-list-item"),y.TgZ(1,"div",45),y.TgZ(2,"div"),y._uU(3),y.qZA(),y.TgZ(4,"div"),y.TgZ(5,"input",49,50),y.NdJ("change",function(e){var t=y.CHM(n).$implicit;return y.oxw(3).importImage(e,t.filename)}),y.qZA(),y.TgZ(7,"button",51),y.NdJ("click",function(){return y.CHM(n),y.MAs(6).click()}),y._uU(8,"Import"),y.qZA(),y.TgZ(9,"button",46),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(3).createIosTemplate(e)}),y._uU(10," Create "),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=t.$implicit,r=y.oxw(3);y.xp6(3),y.hij(" ",i.filename," "),y.xp6(2),y.Q6J("uploader",r.uploaderImage)}}function fV(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div"),y.TgZ(1,"div"),y._uU(2," Server type"),y._UZ(3,"br"),y.TgZ(4,"mat-radio-group",4),y.TgZ(5,"mat-radio-button",56),y.NdJ("click",function(){return y.CHM(n),y.oxw(2).setServerType("local")}),y._uU(6,"Install the appliance locally"),y.qZA(),y.TgZ(7,"mat-radio-button",40),y.NdJ("click",function(){return y.CHM(n),y.oxw(2).setServerType("gns3 vm")}),y._uU(8,"Install the appliance on the GNS3 VM"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(9,"div"),y._uU(10," Install required files "),y.TgZ(11,"button",42),y.NdJ("click",function(){return y.CHM(n),y.oxw(2).refreshImages()}),y.TgZ(12,"mat-icon",43),y._uU(13,"refresh"),y.qZA(),y.qZA(),y._UZ(14,"br"),y.TgZ(15,"mat-list"),y.YNc(16,pV,11,2,"mat-list-item",44),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2);y.xp6(5),y.Q6J("checked",!i.isGns3VmChosen),y.xp6(2),y.Q6J("disabled",!i.isGns3VmAvailable)("checked",i.isGns3VmChosen),y.xp6(9),y.Q6J("ngForOf",i.applianceToInstall.images)}}function mV(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-list-item"),y.TgZ(1,"div",45),y.TgZ(2,"div"),y._uU(3),y.qZA(),y.TgZ(4,"div"),y.TgZ(5,"input",49,50),y.NdJ("change",function(){var e=y.CHM(n).$implicit,t=y.oxw(3);return t.importImage(t.$,e.filename)}),y.qZA(),y.TgZ(7,"button",51),y.NdJ("click",function(){return y.CHM(n),y.MAs(6).click()}),y._uU(8,"Import"),y.qZA(),y.TgZ(9,"button",46),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(3).createIouTemplate(e)}),y._uU(10," Create "),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=t.$implicit,r=y.oxw(3);y.xp6(3),y.hij(" ",i.filename," "),y.xp6(2),y.Q6J("uploader",r.uploaderImage)}}function gV(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div"),y.TgZ(1,"div"),y._uU(2," Server type"),y._UZ(3,"br"),y.TgZ(4,"mat-radio-group",4),y.TgZ(5,"mat-radio-button",39),y.NdJ("click",function(){return y.CHM(n),y.oxw(2).setServerType("local")}),y._uU(6,"Install the appliance locally"),y.qZA(),y.TgZ(7,"mat-radio-button",40),y.NdJ("click",function(){return y.CHM(n),y.oxw(2).setServerType("gns3 vm")}),y._uU(8,"Install the appliance on the GNS3 VM"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(9,"div"),y._uU(10," Install required files "),y.TgZ(11,"button",42),y.NdJ("click",function(){return y.CHM(n),y.oxw(2).refreshImages()}),y.TgZ(12,"mat-icon",43),y._uU(13,"refresh"),y.qZA(),y.qZA(),y._UZ(14,"br"),y.TgZ(15,"mat-list"),y.YNc(16,mV,11,2,"mat-list-item",44),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2);y.xp6(5),y.Q6J("disabled",!i.isLinuxPlatform)("checked",!i.isGns3VmChosen),y.xp6(2),y.Q6J("disabled",!i.isGns3VmAvailable)("checked",i.isGns3VmChosen),y.xp6(9),y.Q6J("ngForOf",i.applianceToInstall.images)}}function vV(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-step"),y.YNc(1,KW,1,1,"ng-template",3),y.TgZ(2,"mat-card",9),y._uU(3," Please configure GNS3 VM to install selected appliance "),y.qZA(),y.TgZ(4,"mat-card",9),y.YNc(5,dV,22,9,"div",32),y.YNc(6,hV,11,4,"div",32),y.YNc(7,fV,17,4,"div",32),y.YNc(8,gV,17,5,"div",32),y.qZA(),y.TgZ(9,"div"),y.TgZ(10,"button",30),y._uU(11,"Back"),y.qZA(),y.TgZ(12,"button",8),y.NdJ("click",function(){return y.CHM(n),y.oxw().onCloseClick()}),y._uU(13,"Cancel"),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(2),y.Q6J("hidden",!(!i.isLinuxPlatform&&!i.isGns3VmAvailable&&!i.applianceToInstall.dynamips)),y.xp6(2),y.Q6J("hidden",!(i.isLinuxPlatform||i.isGns3VmAvailable||i.applianceToInstall.dynamips)),y.xp6(1),y.Q6J("ngIf",i.applianceToInstall.qemu),y.xp6(1),y.Q6J("ngIf",i.applianceToInstall.docker),y.xp6(1),y.Q6J("ngIf",i.applianceToInstall.dynamips),y.xp6(1),y.Q6J("ngIf",i.applianceToInstall.iou)}}var yV=function(){return[5,10,20,50,100]},_V=function(){function e(e,t,n,i,r,o,a,s,l,c,u,d,h){this.dialogRef=e,this.applianceService=t,this.changeDetector=n,this.toasterService=i,this.qemuService=r,this.dockerService=o,this.iosService=a,this.iouService=s,this.templateService=l,this.dialog=c,this.computeService=u,this.changeDetectorRef=d,this.progressService=h,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 OP(e.allAppliances),e.dataSource.paginator=e.paginator}),this.qemuService.getBinaries(this.server).subscribe(function(t){e.qemuBinaries=t}),this.uploader=new Gk({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,i,r){e.toasterService.error("An error has occured")},this.uploader.onSuccessItem=function(t,n,i,r){e.toasterService.success("Appliance imported succesfully"),e.getAppliance(t.url)},this.uploaderImage=new Gk({}),this.uploaderImage.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploaderImage.onErrorItem=function(t,n,i,r){e.toasterService.error("An error has occured"),e.progressService.deactivate(),e.uploaderImage.clearQueue()},this.uploaderImage.onSuccessItem=function(t,n,i,r){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,i=(e.target.files[0].name.split("-"),e.target.files[0].name),r=e.target.files[0],o=new FileReader;o.onloadend=function(){var e=JSON.parse(o.result);e.docker&&(t="docker"),e.dynamips&&(t="dynamips"),e.iou&&(t="iou"),e.qemu&&(t="qemu");var r=n.applianceService.getUploadPath(n.server,t,i);n.uploader.queue.forEach(function(e){return e.url=r});var a=n.uploader.queue[0];a.options.disableMultipart=!0,n.uploader.uploadItem(a)},o.readAsText(r)},e.prototype.filterAppliances=function(e){var t=this,n=this.allAppliances.filter(function(e){return e.name.toLowerCase().includes(t.searchText.toLowerCase())});this.appliances="all categories"!==this.category&&this.category?n.filter(function(e){return e.category===t.category}):n,this.dataSource=new OP(this.appliances),this.dataSource.paginator=this.paginator},e.prototype.setAction=function(e){this.action=e,"install"===e?this.actionTitle="Install appliance from server":"import"===e&&(this.actionTitle="Import an appliance file")},e.prototype.setServerType=function(e){"gns3 vm"===e?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},e.prototype.sortData=function(e){if(e.active&&""!==e.direction){var t=this.appliances.slice();this.appliances=t.sort(function(t,n){var i="asc"===e.direction;return"name"===e.active?bV(t.name,n.name,i):"emulator"===e.active?bV(t.emulator,n.emulator,i):"vendor"===e.active?bV(t.vendor_name,n.vendor_name,i):0})}},e.prototype.onCloseClick=function(){this.dialogRef.close()},e.prototype.install=function(e){var t=this;this.applianceToInstall=e,setTimeout(function(){t.stepper.next(),t.applianceToInstall.qemu&&setTimeout(function(){if(t.qemuBinaries.length)if("x86_64"===t.applianceToInstall.qemu.arch)(e=t.qemuBinaries.filter(function(e){return e.path.includes("qemu-system-x86_64")})).length&&(t.selectedBinary=e[0]);else if("i386"===t.applianceToInstall.qemu.arch)(e=t.qemuBinaries.filter(function(e){return e.path.includes("qemu-system-i386")})).length&&(t.selectedBinary=e[0]);else if("x86_64"===t.applianceToInstall.qemu.arch){var e;(e=t.qemuBinaries.filter(function(e){return e.path.includes("qemu-system-arm")})).length&&(t.selectedBinary=e[0])}else t.selectedBinary=t.qemuBinaries[0]},100)},100)},e.prototype.showInfo=function(e){this.dialog.open(vW,{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(i){var r=n.applianceToInstall.images.filter(function(e){return e.filename===t})[0];if(r.md5sum!==i){n.progressService.deactivate();var o=n.dialog.open(fW,{width:"400px",height:"200px",autoFocus:!1,disableClose:!0});o.componentInstance.confirmationMessage="This is not the correct file. \n The MD5 sum is "+i+" and should be "+r.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,i=(e.target.files[0].name.split("-"),e.target.files[0].name),r=e.target.files[0],o=new FileReader;o.onloadend=function(){n.applianceToInstall.qemu&&(t="qemu"),n.applianceToInstall.dynamips&&(t="dynamips"),n.applianceToInstall.iou&&(t="iou");var e=n.applianceService.getUploadPath(n.server,t,i);n.uploaderImage.queue.forEach(function(t){return t.url=e});var r=n.uploaderImage.queue[0];r.options.disableMultipart=!0,n.uploaderImage.uploadItem(r),n.progressService.activate()},o.readAsText(r)},e.prototype.checkImageFromVersion=function(e){var t=this.applianceToInstall.images.filter(function(t){return t.filename===e})[0];if(this.applianceToInstall.qemu){if(this.qemuImages.filter(function(e){return e.md5sum===t.md5sum}).length>0)return!0}else if(this.applianceToInstall.dynamips){if(this.iosImages.filter(function(e){return e.md5sum===t.md5sum}).length>0)return!0}else if(this.applianceToInstall.iou&&this.iouImages.filter(function(e){return e.md5sum===t.md5sum}).length>0)return!0;return!1},e.prototype.checkImages=function(e){return e.images.hdb_disk_image?!(!this.checkImageFromVersion(e.images.hda_disk_image)||!this.checkImageFromVersion(e.images.hdb_disk_image)):!!this.checkImageFromVersion(e.images.hda_disk_image)},e.prototype.openConfirmationDialog=function(e,t){var n=this.dialog.open(fW,{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 SL;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=(0,QP.v4)(),n.path=e.filename,n.template_type="iou";var i=this.dialog.open(SW,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});i.componentInstance.server=this.server,i.afterClosed().subscribe(function(e){if(!e)return!1;n.name=e,t.iouService.addTemplate(t.server,n).subscribe(function(e){t.templateService.newTemplateCreated.next(e),t.toasterService.success("Template added"),t.dialogRef.close()})})},e.prototype.createIosTemplate=function(e){var t=this,n=new mR;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=(0,QP.v4)(),n.image=e.filename,n.template_type="dynamips";var i=this.dialog.open(SW,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});i.componentInstance.server=this.server,i.afterClosed().subscribe(function(e){if(!e)return!1;n.name=e,t.iosService.addTemplate(t.server,n).subscribe(function(e){t.templateService.newTemplateCreated.next(e),t.toasterService.success("Template added"),t.dialogRef.close()})})},e.prototype.createDockerTemplate=function(){var e=this,t=new qN;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=(0,QP.v4)(),t.image=this.applianceToInstall.docker.image,t.template_type="docker";var n=this.dialog.open(SW,{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 VL;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=(0,QP.v4)(),n.hda_disk_image=e.images.hda_disk_image,n.hdb_disk_image=e.images.hdb_disk_image,n.template_type="qemu",n.usage=this.applianceToInstall.usage;var i=this.dialog.open(SW,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});i.componentInstance.server=this.server,i.afterClosed().subscribe(function(e){if(!e)return!1;n.name=e,t.qemuService.addTemplate(t.server,n).subscribe(function(e){t.templateService.newTemplateCreated.next(e),t.toasterService.success("Template added"),t.dialogRef.close()})})}else this.toasterService.error("Please select QEMU binary first");else this.toasterService.error("Please install required images first")},e.prototype.computeChecksumMd5=function(e,t){return void 0===t&&(t=!1),new Promise(function(n,i){var r=2097152,o=new pW.ArrayBuffer,a=new FileReader,s=0;function l(t){var n=Math.min(e.size,t+r);a.readAsArrayBuffer(e.slice(t,n))}a.onerror=function(){i("MD5 computation failed - error reading the file")},a.onload=function(i){o.append(i.target.result),(s+=r)<e.size?l(s):n(o.end(t))},l(0)})},e.\u0275fac=function(t){return new(t||e)(y.Y36($I),y.Y36(xW),y.Y36(y.sBO),y.Y36(KO),y.Y36(QL),y.Y36(NN),y.Y36(gR),y.Y36(xL),y.Y36(pq),y.Y36(aq),y.Y36($P.X),y.Y36(y.sBO),y.Y36(ZM))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-new-template-dialog"]],viewQuery:function(e,t){if(1&e&&(y.Gf(dW,7),y.Gf(LW,7)),2&e){var n=void 0;y.iGM(n=y.CRH())&&(t.paginator=n.first),y.iGM(n=y.CRH())&&(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",""],["file4",""],["value","1",1,"radio-button",3,"checked","click"]],template:function(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"h1",0),y._uU(1,"Add new template"),y.qZA(),y.TgZ(2,"mat-horizontal-stepper",1,2),y.TgZ(4,"mat-step"),y.YNc(5,FW,1,0,"ng-template",3),y.TgZ(6,"mat-radio-group",4),y.TgZ(7,"mat-radio-button",5),y.NdJ("click",function(){return t.setAction("install")}),y._uU(8,"Install new appliance from the GNS server"),y.qZA(),y._UZ(9,"br"),y.TgZ(10,"mat-radio-button",6),y.NdJ("click",function(){return t.setAction("import")}),y._uU(11,"Import an appliance file"),y.qZA(),y.qZA(),y.TgZ(12,"div"),y.TgZ(13,"button",7),y._uU(14,"Next"),y.qZA(),y.TgZ(15,"button",8),y.NdJ("click",function(){return t.onCloseClick()}),y._uU(16,"Cancel"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(17,"mat-step"),y.YNc(18,BW,1,1,"ng-template",3),y.TgZ(19,"mat-card",9),y.TgZ(20,"div",10),y.TgZ(21,"mat-form-field",11),y.TgZ(22,"input",12),y.NdJ("ngModelChange",function(e){return t.searchText=e}),y.qZA(),y.qZA(),y.TgZ(23,"mat-select",13),y.NdJ("selectionChange",function(e){return t.filterAppliances(e)})("ngModelChange",function(e){return t.category=e}),y.YNc(24,jW,2,2,"mat-option",14),y.qZA(),y.qZA(),y.TgZ(25,"mat-table",15,16),y.NdJ("matSortChange",function(e){return t.sortData(e)}),y.ALo(27,"datasourcefilter"),y.ynx(28,17),y.YNc(29,zW,2,0,"mat-header-cell",18),y.YNc(30,UW,2,1,"mat-cell",19),y.BQk(),y.ynx(31,20),y.YNc(32,HW,2,0,"mat-header-cell",18),y.YNc(33,YW,2,1,"mat-cell",19),y.BQk(),y.ynx(34,21),y.YNc(35,JW,2,0,"mat-header-cell",18),y.YNc(36,GW,2,1,"mat-cell",19),y.BQk(),y.ynx(37,22),y.YNc(38,WW,2,0,"mat-header-cell",18),y.YNc(39,VW,7,0,"mat-cell",23),y.BQk(),y.YNc(40,QW,1,0,"mat-header-row",24),y.YNc(41,XW,1,0,"mat-row",25),y.qZA(),y._UZ(42,"mat-paginator",26),y.qZA(),y.TgZ(43,"mat-card",9),y.TgZ(44,"input",27,28),y.NdJ("change",function(e){return t.addAppliance(e)}),y.qZA(),y.TgZ(46,"button",29),y.NdJ("click",function(){return y.CHM(n),y.MAs(45).click()}),y._uU(47," Click to import appliance "),y.qZA(),y.qZA(),y.TgZ(48,"div"),y.TgZ(49,"button",30),y._uU(50,"Back"),y.qZA(),y.TgZ(51,"button",31),y.NdJ("click",function(){return t.updateAppliances()}),y._uU(52," Update from online registry "),y.qZA(),y.TgZ(53,"button",8),y.NdJ("click",function(){return t.onCloseClick()}),y._uU(54,"Cancel"),y.qZA(),y.qZA(),y.qZA(),y.YNc(55,vV,14,6,"mat-step",32),y.qZA()}2&e&&(y.xp6(2),y.Q6J("linear",!1),y.xp6(17),y.Q6J("hidden",!("install"===t.action)),y.xp6(3),y.Q6J("ngModel",t.searchText),y.xp6(1),y.Q6J("ngModelOptions",y.DdM(17,uV))("ngModel",t.category),y.xp6(1),y.Q6J("ngForOf",t.categories),y.xp6(1),y.Q6J("dataSource",y.xi3(27,14,t.dataSource,t.searchText)),y.xp6(15),y.Q6J("matHeaderRowDef",t.displayedColumns),y.xp6(1),y.Q6J("matRowDefColumns",t.displayedColumns),y.xp6(1),y.Q6J("pageSizeOptions",y.DdM(18,yV)),y.xp6(1),y.Q6J("hidden","install"===t.action),y.xp6(1),y.Q6J("uploader",t.uploader),y.xp6(7),y.Q6J("hidden","install"!==t.action),y.xp6(4),y.Q6J("ngIf",t.applianceToInstall))},directives:[lq,MD,kD,vD,cI,hI,cO,OD,oE,sE.KE,mE,st.Fj,st.JJ,st.On,vE.gD,_.sg,yP,MW,wP,bP,_P,CP,kP,dW,Wk,ED,_.O5,lt.ey,SP,xP,MO,nO,TP,AP,sP,uP],pipes:[RW],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:[(0,ft.X$)("detailExpand",[(0,ft.SB)("collapsed",(0,ft.oB)({height:"0px",minHeight:"0",visibility:"hidden"})),(0,ft.SB)("expanded",(0,ft.oB)({height:"*",visibility:"visible"})),(0,ft.eR)("expanded <=> collapsed",(0,ft.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),e}();function bV(e,t,n){return((e=e.toLowerCase())<(t=t.toLowerCase())?-1:1)*(n?1:-1)}var wV=n(56205),SV='<?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">',xV="http://www.w3.org/2000/xmlns/",CV="http://www.w3.org/1999/xlink",kV="http://www.w3.org/2000/svg",TV="untitled";function AV(){var e=document.createElementNS(kV,"svg");document.body.appendChild(e),e.style.all="initial";var t=getComputedStyle(e);return document.body.removeChild(e),e=null,t}function ZV(e,t){function n(e){for(var n,i,r=getComputedStyle(e),o="",a=0,s=r.length;a<s;a++)(i=r.getPropertyValue(n=r[a]))!==t.getPropertyValue(n)&&(o+="".concat(n,":").concat(i,";"));e.setAttribute("style",o)}for(var i=function(e){var t=[];return t.push(e),function e(n){if(n&&n.hasChildNodes())for(var i=n.firstChild;i;)1===i.nodeType&&"SCRIPT"!==i.nodeName&&(t.push(i),e(i)),i=i.nextSibling}(e),t}(e),r=i.length;r--;)n(i[r])}function MV(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 OV(e,t,n){var i=document.createElement("a");document.body.appendChild(i),i.setAttribute("class","svg-crowbar"),i.setAttribute("download",e),i.setAttribute("href",t),i.style.display="none",i.click(),setTimeout(function(){n&&n(),document.body.removeChild(i)},10)}var EV={UKNOWN:"Unknown"},PV={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:EV.UKNOWN},IV={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|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,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")},qV={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-T865|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-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P615|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-T500|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-X606F|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/,Honeywell:/RT10A/,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")},NV={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:EV.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",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},DV=[NV.PS4,NV.CHROME_BOOK,NV.MAC,NV.DELL,NV.ASUS,NV.UNKNOWN],RV={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:EV.UKNOWN},LV={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_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",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",ANDROID_9:"android-9",UNKNOWN:EV.UKNOWN.toLowerCase()},FV={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/},BV=Object.assign(Object.assign(Object.assign(Object.assign({},IV),qV),FV),{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})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}}),jV={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)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},zV={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/},UV=function(e,t){return e[t]=jV[t],e},HV=Object.keys(jV).reduce(UV,{}),YV=function(e,t){return e[PV[t]]=zV[t],e},JV=Object.keys(zV).reduce(YV,{}),GV=Object.freeze({__proto__:null,GENERAL:EV,BROWSERS:PV,MOBILES_RE:IV,TABLETS_RE:qV,DEVICES:NV,DESKTOP_DEVICES:DV,OS:RV,OS_VERSIONS:LV,OS_RE:FV,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:BV,OS_VERSIONS_RE_MAP:jV,BROWSER_VERSIONS_RE_MAP:zV,OS_VERSIONS_RE:HV,BROWSER_VERSIONS_RE:JV,"\u02750":UV,"\u02751":YV}),WV=function(){function e(){(0,f.Z)(this,e)}return(0,m.Z)(e,[{key:"test",value:function(e,t){var n=this;return"string"==typeof t&&(t=new RegExp(t)),t instanceof RegExp?t.test(e):t&&Array.isArray(t.and)?t.and.every(function(t){return n.test(e,t)}):t&&Array.isArray(t.or)?t.or.some(function(t){return n.test(e,t)}):!(!t||!t.not||this.test(e,t.not))}},{key:"exec",value:function(e,t){var n=this;return"string"==typeof t&&(t=new RegExp(t)),t instanceof RegExp?t.exec(e):t&&Array.isArray(t)?t.reduce(function(t,i){return t||n.exec(e,i)},null):null}}]),e}(),VV=function(e){return e.Mobile="mobile",e.Tablet="tablet",e.Desktop="desktop",e.Unknown="unknown",e}({}),QV=function(e){return e.Portrait="portrait",e.Landscape="landscape",e}({}),XV="iPad",KV=function(){var e=function(){function e(t){(0,f.Z)(this,e),this.platformId=t,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new WV,this.deviceType="",this.orientation="",(0,_.NF)(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}return(0,m.Z)(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(GV[n.const]).reduce(function(i,r){return"device"===GV[n.const][r]&&(0,_.NF)(e.platformId)&&(e.reTree.test(e.userAgent,qV.iPad)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(i[GV[n.const][r]]=XV,Object):(i[GV[n.const][r]]=e.reTree.test(t,GV["".concat(n.const,"_RE")][r]),i)},{})}),n.forEach(function(t){e[t.prop]=Object.keys(GV[t.const]).map(function(e){return GV[t.const][e]}).reduce(function(n,i){return"device"===t.prop&&n===GV[t.const].ANDROID?e[t.prop][i]?i:n:n===GV[t.const].UNKNOWN&&e[t.prop][i]?i:n},GV[t.const].UNKNOWN)}),this.browser_version="0",this.browser!==PV.UNKNOWN){var i=JV[this.browser],r=this.reTree.exec(t,i);r&&(this.browser_version=r[1])}this.orientation="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?QV.Landscape:QV.Portrait:EV.UKNOWN,this.deviceType=this.isTablet()?VV.Tablet:this.isMobile(this.userAgent)?VV.Mobile:this.isDesktop(this.userAgent)?VV.Desktop:VV.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(IV).find(function(n){return e.reTree.test(t,IV[n])});return!!n}},{key:"isTablet",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if((0,_.NF)(this.platformId)&&(this.reTree.test(this.userAgent,qV.iPad)||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))return!0;var n=Object.keys(qV).find(function(n){return!!e.reTree.test(t,qV[n])});return!!n}},{key:"isDesktop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;return(this.device!==NV.UNKNOWN||!this.isMobile(e)&&!this.isTablet(e))&&DV.indexOf(this.device)>-1}}]),e}();return e.\u0275fac=function(t){return new(t||e)(y.LFG(y.Lbi))},e.\u0275prov=y.Yz7({factory:function(){return new e(y.LFG(y.Lbi))},token:e,providedIn:"root"}),e}();function $V(e,t){1&e&&(y.TgZ(0,"mat-error"),y._uU(1,"Name for screenshot is required"),y.qZA())}function eQ(e,t){1&e&&(y.TgZ(0,"mat-error"),y._uU(1,"Entered name is incorrect"),y.qZA())}var tQ=function(e){return{"is-invalid":e}},nQ=function(){function e(e,t,n,i,r){this.dialogRef=e,this.toasterService=t,this.formBuilder=n,this.electronService=i,this.deviceService=r,this.filetype="svg",this.nameForm=this.formBuilder.group({screenshotName:new st.NI("screenshot-"+Date.now(),[st.kI.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)(y.Y36($I),y.Y36(KO),y.Y36(st.qu),y.Y36(eT),y.Y36(KV))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1,"Take a screenshot"),y.qZA(),y.TgZ(2,"mat-radio-group",1),y.TgZ(3,"mat-radio-button",2),y.NdJ("click",function(){return t.setFiletype("svg")}),y._uU(4,"SVG"),y.qZA(),y.TgZ(5,"mat-radio-button",3),y.NdJ("click",function(){return t.setFiletype("png")}),y._uU(6,"PNG"),y.qZA(),y.qZA(),y.TgZ(7,"form",4),y.TgZ(8,"mat-form-field",5),y.TgZ(9,"input",6),y.NdJ("keydown",function(e){return t.onKeyDown(e)}),y.qZA(),y.YNc(10,$V,2,0,"mat-error",7),y.YNc(11,eQ,2,0,"mat-error",7),y.qZA(),y.TgZ(12,"div",8),y.TgZ(13,"button",9),y.NdJ("click",function(){return t.onNoClick()}),y._uU(14,"Cancel"),y.qZA(),y.TgZ(15,"button",10),y.NdJ("click",function(){return t.onAddClick()}),y._uU(16,"Take a screenshot"),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(5),y.Q6J("disabled",!t.isPngAvailable),y.xp6(2),y.Q6J("formGroup",t.nameForm),y.xp6(2),y.Q6J("ngClass",y.VKq(5,tQ,null==t.form.acreenshotName?null:t.form.acreenshotName.errors)),y.xp6(1),y.Q6J("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)),y.xp6(1),y.Q6J("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:[lq,cI,hI,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,_.mk,_.O5,uq,cO,sE.TO],styles:[".name-form[_ngcontent-%COMP%]{width:100%}.radio-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]}),e}(),iQ=function(){function e(){}return e.prototype.getDrawingElement=function(){var e=new Tz;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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),rQ=function(){function e(){}return e.prototype.getDrawingElement=function(){var e=new yz;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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),oQ=function(){function e(){}return e.prototype.getDrawingElement=function(){var e=new Cz;return e.fill="#ffffff",e.fill_opacity=1,e.stroke="#000000",e.stroke_width=2,e.width=200,e.height=100,e},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),aQ=function(){function e(){}return e.prototype.getDrawingElement=function(){var e=new Sz;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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),sQ=function(){function e(e,t,n,i){this.textElementFactory=e,this.ellipseElementFactory=t,this.rectangleElementFactory=n,this.lineElementFactory=i,this.availableFactories={text:this.textElementFactory,ellipse:this.ellipseElementFactory,rectangle:this.rectangleElementFactory,line:this.lineElementFactory}}return e.prototype.getDrawingMock=function(e){this.factory=this.availableFactories[e];var t=new _j;return t.element=this.factory.getDrawingElement(),t},e.\u0275fac=function(t){return new(t||e)(y.LFG(iQ),y.LFG(rQ),y.LFG(oQ),y.LFG(aQ))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),lQ=function(){function e(e,t,n,i,r){this.drawingService=e,this.drawingsDataSource=t,this.drawingsEventSource=n,this.drawingsFactory=i,this.mapDrawingToSvgConverter=r,this.drawingSaved=new y.vpe}return e.prototype.ngOnInit=function(){var e=this;this.pointToAddSelected=this.drawingsEventSource.pointToAddSelected.subscribe(function(t){return e.onDrawingSaved(t)})},e.prototype.ngOnChanges=function(e){e.selectedDrawing&&!e.selectedDrawing.isFirstChange()&&(this.selectedDrawing=e.selectedDrawing.currentValue,"text"!==this.selectedDrawing&&this.drawingsEventSource.selected.emit(this.selectedDrawing))},e.prototype.onDrawingSaved=function(e){var t=this,n=this.drawingsFactory.getDrawingMock(this.selectedDrawing),i=this.mapDrawingToSvgConverter.convert(n);this.drawingService.add(this.server,this.project.project_id,e.x,e.y,i).subscribe(function(e){t.drawingsDataSource.add(e),t.drawingSaved.emit(!0)})},e.prototype.ngOnDestroy=function(){this.pointToAddSelected.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(y.Y36(kJ),y.Y36(TJ),y.Y36(Hz),y.Y36(sQ),y.Y36(ZJ))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-drawing-added"]],inputs:{server:"server",project:"project",selectedDrawing:"selectedDrawing"},outputs:{drawingSaved:"drawingSaved"},features:[y.TTD],decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),cQ=function(e){return{selected:e}};function uQ(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",12),y.NdJ("click",function(){return y.CHM(n),y.oxw().addDrawing("line")}),y.O4$(),y.TgZ(1,"svg",13),y._UZ(2,"line",14),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(2),y.Q6J("ngClass",y.VKq(1,cQ,i.drawTools.isLineChosen))}}function dQ(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",12),y.NdJ("click",function(){return y.CHM(n),y.oxw().addDrawing("line")}),y.O4$(),y.TgZ(1,"svg",13),y._UZ(2,"line",15),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(2),y.Q6J("ngClass",y.VKq(1,cQ,i.drawTools.isLineChosen))}}var hQ=function(e,t){return{unmarkedLight:e,marked:t}},pQ=function(e){return{unmarkedLight:e}},fQ=function(){function e(e,t,n,i,r,o){this.toolsService=e,this.mapSettingsService=t,this.drawingService=n,this.symbolService=i,this.dialog=r,this.themeService=o,this.drawTools={isRectangleChosen:!1,isEllipseChosen:!1,isLineChosen:!1,isTextChosen:!1},this.isLocked=!1,this.isLightThemeEnabled=!1}return e.prototype.ngOnInit=function(){this.isLightThemeEnabled="light"===this.themeService.getActualTheme()},e.prototype.getCssClassForIcon=function(e){return"text"===e?{unmarkedLight:!this.drawTools.isTextChosen&&this.isLightThemeEnabled,marked:this.drawTools.isTextChosen}:"rectangle"===e?{unmarkedLight:!this.drawTools.isRectangleChosen&&this.isLightThemeEnabled,marked:this.drawTools.isRectangleChosen}:{unmarkedLight:!this.drawTools.isEllipseChosen&&this.isLightThemeEnabled,marked:this.drawTools.isEllipseChosen}},e.prototype.takeScreenshot=function(){var e=this;this.dialog.open(nQ,{width:"400px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(t){t&&e.saveImage(t)})},e.prototype.saveImage=function(e){return(0,LO.mG)(this,void 0,void 0,function(){var t,n,i,r,o,a,s,l;return(0,LO.Jh)(this,function(c){switch(c.label){case 0:if("png"!==e.filetype)return[3,4];t=document.getElementsByTagName("svg")[0].outerHTML.split("image"),n=1,c.label=1;case 1:return n<t.length?(i=t[n].split('"'),r=i[1].split("/"),[4,this.symbolService.raw(this.server,r[7]).toPromise()]):[3,3];case 2:return o=c.sent(),a=o.split("--\x3e"),t[n]=a[1].substring(2),n+=2,[3,1];case 3:return s=t.join(),(l=document.createElement("div")).innerHTML=s,wV.saveSvgAsPng(l.firstChild,e.name+".png"),[3,5];case 4:wr("svg").attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg").node(),u=wr("svg").node(),d=""+e.name,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:TV,n=URL.createObjectURL(new Blob([e.source],{type:"text/xml"}));OV("".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(xV,"xmlns")||e.setAttributeNS(xV,"xmlns",kV),e.hasAttributeNS(xV,"xmlns:xlink")||e.setAttributeNS(xV,"xmlns:xlink",CV),"inline"===n?ZV(e,AV()):"internal"===n&&MV(e);var i=(new XMLSerializer).serializeToString(e),r=e.getBoundingClientRect();return{top:r.top,left:r.left,width:r.width,height:r.height,class:e.getAttribute("class"),id:e.getAttribute("id"),name:e.getAttribute("name"),childElementCount:e.childElementCount,source:SV+i}}(u,h),d||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()||TV}(u)),c.label=5;case 5:return[2]}var u,d,h})})},e.prototype.addDrawing=function(e){switch(e){case"rectangle":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!this.drawTools.isRectangleChosen,this.drawTools.isLineChosen=!1;break;case"ellipse":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!this.drawTools.isEllipseChosen,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!1;break;case"line":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!this.drawTools.isLineChosen;break;case"text":this.drawTools.isTextChosen=!this.drawTools.isTextChosen,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!1,this.toolsService.textAddingToolActivation(this.drawTools.isTextChosen)}this.selectedDrawing=this.selectedDrawing===e?"":e},e.prototype.onDrawingSaved=function(){this.resetDrawToolChoice()},e.prototype.resetDrawToolChoice=function(){this.drawTools.isRectangleChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isLineChosen=!1,this.drawTools.isTextChosen=!1,this.selectedDrawing="",this.toolsService.textAddingToolActivation(this.drawTools.isTextChosen)},e.prototype.changeLockValue=function(){this.isLocked=!this.isLocked,this.mapSettingsService.changeMapLockValue(this.isLocked)},e.prototype.uploadImageFile=function(e){this.readImageFile(e.target)},e.prototype.readImageFile=function(e){var t=this,n=e.files[0],i=new FileReader,r=new Image;i.onloadend=function(){var e=t.createSvgFileForImage(i.result,r);t.drawingService.add(t.server,t.project.project_id,-r.width/2,-r.height/2,e).subscribe(function(){})},r.onload=function(){i.readAsDataURL(n)},r.src=window.URL.createObjectURL(n)},e.prototype.createSvgFileForImage=function(e,t){return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="'+t.height+'" \n width="'+t.width+'">\n<image height="'+t.height+'" width="'+t.width+'" xlink:href="'+e+'"/>\n</svg>'},e.prototype.ngOnDestroy=function(){},e.\u0275fac=function(t){return new(t||e)(y.Y36(Fz),y.Y36(rz),y.Y36(kJ),y.Y36(vI),y.Y36(aq),y.Y36(EP.f))},e.\u0275cmp=y.Xpm({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=y.EpF();y.TgZ(0,"button",0),y.NdJ("click",function(){return t.addDrawing("text")}),y.TgZ(1,"mat-icon",1),y._uU(2,"create"),y.qZA(),y.qZA(),y.TgZ(3,"input",2,3),y.NdJ("change",function(e){return t.uploadImageFile(e)}),y.qZA(),y.TgZ(5,"button",4),y.NdJ("click",function(){return y.CHM(n),y.MAs(4).click()}),y.TgZ(6,"mat-icon"),y._uU(7,"image"),y.qZA(),y.qZA(),y.TgZ(8,"button",5),y.NdJ("click",function(){return t.addDrawing("rectangle")}),y.TgZ(9,"mat-icon",1),y._uU(10,"crop_3_2"),y.qZA(),y.qZA(),y.TgZ(11,"button",6),y.NdJ("click",function(){return t.addDrawing("ellipse")}),y.TgZ(12,"mat-icon",1),y._uU(13,"panorama_fish_eye"),y.qZA(),y.qZA(),y.YNc(14,uQ,3,3,"button",7),y.YNc(15,dQ,3,3,"button",7),y.TgZ(16,"button",8),y.NdJ("click",function(){return t.changeLockValue()}),y.TgZ(17,"mat-icon",1),y._uU(18,"lock"),y.qZA(),y.qZA(),y.TgZ(19,"button",9),y.NdJ("click",function(){return t.takeScreenshot()}),y.TgZ(20,"mat-icon",1),y._uU(21,"photo_camera"),y.qZA(),y.qZA(),y.TgZ(22,"app-drawing-added",10),y.NdJ("drawingSaved",function(){return t.onDrawingSaved()}),y.qZA(),y._UZ(23,"div",11)}2&e&&(y.xp6(1),y.Q6J("ngClass",t.getCssClassForIcon("text")),y.xp6(8),y.Q6J("ngClass",t.getCssClassForIcon("rectangle")),y.xp6(3),y.Q6J("ngClass",t.getCssClassForIcon("ellipse")),y.xp6(2),y.Q6J("ngIf",!t.isLightThemeEnabled),y.xp6(1),y.Q6J("ngIf",t.isLightThemeEnabled),y.xp6(2),y.Q6J("ngClass",y.WLB(10,hQ,!t.isLocked&&t.isLightThemeEnabled,t.isLocked)),y.xp6(3),y.Q6J("ngClass",y.VKq(13,pQ,!t.isLocked&&t.isLightThemeEnabled)),y.xp6(2),y.Q6J("server",t.server)("project",t.project)("selectedDrawing",t.selectedDrawing))},directives:[cO,MO,nO,_.mk,_.O5,lQ],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}(),mQ=function(){function e(e,t,n){this.nodesDataSource=e,this.linksDataSource=t,this.drawingsDataSource=n,this.nodeNotificationEmitter=new y.vpe,this.linkNotificationEmitter=new y.vpe,this.drawingNotificationEmitter=new y.vpe,this.infoNotificationEmitter=new y.vpe,this.warningNotificationEmitter=new y.vpe,this.errorNotificationEmitter=new y.vpe}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.\u0275fac=function(t){return new(t||e)(y.LFG($z.G),y.LFG(Kz.F),y.LFG(TJ))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),gQ=function(){return function(){}}(),vQ=function(){return function(){}}(),yQ=function(){function e(e,t,n){this.fontBBoxCalculator=e,this.cssFixer=t,this.fontFixer=n}return e.prototype.convert=function(e){var t=this.cssFixer.fix(e.style),n=this.fontFixer.fixStyles(t),i=this.fontBBoxCalculator.calculate(e.text,n),r=new vQ;return r.rotation=e.rotation,r.style=e.style,r.text=e.text,r.x=e.x,r.y=e.y,null!==r.x&&(r.x-=3),null!==r.y&&(r.y-=i.height),r},e.\u0275fac=function(t){return new(t||e)(y.LFG(sj),y.LFG(cj),y.LFG(uj))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),_Q=function(){return function(){}}(),bQ=function(){function e(){}return e.prototype.convert=function(e){var t=new _Q;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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),wQ=function(){function e(e,t){this.mapLabelToLabel=e,this.mapPortToPort=t}return e.prototype.convert=function(e){var t=this,n=new gQ;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.\u0275fac=function(t){return new(t||e)(y.LFG(yQ),y.LFG(bQ))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),SQ=function(){return function(){}}(),xQ=function(){function e(){}return e.prototype.convert=function(e){var t=new SQ;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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),CQ=function(){return function(){}}(),kQ=function(){return function(){}}(),TQ=function(){function e(e){this.mapLabelToLabel=e}return e.prototype.convert=function(e){var t=new kQ;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.\u0275fac=function(t){return new(t||e)(y.LFG(yQ))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),AQ=function(){function e(e){this.mapLinkNodeToMapLinkNode=e}return e.prototype.convert=function(e){var t=this,n=new CQ;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.\u0275fac=function(t){return new(t||e)(y.LFG(TQ))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),ZQ=n(2094),MQ=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.\u0275fac=function(t){return new(t||e)(y.LFG(sj))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),OQ=function(){function e(){}return e.prototype.notificationsPath=function(e){var t="ws";return"https:"===e.protocol&&(t="wss"),t+"://"+e.host+":"+e.port+"/v2/notifications/ws"},e.prototype.projectNotificationsPath=function(e,t){var n="ws";return"https:"===e.protocol&&(n="wss"),n+"://"+e.host+":"+e.port+"/v2/projects/"+t+"/notifications/ws"},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),EQ=function(){function e(e,t,n,i,r,o,a,s){this.nodeService=e,this.nodeConsoleService=t,this.nodesDataSource=n,this.toasterService=i,this.serverService=r,this.settingsService=o,this.mapSettingsService=a,this.electronService=s}return e.prototype.startConsoleForAllNodes=function(){return(0,LO.mG)(this,void 0,void 0,function(){var e,t,n,i,r,o;return(0,LO.Jh)(this,function(a){switch(a.label){case 0:if(!this.electronService.isElectronApp)return[3,5];e=this.settingsService.getConsoleSettings()?this.settingsService.getConsoleSettings():this.nodeService.getDefaultCommand(),t=this.nodesDataSource.getItems(),n=0,i=t,a.label=1;case 1:return n<i.length?(o={command:e,type:(r=i[n]).console_type,host:r.console_host,port:r.console,name:r.name,project_id:r.project_id,node_id:r.node_id,server_url:this.serverService.getServerUrl(this.server)},[4,this.electronService.remote.require("./console-executor.js").openConsole(o)]):[3,4];case 2:a.sent(),a.label=3;case 3:return n++,[3,1];case 4:return[3,6];case 5:this.mapSettingsService.openConsolesInWidget?this.nodeConsoleService.openConsolesForAllNodesInWidget(this.nodesDataSource.getItems()):this.nodeConsoleService.openConsolesForAllNodesInNewTabs(this.nodesDataSource.getItems()),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)(y.Y36(nH),y.Y36(fJ),y.Y36($z.G),y.Y36(KO),y.Y36(TM),y.Y36(vJ.g),y.Y36(rz),y.Y36(eT))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"button",1),y.NdJ("click",function(){return t.startConsoleForAllNodes()}),y.TgZ(2,"mat-icon"),y._uU(3,"web_asset"),y.qZA(),y.qZA(),y.TgZ(4,"button",2),y.NdJ("click",function(){return t.startNodes()}),y.TgZ(5,"mat-icon"),y._uU(6,"play_arrow"),y.qZA(),y.qZA(),y.TgZ(7,"button",3),y.NdJ("click",function(){return t.suspendNodes()}),y.TgZ(8,"mat-icon"),y._uU(9,"pause"),y.qZA(),y.qZA(),y.TgZ(10,"button",4),y.NdJ("click",function(){return t.stopNodes()}),y.TgZ(11,"mat-icon"),y._uU(12,"stop"),y.qZA(),y.qZA(),y.TgZ(13,"button",5),y.NdJ("click",function(){return t.reloadNodes()}),y.TgZ(14,"mat-icon"),y._uU(15,"replay"),y.qZA(),y.qZA(),y.qZA())},directives:[cO,MO,nO],styles:[".menu-button[_ngcontent-%COMP%]{margin:0 5px!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0}),e}(),PQ=function(){function e(e,t,n,i,r){this.toasterService=e,this.dockerService=t,this.qemuService=n,this.iouService=i,this.iosService=r}return e.prototype.ngOnInit=function(){var e=this;this.uploader=new Gk({}),this.uploader.onAfterAddingFile=function(e){e.withCredentials=!1},this.uploader.onErrorItem=function(t,n,i,r){e.toasterService.error("An error has occured")},this.uploader.onCompleteItem=function(t,n,i,r){"qemu"===e.template.template_type?e.qemuService.addTemplate(e.server,e.template).subscribe(function(){return e.onUploadComplete()}):"iou"===e.template.template_type?e.iouService.addTemplate(e.server,e.template).subscribe(function(){return e.onUploadComplete()}):"dynamips"===e.template.template_type?e.iosService.addTemplate(e.server,e.template).subscribe(function(){return e.onUploadComplete()}):"docker"===e.template.template_type&&e.dockerService.addTemplate(e.server,e.template).subscribe(function(){return e.onUploadComplete()})}},e.prototype.onUploadComplete=function(){this.toasterService.success("Appliance imported successfully"),this.uploader.queue=[]},e.prototype.uploadAppliance=function(e){var t,n=this,i=e.target.files[0],r=i.name,o=new FileReader;o.onloadend=function(){var e=JSON.parse(o.result);if(e.qemu)(t=new VL).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 SL).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 mR).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 qN).template_type="docker",t.adapters=e.docker.adapters,t.console_type=e.docker.console_type,t.image=e.docker.image}t.name=e.name,t.category=e.category,t.builtin=!1,t.default_name_format="{name}-{0}",t.compute_id="vm",t.symbol="guest"===t.category?":/symbols/computer.svg":":/symbols/"+t.category+"_guest.svg",n.template=t;var i=n.getUploadPath(n.server,t.template_type,r);n.uploader.queue.forEach(function(e){return e.url=i}),n.uploader.uploadItem(n.uploader.queue[0])},o.readAsText(i)},e.prototype.getUploadPath=function(e,t,n){return e.protocol+"//"+e.host+":"+e.port+"/v2/"+t+"/images/"+n},e.\u0275fac=function(t){return new(t||e)(y.Y36(KO),y.Y36(NN),y.Y36(QL),y.Y36(xL),y.Y36(gR))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-import-appliance"]],inputs:{project:"project",server:"server"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),IQ=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)(y.Y36(kJ),y.Y36(TJ),y.Y36(Hz))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-drawing-dragged"]],inputs:{server:"server",project:"project"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),qQ=function(){function e(e,t,n,i){this.drawingService=e,this.drawingsDataSource=t,this.drawingsEventSource=n,this.mapDrawingToSvgConverter=i}return e.prototype.ngOnInit=function(){var e=this;this.drawingResized=this.drawingsEventSource.resized.subscribe(function(t){return e.onDrawingResized(t)})},e.prototype.onDrawingResized=function(e){var t=this,n=this.drawingsDataSource.get(e.datum.id),i=this.mapDrawingToSvgConverter.convert(e.datum);this.drawingService.updateSizeAndPosition(this.server,n,e.x,e.y,i).subscribe(function(e){t.drawingsDataSource.update(e)})},e.prototype.ngOnDestroy=function(){this.drawingResized.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(y.Y36(kJ),y.Y36(TJ),y.Y36(Hz),y.Y36(ZJ))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-drawing-resized"]],inputs:{server:"server"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),NQ=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)(y.Y36(Xz),y.Y36(Kz.F),y.Y36(nU))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-interface-label-dragged"]],inputs:{server:"server"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),DQ=function(){function e(e,t,n,i,r,o){this.projectService=e,this.linkService=t,this.linksDataSource=n,this.linksEventSource=i,this.mapNodeToNode=r,this.mapPortToPort=o}return e.prototype.ngOnInit=function(){var e=this;this.linkCreated=this.linksEventSource.created.subscribe(function(t){return e.onLinkCreated(t)})},e.prototype.onLinkCreated=function(e){var t=this,n=Math.abs(e.sourceNode.x-e.targetNode.x),i=Math.abs(e.sourceNode.y-e.targetNode.y),r=Math.sqrt(Math.pow(n,2)+Math.pow(i,2)),o=i/r,a=45/r*n,s=45/r*i,l=0,c=0,u=0,d=0;e.sourceNode.x<=e.targetNode.x&&e.sourceNode.y<=e.targetNode.y?(l=Math.floor(e.sourceNode.width/2)+Math.round(a)+5,c=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),d=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?(l=Math.floor(e.sourceNode.width/2)-Math.round(a)-5-Math.round(20*o),c=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,d=Math.floor(e.targetNode.height/2)-Math.round(s)-5):e.sourceNode.x<e.targetNode.x&&e.sourceNode.y>e.targetNode.y?(l=Math.floor(e.sourceNode.width/2)+Math.round(a)+5-Math.round(20*o),c=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,d=Math.floor(e.targetNode.height/2)+Math.round(s)+5):e.sourceNode.x>=e.targetNode.x&&e.sourceNode.y>=e.targetNode.y&&(l=Math.floor(e.sourceNode.width/2)-Math.round(a)-5-Math.round(20*o),c=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,d=Math.floor(e.targetNode.height/2)+Math.round(s)+5);var h=this.mapNodeToNode.convert(e.sourceNode),p=this.mapPortToPort.convert(e.sourcePort),f=this.mapNodeToNode.convert(e.targetNode),m=this.mapPortToPort.convert(e.targetPort);this.linkService.createLink(this.server,h,p,f,m,l,c,u,d).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)(y.Y36(dU.Y),y.Y36(Xz),y.Y36(Kz.F),y.Y36(nU),y.Y36(wQ),y.Y36(bQ))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-link-created"]],inputs:{server:"server",project:"project"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),RQ=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)(y.Y36($z.G),y.Y36(nH),y.Y36(iz))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-node-dragged"]],inputs:{server:"server",project:"project"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),LQ=function(){function e(e,t,n,i){this.nodesDataSource=e,this.nodeService=t,this.nodesEventSource=n,this.mapLabelToLabel=i}return e.prototype.ngOnInit=function(){var e=this;this.nodeLabelDragged=this.nodesEventSource.labelDragged.subscribe(function(t){return e.onNodeLabelDragged(t)})},e.prototype.onNodeLabelDragged=function(e){var t=this,n=this.nodesDataSource.get(e.datum.nodeId),i=e.datum;i.x+=e.dx,i.y+=e.dy;var r=this.mapLabelToLabel.convert(i);n.label=r,this.nodeService.updateLabel(this.server,n,n.label).subscribe(function(e){t.nodesDataSource.update(e)})},e.prototype.ngOnDestroy=function(){this.nodeLabelDragged.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(y.Y36($z.G),y.Y36(nH),y.Y36(iz),y.Y36(yQ))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-node-label-dragged"]],inputs:{server:"server"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),FQ=function(){function e(e,t,n,i,r,o){this.drawingService=e,this.drawingsDataSource=t,this.drawingsEventSource=n,this.drawingsFactory=i,this.mapDrawingToSvgConverter=r,this.context=o,this.drawingSaved=new y.vpe}return e.prototype.ngOnInit=function(){var e=this;this.textAdded=this.drawingsEventSource.textAdded.subscribe(function(t){return e.onTextAdded(t)})},e.prototype.onTextAdded=function(e){var t=this,n=this.drawingsFactory.getDrawingMock("text");n.element.text=e.savedText;var i=this.mapDrawingToSvgConverter.convert(n);this.drawingService.add(this.server,this.project.project_id,(e.x-(this.context.getZeroZeroTransformationPoint().x+this.context.transformation.x))/this.context.transformation.k,(e.y-(this.context.getZeroZeroTransformationPoint().y+this.context.transformation.y))/this.context.transformation.k,i).subscribe(function(e){t.drawingsDataSource.add(e),t.drawingSaved.emit(!0)})},e.prototype.ngOnDestroy=function(){this.textAdded.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(y.Y36(kJ),y.Y36(TJ),y.Y36(Hz),y.Y36(sQ),y.Y36(ZJ),y.Y36(Oj))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-text-added"]],inputs:{server:"server",project:"project"},outputs:{drawingSaved:"drawingSaved"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),BQ=function(){function e(e,t,n,i){this.drawingService=e,this.drawingsDataSource=t,this.drawingsEventSource=n,this.mapDrawingToSvgConverter=i}return e.prototype.ngOnInit=function(){var e=this;this.textEdited=this.drawingsEventSource.textEdited.subscribe(function(t){return e.onTextEdited(t)})},e.prototype.onTextEdited=function(e){var t=this,n=new _j;n.element=e.textElement,n.element.text=e.editedText;var i=this.mapDrawingToSvgConverter.convert(n),r=this.drawingsDataSource.get(e.textDrawingId);this.drawingService.updateText(this.server,r,i).subscribe(function(e){t.drawingsDataSource.update(e),t.drawingsEventSource.textSaved.emit(!0)})},e.prototype.ngOnDestroy=function(){this.textEdited.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(y.Y36(kJ),y.Y36(TJ),y.Y36(Hz),y.Y36(ZJ))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-text-edited"]],inputs:{server:"server"},decls:0,vars:0,template:function(e,t){},styles:[""]}),e}(),jQ=["app-selection",""];function zQ(e,t){if(1&e&&(y.O4$(),y._UZ(0,"path",2)),2&e){var n=y.oxw();y.uIk("d",n.d)}}var UQ=function(){function e(e){this.ref=e,this.started=!1,this.visible=!1,this.rectangleSelected=new y.vpe}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var e=this,t=A.y.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=A.y.fromEvent(document,"mouseup").do(function(e){e.preventDefault()}),i=A.y.fromEvent(document,"mousemove").do(function(e){return e.stopPropagation()}),r=A.y.fromEvent(document,"scroll").startWith({}),o=A.y.combineLatest(i,r),a=t.mergeMap(function(t){return o.map(function(e){return e[0]}).do(function(t){e.started&&(e.visible=!0,e.width=t.clientX-e.startX+window.scrollX,e.height=t.clientY-e.startY+window.scrollY,e.ref.detectChanges(),e.selectedEvent([e.startX,e.startY],[e.width,e.height]))}).skipUntil(n.take(1).do(function(t){e.started&&(e.visible=!1,e.started=!1,e.width=t.clientX-e.startX+window.scrollX,e.height=t.clientY-e.startY+window.scrollY,e.ref.detectChanges(),e.selectedEvent([e.startX,e.startY],[e.width,e.height]))})).take(1)});this.draggable=a.subscribe(function(e){})},e.prototype.ngOnDestroy=function(){this.draggable.unsubscribe()},Object.defineProperty(e.prototype,"d",{get:function(){return this.rect(this.startX,this.startY,this.width,this.height)},enumerable:!1,configurable:!0}),e.prototype.rect=function(e,t,n,i){return"M"+[e,t]+" l"+[n,0]+" l"+[0,i]+" l"+[-n,0]+"z"},e.prototype.selectedEvent=function(e,t){var n=Math.min(e[0],t[0]),i=Math.min(e[1],t[1]),r=Math.abs(e[0]-t[0]),o=Math.abs(e[1]-t[1]);this.rectangleSelected.emit(new Xj(n,i,r,o))},e.\u0275fac=function(t){return new(t||e)(y.Y36(y.sBO))},e.\u0275cmp=y.Xpm({type:e,selectors:[["","app-selection",""]],inputs:{svg:["app-selection","svg"]},outputs:{rectangleSelected:"selected"},attrs:jQ,decls:2,vars:1,consts:[[1,"selection-line-tool"],["class","selection",4,"ngIf"],[1,"selection"]],template:function(e,t){1&e&&(y.O4$(),y.TgZ(0,"g",0),y.YNc(1,zQ,1,1,"path",1),y.qZA()),2&e&&(y.xp6(1),y.Q6J("ngIf",t.visible))},directives:[_.O5],styles:[""]}),e}(),HQ=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=wl();return n.moveTo(t[0][0],t[0][1]),n.lineTo(t[1][0],t[1][1]),n.toString()},e}(),YQ=function(){function e(){}return e.prototype.linkToPoints=function(e){var t={x:e.source.x+e.source.width/2,y:e.source.y+e.source.height/2},n={x:e.target.x+e.target.width/2,y:e.target.y+e.target.height/2},i=n.x-t.x,r=n.y-t.y,o=Math.atan2(r,i),a=-Math.PI/4,s=[Math.cos(o+a),Math.sin(o+a)];return[[t.x,t.y],[t.x+i/2+15*s[0],t.y+r/2+15*s[1]],[n.x-i/2-15*s[0],n.y-r/2-15*s[1]],[n.x,n.y]]},e.prototype.d=function(e){var t=this.linkToPoints(e),n=wl();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}(),JQ=["app-status",""];function GQ(e,t){if(1&e&&(y.O4$(),y._UZ(0,"circle",3)),2&e){var n=y.oxw(2);y.uIk("cx",n.point.x)("cy",n.point.y)}}function WQ(e,t){if(1&e&&(y.O4$(),y._UZ(0,"rect",4)),2&e){var n=y.oxw(2);y.uIk("x",n.point.x-5)("y",n.point.y-5)}}function VQ(e,t){if(1&e&&(y.O4$(),y.TgZ(0,"g"),y.YNc(1,GQ,1,2,"circle",1),y.YNc(2,WQ,1,2,"rect",2),y.qZA()),2&e){var n=y.oxw();y.xp6(1),y.Q6J("ngIf","started"==n.status),y.xp6(1),y.Q6J("ngIf","stopped"==n.status)}}var QQ=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)(y.Y36(y.SBq),y.Y36(y.sBO))},e.\u0275cmp=y.Xpm({type:e,selectors:[["","app-status",""]],inputs:{status:["app-status","status"],path:"path",direction:"direction",d:"d"},attrs:JQ,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&&y.YNc(0,VQ,3,2,"g",0),2&e&&y.Q6J("ngIf",t.status&&t.point&&t.direction)},directives:[_.O5],styles:[""]}),e}(),XQ=["textSvg"],KQ=["app-interface-label",""],$Q=function(){function e(e,t,n,i){this.elementRef=e,this.ref=t,this.sanitizer=n,this.cssFixer=i,this.label={x:0,y:0,text:"",style:"",rotation:0},this.borderSize=5,this.textWidth=0,this.textHeight=0}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"x",{set:function(e){this.label.x=e,this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{set:function(e){this.label.y=e,this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.label.text},set:function(e){this.label.text=e,this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{set:function(e){this.label.style=this.cssFixer.fix(e),this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{set:function(e){this.label.rotation=e,this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sanitizedStyle",{get:function(){return this.sanitizer.bypassSecurityTrustStyle(this.label.style)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rectX",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rectY",{get:function(){return-this.textRef.nativeElement.getBBox().height-this.borderSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rectWidth",{get:function(){return this.textRef.nativeElement.getBBox().width+2*this.borderSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rectHeight",{get:function(){return this.textRef.nativeElement.getBBox().height+this.borderSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transform",{get:function(){var e=this.elementRef.nativeElement.getBBox(),t=this.label.x,n=this.label.y+e.height;return"translate("+t+", "+n+") rotate("+this.label.rotation+", "+t+", "+n+")"},enumerable:!1,configurable:!0}),e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(o.H7),y.Y36(cj))},e.\u0275cmp=y.Xpm({type:e,selectors:[["","app-interface-label",""]],viewQuery:function(e,t){var n;1&e&&y.Gf(XQ,5),2&e&&y.iGM(n=y.CRH())&&(t.textRef=n.first)},inputs:{ignore:["app-interface-label","ignore"],x:"x",y:"y",text:"text",style:"style",rotation:"rotation"},attrs:KQ,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&&(y.O4$(),y.TgZ(0,"g",0),y._UZ(1,"rect",1),y.TgZ(2,"text",2,3),y._uU(4),y.qZA(),y.qZA()),2&e&&(y.uIk("transform",t.transform),y.xp6(1),y.uIk("x",t.rectX)("y",t.rectY)("width",t.rectWidth)("height",t.rectHeight),y.xp6(1),y.uIk("style",t.sanitizedStyle,y.Ckj)("x",t.borderSize)("y",-t.borderSize),y.xp6(2),y.hij(" ",t.text," "))},styles:[""]}),e}(),eX=["path"],tX=["app-link",""];function nX(e,t){if(1&e&&(y.O4$(),y._UZ(0,"path",5,6)),2&e){var n=y.oxw();y.uIk("d",n.d)}}function iX(e,t){if(1&e&&(y.O4$(),y._UZ(0,"path",7,6)),2&e){var n=y.oxw();y.uIk("d",n.d)}}function rX(e,t){if(1&e&&(y.O4$(),y._UZ(0,"g",8)),2&e){var n=y.oxw();y.Akn(n.link.nodes[0].label.style),y.Q6J("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 oX(e,t){if(1&e&&(y.O4$(),y._UZ(0,"g",8)),2&e){var n=y.oxw();y.Akn(n.link.nodes[1].label.style),y.Q6J("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 aX=function(){function e(e,t){this.multiLinkCalculatorHelper=e,this.ref=t,this.ethernetLinkStrategy=new HQ,this.serialLinkStrategy=new YQ}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)(y.Y36(kj),y.Y36(y.sBO))},e.\u0275cmp=y.Xpm({type:e,selectors:[["","app-link",""]],viewQuery:function(e,t){var n;1&e&&y.Gf(eX,5),2&e&&y.iGM(n=y.CRH())&&(t.path=n.first)},inputs:{link:["app-link","link"],nodeChanged:["node-changed","nodeChanged"],showInterfaceLabels:["show-interface-labels","showInterfaceLabels"]},attrs:tX,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&&(y.O4$(),y.TgZ(0,"g",0),y.YNc(1,nX,2,1,"path",1),y.YNc(2,iX,2,1,"path",2),y._UZ(3,"g",3),y._UZ(4,"g",3),y.YNc(5,rX,1,6,"g",4),y.YNc(6,oX,1,6,"g",4),y.qZA()),2&e&&(y.uIk("link_id",t.link.id)("map-source",t.link.source.id)("map-target",t.link.target.id)("transform",t.transform),y.xp6(1),y.Q6J("ngIf","ethernet"==t.link.linkType),y.xp6(1),y.Q6J("ngIf","serial"==t.link.linkType),y.xp6(1),y.Q6J("app-status",t.link.source.status)("direction","source")("path",t.path)("d",t.d),y.xp6(1),y.Q6J("app-status",t.link.target.status)("direction","target")("path",t.path)("d",t.d),y.xp6(1),y.Q6J("ngIf",t.showInterfaceLabels),y.xp6(1),y.Q6J("ngIf",t.showInterfaceLabels))},directives:[_.O5,QQ,$Q],styles:[""]}),e}(),sX=["app-draggable",""],lX=["*"],cX=function(){return function(e,t,n,i){this.x=e,this.y=t,this.dx=n,this.dy=i}}(),uX=function(){function e(e){this.elementRef=e,this.dragging=new y.vpe,this.dragged=new y.vpe}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var e=this,t=A.y.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=A.y.fromEvent(document,"mouseup").do(function(e){e.preventDefault()}),i=A.y.fromEvent(document,"mousemove").do(function(e){return e.stopPropagation()}),r=A.y.fromEvent(document,"scroll").startWith({}),o=A.y.combineLatest(i,r),a=t.mergeMap(function(t){return o.map(function(e){return e[0]}).do(function(t){var n=e.startX-t.clientX,i=e.startY-t.clientY;e.item.x=Math.round(e.posX-n),e.item.y=Math.round(e.posY-i),e.dragging.emit(new cX(e.item.x,e.item.y,-n,-i))}).skipUntil(n.take(1).do(function(t){var n=e.startX-t.clientX,i=e.startY-t.clientY;e.item.x=Math.round(e.posX-n),e.item.y=Math.round(e.posY-i),e.dragged.emit(new cX(e.item.x,e.item.y,-n,-i))})).take(1)});this.draggable=a.subscribe(function(e){})},e.prototype.ngOnDestroy=function(){this.draggable.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq))},e.\u0275cmp=y.Xpm({type:e,selectors:[["","app-draggable",""]],inputs:{item:["app-draggable","item"]},outputs:{dragging:"dragging",dragged:"dragged"},attrs:sX,ngContentSelectors:lX,decls:1,vars:0,template:function(e,t){1&e&&(y.F$t(),y.Hsn(0))},styles:[""]}),e}(),dX=["label"],hX=["image"],pX=["app-node",""],fX=function(){function e(e,t,n,i,r,o){this.cssFixer=e,this.fontFixer=t,this.sanitizer=n,this.element=i,this.cd=r,this.nodesEventSource=o,this.labelHeight=0}return e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){},e.prototype.ngOnChanges=function(e){this.cd.detectChanges()},e.prototype.ngAfterViewInit=function(){this.labelHeight=this.getLabelHeight(),this.cd.detectChanges()},e.prototype.OnDragging=function(e){this.node.x=e.x,this.node.y=e.y,this.cd.detectChanges()},e.prototype.OnDragged=function(e){this.cd.detectChanges(),this.nodesEventSource.dragged.emit(new Fj(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)(y.Y36(cj),y.Y36(uj),y.Y36(o.H7),y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(iz))},e.\u0275cmp=y.Xpm({type:e,selectors:[["","app-node",""]],viewQuery:function(e,t){if(1&e&&(y.Gf(dX,5),y.Gf(hX,5)),2&e){var n=void 0;y.iGM(n=y.CRH())&&(t.label=n.first),y.iGM(n=y.CRH())&&(t.imageRef=n.first)}},inputs:{node:["app-node","node"],symbols:"symbols",nodeChanged:["node-changed","nodeChanged"]},features:[y.TTD],attrs:pX,decls:6,vars:11,consts:[[1,"node"],[3,"app-draggable","dragging","dragged"],["image",""],[1,"label"],["label",""]],template:function(e,t){1&e&&(y.O4$(),y.TgZ(0,"g",0),y.TgZ(1,"image",1,2),y.NdJ("dragging",function(e){return t.OnDragging(e)})("dragged",function(e){return t.OnDragged(e)}),y.qZA(),y.TgZ(3,"text",3,4),y._uU(5),y.qZA(),y.qZA()),2&e&&(y.uIk("transform","translate("+t.node.x+","+t.node.y+")"),y.xp6(1),y.Q6J("app-draggable",t.node),y.uIk("width",t.node.width)("height",t.node.height)("x",0)("y",0)("href",t.symbol,null,"xlink"),y.xp6(2),y.uIk("style",t.label_style,y.Ckj)("x",t.label_x)("y",t.label_y),y.xp6(2),y.hij(" ",t.node.label.text," "))},directives:[uX],styles:[""],changeDetection:0}),e}(),mX=["app-ellipse",""],gX=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)(y.Y36(Ez))},e.\u0275cmp=y.Xpm({type:e,selectors:[["","app-ellipse",""]],inputs:{ellipse:["app-ellipse","ellipse"]},attrs:mX,decls:1,vars:9,consts:[[1,"ellipse_element","noselect"]],template:function(e,t){1&e&&(y.O4$(),y._UZ(0,"ellipse",0)),2&e&&y.uIk("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}(),vX=["app-image",""],yX=function(){function e(){}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=y.Xpm({type:e,selectors:[["","app-image",""]],inputs:{image:["app-image","image"]},attrs:vX,decls:1,vars:3,consts:[[1,"image_element","noselect"]],template:function(e,t){1&e&&(y.O4$(),y._UZ(0,"image",0)),2&e&&y.uIk("href",t.image.data,null,"xlink")("width",t.image.width)("height",t.image.height)},styles:[""]}),e}(),_X=["app-line",""],bX=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)(y.Y36(Ez))},e.\u0275cmp=y.Xpm({type:e,selectors:[["","app-line",""]],inputs:{line:["app-line","line"]},attrs:_X,decls:1,vars:7,consts:[[1,"line_element","noselect"]],template:function(e,t){1&e&&(y.O4$(),y._UZ(0,"line",0)),2&e&&y.uIk("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}(),wX=["app-rect",""],SX=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)(y.Y36(Ez))},e.\u0275cmp=y.Xpm({type:e,selectors:[["","app-rect",""]],inputs:{rect:["app-rect","rect"]},attrs:wX,decls:1,vars:7,consts:[[1,"rect_element","noselect"]],template:function(e,t){1&e&&(y.O4$(),y._UZ(0,"rect",0)),2&e&&y.uIk("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}(),xX=["text"],CX=["app-text",""];function kX(e,t){if(1&e&&(y.O4$(),y.TgZ(0,"tspan",3),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.uIk("dy",0==t.index?"0em":"1.4em"),y.xp6(1),y.hij(" ",n," ")}}var TX=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)(y.Y36(uj),y.Y36(o.H7))},e.\u0275cmp=y.Xpm({type:e,selectors:[["","app-text",""]],viewQuery:function(e,t){var n;1&e&&y.Gf(xX,5),2&e&&y.iGM(n=y.CRH())&&(t.textRef=n.first)},inputs:{text:["app-text","text"]},attrs:CX,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&&(y.O4$(),y.TgZ(0,"text",0,1),y.YNc(2,kX,2,2,"tspan",2),y.qZA()),2&e){var n=y.MAs(1);y.uIk("style",t.style,y.Ckj)("text-decoration",t.textDecoration)("fill",n.fill)("transform",t.transformation),y.xp6(2),y.Q6J("ngForOf",t.lines)}},directives:[_.sg],styles:[""]}),e}(),AX=["app-drawing",""];function ZX(e,t){if(1&e&&(y.O4$(),y._UZ(0,"g",6)),2&e){var n=y.oxw();y.Q6J("app-ellipse",n.drawing.element)}}function MX(e,t){if(1&e&&(y.O4$(),y._UZ(0,"g",7)),2&e){var n=y.oxw();y.Q6J("app-image",n.drawing.element)}}function OX(e,t){if(1&e&&(y.O4$(),y._UZ(0,"g",8)),2&e){var n=y.oxw();y.Q6J("app-line",n.drawing.element)}}function EX(e,t){if(1&e&&(y.O4$(),y._UZ(0,"g",9)),2&e){var n=y.oxw();y.Q6J("app-rect",n.drawing.element)}}function PX(e,t){if(1&e&&(y.O4$(),y._UZ(0,"g",10)),2&e){var n=y.oxw();y.Q6J("app-text",n.drawing.element)}}var IX=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){}},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 Fj(this.drawing,e.dx,e.dy))},e.prototype.is=function(e,t){return!!e&&("ellipse"===t?e instanceof yz:"image"===t?e instanceof bz:"line"===t?e instanceof Sz:"rect"===t?e instanceof Cz:"text"===t&&e instanceof Tz)},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)(y.Y36(Zz),y.Y36(Hz),y.Y36(y.sBO))},e.\u0275cmp=y.Xpm({type:e,selectors:[["","app-drawing",""]],inputs:{drawing:["app-drawing","drawing"]},attrs:AX,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&&(y.O4$(),y.TgZ(0,"g",0),y.NdJ("dragging",function(e){return t.OnDragging(e)})("dragged",function(e){return t.OnDragged(e)}),y.YNc(1,ZX,1,1,"g",1),y.YNc(2,MX,1,1,"g",2),y.YNc(3,OX,1,1,"g",3),y.YNc(4,EX,1,1,"g",4),y.YNc(5,PX,1,1,"g",5),y.qZA()),2&e&&(y.Q6J("app-draggable",t.drawing),y.uIk("transform",t.transformation),y.xp6(1),y.Q6J("ngIf",t.is(t.drawing.element,"ellipse")),y.xp6(1),y.Q6J("ngIf",t.is(t.drawing.element,"image")),y.xp6(1),y.Q6J("ngIf",t.is(t.drawing.element,"line")),y.xp6(1),y.Q6J("ngIf",t.is(t.drawing.element,"rect")),y.xp6(1),y.Q6J("ngIf",t.is(t.drawing.element,"text")))},directives:[uX,_.O5,gX,yX,bX,SX,TX],styles:[""]}),e}(),qX=["svg"];function NX(e,t){if(1&e&&(y.O4$(),y._UZ(0,"g",12)),2&e){var n=t.$implicit,i=y.oxw(2);y.Q6J("app-link",n)("show-interface-labels",i.settings.show_interface_labels)}}function DX(e,t){if(1&e&&(y.O4$(),y._UZ(0,"g",13)),2&e){var n=t.$implicit,i=y.oxw(2);y.Q6J("app-node",n)("symbols",i.symbols)}}function RX(e,t){1&e&&(y.O4$(),y._UZ(0,"g",14)),2&e&&y.Q6J("app-drawing",t.$implicit)}function LX(e,t){if(1&e&&(y.O4$(),y.TgZ(0,"g"),y.TgZ(1,"g",6),y.YNc(2,NX,1,2,"g",7),y.qZA(),y.TgZ(3,"g",8),y.YNc(4,DX,1,2,"g",9),y.qZA(),y.TgZ(5,"g",10),y.YNc(6,RX,1,1,"g",11),y.qZA(),y.qZA()),2&e){var n=t.$implicit;y.xp6(2),y.Q6J("ngForOf",n.links),y.xp6(2),y.Q6J("ngForOf",n.nodes),y.xp6(2),y.Q6J("ngForOf",n.drawings)}}var FX=function(){function e(e,t,n,i,r,o,a){this.graphDataManager=e,this.context=t,this.mapChangeDetectorRef=n,this.canvasSizeDetector=i,this.changeDetectorRef=r,this.layersManger=o,this.graphLayout=a,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.width=1500,this.height=600,this.settings={show_interface_labels:!0}}return Object.defineProperty(e.prototype,"showInterfaceLabels",{set:function(e){this.settings.show_interface_labels=e,this.mapChangeDetectorRef.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movingTool",{set:function(e){this.mapChangeDetectorRef.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectionTool",{set:function(e){this.mapChangeDetectorRef.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{set:function(e){},enumerable:!1,configurable:!0}),e.prototype.ngOnChanges=function(e){},e.prototype.ngOnInit=function(){var e=this;this.changesDetected=this.mapChangeDetectorRef.changesDetected.subscribe(function(){e.graphDataManager.setNodes(e.nodes),e.graphDataManager.setLinks(e.links),e.graphDataManager.setDrawings(e.drawings),e.graphDataManager.setSymbols(e.symbols),e.changeDetectorRef.detectChanges()})},e.prototype.ngOnDestroy=function(){this.changesDetected.unsubscribe()},e.prototype.getSize=function(){return this.canvasSizeDetector.getOptimalSize(this.width,this.height)},Object.defineProperty(e.prototype,"layers",{get:function(){return this.layersManger.getLayersList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transform",{get:function(){var e=new Oj;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)(y.Y36(Tj),y.Y36(Oj),y.Y36(Ej),y.Y36(Pj),y.Y36(y.sBO),y.Y36(Cj),y.Y36(Lz))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-experimental-map"]],viewQuery:function(e,t){var n;1&e&&y.Gf(qX,5),2&e&&y.iGM(n=y.CRH())&&(t.svg=n.first)},hostBindings:function(e,t){1&e&&y.NdJ("resize",function(e){return t.onResize(e)},!1,y.Jf7)},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:[y.TTD],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&&(y.O4$(),y.TgZ(0,"svg",0,1),y.TgZ(2,"g"),y.YNc(3,LX,7,3,"g",2),y.qZA(),y._UZ(4,"g",3),y.TgZ(5,"filter",4),y._UZ(6,"feColorMatrix",5),y.qZA(),y.qZA()),2&e){var n=y.MAs(1);y.uIk("width",t.width)("height",t.height),y.xp6(2),y.uIk("transform",t.transform),y.xp6(1),y.Q6J("ngForOf",t.layers),y.xp6(1),y.Q6J("app-selection",n)}},directives:[_.sg,UQ,aX,fX,IX],styles:["svg[_ngcontent-%COMP%]{display:block}"],changeDetection:0}),e}(),BX=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=y.Yjl({name:"templatefilter",type:e,pure:!0}),e}();function jX(e,t){if(1&e&&(y.TgZ(0,"mat-option",18),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function zX(e,t){if(1&e&&(y.TgZ(0,"mat-option",18),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n.name," ")}}function UX(e,t){if(1&e&&(y.TgZ(0,"mat-option",18),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function HX(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-select",19),y.NdJ("valueChange",function(e){return y.CHM(n),y.oxw().selectedTemplate.compute_id=e}),y.YNc(1,UX,2,2,"mat-option",8),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("value",i.selectedTemplate.compute_id),y.xp6(1),y.Q6J("ngForOf",i.nodeServers)}}var YX=function(){return{standalone:!0}},JX=function(){function e(e,t,n,i,r,o){this.dialogRef=e,this.templateService=t,this.formBuilder=n,this.data=i,this.toasterService=r,this.nonNegativeValidator=o,this.templateTypes=["cloud","ethernet_hub","ethernet_switch","docker","dynamips","vpcs","traceng","virtualbox","vmware","iou","qemu"],this.searchText="",this.nodeServers=["local","vm"],this.server=i.server,this.project=i.project,this.configurationForm=this.formBuilder.group({numberOfNodes:new st.NI(1,[st.kI.required,o.get])}),this.positionForm=this.formBuilder.group({top:new st.NI(0,st.kI.required),left:new st.NI(0,st.kI.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)(y.Y36($I),y.Y36(pq),y.Y36(st.qu),y.Y36(tq),y.Y36(KO),y.Y36(ZU))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"h1",1),y._uU(2,"Add a node"),y.qZA(),y.TgZ(3,"button",2),y.NdJ("click",function(){return t.onNoClick()}),y._uU(4," Go to template preferences "),y.qZA(),y.qZA(),y.TgZ(5,"div",3),y.TgZ(6,"div",0),y.TgZ(7,"h6"),y._uU(8,"Template"),y.qZA(),y.qZA(),y.TgZ(9,"mat-form-field",4),y.TgZ(10,"input",5),y.NdJ("ngModelChange",function(e){return t.searchText=e}),y.qZA(),y.qZA(),y.TgZ(11,"mat-form-field",6),y.TgZ(12,"mat-select",7),y.NdJ("selectionChange",function(e){return t.filterTemplates(e)})("ngModelChange",function(e){return t.selectedType=e}),y.YNc(13,jX,2,2,"mat-option",8),y.qZA(),y.qZA(),y.TgZ(14,"mat-form-field",6),y.TgZ(15,"mat-select",9),y.NdJ("selectionChange",function(e){return t.chooseTemplate(e)})("ngModelChange",function(e){return t.selectedTemplate=e}),y.YNc(16,zX,2,2,"mat-option",8),y.ALo(17,"templatefilter"),y.qZA(),y.qZA(),y.TgZ(18,"div",0),y.TgZ(19,"h6"),y._uU(20,"Configuration"),y.qZA(),y.qZA(),y.TgZ(21,"form",10),y.TgZ(22,"mat-form-field",6),y._UZ(23,"input",11),y.qZA(),y.qZA(),y.YNc(24,HX,2,2,"mat-select",12),y.TgZ(25,"div",0),y.TgZ(26,"h6"),y._uU(27,"Position"),y.qZA(),y.qZA(),y.TgZ(28,"form",10),y._uU(29," Left:\xa0 "),y.TgZ(30,"mat-form-field"),y._UZ(31,"input",13),y.qZA(),y._uU(32," Top:\xa0 "),y.TgZ(33,"mat-form-field"),y._UZ(34,"input",14),y.qZA(),y.qZA(),y.qZA(),y.TgZ(35,"div",15),y.TgZ(36,"button",16),y.NdJ("click",function(){return t.onNoClick()}),y._uU(37,"Close"),y.qZA(),y.TgZ(38,"button",17),y.NdJ("click",function(){return t.onAddClick()}),y._uU(39," Add "),y.qZA(),y.qZA()),2&e&&(y.xp6(3),y.MGl("routerLink","/server/",t.server.id,"/preferences"),y.xp6(7),y.Q6J("ngModel",t.searchText)("ngModelOptions",y.DdM(15,YX)),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(16,YX))("ngModel",t.selectedType),y.xp6(1),y.Q6J("ngForOf",t.templateTypes),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(17,YX))("ngModel",t.selectedTemplate),y.xp6(1),y.Q6J("ngForOf",y.xi3(17,12,t.filteredTemplates,t.searchText)),y.xp6(5),y.Q6J("formGroup",t.configurationForm),y.xp6(3),y.Q6J("ngIf",t.selectedTemplate),y.xp6(4),y.Q6J("formGroup",t.positionForm))},directives:[lq,cO,eM,cq,sE.KE,mE,st.Fj,st.JJ,st.On,vE.gD,_.sg,st._Y,st.JL,st.sg,st.wV,st.u,_.O5,uq,lt.ey],pipes:[BX],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}();function GX(e,t){if(1&e&&(y.TgZ(0,"mat-option",11),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n),y.xp6(1),y.hij(" ",n," ")}}function WX(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"span",14),y.TgZ(1,"div",15),y.NdJ("dragStart",function(e){return y.CHM(n),y.oxw(3).dragStart(e)})("dragEnd",function(e){y.CHM(n);var t=y.oxw(2).index,i=y.oxw();return i.dragEnd(e,i.filteredTemplates[t+1])}),y._UZ(2,"img",16),y.qZA(),y.TgZ(3,"div",17),y._uU(4),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2).index,r=y.oxw();y.xp6(2),y.Q6J("src",r.getImageSourceForTemplate(r.filteredTemplates[i+1]),y.LSH),y.xp6(2),y.Oqu(r.filteredTemplates[i+1].name)}}function VX(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"span",14),y.TgZ(1,"div",15),y.NdJ("dragStart",function(e){return y.CHM(n),y.oxw(3).dragStart(e)})("dragEnd",function(e){y.CHM(n);var t=y.oxw(2).index,i=y.oxw();return i.dragEnd(e,i.filteredTemplates[t+2])}),y._UZ(2,"img",16),y.qZA(),y.TgZ(3,"div",17),y._uU(4),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2).index,r=y.oxw();y.xp6(2),y.Q6J("src",r.getImageSourceForTemplate(r.filteredTemplates[i+2]),y.LSH),y.xp6(2),y.Oqu(r.filteredTemplates[i+2].name)}}function QX(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"span",14),y.TgZ(1,"div",15),y.NdJ("dragStart",function(e){return y.CHM(n),y.oxw(3).dragStart(e)})("dragEnd",function(e){y.CHM(n);var t=y.oxw(2).index,i=y.oxw();return i.dragEnd(e,i.filteredTemplates[t+3])}),y._UZ(2,"img",16),y.qZA(),y.TgZ(3,"div",17),y._uU(4),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2).index,r=y.oxw();y.xp6(2),y.Q6J("src",r.getImageSourceForTemplate(r.filteredTemplates[i+3]),y.LSH),y.xp6(2),y.Oqu(r.filteredTemplates[i+3].name)}}function XX(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"span",13),y.TgZ(1,"span",14),y.TgZ(2,"div",15),y.NdJ("dragStart",function(e){return y.CHM(n),y.oxw(2).dragStart(e)})("dragEnd",function(e){y.CHM(n);var t=y.oxw().index,i=y.oxw();return i.dragEnd(e,i.filteredTemplates[t])}),y._UZ(3,"img",16),y.qZA(),y.TgZ(4,"div",17),y._uU(5),y.qZA(),y.qZA(),y.YNc(6,WX,5,2,"span",18),y.YNc(7,VX,5,2,"span",18),y.YNc(8,QX,5,2,"span",18),y.qZA()}if(2&e){var i=y.oxw().index,r=y.oxw();y.xp6(3),y.Q6J("src",r.getImageSourceForTemplate(r.filteredTemplates[i]),y.LSH),y.xp6(2),y.Oqu(r.filteredTemplates[i].name),y.xp6(1),y.Q6J("ngIf",r.filteredTemplates[i+1]),y.xp6(1),y.Q6J("ngIf",r.filteredTemplates[i+2]),y.xp6(1),y.Q6J("ngIf",r.filteredTemplates[i+3])}}function KX(e,t){if(1&e&&(y.TgZ(0,"mat-list-item"),y.YNc(1,XX,9,5,"span",12),y.qZA()),2&e){var n=t.index;y.xp6(1),y.Q6J("ngIf",n%4==0)}}var $X=function(){return{standalone:!0}},eK=function(){function e(e,t,n,i){this.dialog=e,this.templateService=t,this.scaleService=n,this.symbolService=i,this.onNodeCreation=new y.vpe,this.templates=[],this.filteredTemplates=[],this.searchText="",this.templateTypes=["all","cloud","ethernet_hub","ethernet_switch","docker","dynamips","vpcs","traceng","virtualbox","vmware","iou","qemu"]}return e.prototype.ngOnInit=function(){var e=this;this.subscription=this.templateService.newTemplateCreated.subscribe(function(t){e.templates.push(t)}),this.templateService.list(this.server).subscribe(function(t){e.filteredTemplates=t,e.sortTemplates(),e.templates=t}),this.symbolService.list(this.server)},e.prototype.sortTemplates=function(){this.filteredTemplates=this.filteredTemplates.sort(function(e,t){return e.name<t.name?-1:1})},e.prototype.filterTemplates=function(e){var t=this,n=this.templates.filter(function(e){return e.name.toLowerCase().includes(t.searchText.toLowerCase())});this.filteredTemplates="all"!==this.selectedType&&this.selectedType?n.filter(function(e){return e.template_type===t.selectedType}):n,this.sortTemplates()},e.prototype.dragStart=function(e){var t=event.target.getBoundingClientRect();this.startX=event.clientX,this.startY=event.clientY,this.movementY=t.top-event.clientY,this.movementX=t.left-event.clientX},e.prototype.dragEnd=function(e,t){var n=this;this.symbolService.raw(this.server,t.symbol.substring(1)).subscribe(function(i){var r=+i.split('width="')[1].split('"')[0]?+i.split('width="')[1].split('"')[0]:0,o=n.scaleService.getScale(),a={template:t,server:"local",numberOfNodes:1,x:(n.startX+e.x-n.project.scene_width/2-r/2)*o+window.scrollX,y:(n.startY+e.y-n.project.scene_height/2)*o+window.scrollY};n.onNodeCreation.emit(a)})},e.prototype.openDialog=function(){var e=this;this.dialog.open(JX,{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)(y.Y36(aq),y.Y36(pq),y.Y36(Bz),y.Y36(vI))},e.\u0275cmp=y.Xpm({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){if(1&e&&(y.TgZ(0,"button",0),y.TgZ(1,"mat-icon"),y._uU(2,"add"),y.qZA(),y.qZA(),y.TgZ(3,"mat-menu",null,1),y.TgZ(5,"button",2),y.NdJ("click",function(){return t.openDialog()}),y.TgZ(6,"mat-icon"),y._uU(7,"add_to_queue"),y.qZA(),y.TgZ(8,"span"),y._uU(9,"Open dialog to configure"),y.qZA(),y.qZA(),y.TgZ(10,"mat-form-field",3),y.NdJ("click",function(e){return e.stopPropagation()}),y.TgZ(11,"input",4),y.NdJ("keyup",function(e){return t.filterTemplates(e)})("ngModelChange",function(e){return t.searchText=e}),y.qZA(),y.qZA(),y.TgZ(12,"mat-form-field",5),y.NdJ("click",function(e){return e.stopPropagation()}),y.TgZ(13,"mat-select",6),y.NdJ("selectionChange",function(e){return t.filterTemplates(e)})("ngModelChange",function(e){return t.selectedType=e}),y.YNc(14,GX,2,2,"mat-option",7),y.qZA(),y.qZA(),y.TgZ(15,"div",8),y.TgZ(16,"div",9),y.YNc(17,KX,2,1,"mat-list-item",10),y.qZA(),y.qZA(),y.qZA()),2&e){var n=y.MAs(4);y.Q6J("matMenuTriggerFor",n),y.xp6(11),y.Q6J("ngModel",t.searchText)("ngModelOptions",y.DdM(7,$X)),y.xp6(2),y.Q6J("ngModelOptions",y.DdM(8,$X))("ngModel",t.selectedType),y.xp6(1),y.Q6J("ngForOf",t.templateTypes),y.xp6(3),y.Q6J("ngForOf",t.filteredTemplates)}},directives:[cO,MO,Iq,nO,Mq,kq,sE.KE,mE,st.Fj,st.JJ,st.On,vE.gD,_.sg,lt.ey,uP,_.O5,Wt],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}(),tK=["primaryValueBar"],nK=(0,lt.pj)(function e(t){(0,f.Z)(this,e),this._elementRef=t},"primary"),iK=new y.OlP("mat-progress-bar-location",{providedIn:"root",factory:function(){var e=(0,y.f3M)(_.K0),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),rK=0,oK=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o){var a;(0,f.Z)(this,n),(a=t.call(this,e))._elementRef=e,a._ngZone=i,a._animationMode=r,a._isNoopAnimation=!1,a._value=0,a._bufferValue=0,a.animationEnd=new y.vpe,a._animationEndSubscription=C.w.EMPTY,a.mode="determinate",a.progressbarId="mat-progress-bar-".concat(rK++);var s=o?o.getPathname().split("#")[0]:"";return a._rectangleFillValue="url('".concat(s,"#").concat(a.progressbarId,"')"),a._isNoopAnimation="NoopAnimations"===r,a}return(0,m.Z)(n,[{key:"value",get:function(){return this._value},set:function(e){this._value=aK((0,S.su)(e)||0)}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(e){this._bufferValue=aK(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=(0,ut.R)(t,"transitionend").pipe((0,dt.h)(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}(nK);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq),y.Y36(y.R0b),y.Y36(mt.Qb,8),y.Y36(iK,8))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-progress-bar"]],viewQuery:function(e,t){var n;1&e&&y.Gf(tK,5),2&e&&y.iGM(n=y.CRH())&&(t._primaryValueBar=n.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(e,t){2&e&&(y.uIk("aria-valuenow","indeterminate"===t.mode||"query"===t.mode?null:t.value)("mode",t.mode),y.ekj("_mat-animation-noopable",t._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[y.qOj],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&&(y.TgZ(0,"div",0),y.O4$(),y.TgZ(1,"svg",1),y.TgZ(2,"defs"),y.TgZ(3,"pattern",2),y._UZ(4,"circle",3),y.qZA(),y.qZA(),y._UZ(5,"rect",4),y.qZA(),y.kcU(),y._UZ(6,"div",5),y._UZ(7,"div",6,7),y._UZ(9,"div",8),y.qZA()),2&e&&(y.xp6(3),y.Q6J("id",t.progressbarId),y.xp6(2),y.uIk("fill",t._rectangleFillValue),y.xp6(1),y.Q6J("ngStyle",t._bufferTransform()),y.xp6(1),y.Q6J("ngStyle",t._primaryTransform()))},directives:[_.PC],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 aK(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 sK=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[_.ez,lt.BQ],lt.BQ]}),e}(),lK=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)(y.Y36($I),y.Y36(tq))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1,"Operation in progress"),y.qZA(),y.TgZ(2,"div",1),y._UZ(3,"mat-progress-bar",2),y.qZA(),y.TgZ(4,"div",3),y.TgZ(5,"button",4),y.NdJ("click",function(){return t.onCancelClick()}),y._uU(6,"Cancel"),y.qZA(),y.qZA()),2&e&&(y.xp6(3),y.Q6J("value",t.value))},directives:[lq,cq,oK,uq,cO],styles:[""]}),e}(),cK=function(){return function(){}}(),uK=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.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),dK=function(){function e(e,t,n,i,r,o){var a=this;this.dialogRef=e,this.formBuilder=t,this.toasterService=n,this.snapshotService=i,this.nodesDataSource=r,this.data=o,this.snapshot=new cK,this.snapshots=[],this.server=o.server,this.project=o.project,this.inputForm=this.formBuilder.group({snapshotName:new st.NI("",st.kI.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)(y.Y36($I),y.Y36(st.qu),y.Y36(KO),y.Y36(uK),y.Y36($z.G),y.Y36(tq))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"h1",1),y._uU(2,"Create snapshot"),y.qZA(),y.TgZ(3,"button",2),y.NdJ("click",function(){return t.onNoClick()}),y._uU(4," Go to snapshots "),y.qZA(),y.qZA(),y.TgZ(5,"div",3),y.TgZ(6,"form",4),y.TgZ(7,"mat-form-field",5),y._UZ(8,"input",6),y.qZA(),y.qZA(),y.qZA(),y.TgZ(9,"div",7),y.TgZ(10,"button",8),y.NdJ("click",function(){return t.onNoClick()}),y._uU(11,"Cancel"),y.qZA(),y.TgZ(12,"button",9),y.NdJ("click",function(){return t.onAddClick()}),y._uU(13,"Add"),y.qZA(),y.qZA()),2&e&&(y.xp6(3),y.hYB("routerLink","/server/",t.server.id,"/project/",t.project.project_id,"/snapshots"),y.xp6(3),y.Q6J("formGroup",t.inputForm))},directives:[lq,cO,eM,cq,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,uq],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}(),hK=function(){function e(e){this.dialog=e}return e.prototype.open=function(){return this.dialog.open(lK,{width:"250px",autoFocus:!1,disableClose:!0})},e.\u0275fac=function(t){return new(t||e)(y.LFG(aq))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),pK=function(){function e(e,t,n,i){this.dialog=e,this.snapshotService=t,this.progressDialogService=n,this.toaster=i}return e.prototype.ngOnInit=function(){},e.prototype.createSnapshotModal=function(){var e=this;this.dialog.open(dK,{width:"450px",data:{server:this.server,project:this.project},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(t){if(t){var n=e.snapshotService.create(e.server,e.project.project_id,t),i=e.progressDialogService.open(),r=n.subscribe(function(n){e.toaster.success("Snapshot '"+t.name+"' has been created."),i.close()});i.afterClosed().subscribe(function(e){e===lK.CANCELLED&&r.unsubscribe()})}})},e.\u0275fac=function(t){return new(t||e)(y.Y36(aq),y.Y36(uK),y.Y36(hK),y.Y36(KO))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"button",0),y.NdJ("click",function(){return t.createSnapshotModal()}),y.TgZ(1,"mat-icon"),y._uU(2,"filter_none"),y.qZA(),y.qZA())},directives:[cO,MO,nO],styles:[""]}),e}(),fK=function(){return function(e,t,n,i){this.sourceNode=e,this.sourcePort=t,this.targetNode=n,this.targetPort=i}}();function mK(e,t){1&e&&(y.O4$(),y.TgZ(0,"svg",9),y._UZ(1,"rect",10),y.qZA())}function gK(e,t){1&e&&(y.O4$(),y.TgZ(0,"svg",9),y._UZ(1,"rect",11),y.qZA())}function vK(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",6),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw(2).chooseInterface(e)}),y.YNc(1,mK,2,0,"svg",7),y.YNc(2,gK,2,0,"svg",7),y.TgZ(3,"span",8),y._uU(4),y.qZA(),y.qZA()}if(2&e){var i=t.$implicit;y.Q6J("disabled",!i.available),y.xp6(1),y.Q6J("ngIf",i.available),y.xp6(1),y.Q6J("ngIf",!i.available),y.xp6(2),y.Oqu(i.name)}}function yK(e,t){if(1&e&&(y.TgZ(0,"div",1),y._UZ(1,"span",2),y.TgZ(2,"mat-menu",3,4),y.YNc(4,vK,5,4,"button",5),y.qZA(),y.qZA()),2&e){var n=y.MAs(3),i=y.oxw();y.Udp("left",i.leftPosition)("top",i.topPosition),y.xp6(1),y.Q6J("matMenuTriggerFor",n),y.xp6(1),y.Udp("min-height",0),y.xp6(2),y.Q6J("ngForOf",i.ports)}}var _K=function(){function e(e,t){this.sanitizer=e,this.changeDetector=t,this.onChooseInterface=new y.vpe}return e.prototype.ngOnInit=function(){this.setPosition(0,0)},e.prototype.setPosition=function(e,t){this.topPosition=this.sanitizer.bypassSecurityTrustStyle(e+"px"),this.leftPosition=this.sanitizer.bypassSecurityTrustStyle(t+"px"),this.changeDetector.detectChanges()},e.prototype.open=function(e,t,n){this.node=e,this.filterNodePorts(),this.setPosition(t,n),this.contextMenu.openMenu()},e.prototype.filterNodePorts=function(){var e=this,t=[];this.links.forEach(function(n){n.nodes.forEach(function(n){n.node_id===e.node.node_id&&t.push(n)})}),this.ports=[],this.node.ports.forEach(function(n){var i=t.filter(function(e){return e.adapter_number===n.adapter_number});n.available=0===i.length||0===i.filter(function(e){return e.port_number===n.port_number}).length,e.ports.push(n)})},e.prototype.chooseInterface=function(e){this.onChooseInterface.emit({node:this.node,port:e})},e.\u0275fac=function(t){return new(t||e)(y.Y36(o.H7),y.Y36(y.sBO))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-node-select-interface"]],viewQuery:function(e,t){var n;1&e&&y.Gf(Iq,5),2&e&&y.iGM(n=y.CRH())&&(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&&y.YNc(0,yK,5,8,"div",0),2&e&&y.Q6J("ngIf",t.node)},directives:[_.O5,Iq,Mq,_.sg,kq],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}(),bK=function(){function e(e,t,n,i,r,o){this.drawingLineTool=e,this.nodesEventSource=t,this.linksEventSource=n,this.mapNodeToNode=i,this.nodeToMapNode=r,this.portToMapPort=o}return e.prototype.ngOnInit=function(){var e=this;this.nodeClicked$=this.nodesEventSource.clicked.subscribe(function(t){var n=e.mapNodeToNode.convert(t.datum);e.nodeSelectInterfaceMenu.open(n,t.y,t.x)})},e.prototype.ngOnDestroy=function(){this.drawingLineTool.isDrawing()&&this.drawingLineTool.stop(),this.nodeClicked$.unsubscribe()},e.prototype.onChooseInterface=function(e){var t=this.nodeToMapNode.convert(e.node),n=this.portToMapPort.convert(e.port);if(this.drawingLineTool.isDrawing()){var i=this.drawingLineTool.stop();this.linksEventSource.created.emit(new fK(i.node,i.port,t,n))}else this.drawingLineTool.start(t.x+t.width/2,t.y+t.height/2,{node:t,port:n})},e.\u0275fac=function(t){return new(t||e)(y.Y36(lz),y.Y36(iz),y.Y36(nU),y.Y36(wQ),y.Y36(fj),y.Y36(pj))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-draw-link-tool"]],viewQuery:function(e,t){var n;1&e&&y.Gf(_K,5),2&e&&y.iGM(n=y.CRH())&&(t.nodeSelectInterfaceMenu=n.first)},inputs:{links:"links"},decls:1,vars:1,consts:[[3,"links","onChooseInterface"]],template:function(e,t){1&e&&(y.TgZ(0,"app-node-select-interface",0),y.NdJ("onChooseInterface",function(e){return t.onChooseInterface(e)}),y.qZA()),2&e&&y.Q6J("links",t.links)},directives:[_K],styles:[""]}),e}(),wK=n(60306).i8,SK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,LO.ZT)(t,e),t.prototype.getItemKey=function(e){return e},t.\u0275fac=function(){var e;return function(n){return(e||(e=y.n5z(t)))(n||t)}}(),t.\u0275prov=y.Yz7({token:t,factory:t.\u0275fac}),t}($B.o),xK=["console"];function CK(e,t){if(1&e&&(y.TgZ(0,"span",12),y._uU(1),y._UZ(2,"br"),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.hij(" ",n.message," ")}}var kK=function(e){return{lightTheme:e}},TK=function(){function e(e,t,n,i,r,o,a,s,l){this.projectWebServiceHandler=e,this.nodeService=t,this.nodesDataSource=n,this.logEventsDataSource=i,this.httpService=r,this.themeService=o,this.cd=a,this.nodeConsoleService=s,this.changeDetectorRef=l,this.version=wK,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 st.NI(0)}return e.prototype.ngOnInit=function(){var e=this;this.nodeConsoleService.consoleResized.subscribe(function(t){e.style={bottom:"20px",left:"20px",width:t.width+"px",height:t.height-70+"px"},e.changeDetectorRef.detectChanges()}),this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.style={bottom:"20px",left:"20px",width:"720px",height:"340px"},this.nodeSubscription=this.projectWebServiceHandler.nodeNotificationEmitter.subscribe(function(t){var n,i=t.event;n=i.label?"Event received: "+t.action+" - "+e.printNode(i)+".":"Event received: "+t.action+" - "+i.name+".",e.showMessage({type:"map update",message:n})}),this.linkSubscription=this.projectWebServiceHandler.linkNotificationEmitter.subscribe(function(t){var n="Event received: "+t.action+" - "+e.printLink(t.event)+".";e.showMessage({type:"map update",message:n})}),this.drawingSubscription=this.projectWebServiceHandler.drawingNotificationEmitter.subscribe(function(t){var n="Event received: "+t.action+" - "+e.printDrawing(t.event)+".";e.showMessage({type:"map update",message:n})}),this.serverRequestsSubscription=this.httpService.requestsNotificationEmitter.subscribe(function(t){e.showMessage({type:"server request",message:t})}),this.errorSubscription=this.projectWebServiceHandler.errorNotificationEmitter.subscribe(function(t){e.showMessage({type:"error",message:t})}),this.warningSubscription=this.projectWebServiceHandler.warningNotificationEmitter.subscribe(function(t){e.showMessage({type:"warning",message:t})}),this.infoSubscription=this.projectWebServiceHandler.infoNotificationEmitter.subscribe(function(t){e.showMessage({type:"info",message:t})})},e.prototype.ngAfterViewInit=function(){this.console.nativeElement&&(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)(y.Y36(mQ),y.Y36(nH),y.Y36($z.G),y.Y36(SK),y.Y36(kM.wh),y.Y36(EP.f),y.Y36(y.sBO),y.Y36(fJ),y.Y36(y.sBO))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-log-console"]],viewQuery:function(e,t){var n;1&e&&y.Gf(xK,5),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"button",2),y._uU(3," Apply filter "),y.qZA(),y.TgZ(4,"mat-menu",3,4),y.TgZ(6,"button",5),y.NdJ("click",function(){return t.applyFilter("all")}),y._uU(7,"all"),y.qZA(),y.TgZ(8,"button",5),y.NdJ("click",function(){return t.applyFilter("errors")}),y._uU(9,"errors"),y.qZA(),y.TgZ(10,"button",5),y.NdJ("click",function(){return t.applyFilter("warnings")}),y._uU(11,"warnings"),y.qZA(),y.TgZ(12,"button",5),y.NdJ("click",function(){return t.applyFilter("info")}),y._uU(13,"info"),y.qZA(),y.TgZ(14,"button",5),y.NdJ("click",function(){return t.applyFilter("map updates")}),y._uU(15,"map updates"),y.qZA(),y.TgZ(16,"button",5),y.NdJ("click",function(){return t.applyFilter("server requests")}),y._uU(17,"server requests"),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(18,"div",6,7),y.YNc(20,CK,3,1,"span",8),y.qZA(),y.TgZ(21,"div",9),y.TgZ(22,"mat-icon",10),y._uU(23,"keyboard_arrow_right"),y.qZA(),y.TgZ(24,"input",11),y.NdJ("keydown",function(e){return t.onKeyDown(e)})("ngModelChange",function(e){return t.command=e}),y.qZA(),y.qZA()),2&e){var n=y.MAs(5);y.xp6(2),y.Q6J("ngClass",y.VKq(8,kK,t.isLightThemeEnabled))("matMenuTriggerFor",n),y.xp6(16),y.Q6J("ngClass",y.VKq(10,kK,t.isLightThemeEnabled))("ngStyle",t.style),y.xp6(2),y.Q6J("ngForOf",t.filteredEvents),y.xp6(1),y.Q6J("ngClass",y.VKq(12,kK,t.isLightThemeEnabled)),y.xp6(3),y.Q6J("ngClass",y.VKq(14,kK,t.isLightThemeEnabled))("ngModel",t.command)}},directives:[_.mk,Iq,Mq,kq,_.PC,_.sg,nO,st.Fj,st.JJ,st.On],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}(),AK=n(20039),ZK=n(3397),MK=n(97916),OK=["terminal"],EK=function(){function e(e,t){this.consoleService=e,this.themeService=t,this.term=new AK.Terminal,this.fitAddon=new MK.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),i=Math.floor(t.height/17);e.consoleService.setNumberOfColumns(n),e.consoleService.setNumberOfRows(i),e.term.resize(n,i)}),this.consoleService.getNumberOfColumns()&&this.consoleService.getNumberOfRows()&&this.term.resize(this.consoleService.getNumberOfColumns(),this.consoleService.getNumberOfRows())},e.prototype.ngAfterViewInit=function(){var e=this;this.term.open(this.terminal.nativeElement),this.isLightThemeEnabled&&this.term.setOption("theme",{background:"white",foreground:"black",cursor:"black"});var t=new WebSocket(this.consoleService.getUrl(this.server,this.node));t.onerror=function(t){e.term.write("Connection lost")},t.onclose=function(t){e.consoleService.closeConsoleForNode(e.node)};var n=new ZK.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.shiftKey})},e.\u0275fac=function(t){return new(t||e)(y.Y36(fJ),y.Y36(EP.f))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-web-console"]],viewQuery:function(e,t){var n;1&e&&y.Gf(OK,5),2&e&&y.iGM(n=y.CRH())&&(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&&y._UZ(0,"div",0,1)},styles:[".xterm{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 PK(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",10),y.NdJ("mousemove",function(e){return y.CHM(n),y.oxw().dragWidget(e)},!1,y.evT)("mouseup",function(){return y.CHM(n),y.oxw().toggleDragging(!1)},!1,y.evT),y.qZA()}}function IK(e,t){1&e&&(y.TgZ(0,"div",11),y._uU(1,"GNS3 console"),y.qZA())}var qK=function(e){return{lightThemeConsoleHeader:e}};function NK(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",11),y._uU(1),y.qZA(),y.TgZ(2,"button",7),y.NdJ("click",function(){y.CHM(n);var e=y.oxw().index;return y.oxw().removeTab(e)}),y.TgZ(3,"mat-icon"),y._uU(4,"close"),y.qZA(),y.qZA()}if(2&e){var i=y.oxw().$implicit,r=y.oxw();y.xp6(1),y.Oqu(i.name),y.xp6(1),y.Q6J("ngClass",y.VKq(2,qK,r.isLightThemeEnabled))}}function DK(e,t){if(1&e&&(y.TgZ(0,"mat-tab",12),y.YNc(1,NK,5,4,"ng-template",4),y.qZA()),2&e){var n=y.oxw();y.Q6J("label",n.tab)}}function RK(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",7),y.NdJ("click",function(){return y.CHM(n),y.oxw().minimize(!0)}),y.TgZ(1,"mat-icon"),y._uU(2,"remove"),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("ngClass",y.VKq(1,qK,i.isLightThemeEnabled))}}function LK(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",7),y.NdJ("click",function(){return y.CHM(n),y.oxw().minimize(!1)}),y.TgZ(1,"mat-icon"),y._uU(2,"web_asset"),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.Q6J("ngClass",y.VKq(1,qK,i.isLightThemeEnabled))}}function FK(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",13),y.NdJ("mouseover",function(e){return y.CHM(n),y.oxw().disableScroll(e)})("mouseout",function(e){return y.CHM(n),y.oxw().enableScroll(e)}),y._UZ(1,"app-web-console",14),y.qZA()}if(2&e){var i=t.index,r=y.oxw();y.Q6J("hidden",r.isMinimized),y.xp6(1),y.Q6J("hidden",!(r.selected.value===i+1))("server",r.server)("node",r.nodes[i])}}var BK=function(e){return{lightTheme:e}},jK=function(){return{right:!0,left:!0,bottom:!0,top:!0}},zK=function(){function e(e,t,n){this.consoleService=e,this.themeService=t,this.mapSettingsService=n,this.closeConsole=new y.vpe,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 st.NI(0)}return e.prototype.ngOnInit=function(){var e=this;this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.style={bottom:"20px",left:"80px",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:"80px",width:this.resizedWidth+"px",height:this.resizedHeight+"px"}},e.prototype.addTab=function(e,t){this.minimize(!1),this.nodes.push(e),t&&this.selected.setValue(this.nodes.length),this.consoleService.openConsoles++},e.prototype.removeTab=function(e){this.nodes.splice(e,1),this.consoleService.openConsoles--},e.prototype.toggleDragging=function(e){this.isDraggingEnabled=e},e.prototype.dragWidget=function(e){var t=Number(e.movementX),n=Number(e.movementY),i=Number(this.style.width.split("px")[0]),r=Number(this.style.height.split("px")[0]),o=Number(this.style.left.split("px")[0])+t;if(this.style.top){var a=Number(this.style.top.split("px")[0])+n;this.style={position:"fixed",left:o+"px",top:a+"px",width:i+"px",height:r+"px"}}else{var s=Number(this.style.bottom.split("px")[0])-n;this.style={position:"fixed",left:o+"px",bottom:s+"px",width:i+"px",height:r+"px"}}},e.prototype.validate=function(e){return!(e.rectangle.width&&e.rectangle.height&&(e.rectangle.width<500||e.rectangle.height<100))},e.prototype.onResizeEnd=function(e){this.style={position:"fixed",left:e.rectangle.left+"px",top:e.rectangle.top+"px",width:e.rectangle.width+"px",height:e.rectangle.height+"px"},this.styleInside={height:e.rectangle.height-60+"px",width:e.rectangle.width+"px"},this.consoleService.consoleResized.next({width:e.rectangle.width,height:e.rectangle.height-53}),this.resizedWidth=e.rectangle.width,this.resizedHeight=e.rectangle.height},e.prototype.close=function(){this.closeConsole.emit(!1)},e.prototype.enableScroll=function(e){this.mapSettingsService.isScrollDisabled.next(!1)},e.prototype.disableScroll=function(e){this.mapSettingsService.isScrollDisabled.next(!0)},e.\u0275fac=function(t){return new(t||e)(y.Y36(fJ),y.Y36(EP.f),y.Y36(rz))},e.\u0275cmp=y.Xpm({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&&(y.YNc(0,PK,1,0,"div",0),y.TgZ(1,"div",1),y.NdJ("mousedown",function(){return t.toggleDragging(!0)})("resizeStart",function(){return t.toggleDragging(!1)})("resizeEnd",function(e){return t.onResizeEnd(e)}),y.TgZ(2,"div",2),y.TgZ(3,"mat-tab-group",3),y.NdJ("selectedIndexChange",function(e){return t.selected.setValue(e)}),y.TgZ(4,"mat-tab"),y.YNc(5,IK,2,0,"ng-template",4),y.qZA(),y.YNc(6,DK,2,1,"mat-tab",5),y.qZA(),y.YNc(7,RK,3,3,"button",6),y.YNc(8,LK,3,3,"button",6),y.TgZ(9,"button",7),y.NdJ("click",function(){return t.close()}),y.TgZ(10,"mat-icon"),y._uU(11,"close"),y.qZA(),y.qZA(),y.qZA(),y._UZ(12,"app-log-console",8),y.YNc(13,FK,2,4,"div",9),y.qZA()),2&e&&(y.Q6J("ngIf",t.isDraggingEnabled),y.xp6(1),y.Q6J("ngClass",y.VKq(16,BK,t.isLightThemeEnabled))("ngStyle",t.style)("validateResize",t.validate)("resizeEdges",y.DdM(18,jK))("enableGhostResize",!0),y.xp6(1),y.Q6J("ngClass",y.VKq(19,qK,t.isLightThemeEnabled)),y.xp6(1),y.Q6J("selectedIndex",t.selected.value),y.xp6(3),y.Q6J("ngForOf",t.nodes),y.xp6(1),y.Q6J("ngIf",!t.isMinimized),y.xp6(1),y.Q6J("ngIf",t.isMinimized),y.xp6(1),y.Q6J("ngClass",y.VKq(21,qK,t.isLightThemeEnabled)),y.xp6(3),y.Q6J("hidden",!(0===t.selected.value)||t.isMinimized)("server",t.server)("project",t.project),y.xp6(1),y.Q6J("ngForOf",t.nodes))},directives:[_.O5,Qt.E$,_.mk,_.PC,MU.SP,MU.uX,MU.uD,_.sg,cO,nO,TK,EK],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:40px;left:80px;height:180px;width:600px;background:#000!important;color:#fff;overflow:hidden;font-size:12px;border-radius:8px}.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}(),UK=["topologySummaryContainer"];function HK(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"app-d3-map",38),y.NdJ("nodeDragged",function(e){return y.CHM(n),y.oxw(2).onNodeDragged(e)})("drawingDragged",function(e){return y.CHM(n),y.oxw(2).onDrawingDragged(e)})("onLinkCreated",function(e){return y.CHM(n),y.oxw(2).onLinkCreated(e)})("onDrawingResized",function(e){return y.CHM(n),y.oxw(2).onDrawingResized(e)}),y.qZA()}if(2&e){var i=y.oxw(2);y.Q6J("server",i.server)("project",i.project)("symbols",i.symbols)("nodes",i.nodes)("links",i.links)("drawings",i.drawings)("width",i.project.scene_width)("height",i.project.scene_height)("show-interface-labels",i.isInterfaceLabelVisible)("readonly",i.inReadOnlyMode)}}function YK(e,t){if(1&e&&y._UZ(0,"app-experimental-map",39),2&e){var n=y.oxw(2);y.Q6J("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 JK(e,t){1&e&&y._UZ(0,"mat-icon",40)}function GK(e,t){1&e&&y._UZ(0,"mat-icon",41)}var WK=function(e){return{lightTheme:e}},VK=function(e){return{selected:e}};function QK(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",42),y.TgZ(1,"app-template",43),y.NdJ("onNodeCreation",function(e){return y.CHM(n),y.oxw(2).onNodeCreation(e)}),y.qZA(),y.TgZ(2,"button",44),y.NdJ("click",function(){return y.CHM(n),y.oxw(2).toggleDrawLineMode()}),y.TgZ(3,"mat-icon"),y._uU(4,"timeline"),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw(2);y.Q6J("ngClass",y.VKq(5,WK,i.isLightThemeEnabled)),y.xp6(1),y.Q6J("server",i.server)("project",i.project),y.xp6(1),y.Q6J("ngClass",y.VKq(7,VK,i.tools.draw_link))("color",i.tools.draw_link?"primary":"basic")}}function XK(e,t){if(1&e&&(y.TgZ(0,"div",26),y._UZ(1,"app-snapshot-menu-item",12),y.qZA()),2&e){var n=y.oxw(2);y.xp6(1),y.Q6J("server",n.server)("project",n.project)}}function KK(e,t){if(1&e&&y._UZ(0,"app-draw-link-tool",45),2&e){var n=y.oxw(2);y.Q6J("links",n.links)}}function $K(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"app-console-wrapper",46),y.NdJ("closeConsole",function(e){return y.CHM(n),y.oxw(2).toggleShowConsole(e)}),y.qZA()}if(2&e){var i=y.oxw(2);y.Q6J("server",i.server)("project",i.project)}}var e$=function(e,t){return{unmarkedLight:e,marked:t}},t$=function(e){return["/server",e,"projects"]},n$=function(){return["/servers"]},i$=function(e){return{visible:e}};function r$(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"div",2),y.YNc(1,HK,1,10,"app-d3-map",3),y.YNc(2,YK,1,11,"app-experimental-map",4),y.TgZ(3,"div",5),y.TgZ(4,"button",6),y.YNc(5,JK,1,0,"mat-icon",7),y.YNc(6,GK,1,0,"mat-icon",8),y.qZA(),y.TgZ(7,"div",9),y.YNc(8,QK,5,9,"div",10),y.TgZ(9,"div",11),y._UZ(10,"app-nodes-menu",12),y._UZ(11,"app-context-menu",13),y.qZA(),y.qZA(),y.TgZ(12,"div"),y.TgZ(13,"button",14),y.NdJ("click",function(){y.CHM(n);var e=y.oxw();return e.toggleShowTopologySummary(!e.isTopologySummaryVisible)}),y.TgZ(14,"mat-icon"),y._uU(15,"toc"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(16,"mat-menu",15,16),y.TgZ(18,"button",17),y.TgZ(19,"mat-icon"),y._uU(20,"work"),y.qZA(),y.TgZ(21,"span"),y._uU(22,"Go to projects"),y.qZA(),y.qZA(),y.TgZ(23,"button",17),y.TgZ(24,"mat-icon"),y._uU(25,"developer_board"),y.qZA(),y.TgZ(26,"span"),y._uU(27,"Go to servers"),y.qZA(),y.qZA(),y.TgZ(28,"button",17),y.TgZ(29,"mat-icon"),y._uU(30,"settings_applications"),y.qZA(),y.TgZ(31,"span"),y._uU(32,"Go to preferences"),y.qZA(),y.qZA(),y.TgZ(33,"button",17),y.TgZ(34,"mat-icon"),y._uU(35,"info"),y.qZA(),y.TgZ(36,"span"),y._uU(37,"Go to system status"),y.qZA(),y.qZA(),y.TgZ(38,"button",18),y.TgZ(39,"mat-icon"),y._uU(40,"settings"),y.qZA(),y.TgZ(41,"span"),y._uU(42,"Go to settings"),y.qZA(),y.qZA(),y.TgZ(43,"button",19),y.NdJ("click",function(){return y.CHM(n),y.oxw().addNewTemplate()}),y.TgZ(44,"mat-icon"),y._uU(45,"control_point"),y.qZA(),y.TgZ(46,"span"),y._uU(47,"New template"),y.qZA(),y.qZA(),y._UZ(48,"app-import-appliance",12),y.TgZ(49,"button",20),y.TgZ(50,"mat-icon"),y._uU(51,"settings"),y.qZA(),y.TgZ(52,"span"),y._uU(53,"Project settings"),y.qZA(),y.qZA(),y.TgZ(54,"button",20),y.TgZ(55,"mat-icon"),y._uU(56,"view_module"),y.qZA(),y.TgZ(57,"span"),y._uU(58,"Map settings"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(59,"mat-menu",15,21),y.TgZ(61,"div"),y.TgZ(62,"button",19),y.NdJ("click",function(){return y.CHM(n),y.oxw().addNewProject()}),y.TgZ(63,"mat-icon"),y._uU(64,"add"),y.qZA(),y.TgZ(65,"span"),y._uU(66,"Add new blank project"),y.qZA(),y.qZA(),y.TgZ(67,"button",19),y.NdJ("click",function(){return y.CHM(n),y.oxw().saveProject()}),y.TgZ(68,"mat-icon"),y._uU(69,"save"),y.qZA(),y.TgZ(70,"span"),y._uU(71,"Save project as"),y.qZA(),y.qZA(),y.TgZ(72,"button",19),y.NdJ("click",function(){return y.CHM(n),y.oxw().editProject()}),y.TgZ(73,"mat-icon"),y._uU(74,"edit"),y.qZA(),y.TgZ(75,"span"),y._uU(76,"Edit project"),y.qZA(),y.qZA(),y.TgZ(77,"button",19),y.NdJ("click",function(){return y.CHM(n),y.oxw().exportProject()}),y.TgZ(78,"mat-icon"),y._uU(79,"call_made"),y.qZA(),y.TgZ(80,"span"),y._uU(81,"Export portable project"),y.qZA(),y.qZA(),y.TgZ(82,"button",19),y.NdJ("click",function(){return y.CHM(n),y.oxw().importProject()}),y.TgZ(83,"mat-icon"),y._uU(84,"call_received"),y.qZA(),y.TgZ(85,"span"),y._uU(86,"Import portable project"),y.qZA(),y.qZA(),y.TgZ(87,"button",19),y.NdJ("click",function(){return y.CHM(n),y.oxw().closeProject()}),y.TgZ(88,"mat-icon"),y._uU(89,"close"),y.qZA(),y.TgZ(90,"span"),y._uU(91,"Close project"),y.qZA(),y.qZA(),y.TgZ(92,"button",19),y.NdJ("click",function(){return y.CHM(n),y.oxw().deleteProject()}),y.TgZ(93,"mat-icon"),y._uU(94,"delete"),y.qZA(),y.TgZ(95,"span"),y._uU(96,"Delete project"),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(97,"mat-menu",15,22),y.TgZ(99,"div",23),y.TgZ(100,"mat-checkbox",24),y.NdJ("change",function(e){return y.CHM(n),y.oxw().toggleShowInterfaceLabels(e.checked)}),y._uU(101," Show interface labels "),y.qZA(),y._UZ(102,"br"),y.TgZ(103,"mat-checkbox",24),y.NdJ("change",function(e){return y.CHM(n),y.oxw().toggleShowConsole(e.checked)}),y._uU(104," Show console "),y.qZA(),y._UZ(105,"br"),y.TgZ(106,"mat-checkbox",24),y.NdJ("change",function(e){return y.CHM(n),y.oxw().toggleShowTopologySummary(e.checked)}),y._uU(107," Show topology/servers summary "),y.qZA(),y._UZ(108,"br"),y.TgZ(109,"mat-checkbox",24),y.NdJ("change",function(e){return y.CHM(n),y.oxw().toggleNotifications(e.checked)}),y._uU(110," Show notifications "),y.qZA(),y._UZ(111,"br"),y.TgZ(112,"mat-checkbox",24),y.NdJ("change",function(e){return y.CHM(n),y.oxw().toggleLayers(e.checked)}),y._uU(113," Show layers "),y.qZA(),y._UZ(114,"br"),y.TgZ(115,"mat-checkbox",24),y.NdJ("change",function(e){return y.CHM(n),y.oxw().toggleGrid(e.checked)}),y._uU(116," Show grid "),y.qZA(),y._UZ(117,"br"),y.TgZ(118,"mat-checkbox",24),y.NdJ("change",function(e){return y.CHM(n),y.oxw().toggleSnapToGrid(e.checked)}),y._uU(119," Snap to grid "),y.qZA(),y._UZ(120,"br"),y.TgZ(121,"mat-checkbox",24),y.NdJ("change",function(e){return y.CHM(n),y.oxw().toggleSymbolScaling(e.checked)}),y._uU(122," Scale symbols "),y.qZA(),y._UZ(123,"br"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(124,"div",25),y.TgZ(125,"div",26),y.TgZ(126,"button",27),y.NdJ("click",function(){return y.CHM(n),y.oxw().toggleMovingMode()}),y.TgZ(127,"mat-icon"),y._uU(128,"near_me"),y.qZA(),y.qZA(),y.TgZ(129,"button",28),y.NdJ("click",function(){return y.CHM(n),y.oxw().toggleMovingMode()}),y.TgZ(130,"mat-icon"),y._uU(131,"zoom_out_map"),y.qZA(),y.qZA(),y.TgZ(132,"button",29),y.NdJ("click",function(){return y.CHM(n),y.oxw().zoomIn()}),y.TgZ(133,"mat-icon"),y._uU(134,"zoom_in"),y.qZA(),y.qZA(),y.TgZ(135,"button",30),y.NdJ("click",function(){return y.CHM(n),y.oxw().resetZoom()}),y.TgZ(136,"mat-icon"),y._uU(137,"adjust"),y.qZA(),y.qZA(),y.TgZ(138,"button",31),y.NdJ("click",function(){return y.CHM(n),y.oxw().zoomOut()}),y.TgZ(139,"mat-icon"),y._uU(140,"zoom_out"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(141,"div",26),y._UZ(142,"app-project-map-menu",12),y.qZA(),y.YNc(143,XK,2,2,"div",32),y.qZA(),y._UZ(144,"app-progress"),y.YNc(145,KK,1,1,"app-draw-link-tool",33),y._UZ(146,"app-drawing-dragged",12),y._UZ(147,"app-drawing-resized",34),y._UZ(148,"app-interface-label-dragged",34),y._UZ(149,"app-link-created",12),y._UZ(150,"app-node-dragged",12),y._UZ(151,"app-node-label-dragged",34),y.TgZ(152,"app-text-added",35),y.NdJ("drawingSaved",function(){return y.CHM(n),y.oxw().onDrawingSaved()}),y.qZA(),y._UZ(153,"app-text-edited",34),y.TgZ(154,"div",36),y.YNc(155,$K,1,2,"app-console-wrapper",37),y.qZA(),y.qZA()}if(2&e){var i=y.MAs(17),r=y.MAs(60),o=y.MAs(98),a=y.oxw();y.Q6J("ngClass",y.VKq(53,WK,a.isLightThemeEnabled)),y.xp6(1),y.Q6J("ngIf",!a.settings.angular_map),y.xp6(1),y.Q6J("ngIf",a.settings.angular_map),y.xp6(1),y.Q6J("ngClass",y.VKq(55,WK,a.isLightThemeEnabled)),y.xp6(1),y.Q6J("matMenuTriggerFor",i),y.xp6(1),y.Q6J("ngIf",!a.isLightThemeEnabled),y.xp6(1),y.Q6J("ngIf",a.isLightThemeEnabled),y.xp6(2),y.Q6J("ngIf",!a.readonly),y.xp6(2),y.Q6J("server",a.server)("project",a.project),y.xp6(1),y.Q6J("project",a.project)("server",a.server),y.xp6(2),y.Q6J("ngClass",y.WLB(57,e$,!a.isTopologySummaryVisible&&a.isLightThemeEnabled,a.isTopologySummaryVisible)),y.xp6(3),y.Q6J("overlapTrigger",!1),y.xp6(2),y.Q6J("routerLink",y.VKq(60,t$,a.server.id)),y.xp6(5),y.Q6J("routerLink",y.DdM(62,n$)),y.xp6(5),y.MGl("routerLink","/server/",a.server.id,"/preferences"),y.xp6(5),y.MGl("routerLink","/server/",a.server.id,"/systemstatus"),y.xp6(15),y.Q6J("server",a.server)("project",a.project),y.xp6(1),y.Q6J("matMenuTriggerFor",r),y.xp6(5),y.Q6J("matMenuTriggerFor",o),y.xp6(5),y.Q6J("overlapTrigger",!1),y.xp6(38),y.Q6J("overlapTrigger",!1),y.xp6(3),y.Q6J("ngModel",a.isInterfaceLabelVisible),y.xp6(3),y.Q6J("ngModel",a.isConsoleVisible),y.xp6(3),y.Q6J("ngModel",a.isTopologySummaryVisible),y.xp6(3),y.Q6J("ngModel",a.notificationsVisibility),y.xp6(3),y.Q6J("ngModel",a.layersVisibility),y.xp6(3),y.Q6J("ngModel",a.gridVisibility),y.xp6(3),y.Q6J("ngModel",a.project.snap_to_grid),y.xp6(3),y.Q6J("ngModel",a.symbolScaling),y.xp6(3),y.Q6J("ngClass",y.VKq(63,WK,a.isLightThemeEnabled)),y.xp6(2),y.Q6J("color",a.tools.moving?"basic":"primary"),y.xp6(3),y.Q6J("color",a.tools.moving?"primary":"basic"),y.xp6(13),y.Q6J("server",a.server)("project",a.project),y.xp6(1),y.Q6J("ngIf",!a.readonly),y.xp6(2),y.Q6J("ngIf",a.tools.draw_link),y.xp6(1),y.Q6J("server",a.server)("project",a.project),y.xp6(1),y.Q6J("server",a.server),y.xp6(1),y.Q6J("server",a.server),y.xp6(1),y.Q6J("server",a.server)("project",a.project),y.xp6(1),y.Q6J("server",a.server)("project",a.project),y.xp6(1),y.Q6J("server",a.server),y.xp6(1),y.Q6J("server",a.server)("project",a.project),y.xp6(1),y.Q6J("server",a.server),y.xp6(1),y.Q6J("ngClass",y.VKq(65,i$,!a.isConsoleVisible)),y.xp6(1),y.Q6J("ngIf",a.project)}}function o$(e,t){}var a$=function(){function e(e,t,n,i,r,o,a,s,l,c,u,d,h,p,f,m,g,v,y,_,b,w,S,x,k,T,A,Z,M,O,E,P,I,q,N,D,R,L,F,B,j,z,U,H,Y,J,G,W){this.route=e,this.serverService=t,this.projectService=n,this.nodeService=i,this.drawingService=r,this.progressService=o,this.projectWebServiceHandler=a,this.mapChangeDetectorRef=s,this.nodeWidget=l,this.drawingsWidget=c,this.linkWidget=u,this.labelWidget=d,this.interfaceLabelWidget=h,this.mapNodeToNode=p,this.mapDrawingToDrawing=f,this.mapLabelToLabel=m,this.mapLinkToLink=g,this.mapLinkNodeToLinkNode=v,this.nodesDataSource=y,this.linksDataSource=_,this.drawingsDataSource=b,this.settingsService=w,this.toolsService=S,this.selectionManager=x,this.selectionTool=k,this.recentlyOpenedProjectService=T,this.movingEventSource=A,this.mapScaleService=Z,this.nodeCreatedLabelStylesFixer=M,this.toasterService=O,this.dialog=E,this.router=P,this.mapNodesDataSource=I,this.mapLinksDataSource=q,this.mapDrawingsDataSource=N,this.mapSymbolsDataSource=D,this.mapSettingsService=R,this.ethernetLinkWidget=L,this.serialLinkWidget=F,this.bottomSheet=B,this.notificationService=j,this.themeService=z,this.title=U,this.nodeConsoleService=H,this.symbolService=Y,this.cd=J,this.cfr=G,this.injector=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.symbolScaling=!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 C.w}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.symbolScaling=this.mapSettingsService.getSymbolScaling(),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.lazyLoadTopologySummary=function(){return(0,LO.mG)(this,void 0,void 0,function(){var e,t;return(0,LO.Jh)(this,function(i){switch(i.label){case 0:return this.isTopologySummaryVisible?[4,n.e(26).then(n.bind(n,91026))]:[3,2];case 1:return e=i.sent().TopologySummaryComponent,t=this.cfr.resolveComponentFactory(e),this.instance=this.topologySummaryContainer.createComponent(t,null,this.injector),this.instance.instance.server=this.server,this.instance.instance.project=this.project,[3,3];case 2:this.instance&&this.instance.instance&&(this.instance.instance.ngOnDestroy(),this.instance.destroy()),i.label=3;case 3:return[2]}})})},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){return(0,LO.mG)(e,void 0,void 0,function(){return(0,LO.Jh)(this,function(e){return t.symbol_url=this.server.protocol+"//"+this.server.host+":"+this.server.port+"/v2/symbols/"+t.symbol+"/raw",[2]})})}),e.nodes=t,e.mapSettingsService.getSymbolScaling()&&e.applyScalingOfNodeSymbols(),e.mapChangeDetectorRef.detectChanges())})),this.projectMapSubscription.add(this.linksDataSource.changes.subscribe(function(t){e.links=t,e.mapChangeDetectorRef.detectChanges()})),this.projectMapSubscription.add(this.projectWebServiceHandler.errorNotificationEmitter.subscribe(function(t){e.showMessage({type:"error",message:t})})),this.projectMapSubscription.add(this.projectWebServiceHandler.warningNotificationEmitter.subscribe(function(t){e.showMessage({type:"warning",message:t})})),this.projectMapSubscription.add(this.mapSettingsService.symbolScalingSubject.subscribe(function(t){t&&e.applyScalingOfNodeSymbols()}))},e.prototype.applyScalingOfNodeSymbols=function(){var e=this;this.nodesDataSource.getItems().forEach(function(t){if(t.height>e.symbolService.getMaximumSymbolSize()){var n=e.symbolService.scaleDimensionsForNode(t);t.width=n.width,t.height=n.height}})},e.prototype.getData=function(){var e=this,t=this.route.paramMap.subscribe(function(t){var n=parseInt(t.get("server_id"),10);(0,we.D)(e.serverService.get(n)).pipe((0,jt.zg)(function(n){return n||e.router.navigate(["/servers"]),e.server=n,e.projectService.get(n,t.get("project_id")).pipe((0,E.U)(function(e){return e}))}),(0,jt.zg)(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.toggleShowTopologySummary(e.mapSettingsService.isTopologySummaryVisible),e.recentlyOpenedProjectService.setServerId(e.server.id.toString()),e.recentlyOpenedProjectService.setProjectId(e.project.project_id),"opened"===e.project.status?new A.y(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;KB.bind("ctrl++",function(t){t.preventDefault(),e.zoomIn()}),KB.bind("ctrl+-",function(t){t.preventDefault(),e.zoomOut()}),KB.bind("ctrl+0",function(t){t.preventDefault(),e.resetZoom()}),KB.bind("ctrl+a",function(t){t.preventDefault();var n=e.mapNodesDataSource.getItems(),i=e.mapDrawingsDataSource.getItems(),r=e.mapLinksDataSource.getItems(),o=e.mapSymbolsDataSource.getItems();e.selectionManager.setSelected(n.concat(i).concat(r).concat(o))}),KB.bind("ctrl+h",function(t){t.preventDefault(),e.toolbarVisibility=!e.toolbarVisibility}),KB.bind("ctrl+shift+a",function(t){t.preventDefault(),e.selectionManager.setSelected([])}),KB.bind("ctrl+shift+s",function(t){t.preventDefault(),e.router.navigate(["/server",e.server.id,"preferences"])}),KB.bind("del",function(t){t.preventDefault(),e.deleteItems()})},e.prototype.deleteItems=function(){var e=this;this.bottomSheet.open(AU);var t=this.bottomSheet._openedBottomSheetRef;t.instance.message="Do you want to delete all selected objects?",t.afterDismissed().subscribe(function(t){t&&e.selectionManager.getSelected().filter(function(e){return e instanceof oj}).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((0,jt.zg)(function(n){return t.nodesDataSource.set(n),t.projectService.links(t.server,e.project_id)}),(0,jt.zg)(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.notificationService.projectNotificationsPath(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.screenY-60,t.event.screenX)}),n=this.ethernetLinkWidget.onContextMenu.subscribe(function(t){var n=e.mapLinkToLink.convert(t.link);e.contextMenu.openMenuForListOfElements([],[],[],[n],t.event.screenY-60,t.event.screenX)}),i=this.serialLinkWidget.onContextMenu.subscribe(function(t){var n=e.mapLinkToLink.convert(t.link);e.contextMenu.openMenuForListOfElements([],[],[],[n],t.event.screenY-60,t.event.screenX)}),r=this.nodeWidget.onContextMenu.subscribe(function(t){var n=e.mapNodeToNode.convert(t.node);e.contextMenu.openMenuForNode(n,t.event.screenY-60,t.event.screenX)}),o=this.drawingsWidget.onContextMenu.subscribe(function(t){var n=e.mapDrawingToDrawing.convert(t.drawing);e.contextMenu.openMenuForDrawing(n,t.event.screenY-60,t.event.screenX)}),a=this.labelWidget.onContextMenu.subscribe(function(t){var n=e.mapLabelToLabel.convert(t.label),i=e.nodes.find(function(e){return e.node_id===t.label.nodeId});e.contextMenu.openMenuForLabel(n,i,t.event.screenY-60,t.event.screenX)}),s=this.interfaceLabelWidget.onContextMenu.subscribe(function(t){var n=e.mapLinkNodeToLinkNode.convert(t.interfaceLabel),i=e.links.find(function(e){return e.link_id===t.interfaceLabel.linkId});e.contextMenu.openMenuForInterfaceLabel(n,i,t.event.screenY-60,t.event.screenX)}),l=this.selectionTool.contextMenuOpened.subscribe(function(t){var n=e.selectionManager.getSelected();if(!(n.length<2)&&t instanceof MouseEvent){var i=[],r=[],o=[],a=[];n.forEach(function(t){t instanceof _j?i.push(e.mapDrawingToDrawing.convert(t)):t instanceof oj?r.push(e.mapNodeToNode.convert(t)):t instanceof aj?o.push(e.mapLabelToLabel.convert(t)):t instanceof mj&&a.push(e.mapLinkToLink.convert(t))}),e.contextMenu.openMenuForListOfElements(i,r,o,a,t.pageY,t.pageX)}});this.projectMapSubscription.add(t),this.projectMapSubscription.add(n),this.projectMapSubscription.add(i),this.projectMapSubscription.add(r),this.projectMapSubscription.add(o),this.projectMapSubscription.add(l),this.projectMapSubscription.add(a),this.projectMapSubscription.add(s),this.mapChangeDetectorRef.detectChanges()},e.prototype.onNodeCreation=function(e){var t=this;e&&(e.x=e.x/this.mapScaleService.getScale(),e.y=e.y/this.mapScaleService.getScale(),this.progressService.activate(),this.nodeService.createFromTemplate(this.server,this.project,e.template,e.x,e.y,e.server).subscribe(function(n){t.projectService.nodes(t.server,t.project.project_id).subscribe(function(n){n.filter(function(e){return null===e.label.style}).forEach(function(e){var n=t.nodeCreatedLabelStylesFixer.fix(e);t.nodeService.updateLabel(t.server,e,n.label).subscribe()}),t.nodesDataSource.set(n),e.numberOfNodes--,e.numberOfNodes>0?(e.x=e.x+50<t.project.scene_width/2?e.x+50:e.x,e.y=e.y+50<t.project.scene_height/2?e.y+50:e.y,t.onNodeCreation(e)):t.progressService.deactivate()})},function(e){t.toasterService.error(e.error.message),t.progressService.deactivate()}))},e.prototype.fitInView=function(){if(this.drawings.forEach(function(e){var t=e.svg.split('"'),n=parseInt(t[1],10),i=parseInt(t[3],10);e.element={width:i,height:n}}),0!==this.nodes.length||0!==this.drawings.length){var e,t,n,i,r=[];this.nodes.forEach(function(e){var t=new s$;t.node=e,t.top=e.y,t.left=e.x,t.bottom=e.y+e.height,t.right=e.x+e.width,e.y+e.label.y<t.top&&(t.top=e.y+e.label.y),e.x+e.label.x<t.left&&(t.left=e.x+e.label.x),e.y+e.label.y>t.bottom&&(t.bottom=e.y+e.label.y),e.x+e.label.x>t.right&&(t.right=e.x+e.label.x),r.push(t)});var o=r.sort(function(e,t){return e.left-t.left})[0],a=r.sort(function(e,t){return e.right-t.right})[r.length-1],s=r.sort(function(e,t){return e.top-t.top})[0],l=r.sort(function(e,t){return e.bottom-t.bottom})[r.length-1],c=[];this.drawings.forEach(function(e){var t=new l$;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,c.push(t)});var u=c.sort(function(e,t){return e.left-t.left})[0],d=c.sort(function(e,t){return e.right-t.right})[c.length-1],h=c.sort(function(e,t){return e.top-t.top})[0],p=c.sort(function(e,t){return e.bottom-t.bottom})[c.length-1];u&&o?(e=o.left<u.left?o.left:u.left,t=a.right>d.right?a.right:d.right,n=s.top<h.top?s.top:h.top,i=l.bottom>p.bottom?l.bottom:p.bottom):o&&!u?(e=o.left,t=a.right,n=s.top,i=l.bottom):u&&!o?(e=u.left,t=d.right,n=h.top,i=p.bottom):(e=0,t=0,n=0,i=0),e-=20,t+=20,n-=20,i+=20;var f=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,m=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,g=t-e,v=i-n,y=v/m,_=1/Math.max(g/f,y);_!==this.mapScaleService.currentScale?(this.mapScaleService.setScale(_),this.project.scene_width=this.project.scene_width*_,this.project.scene_height=this.project.scene_height*_,y<g?(this.scrollX=e*_-(f-g*_)/2+this.project.scene_width/2,this.scrollY=n*_+this.project.scene_height/2):(this.scrollX=e*_+this.project.scene_width/2,this.scrollY=n*_-(m-v*_)/2+this.project.scene_height/2)):(this.scrollX=e*_+this.project.scene_width/2,this.scrollY=n*_+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.toggleSymbolScaling=function(e){this.symbolScaling=e,this.mapSettingsService.setSymbolScaling(e)},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),this.lazyLoadTopologySummary()},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(gU,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.server=this.server},e.prototype.saveProject=function(){var e=this.dialog.open(XU,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;e.server=this.server,e.project=this.project},e.prototype.editProject=function(){var e=this.dialog.open(FU,{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(YU,{width:"400px",autoFocus:!1,disableClose:!0});n.componentInstance.server=this.server;var i=n.componentInstance.onImportProject.subscribe(function(e){t=e});n.afterClosed().subscribe(function(){if(i.unsubscribe(),t){e.bottomSheet.open(GU);var n=e.bottomSheet._openedBottomSheetRef;n.instance.projectMessage="imported project",n.afterDismissed().subscribe(function(n){n&&e.projectService.open(e.server,t).subscribe(function(){e.router.navigate(["/server",e.server.id,"project",t])})})}})},e.prototype.exportProject=function(){this.nodes.filter(function(e){return"virtualbox"===e.node_type}).length>0?this.toasterService.error("Map with VirtualBox machines cannot be exported."):this.nodes.filter(function(e){return"started"===e.status&&"vpcs"===e.node_type||"started"===e.status&&"virtualbox"===e.node_type||"started"===e.status&&"vmware"===e.node_type}).length>0?this.toasterService.error("Project with running nodes cannot be exported."):location.assign(this.projectService.getExportPath(this.server,this.project))},e.prototype.uploadImageFile=function(e){this.readImageFile(e.target)},e.prototype.readImageFile=function(e){var t=this,n=e.files[0],i=new FileReader,r=new Image;i.onloadend=function(){t.drawingService.add(t.server,t.project.project_id,-r.width/2,-r.height/2,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" \n height="'+r.height+'" width="'+r.width+'">\n<image height="'+r.height+'" width="'+r.width+'" \n xlink:href="'+i.result+'"/>\n</svg>').subscribe(function(){})},r.onload=function(){i.readAsDataURL(n)},r.src=window.URL.createObjectURL(n)},e.prototype.closeProject=function(){var e=this;this.bottomSheet.open(AU);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(AU);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(_V,{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)(y.Y36(CA),y.Y36(TM),y.Y36(dU.Y),y.Y36(nH),y.Y36(kJ),y.Y36(ZM),y.Y36(mQ),y.Y36(Ej),y.Y36(oz),y.Y36(Dz),y.Y36(mz),y.Y36(nz),y.Y36(Qj),y.Y36(wQ),y.Y36(xQ),y.Y36(yQ),y.Y36(AQ),y.Y36(TQ),y.Y36($z.G),y.Y36(Kz.F),y.Y36(TJ),y.Y36(vJ.g),y.Y36(Fz),y.Y36(Vj),y.Y36($j),y.Y36(ZQ.p),y.Y36(jz),y.Y36(Bz),y.Y36(MQ),y.Y36(KO),y.Y36(aq),y.Y36(KZ),y.Y36(tj),y.Y36(nj),y.Y36(ij),y.Y36(rj),y.Y36(rz),y.Y36(hz),y.Y36(fz),y.Y36(kU),y.Y36(OQ),y.Y36(EP.f),y.Y36(o.Dx),y.Y36(fJ),y.Y36(vI),y.Y36(y.sBO),y.Y36(y._Vd),y.Y36(y.zs3))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-project-map"]],viewQuery:function(e,t){if(1&e&&(y.Gf($G,5),y.Gf(aU,5),y.Gf(fQ,5),y.Gf(UK,5,y.s_b)),2&e){var n=void 0;y.iGM(n=y.CRH())&&(t.contextMenu=n.first),y.iGM(n=y.CRH())&&(t.mapChild=n.first),y.iGM(n=y.CRH())&&(t.projectMapMenuComponent=n.first),y.iGM(n=y.CRH())&&(t.topologySummaryContainer=n.first)}},decls:3,vars:1,consts:[["class","project-map",3,"ngClass",4,"ngIf"],["topologySummaryContainer",""],[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","mat-icon-button","",1,"zoom-button",3,"click"],["matTooltip","Reset zoom","matTooltipClass","custom-tooltip","mat-icon-button","",1,"reset-zoom-button",3,"click"],["matTooltip","Zoom out","matTooltipClass","custom-tooltip","mat-icon-button","",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","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"]],template:function(e,t){1&e&&(y.YNc(0,r$,156,67,"div",0),y.YNc(1,o$,0,0,"ng-template",null,1,y.W1O)),2&e&&y.Q6J("ngIf",t.project)},directives:[_.O5,_.mk,cO,MO,Iq,EQ,$G,nO,Mq,kq,eM,PQ,XD,st.JJ,st.On,fQ,DO,IQ,qQ,NQ,DQ,RQ,LQ,FQ,BQ,aU,FX,eK,pK,bK,zK],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:18px!important}#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}(),s$=function(){return function(){}}(),l$=function(){return function(){}}(),c$=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)(y.Y36($I))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"span",0),y._uU(1),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"button",2),y.NdJ("click",function(){return t.onNoClick()}),y._uU(4,"No"),y.qZA(),y.TgZ(5,"button",3),y.NdJ("click",function(){return t.onYesClick()}),y._uU(6," Yes "),y.qZA(),y.qZA()),2&e&&(y.xp6(1),y.Oqu(t.message))},directives:[uq,cO],styles:[""]}),e}(),u$=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)(y.Y36($I),y.Y36(dU.Y))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"h1",0),y._uU(1,"Please choose name for exporting project"),y.qZA(),y.TgZ(2,"div",1),y.TgZ(3,"mat-form-field",2),y.TgZ(4,"input",3),y.NdJ("ngModelChange",function(e){return t.name=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"button",5),y.NdJ("click",function(){return t.onCloseClick()}),y._uU(7,"Cancel"),y.qZA(),y.TgZ(8,"button",6),y.NdJ("click",function(){return t.onSaveClick()}),y._uU(9,"Apply"),y.qZA(),y.qZA()),2&e&&(y.xp6(4),y.Q6J("ngModel",t.name))},directives:[lq,sE.KE,mE,st.Fj,st.JJ,st.On,uq,cO],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function d$(e,t){1&e&&(y.TgZ(0,"mat-header-cell",21),y._uU(1," Name "),y.qZA())}var h$=function(e,t){return["/server",e,"project",t]};function p$(e,t){if(1&e&&(y.TgZ(0,"mat-cell"),y.TgZ(1,"a",22),y._uU(2),y.qZA(),y.qZA()),2&e){var n=t.$implicit,i=y.oxw();y.xp6(1),y.Q6J("routerLink",y.WLB(2,h$,i.server.id,n.project_id)),y.xp6(1),y.Oqu(n.name)}}function f$(e,t){1&e&&(y.TgZ(0,"mat-header-cell"),y._uU(1," Actions "),y.qZA())}function m$(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",28),y.NdJ("click",function(){y.CHM(n);var e=y.oxw().$implicit;return y.oxw().open(e)}),y.TgZ(1,"mat-icon",29),y._uU(2,"play_arrow"),y.qZA(),y.qZA()}}function g$(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",30),y.NdJ("click",function(){y.CHM(n);var e=y.oxw().$implicit;return y.oxw().close(e)}),y.TgZ(1,"mat-icon",31),y._uU(2,"pause"),y.qZA(),y.qZA()}}function v$(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",32),y.NdJ("click",function(){y.CHM(n);var e=y.oxw().$implicit;return y.oxw().duplicate(e)}),y.TgZ(1,"mat-icon",33),y._uU(2,"filter_2"),y.qZA(),y.qZA()}}function y$(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",34),y.NdJ("click",function(){y.CHM(n);var e=y.oxw().$implicit;return y.oxw().delete(e)}),y.TgZ(1,"mat-icon",35),y._uU(2,"delete"),y.qZA(),y.qZA()}}function _$(e,t){if(1&e&&(y.TgZ(0,"mat-cell",23),y.YNc(1,m$,3,0,"button",24),y.YNc(2,g$,3,0,"button",25),y.YNc(3,v$,3,0,"button",26),y.YNc(4,y$,3,0,"button",27),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.Q6J("ngIf","closed"==n.status),y.xp6(1),y.Q6J("ngIf","opened"==n.status),y.xp6(1),y.Q6J("ngIf","closed"==n.status),y.xp6(1),y.Q6J("ngIf","closed"==n.status)}}function b$(e,t){1&e&&y._UZ(0,"mat-header-row")}function w$(e,t){1&e&&y._UZ(0,"mat-row")}var S$=function(){return{standalone:!0}},x$=function(){function e(e,t,n,i,r,o,a,s,l,c){this.route=e,this.projectService=t,this.settingsService=n,this.progressService=i,this.dialog=r,this.router=o,this.bottomSheet=a,this.toasterService=s,this.electronService=l,this.recentlyOpenedProjectService=c,this.projectDatabase=new C$,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 k$(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(c$,{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(AU);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(AU);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(u$,{width:"400px",autoFocus:!1,disableClose:!0}),i=n.componentInstance;i.server=this.server,i.project=e,n.afterClosed().subscribe(function(){t.refresh()})},e.prototype.addBlankProject=function(){this.dialog.open(gU,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.server=this.server},e.prototype.importProject=function(){var e=this,t="",n=this.dialog.open(YU,{width:"400px",autoFocus:!1,disableClose:!0});n.componentInstance.server=this.server;var i=n.componentInstance.onImportProject.subscribe(function(e){t=e});n.afterClosed().subscribe(function(){if(e.refresh(),i.unsubscribe(),t){e.bottomSheet.open(GU);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)(y.Y36(CA),y.Y36(dU.Y),y.Y36(vJ.g),y.Y36(ZM),y.Y36(aq),y.Y36(KZ),y.Y36(kU),y.Y36(KO),y.Y36(eT),y.Y36(ZQ.p))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-projects"]],viewQuery:function(e,t){var n;1&e&&y.Gf(MW,7),2&e&&y.iGM(n=y.CRH())&&(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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Projects"),y.qZA(),y.TgZ(5,"button",4),y.NdJ("click",function(){return t.goToPreferences()}),y._uU(6,"Go to preferences"),y.qZA(),y.TgZ(7,"button",5),y.NdJ("click",function(){return t.addBlankProject()}),y._uU(8," Add blank project "),y.qZA(),y.TgZ(9,"button",6),y.NdJ("click",function(){return t.importProject()}),y._uU(10," Import project "),y.qZA(),y.qZA(),y.qZA(),y.TgZ(11,"form"),y.TgZ(12,"mat-form-field",7),y.TgZ(13,"input",8),y.NdJ("ngModelChange",function(e){return t.searchText=e}),y.qZA(),y.qZA(),y.qZA(),y.TgZ(14,"div",9),y.TgZ(15,"div",10),y.TgZ(16,"mat-table",11,12),y.ALo(18,"projectsfilter"),y.ynx(19,13),y.YNc(20,d$,2,0,"mat-header-cell",14),y.YNc(21,p$,3,5,"mat-cell",15),y.BQk(),y.ynx(22,16),y.YNc(23,f$,2,0,"mat-header-cell",17),y.YNc(24,_$,5,4,"mat-cell",18),y.BQk(),y.YNc(25,b$,1,0,"mat-header-row",19),y.YNc(26,w$,1,0,"mat-row",20),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(13),y.Q6J("ngModel",t.searchText)("ngModelOptions",y.DdM(8,S$)),y.xp6(3),y.Q6J("dataSource",y.xi3(18,5,t.dataSource,t.searchText)),y.xp6(9),y.Q6J("matHeaderRowDef",t.displayedColumns),y.xp6(1),y.Q6J("matRowDefColumns",t.displayedColumns))},styles:[".add-button[_ngcontent-%COMP%], .import-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.row[_ngcontent-%COMP%]{display:flex}"]}),e}(),C$=function(){function e(){this.dataChange=new Se.X([])}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}(),k$=function(e){function t(t,n){var i=e.call(this)||this;return i.projectDatabase=t,i.sort=n,i}return(0,LO.ZT)(t,e),t.prototype.connect=function(){var e=this;return Z.T.apply(void 0,[this.projectDatabase.dataChange,this.sort.sortChange]).pipe((0,E.U)(function(){return e.sort.active&&""!==e.sort.direction?e.projectDatabase.data.sort(function(t,n){var i=t[e.sort.active],r=n[e.sort.active];return((isNaN(+i)?i:+i)<(isNaN(+r)?r:+r)?-1:1)*("asc"===e.sort.direction?1:-1)}):e.projectDatabase.data}))},t.prototype.disconnect=function(){},t}(be.o2);function T$(e,t){1&e&&(y.TgZ(0,"mat-error"),y._uU(1,"You must enter a value"),y.qZA())}function A$(e,t){if(1&e&&(y.TgZ(0,"mat-option",13),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.key),y.xp6(1),y.hij(" ",n.name," ")}}function Z$(e,t){1&e&&(y.TgZ(0,"mat-form-field"),y._UZ(1,"input",14),y.qZA())}function M$(e,t){1&e&&(y.TgZ(0,"mat-form-field"),y._UZ(1,"input",15),y.qZA())}function O$(e,t){if(1&e&&(y.TgZ(0,"mat-option",13),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.key),y.xp6(1),y.hij(" ",n.name," ")}}function E$(e,t){if(1&e&&(y.TgZ(0,"mat-option",13),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.Q6J("value",n.key),y.xp6(1),y.hij(" ",n.name," ")}}function P$(e,t){if(1&e&&(y.TgZ(0,"mat-form-field"),y.TgZ(1,"mat-select",16),y.YNc(2,E$,2,2,"mat-option",6),y.qZA(),y.qZA()),2&e){var n=y.oxw();y.xp6(2),y.Q6J("ngForOf",n.authorizations)}}function I$(e,t){1&e&&(y.TgZ(0,"mat-form-field"),y._UZ(1,"input",17),y.qZA())}function q$(e,t){1&e&&(y.TgZ(0,"mat-form-field"),y._UZ(1,"input",18),y.qZA())}var N$=function(){function e(e,t,n,i,r){this.dialogRef=e,this.electronService=t,this.serverService=n,this.toasterService=i,this.data=r,this.authorizations=[{key:"none",name:"No authorization"},{key:"basic",name:"Basic authorization"}],this.protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}],this.locations=[],this.serverForm=new st.cw({name:new st.NI("",[st.kI.required]),location:new st.NI(""),path:new st.NI(""),ubridge_path:new st.NI(""),host:new st.NI("",[st.kI.required]),port:new st.NI("",[st.kI.required,st.kI.min(1)]),protocol:new st.NI("http:"),authorization:new st.NI("none"),login:new st.NI(""),password:new st.NI("")})}return e.prototype.getLocations=function(){return(0,LO.mG)(this,void 0,void 0,function(){var e,t;return(0,LO.Jh)(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(0,LO.mG)(this,void 0,void 0,function(){var e;return(0,LO.Jh)(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(0,LO.mG)(this,void 0,void 0,function(){return(0,LO.Jh)(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(0,LO.mG)(this,void 0,void 0,function(){return(0,LO.Jh)(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(0,LO.mG)(this,void 0,void 0,function(){return(0,LO.Jh)(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(0,LO.mG)(this,void 0,void 0,function(){var e,t,n,i,r=this;return(0,LO.Jh)(this,function(o){switch(o.label){case 0:return e=this,[4,this.getLocations()];case 1:return e.locations=o.sent(),[4,this.getDefaultLocalServerPath()];case 2:return t=o.sent(),[4,this.getDefaultUbridgePath()];case 3:return n=o.sent(),this.serverForm.get("location").valueChanges.subscribe(function(e){var i=r.serverForm.get("path"),o=r.serverForm.get("ubridge_path");"local"===e?(i.setValue(t),i.setValidators([st.kI.required]),o.setValue(n),o.setValidators([st.kI.required])):(i.setValue(""),i.clearValidators(),o.setValue(""),o.clearValidators()),[i,o].forEach(function(e){e.updateValueAndValidity({onlySelf:!0})})}),this.serverForm.get("authorization").valueChanges.subscribe(function(e){var t=r.serverForm.get("login"),n=r.serverForm.get("password");"none"===e?(t.clearValidators(),n.clearValidators()):(t.setValidators([st.kI.required]),n.setValidators([st.kI.required])),[t,n].forEach(function(e){e.updateValueAndValidity({onlySelf:!0})})}),[4,this.getDefaultLocation()];case 4:return i=o.sent(),this.serverForm.get("location").setValue(i),this.serverForm.get("host").setValue(this.getDefaultHost()),this.serverForm.get("port").setValue(this.getDefaultPort()),this.serverForm.get("authorization").setValue("none"),[2]}})})},e.prototype.onAddClick=function(){var e=this;if(this.serverForm.valid){var t=Object.assign({},this.serverForm.value);this.serverService.checkServerVersion(t).subscribe(function(n){n.version.split(".")[1]>=2&&n.version.split(".")[0]>=2?(e.dialogRef.close(t),e.toasterService.success("Server "+t.name+" added.")):(e.dialogRef.close(),e.toasterService.error("Server version is not supported."))},function(t){e.toasterService.error("Cannot connect to the server: "+t)})}},e.prototype.onNoClick=function(){this.dialogRef.close()},e.\u0275fac=function(t){return new(t||e)(y.Y36($I),y.Y36(eT),y.Y36(TM),y.Y36(KO),y.Y36(tq))},e.\u0275cmp=y.Xpm({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","","type","password","tabindex","1","formControlName","password","placeholder","Password"]],template:function(e,t){1&e&&(y.TgZ(0,"h1",0),y._uU(1,"Add server"),y.qZA(),y.TgZ(2,"form",1),y.TgZ(3,"div",2),y.TgZ(4,"mat-form-field"),y._UZ(5,"input",3),y.YNc(6,T$,2,0,"mat-error",4),y.qZA(),y.TgZ(7,"mat-form-field"),y.TgZ(8,"mat-select",5),y.YNc(9,A$,2,2,"mat-option",6),y.qZA(),y.qZA(),y.YNc(10,Z$,2,0,"mat-form-field",4),y.YNc(11,M$,2,0,"mat-form-field",4),y.TgZ(12,"mat-form-field"),y._UZ(13,"input",7),y.qZA(),y.TgZ(14,"mat-form-field"),y._UZ(15,"input",8),y.qZA(),y.TgZ(16,"mat-form-field"),y.TgZ(17,"mat-select",9),y.YNc(18,O$,2,2,"mat-option",6),y.qZA(),y.qZA(),y.YNc(19,P$,3,1,"mat-form-field",4),y.YNc(20,I$,2,0,"mat-form-field",4),y.YNc(21,q$,2,0,"mat-form-field",4),y.qZA(),y.TgZ(22,"div",10),y.TgZ(23,"button",11),y.NdJ("click",function(){return t.onNoClick()}),y._uU(24,"Cancel"),y.qZA(),y.TgZ(25,"button",12),y.NdJ("click",function(){return t.onAddClick()}),y._uU(26,"Add"),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(2),y.Q6J("formGroup",t.serverForm),y.xp6(4),y.Q6J("ngIf",t.serverForm.get("name").hasError("required")),y.xp6(3),y.Q6J("ngForOf",t.locations),y.xp6(1),y.Q6J("ngIf","local"===t.serverForm.get("location").value),y.xp6(1),y.Q6J("ngIf","local"===t.serverForm.get("location").value),y.xp6(7),y.Q6J("ngForOf",t.protocols),y.xp6(1),y.Q6J("ngIf","remote"===t.serverForm.get("location").value),y.xp6(1),y.Q6J("ngIf","basic"===t.serverForm.get("authorization").value),y.xp6(1),y.Q6J("ngIf","basic"===t.serverForm.get("authorization").value))},directives:[lq,st._Y,st.JL,st.sg,cq,sE.KE,mE,st.Fj,st.JJ,st.u,_.O5,vE.gD,_.sg,uq,cO,sE.TO,lt.ey],encapsulation:2}),e}(),D$=function(){function e(e){var t=this;this.electronService=e,this.serverStatusChanged=new x.xQ,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(0,LO.mG)(this,void 0,void 0,function(){return(0,LO.Jh)(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(0,LO.mG)(this,void 0,void 0,function(){return(0,LO.Jh)(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(0,LO.mG)(this,void 0,void 0,function(){return(0,LO.Jh)(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.\u0275fac=function(t){return new(t||e)(y.LFG(eT))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),R$=n(53628),L$=function(){function e(e){this.httpServer=e}return e.prototype.get=function(e){return this.httpServer.get(e,"/version")},e.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}();function F$(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-card",2),y.TgZ(1,"mat-card-content",3),y._uU(2," We've discovered GNS3 server on "),y.TgZ(3,"b"),y._uU(4),y.qZA(),y._uU(5,", would you like to add to the list? "),y.qZA(),y.TgZ(6,"mat-card-actions",4),y.TgZ(7,"button",5),y.NdJ("click",function(){y.CHM(n);var e=y.oxw();return e.ignore(e.discoveredServer)}),y._uU(8,"NO"),y.qZA(),y.TgZ(9,"button",6),y.NdJ("click",function(){y.CHM(n);var e=y.oxw();return e.accept(e.discoveredServer)}),y._uU(10,"YES"),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=y.oxw();y.xp6(4),y.AsE("",i.discoveredServer.host,":",i.discoveredServer.port,"")}}function B$(e,t){1&e&&y._UZ(0,"mat-divider")}var j$=function(){function e(e,t,n,i){this.versionService=e,this.serverService=t,this.serverDatabase=n,this.route=i,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(0,LO.mG)(e,void 0,void 0,function(){return(0,LO.Jh)(this,function(e){return t&&this.discoverFirstServer(),[2]})})})},e.prototype.discoverFirstServer=function(){return(0,LO.mG)(this,void 0,void 0,function(){var e;return(0,LO.Jh)(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(0,LO.mG)(this,void 0,void 0,function(){var e,t=this;return(0,LO.Jh)(this,function(n){return e=[],this.defaultServers.forEach(function(n){return(0,LO.mG)(t,void 0,void 0,function(){var t;return(0,LO.Jh)(this,function(i){switch(i.label){case 0:return(t=new CM).host=n.host,t.port=n.port,[4,this.versionService.get(t).toPromise().catch(function(e){return null})];case 1:return i.sent()&&e.push(t),[2]}})})}),[2,e]})})},e.prototype.discoverFirstAvailableServer=function(){var e=this;(0,BM.D)([(0,we.D)(this.serverService.findAll()).pipe((0,E.U)(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 R$.Observable.of(null)}))}),new R$.Observable(function(e){(0,BM.D)(t).subscribe(function(t){e.next(t.filter(function(e){return null!=e})),e.complete()})})},e.prototype.isServerAvailable=function(e,t){var n=new CM;return n.host=e,n.port=t,this.versionService.get(n).flatMap(function(e){return R$.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)(y.Y36(L$),y.Y36(TM),y.Y36(FO),y.Y36(CA))},e.\u0275cmp=y.Xpm({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&&(y.YNc(0,F$,11,2,"mat-card",0),y.YNc(1,B$,1,0,"mat-divider",1)),2&e&&(y.Q6J("ngIf",t.discoveredServer),y.xp6(1),y.Q6J("ngIf",t.discoveredServer))},directives:[_.O5,oE,tE,rE,cO,XE.d],styles:[""]}),e}();function z$(e,t){1&e&&(y.TgZ(0,"mat-header-cell"),y._uU(1," ID "),y.qZA())}function U$(e,t){if(1&e&&(y.TgZ(0,"mat-cell"),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.hij(" ",n.id," ")}}function H$(e,t){1&e&&(y.TgZ(0,"mat-header-cell"),y._uU(1," Name "),y.qZA())}var Y$=function(e){return["/server",e,"projects"]};function J$(e,t){if(1&e&&(y.TgZ(0,"a",22),y._uU(1),y.qZA()),2&e){var n=y.oxw().$implicit;y.Q6J("routerLink",y.VKq(2,Y$,n.id)),y.xp6(1),y.Oqu(n.name)}}function G$(e,t){if(1&e&&(y.TgZ(0,"span"),y._uU(1),y.qZA()),2&e){var n=y.oxw().$implicit;y.xp6(1),y.Oqu(n.name)}}function W$(e,t){if(1&e&&(y.TgZ(0,"mat-cell"),y.YNc(1,J$,2,4,"a",20),y.YNc(2,G$,2,1,"span",21),y.qZA()),2&e){var n=t.$implicit,i=y.oxw();y.xp6(1),y.Q6J("ngIf","running"===i.getServerStatus(n)||"remote"===n.location||"bundled"===n.location),y.xp6(1),y.Q6J("ngIf","running"!=i.getServerStatus(n)&&"remote"!==n.location&&"bundled"!==n.location)}}function V$(e,t){1&e&&(y.TgZ(0,"mat-header-cell"),y._uU(1," Location "),y.qZA())}function Q$(e,t){if(1&e&&(y.TgZ(0,"mat-cell"),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.hij(" ",n.location," ")}}function X$(e,t){1&e&&(y.TgZ(0,"mat-header-cell"),y._uU(1," Host "),y.qZA())}function K$(e,t){if(1&e&&(y.TgZ(0,"mat-cell"),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.hij(" ",n.host," ")}}function $$(e,t){1&e&&(y.TgZ(0,"mat-header-cell"),y._uU(1," Port "),y.qZA())}function e0(e,t){if(1&e&&(y.TgZ(0,"mat-cell"),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.hij(" ",n.port," ")}}function t0(e,t){1&e&&(y.TgZ(0,"mat-header-cell"),y._uU(1," Actions "),y.qZA())}function n0(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",30),y.NdJ("click",function(){y.CHM(n);var e=y.oxw().$implicit;return y.oxw().openProjects(e)}),y.TgZ(1,"mat-icon",31),y._uU(2,"arrow_forward"),y.qZA(),y.qZA()}}function i0(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",32),y.NdJ("click",function(){y.CHM(n);var e=y.oxw().$implicit;return y.oxw().startServer(e)}),y.TgZ(1,"mat-icon",33),y._uU(2,"play_arrow"),y.qZA(),y.qZA()}}function r0(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",34),y.NdJ("click",function(){y.CHM(n);var e=y.oxw().$implicit;return y.oxw().stopServer(e)}),y.TgZ(1,"mat-icon",35),y._uU(2,"stop"),y.qZA(),y.qZA()}}function o0(e,t){1&e&&y._UZ(0,"mat-spinner",36),2&e&&y.Q6J("diameter",24)}function a0(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-cell",23),y.YNc(1,n0,3,0,"button",24),y.YNc(2,i0,3,0,"button",25),y.YNc(3,r0,3,0,"button",26),y.YNc(4,o0,1,1,"mat-spinner",27),y.TgZ(5,"button",28),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw().deleteServer(e)}),y.TgZ(6,"mat-icon",29),y._uU(7,"delete"),y.qZA(),y.qZA(),y.qZA()}if(2&e){var i=t.$implicit,r=y.oxw();y.xp6(1),y.Q6J("ngIf","running"===r.getServerStatus(i)||"remote"===i.location||"bundled"===i.location),y.xp6(1),y.Q6J("ngIf","local"===i.location&&"stopped"===r.getServerStatus(i)),y.xp6(1),y.Q6J("ngIf","local"===i.location&&"running"===r.getServerStatus(i)),y.xp6(1),y.Q6J("ngIf","local"===i.location&&"starting"===r.getServerStatus(i))}}function s0(e,t){1&e&&y._UZ(0,"mat-header-row")}function l0(e,t){1&e&&y._UZ(0,"mat-row")}function c0(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",37),y.NdJ("click",function(){return y.CHM(n),y.oxw().startLocalServer()}),y._uU(1," Start local server "),y.qZA()}}var u0=function(){function e(e,t,n,i,r,o,a,s,l,c){this.dialog=e,this.serverService=t,this.serverDatabase=n,this.serverManagement=i,this.changeDetector=r,this.electronService=o,this.childProcessService=a,this.bottomSheet=s,this.route=l,this.router=c,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(0,LO.mG)(e,void 0,void 0,function(){return(0,LO.Jh)(this,function(e){return t&&this.getServers(),[2]})})}),this.dataSource=new d0(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(N$,{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(AU);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(0,LO.mG)(this,void 0,void 0,function(){return(0,LO.Jh)(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(0,LO.mG)(this,void 0,void 0,function(){return(0,LO.Jh)(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)(y.Y36(aq),y.Y36(TM),y.Y36(FO),y.Y36(D$),y.Y36(y.sBO),y.Y36(eT),y.Y36(Qk),y.Y36(kU),y.Y36(CA),y.Y36(KZ))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"h1"),y._uU(3,"Servers"),y.qZA(),y.qZA(),y.TgZ(4,"div",2),y._UZ(5,"app-server-discovery"),y.TgZ(6,"div",3),y.TgZ(7,"mat-table",4,5),y.ynx(9,6),y.YNc(10,z$,2,0,"mat-header-cell",7),y.YNc(11,U$,2,1,"mat-cell",8),y.BQk(),y.ynx(12,9),y.YNc(13,H$,2,0,"mat-header-cell",7),y.YNc(14,W$,3,2,"mat-cell",8),y.BQk(),y.ynx(15,10),y.YNc(16,V$,2,0,"mat-header-cell",7),y.YNc(17,Q$,2,1,"mat-cell",8),y.BQk(),y.ynx(18,11),y.YNc(19,X$,2,0,"mat-header-cell",7),y.YNc(20,K$,2,1,"mat-cell",8),y.BQk(),y.ynx(21,12),y.YNc(22,$$,2,0,"mat-header-cell",7),y.YNc(23,e0,2,1,"mat-cell",8),y.BQk(),y.ynx(24,13),y.YNc(25,t0,2,0,"mat-header-cell",7),y.YNc(26,a0,8,4,"mat-cell",14),y.BQk(),y.YNc(27,s0,1,0,"mat-header-row",15),y.YNc(28,l0,1,0,"mat-row",16),y.qZA(),y.qZA(),y.TgZ(29,"div",17),y.YNc(30,c0,2,0,"button",18),y.TgZ(31,"button",19),y.NdJ("click",function(){return t.createModal()}),y._uU(32,"Add server"),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(7),y.Q6J("dataSource",t.dataSource),y.xp6(20),y.Q6J("matHeaderRowDef",t.displayedColumns),y.xp6(1),y.Q6J("matRowDefColumns",t.displayedColumns),y.xp6(2),y.Q6J("ngIf",t.isElectronApp))},directives:[j$,yP,wP,bP,_P,CP,kP,_.O5,cO,SP,xP,tM,MO,nO,RM,TP,AP],styles:[".buttons-bar[_ngcontent-%COMP%]{padding-top:0}.button[_ngcontent-%COMP%]{margin:20px!important}"]}),e}(),d0=function(e){function t(t){var n=e.call(this)||this;return n.serverDatabase=t,n}return(0,LO.ZT)(t,e),t.prototype.connect=function(){var e=this;return(0,Z.T)(this.serverDatabase.dataChange).pipe((0,E.U)(function(){return e.serverDatabase.data}))},t.prototype.disconnect=function(){},t}(be.o2),h0=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.\u0275fac=function(t){return new(t||e)(y.LFG(eT))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),p0=function(){function e(e,t){this.defaultConsoleService=e,this.settingsService=t}return Object.defineProperty(e.prototype,"command",{get:function(){var e=this.settingsService.getConsoleSettings();return void 0===e?this.defaultConsoleService.get():e},set:function(e){this.settingsService.setConsoleSettings(e)},enumerable:!1,configurable:!0}),e.\u0275fac=function(t){return new(t||e)(y.LFG(h0),y.LFG(vJ.g))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),f0=function(){function e(e,t,n){this.router=e,this.consoleService=t,this.toasterService=n,this.consoleForm=new st.cw({command:new st.NI("")})}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)(y.Y36(KZ),y.Y36(p0),y.Y36(KO))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Console settings"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"mat-card"),y.TgZ(7,"form",5),y.TgZ(8,"mat-form-field",6),y._UZ(9,"textarea",7),y.qZA(),y.TgZ(10,"div",8),y._uU(11," The following variables are replaced by GNS3:"),y._UZ(12,"br"),y._uU(13," %h: console IP or hostname"),y._UZ(14,"br"),y._uU(15," %p: console port"),y._UZ(16,"br"),y._uU(17," %s: path of the serial connection"),y._UZ(18,"br"),y._uU(19," %d: title of the console"),y._UZ(20,"br"),y._uU(21," %i: Project UUID"),y._UZ(22,"br"),y._uU(23," %c: server URL (http://user:password@server:port) "),y.qZA(),y.qZA(),y.qZA(),y.TgZ(24,"div",9),y.TgZ(25,"button",10),y.NdJ("click",function(){return t.goBack()}),y._uU(26,"Cancel"),y.qZA(),y.TgZ(27,"button",11),y.NdJ("click",function(){return t.save()}),y._uU(28,"Save"),y.qZA(),y._UZ(29,"br"),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(7),y.Q6J("formGroup",t.consoleForm))},directives:[oE,st._Y,st.JL,st.sg,sE.KE,mE,st.Fj,st.JJ,st.u,cO],styles:[".help[_ngcontent-%COMP%]{font-size:14px}"]}),e}(),m0=function(){function e(e){this.httpClient=e}return e.prototype.getLatestVersion=function(){return this.httpClient.get("http://update.gns3.net/")},e.\u0275fac=function(t){return new(t||e)(y.LFG(at.eN))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),g0=function(){function e(e,t,n,i,r,o){this.settingsService=e,this.toaster=t,this.consoleService=n,this.themeService=i,this.mapSettingsService=r,this.updatesService=o}return e.prototype.ngOnInit=function(){this.settings=this.settingsService.getAll(),this.consoleCommand=this.consoleService.command,this.integrateLinksLabelsToLinks=this.mapSettingsService.integrateLinkLabelsToLinks,this.openConsolesInWidget=this.mapSettingsService.openConsolesInWidget},e.prototype.save=function(){this.settingsService.setAll(this.settings),this.toaster.success("Settings have been saved."),this.mapSettingsService.toggleIntegrateInterfaceLabels(this.integrateLinksLabelsToLinks),this.mapSettingsService.toggleOpenConsolesInWidget(this.openConsolesInWidget)},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)(y.Y36(vJ.g),y.Y36(KO),y.Y36(p0),y.Y36(EP.f),y.Y36(rz),y.Y36(m0))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-settings"]],decls:57,vars:8,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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"h1"),y._uU(3,"Settings"),y.qZA(),y.qZA(),y.TgZ(4,"div",2),y.TgZ(5,"div",3),y.TgZ(6,"mat-accordion"),y.TgZ(7,"mat-expansion-panel",4),y.TgZ(8,"mat-expansion-panel-header"),y.TgZ(9,"mat-panel-title"),y._uU(10," Local settings "),y.qZA(),y.TgZ(11,"mat-panel-description"),y._uU(12," Customize your local settings "),y.qZA(),y.qZA(),y.TgZ(13,"div"),y.TgZ(14,"mat-checkbox",5),y.NdJ("ngModelChange",function(e){return t.settings.crash_reports=e}),y._uU(15,"Send anonymous crash reports"),y.qZA(),y._UZ(16,"br"),y.TgZ(17,"mat-checkbox",5),y.NdJ("ngModelChange",function(e){return t.integrateLinksLabelsToLinks=e}),y._uU(18,"Integrate link labels to links"),y.qZA(),y._UZ(19,"br"),y.TgZ(20,"mat-checkbox",5),y.NdJ("ngModelChange",function(e){return t.openConsolesInWidget=e}),y._uU(21,"Open consoles in the widget instead of in new tabs after clicking start consoles for all nodes"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(22,"mat-expansion-panel",4),y.TgZ(23,"mat-expansion-panel-header"),y.TgZ(24,"mat-panel-title"),y._uU(25," Console settings "),y.qZA(),y.TgZ(26,"mat-panel-description"),y._uU(27," Customize console settings "),y.qZA(),y.qZA(),y.TgZ(28,"div"),y.TgZ(29,"mat-form-field",6),y._UZ(30,"input",7),y.TgZ(31,"a",8),y.TgZ(32,"mat-icon"),y._uU(33,"mode_edit"),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(34,"mat-expansion-panel",4),y.TgZ(35,"mat-expansion-panel-header"),y.TgZ(36,"mat-panel-title"),y._uU(37," Theme settings "),y.qZA(),y.TgZ(38,"mat-panel-description"),y._uU(39," Customize theme settings "),y.qZA(),y.qZA(),y.TgZ(40,"div",9),y.TgZ(41,"button",10),y.NdJ("click",function(){return t.setDarkMode(!1)}),y._uU(42,"Switch to light theme"),y.qZA(),y.TgZ(43,"button",10),y.NdJ("click",function(){return t.setDarkMode(!0)}),y._uU(44,"Switch to dark theme"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(45,"mat-expansion-panel",4),y.TgZ(46,"mat-expansion-panel-header"),y.TgZ(47,"mat-panel-title"),y._uU(48," Updates "),y.qZA(),y.TgZ(49,"mat-panel-description"),y._uU(50," Check for updates "),y.qZA(),y.qZA(),y.TgZ(51,"div",9),y.TgZ(52,"button",11),y.NdJ("click",function(){return t.checkForUpdates()}),y._uU(53,"Check for updates"),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(54,"div",12),y.TgZ(55,"button",13),y.NdJ("click",function(){return t.save()}),y._uU(56,"Save settings"),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(7),y.Q6J("expanded",!0),y.xp6(7),y.Q6J("ngModel",t.settings.crash_reports),y.xp6(3),y.Q6J("ngModel",t.integrateLinksLabelsToLinks),y.xp6(3),y.Q6J("ngModel",t.openConsolesInWidget),y.xp6(2),y.Q6J("expanded",!1),y.xp6(8),y.Q6J("value",t.consoleCommand),y.xp6(4),y.Q6J("expanded",!1),y.xp6(11),y.Q6J("expanded",!1))},directives:[VE,YE,JE,WE,GE,XD,st.JJ,st.On,sE.KE,mE,uO,tM,sE.R9,nO,cO],styles:[".theme-panel[_ngcontent-%COMP%]{justify-content:space-between;display:flex;padding:10px}.fullWidth[_ngcontent-%COMP%]{width:100%}"]}),e}(),v0=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=y.Yjl({name:"namefilter",type:e,pure:!0}),e}(),y0=function(){function e(){}return e.prototype.transform=function(e){var t=new Date(1e3*+e),n=t.getHours(),i="0"+t.getMinutes(),r="0"+t.getSeconds(),o=t.getFullYear(),a=t.getMonth()+1,s=t.getDate();return n+":"+i.substr(-2)+":"+r.substr(-2)+" "+s+"/"+a+"/"+o},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=y.Yjl({name:"datefilter",type:e,pure:!0}),e}();function _0(e,t){1&e&&(y.TgZ(0,"mat-header-cell",18),y._uU(1," Name "),y.qZA())}function b0(e,t){if(1&e&&(y.TgZ(0,"mat-cell"),y._uU(1),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.hij(" ",n.name," ")}}function w0(e,t){1&e&&(y.TgZ(0,"mat-header-cell",18),y._uU(1," Date "),y.qZA())}function S0(e,t){if(1&e&&(y.TgZ(0,"mat-cell"),y._uU(1),y.ALo(2,"datefilter"),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.hij(" ",y.lcZ(2,1,n.created_at)," ")}}function x0(e,t){1&e&&(y.TgZ(0,"mat-header-cell"),y._uU(1," Actions "),y.qZA())}function C0(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"mat-cell",19),y.TgZ(1,"button",20),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw().restoreSnapshot(e)}),y.TgZ(2,"mat-icon",21),y._uU(3,"restore"),y.qZA(),y.qZA(),y.TgZ(4,"button",22),y.NdJ("click",function(){var e=y.CHM(n).$implicit;return y.oxw().deleteSnapshot(e)}),y.TgZ(5,"mat-icon",23),y._uU(6,"delete"),y.qZA(),y.qZA(),y.qZA()}}function k0(e,t){1&e&&y._UZ(0,"mat-header-row")}function T0(e,t){1&e&&y._UZ(0,"mat-row")}var A0=function(){function e(e,t,n,i){this.route=e,this.snapshotService=t,this.progressDialogService=n,this.toaster=i,this.displayedColumns=["name","creationDate","actions"]}return e.prototype.ngOnInit=function(){this.projectId=this.route.snapshot.paramMap.get("project_id"),this.server=this.route.snapshot.data.server,this.getSnapshots()},e.prototype.getSnapshots=function(){var e=this;this.snapshotService.list(this.server,this.projectId).subscribe(function(t){e.snapshots=t})},e.prototype.restoreSnapshot=function(e){var t=this,n=this.snapshotService.restore(this.server,this.projectId,e.snapshot_id.toString()),i=this.progressDialogService.open(),r=n.subscribe(function(n){t.toaster.success("Snapshot "+e.name+" has been restored."),i.close()});i.afterClosed().subscribe(function(e){e===lK.CANCELLED&&r.unsubscribe()})},e.prototype.deleteSnapshot=function(e){var t=this;this.snapshotService.delete(this.server,this.projectId,e.snapshot_id.toString()).subscribe(function(){t.getSnapshots(),t.toaster.success("Snapshot "+e.name+" has been deleted.")})},e.prototype.sortData=function(e){if(e.active&&""!==e.direction){var t=this.snapshots.slice();this.snapshots=t.sort(function(t,n){var i="asc"===e.direction;return"name"===e.active?function(e,t,n){return((e=e.toLowerCase())<(t=t.toLowerCase())?-1:1)*(n?1:-1)}(t.name,n.name,i):"creationDate"===e.active?function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(+t.created_at,+n.created_at,!i):0})}},e.\u0275fac=function(t){return new(t||e)(y.Y36(CA),y.Y36(uK),y.Y36(hK),y.Y36(KO))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"Snapshots"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y.TgZ(6,"mat-card"),y.TgZ(7,"mat-form-field",5),y.TgZ(8,"input",6),y.NdJ("ngModelChange",function(e){return t.searchText=e}),y.qZA(),y.qZA(),y.TgZ(9,"mat-table",7,8),y.NdJ("matSortChange",function(e){return t.sortData(e)}),y.ALo(11,"namefilter"),y.ynx(12,9),y.YNc(13,_0,2,0,"mat-header-cell",10),y.YNc(14,b0,2,1,"mat-cell",11),y.BQk(),y.ynx(15,12),y.YNc(16,w0,2,0,"mat-header-cell",10),y.YNc(17,S0,3,3,"mat-cell",11),y.BQk(),y.ynx(18,13),y.YNc(19,x0,2,0,"mat-header-cell",14),y.YNc(20,C0,7,0,"mat-cell",15),y.BQk(),y.YNc(21,k0,1,0,"mat-header-row",16),y.YNc(22,T0,1,0,"mat-row",17),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(8),y.Q6J("ngModel",t.searchText),y.xp6(1),y.Q6J("dataSource",y.xi3(11,4,t.snapshots,t.searchText)),y.xp6(12),y.Q6J("matHeaderRowDef",t.displayedColumns),y.xp6(1),y.Q6J("matRowDefColumns",t.displayedColumns))},directives:[oE,sE.KE,mE,st.Fj,st.JJ,st.On,yP,MW,wP,bP,_P,CP,kP,SP,NW,xP,cO,MO,nO,TP,AP],pipes:[v0,y0],styles:[".filter-field[_ngcontent-%COMP%]{width:100%}.mat-table[_ngcontent-%COMP%]{margin:-16px!important}"]}),e}(),Z0=["*"],M0=new y.OlP("MatChipRemove"),O0=new y.OlP("MatChipAvatar"),E0=new y.OlP("MatChipTrailingIcon"),P0=(0,lt.sb)((0,lt.pj)((0,lt.Kr)(function e(t){(0,f.Z)(this,e),this._elementRef=t}),"primary"),-1),I0=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o,a,s,l,c){var u;return(0,f.Z)(this,n),(u=t.call(this,e))._elementRef=e,u._ngZone=i,u._changeDetectorRef=a,u._hasFocus=!1,u.chipListSelectable=!0,u._chipListMultiple=!1,u._chipListDisabled=!1,u._selected=!1,u._selectable=!0,u._disabled=!1,u._removable=!0,u._onFocus=new x.xQ,u._onBlur=new x.xQ,u.selectionChange=new y.vpe,u.destroyed=new y.vpe,u.removed=new y.vpe,u._addHostClassName(),u._chipRippleTarget=s.createElement("div"),u._chipRippleTarget.classList.add("mat-chip-ripple"),u._elementRef.nativeElement.appendChild(u._chipRippleTarget),u._chipRipple=new lt.IR((0,iT.Z)(u),i,u._chipRippleTarget,r),u._chipRipple.setupTriggerEvents(e),u.rippleConfig=o||{},u._animationsDisabled="NoopAnimations"===l,u.tabIndex=null!=c&&parseInt(c)||-1,u}return(0,m.Z)(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=(0,S.Ig)(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=(0,S.Ig)(e)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(e){this._disabled=(0,S.Ig)(e)}},{key:"removable",get:function(){return this._removable},set:function(e){this._removable=(0,S.Ig)(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 ct.yY:case ct.ZH:this.remove(),e.preventDefault();break;case ct.L_:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}},{key:"_blur",value:function(){var e=this;this._ngZone.onStable.pipe((0,P.q)(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}(P0);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq),y.Y36(y.R0b),y.Y36(w.t4),y.Y36(lt.Y2,8),y.Y36(y.sBO),y.Y36(_.K0),y.Y36(mt.Qb,8),y.$8M("tabindex"))},e.\u0275dir=y.lG2({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,n){var i;1&e&&(y.Suo(n,O0,5),y.Suo(n,E0,5),y.Suo(n,M0,5)),2&e&&(y.iGM(i=y.CRH())&&(t.avatar=i.first),y.iGM(i=y.CRH())&&(t.trailingIcon=i.first),y.iGM(i=y.CRH())&&(t.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&y.NdJ("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&&(y.uIk("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),y.ekj("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:[y.qOj]}),e}(),q0=new y.OlP("mat-chips-default-options"),N0=(0,lt.FD)(function e(t,n,i,r){(0,f.Z)(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),D0=0,R0=function e(t,n){(0,f.Z)(this,e),this.source=t,this.value=n},L0=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r,o,a,s,l){var c;return(0,f.Z)(this,n),(c=t.call(this,s,o,a,l))._elementRef=e,c._changeDetectorRef=i,c._dir=r,c.ngControl=l,c.controlType="mat-chip-list",c._lastDestroyedChipIndex=null,c._destroyed=new x.xQ,c._uid="mat-chip-list-".concat(D0++),c._tabIndex=0,c._userTabIndex=null,c._onTouched=function(){},c._onChange=function(){},c._multiple=!1,c._compareWith=function(e,t){return e===t},c._required=!1,c._disabled=!1,c.ariaOrientation="horizontal",c._selectable=!0,c.change=new y.vpe,c.valueChange=new y.vpe,c.ngControl&&(c.ngControl.valueAccessor=(0,iT.Z)(c)),c}return(0,m.Z)(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=(0,S.Ig)(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=(0,S.Ig)(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=(0,S.Ig)(e),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(e){var t=this;this._selectable=(0,S.Ig)(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 Z.T.apply(void 0,(0,p.Z)(this.chips.map(function(e){return e.selectionChange})))}},{key:"chipFocusChanges",get:function(){return Z.T.apply(void 0,(0,p.Z)(this.chips.map(function(e){return e._onFocus})))}},{key:"chipBlurChanges",get:function(){return Z.T.apply(void 0,(0,p.Z)(this.chips.map(function(e){return e._onBlur})))}},{key:"chipRemoveChanges",get:function(){return Z.T.apply(void 0,(0,p.Z)(this.chips.map(function(e){return e.destroyed})))}},{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new gt.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,M.R)(this._destroyed)).subscribe(function(t){return e._keyManager.withHorizontalOrientation(t)}),this._keyManager.tabOut.pipe((0,M.R)(this._destroyed)).subscribe(function(){e._allowFocusEscape()}),this.chips.changes.pipe((0,O.O)(null),(0,M.R)(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 be.Ov(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;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:"_setSelectionByValue",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(e){return e.deselect()}),Array.isArray(e))e.forEach(function(e){return t._selectValue(e,n)}),this._sortValues();else{var i=this._selectValue(e,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find(function(n){return null!=n.value&&t._compareWith(n.value,e)});return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){(e.ngControl||e._value)&&(e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value,!1),e.stateChanges.next())})}},{key:"_clearSelection",value:function(e){this._selectionModel.clear(),this.chips.forEach(function(t){t!==e&&t.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(t){t.selected&&e._selectionModel.select(t)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(e){var t;t=Array.isArray(this.selected)?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.change.emit(new R0(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var e=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){e.focused||e._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var e=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){e._tabIndex=e._userTabIndex||0,e._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var e=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(t){t.source.selected?e._selectionModel.select(t.source):e._selectionModel.deselect(t.source),e.multiple||e.chips.forEach(function(t){!e._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&e._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var e=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(t){var n=e.chips.toArray().indexOf(t.chip);e._isValidIndex(n)&&e._keyManager.updateActiveItem(n),e.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){e._blur(),e.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var e=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(t){var n=t.chip,i=e.chips.toArray().indexOf(t.chip);e._isValidIndex(i)&&n._hasFocus&&(e._lastDestroyedChipIndex=i)})}},{key:"_originatesFromChip",value:function(e){for(var t=e.target;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(e){return e._hasFocus})}},{key:"_syncChipsState",value:function(){var e=this;this.chips&&this.chips.forEach(function(t){t._chipListDisabled=e._disabled,t._chipListMultiple=e.multiple})}}]),n}(N0);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(N.Is,8),y.Y36(st.F,8),y.Y36(st.sg,8),y.Y36(lt.rD),y.Y36(st.a5,10))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-chip-list"]],contentQueries:function(e,t,n){var i;1&e&&y.Suo(n,I0,5),2&e&&y.iGM(i=y.CRH())&&(t.chips=i)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&y.NdJ("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(e){return t._keydown(e)}),2&e&&(y.Ikx("id",t._uid),y.uIk("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),y.ekj("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:[y._Bn([{provide:sE.Eo,useExisting:e}]),y.qOj],ngContentSelectors:Z0,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(y.F$t(),y.TgZ(0,"div",0),y.Hsn(1),y.qZA())},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}(),F0={separatorKeyCodes:[ct.K5]},B0=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({providers:[lt.rD,{provide:q0,useValue:F0}],imports:[[lt.BQ]]}),e}(),j0=function(){return["Load average","(last 1 minute)"]},z0=function(){return["Load average","(last 5 minutes)"]},U0=function(){return["Load average","(last 15 minutes)"]},H0=function(){function e(){}return e.prototype.ngOnInit=function(){},e.prototype.formatBytes=function(e,t){if(void 0===t&&(t=2),0===e)return"0 Bytes";var n=t<0?0:t,i=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,i)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"mat-card"),y.TgZ(1,"div",0),y._UZ(2,"circle-progress",1),y._UZ(3,"circle-progress",1),y._UZ(4,"circle-progress",1),y._UZ(5,"circle-progress",1),y.qZA(),y.TgZ(6,"div",0),y._UZ(7,"circle-progress",1),y._UZ(8,"circle-progress",1),y._UZ(9,"circle-progress",1),y.qZA(),y.TgZ(10,"div",2),y.TgZ(11,"mat-chip-list"),y.TgZ(12,"mat-chip",3),y._uU(13),y.qZA(),y.qZA(),y.TgZ(14,"mat-chip-list"),y.TgZ(15,"mat-chip",3),y._uU(16),y.qZA(),y.qZA(),y.TgZ(17,"mat-chip-list"),y.TgZ(18,"mat-chip",3),y._uU(19),y.qZA(),y.qZA(),y.qZA(),y.TgZ(20,"div",2),y.TgZ(21,"mat-chip-list"),y.TgZ(22,"mat-chip",3),y._uU(23),y.qZA(),y.qZA(),y.TgZ(24,"mat-chip-list"),y.TgZ(25,"mat-chip",3),y._uU(26),y.qZA(),y.qZA(),y.TgZ(27,"mat-chip-list"),y.TgZ(28,"mat-chip",3),y._uU(29),y.qZA(),y.qZA(),y.qZA(),y.qZA()),2&e&&(y.xp6(2),y.Q6J("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),y.xp6(1),y.Q6J("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),y.xp6(1),y.Q6J("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),y.xp6(1),y.Q6J("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),y.xp6(2),y.Q6J("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",y.DdM(111,j0))("subtitleColor","#C0C0C0")("subtitleFontSize",15),y.xp6(1),y.Q6J("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",y.DdM(112,z0))("subtitleColor","#C0C0C0")("subtitleFontSize",15),y.xp6(1),y.Q6J("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",y.DdM(113,U0))("subtitleColor","#C0C0C0")("subtitleFontSize",15),y.xp6(4),y.hij("Memory total: ",t.formatBytes(t.computeStatistics.statistics.memory_total),""),y.xp6(3),y.hij("Memory used: ",t.formatBytes(t.computeStatistics.statistics.memory_used),""),y.xp6(3),y.hij("Memory free: ",t.formatBytes(t.computeStatistics.statistics.memory_free),""),y.xp6(4),y.hij("Swap total: ",t.formatBytes(t.computeStatistics.statistics.swap_total),""),y.xp6(3),y.hij("Swap used: ",t.formatBytes(t.computeStatistics.statistics.swap_used),""),y.xp6(3),y.hij("Swap free: ",t.formatBytes(t.computeStatistics.statistics.swap_free),""))},directives:[oE,zk,L0,I0],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 Y0(e,t){1&e&&(y.TgZ(0,"div"),y._uU(1,"Statistics not loaded"),y.qZA())}function J0(e,t){if(1&e&&(y.TgZ(0,"div"),y._uU(1),y._UZ(2,"app-status-chart",2),y.qZA()),2&e){var n=t.$implicit;y.xp6(1),y.hij(" ",n.compute_name," "),y.xp6(1),y.Q6J("computeStatistics",n)}}var G0=function(){function e(e,t,n,i){this.route=e,this.computeService=t,this.serverService=n,this.toasterService=i,this.serverId="",this.computeStatistics=[]}return e.prototype.ngOnInit=function(){this.serverId=this.route.snapshot.paramMap.get("server_id"),this.getStatistics()},e.prototype.getStatistics=function(){var e=this;this.serverService.get(Number(this.serverId)).then(function(t){e.computeService.getStatistics(t).subscribe(function(t){e.computeStatistics=t,setTimeout(function(){e.getStatistics()},2e4)})})},e.\u0275fac=function(t){return new(t||e)(y.Y36(CA),y.Y36($P.X),y.Y36(TM),y.Y36(KO))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-status-info"]],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"computeStatistics"]],template:function(e,t){1&e&&(y.YNc(0,Y0,2,0,"div",0),y.YNc(1,J0,3,2,"div",1)),2&e&&(y.Q6J("ngIf",!t.computeStatistics.length),y.xp6(1),y.Q6J("ngForOf",t.computeStatistics))},directives:[_.O5,_.sg,H0],styles:[""]}),e}(),W0=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)(y.Y36(CA))},e.\u0275cmp=y.Xpm({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&&(y.TgZ(0,"div",0),y.TgZ(1,"div",1),y.TgZ(2,"div",2),y.TgZ(3,"h1",3),y._uU(4,"System status"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(5,"div",4),y._UZ(6,"app-status-info"),y.qZA(),y.qZA())},directives:[G0],styles:[""]}),e}(),V0=["terminal"],Q0=function(){function e(e,t,n,i,r){this.consoleService=e,this.serverService=t,this.route=n,this.title=i,this.nodeService=r,this.subscriptions=new C.w,this.term=new AK.Terminal,this.fitAddon=new MK.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.consoleService.getUrl(e.server,e.node));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 ZK.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||!e.shiftKey});var i=Math.round(window.innerWidth/e.consoleService.getLineWidth()),r=Math.round(window.innerHeight/e.consoleService.getLineHeight());e.term.resize(i,r)},0)},e.\u0275fac=function(t){return new(t||e)(y.Y36(fJ),y.Y36(TM),y.Y36(CA),y.Y36(o.Dx),y.Y36(nH))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-web-console-full-window"]],viewQuery:function(e,t){var n;1&e&&y.Gf(V0,5),2&e&&y.iGM(n=y.CRH())&&(t.terminal=n.first)},decls:2,vars:0,consts:[["id","terminal",2,"width","100%","height","100%"],["terminal",""]],template:function(e,t){1&e&&y._UZ(0,"div",0,1)},styles:[".xterm{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}(),X0=function(){function e(e,t){this.consoleService=e,this.bottomSheet=t}return e.prototype.canDeactivate=function(){if(this.consoleService.openConsoles>0){this.bottomSheet.open(AU);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.\u0275fac=function(t){return new(t||e)(y.LFG(fJ),y.LFG(kU))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),K0=["*",[["mat-toolbar-row"]]],$0=["*","mat-toolbar-row"],e1=(0,lt.pj)(function e(t){(0,f.Z)(this,e),this._elementRef=t}),t1=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=y.lG2({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),n1=function(){var e=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e,i,r){var o;return(0,f.Z)(this,n),(o=t.call(this,e))._platform=i,o._document=r,o}return(0,m.Z)(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}(e1);return e.\u0275fac=function(t){return new(t||e)(y.Y36(y.SBq),y.Y36(w.t4),y.Y36(_.K0))},e.\u0275cmp=y.Xpm({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;1&e&&y.Suo(n,t1,5),2&e&&y.iGM(i=y.CRH())&&(t._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&y.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[y.qOj],ngContentSelectors:$0,decls:2,vars:0,template:function(e,t){1&e&&(y.F$t(K0),y.Hsn(0),y.Hsn(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}(),i1=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[lt.BQ],lt.BQ]}),e}();function r1(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",13),y.NdJ("click",function(){return y.CHM(n),y.oxw().listProjects()}),y._uU(1," Projects "),y.qZA()}}function o1(e,t){if(1&e){var n=y.EpF();y.TgZ(0,"button",13),y.NdJ("click",function(){return y.CHM(n),y.oxw().backToProject()}),y._uU(1," Back to project "),y.qZA()}}var a1=function(){function e(e,t,n,i,r,o){this.electronService=e,this.recentlyOpenedProjectService=t,this.serverManagement=n,this.toasterService=i,this.progressService=r,this.router=o,this.isInstalledSoftwareAvailable=!1,this.uiVersion=wK,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(0,LO.mG)(this,void 0,void 0,function(){return(0,LO.Jh)(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)(y.Y36(eT),y.Y36(ZQ.p),y.Y36(D$),y.Y36(KO),y.Y36(ZM),y.Y36(KZ))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-default-layout"]],hostBindings:function(e,t){1&e&&y.NdJ("beforeunload",function(e){return t.onBeforeUnload(e)},!1,y.Jf7)},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&&(y.TgZ(0,"header"),y.TgZ(1,"mat-toolbar",0),y.TgZ(2,"button",1),y._UZ(3,"mat-icon",2),y.qZA(),y.TgZ(4,"button",3),y._uU(5,"Servers"),y.qZA(),y.YNc(6,r1,2,0,"button",4),y.YNc(7,o1,2,0,"button",4),y._UZ(8,"span",5),y.TgZ(9,"button",6),y.TgZ(10,"mat-icon"),y._uU(11,"more_vert"),y.qZA(),y.qZA(),y.TgZ(12,"mat-menu",null,7),y.TgZ(14,"button",8),y.TgZ(15,"mat-icon"),y._uU(16,"settings"),y.qZA(),y.TgZ(17,"span"),y._uU(18,"Settings"),y.qZA(),y.qZA(),y.TgZ(19,"button",9),y.TgZ(20,"mat-icon"),y._uU(21,"cloud_download"),y.qZA(),y.TgZ(22,"span"),y._uU(23,"Installed software"),y.qZA(),y.qZA(),y.TgZ(24,"button",10),y.TgZ(25,"mat-icon"),y._uU(26,"help"),y.qZA(),y.TgZ(27,"span"),y._uU(28,"Help"),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(29,"main",11),y._UZ(30,"router-outlet"),y.qZA(),y._UZ(31,"app-progress"),y.TgZ(32,"footer",12),y._uU(33),y.qZA()),2&e){var n=y.MAs(13);y.xp6(6),y.Q6J("ngIf",!t.recentlyOpenedProjectId&&t.serverIdProjectList),y.xp6(1),y.Q6J("ngIf",t.recentlyOpenedProjectId&&t.recentlyOpenedServerId),y.xp6(2),y.Q6J("matMenuTriggerFor",n),y.xp6(10),y.Q6J("disabled",!t.isInstalledSoftwareAvailable),y.xp6(14),y.hij("GNS3 Web UI \xa9 2020 - v",t.uiVersion,"")}},directives:[n1,cO,nO,eM,_.O5,Iq,Mq,kq,iM,DO],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}(),s1=function(){function e(e){this.serverService=e}return e.prototype.resolve=function(e){return this.serverService.get(parseInt(e.params.server_id))},e.\u0275fac=function(t){return new(t||e)(y.LFG(TM))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),l1=[{path:"",component:a1,children:[{path:"",redirectTo:"servers",pathMatch:"full"},{path:"servers",component:u0},{path:"bundled",component:RO},{path:"server/:server_id/projects",component:x$,resolve:{server:s1}},{path:"help",component:hP},{path:"settings",component:g0},{path:"settings/console",component:f0},{path:"installed-software",component:JP},{path:"server/:server_id/systemstatus",component:W0},{path:"server/:server_ip/:server_port/project/:project_id",component:kE},{path:"server/:server_id/project/:project_id/snapshots",component:A0,resolve:{server:s1}},{path:"server/:server_id/preferences",component:WL},{path:"server/:server_id/preferences/gns3vm",component:wL},{path:"server/:server_id/preferences/builtin",component:VP},{path:"server/:server_id/preferences/builtin/ethernet-hubs",component:nN},{path:"server/:server_id/preferences/builtin/ethernet-hubs/addtemplate",component:Uq},{path:"server/:server_id/preferences/builtin/ethernet-hubs/:template_id",component:Vq},{path:"server/:server_id/preferences/builtin/ethernet-switches",component:IN},{path:"server/:server_id/preferences/builtin/ethernet-switches/addtemplate",component:iN},{path:"server/:server_id/preferences/builtin/ethernet-switches/:template_id",component:TN},{path:"server/:server_id/preferences/builtin/cloud-nodes",component:zq},{path:"server/:server_id/preferences/builtin/cloud-nodes/addtemplate",component:fI},{path:"server/:server_id/preferences/builtin/cloud-nodes/:template_id",component:JI},{path:"server/:server_id/preferences/dynamips/templates",component:dL},{path:"server/:server_id/preferences/dynamips/templates/addtemplate",component:NR},{path:"server/:server_id/preferences/dynamips/templates/:template_id",component:rL},{path:"server/:server_id/preferences/dynamips/templates/:template_id/copy",component:DR},{path:"server/:server_id/preferences/qemu/templates",component:UF},{path:"server/:server_id/preferences/qemu/templates/:template_id/copy",component:oF},{path:"server/:server_id/preferences/qemu/templates/:template_id",component:DF},{path:"server/:server_id/preferences/qemu/addtemplate",component:rF},{path:"server/:server_id/preferences/vpcs/templates",component:XB},{path:"server/:server_id/preferences/vpcs/templates/:template_id",component:HB},{path:"server/:server_id/preferences/vpcs/addtemplate",component:DB},{path:"server/:server_id/preferences/virtualbox/templates",component:dB},{path:"server/:server_id/preferences/virtualbox/templates/:template_id",component:rB},{path:"server/:server_id/preferences/virtualbox/addtemplate",component:GF},{path:"server/:server_id/preferences/vmware/templates",component:qB},{path:"server/:server_id/preferences/vmware/templates/:template_id",component:AB},{path:"server/:server_id/preferences/vmware/addtemplate",component:gB},{path:"server/:server_id/preferences/docker/templates",component:fR},{path:"server/:server_id/preferences/docker/templates/:template_id",component:sR},{path:"server/:server_id/preferences/docker/templates/:template_id/copy",component:FD},{path:"server/:server_id/preferences/docker/addtemplate",component:LD},{path:"server/:server_id/preferences/iou/templates",component:GL},{path:"server/:server_id/preferences/iou/templates/:template_id",component:BL},{path:"server/:server_id/preferences/iou/templates/:template_id/copy",component:OL},{path:"server/:server_id/preferences/iou/addtemplate",component:ML}]},{path:"server/:server_id/project/:project_id",component:a$,canDeactivate:[X0]},{path:"server/:server_id/project/:project_id/nodes/:node_id",component:Q0},{path:"static/web-ui/server/:server_id/project/:project_id/nodes/:node_id",component:Q0},{path:"**",component:WP}],c1=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[fM.forRoot(l1,{anchorScrolling:"enabled",enableTracing:!1,scrollPositionRestoration:"enabled"})],fM]}),e}(),u1=function(e,t){return{dark:e,light:t}},d1=function(){function e(e,t,n,i,r,o,a,s){var l=this;this.overlayContainer=e,this.settingsService=i,this.electronService=r,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){l.checkEvent(e)})}return e.prototype.ngOnInit=function(){var e=this;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 yT?this.progressService.activate():(e instanceof _T||e instanceof bT||e instanceof wT)&&this.progressService.deactivate()},e.\u0275fac=function(t){return new(t||e)(y.Y36(_e.Xj),y.Y36(JM),y.Y36(o.H7),y.Y36(vJ.g),y.Y36(eT),y.Y36(EP.f),y.Y36(KZ),y.Y36(ZM))},e.\u0275cmp=y.Xpm({type:e,selectors:[["app-root"]],hostVars:2,hostBindings:function(e,t){2&e&&y.Tol(t.componentCssClass)},decls:3,vars:4,consts:[[3,"ngClass"]],template:function(e,t){1&e&&(y.TgZ(0,"div",0),y._UZ(1,"router-outlet"),y._UZ(2,"app-adbutler"),y.qZA()),2&e&&y.Q6J("ngClass",y.WLB(1,u1,t.darkThemeEnabled,!t.darkThemeEnabled))},directives:[_.mk,iM,qP],styles:["mat-menu-panel[_ngcontent-%COMP%]{min-height:0}.dark[_ngcontent-%COMP%]{background:#263238!important}.light[_ngcontent-%COMP%]{background:#fff!important}"]}),e}(),h1=function(){return function(){}}(),p1=function(){function e(){}return e.prototype.convert=function(e){var t=new h1;return t.symbol_id=e.id,t.builtin=e.builtin,t.filename=e.filename,t.raw=e.raw,t},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),f1=function(){function e(){}return e.prototype.convert=function(e){var t={font_family:void 0,font_size:void 0,font_weight:void 0};return lj.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=y.Yz7({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),m1=[Lz,gz,az,oz,nz,Dz,lz,$j,ez,Rz,mz,uz,Qj,qz,Oz,Iz,Pz,Mz,Nz],g1=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({providers:(0,LO.ev)([cj,uj,sQ,iQ,rQ,oQ,aQ,kj,Zz,Ez,Cj,Ej,Pj,Oj,Hz,iz,nU,jz,ZJ,bj,dj,yj,vj,xQ,yQ,TQ,AQ,wQ,bQ,p1,fj,pj,Sj,Tj,tj,nj,ij,rj,Kj,Ij,sj,f1,hz,fz],m1),imports:[[_.ez,Nq,iO]]}),e}(),v1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,LO.ZT)(t,e),t.prototype.getItemKey=function(e){return e.symbol_id},t.\u0275fac=function(){var e;return function(n){return(e||(e=y.n5z(t)))(n||t)}}(),t.\u0275prov=y.Yz7({token:t,factory:t.\u0275fac}),t}($B.o),y1=function(e,t){return(y1=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 _1(e,t){function n(){this.constructor=e}y1(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var b1,w1,S1=function(){return(S1=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function x1(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function C1(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function k1(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(C1(arguments[t]));return e}!function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(b1||(b1={})),function(e){e.Ok="ok",e.Errored="errored",e.Crashed="crashed"}(w1||(w1={}));var T1=n(82605),A1=n(46354),Z1=(0,T1.Rf)(),M1="Sentry Logger ",O1=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&&(0,T1.Cf)(function(){Z1.console.log(M1+"[Log]: "+e.join(" "))})},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,T1.Cf)(function(){Z1.console.warn(M1+"[Warn]: "+e.join(" "))})},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,T1.Cf)(function(){Z1.console.error(M1+"[Error]: "+e.join(" "))})},e}();Z1.__SENTRY__=Z1.__SENTRY__||{};var E1,P1=Z1.__SENTRY__.logger||(Z1.__SENTRY__.logger=new O1),I1=n(4839);function q1(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return U1(e,Error)}}function N1(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function D1(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function R1(e){return"[object String]"===Object.prototype.toString.call(e)}function L1(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function F1(e){return"[object Object]"===Object.prototype.toString.call(e)}function B1(e){return"undefined"!=typeof Event&&U1(e,Event)}function j1(e){return"undefined"!=typeof Element&&U1(e,Element)}function z1(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function U1(e,t){try{return e instanceof t}catch(n){return!1}}!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(E1||(E1={}));var H1=function(){function e(e){var t=this;this._state=E1.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(E1.RESOLVED,e)},this._reject=function(e){t._setResult(E1.REJECTED,e)},this._setResult=function(e,n){t._state===E1.PENDING&&(z1(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!==E1.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach(function(e){e.done||(t._state===E1.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===E1.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)})}};try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}return e.resolve=function(t){return new e(function(e){e(t)})},e.reject=function(t){return new e(function(e,n){n(t)})},e.all=function(t){return new e(function(n,i){if(Array.isArray(t))if(0!==t.length){var r=t.length,o=[];t.forEach(function(t,a){e.resolve(t).then(function(e){o[a]=e,0==(r-=1)&&n(o)}).then(null,i)})}else n([]);else i(new TypeError("Promise.all requires an array as input."))})},e.prototype.then=function(t,n){var i=this;return new e(function(e,r){i._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(i){return void r(i)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(i){return void r(i)}else r(t)}})})},e.prototype.catch=function(e){return this.then(function(e){return e},e)},e.prototype.finally=function(t){var n=this;return new e(function(e,i){var r,o;return n.then(function(e){o=!1,r=e,t&&t()},function(e){o=!0,r=e,t&&t()}).then(function(){o?i(r):e(r)})})},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),Y1=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=k1(t._breadcrumbs),n._tags=S1({},t._tags),n._extra=S1({},t._extra),n._contexts=S1({},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=k1(t._eventProcessors),n._requestSession=t._requestSession),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.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=S1(S1({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=S1(S1({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=S1(S1({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=S1(S1({},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=S1(S1({},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,i,r=this.getSpan();return(null===(e=r)||void 0===e?void 0:e.transaction)?null===(t=r)||void 0===t?void 0:t.transaction:(null===(i=null===(n=r)||void 0===n?void 0:n.spanRecorder)||void 0===i?void 0:i.spans[0])?r.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=S1(S1({},this._tags),t._tags),this._extra=S1(S1({},this._extra),t._extra),this._contexts=S1(S1({},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),t._requestSession&&(this._requestSession=t._requestSession)):F1(t)&&(t=t,this._tags=S1(S1({},this._tags),t.tags),this._extra=S1(S1({},this._extra),t.extra),this._contexts=S1(S1({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),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._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=S1({timestamp:(0,A1.yW)()},e);return this._breadcrumbs=void 0!==t&&t>=0?k1(this._breadcrumbs,[n]).slice(-t):k1(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=S1(S1({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=S1(S1({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=S1(S1({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=S1(S1({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=S1({trace:this._span.getTraceContext()},e.contexts);var i=null===(n=this._span.transaction)||void 0===n?void 0:n.name;i&&(e.tags=S1({transaction:i},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=k1(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(k1(J1(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,i){var r=this;return void 0===i&&(i=0),new H1(function(o,a){var s=e[i];if(null===t||"function"!=typeof s)o(t);else{var l=s(S1({},t),n);z1(l)?l.then(function(t){return r._notifyEventProcessors(e,t,n,i+1).then(o)}).then(null,a):r._notifyEventProcessors(e,l,n,i+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 J1(){var e=(0,T1.Rf)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function G1(e){J1().push(e)}function W1(e){try{for(var t=e,n=[],i=0,r=0,o=" > ".length,a=void 0;t&&i++<5&&!("html"===(a=V1(t))||i>1&&r+n.length*o+a.length>=80);)n.push(a),r+=a.length,t=t.parentNode;return n.reverse().join(" > ")}catch(s){return"<unknown>"}}function V1(e){var t,n,i,r,o,a=e,s=[];if(!a||!a.tagName)return"";if(s.push(a.tagName.toLowerCase()),a.id&&s.push("#"+a.id),(t=a.className)&&R1(t))for(n=t.split(/\s+/),o=0;o<n.length;o++)s.push("."+n[o]);var l=["type","name","title","alt"];for(o=0;o<l.length;o++)(r=a.getAttribute(i=l[o]))&&s.push("["+i+'="'+r+'"]');return s.join("")}var Q1=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}(),X1="<anonymous>";function K1(e){try{return e&&"function"==typeof e&&e.name||X1}catch(t){return X1}}function $1(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function e2(e,t){if(!Array.isArray(e))return"";for(var n=[],i=0;i<e.length;i++){var r=e[i];try{n.push(String(r))}catch(o){n.push("[value cannot be serialized]")}}return n.join(t)}function t2(e,t){return!!R1(e)&&("[object RegExp]"===Object.prototype.toString.call(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}function n2(e,t,n){if(t in e){var i=e[t],r=n(i);if("function"==typeof r)try{r.prototype=r.prototype||{},Object.defineProperties(r,{__sentry_original__:{enumerable:!1,value:i}})}catch(o){}e[t]=r}}function i2(e){if(q1(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}if(B1(e)){var r=e,o={};o.type=r.type;try{o.target=j1(r.target)?W1(r.target):Object.prototype.toString.call(r.target)}catch(a){o.target="<unknown>"}try{o.currentTarget=j1(r.currentTarget)?W1(r.currentTarget):Object.prototype.toString.call(r.currentTarget)}catch(a){o.currentTarget="<unknown>"}for(var i in"undefined"!=typeof CustomEvent&&U1(e,CustomEvent)&&(o.detail=r.detail),r)Object.prototype.hasOwnProperty.call(r,i)&&(o[i]=r);return o}return e}function r2(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var i=s2(e,t);return function(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}(i)>n?r2(e,t-1,n):i}function o2(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]":F1(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+K1(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e;var n}function a2(e,t,n,i){if(void 0===n&&(n=1/0),void 0===i&&(i=new Q1),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=o2(e);return L1(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var r=o2(t,e);if(L1(r))return r;var o=i2(t),a=Array.isArray(t)?[]:{};if(i.memoize(t))return"[Circular ~]";for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(a[s]=a2(s,o[s],n-1,i));return i.unmemoize(t),a}function s2(e,t){try{return JSON.parse(JSON.stringify(e,function(e,n){return a2(e,n,t)}))}catch(n){return"**non-serializable**"}}function l2(e,t){void 0===t&&(t=40);var n=Object.keys(i2(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return $1(n[0],t);for(var i=n.length;i>0;i--){var r=n.slice(0,i).join(", ");if(!(r.length>t))return i===n.length?r:$1(r,t)}return""}function c2(e){var t,n;if(F1(e)){var i=e,r={};try{for(var o=x1(Object.keys(i)),a=o.next();!a.done;a=o.next()){var s=a.value;void 0!==i[s]&&(r[s]=c2(i[s]))}}catch(l){t={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}return Array.isArray(e)?e.map(c2):e}var u2=function(){function e(e){this.errors=0,this.sid=(0,T1.DM)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=b1.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:(0,T1.DM)()),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===b1.Ok?this.update({status:b1.Exited}):this.update()},e.prototype.toJSON=function(){return c2({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:c2({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),d2=(function(){function e(e,t){var n=this;this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._transport=e,this._intervalId=setInterval(function(){return n.flush()},1e3*this.flushTimeout),this._sessionAttrs=t}e.prototype.sendSessionAggregates=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,function(e){P1.error("Error while sending session: "+e)}):P1.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.flush=function(){var e=this.getSessionAggregates();0!==e.aggregates.length&&(this._pendingAggregates={},this.sendSessionAggregates(e))},e.prototype.getSessionAggregates=function(){var e=this,t=Object.keys(this._pendingAggregates).map(function(t){return e._pendingAggregates[parseInt(t)]});return c2({attrs:this._sessionAttrs,aggregates:t})},e.prototype.close=function(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()},e.prototype.incrementSessionStatusCount=function(){var e,t;if(this._isEnabled){var n=f2().getScope(),i=null===(e=n)||void 0===e?void 0:e.getRequestSession();i&&i.status&&(this._incrementSessionStatusCount(i.status,new Date),null===(t=n)||void 0===t||t.setRequestSession(void 0))}},e.prototype._incrementSessionStatusCount=function(e,t){var n=new Date(t).setSeconds(0,0);this._pendingAggregates[n]=this._pendingAggregates[n]||{};var i=this._pendingAggregates[n];switch(i.started||(i.started=new Date(n).toISOString()),e){case w1.Errored:return i.errored=(i.errored||0)+1,i.errored;case w1.Ok:return i.exited=(i.exited||0)+1,i.exited;case w1.Crashed:return i.crashed=(i.crashed||0)+1,i.crashed}}}(),function(){function e(e,t,n){void 0===t&&(t=new Y1),void 0===n&&(n=4),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=Y1.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=(0,T1.DM)(),i=t;if(!t){var r=void 0;try{throw new Error("Sentry syntheticException")}catch(e){r=e}i={originalException:e,syntheticException:r}}return this._invokeClient("captureException",e,S1(S1({},i),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var i=this._lastEventId=(0,T1.DM)(),r=n;if(!n){var o=void 0;try{throw new Error(e)}catch(a){o=a}r={originalException:e,syntheticException:o}}return this._invokeClient("captureMessage",e,t,S1(S1({},r),{event_id:i})),i},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=(0,T1.DM)();return this._invokeClient("captureEvent",e,S1(S1({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),i=n.scope,r=n.client;if(i&&r){var o=r.getOptions&&r.getOptions()||{},a=o.beforeBreadcrumb,s=void 0===a?null:a,l=o.maxBreadcrumbs,c=void 0===l?100:l;if(!(c<=0)){var u=(0,A1.yW)(),d=S1({timestamp:u},e),h=s?(0,T1.Cf)(function(){return s(d,t)}):d;null!==h&&i.addBreadcrumb(h,Math.min(c,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=p2(this);try{e(this)}finally{p2(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return P1.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,i,r;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===(r=null===(i=this.getStackTop())||void 0===i?void 0:i.scope)||void 0===r||r.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,i=t.client,r=i&&i.getOptions()||{},o=new u2(S1(S1({release:r.release,environment:r.environment},n&&{user:n.getUser()}),e));if(n){var a=n.getSession&&n.getSession();a&&a.status===b1.Ok&&a.update({status:b1.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 i=t.getSession&&t.getSession();i&&n&&n.captureSession&&n.captureSession(i)}},e.prototype._invokeClient=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=this.getStackTop(),o=r.scope,a=r.client;a&&a[e]&&(t=a)[e].apply(t,k1(n,[o]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=h2(),r=i.__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);P1.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}());function h2(){var e=(0,T1.Rf)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function p2(e){var t=h2(),n=g2(t);return v2(t,e),n}function f2(){var e=h2();return m2(e)&&!g2(e).isOlderThan(4)||v2(e,new d2),(0,I1.KV)()?function(e){var t,n,i;try{var r=null===(i=null===(n=null===(t=h2().__SENTRY__)||void 0===t?void 0:t.extensions)||void 0===n?void 0:n.domain)||void 0===i?void 0:i.active;if(!r)return g2(e);if(!m2(r)||g2(r).isOlderThan(4)){var o=g2(e).getStackTop();v2(r,new d2(o.client,Y1.clone(o.scope)))}return g2(r)}catch(a){return g2(e)}}(e):g2(e)}function m2(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function g2(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new d2),e.__SENTRY__.hub}function v2(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function y2(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=f2();if(i&&i[e])return i[e].apply(i,k1(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function _2(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return y2("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function b2(e){y2("withScope",e)}var w2,S2=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],x2=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){G1(function(t){var n=f2();if(!n)return t;var i=n.getIntegration(e);if(i){var r=n.getClient(),o=r?r.getOptions():{},a="function"==typeof i._mergeOptions?i._mergeOptions(o):{};return"function"!=typeof i._shouldDropEvent?t:i._shouldDropEvent(t,a)?null:t}return t})},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(P1.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,T1.jH)(e)),!0):this._isIgnoredError(e,t)?(P1.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,T1.jH)(e)),!0):this._isDeniedUrl(e,t)?(P1.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,T1.jH)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(P1.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,T1.jH)(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 t2(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 t2(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 t2(n,e)})},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:k1(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:k1(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:k1(this._options.ignoreErrors||[],e.ignoreErrors||[],S2),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,i=t.value,r=void 0===i?"":i;return[""+r,(void 0===n?"":n)+": "+r]}catch(o){return P1.error("Cannot extract message for event "+(0,T1.jH)(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(i){return P1.error("Cannot extract url for event "+(0,T1.jH)(e)),null}},e.id="InboundFilters",e}(),C2=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){w2=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 w2.apply(n,e)}},e.id="FunctionToString",e}();function k2(){if(!("fetch"in(0,T1.Rf)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function T2(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function A2(){if(!k2())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var Z2,M2,O2,E2=(0,T1.Rf)(),P2={},I2={};function q2(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(P2[e.type]=P2[e.type]||[],P2[e.type].push(e.callback),function(e){if(!I2[e])switch(I2[e]=!0,e){case"console":"console"in E2&&["debug","info","warn","error","log","assert"].forEach(function(e){e in E2.console&&n2(E2.console,e,function(t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];N2("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,E2.console,n)}})});break;case"dom":!function(){if("document"in E2){var e=N2.bind(null,"dom"),t=L2(e,!0);E2.document.addEventListener("click",t,!1),E2.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(function(t){var n=E2[t]&&E2[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(n2(n,"addEventListener",function(t){return function(n,i,r){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=L2(e);a.handler=s,t.call(this,n,s,r)}a.refCount+=1}catch(l){}return t.call(this,n,i,r)}}),n2(n,"removeEventListener",function(e){return function(t,n,i){if("click"===t||"keypress"==t)try{var r=this.__sentry_instrumentation_handlers__||{},o=r[t];o&&(o.refCount-=1,o.refCount<=0&&(e.call(this,t,o.handler,i),o.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch(a){}return e.call(this,t,n,i)}}))})}}();break;case"xhr":!function(){if("XMLHttpRequest"in E2){var e=[],t=[],n=XMLHttpRequest.prototype;n2(n,"open",function(n){return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var o=this,a=i[1];o.__sentry_xhr__={method:R1(i[0])?i[0].toUpperCase():i[0],url:i[1]},R1(a)&&"POST"===o.__sentry_xhr__.method&&a.match(/sentry_key/)&&(o.__sentry_own_request__=!0);var s=function(){if(4===o.readyState){try{o.__sentry_xhr__&&(o.__sentry_xhr__.status_code=o.status)}catch(a){}try{var n=e.indexOf(o);if(-1!==n){e.splice(n);var r=t.splice(n)[0];o.__sentry_xhr__&&void 0!==r[0]&&(o.__sentry_xhr__.body=r[0])}}catch(a){}N2("xhr",{args:i,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?n2(o,"onreadystatechange",function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return s(),e.apply(o,t)}}):o.addEventListener("readystatechange",s),n.apply(o,i)}}),n2(n,"send",function(n){return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return e.push(this),t.push(i),N2("xhr",{args:i,startTimestamp:Date.now(),xhr:this}),n.apply(this,i)}})}}();break;case"fetch":(function(){if(!k2())return!1;var e=(0,T1.Rf)();if(T2(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i),i.contentWindow&&i.contentWindow.fetch&&(t=T2(i.contentWindow.fetch)),n.head.removeChild(i)}catch(r){P1.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t})()&&n2(E2,"fetch",function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i={args:t,fetchData:{method:D2(t),url:R2(t)},startTimestamp:Date.now()};return N2("fetch",S1({},i)),e.apply(E2,t).then(function(e){return N2("fetch",S1(S1({},i),{endTimestamp:Date.now(),response:e})),e},function(e){throw N2("fetch",S1(S1({},i),{endTimestamp:Date.now(),error:e})),e})}});break;case"history":!function(){if(function(){var e=(0,T1.Rf)(),t=e.chrome;return!(t&&t.app&&t.app.runtime||!("history"in e)||!e.history.pushState||!e.history.replaceState)}()){var e=E2.onpopstate;E2.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=E2.location.href,r=Z2;if(Z2=i,N2("history",{from:r,to:i}),e)try{return e.apply(this,t)}catch(o){}},n2(E2.history,"pushState",t),n2(E2.history,"replaceState",t)}function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t.length>2?t[2]:void 0;if(i){var r=Z2,o=String(i);Z2=o,N2("history",{from:r,to:o})}return e.apply(this,t)}}}();break;case"error":F2=E2.onerror,E2.onerror=function(e,t,n,i,r){return N2("error",{column:i,error:r,line:n,msg:e,url:t}),!!F2&&F2.apply(this,arguments)};break;case"unhandledrejection":B2=E2.onunhandledrejection,E2.onunhandledrejection=function(e){return N2("unhandledrejection",e),!B2||B2.apply(this,arguments)};break;default:P1.warn("unknown instrumentation type:",e)}}(e.type))}function N2(e,t){var n,i;if(e&&P2[e])try{for(var r=x1(P2[e]||[]),o=r.next();!o.done;o=r.next()){var a=o.value;try{a(t)}catch(s){P1.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+K1(a)+"\nError: "+s)}}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}}function D2(e){return void 0===e&&(e=[]),"Request"in E2&&U1(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function R2(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in E2&&U1(e[0],Request)?e[0].url:String(e[0])}function L2(e,t){return void 0===t&&(t=!1),function(n){if(n&&O2!==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 i="keypress"===n.type?"input":n.type;(void 0===M2||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}(O2,n))&&(e({event:n,name:i,global:t}),O2=n),clearTimeout(M2),M2=E2.setTimeout(function(){M2=void 0},1e3)}}}var F2=null,B2=null,j2="6.4.1",z2=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}),U2=function(e){function t(t){var n=this.constructor,i=e.call(this,t)||this;return i.message=t,i.name=n.prototype.constructor.name,z2(i,n.prototype),i}return _1(t,e),t}(Error),H2=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,Y2=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.path,i=t.pass,r=t.port;return t.protocol+"://"+t.publicKey+(e&&i?":"+i:"")+"@"+t.host+(r?":"+r:"")+"/"+(n?n+"/":n)+t.projectId},e.prototype._fromString=function(e){var t=H2.exec(e);if(!t)throw new U2("Invalid Dsn");var n=C1(t.slice(1),6),i=n[0],r=n[1],o=n[2],a=void 0===o?"":o,s=n[3],l=n[4],c=void 0===l?"":l,u="",d=n[5],h=d.split("/");if(h.length>1&&(u=h.slice(0,-1).join("/"),d=h.pop()),d){var p=d.match(/^\d+/);p&&(d=p[0])}this._fromComponents({host:s,pass:a,path:u,projectId:d,port:c,protocol:i,publicKey:r})},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 U2("Invalid Dsn: "+t+" missing")}),!this.projectId.match(/^\d+$/))throw new U2("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new U2("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new U2("Invalid Dsn: Invalid port "+this.port)},e}(),J2=[];function G2(e){return e.reduce(function(e,t){return e.every(function(e){return t.name!==e.name})&&e.push(t),e},[])}var W2,V2=function(){function e(e,t){this._integrations={},this._processing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new Y2(t.dsn))}return e.prototype.captureException=function(e,t,n){var i=this,r=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then(function(e){return i._captureEvent(e,t,n)}).then(function(e){r=e})),r},e.prototype.captureMessage=function(e,t,n,i){var r=this,o=n&&n.event_id,a=L1(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then(function(e){return r._captureEvent(e,n,i)}).then(function(e){o=e})),o},e.prototype.captureEvent=function(e,t,n){var i=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then(function(e){i=e})),i},e.prototype.captureSession=function(e){"string"!=typeof e.release?P1.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1}))},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&&k1(e.defaultIntegrations)||[],n=e.integrations,i=k1(G2(t));Array.isArray(n)?i=k1(i.filter(function(e){return n.every(function(t){return t.name!==e.name})}),G2(n)):"function"==typeof n&&(i=n(i),i=Array.isArray(i)?i:[i]);var r=i.map(function(e){return e.name}),o="Debug";return-1!==r.indexOf(o)&&i.push.apply(i,k1(i.splice(r.indexOf(o),1))),i}(this._options).forEach(function(t){e[t.name]=t,function(e){-1===J2.indexOf(e.name)&&(e.setupOnce(G1,f2),J2.push(e.name),P1.log("Integration installed: "+e.name))}(t)}),e))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return P1.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,i,r,o=!1,a=!1,s=t.exception&&t.exception.values;if(s){a=!0;try{for(var l=x1(s),c=l.next();!c.done;c=l.next()){var u=c.value.mechanism;if(u&&!1===u.handled){o=!0;break}}}catch(f){n={error:f}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}}var d=t.user;if(!e.userAgent){var h=t.request?t.request.headers:{};for(var p in h)if("user-agent"===p.toLowerCase()){r=h[p];break}}e.update(S1(S1({},o&&{status:b1.Crashed}),{user:d,userAgent:r,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 H1(function(n){var i=0,r=setInterval(function(){0==t._processing?(clearInterval(r),n(!0)):(i+=1,e&&i>=e&&(clearInterval(r),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 i=this,r=this.getOptions().normalizeDepth,o=void 0===r?3:r,a=S1(S1({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:(0,T1.DM)()),timestamp:e.timestamp||(0,A1.yW)()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var s=t;n&&n.captureContext&&(s=Y1.clone(s).update(n.captureContext));var l=H1.resolve(a);return s&&(l=s.applyToEvent(a,n)),l.then(function(e){return"number"==typeof o&&o>0?i._normalizeEvent(e,o):e})},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=S1(S1(S1(S1(S1({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(function(e){return S1(S1({},e),e.data&&{data:s2(e.data,t)})})}),e.user&&{user:s2(e.user,t)}),e.contexts&&{contexts:s2(e.contexts,t)}),e.extra&&{extra:s2(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,i=t.dist,r=t.maxValueLength,o=void 0===r?250:r;"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!==i&&(e.dist=i),e.message&&(e.message=$1(e.message,o));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=$1(a.value,o));var s=e.request;s&&s.url&&(s.url=$1(s.url,o))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=k1(e.sdk.integrations||[],t))},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){P1.error(e)})},e.prototype._processEvent=function(e,t,n){var i=this,r=this.getOptions(),o=r.beforeSend,a=r.sampleRate;if(!this._isEnabled())return H1.reject(new U2("SDK not enabled, will not send event."));var s="transaction"===e.type;return!s&&"number"==typeof a&&Math.random()>a?H1.reject(new U2("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 U2("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 U2("`beforeSend` method has to return `null` or a valid event.");return z1(n)?n.then(function(e){return e},function(e){throw new U2("beforeSend rejected with "+e)}):n}).then(function(e){if(null===e)throw new U2("`beforeSend` returned `null`, will not send event.");var t=n&&n.getSession&&n.getSession();return!s&&t&&i._updateSessionFromEvent(t,e),i._sendEvent(e),e}).then(null,function(e){if(e instanceof U2)throw e;throw i.captureException(e,{data:{__sentry__:!0},originalException:e}),new U2("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"}(W2||(W2={})),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}}(W2||(W2={}));var Q2,X2=function(){function e(){}return e.prototype.sendEvent=function(e){return H1.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:W2.Skipped})},e.prototype.close=function(e){return H1.resolve(!0)},e}(),K2=function(){function e(e){this._options=e,this._options.dsn||P1.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new U2("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new U2("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,function(e){P1.error("Error while sending event: "+e)})},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,function(e){P1.error("Error while sending session: "+e)}):P1.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new X2},e}();!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(Q2||(Q2={})),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}}}(Q2||(Q2={}));var $2="?",e3=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,t3=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,n3=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,i3=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,r3=/\((\S*)(?::(\d+))(?::(\d+))\)/,o3=/Minified React error #\d+;/i;function a3(e){var t=null,n=0;e&&("number"==typeof e.framesToPop?n=e.framesToPop:o3.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,r=e.stacktrace.split("\n"),o=[],a=0;a<r.length;a+=2){var s=null;(t=n.exec(r[a]))?s={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=i.exec(r[a]))&&(s={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),s&&(!s.func&&s.line&&(s.func=$2),o.push(s))}return o.length?{message:l3(e),name:e.name,stack:o}:null}(e))return s3(t,n)}catch(i){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,n,i,r=[],o=e.stack.split("\n"),a=0;a<o.length;++a){if(n=e3.exec(o[a])){var s=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=r3.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]);var l=n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],c=n[1]||$2,u=-1!==c.indexOf("safari-extension"),d=-1!==c.indexOf("safari-web-extension");(u||d)&&(c=-1!==c.indexOf("@")?c.split("@")[0]:$2,l=u?"safari-extension:"+l:"safari-web-extension:"+l),i={url:l,func:c,args:s?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=n3.exec(o[a]))i={url:n[2],func:n[1]||$2,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=t3.exec(o[a])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=i3.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==a||n[5]||void 0===e.columnNumber||(r[0].column=e.columnNumber+1),i={url:n[3],func:n[1]||$2,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!i.func&&i.line&&(i.func=$2),r.push(i)}return r.length?{message:l3(e),name:e.name,stack:r}:null}(e))return s3(t,n)}catch(i){}return{message:l3(e),name:e&&e.name,stack:[],failed:!0}}function s3(e,t){try{return S1(S1({},e),{stack:e.stack.slice(t)})}catch(n){return e}}function l3(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function c3(e){var t=d3(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 u3(e){return{exception:{values:[c3(e)]}}}function d3(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",i=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==i.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map(function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}}).reverse()}function h3(e,t,n){var i;if(void 0===n&&(n={}),N1(e)&&e.error)return u3(a3(e=e.error));if(D1(e)||"[object DOMException]"===Object.prototype.toString.call(e)){var r=e,o=r.name||(D1(r)?"DOMError":"DOMException"),a=r.message?o+": "+r.message:o;return i=p3(a,t,n),(0,T1.Db)(i,a),"code"in r&&(i.tags=S1(S1({},i.tags),{"DOMException.code":""+r.code})),i}return q1(e)?i=u3(a3(e)):F1(e)||B1(e)?(i=function(e,t,n){var i={exception:{values:[{type:B1(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+l2(e)}]},extra:{__serialized__:r2(e)}};if(t){var r=d3(a3(t).stack);i.stacktrace={frames:r}}return i}(e,t,n.rejection),(0,T1.EG)(i,{synthetic:!0}),i):(i=p3(e,t,n),(0,T1.Db)(i,""+e,void 0),(0,T1.EG)(i,{synthetic:!0}),i)}function p3(e,t,n){void 0===n&&(n={});var i={message:e};if(n.attachStacktrace&&t){var r=d3(a3(t).stack);i.stacktrace={frames:r}}return i}function f3(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function m3(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=k1(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=k1(e.sdk.packages||[],t.packages||[]),e):e}function g3(e,t){var n=f3(t),i="aggregates"in e?"sessions":"session";return{body:JSON.stringify(S1({sent_at:(new Date).toISOString()},n&&{sdk:n}))+"\n"+JSON.stringify({type:i})+"\n"+JSON.stringify(e),type:i,url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function v3(e,t){var n=f3(t),i=e.type||"event",r="transaction"===i,o=e.debug_meta||{},a=o.transactionSampling,s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(o,["transactionSampling"]),l=a||{},c=l.method,u=l.rate;0===Object.keys(s).length?delete e.debug_meta:e.debug_meta=s;var d={body:JSON.stringify(n?m3(e,t.metadata.sdk):e),type:i,url:r?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(r){var h=JSON.stringify(S1({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n})),p=JSON.stringify({type:e.type,sample_rates:[{id:c,rate:u}]});d.body=h+"\n"+p+"\n"+d.body}return d}var y3=function(){function e(e,t){void 0===t&&(t={}),this.dsn=e,this._dsnObject=new Y2(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,i=["Sentry sentry_version=7"];return i.push("sentry_client="+e+"/"+t),i.push("sentry_key="+n.publicKey),n.pass&&i.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":i.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",i=[];for(var r in i.push("dsn="+t.toString()),e)if("dsn"!==r)if("user"===r){if(!e.user)continue;e.user.name&&i.push("name="+encodeURIComponent(e.user.name)),e.user.email&&i.push("email="+encodeURIComponent(e.user.email))}else i.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return i.length?n+"?"+i.join("&"):n},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){return function(e){return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")}({sentry_key:this._dsnObject.publicKey,sentry_version:"7"})},e}(),_3=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):H1.reject(new U2("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 H1(function(n){var i=setTimeout(function(){e&&e>0&&n(!1)},e);H1.all(t._buffer).then(function(){clearTimeout(i),n(!0)}).then(null,function(){n(!0)})})},e}(),b3={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},w3=function(){function e(e){this.options=e,this._buffer=new _3(30),this._rateLimits={},this._api=new y3(e.dsn,e._metadata),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new U2("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,i=e.headers,r=e.resolve,o=e.reject,a=W2.fromHttpCode(n.status);this._handleRateLimit(i)&&P1.warn("Too many requests, backing off until: "+this._disabledUntil(t)),a!==W2.Success?o(n):r({status:a})},e.prototype._disabledUntil=function(e){return this._rateLimits[b3[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,i,r,o=Date.now(),a=e["x-sentry-rate-limits"],s=e["retry-after"];if(a){try{for(var l=x1(a.trim().split(",")),c=l.next();!c.done;c=l.next()){var u=c.value.split(":",2),d=parseInt(u[0],10),h=1e3*(isNaN(d)?60:d);try{for(var p=(i=void 0,x1(u[1].split(";"))),f=p.next();!f.done;f=p.next())this._rateLimits[f.value||"all"]=new Date(o+h)}catch(m){i={error:m}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(i)throw i.error}}}}catch(g){t={error:g}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return!0}return!!s&&(this._rateLimits.all=new Date(o+(0,T1.JY)(o,s)),!0)},e}(),S3=function(e){function t(t,n){void 0===n&&(n=function(){var e,t,n=(0,T1.Rf)();if(T2(n.fetch))return n.fetch.bind(n);var i=n.document,r=n.fetch;if("function"==typeof(null===(e=i)||void 0===e?void 0:e.createElement))try{var o=i.createElement("iframe");o.hidden=!0,i.head.appendChild(o),(null===(t=o.contentWindow)||void 0===t?void 0:t.fetch)&&(r=o.contentWindow.fetch),i.head.removeChild(o)}catch(a){P1.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",a)}return r.bind(n)}());var i=e.call(this,t)||this;return i._fetch=n,i}return _1(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(v3(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(g3(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 i={body:e.body,method:"POST",referrerPolicy:A2()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(i,this.options.fetchParameters),void 0!==this.options.headers&&(i.headers=this.options.headers),this._buffer.add(new H1(function(t,r){n._fetch(e.url,i).then(function(i){var o={"x-sentry-rate-limits":i.headers.get("X-Sentry-Rate-Limits"),"retry-after":i.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:i,headers:o,resolve:t,reject:r})}).catch(r)}))},t}(w3),x3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _1(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(v3(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(g3(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 H1(function(t,i){var r=new XMLHttpRequest;for(var o in r.onreadystatechange=function(){if(4===r.readyState){var o={"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:o,resolve:t,reject:i})}},r.open("POST",e.url),n.options.headers)n.options.headers.hasOwnProperty(o)&&r.setRequestHeader(o,n.options.headers[o]);r.send(e.body)}))},t}(w3),C3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _1(t,e),t.prototype.eventFromException=function(e,t){return function(e,t,n){var i=h3(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return(0,T1.EG)(i,{handled:!0,type:"generic"}),i.level=Q2.Error,n&&n.event_id&&(i.event_id=n.event_id),H1.resolve(i)}(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=Q2.Info),function(e,t,n,i){void 0===n&&(n=Q2.Info);var r=p3(t,i&&i.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return r.level=n,i&&i.event_id&&(r.event_id=i.event_id),H1.resolve(r)}(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=S1(S1({},this._options.transportOptions),{dsn:this._options.dsn,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(t):k2()?new S3(t):new x3(t)},t}(K2),k3=0;function T3(){return k3>0}function A3(){k3+=1,setTimeout(function(){k3-=1})}function Z3(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(o){return e}var i=function(){var i=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var r=i.map(function(e){return Z3(e,t)});return e.handleEvent?e.handleEvent.apply(this,r):e.apply(this,r)}catch(o){throw A3(),b2(function(e){e.addEventProcessor(function(e){var n=S1({},e);return t.mechanism&&((0,T1.Db)(n,void 0,void 0),(0,T1.EG)(n,t.mechanism)),n.extra=S1(S1({},n.extra),{arguments:i}),n}),_2(o)}),o}};try{for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(i[r]=e[r])}catch(a){}e.prototype=e.prototype||{},i.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:i}),Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:function(){return e.name}})}catch(a){}return i}var M3=function(){function e(t){this.name=e.id,this._options=S1({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&f2().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,T1.jH)(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&q2({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,k1(t))},type:"console"}),this._options.dom&&q2({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,k1(t))},type:"dom"}),this._options.xhr&&q2({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,k1(t))},type:"xhr"}),this._options.fetch&&q2({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,k1(t))},type:"fetch"}),this._options.history&&q2({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,k1(t))},type:"history"})},e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:Q2.fromString(e.level),message:e2(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(e2(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}f2().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=W1(e.event.target?e.event.target:e.event)}catch(n){t="<unknown>"}0!==t.length&&f2().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,i=t.url,r=t.status_code,o=t.body;f2().addBreadcrumb({category:"xhr",data:{method:n,url:i,status_code:r},type:"http"},{xhr:e.xhr,input:o})}},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?f2().addBreadcrumb({category:"fetch",data:e.fetchData,level:Q2.Error,type:"http"},{data:e.error,input:e.args}):f2().addBreadcrumb({category:"fetch",data:S1(S1({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=(0,T1.Rf)(),n=e.from,i=e.to,r=(0,T1.en)(t.location.href),o=(0,T1.en)(n),a=(0,T1.en)(i);o.path||(o=r),r.protocol===a.protocol&&r.host===a.host&&(i=a.relative),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),f2().addBreadcrumb({category:"navigation",data:{from:n,to:i}})},e.id="Breadcrumbs",e}(),O3=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:j2}],version:j2},e.call(this,C3,t)||this}return _1(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),(0,T1.Rf)().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 y3(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad),(document.head||document.body).appendChild(t)}else P1.error("Missing dsn option in showReportDialog call");else P1.error("Missing eventId option in showReportDialog call")}(S1(S1({},e),{dsn:e.dsn||this.getDsn()})):P1.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,i){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,i)},t.prototype._sendEvent=function(t){var n=this.getIntegration(M3);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(V2),E3=["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"],P3=function(){function e(t){this.name=e.id,this._options=S1({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=(0,T1.Rf)();this._options.setTimeout&&n2(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&n2(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&n2(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&n2(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:E3).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t[0];return t[0]=Z3(i,{mechanism:{data:{function:K1(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e.call(this,Z3(t,{mechanism:{data:{function:"requestAnimationFrame",handler:K1(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=(0,T1.Rf)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(n2(n,"addEventListener",function(t){return function(n,i,r){try{"function"==typeof i.handleEvent&&(i.handleEvent=Z3(i.handleEvent.bind(i),{mechanism:{data:{function:"handleEvent",handler:K1(i),target:e},handled:!0,type:"instrument"}}))}catch(o){}return t.call(this,n,Z3(i,{mechanism:{data:{function:"addEventListener",handler:K1(i),target:e},handled:!0,type:"instrument"}}),r)}}),n2(n,"removeEventListener",function(e){return function(t,n,i){var r,o=n;try{var a=null===(r=o)||void 0===r?void 0:r.__sentry_wrapped__;a&&e.call(this,t,a,i)}catch(s){}return e.call(this,t,o,i)}}))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=this,r=["onload","onerror","onprogress","onreadystatechange"];return r.forEach(function(e){e in i&&"function"==typeof i[e]&&n2(i,e,function(t){var n={mechanism:{data:{function:e,handler:K1(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=K1(t.__sentry_original__)),Z3(t,n)})}),e.apply(this,t)}},e.id="TryCatch",e}(),I3=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=S1({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(P1.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(P1.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(q2({callback:function(n){var i=n.error,r=f2(),o=r.getIntegration(e),a=i&&!0===i.__sentry_own_request__;if(o&&!T3()&&!a){var s=r.getClient(),l=L1(i)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(h3(i,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);(0,T1.EG)(l,{handled:!1,type:"onerror"}),r.captureEvent(l,{originalException:i})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(q2({callback:function(n){var i=n;try{"reason"in n?i=n.reason:"detail"in n&&"reason"in n.detail&&(i=n.detail.reason)}catch(c){}var r=f2(),o=r.getIntegration(e),a=i&&!0===i.__sentry_own_request__;if(!o||T3()||a)return!0;var s=r.getClient(),l=L1(i)?t._eventFromRejectionWithPrimitive(i):h3(i,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!0});l.level=Q2.Error,(0,T1.EG)(l,{handled:!1,type:"onunhandledrejection"}),r.captureEvent(l,{originalException:i})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,i){var r,o=N1(e)?e.message:e;if(R1(o)){var a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(r=a[1],o=a[2])}return this._enhanceEventWithInitialFrame({exception:{values:[{type:r||"Error",value:o}]}},t,n,i)},e.prototype._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,i){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var r=isNaN(parseInt(i,10))?void 0:i,o=isNaN(parseInt(n,10))?void 0:n,a=R1(t)&&t.length>0?t:(0,T1.l4)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:r,filename:a,function:"?",in_app:!0,lineno:o}),e},e.id="GlobalHandlers",e}(),q3=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(){G1(function(t,n){var i=f2().getIntegration(e);return i?i._handler(t,n):t})},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&U1(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=k1(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!U1(e[t],Error)||n.length+1>=this._limit)return n;var i=c3(a3(e[t]));return this._walkErrorTree(e[t],t,k1([i],n))},e.id="LinkedErrors",e}(),N3=(0,T1.Rf)(),D3=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){G1(function(t){var n,i,r;if(f2().getIntegration(e)){if(!N3.navigator&&!N3.location&&!N3.document)return t;var o=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(i=N3.location)||void 0===i?void 0:i.href),a=(N3.document||{}).referrer,s=(N3.navigator||{}).userAgent,l=S1(S1(S1({},null===(r=t.request)||void 0===r?void 0:r.headers),a&&{Referer:a}),s&&{"User-Agent":s}),c=S1(S1({},o&&{url:o}),{headers:l});return S1(S1({},t),{request:c})}return t})},e.id="UserAgent",e}(),R3=[new x2,new C2,new P3,new M3,new I3,new q3,new D3];!function(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=R3),void 0===e.release){var t=(0,T1.Rf)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),function(e,t){var n;!0===t.debug&&P1.enable();var i=f2();null===(n=i.getScope())||void 0===n||n.update(t.initialScope);var r=new e(t);i.bindClient(r)}(O3,e),e.autoSessionTracking&&function(){if(void 0!==(0,T1.Rf)().document){var e=f2();"function"==typeof e.startSession&&"function"==typeof e.captureSession&&(e.startSession(),e.captureSession(),q2({callback:function(){e.startSession(),e.captureSession()},type:"history"}))}else P1.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}({dsn:"https://d8be3a98530f49eb90968ff396db326c@o19455.ingest.sentry.io/842726"});var L3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,LO.ZT)(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(KO);t.error&&t.error.message?n.error(t.error.message):t.message?n.error(t.message):t.error&&n.error(t.error)}},t.\u0275fac=function(){var e;return function(n){return(e||(e=y.n5z(t)))(n||t)}}(),t.\u0275prov=y.Yz7({token:t,factory:t.\u0275fac}),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 at.UA?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){_2(this.extractError(e)||"Handled unknown error")},e.\u0275fac=function(t){return new(t||e)(y.LFG(y.zs3))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}()),F3=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=y.Yjl({name:"projectsfilter",type:e,pure:!0}),e}(),B3=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[lt.uc,lt.BQ],lt.uc,lt.BQ]}),e}(),j3=function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({}),e}(),z3=[hW,dO,Nq,aE,i1,iO,sE.lN,gE,ZP,dq,sK,LM,VO,$D,dP,QE,DW,vE.LD,PO,PD,pI,B3,MU.Nh,function(){var e=function e(){(0,f.Z)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=y.oAB({type:e}),e.\u0275inj=y.cJS({imports:[[j3,lt.BQ],lt.BQ]}),e}(),SU,B0],U3=function(){function e(e){e.events.subscribe(function(e){e instanceof _T&&(gtag("set","page",e.url),gtag("send","pageview"))})}return e.\u0275fac=function(t){return new(t||e)(y.LFG(KZ))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),H3=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.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),Y3=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.\u0275fac=function(t){return new(t||e)(y.LFG(kM.wh))},e.\u0275prov=y.Yz7({token:e,factory:e.\u0275fac}),e}(),J3=function(){function e(e){this._googleAnalyticsService=e}return e.\u0275fac=function(t){return new(t||e)(y.LFG(U3))},e.\u0275mod=y.oAB({type:e,bootstrap:[d1]}),e.\u0275inj=y.cJS({providers:[vJ.g,{provide:y.qLn,useClass:L3},Sk,L$,dU.Y,vI,TM,pq,nH,Xz,kJ,kM.wh,uK,hK,KO,ZM,mQ,Kz.F,$z.G,v1,SK,Vj,Wz,TJ,kM.gc,FO,uU,Fz,H3,QL,NB,KP,HF,XP,gR,mP,fP,pP,vR,XL,WF,RB,mI,hB,vB,NN,DN,xL,EL,ZQ.p,D$,Bz,p0,h0,MQ,ZU,MJ,rz,KU,$P.X,Y3,KJ,OQ,hL,EP.f,U3,fJ,s1,X0,o.Dx,xW,m0],imports:[[o.b2,at.JF,c1,st.u5,st.UX,mt.PW,ot,g1,nT,Vk,vt,Qt.ym,Vt,ye,$k,z3,Uk.forRoot(),_e.U8]]}),e}();y.B6R(x$,[cO,st._Y,st.JL,st.F,sE.KE,mE,st.Fj,st.JJ,st.On,yP,MW,wP,bP,SP,NW,_P,xP,tM,_.O5,MO,nO,CP,TP,kP,AP],[F3]),(0,y.G48)(),o.q6().bootstrapModule(J3).then(function(e){var t=e.injector.get(y.z2F);(0,o.HJ)(t.components[0])}).catch(function(e){return console.log(e)})},15909:function(e){"use strict";e.exports=JSON.parse('{"atrules":{"charset":{"prelude":"<string>"},"font-face":{"descriptors":{"unicode-range":{"comment":"replaces <unicode-range>, an old production name","syntax":"<urange>#"}}}},"properties":{"-moz-background-clip":{"comment":"deprecated syntax in old Firefox, https://developer.mozilla.org/en/docs/Web/CSS/background-clip","syntax":"padding | border"},"-moz-border-radius-bottomleft":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius","syntax":"<\'border-bottom-left-radius\'>"},"-moz-border-radius-bottomright":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius","syntax":"<\'border-bottom-right-radius\'>"},"-moz-border-radius-topleft":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius","syntax":"<\'border-top-left-radius\'>"},"-moz-border-radius-topright":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius","syntax":"<\'border-bottom-right-radius\'>"},"-moz-control-character-visibility":{"comment":"firefox specific keywords, https://bugzilla.mozilla.org/show_bug.cgi?id=947588","syntax":"visible | hidden"},"-moz-osx-font-smoothing":{"comment":"misssed old syntax https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth","syntax":"auto | grayscale"},"-moz-user-select":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/user-select","syntax":"none | text | all | -moz-none"},"-ms-flex-align":{"comment":"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align","syntax":"start | end | center | baseline | stretch"},"-ms-flex-item-align":{"comment":"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align","syntax":"auto | start | end | center | baseline | stretch"},"-ms-flex-line-pack":{"comment":"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-line-pack","syntax":"start | end | center | justify | distribute | stretch"},"-ms-flex-negative":{"comment":"misssed old syntax implemented in IE; TODO: find references for comfirmation","syntax":"<\'flex-shrink\'>"},"-ms-flex-pack":{"comment":"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-pack","syntax":"start | end | center | justify | distribute"},"-ms-flex-order":{"comment":"misssed old syntax implemented in IE; https://msdn.microsoft.com/en-us/library/jj127303(v=vs.85).aspx","syntax":"<integer>"},"-ms-flex-positive":{"comment":"misssed old syntax implemented in IE; TODO: find references for comfirmation","syntax":"<\'flex-grow\'>"},"-ms-flex-preferred-size":{"comment":"misssed old syntax implemented in IE; TODO: find references for comfirmation","syntax":"<\'flex-basis\'>"},"-ms-interpolation-mode":{"comment":"https://msdn.microsoft.com/en-us/library/ff521095(v=vs.85).aspx","syntax":"nearest-neighbor | bicubic"},"-ms-grid-column-align":{"comment":"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466338.aspx","syntax":"start | end | center | stretch"},"-ms-grid-row-align":{"comment":"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466348.aspx","syntax":"start | end | center | stretch"},"-ms-hyphenate-limit-last":{"comment":"misssed old syntax implemented in IE; https://www.w3.org/TR/css-text-4/#hyphenate-line-limits","syntax":"none | always | column | page | spread"},"-webkit-appearance":{"comment":"webkit specific keywords","references":["http://css-infos.net/property/-webkit-appearance"],"syntax":"none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | 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 | -apple-pay-button"},"-webkit-background-clip":{"comment":"https://developer.mozilla.org/en/docs/Web/CSS/background-clip","syntax":"[ <box> | border | padding | content | text ]#"},"-webkit-column-break-after":{"comment":"added, http://help.dottoro.com/lcrthhhv.php","syntax":"always | auto | avoid"},"-webkit-column-break-before":{"comment":"added, http://help.dottoro.com/lcxquvkf.php","syntax":"always | auto | avoid"},"-webkit-column-break-inside":{"comment":"added, http://help.dottoro.com/lclhnthl.php","syntax":"always | auto | avoid"},"-webkit-font-smoothing":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth","syntax":"auto | none | antialiased | subpixel-antialiased"},"-webkit-mask-box-image":{"comment":"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image","syntax":"[ <url> | <gradient> | none ] [ <length-percentage>{4} <-webkit-mask-box-repeat>{2} ]?"},"-webkit-print-color-adjust":{"comment":"missed","references":["https://developer.mozilla.org/en/docs/Web/CSS/-webkit-print-color-adjust"],"syntax":"economy | exact"},"-webkit-text-security":{"comment":"missed; http://help.dottoro.com/lcbkewgt.php","syntax":"none | circle | disc | square"},"-webkit-user-drag":{"comment":"missed; http://help.dottoro.com/lcbixvwm.php","syntax":"none | element | auto"},"-webkit-user-select":{"comment":"auto is supported by old webkit, https://developer.mozilla.org/en-US/docs/Web/CSS/user-select","syntax":"auto | none | text | all"},"alignment-baseline":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#AlignmentBaselineProperty"],"syntax":"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical"},"baseline-shift":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#BaselineShiftProperty"],"syntax":"baseline | sub | super | <svg-length>"},"behavior":{"comment":"added old IE property https://msdn.microsoft.com/en-us/library/ms530723(v=vs.85).aspx","syntax":"<url>+"},"clip-rule":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/masking.html#ClipRuleProperty"],"syntax":"nonzero | evenodd"},"cue":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<\'cue-before\'> <\'cue-after\'>?"},"cue-after":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<url> <decibel>? | none"},"cue-before":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<url> <decibel>? | none"},"cursor":{"comment":"added legacy keywords: hand, -webkit-grab. -webkit-grabbing, -webkit-zoom-in, -webkit-zoom-out, -moz-grab, -moz-grabbing, -moz-zoom-in, -moz-zoom-out","references":["https://www.sitepoint.com/css3-cursor-styles/"],"syntax":"[ [ <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 ] ]"},"display":{"comment":"extended with -ms-flexbox","syntax":"| <-non-standard-display>"},"position":{"comment":"extended with -webkit-sticky","syntax":"| -webkit-sticky"},"dominant-baseline":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#DominantBaselineProperty"],"syntax":"auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge"},"image-rendering":{"comment":"extended with <-non-standard-image-rendering>, added SVG keywords optimizeSpeed and optimizeQuality","references":["https://developer.mozilla.org/en/docs/Web/CSS/image-rendering","https://www.w3.org/TR/SVG/painting.html#ImageRenderingProperty"],"syntax":"| optimizeSpeed | optimizeQuality | <-non-standard-image-rendering>"},"fill":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#FillProperty"],"syntax":"<paint>"},"fill-opacity":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#FillProperty"],"syntax":"<number-zero-one>"},"fill-rule":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#FillProperty"],"syntax":"nonzero | evenodd"},"filter":{"comment":"extend with IE legacy syntaxes","syntax":"| <-ms-filter-function-list>"},"glyph-orientation-horizontal":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#GlyphOrientationHorizontalProperty"],"syntax":"<angle>"},"glyph-orientation-vertical":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#GlyphOrientationVerticalProperty"],"syntax":"<angle>"},"kerning":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#KerningProperty"],"syntax":"auto | <svg-length>"},"letter-spacing":{"comment":"fix syntax <length> -> <length-percentage>","references":["https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/letter-spacing"],"syntax":"normal | <length-percentage>"},"marker":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],"syntax":"none | <url>"},"marker-end":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],"syntax":"none | <url>"},"marker-mid":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],"syntax":"none | <url>"},"marker-start":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],"syntax":"none | <url>"},"max-width":{"comment":"fix auto -> none (https://github.com/mdn/data/pull/431); extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/max-width","syntax":"none | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},"width":{"comment":"per spec fit-content should be a function, however browsers are supporting it as a keyword (https://github.com/csstree/stylelint-validator/issues/29)","syntax":"| fit-content | -moz-fit-content | -webkit-fit-content"},"min-width":{"comment":"extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width","syntax":"auto | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},"overflow":{"comment":"extend by vendor keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow","syntax":"| <-non-standard-overflow>"},"pause":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<\'pause-before\'> <\'pause-after\'>?"},"pause-after":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<time> | none | x-weak | weak | medium | strong | x-strong"},"pause-before":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<time> | none | x-weak | weak | medium | strong | x-strong"},"rest":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<\'rest-before\'> <\'rest-after\'>?"},"rest-after":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<time> | none | x-weak | weak | medium | strong | x-strong"},"rest-before":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<time> | none | x-weak | weak | medium | strong | x-strong"},"shape-rendering":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#ShapeRenderingPropert"],"syntax":"auto | optimizeSpeed | crispEdges | geometricPrecision"},"src":{"comment":"added @font-face\'s src property https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src","syntax":"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#"},"speak":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"auto | none | normal"},"speak-as":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"normal | spell-out || digits || [ literal-punctuation | no-punctuation ]"},"stroke":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"<paint>"},"stroke-dasharray":{"comment":"added SVG property; a list of comma and/or white space separated <length>s and <percentage>s","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"none | [ <svg-length>+ ]#"},"stroke-dashoffset":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"<svg-length>"},"stroke-linecap":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"butt | round | square"},"stroke-linejoin":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"miter | round | bevel"},"stroke-miterlimit":{"comment":"added SVG property (<miterlimit> = <number-one-or-greater>) ","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"<number-one-or-greater>"},"stroke-opacity":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"<number-zero-one>"},"stroke-width":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"<svg-length>"},"text-anchor":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#TextAlignmentProperties"],"syntax":"start | middle | end"},"unicode-bidi":{"comment":"added prefixed keywords https://developer.mozilla.org/en-US/docs/Web/CSS/unicode-bidi","syntax":"| -moz-isolate | -moz-isolate-override | -moz-plaintext | -webkit-isolate | -webkit-isolate-override | -webkit-plaintext"},"unicode-range":{"comment":"added missed property https://developer.mozilla.org/en-US/docs/Web/CSS/%40font-face/unicode-range","syntax":"<urange>#"},"voice-balance":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<number> | left | center | right | leftwards | rightwards"},"voice-duration":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"auto | <time>"},"voice-family":{"comment":"<name> -> <family-name>, https://www.w3.org/TR/css3-speech/#property-index","syntax":"[ [ <family-name> | <generic-voice> ] , ]* [ <family-name> | <generic-voice> ] | preserve"},"voice-pitch":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-range":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-rate":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"[ normal | x-slow | slow | medium | fast | x-fast ] || <percentage>"},"voice-stress":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"normal | strong | moderate | none | reduced"},"voice-volume":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"silent | [ [ x-soft | soft | medium | loud | x-loud ] || <decibel> ]"},"writing-mode":{"comment":"extend with SVG keywords","syntax":"| <svg-writing-mode>"}},"syntaxes":{"-legacy-gradient":{"comment":"added collection of legacy gradient syntaxes","syntax":"<-webkit-gradient()> | <-legacy-linear-gradient> | <-legacy-repeating-linear-gradient> | <-legacy-radial-gradient> | <-legacy-repeating-radial-gradient>"},"-legacy-linear-gradient":{"comment":"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient","syntax":"-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":{"comment":"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient","syntax":"-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":{"comment":"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient","syntax":"[ <angle> | <side-or-corner> ]? , <color-stop-list>"},"-legacy-radial-gradient":{"comment":"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients","syntax":"-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":{"comment":"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients","syntax":"-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":{"comment":"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients","syntax":"[ <position> , ]? [ [ [ <-legacy-radial-gradient-shape> || <-legacy-radial-gradient-size> ] | [ <length> | <percentage> ]{2} ] , ]? <color-stop-list>"},"-legacy-radial-gradient-size":{"comment":"before a standard it contains 2 extra keywords (`contain` and `cover`) https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltsize","syntax":"closest-side | closest-corner | farthest-side | farthest-corner | contain | cover"},"-legacy-radial-gradient-shape":{"comment":"define to double sure it doesn\'t extends in future https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltshape","syntax":"circle | ellipse"},"-non-standard-font":{"comment":"non standard fonts","references":["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],"syntax":"-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":{"comment":"non standard colors","references":["http://cssdot.ru/%D0%A1%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D1%87%D0%BD%D0%B8%D0%BA_CSS/color-i305.html","https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Mozilla_Color_Preference_Extensions"],"syntax":"-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":{"comment":"non-standard keywords http://phrogz.net/tmp/canvas_image_zoom.html","syntax":"optimize-contrast | -moz-crisp-edges | -o-crisp-edges | -webkit-optimize-contrast"},"-non-standard-overflow":{"comment":"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow","syntax":"-moz-scrollbars-none | -moz-scrollbars-horizontal | -moz-scrollbars-vertical | -moz-hidden-unscrollable"},"-non-standard-width":{"comment":"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width","syntax":"fill-available | min-intrinsic | intrinsic | -moz-available | -moz-fit-content | -moz-min-content | -moz-max-content | -webkit-min-content | -webkit-max-content"},"-webkit-gradient()":{"comment":"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/ - TODO: simplify when after match algorithm improvement ( [, point, radius | , point] -> [, radius]? , point )","syntax":"-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":{"comment":"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/","syntax":"from( <color> ) | color-stop( [ <number-zero-one> | <percentage> ] , <color> ) | to( <color> )"},"-webkit-gradient-point":{"comment":"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/","syntax":"[ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]"},"-webkit-gradient-radius":{"comment":"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/","syntax":"<length> | <percentage>"},"-webkit-gradient-type":{"comment":"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/","syntax":"linear | radial"},"-webkit-mask-box-repeat":{"comment":"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image","syntax":"repeat | stretch | round"},"-webkit-mask-clip-style":{"comment":"missed; there is no enough information about `-webkit-mask-clip` property, but looks like all those keywords are working","syntax":"border | border-box | padding | padding-box | content | content-box | text"},"-ms-filter-function-list":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter","syntax":"<-ms-filter-function>+"},"-ms-filter-function":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter","syntax":"<-ms-filter-function-progid> | <-ms-filter-function-legacy>"},"-ms-filter-function-progid":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter","syntax":"\'progid:\' [ <ident-token> \'.\' ]* [ <ident-token> | <function-token> <any-value>? ) ]"},"-ms-filter-function-legacy":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter","syntax":"<ident-token> | <function-token> <any-value>? )"},"-ms-filter":{"syntax":"<string>"},"age":{"comment":"https://www.w3.org/TR/css3-speech/#voice-family","syntax":"child | young | old"},"attr-name":{"syntax":"<wq-name>"},"attr-fallback":{"syntax":"<any-value>"},"border-radius":{"comment":"missed, https://drafts.csswg.org/css-backgrounds-3/#the-border-radius","syntax":"<length-percentage>{1,2}"},"bottom":{"comment":"missed; not sure we should add it, but no others except `shape` is using it so it\'s ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect","syntax":"<length> | auto"},"content-list":{"comment":"missed -> https://drafts.csswg.org/css-content/#typedef-content-list (document-url, <target> and leader() is omitted util stabilization)","syntax":"[ <string> | contents | <image> | <quote> | <target> | <leader()> | <attr()> | counter( <ident>, <\'list-style-type\'>? ) ]+"},"element()":{"comment":"https://drafts.csswg.org/css-gcpm/#element-syntax & https://drafts.csswg.org/css-images-4/#element-notation","syntax":"element( <custom-ident> , [ first | start | last | first-except ]? ) | element( <id-selector> )"},"generic-voice":{"comment":"https://www.w3.org/TR/css3-speech/#voice-family","syntax":"[ <age>? <gender> <integer>? ]"},"gender":{"comment":"https://www.w3.org/TR/css3-speech/#voice-family","syntax":"male | female | neutral"},"generic-family":{"comment":"added -apple-system","references":["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],"syntax":"| -apple-system"},"gradient":{"comment":"added legacy syntaxes support","syntax":"| <-legacy-gradient>"},"left":{"comment":"missed; not sure we should add it, but no others except `shape` is using it so it\'s ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect","syntax":"<length> | auto"},"mask-image":{"comment":"missed; https://drafts.fxtf.org/css-masking-1/#the-mask-image","syntax":"<mask-reference>#"},"name-repeat":{"comment":"missed, and looks like obsolete, keep it as is since other property syntaxes should be changed too; https://www.w3.org/TR/2015/WD-css-grid-1-20150917/#typedef-name-repeat","syntax":"repeat( [ <positive-integer> | auto-fill ], <line-names>+)"},"named-color":{"comment":"added non standard color names","syntax":"| <-non-standard-color>"},"paint":{"comment":"used by SVG https://www.w3.org/TR/SVG/painting.html#SpecifyingPaint","syntax":"none | <color> | <url> [ none | <color> ]? | context-fill | context-stroke"},"page-size":{"comment":"https://www.w3.org/TR/css-page-3/#typedef-page-size-page-size","syntax":"A5 | A4 | A3 | B5 | B4 | JIS-B5 | JIS-B4 | letter | legal | ledger"},"ratio":{"comment":"missed, https://drafts.csswg.org/mediaqueries-4/#typedef-ratio","syntax":"<integer> / <integer>"},"right":{"comment":"missed; not sure we should add it, but no others except `shape` is using it so it\'s ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect","syntax":"<length> | auto"},"shape":{"comment":"missed spaces in function body and add backwards compatible syntax","syntax":"rect( <top>, <right>, <bottom>, <left> ) | rect( <top> <right> <bottom> <left> )"},"svg-length":{"comment":"All coordinates and lengths in SVG can be specified with or without a unit identifier","references":["https://www.w3.org/TR/SVG11/coords.html#Units"],"syntax":"<percentage> | <length> | <number>"},"svg-writing-mode":{"comment":"SVG specific keywords (deprecated for CSS)","references":["https://developer.mozilla.org/en/docs/Web/CSS/writing-mode","https://www.w3.org/TR/SVG/text.html#WritingModeProperty"],"syntax":"lr-tb | rl-tb | tb-rl | lr | rl | tb"},"top":{"comment":"missed; not sure we should add it, but no others except `shape` is using it so it\'s ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect","syntax":"<length> | auto"},"track-group":{"comment":"used by old grid-columns and grid-rows syntax v0","syntax":"\'(\' [ <string>* <track-minmax> <string>* ]+ \')\' [ \'[\' <positive-integer> \']\' ]? | <track-minmax>"},"track-list-v0":{"comment":"used by old grid-columns and grid-rows syntax v0","syntax":"[ <string>* <track-group> <string>* ]+ | none"},"track-minmax":{"comment":"used by old grid-columns and grid-rows syntax v0","syntax":"minmax( <track-breadth> , <track-breadth> ) | auto | <track-breadth> | fit-content"},"x":{"comment":"missed; not sure we should add it, but no others except `cursor` is using it so it\'s ok for now; https://drafts.csswg.org/css-ui-3/#cursor","syntax":"<number>"},"y":{"comment":"missed; not sure we should add it, but no others except `cursor` is using so it\'s ok for now; https://drafts.csswg.org/css-ui-3/#cursor","syntax":"<number>"},"declaration":{"comment":"missed, restored by https://drafts.csswg.org/css-syntax","syntax":"<ident-token> : <declaration-value>? [ \'!\' important ]?"},"declaration-list":{"comment":"missed, restored by https://drafts.csswg.org/css-syntax","syntax":"[ <declaration>? \';\' ]* <declaration>?"},"url":{"comment":"https://drafts.csswg.org/css-values-4/#urls","syntax":"url( <string> <url-modifier>* ) | <url-token>"},"url-modifier":{"comment":"https://drafts.csswg.org/css-values-4/#typedef-url-modifier","syntax":"<ident> | <function-token> <any-value> )"},"number-zero-one":{"syntax":"<number [0,1]>"},"number-one-or-greater":{"syntax":"<number [1,\u221e]>"},"positive-integer":{"syntax":"<integer [0,\u221e]>"},"-non-standard-display":{"syntax":"-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"}}}')},74441:function(e){"use strict";e.exports={version:"1.1.3"}},53523:function(e){"use strict";e.exports=JSON.parse('{"@charset":{"syntax":"@charset \\"<charset>\\";","groups":["CSS Charsets"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@charset"},"@counter-style":{"syntax":"@counter-style <counter-style-name> {\\n [ system: <counter-system>; ] ||\\n [ symbols: <counter-symbols>; ] ||\\n [ additive-symbols: <additive-symbols>; ] ||\\n [ negative: <negative-symbol>; ] ||\\n [ prefix: <prefix>; ] ||\\n [ suffix: <suffix>; ] ||\\n [ range: <range>; ] ||\\n [ pad: <padding>; ] ||\\n [ speak-as: <speak-as>; ] ||\\n [ fallback: <counter-style-name>; ]\\n}","interfaces":["CSSCounterStyleRule"],"groups":["CSS Counter Styles"],"descriptors":{"additive-symbols":{"syntax":"[ <integer> && <symbol> ]#","media":"all","initial":"n/a (required)","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"fallback":{"syntax":"<counter-style-name>","media":"all","initial":"decimal","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"negative":{"syntax":"<symbol> <symbol>?","media":"all","initial":"\\"-\\" hyphen-minus","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"pad":{"syntax":"<integer> && <symbol>","media":"all","initial":"0 \\"\\"","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"prefix":{"syntax":"<symbol>","media":"all","initial":"\\"\\"","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"range":{"syntax":"[ [ <integer> | infinite ]{2} ]# | auto","media":"all","initial":"auto","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"speak-as":{"syntax":"auto | bullets | numbers | words | spell-out | <counter-style-name>","media":"all","initial":"auto","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"suffix":{"syntax":"<symbol>","media":"all","initial":"\\". \\"","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"symbols":{"syntax":"<symbol>+","media":"all","initial":"n/a (required)","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"system":{"syntax":"cyclic | numeric | alphabetic | symbolic | additive | [ fixed <integer>? ] | [ extends <counter-style-name> ]","media":"all","initial":"symbolic","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"}},"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@counter-style"},"@document":{"syntax":"@document [ <url> | url-prefix(<string>) | domain(<string>) | media-document(<string>) | regexp(<string>) ]# {\\n <group-rule-body>\\n}","interfaces":["CSSGroupingRule","CSSConditionRule"],"groups":["CSS Conditional Rules"],"status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@document"},"@font-face":{"syntax":"@font-face {\\n [ font-family: <family-name>; ] ||\\n [ src: <src>; ] ||\\n [ unicode-range: <unicode-range>; ] ||\\n [ font-variant: <font-variant>; ] ||\\n [ font-feature-settings: <font-feature-settings>; ] ||\\n [ font-variation-settings: <font-variation-settings>; ] ||\\n [ font-stretch: <font-stretch>; ] ||\\n [ font-weight: <font-weight>; ] ||\\n [ font-style: <font-style>; ]\\n}","interfaces":["CSSFontFaceRule"],"groups":["CSS Fonts"],"descriptors":{"font-display":{"syntax":"[ auto | block | swap | fallback | optional ]","media":"visual","percentages":"no","initial":"auto","computed":"asSpecified","order":"uniqueOrder","status":"experimental"},"font-family":{"syntax":"<family-name>","media":"all","initial":"n/a (required)","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"font-feature-settings":{"syntax":"normal | <feature-tag-value>#","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"font-variation-settings":{"syntax":"normal | [ <string> <number> ]#","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"font-stretch":{"syntax":"<font-stretch-absolute>{1,2}","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"font-style":{"syntax":"normal | italic | oblique <angle>{0,2}","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"font-weight":{"syntax":"<font-weight-absolute>{1,2}","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"font-variant":{"syntax":"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 ]","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"src":{"syntax":"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#","media":"all","initial":"n/a (required)","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"unicode-range":{"syntax":"<unicode-range>#","media":"all","initial":"U+0-10FFFF","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"}},"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@font-face"},"@font-feature-values":{"syntax":"@font-feature-values <family-name># {\\n <feature-value-block-list>\\n}","interfaces":["CSSFontFeatureValuesRule"],"groups":["CSS Fonts"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@font-feature-values"},"@import":{"syntax":"@import [ <string> | <url> ] [ <media-query-list> ]?;","groups":["Media Queries"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@import"},"@keyframes":{"syntax":"@keyframes <keyframes-name> {\\n <keyframe-block-list>\\n}","interfaces":["CSSKeyframeRule","CSSKeyframesRule"],"groups":["CSS Animations"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@keyframes"},"@media":{"syntax":"@media <media-query-list> {\\n <group-rule-body>\\n}","interfaces":["CSSGroupingRule","CSSConditionRule","CSSMediaRule","CSSCustomMediaRule"],"groups":["CSS Conditional Rules","Media Queries"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@media"},"@namespace":{"syntax":"@namespace <namespace-prefix>? [ <string> | <url> ];","groups":["CSS Namespaces"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@namespace"},"@page":{"syntax":"@page <page-selector-list> {\\n <page-body>\\n}","interfaces":["CSSPageRule"],"groups":["CSS Pages"],"descriptors":{"bleed":{"syntax":"auto | <length>","media":["visual","paged"],"initial":"auto","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"marks":{"syntax":"none | [ crop || cross ]","media":["visual","paged"],"initial":"none","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"size":{"syntax":"<length>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]","media":["visual","paged"],"initial":"auto","percentages":"no","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"orderOfAppearance","status":"standard"}},"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@page"},"@property":{"syntax":"@property <custom-property-name> {\\n <declaration-list>\\n}","interfaces":["CSS","CSSPropertyRule"],"groups":["CSS Houdini"],"descriptors":{"syntax":{"syntax":"<string>","media":"all","percentages":"no","initial":"n/a (required)","computed":"asSpecified","order":"uniqueOrder","status":"experimental"},"inherits":{"syntax":"true | false","media":"all","percentages":"no","initial":"auto","computed":"asSpecified","order":"uniqueOrder","status":"experimental"},"initial-value":{"syntax":"<string>","media":"all","initial":"n/a (required)","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"experimental"}},"status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@property"},"@supports":{"syntax":"@supports <supports-condition> {\\n <group-rule-body>\\n}","interfaces":["CSSGroupingRule","CSSConditionRule","CSSSupportsRule"],"groups":["CSS Conditional Rules"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@supports"},"@viewport":{"syntax":"@viewport {\\n <group-rule-body>\\n}","interfaces":["CSSViewportRule"],"groups":["CSS Device Adaptation"],"descriptors":{"height":{"syntax":"<viewport-length>{1,2}","media":["visual","continuous"],"initial":["min-height","max-height"],"percentages":["min-height","max-height"],"computed":["min-height","max-height"],"order":"orderOfAppearance","status":"standard"},"max-height":{"syntax":"<viewport-length>","media":["visual","continuous"],"initial":"auto","percentages":"referToHeightOfInitialViewport","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard"},"max-width":{"syntax":"<viewport-length>","media":["visual","continuous"],"initial":"auto","percentages":"referToWidthOfInitialViewport","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard"},"max-zoom":{"syntax":"auto | <number> | <percentage>","media":["visual","continuous"],"initial":"auto","percentages":"the zoom factor itself","computed":"autoNonNegativeOrPercentage","order":"uniqueOrder","status":"standard"},"min-height":{"syntax":"<viewport-length>","media":["visual","continuous"],"initial":"auto","percentages":"referToHeightOfInitialViewport","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard"},"min-width":{"syntax":"<viewport-length>","media":["visual","continuous"],"initial":"auto","percentages":"referToWidthOfInitialViewport","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard"},"min-zoom":{"syntax":"auto | <number> | <percentage>","media":["visual","continuous"],"initial":"auto","percentages":"the zoom factor itself","computed":"autoNonNegativeOrPercentage","order":"uniqueOrder","status":"standard"},"orientation":{"syntax":"auto | portrait | landscape","media":["visual","continuous"],"initial":"auto","percentages":"referToSizeOfBoundingBox","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"user-zoom":{"syntax":"zoom | fixed","media":["visual","continuous"],"initial":"zoom","percentages":"referToSizeOfBoundingBox","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"viewport-fit":{"syntax":"auto | contain | cover","media":["visual","continuous"],"initial":"auto","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"width":{"syntax":"<viewport-length>{1,2}","media":["visual","continuous"],"initial":["min-width","max-width"],"percentages":["min-width","max-width"],"computed":["min-width","max-width"],"order":"orderOfAppearance","status":"standard"},"zoom":{"syntax":"auto | <number> | <percentage>","media":["visual","continuous"],"initial":"auto","percentages":"the zoom factor itself","computed":"autoNonNegativeOrPercentage","order":"uniqueOrder","status":"standard"}},"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@viewport"}}')},95863:function(e){"use strict";e.exports=JSON.parse('{"--*":{"syntax":"<declaration-value>","media":"all","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Variables"],"initial":"seeProse","appliesto":"allElements","computed":"asSpecifiedWithVarsSubstituted","order":"perGrammar","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/--*"},"-ms-accelerator":{"syntax":"false | true","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"false","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-accelerator"},"-ms-block-progression":{"syntax":"tb | rl | bt | lr","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"tb","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-block-progression"},"-ms-content-zoom-chaining":{"syntax":"none | chained","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-chaining"},"-ms-content-zooming":{"syntax":"none | zoom","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"zoomForTheTopLevelNoneForTheRest","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zooming"},"-ms-content-zoom-limit":{"syntax":"<\'-ms-content-zoom-limit-min\'> <\'-ms-content-zoom-limit-max\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],"groups":["Microsoft Extensions"],"initial":["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit"},"-ms-content-zoom-limit-max":{"syntax":"<percentage>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"maxZoomFactor","groups":["Microsoft Extensions"],"initial":"400%","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit-max"},"-ms-content-zoom-limit-min":{"syntax":"<percentage>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"minZoomFactor","groups":["Microsoft Extensions"],"initial":"100%","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit-min"},"-ms-content-zoom-snap":{"syntax":"<\'-ms-content-zoom-snap-type\'> || <\'-ms-content-zoom-snap-points\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":["-ms-content-zoom-snap-type","-ms-content-zoom-snap-points"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-content-zoom-snap-type","-ms-content-zoom-snap-points"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-snap"},"-ms-content-zoom-snap-points":{"syntax":"snapInterval( <percentage>, <percentage> ) | snapList( <percentage># )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"snapInterval(0%, 100%)","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-snap-points"},"-ms-content-zoom-snap-type":{"syntax":"none | proximity | mandatory","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-snap-type"},"-ms-filter":{"syntax":"<string>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"\\"\\"","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-filter"},"-ms-flow-from":{"syntax":"[ none | <custom-ident> ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"nonReplacedElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-flow-from"},"-ms-flow-into":{"syntax":"[ none | <custom-ident> ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"iframeElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-flow-into"},"-ms-grid-columns":{"syntax":"none | <track-list> | <auto-track-list>","media":"visual","inherited":false,"animationType":"simpleListOfLpcDifferenceLpc","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"none","appliesto":"gridContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-grid-columns"},"-ms-grid-rows":{"syntax":"none | <track-list> | <auto-track-list>","media":"visual","inherited":false,"animationType":"simpleListOfLpcDifferenceLpc","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"none","appliesto":"gridContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-grid-rows"},"-ms-high-contrast-adjust":{"syntax":"auto | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-high-contrast-adjust"},"-ms-hyphenate-limit-chars":{"syntax":"auto | <integer>{1,3}","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-hyphenate-limit-chars"},"-ms-hyphenate-limit-lines":{"syntax":"no-limit | <integer>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"no-limit","appliesto":"blockContainerElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-hyphenate-limit-lines"},"-ms-hyphenate-limit-zone":{"syntax":"<percentage> | <length>","media":"visual","inherited":true,"animationType":"discrete","percentages":"referToLineBoxWidth","groups":["Microsoft Extensions"],"initial":"0","appliesto":"blockContainerElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-hyphenate-limit-zone"},"-ms-ime-align":{"syntax":"auto | after","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-ime-align"},"-ms-overflow-style":{"syntax":"auto | none | scrollbar | -ms-autohiding-scrollbar","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-overflow-style"},"-ms-scrollbar-3dlight-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"dependsOnUserAgent","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-3dlight-color"},"-ms-scrollbar-arrow-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ButtonText","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-arrow-color"},"-ms-scrollbar-base-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"dependsOnUserAgent","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-base-color"},"-ms-scrollbar-darkshadow-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ThreeDDarkShadow","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-darkshadow-color"},"-ms-scrollbar-face-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ThreeDFace","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-face-color"},"-ms-scrollbar-highlight-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ThreeDHighlight","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-highlight-color"},"-ms-scrollbar-shadow-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ThreeDDarkShadow","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-shadow-color"},"-ms-scrollbar-track-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"Scrollbar","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-track-color"},"-ms-scroll-chaining":{"syntax":"chained | none","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"chained","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-chaining"},"-ms-scroll-limit":{"syntax":"<\'-ms-scroll-limit-x-min\'> <\'-ms-scroll-limit-y-min\'> <\'-ms-scroll-limit-x-max\'> <\'-ms-scroll-limit-y-max\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":["-ms-scroll-limit-x-min","-ms-scroll-limit-y-min","-ms-scroll-limit-x-max","-ms-scroll-limit-y-max"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-scroll-limit-x-min","-ms-scroll-limit-y-min","-ms-scroll-limit-x-max","-ms-scroll-limit-y-max"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit"},"-ms-scroll-limit-x-max":{"syntax":"auto | <length>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-x-max"},"-ms-scroll-limit-x-min":{"syntax":"<length>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"0","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-x-min"},"-ms-scroll-limit-y-max":{"syntax":"auto | <length>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-y-max"},"-ms-scroll-limit-y-min":{"syntax":"<length>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"0","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-y-min"},"-ms-scroll-rails":{"syntax":"none | railed","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"railed","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-rails"},"-ms-scroll-snap-points-x":{"syntax":"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"snapInterval(0px, 100%)","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-points-x"},"-ms-scroll-snap-points-y":{"syntax":"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"snapInterval(0px, 100%)","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-points-y"},"-ms-scroll-snap-type":{"syntax":"none | proximity | mandatory","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-type"},"-ms-scroll-snap-x":{"syntax":"<\'-ms-scroll-snap-type\'> <\'-ms-scroll-snap-points-x\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":["-ms-scroll-snap-type","-ms-scroll-snap-points-x"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-scroll-snap-type","-ms-scroll-snap-points-x"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-x"},"-ms-scroll-snap-y":{"syntax":"<\'-ms-scroll-snap-type\'> <\'-ms-scroll-snap-points-y\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":["-ms-scroll-snap-type","-ms-scroll-snap-points-y"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-scroll-snap-type","-ms-scroll-snap-points-y"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-y"},"-ms-scroll-translation":{"syntax":"none | vertical-to-horizontal","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-translation"},"-ms-text-autospace":{"syntax":"none | ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-text-autospace"},"-ms-touch-select":{"syntax":"grippers | none","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"grippers","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-touch-select"},"-ms-user-select":{"syntax":"none | element | text","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"text","appliesto":"nonReplacedElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-user-select"},"-ms-wrap-flow":{"syntax":"auto | both | start | end | maximum | clear","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-wrap-flow"},"-ms-wrap-margin":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"0","appliesto":"exclusionElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-wrap-margin"},"-ms-wrap-through":{"syntax":"wrap | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"wrap","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-wrap-through"},"-moz-appearance":{"syntax":"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","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"noneButOverriddenInUserAgentCSS","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/appearance"},"-moz-binding":{"syntax":"<url> | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElementsExceptGeneratedContentOrPseudoElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-binding"},"-moz-border-bottom-colors":{"syntax":"<color>+ | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-border-bottom-colors"},"-moz-border-left-colors":{"syntax":"<color>+ | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-border-left-colors"},"-moz-border-right-colors":{"syntax":"<color>+ | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-border-right-colors"},"-moz-border-top-colors":{"syntax":"<color>+ | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-border-top-colors"},"-moz-context-properties":{"syntax":"none | [ fill | fill-opacity | stroke | stroke-opacity ]#","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElementsThatCanReferenceImages","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-context-properties"},"-moz-float-edge":{"syntax":"border-box | content-box | margin-box | padding-box","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"content-box","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-float-edge"},"-moz-force-broken-image-icon":{"syntax":"<integer [0,1]>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"0","appliesto":"images","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-force-broken-image-icon"},"-moz-image-region":{"syntax":"<shape> | auto","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"auto","appliesto":"xulImageElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-image-region"},"-moz-orient":{"syntax":"inline | block | horizontal | vertical","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"inline","appliesto":"anyElementEffectOnProgressAndMeter","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-orient"},"-moz-outline-radius":{"syntax":"<outline-radius>{1,4} [ / <outline-radius>{1,4} ]?","media":"visual","inherited":false,"animationType":["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],"percentages":["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],"groups":["Mozilla Extensions"],"initial":["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],"appliesto":"allElements","computed":["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius"},"-moz-outline-radius-bottomleft":{"syntax":"<outline-radius>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["Mozilla Extensions"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomleft"},"-moz-outline-radius-bottomright":{"syntax":"<outline-radius>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["Mozilla Extensions"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomright"},"-moz-outline-radius-topleft":{"syntax":"<outline-radius>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["Mozilla Extensions"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topleft"},"-moz-outline-radius-topright":{"syntax":"<outline-radius>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["Mozilla Extensions"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topright"},"-moz-stack-sizing":{"syntax":"ignore | stretch-to-fit","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"stretch-to-fit","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-stack-sizing"},"-moz-text-blink":{"syntax":"none | blink","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-text-blink"},"-moz-user-focus":{"syntax":"ignore | normal | select-after | select-before | select-menu | select-same | select-all | none","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-user-focus"},"-moz-user-input":{"syntax":"auto | none | enabled | disabled","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-user-input"},"-moz-user-modify":{"syntax":"read-only | read-write | write-only","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"read-only","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-user-modify"},"-moz-window-dragging":{"syntax":"drag | no-drag","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"drag","appliesto":"allElementsCreatingNativeWindows","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-window-dragging"},"-moz-window-shadow":{"syntax":"default | menu | tooltip | sheet | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"default","appliesto":"allElementsCreatingNativeWindows","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-window-shadow"},"-webkit-appearance":{"syntax":"none | button | button-bevel | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"noneButOverriddenInUserAgentCSS","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/appearance"},"-webkit-border-before":{"syntax":"<\'border-width\'> || <\'border-style\'> || <\'color\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":["-webkit-border-before-width"],"groups":["WebKit Extensions"],"initial":["border-width","border-style","color"],"appliesto":"allElements","computed":["border-width","border-style","color"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-border-before"},"-webkit-border-before-color":{"syntax":"<\'color\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"nonstandard"},"-webkit-border-before-style":{"syntax":"<\'border-style\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard"},"-webkit-border-before-width":{"syntax":"<\'border-width\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":"logicalWidthOfContainingBlock","groups":["WebKit Extensions"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"nonstandard"},"-webkit-box-reflect":{"syntax":"[ above | below | right | left ]? <length>? <image>?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-box-reflect"},"-webkit-line-clamp":{"syntax":"none | <integer>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["WebKit Extensions","CSS Overflow"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp"},"-webkit-mask":{"syntax":"[ <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || [ <box> | border | padding | content | text ] || [ <box> | border | padding | content ] ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":["-webkit-mask-image","-webkit-mask-repeat","-webkit-mask-attachment","-webkit-mask-position","-webkit-mask-origin","-webkit-mask-clip"],"appliesto":"allElements","computed":["-webkit-mask-image","-webkit-mask-repeat","-webkit-mask-attachment","-webkit-mask-position","-webkit-mask-origin","-webkit-mask-clip"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask"},"-webkit-mask-attachment":{"syntax":"<attachment>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"scroll","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-attachment"},"-webkit-mask-clip":{"syntax":"[ <box> | border | padding | content | text ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"border","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-clip"},"-webkit-mask-composite":{"syntax":"<composite-style>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"source-over","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-composite"},"-webkit-mask-image":{"syntax":"<mask-reference>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"none","appliesto":"allElements","computed":"absoluteURIOrNone","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-image"},"-webkit-mask-origin":{"syntax":"[ <box> | border | padding | content ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"padding","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-origin"},"-webkit-mask-position":{"syntax":"<position>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToSizeOfElement","groups":["WebKit Extensions"],"initial":"0% 0%","appliesto":"allElements","computed":"absoluteLengthOrPercentage","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-position"},"-webkit-mask-position-x":{"syntax":"[ <length-percentage> | left | center | right ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToSizeOfElement","groups":["WebKit Extensions"],"initial":"0%","appliesto":"allElements","computed":"absoluteLengthOrPercentage","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-x"},"-webkit-mask-position-y":{"syntax":"[ <length-percentage> | top | center | bottom ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToSizeOfElement","groups":["WebKit Extensions"],"initial":"0%","appliesto":"allElements","computed":"absoluteLengthOrPercentage","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-y"},"-webkit-mask-repeat":{"syntax":"<repeat-style>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"repeat","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-repeat"},"-webkit-mask-repeat-x":{"syntax":"repeat | no-repeat | space | round","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"repeat","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-x"},"-webkit-mask-repeat-y":{"syntax":"repeat | no-repeat | space | round","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"repeat","appliesto":"allElements","computed":"absoluteLengthOrPercentage","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-y"},"-webkit-mask-size":{"syntax":"<bg-size>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"relativeToBackgroundPositioningArea","groups":["WebKit Extensions"],"initial":"auto auto","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-size"},"-webkit-overflow-scrolling":{"syntax":"auto | touch","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"auto","appliesto":"scrollingBoxes","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-overflow-scrolling"},"-webkit-tap-highlight-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"black","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-tap-highlight-color"},"-webkit-text-fill-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"color","percentages":"no","groups":["WebKit Extensions"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color"},"-webkit-text-stroke":{"syntax":"<length> || <color>","media":"visual","inherited":true,"animationType":["-webkit-text-stroke-width","-webkit-text-stroke-color"],"percentages":"no","groups":["WebKit Extensions"],"initial":["-webkit-text-stroke-width","-webkit-text-stroke-color"],"appliesto":"allElements","computed":["-webkit-text-stroke-width","-webkit-text-stroke-color"],"order":"canonicalOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke"},"-webkit-text-stroke-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"color","percentages":"no","groups":["WebKit Extensions"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color"},"-webkit-text-stroke-width":{"syntax":"<length>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"0","appliesto":"allElements","computed":"absoluteLength","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width"},"-webkit-touch-callout":{"syntax":"default | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"default","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-touch-callout"},"-webkit-user-modify":{"syntax":"read-only | read-write | read-write-plaintext-only","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"read-only","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard"},"align-content":{"syntax":"normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"multilineFlexContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/align-content"},"align-items":{"syntax":"normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/align-items"},"align-self":{"syntax":"auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"auto","appliesto":"flexItemsGridItemsAndAbsolutelyPositionedBoxes","computed":"autoOnAbsolutelyPositionedElementsValueOfAlignItemsOnParent","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/align-self"},"align-tracks":{"syntax":"[ normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position> ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"normal","appliesto":"gridContainersWithMasonryLayoutInTheirBlockAxis","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/align-tracks"},"all":{"syntax":"initial | inherit | unset | revert","media":"noPracticalMedia","inherited":false,"animationType":"eachOfShorthandPropertiesExceptUnicodeBiDiAndDirection","percentages":"no","groups":["CSS Miscellaneous"],"initial":"noPracticalInitialValue","appliesto":"allElements","computed":"asSpecifiedAppliesToEachProperty","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/all"},"animation":{"syntax":"<single-animation>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":["animation-name","animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state"],"appliesto":"allElementsAndPseudos","computed":["animation-name","animation-duration","animation-timing-function","animation-delay","animation-direction","animation-iteration-count","animation-fill-mode","animation-play-state"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation"},"animation-delay":{"syntax":"<time>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"0s","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-delay"},"animation-direction":{"syntax":"<single-animation-direction>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"normal","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-direction"},"animation-duration":{"syntax":"<time>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"0s","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-duration"},"animation-fill-mode":{"syntax":"<single-animation-fill-mode>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"none","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode"},"animation-iteration-count":{"syntax":"<single-animation-iteration-count>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"1","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count"},"animation-name":{"syntax":"[ none | <keyframes-name> ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"none","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-name"},"animation-play-state":{"syntax":"<single-animation-play-state>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"running","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-play-state"},"animation-timing-function":{"syntax":"<timing-function>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"ease","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-timing-function"},"appearance":{"syntax":"none | auto | textfield | menulist-button | <compat-auto>","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/appearance"},"aspect-ratio":{"syntax":"auto | <ratio>","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"allElementsExceptInlineBoxesAndInternalRubyOrTableBoxes","computed":"asSpecified","order":"perGrammar","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/aspect-ratio"},"azimuth":{"syntax":"<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards","media":"aural","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Speech"],"initial":"center","appliesto":"allElements","computed":"normalizedAngle","order":"orderOfAppearance","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/azimuth"},"backdrop-filter":{"syntax":"none | <filter-function-list>","media":"visual","inherited":false,"animationType":"filterList","percentages":"no","groups":["Filter Effects"],"initial":"none","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/backdrop-filter"},"backface-visibility":{"syntax":"visible | hidden","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transforms"],"initial":"visible","appliesto":"transformableElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/backface-visibility"},"background":{"syntax":"[ <bg-layer> , ]* <final-bg-layer>","media":"visual","inherited":false,"animationType":["background-color","background-image","background-clip","background-position","background-size","background-repeat","background-attachment"],"percentages":["background-position","background-size"],"groups":["CSS Backgrounds and Borders"],"initial":["background-image","background-position","background-size","background-repeat","background-origin","background-clip","background-attachment","background-color"],"appliesto":"allElements","computed":["background-image","background-position","background-size","background-repeat","background-origin","background-clip","background-attachment","background-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background"},"background-attachment":{"syntax":"<attachment>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"scroll","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-attachment"},"background-blend-mode":{"syntax":"<blend-mode>#","media":"none","inherited":false,"animationType":"discrete","percentages":"no","groups":["Compositing and Blending"],"initial":"normal","appliesto":"allElementsSVGContainerGraphicsAndGraphicsReferencingElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-blend-mode"},"background-clip":{"syntax":"<box>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"border-box","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-clip"},"background-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"transparent","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-color"},"background-image":{"syntax":"<bg-image>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"asSpecifiedURLsAbsolute","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-image"},"background-origin":{"syntax":"<box>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"padding-box","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-origin"},"background-position":{"syntax":"<bg-position>#","media":"visual","inherited":false,"animationType":"repeatableListOfSimpleListOfLpc","percentages":"referToSizeOfBackgroundPositioningAreaMinusBackgroundImageSize","groups":["CSS Backgrounds and Borders"],"initial":"0% 0%","appliesto":"allElements","computed":"listEachItemTwoKeywordsOriginOffsets","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-position"},"background-position-x":{"syntax":"[ center | [ [ left | right | x-start | x-end ]? <length-percentage>? ]! ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToWidthOfBackgroundPositioningAreaMinusBackgroundImageHeight","groups":["CSS Backgrounds and Borders"],"initial":"left","appliesto":"allElements","computed":"listEachItemConsistingOfAbsoluteLengthPercentageAndOrigin","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-position-x"},"background-position-y":{"syntax":"[ center | [ [ top | bottom | y-start | y-end ]? <length-percentage>? ]! ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToHeightOfBackgroundPositioningAreaMinusBackgroundImageHeight","groups":["CSS Backgrounds and Borders"],"initial":"top","appliesto":"allElements","computed":"listEachItemConsistingOfAbsoluteLengthPercentageAndOrigin","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-position-y"},"background-repeat":{"syntax":"<repeat-style>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"repeat","appliesto":"allElements","computed":"listEachItemHasTwoKeywordsOnePerDimension","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-repeat"},"background-size":{"syntax":"<bg-size>#","media":"visual","inherited":false,"animationType":"repeatableListOfSimpleListOfLpc","percentages":"relativeToBackgroundPositioningArea","groups":["CSS Backgrounds and Borders"],"initial":"auto auto","appliesto":"allElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-size"},"block-overflow":{"syntax":"clip | ellipsis | <string>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"clip","appliesto":"blockContainers","computed":"asSpecified","order":"perGrammar","status":"experimental"},"block-size":{"syntax":"<\'width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"blockSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"sameAsWidthAndHeight","computed":"sameAsWidthAndHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/block-size"},"border":{"syntax":"<line-width> || <line-style> || <color>","media":"visual","inherited":false,"animationType":["border-color","border-style","border-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-width","border-style","border-color"],"appliesto":"allElements","computed":["border-width","border-style","border-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border"},"border-block":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":["border-top-width","border-top-style","border-top-color"],"appliesto":"allElements","computed":["border-top-width","border-top-style","border-top-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block"},"border-block-color":{"syntax":"<\'border-top-color\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-color"},"border-block-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-style"},"border-block-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-width"},"border-block-end":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":["border-block-end-color","border-block-end-style","border-block-end-width"],"percentages":"no","groups":["CSS Logical Properties"],"initial":["border-top-width","border-top-style","border-top-color"],"appliesto":"allElements","computed":["border-top-width","border-top-style","border-top-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-end"},"border-block-end-color":{"syntax":"<\'border-top-color\'>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-end-color"},"border-block-end-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-end-style"},"border-block-end-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-end-width"},"border-block-start":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":["border-block-start-color","border-block-start-style","border-block-start-width"],"percentages":"no","groups":["CSS Logical Properties"],"initial":["border-width","border-style","color"],"appliesto":"allElements","computed":["border-width","border-style","border-block-start-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-start"},"border-block-start-color":{"syntax":"<\'border-top-color\'>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-start-color"},"border-block-start-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-start-style"},"border-block-start-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-start-width"},"border-bottom":{"syntax":"<line-width> || <line-style> || <color>","media":"visual","inherited":false,"animationType":["border-bottom-color","border-bottom-style","border-bottom-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-bottom-width","border-bottom-style","border-bottom-color"],"appliesto":"allElements","computed":["border-bottom-width","border-bottom-style","border-bottom-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom"},"border-bottom-color":{"syntax":"<\'border-top-color\'>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom-color"},"border-bottom-left-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Backgrounds and Borders"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius"},"border-bottom-right-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Backgrounds and Borders"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius"},"border-bottom-style":{"syntax":"<line-style>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom-style"},"border-bottom-width":{"syntax":"<line-width>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthOr0IfBorderBottomStyleNoneOrHidden","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom-width"},"border-collapse":{"syntax":"collapse | separate","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Table"],"initial":"separate","appliesto":"tableElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-collapse"},"border-color":{"syntax":"<color>{1,4}","media":"visual","inherited":false,"animationType":["border-bottom-color","border-left-color","border-right-color","border-top-color"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-top-color","border-right-color","border-bottom-color","border-left-color"],"appliesto":"allElements","computed":["border-bottom-color","border-left-color","border-right-color","border-top-color"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-color"},"border-end-end-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius"},"border-end-start-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius"},"border-image":{"syntax":"<\'border-image-source\'> || <\'border-image-slice\'> [ / <\'border-image-width\'> | / <\'border-image-width\'>? / <\'border-image-outset\'> ]? || <\'border-image-repeat\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":["border-image-slice","border-image-width"],"groups":["CSS Backgrounds and Borders"],"initial":["border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"],"appliesto":"allElementsExceptTableElementsWhenCollapse","computed":["border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image"},"border-image-outset":{"syntax":"[ <length> | <number> ]{1,4}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"0","appliesto":"allElementsExceptTableElementsWhenCollapse","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image-outset"},"border-image-repeat":{"syntax":"[ stretch | repeat | round | space ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"stretch","appliesto":"allElementsExceptTableElementsWhenCollapse","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image-repeat"},"border-image-slice":{"syntax":"<number-percentage>{1,4} && fill?","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"referToSizeOfBorderImage","groups":["CSS Backgrounds and Borders"],"initial":"100%","appliesto":"allElementsExceptTableElementsWhenCollapse","computed":"oneToFourPercentagesOrAbsoluteLengthsPlusFill","order":"percentagesOrLengthsFollowedByFill","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image-slice"},"border-image-source":{"syntax":"none | <image>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElementsExceptTableElementsWhenCollapse","computed":"noneOrImageWithAbsoluteURI","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image-source"},"border-image-width":{"syntax":"[ <length-percentage> | <number> | auto ]{1,4}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"referToWidthOrHeightOfBorderImageArea","groups":["CSS Backgrounds and Borders"],"initial":"1","appliesto":"allElementsExceptTableElementsWhenCollapse","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image-width"},"border-inline":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":["border-top-width","border-top-style","border-top-color"],"appliesto":"allElements","computed":["border-top-width","border-top-style","border-top-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline"},"border-inline-end":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":["border-inline-end-color","border-inline-end-style","border-inline-end-width"],"percentages":"no","groups":["CSS Logical Properties"],"initial":["border-width","border-style","color"],"appliesto":"allElements","computed":["border-width","border-style","border-inline-end-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-end"},"border-inline-color":{"syntax":"<\'border-top-color\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-color"},"border-inline-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-style"},"border-inline-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-width"},"border-inline-end-color":{"syntax":"<\'border-top-color\'>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color"},"border-inline-end-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style"},"border-inline-end-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width"},"border-inline-start":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":["border-inline-start-color","border-inline-start-style","border-inline-start-width"],"percentages":"no","groups":["CSS Logical Properties"],"initial":["border-width","border-style","color"],"appliesto":"allElements","computed":["border-width","border-style","border-inline-start-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-start"},"border-inline-start-color":{"syntax":"<\'border-top-color\'>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color"},"border-inline-start-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style"},"border-inline-start-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width"},"border-left":{"syntax":"<line-width> || <line-style> || <color>","media":"visual","inherited":false,"animationType":["border-left-color","border-left-style","border-left-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-left-width","border-left-style","border-left-color"],"appliesto":"allElements","computed":["border-left-width","border-left-style","border-left-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-left"},"border-left-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-left-color"},"border-left-style":{"syntax":"<line-style>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-left-style"},"border-left-width":{"syntax":"<line-width>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthOr0IfBorderLeftStyleNoneOrHidden","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-left-width"},"border-radius":{"syntax":"<length-percentage>{1,4} [ / <length-percentage>{1,4} ]?","media":"visual","inherited":false,"animationType":["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],"percentages":"referToDimensionOfBorderBox","groups":["CSS Backgrounds and Borders"],"initial":["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],"appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-radius"},"border-right":{"syntax":"<line-width> || <line-style> || <color>","media":"visual","inherited":false,"animationType":["border-right-color","border-right-style","border-right-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-right-width","border-right-style","border-right-color"],"appliesto":"allElements","computed":["border-right-width","border-right-style","border-right-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-right"},"border-right-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-right-color"},"border-right-style":{"syntax":"<line-style>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-right-style"},"border-right-width":{"syntax":"<line-width>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthOr0IfBorderRightStyleNoneOrHidden","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-right-width"},"border-spacing":{"syntax":"<length> <length>?","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Table"],"initial":"0","appliesto":"tableElements","computed":"twoAbsoluteLengths","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-spacing"},"border-start-end-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius"},"border-start-start-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius"},"border-style":{"syntax":"<line-style>{1,4}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-top-style","border-right-style","border-bottom-style","border-left-style"],"appliesto":"allElements","computed":["border-bottom-style","border-left-style","border-right-style","border-top-style"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-style"},"border-top":{"syntax":"<line-width> || <line-style> || <color>","media":"visual","inherited":false,"animationType":["border-top-color","border-top-style","border-top-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-top-width","border-top-style","border-top-color"],"appliesto":"allElements","computed":["border-top-width","border-top-style","border-top-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top"},"border-top-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top-color"},"border-top-left-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Backgrounds and Borders"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius"},"border-top-right-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Backgrounds and Borders"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius"},"border-top-style":{"syntax":"<line-style>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top-style"},"border-top-width":{"syntax":"<line-width>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthOr0IfBorderTopStyleNoneOrHidden","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top-width"},"border-width":{"syntax":"<line-width>{1,4}","media":"visual","inherited":false,"animationType":["border-bottom-width","border-left-width","border-right-width","border-top-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-top-width","border-right-width","border-bottom-width","border-left-width"],"appliesto":"allElements","computed":["border-bottom-width","border-left-width","border-right-width","border-top-width"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-width"},"bottom":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToContainingBlockHeight","groups":["CSS Positioning"],"initial":"auto","appliesto":"positionedElements","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/bottom"},"box-align":{"syntax":"start | center | end | baseline | stretch","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"stretch","appliesto":"elementsWithDisplayBoxOrInlineBox","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-align"},"box-decoration-break":{"syntax":"slice | clone","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"slice","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-decoration-break"},"box-direction":{"syntax":"normal | reverse | inherit","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"normal","appliesto":"elementsWithDisplayBoxOrInlineBox","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-direction"},"box-flex":{"syntax":"<number>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"0","appliesto":"directChildrenOfElementsWithDisplayMozBoxMozInlineBox","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-flex"},"box-flex-group":{"syntax":"<integer>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"1","appliesto":"inFlowChildrenOfBoxElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-flex-group"},"box-lines":{"syntax":"single | multiple","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"single","appliesto":"boxElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-lines"},"box-ordinal-group":{"syntax":"<integer>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"1","appliesto":"childrenOfBoxElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group"},"box-orient":{"syntax":"horizontal | vertical | inline-axis | block-axis | inherit","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"inlineAxisHorizontalInXUL","appliesto":"elementsWithDisplayBoxOrInlineBox","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-orient"},"box-pack":{"syntax":"start | center | end | justify","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"start","appliesto":"elementsWithDisplayMozBoxMozInlineBox","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-pack"},"box-shadow":{"syntax":"none | <shadow>#","media":"visual","inherited":false,"animationType":"shadowList","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"absoluteLengthsSpecifiedColorAsSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-shadow"},"box-sizing":{"syntax":"content-box | border-box","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"content-box","appliesto":"allElementsAcceptingWidthOrHeight","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-sizing"},"break-after":{"syntax":"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"auto","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/break-after"},"break-before":{"syntax":"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"auto","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/break-before"},"break-inside":{"syntax":"auto | avoid | avoid-page | avoid-column | avoid-region","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"auto","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/break-inside"},"caption-side":{"syntax":"top | bottom | block-start | block-end | inline-start | inline-end","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Table"],"initial":"top","appliesto":"tableCaptionElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/caption-side"},"caret-color":{"syntax":"auto | <color>","media":"interactive","inherited":true,"animationType":"color","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"allElements","computed":"asAutoOrColor","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/caret-color"},"clear":{"syntax":"none | left | right | both | inline-start | inline-end","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Positioning"],"initial":"none","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/clear"},"clip":{"syntax":"<shape> | auto","media":"visual","inherited":false,"animationType":"rectangle","percentages":"no","groups":["CSS Masking"],"initial":"auto","appliesto":"absolutelyPositionedElements","computed":"autoOrRectangle","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/clip"},"clip-path":{"syntax":"<clip-source> | [ <basic-shape> || <geometry-box> ] | none","media":"visual","inherited":false,"animationType":"basicShapeOtherwiseNo","percentages":"referToReferenceBoxWhenSpecifiedOtherwiseBorderBox","groups":["CSS Masking"],"initial":"none","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedURLsAbsolute","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/clip-path"},"color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"color","percentages":"no","groups":["CSS Color"],"initial":"variesFromBrowserToBrowser","appliesto":"allElements","computed":"translucentValuesRGBAOtherwiseRGB","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/color"},"color-adjust":{"syntax":"economy | exact","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Color"],"initial":"economy","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/color-adjust"},"column-count":{"syntax":"<integer> | auto","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["CSS Columns"],"initial":"auto","appliesto":"blockContainersExceptTableWrappers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-count"},"column-fill":{"syntax":"auto | balance | balance-all","media":"visualInContinuousMediaNoEffectInOverflowColumns","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Columns"],"initial":"balance","appliesto":"multicolElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-fill"},"column-gap":{"syntax":"normal | <length-percentage>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfContentArea","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"multiColumnElementsFlexContainersGridContainers","computed":"asSpecifiedWithLengthsAbsoluteAndNormalComputingToZeroExceptMultiColumn","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-gap"},"column-rule":{"syntax":"<\'column-rule-width\'> || <\'column-rule-style\'> || <\'column-rule-color\'>","media":"visual","inherited":false,"animationType":["column-rule-color","column-rule-style","column-rule-width"],"percentages":"no","groups":["CSS Columns"],"initial":["column-rule-width","column-rule-style","column-rule-color"],"appliesto":"multicolElements","computed":["column-rule-color","column-rule-style","column-rule-width"],"order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-rule"},"column-rule-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Columns"],"initial":"currentcolor","appliesto":"multicolElements","computed":"computedColor","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-rule-color"},"column-rule-style":{"syntax":"<\'border-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Columns"],"initial":"none","appliesto":"multicolElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-rule-style"},"column-rule-width":{"syntax":"<\'border-width\'>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Columns"],"initial":"medium","appliesto":"multicolElements","computed":"absoluteLength0IfColumnRuleStyleNoneOrHidden","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-rule-width"},"column-span":{"syntax":"none | all","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Columns"],"initial":"none","appliesto":"inFlowBlockLevelElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-span"},"column-width":{"syntax":"<length> | auto","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Columns"],"initial":"auto","appliesto":"blockContainersExceptTableWrappers","computed":"absoluteLengthZeroOrLarger","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-width"},"columns":{"syntax":"<\'column-width\'> || <\'column-count\'>","media":"visual","inherited":false,"animationType":["column-width","column-count"],"percentages":"no","groups":["CSS Columns"],"initial":["column-width","column-count"],"appliesto":"blockContainersExceptTableWrappers","computed":["column-width","column-count"],"order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/columns"},"contain":{"syntax":"none | strict | content | [ size || layout || style || paint ]","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Containment"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/contain"},"content":{"syntax":"normal | none | [ <content-replacement> | <content-list> ] [/ <string> ]?","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Generated Content"],"initial":"normal","appliesto":"beforeAndAfterPseudos","computed":"normalOnElementsForPseudosNoneAbsoluteURIStringOrAsSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/content"},"counter-increment":{"syntax":"[ <custom-ident> <integer>? ]+ | none","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Counter Styles"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/counter-increment"},"counter-reset":{"syntax":"[ <custom-ident> <integer>? ]+ | none","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Counter Styles"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/counter-reset"},"counter-set":{"syntax":"[ <custom-ident> <integer>? ]+ | none","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Counter Styles"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/counter-set"},"cursor":{"syntax":"[ [ <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 ] ]","media":["visual","interactive"],"inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"allElements","computed":"asSpecifiedURLsAbsolute","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/cursor"},"direction":{"syntax":"ltr | rtl","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Writing Modes"],"initial":"ltr","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/direction"},"display":{"syntax":"[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Display"],"initial":"inline","appliesto":"allElements","computed":"asSpecifiedExceptPositionedFloatingAndRootElementsKeywordMaybeDifferent","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/display"},"empty-cells":{"syntax":"show | hide","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Table"],"initial":"show","appliesto":"tableCellElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/empty-cells"},"filter":{"syntax":"none | <filter-function-list>","media":"visual","inherited":false,"animationType":"filterList","percentages":"no","groups":["Filter Effects"],"initial":"none","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/filter"},"flex":{"syntax":"none | [ <\'flex-grow\'> <\'flex-shrink\'>? || <\'flex-basis\'> ]","media":"visual","inherited":false,"animationType":["flex-grow","flex-shrink","flex-basis"],"percentages":"no","groups":["CSS Flexible Box Layout"],"initial":["flex-grow","flex-shrink","flex-basis"],"appliesto":"flexItemsAndInFlowPseudos","computed":["flex-grow","flex-shrink","flex-basis"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex"},"flex-basis":{"syntax":"content | <\'width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToFlexContainersInnerMainSize","groups":["CSS Flexible Box Layout"],"initial":"auto","appliesto":"flexItemsAndInFlowPseudos","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"lengthOrPercentageBeforeKeywordIfBothPresent","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-basis"},"flex-direction":{"syntax":"row | row-reverse | column | column-reverse","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":"row","appliesto":"flexContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-direction"},"flex-flow":{"syntax":"<\'flex-direction\'> || <\'flex-wrap\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":["flex-direction","flex-wrap"],"appliesto":"flexContainers","computed":["flex-direction","flex-wrap"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-flow"},"flex-grow":{"syntax":"<number>","media":"visual","inherited":false,"animationType":"number","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":"0","appliesto":"flexItemsAndInFlowPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-grow"},"flex-shrink":{"syntax":"<number>","media":"visual","inherited":false,"animationType":"number","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":"1","appliesto":"flexItemsAndInFlowPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-shrink"},"flex-wrap":{"syntax":"nowrap | wrap | wrap-reverse","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":"nowrap","appliesto":"flexContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-wrap"},"float":{"syntax":"left | right | none | inline-start | inline-end","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Positioning"],"initial":"none","appliesto":"allElementsNoEffectIfDisplayNone","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/float"},"font":{"syntax":"[ [ <\'font-style\'> || <font-variant-css21> || <\'font-weight\'> || <\'font-stretch\'> ]? <\'font-size\'> [ / <\'line-height\'> ]? <\'font-family\'> ] | caption | icon | menu | message-box | small-caption | status-bar","media":"visual","inherited":true,"animationType":["font-style","font-variant","font-weight","font-stretch","font-size","line-height","font-family"],"percentages":["font-size","line-height"],"groups":["CSS Fonts"],"initial":["font-style","font-variant","font-weight","font-stretch","font-size","line-height","font-family"],"appliesto":"allElements","computed":["font-style","font-variant","font-weight","font-stretch","font-size","line-height","font-family"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font"},"font-family":{"syntax":"[ <family-name> | <generic-family> ]#","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"dependsOnUserAgent","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-family"},"font-feature-settings":{"syntax":"normal | <feature-tag-value>#","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-feature-settings"},"font-kerning":{"syntax":"auto | normal | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-kerning"},"font-language-override":{"syntax":"normal | <string>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-language-override"},"font-optical-sizing":{"syntax":"auto | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing"},"font-variation-settings":{"syntax":"normal | [ <string> <number> ]#","media":"visual","inherited":true,"animationType":"transform","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variation-settings"},"font-size":{"syntax":"<absolute-size> | <relative-size> | <length-percentage>","media":"visual","inherited":true,"animationType":"length","percentages":"referToParentElementsFontSize","groups":["CSS Fonts"],"initial":"medium","appliesto":"allElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-size"},"font-size-adjust":{"syntax":"none | <number>","media":"visual","inherited":true,"animationType":"number","percentages":"no","groups":["CSS Fonts"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-size-adjust"},"font-smooth":{"syntax":"auto | never | always | <absolute-size> | <length>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-smooth"},"font-stretch":{"syntax":"<font-stretch-absolute>","media":"visual","inherited":true,"animationType":"fontStretch","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-stretch"},"font-style":{"syntax":"normal | italic | oblique <angle>?","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-style"},"font-synthesis":{"syntax":"none | [ weight || style ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"weight style","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-synthesis"},"font-variant":{"syntax":"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 ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant"},"font-variant-alternates":{"syntax":"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> ) ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates"},"font-variant-caps":{"syntax":"normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-caps"},"font-variant-east-asian":{"syntax":"normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian"},"font-variant-ligatures":{"syntax":"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures"},"font-variant-numeric":{"syntax":"normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric"},"font-variant-position":{"syntax":"normal | sub | super","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-position"},"font-weight":{"syntax":"<font-weight-absolute> | bolder | lighter","media":"visual","inherited":true,"animationType":"fontWeight","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"keywordOrNumericalValueBolderLighterTransformedToRealValue","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-weight"},"gap":{"syntax":"<\'row-gap\'> <\'column-gap\'>?","media":"visual","inherited":false,"animationType":["row-gap","column-gap"],"percentages":"no","groups":["CSS Box Alignment"],"initial":["row-gap","column-gap"],"appliesto":"multiColumnElementsFlexContainersGridContainers","computed":["row-gap","column-gap"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/gap"},"grid":{"syntax":"<\'grid-template\'> | <\'grid-template-rows\'> / [ auto-flow && dense? ] <\'grid-auto-columns\'>? | [ auto-flow && dense? ] <\'grid-auto-rows\'>? / <\'grid-template-columns\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":["grid-template-rows","grid-template-columns","grid-auto-rows","grid-auto-columns"],"groups":["CSS Grid Layout"],"initial":["grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-rows","grid-auto-columns","grid-auto-flow","grid-column-gap","grid-row-gap","column-gap","row-gap"],"appliesto":"gridContainers","computed":["grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-rows","grid-auto-columns","grid-auto-flow","grid-column-gap","grid-row-gap","column-gap","row-gap"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid"},"grid-area":{"syntax":"<grid-line> [ / <grid-line> ]{0,3}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":["grid-row-start","grid-column-start","grid-row-end","grid-column-end"],"appliesto":"gridItemsAndBoxesWithinGridContainer","computed":["grid-row-start","grid-column-start","grid-row-end","grid-column-end"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-area"},"grid-auto-columns":{"syntax":"<track-size>+","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridContainers","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns"},"grid-auto-flow":{"syntax":"[ row | column ] || dense","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"row","appliesto":"gridContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow"},"grid-auto-rows":{"syntax":"<track-size>+","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridContainers","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows"},"grid-column":{"syntax":"<grid-line> [ / <grid-line> ]?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":["grid-column-start","grid-column-end"],"appliesto":"gridItemsAndBoxesWithinGridContainer","computed":["grid-column-start","grid-column-end"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-column"},"grid-column-end":{"syntax":"<grid-line>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridItemsAndBoxesWithinGridContainer","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-column-end"},"grid-column-gap":{"syntax":"<length-percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"0","appliesto":"gridContainers","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-gap"},"grid-column-start":{"syntax":"<grid-line>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridItemsAndBoxesWithinGridContainer","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-column-start"},"grid-gap":{"syntax":"<\'grid-row-gap\'> <\'grid-column-gap\'>?","media":"visual","inherited":false,"animationType":["grid-row-gap","grid-column-gap"],"percentages":"no","groups":["CSS Grid Layout"],"initial":["grid-row-gap","grid-column-gap"],"appliesto":"gridContainers","computed":["grid-row-gap","grid-column-gap"],"order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/gap"},"grid-row":{"syntax":"<grid-line> [ / <grid-line> ]?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":["grid-row-start","grid-row-end"],"appliesto":"gridItemsAndBoxesWithinGridContainer","computed":["grid-row-start","grid-row-end"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-row"},"grid-row-end":{"syntax":"<grid-line>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridItemsAndBoxesWithinGridContainer","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-row-end"},"grid-row-gap":{"syntax":"<length-percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"0","appliesto":"gridContainers","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/row-gap"},"grid-row-start":{"syntax":"<grid-line>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridItemsAndBoxesWithinGridContainer","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-row-start"},"grid-template":{"syntax":"none | [ <\'grid-template-rows\'> / <\'grid-template-columns\'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?","media":"visual","inherited":false,"animationType":"discrete","percentages":["grid-template-columns","grid-template-rows"],"groups":["CSS Grid Layout"],"initial":["grid-template-columns","grid-template-rows","grid-template-areas"],"appliesto":"gridContainers","computed":["grid-template-columns","grid-template-rows","grid-template-areas"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-template"},"grid-template-areas":{"syntax":"none | <string>+","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"none","appliesto":"gridContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-template-areas"},"grid-template-columns":{"syntax":"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?","media":"visual","inherited":false,"animationType":"simpleListOfLpcDifferenceLpc","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"none","appliesto":"gridContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-template-columns"},"grid-template-rows":{"syntax":"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?","media":"visual","inherited":false,"animationType":"simpleListOfLpcDifferenceLpc","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"none","appliesto":"gridContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-template-rows"},"hanging-punctuation":{"syntax":"none | [ first || [ force-end | allow-end ] || last ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/hanging-punctuation"},"height":{"syntax":"auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"regardingHeightOfGeneratedBoxContainingBlockPercentagesRelativeToContainingBlock","groups":["CSS Box Model"],"initial":"auto","appliesto":"allElementsButNonReplacedAndTableColumns","computed":"percentageAutoOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/height"},"hyphens":{"syntax":"none | manual | auto","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"manual","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/hyphens"},"image-orientation":{"syntax":"from-image | <angle> | [ <angle>? flip ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Images"],"initial":"from-image","appliesto":"allElements","computed":"angleRoundedToNextQuarter","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/image-orientation"},"image-rendering":{"syntax":"auto | crisp-edges | pixelated","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Images"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/image-rendering"},"image-resolution":{"syntax":"[ from-image || <resolution> ] && snap?","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Images"],"initial":"1dppx","appliesto":"allElements","computed":"asSpecifiedWithExceptionOfResolution","order":"uniqueOrder","status":"experimental"},"ime-mode":{"syntax":"auto | normal | active | inactive | disabled","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"textFields","computed":"asSpecified","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/ime-mode"},"initial-letter":{"syntax":"normal | [ <number> <integer>? ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Inline"],"initial":"normal","appliesto":"firstLetterPseudoElementsAndInlineLevelFirstChildren","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/initial-letter"},"initial-letter-align":{"syntax":"[ auto | alphabetic | hanging | ideographic ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Inline"],"initial":"auto","appliesto":"firstLetterPseudoElementsAndInlineLevelFirstChildren","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/initial-letter-align"},"inline-size":{"syntax":"<\'width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"inlineSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"sameAsWidthAndHeight","computed":"sameAsWidthAndHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inline-size"},"inset":{"syntax":"<\'top\'>{1,4}","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalHeightOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset"},"inset-block":{"syntax":"<\'top\'>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalHeightOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-block"},"inset-block-end":{"syntax":"<\'top\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalHeightOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-block-end"},"inset-block-start":{"syntax":"<\'top\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalHeightOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-block-start"},"inset-inline":{"syntax":"<\'top\'>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-inline"},"inset-inline-end":{"syntax":"<\'top\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-inline-end"},"inset-inline-start":{"syntax":"<\'top\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-inline-start"},"isolation":{"syntax":"auto | isolate","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Compositing and Blending"],"initial":"auto","appliesto":"allElementsSVGContainerGraphicsAndGraphicsReferencingElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/isolation"},"justify-content":{"syntax":"normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"flexContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/justify-content"},"justify-items":{"syntax":"normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"legacy","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/justify-items"},"justify-self":{"syntax":"auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"auto","appliesto":"blockLevelBoxesAndAbsolutelyPositionedBoxesAndGridItems","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/justify-self"},"justify-tracks":{"syntax":"[ normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ] ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"normal","appliesto":"gridContainersWithMasonryLayoutInTheirInlineAxis","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/justify-tracks"},"left":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Positioning"],"initial":"auto","appliesto":"positionedElements","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/left"},"letter-spacing":{"syntax":"normal | <length>","media":"visual","inherited":true,"animationType":"length","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"allElements","computed":"optimumValueOfAbsoluteLengthOrNormal","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/letter-spacing"},"line-break":{"syntax":"auto | loose | normal | strict | anywhere","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/line-break"},"line-clamp":{"syntax":"none | <integer>","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["CSS Overflow"],"initial":"none","appliesto":"blockContainersExceptMultiColumnContainers","computed":"asSpecified","order":"perGrammar","status":"experimental"},"line-height":{"syntax":"normal | <number> | <length> | <percentage>","media":"visual","inherited":true,"animationType":"numberOrLength","percentages":"referToElementFontSize","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"absoluteLengthOrAsSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/line-height"},"line-height-step":{"syntax":"<length>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"0","appliesto":"blockContainers","computed":"absoluteLength","order":"perGrammar","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/line-height-step"},"list-style":{"syntax":"<\'list-style-type\'> || <\'list-style-position\'> || <\'list-style-image\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Lists and Counters"],"initial":["list-style-type","list-style-position","list-style-image"],"appliesto":"listItems","computed":["list-style-image","list-style-position","list-style-type"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/list-style"},"list-style-image":{"syntax":"<url> | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Lists and Counters"],"initial":"none","appliesto":"listItems","computed":"noneOrImageWithAbsoluteURI","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/list-style-image"},"list-style-position":{"syntax":"inside | outside","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Lists and Counters"],"initial":"outside","appliesto":"listItems","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/list-style-position"},"list-style-type":{"syntax":"<counter-style> | <string> | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Lists and Counters"],"initial":"disc","appliesto":"listItems","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/list-style-type"},"margin":{"syntax":"[ <length> | <percentage> | auto ]{1,4}","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":["margin-bottom","margin-left","margin-right","margin-top"],"appliesto":"allElementsExceptTableDisplayTypes","computed":["margin-bottom","margin-left","margin-right","margin-top"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin"},"margin-block":{"syntax":"<\'margin-left\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-block"},"margin-block-end":{"syntax":"<\'margin-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-block-end"},"margin-block-start":{"syntax":"<\'margin-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-block-start"},"margin-bottom":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-bottom"},"margin-inline":{"syntax":"<\'margin-left\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-inline"},"margin-inline-end":{"syntax":"<\'margin-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-inline-end"},"margin-inline-start":{"syntax":"<\'margin-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-inline-start"},"margin-left":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-left"},"margin-right":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-right"},"margin-top":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-top"},"margin-trim":{"syntax":"none | in-flow | all","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"none","appliesto":"blockContainersAndMultiColumnContainers","computed":"asSpecified","order":"perGrammar","alsoAppliesTo":["::first-letter","::first-line"],"status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-trim"},"mask":{"syntax":"<mask-layer>#","media":"visual","inherited":false,"animationType":["mask-image","mask-mode","mask-repeat","mask-position","mask-clip","mask-origin","mask-size","mask-composite"],"percentages":["mask-position"],"groups":["CSS Masking"],"initial":["mask-image","mask-mode","mask-repeat","mask-position","mask-clip","mask-origin","mask-size","mask-composite"],"appliesto":"allElementsSVGContainerElements","computed":["mask-image","mask-mode","mask-repeat","mask-position","mask-clip","mask-origin","mask-size","mask-composite"],"order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask"},"mask-border":{"syntax":"<\'mask-border-source\'> || <\'mask-border-slice\'> [ / <\'mask-border-width\'>? [ / <\'mask-border-outset\'> ]? ]? || <\'mask-border-repeat\'> || <\'mask-border-mode\'>","media":"visual","inherited":false,"animationType":["mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width"],"percentages":["mask-border-slice","mask-border-width"],"groups":["CSS Masking"],"initial":["mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width"],"appliesto":"allElementsSVGContainerElements","computed":["mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width"],"order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border"},"mask-border-mode":{"syntax":"luminance | alpha","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"alpha","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-mode"},"mask-border-outset":{"syntax":"[ <length> | <number> ]{1,4}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"0","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-outset"},"mask-border-repeat":{"syntax":"[ stretch | repeat | round | space ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"stretch","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat"},"mask-border-slice":{"syntax":"<number-percentage>{1,4} fill?","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToSizeOfMaskBorderImage","groups":["CSS Masking"],"initial":"0","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-slice"},"mask-border-source":{"syntax":"none | <image>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"none","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedURLsAbsolute","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-source"},"mask-border-width":{"syntax":"[ <length-percentage> | <number> | auto ]{1,4}","media":"visual","inherited":false,"animationType":"discrete","percentages":"relativeToMaskBorderImageArea","groups":["CSS Masking"],"initial":"auto","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-width"},"mask-clip":{"syntax":"[ <geometry-box> | no-clip ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"border-box","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-clip"},"mask-composite":{"syntax":"<compositing-operator>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"add","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-composite"},"mask-image":{"syntax":"<mask-reference>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"none","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedURLsAbsolute","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-image"},"mask-mode":{"syntax":"<masking-mode>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"match-source","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-mode"},"mask-origin":{"syntax":"<geometry-box>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"border-box","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-origin"},"mask-position":{"syntax":"<position>#","media":"visual","inherited":false,"animationType":"repeatableListOfSimpleListOfLpc","percentages":"referToSizeOfMaskPaintingArea","groups":["CSS Masking"],"initial":"center","appliesto":"allElementsSVGContainerElements","computed":"consistsOfTwoKeywordsForOriginAndOffsets","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-position"},"mask-repeat":{"syntax":"<repeat-style>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"no-repeat","appliesto":"allElementsSVGContainerElements","computed":"consistsOfTwoDimensionKeywords","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-repeat"},"mask-size":{"syntax":"<bg-size>#","media":"visual","inherited":false,"animationType":"repeatableListOfSimpleListOfLpc","percentages":"no","groups":["CSS Masking"],"initial":"auto","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-size"},"mask-type":{"syntax":"luminance | alpha","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"luminance","appliesto":"maskElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-type"},"masonry-auto-flow":{"syntax":"[ pack | next ] || [ definite-first | ordered ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"pack","appliesto":"gridContainersWithMasonryLayout","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/masonry-auto-flow"},"math-style":{"syntax":"normal | compact","media":"visual","inherited":true,"animationType":"notAnimatable","percentages":"no","groups":["MathML"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/math-style"},"max-block-size":{"syntax":"<\'max-width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"blockSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsWidthAndHeight","computed":"sameAsMaxWidthAndMaxHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/max-block-size"},"max-height":{"syntax":"none | <length-percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"regardingHeightOfGeneratedBoxContainingBlockPercentagesNone","groups":["CSS Box Model"],"initial":"none","appliesto":"allElementsButNonReplacedAndTableColumns","computed":"percentageAsSpecifiedAbsoluteLengthOrNone","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/max-height"},"max-inline-size":{"syntax":"<\'max-width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"inlineSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsWidthAndHeight","computed":"sameAsMaxWidthAndMaxHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/max-inline-size"},"max-lines":{"syntax":"none | <integer>","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["CSS Overflow"],"initial":"none","appliesto":"blockContainersExceptMultiColumnContainers","computed":"asSpecified","order":"perGrammar","status":"experimental"},"max-width":{"syntax":"none | <length-percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"none","appliesto":"allElementsButNonReplacedAndTableRows","computed":"percentageAsSpecifiedAbsoluteLengthOrNone","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/max-width"},"min-block-size":{"syntax":"<\'min-width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"blockSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsWidthAndHeight","computed":"sameAsMinWidthAndMinHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/min-block-size"},"min-height":{"syntax":"auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"regardingHeightOfGeneratedBoxContainingBlockPercentages0","groups":["CSS Box Model"],"initial":"auto","appliesto":"allElementsButNonReplacedAndTableColumns","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/min-height"},"min-inline-size":{"syntax":"<\'min-width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"inlineSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsWidthAndHeight","computed":"sameAsMinWidthAndMinHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/min-inline-size"},"min-width":{"syntax":"auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"auto","appliesto":"allElementsButNonReplacedAndTableRows","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/min-width"},"mix-blend-mode":{"syntax":"<blend-mode>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Compositing and Blending"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode"},"object-fit":{"syntax":"fill | contain | cover | none | scale-down","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Images"],"initial":"fill","appliesto":"replacedElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/object-fit"},"object-position":{"syntax":"<position>","media":"visual","inherited":true,"animationType":"repeatableListOfSimpleListOfLpc","percentages":"referToWidthAndHeightOfElement","groups":["CSS Images"],"initial":"50% 50%","appliesto":"replacedElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/object-position"},"offset":{"syntax":"[ <\'offset-position\'>? [ <\'offset-path\'> [ <\'offset-distance\'> || <\'offset-rotate\'> ]? ]? ]! [ / <\'offset-anchor\'> ]?","media":"visual","inherited":false,"animationType":["offset-position","offset-path","offset-distance","offset-anchor","offset-rotate"],"percentages":["offset-position","offset-distance","offset-anchor"],"groups":["CSS Motion Path"],"initial":["offset-position","offset-path","offset-distance","offset-anchor","offset-rotate"],"appliesto":"transformableElements","computed":["offset-position","offset-path","offset-distance","offset-anchor","offset-rotate"],"order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/offset"},"offset-anchor":{"syntax":"auto | <position>","media":"visual","inherited":false,"animationType":"position","percentages":"relativeToWidthAndHeight","groups":["CSS Motion Path"],"initial":"auto","appliesto":"transformableElements","computed":"forLengthAbsoluteValueOtherwisePercentage","order":"perGrammar","status":"standard"},"offset-distance":{"syntax":"<length-percentage>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToTotalPathLength","groups":["CSS Motion Path"],"initial":"0","appliesto":"transformableElements","computed":"forLengthAbsoluteValueOtherwisePercentage","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/offset-distance"},"offset-path":{"syntax":"none | ray( [ <angle> && <size> && contain? ] ) | <path()> | <url> | [ <basic-shape> || <geometry-box> ]","media":"visual","inherited":false,"animationType":"angleOrBasicShapeOrPath","percentages":"no","groups":["CSS Motion Path"],"initial":"none","appliesto":"transformableElements","computed":"asSpecified","order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/offset-path"},"offset-position":{"syntax":"auto | <position>","media":"visual","inherited":false,"animationType":"position","percentages":"referToSizeOfContainingBlock","groups":["CSS Motion Path"],"initial":"auto","appliesto":"transformableElements","computed":"forLengthAbsoluteValueOtherwisePercentage","order":"perGrammar","status":"experimental"},"offset-rotate":{"syntax":"[ auto | reverse ] || <angle>","media":"visual","inherited":false,"animationType":"angleOrBasicShapeOrPath","percentages":"no","groups":["CSS Motion Path"],"initial":"auto","appliesto":"transformableElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/offset-rotate"},"opacity":{"syntax":"<alpha-value>","media":"visual","inherited":false,"animationType":"number","percentages":"no","groups":["CSS Color"],"initial":"1.0","appliesto":"allElements","computed":"specifiedValueClipped0To1","order":"uniqueOrder","alsoAppliesTo":["::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/opacity"},"order":{"syntax":"<integer>","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":"0","appliesto":"flexItemsGridItemsAbsolutelyPositionedContainerChildren","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/order"},"orphans":{"syntax":"<integer>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"2","appliesto":"blockContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/orphans"},"outline":{"syntax":"[ <\'outline-color\'> || <\'outline-style\'> || <\'outline-width\'> ]","media":["visual","interactive"],"inherited":false,"animationType":["outline-color","outline-width","outline-style"],"percentages":"no","groups":["CSS Basic User Interface"],"initial":["outline-color","outline-style","outline-width"],"appliesto":"allElements","computed":["outline-color","outline-width","outline-style"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/outline"},"outline-color":{"syntax":"<color> | invert","media":["visual","interactive"],"inherited":false,"animationType":"color","percentages":"no","groups":["CSS Basic User Interface"],"initial":"invertOrCurrentColor","appliesto":"allElements","computed":"invertForTranslucentColorRGBAOtherwiseRGB","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/outline-color"},"outline-offset":{"syntax":"<length>","media":["visual","interactive"],"inherited":false,"animationType":"length","percentages":"no","groups":["CSS Basic User Interface"],"initial":"0","appliesto":"allElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/outline-offset"},"outline-style":{"syntax":"auto | <\'border-style\'>","media":["visual","interactive"],"inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/outline-style"},"outline-width":{"syntax":"<line-width>","media":["visual","interactive"],"inherited":false,"animationType":"length","percentages":"no","groups":["CSS Basic User Interface"],"initial":"medium","appliesto":"allElements","computed":"absoluteLength0ForNone","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/outline-width"},"overflow":{"syntax":"[ visible | hidden | clip | scroll | auto ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"visible","appliesto":"blockContainersFlexContainersGridContainers","computed":["overflow-x","overflow-y"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overflow"},"overflow-anchor":{"syntax":"auto | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Anchoring"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard"},"overflow-block":{"syntax":"visible | hidden | clip | scroll | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"auto","appliesto":"blockContainersFlexContainersGridContainers","computed":"asSpecifiedButVisibleOrClipReplacedToAutoOrHiddenIfOtherValueDifferent","order":"perGrammar","status":"standard"},"overflow-clip-box":{"syntax":"padding-box | content-box","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"padding-box","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Mozilla/CSS/overflow-clip-box"},"overflow-inline":{"syntax":"visible | hidden | clip | scroll | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"auto","appliesto":"blockContainersFlexContainersGridContainers","computed":"asSpecifiedButVisibleOrClipReplacedToAutoOrHiddenIfOtherValueDifferent","order":"perGrammar","status":"standard"},"overflow-wrap":{"syntax":"normal | break-word | anywhere","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"nonReplacedInlineElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"},"overflow-x":{"syntax":"visible | hidden | clip | scroll | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"visible","appliesto":"blockContainersFlexContainersGridContainers","computed":"asSpecifiedButVisibleOrClipReplacedToAutoOrHiddenIfOtherValueDifferent","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overflow-x"},"overflow-y":{"syntax":"visible | hidden | clip | scroll | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"visible","appliesto":"blockContainersFlexContainersGridContainers","computed":"asSpecifiedButVisibleOrClipReplacedToAutoOrHiddenIfOtherValueDifferent","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overflow-y"},"overscroll-behavior":{"syntax":"[ contain | none | auto ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior"},"overscroll-behavior-block":{"syntax":"contain | none | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block"},"overscroll-behavior-inline":{"syntax":"contain | none | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline"},"overscroll-behavior-x":{"syntax":"contain | none | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x"},"overscroll-behavior-y":{"syntax":"contain | none | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y"},"padding":{"syntax":"[ <length> | <percentage> ]{1,4}","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":["padding-bottom","padding-left","padding-right","padding-top"],"appliesto":"allElementsExceptInternalTableDisplayTypes","computed":["padding-bottom","padding-left","padding-right","padding-top"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding"},"padding-block":{"syntax":"<\'padding-left\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-block"},"padding-block-end":{"syntax":"<\'padding-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-block-end"},"padding-block-start":{"syntax":"<\'padding-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-block-start"},"padding-bottom":{"syntax":"<length> | <percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptInternalTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-bottom"},"padding-inline":{"syntax":"<\'padding-left\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-inline"},"padding-inline-end":{"syntax":"<\'padding-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-inline-end"},"padding-inline-start":{"syntax":"<\'padding-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-inline-start"},"padding-left":{"syntax":"<length> | <percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptInternalTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-left"},"padding-right":{"syntax":"<length> | <percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptInternalTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-right"},"padding-top":{"syntax":"<length> | <percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptInternalTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-top"},"page-break-after":{"syntax":"auto | always | avoid | left | right | recto | verso","media":["visual","paged"],"inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Pages"],"initial":"auto","appliesto":"blockElementsInNormalFlow","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/page-break-after"},"page-break-before":{"syntax":"auto | always | avoid | left | right | recto | verso","media":["visual","paged"],"inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Pages"],"initial":"auto","appliesto":"blockElementsInNormalFlow","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/page-break-before"},"page-break-inside":{"syntax":"auto | avoid","media":["visual","paged"],"inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Pages"],"initial":"auto","appliesto":"blockElementsInNormalFlow","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/page-break-inside"},"paint-order":{"syntax":"normal | [ fill || stroke || markers ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"textElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/paint-order"},"perspective":{"syntax":"none | <length>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Transforms"],"initial":"none","appliesto":"transformableElements","computed":"absoluteLengthOrNone","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/perspective"},"perspective-origin":{"syntax":"<position>","media":"visual","inherited":false,"animationType":"simpleListOfLpc","percentages":"referToSizeOfBoundingBox","groups":["CSS Transforms"],"initial":"50% 50%","appliesto":"transformableElements","computed":"forLengthAbsoluteValueOtherwisePercentage","order":"oneOrTwoValuesLengthAbsoluteKeywordsPercentages","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/perspective-origin"},"place-content":{"syntax":"<\'align-content\'> <\'justify-content\'>?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"multilineFlexContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/place-content"},"place-items":{"syntax":"<\'align-items\'> <\'justify-items\'>?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":["align-items","justify-items"],"appliesto":"allElements","computed":["align-items","justify-items"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/place-items"},"place-self":{"syntax":"<\'align-self\'> <\'justify-self\'>?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":["align-self","justify-self"],"appliesto":"blockLevelBoxesAndAbsolutelyPositionedBoxesAndGridItems","computed":["align-self","justify-self"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/place-self"},"pointer-events":{"syntax":"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Pointer Events"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/pointer-events"},"position":{"syntax":"static | relative | absolute | sticky | fixed","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Positioning"],"initial":"static","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/position"},"quotes":{"syntax":"none | auto | [ <string> <string> ]+","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Generated Content"],"initial":"dependsOnUserAgent","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/quotes"},"resize":{"syntax":"none | both | horizontal | vertical | block | inline","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"none","appliesto":"elementsWithOverflowNotVisibleAndReplacedElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/resize"},"right":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Positioning"],"initial":"auto","appliesto":"positionedElements","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/right"},"rotate":{"syntax":"none | <angle> | [ x | y | z | <number>{3} ] && <angle>","media":"visual","inherited":false,"animationType":"transform","percentages":"no","groups":["CSS Transforms"],"initial":"none","appliesto":"transformableElements","computed":"asSpecified","order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/rotate"},"row-gap":{"syntax":"normal | <length-percentage>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfContentArea","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"multiColumnElementsFlexContainersGridContainers","computed":"asSpecifiedWithLengthsAbsoluteAndNormalComputingToZeroExceptMultiColumn","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/row-gap"},"ruby-align":{"syntax":"start | center | space-between | space-around","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Ruby"],"initial":"space-around","appliesto":"rubyBasesAnnotationsBaseAnnotationContainers","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/ruby-align"},"ruby-merge":{"syntax":"separate | collapse | auto","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Ruby"],"initial":"separate","appliesto":"rubyAnnotationsContainers","computed":"asSpecified","order":"uniqueOrder","status":"experimental"},"ruby-position":{"syntax":"over | under | inter-character","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Ruby"],"initial":"over","appliesto":"rubyAnnotationsContainers","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/ruby-position"},"scale":{"syntax":"none | <number>{1,3}","media":"visual","inherited":false,"animationType":"transform","percentages":"no","groups":["CSS Transforms"],"initial":"none","appliesto":"transformableElements","computed":"asSpecified","order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scale"},"scrollbar-color":{"syntax":"auto | dark | light | <color>{2}","media":"visual","inherited":true,"animationType":"color","percentages":"no","groups":["CSS Scrollbars"],"initial":"auto","appliesto":"scrollingBoxes","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scrollbar-color"},"scrollbar-gutter":{"syntax":"auto | [ stable | always ] && both? && force?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter"},"scrollbar-width":{"syntax":"auto | thin | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scrollbars"],"initial":"auto","appliesto":"scrollingBoxes","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scrollbar-width"},"scroll-behavior":{"syntax":"auto | smooth","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSSOM View"],"initial":"auto","appliesto":"scrollingBoxes","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-behavior"},"scroll-margin":{"syntax":"<length>{1,4}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin"},"scroll-margin-block":{"syntax":"<length>{1,2}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block"},"scroll-margin-block-start":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start"},"scroll-margin-block-end":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end"},"scroll-margin-bottom":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom"},"scroll-margin-inline":{"syntax":"<length>{1,2}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline"},"scroll-margin-inline-start":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start"},"scroll-margin-inline-end":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end"},"scroll-margin-left":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left"},"scroll-margin-right":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right"},"scroll-margin-top":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top"},"scroll-padding":{"syntax":"[ auto | <length-percentage> ]{1,4}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding"},"scroll-padding-block":{"syntax":"[ auto | <length-percentage> ]{1,2}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block"},"scroll-padding-block-start":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start"},"scroll-padding-block-end":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end"},"scroll-padding-bottom":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom"},"scroll-padding-inline":{"syntax":"[ auto | <length-percentage> ]{1,2}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline"},"scroll-padding-inline-start":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start"},"scroll-padding-inline-end":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end"},"scroll-padding-left":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left"},"scroll-padding-right":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right"},"scroll-padding-top":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top"},"scroll-snap-align":{"syntax":"[ none | start | end | center ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align"},"scroll-snap-coordinate":{"syntax":"none | <position>#","media":"interactive","inherited":false,"animationType":"position","percentages":"referToBorderBox","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"allElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-coordinate"},"scroll-snap-destination":{"syntax":"<position>","media":"interactive","inherited":false,"animationType":"position","percentages":"relativeToScrollContainerPaddingBoxAxis","groups":["CSS Scroll Snap"],"initial":"0px 0px","appliesto":"scrollContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-destination"},"scroll-snap-points-x":{"syntax":"none | repeat( <length-percentage> )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"relativeToScrollContainerPaddingBoxAxis","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"scrollContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-x"},"scroll-snap-points-y":{"syntax":"none | repeat( <length-percentage> )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"relativeToScrollContainerPaddingBoxAxis","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"scrollContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-y"},"scroll-snap-stop":{"syntax":"normal | always","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Snap"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop"},"scroll-snap-type":{"syntax":"none | [ x | y | block | inline | both ] [ mandatory | proximity ]?","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type"},"scroll-snap-type-x":{"syntax":"none | mandatory | proximity","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"scrollContainers","computed":"asSpecified","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type-x"},"scroll-snap-type-y":{"syntax":"none | mandatory | proximity","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"scrollContainers","computed":"asSpecified","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type-y"},"shape-image-threshold":{"syntax":"<alpha-value>","media":"visual","inherited":false,"animationType":"number","percentages":"no","groups":["CSS Shapes"],"initial":"0.0","appliesto":"floats","computed":"specifiedValueNumberClipped0To1","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold"},"shape-margin":{"syntax":"<length-percentage>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Shapes"],"initial":"0","appliesto":"floats","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/shape-margin"},"shape-outside":{"syntax":"none | <shape-box> || <basic-shape> | <image>","media":"visual","inherited":false,"animationType":"basicShapeOtherwiseNo","percentages":"no","groups":["CSS Shapes"],"initial":"none","appliesto":"floats","computed":"asDefinedForBasicShapeWithAbsoluteURIOtherwiseAsSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/shape-outside"},"tab-size":{"syntax":"<integer> | <length>","media":"visual","inherited":true,"animationType":"length","percentages":"no","groups":["CSS Text"],"initial":"8","appliesto":"blockContainers","computed":"specifiedIntegerOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/tab-size"},"table-layout":{"syntax":"auto | fixed","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Table"],"initial":"auto","appliesto":"tableElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/table-layout"},"text-align":{"syntax":"start | end | left | right | center | justify | match-parent","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"startOrNamelessValueIfLTRRightIfRTL","appliesto":"blockContainers","computed":"asSpecifiedExceptMatchParent","order":"orderOfAppearance","alsoAppliesTo":["::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-align"},"text-align-last":{"syntax":"auto | start | end | left | right | center | justify","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"auto","appliesto":"blockContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-align-last"},"text-combine-upright":{"syntax":"none | all | [ digits <integer>? ]","media":"visual","inherited":true,"animationType":"notAnimatable","percentages":"no","groups":["CSS Writing Modes"],"initial":"none","appliesto":"nonReplacedInlineElements","computed":"keywordPlusIntegerIfDigits","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-combine-upright"},"text-decoration":{"syntax":"<\'text-decoration-line\'> || <\'text-decoration-style\'> || <\'text-decoration-color\'> || <\'text-decoration-thickness\'>","media":"visual","inherited":false,"animationType":["text-decoration-color","text-decoration-style","text-decoration-line","text-decoration-thickness"],"percentages":"no","groups":["CSS Text Decoration"],"initial":["text-decoration-color","text-decoration-style","text-decoration-line"],"appliesto":"allElements","computed":["text-decoration-line","text-decoration-style","text-decoration-color","text-decoration-thickness"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration"},"text-decoration-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Text Decoration"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-color"},"text-decoration-line":{"syntax":"none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-line"},"text-decoration-skip":{"syntax":"none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"objects","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip"},"text-decoration-skip-ink":{"syntax":"auto | all | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink"},"text-decoration-style":{"syntax":"solid | double | dotted | dashed | wavy","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"solid","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-style"},"text-decoration-thickness":{"syntax":"auto | from-font | <length> | <percentage> ","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"referToElementFontSize","groups":["CSS Text Decoration"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness"},"text-emphasis":{"syntax":"<\'text-emphasis-style\'> || <\'text-emphasis-color\'>","media":"visual","inherited":false,"animationType":["text-emphasis-color","text-emphasis-style"],"percentages":"no","groups":["CSS Text Decoration"],"initial":["text-emphasis-style","text-emphasis-color"],"appliesto":"allElements","computed":["text-emphasis-style","text-emphasis-color"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-emphasis"},"text-emphasis-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Text Decoration"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color"},"text-emphasis-position":{"syntax":"[ over | under ] && [ right | left ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"over right","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position"},"text-emphasis-style":{"syntax":"none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style"},"text-indent":{"syntax":"<length-percentage> && hanging? && each-line?","media":"visual","inherited":true,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Text"],"initial":"0","appliesto":"blockContainers","computed":"percentageOrAbsoluteLengthPlusKeywords","order":"lengthOrPercentageBeforeKeywords","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-indent"},"text-justify":{"syntax":"auto | inter-character | inter-word | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"auto","appliesto":"inlineLevelAndTableCellElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-justify"},"text-orientation":{"syntax":"mixed | upright | sideways","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Writing Modes"],"initial":"mixed","appliesto":"allElementsExceptTableRowGroupsRowsColumnGroupsAndColumns","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-orientation"},"text-overflow":{"syntax":"[ clip | ellipsis | <string> ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"clip","appliesto":"blockContainerElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-overflow"},"text-rendering":{"syntax":"auto | optimizeSpeed | optimizeLegibility | geometricPrecision","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Miscellaneous"],"initial":"auto","appliesto":"textElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-rendering"},"text-shadow":{"syntax":"none | <shadow-t>#","media":"visual","inherited":true,"animationType":"shadowList","percentages":"no","groups":["CSS Text Decoration"],"initial":"none","appliesto":"allElements","computed":"colorPlusThreeAbsoluteLengths","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-shadow"},"text-size-adjust":{"syntax":"none | auto | <percentage>","media":"visual","inherited":true,"animationType":"discrete","percentages":"referToSizeOfFont","groups":["CSS Text"],"initial":"autoForSmartphoneBrowsersSupportingInflation","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-size-adjust"},"text-transform":{"syntax":"none | capitalize | uppercase | lowercase | full-width | full-size-kana","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-transform"},"text-underline-offset":{"syntax":"auto | <length> | <percentage> ","media":"visual","inherited":true,"animationType":"byComputedValueType","percentages":"referToElementFontSize","groups":["CSS Text Decoration"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-underline-offset"},"text-underline-position":{"syntax":"auto | from-font | [ under || [ left | right ] ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-underline-position"},"top":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToContainingBlockHeight","groups":["CSS Positioning"],"initial":"auto","appliesto":"positionedElements","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/top"},"touch-action":{"syntax":"auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Pointer Events"],"initial":"auto","appliesto":"allElementsExceptNonReplacedInlineElementsTableRowsColumnsRowColumnGroups","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/touch-action"},"transform":{"syntax":"none | <transform-list>","media":"visual","inherited":false,"animationType":"transform","percentages":"referToSizeOfBoundingBox","groups":["CSS Transforms"],"initial":"none","appliesto":"transformableElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transform"},"transform-box":{"syntax":"content-box | border-box | fill-box | stroke-box | view-box","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transforms"],"initial":"view-box","appliesto":"transformableElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transform-box"},"transform-origin":{"syntax":"[ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?","media":"visual","inherited":false,"animationType":"simpleListOfLpc","percentages":"referToSizeOfBoundingBox","groups":["CSS Transforms"],"initial":"50% 50% 0","appliesto":"transformableElements","computed":"forLengthAbsoluteValueOtherwisePercentage","order":"oneOrTwoValuesLengthAbsoluteKeywordsPercentages","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transform-origin"},"transform-style":{"syntax":"flat | preserve-3d","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transforms"],"initial":"flat","appliesto":"transformableElements","computed":"asSpecified","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transform-style"},"transition":{"syntax":"<single-transition>#","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transitions"],"initial":["transition-delay","transition-duration","transition-property","transition-timing-function"],"appliesto":"allElementsAndPseudos","computed":["transition-delay","transition-duration","transition-property","transition-timing-function"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transition"},"transition-delay":{"syntax":"<time>#","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transitions"],"initial":"0s","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transition-delay"},"transition-duration":{"syntax":"<time>#","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transitions"],"initial":"0s","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transition-duration"},"transition-property":{"syntax":"none | <single-transition-property>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transitions"],"initial":"all","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transition-property"},"transition-timing-function":{"syntax":"<timing-function>#","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transitions"],"initial":"ease","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transition-timing-function"},"translate":{"syntax":"none | <length-percentage> [ <length-percentage> <length>? ]?","media":"visual","inherited":false,"animationType":"transform","percentages":"referToSizeOfBoundingBox","groups":["CSS Transforms"],"initial":"none","appliesto":"transformableElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/translate"},"unicode-bidi":{"syntax":"normal | embed | isolate | bidi-override | isolate-override | plaintext","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Writing Modes"],"initial":"normal","appliesto":"allElementsSomeValuesNoEffectOnNonInlineElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/unicode-bidi"},"user-select":{"syntax":"auto | text | none | contain | all","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/user-select"},"vertical-align":{"syntax":"baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>","media":"visual","inherited":false,"animationType":"length","percentages":"referToLineHeight","groups":["CSS Table"],"initial":"baseline","appliesto":"inlineLevelAndTableCellElements","computed":"absoluteLengthOrKeyword","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/vertical-align"},"visibility":{"syntax":"visible | hidden | collapse","media":"visual","inherited":true,"animationType":"visibility","percentages":"no","groups":["CSS Box Model"],"initial":"visible","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/visibility"},"white-space":{"syntax":"normal | pre | nowrap | pre-wrap | pre-line | break-spaces","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/white-space"},"widows":{"syntax":"<integer>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"2","appliesto":"blockContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/widows"},"width":{"syntax":"auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"auto","appliesto":"allElementsButNonReplacedAndTableRows","computed":"percentageAutoOrAbsoluteLength","order":"lengthOrPercentageBeforeKeywordIfBothPresent","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/width"},"will-change":{"syntax":"auto | <animateable-feature>#","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Will Change"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/will-change"},"word-break":{"syntax":"normal | break-all | keep-all | break-word","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/word-break"},"word-spacing":{"syntax":"normal | <length-percentage>","media":"visual","inherited":true,"animationType":"length","percentages":"referToWidthOfAffectedGlyph","groups":["CSS Text"],"initial":"normal","appliesto":"allElements","computed":"optimumMinAndMaxValueOfAbsoluteLengthPercentageOrNormal","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/word-spacing"},"word-wrap":{"syntax":"normal | break-word","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"nonReplacedInlineElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"},"writing-mode":{"syntax":"horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Writing Modes"],"initial":"horizontal-tb","appliesto":"allElementsExceptTableRowColumnGroupsTableRowsColumns","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/writing-mode"},"z-index":{"syntax":"auto | <integer>","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["CSS Positioning"],"initial":"auto","appliesto":"positionedElements","computed":"asSpecified","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/z-index"},"zoom":{"syntax":"normal | reset | <number> | <percentage>","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["Microsoft Extensions"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/zoom"}}')},49023:function(e){"use strict";e.exports=JSON.parse('{"absolute-size":{"syntax":"xx-small | x-small | small | medium | large | x-large | xx-large | xxx-large"},"alpha-value":{"syntax":"<number> | <percentage>"},"angle-percentage":{"syntax":"<angle> | <percentage>"},"angular-color-hint":{"syntax":"<angle-percentage>"},"angular-color-stop":{"syntax":"<color> && <color-stop-angle>?"},"angular-color-stop-list":{"syntax":"[ <angular-color-stop> [, <angular-color-hint>]? ]# , <angular-color-stop>"},"animateable-feature":{"syntax":"scroll-position | contents | <custom-ident>"},"attachment":{"syntax":"scroll | fixed | local"},"attr()":{"syntax":"attr( <attr-name> <type-or-unit>? [, <attr-fallback> ]? )"},"attr-matcher":{"syntax":"[ \'~\' | \'|\' | \'^\' | \'$\' | \'*\' ]? \'=\'"},"attr-modifier":{"syntax":"i | s"},"attribute-selector":{"syntax":"\'[\' <wq-name> \']\' | \'[\' <wq-name> <attr-matcher> [ <string-token> | <ident-token> ] <attr-modifier>? \']\'"},"auto-repeat":{"syntax":"repeat( [ auto-fill | auto-fit ] , [ <line-names>? <fixed-size> ]+ <line-names>? )"},"auto-track-list":{"syntax":"[ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>? <auto-repeat>\\n[ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>?"},"baseline-position":{"syntax":"[ first | last ]? baseline"},"basic-shape":{"syntax":"<inset()> | <circle()> | <ellipse()> | <polygon()> | <path()>"},"bg-image":{"syntax":"none | <image>"},"bg-layer":{"syntax":"<bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <box> || <box>"},"bg-position":{"syntax":"[ [ 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":{"syntax":"[ <length-percentage> | auto ]{1,2} | cover | contain"},"blur()":{"syntax":"blur( <length> )"},"blend-mode":{"syntax":"normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity"},"box":{"syntax":"border-box | padding-box | content-box"},"brightness()":{"syntax":"brightness( <number-percentage> )"},"calc()":{"syntax":"calc( <calc-sum> )"},"calc-sum":{"syntax":"<calc-product> [ [ \'+\' | \'-\' ] <calc-product> ]*"},"calc-product":{"syntax":"<calc-value> [ \'*\' <calc-value> | \'/\' <number> ]*"},"calc-value":{"syntax":"<number> | <dimension> | <percentage> | ( <calc-sum> )"},"cf-final-image":{"syntax":"<image> | <color>"},"cf-mixing-image":{"syntax":"<percentage>? && <image>"},"circle()":{"syntax":"circle( [ <shape-radius> ]? [ at <position> ]? )"},"clamp()":{"syntax":"clamp( <calc-sum>#{3} )"},"class-selector":{"syntax":"\'.\' <ident-token>"},"clip-source":{"syntax":"<url>"},"color":{"syntax":"<rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>"},"color-stop":{"syntax":"<color-stop-length> | <color-stop-angle>"},"color-stop-angle":{"syntax":"<angle-percentage>{1,2}"},"color-stop-length":{"syntax":"<length-percentage>{1,2}"},"color-stop-list":{"syntax":"[ <linear-color-stop> [, <linear-color-hint>]? ]# , <linear-color-stop>"},"combinator":{"syntax":"\'>\' | \'+\' | \'~\' | [ \'||\' ]"},"common-lig-values":{"syntax":"[ common-ligatures | no-common-ligatures ]"},"compat-auto":{"syntax":"searchfield | textarea | push-button | slider-horizontal | checkbox | radio | square-button | menulist | listbox | meter | progress-bar | button"},"composite-style":{"syntax":"clear | copy | source-over | source-in | source-out | source-atop | destination-over | destination-in | destination-out | destination-atop | xor"},"compositing-operator":{"syntax":"add | subtract | intersect | exclude"},"compound-selector":{"syntax":"[ <type-selector>? <subclass-selector>* [ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!"},"compound-selector-list":{"syntax":"<compound-selector>#"},"complex-selector":{"syntax":"<compound-selector> [ <combinator>? <compound-selector> ]*"},"complex-selector-list":{"syntax":"<complex-selector>#"},"conic-gradient()":{"syntax":"conic-gradient( [ from <angle> ]? [ at <position> ]?, <angular-color-stop-list> )"},"contextual-alt-values":{"syntax":"[ contextual | no-contextual ]"},"content-distribution":{"syntax":"space-between | space-around | space-evenly | stretch"},"content-list":{"syntax":"[ <string> | contents | <image> | <quote> | <target> | <leader()> ]+"},"content-position":{"syntax":"center | start | end | flex-start | flex-end"},"content-replacement":{"syntax":"<image>"},"contrast()":{"syntax":"contrast( [ <number-percentage> ] )"},"counter()":{"syntax":"counter( <custom-ident>, <counter-style>? )"},"counter-style":{"syntax":"<counter-style-name> | symbols()"},"counter-style-name":{"syntax":"<custom-ident>"},"counters()":{"syntax":"counters( <custom-ident>, <string>, <counter-style>? )"},"cross-fade()":{"syntax":"cross-fade( <cf-mixing-image> , <cf-final-image>? )"},"cubic-bezier-timing-function":{"syntax":"ease | ease-in | ease-out | ease-in-out | cubic-bezier(<number [0,1]>, <number>, <number [0,1]>, <number>)"},"deprecated-system-color":{"syntax":"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":{"syntax":"[ discretionary-ligatures | no-discretionary-ligatures ]"},"display-box":{"syntax":"contents | none"},"display-inside":{"syntax":"flow | flow-root | table | flex | grid | ruby"},"display-internal":{"syntax":"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":{"syntax":"inline-block | inline-list-item | inline-table | inline-flex | inline-grid"},"display-listitem":{"syntax":"<display-outside>? && [ flow | flow-root ]? && list-item"},"display-outside":{"syntax":"block | inline | run-in"},"drop-shadow()":{"syntax":"drop-shadow( <length>{2,3} <color>? )"},"east-asian-variant-values":{"syntax":"[ jis78 | jis83 | jis90 | jis04 | simplified | traditional ]"},"east-asian-width-values":{"syntax":"[ full-width | proportional-width ]"},"element()":{"syntax":"element( <id-selector> )"},"ellipse()":{"syntax":"ellipse( [ <shape-radius>{2} ]? [ at <position> ]? )"},"ending-shape":{"syntax":"circle | ellipse"},"env()":{"syntax":"env( <custom-ident> , <declaration-value>? )"},"explicit-track-list":{"syntax":"[ <line-names>? <track-size> ]+ <line-names>?"},"family-name":{"syntax":"<string> | <custom-ident>+"},"feature-tag-value":{"syntax":"<string> [ <integer> | on | off ]?"},"feature-type":{"syntax":"@stylistic | @historical-forms | @styleset | @character-variant | @swash | @ornaments | @annotation"},"feature-value-block":{"syntax":"<feature-type> \'{\' <feature-value-declaration-list> \'}\'"},"feature-value-block-list":{"syntax":"<feature-value-block>+"},"feature-value-declaration":{"syntax":"<custom-ident>: <integer>+;"},"feature-value-declaration-list":{"syntax":"<feature-value-declaration>"},"feature-value-name":{"syntax":"<custom-ident>"},"fill-rule":{"syntax":"nonzero | evenodd"},"filter-function":{"syntax":"<blur()> | <brightness()> | <contrast()> | <drop-shadow()> | <grayscale()> | <hue-rotate()> | <invert()> | <opacity()> | <saturate()> | <sepia()>"},"filter-function-list":{"syntax":"[ <filter-function> | <url> ]+"},"final-bg-layer":{"syntax":"<\'background-color\'> || <bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <box> || <box>"},"fit-content()":{"syntax":"fit-content( [ <length> | <percentage> ] )"},"fixed-breadth":{"syntax":"<length-percentage>"},"fixed-repeat":{"syntax":"repeat( [ <positive-integer> ] , [ <line-names>? <fixed-size> ]+ <line-names>? )"},"fixed-size":{"syntax":"<fixed-breadth> | minmax( <fixed-breadth> , <track-breadth> ) | minmax( <inflexible-breadth> , <fixed-breadth> )"},"font-stretch-absolute":{"syntax":"normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | <percentage>"},"font-variant-css21":{"syntax":"[ normal | small-caps ]"},"font-weight-absolute":{"syntax":"normal | bold | <number [1,1000]>"},"frequency-percentage":{"syntax":"<frequency> | <percentage>"},"general-enclosed":{"syntax":"[ <function-token> <any-value> ) ] | ( <ident> <any-value> )"},"generic-family":{"syntax":"serif | sans-serif | cursive | fantasy | monospace"},"generic-name":{"syntax":"serif | sans-serif | cursive | fantasy | monospace"},"geometry-box":{"syntax":"<shape-box> | fill-box | stroke-box | view-box"},"gradient":{"syntax":"<linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>"},"grayscale()":{"syntax":"grayscale( <number-percentage> )"},"grid-line":{"syntax":"auto | <custom-ident> | [ <integer> && <custom-ident>? ] | [ span && [ <integer> || <custom-ident> ] ]"},"historical-lig-values":{"syntax":"[ historical-ligatures | no-historical-ligatures ]"},"hsl()":{"syntax":"hsl( <hue> <percentage> <percentage> [ / <alpha-value> ]? ) | hsl( <hue>, <percentage>, <percentage>, <alpha-value>? )"},"hsla()":{"syntax":"hsla( <hue> <percentage> <percentage> [ / <alpha-value> ]? ) | hsla( <hue>, <percentage>, <percentage>, <alpha-value>? )"},"hue":{"syntax":"<number> | <angle>"},"hue-rotate()":{"syntax":"hue-rotate( <angle> )"},"id-selector":{"syntax":"<hash-token>"},"image":{"syntax":"<url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>"},"image()":{"syntax":"image( <image-tags>? [ <image-src>? , <color>? ]! )"},"image-set()":{"syntax":"image-set( <image-set-option># )"},"image-set-option":{"syntax":"[ <image> | <string> ] <resolution>"},"image-src":{"syntax":"<url> | <string>"},"image-tags":{"syntax":"ltr | rtl"},"inflexible-breadth":{"syntax":"<length> | <percentage> | min-content | max-content | auto"},"inset()":{"syntax":"inset( <length-percentage>{1,4} [ round <\'border-radius\'> ]? )"},"invert()":{"syntax":"invert( <number-percentage> )"},"keyframes-name":{"syntax":"<custom-ident> | <string>"},"keyframe-block":{"syntax":"<keyframe-selector># {\\n <declaration-list>\\n}"},"keyframe-block-list":{"syntax":"<keyframe-block>+"},"keyframe-selector":{"syntax":"from | to | <percentage>"},"leader()":{"syntax":"leader( <leader-type> )"},"leader-type":{"syntax":"dotted | solid | space | <string>"},"length-percentage":{"syntax":"<length> | <percentage>"},"line-names":{"syntax":"\'[\' <custom-ident>* \']\'"},"line-name-list":{"syntax":"[ <line-names> | <name-repeat> ]+"},"line-style":{"syntax":"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset"},"line-width":{"syntax":"<length> | thin | medium | thick"},"linear-color-hint":{"syntax":"<length-percentage>"},"linear-color-stop":{"syntax":"<color> <color-stop-length>?"},"linear-gradient()":{"syntax":"linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"},"mask-layer":{"syntax":"<mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || <geometry-box> || [ <geometry-box> | no-clip ] || <compositing-operator> || <masking-mode>"},"mask-position":{"syntax":"[ <length-percentage> | left | center | right ] [ <length-percentage> | top | center | bottom ]?"},"mask-reference":{"syntax":"none | <image> | <mask-source>"},"mask-source":{"syntax":"<url>"},"masking-mode":{"syntax":"alpha | luminance | match-source"},"matrix()":{"syntax":"matrix( <number>#{6} )"},"matrix3d()":{"syntax":"matrix3d( <number>#{16} )"},"max()":{"syntax":"max( <calc-sum># )"},"media-and":{"syntax":"<media-in-parens> [ and <media-in-parens> ]+"},"media-condition":{"syntax":"<media-not> | <media-and> | <media-or> | <media-in-parens>"},"media-condition-without-or":{"syntax":"<media-not> | <media-and> | <media-in-parens>"},"media-feature":{"syntax":"( [ <mf-plain> | <mf-boolean> | <mf-range> ] )"},"media-in-parens":{"syntax":"( <media-condition> ) | <media-feature> | <general-enclosed>"},"media-not":{"syntax":"not <media-in-parens>"},"media-or":{"syntax":"<media-in-parens> [ or <media-in-parens> ]+"},"media-query":{"syntax":"<media-condition> | [ not | only ]? <media-type> [ and <media-condition-without-or> ]?"},"media-query-list":{"syntax":"<media-query>#"},"media-type":{"syntax":"<ident>"},"mf-boolean":{"syntax":"<mf-name>"},"mf-name":{"syntax":"<ident>"},"mf-plain":{"syntax":"<mf-name> : <mf-value>"},"mf-range":{"syntax":"<mf-name> [ \'<\' | \'>\' ]? \'=\'? <mf-value>\\n| <mf-value> [ \'<\' | \'>\' ]? \'=\'? <mf-name>\\n| <mf-value> \'<\' \'=\'? <mf-name> \'<\' \'=\'? <mf-value>\\n| <mf-value> \'>\' \'=\'? <mf-name> \'>\' \'=\'? <mf-value>"},"mf-value":{"syntax":"<number> | <dimension> | <ident> | <ratio>"},"min()":{"syntax":"min( <calc-sum># )"},"minmax()":{"syntax":"minmax( [ <length> | <percentage> | min-content | max-content | auto ] , [ <length> | <percentage> | <flex> | min-content | max-content | auto ] )"},"named-color":{"syntax":"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"},"namespace-prefix":{"syntax":"<ident>"},"ns-prefix":{"syntax":"[ <ident-token> | \'*\' ]? \'|\'"},"number-percentage":{"syntax":"<number> | <percentage>"},"numeric-figure-values":{"syntax":"[ lining-nums | oldstyle-nums ]"},"numeric-fraction-values":{"syntax":"[ diagonal-fractions | stacked-fractions ]"},"numeric-spacing-values":{"syntax":"[ proportional-nums | tabular-nums ]"},"nth":{"syntax":"<an-plus-b> | even | odd"},"opacity()":{"syntax":"opacity( [ <number-percentage> ] )"},"overflow-position":{"syntax":"unsafe | safe"},"outline-radius":{"syntax":"<length> | <percentage>"},"page-body":{"syntax":"<declaration>? [ ; <page-body> ]? | <page-margin-box> <page-body>"},"page-margin-box":{"syntax":"<page-margin-box-type> \'{\' <declaration-list> \'}\'"},"page-margin-box-type":{"syntax":"@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":{"syntax":"[ <page-selector># ]?"},"page-selector":{"syntax":"<pseudo-page>+ | <ident> <pseudo-page>*"},"path()":{"syntax":"path( [ <fill-rule>, ]? <string> )"},"paint()":{"syntax":"paint( <ident>, <declaration-value>? )"},"perspective()":{"syntax":"perspective( <length> )"},"polygon()":{"syntax":"polygon( <fill-rule>? , [ <length-percentage> <length-percentage> ]# )"},"position":{"syntax":"[ [ 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":{"syntax":"\':\' <ident-token> | \':\' <function-token> <any-value> \')\'"},"pseudo-element-selector":{"syntax":"\':\' <pseudo-class-selector>"},"pseudo-page":{"syntax":": [ left | right | first | blank ]"},"quote":{"syntax":"open-quote | close-quote | no-open-quote | no-close-quote"},"radial-gradient()":{"syntax":"radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"relative-selector":{"syntax":"<combinator>? <complex-selector>"},"relative-selector-list":{"syntax":"<relative-selector>#"},"relative-size":{"syntax":"larger | smaller"},"repeat-style":{"syntax":"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}"},"repeating-linear-gradient()":{"syntax":"repeating-linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"},"repeating-radial-gradient()":{"syntax":"repeating-radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"rgb()":{"syntax":"rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )"},"rgba()":{"syntax":"rgba( <percentage>{3} [ / <alpha-value> ]? ) | rgba( <number>{3} [ / <alpha-value> ]? ) | rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? )"},"rotate()":{"syntax":"rotate( [ <angle> | <zero> ] )"},"rotate3d()":{"syntax":"rotate3d( <number> , <number> , <number> , [ <angle> | <zero> ] )"},"rotateX()":{"syntax":"rotateX( [ <angle> | <zero> ] )"},"rotateY()":{"syntax":"rotateY( [ <angle> | <zero> ] )"},"rotateZ()":{"syntax":"rotateZ( [ <angle> | <zero> ] )"},"saturate()":{"syntax":"saturate( <number-percentage> )"},"scale()":{"syntax":"scale( <number> , <number>? )"},"scale3d()":{"syntax":"scale3d( <number> , <number> , <number> )"},"scaleX()":{"syntax":"scaleX( <number> )"},"scaleY()":{"syntax":"scaleY( <number> )"},"scaleZ()":{"syntax":"scaleZ( <number> )"},"self-position":{"syntax":"center | start | end | self-start | self-end | flex-start | flex-end"},"shape-radius":{"syntax":"<length-percentage> | closest-side | farthest-side"},"skew()":{"syntax":"skew( [ <angle> | <zero> ] , [ <angle> | <zero> ]? )"},"skewX()":{"syntax":"skewX( [ <angle> | <zero> ] )"},"skewY()":{"syntax":"skewY( [ <angle> | <zero> ] )"},"sepia()":{"syntax":"sepia( <number-percentage> )"},"shadow":{"syntax":"inset? && <length>{2,4} && <color>?"},"shadow-t":{"syntax":"[ <length>{2,3} && <color>? ]"},"shape":{"syntax":"rect(<top>, <right>, <bottom>, <left>)"},"shape-box":{"syntax":"<box> | margin-box"},"side-or-corner":{"syntax":"[ left | right ] || [ top | bottom ]"},"single-animation":{"syntax":"<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":{"syntax":"normal | reverse | alternate | alternate-reverse"},"single-animation-fill-mode":{"syntax":"none | forwards | backwards | both"},"single-animation-iteration-count":{"syntax":"infinite | <number>"},"single-animation-play-state":{"syntax":"running | paused"},"single-transition":{"syntax":"[ none | <single-transition-property> ] || <time> || <timing-function> || <time>"},"single-transition-property":{"syntax":"all | <custom-ident>"},"size":{"syntax":"closest-side | farthest-side | closest-corner | farthest-corner | <length> | <length-percentage>{2}"},"step-position":{"syntax":"jump-start | jump-end | jump-none | jump-both | start | end"},"step-timing-function":{"syntax":"step-start | step-end | steps(<integer>[, <step-position>]?)"},"subclass-selector":{"syntax":"<id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector>"},"supports-condition":{"syntax":"not <supports-in-parens> | <supports-in-parens> [ and <supports-in-parens> ]* | <supports-in-parens> [ or <supports-in-parens> ]*"},"supports-in-parens":{"syntax":"( <supports-condition> ) | <supports-feature> | <general-enclosed>"},"supports-feature":{"syntax":"<supports-decl> | <supports-selector-fn>"},"supports-decl":{"syntax":"( <declaration> )"},"supports-selector-fn":{"syntax":"selector( <complex-selector> )"},"symbol":{"syntax":"<string> | <image> | <custom-ident>"},"target":{"syntax":"<target-counter()> | <target-counters()> | <target-text()>"},"target-counter()":{"syntax":"target-counter( [ <string> | <url> ] , <custom-ident> , <counter-style>? )"},"target-counters()":{"syntax":"target-counters( [ <string> | <url> ] , <custom-ident> , <string> , <counter-style>? )"},"target-text()":{"syntax":"target-text( [ <string> | <url> ] , [ content | before | after | first-letter ]? )"},"time-percentage":{"syntax":"<time> | <percentage>"},"timing-function":{"syntax":"linear | <cubic-bezier-timing-function> | <step-timing-function>"},"track-breadth":{"syntax":"<length-percentage> | <flex> | min-content | max-content | auto"},"track-list":{"syntax":"[ <line-names>? [ <track-size> | <track-repeat> ] ]+ <line-names>?"},"track-repeat":{"syntax":"repeat( [ <positive-integer> ] , [ <line-names>? <track-size> ]+ <line-names>? )"},"track-size":{"syntax":"<track-breadth> | minmax( <inflexible-breadth> , <track-breadth> ) | fit-content( [ <length> | <percentage> ] )"},"transform-function":{"syntax":"<matrix()> | <translate()> | <translateX()> | <translateY()> | <scale()> | <scaleX()> | <scaleY()> | <rotate()> | <skew()> | <skewX()> | <skewY()> | <matrix3d()> | <translate3d()> | <translateZ()> | <scale3d()> | <scaleZ()> | <rotate3d()> | <rotateX()> | <rotateY()> | <rotateZ()> | <perspective()>"},"transform-list":{"syntax":"<transform-function>+"},"translate()":{"syntax":"translate( <length-percentage> , <length-percentage>? )"},"translate3d()":{"syntax":"translate3d( <length-percentage> , <length-percentage> , <length> )"},"translateX()":{"syntax":"translateX( <length-percentage> )"},"translateY()":{"syntax":"translateY( <length-percentage> )"},"translateZ()":{"syntax":"translateZ( <length> )"},"type-or-unit":{"syntax":"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":{"syntax":"<wq-name> | <ns-prefix>? \'*\'"},"var()":{"syntax":"var( <custom-property-name> , <declaration-value>? )"},"viewport-length":{"syntax":"auto | <length-percentage>"},"wq-name":{"syntax":"<ns-prefix>? <ident-token>"}}')},60306:function(e){"use strict";e.exports={i8:"2.2.22"}}},function(e){"use strict";e(e.s=41952)}]); |