From 6b3f703f94a00476b84d6058cd77aa626a7e9d74 Mon Sep 17 00:00:00 2001 From: piotrpekala7 <31202938+piotrpekala7@users.noreply.github.com> Date: Tue, 14 Sep 2021 10:35:10 +0200 Subject: [PATCH] Release web UI 2.2.25 --- ...62bd9b75f566201f.js => 26.30249f0e3aeb3f791226.js} | 2 +- gns3server/static/web-ui/3rdpartylicenses.txt | 2 +- gns3server/static/web-ui/index.html | 4 ++-- gns3server/static/web-ui/main.2508108fae5a3eec0c74.js | 1 - gns3server/static/web-ui/main.99bd505aa7e5588a7375.js | 1 + ...c8c34b088fc.js => runtime.001148a9d0f7b37d03b4.js} | 2 +- .../static/web-ui/styles.bc7659e2cee2695de64b.css | 11 +++++++++++ .../static/web-ui/styles.f77f6cd675ecc98f0177.css | 11 ----------- 8 files changed, 17 insertions(+), 17 deletions(-) rename gns3server/static/web-ui/{26.b66762bd9b75f566201f.js => 26.30249f0e3aeb3f791226.js} (85%) delete mode 100644 gns3server/static/web-ui/main.2508108fae5a3eec0c74.js create mode 100644 gns3server/static/web-ui/main.99bd505aa7e5588a7375.js rename gns3server/static/web-ui/{runtime.da4235648c8c34b088fc.js => runtime.001148a9d0f7b37d03b4.js} (95%) create mode 100644 gns3server/static/web-ui/styles.bc7659e2cee2695de64b.css delete mode 100644 gns3server/static/web-ui/styles.f77f6cd675ecc98f0177.css diff --git a/gns3server/static/web-ui/26.b66762bd9b75f566201f.js b/gns3server/static/web-ui/26.30249f0e3aeb3f791226.js similarity index 85% rename from gns3server/static/web-ui/26.b66762bd9b75f566201f.js rename to gns3server/static/web-ui/26.30249f0e3aeb3f791226.js index 204670a2..40f6feae 100644 --- a/gns3server/static/web-ui/26.b66762bd9b75f566201f.js +++ b/gns3server/static/web-ui/26.30249f0e3aeb3f791226.js @@ -1 +1 @@ -"use strict";(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[26],{91026:function(q,c,a){a.r(c),a.d(c,{TopologySummaryComponent:function(){return N}});var t=a(65508),d=a(96852),_=a(14200),m=a(36889),h=a(3941),f=a(15132),p=a(40098),v=a(39095),u=a(88802),y=a(73044),g=a(59412),x=a(93386);function T(i,e){if(1&i){var o=t.EpF();t.TgZ(0,"div",2),t.NdJ("mousemove",function(r){return t.CHM(o),t.oxw().dragWidget(r)},!1,t.evT)("mouseup",function(){return t.CHM(o),t.oxw().toggleDragging(!1)},!1,t.evT),t.qZA()}}function C(i,e){1&i&&(t.O4$(),t.TgZ(0,"svg",28),t._UZ(1,"rect",29),t.qZA())}function S(i,e){1&i&&(t.O4$(),t.TgZ(0,"svg",28),t._UZ(1,"rect",30),t.qZA())}function b(i,e){1&i&&(t.O4$(),t.TgZ(0,"svg",28),t._UZ(1,"rect",31),t.qZA())}function E(i,e){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&i){var o=t.oxw().$implicit;t.xp6(1),t.lnq(" ",o.console_type," ",o.console_host,":",o.console," ")}}function Z(i,e){1&i&&(t.TgZ(0,"div"),t._uU(1," none "),t.qZA())}function O(i,e){if(1&i&&(t.TgZ(0,"div",25),t.TgZ(1,"div"),t.YNc(2,C,2,0,"svg",26),t.YNc(3,S,2,0,"svg",26),t.YNc(4,b,2,0,"svg",26),t._uU(5),t.qZA(),t.YNc(6,E,2,3,"div",27),t.YNc(7,Z,2,0,"div",27),t.qZA()),2&i){var o=e.$implicit;t.xp6(2),t.Q6J("ngIf","started"===o.status),t.xp6(1),t.Q6J("ngIf","suspended"===o.status),t.xp6(1),t.Q6J("ngIf","stopped"===o.status),t.xp6(1),t.hij(" ",o.name," "),t.xp6(1),t.Q6J("ngIf",null!=o.console&&null!=o.console&&"none"!=o.console_type),t.xp6(1),t.Q6J("ngIf",null==o.console||"none"===o.console_type)}}function M(i,e){1&i&&(t.O4$(),t.TgZ(0,"svg",28),t._UZ(1,"rect",29),t.qZA())}function w(i,e){1&i&&(t.O4$(),t.TgZ(0,"svg",28),t._UZ(1,"rect",31),t.qZA())}function A(i,e){if(1&i&&(t.TgZ(0,"div",25),t.TgZ(1,"div"),t.YNc(2,M,2,0,"svg",26),t.YNc(3,w,2,0,"svg",26),t._uU(4),t.qZA(),t.TgZ(5,"div"),t._uU(6),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.qZA(),t.qZA()),2&i){var o=e.$implicit,s=t.oxw(2);t.xp6(2),t.Q6J("ngIf",o.connected),t.xp6(1),t.Q6J("ngIf",!o.connected),t.xp6(1),t.hij(" ",o.name," "),t.xp6(2),t.hij(" ",o.host," "),t.xp6(2),t.hij(" ",s.server.location," ")}}var P=function(i){return{lightTheme:i}},F=function(){return{right:!0,left:!0,bottom:!0,top:!0}};function D(i,e){if(1&i){var o=t.EpF();t.TgZ(0,"div",3),t.NdJ("mousedown",function(){return t.CHM(o),t.oxw().toggleDragging(!0)})("resizeStart",function(){return t.CHM(o),t.oxw().toggleDragging(!1)})("resizeEnd",function(n){return t.CHM(o),t.oxw().onResizeEnd(n)}),t.TgZ(1,"div",4),t.TgZ(2,"mat-tab-group"),t.TgZ(3,"mat-tab",5),t.NdJ("click",function(){return t.CHM(o),t.oxw().toggleTopologyVisibility(!0)}),t.TgZ(4,"div",6),t.TgZ(5,"div",7),t.TgZ(6,"mat-select",8),t.TgZ(7,"mat-optgroup",9),t.TgZ(8,"mat-option",10),t.NdJ("onSelectionChange",function(){return t.CHM(o),t.oxw().applyStatusFilter("started")}),t._uU(9,"started"),t.qZA(),t.TgZ(10,"mat-option",11),t.NdJ("onSelectionChange",function(){return t.CHM(o),t.oxw().applyStatusFilter("suspended")}),t._uU(11,"suspended"),t.qZA(),t.TgZ(12,"mat-option",12),t.NdJ("onSelectionChange",function(){return t.CHM(o),t.oxw().applyStatusFilter("stopped")}),t._uU(13,"stopped"),t.qZA(),t.qZA(),t.TgZ(14,"mat-optgroup",13),t.TgZ(15,"mat-option",14),t.NdJ("onSelectionChange",function(){return t.CHM(o),t.oxw().applyCaptureFilter("capture")}),t._uU(16,"active capture(s)"),t.qZA(),t.TgZ(17,"mat-option",15),t.NdJ("onSelectionChange",function(){return t.CHM(o),t.oxw().applyCaptureFilter("packet")}),t._uU(18,"active packet captures"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(19,"div",16),t.TgZ(20,"mat-select",17),t.NdJ("selectionChange",function(){return t.CHM(o),t.oxw().setSortingOrder()})("valueChange",function(n){return t.CHM(o),t.oxw().sortingOrder=n}),t.TgZ(21,"mat-option",18),t._uU(22,"sort by name ascending"),t.qZA(),t.TgZ(23,"mat-option",19),t._uU(24,"sort by name descending"),t.qZA(),t.qZA(),t.qZA(),t._UZ(25,"mat-divider",20),t.TgZ(26,"div",21),t.YNc(27,O,8,6,"div",22),t.qZA(),t.qZA(),t.qZA(),t.TgZ(28,"mat-tab",23),t.NdJ("click",function(){return t.CHM(o),t.oxw().toggleTopologyVisibility(!1)}),t.TgZ(29,"div",6),t.TgZ(30,"div",24),t.YNc(31,A,9,5,"div",22),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&i){var s=t.oxw();t.Q6J("ngStyle",s.style)("ngClass",t.VKq(9,P,s.isLightThemeEnabled))("validateResize",s.validate)("resizeEdges",t.DdM(11,F))("enableGhostResize",!0),t.xp6(20),t.Q6J("value",s.sortingOrder),t.xp6(6),t.Q6J("ngStyle",s.styleInside),t.xp6(1),t.Q6J("ngForOf",s.filteredNodes),t.xp6(4),t.Q6J("ngForOf",s.computes)}}var N=function(){function i(e,o,s,r,n){this.nodesDataSource=e,this.projectService=o,this.computeService=s,this.linksDataSource=r,this.themeService=n,this.closeTopologySummary=new t.vpe,this.style={},this.styleInside={height:"280px"},this.subscriptions=[],this.nodes=[],this.filteredNodes=[],this.sortingOrder="asc",this.startedStatusFilterEnabled=!1,this.suspendedStatusFilterEnabled=!1,this.stoppedStatusFilterEnabled=!1,this.captureFilterEnabled=!1,this.packetFilterEnabled=!1,this.computes=[],this.isTopologyVisible=!0,this.isDraggingEnabled=!1,this.isLightThemeEnabled=!1}return i.prototype.ngOnInit=function(){var e=this;this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.subscriptions.push(this.nodesDataSource.changes.subscribe(function(o){e.nodes=o,e.nodes.forEach(function(s){("0.0.0.0"===s.console_host||"0:0:0:0:0:0:0:0"===s.console_host||"::"===s.console_host)&&(s.console_host=e.server.host)}),e.filteredNodes=o.sort("asc"===e.sortingOrder?e.compareAsc:e.compareDesc)})),this.projectService.getStatistics(this.server,this.project.project_id).subscribe(function(o){e.projectsStatistics=o}),this.computeService.getComputes(this.server).subscribe(function(o){e.computes=o}),this.style={top:"60px",right:"0px",width:"320px",height:"400px"}},i.prototype.toggleDragging=function(e){this.isDraggingEnabled=e},i.prototype.dragWidget=function(e){var o=Number(e.movementX),s=Number(e.movementY),r=Number(this.style.width.split("px")[0]),n=Number(this.style.height.split("px")[0]),l=Number(this.style.top.split("px")[0])+s;if(this.style.left){var I=Number(this.style.left.split("px")[0])+o;this.style={position:"fixed",left:I+"px",top:l+"px",width:r+"px",height:n+"px"}}else{var U=Number(this.style.right.split("px")[0])-o;this.style={position:"fixed",right:U+"px",top:l+"px",width:r+"px",height:n+"px"}}},i.prototype.validate=function(e){return!(e.rectangle.width&&e.rectangle.height&&(e.rectangle.width<290||e.rectangle.height<260))},i.prototype.onResizeEnd=function(e){this.style={position:"fixed",left:e.rectangle.left+"px",top:e.rectangle.top+"px",width:e.rectangle.width+"px",height:e.rectangle.height+"px"},this.styleInside={height:e.rectangle.height-120+"px"}},i.prototype.toggleTopologyVisibility=function(e){this.isTopologyVisible=e},i.prototype.compareAsc=function(e,o){return e.name - + @@ -46,6 +46,6 @@ gtag('config', 'G-5D6FZL9923'); - + \ No newline at end of file diff --git a/gns3server/static/web-ui/main.2508108fae5a3eec0c74.js b/gns3server/static/web-ui/main.2508108fae5a3eec0c74.js deleted file mode 100644 index 3ee431a5..00000000 --- a/gns3server/static/web-ui/main.2508108fae5a3eec0c74.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{98255:function(le){function q(f){return Promise.resolve().then(function(){var U=new Error("Cannot find module '"+f+"'");throw U.code="MODULE_NOT_FOUND",U})}q.keys=function(){return[]},q.resolve=q,q.id=98255,le.exports=q},82908:function(le){le.exports=function(f,U){(null==U||U>f.length)&&(U=f.length);for(var B=0,V=new Array(U);B0&&$[$.length-1])&&(6===Ne[0]||2===Ne[0])){ue=0;continue}if(3===Ne[0]&&(!$||Ne[1]>$[0]&&Ne[1]<$[3])){ue.label=Ne[1];break}if(6===Ne[0]&&ue.label<$[1]){ue.label=$[1],$=Ne;break}if($&&ue.label<$[2]){ue.label=$[2],ue.ops.push(Ne);break}$[2]&&ue.ops.pop(),ue.trys.pop();continue}Ne=se.call(ie,ue)}catch(gt){Ne=[6,gt],oe=0}finally{de=$=0}if(5&Ne[0])throw Ne[1];return{value:Ne[0]?Ne[1]:void 0,done:!0}}([Ne,gt])}}}function M(ie,se,ue){if(ue||2===arguments.length)for(var $,de=0,oe=se.length;de1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:z,timings:K}}function N(K){var z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:K,options:z}}function D(K){return{type:6,styles:K,offset:null}}function O(K,z,Q){return{type:0,name:K,styles:z,options:Q}}function P(K){return{type:5,steps:K}}function y(K,z){var Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:K,animation:z,options:Q}}function T(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:K}}function E(K,z){var Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:K,animation:z,options:Q}}function S(K){Promise.resolve(null).then(K)}var A=function(){function K(){var z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,B.Z)(this,K),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=z+Q}return(0,U.Z)(K,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[])}},{key:"onStart",value:function(Q){this._onStartFns.push(Q)}},{key:"onDone",value:function(Q){this._onDoneFns.push(Q)}},{key:"onDestroy",value:function(Q){this._onDestroyFns.push(Q)}},{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 Q=this;S(function(){return Q._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(Q){return Q()}),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(Q){return Q()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(Q){this._position=this.totalTime?Q*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(Q){var ae="start"==Q?this._onStartFns:this._onDoneFns;ae.forEach(function(ie){return ie()}),ae.length=0}}]),K}(),L=function(){function K(z){var Q=this;(0,B.Z)(this,K),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=z;var ae=0,ie=0,se=0,ue=this.players.length;0==ue?S(function(){return Q._onFinish()}):this.players.forEach(function(de){de.onDone(function(){++ae==ue&&Q._onFinish()}),de.onDestroy(function(){++ie==ue&&Q._onDestroy()}),de.onStart(function(){++se==ue&&Q._onStart()})}),this.totalTime=this.players.reduce(function(de,oe){return Math.max(de,oe.totalTime)},0)}return(0,U.Z)(K,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(Q){return Q.init()})}},{key:"onStart",value:function(Q){this._onStartFns.push(Q)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(Q){return Q()}),this._onStartFns=[])}},{key:"onDone",value:function(Q){this._onDoneFns.push(Q)}},{key:"onDestroy",value:function(Q){this._onDestroyFns.push(Q)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(Q){return Q.play()})}},{key:"pause",value:function(){this.players.forEach(function(Q){return Q.pause()})}},{key:"restart",value:function(){this.players.forEach(function(Q){return Q.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(Q){return Q.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(Q){return Q.destroy()}),this._onDestroyFns.forEach(function(Q){return Q()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(Q){return Q.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(Q){var ae=Q*this.totalTime;this.players.forEach(function(ie){var se=ie.totalTime?Math.min(1,ae/ie.totalTime):1;ie.setPosition(se)})}},{key:"getPosition",value:function(){var Q=this.players.reduce(function(ae,ie){return null===ae||ie.totalTime>ae.totalTime?ie:ae},null);return null!=Q?Q.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(Q){Q.beforeDestroy&&Q.beforeDestroy()})}},{key:"triggerCallback",value:function(Q){var ae="start"==Q?this._onStartFns:this._onDoneFns;ae.forEach(function(ie){return ie()}),ae.length=0}}]),K}(),j="!"},6517:function(le,q,f){"use strict";f.d(q,{rt:function(){return at},s1:function(){return Se},$s:function(){return Ne},kH:function(){return Vt},Em:function(){return Oe},tE:function(){return ir},qV:function(){return Hn},qm:function(){return Ue},Kd:function(){return Nn},X6:function(){return he},yG:function(){return Ge}});var U=f(27235),B=f(20901),V=f(89200),Z=f(10509),w=f(97154),R=f(18967),C=f(14105),_=f(40098),N=f(65508),D=f(68707),O=f(5051),P=f(90838),y=f(43161),g=f(32819),T=f(59371),M=f(57263),E=f(58780),x=f(85639),S=f(48359),A=f(18756),L=f(76161),j=f(44213),K=f(78081),z=f(15427),Q=f(96798);function ue(Ce,Fe){return(Ce.getAttribute(Fe)||"").match(/\S+/g)||[]}var de="cdk-describedby-message-container",oe="cdk-describedby-message",$="cdk-describedby-host",ye=0,ve=new Map,et=null,Ne=function(){var Ce=function(){function Fe(Ae){(0,R.Z)(this,Fe),this._document=Ae}return(0,C.Z)(Fe,[{key:"describe",value:function(Le,ze,Nt){if(this._canBeDescribed(Le,ze)){var mn=gt(ze,Nt);"string"!=typeof ze?(_t(ze),ve.set(mn,{messageElement:ze,referenceCount:0})):ve.has(mn)||this._createMessageElement(ze,Nt),this._isElementDescribedByMessage(Le,mn)||this._addMessageReference(Le,mn)}}},{key:"removeDescription",value:function(Le,ze,Nt){if(ze&&this._isElementNode(Le)){var mn=gt(ze,Nt);if(this._isElementDescribedByMessage(Le,mn)&&this._removeMessageReference(Le,mn),"string"==typeof ze){var Xn=ve.get(mn);Xn&&0===Xn.referenceCount&&this._deleteMessageElement(mn)}et&&0===et.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var Le=this._document.querySelectorAll("[".concat($,"]")),ze=0;ze-1&&Nt!==Ae._activeItemIndex&&(Ae._activeItemIndex=Nt)}})}return(0,C.Z)(Ce,[{key:"skipPredicate",value:function(Ae){return this._skipPredicateFn=Ae,this}},{key:"withWrap",value:function(){var Ae=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=Ae,this}},{key:"withVerticalOrientation",value:function(){var Ae=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=Ae,this}},{key:"withHorizontalOrientation",value:function(Ae){return this._horizontal=Ae,this}},{key:"withAllowedModifierKeys",value:function(Ae){return this._allowedModifierKeys=Ae,this}},{key:"withTypeAhead",value:function(){var Ae=this,Le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,T.b)(function(ze){return Ae._pressedLetters.push(ze)}),(0,M.b)(Le),(0,E.h)(function(){return Ae._pressedLetters.length>0}),(0,x.U)(function(){return Ae._pressedLetters.join("")})).subscribe(function(ze){for(var Nt=Ae._getItemsArray(),mn=1;mn0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=Ae,this}},{key:"setActiveItem",value:function(Ae){var Le=this._activeItem;this.updateActiveItem(Ae),this._activeItem!==Le&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(Ae){var Le=this,ze=Ae.keyCode,mn=["altKey","ctrlKey","metaKey","shiftKey"].every(function(Xn){return!Ae[Xn]||Le._allowedModifierKeys.indexOf(Xn)>-1});switch(ze){case g.Mf:return void this.tabOut.next();case g.JH:if(this._vertical&&mn){this.setNextItemActive();break}return;case g.LH:if(this._vertical&&mn){this.setPreviousItemActive();break}return;case g.SV:if(this._horizontal&&mn){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case g.oh:if(this._horizontal&&mn){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case g.Sd:if(this._homeAndEnd&&mn){this.setFirstItemActive();break}return;case g.uR:if(this._homeAndEnd&&mn){this.setLastItemActive();break}return;default:return void((mn||(0,g.Vb)(Ae,"shiftKey"))&&(Ae.key&&1===Ae.key.length?this._letterKeyStream.next(Ae.key.toLocaleUpperCase()):(ze>=g.A&&ze<=g.Z||ze>=g.xE&&ze<=g.aO)&&this._letterKeyStream.next(String.fromCharCode(ze))))}this._pressedLetters=[],Ae.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(Ae){var Le=this._getItemsArray(),ze="number"==typeof Ae?Ae:Le.indexOf(Ae),Nt=Le[ze];this._activeItem=null==Nt?null:Nt,this._activeItemIndex=ze}},{key:"_setActiveItemByDelta",value:function(Ae){this._wrap?this._setActiveInWrapMode(Ae):this._setActiveInDefaultMode(Ae)}},{key:"_setActiveInWrapMode",value:function(Ae){for(var Le=this._getItemsArray(),ze=1;ze<=Le.length;ze++){var Nt=(this._activeItemIndex+Ae*ze+Le.length)%Le.length;if(!this._skipPredicateFn(Le[Nt]))return void this.setActiveItem(Nt)}}},{key:"_setActiveInDefaultMode",value:function(Ae){this._setActiveItemByIndex(this._activeItemIndex+Ae,Ae)}},{key:"_setActiveItemByIndex",value:function(Ae,Le){var ze=this._getItemsArray();if(ze[Ae]){for(;this._skipPredicateFn(ze[Ae]);)if(!ze[Ae+=Le])return;this.setActiveItem(Ae)}}},{key:"_getItemsArray",value:function(){return this._items instanceof N.n_E?this._items.toArray():this._items}}]),Ce}(),Se=function(Ce){(0,Z.Z)(Ae,Ce);var Fe=(0,w.Z)(Ae);function Ae(){return(0,R.Z)(this,Ae),Fe.apply(this,arguments)}return(0,C.Z)(Ae,[{key:"setActiveItem",value:function(ze){this.activeItem&&this.activeItem.setInactiveStyles(),(0,B.Z)((0,V.Z)(Ae.prototype),"setActiveItem",this).call(this,ze),this.activeItem&&this.activeItem.setActiveStyles()}}]),Ae}(Rt),Oe=function(Ce){(0,Z.Z)(Ae,Ce);var Fe=(0,w.Z)(Ae);function Ae(){var Le;return(0,R.Z)(this,Ae),(Le=Fe.apply(this,arguments))._origin="program",Le}return(0,C.Z)(Ae,[{key:"setFocusOrigin",value:function(ze){return this._origin=ze,this}},{key:"setActiveItem",value:function(ze){(0,B.Z)((0,V.Z)(Ae.prototype),"setActiveItem",this).call(this,ze),this.activeItem&&this.activeItem.focus(this._origin)}}]),Ae}(Rt),ct=function(){var Ce=function(){function Fe(Ae){(0,R.Z)(this,Fe),this._platform=Ae}return(0,C.Z)(Fe,[{key:"isDisabled",value:function(Le){return Le.hasAttribute("disabled")}},{key:"isVisible",value:function(Le){return function(Ce){return!!(Ce.offsetWidth||Ce.offsetHeight||"function"==typeof Ce.getClientRects&&Ce.getClientRects().length)}(Le)&&"visible"===getComputedStyle(Le).visibility}},{key:"isTabbable",value:function(Le){if(!this._platform.isBrowser)return!1;var ze=function(Ce){try{return Ce.frameElement}catch(Fe){return null}}(function(Ce){return Ce.ownerDocument&&Ce.ownerDocument.defaultView||window}(Le));if(ze&&(-1===bt(ze)||!this.isVisible(ze)))return!1;var Nt=Le.nodeName.toLowerCase(),mn=bt(Le);return Le.hasAttribute("contenteditable")?-1!==mn:!("iframe"===Nt||"object"===Nt||this._platform.WEBKIT&&this._platform.IOS&&!function(Ce){var Fe=Ce.nodeName.toLowerCase(),Ae="input"===Fe&&Ce.type;return"text"===Ae||"password"===Ae||"select"===Fe||"textarea"===Fe}(Le))&&("audio"===Nt?!!Le.hasAttribute("controls")&&-1!==mn:"video"===Nt?-1!==mn&&(null!==mn||this._platform.FIREFOX||Le.hasAttribute("controls")):Le.tabIndex>=0)}},{key:"isFocusable",value:function(Le,ze){return function(Ce){return!function(Ce){return function(Ce){return"input"==Ce.nodeName.toLowerCase()}(Ce)&&"hidden"==Ce.type}(Ce)&&(function(Ce){var Fe=Ce.nodeName.toLowerCase();return"input"===Fe||"select"===Fe||"button"===Fe||"textarea"===Fe}(Ce)||function(Ce){return function(Ce){return"a"==Ce.nodeName.toLowerCase()}(Ce)&&Ce.hasAttribute("href")}(Ce)||Ce.hasAttribute("contenteditable")||jt(Ce))}(Le)&&!this.isDisabled(Le)&&((null==ze?void 0:ze.ignoreVisibility)||this.isVisible(Le))}}]),Fe}();return Ce.\u0275fac=function(Ae){return new(Ae||Ce)(N.LFG(z.t4))},Ce.\u0275prov=N.Yz7({factory:function(){return new Ce(N.LFG(z.t4))},token:Ce,providedIn:"root"}),Ce}();function jt(Ce){if(!Ce.hasAttribute("tabindex")||void 0===Ce.tabIndex)return!1;var Fe=Ce.getAttribute("tabindex");return"-32768"!=Fe&&!(!Fe||isNaN(parseInt(Fe,10)))}function bt(Ce){if(!jt(Ce))return null;var Fe=parseInt(Ce.getAttribute("tabindex")||"",10);return isNaN(Fe)?-1:Fe}var An=function(){function Ce(Fe,Ae,Le,ze){var Nt=this,mn=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,R.Z)(this,Ce),this._element=Fe,this._checker=Ae,this._ngZone=Le,this._document=ze,this._hasAttached=!1,this.startAnchorListener=function(){return Nt.focusLastTabbableElement()},this.endAnchorListener=function(){return Nt.focusFirstTabbableElement()},this._enabled=!0,mn||this.attachAnchors()}return(0,C.Z)(Ce,[{key:"enabled",get:function(){return this._enabled},set:function(Ae){this._enabled=Ae,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ae,this._startAnchor),this._toggleAnchorTabIndex(Ae,this._endAnchor))}},{key:"destroy",value:function(){var Ae=this._startAnchor,Le=this._endAnchor;Ae&&(Ae.removeEventListener("focus",this.startAnchorListener),Ae.parentNode&&Ae.parentNode.removeChild(Ae)),Le&&(Le.removeEventListener("focus",this.endAnchorListener),Le.parentNode&&Le.parentNode.removeChild(Le)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var Ae=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){Ae._startAnchor||(Ae._startAnchor=Ae._createAnchor(),Ae._startAnchor.addEventListener("focus",Ae.startAnchorListener)),Ae._endAnchor||(Ae._endAnchor=Ae._createAnchor(),Ae._endAnchor.addEventListener("focus",Ae.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(Ae){var Le=this;return new Promise(function(ze){Le._executeOnStable(function(){return ze(Le.focusInitialElement(Ae))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(Ae){var Le=this;return new Promise(function(ze){Le._executeOnStable(function(){return ze(Le.focusFirstTabbableElement(Ae))})})}},{key:"focusLastTabbableElementWhenReady",value:function(Ae){var Le=this;return new Promise(function(ze){Le._executeOnStable(function(){return ze(Le.focusLastTabbableElement(Ae))})})}},{key:"_getRegionBoundary",value:function(Ae){for(var Le=this._element.querySelectorAll("[cdk-focus-region-".concat(Ae,"], ")+"[cdkFocusRegion".concat(Ae,"], ")+"[cdk-focus-".concat(Ae,"]")),ze=0;ze=0;ze--){var Nt=Le[ze].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Le[ze]):null;if(Nt)return Nt}return null}},{key:"_createAnchor",value:function(){var Ae=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ae),Ae.classList.add("cdk-visually-hidden"),Ae.classList.add("cdk-focus-trap-anchor"),Ae.setAttribute("aria-hidden","true"),Ae}},{key:"_toggleAnchorTabIndex",value:function(Ae,Le){Ae?Le.setAttribute("tabindex","0"):Le.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(Ae){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ae,this._startAnchor),this._toggleAnchorTabIndex(Ae,this._endAnchor))}},{key:"_executeOnStable",value:function(Ae){this._ngZone.isStable?Ae():this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(Ae)}}]),Ce}(),Hn=function(){var Ce=function(){function Fe(Ae,Le,ze){(0,R.Z)(this,Fe),this._checker=Ae,this._ngZone=Le,this._document=ze}return(0,C.Z)(Fe,[{key:"create",value:function(Le){var ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new An(Le,this._checker,this._ngZone,this._document,ze)}}]),Fe}();return Ce.\u0275fac=function(Ae){return new(Ae||Ce)(N.LFG(ct),N.LFG(N.R0b),N.LFG(_.K0))},Ce.\u0275prov=N.Yz7({factory:function(){return new Ce(N.LFG(ct),N.LFG(N.R0b),N.LFG(_.K0))},token:Ce,providedIn:"root"}),Ce}();function he(Ce){return 0===Ce.offsetX&&0===Ce.offsetY}function Ge(Ce){var Fe=Ce.touches&&Ce.touches[0]||Ce.changedTouches&&Ce.changedTouches[0];return!(!Fe||-1!==Fe.identifier||null!=Fe.radiusX&&1!==Fe.radiusX||null!=Fe.radiusY&&1!==Fe.radiusY)}"undefined"!=typeof Element&∈var Ye=new N.OlP("cdk-input-modality-detector-options"),yt={ignoreKeys:[g.zL,g.jx,g.b2,g.MW,g.JU]},Yt=(0,z.i$)({passive:!0,capture:!0}),rn=function(){var Ce=function(){function Fe(Ae,Le,ze,Nt){var mn=this;(0,R.Z)(this,Fe),this._platform=Ae,this._mostRecentTarget=null,this._modality=new P.X(null),this._lastTouchMs=0,this._onKeydown=function(Xn){var Jr,ai;(null===(ai=null===(Jr=mn._options)||void 0===Jr?void 0:Jr.ignoreKeys)||void 0===ai?void 0:ai.some(function(Ir){return Ir===Xn.keyCode}))||(mn._modality.next("keyboard"),mn._mostRecentTarget=(0,z.sA)(Xn))},this._onMousedown=function(Xn){Date.now()-mn._lastTouchMs<650||(mn._modality.next(he(Xn)?"keyboard":"mouse"),mn._mostRecentTarget=(0,z.sA)(Xn))},this._onTouchstart=function(Xn){Ge(Xn)?mn._modality.next("keyboard"):(mn._lastTouchMs=Date.now(),mn._modality.next("touch"),mn._mostRecentTarget=(0,z.sA)(Xn))},this._options=Object.assign(Object.assign({},yt),Nt),this.modalityDetected=this._modality.pipe((0,A.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,L.x)()),Ae.isBrowser&&Le.runOutsideAngular(function(){ze.addEventListener("keydown",mn._onKeydown,Yt),ze.addEventListener("mousedown",mn._onMousedown,Yt),ze.addEventListener("touchstart",mn._onTouchstart,Yt)})}return(0,C.Z)(Fe,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,Yt),document.removeEventListener("mousedown",this._onMousedown,Yt),document.removeEventListener("touchstart",this._onTouchstart,Yt))}}]),Fe}();return Ce.\u0275fac=function(Ae){return new(Ae||Ce)(N.LFG(z.t4),N.LFG(N.R0b),N.LFG(_.K0),N.LFG(Ye,8))},Ce.\u0275prov=N.Yz7({factory:function(){return new Ce(N.LFG(z.t4),N.LFG(N.R0b),N.LFG(_.K0),N.LFG(Ye,8))},token:Ce,providedIn:"root"}),Ce}(),cn=new N.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),xn=new N.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Nn=function(){var Ce=function(){function Fe(Ae,Le,ze,Nt){(0,R.Z)(this,Fe),this._ngZone=Le,this._defaultOptions=Nt,this._document=ze,this._liveElement=Ae||this._createLiveElement()}return(0,C.Z)(Fe,[{key:"announce",value:function(Le){for(var mn,Xn,ze=this,Nt=this._defaultOptions,Jr=arguments.length,ai=new Array(Jr>1?Jr-1:0),Ir=1;Ir1&&void 0!==arguments[1]&&arguments[1],Nt=(0,K.fI)(Le);if(!this._platform.isBrowser||1!==Nt.nodeType)return(0,y.of)(null);var mn=(0,z.kV)(Nt)||this._getDocument(),Xn=this._elementInfo.get(Nt);if(Xn)return ze&&(Xn.checkChildren=!0),Xn.subject;var Jr={checkChildren:ze,subject:new D.xQ,rootNode:mn};return this._elementInfo.set(Nt,Jr),this._registerGlobalListeners(Jr),Jr.subject}},{key:"stopMonitoring",value:function(Le){var ze=(0,K.fI)(Le),Nt=this._elementInfo.get(ze);Nt&&(Nt.subject.complete(),this._setClasses(ze),this._elementInfo.delete(ze),this._removeGlobalListeners(Nt))}},{key:"focusVia",value:function(Le,ze,Nt){var mn=this,Xn=(0,K.fI)(Le);Xn===this._getDocument().activeElement?this._getClosestElementsInfo(Xn).forEach(function(ai){var Ir=(0,U.Z)(ai,2);return mn._originChanged(Ir[0],ze,Ir[1])}):(this._setOrigin(ze),"function"==typeof Xn.focus&&Xn.focus(Nt))}},{key:"ngOnDestroy",value:function(){var Le=this;this._elementInfo.forEach(function(ze,Nt){return Le.stopMonitoring(Nt)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(Le,ze,Nt){Nt?Le.classList.add(ze):Le.classList.remove(ze)}},{key:"_getFocusOrigin",value:function(Le){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Le)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(Le){return 1===this._detectionMode||!!(null==Le?void 0:Le.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(Le,ze){this._toggleClass(Le,"cdk-focused",!!ze),this._toggleClass(Le,"cdk-touch-focused","touch"===ze),this._toggleClass(Le,"cdk-keyboard-focused","keyboard"===ze),this._toggleClass(Le,"cdk-mouse-focused","mouse"===ze),this._toggleClass(Le,"cdk-program-focused","program"===ze)}},{key:"_setOrigin",value:function(Le){var ze=this,Nt=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){ze._origin=Le,ze._originFromTouchInteraction="touch"===Le&&Nt,0===ze._detectionMode&&(clearTimeout(ze._originTimeoutId),ze._originTimeoutId=setTimeout(function(){return ze._origin=null},ze._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(Le,ze){var Nt=this._elementInfo.get(ze),mn=(0,z.sA)(Le);!Nt||!Nt.checkChildren&&ze!==mn||this._originChanged(ze,this._getFocusOrigin(mn),Nt)}},{key:"_onBlur",value:function(Le,ze){var Nt=this._elementInfo.get(ze);!Nt||Nt.checkChildren&&Le.relatedTarget instanceof Node&&ze.contains(Le.relatedTarget)||(this._setClasses(ze),this._emitOrigin(Nt.subject,null))}},{key:"_emitOrigin",value:function(Le,ze){this._ngZone.run(function(){return Le.next(ze)})}},{key:"_registerGlobalListeners",value:function(Le){var ze=this;if(this._platform.isBrowser){var Nt=Le.rootNode,mn=this._rootNodeFocusListenerCount.get(Nt)||0;mn||this._ngZone.runOutsideAngular(function(){Nt.addEventListener("focus",ze._rootNodeFocusAndBlurListener,Sn),Nt.addEventListener("blur",ze._rootNodeFocusAndBlurListener,Sn)}),this._rootNodeFocusListenerCount.set(Nt,mn+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){ze._getWindow().addEventListener("focus",ze._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,j.R)(this._stopInputModalityDetector)).subscribe(function(Xn){ze._setOrigin(Xn,!0)}))}}},{key:"_removeGlobalListeners",value:function(Le){var ze=Le.rootNode;if(this._rootNodeFocusListenerCount.has(ze)){var Nt=this._rootNodeFocusListenerCount.get(ze);Nt>1?this._rootNodeFocusListenerCount.set(ze,Nt-1):(ze.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Sn),ze.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Sn),this._rootNodeFocusListenerCount.delete(ze))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(Le,ze,Nt){this._setClasses(Le,ze),this._emitOrigin(Nt.subject,ze),this._lastFocusOrigin=ze}},{key:"_getClosestElementsInfo",value:function(Le){var ze=[];return this._elementInfo.forEach(function(Nt,mn){(mn===Le||Nt.checkChildren&&mn.contains(Le))&&ze.push([mn,Nt])}),ze}}]),Fe}();return Ce.\u0275fac=function(Ae){return new(Ae||Ce)(N.LFG(N.R0b),N.LFG(z.t4),N.LFG(rn),N.LFG(_.K0,8),N.LFG(wn,8))},Ce.\u0275prov=N.Yz7({factory:function(){return new Ce(N.LFG(N.R0b),N.LFG(z.t4),N.LFG(rn),N.LFG(_.K0,8),N.LFG(wn,8))},token:Ce,providedIn:"root"}),Ce}(),Vt=function(){var Ce=function(){function Fe(Ae,Le){(0,R.Z)(this,Fe),this._elementRef=Ae,this._focusMonitor=Le,this.cdkFocusChange=new N.vpe}return(0,C.Z)(Fe,[{key:"ngAfterViewInit",value:function(){var Le=this,ze=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ze,1===ze.nodeType&&ze.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(Nt){return Le.cdkFocusChange.emit(Nt)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),Fe}();return Ce.\u0275fac=function(Ae){return new(Ae||Ce)(N.Y36(N.SBq),N.Y36(ir))},Ce.\u0275dir=N.lG2({type:Ce,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Ce}(),sn="cdk-high-contrast-black-on-white",pt="cdk-high-contrast-white-on-black",dt="cdk-high-contrast-active",Ue=function(){var Ce=function(){function Fe(Ae,Le){(0,R.Z)(this,Fe),this._platform=Ae,this._document=Le}return(0,C.Z)(Fe,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var Le=this._document.createElement("div");Le.style.backgroundColor="rgb(1,2,3)",Le.style.position="absolute",this._document.body.appendChild(Le);var ze=this._document.defaultView||window,Nt=ze&&ze.getComputedStyle?ze.getComputedStyle(Le):null,mn=(Nt&&Nt.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(Le),mn){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 Le=this._document.body.classList;Le.remove(dt),Le.remove(sn),Le.remove(pt),this._hasCheckedHighContrastMode=!0;var ze=this.getHighContrastMode();1===ze?(Le.add(dt),Le.add(sn)):2===ze&&(Le.add(dt),Le.add(pt))}}}]),Fe}();return Ce.\u0275fac=function(Ae){return new(Ae||Ce)(N.LFG(z.t4),N.LFG(_.K0))},Ce.\u0275prov=N.Yz7({factory:function(){return new Ce(N.LFG(z.t4),N.LFG(_.K0))},token:Ce,providedIn:"root"}),Ce}(),at=function(){var Ce=function Fe(Ae){(0,R.Z)(this,Fe),Ae._applyBodyHighContrastModeCssClasses()};return Ce.\u0275fac=function(Ae){return new(Ae||Ce)(N.LFG(Ue))},Ce.\u0275mod=N.oAB({type:Ce}),Ce.\u0275inj=N.cJS({imports:[[z.ud,Q.Q8]]}),Ce}()},8392:function(le,q,f){"use strict";f.d(q,{vT:function(){return N},Is:function(){return C}});var U=f(18967),B=f(14105),V=f(65508),Z=f(40098),w=new V.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,V.f3M)(Z.K0)}}),C=function(){var D=function(){function O(P){if((0,U.Z)(this,O),this.value="ltr",this.change=new V.vpe,P){var T=(P.body?P.body.dir:null)||(P.documentElement?P.documentElement.dir:null);this.value="ltr"===T||"rtl"===T?T:"ltr"}}return(0,B.Z)(O,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),O}();return D.\u0275fac=function(P){return new(P||D)(V.LFG(w,8))},D.\u0275prov=V.Yz7({factory:function(){return new D(V.LFG(w,8))},token:D,providedIn:"root"}),D}(),N=function(){var D=function O(){(0,U.Z)(this,O)};return D.\u0275fac=function(P){return new(P||D)},D.\u0275mod=V.oAB({type:D}),D.\u0275inj=V.cJS({}),D}()},37429:function(le,q,f){"use strict";f.d(q,{P3:function(){return P},o2:function(){return D},Ov:function(){return T},A8:function(){return E},yy:function(){return y},eX:function(){return g},k:function(){return x},Z9:function(){return O}});var U=f(36683),B=f(14105),V=f(10509),Z=f(97154),w=f(18967),R=f(17504),C=f(43161),_=f(68707),N=f(65508),D=function S(){(0,w.Z)(this,S)};function O(S){return S&&"function"==typeof S.connect}var P=function(S){(0,V.Z)(L,S);var A=(0,Z.Z)(L);function L(j){var K;return(0,w.Z)(this,L),(K=A.call(this))._data=j,K}return(0,B.Z)(L,[{key:"connect",value:function(){return(0,R.b)(this._data)?this._data:(0,C.of)(this._data)}},{key:"disconnect",value:function(){}}]),L}(D),y=function(){function S(){(0,w.Z)(this,S)}return(0,B.Z)(S,[{key:"applyChanges",value:function(L,j,K,z,Q){L.forEachOperation(function(ae,ie,se){var ue,de;if(null==ae.previousIndex){var oe=K(ae,ie,se);ue=j.createEmbeddedView(oe.templateRef,oe.context,oe.index),de=1}else null==se?(j.remove(ie),de=3):(ue=j.get(ie),j.move(ue,se),de=2);Q&&Q({context:null==ue?void 0:ue.context,operation:de,record:ae})})}},{key:"detach",value:function(){}}]),S}(),g=function(){function S(){(0,w.Z)(this,S),this.viewCacheSize=20,this._viewCache=[]}return(0,B.Z)(S,[{key:"applyChanges",value:function(L,j,K,z,Q){var ae=this;L.forEachOperation(function(ie,se,ue){var de,oe;null==ie.previousIndex?oe=(de=ae._insertView(function(){return K(ie,se,ue)},ue,j,z(ie)))?1:0:null==ue?(ae._detachAndCacheView(se,j),oe=3):(de=ae._moveView(se,ue,j,z(ie)),oe=2),Q&&Q({context:null==de?void 0:de.context,operation:oe,record:ie})})}},{key:"detach",value:function(){var j,L=(0,U.Z)(this._viewCache);try{for(L.s();!(j=L.n()).done;)j.value.destroy()}catch(z){L.e(z)}finally{L.f()}this._viewCache=[]}},{key:"_insertView",value:function(L,j,K,z){var Q=this._insertViewFromCache(j,K);if(!Q){var ae=L();return K.createEmbeddedView(ae.templateRef,ae.context,ae.index)}Q.context.$implicit=z}},{key:"_detachAndCacheView",value:function(L,j){var K=j.detach(L);this._maybeCacheView(K,j)}},{key:"_moveView",value:function(L,j,K,z){var Q=K.get(L);return K.move(Q,j),Q.context.$implicit=z,Q}},{key:"_maybeCacheView",value:function(L,j){if(this._viewCache.length0&&void 0!==arguments[0]&&arguments[0],j=arguments.length>1?arguments[1]:void 0,K=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,w.Z)(this,S),this._multiple=L,this._emitChanges=K,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new _.xQ,j&&j.length&&(L?j.forEach(function(z){return A._markSelected(z)}):this._markSelected(j[0]),this._selectedToEmit.length=0)}return(0,B.Z)(S,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var L=this,j=arguments.length,K=new Array(j),z=0;z1?Qn-1:0),Gn=1;GnGe.height||he.scrollWidth>Ge.width}}]),ot}(),ae=function(){function ot(_e,re,he,Ge){var Ye=this;(0,C.Z)(this,ot),this._scrollDispatcher=_e,this._ngZone=re,this._viewportRuler=he,this._config=Ge,this._scrollSubscription=null,this._detach=function(){Ye.disable(),Ye._overlayRef.hasAttached()&&Ye._ngZone.run(function(){return Ye._overlayRef.detach()})}}return(0,_.Z)(ot,[{key:"attach",value:function(re){this._overlayRef=re}},{key:"enable",value:function(){var re=this;if(!this._scrollSubscription){var he=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=he.subscribe(function(){var Ge=re._viewportRuler.getViewportScrollPosition().top;Math.abs(Ge-re._initialScrollPosition)>re._config.threshold?re._detach():re._overlayRef.updatePosition()})):this._scrollSubscription=he.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),ot}(),ie=function(){function ot(){(0,C.Z)(this,ot)}return(0,_.Z)(ot,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),ot}();function se(ot,_e){return _e.some(function(re){return ot.bottomre.bottom||ot.rightre.right})}function ue(ot,_e){return _e.some(function(re){return ot.topre.bottom||ot.leftre.right})}var de=function(){function ot(_e,re,he,Ge){(0,C.Z)(this,ot),this._scrollDispatcher=_e,this._viewportRuler=re,this._ngZone=he,this._config=Ge,this._scrollSubscription=null}return(0,_.Z)(ot,[{key:"attach",value:function(re){this._overlayRef=re}},{key:"enable",value:function(){var re=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(re._overlayRef.updatePosition(),re._config&&re._config.autoClose){var Ge=re._overlayRef.overlayElement.getBoundingClientRect(),Ye=re._viewportRuler.getViewportSize(),yt=Ye.width,Lt=Ye.height;se(Ge,[{width:yt,height:Lt,bottom:Lt,right:yt,top:0,left:0}])&&(re.disable(),re._ngZone.run(function(){return re._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),ot}(),oe=function(){var ot=function _e(re,he,Ge,Ye){var yt=this;(0,C.Z)(this,_e),this._scrollDispatcher=re,this._viewportRuler=he,this._ngZone=Ge,this.noop=function(){return new ie},this.close=function(Lt){return new ae(yt._scrollDispatcher,yt._ngZone,yt._viewportRuler,Lt)},this.block=function(){return new z(yt._viewportRuler,yt._document)},this.reposition=function(Lt){return new de(yt._scrollDispatcher,yt._viewportRuler,yt._ngZone,Lt)},this._document=Ye};return ot.\u0275fac=function(re){return new(re||ot)(D.LFG(N.mF),D.LFG(N.rL),D.LFG(D.R0b),D.LFG(y.K0))},ot.\u0275prov=D.Yz7({factory:function(){return new ot(D.LFG(N.mF),D.LFG(N.rL),D.LFG(D.R0b),D.LFG(y.K0))},token:ot,providedIn:"root"}),ot}(),$=function ot(_e){if((0,C.Z)(this,ot),this.scrollStrategy=new ie,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,_e)for(var he=0,Ge=Object.keys(_e);he-1&&this._attachedOverlays.splice(Ge,1),0===this._attachedOverlays.length&&this.detach()}}]),_e}();return ot.\u0275fac=function(re){return new(re||ot)(D.LFG(y.K0))},ot.\u0275prov=D.Yz7({factory:function(){return new ot(D.LFG(y.K0))},token:ot,providedIn:"root"}),ot}(),Rt=function(){var ot=function(_e){(0,w.Z)(he,_e);var re=(0,R.Z)(he);function he(Ge){var Ye;return(0,C.Z)(this,he),(Ye=re.call(this,Ge))._keydownListener=function(yt){for(var Lt=Ye._attachedOverlays,Yt=Lt.length-1;Yt>-1;Yt--)if(Lt[Yt]._keydownEvents.observers.length>0){Lt[Yt]._keydownEvents.next(yt);break}},Ye}return(0,_.Z)(he,[{key:"add",value:function(Ye){(0,V.Z)((0,Z.Z)(he.prototype),"add",this).call(this,Ye),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)}}]),he}(_t);return ot.\u0275fac=function(re){return new(re||ot)(D.LFG(y.K0))},ot.\u0275prov=D.Yz7({factory:function(){return new ot(D.LFG(y.K0))},token:ot,providedIn:"root"}),ot}(),Se=function(){var ot=function(_e){(0,w.Z)(he,_e);var re=(0,R.Z)(he);function he(Ge,Ye){var yt;return(0,C.Z)(this,he),(yt=re.call(this,Ge))._platform=Ye,yt._cursorStyleIsSet=!1,yt._clickListener=function(Lt){for(var Yt=(0,O.sA)(Lt),rn=yt._attachedOverlays.slice(),cn=rn.length-1;cn>-1;cn--){var _n=rn[cn];if(!(_n._outsidePointerEvents.observers.length<1)&&_n.hasAttached()){if(_n.overlayElement.contains(Yt))break;_n._outsidePointerEvents.next(Lt)}}},yt}return(0,_.Z)(he,[{key:"add",value:function(Ye){if((0,V.Z)((0,Z.Z)(he.prototype),"add",this).call(this,Ye),!this._isAttached){var yt=this._document.body;yt.addEventListener("click",this._clickListener,!0),yt.addEventListener("auxclick",this._clickListener,!0),yt.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=yt.style.cursor,yt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var Ye=this._document.body;Ye.removeEventListener("click",this._clickListener,!0),Ye.removeEventListener("auxclick",this._clickListener,!0),Ye.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Ye.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),he}(_t);return ot.\u0275fac=function(re){return new(re||ot)(D.LFG(y.K0),D.LFG(O.t4))},ot.\u0275prov=D.Yz7({factory:function(){return new ot(D.LFG(y.K0),D.LFG(O.t4))},token:ot,providedIn:"root"}),ot}(),Oe="undefined"!=typeof window?window:{},je=void 0!==Oe.__karma__&&!!Oe.__karma__||void 0!==Oe.jasmine&&!!Oe.jasmine||void 0!==Oe.jest&&!!Oe.jest||void 0!==Oe.Mocha&&!!Oe.Mocha,ct=function(){var ot=function(){function _e(re,he){(0,C.Z)(this,_e),this._platform=he,this._document=re}return(0,_.Z)(_e,[{key:"ngOnDestroy",value:function(){var he=this._containerElement;he&&he.parentNode&&he.parentNode.removeChild(he)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var he="cdk-overlay-container";if(this._platform.isBrowser||je)for(var Ge=this._document.querySelectorAll(".".concat(he,'[platform="server"], ')+".".concat(he,'[platform="test"]')),Ye=0;Yeer&&(er=Vt,Nn=ir)}}catch(sn){wn.e(sn)}finally{wn.f()}return this._isPushed=!1,void this._applyPosition(Nn.position,Nn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(yt.position,yt.originPoint);this._applyPosition(yt.position,yt.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Xt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ht),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 re=this._lastPosition||this._preferredPositions[0],he=this._getOriginPoint(this._originRect,re);this._applyPosition(re,he)}}},{key:"withScrollableContainers",value:function(re){return this._scrollables=re,this}},{key:"withPositions",value:function(re){return this._preferredPositions=re,-1===re.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(re){return this._viewportMargin=re,this}},{key:"withFlexibleDimensions",value:function(){var re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=re,this}},{key:"withGrowAfterOpen",value:function(){var re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=re,this}},{key:"withPush",value:function(){var re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=re,this}},{key:"withLockedPosition",value:function(){var re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=re,this}},{key:"setOrigin",value:function(re){return this._origin=re,this}},{key:"withDefaultOffsetX",value:function(re){return this._offsetX=re,this}},{key:"withDefaultOffsetY",value:function(re){return this._offsetY=re,this}},{key:"withTransformOriginOn",value:function(re){return this._transformOriginSelector=re,this}},{key:"_getOriginPoint",value:function(re,he){var Ge;if("center"==he.originX)Ge=re.left+re.width/2;else{var Ye=this._isRtl()?re.right:re.left,yt=this._isRtl()?re.left:re.right;Ge="start"==he.originX?Ye:yt}return{x:Ge,y:"center"==he.originY?re.top+re.height/2:"top"==he.originY?re.top:re.bottom}}},{key:"_getOverlayPoint",value:function(re,he,Ge){var Ye;return Ye="center"==Ge.overlayX?-he.width/2:"start"===Ge.overlayX?this._isRtl()?-he.width:0:this._isRtl()?0:-he.width,{x:re.x+Ye,y:re.y+("center"==Ge.overlayY?-he.height/2:"top"==Ge.overlayY?0:-he.height)}}},{key:"_getOverlayFit",value:function(re,he,Ge,Ye){var yt=Ct(he),Lt=re.x,Yt=re.y,rn=this._getOffset(Ye,"x"),cn=this._getOffset(Ye,"y");rn&&(Lt+=rn),cn&&(Yt+=cn);var Nn=0-Yt,er=Yt+yt.height-Ge.height,wn=this._subtractOverflows(yt.width,0-Lt,Lt+yt.width-Ge.width),Sn=this._subtractOverflows(yt.height,Nn,er),ir=wn*Sn;return{visibleArea:ir,isCompletelyWithinViewport:yt.width*yt.height===ir,fitsInViewportVertically:Sn===yt.height,fitsInViewportHorizontally:wn==yt.width}}},{key:"_canFitWithFlexibleDimensions",value:function(re,he,Ge){if(this._hasFlexibleDimensions){var Ye=Ge.bottom-he.y,yt=Ge.right-he.x,Lt=qt(this._overlayRef.getConfig().minHeight),Yt=qt(this._overlayRef.getConfig().minWidth);return(re.fitsInViewportVertically||null!=Lt&&Lt<=Ye)&&(re.fitsInViewportHorizontally||null!=Yt&&Yt<=yt)}return!1}},{key:"_pushOverlayOnScreen",value:function(re,he,Ge){if(this._previousPushAmount&&this._positionLocked)return{x:re.x+this._previousPushAmount.x,y:re.y+this._previousPushAmount.y};var _n,xn,Ye=Ct(he),yt=this._viewportRect,Lt=Math.max(re.x+Ye.width-yt.width,0),Yt=Math.max(re.y+Ye.height-yt.height,0),rn=Math.max(yt.top-Ge.top-re.y,0),cn=Math.max(yt.left-Ge.left-re.x,0);return this._previousPushAmount={x:_n=Ye.width<=yt.width?cn||-Lt:re.xcn&&!this._isInitialRender&&!this._growAfterOpen&&(Lt=re.y-cn/2)}if("end"===he.overlayX&&!Ye||"start"===he.overlayX&&Ye)wn=Ge.width-re.x+this._viewportMargin,Nn=re.x-this._viewportMargin;else if("start"===he.overlayX&&!Ye||"end"===he.overlayX&&Ye)er=re.x,Nn=Ge.right-re.x;else{var Sn=Math.min(Ge.right-re.x+Ge.left,re.x),ir=this._lastBoundingBoxSize.width;er=re.x-Sn,(Nn=2*Sn)>ir&&!this._isInitialRender&&!this._growAfterOpen&&(er=re.x-ir/2)}return{top:Lt,left:er,bottom:Yt,right:wn,width:Nn,height:yt}}},{key:"_setBoundingBoxStyles",value:function(re,he){var Ge=this._calculateBoundingBoxRect(re,he);!this._isInitialRender&&!this._growAfterOpen&&(Ge.height=Math.min(Ge.height,this._lastBoundingBoxSize.height),Ge.width=Math.min(Ge.width,this._lastBoundingBoxSize.width));var Ye={};if(this._hasExactPosition())Ye.top=Ye.left="0",Ye.bottom=Ye.right=Ye.maxHeight=Ye.maxWidth="",Ye.width=Ye.height="100%";else{var yt=this._overlayRef.getConfig().maxHeight,Lt=this._overlayRef.getConfig().maxWidth;Ye.height=(0,g.HM)(Ge.height),Ye.top=(0,g.HM)(Ge.top),Ye.bottom=(0,g.HM)(Ge.bottom),Ye.width=(0,g.HM)(Ge.width),Ye.left=(0,g.HM)(Ge.left),Ye.right=(0,g.HM)(Ge.right),Ye.alignItems="center"===he.overlayX?"center":"end"===he.overlayX?"flex-end":"flex-start",Ye.justifyContent="center"===he.overlayY?"center":"bottom"===he.overlayY?"flex-end":"flex-start",yt&&(Ye.maxHeight=(0,g.HM)(yt)),Lt&&(Ye.maxWidth=(0,g.HM)(Lt))}this._lastBoundingBoxSize=Ge,Xt(this._boundingBox.style,Ye)}},{key:"_resetBoundingBoxStyles",value:function(){Xt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Xt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(re,he){var Ge={},Ye=this._hasExactPosition(),yt=this._hasFlexibleDimensions,Lt=this._overlayRef.getConfig();if(Ye){var Yt=this._viewportRuler.getViewportScrollPosition();Xt(Ge,this._getExactOverlayY(he,re,Yt)),Xt(Ge,this._getExactOverlayX(he,re,Yt))}else Ge.position="static";var rn="",cn=this._getOffset(he,"x"),_n=this._getOffset(he,"y");cn&&(rn+="translateX(".concat(cn,"px) ")),_n&&(rn+="translateY(".concat(_n,"px)")),Ge.transform=rn.trim(),Lt.maxHeight&&(Ye?Ge.maxHeight=(0,g.HM)(Lt.maxHeight):yt&&(Ge.maxHeight="")),Lt.maxWidth&&(Ye?Ge.maxWidth=(0,g.HM)(Lt.maxWidth):yt&&(Ge.maxWidth="")),Xt(this._pane.style,Ge)}},{key:"_getExactOverlayY",value:function(re,he,Ge){var Ye={top:"",bottom:""},yt=this._getOverlayPoint(he,this._overlayRect,re);this._isPushed&&(yt=this._pushOverlayOnScreen(yt,this._overlayRect,Ge));var Lt=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return yt.y-=Lt,"bottom"===re.overlayY?Ye.bottom="".concat(this._document.documentElement.clientHeight-(yt.y+this._overlayRect.height),"px"):Ye.top=(0,g.HM)(yt.y),Ye}},{key:"_getExactOverlayX",value:function(re,he,Ge){var Ye={left:"",right:""},yt=this._getOverlayPoint(he,this._overlayRect,re);return this._isPushed&&(yt=this._pushOverlayOnScreen(yt,this._overlayRect,Ge)),"right"==(this._isRtl()?"end"===re.overlayX?"left":"right":"end"===re.overlayX?"right":"left")?Ye.right="".concat(this._document.documentElement.clientWidth-(yt.x+this._overlayRect.width),"px"):Ye.left=(0,g.HM)(yt.x),Ye}},{key:"_getScrollVisibility",value:function(){var re=this._getOriginRect(),he=this._pane.getBoundingClientRect(),Ge=this._scrollables.map(function(Ye){return Ye.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:ue(re,Ge),isOriginOutsideView:se(re,Ge),isOverlayClipped:ue(he,Ge),isOverlayOutsideView:se(he,Ge)}}},{key:"_subtractOverflows",value:function(re){for(var he=arguments.length,Ge=new Array(he>1?he-1:0),Ye=1;Ye0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=re,this._alignItems="flex-start",this}},{key:"left",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=re,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=re,this._alignItems="flex-end",this}},{key:"right",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=re,this._justifyContent="flex-end",this}},{key:"width",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:re}):this._width=re,this}},{key:"height",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:re}):this._height=re,this}},{key:"centerHorizontally",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(re),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(re),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var re=this._overlayRef.overlayElement.style,he=this._overlayRef.hostElement.style,Ge=this._overlayRef.getConfig(),Ye=Ge.width,yt=Ge.height,Lt=Ge.maxWidth,Yt=Ge.maxHeight,rn=!("100%"!==Ye&&"100vw"!==Ye||Lt&&"100%"!==Lt&&"100vw"!==Lt),cn=!("100%"!==yt&&"100vh"!==yt||Yt&&"100%"!==Yt&&"100vh"!==Yt);re.position=this._cssPosition,re.marginLeft=rn?"0":this._leftOffset,re.marginTop=cn?"0":this._topOffset,re.marginBottom=this._bottomOffset,re.marginRight=this._rightOffset,rn?he.justifyContent="flex-start":"center"===this._justifyContent?he.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?he.justifyContent="flex-end":"flex-end"===this._justifyContent&&(he.justifyContent="flex-start"):he.justifyContent=this._justifyContent,he.alignItems=cn?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var re=this._overlayRef.overlayElement.style,he=this._overlayRef.hostElement,Ge=he.style;he.classList.remove(bt),Ge.justifyContent=Ge.alignItems=re.marginTop=re.marginBottom=re.marginLeft=re.marginRight=re.position="",this._overlayRef=null,this._isDisposed=!0}}}]),ot}(),Ut=function(){var ot=function(){function _e(re,he,Ge,Ye){(0,C.Z)(this,_e),this._viewportRuler=re,this._document=he,this._platform=Ge,this._overlayContainer=Ye}return(0,_.Z)(_e,[{key:"global",value:function(){return new nn}},{key:"connectedTo",value:function(he,Ge,Ye){return new jt(Ge,Ye,he,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(he){return new vt(he,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),_e}();return ot.\u0275fac=function(re){return new(re||ot)(D.LFG(N.rL),D.LFG(y.K0),D.LFG(O.t4),D.LFG(ct))},ot.\u0275prov=D.Yz7({factory:function(){return new ot(D.LFG(N.rL),D.LFG(y.K0),D.LFG(O.t4),D.LFG(ct))},token:ot,providedIn:"root"}),ot}(),an=0,An=function(){var ot=function(){function _e(re,he,Ge,Ye,yt,Lt,Yt,rn,cn,_n,xn){(0,C.Z)(this,_e),this.scrollStrategies=re,this._overlayContainer=he,this._componentFactoryResolver=Ge,this._positionBuilder=Ye,this._keyboardDispatcher=yt,this._injector=Lt,this._ngZone=Yt,this._document=rn,this._directionality=cn,this._location=_n,this._outsideClickDispatcher=xn}return(0,_.Z)(_e,[{key:"create",value:function(he){var Ge=this._createHostElement(),Ye=this._createPaneElement(Ge),yt=this._createPortalOutlet(Ye),Lt=new $(he);return Lt.direction=Lt.direction||this._directionality.value,new Xe(yt,Ge,Ye,Lt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(he){var Ge=this._document.createElement("div");return Ge.id="cdk-overlay-".concat(an++),Ge.classList.add("cdk-overlay-pane"),he.appendChild(Ge),Ge}},{key:"_createHostElement",value:function(){var he=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(he),he}},{key:"_createPortalOutlet",value:function(he){return this._appRef||(this._appRef=this._injector.get(D.z2F)),new T.u0(he,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),_e}();return ot.\u0275fac=function(re){return new(re||ot)(D.LFG(oe),D.LFG(ct),D.LFG(D._Vd),D.LFG(Ut),D.LFG(Rt),D.LFG(D.zs3),D.LFG(D.R0b),D.LFG(y.K0),D.LFG(P.Is),D.LFG(y.Ye),D.LFG(Se))},ot.\u0275prov=D.Yz7({token:ot,factory:ot.\u0275fac}),ot}(),Hn=[{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"}],Zn=new D.OlP("cdk-connected-overlay-scroll-strategy"),lr=function(){var ot=function _e(re){(0,C.Z)(this,_e),this.elementRef=re};return ot.\u0275fac=function(re){return new(re||ot)(D.Y36(D.SBq))},ot.\u0275dir=D.lG2({type:ot,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),ot}(),Bn=function(){var ot=function(){function _e(re,he,Ge,Ye,yt){(0,C.Z)(this,_e),this._overlay=re,this._dir=yt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=E.w.EMPTY,this._attachSubscription=E.w.EMPTY,this._detachSubscription=E.w.EMPTY,this._positionSubscription=E.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new D.vpe,this.positionChange=new D.vpe,this.attach=new D.vpe,this.detach=new D.vpe,this.overlayKeydown=new D.vpe,this.overlayOutsideClick=new D.vpe,this._templatePortal=new T.UE(he,Ge),this._scrollStrategyFactory=Ye,this.scrollStrategy=this._scrollStrategyFactory()}return(0,_.Z)(_e,[{key:"offsetX",get:function(){return this._offsetX},set:function(he){this._offsetX=he,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(he){this._offsetY=he,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(he){this._hasBackdrop=(0,g.Ig)(he)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(he){this._lockPosition=(0,g.Ig)(he)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(he){this._flexibleDimensions=(0,g.Ig)(he)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(he){this._growAfterOpen=(0,g.Ig)(he)}},{key:"push",get:function(){return this._push},set:function(he){this._push=(0,g.Ig)(he)}},{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(he){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),he.origin&&this.open&&this._position.apply()),he.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var he=this;(!this.positions||!this.positions.length)&&(this.positions=Hn);var Ge=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Ge.attachments().subscribe(function(){return he.attach.emit()}),this._detachSubscription=Ge.detachments().subscribe(function(){return he.detach.emit()}),Ge.keydownEvents().subscribe(function(Ye){he.overlayKeydown.next(Ye),Ye.keyCode===j.hY&&!he.disableClose&&!(0,j.Vb)(Ye)&&(Ye.preventDefault(),he._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(Ye){he.overlayOutsideClick.next(Ye)})}},{key:"_buildConfig",value:function(){var he=this._position=this.positionStrategy||this._createPositionStrategy(),Ge=new $({direction:this._dir,positionStrategy:he,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Ge.width=this.width),(this.height||0===this.height)&&(Ge.height=this.height),(this.minWidth||0===this.minWidth)&&(Ge.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Ge.minHeight=this.minHeight),this.backdropClass&&(Ge.backdropClass=this.backdropClass),this.panelClass&&(Ge.panelClass=this.panelClass),Ge}},{key:"_updatePositionStrategy",value:function(he){var Ge=this,Ye=this.positions.map(function(yt){return{originX:yt.originX,originY:yt.originY,overlayX:yt.overlayX,overlayY:yt.overlayY,offsetX:yt.offsetX||Ge.offsetX,offsetY:yt.offsetY||Ge.offsetY,panelClass:yt.panelClass||void 0}});return he.setOrigin(this.origin.elementRef).withPositions(Ye).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var he=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(he),he}},{key:"_attachOverlay",value:function(){var he=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(Ge){he.backdropClick.emit(Ge)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,L.o)(function(){return he.positionChange.observers.length>0})).subscribe(function(Ge){he.positionChange.emit(Ge),0===he.positionChange.observers.length&&he._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),_e}();return ot.\u0275fac=function(re){return new(re||ot)(D.Y36(An),D.Y36(D.Rgc),D.Y36(D.s_b),D.Y36(Zn),D.Y36(P.Is,8))},ot.\u0275dir=D.lG2({type:ot,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:[D.TTD]}),ot}(),mr={provide:Zn,deps:[An],useFactory:function(ot){return function(){return ot.scrollStrategies.reposition()}}},Kt=function(){var ot=function _e(){(0,C.Z)(this,_e)};return ot.\u0275fac=function(re){return new(re||ot)},ot.\u0275mod=D.oAB({type:ot}),ot.\u0275inj=D.cJS({providers:[An,mr],imports:[[P.vT,T.eL,N.Cl],N.Cl]}),ot}()},15427:function(le,q,f){"use strict";f.d(q,{t4:function(){return w},ud:function(){return R},sA:function(){return L},ht:function(){return A},kV:function(){return S},_i:function(){return M},qK:function(){return N},i$:function(){return P},Mq:function(){return T}});var Z,U=f(18967),B=f(65508),V=f(40098);try{Z="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(j){Z=!1}var C,D,y,g,E,w=function(){var j=function K(z){(0,U.Z)(this,K),this._platformId=z,this.isBrowser=this._platformId?(0,V.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&&!Z)&&"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 j.\u0275fac=function(z){return new(z||j)(B.LFG(B.Lbi))},j.\u0275prov=B.Yz7({factory:function(){return new j(B.LFG(B.Lbi))},token:j,providedIn:"root"}),j}(),R=function(){var j=function K(){(0,U.Z)(this,K)};return j.\u0275fac=function(z){return new(z||j)},j.\u0275mod=B.oAB({type:j}),j.\u0275inj=B.cJS({}),j}(),_=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function N(){if(C)return C;if("object"!=typeof document||!document)return C=new Set(_);var j=document.createElement("input");return C=new Set(_.filter(function(K){return j.setAttribute("type",K),j.type===K}))}function P(j){return function(){if(null==D&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return D=!0}}))}finally{D=D||!1}return D}()?j:!!j.capture}function T(){if(null==g){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return g=!1;if("scrollBehavior"in document.documentElement.style)g=!0;else{var j=Element.prototype.scrollTo;g=!!j&&!/\{\s*\[native code\]\s*\}/.test(j.toString())}}return g}function M(){if("object"!=typeof document||!document)return 0;if(null==y){var j=document.createElement("div"),K=j.style;j.dir="rtl",K.width="1px",K.overflow="auto",K.visibility="hidden",K.pointerEvents="none",K.position="absolute";var z=document.createElement("div"),Q=z.style;Q.width="2px",Q.height="1px",j.appendChild(z),document.body.appendChild(j),y=0,0===j.scrollLeft&&(j.scrollLeft=1,y=0===j.scrollLeft?1:2),j.parentNode.removeChild(j)}return y}function S(j){if(function(){if(null==E){var j="undefined"!=typeof document?document.head:null;E=!(!j||!j.createShadowRoot&&!j.attachShadow)}return E}()){var K=j.getRootNode?j.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&K instanceof ShadowRoot)return K}return null}function A(){for(var j="undefined"!=typeof document&&document?document.activeElement:null;j&&j.shadowRoot;){var K=j.shadowRoot.activeElement;if(K===j)break;j=K}return j}function L(j){return j.composedPath?j.composedPath()[0]:j.target}},80785:function(le,q,f){"use strict";f.d(q,{en:function(){return A},ig:function(){return z},Pl:function(){return ae},C5:function(){return E},u0:function(){return j},eL:function(){return se},UE:function(){return x}});var U=f(88009),B=f(20901),V=f(89200),Z=f(10509),w=f(97154),R=f(18967),C=f(14105),_=f(65508),N=f(40098),M=function(){function de(){(0,R.Z)(this,de)}return(0,C.Z)(de,[{key:"attach",value:function($){return this._attachedHost=$,$.attach(this)}},{key:"detach",value:function(){var $=this._attachedHost;null!=$&&(this._attachedHost=null,$.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function($){this._attachedHost=$}}]),de}(),E=function(de){(0,Z.Z)($,de);var oe=(0,w.Z)($);function $(ye,ve,et,Ne){var gt;return(0,R.Z)(this,$),(gt=oe.call(this)).component=ye,gt.viewContainerRef=ve,gt.injector=et,gt.componentFactoryResolver=Ne,gt}return $}(M),x=function(de){(0,Z.Z)($,de);var oe=(0,w.Z)($);function $(ye,ve,et){var Ne;return(0,R.Z)(this,$),(Ne=oe.call(this)).templateRef=ye,Ne.viewContainerRef=ve,Ne.context=et,Ne}return(0,C.Z)($,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(ve){var et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=et,(0,B.Z)((0,V.Z)($.prototype),"attach",this).call(this,ve)}},{key:"detach",value:function(){return this.context=void 0,(0,B.Z)((0,V.Z)($.prototype),"detach",this).call(this)}}]),$}(M),S=function(de){(0,Z.Z)($,de);var oe=(0,w.Z)($);function $(ye){var ve;return(0,R.Z)(this,$),(ve=oe.call(this)).element=ye instanceof _.SBq?ye.nativeElement:ye,ve}return $}(M),A=function(){function de(){(0,R.Z)(this,de),this._isDisposed=!1,this.attachDomPortal=null}return(0,C.Z)(de,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function($){return $ instanceof E?(this._attachedPortal=$,this.attachComponentPortal($)):$ instanceof x?(this._attachedPortal=$,this.attachTemplatePortal($)):this.attachDomPortal&&$ instanceof S?(this._attachedPortal=$,this.attachDomPortal($)):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($){this._disposeFn=$}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),de}(),j=function(de){(0,Z.Z)($,de);var oe=(0,w.Z)($);function $(ye,ve,et,Ne,gt){var _t,Rt;return(0,R.Z)(this,$),(Rt=oe.call(this)).outletElement=ye,Rt._componentFactoryResolver=ve,Rt._appRef=et,Rt._defaultInjector=Ne,Rt.attachDomPortal=function(Se){var Oe=Se.element,je=Rt._document.createComment("dom-portal");Oe.parentNode.insertBefore(je,Oe),Rt.outletElement.appendChild(Oe),Rt._attachedPortal=Se,(0,B.Z)((_t=(0,U.Z)(Rt),(0,V.Z)($.prototype)),"setDisposeFn",_t).call(_t,function(){je.parentNode&&je.parentNode.replaceChild(Oe,je)})},Rt._document=gt,Rt}return(0,C.Z)($,[{key:"attachComponentPortal",value:function(ve){var _t,et=this,gt=(ve.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ve.component);return ve.viewContainerRef?(_t=ve.viewContainerRef.createComponent(gt,ve.viewContainerRef.length,ve.injector||ve.viewContainerRef.injector),this.setDisposeFn(function(){return _t.destroy()})):(_t=gt.create(ve.injector||this._defaultInjector),this._appRef.attachView(_t.hostView),this.setDisposeFn(function(){et._appRef.detachView(_t.hostView),_t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(_t)),this._attachedPortal=ve,_t}},{key:"attachTemplatePortal",value:function(ve){var et=this,Ne=ve.viewContainerRef,gt=Ne.createEmbeddedView(ve.templateRef,ve.context);return gt.rootNodes.forEach(function(_t){return et.outletElement.appendChild(_t)}),gt.detectChanges(),this.setDisposeFn(function(){var _t=Ne.indexOf(gt);-1!==_t&&Ne.remove(_t)}),this._attachedPortal=ve,gt}},{key:"dispose",value:function(){(0,B.Z)((0,V.Z)($.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(ve){return ve.hostView.rootNodes[0]}}]),$}(A),z=function(){var de=function(oe){(0,Z.Z)(ye,oe);var $=(0,w.Z)(ye);function ye(ve,et){return(0,R.Z)(this,ye),$.call(this,ve,et)}return ye}(x);return de.\u0275fac=function($){return new($||de)(_.Y36(_.Rgc),_.Y36(_.s_b))},de.\u0275dir=_.lG2({type:de,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[_.qOj]}),de}(),ae=function(){var de=function(oe){(0,Z.Z)(ye,oe);var $=(0,w.Z)(ye);function ye(ve,et,Ne){var gt,_t;return(0,R.Z)(this,ye),(_t=$.call(this))._componentFactoryResolver=ve,_t._viewContainerRef=et,_t._isInitialized=!1,_t.attached=new _.vpe,_t.attachDomPortal=function(Rt){var Se=Rt.element,Oe=_t._document.createComment("dom-portal");Rt.setAttachedHost((0,U.Z)(_t)),Se.parentNode.insertBefore(Oe,Se),_t._getRootNode().appendChild(Se),_t._attachedPortal=Rt,(0,B.Z)((gt=(0,U.Z)(_t),(0,V.Z)(ye.prototype)),"setDisposeFn",gt).call(gt,function(){Oe.parentNode&&Oe.parentNode.replaceChild(Se,Oe)})},_t._document=Ne,_t}return(0,C.Z)(ye,[{key:"portal",get:function(){return this._attachedPortal},set:function(et){this.hasAttached()&&!et&&!this._isInitialized||(this.hasAttached()&&(0,B.Z)((0,V.Z)(ye.prototype),"detach",this).call(this),et&&(0,B.Z)((0,V.Z)(ye.prototype),"attach",this).call(this,et),this._attachedPortal=et)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){(0,B.Z)((0,V.Z)(ye.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(et){et.setAttachedHost(this);var Ne=null!=et.viewContainerRef?et.viewContainerRef:this._viewContainerRef,_t=(et.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(et.component),Rt=Ne.createComponent(_t,Ne.length,et.injector||Ne.injector);return Ne!==this._viewContainerRef&&this._getRootNode().appendChild(Rt.hostView.rootNodes[0]),(0,B.Z)((0,V.Z)(ye.prototype),"setDisposeFn",this).call(this,function(){return Rt.destroy()}),this._attachedPortal=et,this._attachedRef=Rt,this.attached.emit(Rt),Rt}},{key:"attachTemplatePortal",value:function(et){var Ne=this;et.setAttachedHost(this);var gt=this._viewContainerRef.createEmbeddedView(et.templateRef,et.context);return(0,B.Z)((0,V.Z)(ye.prototype),"setDisposeFn",this).call(this,function(){return Ne._viewContainerRef.clear()}),this._attachedPortal=et,this._attachedRef=gt,this.attached.emit(gt),gt}},{key:"_getRootNode",value:function(){var et=this._viewContainerRef.element.nativeElement;return et.nodeType===et.ELEMENT_NODE?et:et.parentNode}}]),ye}(A);return de.\u0275fac=function($){return new($||de)(_.Y36(_._Vd),_.Y36(_.s_b),_.Y36(N.K0))},de.\u0275dir=_.lG2({type:de,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[_.qOj]}),de}(),se=function(){var de=function oe(){(0,R.Z)(this,oe)};return de.\u0275fac=function($){return new($||de)},de.\u0275mod=_.oAB({type:de}),de.\u0275inj=_.cJS({}),de}()},28722:function(le,q,f){"use strict";f.d(q,{PQ:function(){return Rt},ZD:function(){return vt},mF:function(){return _t},Cl:function(){return Xt},rL:function(){return Oe}}),f(27235),f(36683),f(20901),f(89200),f(10509),f(97154);var C=f(18967),_=f(14105),N=f(78081),D=f(65508),O=f(68707),P=f(43161),y=f(89797),g=f(33090),A=(f(58172),f(8285),f(5051),f(17504),f(76161),f(54562)),L=f(58780),j=f(44213),ie=(f(57682),f(4363),f(34487),f(61106),f(15427)),se=f(40098),ue=f(8392);f(37429);var _t=function(){var qt=function(){function Ct(jt,bt,nn){(0,C.Z)(this,Ct),this._ngZone=jt,this._platform=bt,this._scrolled=new O.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=nn}return(0,_.Z)(Ct,[{key:"register",value:function(bt){var nn=this;this.scrollContainers.has(bt)||this.scrollContainers.set(bt,bt.elementScrolled().subscribe(function(){return nn._scrolled.next(bt)}))}},{key:"deregister",value:function(bt){var nn=this.scrollContainers.get(bt);nn&&(nn.unsubscribe(),this.scrollContainers.delete(bt))}},{key:"scrolled",value:function(){var bt=this,nn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new y.y(function(Ut){bt._globalSubscription||bt._addGlobalListener();var an=nn>0?bt._scrolled.pipe((0,A.e)(nn)).subscribe(Ut):bt._scrolled.subscribe(Ut);return bt._scrolledCount++,function(){an.unsubscribe(),bt._scrolledCount--,bt._scrolledCount||bt._removeGlobalListener()}}):(0,P.of)()}},{key:"ngOnDestroy",value:function(){var bt=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(nn,Ut){return bt.deregister(Ut)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(bt,nn){var Ut=this.getAncestorScrollContainers(bt);return this.scrolled(nn).pipe((0,L.h)(function(an){return!an||Ut.indexOf(an)>-1}))}},{key:"getAncestorScrollContainers",value:function(bt){var nn=this,Ut=[];return this.scrollContainers.forEach(function(an,An){nn._scrollableContainsElement(An,bt)&&Ut.push(An)}),Ut}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(bt,nn){var Ut=(0,N.fI)(nn),an=bt.getElementRef().nativeElement;do{if(Ut==an)return!0}while(Ut=Ut.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var bt=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var nn=bt._getWindow();return(0,g.R)(nn.document,"scroll").subscribe(function(){return bt._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),Ct}();return qt.\u0275fac=function(jt){return new(jt||qt)(D.LFG(D.R0b),D.LFG(ie.t4),D.LFG(se.K0,8))},qt.\u0275prov=D.Yz7({factory:function(){return new qt(D.LFG(D.R0b),D.LFG(ie.t4),D.LFG(se.K0,8))},token:qt,providedIn:"root"}),qt}(),Rt=function(){var qt=function(){function Ct(jt,bt,nn,Ut){var an=this;(0,C.Z)(this,Ct),this.elementRef=jt,this.scrollDispatcher=bt,this.ngZone=nn,this.dir=Ut,this._destroyed=new O.xQ,this._elementScrolled=new y.y(function(An){return an.ngZone.runOutsideAngular(function(){return(0,g.R)(an.elementRef.nativeElement,"scroll").pipe((0,j.R)(an._destroyed)).subscribe(An)})})}return(0,_.Z)(Ct,[{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(bt){var nn=this.elementRef.nativeElement,Ut=this.dir&&"rtl"==this.dir.value;null==bt.left&&(bt.left=Ut?bt.end:bt.start),null==bt.right&&(bt.right=Ut?bt.start:bt.end),null!=bt.bottom&&(bt.top=nn.scrollHeight-nn.clientHeight-bt.bottom),Ut&&0!=(0,ie._i)()?(null!=bt.left&&(bt.right=nn.scrollWidth-nn.clientWidth-bt.left),2==(0,ie._i)()?bt.left=bt.right:1==(0,ie._i)()&&(bt.left=bt.right?-bt.right:bt.right)):null!=bt.right&&(bt.left=nn.scrollWidth-nn.clientWidth-bt.right),this._applyScrollToOptions(bt)}},{key:"_applyScrollToOptions",value:function(bt){var nn=this.elementRef.nativeElement;(0,ie.Mq)()?nn.scrollTo(bt):(null!=bt.top&&(nn.scrollTop=bt.top),null!=bt.left&&(nn.scrollLeft=bt.left))}},{key:"measureScrollOffset",value:function(bt){var nn="left",an=this.elementRef.nativeElement;if("top"==bt)return an.scrollTop;if("bottom"==bt)return an.scrollHeight-an.clientHeight-an.scrollTop;var An=this.dir&&"rtl"==this.dir.value;return"start"==bt?bt=An?"right":nn:"end"==bt&&(bt=An?nn:"right"),An&&2==(0,ie._i)()?bt==nn?an.scrollWidth-an.clientWidth-an.scrollLeft:an.scrollLeft:An&&1==(0,ie._i)()?bt==nn?an.scrollLeft+an.scrollWidth-an.clientWidth:-an.scrollLeft:bt==nn?an.scrollLeft:an.scrollWidth-an.clientWidth-an.scrollLeft}}]),Ct}();return qt.\u0275fac=function(jt){return new(jt||qt)(D.Y36(D.SBq),D.Y36(_t),D.Y36(D.R0b),D.Y36(ue.Is,8))},qt.\u0275dir=D.lG2({type:qt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),qt}(),Oe=function(){var qt=function(){function Ct(jt,bt,nn){var Ut=this;(0,C.Z)(this,Ct),this._platform=jt,this._change=new O.xQ,this._changeListener=function(an){Ut._change.next(an)},this._document=nn,bt.runOutsideAngular(function(){if(jt.isBrowser){var an=Ut._getWindow();an.addEventListener("resize",Ut._changeListener),an.addEventListener("orientationchange",Ut._changeListener)}Ut.change().subscribe(function(){return Ut._viewportSize=null})})}return(0,_.Z)(Ct,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var bt=this._getWindow();bt.removeEventListener("resize",this._changeListener),bt.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var bt={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),bt}},{key:"getViewportRect",value:function(){var bt=this.getViewportScrollPosition(),nn=this.getViewportSize(),Ut=nn.width,an=nn.height;return{top:bt.top,left:bt.left,bottom:bt.top+an,right:bt.left+Ut,height:an,width:Ut}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var bt=this._document,nn=this._getWindow(),Ut=bt.documentElement,an=Ut.getBoundingClientRect();return{top:-an.top||bt.body.scrollTop||nn.scrollY||Ut.scrollTop||0,left:-an.left||bt.body.scrollLeft||nn.scrollX||Ut.scrollLeft||0}}},{key:"change",value:function(){var bt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return bt>0?this._change.pipe((0,A.e)(bt)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var bt=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:bt.innerWidth,height:bt.innerHeight}:{width:0,height:0}}}]),Ct}();return qt.\u0275fac=function(jt){return new(jt||qt)(D.LFG(ie.t4),D.LFG(D.R0b),D.LFG(se.K0,8))},qt.\u0275prov=D.Yz7({factory:function(){return new qt(D.LFG(ie.t4),D.LFG(D.R0b),D.LFG(se.K0,8))},token:qt,providedIn:"root"}),qt}(),vt=function(){var qt=function Ct(){(0,C.Z)(this,Ct)};return qt.\u0275fac=function(jt){return new(jt||qt)},qt.\u0275mod=D.oAB({type:qt}),qt.\u0275inj=D.cJS({}),qt}(),Xt=function(){var qt=function Ct(){(0,C.Z)(this,Ct)};return qt.\u0275fac=function(jt){return new(jt||qt)},qt.\u0275mod=D.oAB({type:qt}),qt.\u0275inj=D.cJS({imports:[[ue.vT,ie.ud,vt],ue.vT,vt]}),qt}()},78081:function(le,q,f){"use strict";f.d(q,{t6:function(){return Z},Eq:function(){return w},Ig:function(){return B},HM:function(){return R},fI:function(){return C},su:function(){return V}});var U=f(65508);function B(N){return null!=N&&"false"!=="".concat(N)}function V(N){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Z(N)?Number(N):D}function Z(N){return!isNaN(parseFloat(N))&&!isNaN(Number(N))}function w(N){return Array.isArray(N)?N:[N]}function R(N){return null==N?"":"string"==typeof N?N:"".concat(N,"px")}function C(N){return N instanceof U.SBq?N.nativeElement:N}},40098:function(le,q,f){"use strict";f.d(q,{mr:function(){return Q},Ov:function(){return Fo},ez:function(){return Jn},K0:function(){return y},Do:function(){return ie},V_:function(){return M},Ye:function(){return se},S$:function(){return K},mk:function(){return tn},sg:function(){return Wn},O5:function(){return Bi},PC:function(){return Ui},RF:function(){return Jo},n9:function(){return La},ED:function(){return Ao},tP:function(){return so},b0:function(){return ae},lw:function(){return g},EM:function(){return Me},JF:function(){return zn},NF:function(){return Uo},w_:function(){return P},bD:function(){return ku},q:function(){return N},Mx:function(){return $t},HT:function(){return O}});var U=f(36683),B=f(27235),V=f(10509),Z=f(97154),w=f(14105),R=f(18967),C=f(65508),_=null;function N(){return _}function O(pe){_||(_=pe)}var P=function pe(){(0,R.Z)(this,pe)},y=new C.OlP("DocumentToken"),g=function(){var pe=function(){function Ie(){(0,R.Z)(this,Ie)}return(0,w.Z)(Ie,[{key:"historyGo",value:function(qe){throw new Error("Not implemented")}}]),Ie}();return pe.\u0275fac=function($e){return new($e||pe)},pe.\u0275prov=(0,C.Yz7)({factory:T,token:pe,providedIn:"platform"}),pe}();function T(){return(0,C.LFG)(E)}var M=new C.OlP("Location Initialized"),E=function(){var pe=function(Ie){(0,V.Z)(qe,Ie);var $e=(0,Z.Z)(qe);function qe(mt){var kt;return(0,R.Z)(this,qe),(kt=$e.call(this))._doc=mt,kt._init(),kt}return(0,w.Z)(qe,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return N().getBaseHref(this._doc)}},{key:"onPopState",value:function(kt){var ln=N().getGlobalEventTarget(this._doc,"window");return ln.addEventListener("popstate",kt,!1),function(){return ln.removeEventListener("popstate",kt)}}},{key:"onHashChange",value:function(kt){var ln=N().getGlobalEventTarget(this._doc,"window");return ln.addEventListener("hashchange",kt,!1),function(){return ln.removeEventListener("hashchange",kt)}}},{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(kt){this.location.pathname=kt}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(kt,ln,Mn){x()?this._history.pushState(kt,ln,Mn):this.location.hash=Mn}},{key:"replaceState",value:function(kt,ln,Mn){x()?this._history.replaceState(kt,ln,Mn):this.location.hash=Mn}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var kt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(kt)}},{key:"getState",value:function(){return this._history.state}}]),qe}(g);return pe.\u0275fac=function($e){return new($e||pe)(C.LFG(y))},pe.\u0275prov=(0,C.Yz7)({factory:S,token:pe,providedIn:"platform"}),pe}();function x(){return!!window.history.pushState}function S(){return new E((0,C.LFG)(y))}function A(pe,Ie){if(0==pe.length)return Ie;if(0==Ie.length)return pe;var $e=0;return pe.endsWith("/")&&$e++,Ie.startsWith("/")&&$e++,2==$e?pe+Ie.substring(1):1==$e?pe+Ie:pe+"/"+Ie}function L(pe){var Ie=pe.match(/#|\?|$/),$e=Ie&&Ie.index||pe.length;return pe.slice(0,$e-("/"===pe[$e-1]?1:0))+pe.slice($e)}function j(pe){return pe&&"?"!==pe[0]?"?"+pe:pe}var K=function(){var pe=function(){function Ie(){(0,R.Z)(this,Ie)}return(0,w.Z)(Ie,[{key:"historyGo",value:function(qe){throw new Error("Not implemented")}}]),Ie}();return pe.\u0275fac=function($e){return new($e||pe)},pe.\u0275prov=(0,C.Yz7)({factory:z,token:pe,providedIn:"root"}),pe}();function z(pe){var Ie=(0,C.LFG)(y).location;return new ae((0,C.LFG)(g),Ie&&Ie.origin||"")}var Q=new C.OlP("appBaseHref"),ae=function(){var pe=function(Ie){(0,V.Z)(qe,Ie);var $e=(0,Z.Z)(qe);function qe(mt,kt){var ln;if((0,R.Z)(this,qe),(ln=$e.call(this))._platformLocation=mt,ln._removeListenerFns=[],null==kt&&(kt=ln._platformLocation.getBaseHrefFromDOM()),null==kt)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 ln._baseHref=kt,ln}return(0,w.Z)(qe,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(kt){this._removeListenerFns.push(this._platformLocation.onPopState(kt),this._platformLocation.onHashChange(kt))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(kt){return A(this._baseHref,kt)}},{key:"path",value:function(){var kt=arguments.length>0&&void 0!==arguments[0]&&arguments[0],ln=this._platformLocation.pathname+j(this._platformLocation.search),Mn=this._platformLocation.hash;return Mn&&kt?"".concat(ln).concat(Mn):ln}},{key:"pushState",value:function(kt,ln,Mn,nr){var xr=this.prepareExternalUrl(Mn+j(nr));this._platformLocation.pushState(kt,ln,xr)}},{key:"replaceState",value:function(kt,ln,Mn,nr){var xr=this.prepareExternalUrl(Mn+j(nr));this._platformLocation.replaceState(kt,ln,xr)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var ln,Mn,kt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(Mn=(ln=this._platformLocation).historyGo)||void 0===Mn||Mn.call(ln,kt)}}]),qe}(K);return pe.\u0275fac=function($e){return new($e||pe)(C.LFG(g),C.LFG(Q,8))},pe.\u0275prov=C.Yz7({token:pe,factory:pe.\u0275fac}),pe}(),ie=function(){var pe=function(Ie){(0,V.Z)(qe,Ie);var $e=(0,Z.Z)(qe);function qe(mt,kt){var ln;return(0,R.Z)(this,qe),(ln=$e.call(this))._platformLocation=mt,ln._baseHref="",ln._removeListenerFns=[],null!=kt&&(ln._baseHref=kt),ln}return(0,w.Z)(qe,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(kt){this._removeListenerFns.push(this._platformLocation.onPopState(kt),this._platformLocation.onHashChange(kt))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var ln=this._platformLocation.hash;return null==ln&&(ln="#"),ln.length>0?ln.substring(1):ln}},{key:"prepareExternalUrl",value:function(kt){var ln=A(this._baseHref,kt);return ln.length>0?"#"+ln:ln}},{key:"pushState",value:function(kt,ln,Mn,nr){var xr=this.prepareExternalUrl(Mn+j(nr));0==xr.length&&(xr=this._platformLocation.pathname),this._platformLocation.pushState(kt,ln,xr)}},{key:"replaceState",value:function(kt,ln,Mn,nr){var xr=this.prepareExternalUrl(Mn+j(nr));0==xr.length&&(xr=this._platformLocation.pathname),this._platformLocation.replaceState(kt,ln,xr)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var ln,Mn,kt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(Mn=(ln=this._platformLocation).historyGo)||void 0===Mn||Mn.call(ln,kt)}}]),qe}(K);return pe.\u0275fac=function($e){return new($e||pe)(C.LFG(g),C.LFG(Q,8))},pe.\u0275prov=C.Yz7({token:pe,factory:pe.\u0275fac}),pe}(),se=function(){var pe=function(){function Ie($e,qe){var mt=this;(0,R.Z)(this,Ie),this._subject=new C.vpe,this._urlChangeListeners=[],this._platformStrategy=$e;var kt=this._platformStrategy.getBaseHref();this._platformLocation=qe,this._baseHref=L(oe(kt)),this._platformStrategy.onPopState(function(ln){mt._subject.emit({url:mt.path(!0),pop:!0,state:ln.state,type:ln.type})})}return(0,w.Z)(Ie,[{key:"path",value:function(){var qe=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(qe))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(qe){var mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(qe+j(mt))}},{key:"normalize",value:function(qe){return Ie.stripTrailingSlash(function(pe,Ie){return pe&&Ie.startsWith(pe)?Ie.substring(pe.length):Ie}(this._baseHref,oe(qe)))}},{key:"prepareExternalUrl",value:function(qe){return qe&&"/"!==qe[0]&&(qe="/"+qe),this._platformStrategy.prepareExternalUrl(qe)}},{key:"go",value:function(qe){var mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",kt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(kt,"",qe,mt),this._notifyUrlChangeListeners(this.prepareExternalUrl(qe+j(mt)),kt)}},{key:"replaceState",value:function(qe){var mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",kt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(kt,"",qe,mt),this._notifyUrlChangeListeners(this.prepareExternalUrl(qe+j(mt)),kt)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var mt,kt,qe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(kt=(mt=this._platformStrategy).historyGo)||void 0===kt||kt.call(mt,qe)}},{key:"onUrlChange",value:function(qe){var mt=this;this._urlChangeListeners.push(qe),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(kt){mt._notifyUrlChangeListeners(kt.url,kt.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var qe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",mt=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(kt){return kt(qe,mt)})}},{key:"subscribe",value:function(qe,mt,kt){return this._subject.subscribe({next:qe,error:mt,complete:kt})}}]),Ie}();return pe.\u0275fac=function($e){return new($e||pe)(C.LFG(K),C.LFG(g))},pe.normalizeQueryParams=j,pe.joinWithSlash=A,pe.stripTrailingSlash=L,pe.\u0275prov=(0,C.Yz7)({factory:ue,token:pe,providedIn:"root"}),pe}();function ue(){return new se((0,C.LFG)(K),(0,C.LFG)(g))}function oe(pe){return pe.replace(/\/index.html$/,"")}var ve=function(pe){return pe[pe.Zero=0]="Zero",pe[pe.One=1]="One",pe[pe.Two=2]="Two",pe[pe.Few=3]="Few",pe[pe.Many=4]="Many",pe[pe.Other=5]="Other",pe}({}),An=C.kL8,It=function pe(){(0,R.Z)(this,pe)},Pt=function(){var pe=function(Ie){(0,V.Z)(qe,Ie);var $e=(0,Z.Z)(qe);function qe(mt){var kt;return(0,R.Z)(this,qe),(kt=$e.call(this)).locale=mt,kt}return(0,w.Z)(qe,[{key:"getPluralCategory",value:function(kt,ln){switch(An(ln||this.locale)(kt)){case ve.Zero:return"zero";case ve.One:return"one";case ve.Two:return"two";case ve.Few:return"few";case ve.Many:return"many";default:return"other"}}}]),qe}(It);return pe.\u0275fac=function($e){return new($e||pe)(C.LFG(C.soG))},pe.\u0275prov=C.Yz7({token:pe,factory:pe.\u0275fac}),pe}();function $t(pe,Ie){Ie=encodeURIComponent(Ie);var qe,$e=(0,U.Z)(pe.split(";"));try{for($e.s();!(qe=$e.n()).done;){var mt=qe.value,kt=mt.indexOf("="),ln=-1==kt?[mt,""]:[mt.slice(0,kt),mt.slice(kt+1)],Mn=(0,B.Z)(ln,2),xr=Mn[1];if(Mn[0].trim()===Ie)return decodeURIComponent(xr)}}catch(_r){$e.e(_r)}finally{$e.f()}return null}var tn=function(){var pe=function(){function Ie($e,qe,mt,kt){(0,R.Z)(this,Ie),this._iterableDiffers=$e,this._keyValueDiffers=qe,this._ngEl=mt,this._renderer=kt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return(0,w.Z)(Ie,[{key:"klass",set:function(qe){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof qe?qe.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(qe){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof qe?qe.split(/\s+/):qe,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 qe=this._iterableDiffer.diff(this._rawClass);qe&&this._applyIterableChanges(qe)}else if(this._keyValueDiffer){var mt=this._keyValueDiffer.diff(this._rawClass);mt&&this._applyKeyValueChanges(mt)}}},{key:"_applyKeyValueChanges",value:function(qe){var mt=this;qe.forEachAddedItem(function(kt){return mt._toggleClass(kt.key,kt.currentValue)}),qe.forEachChangedItem(function(kt){return mt._toggleClass(kt.key,kt.currentValue)}),qe.forEachRemovedItem(function(kt){kt.previousValue&&mt._toggleClass(kt.key,!1)})}},{key:"_applyIterableChanges",value:function(qe){var mt=this;qe.forEachAddedItem(function(kt){if("string"!=typeof kt.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,C.AaK)(kt.item)));mt._toggleClass(kt.item,!0)}),qe.forEachRemovedItem(function(kt){return mt._toggleClass(kt.item,!1)})}},{key:"_applyClasses",value:function(qe){var mt=this;qe&&(Array.isArray(qe)||qe instanceof Set?qe.forEach(function(kt){return mt._toggleClass(kt,!0)}):Object.keys(qe).forEach(function(kt){return mt._toggleClass(kt,!!qe[kt])}))}},{key:"_removeClasses",value:function(qe){var mt=this;qe&&(Array.isArray(qe)||qe instanceof Set?qe.forEach(function(kt){return mt._toggleClass(kt,!1)}):Object.keys(qe).forEach(function(kt){return mt._toggleClass(kt,!1)}))}},{key:"_toggleClass",value:function(qe,mt){var kt=this;(qe=qe.trim())&&qe.split(/\s+/g).forEach(function(ln){mt?kt._renderer.addClass(kt._ngEl.nativeElement,ln):kt._renderer.removeClass(kt._ngEl.nativeElement,ln)})}}]),Ie}();return pe.\u0275fac=function($e){return new($e||pe)(C.Y36(C.ZZ4),C.Y36(C.aQg),C.Y36(C.SBq),C.Y36(C.Qsj))},pe.\u0275dir=C.lG2({type:pe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),pe}(),Qn=function(){function pe(Ie,$e,qe,mt){(0,R.Z)(this,pe),this.$implicit=Ie,this.ngForOf=$e,this.index=qe,this.count=mt}return(0,w.Z)(pe,[{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}}]),pe}(),Wn=function(){var pe=function(){function Ie($e,qe,mt){(0,R.Z)(this,Ie),this._viewContainer=$e,this._template=qe,this._differs=mt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return(0,w.Z)(Ie,[{key:"ngForOf",set:function(qe){this._ngForOf=qe,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(qe){this._trackByFn=qe}},{key:"ngForTemplate",set:function(qe){qe&&(this._template=qe)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var qe=this._ngForOf;if(!this._differ&&qe)try{this._differ=this._differs.find(qe).create(this.ngForTrackBy)}catch(kt){throw new Error("Cannot find a differ supporting object '".concat(qe,"' of type '").concat(function(pe){return pe.name||typeof pe}(qe),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var mt=this._differ.diff(this._ngForOf);mt&&this._applyChanges(mt)}}},{key:"_applyChanges",value:function(qe){var mt=this,kt=[];qe.forEachOperation(function(_r,Wt,Bt){if(null==_r.previousIndex){var Do=mt._viewContainer.createEmbeddedView(mt._template,new Qn(null,mt._ngForOf,-1,-1),null===Bt?void 0:Bt),ci=new Gn(_r,Do);kt.push(ci)}else if(null==Bt)mt._viewContainer.remove(null===Wt?void 0:Wt);else if(null!==Wt){var Qi=mt._viewContainer.get(Wt);mt._viewContainer.move(Qi,Bt);var Ea=new Gn(_r,Qi);kt.push(Ea)}});for(var ln=0;ln0){var Ge=re.slice(0,he),Ye=Ge.toLowerCase(),yt=re.slice(he+1).trim();_e.maybeSetNormalizedName(Ge,Ye),_e.headers.has(Ye)?_e.headers.get(Ye).push(yt):_e.headers.set(Ye,[yt])}})}:function(){_e.headers=new Map,Object.keys(ot).forEach(function(re){var he=ot[re],Ge=re.toLowerCase();"string"==typeof he&&(he=[he]),he.length>0&&(_e.headers.set(Ge,he),_e.maybeSetNormalizedName(re,Ge))})}:this.headers=new Map}return(0,w.Z)(wt,[{key:"has",value:function(_e){return this.init(),this.headers.has(_e.toLowerCase())}},{key:"get",value:function(_e){this.init();var re=this.headers.get(_e.toLowerCase());return re&&re.length>0?re[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,re){return this.clone({name:_e,value:re,op:"a"})}},{key:"set",value:function(_e,re){return this.clone({name:_e,value:re,op:"s"})}},{key:"delete",value:function(_e,re){return this.clone({name:_e,value:re,op:"d"})}},{key:"maybeSetNormalizedName",value:function(_e,re){this.normalizedNames.has(re)||this.normalizedNames.set(re,_e)}},{key:"init",value:function(){var _e=this;this.lazyInit&&(this.lazyInit instanceof wt?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(re){return _e.applyUpdate(re)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(_e){var re=this;_e.init(),Array.from(_e.headers.keys()).forEach(function(he){re.headers.set(he,_e.headers.get(he)),re.normalizedNames.set(he,_e.normalizedNames.get(he))})}},{key:"clone",value:function(_e){var re=new wt;return re.lazyInit=this.lazyInit&&this.lazyInit instanceof wt?this.lazyInit:this,re.lazyUpdate=(this.lazyUpdate||[]).concat([_e]),re}},{key:"applyUpdate",value:function(_e){var re=_e.name.toLowerCase();switch(_e.op){case"a":case"s":var he=_e.value;if("string"==typeof he&&(he=[he]),0===he.length)return;this.maybeSetNormalizedName(_e.name,re);var Ge=("a"===_e.op?this.headers.get(re):void 0)||[];Ge.push.apply(Ge,(0,Z.Z)(he)),this.headers.set(re,Ge);break;case"d":var Ye=_e.value;if(Ye){var yt=this.headers.get(re);if(!yt)return;0===(yt=yt.filter(function(Lt){return-1===Ye.indexOf(Lt)})).length?(this.headers.delete(re),this.normalizedNames.delete(re)):this.headers.set(re,yt)}else this.headers.delete(re),this.normalizedNames.delete(re)}}},{key:"forEach",value:function(_e){var re=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(he){return _e(re.normalizedNames.get(he),re.headers.get(he))})}}]),wt}(),E=function(){function wt(){(0,R.Z)(this,wt)}return(0,w.Z)(wt,[{key:"encodeKey",value:function(_e){return L(_e)}},{key:"encodeValue",value:function(_e){return L(_e)}},{key:"decodeKey",value:function(_e){return decodeURIComponent(_e)}},{key:"decodeValue",value:function(_e){return decodeURIComponent(_e)}}]),wt}();function x(wt,ot){var _e=new Map;return wt.length>0&&wt.replace(/^\?/,"").split("&").forEach(function(he){var Ge=he.indexOf("="),Ye=-1==Ge?[ot.decodeKey(he),""]:[ot.decodeKey(he.slice(0,Ge)),ot.decodeValue(he.slice(Ge+1))],yt=(0,V.Z)(Ye,2),Lt=yt[0],Yt=yt[1],rn=_e.get(Lt)||[];rn.push(Yt),_e.set(Lt,rn)}),_e}var S=/%(\d[a-f0-9])/gi,A={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function L(wt){return encodeURIComponent(wt).replace(S,function(ot,_e){var re;return null!==(re=A[_e])&&void 0!==re?re:ot})}function j(wt){return"".concat(wt)}var K=function(){function wt(){var ot=this,_e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,R.Z)(this,wt),this.updates=null,this.cloneFrom=null,this.encoder=_e.encoder||new E,_e.fromString){if(_e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=x(_e.fromString,this.encoder)}else _e.fromObject?(this.map=new Map,Object.keys(_e.fromObject).forEach(function(re){var he=_e.fromObject[re];ot.map.set(re,Array.isArray(he)?he:[he])})):this.map=null}return(0,w.Z)(wt,[{key:"has",value:function(_e){return this.init(),this.map.has(_e)}},{key:"get",value:function(_e){this.init();var re=this.map.get(_e);return re?re[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,re){return this.clone({param:_e,value:re,op:"a"})}},{key:"appendAll",value:function(_e){var re=[];return Object.keys(_e).forEach(function(he){var Ge=_e[he];Array.isArray(Ge)?Ge.forEach(function(Ye){re.push({param:he,value:Ye,op:"a"})}):re.push({param:he,value:Ge,op:"a"})}),this.clone(re)}},{key:"set",value:function(_e,re){return this.clone({param:_e,value:re,op:"s"})}},{key:"delete",value:function(_e,re){return this.clone({param:_e,value:re,op:"d"})}},{key:"toString",value:function(){var _e=this;return this.init(),this.keys().map(function(re){var he=_e.encoder.encodeKey(re);return _e.map.get(re).map(function(Ge){return he+"="+_e.encoder.encodeValue(Ge)}).join("&")}).filter(function(re){return""!==re}).join("&")}},{key:"clone",value:function(_e){var re=new wt({encoder:this.encoder});return re.cloneFrom=this.cloneFrom||this,re.updates=(this.updates||[]).concat(_e),re}},{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(re){return _e.map.set(re,_e.cloneFrom.map.get(re))}),this.updates.forEach(function(re){switch(re.op){case"a":case"s":var he=("a"===re.op?_e.map.get(re.param):void 0)||[];he.push(j(re.value)),_e.map.set(re.param,he);break;case"d":if(void 0===re.value){_e.map.delete(re.param);break}var Ge=_e.map.get(re.param)||[],Ye=Ge.indexOf(j(re.value));-1!==Ye&&Ge.splice(Ye,1),Ge.length>0?_e.map.set(re.param,Ge):_e.map.delete(re.param)}}),this.cloneFrom=this.updates=null)}}]),wt}(),Q=function(){function wt(){(0,R.Z)(this,wt),this.map=new Map}return(0,w.Z)(wt,[{key:"set",value:function(_e,re){return this.map.set(_e,re),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()}}]),wt}();function ie(wt){return"undefined"!=typeof ArrayBuffer&&wt instanceof ArrayBuffer}function se(wt){return"undefined"!=typeof Blob&&wt instanceof Blob}function ue(wt){return"undefined"!=typeof FormData&&wt instanceof FormData}var oe=function(){function wt(ot,_e,re,he){var Ge;if((0,R.Z)(this,wt),this.url=_e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ot.toUpperCase(),function(wt){switch(wt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||he?(this.body=void 0!==re?re:null,Ge=he):Ge=re,Ge&&(this.reportProgress=!!Ge.reportProgress,this.withCredentials=!!Ge.withCredentials,Ge.responseType&&(this.responseType=Ge.responseType),Ge.headers&&(this.headers=Ge.headers),Ge.context&&(this.context=Ge.context),Ge.params&&(this.params=Ge.params)),this.headers||(this.headers=new M),this.context||(this.context=new Q),this.params){var Ye=this.params.toString();if(0===Ye.length)this.urlWithParams=_e;else{var yt=_e.indexOf("?");this.urlWithParams=_e+(-1===yt?"?":yt<_e.length-1?"&":"")+Ye}}else this.params=new K,this.urlWithParams=_e}return(0,w.Z)(wt,[{key:"serializeBody",value:function(){return null===this.body?null:ie(this.body)||se(this.body)||ue(this.body)||function(wt){return"undefined"!=typeof URLSearchParams&&wt instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof K?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||ue(this.body)?null:se(this.body)?this.body.type||null:ie(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof K?"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 re,_e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},he=_e.method||this.method,Ge=_e.url||this.url,Ye=_e.responseType||this.responseType,yt=void 0!==_e.body?_e.body:this.body,Lt=void 0!==_e.withCredentials?_e.withCredentials:this.withCredentials,Yt=void 0!==_e.reportProgress?_e.reportProgress:this.reportProgress,rn=_e.headers||this.headers,cn=_e.params||this.params,_n=null!==(re=_e.context)&&void 0!==re?re:this.context;return void 0!==_e.setHeaders&&(rn=Object.keys(_e.setHeaders).reduce(function(xn,Nn){return xn.set(Nn,_e.setHeaders[Nn])},rn)),_e.setParams&&(cn=Object.keys(_e.setParams).reduce(function(xn,Nn){return xn.set(Nn,_e.setParams[Nn])},cn)),new wt(he,Ge,yt,{params:cn,headers:rn,context:_n,reportProgress:Yt,responseType:Ye,withCredentials:Lt})}}]),wt}(),$=function(wt){return wt[wt.Sent=0]="Sent",wt[wt.UploadProgress=1]="UploadProgress",wt[wt.ResponseHeader=2]="ResponseHeader",wt[wt.DownloadProgress=3]="DownloadProgress",wt[wt.Response=4]="Response",wt[wt.User=5]="User",wt}({}),ye=function wt(ot){var _e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,re=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";(0,R.Z)(this,wt),this.headers=ot.headers||new M,this.status=void 0!==ot.status?ot.status:_e,this.statusText=ot.statusText||re,this.url=ot.url||null,this.ok=this.status>=200&&this.status<300},ve=function(wt){(0,U.Z)(_e,wt);var ot=(0,B.Z)(_e);function _e(){var re,he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,R.Z)(this,_e),(re=ot.call(this,he)).type=$.ResponseHeader,re}return(0,w.Z)(_e,[{key:"clone",value:function(){var he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new _e({headers:he.headers||this.headers,status:void 0!==he.status?he.status:this.status,statusText:he.statusText||this.statusText,url:he.url||this.url||void 0})}}]),_e}(ye),et=function(wt){(0,U.Z)(_e,wt);var ot=(0,B.Z)(_e);function _e(){var re,he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,R.Z)(this,_e),(re=ot.call(this,he)).type=$.Response,re.body=void 0!==he.body?he.body:null,re}return(0,w.Z)(_e,[{key:"clone",value:function(){var he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new _e({body:void 0!==he.body?he.body:this.body,headers:he.headers||this.headers,status:void 0!==he.status?he.status:this.status,statusText:he.statusText||this.statusText,url:he.url||this.url||void 0})}}]),_e}(ye),Ne=function(wt){(0,U.Z)(_e,wt);var ot=(0,B.Z)(_e);function _e(re){var he;return(0,R.Z)(this,_e),(he=ot.call(this,re,0,"Unknown Error")).name="HttpErrorResponse",he.ok=!1,he.message=he.status>=200&&he.status<300?"Http failure during parsing for ".concat(re.url||"(unknown url)"):"Http failure response for ".concat(re.url||"(unknown url)",": ").concat(re.status," ").concat(re.statusText),he.error=re.error||null,he}return _e}(ye);function gt(wt,ot){return{body:ot,headers:wt.headers,context:wt.context,observe:wt.observe,params:wt.params,reportProgress:wt.reportProgress,responseType:wt.responseType,withCredentials:wt.withCredentials}}var _t=function(){var wt=function(){function ot(_e){(0,R.Z)(this,ot),this.handler=_e}return(0,w.Z)(ot,[{key:"request",value:function(re,he){var yt,Ge=this,Ye=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(re instanceof oe)yt=re;else{var Lt=void 0;Lt=Ye.headers instanceof M?Ye.headers:new M(Ye.headers);var Yt=void 0;Ye.params&&(Yt=Ye.params instanceof K?Ye.params:new K({fromObject:Ye.params})),yt=new oe(re,he,void 0!==Ye.body?Ye.body:null,{headers:Lt,context:Ye.context,params:Yt,reportProgress:Ye.reportProgress,responseType:Ye.responseType||"json",withCredentials:Ye.withCredentials})}var rn=(0,N.of)(yt).pipe((0,O.b)(function(_n){return Ge.handler.handle(_n)}));if(re instanceof oe||"events"===Ye.observe)return rn;var cn=rn.pipe((0,P.h)(function(_n){return _n instanceof et}));switch(Ye.observe||"body"){case"body":switch(yt.responseType){case"arraybuffer":return cn.pipe((0,y.U)(function(_n){if(null!==_n.body&&!(_n.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return _n.body}));case"blob":return cn.pipe((0,y.U)(function(_n){if(null!==_n.body&&!(_n.body instanceof Blob))throw new Error("Response is not a Blob.");return _n.body}));case"text":return cn.pipe((0,y.U)(function(_n){if(null!==_n.body&&"string"!=typeof _n.body)throw new Error("Response is not a string.");return _n.body}));case"json":default:return cn.pipe((0,y.U)(function(_n){return _n.body}))}case"response":return cn;default:throw new Error("Unreachable: unhandled observe type ".concat(Ye.observe,"}"))}}},{key:"delete",value:function(re){var he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",re,he)}},{key:"get",value:function(re){var he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",re,he)}},{key:"head",value:function(re){var he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",re,he)}},{key:"jsonp",value:function(re,he){return this.request("JSONP",re,{params:(new K).append(he,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(re){var he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",re,he)}},{key:"patch",value:function(re,he){var Ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",re,gt(Ge,he))}},{key:"post",value:function(re,he){var Ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",re,gt(Ge,he))}},{key:"put",value:function(re,he){var Ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",re,gt(Ge,he))}}]),ot}();return wt.\u0275fac=function(_e){return new(_e||wt)(_.LFG(g))},wt.\u0275prov=_.Yz7({token:wt,factory:wt.\u0275fac}),wt}(),Rt=function(){function wt(ot,_e){(0,R.Z)(this,wt),this.next=ot,this.interceptor=_e}return(0,w.Z)(wt,[{key:"handle",value:function(_e){return this.interceptor.intercept(_e,this.next)}}]),wt}(),Se=new _.OlP("HTTP_INTERCEPTORS"),Oe=function(){var wt=function(){function ot(){(0,R.Z)(this,ot)}return(0,w.Z)(ot,[{key:"intercept",value:function(re,he){return he.handle(re)}}]),ot}();return wt.\u0275fac=function(_e){return new(_e||wt)},wt.\u0275prov=_.Yz7({token:wt,factory:wt.\u0275fac}),wt}(),qt=/^\)\]\}',?\n/,jt=function(){var wt=function(){function ot(_e){(0,R.Z)(this,ot),this.xhrFactory=_e}return(0,w.Z)(ot,[{key:"handle",value:function(re){var he=this;if("JSONP"===re.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new D.y(function(Ge){var Ye=he.xhrFactory.build();if(Ye.open(re.method,re.urlWithParams),re.withCredentials&&(Ye.withCredentials=!0),re.headers.forEach(function(Sn,ir){return Ye.setRequestHeader(Sn,ir.join(","))}),re.headers.has("Accept")||Ye.setRequestHeader("Accept","application/json, text/plain, */*"),!re.headers.has("Content-Type")){var yt=re.detectContentTypeHeader();null!==yt&&Ye.setRequestHeader("Content-Type",yt)}if(re.responseType){var Lt=re.responseType.toLowerCase();Ye.responseType="json"!==Lt?Lt:"text"}var Yt=re.serializeBody(),rn=null,cn=function(){if(null!==rn)return rn;var ir=1223===Ye.status?204:Ye.status,Vt=Ye.statusText||"OK",sn=new M(Ye.getAllResponseHeaders()),pt=function(wt){return"responseURL"in wt&&wt.responseURL?wt.responseURL:/^X-Request-URL:/m.test(wt.getAllResponseHeaders())?wt.getResponseHeader("X-Request-URL"):null}(Ye)||re.url;return rn=new ve({headers:sn,status:ir,statusText:Vt,url:pt})},_n=function(){var ir=cn(),Vt=ir.headers,sn=ir.status,pt=ir.statusText,dt=ir.url,Ue=null;204!==sn&&(Ue=void 0===Ye.response?Ye.responseText:Ye.response),0===sn&&(sn=Ue?200:0);var at=sn>=200&&sn<300;if("json"===re.responseType&&"string"==typeof Ue){var Ce=Ue;Ue=Ue.replace(qt,"");try{Ue=""!==Ue?JSON.parse(Ue):null}catch(Fe){Ue=Ce,at&&(at=!1,Ue={error:Fe,text:Ue})}}at?(Ge.next(new et({body:Ue,headers:Vt,status:sn,statusText:pt,url:dt||void 0})),Ge.complete()):Ge.error(new Ne({error:Ue,headers:Vt,status:sn,statusText:pt,url:dt||void 0}))},xn=function(ir){var Vt=cn(),pt=new Ne({error:ir,status:Ye.status||0,statusText:Ye.statusText||"Unknown Error",url:Vt.url||void 0});Ge.error(pt)},Nn=!1,er=function(ir){Nn||(Ge.next(cn()),Nn=!0);var Vt={type:$.DownloadProgress,loaded:ir.loaded};ir.lengthComputable&&(Vt.total=ir.total),"text"===re.responseType&&!!Ye.responseText&&(Vt.partialText=Ye.responseText),Ge.next(Vt)},wn=function(ir){var Vt={type:$.UploadProgress,loaded:ir.loaded};ir.lengthComputable&&(Vt.total=ir.total),Ge.next(Vt)};return Ye.addEventListener("load",_n),Ye.addEventListener("error",xn),Ye.addEventListener("timeout",xn),Ye.addEventListener("abort",xn),re.reportProgress&&(Ye.addEventListener("progress",er),null!==Yt&&Ye.upload&&Ye.upload.addEventListener("progress",wn)),Ye.send(Yt),Ge.next({type:$.Sent}),function(){Ye.removeEventListener("error",xn),Ye.removeEventListener("abort",xn),Ye.removeEventListener("load",_n),Ye.removeEventListener("timeout",xn),re.reportProgress&&(Ye.removeEventListener("progress",er),null!==Yt&&Ye.upload&&Ye.upload.removeEventListener("progress",wn)),Ye.readyState!==Ye.DONE&&Ye.abort()}})}}]),ot}();return wt.\u0275fac=function(_e){return new(_e||wt)(_.LFG(C.JF))},wt.\u0275prov=_.Yz7({token:wt,factory:wt.\u0275fac}),wt}(),bt=new _.OlP("XSRF_COOKIE_NAME"),nn=new _.OlP("XSRF_HEADER_NAME"),Ut=function wt(){(0,R.Z)(this,wt)},an=function(){var wt=function(){function ot(_e,re,he){(0,R.Z)(this,ot),this.doc=_e,this.platform=re,this.cookieName=he,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return(0,w.Z)(ot,[{key:"getToken",value:function(){if("server"===this.platform)return null;var re=this.doc.cookie||"";return re!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,C.Mx)(re,this.cookieName),this.lastCookieString=re),this.lastToken}}]),ot}();return wt.\u0275fac=function(_e){return new(_e||wt)(_.LFG(C.K0),_.LFG(_.Lbi),_.LFG(bt))},wt.\u0275prov=_.Yz7({token:wt,factory:wt.\u0275fac}),wt}(),An=function(){var wt=function(){function ot(_e,re){(0,R.Z)(this,ot),this.tokenService=_e,this.headerName=re}return(0,w.Z)(ot,[{key:"intercept",value:function(re,he){var Ge=re.url.toLowerCase();if("GET"===re.method||"HEAD"===re.method||Ge.startsWith("http://")||Ge.startsWith("https://"))return he.handle(re);var Ye=this.tokenService.getToken();return null!==Ye&&!re.headers.has(this.headerName)&&(re=re.clone({headers:re.headers.set(this.headerName,Ye)})),he.handle(re)}}]),ot}();return wt.\u0275fac=function(_e){return new(_e||wt)(_.LFG(Ut),_.LFG(nn))},wt.\u0275prov=_.Yz7({token:wt,factory:wt.\u0275fac}),wt}(),Hn=function(){var wt=function(){function ot(_e,re){(0,R.Z)(this,ot),this.backend=_e,this.injector=re,this.chain=null}return(0,w.Z)(ot,[{key:"handle",value:function(re){if(null===this.chain){var he=this.injector.get(Se,[]);this.chain=he.reduceRight(function(Ge,Ye){return new Rt(Ge,Ye)},this.backend)}return this.chain.handle(re)}}]),ot}();return wt.\u0275fac=function(_e){return new(_e||wt)(_.LFG(T),_.LFG(_.zs3))},wt.\u0275prov=_.Yz7({token:wt,factory:wt.\u0275fac}),wt}(),Bn=function(){var wt=function(){function ot(){(0,R.Z)(this,ot)}return(0,w.Z)(ot,null,[{key:"disable",value:function(){return{ngModule:ot,providers:[{provide:An,useClass:Oe}]}}},{key:"withOptions",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:ot,providers:[re.cookieName?{provide:bt,useValue:re.cookieName}:[],re.headerName?{provide:nn,useValue:re.headerName}:[]]}}}]),ot}();return wt.\u0275fac=function(_e){return new(_e||wt)},wt.\u0275mod=_.oAB({type:wt}),wt.\u0275inj=_.cJS({providers:[An,{provide:Se,useExisting:An,multi:!0},{provide:Ut,useClass:an},{provide:bt,useValue:"XSRF-TOKEN"},{provide:nn,useValue:"X-XSRF-TOKEN"}]}),wt}(),En=function(){var wt=function ot(){(0,R.Z)(this,ot)};return wt.\u0275fac=function(_e){return new(_e||wt)},wt.\u0275mod=_.oAB({type:wt}),wt.\u0275inj=_.cJS({providers:[_t,{provide:g,useClass:Hn},jt,{provide:T,useExisting:jt}],imports:[[Bn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),wt}()},65508:function(le,q,f){"use strict";f.d(q,{deG:function(){return fD},tb:function(){return Xg},AFp:function(){return dE},ip1:function(){return Qd},CZH:function(){return Il},hGG:function(){return gR},z2F:function(){return vm},sBO:function(){return LI},Sil:function(){return Tf},_Vd:function(){return kg},EJc:function(){return MC},SBq:function(){return lu},a5r:function(){return nR},qLn:function(){return Tc},vpe:function(){return du},gxx:function(){return sg},tBr:function(){return hh},XFs:function(){return Ye},OlP:function(){return So},zs3:function(){return _a},ZZ4:function(){return Eg},aQg:function(){return Mg},soG:function(){return cm},YKP:function(){return U0},v3s:function(){return ME},h0i:function(){return Bc},PXZ:function(){return FC},R0b:function(){return fu},FiY:function(){return Ou},Lbi:function(){return Kd},g9A:function(){return Ro},n_E:function(){return Hc},Qsj:function(){return vB},FYo:function(){return F0},JOm:function(){return Th},Tiy:function(){return ik},q3G:function(){return xs},tp0:function(){return Pu},EAV:function(){return tR},Rgc:function(){return Gh},dDg:function(){return bE},DyG:function(){return $l},GfV:function(){return ok},s_b:function(){return df},ifc:function(){return wn},eFA:function(){return BC},Ez6:function(){return lr},G48:function(){return TE},Gpc:function(){return ie},f3M:function(){return CD},X6Q:function(){return fm},_c5:function(){return cR},VLi:function(){return W3},c2e:function(){return EC},zSh:function(){return qd},wAp:function(){return Cg},vHH:function(){return oe},EiD:function(){return Sc},mCW:function(){return Up},qzn:function(){return Tl},JVY:function(){return ED},pB0:function(){return CT},eBb:function(){return Ov},L6k:function(){return MD},LAX:function(){return vh},cg1:function(){return Rw},Tjo:function(){return lR},kL8:function(){return VP},yhl:function(){return bT},dqk:function(){return pt},sIi:function(){return Nu},CqO:function(){return a0},QGY:function(){return Fc},F4k:function(){return ew},RDi:function(){return Mn},AaK:function(){return z},z3N:function(){return ru},qOj:function(){return cg},TTD:function(){return Me},_Bn:function(){return TI},xp6:function(){return nO},uIk:function(){return qb},Q2q:function(){return jb},zWS:function(){return fg},Tol:function(){return m0},Gre:function(){return Aw},ekj:function(){return h0},Suo:function(){return Wk},Xpm:function(){return ai},lG2:function(){return bo},Yz7:function(){return Zn},cJS:function(){return Bn},oAB:function(){return Yo},Yjl:function(){return wa},Y36:function(){return Fh},_UZ:function(){return $x},GkF:function(){return r0},BQk:function(){return Bh},ynx:function(){return Gd},qZA:function(){return n0},TgZ:function(){return mg},EpF:function(){return o0},n5z:function(){return ch},Ikx:function(){return Pw},LFG:function(){return Io},$8M:function(){return Cy},NdJ:function(){return s0},CRH:function(){return Gk},kcU:function(){return Eu},O4$:function(){return oh},oxw:function(){return Uh},ALo:function(){return Li},lcZ:function(){return ji},xi3:function(){return Hg},Hsn:function(){return ow},F$t:function(){return iw},Q6J:function(){return hg},s9C:function(){return l0},MGl:function(){return sf},hYB:function(){return _g},DdM:function(){return g3},VKq:function(){return Lk},WLB:function(){return lC},iGM:function(){return zk},MAs:function(){return Lx},evT:function(){return Ld},Jf7:function(){return El},CHM:function(){return J},oJD:function(){return jp},Ckj:function(){return ID},LSH:function(){return Vy},B6R:function(){return Ir},kYT:function(){return fa},Akn:function(){return Dl},Udp:function(){return f0},WFA:function(){return vg},d8E:function(){return Iw},YNc:function(){return Zx},W1O:function(){return Wg},_uU:function(){return T0},Oqu:function(){return x0},hij:function(){return bg},AsE:function(){return w0},lnq:function(){return k0},Gf:function(){return gf}});var U=f(20901),B=f(89200),V=f(88009),Z=f(27235),C=(f(42515),f(99890),f(36683)),_=f(10629),N=f(99740),D=f(14105),O=f(18967),P=f(10509),y=f(97154),g=f(35470);function M(l){var c="function"==typeof Map?new Map:void 0;return(M=function(h){if(null===h||!function(l){return-1!==Function.toString.call(l).indexOf("[native code]")}(h))return h;if("function"!=typeof h)throw new TypeError("Super expression must either be null or a function");if(void 0!==c){if(c.has(h))return c.get(h);c.set(h,v)}function v(){return(0,N.Z)(h,arguments,(0,B.Z)(this).constructor)}return v.prototype=Object.create(h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),(0,g.Z)(v,h)})(l)}var E=f(5051),x=f(68707),S=f(89797),A=f(55371),L=f(16338);function j(l){for(var c in l)if(l[c]===j)return c;throw Error("Could not find renamed property on target object.")}function K(l,c){for(var d in c)c.hasOwnProperty(d)&&!l.hasOwnProperty(d)&&(l[d]=c[d])}function z(l){if("string"==typeof l)return l;if(Array.isArray(l))return"["+l.map(z).join(", ")+"]";if(null==l)return""+l;if(l.overriddenName)return"".concat(l.overriddenName);if(l.name)return"".concat(l.name);var c=l.toString();if(null==c)return""+c;var d=c.indexOf("\n");return-1===d?c:c.substring(0,d)}function Q(l,c){return null==l||""===l?null===c?"":c:null==c||""===c?l:l+" "+c}var ae=j({__forward_ref__:j});function ie(l){return l.__forward_ref__=ie,l.toString=function(){return z(this())},l}function se(l){return ue(l)?l():l}function ue(l){return"function"==typeof l&&l.hasOwnProperty(ae)&&l.__forward_ref__===ie}var oe=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(h,v){var k;return(0,O.Z)(this,d),(k=c.call(this,function(l,c){var d=l?"NG0".concat(l,": "):"";return"".concat(d).concat(c)}(h,v))).code=h,k}return d}(M(Error));function ve(l){return"string"==typeof l?l:null==l?"":String(l)}function et(l){return"function"==typeof l?l.name||l.toString():"object"==typeof l&&null!=l&&"function"==typeof l.type?l.type.name||l.type.toString():ve(l)}function Rt(l,c){var d=c?" in ".concat(c):"";throw new oe("201","No provider for ".concat(et(l)," found").concat(d))}function nn(l,c){null==l&&function(l,c,d,h){throw new Error("ASSERTION ERROR: ".concat(l)+(null==h?"":" [Expected=> ".concat(d," ").concat(h," ").concat(c," <=Actual]")))}(c,l,null,"!=")}function Zn(l){return{token:l.token,providedIn:l.providedIn||null,factory:l.factory,value:void 0}}var lr=Zn;function Bn(l){return{providers:l.providers||[],imports:l.imports||[]}}function En(l){return mr(l,_e)||mr(l,he)}function mr(l,c){return l.hasOwnProperty(c)?l[c]:null}function ot(l){return l&&(l.hasOwnProperty(re)||l.hasOwnProperty(Ge))?l[re]:null}var yt,_e=j({"\u0275prov":j}),re=j({"\u0275inj":j}),he=j({ngInjectableDef:j}),Ge=j({ngInjectorDef:j}),Ye=function(l){return l[l.Default=0]="Default",l[l.Host=1]="Host",l[l.Self=2]="Self",l[l.SkipSelf=4]="SkipSelf",l[l.Optional=8]="Optional",l}({});function Lt(){return yt}function Yt(l){var c=yt;return yt=l,c}function rn(l,c,d){var h=En(l);return h&&"root"==h.providedIn?void 0===h.value?h.value=h.factory():h.value:d&Ye.Optional?null:void 0!==c?c:void Rt(z(l),"Injector")}function _n(l){return{toString:l}.toString()}var xn=function(l){return l[l.OnPush=0]="OnPush",l[l.Default=1]="Default",l}({}),wn=function(l){return l[l.Emulated=0]="Emulated",l[l.None=2]="None",l[l.ShadowDom=3]="ShadowDom",l}({}),Sn="undefined"!=typeof globalThis&&globalThis,ir="undefined"!=typeof window&&window,Vt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,sn="undefined"!=typeof global&&global,pt=Sn||sn||ir||Vt,at={},Ce=[],Fe=j({"\u0275cmp":j}),Ae=j({"\u0275dir":j}),Le=j({"\u0275pipe":j}),ze=j({"\u0275mod":j}),Nt=j({"\u0275loc":j}),mn=j({"\u0275fac":j}),Xn=j({__NG_ELEMENT_ID__:j}),Jr=0;function ai(l){return _n(function(){var d={},h={type:l.type,providersResolver:null,decls:l.decls,vars:l.vars,factory:null,template:l.template||null,consts:l.consts||null,ngContentSelectors:l.ngContentSelectors,hostBindings:l.hostBindings||null,hostVars:l.hostVars||0,hostAttrs:l.hostAttrs||null,contentQueries:l.contentQueries||null,declaredInputs:d,inputs:null,outputs:null,exportAs:l.exportAs||null,onPush:l.changeDetection===xn.OnPush,directiveDefs:null,pipeDefs:null,selectors:l.selectors||Ce,viewQuery:l.viewQuery||null,features:l.features||null,data:l.data||{},encapsulation:l.encapsulation||wn.Emulated,id:"c",styles:l.styles||Ce,_:null,setInput:null,schemas:l.schemas||null,tView:null},v=l.directives,k=l.features,H=l.pipes;return h.id+=Jr++,h.inputs=vs(l.inputs,d),h.outputs=vs(l.outputs),k&&k.forEach(function(W){return W(h)}),h.directiveDefs=v?function(){return("function"==typeof v?v():v).map(vi)}:null,h.pipeDefs=H?function(){return("function"==typeof H?H():H).map(co)}:null,h})}function Ir(l,c,d){var h=l.\u0275cmp;h.directiveDefs=function(){return c.map(vi)},h.pipeDefs=function(){return d.map(co)}}function vi(l){return Yi(l)||function(l){return l[Ae]||null}(l)}function co(l){return function(l){return l[Le]||null}(l)}var Gi={};function Yo(l){return _n(function(){var c={type:l.type,bootstrap:l.bootstrap||Ce,declarations:l.declarations||Ce,imports:l.imports||Ce,exports:l.exports||Ce,transitiveCompileScopes:null,schemas:l.schemas||null,id:l.id||null};return null!=l.id&&(Gi[l.id]=l.type),c})}function fa(l,c){return _n(function(){var d=Fi(l,!0);d.declarations=c.declarations||Ce,d.imports=c.imports||Ce,d.exports=c.exports||Ce})}function vs(l,c){if(null==l)return at;var d={};for(var h in l)if(l.hasOwnProperty(h)){var v=l[h],k=v;Array.isArray(v)&&(k=v[1],v=v[0]),d[v]=h,c&&(c[v]=k)}return d}var bo=ai;function wa(l){return{type:l.type,name:l.name,factory:null,pure:!1!==l.pure,onDestroy:l.type.prototype.ngOnDestroy||null}}function Yi(l){return l[Fe]||null}function Fi(l,c){var d=l[ze]||null;if(!d&&!0===c)throw new Error("Type ".concat(z(l)," does not have '\u0275mod' property."));return d}function ui(l){return Array.isArray(l)&&"object"==typeof l[1]}function Fo(l){return Array.isArray(l)&&!0===l[1]}function pl(l){return 0!=(8&l.flags)}function ns(l){return 2==(2&l.flags)}function _s(l){return 1==(1&l.flags)}function Qo(l){return null!==l.template}function fl(l){return 0!=(512&l[2])}function He(l,c){return l.hasOwnProperty(mn)?l[mn]:null}var Pe=function(){function l(c,d,h){(0,O.Z)(this,l),this.previousValue=c,this.currentValue=d,this.firstChange=h}return(0,D.Z)(l,[{key:"isFirstChange",value:function(){return this.firstChange}}]),l}();function Me(){return Ve}function Ve(l){return l.type.prototype.ngOnChanges&&(l.setInput=Ft),we}function we(){var l=zn(this),c=null==l?void 0:l.current;if(c){var d=l.previous;if(d===at)l.previous=c;else for(var h in c)d[h]=c[h];l.current=null,this.ngOnChanges(c)}}function Ft(l,c,d,h){var v=zn(l)||function(l,c){return l[Tn]=c}(l,{previous:at,current:null}),k=v.current||(v.current={}),H=v.previous,W=this.declaredInputs[d],X=H[W];k[W]=new Pe(X&&X.currentValue,c,H===at),l[h]=c}Me.ngInherit=!0;var Tn="__ngSimpleChanges__";function zn(l){return l[Tn]||null}var mt="http://www.w3.org/2000/svg",ln=void 0;function Mn(l){ln=l}function nr(){return void 0!==ln?ln:"undefined"!=typeof document?document:void 0}function _r(l){return!!l.listen}var Bt={createRenderer:function(c,d){return nr()}};function ci(l){for(;Array.isArray(l);)l=l[0];return l}function Ci(l,c){return ci(c[l])}function Hi(l,c){return ci(c[l.index])}function Ua(l,c){return l.data[c]}function Ha(l,c){return l[c]}function oa(l,c){var d=c[l];return ui(d)?d:d[0]}function bs(l){return 4==(4&l[2])}function Tp(l){return 128==(128&l[2])}function Hs(l,c){return null==c?null:l[c]}function uc(l){l[18]=0}function vl(l,c){l[5]+=c;for(var d=l,h=l[3];null!==h&&(1===c&&1===d[5]||-1===c&&0===d[5]);)h[5]+=c,d=h,h=h[3]}var Nr={lFrame:Cn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function _d(){return Nr.bindingsEnabled}function ge(){return Nr.lFrame.lView}function me(){return Nr.lFrame.tView}function J(l){return Nr.lFrame.contextLView=l,l[8]}function ee(){for(var l=Te();null!==l&&64===l.type;)l=l.parent;return l}function Te(){return Nr.lFrame.currentTNode}function ut(l,c){var d=Nr.lFrame;d.currentTNode=l,d.isParent=c}function Tt(){return Nr.lFrame.isParent}function Zt(){Nr.lFrame.isParent=!1}function Pn(){return Nr.isInCheckNoChangesMode}function Un(l){Nr.isInCheckNoChangesMode=l}function $n(){var l=Nr.lFrame,c=l.bindingRootIndex;return-1===c&&(c=l.bindingRootIndex=l.tView.bindingStartIndex),c}function yr(){return Nr.lFrame.bindingIndex}function wr(){return Nr.lFrame.bindingIndex++}function Or(l){var c=Nr.lFrame,d=c.bindingIndex;return c.bindingIndex=c.bindingIndex+l,d}function si(l,c){var d=Nr.lFrame;d.bindingIndex=d.bindingRootIndex=l,Re(c)}function Re(l){Nr.lFrame.currentDirectiveIndex=l}function We(l){var c=Nr.lFrame.currentDirectiveIndex;return-1===c?null:l[c]}function be(){return Nr.lFrame.currentQueryIndex}function Ze(l){Nr.lFrame.currentQueryIndex=l}function De(l){var c=l[1];return 2===c.type?c.declTNode:1===c.type?l[6]:null}function rt(l,c,d){if(d&Ye.SkipSelf){for(var h=c,v=l;!(null!==(h=h.parent)||d&Ye.Host||null===(h=De(v))||(v=v[15],10&h.type)););if(null===h)return!1;c=h,l=v}var k=Nr.lFrame=un();return k.currentTNode=c,k.lView=l,!0}function St(l){var c=un(),d=l[1];Nr.lFrame=c,c.currentTNode=d.firstChild,c.lView=l,c.tView=d,c.contextLView=l,c.bindingIndex=d.bindingStartIndex,c.inI18n=!1}function un(){var l=Nr.lFrame,c=null===l?null:l.child;return null===c?Cn(l):c}function Cn(l){var c={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:l,child:null,inI18n:!1};return null!==l&&(l.child=c),c}function Mr(){var l=Nr.lFrame;return Nr.lFrame=l.parent,l.currentTNode=null,l.lView=null,l}var Oi=Mr;function Ho(){var l=Mr();l.isParent=!0,l.tView=null,l.selectedIndex=-1,l.contextLView=null,l.elementDepthCount=0,l.currentDirectiveIndex=-1,l.currentNamespace=null,l.bindingRootIndex=-1,l.bindingIndex=-1,l.currentQueryIndex=0}function ha(l){return(Nr.lFrame.contextLView=function(l,c){for(;l>0;)c=c[15],l--;return c}(l,Nr.lFrame.contextLView))[8]}function go(){return Nr.lFrame.selectedIndex}function is(l){Nr.lFrame.selectedIndex=l}function to(){var l=Nr.lFrame;return Ua(l.tView,l.selectedIndex)}function oh(){Nr.lFrame.currentNamespace=mt}function Eu(){Nr.lFrame.currentNamespace=null}function Oo(l,c){for(var d=c.directiveStart,h=c.directiveEnd;d=h)break}else c[X]<0&&(l[18]+=65536),(W>11>16&&(3&l[2])===c){l[2]+=2048;try{k.call(W)}finally{}}}else try{k.call(W)}finally{}}var Vi=function l(c,d,h){(0,O.Z)(this,l),this.factory=c,this.resolving=!1,this.canSeeViewProviders=d,this.injectImpl=h};function qs(l,c,d){for(var h=_r(l),v=0;vc){H=k-1;break}}}for(;k>16}(l),h=c;d>0;)h=h[15],d--;return h}var KS=!0;function gy(l){var c=KS;return KS=l,c}var uF=0;function lh(l,c){var d=$S(l,c);if(-1!==d)return d;var h=c[1];h.firstCreatePass&&(l.injectorIndex=c.length,XS(h.data,l),XS(c,null),XS(h.blueprint,null));var v=_y(l,c),k=l.injectorIndex;if(lD(v))for(var H=sh(v),W=Op(v,c),X=W[1].data,fe=0;fe<8;fe++)c[k+fe]=W[H+fe]|X[H+fe];return c[k+8]=v,k}function XS(l,c){l.push(0,0,0,0,0,0,0,0,c)}function $S(l,c){return-1===l.injectorIndex||l.parent&&l.parent.injectorIndex===l.injectorIndex||null===c[l.injectorIndex+8]?-1:l.injectorIndex}function _y(l,c){if(l.parent&&-1!==l.parent.injectorIndex)return l.parent.injectorIndex;for(var d=0,h=null,v=c;null!==v;){var k=v[1],H=k.type;if(null===(h=2===H?k.declTNode:1===H?v[6]:null))return-1;if(d++,v=v[15],-1!==h.injectorIndex)return h.injectorIndex|d<<16}return-1}function _v(l,c,d){!function(l,c,d){var h;"string"==typeof d?h=d.charCodeAt(0)||0:d.hasOwnProperty(Xn)&&(h=d[Xn]),null==h&&(h=d[Xn]=uF++);var v=255&h;c.data[l+(v>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:Ye.Default,v=arguments.length>4?arguments[4]:void 0;if(null!==l){var k=bv(d);if("function"==typeof k){if(!rt(c,l,h))return h&Ye.Host?eT(v,d,h):yy(c,d,h,v);try{var H=k(h);if(null!=H||h&Ye.Optional)return H;Rt(d)}finally{Oi()}}else if("number"==typeof k){var W=null,X=$S(l,c),fe=-1,ke=h&Ye.Host?c[16][6]:null;for((-1===X||h&Ye.SkipSelf)&&(-1!==(fe=-1===X?_y(l,c):c[X+8])&&iT(h,!1)?(W=c[1],X=sh(fe),c=Op(fe,c)):X=-1);-1!==X;){var Ke=c[1];if(rT(k,X,Ke.data)){var Je=nT(X,c,d,W,h,ke);if(Je!==tT)return Je}-1!==(fe=c[X+8])&&iT(h,c[1].data[X+8]===ke)&&rT(k,X,c)?(W=Ke,X=sh(fe),c=Op(fe,c)):X=-1}}}return yy(c,d,h,v)}var tT={};function pD(){return new Cd(ee(),ge())}function nT(l,c,d,h,v,k){var H=c[1],W=H.data[l+8],ke=uh(W,H,d,null==h?ns(W)&&KS:h!=H&&0!=(3&W.type),v&Ye.Host&&k===W);return null!==ke?Au(c,H,ke,W):tT}function uh(l,c,d,h,v){for(var k=l.providerIndexes,H=c.data,W=1048575&k,X=l.directiveStart,ke=k>>20,Je=v?W+ke:l.directiveEnd,ft=h?W:W+ke;ft=X&&At.type===d)return ft}if(v){var Gt=H[X];if(Gt&&Qo(Gt)&&Gt.type===d)return X}return null}function Au(l,c,d,h){var v=l[d],k=c.data;if(function(l){return l instanceof Vi}(v)){var H=v;H.resolving&&function(l,c){throw new oe("200","Circular dependency in DI detected for ".concat(l).concat(""))}(et(k[d]));var W=gy(H.canSeeViewProviders);H.resolving=!0;var X=H.injectImpl?Yt(H.injectImpl):null;rt(l,h,Ye.Default);try{v=l[d]=H.factory(void 0,k,l,h),c.firstCreatePass&&d>=h.directiveStart&&function(l,c,d){var h=c.type.prototype,k=h.ngOnInit,H=h.ngDoCheck;if(h.ngOnChanges){var W=Ve(c);(d.preOrderHooks||(d.preOrderHooks=[])).push(l,W),(d.preOrderCheckHooks||(d.preOrderCheckHooks=[])).push(l,W)}k&&(d.preOrderHooks||(d.preOrderHooks=[])).push(0-l,k),H&&((d.preOrderHooks||(d.preOrderHooks=[])).push(l,H),(d.preOrderCheckHooks||(d.preOrderCheckHooks=[])).push(l,H))}(d,k[d],c)}finally{null!==X&&Yt(X),gy(W),H.resolving=!1,Oi()}}return v}function bv(l){if("string"==typeof l)return l.charCodeAt(0)||0;var c=l.hasOwnProperty(Xn)?l[Xn]:void 0;return"number"==typeof c?c>=0?255&c:pD:c}function rT(l,c,d){return!!(d[c+(l>>5)]&1<=l.length?l.push(d):l.splice(c,0,d)}function wd(l,c){return c>=l.length-1?l.pop():l.splice(c,1)[0]}function mc(l,c){for(var d=[],h=0;h=0?l[1|h]=d:function(l,c,d,h){var v=l.length;if(v==c)l.push(d,h);else if(1===v)l.push(h,l[0]),l[0]=d;else{for(v--,l.push(l[v-1],l[v]);v>c;)l[v]=l[v-2],v--;l[c]=d,l[c+1]=h}}(l,h=~h,c,d),h}function ph(l,c){var d=kd(l,c);if(d>=0)return l[1|d]}function kd(l,c){return function(l,c,d){for(var h=0,v=l.length>>d;v!==h;){var k=h+(v-h>>1),H=l[k<c?v=k:h=k+1}return~(v<1&&void 0!==arguments[1]?arguments[1]:Ye.Default;if(void 0===Rp)throw new Error("inject() must be called from an injection context");return null===Rp?rn(l,void 0,c):Rp.get(l,c&Ye.Optional?null:void 0,c)}function Io(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ye.Default;return(Lt()||bD)(se(l),c)}var CD=Io;function Dd(l){for(var c=[],d=0;d3&&void 0!==arguments[3]?arguments[3]:null;l=l&&"\n"===l.charAt(0)&&"\u0275"==l.charAt(1)?l.substr(2):l;var v=z(c);if(Array.isArray(c))v=c.map(z).join(" -> ");else if("object"==typeof c){var k=[];for(var H in c)if(c.hasOwnProperty(H)){var W=c[H];k.push(H+":"+("string"==typeof W?JSON.stringify(W):z(W)))}v="{".concat(k.join(", "),"}")}return"".concat(d).concat(h?"("+h+")":"","[").concat(v,"]: ").concat(l.replace(yl,"\n "))}("\n"+l.message,v,d,h),l.ngTokenPath=v,l[Md]=null,l}var vc,Id,hh=Np(fc("Inject",function(c){return{token:c}}),-1),Ou=Np(fc("Optional"),8),Pu=Np(fc("SkipSelf"),4);function Sl(l){var c;return(null===(c=function(){if(void 0===vc&&(vc=null,pt.trustedTypes))try{vc=pt.trustedTypes.createPolicy("angular",{createHTML:function(c){return c},createScript:function(c){return c},createScriptURL:function(c){return c}})}catch(l){}return vc}())||void 0===c?void 0:c.createHTML(l))||l}function tu(l){var c;return(null===(c=function(){if(void 0===Id&&(Id=null,pt.trustedTypes))try{Id=pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(c){return c},createScript:function(c){return c},createScriptURL:function(c){return c}})}catch(l){}return Id}())||void 0===c?void 0:c.createHTML(l))||l}var js=function(){function l(c){(0,O.Z)(this,l),this.changingThisBreaksApplicationSecurity=c}return(0,D.Z)(l,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),l}(),Fp=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,O.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"HTML"}}]),d}(js),yc=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,O.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"Style"}}]),d}(js),yT=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,O.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"Script"}}]),d}(js),Ry=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,O.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"URL"}}]),d}(js),kD=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,O.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),d}(js);function ru(l){return l instanceof js?l.changingThisBreaksApplicationSecurity:l}function Tl(l,c){var d=bT(l);if(null!=d&&d!==c){if("ResourceURL"===d&&"URL"===c)return!0;throw new Error("Required a safe ".concat(c,", got a ").concat(d," (see https://g.co/ng/security#xss)"))}return d===c}function bT(l){return l instanceof js&&l.getTypeName()||null}function ED(l){return new Fp(l)}function MD(l){return new yc(l)}function Ov(l){return new yT(l)}function vh(l){return new Ry(l)}function CT(l){return new kD(l)}var AD=function(){function l(c){(0,O.Z)(this,l),this.inertDocumentHelper=c}return(0,D.Z)(l,[{key:"getInertBodyElement",value:function(d){d=""+d;try{var h=(new window.DOMParser).parseFromString(Sl(d),"text/html").body;return null===h?this.inertDocumentHelper.getInertBodyElement(d):(h.removeChild(h.firstChild),h)}catch(v){return null}}}]),l}(),Ny=function(){function l(c){if((0,O.Z)(this,l),this.defaultDoc=c,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var d=this.inertDocument.createElement("html");this.inertDocument.appendChild(d);var h=this.inertDocument.createElement("body");d.appendChild(h)}}return(0,D.Z)(l,[{key:"getInertBodyElement",value:function(d){var h=this.inertDocument.createElement("template");if("content"in h)return h.innerHTML=Sl(d),h;var v=this.inertDocument.createElement("body");return v.innerHTML=Sl(d),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(v),v}},{key:"stripCustomNsAttrs",value:function(d){for(var h=d.attributes,v=h.length-1;0"),!0}},{key:"endElement",value:function(d){var h=d.nodeName.toLowerCase();Pv.hasOwnProperty(h)&&!Fy.hasOwnProperty(h)&&(this.buf.push(""))}},{key:"chars",value:function(d){this.buf.push(Hy(d))}},{key:"checkClobberedElement",value:function(d,h){if(h&&(d.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(d.outerHTML));return h}}]),l}(),PD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wT=/([^\#-~ |!])/g;function Hy(l){return l.replace(/&/g,"&").replace(PD,function(c){return"&#"+(1024*(c.charCodeAt(0)-55296)+(c.charCodeAt(1)-56320)+65536)+";"}).replace(wT,function(c){return"&#"+c.charCodeAt(0)+";"}).replace(//g,">")}function Sc(l,c){var d=null;try{gh=gh||function(l){var c=new Ny(l);return function(){try{return!!(new window.DOMParser).parseFromString(Sl(""),"text/html")}catch(l){return!1}}()?new AD(c):c}(l);var h=c?String(c):"";d=gh.getInertBodyElement(h);var v=5,k=h;do{if(0===v)throw new Error("Failed to sanitize html because the input is unstable");v--,h=k,k=d.innerHTML,d=gh.getInertBodyElement(h)}while(h!==k);return Sl((new Uy).sanitizeChildren(qp(d)||d))}finally{if(d)for(var X=qp(d)||d;X.firstChild;)X.removeChild(X.firstChild)}}function qp(l){return"content"in l&&function(l){return l.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===l.nodeName}(l)?l.content:null}var xs=function(l){return l[l.NONE=0]="NONE",l[l.HTML=1]="HTML",l[l.STYLE=2]="STYLE",l[l.SCRIPT=3]="SCRIPT",l[l.URL=4]="URL",l[l.RESOURCE_URL=5]="RESOURCE_URL",l}({});function jp(l){var c=wl();return c?tu(c.sanitize(xs.HTML,l)||""):Tl(l,"HTML")?tu(ru(l)):Sc(nr(),ve(l))}function ID(l){var c=wl();return c?c.sanitize(xs.STYLE,l)||"":Tl(l,"Style")?ru(l):ve(l)}function Vy(l){var c=wl();return c?c.sanitize(xs.URL,l)||"":Tl(l,"URL")?ru(l):Up(ve(l))}function wl(){var l=ge();return l&&l[12]}var MT="__ngContext__";function Da(l,c){l[MT]=c}function jy(l){var c=function(l){return l[MT]||null}(l);return c?Array.isArray(c)?c:c.lView:null}function bh(l){return l.ngOriginalError}function Ch(l){for(var c=arguments.length,d=new Array(c>1?c-1:0),h=1;h0&&(l[d-1][4]=h[4]);var k=wd(l,10+c);!function(l,c){Mh(l,c,c[11],2,null,null),c[0]=null,c[6]=null}(h[1],h);var H=k[19];null!==H&&H.detachView(k[1]),h[3]=null,h[4]=null,h[2]&=-129}return h}}function ab(l,c){if(!(256&c[2])){var d=c[11];_r(d)&&d.destroyNode&&Mh(l,c,d,3,null,null),function(l){var c=l[13];if(!c)return sb(l[1],l);for(;c;){var d=null;if(ui(c))d=c[13];else{var h=c[10];h&&(d=h)}if(!d){for(;c&&!c[4]&&c!==l;)ui(c)&&sb(c[1],c),c=c[3];null===c&&(c=l),ui(c)&&sb(c[1],c),d=c&&c[4]}c=d}}(c)}}function sb(l,c){if(!(256&c[2])){c[2]&=-129,c[2]|=256,function(l,c){var d;if(null!=l&&null!=(d=l.destroyHooks))for(var h=0;h=0?h[v=fe]():h[v=-fe].unsubscribe(),k+=2}else{var ke=h[v=d[k+1]];d[k].call(ke)}if(null!==h){for(var Ke=v+1;Kek?"":v[Ke+1].toLowerCase();var ft=8&h?Je:null;if(ft&&-1!==Hd(ft,fe,0)||2&h&&fe!==Je){if(Ms(h))return!1;H=!0}}}}else{if(!H&&!Ms(h)&&!Ms(X))return!1;if(H&&Ms(X))continue;H=!1,h=X|1&h}}return Ms(h)||H}function Ms(l){return 0==(1&l)}function QD(l,c,d,h){if(null===c)return-1;var v=0;if(h||!d){for(var k=!1;v-1)for(d++;d2&&void 0!==arguments[2]&&arguments[2],h=0;h0?'="'+W+'"':"")+"]"}else 8&h?v+="."+H:4&h&&(v+=" "+H);else""!==v&&!Ms(H)&&(c+=mb(k,v),v=""),h=H,k=k||!Ms(h);d++}return""!==v&&(c+=mb(k,v)),c}var jr={};function nO(l){rO(me(),ge(),go()+l,Pn())}function rO(l,c,d,h){if(!h)if(3==(3&c[2])){var k=l.preOrderCheckHooks;null!==k&&Mu(c,k,d)}else{var H=l.preOrderHooks;null!==H&&dc(c,H,0,d)}is(d)}function vb(l,c){return l<<17|c<<2}function ou(l){return l>>17&32767}function gb(l){return 2|l}function Ga(l){return(131068&l)>>2}function WT(l,c){return-131069&l|c<<2}function GT(l){return 1|l}function xb(l,c){var d=l.contentQueries;if(null!==d)for(var h=0;h20&&rO(l,c,20,Pn()),d(h,v)}finally{is(k)}}function XT(l,c,d){if(pl(c))for(var v=c.directiveEnd,k=c.directiveStart;k2&&void 0!==arguments[2]?arguments[2]:Hi,h=c.localNames;if(null!==h)for(var v=c.index+1,k=0;k0;){var d=l[--c];if("number"==typeof d&&d<0)return d}return 0})(W)!=X&&W.push(X),W.push(h,v,H)}}function sx(l,c){null!==l.hostBindings&&l.hostBindings(1,c)}function lx(l,c){c.flags|=2,(l.components||(l.components=[])).push(c.index)}function LF(l,c,d){if(d){if(c.exportAs)for(var h=0;h0&&ux(d)}}function ux(l){for(var c=rb(l);null!==c;c=Uv(c))for(var d=10;d0&&ux(h)}var H=l[1].components;if(null!==H)for(var W=0;W0&&ux(X)}}function SO(l,c){var d=oa(c,l),h=d[1];(function(l,c){for(var d=c.length;d1&&void 0!==arguments[1]?arguments[1]:fh;if(h===fh){var v=new Error("NullInjectorError: No provider for ".concat(z(d),"!"));throw v.name="NullInjectorError",v}return h}}]),l}(),qd=new So("Set Injector scope."),jd={},Oc={},Nb=void 0;function yx(){return void 0===Nb&&(Nb=new _x),Nb}function bx(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,h=arguments.length>3?arguments[3]:void 0;return new MO(l,d,c||yx(),h)}var MO=function(){function l(c,d,h){var v=this,k=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,O.Z)(this,l),this.parent=h,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var H=[];d&&Ts(d,function(X){return v.processProvider(X,c,d)}),Ts([c],function(X){return v.processInjectorType(X,[],H)}),this.records.set(sg,Pc(void 0,this));var W=this.records.get(qd);this.scope=null!=W?W.value:null,this.source=k||("object"==typeof c?null:z(c))}return(0,D.Z)(l,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(d){return d.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(d){var h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fh,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ye.Default;this.assertNotDestroyed();var k=Mv(this),H=Yt(void 0);try{if(!(v&Ye.SkipSelf)){var W=this.records.get(d);if(void 0===W){var X=QF(d)&&En(d);W=X&&this.injectableDefInScope(X)?Pc(Zb(d),jd):null,this.records.set(d,W)}if(null!=W)return this.hydrate(d,W)}var fe=v&Ye.Self?yx():this.parent;return fe.get(d,h=v&Ye.Optional&&h===fh?null:h)}catch(Ke){if("NullInjectorError"===Ke.name){var ke=Ke[Md]=Ke[Md]||[];if(ke.unshift(z(d)),k)throw Ke;return hT(Ke,d,"R3InjectorError",this.source)}throw Ke}finally{Yt(H),Mv(k)}}},{key:"_resolveInjectorDefTypes",value:function(){var d=this;this.injectorDefTypes.forEach(function(h){return d.get(h)})}},{key:"toString",value:function(){var d=[];return this.records.forEach(function(v,k){return d.push(z(k))}),"R3Injector[".concat(d.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(d,h,v){var k=this;if(!(d=se(d)))return!1;var H=ot(d),W=null==H&&d.ngModule||void 0,X=void 0===W?d:W,Ke=-1!==v.indexOf(X);if(void 0!==W&&(H=ot(W)),null==H)return!1;if(null!=H.imports&&!Ke){var Je;v.push(X);try{Ts(H.imports,function(yn){k.processInjectorType(yn,h,v)&&(void 0===Je&&(Je=[]),Je.push(yn))})}finally{}if(void 0!==Je)for(var ft=function(tr){var fr=Je[tr],Qr=fr.ngModule,Mi=fr.providers;Ts(Mi,function(io){return k.processProvider(io,Qr,Mi||Ce)})},At=0;At0){var d=mc(c,"?");throw new Error("Can't resolve all parameters for ".concat(z(l),": (").concat(d.join(", "),")."))}var h=function(l){var c=l&&(l[_e]||l[he]);if(c){var d=function(l){if(l.hasOwnProperty("name"))return l.name;var c=(""+l).match(/^function\s*([^\s(]+)/);return null===c?"":c[1]}(l);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(d,'" 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(d,'" class.')),c}return null}(l);return null!==h?function(){return h.factory(l)}:function(){return new l}}(l);throw new Error("unreachable")}function Cx(l,c,d){var h=void 0;if(Ih(l)){var v=se(l);return He(v)||Zb(v)}if(Oa(l))h=function(){return se(l.useValue)};else if(function(l){return!(!l||!l.useFactory)}(l))h=function(){return l.useFactory.apply(l,(0,_.Z)(Dd(l.deps||[])))};else if(function(l){return!(!l||!l.useExisting)}(l))h=function(){return Io(se(l.useExisting))};else{var k=se(l&&(l.useClass||l.provide));if(!function(l){return!!l.deps}(l))return He(k)||Zb(k);h=function(){return(0,N.Z)(k,(0,_.Z)(Dd(l.deps)))}}return h}function Pc(l,c){var d=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:l,value:c,multi:d?[]:void 0}}function Oa(l){return null!==l&&"object"==typeof l&&Ev in l}function Ih(l){return"function"==typeof l}function QF(l){return"function"==typeof l||"object"==typeof l&&l instanceof So}var IO=function(l,c,d){return function(l){var v=bx(l,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 v._resolveInjectorDefTypes(),v}({name:d},c,l,d)},_a=function(){var l=function(){function c(){(0,O.Z)(this,c)}return(0,D.Z)(c,null,[{key:"create",value:function(h,v){return Array.isArray(h)?IO(h,v,""):IO(h.providers,h.parent,h.name||"")}}]),c}();return l.THROW_IF_NOT_FOUND=fh,l.NULL=new _x,l.\u0275prov=Zn({token:l,providedIn:"any",factory:function(){return Io(sg)}}),l.__NG_ELEMENT_ID__=-1,l}();function zO(l,c){Oo(jy(l)[1],ee())}function cg(l){for(var c=function(l){return Object.getPrototypeOf(l.prototype).constructor}(l.type),d=!0,h=[l];c;){var v=void 0;if(Qo(l))v=c.\u0275cmp||c.\u0275dir;else{if(c.\u0275cmp)throw new Error("Directives cannot inherit Components");v=c.\u0275dir}if(v){if(d){h.push(v);var k=l;k.inputs=Hb(l.inputs),k.declaredInputs=Hb(l.declaredInputs),k.outputs=Hb(l.outputs);var H=v.hostBindings;H&&GO(l,H);var W=v.viewQuery,X=v.contentQueries;if(W&&Vb(l,W),X&&WO(l,X),K(l.inputs,v.inputs),K(l.declaredInputs,v.declaredInputs),K(l.outputs,v.outputs),Qo(v)&&v.data.animation){var fe=l.data;fe.animation=(fe.animation||[]).concat(v.data.animation)}}var ke=v.features;if(ke)for(var Ke=0;Ke=0;h--){var v=l[h];v.hostVars=c+=v.hostVars,v.hostAttrs=vy(v.hostAttrs,d=vy(d,v.hostAttrs))}}(h)}function Hb(l){return l===at?{}:l===Ce?[]:l}function Vb(l,c){var d=l.viewQuery;l.viewQuery=d?function(h,v){c(h,v),d(h,v)}:c}function WO(l,c){var d=l.contentQueries;l.contentQueries=d?function(h,v,k){c(h,v,k),d(h,v,k)}:c}function GO(l,c){var d=l.hostBindings;l.hostBindings=d?function(h,v){c(h,v),d(h,v)}:c}var dg=null;function Ic(){if(!dg){var l=pt.Symbol;if(l&&l.iterator)dg=l.iterator;else for(var c=Object.getOwnPropertyNames(Map.prototype),d=0;d1&&void 0!==arguments[1]?arguments[1]:Ye.Default,d=ge();if(null===d)return Io(l,c);var h=ee();return yv(h,d,se(l),c)}function hg(l,c,d){var h=ge();return ya(h,wr(),c)&&As(me(),to(),h,l,c,h[11],d,!1),hg}function t0(l,c,d,h,v){var H=v?"class":"style";Rb(l,d,c.inputs[H],H,h)}function mg(l,c,d,h){var v=ge(),k=me(),H=20+l,W=v[11],X=v[H]=ib(W,c,Nr.lFrame.currentNamespace),fe=k.firstCreatePass?function(l,c,d,h,v,k,H){var W=c.consts,fe=Vd(c,l,2,v,Hs(W,k));return Ob(c,d,fe,Hs(W,H)),null!==fe.attrs&&ag(fe,fe.attrs,!1),null!==fe.mergedAttrs&&ag(fe,fe.mergedAttrs,!0),null!==c.queries&&c.queries.elementStart(c,fe),fe}(H,k,v,0,c,d,h):k.data[H];ut(fe,!0);var ke=fe.mergedAttrs;null!==ke&&qs(W,X,ke);var Ke=fe.classes;null!==Ke&&fb(W,X,Ke);var Je=fe.styles;null!==Je&&pb(W,X,Je),64!=(64&fe.flags)&&Wv(k,v,X,fe),0===Nr.lFrame.elementDepthCount&&Da(X,v),Nr.lFrame.elementDepthCount++,_s(fe)&&(tg(k,v,fe),XT(k,fe,v)),null!==h&&Mb(v,fe)}function n0(){var l=ee();Tt()?Zt():ut(l=l.parent,!1);var c=l;Nr.lFrame.elementDepthCount--;var d=me();d.firstCreatePass&&(Oo(d,l),pl(l)&&d.queries.elementEnd(l)),null!=c.classesWithoutHost&&function(l){return 0!=(16&l.flags)}(c)&&t0(d,c,ge(),c.classesWithoutHost,!0),null!=c.stylesWithoutHost&&function(l){return 0!=(32&l.flags)}(c)&&t0(d,c,ge(),c.stylesWithoutHost,!1)}function $x(l,c,d,h){mg(l,c,d,h),n0()}function Gd(l,c,d){var h=ge(),v=me(),k=l+20,H=v.firstCreatePass?function(l,c,d,h,v){var k=c.consts,H=Hs(k,h),W=Vd(c,l,8,"ng-container",H);return null!==H&&ag(W,H,!0),Ob(c,d,W,Hs(k,v)),null!==c.queries&&c.queries.elementStart(c,W),W}(k,v,h,c,d):v.data[k];ut(H,!0);var W=h[k]=h[11].createComment("");Wv(v,h,W,H),Da(W,h),_s(H)&&(tg(v,h,H),XT(v,H,h)),null!=d&&Mb(h,H)}function Bh(){var l=ee(),c=me();Tt()?Zt():ut(l=l.parent,!1),c.firstCreatePass&&(Oo(c,l),pl(l)&&c.queries.elementEnd(l))}function r0(l,c,d){Gd(l,c,d),Bh()}function o0(){return ge()}function Fc(l){return!!l&&"function"==typeof l.then}function ew(l){return!!l&&"function"==typeof l.subscribe}var a0=ew;function s0(l,c,d,h){var v=ge(),k=me(),H=ee();return tw(k,v,v[11],H,l,c,!!d,h),s0}function vg(l,c){var d=ee(),h=ge(),v=me();return tw(v,h,mx(We(v.data),d,h),d,l,c,!1),vg}function tw(l,c,d,h,v,k,H,W){var X=_s(h),ke=l.firstCreatePass&&hx(l),Ke=c[8],Je=xO(c),ft=!0;if(3&h.type||W){var At=Hi(h,c),Gt=W?W(At):At,vn=Je.length,Fn=W?function(Qc){return W(ci(Qc[h.index]))}:h.index;if(_r(d)){var yn=null;if(!W&&X&&(yn=function(l,c,d,h){var v=l.cleanup;if(null!=v)for(var k=0;kX?W[X]:null}"string"==typeof H&&(k+=2)}return null}(l,c,v,h.index)),null!==yn)(yn.__ngLastListenerFn__||yn).__ngNextListenerFn__=k,yn.__ngLastListenerFn__=k,ft=!1;else{k=gg(h,c,Ke,k,!1);var fr=d.listen(Gt,v,k);Je.push(k,fr),ke&&ke.push(v,Fn,vn,vn+1)}}else k=gg(h,c,Ke,k,!0),Gt.addEventListener(v,k,H),Je.push(k),ke&&ke.push(v,Fn,vn,H)}else k=gg(h,c,Ke,k,!1);var Mi,Qr=h.outputs;if(ft&&null!==Qr&&(Mi=Qr[v])){var io=Mi.length;if(io)for(var ta=0;ta0&&void 0!==arguments[0]?arguments[0]:1;return ha(l)}function rw(l,c){for(var d=null,h=function(l){var c=l.attrs;if(null!=c){var d=c.indexOf(5);if(0==(1&d))return c[d+1]}return null}(l),v=0;v1&&void 0!==arguments[1]?arguments[1]:0,d=arguments.length>2?arguments[2]:void 0,h=ge(),v=me(),k=Vd(v,20+l,16,null,d||null);null===k.projection&&(k.projection=c),Zt(),64!=(64&k.flags)&&zD(v,h,k)}function l0(l,c,d){return sf(l,"",c,"",d),l0}function sf(l,c,d,h,v){var k=ge(),H=ef(k,c,d,h);return H!==jr&&As(me(),to(),k,l,H,k[11],v,!1),sf}function _g(l,c,d,h,v,k,H){var W=ge(),X=tf(W,c,d,h,v,k);return X!==jr&&As(me(),to(),W,l,X,W[11],H,!1),_g}function fw(l,c,d,h,v){for(var k=l[d+1],H=null===c,W=h?ou(k):Ga(k),X=!1;0!==W&&(!1===X||H);){var ke=l[W+1];SP(l[W],c)&&(X=!0,l[W+1]=h?GT(ke):gb(ke)),W=h?ou(ke):Ga(ke)}X&&(l[d+1]=h?gb(k):GT(k))}function SP(l,c){return null===l||null==c||(Array.isArray(l)?l[1]:l)===c||!(!Array.isArray(l)||"string"!=typeof c)&&kd(l,c)>=0}var $o={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function hw(l){return l.substring($o.key,$o.keyEnd)}function mw(l){return l.substring($o.value,$o.valueEnd)}function p0(l,c){var d=$o.textEnd;return d===c?-1:(c=$o.keyEnd=function(l,c,d){for(;c32;)c++;return c}(l,$o.key=c,d),Yd(l,c,d))}function gw(l,c){var d=$o.textEnd,h=$o.key=Yd(l,c,d);return d===h?-1:(h=$o.keyEnd=function(l,c,d){for(var h;c=65&&(-33&h)<=90||h>=48&&h<=57);)c++;return c}(l,h,d),h=yw(l,h,d),h=$o.value=Yd(l,h,d),h=$o.valueEnd=function(l,c,d){for(var h=-1,v=-1,k=-1,H=c,W=H;H32&&(W=H),k=v,v=h,h=-33&X}return W}(l,h,d),yw(l,h,d))}function _w(l){$o.key=0,$o.keyEnd=0,$o.value=0,$o.valueEnd=0,$o.textEnd=l.length}function Yd(l,c,d){for(;c=0;d=gw(c,d))y0(l,hw(c),mw(c))}function m0(l){Qs(qa,Ol,l,!0)}function Ol(l,c){for(var d=function(l){return _w(l),p0(l,Yd(l,0,$o.textEnd))}(c);d>=0;d=p0(c,d))qa(l,hw(c),!0)}function Js(l,c,d,h){var v=ge(),k=me(),H=Or(2);k.firstUpdatePass&&g0(k,l,H,h),c!==jr&&ya(v,H,c)&&b0(k,k.data[go()],v,v[11],l,v[H+1]=function(l,c){return null==l||("string"==typeof c?l+=c:"object"==typeof l&&(l=z(ru(l)))),l}(c,d),h,H)}function Qs(l,c,d,h){var v=me(),k=Or(2);v.firstUpdatePass&&g0(v,null,k,h);var H=ge();if(d!==jr&&ya(H,k,d)){var W=v.data[go()];if(S0(W,h)&&!v0(v,k)){var fe=h?W.classesWithoutHost:W.stylesWithoutHost;null!==fe&&(d=Q(fe,d||"")),t0(v,W,H,d,h)}else!function(l,c,d,h,v,k,H,W){v===jr&&(v=Ce);for(var X=0,fe=0,ke=0=l.expandoStartIndex}function g0(l,c,d,h){var v=l.data;if(null===v[d+1]){var k=v[go()],H=v0(l,d);S0(k,h)&&null===c&&!H&&(c=!1),c=function(l,c,d,h){var v=We(l),k=h?c.residualClasses:c.residualStyles;if(null===v)0===(h?c.classBindings:c.styleBindings)&&(d=Hh(d=_0(null,l,c,d,h),c.attrs,h),k=null);else{var W=c.directiveStylingLast;if(-1===W||l[W]!==v)if(d=_0(v,l,c,d,h),null===k){var fe=function(l,c,d){var h=d?c.classBindings:c.styleBindings;if(0!==Ga(h))return l[ou(h)]}(l,c,h);void 0!==fe&&Array.isArray(fe)&&function(l,c,d,h){l[ou(d?c.classBindings:c.styleBindings)]=h}(l,c,h,fe=Hh(fe=_0(null,l,c,fe[1],h),c.attrs,h))}else k=function(l,c,d){for(var h=void 0,v=c.directiveEnd,k=1+c.directiveStylingLast;k0)&&(fe=!0):ke=d,v)if(0!==X){var ft=ou(l[W+1]);l[h+1]=vb(ft,W),0!==ft&&(l[ft+1]=WT(l[ft+1],h)),l[W+1]=function(l,c){return 131071&l|c<<17}(l[W+1],h)}else l[h+1]=vb(W,0),0!==W&&(l[W+1]=WT(l[W+1],h)),W=h;else l[h+1]=vb(X,0),0===W?W=h:l[X+1]=WT(l[X+1],h),X=h;fe&&(l[h+1]=gb(l[h+1])),fw(l,ke,h,!0),fw(l,ke,h,!1),function(l,c,d,h,v){var k=v?l.residualClasses:l.residualStyles;null!=k&&"string"==typeof c&&kd(k,c)>=0&&(d[h+1]=GT(d[h+1]))}(c,ke,l,h,k),H=vb(W,X),k?c.classBindings=H:c.styleBindings=H}(v,k,c,d,H,h)}}function _0(l,c,d,h,v){var k=null,H=d.directiveEnd,W=d.directiveStylingLast;for(-1===W?W=d.directiveStart:W++;W0;){var X=l[v],fe=Array.isArray(X),ke=fe?X[1]:X,Ke=null===ke,Je=d[v+1];Je===jr&&(Je=Ke?Ce:void 0);var ft=Ke?ph(Je,h):ke===h?Je:void 0;if(fe&&!yg(ft)&&(ft=ph(X,h)),yg(ft)&&(W=ft,H))return W;var At=l[v+1];v=H?ou(At):Ga(At)}if(null!==c){var Gt=k?c.residualClasses:c.residualStyles;null!=Gt&&(W=ph(Gt,h))}return W}function yg(l){return void 0!==l}function S0(l,c){return 0!=(l.flags&(c?16:32))}function T0(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",d=ge(),h=me(),v=l+20,k=h.firstCreatePass?Vd(h,v,1,c,null):h.data[v],H=d[v]=Hv(d[11],c);Wv(h,d,H,k),ut(k,!1)}function x0(l){return bg("",l,""),x0}function bg(l,c,d){var h=ge(),v=ef(h,l,c,d);return v!==jr&&Ru(h,go(),v),bg}function w0(l,c,d,h,v){var k=ge(),H=tf(k,l,c,d,h,v);return H!==jr&&Ru(k,go(),H),w0}function k0(l,c,d,h,v,k,H){var W=ge(),X=Nc(W,l,c,d,h,v,k,H);return X!==jr&&Ru(W,go(),X),k0}function Aw(l,c,d){Qs(qa,Ol,ef(ge(),l,c,d),!0)}function Pw(l,c,d){var h=ge();return ya(h,wr(),c)&&As(me(),to(),h,l,c,h[11],d,!0),Pw}function Iw(l,c,d){var h=ge();if(ya(h,wr(),c)){var k=me(),H=to();As(k,H,h,l,c,mx(We(k.data),H,h),d,!0)}return Iw}var uf=void 0,R5=["en",[["a","p"],["AM","PM"],uf],[["AM","PM"],uf,uf],[["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"]],uf,[["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"]],uf,[["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}",uf,"{1} 'at' {0}",uf],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(l){var c=Math.floor(Math.abs(l)),d=l.toString().replace(/^[^.]*\.?/,"").length;return 1===c&&0===d?1:5}],Vh={};function Rw(l){var c=function(l){return l.toLowerCase().replace(/_/g,"-")}(l),d=qP(c);if(d)return d;var h=c.split("-")[0];if(d=qP(h))return d;if("en"===h)return R5;throw new Error('Missing locale data for the locale "'.concat(l,'".'))}function VP(l){return Rw(l)[Cg.PluralCase]}function qP(l){return l in Vh||(Vh[l]=pt.ng&&pt.ng.common&&pt.ng.common.locales&&pt.ng.common.locales[l]),Vh[l]}var Cg=function(l){return l[l.LocaleId=0]="LocaleId",l[l.DayPeriodsFormat=1]="DayPeriodsFormat",l[l.DayPeriodsStandalone=2]="DayPeriodsStandalone",l[l.DaysFormat=3]="DaysFormat",l[l.DaysStandalone=4]="DaysStandalone",l[l.MonthsFormat=5]="MonthsFormat",l[l.MonthsStandalone=6]="MonthsStandalone",l[l.Eras=7]="Eras",l[l.FirstDayOfWeek=8]="FirstDayOfWeek",l[l.WeekendRange=9]="WeekendRange",l[l.DateFormat=10]="DateFormat",l[l.TimeFormat=11]="TimeFormat",l[l.DateTimeFormat=12]="DateTimeFormat",l[l.NumberSymbols=13]="NumberSymbols",l[l.NumberFormats=14]="NumberFormats",l[l.CurrencyCode=15]="CurrencyCode",l[l.CurrencySymbol=16]="CurrencySymbol",l[l.CurrencyName=17]="CurrencyName",l[l.Currencies=18]="Currencies",l[l.Directionality=19]="Directionality",l[l.PluralCase=20]="PluralCase",l[l.ExtraData=21]="ExtraData",l}({}),A0="en-US";function Nw(l){nn(l,"Expected localeId to be defined"),"string"==typeof l&&l.toLowerCase().replace(/_/g,"-")}function SI(l,c,d){var h=me();if(h.firstCreatePass){var v=Qo(l);Jw(d,h.data,h.blueprint,v,!0),Jw(c,h.data,h.blueprint,v,!1)}}function Jw(l,c,d,h,v){if(l=se(l),Array.isArray(l))for(var k=0;k>20;if(Ih(l)||!l.multi){var At=new Vi(fe,v,Fh),Gt=Xw(X,c,v?Ke:Ke+ft,Je);-1===Gt?(_v(lh(ke,W),H,X),Qw(H,l,c.length),c.push(X),ke.directiveStart++,ke.directiveEnd++,v&&(ke.providerIndexes+=1048576),d.push(At),W.push(At)):(d[Gt]=At,W[Gt]=At)}else{var vn=Xw(X,c,Ke+ft,Je),Fn=Xw(X,c,Ke,Ke+ft),tr=Fn>=0&&d[Fn];if(v&&!tr||!v&&!(vn>=0&&d[vn])){_v(lh(ke,W),H,X);var fr=function(l,c,d,h,v){var k=new Vi(l,d,Fh);return k.multi=[],k.index=c,k.componentProviders=0,Kw(k,v,h&&!d),k}(v?$w:Z0,d.length,v,h,fe);!v&&tr&&(d[Fn].providerFactory=fr),Qw(H,l,c.length,0),c.push(X),ke.directiveStart++,ke.directiveEnd++,v&&(ke.providerIndexes+=1048576),d.push(fr),W.push(fr)}else Qw(H,l,vn>-1?vn:Fn,Kw(d[v?Fn:vn],fe,!v&&h));!v&&h&&tr&&d[Fn].componentProviders++}}}function Qw(l,c,d,h){var v=Ih(c);if(v||function(l){return!!l.useClass}(c)){var H=(c.useClass||c).prototype.ngOnDestroy;if(H){var W=l.destroyHooks||(l.destroyHooks=[]);if(!v&&c.multi){var X=W.indexOf(d);-1===X?W.push(d,[h,H]):W[X+1].push(h,H)}else W.push(d,H)}}}function Kw(l,c,d){return d&&l.componentProviders++,l.multi.push(c)-1}function Xw(l,c,d,h){for(var v=d;v1&&void 0!==arguments[1]?arguments[1]:[];return function(d){d.providersResolver=function(h,v){return SI(h,v?v(l):l,c)}}}var lB=function l(){(0,O.Z)(this,l)},tk=function l(){(0,O.Z)(this,l)},dB=function(){function l(){(0,O.Z)(this,l)}return(0,D.Z)(l,[{key:"resolveComponentFactory",value:function(d){throw function(l){var c=Error("No component factory found for ".concat(z(l),". Did you add it to @NgModule.entryComponents?"));return c.ngComponent=l,c}(d)}}]),l}(),kg=function(){var l=function c(){(0,O.Z)(this,c)};return l.NULL=new dB,l}();function L0(){}function zh(l,c){return new lu(Hi(l,c))}var mB=function(){return zh(ee(),ge())},lu=function(){var l=function c(d){(0,O.Z)(this,c),this.nativeElement=d};return l.__NG_ELEMENT_ID__=mB,l}();function nk(l){return l instanceof lu?l.nativeElement:l}var F0=function l(){(0,O.Z)(this,l)},vB=function(){var l=function c(){(0,O.Z)(this,c)};return l.__NG_ELEMENT_ID__=function(){return rk()},l}(),rk=function(){var l=ge(),d=oa(ee().index,l);return function(l){return l[11]}(ui(d)?d:l)},ik=function(){var l=function c(){(0,O.Z)(this,c)};return l.\u0275prov=Zn({token:l,providedIn:"root",factory:function(){return null}}),l}(),ok=function l(c){(0,O.Z)(this,l),this.full=c,this.major=c.split(".")[0],this.minor=c.split(".")[1],this.patch=c.split(".").slice(2).join(".")},kI=new ok("12.2.2"),ak=function(){function l(){(0,O.Z)(this,l)}return(0,D.Z)(l,[{key:"supports",value:function(d){return Nu(d)}},{key:"create",value:function(d){return new yB(d)}}]),l}(),EI=function(c,d){return d},yB=function(){function l(c){(0,O.Z)(this,l),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=c||EI}return(0,D.Z)(l,[{key:"forEachItem",value:function(d){var h;for(h=this._itHead;null!==h;h=h._next)d(h)}},{key:"forEachOperation",value:function(d){for(var h=this._itHead,v=this._removalsHead,k=0,H=null;h||v;){var W=!v||h&&h.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==d;){var k=c[d.index];if(null!==k&&h.push(ci(k)),Fo(k))for(var H=10;H-1&&(xh(d,v),wd(h,v))}this._attachedToViewContainer=!1}ab(this._lView[1],this._lView)}},{key:"onDestroy",value:function(d){rg(this._lView[1],this._lView,null,d)}},{key:"markForCheck",value:function(){cx(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){px(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(l,c,d){Un(!0);try{px(l,c,d)}finally{Un(!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(){this._appRef=null,function(l,c){Mh(l,c,c[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(d){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=d}}]),l}(),lk=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(h){var v;return(0,O.Z)(this,d),(v=c.call(this,h))._view=h,v}return(0,D.Z)(d,[{key:"detectChanges",value:function(){ig(this._view)}},{key:"checkNoChanges",value:function(){!function(l){Un(!0);try{ig(l)}finally{Un(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),d}(Ag),ZI=function(l){return function(l,c,d){if(ns(l)&&!d){var h=oa(l.index,c);return new Ag(h,h)}return 47&l.type?new Ag(c[16],c):null}(ee(),ge(),16==(16&l))},LI=function(){var l=function c(){(0,O.Z)(this,c)};return l.__NG_ELEMENT_ID__=ZI,l}(),FI=[new sk],BI=new Eg([new ak]),wB=new Mg(FI),EB=function(){return Dg(ee(),ge())},Gh=function(){var l=function c(){(0,O.Z)(this,c)};return l.__NG_ELEMENT_ID__=EB,l}(),ck=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(h,v,k){var H;return(0,O.Z)(this,d),(H=c.call(this))._declarationLView=h,H._declarationTContainer=v,H.elementRef=k,H}return(0,D.Z)(d,[{key:"createEmbeddedView",value:function(v){var k=this._declarationTContainer.tViews,H=ga(this._declarationLView,k,v,16,null,k.declTNode,null,null,null,null);H[17]=this._declarationLView[this._declarationTContainer.index];var X=this._declarationLView[19];return null!==X&&(H[19]=X.createEmbeddedView(k)),Ph(k,H,v),new Ag(H)}}]),d}(Gh);function Dg(l,c){return 4&l.type?new ck(c,l,zh(l,c)):null}var Bc=function l(){(0,O.Z)(this,l)},U0=function l(){(0,O.Z)(this,l)},dk=function(){return jI(ee(),ge())},df=function(){var l=function c(){(0,O.Z)(this,c)};return l.__NG_ELEMENT_ID__=dk,l}(),fk=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(h,v,k){var H;return(0,O.Z)(this,d),(H=c.call(this))._lContainer=h,H._hostTNode=v,H._hostLView=k,H}return(0,D.Z)(d,[{key:"element",get:function(){return zh(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Cd(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var v=_y(this._hostTNode,this._hostLView);if(lD(v)){var k=Op(v,this._hostLView),H=sh(v);return new Cd(k[1].data[H+8],k)}return new Cd(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(v){var k=qI(this._lContainer);return null!==k&&k[v]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(v,k,H){var W=v.createEmbeddedView(k||{});return this.insert(W,H),W}},{key:"createComponent",value:function(v,k,H,W,X){var fe=H||this.parentInjector;if(!X&&null==v.ngModule&&fe){var ke=fe.get(Bc,null);ke&&(X=ke)}var Ke=v.create(fe,W,void 0,X);return this.insert(Ke.hostView,k),Ke}},{key:"insert",value:function(v,k){var H=v._lView,W=H[1];if(function(l){return Fo(l[3])}(H)){var X=this.indexOf(v);if(-1!==X)this.detach(X);else{var fe=H[3],ke=new fk(fe,fe[6],fe[3]);ke.detach(ke.indexOf(v))}}var Ke=this._adjustIndex(k),Je=this._lContainer;!function(l,c,d,h){var v=10+h,k=d.length;h>0&&(d[v-1][4]=c),h1&&void 0!==arguments[1]?arguments[1]:0;return null==v?this.length+k:v}}]),d}(df);function qI(l){return l[8]}function hk(l){return l[8]||(l[8]=[])}function jI(l,c){var d,h=c[l.index];if(Fo(h))d=h;else{var v;if(8&l.type)v=ci(h);else{var k=c[11];v=k.createComment("");var H=Hi(l,c);Bd(k,zv(k,H),v,function(l,c){return _r(l)?l.nextSibling(c):c.nextSibling}(k,H),!1)}c[l.index]=d=Al(h,c,v,l),Ib(c,d)}return new fk(d,l,c)}var Fu={},mf=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(h){var v;return(0,O.Z)(this,d),(v=c.call(this)).ngModule=h,v}return(0,D.Z)(d,[{key:"resolveComponentFactory",value:function(v){var k=Yi(v);return new aC(k,this.ngModule)}}]),d}(kg);function iC(l){var c=[];for(var d in l)l.hasOwnProperty(d)&&c.push({propName:l[d],templateName:d});return c}var f3=new So("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return va}}),aC=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(h,v){var k;return(0,O.Z)(this,d),(k=c.call(this)).componentDef=h,k.ngModule=v,k.componentType=h.type,k.selector=function(l){return l.map(eO).join(",")}(h.selectors),k.ngContentSelectors=h.ngContentSelectors?h.ngContentSelectors:[],k.isBoundToModule=!!v,k}return(0,D.Z)(d,[{key:"inputs",get:function(){return iC(this.componentDef.inputs)}},{key:"outputs",get:function(){return iC(this.componentDef.outputs)}},{key:"create",value:function(v,k,H,W){var yn,tr,X=(W=W||this.ngModule)?function(l,c){return{get:function(h,v,k){var H=l.get(h,Fu,k);return H!==Fu||v===Fu?H:c.get(h,v,k)}}}(v,W.injector):v,fe=X.get(F0,Bt),ke=X.get(ik,null),Ke=fe.createRenderer(null,this.componentDef),Je=this.componentDef.selectors[0][0]||"div",ft=H?function(l,c,d){if(_r(l))return l.selectRootElement(c,d===wn.ShadowDom);var v="string"==typeof c?l.querySelector(c):c;return v.textContent="",v}(Ke,H,this.componentDef.encapsulation):ib(fe.createRenderer(null,this.componentDef),Je,function(l){var c=l.toLowerCase();return"svg"===c?mt:"math"===c?"http://www.w3.org/1998/MathML/":null}(Je)),At=this.componentDef.onPush?576:528,Gt=function(l,c){return{components:[],scheduler:l||va,clean:fx,playerHandler:c||null,flags:0}}(),vn=Ws(0,null,null,1,0,null,null,null,null,null),Fn=ga(null,vn,Gt,At,null,null,fe,Ke,ke,X);St(Fn);try{var fr=function(l,c,d,h,v,k){var H=d[1];d[20]=l;var X=Vd(H,20,2,"#host",null),fe=X.mergedAttrs=c.hostAttrs;null!==fe&&(ag(X,fe,!0),null!==l&&(qs(v,l,fe),null!==X.classes&&fb(v,l,X.classes),null!==X.styles&&pb(v,l,X.styles)));var ke=h.createRenderer(l,c),Ke=ga(d,ng(c),null,c.onPush?64:16,d[20],X,h,ke,k||null,null);return H.firstCreatePass&&(_v(lh(X,d),H,c.type),lx(H,X),_O(X,d.length,1)),Ib(d,Ke),d[20]=Ke}(ft,this.componentDef,Fn,fe,Ke);if(ft)if(H)qs(Ke,ft,["ng-version",kI.full]);else{var Qr=function(l){for(var c=[],d=[],h=1,v=2;h0&&fb(Ke,ft,io.join(" "))}if(tr=Ua(vn,20),void 0!==k)for(var ta=tr.projection=[],na=0;na1&&void 0!==arguments[1]?arguments[1]:_a.THROW_IF_NOT_FOUND,H=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ye.Default;return v===_a||v===Bc||v===sg?this:this._r3Injector.get(v,k,H)}},{key:"destroy",value:function(){var v=this._r3Injector;!v.destroyed&&v.destroy(),this.destroyCbs.forEach(function(k){return k()}),this.destroyCbs=null}},{key:"onDestroy",value:function(v){this.destroyCbs.push(v)}}]),d}(Bc),Bg=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(h){var v;return(0,O.Z)(this,d),(v=c.call(this)).moduleType=h,null!==Fi(h)&&function(l){var c=new Set;!function d(h){var v=Fi(h,!0),k=v.id;null!==k&&(function(l,c,d){if(c&&c!==d)throw new Error("Duplicate module registered for ".concat(l," - ").concat(z(c)," vs ").concat(z(c.name)))}(k,Bu.get(k),h),Bu.set(k,h));var fe,W=Es(v.imports),X=(0,C.Z)(W);try{for(X.s();!(fe=X.n()).done;){var ke=fe.value;c.has(ke)||(c.add(ke),d(ke))}}catch(Ke){X.e(Ke)}finally{X.f()}}(l)}(h),v}return(0,D.Z)(d,[{key:"create",value:function(v){return new WB(this.moduleType,v)}}]),d}(U0);function g3(l,c,d){var h=$n()+l,v=ge();return v[h]===jr?Gs(v,h,d?c.call(d):c()):function(l,c){return l[c]}(v,h)}function Lk(l,c,d,h){return Uk(ge(),$n(),l,c,d,h)}function lC(l,c,d,h,v){return y3(ge(),$n(),l,c,d,h,v)}function Ug(l,c){var d=l[c];return d===jr?void 0:d}function Uk(l,c,d,h,v,k){var H=c+d;return ya(l,H,v)?Gs(l,H+1,k?h.call(k,v):h(v)):Ug(l,H+1)}function y3(l,c,d,h,v,k,H){var W=c+d;return su(l,W,v,k)?Gs(l,W+2,H?h.call(H,v,k):h(v,k)):Ug(l,W+2)}function Li(l,c){var h,d=me(),v=l+20;d.firstCreatePass?(h=function(l,c){if(c)for(var d=c.length-1;d>=0;d--){var h=c[d];if(l===h.name)return h}throw new oe("302","The pipe '".concat(l,"' could not be found!"))}(c,d.pipeRegistry),d.data[v]=h,h.onDestroy&&(d.destroyHooks||(d.destroyHooks=[])).push(v,h.onDestroy)):h=d.data[v];var k=h.factory||(h.factory=He(h.type)),H=Yt(Fh);try{var W=gy(!1),X=k();return gy(W),function(l,c,d,h){d>=l.data.length&&(l.data[d]=null,l.blueprint[d]=null),c[d]=h}(d,ge(),v,X),X}finally{Yt(H)}}function ji(l,c,d){var h=l+20,v=ge(),k=Ha(v,h);return em(v,$h(v,h)?Uk(v,$n(),c,k.transform,d,k):k.transform(d))}function Hg(l,c,d,h){var v=l+20,k=ge(),H=Ha(k,v);return em(k,$h(k,v)?y3(k,$n(),c,H.transform,d,h,H):H.transform(d,h))}function $h(l,c){return l[1].data[c].pure}function em(l,c){return au.isWrapped(c)&&(c=au.unwrap(c),l[yr()]=jr),c}function Uc(l){return function(c){setTimeout(l,void 0,c)}}var du=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(){var h,v=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,O.Z)(this,d),(h=c.call(this)).__isAsync=v,h}return(0,D.Z)(d,[{key:"emit",value:function(v){(0,U.Z)((0,B.Z)(d.prototype),"next",this).call(this,v)}},{key:"subscribe",value:function(v,k,H){var W,X,fe,ke=v,Ke=k||function(){return null},Je=H;if(v&&"object"==typeof v){var ft=v;ke=null===(W=ft.next)||void 0===W?void 0:W.bind(ft),Ke=null===(X=ft.error)||void 0===X?void 0:X.bind(ft),Je=null===(fe=ft.complete)||void 0===fe?void 0:fe.bind(ft)}this.__isAsync&&(Ke=Uc(Ke),ke&&(ke=Uc(ke)),Je&&(Je=Uc(Je)));var At=(0,U.Z)((0,B.Z)(d.prototype),"subscribe",this).call(this,{next:ke,error:Ke,complete:Je});return v instanceof E.w&&v.add(At),At}}]),d}(x.xQ);function vf(){return this._results[Ic()]()}var Hc=function(){function l(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,O.Z)(this,l),this._emitDistinctChangesOnly=c,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var d=Ic(),h=l.prototype;h[d]||(h[d]=vf)}return(0,D.Z)(l,[{key:"changes",get:function(){return this._changes||(this._changes=new du)}},{key:"get",value:function(d){return this._results[d]}},{key:"map",value:function(d){return this._results.map(d)}},{key:"filter",value:function(d){return this._results.filter(d)}},{key:"find",value:function(d){return this._results.find(d)}},{key:"reduce",value:function(d,h){return this._results.reduce(d,h)}},{key:"forEach",value:function(d){this._results.forEach(d)}},{key:"some",value:function(d){return this._results.some(d)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(d,h){var v=this;v.dirty=!1;var k=Ss(d);(this._changesDetected=!function(l,c,d){if(l.length!==c.length)return!1;for(var h=0;h0&&void 0!==arguments[0]?arguments[0]:[];(0,O.Z)(this,l),this.queries=c}return(0,D.Z)(l,[{key:"createEmbeddedView",value:function(d){var h=d.queries;if(null!==h){for(var v=null!==d.contentQueries?d.contentQueries[0]:h.length,k=[],H=0;H2&&void 0!==arguments[2]?arguments[2]:null;(0,O.Z)(this,l),this.predicate=c,this.flags=d,this.read=h},Vk=function(){function l(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,O.Z)(this,l),this.queries=c}return(0,D.Z)(l,[{key:"elementStart",value:function(d,h){for(var v=0;v1&&void 0!==arguments[1]?arguments[1]:-1;(0,O.Z)(this,l),this.metadata=c,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=d}return(0,D.Z)(l,[{key:"elementStart",value:function(d,h){this.isApplyingToNode(h)&&this.matchTNode(d,h)}},{key:"elementEnd",value:function(d){this._declarationNodeIndex===d.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(d,h){this.elementStart(d,h)}},{key:"embeddedTView",value:function(d,h){return this.isApplyingToNode(d)?(this.crossesNgTemplate=!0,this.addMatch(-d.index,h),new l(this.metadata)):null}},{key:"isApplyingToNode",value:function(d){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var h=this._declarationNodeIndex,v=d.parent;null!==v&&8&v.type&&v.index!==h;)v=v.parent;return h===(null!==v?v.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(d,h){var v=this.metadata.predicate;if(Array.isArray(v))for(var k=0;k0)h.push(H[W/2]);else{for(var fe=k[W+1],ke=c[-X],Ke=10;Ke0&&(W=setTimeout(function(){H._callbacks=H._callbacks.filter(function(X){return X.timeoutId!==W}),h(H._didWork,H.getPendingTasks())},v)),this._callbacks.push({doneCb:h,timeoutId:W,updateCb:k})}},{key:"whenStable",value:function(h,v,k){if(k&&!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(h,v,k),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(h,v,k){return[]}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Io(fu))},l.\u0275prov=Zn({token:l,factory:l.\u0275fac}),l}(),wf=function(){var l=function(){function c(){(0,O.Z)(this,c),this._applications=new Map,t_.addToWindow(this)}return(0,D.Z)(c,[{key:"registerApplication",value:function(h,v){this._applications.set(h,v)}},{key:"unregisterApplication",value:function(h){this._applications.delete(h)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(h){return this._applications.get(h)||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(h){var v=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t_.findTestabilityInTree(this,h,v)}}]),c}();return l.\u0275fac=function(d){return new(d||l)},l.\u0275prov=Zn({token:l,factory:l.\u0275fac}),l}();function W3(l){t_=l}var t_=new(function(){function l(){(0,O.Z)(this,l)}return(0,D.Z)(l,[{key:"addToWindow",value:function(d){}},{key:"findTestabilityInTree",value:function(d,h,v){return null}}]),l}()),CE=!0,SE=!1;function fm(){return SE=!0,CE}function TE(){if(SE)throw new Error("Cannot enable prod mode after platform setup.");CE=!1}var Rl,G3=function(l,c,d){var h=new Bg(d);return Promise.resolve(h)},hm=new So("AllowMultipleToken"),FC=function l(c,d){(0,O.Z)(this,l),this.name=c,this.token=d};function mm(l){if(Rl&&!Rl.destroyed&&!Rl.injector.get(hm,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Rl=l.get(wE);var c=l.get(Ro,null);return c&&c.forEach(function(d){return d()}),Rl}function BC(l,c){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],h="Platform: ".concat(c),v=new So(h);return function(){var k=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],H=xE();if(!H||H.injector.get(hm,!1))if(l)l(d.concat(k).concat({provide:v,useValue:!0}));else{var W=d.concat(k).concat({provide:v,useValue:!0},{provide:qd,useValue:"platform"});mm(_a.create({providers:W,name:h}))}return X3(v)}}function X3(l){var c=xE();if(!c)throw new Error("No platform exists!");if(!c.injector.get(l,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return c}function xE(){return Rl&&!Rl.destroyed?Rl:null}var wE=function(){var l=function(){function c(d){(0,O.Z)(this,c),this._injector=d,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return(0,D.Z)(c,[{key:"bootstrapModuleFactory",value:function(h,v){var k=this,fe=function(l,c){return"noop"===l?new ZC:("zone.js"===l?void 0:l)||new fu({enableLongStackTrace:fm(),shouldCoalesceEventChangeDetection:!!(null==c?void 0:c.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==c?void 0:c.ngZoneRunCoalescing)})}(v?v.ngZone:void 0,{ngZoneEventCoalescing:v&&v.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:v&&v.ngZoneRunCoalescing||!1}),ke=[{provide:fu,useValue:fe}];return fe.run(function(){var Ke=_a.create({providers:ke,parent:k.injector,name:h.moduleType.name}),Je=h.create(Ke),ft=Je.injector.get(Tc,null);if(!ft)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return fe.runOutsideAngular(function(){var At=fe.onError.subscribe({next:function(vn){ft.handleError(vn)}});Je.onDestroy(function(){UC(k._modules,Je),At.unsubscribe()})}),function(l,c,d){try{var h=((At=Je.injector.get(Il)).runInitializers(),At.donePromise.then(function(){return Nw(Je.injector.get(cm,A0)||A0),k._moduleDoBootstrap(Je),Je}));return Fc(h)?h.catch(function(v){throw c.runOutsideAngular(function(){return l.handleError(v)}),v}):h}catch(v){throw c.runOutsideAngular(function(){return l.handleError(v)}),v}var At}(ft,fe)})}},{key:"bootstrapModule",value:function(h){var v=this,k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],H=kE({},k);return G3(0,0,h).then(function(W){return v.bootstrapModuleFactory(W,H)})}},{key:"_moduleDoBootstrap",value:function(h){var v=h.injector.get(vm);if(h._bootstrapComponents.length>0)h._bootstrapComponents.forEach(function(k){return v.bootstrap(k)});else{if(!h.instance.ngDoBootstrap)throw new Error("The module ".concat(z(h.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");h.instance.ngDoBootstrap(v)}this._modules.push(h)}},{key:"onDestroy",value:function(h){this._destroyListeners.push(h)}},{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(h){return h.destroy()}),this._destroyListeners.forEach(function(h){return h()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Io(_a))},l.\u0275prov=Zn({token:l,factory:l.\u0275fac}),l}();function kE(l,c){return Array.isArray(c)?c.reduce(kE,l):Object.assign(Object.assign({},l),c)}var vm=function(){var l=function(){function c(d,h,v,k,H){var W=this;(0,O.Z)(this,c),this._zone=d,this._injector=h,this._exceptionHandler=v,this._componentFactoryResolver=k,this._initStatus=H,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){W._zone.run(function(){W.tick()})}});var X=new S.y(function(ke){W._stable=W._zone.isStable&&!W._zone.hasPendingMacrotasks&&!W._zone.hasPendingMicrotasks,W._zone.runOutsideAngular(function(){ke.next(W._stable),ke.complete()})}),fe=new S.y(function(ke){var Ke;W._zone.runOutsideAngular(function(){Ke=W._zone.onStable.subscribe(function(){fu.assertNotInAngularZone(),IC(function(){!W._stable&&!W._zone.hasPendingMacrotasks&&!W._zone.hasPendingMicrotasks&&(W._stable=!0,ke.next(!0))})})});var Je=W._zone.onUnstable.subscribe(function(){fu.assertInAngularZone(),W._stable&&(W._stable=!1,W._zone.runOutsideAngular(function(){ke.next(!1)}))});return function(){Ke.unsubscribe(),Je.unsubscribe()}});this.isStable=(0,A.T)(X,fe.pipe((0,L.B)()))}return(0,D.Z)(c,[{key:"bootstrap",value:function(h,v){var H,k=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.");H=h instanceof tk?h:this._componentFactoryResolver.resolveComponentFactory(h),this.componentTypes.push(H.componentType);var W=function(l){return l.isBoundToModule}(H)?void 0:this._injector.get(Bc),fe=H.create(_a.NULL,[],v||H.selector,W),ke=fe.location.nativeElement,Ke=fe.injector.get(bE,null),Je=Ke&&fe.injector.get(wf);return Ke&&Je&&Je.registerApplication(ke,Ke),fe.onDestroy(function(){k.detachView(fe.hostView),UC(k.components,fe),Je&&Je.unregisterApplication(ke)}),this._loadComponent(fe),fe}},{key:"tick",value:function(){var h=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var k,v=(0,C.Z)(this._views);try{for(v.s();!(k=v.n()).done;)k.value.detectChanges()}catch(ke){v.e(ke)}finally{v.f()}}catch(ke){this._zone.runOutsideAngular(function(){return h._exceptionHandler.handleError(ke)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(h){var v=h;this._views.push(v),v.attachToAppRef(this)}},{key:"detachView",value:function(h){var v=h;UC(this._views,v),v.detachFromAppRef()}},{key:"_loadComponent",value:function(h){this.attachView(h.hostView),this.tick(),this.components.push(h),this._injector.get(Xg,[]).concat(this._bootstrapListeners).forEach(function(k){return k(h)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(h){return h.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Io(fu),Io(_a),Io(Tc),Io(kg),Io(Il))},l.\u0275prov=Zn({token:l,factory:l.\u0275fac}),l}();function UC(l,c){var d=l.indexOf(c);d>-1&&l.splice(d,1)}var ME=function l(){(0,O.Z)(this,l)},jC=function l(){(0,O.Z)(this,l)},gm={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},tR=function(){var l=function(){function c(d,h){(0,O.Z)(this,c),this._compiler=d,this._config=h||gm}return(0,D.Z)(c,[{key:"load",value:function(h){return this.loadAndCompile(h)}},{key:"loadAndCompile",value:function(h){var v=this,k=h.split("#"),H=(0,Z.Z)(k,2),W=H[0],X=H[1];return void 0===X&&(X="default"),f(98255)(W).then(function(fe){return fe[X]}).then(function(fe){return AE(fe,W,X)}).then(function(fe){return v._compiler.compileModuleAsync(fe)})}},{key:"loadFactory",value:function(h){var v=h.split("#"),k=(0,Z.Z)(v,2),H=k[0],W=k[1],X="NgFactory";return void 0===W&&(W="default",X=""),f(98255)(this._config.factoryPathPrefix+H+this._config.factoryPathSuffix).then(function(fe){return fe[W+X]}).then(function(fe){return AE(fe,H,W)})}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Io(Tf),Io(jC,8))},l.\u0275prov=Zn({token:l,factory:l.\u0275fac}),l}();function AE(l,c,d){if(!l)throw new Error("Cannot find '".concat(d,"' in '").concat(c,"'"));return l}var nR=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,O.Z)(this,d),c.apply(this,arguments)}return d}(function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,O.Z)(this,d),c.apply(this,arguments)}return d}(LI)),lR=function(l){return null},cR=BC(null,"core",[{provide:Kd,useValue:"unknown"},{provide:wE,deps:[_a]},{provide:wf,deps:[]},{provide:EC,deps:[]}]),QC=[{provide:vm,useClass:vm,deps:[fu,_a,Tc,kg,Il]},{provide:f3,deps:[fu],useFactory:function(l){var c=[];return l.onStable.subscribe(function(){for(;c.length;)c.pop()()}),function(d){c.push(d)}}},{provide:Il,useClass:Il,deps:[[new Ou,Qd]]},{provide:Tf,useClass:Tf,deps:[]},pE,{provide:Eg,useFactory:function(){return BI},deps:[]},{provide:Mg,useFactory:function(){return wB},deps:[]},{provide:cm,useFactory:function(l){return Nw(l=l||"undefined"!=typeof $localize&&$localize.locale||A0),l},deps:[[new hh(cm),new Ou,new Pu]]},{provide:MC,useValue:"USD"}],gR=function(){var l=function c(d){(0,O.Z)(this,c)};return l.\u0275fac=function(d){return new(d||l)(Io(vm))},l.\u0275mod=Yo({type:l}),l.\u0275inj=Bn({providers:QC}),l}()},19061:function(le,q,f){"use strict";f.d(q,{Zs:function(){return Bo},Fj:function(){return L},qu:function(){return Uo},NI:function(){return Xn},u:function(){return Ao},cw:function(){return Jr},sg:function(){return mi},u5:function(){return Ko},Cf:function(){return z},JU:function(){return T},a5:function(){return An},JJ:function(){return Bn},JL:function(){return En},F:function(){return Gi},On:function(){return Co},wV:function(){return Zi},UX:function(){return ys},kI:function(){return ie},_Y:function(){return Fi}});var U=f(88009),B=f(36683),V=f(10629),Z=f(10509),w=f(97154),R=f(18967),C=f(14105),_=f(65508),N=f(40098),D=f(61493),O=f(91925),P=f(85639),y=function(){var Ee=function(){function He(Pe,Me){(0,R.Z)(this,He),this._renderer=Pe,this._elementRef=Me,this.onChange=function(Ve){},this.onTouched=function(){}}return(0,C.Z)(He,[{key:"setProperty",value:function(Me,Ve){this._renderer.setProperty(this._elementRef.nativeElement,Me,Ve)}},{key:"registerOnTouched",value:function(Me){this.onTouched=Me}},{key:"registerOnChange",value:function(Me){this.onChange=Me}},{key:"setDisabledState",value:function(Me){this.setProperty("disabled",Me)}}]),He}();return Ee.\u0275fac=function(Pe){return new(Pe||Ee)(_.Y36(_.Qsj),_.Y36(_.SBq))},Ee.\u0275dir=_.lG2({type:Ee}),Ee}(),g=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(){return(0,R.Z)(this,Me),Pe.apply(this,arguments)}return Me}(y);return Ee.\u0275fac=function(){var He;return function(Me){return(He||(He=_.n5z(Ee)))(Me||Ee)}}(),Ee.\u0275dir=_.lG2({type:Ee,features:[_.qOj]}),Ee}(),T=new _.OlP("NgValueAccessor"),x={provide:T,useExisting:(0,_.Gpc)(function(){return L}),multi:!0},A=new _.OlP("CompositionEventMode"),L=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(Ve,we,Ft){var Tn;return(0,R.Z)(this,Me),(Tn=Pe.call(this,Ve,we))._compositionMode=Ft,Tn._composing=!1,null==Tn._compositionMode&&(Tn._compositionMode=!function(){var Ee=(0,N.q)()?(0,N.q)().getUserAgent():"";return/android (\d+)/.test(Ee.toLowerCase())}()),Tn}return(0,C.Z)(Me,[{key:"writeValue",value:function(we){this.setProperty("value",null==we?"":we)}},{key:"_handleInput",value:function(we){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(we)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(we){this._composing=!1,this._compositionMode&&this.onChange(we)}}]),Me}(y);return Ee.\u0275fac=function(Pe){return new(Pe||Ee)(_.Y36(_.Qsj),_.Y36(_.SBq),_.Y36(A,8))},Ee.\u0275dir=_.lG2({type:Ee,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(Pe,Me){1&Pe&&_.NdJ("input",function(we){return Me._handleInput(we.target.value)})("blur",function(){return Me.onTouched()})("compositionstart",function(){return Me._compositionStart()})("compositionend",function(we){return Me._compositionEnd(we.target.value)})},features:[_._Bn([x]),_.qOj]}),Ee}();function j(Ee){return null==Ee||0===Ee.length}function K(Ee){return null!=Ee&&"number"==typeof Ee.length}var z=new _.OlP("NgValidators"),Q=new _.OlP("NgAsyncValidators"),ae=/^(?=.{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])?)*$/,ie=function(){function Ee(){(0,R.Z)(this,Ee)}return(0,C.Z)(Ee,null,[{key:"min",value:function(Pe){return function(Ee){return function(He){if(j(He.value)||j(Ee))return null;var Pe=parseFloat(He.value);return!isNaN(Pe)&&PeEe?{max:{max:Ee,actual:He.value}}:null}}(Pe)}},{key:"required",value:function(Pe){return de(Pe)}},{key:"requiredTrue",value:function(Pe){return oe(Pe)}},{key:"email",value:function(Pe){return function(Ee){return j(Ee.value)||ae.test(Ee.value)?null:{email:!0}}(Pe)}},{key:"minLength",value:function(Pe){return function(Ee){return function(He){return j(He.value)||!K(He.value)?null:He.value.lengthEe?{maxlength:{requiredLength:Ee,actualLength:He.value.length}}:null}}(Pe)}},{key:"pattern",value:function(Pe){return function(Ee){return Ee?("string"==typeof Ee?(Pe="","^"!==Ee.charAt(0)&&(Pe+="^"),Pe+=Ee,"$"!==Ee.charAt(Ee.length-1)&&(Pe+="$"),He=new RegExp(Pe)):(Pe=Ee.toString(),He=Ee),function(Me){if(j(Me.value))return null;var Ve=Me.value;return He.test(Ve)?null:{pattern:{requiredPattern:Pe,actualValue:Ve}}}):Ne;var He,Pe}(Pe)}},{key:"nullValidator",value:function(Pe){return null}},{key:"compose",value:function(Pe){return ct(Pe)}},{key:"composeAsync",value:function(Pe){return Ht(Pe)}}]),Ee}();function de(Ee){return j(Ee.value)?{required:!0}:null}function oe(Ee){return!0===Ee.value?null:{required:!0}}function Ne(Ee){return null}function gt(Ee){return null!=Ee}function _t(Ee){var He=(0,_.QGY)(Ee)?(0,D.D)(Ee):Ee;return(0,_.CqO)(He),He}function Rt(Ee){var He={};return Ee.forEach(function(Pe){He=null!=Pe?Object.assign(Object.assign({},He),Pe):He}),0===Object.keys(He).length?null:He}function Se(Ee,He){return He.map(function(Pe){return Pe(Ee)})}function je(Ee){return Ee.map(function(He){return function(Ee){return!Ee.validate}(He)?He:function(Pe){return He.validate(Pe)}})}function ct(Ee){if(!Ee)return null;var He=Ee.filter(gt);return 0==He.length?null:function(Pe){return Rt(Se(Pe,He))}}function Xe(Ee){return null!=Ee?ct(je(Ee)):null}function Ht(Ee){if(!Ee)return null;var He=Ee.filter(gt);return 0==He.length?null:function(Pe){var Me=Se(Pe,He).map(_t);return(0,O.D)(Me).pipe((0,P.U)(Rt))}}function Et(Ee){return null!=Ee?Ht(je(Ee)):null}function vt(Ee,He){return null===Ee?[He]:Array.isArray(Ee)?[].concat((0,V.Z)(Ee),[He]):[Ee,He]}function Xt(Ee){return Ee._rawValidators}function qt(Ee){return Ee._rawAsyncValidators}function Ct(Ee){return Ee?Array.isArray(Ee)?Ee:[Ee]:[]}function jt(Ee,He){return Array.isArray(Ee)?Ee.includes(He):Ee===He}function bt(Ee,He){var Pe=Ct(He);return Ct(Ee).forEach(function(Ve){jt(Pe,Ve)||Pe.push(Ve)}),Pe}function nn(Ee,He){return Ct(He).filter(function(Pe){return!jt(Ee,Pe)})}var Ut=function(){var Ee=function(){function He(){(0,R.Z)(this,He),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return(0,C.Z)(He,[{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(Me){this._rawValidators=Me||[],this._composedValidatorFn=Xe(this._rawValidators)}},{key:"_setAsyncValidators",value:function(Me){this._rawAsyncValidators=Me||[],this._composedAsyncValidatorFn=Et(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(Me){this._onDestroyCallbacks.push(Me)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(Me){return Me()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var Me=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(Me)}},{key:"hasError",value:function(Me,Ve){return!!this.control&&this.control.hasError(Me,Ve)}},{key:"getError",value:function(Me,Ve){return this.control?this.control.getError(Me,Ve):null}}]),He}();return Ee.\u0275fac=function(Pe){return new(Pe||Ee)},Ee.\u0275dir=_.lG2({type:Ee}),Ee}(),an=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(){return(0,R.Z)(this,Me),Pe.apply(this,arguments)}return(0,C.Z)(Me,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),Me}(Ut);return Ee.\u0275fac=function(){var He;return function(Me){return(He||(He=_.n5z(Ee)))(Me||Ee)}}(),Ee.\u0275dir=_.lG2({type:Ee,features:[_.qOj]}),Ee}(),An=function(Ee){(0,Z.Z)(Pe,Ee);var He=(0,w.Z)(Pe);function Pe(){var Me;return(0,R.Z)(this,Pe),(Me=He.apply(this,arguments))._parent=null,Me.name=null,Me.valueAccessor=null,Me}return Pe}(Ut),Hn=function(){function Ee(He){(0,R.Z)(this,Ee),this._cd=He}return(0,C.Z)(Ee,[{key:"is",value:function(Pe){var Me,Ve,we;return"submitted"===Pe?!!(null===(Me=this._cd)||void 0===Me?void 0:Me.submitted):!!(null===(we=null===(Ve=this._cd)||void 0===Ve?void 0:Ve.control)||void 0===we?void 0:we[Pe])}}]),Ee}(),Bn=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(Ve){return(0,R.Z)(this,Me),Pe.call(this,Ve)}return Me}(Hn);return Ee.\u0275fac=function(Pe){return new(Pe||Ee)(_.Y36(An,2))},Ee.\u0275dir=_.lG2({type:Ee,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Pe,Me){2&Pe&&_.ekj("ng-untouched",Me.is("untouched"))("ng-touched",Me.is("touched"))("ng-pristine",Me.is("pristine"))("ng-dirty",Me.is("dirty"))("ng-valid",Me.is("valid"))("ng-invalid",Me.is("invalid"))("ng-pending",Me.is("pending"))},features:[_.qOj]}),Ee}(),En=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(Ve){return(0,R.Z)(this,Me),Pe.call(this,Ve)}return Me}(Hn);return Ee.\u0275fac=function(Pe){return new(Pe||Ee)(_.Y36(an,10))},Ee.\u0275dir=_.lG2({type:Ee,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Pe,Me){2&Pe&&_.ekj("ng-untouched",Me.is("untouched"))("ng-touched",Me.is("touched"))("ng-pristine",Me.is("pristine"))("ng-dirty",Me.is("dirty"))("ng-valid",Me.is("valid"))("ng-invalid",Me.is("invalid"))("ng-pending",Me.is("pending"))("ng-submitted",Me.is("submitted"))},features:[_.qOj]}),Ee}();function wt(Ee,He){return[].concat((0,V.Z)(He.path),[Ee])}function ot(Ee,He){Ge(Ee,He),He.valueAccessor.writeValue(Ee.value),function(Ee,He){He.valueAccessor.registerOnChange(function(Pe){Ee._pendingValue=Pe,Ee._pendingChange=!0,Ee._pendingDirty=!0,"change"===Ee.updateOn&&Yt(Ee,He)})}(Ee,He),function(Ee,He){var Pe=function(Ve,we){He.valueAccessor.writeValue(Ve),we&&He.viewToModelUpdate(Ve)};Ee.registerOnChange(Pe),He._registerOnDestroy(function(){Ee._unregisterOnChange(Pe)})}(Ee,He),function(Ee,He){He.valueAccessor.registerOnTouched(function(){Ee._pendingTouched=!0,"blur"===Ee.updateOn&&Ee._pendingChange&&Yt(Ee,He),"submit"!==Ee.updateOn&&Ee.markAsTouched()})}(Ee,He),function(Ee,He){if(He.valueAccessor.setDisabledState){var Pe=function(Ve){He.valueAccessor.setDisabledState(Ve)};Ee.registerOnDisabledChange(Pe),He._registerOnDestroy(function(){Ee._unregisterOnDisabledChange(Pe)})}}(Ee,He)}function _e(Ee,He){var Me=function(){};He.valueAccessor&&(He.valueAccessor.registerOnChange(Me),He.valueAccessor.registerOnTouched(Me)),Ye(Ee,He),Ee&&(He._invokeOnDestroyCallbacks(),Ee._registerOnCollectionChange(function(){}))}function re(Ee,He){Ee.forEach(function(Pe){Pe.registerOnValidatorChange&&Pe.registerOnValidatorChange(He)})}function Ge(Ee,He){var Pe=Xt(Ee);null!==He.validator?Ee.setValidators(vt(Pe,He.validator)):"function"==typeof Pe&&Ee.setValidators([Pe]);var Me=qt(Ee);null!==He.asyncValidator?Ee.setAsyncValidators(vt(Me,He.asyncValidator)):"function"==typeof Me&&Ee.setAsyncValidators([Me]);var Ve=function(){return Ee.updateValueAndValidity()};re(He._rawValidators,Ve),re(He._rawAsyncValidators,Ve)}function Ye(Ee,He){var Pe=!1;if(null!==Ee){if(null!==He.validator){var Me=Xt(Ee);if(Array.isArray(Me)&&Me.length>0){var Ve=Me.filter(function(zn){return zn!==He.validator});Ve.length!==Me.length&&(Pe=!0,Ee.setValidators(Ve))}}if(null!==He.asyncValidator){var we=qt(Ee);if(Array.isArray(we)&&we.length>0){var Ft=we.filter(function(zn){return zn!==He.asyncValidator});Ft.length!==we.length&&(Pe=!0,Ee.setAsyncValidators(Ft))}}}var Tn=function(){};return re(He._rawValidators,Tn),re(He._rawAsyncValidators,Tn),Pe}function Yt(Ee,He){Ee._pendingDirty&&Ee.markAsDirty(),Ee.setValue(Ee._pendingValue,{emitModelToViewChange:!1}),He.viewToModelUpdate(Ee._pendingValue),Ee._pendingChange=!1}function cn(Ee,He){Ge(Ee,He)}function er(Ee,He){if(!Ee.hasOwnProperty("model"))return!1;var Pe=Ee.model;return!!Pe.isFirstChange()||!Object.is(He,Pe.currentValue)}function Sn(Ee,He){Ee._syncPendingControls(),He.forEach(function(Pe){var Me=Pe.control;"submit"===Me.updateOn&&Me._pendingChange&&(Pe.viewToModelUpdate(Me._pendingValue),Me._pendingChange=!1)})}function ir(Ee,He){if(!He)return null;Array.isArray(He);var Pe=void 0,Me=void 0,Ve=void 0;return He.forEach(function(we){we.constructor===L?Pe=we:function(Ee){return Object.getPrototypeOf(Ee.constructor)===g}(we)?Me=we:Ve=we}),Ve||Me||Pe||null}function Vt(Ee,He){var Pe=Ee.indexOf(He);Pe>-1&&Ee.splice(Pe,1)}var pt="VALID",dt="INVALID",Ue="PENDING",at="DISABLED";function Fe(Ee){return(Nt(Ee)?Ee.validators:Ee)||null}function Ae(Ee){return Array.isArray(Ee)?Xe(Ee):Ee||null}function Le(Ee,He){return(Nt(He)?He.asyncValidators:Ee)||null}function ze(Ee){return Array.isArray(Ee)?Et(Ee):Ee||null}function Nt(Ee){return null!=Ee&&!Array.isArray(Ee)&&"object"==typeof Ee}var mn=function(){function Ee(He,Pe){(0,R.Z)(this,Ee),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=He,this._rawAsyncValidators=Pe,this._composedValidatorFn=Ae(this._rawValidators),this._composedAsyncValidatorFn=ze(this._rawAsyncValidators)}return(0,C.Z)(Ee,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(Pe){this._rawValidators=this._composedValidatorFn=Pe}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(Pe){this._rawAsyncValidators=this._composedAsyncValidatorFn=Pe}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===pt}},{key:"invalid",get:function(){return this.status===dt}},{key:"pending",get:function(){return this.status==Ue}},{key:"disabled",get:function(){return this.status===at}},{key:"enabled",get:function(){return this.status!==at}},{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(Pe){this._rawValidators=Pe,this._composedValidatorFn=Ae(Pe)}},{key:"setAsyncValidators",value:function(Pe){this._rawAsyncValidators=Pe,this._composedAsyncValidatorFn=ze(Pe)}},{key:"addValidators",value:function(Pe){this.setValidators(bt(Pe,this._rawValidators))}},{key:"addAsyncValidators",value:function(Pe){this.setAsyncValidators(bt(Pe,this._rawAsyncValidators))}},{key:"removeValidators",value:function(Pe){this.setValidators(nn(Pe,this._rawValidators))}},{key:"removeAsyncValidators",value:function(Pe){this.setAsyncValidators(nn(Pe,this._rawAsyncValidators))}},{key:"hasValidator",value:function(Pe){return jt(this._rawValidators,Pe)}},{key:"hasAsyncValidator",value:function(Pe){return jt(this._rawAsyncValidators,Pe)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!Pe.onlySelf&&this._parent.markAsTouched(Pe)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(Pe){return Pe.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(Me){Me.markAsUntouched({onlySelf:!0})}),this._parent&&!Pe.onlySelf&&this._parent._updateTouched(Pe)}},{key:"markAsDirty",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!Pe.onlySelf&&this._parent.markAsDirty(Pe)}},{key:"markAsPristine",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(Me){Me.markAsPristine({onlySelf:!0})}),this._parent&&!Pe.onlySelf&&this._parent._updatePristine(Pe)}},{key:"markAsPending",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Ue,!1!==Pe.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Pe.onlySelf&&this._parent.markAsPending(Pe)}},{key:"disable",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=this._parentMarkedDirty(Pe.onlySelf);this.status=at,this.errors=null,this._forEachChild(function(Ve){Ve.disable(Object.assign(Object.assign({},Pe),{onlySelf:!0}))}),this._updateValue(),!1!==Pe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},Pe),{skipPristineCheck:Me})),this._onDisabledChange.forEach(function(Ve){return Ve(!0)})}},{key:"enable",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=this._parentMarkedDirty(Pe.onlySelf);this.status=pt,this._forEachChild(function(Ve){Ve.enable(Object.assign(Object.assign({},Pe),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Pe.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},Pe),{skipPristineCheck:Me})),this._onDisabledChange.forEach(function(Ve){return Ve(!1)})}},{key:"_updateAncestors",value:function(Pe){this._parent&&!Pe.onlySelf&&(this._parent.updateValueAndValidity(Pe),Pe.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(Pe){this._parent=Pe}},{key:"updateValueAndValidity",value:function(){var Pe=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===pt||this.status===Ue)&&this._runAsyncValidator(Pe.emitEvent)),!1!==Pe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Pe.onlySelf&&this._parent.updateValueAndValidity(Pe)}},{key:"_updateTreeValidity",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(Me){return Me._updateTreeValidity(Pe)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Pe.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?at:pt}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(Pe){var Me=this;if(this.asyncValidator){this.status=Ue,this._hasOwnPendingAsyncValidator=!0;var Ve=_t(this.asyncValidator(this));this._asyncValidationSubscription=Ve.subscribe(function(we){Me._hasOwnPendingAsyncValidator=!1,Me.setErrors(we,{emitEvent:Pe})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(Pe){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=Pe,this._updateControlsErrors(!1!==Me.emitEvent)}},{key:"get",value:function(Pe){return function(Ee,He,Pe){if(null==He||(Array.isArray(He)||(He=He.split(".")),Array.isArray(He)&&0===He.length))return null;var Me=Ee;return He.forEach(function(Ve){Me=Me instanceof Jr?Me.controls.hasOwnProperty(Ve)?Me.controls[Ve]:null:Me instanceof ai&&Me.at(Ve)||null}),Me}(this,Pe)}},{key:"getError",value:function(Pe,Me){var Ve=Me?this.get(Me):this;return Ve&&Ve.errors?Ve.errors[Pe]:null}},{key:"hasError",value:function(Pe,Me){return!!this.getError(Pe,Me)}},{key:"root",get:function(){for(var Pe=this;Pe._parent;)Pe=Pe._parent;return Pe}},{key:"_updateControlsErrors",value:function(Pe){this.status=this._calculateStatus(),Pe&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Pe)}},{key:"_initObservables",value:function(){this.valueChanges=new _.vpe,this.statusChanges=new _.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?at:this.errors?dt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ue)?Ue:this._anyControlsHaveStatus(dt)?dt:pt}},{key:"_anyControlsHaveStatus",value:function(Pe){return this._anyControls(function(Me){return Me.status===Pe})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(Pe){return Pe.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(Pe){return Pe.touched})}},{key:"_updatePristine",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!Pe.onlySelf&&this._parent._updatePristine(Pe)}},{key:"_updateTouched",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!Pe.onlySelf&&this._parent._updateTouched(Pe)}},{key:"_isBoxedValue",value:function(Pe){return"object"==typeof Pe&&null!==Pe&&2===Object.keys(Pe).length&&"value"in Pe&&"disabled"in Pe}},{key:"_registerOnCollectionChange",value:function(Pe){this._onCollectionChange=Pe}},{key:"_setUpdateStrategy",value:function(Pe){Nt(Pe)&&null!=Pe.updateOn&&(this._updateOn=Pe.updateOn)}},{key:"_parentMarkedDirty",value:function(Pe){return!Pe&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),Ee}(),Xn=function(Ee){(0,Z.Z)(Pe,Ee);var He=(0,w.Z)(Pe);function Pe(){var Me,Ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,we=arguments.length>1?arguments[1]:void 0,Ft=arguments.length>2?arguments[2]:void 0;return(0,R.Z)(this,Pe),(Me=He.call(this,Fe(we),Le(Ft,we)))._onChange=[],Me._applyFormState(Ve),Me._setUpdateStrategy(we),Me._initObservables(),Me.updateValueAndValidity({onlySelf:!0,emitEvent:!!Me.asyncValidator}),Me}return(0,C.Z)(Pe,[{key:"setValue",value:function(Ve){var we=this,Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=Ve,this._onChange.length&&!1!==Ft.emitModelToViewChange&&this._onChange.forEach(function(Tn){return Tn(we.value,!1!==Ft.emitViewToModelChange)}),this.updateValueAndValidity(Ft)}},{key:"patchValue",value:function(Ve){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(Ve,we)}},{key:"reset",value:function(){var Ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(Ve),this.markAsPristine(we),this.markAsUntouched(we),this.setValue(this.value,we),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(Ve){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(Ve){this._onChange.push(Ve)}},{key:"_unregisterOnChange",value:function(Ve){Vt(this._onChange,Ve)}},{key:"registerOnDisabledChange",value:function(Ve){this._onDisabledChange.push(Ve)}},{key:"_unregisterOnDisabledChange",value:function(Ve){Vt(this._onDisabledChange,Ve)}},{key:"_forEachChild",value:function(Ve){}},{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(Ve){this._isBoxedValue(Ve)?(this.value=this._pendingValue=Ve.value,Ve.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Ve}}]),Pe}(mn),Jr=function(Ee){(0,Z.Z)(Pe,Ee);var He=(0,w.Z)(Pe);function Pe(Me,Ve,we){var Ft;return(0,R.Z)(this,Pe),(Ft=He.call(this,Fe(Ve),Le(we,Ve))).controls=Me,Ft._initObservables(),Ft._setUpdateStrategy(Ve),Ft._setUpControls(),Ft.updateValueAndValidity({onlySelf:!0,emitEvent:!!Ft.asyncValidator}),Ft}return(0,C.Z)(Pe,[{key:"registerControl",value:function(Ve,we){return this.controls[Ve]?this.controls[Ve]:(this.controls[Ve]=we,we.setParent(this),we._registerOnCollectionChange(this._onCollectionChange),we)}},{key:"addControl",value:function(Ve,we){var Ft=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(Ve,we),this.updateValueAndValidity({emitEvent:Ft.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(Ve){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(function(){}),delete this.controls[Ve],this.updateValueAndValidity({emitEvent:we.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(Ve,we){var Ft=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(function(){}),delete this.controls[Ve],we&&this.registerControl(Ve,we),this.updateValueAndValidity({emitEvent:Ft.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(Ve){return this.controls.hasOwnProperty(Ve)&&this.controls[Ve].enabled}},{key:"setValue",value:function(Ve){var we=this,Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(Ve),Object.keys(Ve).forEach(function(Tn){we._throwIfControlMissing(Tn),we.controls[Tn].setValue(Ve[Tn],{onlySelf:!0,emitEvent:Ft.emitEvent})}),this.updateValueAndValidity(Ft)}},{key:"patchValue",value:function(Ve){var we=this,Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Ve&&(Object.keys(Ve).forEach(function(Tn){we.controls[Tn]&&we.controls[Tn].patchValue(Ve[Tn],{onlySelf:!0,emitEvent:Ft.emitEvent})}),this.updateValueAndValidity(Ft))}},{key:"reset",value:function(){var Ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(Ft,Tn){Ft.reset(Ve[Tn],{onlySelf:!0,emitEvent:we.emitEvent})}),this._updatePristine(we),this._updateTouched(we),this.updateValueAndValidity(we)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(Ve,we,Ft){return Ve[Ft]=we instanceof Xn?we.value:we.getRawValue(),Ve})}},{key:"_syncPendingControls",value:function(){var Ve=this._reduceChildren(!1,function(we,Ft){return!!Ft._syncPendingControls()||we});return Ve&&this.updateValueAndValidity({onlySelf:!0}),Ve}},{key:"_throwIfControlMissing",value:function(Ve){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[Ve])throw new Error("Cannot find form control with name: ".concat(Ve,"."))}},{key:"_forEachChild",value:function(Ve){var we=this;Object.keys(this.controls).forEach(function(Ft){var Tn=we.controls[Ft];Tn&&Ve(Tn,Ft)})}},{key:"_setUpControls",value:function(){var Ve=this;this._forEachChild(function(we){we.setParent(Ve),we._registerOnCollectionChange(Ve._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(Ve){for(var we=0,Ft=Object.keys(this.controls);we0||this.disabled}},{key:"_checkAllValuesPresent",value:function(Ve){this._forEachChild(function(we,Ft){if(void 0===Ve[Ft])throw new Error("Must supply a value for form control with name: '".concat(Ft,"'."))})}}]),Pe}(mn),ai=function(Ee){(0,Z.Z)(Pe,Ee);var He=(0,w.Z)(Pe);function Pe(Me,Ve,we){var Ft;return(0,R.Z)(this,Pe),(Ft=He.call(this,Fe(Ve),Le(we,Ve))).controls=Me,Ft._initObservables(),Ft._setUpdateStrategy(Ve),Ft._setUpControls(),Ft.updateValueAndValidity({onlySelf:!0,emitEvent:!!Ft.asyncValidator}),Ft}return(0,C.Z)(Pe,[{key:"at",value:function(Ve){return this.controls[Ve]}},{key:"push",value:function(Ve){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(Ve),this._registerControl(Ve),this.updateValueAndValidity({emitEvent:we.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(Ve,we){var Ft=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(Ve,0,we),this._registerControl(we),this.updateValueAndValidity({emitEvent:Ft.emitEvent})}},{key:"removeAt",value:function(Ve){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(function(){}),this.controls.splice(Ve,1),this.updateValueAndValidity({emitEvent:we.emitEvent})}},{key:"setControl",value:function(Ve,we){var Ft=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(function(){}),this.controls.splice(Ve,1),we&&(this.controls.splice(Ve,0,we),this._registerControl(we)),this.updateValueAndValidity({emitEvent:Ft.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(Ve){var we=this,Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(Ve),Ve.forEach(function(Tn,zn){we._throwIfControlMissing(zn),we.at(zn).setValue(Tn,{onlySelf:!0,emitEvent:Ft.emitEvent})}),this.updateValueAndValidity(Ft)}},{key:"patchValue",value:function(Ve){var we=this,Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Ve&&(Ve.forEach(function(Tn,zn){we.at(zn)&&we.at(zn).patchValue(Tn,{onlySelf:!0,emitEvent:Ft.emitEvent})}),this.updateValueAndValidity(Ft))}},{key:"reset",value:function(){var Ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(Ft,Tn){Ft.reset(Ve[Tn],{onlySelf:!0,emitEvent:we.emitEvent})}),this._updatePristine(we),this._updateTouched(we),this.updateValueAndValidity(we)}},{key:"getRawValue",value:function(){return this.controls.map(function(Ve){return Ve instanceof Xn?Ve.value:Ve.getRawValue()})}},{key:"clear",value:function(){var Ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(we){return we._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Ve.emitEvent}))}},{key:"_syncPendingControls",value:function(){var Ve=this.controls.reduce(function(we,Ft){return!!Ft._syncPendingControls()||we},!1);return Ve&&this.updateValueAndValidity({onlySelf:!0}),Ve}},{key:"_throwIfControlMissing",value:function(Ve){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(Ve))throw new Error("Cannot find form control at index ".concat(Ve))}},{key:"_forEachChild",value:function(Ve){this.controls.forEach(function(we,Ft){Ve(we,Ft)})}},{key:"_updateValue",value:function(){var Ve=this;this.value=this.controls.filter(function(we){return we.enabled||Ve.disabled}).map(function(we){return we.value})}},{key:"_anyControls",value:function(Ve){return this.controls.some(function(we){return we.enabled&&Ve(we)})}},{key:"_setUpControls",value:function(){var Ve=this;this._forEachChild(function(we){return Ve._registerControl(we)})}},{key:"_checkAllValuesPresent",value:function(Ve){this._forEachChild(function(we,Ft){if(void 0===Ve[Ft])throw new Error("Must supply a value for form control at index: ".concat(Ft,"."))})}},{key:"_allControlsDisabled",value:function(){var we,Ve=(0,B.Z)(this.controls);try{for(Ve.s();!(we=Ve.n()).done;)if(we.value.enabled)return!1}catch(Tn){Ve.e(Tn)}finally{Ve.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(Ve){Ve.setParent(this),Ve._registerOnCollectionChange(this._onCollectionChange)}}]),Pe}(mn),Ir={provide:an,useExisting:(0,_.Gpc)(function(){return Gi})},co=function(){return Promise.resolve(null)}(),Gi=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(Ve,we){var Ft;return(0,R.Z)(this,Me),(Ft=Pe.call(this)).submitted=!1,Ft._directives=[],Ft.ngSubmit=new _.vpe,Ft.form=new Jr({},Xe(Ve),Et(we)),Ft}return(0,C.Z)(Me,[{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(we){var Ft=this;co.then(function(){var Tn=Ft._findContainer(we.path);we.control=Tn.registerControl(we.name,we.control),ot(we.control,we),we.control.updateValueAndValidity({emitEvent:!1}),Ft._directives.push(we)})}},{key:"getControl",value:function(we){return this.form.get(we.path)}},{key:"removeControl",value:function(we){var Ft=this;co.then(function(){var Tn=Ft._findContainer(we.path);Tn&&Tn.removeControl(we.name),Vt(Ft._directives,we)})}},{key:"addFormGroup",value:function(we){var Ft=this;co.then(function(){var Tn=Ft._findContainer(we.path),zn=new Jr({});cn(zn,we),Tn.registerControl(we.name,zn),zn.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(we){var Ft=this;co.then(function(){var Tn=Ft._findContainer(we.path);Tn&&Tn.removeControl(we.name)})}},{key:"getFormGroup",value:function(we){return this.form.get(we.path)}},{key:"updateModel",value:function(we,Ft){var Tn=this;co.then(function(){Tn.form.get(we.path).setValue(Ft)})}},{key:"setValue",value:function(we){this.control.setValue(we)}},{key:"onSubmit",value:function(we){return this.submitted=!0,Sn(this.form,this._directives),this.ngSubmit.emit(we),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var we=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(we),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(we){return we.pop(),we.length?this.form.get(we):this.form}}]),Me}(an);return Ee.\u0275fac=function(Pe){return new(Pe||Ee)(_.Y36(z,10),_.Y36(Q,10))},Ee.\u0275dir=_.lG2({type:Ee,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Pe,Me){1&Pe&&_.NdJ("submit",function(we){return Me.onSubmit(we)})("reset",function(){return Me.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_._Bn([Ir]),_.qOj]}),Ee}(),wa={provide:An,useExisting:(0,_.Gpc)(function(){return Co})},po=function(){return Promise.resolve(null)}(),Co=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(Ve,we,Ft,Tn){var zn;return(0,R.Z)(this,Me),(zn=Pe.call(this)).control=new Xn,zn._registered=!1,zn.update=new _.vpe,zn._parent=Ve,zn._setValidators(we),zn._setAsyncValidators(Ft),zn.valueAccessor=ir((0,U.Z)(zn),Tn),zn}return(0,C.Z)(Me,[{key:"ngOnChanges",value:function(we){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in we&&this._updateDisabled(we),er(we,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?wt(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(we){this.viewModel=we,this.update.emit(we)}},{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(){ot(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(we){var Ft=this;po.then(function(){Ft.control.setValue(we,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(we){var Ft=this,Tn=we.isDisabled.currentValue,zn=""===Tn||Tn&&"false"!==Tn;po.then(function(){zn&&!Ft.control.disabled?Ft.control.disable():!zn&&Ft.control.disabled&&Ft.control.enable()})}}]),Me}(An);return Ee.\u0275fac=function(Pe){return new(Pe||Ee)(_.Y36(an,9),_.Y36(z,10),_.Y36(Q,10),_.Y36(T,10))},Ee.\u0275dir=_.lG2({type:Ee,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[_._Bn([wa]),_.qOj,_.TTD]}),Ee}(),Fi=function(){var Ee=function He(){(0,R.Z)(this,He)};return Ee.\u0275fac=function(Pe){return new(Pe||Ee)},Ee.\u0275dir=_.lG2({type:Ee,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Ee}(),gs={provide:T,useExisting:(0,_.Gpc)(function(){return Zi}),multi:!0},Zi=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(){return(0,R.Z)(this,Me),Pe.apply(this,arguments)}return(0,C.Z)(Me,[{key:"writeValue",value:function(we){this.setProperty("value",null==we?"":we)}},{key:"registerOnChange",value:function(we){this.onChange=function(Ft){we(""==Ft?null:parseFloat(Ft))}}}]),Me}(g);return Ee.\u0275fac=function(){var He;return function(Me){return(He||(He=_.n5z(Ee)))(Me||Ee)}}(),Ee.\u0275dir=_.lG2({type:Ee,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Pe,Me){1&Pe&&_.NdJ("input",function(we){return Me.onChange(we.target.value)})("blur",function(){return Me.onTouched()})},features:[_._Bn([gs]),_.qOj]}),Ee}(),Qt=function(){var Ee=function He(){(0,R.Z)(this,He)};return Ee.\u0275fac=function(Pe){return new(Pe||Ee)},Ee.\u0275mod=_.oAB({type:Ee}),Ee.\u0275inj=_.cJS({}),Ee}(),bn=new _.OlP("NgModelWithFormControlWarning"),Gn={provide:an,useExisting:(0,_.Gpc)(function(){return mi})},mi=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(Ve,we){var Ft;return(0,R.Z)(this,Me),(Ft=Pe.call(this)).validators=Ve,Ft.asyncValidators=we,Ft.submitted=!1,Ft._onCollectionChange=function(){return Ft._updateDomValue()},Ft.directives=[],Ft.form=null,Ft.ngSubmit=new _.vpe,Ft._setValidators(Ve),Ft._setAsyncValidators(we),Ft}return(0,C.Z)(Me,[{key:"ngOnChanges",value:function(we){this._checkFormPresent(),we.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(Ye(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(we){var Ft=this.form.get(we.path);return ot(Ft,we),Ft.updateValueAndValidity({emitEvent:!1}),this.directives.push(we),Ft}},{key:"getControl",value:function(we){return this.form.get(we.path)}},{key:"removeControl",value:function(we){_e(we.control||null,we),Vt(this.directives,we)}},{key:"addFormGroup",value:function(we){this._setUpFormContainer(we)}},{key:"removeFormGroup",value:function(we){this._cleanUpFormContainer(we)}},{key:"getFormGroup",value:function(we){return this.form.get(we.path)}},{key:"addFormArray",value:function(we){this._setUpFormContainer(we)}},{key:"removeFormArray",value:function(we){this._cleanUpFormContainer(we)}},{key:"getFormArray",value:function(we){return this.form.get(we.path)}},{key:"updateModel",value:function(we,Ft){this.form.get(we.path).setValue(Ft)}},{key:"onSubmit",value:function(we){return this.submitted=!0,Sn(this.form,this.directives),this.ngSubmit.emit(we),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var we=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(we),this.submitted=!1}},{key:"_updateDomValue",value:function(){var we=this;this.directives.forEach(function(Ft){var Tn=Ft.control,zn=we.form.get(Ft.path);Tn!==zn&&(_e(Tn||null,Ft),zn instanceof Xn&&(ot(zn,Ft),Ft.control=zn))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(we){var Ft=this.form.get(we.path);cn(Ft,we),Ft.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(we){if(this.form){var Ft=this.form.get(we.path);Ft&&function(Ee,He){return Ye(Ee,He)}(Ft,we)&&Ft.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Ge(this.form,this),this._oldForm&&Ye(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),Me}(an);return Ee.\u0275fac=function(Pe){return new(Pe||Ee)(_.Y36(z,10),_.Y36(Q,10))},Ee.\u0275dir=_.lG2({type:Ee,selectors:[["","formGroup",""]],hostBindings:function(Pe,Me){1&Pe&&_.NdJ("submit",function(we){return Me.onSubmit(we)})("reset",function(){return Me.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_._Bn([Gn]),_.qOj,_.TTD]}),Ee}(),La={provide:An,useExisting:(0,_.Gpc)(function(){return Ao})},Ao=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(Ve,we,Ft,Tn,zn){var pe;return(0,R.Z)(this,Me),(pe=Pe.call(this))._ngModelWarningConfig=zn,pe._added=!1,pe.update=new _.vpe,pe._ngModelWarningSent=!1,pe._parent=Ve,pe._setValidators(we),pe._setAsyncValidators(Ft),pe.valueAccessor=ir((0,U.Z)(pe),Tn),pe}return(0,C.Z)(Me,[{key:"isDisabled",set:function(we){}},{key:"ngOnChanges",value:function(we){this._added||this._setUpControl(),er(we,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(we){this.viewModel=we,this.update.emit(we)}},{key:"path",get:function(){return wt(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}}]),Me}(An);return Ee.\u0275fac=function(Pe){return new(Pe||Ee)(_.Y36(an,13),_.Y36(z,10),_.Y36(Q,10),_.Y36(T,10),_.Y36(bn,8))},Ee.\u0275dir=_.lG2({type:Ee,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[_._Bn([La]),_.qOj,_.TTD]}),Ee._ngModelWarningSentOnce=!1,Ee}(),ac={provide:z,useExisting:(0,_.Gpc)(function(){return Tu}),multi:!0},hl={provide:z,useExisting:(0,_.Gpc)(function(){return Bo}),multi:!0},Tu=function(){var Ee=function(){function He(){(0,R.Z)(this,He),this._required=!1}return(0,C.Z)(He,[{key:"required",get:function(){return this._required},set:function(Me){this._required=null!=Me&&!1!==Me&&"false"!=="".concat(Me),this._onChange&&this._onChange()}},{key:"validate",value:function(Me){return this.required?de(Me):null}},{key:"registerOnValidatorChange",value:function(Me){this._onChange=Me}}]),He}();return Ee.\u0275fac=function(Pe){return new(Pe||Ee)},Ee.\u0275dir=_.lG2({type:Ee,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Pe,Me){2&Pe&&_.uIk("required",Me.required?"":null)},inputs:{required:"required"},features:[_._Bn([ac])]}),Ee}(),Bo=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(){return(0,R.Z)(this,Me),Pe.apply(this,arguments)}return(0,C.Z)(Me,[{key:"validate",value:function(we){return this.required?oe(we):null}}]),Me}(Tu);return Ee.\u0275fac=function(){var He;return function(Me){return(He||(He=_.n5z(Ee)))(Me||Ee)}}(),Ee.\u0275dir=_.lG2({type:Ee,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Pe,Me){2&Pe&&_.uIk("required",Me.required?"":null)},features:[_._Bn([hl]),_.qOj]}),Ee}(),ku=function(){var Ee=function He(){(0,R.Z)(this,He)};return Ee.\u0275fac=function(Pe){return new(Pe||Ee)},Ee.\u0275mod=_.oAB({type:Ee}),Ee.\u0275inj=_.cJS({imports:[[Qt]]}),Ee}(),Ko=function(){var Ee=function He(){(0,R.Z)(this,He)};return Ee.\u0275fac=function(Pe){return new(Pe||Ee)},Ee.\u0275mod=_.oAB({type:Ee}),Ee.\u0275inj=_.cJS({imports:[ku]}),Ee}(),ys=function(){var Ee=function(){function He(){(0,R.Z)(this,He)}return(0,C.Z)(He,null,[{key:"withConfig",value:function(Me){return{ngModule:He,providers:[{provide:bn,useValue:Me.warnOnNgModelWithFormControl}]}}}]),He}();return Ee.\u0275fac=function(Pe){return new(Pe||Ee)},Ee.\u0275mod=_.oAB({type:Ee}),Ee.\u0275inj=_.cJS({imports:[ku]}),Ee}();function Cr(Ee){return void 0!==Ee.asyncValidators||void 0!==Ee.validators||void 0!==Ee.updateOn}var Uo=function(){var Ee=function(){function He(){(0,R.Z)(this,He)}return(0,C.Z)(He,[{key:"group",value:function(Me){var Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,we=this._reduceControls(Me),Ft=null,Tn=null,zn=void 0;return null!=Ve&&(Cr(Ve)?(Ft=null!=Ve.validators?Ve.validators:null,Tn=null!=Ve.asyncValidators?Ve.asyncValidators:null,zn=null!=Ve.updateOn?Ve.updateOn:void 0):(Ft=null!=Ve.validator?Ve.validator:null,Tn=null!=Ve.asyncValidator?Ve.asyncValidator:null)),new Jr(we,{asyncValidators:Tn,updateOn:zn,validators:Ft})}},{key:"control",value:function(Me,Ve,we){return new Xn(Me,Ve,we)}},{key:"array",value:function(Me,Ve,we){var Ft=this,Tn=Me.map(function(zn){return Ft._createControl(zn)});return new ai(Tn,Ve,we)}},{key:"_reduceControls",value:function(Me){var Ve=this,we={};return Object.keys(Me).forEach(function(Ft){we[Ft]=Ve._createControl(Me[Ft])}),we}},{key:"_createControl",value:function(Me){return Me instanceof Xn||Me instanceof Jr||Me instanceof ai?Me:Array.isArray(Me)?this.control(Me[0],Me.length>1?Me[1]:null,Me.length>2?Me[2]:null):this.control(Me)}}]),He}();return Ee.\u0275fac=function(Pe){return new(Pe||Ee)},Ee.\u0275prov=(0,_.Yz7)({factory:function(){return new Ee},token:Ee,providedIn:ys}),Ee}()},59412:function(le,q,f){"use strict";f.d(q,{yN:function(){return ae},mZ:function(){return ie},rD:function(){return an},K7:function(){return Nn},HF:function(){return rn},Y2:function(){return Ge},BQ:function(){return oe},X2:function(){return An},uc:function(){return lr},Nv:function(){return er},ey:function(){return Vt},Ng:function(){return dt},nP:function(){return Lt},us:function(){return Yt},wG:function(){return Ye},si:function(){return yt},IR:function(){return _e},CB:function(){return sn},jH:function(){return pt},pj:function(){return ye},Kr:function(){return ve},Id:function(){return $},FD:function(){return Ne},dB:function(){return gt},sb:function(){return et},E0:function(){return Hn}}),f(88009),f(20901),f(89200);var Z=f(10509),w=f(97154),R=f(14105),C=f(18967),_=f(65508),N=f(6517),D=f(8392),O=new _.GfV("12.2.2"),P=f(40098),y=f(78081),g=f(68707),T=f(89797),M=f(15427),E=f(57682),x=f(38480),S=f(32819),A=["*",[["mat-option"],["ng-container"]]],L=["*","mat-option, ng-container"];function j(Ue,at){if(1&Ue&&_._UZ(0,"mat-pseudo-checkbox",4),2&Ue){var Ce=_.oxw();_.Q6J("state",Ce.selected?"checked":"unchecked")("disabled",Ce.disabled)}}function K(Ue,at){if(1&Ue&&(_.TgZ(0,"span",5),_._uU(1),_.qZA()),2&Ue){var Ce=_.oxw();_.xp6(1),_.hij("(",Ce.group.label,")")}}var z=["*"],ae=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ue.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ue.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ue.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ue}(),ie=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.COMPLEX="375ms",Ue.ENTERING="225ms",Ue.EXITING="195ms",Ue}(),se=new _.GfV("12.2.2"),de=new _.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),oe=function(){var Ue=function(){function at(Ce,Fe,Ae){(0,C.Z)(this,at),this._hasDoneGlobalChecks=!1,this._document=Ae,Ce._applyBodyHighContrastModeCssClasses(),this._sanityChecks=Fe,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return(0,R.Z)(at,[{key:"_getWindow",value:function(){var Fe=this._document.defaultView||window;return"object"==typeof Fe&&Fe?Fe:null}},{key:"_checkIsEnabled",value:function(Fe){return!(!(0,_.X6Q)()||this._isTestEnv())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Fe])}},{key:"_isTestEnv",value:function(){var Fe=this._getWindow();return Fe&&(Fe.__karma__||Fe.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checkIsEnabled("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._checkIsEnabled("theme")&&this._document.body&&"function"==typeof getComputedStyle){var Fe=this._document.createElement("div");Fe.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(Fe);var Ae=getComputedStyle(Fe);Ae&&"none"!==Ae.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(Fe)}}},{key:"_checkCdkVersionMatch",value:function(){this._checkIsEnabled("version")&&se.full!==O.full&&console.warn("The Angular Material version ("+se.full+") does not match the Angular CDK version ("+O.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),at}();return Ue.\u0275fac=function(Ce){return new(Ce||Ue)(_.LFG(N.qm),_.LFG(de,8),_.LFG(P.K0))},Ue.\u0275mod=_.oAB({type:Ue}),Ue.\u0275inj=_.cJS({imports:[[D.vT],D.vT]}),Ue}();function $(Ue){return function(at){(0,Z.Z)(Fe,at);var Ce=(0,w.Z)(Fe);function Fe(){var Ae;(0,C.Z)(this,Fe);for(var Le=arguments.length,ze=new Array(Le),Nt=0;Nt1&&void 0!==arguments[1]?arguments[1]:0;return function(Ce){(0,Z.Z)(Ae,Ce);var Fe=(0,w.Z)(Ae);function Ae(){var Le;(0,C.Z)(this,Ae);for(var ze=arguments.length,Nt=new Array(ze),mn=0;mn2&&void 0!==arguments[2]?arguments[2]:"mat";Ue.changes.pipe((0,E.O)(Ue)).subscribe(function(Fe){var Ae=Fe.length;Zn(at,"".concat(Ce,"-2-line"),!1),Zn(at,"".concat(Ce,"-3-line"),!1),Zn(at,"".concat(Ce,"-multi-line"),!1),2===Ae||3===Ae?Zn(at,"".concat(Ce,"-").concat(Ae,"-line"),!0):Ae>3&&Zn(at,"".concat(Ce,"-multi-line"),!0)})}function Zn(Ue,at,Ce){var Fe=Ue.nativeElement.classList;Ce?Fe.add(at):Fe.remove(at)}var lr=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.\u0275fac=function(Ce){return new(Ce||Ue)},Ue.\u0275mod=_.oAB({type:Ue}),Ue.\u0275inj=_.cJS({imports:[[oe],oe]}),Ue}(),Bn=function(){function Ue(at,Ce,Fe){(0,C.Z)(this,Ue),this._renderer=at,this.element=Ce,this.config=Fe,this.state=3}return(0,R.Z)(Ue,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),Ue}(),En={enterDuration:225,exitDuration:150},Kt=(0,M.i$)({passive:!0}),wt=["mousedown","touchstart"],ot=["mouseup","mouseleave","touchend","touchcancel"],_e=function(){function Ue(at,Ce,Fe,Ae){(0,C.Z)(this,Ue),this._target=at,this._ngZone=Ce,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,Ae.isBrowser&&(this._containerElement=(0,y.fI)(Fe))}return(0,R.Z)(Ue,[{key:"fadeInRipple",value:function(Ce,Fe){var Ae=this,Le=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ze=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Nt=Object.assign(Object.assign({},En),Le.animation);Le.centered&&(Ce=ze.left+ze.width/2,Fe=ze.top+ze.height/2);var mn=Le.radius||he(Ce,Fe,ze),Xn=Ce-ze.left,Jr=Fe-ze.top,ai=Nt.enterDuration,Ir=document.createElement("div");Ir.classList.add("mat-ripple-element"),Ir.style.left="".concat(Xn-mn,"px"),Ir.style.top="".concat(Jr-mn,"px"),Ir.style.height="".concat(2*mn,"px"),Ir.style.width="".concat(2*mn,"px"),null!=Le.color&&(Ir.style.backgroundColor=Le.color),Ir.style.transitionDuration="".concat(ai,"ms"),this._containerElement.appendChild(Ir),re(Ir),Ir.style.transform="scale(1)";var vi=new Bn(this,Ir,Le);return vi.state=0,this._activeRipples.add(vi),Le.persistent||(this._mostRecentTransientRipple=vi),this._runTimeoutOutsideZone(function(){var co=vi===Ae._mostRecentTransientRipple;vi.state=1,!Le.persistent&&(!co||!Ae._isPointerDown)&&vi.fadeOut()},ai),vi}},{key:"fadeOutRipple",value:function(Ce){var Fe=this._activeRipples.delete(Ce);if(Ce===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),Fe){var Ae=Ce.element,Le=Object.assign(Object.assign({},En),Ce.config.animation);Ae.style.transitionDuration="".concat(Le.exitDuration,"ms"),Ae.style.opacity="0",Ce.state=2,this._runTimeoutOutsideZone(function(){Ce.state=3,Ae.parentNode.removeChild(Ae)},Le.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(Ce){return Ce.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(Ce){Ce.config.persistent||Ce.fadeOut()})}},{key:"setupTriggerEvents",value:function(Ce){var Fe=(0,y.fI)(Ce);!Fe||Fe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Fe,this._registerEvents(wt))}},{key:"handleEvent",value:function(Ce){"mousedown"===Ce.type?this._onMousedown(Ce):"touchstart"===Ce.type?this._onTouchStart(Ce):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ot),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(Ce){var Fe=(0,N.X6)(Ce),Ae=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(Ce,Fe)})}},{key:"_registerEvents",value:function(Ce){var Fe=this;this._ngZone.runOutsideAngular(function(){Ce.forEach(function(Ae){Fe._triggerElement.addEventListener(Ae,Fe,Kt)})})}},{key:"_removeTriggerEvents",value:function(){var Ce=this;this._triggerElement&&(wt.forEach(function(Fe){Ce._triggerElement.removeEventListener(Fe,Ce,Kt)}),this._pointerUpEventsRegistered&&ot.forEach(function(Fe){Ce._triggerElement.removeEventListener(Fe,Ce,Kt)}))}}]),Ue}();function re(Ue){window.getComputedStyle(Ue).getPropertyValue("opacity")}function he(Ue,at,Ce){var Fe=Math.max(Math.abs(Ue-Ce.left),Math.abs(Ue-Ce.right)),Ae=Math.max(Math.abs(at-Ce.top),Math.abs(at-Ce.bottom));return Math.sqrt(Fe*Fe+Ae*Ae)}var Ge=new _.OlP("mat-ripple-global-options"),Ye=function(){var Ue=function(){function at(Ce,Fe,Ae,Le,ze){(0,C.Z)(this,at),this._elementRef=Ce,this._animationMode=ze,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Le||{},this._rippleRenderer=new _e(this,Fe,Ce,Ae)}return(0,R.Z)(at,[{key:"disabled",get:function(){return this._disabled},set:function(Fe){Fe&&this.fadeOutAllNonPersistent(),this._disabled=Fe,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(Fe){this._trigger=Fe,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(Fe){var Ae=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,Le=arguments.length>2?arguments[2]:void 0;return"number"==typeof Fe?this._rippleRenderer.fadeInRipple(Fe,Ae,Object.assign(Object.assign({},this.rippleConfig),Le)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Fe))}}]),at}();return Ue.\u0275fac=function(Ce){return new(Ce||Ue)(_.Y36(_.SBq),_.Y36(_.R0b),_.Y36(M.t4),_.Y36(Ge,8),_.Y36(x.Qb,8))},Ue.\u0275dir=_.lG2({type:Ue,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Ce,Fe){2&Ce&&_.ekj("mat-ripple-unbounded",Fe.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"]}),Ue}(),yt=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.\u0275fac=function(Ce){return new(Ce||Ue)},Ue.\u0275mod=_.oAB({type:Ue}),Ue.\u0275inj=_.cJS({imports:[[oe,M.ud],oe]}),Ue}(),Lt=function(){var Ue=function at(Ce){(0,C.Z)(this,at),this._animationMode=Ce,this.state="unchecked",this.disabled=!1};return Ue.\u0275fac=function(Ce){return new(Ce||Ue)(_.Y36(x.Qb,8))},Ue.\u0275cmp=_.Xpm({type:Ue,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Ce,Fe){2&Ce&&_.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Fe.state)("mat-pseudo-checkbox-checked","checked"===Fe.state)("mat-pseudo-checkbox-disabled",Fe.disabled)("_mat-animation-noopable","NoopAnimations"===Fe._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Ce,Fe){},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}),Ue}(),Yt=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.\u0275fac=function(Ce){return new(Ce||Ue)},Ue.\u0275mod=_.oAB({type:Ue}),Ue.\u0275inj=_.cJS({imports:[[oe]]}),Ue}(),rn=new _.OlP("MAT_OPTION_PARENT_COMPONENT"),cn=$(function(){return function Ue(){(0,C.Z)(this,Ue)}}()),_n=0,xn=function(){var Ue=function(at){(0,Z.Z)(Fe,at);var Ce=(0,w.Z)(Fe);function Fe(Ae){var Le,ze;return(0,C.Z)(this,Fe),(Le=Ce.call(this))._labelId="mat-optgroup-label-".concat(_n++),Le._inert=null!==(ze=null==Ae?void 0:Ae.inertGroups)&&void 0!==ze&&ze,Le}return Fe}(cn);return Ue.\u0275fac=function(Ce){return new(Ce||Ue)(_.Y36(rn,8))},Ue.\u0275dir=_.lG2({type:Ue,inputs:{label:"label"},features:[_.qOj]}),Ue}(),Nn=new _.OlP("MatOptgroup"),er=function(){var Ue=function(at){(0,Z.Z)(Fe,at);var Ce=(0,w.Z)(Fe);function Fe(){return(0,C.Z)(this,Fe),Ce.apply(this,arguments)}return Fe}(xn);return Ue.\u0275fac=function(){var at;return function(Fe){return(at||(at=_.n5z(Ue)))(Fe||Ue)}}(),Ue.\u0275cmp=_.Xpm({type:Ue,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(Ce,Fe){2&Ce&&(_.uIk("role",Fe._inert?null:"group")("aria-disabled",Fe._inert?null:Fe.disabled.toString())("aria-labelledby",Fe._inert?null:Fe._labelId),_.ekj("mat-optgroup-disabled",Fe.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[_._Bn([{provide:Nn,useExisting:Ue}]),_.qOj],ngContentSelectors:L,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(Ce,Fe){1&Ce&&(_.F$t(A),_.TgZ(0,"span",0),_._uU(1),_.Hsn(2),_.qZA(),_.Hsn(3,1)),2&Ce&&(_.Q6J("id",Fe._labelId),_.xp6(1),_.hij("",Fe.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}),Ue}(),wn=0,Sn=function Ue(at){var Ce=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,C.Z)(this,Ue),this.source=at,this.isUserInput=Ce},ir=function(){var Ue=function(){function at(Ce,Fe,Ae,Le){(0,C.Z)(this,at),this._element=Ce,this._changeDetectorRef=Fe,this._parent=Ae,this.group=Le,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(wn++),this.onSelectionChange=new _.vpe,this._stateChanges=new g.xQ}return(0,R.Z)(at,[{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(Fe){this._disabled=(0,y.Ig)(Fe)}},{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(Fe,Ae){var Le=this._getHostElement();"function"==typeof Le.focus&&Le.focus(Ae)}},{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(Fe){(Fe.keyCode===S.K5||Fe.keyCode===S.L_)&&!(0,S.Vb)(Fe)&&(this._selectViaInteraction(),Fe.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 Fe=this.viewValue;Fe!==this._mostRecentViewValue&&(this._mostRecentViewValue=Fe,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var Fe=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new Sn(this,Fe))}}]),at}();return Ue.\u0275fac=function(Ce){return new(Ce||Ue)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(void 0),_.Y36(xn))},Ue.\u0275dir=_.lG2({type:Ue,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),Ue}(),Vt=function(){var Ue=function(at){(0,Z.Z)(Fe,at);var Ce=(0,w.Z)(Fe);function Fe(Ae,Le,ze,Nt){return(0,C.Z)(this,Fe),Ce.call(this,Ae,Le,ze,Nt)}return Fe}(ir);return Ue.\u0275fac=function(Ce){return new(Ce||Ue)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(rn,8),_.Y36(Nn,8))},Ue.\u0275cmp=_.Xpm({type:Ue,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Ce,Fe){1&Ce&&_.NdJ("click",function(){return Fe._selectViaInteraction()})("keydown",function(Le){return Fe._handleKeydown(Le)}),2&Ce&&(_.Ikx("id",Fe.id),_.uIk("tabindex",Fe._getTabIndex())("aria-selected",Fe._getAriaSelected())("aria-disabled",Fe.disabled.toString()),_.ekj("mat-selected",Fe.selected)("mat-option-multiple",Fe.multiple)("mat-active",Fe.active)("mat-option-disabled",Fe.disabled))},exportAs:["matOption"],features:[_.qOj],ngContentSelectors:z,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(Ce,Fe){1&Ce&&(_.F$t(),_.YNc(0,j,1,2,"mat-pseudo-checkbox",0),_.TgZ(1,"span",1),_.Hsn(2),_.qZA(),_.YNc(3,K,2,1,"span",2),_._UZ(4,"div",3)),2&Ce&&(_.Q6J("ngIf",Fe.multiple),_.xp6(3),_.Q6J("ngIf",Fe.group&&Fe.group._inert),_.xp6(1),_.Q6J("matRippleTrigger",Fe._getHostElement())("matRippleDisabled",Fe.disabled||Fe.disableRipple))},directives:[P.O5,Ye,Lt],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}),Ue}();function sn(Ue,at,Ce){if(Ce.length){for(var Fe=at.toArray(),Ae=Ce.toArray(),Le=0,ze=0;zeCe+Fe?Math.max(0,Ue-Fe+at):Ce}var dt=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.\u0275fac=function(Ce){return new(Ce||Ue)},Ue.\u0275mod=_.oAB({type:Ue}),Ue.\u0275inj=_.cJS({imports:[[yt,P.ez,oe,Yt]]}),Ue}()},93386:function(le,q,f){"use strict";f.d(q,{d:function(){return R},t:function(){return C}});var U=f(18967),B=f(14105),V=f(78081),Z=f(59412),w=f(65508),R=function(){var _=function(){function N(){(0,U.Z)(this,N),this._vertical=!1,this._inset=!1}return(0,B.Z)(N,[{key:"vertical",get:function(){return this._vertical},set:function(O){this._vertical=(0,V.Ig)(O)}},{key:"inset",get:function(){return this._inset},set:function(O){this._inset=(0,V.Ig)(O)}}]),N}();return _.\u0275fac=function(D){return new(D||_)},_.\u0275cmp=w.Xpm({type:_,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(D,O){2&D&&(w.uIk("aria-orientation",O.vertical?"vertical":"horizontal"),w.ekj("mat-divider-vertical",O.vertical)("mat-divider-horizontal",!O.vertical)("mat-divider-inset",O.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(D,O){},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}),_}(),C=function(){var _=function N(){(0,U.Z)(this,N)};return _.\u0275fac=function(D){return new(D||_)},_.\u0275mod=w.oAB({type:_}),_.\u0275inj=w.cJS({imports:[[Z.BQ],Z.BQ]}),_}()},36410:function(le,q,f){"use strict";f.d(q,{G_:function(){return Bn},TO:function(){return Se},KE:function(){return En},Eo:function(){return je},lN:function(){return mr},hX:function(){return qt},R9:function(){return Ut}});var U=f(10629),B=f(14105),V=f(10509),Z=f(97154),w=f(18967),R=f(96798),C=f(40098),_=f(65508),N=f(59412),D=f(78081),O=f(68707),P=f(55371),y=f(33090),g=f(57682),T=f(44213),M=f(48359),E=f(739),x=f(38480),S=f(8392),A=f(15427),L=["underline"],j=["connectionContainer"],K=["inputContainer"],z=["label"];function Q(Kt,wt){1&Kt&&(_.ynx(0),_.TgZ(1,"div",14),_._UZ(2,"div",15),_._UZ(3,"div",16),_._UZ(4,"div",17),_.qZA(),_.TgZ(5,"div",18),_._UZ(6,"div",15),_._UZ(7,"div",16),_._UZ(8,"div",17),_.qZA(),_.BQk())}function ae(Kt,wt){1&Kt&&(_.TgZ(0,"div",19),_.Hsn(1,1),_.qZA())}function ie(Kt,wt){if(1&Kt&&(_.ynx(0),_.Hsn(1,2),_.TgZ(2,"span"),_._uU(3),_.qZA(),_.BQk()),2&Kt){var ot=_.oxw(2);_.xp6(3),_.Oqu(ot._control.placeholder)}}function se(Kt,wt){1&Kt&&_.Hsn(0,3,["*ngSwitchCase","true"])}function ue(Kt,wt){1&Kt&&(_.TgZ(0,"span",23),_._uU(1," *"),_.qZA())}function de(Kt,wt){if(1&Kt){var ot=_.EpF();_.TgZ(0,"label",20,21),_.NdJ("cdkObserveContent",function(){return _.CHM(ot),_.oxw().updateOutlineGap()}),_.YNc(2,ie,4,1,"ng-container",12),_.YNc(3,se,1,0,"ng-content",12),_.YNc(4,ue,2,0,"span",22),_.qZA()}if(2&Kt){var _e=_.oxw();_.ekj("mat-empty",_e._control.empty&&!_e._shouldAlwaysFloat())("mat-form-field-empty",_e._control.empty&&!_e._shouldAlwaysFloat())("mat-accent","accent"==_e.color)("mat-warn","warn"==_e.color),_.Q6J("cdkObserveContentDisabled","outline"!=_e.appearance)("id",_e._labelId)("ngSwitch",_e._hasLabel()),_.uIk("for",_e._control.id)("aria-owns",_e._control.id),_.xp6(2),_.Q6J("ngSwitchCase",!1),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngIf",!_e.hideRequiredMarker&&_e._control.required&&!_e._control.disabled)}}function oe(Kt,wt){1&Kt&&(_.TgZ(0,"div",24),_.Hsn(1,4),_.qZA())}function $(Kt,wt){if(1&Kt&&(_.TgZ(0,"div",25,26),_._UZ(2,"span",27),_.qZA()),2&Kt){var ot=_.oxw();_.xp6(2),_.ekj("mat-accent","accent"==ot.color)("mat-warn","warn"==ot.color)}}function ye(Kt,wt){if(1&Kt&&(_.TgZ(0,"div"),_.Hsn(1,5),_.qZA()),2&Kt){var ot=_.oxw();_.Q6J("@transitionMessages",ot._subscriptAnimationState)}}function ve(Kt,wt){if(1&Kt&&(_.TgZ(0,"div",31),_._uU(1),_.qZA()),2&Kt){var ot=_.oxw(2);_.Q6J("id",ot._hintLabelId),_.xp6(1),_.Oqu(ot.hintLabel)}}function et(Kt,wt){if(1&Kt&&(_.TgZ(0,"div",28),_.YNc(1,ve,2,2,"div",29),_.Hsn(2,6),_._UZ(3,"div",30),_.Hsn(4,7),_.qZA()),2&Kt){var ot=_.oxw();_.Q6J("@transitionMessages",ot._subscriptAnimationState),_.xp6(1),_.Q6J("ngIf",ot.hintLabel)}}var Ne=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],gt=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],_t=0,Rt=new _.OlP("MatError"),Se=function(){var Kt=function wt(ot,_e){(0,w.Z)(this,wt),this.id="mat-error-".concat(_t++),ot||_e.nativeElement.setAttribute("aria-live","polite")};return Kt.\u0275fac=function(ot){return new(ot||Kt)(_.$8M("aria-live"),_.Y36(_.SBq))},Kt.\u0275dir=_.lG2({type:Kt,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(ot,_e){2&ot&&_.uIk("id",_e.id)},inputs:{id:"id"},features:[_._Bn([{provide:Rt,useExisting:Kt}])]}),Kt}(),Oe={transitionMessages:(0,E.X$)("transitionMessages",[(0,E.SB)("enter",(0,E.oB)({opacity:1,transform:"translateY(0%)"})),(0,E.eR)("void => enter",[(0,E.oB)({opacity:0,transform:"translateY(-5px)"}),(0,E.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},je=function(){var Kt=function wt(){(0,w.Z)(this,wt)};return Kt.\u0275fac=function(ot){return new(ot||Kt)},Kt.\u0275dir=_.lG2({type:Kt}),Kt}(),vt=new _.OlP("MatHint"),qt=function(){var Kt=function wt(){(0,w.Z)(this,wt)};return Kt.\u0275fac=function(ot){return new(ot||Kt)},Kt.\u0275dir=_.lG2({type:Kt,selectors:[["mat-label"]]}),Kt}(),Ct=function(){var Kt=function wt(){(0,w.Z)(this,wt)};return Kt.\u0275fac=function(ot){return new(ot||Kt)},Kt.\u0275dir=_.lG2({type:Kt,selectors:[["mat-placeholder"]]}),Kt}(),jt=new _.OlP("MatPrefix"),nn=new _.OlP("MatSuffix"),Ut=function(){var Kt=function wt(){(0,w.Z)(this,wt)};return Kt.\u0275fac=function(ot){return new(ot||Kt)},Kt.\u0275dir=_.lG2({type:Kt,selectors:[["","matSuffix",""]],features:[_._Bn([{provide:nn,useExisting:Kt}])]}),Kt}(),an=0,Zn=(0,N.pj)(function(){return function Kt(wt){(0,w.Z)(this,Kt),this._elementRef=wt}}(),"primary"),lr=new _.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Bn=new _.OlP("MatFormField"),En=function(){var Kt=function(wt){(0,V.Z)(_e,wt);var ot=(0,Z.Z)(_e);function _e(re,he,Ge,Ye,yt,Lt,Yt,rn){var cn;return(0,w.Z)(this,_e),(cn=ot.call(this,re))._changeDetectorRef=he,cn._dir=Ye,cn._defaults=yt,cn._platform=Lt,cn._ngZone=Yt,cn._outlineGapCalculationNeededImmediately=!1,cn._outlineGapCalculationNeededOnStable=!1,cn._destroyed=new O.xQ,cn._showAlwaysAnimate=!1,cn._subscriptAnimationState="",cn._hintLabel="",cn._hintLabelId="mat-hint-".concat(an++),cn._labelId="mat-form-field-label-".concat(an++),cn.floatLabel=cn._getDefaultFloatLabelState(),cn._animationsEnabled="NoopAnimations"!==rn,cn.appearance=yt&&yt.appearance?yt.appearance:"legacy",cn._hideRequiredMarker=!(!yt||null==yt.hideRequiredMarker)&&yt.hideRequiredMarker,cn}return(0,B.Z)(_e,[{key:"appearance",get:function(){return this._appearance},set:function(he){var Ge=this._appearance;this._appearance=he||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&Ge!==he&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(he){this._hideRequiredMarker=(0,D.Ig)(he)}},{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(he){this._hintLabel=he,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(he){he!==this._floatLabel&&(this._floatLabel=he||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(he){this._explicitFormFieldControl=he}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var he=this;this._validateControlChild();var Ge=this._control;Ge.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(Ge.controlType)),Ge.stateChanges.pipe((0,g.O)(null)).subscribe(function(){he._validatePlaceholders(),he._syncDescribedByIds(),he._changeDetectorRef.markForCheck()}),Ge.ngControl&&Ge.ngControl.valueChanges&&Ge.ngControl.valueChanges.pipe((0,T.R)(this._destroyed)).subscribe(function(){return he._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){he._ngZone.onStable.pipe((0,T.R)(he._destroyed)).subscribe(function(){he._outlineGapCalculationNeededOnStable&&he.updateOutlineGap()})}),(0,P.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){he._outlineGapCalculationNeededOnStable=!0,he._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,g.O)(null)).subscribe(function(){he._processHints(),he._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,g.O)(null)).subscribe(function(){he._syncDescribedByIds(),he._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,T.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?he._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return he.updateOutlineGap()})}):he.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(he){var Ge=this._control?this._control.ngControl:null;return Ge&&Ge[he]}},{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 he=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,y.R)(this._label.nativeElement,"transitionend").pipe((0,M.q)(1)).subscribe(function(){he._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 he=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&he.push.apply(he,(0,U.Z)(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var Ge=this._hintChildren?this._hintChildren.find(function(yt){return"start"===yt.align}):null,Ye=this._hintChildren?this._hintChildren.find(function(yt){return"end"===yt.align}):null;Ge?he.push(Ge.id):this._hintLabel&&he.push(this._hintLabelId),Ye&&he.push(Ye.id)}else this._errorChildren&&he.push.apply(he,(0,U.Z)(this._errorChildren.map(function(yt){return yt.id})));this._control.setDescribedByIds(he)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var he=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&he&&he.children.length&&he.textContent.trim()&&this._platform.isBrowser){if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);var Ge=0,Ye=0,yt=this._connectionContainerRef.nativeElement,Lt=yt.querySelectorAll(".mat-form-field-outline-start"),Yt=yt.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var rn=yt.getBoundingClientRect();if(0===rn.width&&0===rn.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var cn=this._getStartEnd(rn),_n=he.children,xn=this._getStartEnd(_n[0].getBoundingClientRect()),Nn=0,er=0;er<_n.length;er++)Nn+=_n[er].offsetWidth;Ge=Math.abs(xn-cn)-5,Ye=Nn>0?.75*Nn+10:0}for(var wn=0;wn void",(0,ue.IO)("@transformPanel",[(0,ue.pV)()],{optional:!0}))]),transformPanel:(0,ue.X$)("transformPanel",[(0,ue.SB)("void",(0,ue.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,ue.SB)("showing",(0,ue.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,ue.SB)("showing-multiple",(0,ue.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,ue.eR)("void => *",(0,ue.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,ue.eR)("* => void",(0,ue.jt)("100ms 25ms linear",(0,ue.oB)({opacity:0})))])},Ht=0,bt=new O.OlP("mat-select-scroll-strategy"),Ut=new O.OlP("MAT_SELECT_CONFIG"),an={provide:bt,deps:[N.aV],useFactory:function(Kt){return function(){return Kt.scrollStrategies.reposition()}}},An=function Kt(wt,ot){(0,_.Z)(this,Kt),this.source=wt,this.value=ot},Hn=(0,P.Kr)((0,P.sb)((0,P.Id)((0,P.FD)(function(){return function Kt(wt,ot,_e,re,he){(0,_.Z)(this,Kt),this._elementRef=wt,this._defaultErrorStateMatcher=ot,this._parentForm=_e,this._parentFormGroup=re,this.ngControl=he}}())))),Zn=new O.OlP("MatSelectTrigger"),Bn=function(){var Kt=function(wt){(0,R.Z)(_e,wt);var ot=(0,C.Z)(_e);function _e(re,he,Ge,Ye,yt,Lt,Yt,rn,cn,_n,xn,Nn,er,wn){var Sn,ir,Vt,sn;return(0,_.Z)(this,_e),(Sn=ot.call(this,yt,Ye,Yt,rn,_n))._viewportRuler=re,Sn._changeDetectorRef=he,Sn._ngZone=Ge,Sn._dir=Lt,Sn._parentFormField=cn,Sn._liveAnnouncer=er,Sn._defaultOptions=wn,Sn._panelOpen=!1,Sn._compareWith=function(pt,dt){return pt===dt},Sn._uid="mat-select-".concat(Ht++),Sn._triggerAriaLabelledBy=null,Sn._destroy=new S.xQ,Sn._onChange=function(){},Sn._onTouched=function(){},Sn._valueId="mat-select-value-".concat(Ht++),Sn._panelDoneAnimatingStream=new S.xQ,Sn._overlayPanelClass=(null===(ir=Sn._defaultOptions)||void 0===ir?void 0:ir.overlayPanelClass)||"",Sn._focused=!1,Sn.controlType="mat-select",Sn._required=!1,Sn._multiple=!1,Sn._disableOptionCentering=null!==(sn=null===(Vt=Sn._defaultOptions)||void 0===Vt?void 0:Vt.disableOptionCentering)&&void 0!==sn&&sn,Sn.ariaLabel="",Sn.optionSelectionChanges=(0,A.P)(function(){var pt=Sn.options;return pt?pt.changes.pipe((0,j.O)(pt),(0,K.w)(function(){return L.T.apply(void 0,(0,V.Z)(pt.map(function(dt){return dt.onSelectionChange})))})):Sn._ngZone.onStable.pipe((0,z.q)(1),(0,K.w)(function(){return Sn.optionSelectionChanges}))}),Sn.openedChange=new O.vpe,Sn._openedStream=Sn.openedChange.pipe((0,Q.h)(function(pt){return pt}),(0,ae.U)(function(){})),Sn._closedStream=Sn.openedChange.pipe((0,Q.h)(function(pt){return!pt}),(0,ae.U)(function(){})),Sn.selectionChange=new O.vpe,Sn.valueChange=new O.vpe,Sn.ngControl&&(Sn.ngControl.valueAccessor=(0,w.Z)(Sn)),null!=(null==wn?void 0:wn.typeaheadDebounceInterval)&&(Sn._typeaheadDebounceInterval=wn.typeaheadDebounceInterval),Sn._scrollStrategyFactory=Nn,Sn._scrollStrategy=Sn._scrollStrategyFactory(),Sn.tabIndex=parseInt(xn)||0,Sn.id=Sn.id,Sn}return(0,Z.Z)(_e,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(he){this._placeholder=he,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(he){this._required=(0,M.Ig)(he),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(he){this._multiple=(0,M.Ig)(he)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(he){this._disableOptionCentering=(0,M.Ig)(he)}},{key:"compareWith",get:function(){return this._compareWith},set:function(he){this._compareWith=he,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(he){(he!==this._value||this._multiple&&Array.isArray(he))&&(this.options&&this._setSelectionByValue(he),this._value=he)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(he){this._typeaheadDebounceInterval=(0,M.su)(he)}},{key:"id",get:function(){return this._id},set:function(he){this._id=he||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var he=this;this._selectionModel=new E.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ie.x)(),(0,se.R)(this._destroy)).subscribe(function(){return he._panelDoneAnimating(he.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var he=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,se.R)(this._destroy)).subscribe(function(Ge){Ge.added.forEach(function(Ye){return Ye.select()}),Ge.removed.forEach(function(Ye){return Ye.deselect()})}),this.options.changes.pipe((0,j.O)(null),(0,se.R)(this._destroy)).subscribe(function(){he._resetOptions(),he._initializeSelection()})}},{key:"ngDoCheck",value:function(){var he=this._getTriggerAriaLabelledby();if(he!==this._triggerAriaLabelledBy){var Ge=this._elementRef.nativeElement;this._triggerAriaLabelledBy=he,he?Ge.setAttribute("aria-labelledby",he):Ge.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(he){he.disabled&&this.stateChanges.next(),he.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(he){this.value=he}},{key:"registerOnChange",value:function(he){this._onChange=he}},{key:"registerOnTouched",value:function(he){this._onTouched=he}},{key:"setDisabledState",value:function(he){this.disabled=he,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 he=this._selectionModel.selected.map(function(Ge){return Ge.viewValue});return this._isRtl()&&he.reverse(),he.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(he){this.disabled||(this.panelOpen?this._handleOpenKeydown(he):this._handleClosedKeydown(he))}},{key:"_handleClosedKeydown",value:function(he){var Ge=he.keyCode,Ye=Ge===x.JH||Ge===x.LH||Ge===x.oh||Ge===x.SV,yt=Ge===x.K5||Ge===x.L_,Lt=this._keyManager;if(!Lt.isTyping()&&yt&&!(0,x.Vb)(he)||(this.multiple||he.altKey)&&Ye)he.preventDefault(),this.open();else if(!this.multiple){var Yt=this.selected;Lt.onKeydown(he);var rn=this.selected;rn&&Yt!==rn&&this._liveAnnouncer.announce(rn.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(he){var Ge=this._keyManager,Ye=he.keyCode,yt=Ye===x.JH||Ye===x.LH,Lt=Ge.isTyping();if(yt&&he.altKey)he.preventDefault(),this.close();else if(Lt||Ye!==x.K5&&Ye!==x.L_||!Ge.activeItem||(0,x.Vb)(he))if(!Lt&&this._multiple&&Ye===x.A&&he.ctrlKey){he.preventDefault();var Yt=this.options.some(function(cn){return!cn.disabled&&!cn.selected});this.options.forEach(function(cn){cn.disabled||(Yt?cn.select():cn.deselect())})}else{var rn=Ge.activeItemIndex;Ge.onKeydown(he),this._multiple&&yt&&he.shiftKey&&Ge.activeItem&&Ge.activeItemIndex!==rn&&Ge.activeItem._selectViaInteraction()}else he.preventDefault(),Ge.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 he=this;this._overlayDir.positionChange.pipe((0,z.q)(1)).subscribe(function(){he._changeDetectorRef.detectChanges(),he._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 he=this;Promise.resolve().then(function(){he._setSelectionByValue(he.ngControl?he.ngControl.value:he._value),he.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(he){var Ge=this;if(this._selectionModel.selected.forEach(function(yt){return yt.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&he)Array.isArray(he),he.forEach(function(yt){return Ge._selectValue(yt)}),this._sortValues();else{var Ye=this._selectValue(he);Ye?this._keyManager.updateActiveItem(Ye):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(he){var Ge=this,Ye=this.options.find(function(yt){if(Ge._selectionModel.isSelected(yt))return!1;try{return null!=yt.value&&Ge._compareWith(yt.value,he)}catch(Lt){return!1}});return Ye&&this._selectionModel.select(Ye),Ye}},{key:"_initKeyManager",value:function(){var he=this;this._keyManager=new T.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,se.R)(this._destroy)).subscribe(function(){he.panelOpen&&(!he.multiple&&he._keyManager.activeItem&&he._keyManager.activeItem._selectViaInteraction(),he.focus(),he.close())}),this._keyManager.change.pipe((0,se.R)(this._destroy)).subscribe(function(){he._panelOpen&&he.panel?he._scrollOptionIntoView(he._keyManager.activeItemIndex||0):!he._panelOpen&&!he.multiple&&he._keyManager.activeItem&&he._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var he=this,Ge=(0,L.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,se.R)(Ge)).subscribe(function(Ye){he._onSelect(Ye.source,Ye.isUserInput),Ye.isUserInput&&!he.multiple&&he._panelOpen&&(he.close(),he.focus())}),L.T.apply(void 0,(0,V.Z)(this.options.map(function(Ye){return Ye._stateChanges}))).pipe((0,se.R)(Ge)).subscribe(function(){he._changeDetectorRef.markForCheck(),he.stateChanges.next()})}},{key:"_onSelect",value:function(he,Ge){var Ye=this._selectionModel.isSelected(he);null!=he.value||this._multiple?(Ye!==he.selected&&(he.selected?this._selectionModel.select(he):this._selectionModel.deselect(he)),Ge&&this._keyManager.setActiveItem(he),this.multiple&&(this._sortValues(),Ge&&this.focus())):(he.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(he.value)),Ye!==this._selectionModel.isSelected(he)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var he=this;if(this.multiple){var Ge=this.options.toArray();this._selectionModel.sort(function(Ye,yt){return he.sortComparator?he.sortComparator(Ye,yt,Ge):Ge.indexOf(Ye)-Ge.indexOf(yt)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(he){var Ge;Ge=this.multiple?this.selected.map(function(Ye){return Ye.value}):this.selected?this.selected.value:he,this._value=Ge,this.valueChange.emit(Ge),this._onChange(Ge),this.selectionChange.emit(this._getChangeEvent(Ge)),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 he;return!this._panelOpen&&!this.disabled&&(null===(he=this.options)||void 0===he?void 0:he.length)>0}},{key:"focus",value:function(he){this._elementRef.nativeElement.focus(he)}},{key:"_getPanelAriaLabelledby",value:function(){var he;if(this.ariaLabel)return null;var Ge=null===(he=this._parentFormField)||void 0===he?void 0:he.getLabelId();return this.ariaLabelledby?(Ge?Ge+" ":"")+this.ariaLabelledby:Ge}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var he;if(this.ariaLabel)return null;var Ge=null===(he=this._parentFormField)||void 0===he?void 0:he.getLabelId(),Ye=(Ge?Ge+" ":"")+this._valueId;return this.ariaLabelledby&&(Ye+=" "+this.ariaLabelledby),Ye}},{key:"_panelDoneAnimating",value:function(he){this.openedChange.emit(he)}},{key:"setDescribedByIds",value:function(he){this._ariaDescribedby=he.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),_e}(Hn);return Kt.\u0275fac=function(ot){return new(ot||Kt)(O.Y36(g.rL),O.Y36(O.sBO),O.Y36(O.R0b),O.Y36(P.rD),O.Y36(O.SBq),O.Y36(de.Is,8),O.Y36(oe.F,8),O.Y36(oe.sg,8),O.Y36(y.G_,8),O.Y36(oe.a5,10),O.$8M("tabindex"),O.Y36(bt),O.Y36(T.Kd),O.Y36(Ut,8))},Kt.\u0275dir=O.lG2({type:Kt,viewQuery:function(ot,_e){var re;1&ot&&(O.Gf($,5),O.Gf(ye,5),O.Gf(N.pI,5)),2&ot&&(O.iGM(re=O.CRH())&&(_e.trigger=re.first),O.iGM(re=O.CRH())&&(_e.panel=re.first),O.iGM(re=O.CRH())&&(_e._overlayDir=re.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:[O.qOj,O.TTD]}),Kt}(),En=function(){var Kt=function(wt){(0,R.Z)(_e,wt);var ot=(0,C.Z)(_e);function _e(){var re;return(0,_.Z)(this,_e),(re=ot.apply(this,arguments))._scrollTop=0,re._triggerFontSize=0,re._transformOrigin="top",re._offsetY=0,re._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],re}return(0,Z.Z)(_e,[{key:"_calculateOverlayScroll",value:function(he,Ge,Ye){var yt=this._getItemHeight();return Math.min(Math.max(0,yt*he-Ge+yt/2),Ye)}},{key:"ngOnInit",value:function(){var he=this;(0,U.Z)((0,B.Z)(_e.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,se.R)(this._destroy)).subscribe(function(){he.panelOpen&&(he._triggerRect=he.trigger.nativeElement.getBoundingClientRect(),he._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var he=this;(0,U.Z)((0,B.Z)(_e.prototype),"_canOpen",this).call(this)&&((0,U.Z)((0,B.Z)(_e.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,z.q)(1)).subscribe(function(){he._triggerFontSize&&he._overlayDir.overlayRef&&he._overlayDir.overlayRef.overlayElement&&(he._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(he._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(he){var Ge=(0,P.CB)(he,this.options,this.optionGroups),Ye=this._getItemHeight();this.panel.nativeElement.scrollTop=0===he&&1===Ge?0:(0,P.jH)((he+Ge)*Ye,Ye,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(he){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),(0,U.Z)((0,B.Z)(_e.prototype),"_panelDoneAnimating",this).call(this,he)}},{key:"_getChangeEvent",value:function(he){return new An(this,he)}},{key:"_calculateOverlayOffsetX",value:function(){var Lt,he=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),Ge=this._viewportRuler.getViewportSize(),Ye=this._isRtl(),yt=this.multiple?56:32;if(this.multiple)Lt=40;else if(this.disableOptionCentering)Lt=16;else{var Yt=this._selectionModel.selected[0]||this.options.first;Lt=Yt&&Yt.group?32:16}Ye||(Lt*=-1);var rn=0-(he.left+Lt-(Ye?yt:0)),cn=he.right+Lt-Ge.width+(Ye?0:yt);rn>0?Lt+=rn+8:cn>0&&(Lt-=cn+8),this._overlayDir.offsetX=Math.round(Lt),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(he,Ge,Ye){var rn,yt=this._getItemHeight(),Lt=(yt-this._triggerRect.height)/2,Yt=Math.floor(256/yt);return this.disableOptionCentering?0:(rn=0===this._scrollTop?he*yt:this._scrollTop===Ye?(he-(this._getItemCount()-Yt))*yt+(yt-(this._getItemCount()*yt-256)%yt):Ge-yt/2,Math.round(-1*rn-Lt))}},{key:"_checkOverlayWithinViewport",value:function(he){var Ge=this._getItemHeight(),Ye=this._viewportRuler.getViewportSize(),yt=this._triggerRect.top-8,Lt=Ye.height-this._triggerRect.bottom-8,Yt=Math.abs(this._offsetY),cn=Math.min(this._getItemCount()*Ge,256)-Yt-this._triggerRect.height;cn>Lt?this._adjustPanelUp(cn,Lt):Yt>yt?this._adjustPanelDown(Yt,yt,he):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(he,Ge){var Ye=Math.round(he-Ge);this._scrollTop-=Ye,this._offsetY-=Ye,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(he,Ge,Ye){var yt=Math.round(he-Ge);if(this._scrollTop+=yt,this._offsetY+=yt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Ye)return this._scrollTop=Ye,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var Yt,he=this._getItemHeight(),Ge=this._getItemCount(),Ye=Math.min(Ge*he,256),Lt=Ge*he-Ye;Yt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),Yt+=(0,P.CB)(Yt,this.options,this.optionGroups);var rn=Ye/2;this._scrollTop=this._calculateOverlayScroll(Yt,rn,Lt),this._offsetY=this._calculateOverlayOffsetY(Yt,rn,Lt),this._checkOverlayWithinViewport(Lt)}},{key:"_getOriginBasedOnOption",value:function(){var he=this._getItemHeight(),Ge=(he-this._triggerRect.height)/2,Ye=Math.abs(this._offsetY)-Ge+he/2;return"50% ".concat(Ye,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),_e}(Bn);return Kt.\u0275fac=function(){var wt;return function(_e){return(wt||(wt=O.n5z(Kt)))(_e||Kt)}}(),Kt.\u0275cmp=O.Xpm({type:Kt,selectors:[["mat-select"]],contentQueries:function(ot,_e,re){var he;1&ot&&(O.Suo(re,Zn,5),O.Suo(re,P.ey,5),O.Suo(re,P.K7,5)),2&ot&&(O.iGM(he=O.CRH())&&(_e.customTrigger=he.first),O.iGM(he=O.CRH())&&(_e.options=he),O.iGM(he=O.CRH())&&(_e.optionGroups=he))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(ot,_e){1&ot&&O.NdJ("keydown",function(he){return _e._handleKeydown(he)})("focus",function(){return _e._onFocus()})("blur",function(){return _e._onBlur()}),2&ot&&(O.uIk("id",_e.id)("tabindex",_e.tabIndex)("aria-controls",_e.panelOpen?_e.id+"-panel":null)("aria-expanded",_e.panelOpen)("aria-label",_e.ariaLabel||null)("aria-required",_e.required.toString())("aria-disabled",_e.disabled.toString())("aria-invalid",_e.errorState)("aria-describedby",_e._ariaDescribedby||null)("aria-activedescendant",_e._getAriaActiveDescendant()),O.ekj("mat-select-disabled",_e.disabled)("mat-select-invalid",_e.errorState)("mat-select-required",_e.required)("mat-select-empty",_e.empty)("mat-select-multiple",_e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[O._Bn([{provide:y.Eo,useExisting:Kt},{provide:P.HF,useExisting:Kt}]),O.qOj],ngContentSelectors:Se,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(ot,_e){if(1&ot&&(O.F$t(Rt),O.TgZ(0,"div",0,1),O.NdJ("click",function(){return _e.toggle()}),O.TgZ(3,"div",2),O.YNc(4,ve,2,1,"span",3),O.YNc(5,gt,3,2,"span",4),O.qZA(),O.TgZ(6,"div",5),O._UZ(7,"div",6),O.qZA(),O.qZA(),O.YNc(8,_t,4,14,"ng-template",7),O.NdJ("backdropClick",function(){return _e.close()})("attach",function(){return _e._onAttached()})("detach",function(){return _e.close()})),2&ot){var re=O.MAs(1);O.uIk("aria-owns",_e.panelOpen?_e.id+"-panel":null),O.xp6(3),O.Q6J("ngSwitch",_e.empty),O.uIk("id",_e._valueId),O.xp6(1),O.Q6J("ngSwitchCase",!0),O.xp6(1),O.Q6J("ngSwitchCase",!1),O.xp6(3),O.Q6J("cdkConnectedOverlayPanelClass",_e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",_e._scrollStrategy)("cdkConnectedOverlayOrigin",re)("cdkConnectedOverlayOpen",_e.panelOpen)("cdkConnectedOverlayPositions",_e._positions)("cdkConnectedOverlayMinWidth",null==_e._triggerRect?null:_e._triggerRect.width)("cdkConnectedOverlayOffsetY",_e._offsetY)}},directives:[N.xu,D.RF,D.n9,N.pI,D.ED,D.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;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[Oe.transformPanelWrap,Oe.transformPanel]},changeDetection:0}),Kt}(),mr=function(){var Kt=function wt(){(0,_.Z)(this,wt)};return Kt.\u0275fac=function(ot){return new(ot||Kt)},Kt.\u0275mod=O.oAB({type:Kt}),Kt.\u0275inj=O.cJS({providers:[an],imports:[[D.ez,N.U8,P.Ng,P.BQ],g.ZD,y.lN,P.Ng,P.BQ]}),Kt}()},88802:function(le,q,f){"use strict";f.d(q,{uX:function(){return Hn},SP:function(){return re},uD:function(){return Ut},Nh:function(){return ir}}),f(88009);var B=f(10629),V=f(20901),Z=f(89200),w=f(10509),R=f(97154),C=f(18967),_=f(14105),N=f(6517),D=f(96798),O=f(80785),P=f(40098),y=f(65508),g=f(59412),T=f(38480),M=f(68707),E=f(5051),x=f(55371),S=f(33090),A=f(43161),L=f(5041),j=f(739),K=f(57682),z=f(76161),Q=f(44213),ae=f(78081),ie=f(15427),se=f(32819),ue=f(8392),de=f(28722);function oe(Vt,sn){1&Vt&&y.Hsn(0)}var $=["*"];function ye(Vt,sn){}var ve=function(sn){return{animationDuration:sn}},et=function(sn,pt){return{value:sn,params:pt}},Ne=["tabBodyWrapper"],gt=["tabHeader"];function _t(Vt,sn){}function Rt(Vt,sn){if(1&Vt&&y.YNc(0,_t,0,0,"ng-template",9),2&Vt){var pt=y.oxw().$implicit;y.Q6J("cdkPortalOutlet",pt.templateLabel)}}function Se(Vt,sn){if(1&Vt&&y._uU(0),2&Vt){var pt=y.oxw().$implicit;y.Oqu(pt.textLabel)}}function Oe(Vt,sn){if(1&Vt){var pt=y.EpF();y.TgZ(0,"div",6),y.NdJ("click",function(){var Fe=y.CHM(pt),Ae=Fe.$implicit,Le=Fe.index,ze=y.oxw(),Nt=y.MAs(1);return ze._handleClick(Ae,Nt,Le)})("cdkFocusChange",function(Fe){var Le=y.CHM(pt).index;return y.oxw()._tabFocusChanged(Fe,Le)}),y.TgZ(1,"div",7),y.YNc(2,Rt,1,1,"ng-template",8),y.YNc(3,Se,1,1,"ng-template",8),y.qZA(),y.qZA()}if(2&Vt){var dt=sn.$implicit,Ue=sn.index,at=y.oxw();y.ekj("mat-tab-label-active",at.selectedIndex==Ue),y.Q6J("id",at._getTabLabelId(Ue))("disabled",dt.disabled)("matRippleDisabled",dt.disabled||at.disableRipple),y.uIk("tabIndex",at._getTabIndex(dt,Ue))("aria-posinset",Ue+1)("aria-setsize",at._tabs.length)("aria-controls",at._getTabContentId(Ue))("aria-selected",at.selectedIndex==Ue)("aria-label",dt.ariaLabel||null)("aria-labelledby",!dt.ariaLabel&&dt.ariaLabelledby?dt.ariaLabelledby:null),y.xp6(2),y.Q6J("ngIf",dt.templateLabel),y.xp6(1),y.Q6J("ngIf",!dt.templateLabel)}}function je(Vt,sn){if(1&Vt){var pt=y.EpF();y.TgZ(0,"mat-tab-body",10),y.NdJ("_onCentered",function(){return y.CHM(pt),y.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(Fe){return y.CHM(pt),y.oxw()._setTabBodyWrapperHeight(Fe)}),y.qZA()}if(2&Vt){var dt=sn.$implicit,Ue=sn.index,at=y.oxw();y.ekj("mat-tab-body-active",at.selectedIndex===Ue),y.Q6J("id",at._getTabContentId(Ue))("content",dt.content)("position",dt.position)("origin",dt.origin)("animationDuration",at.animationDuration),y.uIk("tabindex",null!=at.contentTabIndex&&at.selectedIndex===Ue?at.contentTabIndex:null)("aria-labelledby",at._getTabLabelId(Ue))}}var ct=["tabListContainer"],Xe=["tabList"],Ht=["nextPaginator"],Et=["previousPaginator"],Xt=new y.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(pt){return{left:pt?(pt.offsetLeft||0)+"px":"0",width:pt?(pt.offsetWidth||0)+"px":"0"}}}}),Ct=function(){var Vt=function(){function sn(pt,dt,Ue,at){(0,C.Z)(this,sn),this._elementRef=pt,this._ngZone=dt,this._inkBarPositioner=Ue,this._animationMode=at}return(0,_.Z)(sn,[{key:"alignToElement",value:function(dt){var Ue=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return Ue._setStyles(dt)})}):this._setStyles(dt)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(dt){var Ue=this._inkBarPositioner(dt),at=this._elementRef.nativeElement;at.style.left=Ue.left,at.style.width=Ue.width}}]),sn}();return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.SBq),y.Y36(y.R0b),y.Y36(Xt),y.Y36(T.Qb,8))},Vt.\u0275dir=y.lG2({type:Vt,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(pt,dt){2&pt&&y.ekj("_mat-animation-noopable","NoopAnimations"===dt._animationMode)}}),Vt}(),jt=new y.OlP("MatTabContent"),nn=new y.OlP("MatTabLabel"),Ut=function(){var Vt=function(sn){(0,w.Z)(dt,sn);var pt=(0,R.Z)(dt);function dt(){return(0,C.Z)(this,dt),pt.apply(this,arguments)}return dt}(O.ig);return Vt.\u0275fac=function(){var sn;return function(dt){return(sn||(sn=y.n5z(Vt)))(dt||Vt)}}(),Vt.\u0275dir=y.lG2({type:Vt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[y._Bn([{provide:nn,useExisting:Vt}]),y.qOj]}),Vt}(),an=(0,g.Id)(function(){return function Vt(){(0,C.Z)(this,Vt)}}()),An=new y.OlP("MAT_TAB_GROUP"),Hn=function(){var Vt=function(sn){(0,w.Z)(dt,sn);var pt=(0,R.Z)(dt);function dt(Ue,at){var Ce;return(0,C.Z)(this,dt),(Ce=pt.call(this))._viewContainerRef=Ue,Ce._closestTabGroup=at,Ce.textLabel="",Ce._contentPortal=null,Ce._stateChanges=new M.xQ,Ce.position=null,Ce.origin=null,Ce.isActive=!1,Ce}return(0,_.Z)(dt,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(at){this._setTemplateLabelInput(at)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(at){(at.hasOwnProperty("textLabel")||at.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new O.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(at){at&&(this._templateLabel=at)}}]),dt}(an);return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.s_b),y.Y36(An,8))},Vt.\u0275cmp=y.Xpm({type:Vt,selectors:[["mat-tab"]],contentQueries:function(pt,dt,Ue){var at;1&pt&&(y.Suo(Ue,nn,5),y.Suo(Ue,jt,7,y.Rgc)),2&pt&&(y.iGM(at=y.CRH())&&(dt.templateLabel=at.first),y.iGM(at=y.CRH())&&(dt._explicitContent=at.first))},viewQuery:function(pt,dt){var Ue;1&pt&&y.Gf(y.Rgc,7),2&pt&&y.iGM(Ue=y.CRH())&&(dt._implicitContent=Ue.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[y.qOj,y.TTD],ngContentSelectors:$,decls:1,vars:0,template:function(pt,dt){1&pt&&(y.F$t(),y.YNc(0,oe,1,0,"ng-template"))},encapsulation:2}),Vt}(),Zn={translateTab:(0,j.X$)("translateTab",[(0,j.SB)("center, void, left-origin-center, right-origin-center",(0,j.oB)({transform:"none"})),(0,j.SB)("left",(0,j.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,j.SB)("right",(0,j.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,j.eR)("* => left, * => right, left => center, right => center",(0,j.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,j.eR)("void => left-origin-center",[(0,j.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,j.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,j.eR)("void => right-origin-center",[(0,j.oB)({transform:"translate3d(100%, 0, 0)"}),(0,j.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},lr=function(){var Vt=function(sn){(0,w.Z)(dt,sn);var pt=(0,R.Z)(dt);function dt(Ue,at,Ce,Fe){var Ae;return(0,C.Z)(this,dt),(Ae=pt.call(this,Ue,at,Fe))._host=Ce,Ae._centeringSub=E.w.EMPTY,Ae._leavingSub=E.w.EMPTY,Ae}return(0,_.Z)(dt,[{key:"ngOnInit",value:function(){var at=this;(0,V.Z)((0,Z.Z)(dt.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,K.O)(this._host._isCenterPosition(this._host._position))).subscribe(function(Ce){Ce&&!at.hasAttached()&&at.attach(at._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){at.detach()})}},{key:"ngOnDestroy",value:function(){(0,V.Z)((0,Z.Z)(dt.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),dt}(O.Pl);return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y._Vd),y.Y36(y.s_b),y.Y36((0,y.Gpc)(function(){return En})),y.Y36(P.K0))},Vt.\u0275dir=y.lG2({type:Vt,selectors:[["","matTabBodyHost",""]],features:[y.qOj]}),Vt}(),Bn=function(){var Vt=function(){function sn(pt,dt,Ue){var at=this;(0,C.Z)(this,sn),this._elementRef=pt,this._dir=dt,this._dirChangeSubscription=E.w.EMPTY,this._translateTabComplete=new M.xQ,this._onCentering=new y.vpe,this._beforeCentering=new y.vpe,this._afterLeavingCenter=new y.vpe,this._onCentered=new y.vpe(!0),this.animationDuration="500ms",dt&&(this._dirChangeSubscription=dt.change.subscribe(function(Ce){at._computePositionAnimationState(Ce),Ue.markForCheck()})),this._translateTabComplete.pipe((0,z.x)(function(Ce,Fe){return Ce.fromState===Fe.fromState&&Ce.toState===Fe.toState})).subscribe(function(Ce){at._isCenterPosition(Ce.toState)&&at._isCenterPosition(at._position)&&at._onCentered.emit(),at._isCenterPosition(Ce.fromState)&&!at._isCenterPosition(at._position)&&at._afterLeavingCenter.emit()})}return(0,_.Z)(sn,[{key:"position",set:function(dt){this._positionIndex=dt,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(dt){var Ue=this._isCenterPosition(dt.toState);this._beforeCentering.emit(Ue),Ue&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(dt){return"center"==dt||"left-origin-center"==dt||"right-origin-center"==dt}},{key:"_computePositionAnimationState",value:function(){var dt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==dt?"left":"right":this._positionIndex>0?"ltr"==dt?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(dt){var Ue=this._getLayoutDirection();return"ltr"==Ue&&dt<=0||"rtl"==Ue&&dt>0?"left-origin-center":"right-origin-center"}}]),sn}();return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.SBq),y.Y36(ue.Is,8),y.Y36(y.sBO))},Vt.\u0275dir=y.lG2({type:Vt,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Vt}(),En=function(){var Vt=function(sn){(0,w.Z)(dt,sn);var pt=(0,R.Z)(dt);function dt(Ue,at,Ce){return(0,C.Z)(this,dt),pt.call(this,Ue,at,Ce)}return dt}(Bn);return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.SBq),y.Y36(ue.Is,8),y.Y36(y.sBO))},Vt.\u0275cmp=y.Xpm({type:Vt,selectors:[["mat-tab-body"]],viewQuery:function(pt,dt){var Ue;1&pt&&y.Gf(O.Pl,5),2&pt&&y.iGM(Ue=y.CRH())&&(dt._portalHost=Ue.first)},hostAttrs:[1,"mat-tab-body"],features:[y.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(pt,dt){1&pt&&(y.TgZ(0,"div",0,1),y.NdJ("@translateTab.start",function(at){return dt._onTranslateTabStarted(at)})("@translateTab.done",function(at){return dt._translateTabComplete.next(at)}),y.YNc(2,ye,0,0,"ng-template",2),y.qZA()),2&pt&&y.Q6J("@translateTab",y.WLB(3,et,dt._position,y.VKq(1,ve,dt.animationDuration)))},directives:[lr],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:[Zn.translateTab]}}),Vt}(),mr=new y.OlP("MAT_TABS_CONFIG"),Kt=0,wt=function Vt(){(0,C.Z)(this,Vt)},ot=(0,g.pj)((0,g.Kr)(function(){return function Vt(sn){(0,C.Z)(this,Vt),this._elementRef=sn}}()),"primary"),_e=function(){var Vt=function(sn){(0,w.Z)(dt,sn);var pt=(0,R.Z)(dt);function dt(Ue,at,Ce,Fe){var Ae,Le;return(0,C.Z)(this,dt),(Ae=pt.call(this,Ue))._changeDetectorRef=at,Ae._animationMode=Fe,Ae._tabs=new y.n_E,Ae._indexToSelect=0,Ae._tabBodyWrapperHeight=0,Ae._tabsSubscription=E.w.EMPTY,Ae._tabLabelSubscription=E.w.EMPTY,Ae._selectedIndex=null,Ae.headerPosition="above",Ae.selectedIndexChange=new y.vpe,Ae.focusChange=new y.vpe,Ae.animationDone=new y.vpe,Ae.selectedTabChange=new y.vpe(!0),Ae._groupId=Kt++,Ae.animationDuration=Ce&&Ce.animationDuration?Ce.animationDuration:"500ms",Ae.disablePagination=!(!Ce||null==Ce.disablePagination)&&Ce.disablePagination,Ae.dynamicHeight=!(!Ce||null==Ce.dynamicHeight)&&Ce.dynamicHeight,Ae.contentTabIndex=null!==(Le=null==Ce?void 0:Ce.contentTabIndex)&&void 0!==Le?Le:null,Ae}return(0,_.Z)(dt,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(at){this._dynamicHeight=(0,ae.Ig)(at)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(at){this._indexToSelect=(0,ae.su)(at,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(at){this._animationDuration=/^\d+$/.test(at)?at+"ms":at}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(at){this._contentTabIndex=(0,ae.su)(at,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(at){var Ce=this._elementRef.nativeElement;Ce.classList.remove("mat-background-".concat(this.backgroundColor)),at&&Ce.classList.add("mat-background-".concat(at)),this._backgroundColor=at}},{key:"ngAfterContentChecked",value:function(){var at=this,Ce=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Ce){var Fe=null==this._selectedIndex;if(!Fe){this.selectedTabChange.emit(this._createChangeEvent(Ce));var Ae=this._tabBodyWrapper.nativeElement;Ae.style.minHeight=Ae.clientHeight+"px"}Promise.resolve().then(function(){at._tabs.forEach(function(Le,ze){return Le.isActive=ze===Ce}),Fe||(at.selectedIndexChange.emit(Ce),at._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(Le,ze){Le.position=ze-Ce,null!=at._selectedIndex&&0==Le.position&&!Le.origin&&(Le.origin=Ce-at._selectedIndex)}),this._selectedIndex!==Ce&&(this._selectedIndex=Ce,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var at=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(at._clampTabIndex(at._indexToSelect)===at._selectedIndex)for(var Fe=at._tabs.toArray(),Ae=0;Ae.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;outline:0;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}),Vt}(),he=(0,g.Id)(function(){return function Vt(){(0,C.Z)(this,Vt)}}()),Ge=function(){var Vt=function(sn){(0,w.Z)(dt,sn);var pt=(0,R.Z)(dt);function dt(Ue){var at;return(0,C.Z)(this,dt),(at=pt.call(this)).elementRef=Ue,at}return(0,_.Z)(dt,[{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}}]),dt}(he);return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.SBq))},Vt.\u0275dir=y.lG2({type:Vt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(pt,dt){2&pt&&(y.uIk("aria-disabled",!!dt.disabled),y.ekj("mat-tab-disabled",dt.disabled))},inputs:{disabled:"disabled"},features:[y.qOj]}),Vt}(),Ye=(0,ie.i$)({passive:!0}),rn=function(){var Vt=function(){function sn(pt,dt,Ue,at,Ce,Fe,Ae){var Le=this;(0,C.Z)(this,sn),this._elementRef=pt,this._changeDetectorRef=dt,this._viewportRuler=Ue,this._dir=at,this._ngZone=Ce,this._platform=Fe,this._animationMode=Ae,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new M.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new M.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new y.vpe,this.indexFocused=new y.vpe,Ce.runOutsideAngular(function(){(0,S.R)(pt.nativeElement,"mouseleave").pipe((0,Q.R)(Le._destroyed)).subscribe(function(){Le._stopInterval()})})}return(0,_.Z)(sn,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(dt){dt=(0,ae.su)(dt),this._selectedIndex!=dt&&(this._selectedIndexChanged=!0,this._selectedIndex=dt,this._keyManager&&this._keyManager.updateActiveItem(dt))}},{key:"ngAfterViewInit",value:function(){var dt=this;(0,S.R)(this._previousPaginator.nativeElement,"touchstart",Ye).pipe((0,Q.R)(this._destroyed)).subscribe(function(){dt._handlePaginatorPress("before")}),(0,S.R)(this._nextPaginator.nativeElement,"touchstart",Ye).pipe((0,Q.R)(this._destroyed)).subscribe(function(){dt._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var dt=this,Ue=this._dir?this._dir.change:(0,A.of)("ltr"),at=this._viewportRuler.change(150),Ce=function(){dt.updatePagination(),dt._alignInkBarToSelectedTab()};this._keyManager=new N.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(Ce):Ce(),(0,x.T)(Ue,at,this._items.changes).pipe((0,Q.R)(this._destroyed)).subscribe(function(){dt._ngZone.run(function(){return Promise.resolve().then(Ce)}),dt._keyManager.withHorizontalOrientation(dt._getLayoutDirection())}),this._keyManager.change.pipe((0,Q.R)(this._destroyed)).subscribe(function(Fe){dt.indexFocused.emit(Fe),dt._setTabFocus(Fe)})}},{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(dt){if(!(0,se.Vb)(dt))switch(dt.keyCode){case se.K5:case se.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(dt));break;default:this._keyManager.onKeydown(dt)}}},{key:"_onContentChanges",value:function(){var dt=this,Ue=this._elementRef.nativeElement.textContent;Ue!==this._currentTextContent&&(this._currentTextContent=Ue||"",this._ngZone.run(function(){dt.updatePagination(),dt._alignInkBarToSelectedTab(),dt._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(dt){!this._isValidIndex(dt)||this.focusIndex===dt||!this._keyManager||this._keyManager.setActiveItem(dt)}},{key:"_isValidIndex",value:function(dt){if(!this._items)return!0;var Ue=this._items?this._items.toArray()[dt]:null;return!!Ue&&!Ue.disabled}},{key:"_setTabFocus",value:function(dt){if(this._showPaginationControls&&this._scrollToLabel(dt),this._items&&this._items.length){this._items.toArray()[dt].focus();var Ue=this._tabListContainer.nativeElement,at=this._getLayoutDirection();Ue.scrollLeft="ltr"==at?0:Ue.scrollWidth-Ue.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var dt=this.scrollDistance,Ue="ltr"===this._getLayoutDirection()?-dt:dt;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(Ue),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(dt){this._scrollTo(dt)}},{key:"_scrollHeader",value:function(dt){return this._scrollTo(this._scrollDistance+("before"==dt?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(dt){this._stopInterval(),this._scrollHeader(dt)}},{key:"_scrollToLabel",value:function(dt){if(!this.disablePagination){var Ue=this._items?this._items.toArray()[dt]:null;if(Ue){var Le,ze,at=this._tabListContainer.nativeElement.offsetWidth,Ce=Ue.elementRef.nativeElement,Fe=Ce.offsetLeft,Ae=Ce.offsetWidth;"ltr"==this._getLayoutDirection()?ze=(Le=Fe)+Ae:Le=(ze=this._tabList.nativeElement.offsetWidth-Fe)-Ae;var Nt=this.scrollDistance,mn=this.scrollDistance+at;Lemn&&(this.scrollDistance+=ze-mn+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var dt=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;dt||(this.scrollDistance=0),dt!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=dt}}},{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 dt=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Ue=dt?dt.elementRef.nativeElement:null;Ue?this._inkBar.alignToElement(Ue):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(dt,Ue){var at=this;Ue&&null!=Ue.button&&0!==Ue.button||(this._stopInterval(),(0,L.H)(650,100).pipe((0,Q.R)((0,x.T)(this._stopScrolling,this._destroyed))).subscribe(function(){var Ce=at._scrollHeader(dt),Ae=Ce.distance;(0===Ae||Ae>=Ce.maxScrollDistance)&&at._stopInterval()}))}},{key:"_scrollTo",value:function(dt){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var Ue=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Ue,dt)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Ue,distance:this._scrollDistance}}}]),sn}();return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(de.rL),y.Y36(ue.Is,8),y.Y36(y.R0b),y.Y36(ie.t4),y.Y36(T.Qb,8))},Vt.\u0275dir=y.lG2({type:Vt,inputs:{disablePagination:"disablePagination"}}),Vt}(),cn=function(){var Vt=function(sn){(0,w.Z)(dt,sn);var pt=(0,R.Z)(dt);function dt(Ue,at,Ce,Fe,Ae,Le,ze){var Nt;return(0,C.Z)(this,dt),(Nt=pt.call(this,Ue,at,Ce,Fe,Ae,Le,ze))._disableRipple=!1,Nt}return(0,_.Z)(dt,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(at){this._disableRipple=(0,ae.Ig)(at)}},{key:"_itemSelected",value:function(at){at.preventDefault()}}]),dt}(rn);return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(de.rL),y.Y36(ue.Is,8),y.Y36(y.R0b),y.Y36(ie.t4),y.Y36(T.Qb,8))},Vt.\u0275dir=y.lG2({type:Vt,inputs:{disableRipple:"disableRipple"},features:[y.qOj]}),Vt}(),_n=function(){var Vt=function(sn){(0,w.Z)(dt,sn);var pt=(0,R.Z)(dt);function dt(Ue,at,Ce,Fe,Ae,Le,ze){return(0,C.Z)(this,dt),pt.call(this,Ue,at,Ce,Fe,Ae,Le,ze)}return dt}(cn);return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(de.rL),y.Y36(ue.Is,8),y.Y36(y.R0b),y.Y36(ie.t4),y.Y36(T.Qb,8))},Vt.\u0275cmp=y.Xpm({type:Vt,selectors:[["mat-tab-header"]],contentQueries:function(pt,dt,Ue){var at;1&pt&&y.Suo(Ue,Ge,4),2&pt&&y.iGM(at=y.CRH())&&(dt._items=at)},viewQuery:function(pt,dt){var Ue;1&pt&&(y.Gf(Ct,7),y.Gf(ct,7),y.Gf(Xe,7),y.Gf(Ht,5),y.Gf(Et,5)),2&pt&&(y.iGM(Ue=y.CRH())&&(dt._inkBar=Ue.first),y.iGM(Ue=y.CRH())&&(dt._tabListContainer=Ue.first),y.iGM(Ue=y.CRH())&&(dt._tabList=Ue.first),y.iGM(Ue=y.CRH())&&(dt._nextPaginator=Ue.first),y.iGM(Ue=y.CRH())&&(dt._previousPaginator=Ue.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(pt,dt){2&pt&&y.ekj("mat-tab-header-pagination-controls-enabled",dt._showPaginationControls)("mat-tab-header-rtl","rtl"==dt._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[y.qOj],ngContentSelectors:$,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(pt,dt){1&pt&&(y.F$t(),y.TgZ(0,"div",0,1),y.NdJ("click",function(){return dt._handlePaginatorClick("before")})("mousedown",function(at){return dt._handlePaginatorPress("before",at)})("touchend",function(){return dt._stopInterval()}),y._UZ(2,"div",2),y.qZA(),y.TgZ(3,"div",3,4),y.NdJ("keydown",function(at){return dt._handleKeydown(at)}),y.TgZ(5,"div",5,6),y.NdJ("cdkObserveContent",function(){return dt._onContentChanges()}),y.TgZ(7,"div",7),y.Hsn(8),y.qZA(),y._UZ(9,"mat-ink-bar"),y.qZA(),y.qZA(),y.TgZ(10,"div",8,9),y.NdJ("mousedown",function(at){return dt._handlePaginatorPress("after",at)})("click",function(){return dt._handlePaginatorClick("after")})("touchend",function(){return dt._stopInterval()}),y._UZ(12,"div",2),y.qZA()),2&pt&&(y.ekj("mat-tab-header-pagination-disabled",dt._disableScrollBefore),y.Q6J("matRippleDisabled",dt._disableScrollBefore||dt.disableRipple),y.xp6(5),y.ekj("_mat-animation-noopable","NoopAnimations"===dt._animationMode),y.xp6(5),y.ekj("mat-tab-header-pagination-disabled",dt._disableScrollAfter),y.Q6J("matRippleDisabled",dt._disableScrollAfter||dt.disableRipple))},directives:[g.wG,D.wD,Ct],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}),Vt}(),ir=function(){var Vt=function sn(){(0,C.Z)(this,sn)};return Vt.\u0275fac=function(pt){return new(pt||Vt)},Vt.\u0275mod=y.oAB({type:Vt}),Vt.\u0275inj=y.cJS({imports:[[P.ez,g.BQ,O.eL,g.si,D.Q8,N.rt],g.BQ]}),Vt}()},38480:function(le,q,f){"use strict";f.d(q,{Qb:function(){return gd},PW:function(){return Kl}});var U=f(27235),B=f(18967),V=f(14105),Z=f(10509),w=f(97154),R=f(65508),C=f(29176),_=f(739),N=f(20901),D=f(89200),O=f(36683),P=f(10629);function y(){return"undefined"!=typeof window&&void 0!==window.document}function g(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function T(ge){switch(ge.length){case 0:return new _.ZN;case 1:return ge[0];default:return new _.ZE(ge)}}function M(ge,me,J,ee){var Te=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},Be=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},ut=[],Tt=[],Zt=-1,en=null;if(ee.forEach(function(Pn){var Un=Pn.offset,$n=Un==Zt,yr=$n&&en||{};Object.keys(Pn).forEach(function(Br){var wr=Br,Or=Pn[Br];if("offset"!==Br)switch(wr=me.normalizePropertyName(wr,ut),Or){case _.k1:Or=Te[Br];break;case _.l3:Or=Be[Br];break;default:Or=me.normalizeStyleValue(Br,wr,Or,ut)}yr[wr]=Or}),$n||Tt.push(yr),en=yr,Zt=Un}),ut.length){var pn="\n - ";throw new Error("Unable to animate due to the following errors:".concat(pn).concat(ut.join(pn)))}return Tt}function E(ge,me,J,ee){switch(me){case"start":ge.onStart(function(){return ee(J&&x(J,"start",ge))});break;case"done":ge.onDone(function(){return ee(J&&x(J,"done",ge))});break;case"destroy":ge.onDestroy(function(){return ee(J&&x(J,"destroy",ge))})}}function x(ge,me,J){var ee=J.totalTime,Be=S(ge.element,ge.triggerName,ge.fromState,ge.toState,me||ge.phaseName,null==ee?ge.totalTime:ee,!!J.disabled),ut=ge._data;return null!=ut&&(Be._data=ut),Be}function S(ge,me,J,ee){var Te=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",Be=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,ut=arguments.length>6?arguments[6]:void 0;return{element:ge,triggerName:me,fromState:J,toState:ee,phaseName:Te,totalTime:Be,disabled:!!ut}}function A(ge,me,J){var ee;return ge instanceof Map?(ee=ge.get(me))||ge.set(me,ee=J):(ee=ge[me])||(ee=ge[me]=J),ee}function L(ge){var me=ge.indexOf(":");return[ge.substring(1,me),ge.substr(me+1)]}var j=function(me,J){return!1},z=function(me,J){return!1},ae=function(me,J,ee){return[]},se=g();(se||"undefined"!=typeof Element)&&(j=y()?function(me,J){for(;J&&J!==document.documentElement;){if(J===me)return!0;J=J.parentNode||J.host}return!1}:function(me,J){return me.contains(J)},z=function(){if(se||Element.prototype.matches)return function(J,ee){return J.matches(ee)};var ge=Element.prototype,me=ge.matchesSelector||ge.mozMatchesSelector||ge.msMatchesSelector||ge.oMatchesSelector||ge.webkitMatchesSelector;return me?function(J,ee){return me.apply(J,[ee])}:z}(),ae=function(me,J,ee){var Te=[];if(ee)for(var Be=me.querySelectorAll(J),ut=0;ut1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(ge).forEach(function(J){me[J]=ge[J]}),me}function Hn(ge,me){var J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(me)for(var ee in ge)J[ee]=ge[ee];else an(ge,J);return J}function Zn(ge,me,J){return J?me+":"+J+";":""}function lr(ge){for(var me="",J=0;J *";case":leave":return"* => void";case":increment":return function(J,ee){return parseFloat(ee)>parseFloat(J)};case":decrement":return function(J,ee){return parseFloat(ee) *"}}(ge,J);if("function"==typeof ee)return void me.push(ee);ge=ee}var Te=ge.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Te||Te.length<4)return J.push('The provided transition expression "'.concat(ge,'" is not supported')),me;var Be=Te[1],ut=Te[2],Tt=Te[3];me.push(Sn(Be,Tt)),"<"==ut[0]&&!("*"==Be&&"*"==Tt)&&me.push(Sn(Tt,Be))}(ee,J,me)}):J.push(ge),J}var er=new Set(["true","1"]),wn=new Set(["false","0"]);function Sn(ge,me){var J=er.has(ge)||wn.has(ge),ee=er.has(me)||wn.has(me);return function(Te,Be){var ut="*"==ge||ge==Te,Tt="*"==me||me==Be;return!ut&&J&&"boolean"==typeof Te&&(ut=Te?er.has(ge):wn.has(ge)),!Tt&&ee&&"boolean"==typeof Be&&(Tt=Be?er.has(me):wn.has(me)),ut&&Tt}}var Vt=new RegExp("s*".concat(":self","s*,?"),"g");function sn(ge,me,J){return new dt(ge).build(me,J)}var dt=function(){function ge(me){(0,B.Z)(this,ge),this._driver=me}return(0,V.Z)(ge,[{key:"build",value:function(J,ee){var Te=new Ce(ee);return this._resetContextStyleTimingState(Te),Yt(this,mr(J),Te)}},{key:"_resetContextStyleTimingState",value:function(J){J.currentQuerySelector="",J.collectedStyles={},J.collectedStyles[""]={},J.currentTime=0}},{key:"visitTrigger",value:function(J,ee){var Te=this,Be=ee.queryCount=0,ut=ee.depCount=0,Tt=[],Zt=[];return"@"==J.name.charAt(0)&&ee.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),J.definitions.forEach(function(en){if(Te._resetContextStyleTimingState(ee),0==en.type){var pn=en,Pn=pn.name;Pn.toString().split(/\s*,\s*/).forEach(function($n){pn.name=$n,Tt.push(Te.visitState(pn,ee))}),pn.name=Pn}else if(1==en.type){var Un=Te.visitTransition(en,ee);Be+=Un.queryCount,ut+=Un.depCount,Zt.push(Un)}else ee.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:J.name,states:Tt,transitions:Zt,queryCount:Be,depCount:ut,options:null}}},{key:"visitState",value:function(J,ee){var Te=this.visitStyle(J.styles,ee),Be=J.options&&J.options.params||null;if(Te.containsDynamicStyles){var ut=new Set,Tt=Be||{};if(Te.styles.forEach(function(en){if(Ae(en)){var pn=en;Object.keys(pn).forEach(function(Pn){ot(pn[Pn]).forEach(function(Un){Tt.hasOwnProperty(Un)||ut.add(Un)})})}}),ut.size){var Zt=re(ut.values());ee.errors.push('state("'.concat(J.name,'", ...) must define default values for all the following style substitutions: ').concat(Zt.join(", ")))}}return{type:0,name:J.name,style:Te,options:Be?{params:Be}:null}}},{key:"visitTransition",value:function(J,ee){ee.queryCount=0,ee.depCount=0;var Te=Yt(this,mr(J.animation),ee);return{type:1,matchers:_n(J.expr,ee.errors),animation:Te,queryCount:ee.queryCount,depCount:ee.depCount,options:ze(J.options)}}},{key:"visitSequence",value:function(J,ee){var Te=this;return{type:2,steps:J.steps.map(function(Be){return Yt(Te,Be,ee)}),options:ze(J.options)}}},{key:"visitGroup",value:function(J,ee){var Te=this,Be=ee.currentTime,ut=0,Tt=J.steps.map(function(Zt){ee.currentTime=Be;var en=Yt(Te,Zt,ee);return ut=Math.max(ut,ee.currentTime),en});return ee.currentTime=ut,{type:3,steps:Tt,options:ze(J.options)}}},{key:"visitAnimate",value:function(J,ee){var Te=function(ge,me){var J=null;if(ge.hasOwnProperty("duration"))J=ge;else if("number"==typeof ge)return Nt(nn(ge,me).duration,0,"");var Te=ge;if(Te.split(/\s+/).some(function(Tt){return"{"==Tt.charAt(0)&&"{"==Tt.charAt(1)})){var ut=Nt(0,0,"");return ut.dynamic=!0,ut.strValue=Te,ut}return Nt((J=J||nn(Te,me)).duration,J.delay,J.easing)}(J.timings,ee.errors);ee.currentAnimateTimings=Te;var Be,ut=J.styles?J.styles:(0,_.oB)({});if(5==ut.type)Be=this.visitKeyframes(ut,ee);else{var Tt=J.styles,Zt=!1;if(!Tt){Zt=!0;var en={};Te.easing&&(en.easing=Te.easing),Tt=(0,_.oB)(en)}ee.currentTime+=Te.duration+Te.delay;var pn=this.visitStyle(Tt,ee);pn.isEmptyStep=Zt,Be=pn}return ee.currentAnimateTimings=null,{type:4,timings:Te,style:Be,options:null}}},{key:"visitStyle",value:function(J,ee){var Te=this._makeStyleAst(J,ee);return this._validateStyleAst(Te,ee),Te}},{key:"_makeStyleAst",value:function(J,ee){var Te=[];Array.isArray(J.styles)?J.styles.forEach(function(Tt){"string"==typeof Tt?Tt==_.l3?Te.push(Tt):ee.errors.push("The provided style string value ".concat(Tt," is not allowed.")):Te.push(Tt)}):Te.push(J.styles);var Be=!1,ut=null;return Te.forEach(function(Tt){if(Ae(Tt)){var Zt=Tt,en=Zt.easing;if(en&&(ut=en,delete Zt.easing),!Be)for(var pn in Zt)if(Zt[pn].toString().indexOf("{{")>=0){Be=!0;break}}}),{type:6,styles:Te,easing:ut,offset:J.offset,containsDynamicStyles:Be,options:null}}},{key:"_validateStyleAst",value:function(J,ee){var Te=this,Be=ee.currentAnimateTimings,ut=ee.currentTime,Tt=ee.currentTime;Be&&Tt>0&&(Tt-=Be.duration+Be.delay),J.styles.forEach(function(Zt){"string"!=typeof Zt&&Object.keys(Zt).forEach(function(en){if(Te._driver.validateStyleProperty(en)){var pn=ee.collectedStyles[ee.currentQuerySelector],Pn=pn[en],Un=!0;Pn&&(Tt!=ut&&Tt>=Pn.startTime&&ut<=Pn.endTime&&(ee.errors.push('The CSS property "'.concat(en,'" that exists between the times of "').concat(Pn.startTime,'ms" and "').concat(Pn.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(Tt,'ms" and "').concat(ut,'ms"')),Un=!1),Tt=Pn.startTime),Un&&(pn[en]={startTime:Tt,endTime:ut}),ee.options&&function(ge,me,J){var ee=me.params||{},Te=ot(ge);Te.length&&Te.forEach(function(Be){ee.hasOwnProperty(Be)||J.push("Unable to resolve the local animation param ".concat(Be," in the given list of values"))})}(Zt[en],ee.options,ee.errors)}else ee.errors.push('The provided animation property "'.concat(en,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(J,ee){var Te=this,Be={type:5,styles:[],options:null};if(!ee.currentAnimateTimings)return ee.errors.push("keyframes() must be placed inside of a call to animate()"),Be;var Tt=0,Zt=[],en=!1,pn=!1,Pn=0,Un=J.steps.map(function(Si){var si=Te._makeStyleAst(Si,ee),vo=null!=si.offset?si.offset:function(ge){if("string"==typeof ge)return null;var me=null;if(Array.isArray(ge))ge.forEach(function(ee){if(Ae(ee)&&ee.hasOwnProperty("offset")){var Te=ee;me=parseFloat(Te.offset),delete Te.offset}});else if(Ae(ge)&&ge.hasOwnProperty("offset")){var J=ge;me=parseFloat(J.offset),delete J.offset}return me}(si.styles),Re=0;return null!=vo&&(Tt++,Re=si.offset=vo),pn=pn||Re<0||Re>1,en=en||Re0&&Tt<$n?ee.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==Tt&&(yr=1/($n-1));var Br=$n-1,wr=ee.currentTime,Or=ee.currentAnimateTimings,di=Or.duration;return Un.forEach(function(Si,si){var vo=yr>0?si==Br?1:yr*si:Zt[si],Re=vo*di;ee.currentTime=wr+Or.delay+Re,Or.duration=Re,Te._validateStyleAst(Si,ee),Si.offset=vo,Be.styles.push(Si)}),Be}},{key:"visitReference",value:function(J,ee){return{type:8,animation:Yt(this,mr(J.animation),ee),options:ze(J.options)}}},{key:"visitAnimateChild",value:function(J,ee){return ee.depCount++,{type:9,options:ze(J.options)}}},{key:"visitAnimateRef",value:function(J,ee){return{type:10,animation:this.visitReference(J.animation,ee),options:ze(J.options)}}},{key:"visitQuery",value:function(J,ee){var Te=ee.currentQuerySelector,Be=J.options||{};ee.queryCount++,ee.currentQuery=J;var ut=function(ge){var me=!!ge.split(/\s*,\s*/).find(function(J){return":self"==J});return me&&(ge=ge.replace(Vt,"")),[ge=ge.replace(/@\*/g,Xt).replace(/@\w+/g,function(J){return Xt+"-"+J.substr(1)}).replace(/:animating/g,Ct),me]}(J.selector),Tt=(0,U.Z)(ut,2),Zt=Tt[0],en=Tt[1];ee.currentQuerySelector=Te.length?Te+" "+Zt:Zt,A(ee.collectedStyles,ee.currentQuerySelector,{});var pn=Yt(this,mr(J.animation),ee);return ee.currentQuery=null,ee.currentQuerySelector=Te,{type:11,selector:Zt,limit:Be.limit||0,optional:!!Be.optional,includeSelf:en,animation:pn,originalSelector:J.selector,options:ze(J.options)}}},{key:"visitStagger",value:function(J,ee){ee.currentQuery||ee.errors.push("stagger() can only be used inside of query()");var Te="full"===J.timings?{duration:0,delay:0,easing:"full"}:nn(J.timings,ee.errors,!0);return{type:12,animation:Yt(this,mr(J.animation),ee),timings:Te,options:null}}}]),ge}(),Ce=function ge(me){(0,B.Z)(this,ge),this.errors=me,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 Ae(ge){return!Array.isArray(ge)&&"object"==typeof ge}function ze(ge){return ge?(ge=an(ge)).params&&(ge.params=function(ge){return ge?an(ge):null}(ge.params)):ge={},ge}function Nt(ge,me,J){return{duration:ge,delay:me,easing:J}}function mn(ge,me,J,ee,Te,Be){var ut=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,Tt=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:ge,keyframes:me,preStyleProps:J,postStyleProps:ee,duration:Te,delay:Be,totalTime:Te+Be,easing:ut,subTimeline:Tt}}var Xn=function(){function ge(){(0,B.Z)(this,ge),this._map=new Map}return(0,V.Z)(ge,[{key:"consume",value:function(J){var ee=this._map.get(J);return ee?this._map.delete(J):ee=[],ee}},{key:"append",value:function(J,ee){var Te,Be=this._map.get(J);Be||this._map.set(J,Be=[]),(Te=Be).push.apply(Te,(0,P.Z)(ee))}},{key:"has",value:function(J){return this._map.has(J)}},{key:"clear",value:function(){this._map.clear()}}]),ge}(),Ir=new RegExp(":enter","g"),co=new RegExp(":leave","g");function Gi(ge,me,J,ee,Te){var Be=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},ut=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},Tt=arguments.length>7?arguments[7]:void 0,Zt=arguments.length>8?arguments[8]:void 0,en=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Yo).buildKeyframes(ge,me,J,ee,Te,Be,ut,Tt,Zt,en)}var Yo=function(){function ge(){(0,B.Z)(this,ge)}return(0,V.Z)(ge,[{key:"buildKeyframes",value:function(J,ee,Te,Be,ut,Tt,Zt,en,pn){var Pn=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];pn=pn||new Xn;var Un=new vs(J,ee,pn,Be,ut,Pn,[]);Un.options=en,Un.currentTimeline.setStyles([Tt],null,Un.errors,en),Yt(this,Te,Un);var $n=Un.timelines.filter(function(Br){return Br.containsAnimation()});if($n.length&&Object.keys(Zt).length){var yr=$n[$n.length-1];yr.allowOnlyTimelineStyles()||yr.setStyles([Zt],null,Un.errors,en)}return $n.length?$n.map(function(Br){return Br.buildKeyframes()}):[mn(ee,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(J,ee){}},{key:"visitState",value:function(J,ee){}},{key:"visitTransition",value:function(J,ee){}},{key:"visitAnimateChild",value:function(J,ee){var Te=ee.subInstructions.consume(ee.element);if(Te){var Be=ee.createSubContext(J.options),ut=ee.currentTimeline.currentTime,Tt=this._visitSubInstructions(Te,Be,Be.options);ut!=Tt&&ee.transformIntoNewTimeline(Tt)}ee.previousNode=J}},{key:"visitAnimateRef",value:function(J,ee){var Te=ee.createSubContext(J.options);Te.transformIntoNewTimeline(),this.visitReference(J.animation,Te),ee.transformIntoNewTimeline(Te.currentTimeline.currentTime),ee.previousNode=J}},{key:"_visitSubInstructions",value:function(J,ee,Te){var ut=ee.currentTimeline.currentTime,Tt=null!=Te.duration?jt(Te.duration):null,Zt=null!=Te.delay?jt(Te.delay):null;return 0!==Tt&&J.forEach(function(en){var pn=ee.appendInstructionToTimeline(en,Tt,Zt);ut=Math.max(ut,pn.duration+pn.delay)}),ut}},{key:"visitReference",value:function(J,ee){ee.updateOptions(J.options,!0),Yt(this,J.animation,ee),ee.previousNode=J}},{key:"visitSequence",value:function(J,ee){var Te=this,Be=ee.subContextCount,ut=ee,Tt=J.options;if(Tt&&(Tt.params||Tt.delay)&&((ut=ee.createSubContext(Tt)).transformIntoNewTimeline(),null!=Tt.delay)){6==ut.previousNode.type&&(ut.currentTimeline.snapshotCurrentStyles(),ut.previousNode=fa);var Zt=jt(Tt.delay);ut.delayNextStep(Zt)}J.steps.length&&(J.steps.forEach(function(en){return Yt(Te,en,ut)}),ut.currentTimeline.applyStylesToKeyframe(),ut.subContextCount>Be&&ut.transformIntoNewTimeline()),ee.previousNode=J}},{key:"visitGroup",value:function(J,ee){var Te=this,Be=[],ut=ee.currentTimeline.currentTime,Tt=J.options&&J.options.delay?jt(J.options.delay):0;J.steps.forEach(function(Zt){var en=ee.createSubContext(J.options);Tt&&en.delayNextStep(Tt),Yt(Te,Zt,en),ut=Math.max(ut,en.currentTimeline.currentTime),Be.push(en.currentTimeline)}),Be.forEach(function(Zt){return ee.currentTimeline.mergeTimelineCollectedStyles(Zt)}),ee.transformIntoNewTimeline(ut),ee.previousNode=J}},{key:"_visitTiming",value:function(J,ee){if(J.dynamic){var Te=J.strValue;return nn(ee.params?_e(Te,ee.params,ee.errors):Te,ee.errors)}return{duration:J.duration,delay:J.delay,easing:J.easing}}},{key:"visitAnimate",value:function(J,ee){var Te=ee.currentAnimateTimings=this._visitTiming(J.timings,ee),Be=ee.currentTimeline;Te.delay&&(ee.incrementTime(Te.delay),Be.snapshotCurrentStyles());var ut=J.style;5==ut.type?this.visitKeyframes(ut,ee):(ee.incrementTime(Te.duration),this.visitStyle(ut,ee),Be.applyStylesToKeyframe()),ee.currentAnimateTimings=null,ee.previousNode=J}},{key:"visitStyle",value:function(J,ee){var Te=ee.currentTimeline,Be=ee.currentAnimateTimings;!Be&&Te.getCurrentStyleProperties().length&&Te.forwardFrame();var ut=Be&&Be.easing||J.easing;J.isEmptyStep?Te.applyEmptyStep(ut):Te.setStyles(J.styles,ut,ee.errors,ee.options),ee.previousNode=J}},{key:"visitKeyframes",value:function(J,ee){var Te=ee.currentAnimateTimings,Be=ee.currentTimeline.duration,ut=Te.duration,Zt=ee.createSubContext().currentTimeline;Zt.easing=Te.easing,J.styles.forEach(function(en){Zt.forwardTime((en.offset||0)*ut),Zt.setStyles(en.styles,en.easing,ee.errors,ee.options),Zt.applyStylesToKeyframe()}),ee.currentTimeline.mergeTimelineCollectedStyles(Zt),ee.transformIntoNewTimeline(Be+ut),ee.previousNode=J}},{key:"visitQuery",value:function(J,ee){var Te=this,Be=ee.currentTimeline.currentTime,ut=J.options||{},Tt=ut.delay?jt(ut.delay):0;Tt&&(6===ee.previousNode.type||0==Be&&ee.currentTimeline.getCurrentStyleProperties().length)&&(ee.currentTimeline.snapshotCurrentStyles(),ee.previousNode=fa);var Zt=Be,en=ee.invokeQuery(J.selector,J.originalSelector,J.limit,J.includeSelf,!!ut.optional,ee.errors);ee.currentQueryTotal=en.length;var pn=null;en.forEach(function(Pn,Un){ee.currentQueryIndex=Un;var $n=ee.createSubContext(J.options,Pn);Tt&&$n.delayNextStep(Tt),Pn===ee.element&&(pn=$n.currentTimeline),Yt(Te,J.animation,$n),$n.currentTimeline.applyStylesToKeyframe(),Zt=Math.max(Zt,$n.currentTimeline.currentTime)}),ee.currentQueryIndex=0,ee.currentQueryTotal=0,ee.transformIntoNewTimeline(Zt),pn&&(ee.currentTimeline.mergeTimelineCollectedStyles(pn),ee.currentTimeline.snapshotCurrentStyles()),ee.previousNode=J}},{key:"visitStagger",value:function(J,ee){var Te=ee.parentContext,Be=ee.currentTimeline,ut=J.timings,Tt=Math.abs(ut.duration),Zt=Tt*(ee.currentQueryTotal-1),en=Tt*ee.currentQueryIndex;switch(ut.duration<0?"reverse":ut.easing){case"reverse":en=Zt-en;break;case"full":en=Te.currentStaggerTime}var Pn=ee.currentTimeline;en&&Pn.delayNextStep(en);var Un=Pn.currentTime;Yt(this,J.animation,ee),ee.previousNode=J,Te.currentStaggerTime=Be.currentTime-Un+(Be.startTime-Te.currentTimeline.startTime)}}]),ge}(),fa={},vs=function(){function ge(me,J,ee,Te,Be,ut,Tt,Zt){(0,B.Z)(this,ge),this._driver=me,this.element=J,this.subInstructions=ee,this._enterClassName=Te,this._leaveClassName=Be,this.errors=ut,this.timelines=Tt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=fa,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Zt||new bo(this._driver,J,0),Tt.push(this.currentTimeline)}return(0,V.Z)(ge,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(J,ee){var Te=this;if(J){var Be=J,ut=this.options;null!=Be.duration&&(ut.duration=jt(Be.duration)),null!=Be.delay&&(ut.delay=jt(Be.delay));var Tt=Be.params;if(Tt){var Zt=ut.params;Zt||(Zt=this.options.params={}),Object.keys(Tt).forEach(function(en){(!ee||!Zt.hasOwnProperty(en))&&(Zt[en]=_e(Tt[en],Zt,Te.errors))})}}}},{key:"_copyOptions",value:function(){var J={};if(this.options){var ee=this.options.params;if(ee){var Te=J.params={};Object.keys(ee).forEach(function(Be){Te[Be]=ee[Be]})}}return J}},{key:"createSubContext",value:function(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,ee=arguments.length>1?arguments[1]:void 0,Te=arguments.length>2?arguments[2]:void 0,Be=ee||this.element,ut=new ge(this._driver,Be,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Be,Te||0));return ut.previousNode=this.previousNode,ut.currentAnimateTimings=this.currentAnimateTimings,ut.options=this._copyOptions(),ut.updateOptions(J),ut.currentQueryIndex=this.currentQueryIndex,ut.currentQueryTotal=this.currentQueryTotal,ut.parentContext=this,this.subContextCount++,ut}},{key:"transformIntoNewTimeline",value:function(J){return this.previousNode=fa,this.currentTimeline=this.currentTimeline.fork(this.element,J),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(J,ee,Te){var Be={duration:null!=ee?ee:J.duration,delay:this.currentTimeline.currentTime+(null!=Te?Te:0)+J.delay,easing:""},ut=new wa(this._driver,J.element,J.keyframes,J.preStyleProps,J.postStyleProps,Be,J.stretchStartingKeyframe);return this.timelines.push(ut),Be}},{key:"incrementTime",value:function(J){this.currentTimeline.forwardTime(this.currentTimeline.duration+J)}},{key:"delayNextStep",value:function(J){J>0&&this.currentTimeline.delayNextStep(J)}},{key:"invokeQuery",value:function(J,ee,Te,Be,ut,Tt){var Zt=[];if(Be&&Zt.push(this.element),J.length>0){J=(J=J.replace(Ir,"."+this._enterClassName)).replace(co,"."+this._leaveClassName);var pn=this._driver.query(this.element,J,1!=Te);0!==Te&&(pn=Te<0?pn.slice(pn.length+Te,pn.length):pn.slice(0,Te)),Zt.push.apply(Zt,(0,P.Z)(pn))}return!ut&&0==Zt.length&&Tt.push('`query("'.concat(ee,'")` returned zero elements. (Use `query("').concat(ee,'", { optional: true })` if you wish to allow this.)')),Zt}}]),ge}(),bo=function(){function ge(me,J,ee,Te){(0,B.Z)(this,ge),this._driver=me,this.element=J,this.startTime=ee,this._elementTimelineStylesLookup=Te,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(J),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(J,this._localTimelineStyles)),this._loadKeyframe()}return(0,V.Z)(ge,[{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(J){var ee=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||ee?(this.forwardTime(this.currentTime+J),ee&&this.snapshotCurrentStyles()):this.startTime+=J}},{key:"fork",value:function(J,ee){return this.applyStylesToKeyframe(),new ge(this._driver,J,ee||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(J){this.applyStylesToKeyframe(),this.duration=J,this._loadKeyframe()}},{key:"_updateStyle",value:function(J,ee){this._localTimelineStyles[J]=ee,this._globalTimelineStyles[J]=ee,this._styleSummary[J]={time:this.currentTime,value:ee}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(J){var ee=this;J&&(this._previousKeyframe.easing=J),Object.keys(this._globalTimelineStyles).forEach(function(Te){ee._backFill[Te]=ee._globalTimelineStyles[Te]||_.l3,ee._currentKeyframe[Te]=_.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(J,ee,Te,Be){var ut=this;ee&&(this._previousKeyframe.easing=ee);var Tt=Be&&Be.params||{},Zt=function(ge,me){var ee,J={};return ge.forEach(function(Te){"*"===Te?(ee=ee||Object.keys(me)).forEach(function(Be){J[Be]=_.l3}):Hn(Te,!1,J)}),J}(J,this._globalTimelineStyles);Object.keys(Zt).forEach(function(en){var pn=_e(Zt[en],Tt,Te);ut._pendingStyles[en]=pn,ut._localTimelineStyles.hasOwnProperty(en)||(ut._backFill[en]=ut._globalTimelineStyles.hasOwnProperty(en)?ut._globalTimelineStyles[en]:_.l3),ut._updateStyle(en,pn)})}},{key:"applyStylesToKeyframe",value:function(){var J=this,ee=this._pendingStyles,Te=Object.keys(ee);0!=Te.length&&(this._pendingStyles={},Te.forEach(function(Be){J._currentKeyframe[Be]=ee[Be]}),Object.keys(this._localTimelineStyles).forEach(function(Be){J._currentKeyframe.hasOwnProperty(Be)||(J._currentKeyframe[Be]=J._localTimelineStyles[Be])}))}},{key:"snapshotCurrentStyles",value:function(){var J=this;Object.keys(this._localTimelineStyles).forEach(function(ee){var Te=J._localTimelineStyles[ee];J._pendingStyles[ee]=Te,J._updateStyle(ee,Te)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var J=[];for(var ee in this._currentKeyframe)J.push(ee);return J}},{key:"mergeTimelineCollectedStyles",value:function(J){var ee=this;Object.keys(J._styleSummary).forEach(function(Te){var Be=ee._styleSummary[Te],ut=J._styleSummary[Te];(!Be||ut.time>Be.time)&&ee._updateStyle(Te,ut.value)})}},{key:"buildKeyframes",value:function(){var J=this;this.applyStylesToKeyframe();var ee=new Set,Te=new Set,Be=1===this._keyframes.size&&0===this.duration,ut=[];this._keyframes.forEach(function(Pn,Un){var $n=Hn(Pn,!0);Object.keys($n).forEach(function(yr){var Br=$n[yr];Br==_.k1?ee.add(yr):Br==_.l3&&Te.add(yr)}),Be||($n.offset=Un/J.duration),ut.push($n)});var Tt=ee.size?re(ee.values()):[],Zt=Te.size?re(Te.values()):[];if(Be){var en=ut[0],pn=an(en);en.offset=0,pn.offset=1,ut=[en,pn]}return mn(this.element,ut,Tt,Zt,this.duration,this.startTime,this.easing,!1)}}]),ge}(),wa=function(ge){(0,Z.Z)(J,ge);var me=(0,w.Z)(J);function J(ee,Te,Be,ut,Tt,Zt){var en,pn=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,B.Z)(this,J),(en=me.call(this,ee,Te,Zt.delay)).keyframes=Be,en.preStyleProps=ut,en.postStyleProps=Tt,en._stretchStartingKeyframe=pn,en.timings={duration:Zt.duration,delay:Zt.delay,easing:Zt.easing},en}return(0,V.Z)(J,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var Te=this.keyframes,Be=this.timings,ut=Be.delay,Tt=Be.duration,Zt=Be.easing;if(this._stretchStartingKeyframe&&ut){var en=[],pn=Tt+ut,Pn=ut/pn,Un=Hn(Te[0],!1);Un.offset=0,en.push(Un);var $n=Hn(Te[0],!1);$n.offset=Yi(Pn),en.push($n);for(var yr=Te.length-1,Br=1;Br<=yr;Br++){var wr=Hn(Te[Br],!1);wr.offset=Yi((ut+wr.offset*Tt)/pn),en.push(wr)}Tt=pn,ut=0,Zt="",Te=en}return mn(this.element,Te,this.preStyleProps,this.postStyleProps,Tt,ut,Zt,!0)}}]),J}(bo);function Yi(ge){var me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,J=Math.pow(10,me-1);return Math.round(ge*J)/J}var Fi=function ge(){(0,B.Z)(this,ge)},Zi=function(ge){(0,Z.Z)(J,ge);var me=(0,w.Z)(J);function J(){return(0,B.Z)(this,J),me.apply(this,arguments)}return(0,V.Z)(J,[{key:"normalizePropertyName",value:function(Te,Be){return Ge(Te)}},{key:"normalizeStyleValue",value:function(Te,Be,ut,Tt){var Zt="",en=ut.toString().trim();if(It[Be]&&0!==ut&&"0"!==ut)if("number"==typeof ut)Zt="px";else{var pn=ut.match(/^[+-]?[\d\.]+([a-z]*)$/);pn&&0==pn[1].length&&Tt.push("Please provide a CSS unit value for ".concat(Te,":").concat(ut))}return en+Zt}}]),J}(Fi),It=function(){return ge="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(","),me={},ge.forEach(function(J){return me[J]=!0}),me;var ge,me}();function Pt(ge,me,J,ee,Te,Be,ut,Tt,Zt,en,pn,Pn,Un){return{type:0,element:ge,triggerName:me,isRemovalTransition:Te,fromState:J,fromStyles:Be,toState:ee,toStyles:ut,timelines:Tt,queriedElements:Zt,preStyleProps:en,postStyleProps:pn,totalTime:Pn,errors:Un}}var zt={},$t=function(){function ge(me,J,ee){(0,B.Z)(this,ge),this._triggerName=me,this.ast=J,this._stateStyles=ee}return(0,V.Z)(ge,[{key:"match",value:function(J,ee,Te,Be){return function(ge,me,J,ee,Te){return ge.some(function(Be){return Be(me,J,ee,Te)})}(this.ast.matchers,J,ee,Te,Be)}},{key:"buildStyles",value:function(J,ee,Te){var Be=this._stateStyles["*"],ut=this._stateStyles[J],Tt=Be?Be.buildStyles(ee,Te):{};return ut?ut.buildStyles(ee,Te):Tt}},{key:"build",value:function(J,ee,Te,Be,ut,Tt,Zt,en,pn,Pn){var Un=[],$n=this.ast.options&&this.ast.options.params||zt,Br=this.buildStyles(Te,Zt&&Zt.params||zt,Un),wr=en&&en.params||zt,Or=this.buildStyles(Be,wr,Un),di=new Set,Si=new Map,si=new Map,vo="void"===Be,Re={params:Object.assign(Object.assign({},$n),wr)},We=Pn?[]:Gi(J,ee,this.ast.animation,ut,Tt,Br,Or,Re,pn,Un),be=0;if(We.forEach(function(De){be=Math.max(De.duration+De.delay,be)}),Un.length)return Pt(ee,this._triggerName,Te,Be,vo,Br,Or,[],[],Si,si,be,Un);We.forEach(function(De){var rt=De.element,St=A(Si,rt,{});De.preStyleProps.forEach(function(Cn){return St[Cn]=!0});var un=A(si,rt,{});De.postStyleProps.forEach(function(Cn){return un[Cn]=!0}),rt!==ee&&di.add(rt)});var Ze=re(di.values());return Pt(ee,this._triggerName,Te,Be,vo,Br,Or,We,Ze,Si,si,be)}}]),ge}(),bn=function(){function ge(me,J,ee){(0,B.Z)(this,ge),this.styles=me,this.defaultParams=J,this.normalizer=ee}return(0,V.Z)(ge,[{key:"buildStyles",value:function(J,ee){var Te=this,Be={},ut=an(this.defaultParams);return Object.keys(J).forEach(function(Tt){var Zt=J[Tt];null!=Zt&&(ut[Tt]=Zt)}),this.styles.styles.forEach(function(Tt){if("string"!=typeof Tt){var Zt=Tt;Object.keys(Zt).forEach(function(en){var pn=Zt[en];pn.length>1&&(pn=_e(pn,ut,ee));var Pn=Te.normalizer.normalizePropertyName(en,ee);pn=Te.normalizer.normalizeStyleValue(en,Pn,pn,ee),Be[Pn]=pn})}}),Be}}]),ge}(),Wn=function(){function ge(me,J,ee){var Te=this;(0,B.Z)(this,ge),this.name=me,this.ast=J,this._normalizer=ee,this.transitionFactories=[],this.states={},J.states.forEach(function(Be){Te.states[Be.name]=new bn(Be.style,Be.options&&Be.options.params||{},ee)}),mi(this.states,"true","1"),mi(this.states,"false","0"),J.transitions.forEach(function(Be){Te.transitionFactories.push(new $t(me,Be,Te.states))}),this.fallbackTransition=function(ge,me,J){return new $t(ge,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(ut,Tt){return!0}],options:null,queryCount:0,depCount:0},me)}(me,this.states)}return(0,V.Z)(ge,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(J,ee,Te,Be){return this.transitionFactories.find(function(Tt){return Tt.match(J,ee,Te,Be)})||null}},{key:"matchStyles",value:function(J,ee,Te){return this.fallbackTransition.buildStyles(J,ee,Te)}}]),ge}();function mi(ge,me,J){ge.hasOwnProperty(me)?ge.hasOwnProperty(J)||(ge[J]=ge[me]):ge.hasOwnProperty(J)&&(ge[me]=ge[J])}var Bi=new Xn,ao=function(){function ge(me,J,ee){(0,B.Z)(this,ge),this.bodyNode=me,this._driver=J,this._normalizer=ee,this._animations={},this._playersById={},this.players=[]}return(0,V.Z)(ge,[{key:"register",value:function(J,ee){var Te=[],Be=sn(this._driver,ee,Te);if(Te.length)throw new Error("Unable to build the animation due to the following errors: ".concat(Te.join("\n")));this._animations[J]=Be}},{key:"_buildPlayer",value:function(J,ee,Te){var Be=J.element,ut=M(this._driver,this._normalizer,Be,J.keyframes,ee,Te);return this._driver.animate(Be,ut,J.duration,J.delay,J.easing,[],!0)}},{key:"create",value:function(J,ee){var Zt,Te=this,Be=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ut=[],Tt=this._animations[J],en=new Map;if(Tt?(Zt=Gi(this._driver,ee,Tt,ct,Xe,{},{},Be,Bi,ut)).forEach(function(Un){var $n=A(en,Un.element,{});Un.postStyleProps.forEach(function(yr){return $n[yr]=null})}):(ut.push("The requested animation doesn't exist or has already been destroyed"),Zt=[]),ut.length)throw new Error("Unable to create the animation due to the following errors: ".concat(ut.join("\n")));en.forEach(function(Un,$n){Object.keys(Un).forEach(function(yr){Un[yr]=Te._driver.computeStyle($n,yr,_.l3)})});var pn=Zt.map(function(Un){var $n=en.get(Un.element);return Te._buildPlayer(Un,{},$n)}),Pn=T(pn);return this._playersById[J]=Pn,Pn.onDestroy(function(){return Te.destroy(J)}),this.players.push(Pn),Pn}},{key:"destroy",value:function(J){var ee=this._getPlayer(J);ee.destroy(),delete this._playersById[J];var Te=this.players.indexOf(ee);Te>=0&&this.players.splice(Te,1)}},{key:"_getPlayer",value:function(J){var ee=this._playersById[J];if(!ee)throw new Error("Unable to find the timeline player referenced by ".concat(J));return ee}},{key:"listen",value:function(J,ee,Te,Be){var ut=S(ee,"","","");return E(this._getPlayer(J),Te,ut,Be),function(){}}},{key:"command",value:function(J,ee,Te,Be){if("register"!=Te)if("create"!=Te){var Tt=this._getPlayer(J);switch(Te){case"play":Tt.play();break;case"pause":Tt.pause();break;case"reset":Tt.reset();break;case"restart":Tt.restart();break;case"finish":Tt.finish();break;case"init":Tt.init();break;case"setPosition":Tt.setPosition(parseFloat(Be[0]));break;case"destroy":this.destroy(J)}}else this.create(J,ee,Be[0]||{});else this.register(J,Be[0])}}]),ge}(),Mo="ng-animate-queued",Jo="ng-animate-disabled",La=".ng-animate-disabled",Ao="ng-star-inserted",ka=[],fo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ui={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},so="__ng_removed",Fa=function(){function ge(me){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,B.Z)(this,ge),this.namespaceId=J;var ee=me&&me.hasOwnProperty("value"),Te=ee?me.value:me;if(this.value=pl(Te),ee){var Be=an(me);delete Be.value,this.options=Be}else this.options={};this.options.params||(this.options.params={})}return(0,V.Z)(ge,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(J){var ee=J.params;if(ee){var Te=this.options.params;Object.keys(ee).forEach(function(Be){null==Te[Be]&&(Te[Be]=ee[Be])})}}}]),ge}(),ki="void",ho=new Fa(ki),mo=function(){function ge(me,J,ee){(0,B.Z)(this,ge),this.id=me,this.hostElement=J,this._engine=ee,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+me,Bo(J,this._hostClassName)}return(0,V.Z)(ge,[{key:"listen",value:function(J,ee,Te,Be){var ut=this;if(!this._triggers.hasOwnProperty(ee))throw new Error('Unable to listen on the animation trigger event "'.concat(Te,'" because the animation trigger "').concat(ee,"\" doesn't exist!"));if(null==Te||0==Te.length)throw new Error('Unable to listen on the animation trigger "'.concat(ee,'" because the provided event is undefined!'));if(!function(ge){return"start"==ge||"done"==ge}(Te))throw new Error('The provided animation trigger event "'.concat(Te,'" for the animation trigger "').concat(ee,'" is not supported!'));var Tt=A(this._elementListeners,J,[]),Zt={name:ee,phase:Te,callback:Be};Tt.push(Zt);var en=A(this._engine.statesByElement,J,{});return en.hasOwnProperty(ee)||(Bo(J,vt),Bo(J,vt+"-"+ee),en[ee]=ho),function(){ut._engine.afterFlush(function(){var pn=Tt.indexOf(Zt);pn>=0&&Tt.splice(pn,1),ut._triggers[ee]||delete en[ee]})}}},{key:"register",value:function(J,ee){return!this._triggers[J]&&(this._triggers[J]=ee,!0)}},{key:"_getTrigger",value:function(J){var ee=this._triggers[J];if(!ee)throw new Error('The provided animation trigger "'.concat(J,'" has not been registered!'));return ee}},{key:"trigger",value:function(J,ee,Te){var Be=this,ut=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],Tt=this._getTrigger(ee),Zt=new ui(this.id,ee,J),en=this._engine.statesByElement.get(J);en||(Bo(J,vt),Bo(J,vt+"-"+ee),this._engine.statesByElement.set(J,en={}));var pn=en[ee],Pn=new Fa(Te,this.id),Un=Te&&Te.hasOwnProperty("value");!Un&&pn&&Pn.absorbOptions(pn.options),en[ee]=Pn,pn||(pn=ho);var $n=Pn.value===ki;if($n||pn.value!==Pn.value){var Or=A(this._engine.playersByElement,J,[]);Or.forEach(function(si){si.namespaceId==Be.id&&si.triggerName==ee&&si.queued&&si.destroy()});var di=Tt.matchTransition(pn.value,Pn.value,J,Pn.params),Si=!1;if(!di){if(!ut)return;di=Tt.fallbackTransition,Si=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:J,triggerName:ee,transition:di,fromState:pn,toState:Pn,player:Zt,isFallbackTransition:Si}),Si||(Bo(J,Mo),Zt.onStart(function(){Us(J,Mo)})),Zt.onDone(function(){var si=Be.players.indexOf(Zt);si>=0&&Be.players.splice(si,1);var vo=Be._engine.playersByElement.get(J);if(vo){var Re=vo.indexOf(Zt);Re>=0&&vo.splice(Re,1)}}),this.players.push(Zt),Or.push(Zt),Zt}if(!md(pn.params,Pn.params)){var yr=[],Br=Tt.matchStyles(pn.value,pn.params,yr),wr=Tt.matchStyles(Pn.value,Pn.params,yr);yr.length?this._engine.reportError(yr):this._engine.afterFlush(function(){En(J,Br),Bn(J,wr)})}}},{key:"deregister",value:function(J){var ee=this;delete this._triggers[J],this._engine.statesByElement.forEach(function(Te,Be){delete Te[J]}),this._elementListeners.forEach(function(Te,Be){ee._elementListeners.set(Be,Te.filter(function(ut){return ut.name!=J}))})}},{key:"clearElementCache",value:function(J){this._engine.statesByElement.delete(J),this._elementListeners.delete(J);var ee=this._engine.playersByElement.get(J);ee&&(ee.forEach(function(Te){return Te.destroy()}),this._engine.playersByElement.delete(J))}},{key:"_signalRemovalForInnerTriggers",value:function(J,ee){var Te=this,Be=this._engine.driver.query(J,Xt,!0);Be.forEach(function(ut){if(!ut[so]){var Tt=Te._engine.fetchNamespacesByElement(ut);Tt.size?Tt.forEach(function(Zt){return Zt.triggerLeaveAnimation(ut,ee,!1,!0)}):Te.clearElementCache(ut)}}),this._engine.afterFlushAnimationsDone(function(){return Be.forEach(function(ut){return Te.clearElementCache(ut)})})}},{key:"triggerLeaveAnimation",value:function(J,ee,Te,Be){var ut=this,Tt=this._engine.statesByElement.get(J);if(Tt){var Zt=[];if(Object.keys(Tt).forEach(function(en){if(ut._triggers[en]){var pn=ut.trigger(J,en,ki,Be);pn&&Zt.push(pn)}}),Zt.length)return this._engine.markElementAsRemoved(this.id,J,!0,ee),Te&&T(Zt).onDone(function(){return ut._engine.processLeaveNode(J)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(J){var ee=this,Te=this._elementListeners.get(J),Be=this._engine.statesByElement.get(J);if(Te&&Be){var ut=new Set;Te.forEach(function(Tt){var Zt=Tt.name;if(!ut.has(Zt)){ut.add(Zt);var pn=ee._triggers[Zt].fallbackTransition,Pn=Be[Zt]||ho,Un=new Fa(ki),$n=new ui(ee.id,Zt,J);ee._engine.totalQueuedPlayers++,ee._queue.push({element:J,triggerName:Zt,transition:pn,fromState:Pn,toState:Un,player:$n,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(J,ee){var Te=this,Be=this._engine;if(J.childElementCount&&this._signalRemovalForInnerTriggers(J,ee),!this.triggerLeaveAnimation(J,ee,!0)){var ut=!1;if(Be.totalAnimations){var Tt=Be.players.length?Be.playersByQueriedElement.get(J):[];if(Tt&&Tt.length)ut=!0;else for(var Zt=J;Zt=Zt.parentNode;)if(Be.statesByElement.get(Zt)){ut=!0;break}}if(this.prepareLeaveAnimationListeners(J),ut)Be.markElementAsRemoved(this.id,J,!1,ee);else{var pn=J[so];(!pn||pn===fo)&&(Be.afterFlush(function(){return Te.clearElementCache(J)}),Be.destroyInnerAnimations(J),Be._onRemovalComplete(J,ee))}}}},{key:"insertNode",value:function(J,ee){Bo(J,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(J){var ee=this,Te=[];return this._queue.forEach(function(Be){var ut=Be.player;if(!ut.destroyed){var Tt=Be.element,Zt=ee._elementListeners.get(Tt);Zt&&Zt.forEach(function(en){if(en.name==Be.triggerName){var pn=S(Tt,Be.triggerName,Be.fromState.value,Be.toState.value);pn._data=J,E(Be.player,en.phase,pn,en.callback)}}),ut.markedForDestroy?ee._engine.afterFlush(function(){ut.destroy()}):Te.push(Be)}}),this._queue=[],Te.sort(function(Be,ut){var Tt=Be.transition.ast.depCount,Zt=ut.transition.ast.depCount;return 0==Tt||0==Zt?Tt-Zt:ee._engine.driver.containsElement(Be.element,ut.element)?1:-1})}},{key:"destroy",value:function(J){this.players.forEach(function(ee){return ee.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,J)}},{key:"elementContainsData",value:function(J){var ee=!1;return this._elementListeners.has(J)&&(ee=!0),!!this._queue.find(function(Te){return Te.element===J})||ee}}]),ge}(),Ba=function(){function ge(me,J,ee){(0,B.Z)(this,ge),this.bodyNode=me,this.driver=J,this._normalizer=ee,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(Te,Be){}}return(0,V.Z)(ge,[{key:"_onRemovalComplete",value:function(J,ee){this.onRemovalComplete(J,ee)}},{key:"queuedPlayers",get:function(){var J=[];return this._namespaceList.forEach(function(ee){ee.players.forEach(function(Te){Te.queued&&J.push(Te)})}),J}},{key:"createNamespace",value:function(J,ee){var Te=new mo(J,ee,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,ee)?this._balanceNamespaceList(Te,ee):(this.newHostElements.set(ee,Te),this.collectEnterElement(ee)),this._namespaceLookup[J]=Te}},{key:"_balanceNamespaceList",value:function(J,ee){var Te=this._namespaceList.length-1;if(Te>=0){for(var Be=!1,ut=Te;ut>=0;ut--)if(this.driver.containsElement(this._namespaceList[ut].hostElement,ee)){this._namespaceList.splice(ut+1,0,J),Be=!0;break}Be||this._namespaceList.splice(0,0,J)}else this._namespaceList.push(J);return this.namespacesByHostElement.set(ee,J),J}},{key:"register",value:function(J,ee){var Te=this._namespaceLookup[J];return Te||(Te=this.createNamespace(J,ee)),Te}},{key:"registerTrigger",value:function(J,ee,Te){var Be=this._namespaceLookup[J];Be&&Be.register(ee,Te)&&this.totalAnimations++}},{key:"destroy",value:function(J,ee){var Te=this;if(J){var Be=this._fetchNamespace(J);this.afterFlush(function(){Te.namespacesByHostElement.delete(Be.hostElement),delete Te._namespaceLookup[J];var ut=Te._namespaceList.indexOf(Be);ut>=0&&Te._namespaceList.splice(ut,1)}),this.afterFlushAnimationsDone(function(){return Be.destroy(ee)})}}},{key:"_fetchNamespace",value:function(J){return this._namespaceLookup[J]}},{key:"fetchNamespacesByElement",value:function(J){var ee=new Set,Te=this.statesByElement.get(J);if(Te)for(var Be=Object.keys(Te),ut=0;ut=0&&this.collectedLeaveElements.splice(Tt,1)}if(J){var Zt=this._fetchNamespace(J);Zt&&Zt.insertNode(ee,Te)}Be&&this.collectEnterElement(ee)}}},{key:"collectEnterElement",value:function(J){this.collectedEnterElements.push(J)}},{key:"markElementAsDisabled",value:function(J,ee){ee?this.disabledNodes.has(J)||(this.disabledNodes.add(J),Bo(J,Jo)):this.disabledNodes.has(J)&&(this.disabledNodes.delete(J),Us(J,Jo))}},{key:"removeNode",value:function(J,ee,Te,Be){if(ns(ee)){var ut=J?this._fetchNamespace(J):null;if(ut?ut.removeNode(ee,Be):this.markElementAsRemoved(J,ee,!1,Be),Te){var Tt=this.namespacesByHostElement.get(ee);Tt&&Tt.id!==J&&Tt.removeNode(ee,Be)}}else this._onRemovalComplete(ee,Be)}},{key:"markElementAsRemoved",value:function(J,ee,Te,Be){this.collectedLeaveElements.push(ee),ee[so]={namespaceId:J,setForRemoval:Be,hasAnimation:Te,removedBeforeQueried:!1}}},{key:"listen",value:function(J,ee,Te,Be,ut){return ns(ee)?this._fetchNamespace(J).listen(ee,Te,Be,ut):function(){}}},{key:"_buildInstruction",value:function(J,ee,Te,Be,ut){return J.transition.build(this.driver,J.element,J.fromState.value,J.toState.value,Te,Be,J.fromState.options,J.toState.options,ee,ut)}},{key:"destroyInnerAnimations",value:function(J){var ee=this,Te=this.driver.query(J,Xt,!0);Te.forEach(function(Be){return ee.destroyActiveAnimationsForElement(Be)}),0!=this.playersByQueriedElement.size&&(Te=this.driver.query(J,Ct,!0)).forEach(function(Be){return ee.finishActiveQueriedAnimationOnElement(Be)})}},{key:"destroyActiveAnimationsForElement",value:function(J){var ee=this.playersByElement.get(J);ee&&ee.forEach(function(Te){Te.queued?Te.markedForDestroy=!0:Te.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(J){var ee=this.playersByQueriedElement.get(J);ee&&ee.forEach(function(Te){return Te.finish()})}},{key:"whenRenderingDone",value:function(){var J=this;return new Promise(function(ee){if(J.players.length)return T(J.players).onDone(function(){return ee()});ee()})}},{key:"processLeaveNode",value:function(J){var ee=this,Te=J[so];if(Te&&Te.setForRemoval){if(J[so]=fo,Te.namespaceId){this.destroyInnerAnimations(J);var Be=this._fetchNamespace(Te.namespaceId);Be&&Be.clearElementCache(J)}this._onRemovalComplete(J,Te.setForRemoval)}this.driver.matchesElement(J,La)&&this.markElementAsDisabled(J,!1),this.driver.query(J,La,!0).forEach(function(ut){ee.markElementAsDisabled(ut,!1)})}},{key:"flush",value:function(){var J=this,ee=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,Te=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(Un,$n){return J._balanceNamespaceList(Un,$n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var Be=0;Be=0;St--)this._namespaceList[St].drainQueuedTransitions(ee).forEach(function(ar){var Ur=ar.player,Pr=ar.element;if(De.push(Ur),Te.collectedEnterElements.length){var Vi=Pr[so];if(Vi&&Vi.setForMove)return void Ur.destroy()}var Va=!$n||!Te.driver.containsElement($n,Pr),pc=be.get(Pr),Xl=wr.get(Pr),Vo=Te._buildInstruction(ar,Be,Xl,pc,Va);if(Vo.errors&&Vo.errors.length)rt.push(Vo);else{if(Va)return Ur.onStart(function(){return En(Pr,Vo.fromStyles)}),Ur.onDestroy(function(){return Bn(Pr,Vo.toStyles)}),void ut.push(Ur);if(ar.isFallbackTransition)return Ur.onStart(function(){return En(Pr,Vo.fromStyles)}),Ur.onDestroy(function(){return Bn(Pr,Vo.toStyles)}),void ut.push(Ur);Vo.timelines.forEach(function(Cs){return Cs.stretchStartingKeyframe=!0}),Be.append(Pr,Vo.timelines),Zt.push({instruction:Vo,player:Ur,element:Pr}),Vo.queriedElements.forEach(function(Cs){return A(en,Cs,[]).push(Ur)}),Vo.preStyleProps.forEach(function(Cs,bd){var gv=Object.keys(Cs);if(gv.length){var qs=pn.get(bd);qs||pn.set(bd,qs=new Set),gv.forEach(function(Dp){return qs.add(Dp)})}}),Vo.postStyleProps.forEach(function(Cs,bd){var gv=Object.keys(Cs),qs=Pn.get(bd);qs||Pn.set(bd,qs=new Set),gv.forEach(function(Dp){return qs.add(Dp)})})}});if(rt.length){var Cn=[];rt.forEach(function(ar){Cn.push("@".concat(ar.triggerName," has failed due to:\n")),ar.errors.forEach(function(Ur){return Cn.push("- ".concat(Ur,"\n"))})}),De.forEach(function(ar){return ar.destroy()}),this.reportError(Cn)}var Mr=new Map,Oi=new Map;Zt.forEach(function(ar){var Ur=ar.element;Be.has(Ur)&&(Oi.set(Ur,Ur),Te._beforeAnimationBuild(ar.player.namespaceId,ar.instruction,Mr))}),ut.forEach(function(ar){var Ur=ar.element;Te._getPreviousPlayers(Ur,!1,ar.namespaceId,ar.triggerName,null).forEach(function(Vi){A(Mr,Ur,[]).push(Vi),Vi.destroy()})});var Ho=di.filter(function(ar){return wu(ar,pn,Pn)}),ha=new Map;fl(ha,this.driver,si,Pn,_.l3).forEach(function(ar){wu(ar,pn,Pn)&&Ho.push(ar)});var go=new Map;Br.forEach(function(ar,Ur){fl(go,Te.driver,new Set(ar),pn,_.k1)}),Ho.forEach(function(ar){var Ur=ha.get(ar),Pr=go.get(ar);ha.set(ar,Object.assign(Object.assign({},Ur),Pr))});var is=[],to=[],oh={};Zt.forEach(function(ar){var Ur=ar.element,Pr=ar.player,Vi=ar.instruction;if(Be.has(Ur)){if(Un.has(Ur))return Pr.onDestroy(function(){return Bn(Ur,Vi.toStyles)}),Pr.disabled=!0,Pr.overrideTotalTime(Vi.totalTime),void ut.push(Pr);var Va=oh;if(Oi.size>1){for(var pc=Ur,Xl=[];pc=pc.parentNode;){var Vo=Oi.get(pc);if(Vo){Va=Vo;break}Xl.push(pc)}Xl.forEach(function(bd){return Oi.set(bd,Va)})}var Ap=Te._buildAnimation(Pr.namespaceId,Vi,Mr,Tt,go,ha);if(Pr.setRealPlayer(Ap),Va===oh)is.push(Pr);else{var Cs=Te.playersByElement.get(Va);Cs&&Cs.length&&(Pr.parentPlayer=T(Cs)),ut.push(Pr)}}else En(Ur,Vi.fromStyles),Pr.onDestroy(function(){return Bn(Ur,Vi.toStyles)}),to.push(Pr),Un.has(Ur)&&ut.push(Pr)}),to.forEach(function(ar){var Ur=Tt.get(ar.element);if(Ur&&Ur.length){var Pr=T(Ur);ar.setRealPlayer(Pr)}}),ut.forEach(function(ar){ar.parentPlayer?ar.syncPlayerEvents(ar.parentPlayer):ar.destroy()});for(var Mp=0;Mp0?this.driver.animate(J.element,ee,J.duration,J.delay,J.easing,Te):new _.ZN(J.duration,J.delay)}}]),ge}(),ui=function(){function ge(me,J,ee){(0,B.Z)(this,ge),this.namespaceId=me,this.triggerName=J,this.element=ee,this._player=new _.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return(0,V.Z)(ge,[{key:"setRealPlayer",value:function(J){var ee=this;this._containsRealPlayer||(this._player=J,Object.keys(this._queuedCallbacks).forEach(function(Te){ee._queuedCallbacks[Te].forEach(function(Be){return E(J,Te,void 0,Be)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(J.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(J){this.totalTime=J}},{key:"syncPlayerEvents",value:function(J){var ee=this,Te=this._player;Te.triggerCallback&&J.onStart(function(){return Te.triggerCallback("start")}),J.onDone(function(){return ee.finish()}),J.onDestroy(function(){return ee.destroy()})}},{key:"_queueEvent",value:function(J,ee){A(this._queuedCallbacks,J,[]).push(ee)}},{key:"onDone",value:function(J){this.queued&&this._queueEvent("done",J),this._player.onDone(J)}},{key:"onStart",value:function(J){this.queued&&this._queueEvent("start",J),this._player.onStart(J)}},{key:"onDestroy",value:function(J){this.queued&&this._queueEvent("destroy",J),this._player.onDestroy(J)}},{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(J){this.queued||this._player.setPosition(J)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(J){var ee=this._player;ee.triggerCallback&&ee.triggerCallback(J)}}]),ge}();function pl(ge){return null!=ge?ge:null}function ns(ge){return ge&&1===ge.nodeType}function Qo(ge,me){var J=ge.style.display;return ge.style.display=null!=me?me:"none",J}function fl(ge,me,J,ee,Te){var Be=[];J.forEach(function(Zt){return Be.push(Qo(Zt))});var ut=[];ee.forEach(function(Zt,en){var pn={};Zt.forEach(function(Pn){var Un=pn[Pn]=me.computeStyle(en,Pn,Te);(!Un||0==Un.length)&&(en[so]=Ui,ut.push(en))}),ge.set(en,pn)});var Tt=0;return J.forEach(function(Zt){return Qo(Zt,Be[Tt++])}),ut}function ac(ge,me){var J=new Map;if(ge.forEach(function(Tt){return J.set(Tt,[])}),0==me.length)return J;var Te=new Set(me),Be=new Map;function ut(Tt){if(!Tt)return 1;var Zt=Be.get(Tt);if(Zt)return Zt;var en=Tt.parentNode;return Zt=J.has(en)?en:Te.has(en)?1:ut(en),Be.set(Tt,Zt),Zt}return me.forEach(function(Tt){var Zt=ut(Tt);1!==Zt&&J.get(Zt).push(Tt)}),J}var hl="$$classes";function Bo(ge,me){if(ge.classList)ge.classList.add(me);else{var J=ge[hl];J||(J=ge[hl]={}),J[me]=!0}}function Us(ge,me){if(ge.classList)ge.classList.remove(me);else{var J=ge[hl];J&&delete J[me]}}function xu(ge,me,J){T(J).onDone(function(){return ge.processLeaveNode(me)})}function Ql(ge,me){for(var J=0;J0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(J)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),ge}();function ml(ge,me){var J=null,ee=null;return Array.isArray(me)&&me.length?(J=Rr(me[0]),me.length>1&&(ee=Rr(me[me.length-1]))):me&&(J=Rr(me)),J||ee?new vd(ge,J,ee):null}var vd=function(){var ge=function(){function me(J,ee,Te){(0,B.Z)(this,me),this._element=J,this._startStyles=ee,this._endStyles=Te,this._state=0;var Be=me.initialStylesByElement.get(J);Be||me.initialStylesByElement.set(J,Be={}),this._initialStyles=Be}return(0,V.Z)(me,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Bn(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Bn(this._element,this._initialStyles),this._endStyles&&(Bn(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(me.initialStylesByElement.delete(this._element),this._startStyles&&(En(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(En(this._element,this._endStyles),this._endStyles=null),Bn(this._element,this._initialStyles),this._state=3)}}]),me}();return ge.initialStylesByElement=new WeakMap,ge}();function Rr(ge){for(var me=null,J=Object.keys(ge),ee=0;ee=this._delay&&Te>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Ve(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(ge,me){var ee=Ft(ge,"").split(","),Te=Me(ee,me);Te>=0&&(ee.splice(Te,1),we(ge,"",ee.join(",")))}(this._element,this._name))}}]),ge}();function Sp(ge,me,J){we(ge,"PlayState",J,Pe(ge,me))}function Pe(ge,me){var J=Ft(ge,"");return J.indexOf(",")>0?Me(J.split(","),me):Me([J],me)}function Me(ge,me){for(var J=0;J=0)return J;return-1}function Ve(ge,me,J){J?ge.removeEventListener(ys,me):ge.addEventListener(ys,me)}function we(ge,me,J,ee){var Te=Ko+me;if(null!=ee){var Be=ge.style[Te];if(Be.length){var ut=Be.split(",");ut[ee]=J,J=ut.join(",")}}ge.style[Te]=J}function Ft(ge,me){return ge.style[Ko+me]||""}var Ie=function(){function ge(me,J,ee,Te,Be,ut,Tt,Zt){(0,B.Z)(this,ge),this.element=me,this.keyframes=J,this.animationName=ee,this._duration=Te,this._delay=Be,this._finalStyles=Tt,this._specialStyles=Zt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=ut||"linear",this.totalTime=Te+Be,this._buildStyler()}return(0,V.Z)(ge,[{key:"onStart",value:function(J){this._onStartFns.push(J)}},{key:"onDone",value:function(J){this._onDoneFns.push(J)}},{key:"onDestroy",value:function(J){this._onDestroyFns.push(J)}},{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(J){return J()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(J){return J()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(J){return J()}),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(J){this._styler.setPosition(J)}},{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 J=this;this._styler=new Uo(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return J.finish()})}},{key:"triggerCallback",value:function(J){var ee="start"==J?this._onStartFns:this._onDoneFns;ee.forEach(function(Te){return Te()}),ee.length=0}},{key:"beforeDestroy",value:function(){var J=this;this.init();var ee={};if(this.hasStarted()){var Te=this._state>=3;Object.keys(this._finalStyles).forEach(function(Be){"offset"!=Be&&(ee[Be]=Te?J._finalStyles[Be]:rn(J.element,Be))})}this.currentSnapshot=ee}}]),ge}(),$e=function(ge){(0,Z.Z)(J,ge);var me=(0,w.Z)(J);function J(ee,Te){var Be;return(0,B.Z)(this,J),(Be=me.call(this)).element=ee,Be._startingStyles={},Be.__initialized=!1,Be._styles=gt(Te),Be}return(0,V.Z)(J,[{key:"init",value:function(){var Te=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(Be){Te._startingStyles[Be]=Te.element.style[Be]}),(0,N.Z)((0,D.Z)(J.prototype),"init",this).call(this))}},{key:"play",value:function(){var Te=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(Be){return Te.element.style.setProperty(Be,Te._styles[Be])}),(0,N.Z)((0,D.Z)(J.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var Te=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(Be){var ut=Te._startingStyles[Be];ut?Te.element.style.setProperty(Be,ut):Te.element.style.removeProperty(Be)}),this._startingStyles=null,(0,N.Z)((0,D.Z)(J.prototype),"destroy",this).call(this))}}]),J}(_.ZN),qe="gen_css_kf_",kt=function(){function ge(){(0,B.Z)(this,ge),this._count=0}return(0,V.Z)(ge,[{key:"validateStyleProperty",value:function(J){return $(J)}},{key:"matchesElement",value:function(J,ee){return ve(J,ee)}},{key:"containsElement",value:function(J,ee){return et(J,ee)}},{key:"query",value:function(J,ee,Te){return Ne(J,ee,Te)}},{key:"computeStyle",value:function(J,ee,Te){return window.getComputedStyle(J)[ee]}},{key:"buildKeyframeElement",value:function(J,ee,Te){Te=Te.map(function(Zt){return gt(Zt)});var Be="@keyframes ".concat(ee," {\n"),ut="";Te.forEach(function(Zt){ut=" ";var en=parseFloat(Zt.offset);Be+="".concat(ut).concat(100*en,"% {\n"),ut+=" ",Object.keys(Zt).forEach(function(pn){var Pn=Zt[pn];switch(pn){case"offset":return;case"easing":return void(Pn&&(Be+="".concat(ut,"animation-timing-function: ").concat(Pn,";\n")));default:return void(Be+="".concat(ut).concat(pn,": ").concat(Pn,";\n"))}}),Be+="".concat(ut,"}\n")}),Be+="}\n";var Tt=document.createElement("style");return Tt.textContent=Be,Tt}},{key:"animate",value:function(J,ee,Te,Be,ut){var Tt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],en=Tt.filter(function(Or){return Or instanceof Ie}),pn={};yt(Te,Be)&&en.forEach(function(Or){var di=Or.currentSnapshot;Object.keys(di).forEach(function(Si){return pn[Si]=di[Si]})});var Pn=Mn(ee=Lt(J,ee,pn));if(0==Te)return new $e(J,Pn);var Un="".concat(qe).concat(this._count++),$n=this.buildKeyframeElement(J,Un,ee),yr=ln(J);yr.appendChild($n);var Br=ml(J,ee),wr=new Ie(J,ee,Un,Te,Be,ut,Pn,Br);return wr.onDestroy(function(){return nr($n)}),wr}}]),ge}();function ln(ge){var me,J=null===(me=ge.getRootNode)||void 0===me?void 0:me.call(ge);return"undefined"!=typeof ShadowRoot&&J instanceof ShadowRoot?J:document.head}function Mn(ge){var me={};return ge&&(Array.isArray(ge)?ge:[ge]).forEach(function(ee){Object.keys(ee).forEach(function(Te){"offset"==Te||"easing"==Te||(me[Te]=ee[Te])})}),me}function nr(ge){ge.parentNode.removeChild(ge)}var Wt=function(){function ge(me,J,ee,Te){(0,B.Z)(this,ge),this.element=me,this.keyframes=J,this.options=ee,this._specialStyles=Te,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=ee.duration,this._delay=ee.delay||0,this.time=this._duration+this._delay}return(0,V.Z)(ge,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(J){return J()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var J=this;if(!this._initialized){this._initialized=!0;var ee=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,ee,this.options),this._finalKeyframe=ee.length?ee[ee.length-1]:{},this.domPlayer.addEventListener("finish",function(){return J._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(J,ee,Te){return J.animate(ee,Te)}},{key:"onStart",value:function(J){this._onStartFns.push(J)}},{key:"onDone",value:function(J){this._onDoneFns.push(J)}},{key:"onDestroy",value:function(J){this._onDestroyFns.push(J)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(J){return J()}),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(J){return J()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(J){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=J*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 J=this,ee={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(Te){"offset"!=Te&&(ee[Te]=J._finished?J._finalKeyframe[Te]:rn(J.element,Te))}),this.currentSnapshot=ee}},{key:"triggerCallback",value:function(J){var ee="start"==J?this._onStartFns:this._onDoneFns;ee.forEach(function(Te){return Te()}),ee.length=0}}]),ge}(),Bt=function(){function ge(){(0,B.Z)(this,ge),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ci().toString()),this._cssKeyframesDriver=new kt}return(0,V.Z)(ge,[{key:"validateStyleProperty",value:function(J){return $(J)}},{key:"matchesElement",value:function(J,ee){return ve(J,ee)}},{key:"containsElement",value:function(J,ee){return et(J,ee)}},{key:"query",value:function(J,ee,Te){return Ne(J,ee,Te)}},{key:"computeStyle",value:function(J,ee,Te){return window.getComputedStyle(J)[ee]}},{key:"overrideWebAnimationsSupport",value:function(J){this._isNativeImpl=J}},{key:"animate",value:function(J,ee,Te,Be,ut){var Tt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],Zt=arguments.length>6?arguments[6]:void 0,en=!Zt&&!this._isNativeImpl;if(en)return this._cssKeyframesDriver.animate(J,ee,Te,Be,ut,Tt);var pn=0==Be?"both":"forwards",Pn={duration:Te,delay:Be,fill:pn};ut&&(Pn.easing=ut);var Un={},$n=Tt.filter(function(Br){return Br instanceof Wt});yt(Te,Be)&&$n.forEach(function(Br){var wr=Br.currentSnapshot;Object.keys(wr).forEach(function(Or){return Un[Or]=wr[Or]})});var yr=ml(J,ee=Lt(J,ee=ee.map(function(Br){return Hn(Br,!1)}),Un));return new Wt(J,ee,Pn,yr)}}]),ge}();function ci(){return y()&&Element.prototype.animate||{}}var Qi=f(40098),Ea=function(){var ge=function(me){(0,Z.Z)(ee,me);var J=(0,w.Z)(ee);function ee(Te,Be){var ut;return(0,B.Z)(this,ee),(ut=J.call(this))._nextAnimationId=0,ut._renderer=Te.createRenderer(Be.body,{id:"0",encapsulation:R.ifc.None,styles:[],data:{animation:[]}}),ut}return(0,V.Z)(ee,[{key:"build",value:function(Be){var ut=this._nextAnimationId.toString();this._nextAnimationId++;var Tt=Array.isArray(Be)?(0,_.vP)(Be):Be;return lc(this._renderer,null,ut,"register",[Tt]),new Ci(ut,this._renderer)}}]),ee}(_._j);return ge.\u0275fac=function(J){return new(J||ge)(R.LFG(R.FYo),R.LFG(Qi.K0))},ge.\u0275prov=R.Yz7({token:ge,factory:ge.\u0275fac}),ge}(),Ci=function(ge){(0,Z.Z)(J,ge);var me=(0,w.Z)(J);function J(ee,Te){var Be;return(0,B.Z)(this,J),(Be=me.call(this))._id=ee,Be._renderer=Te,Be}return(0,V.Z)(J,[{key:"create",value:function(Te,Be){return new Hi(this._id,Te,Be||{},this._renderer)}}]),J}(_.LC),Hi=function(){function ge(me,J,ee,Te){(0,B.Z)(this,ge),this.id=me,this.element=J,this._renderer=Te,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",ee)}return(0,V.Z)(ge,[{key:"_listen",value:function(J,ee){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(J),ee)}},{key:"_command",value:function(J){for(var ee=arguments.length,Te=new Array(ee>1?ee-1:0),Be=1;Be=0&&ee3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(J,ee,Te),this.engine.onInsert(this.namespaceId,ee,J,Be)}},{key:"removeChild",value:function(J,ee,Te){this.engine.onRemove(this.namespaceId,ee,this.delegate,Te)}},{key:"selectRootElement",value:function(J,ee){return this.delegate.selectRootElement(J,ee)}},{key:"parentNode",value:function(J){return this.delegate.parentNode(J)}},{key:"nextSibling",value:function(J){return this.delegate.nextSibling(J)}},{key:"setAttribute",value:function(J,ee,Te,Be){this.delegate.setAttribute(J,ee,Te,Be)}},{key:"removeAttribute",value:function(J,ee,Te){this.delegate.removeAttribute(J,ee,Te)}},{key:"addClass",value:function(J,ee){this.delegate.addClass(J,ee)}},{key:"removeClass",value:function(J,ee){this.delegate.removeClass(J,ee)}},{key:"setStyle",value:function(J,ee,Te,Be){this.delegate.setStyle(J,ee,Te,Be)}},{key:"removeStyle",value:function(J,ee,Te){this.delegate.removeStyle(J,ee,Te)}},{key:"setProperty",value:function(J,ee,Te){"@"==ee.charAt(0)&&ee==Ha?this.disableAnimations(J,!!Te):this.delegate.setProperty(J,ee,Te)}},{key:"setValue",value:function(J,ee){this.delegate.setValue(J,ee)}},{key:"listen",value:function(J,ee,Te){return this.delegate.listen(J,ee,Te)}},{key:"disableAnimations",value:function(J,ee){this.engine.disableAnimations(J,ee)}}]),ge}(),Tp=function(ge){(0,Z.Z)(J,ge);var me=(0,w.Z)(J);function J(ee,Te,Be,ut){var Tt;return(0,B.Z)(this,J),(Tt=me.call(this,Te,Be,ut)).factory=ee,Tt.namespaceId=Te,Tt}return(0,V.Z)(J,[{key:"setProperty",value:function(Te,Be,ut){"@"==Be.charAt(0)?"."==Be.charAt(1)&&Be==Ha?this.disableAnimations(Te,ut=void 0===ut||!!ut):this.engine.process(this.namespaceId,Te,Be.substr(1),ut):this.delegate.setProperty(Te,Be,ut)}},{key:"listen",value:function(Te,Be,ut){var Tt=this;if("@"==Be.charAt(0)){var Zt=function(ge){switch(ge){case"body":return document.body;case"document":return document;case"window":return window;default:return ge}}(Te),en=Be.substr(1),pn="";if("@"!=en.charAt(0)){var Pn=function(ge){var me=ge.indexOf(".");return[ge.substring(0,me),ge.substr(me+1)]}(en),Un=(0,U.Z)(Pn,2);en=Un[0],pn=Un[1]}return this.engine.listen(this.namespaceId,Zt,en,pn,function($n){Tt.factory.scheduleListenerCallback($n._data||-1,ut,$n)})}return this.delegate.listen(Te,Be,ut)}}]),J}(bs),uc=function(){var ge=function(me){(0,Z.Z)(ee,me);var J=(0,w.Z)(ee);function ee(Te,Be,ut){return(0,B.Z)(this,ee),J.call(this,Te.body,Be,ut)}return(0,V.Z)(ee,[{key:"ngOnDestroy",value:function(){this.flush()}}]),ee}(rs);return ge.\u0275fac=function(J){return new(J||ge)(R.LFG(Qi.K0),R.LFG(Rt),R.LFG(Fi))},ge.\u0275prov=R.Yz7({token:ge,factory:ge.\u0275fac}),ge}(),gd=new R.OlP("AnimationModuleType"),kp=[{provide:_._j,useClass:Ea},{provide:Fi,useFactory:function(){return new Zi}},{provide:rs,useClass:uc},{provide:R.FYo,useFactory:function(ge,me,J){return new oa(ge,me,J)},deps:[C.se,rs,R.R0b]}],Ep=[{provide:Rt,useFactory:function(){return"function"==typeof ci()?new Bt:new kt}},{provide:gd,useValue:"BrowserAnimations"}].concat(kp),_d=[{provide:Rt,useClass:_t},{provide:gd,useValue:"NoopAnimations"}].concat(kp),Kl=function(){var ge=function(){function me(){(0,B.Z)(this,me)}return(0,V.Z)(me,null,[{key:"withConfig",value:function(ee){return{ngModule:me,providers:ee.disableAnimations?_d:Ep}}}]),me}();return ge.\u0275fac=function(J){return new(J||ge)},ge.\u0275mod=R.oAB({type:ge}),ge.\u0275inj=R.cJS({providers:Ep,imports:[C.b2]}),ge}()},29176:function(le,q,f){"use strict";f.d(q,{b2:function(){return ze},H7:function(){return wn},Dx:function(){return ai},HJ:function(){return fa},q6:function(){return Ae},se:function(){return bt}});var y,U=f(20901),B=f(89200),V=f(14105),Z=f(18967),w=f(10509),R=f(97154),C=f(40098),_=f(65508),D=function(It){(0,w.Z)(Pt,It);var Qt=(0,R.Z)(Pt);function Pt(){return(0,Z.Z)(this,Pt),Qt.apply(this,arguments)}return(0,V.Z)(Pt,[{key:"onAndCancel",value:function($t,tn,bn){return $t.addEventListener(tn,bn,!1),function(){$t.removeEventListener(tn,bn,!1)}}},{key:"dispatchEvent",value:function($t,tn){$t.dispatchEvent(tn)}},{key:"remove",value:function($t){$t.parentNode&&$t.parentNode.removeChild($t)}},{key:"createElement",value:function($t,tn){return(tn=tn||this.getDefaultDocument()).createElement($t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function($t){return $t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function($t){return $t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function($t,tn){return"window"===tn?window:"document"===tn?$t:"body"===tn?$t.body:null}},{key:"getBaseHref",value:function($t){var tn=(O=O||document.querySelector("base"))?O.getAttribute("href"):null;return null==tn?null:function(It){(y=y||document.createElement("a")).setAttribute("href",It);var Qt=y.pathname;return"/"===Qt.charAt(0)?Qt:"/".concat(Qt)}(tn)}},{key:"resetBaseElement",value:function(){O=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function($t){return(0,C.Mx)(document.cookie,$t)}}],[{key:"makeCurrent",value:function(){(0,C.HT)(new Pt)}}]),Pt}(function(It){(0,w.Z)(Pt,It);var Qt=(0,R.Z)(Pt);function Pt(){var zt;return(0,Z.Z)(this,Pt),(zt=Qt.apply(this,arguments)).supportsDOMEvents=!0,zt}return Pt}(C.w_)),O=null,T=new _.OlP("TRANSITION_ID"),E=[{provide:_.ip1,useFactory:function(It,Qt,Pt){return function(){Pt.get(_.CZH).donePromise.then(function(){for(var zt=(0,C.q)(),$t=Qt.querySelectorAll('style[ng-transition="'.concat(It,'"]')),tn=0;tn<$t.length;tn++)zt.remove($t[tn])})}},deps:[T,C.K0,_.zs3],multi:!0}],x=function(){function It(){(0,Z.Z)(this,It)}return(0,V.Z)(It,[{key:"addToWindow",value:function(Pt){_.dqk.getAngularTestability=function($t){var tn=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],bn=Pt.findTestabilityInTree($t,tn);if(null==bn)throw new Error("Could not find testability for element.");return bn},_.dqk.getAllAngularTestabilities=function(){return Pt.getAllTestabilities()},_.dqk.getAllAngularRootElements=function(){return Pt.getAllRootElements()},_.dqk.frameworkStabilizers||(_.dqk.frameworkStabilizers=[]),_.dqk.frameworkStabilizers.push(function(tn){var bn=_.dqk.getAllAngularTestabilities(),Qn=bn.length,Wn=!1,Gn=function(Bi){Wn=Wn||Bi,0==--Qn&&tn(Wn)};bn.forEach(function(mi){mi.whenStable(Gn)})})}},{key:"findTestabilityInTree",value:function(Pt,zt,$t){if(null==zt)return null;var tn=Pt.getTestability(zt);return null!=tn?tn:$t?(0,C.q)().isShadowRoot(zt)?this.findTestabilityInTree(Pt,zt.host,!0):this.findTestabilityInTree(Pt,zt.parentElement,!0):null}}],[{key:"init",value:function(){(0,_.VLi)(new It)}}]),It}(),S=function(){var It=function(){function Qt(){(0,Z.Z)(this,Qt)}return(0,V.Z)(Qt,[{key:"build",value:function(){return new XMLHttpRequest}}]),Qt}();return It.\u0275fac=function(Pt){return new(Pt||It)},It.\u0275prov=_.Yz7({token:It,factory:It.\u0275fac}),It}();var et=new _.OlP("EventManagerPlugins"),Ne=function(){var It=function(){function Qt(Pt,zt){var $t=this;(0,Z.Z)(this,Qt),this._zone=zt,this._eventNameToPlugin=new Map,Pt.forEach(function(tn){return tn.manager=$t}),this._plugins=Pt.slice().reverse()}return(0,V.Z)(Qt,[{key:"addEventListener",value:function(zt,$t,tn){return this._findPluginFor($t).addEventListener(zt,$t,tn)}},{key:"addGlobalEventListener",value:function(zt,$t,tn){return this._findPluginFor($t).addGlobalEventListener(zt,$t,tn)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(zt){var $t=this._eventNameToPlugin.get(zt);if($t)return $t;for(var tn=this._plugins,bn=0;bn-1&&(bn.splice(ao,1),Gn+=Bi+".")}),Gn+=Wn,0!=bn.length||0===Wn.length)return null;var mi={};return mi.domEventName=Qn,mi.fullKey=Gn,mi}},{key:"getEventFullKey",value:function(tn){var bn="",Qn=function(It){var Qt=It.key;if(null==Qt){if(null==(Qt=It.keyIdentifier))return"Unidentified";Qt.startsWith("U+")&&(Qt=String.fromCharCode(parseInt(Qt.substring(2),16)),3===It.location&&Lt.hasOwnProperty(Qt)&&(Qt=Lt[Qt]))}return yt[Qt]||Qt}(tn);return" "===(Qn=Qn.toLowerCase())?Qn="space":"."===Qn&&(Qn="dot"),Ge.forEach(function(Wn){Wn!=Qn&&(0,xn[Wn])(tn)&&(bn+=Wn+".")}),bn+=Qn}},{key:"eventCallback",value:function(tn,bn,Qn){return function(Wn){zt.getEventFullKey(Wn)===tn&&Qn.runGuarded(function(){return bn(Wn)})}}},{key:"_normalizeKey",value:function(tn){switch(tn){case"esc":return"escape";default:return tn}}}]),zt}(gt);return It.\u0275fac=function(Pt){return new(Pt||It)(_.LFG(C.K0))},It.\u0275prov=_.Yz7({token:It,factory:It.\u0275fac}),It}(),wn=function(){var It=function Qt(){(0,Z.Z)(this,Qt)};return It.\u0275fac=function(Pt){return new(Pt||It)},It.\u0275prov=(0,_.Yz7)({factory:function(){return(0,_.LFG)(ir)},token:It,providedIn:"root"}),It}(),ir=function(){var It=function(Qt){(0,w.Z)(zt,Qt);var Pt=(0,R.Z)(zt);function zt($t){var tn;return(0,Z.Z)(this,zt),(tn=Pt.call(this))._doc=$t,tn}return(0,V.Z)(zt,[{key:"sanitize",value:function(tn,bn){if(null==bn)return null;switch(tn){case _.q3G.NONE:return bn;case _.q3G.HTML:return(0,_.qzn)(bn,"HTML")?(0,_.z3N)(bn):(0,_.EiD)(this._doc,String(bn)).toString();case _.q3G.STYLE:return(0,_.qzn)(bn,"Style")?(0,_.z3N)(bn):bn;case _.q3G.SCRIPT:if((0,_.qzn)(bn,"Script"))return(0,_.z3N)(bn);throw new Error("unsafe value used in a script context");case _.q3G.URL:return(0,_.yhl)(bn),(0,_.qzn)(bn,"URL")?(0,_.z3N)(bn):(0,_.mCW)(String(bn));case _.q3G.RESOURCE_URL:if((0,_.qzn)(bn,"ResourceURL"))return(0,_.z3N)(bn);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(tn," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(tn){return(0,_.JVY)(tn)}},{key:"bypassSecurityTrustStyle",value:function(tn){return(0,_.L6k)(tn)}},{key:"bypassSecurityTrustScript",value:function(tn){return(0,_.eBb)(tn)}},{key:"bypassSecurityTrustUrl",value:function(tn){return(0,_.LAX)(tn)}},{key:"bypassSecurityTrustResourceUrl",value:function(tn){return(0,_.pB0)(tn)}}]),zt}(wn);return It.\u0275fac=function(Pt){return new(Pt||It)(_.LFG(C.K0))},It.\u0275prov=(0,_.Yz7)({factory:function(){return function(It){return new ir(It.get(C.K0))}((0,_.LFG)(_.gxx))},token:It,providedIn:"root"}),It}(),Ae=(0,_.eFA)(_._c5,"browser",[{provide:_.Lbi,useValue:C.bD},{provide:_.g9A,useValue:function(){D.makeCurrent(),x.init()},multi:!0},{provide:C.K0,useFactory:function(){return(0,_.RDi)(document),document},deps:[]}]),Le=[[],{provide:_.zSh,useValue:"root"},{provide:_.qLn,useFactory:function(){return new _.qLn},deps:[]},{provide:et,useClass:lr,multi:!0,deps:[C.K0,_.R0b,_.Lbi]},{provide:et,useClass:Nn,multi:!0,deps:[C.K0]},[],{provide:bt,useClass:bt,deps:[Ne,Rt,_.AFp]},{provide:_.FYo,useExisting:bt},{provide:_t,useExisting:Rt},{provide:Rt,useClass:Rt,deps:[C.K0]},{provide:_.dDg,useClass:_.dDg,deps:[_.R0b]},{provide:Ne,useClass:Ne,deps:[et,_.R0b]},{provide:C.JF,useClass:S,deps:[]},[]],ze=function(){var It=function(){function Qt(Pt){if((0,Z.Z)(this,Qt),Pt)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,V.Z)(Qt,null,[{key:"withServerTransition",value:function(zt){return{ngModule:Qt,providers:[{provide:_.AFp,useValue:zt.appId},{provide:T,useExisting:_.AFp},E]}}}]),Qt}();return It.\u0275fac=function(Pt){return new(Pt||It)(_.LFG(It,12))},It.\u0275mod=_.oAB({type:It}),It.\u0275inj=_.cJS({providers:Le,imports:[C.ez,_.hGG]}),It}();function Jr(){return new ai((0,_.LFG)(C.K0))}var ai=function(){var It=function(){function Qt(Pt){(0,Z.Z)(this,Qt),this._doc=Pt}return(0,V.Z)(Qt,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(zt){this._doc.title=zt||""}}]),Qt}();return It.\u0275fac=function(Pt){return new(Pt||It)(_.LFG(C.K0))},It.\u0275prov=(0,_.Yz7)({factory:Jr,token:It,providedIn:"root"}),It}(),Ir="undefined"!=typeof window&&window||{},vi=function It(Qt,Pt){(0,Z.Z)(this,It),this.msPerTick=Qt,this.numTicks=Pt},co=function(){function It(Qt){(0,Z.Z)(this,It),this.appRef=Qt.injector.get(_.z2F)}return(0,V.Z)(It,[{key:"timeChangeDetection",value:function(Pt){var zt=Pt&&Pt.record,$t="Change Detection",tn=null!=Ir.console.profile;zt&&tn&&Ir.console.profile($t);for(var bn=Gi(),Qn=0;Qn<5||Gi()-bn<500;)this.appRef.tick(),Qn++;var Wn=Gi();zt&&tn&&Ir.console.profileEnd($t);var Gn=(Wn-bn)/Qn;return Ir.console.log("ran ".concat(Qn," change detection cycles")),Ir.console.log("".concat(Gn.toFixed(2)," ms per check")),new vi(Gn,Qn)}}]),It}();function Gi(){return Ir.performance&&Ir.performance.now?Ir.performance.now():(new Date).getTime()}function fa(It){return function(It,Qt){"undefined"!=typeof COMPILED&&COMPILED||((_.dqk.ng=_.dqk.ng||{})[It]=Qt)}("profiler",new co(It)),It}},82605:function(le,q,f){"use strict";f.d(q,{Rf:function(){return V},DM:function(){return Z},en:function(){return w},jH:function(){return R},Cf:function(){return C},Db:function(){return _},EG:function(){return N},l4:function(){return D},JY:function(){return g}});var U=f(4839),B={};function V(){return(0,U.KV)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:B}function Z(){var E=V(),x=E.crypto||E.msCrypto;if(void 0!==x&&x.getRandomValues){var S=new Uint16Array(8);x.getRandomValues(S),S[3]=4095&S[3]|16384,S[4]=16383&S[4]|32768;var A=function(j){for(var K=j.toString(16);K.length<4;)K="0"+K;return K};return A(S[0])+A(S[1])+A(S[2])+A(S[3])+A(S[4])+A(S[5])+A(S[6])+A(S[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(L){var j=16*Math.random()|0;return("x"===L?j:3&j|8).toString(16)})}function w(E){if(!E)return{};var x=E.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);return x?{host:x[4],path:x[5],protocol:x[2],relative:x[5]+(x[6]||"")+(x[8]||"")}:{}}function R(E){if(E.message)return E.message;if(E.exception&&E.exception.values&&E.exception.values[0]){var x=E.exception.values[0];return x.type&&x.value?x.type+": "+x.value:x.type||x.value||E.event_id||""}return E.event_id||""}function C(E){var x=V();if(!("console"in x))return E();var A=x.console,L={};["debug","info","warn","error","log","assert"].forEach(function(K){K in x.console&&A[K].__sentry_original__&&(L[K]=A[K],A[K]=A[K].__sentry_original__)});var j=E();return Object.keys(L).forEach(function(K){A[K]=L[K]}),j}function _(E,x,S){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||x||"",E.exception.values[0].type=E.exception.values[0].type||S||"Error"}function N(E,x){void 0===x&&(x={});try{E.exception.values[0].mechanism=E.exception.values[0].mechanism||{},Object.keys(x).forEach(function(S){E.exception.values[0].mechanism[S]=x[S]})}catch(S){}}function D(){try{return document.location.href}catch(E){return""}}function g(E,x){if(!x)return 6e4;var S=parseInt(""+x,10);if(!isNaN(S))return 1e3*S;var A=Date.parse(""+x);return isNaN(A)?6e4:A-E}},4839:function(le,q,f){"use strict";function U(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function B(Z,w){return Z.require(w)}f.d(q,{KV:function(){return U},l$:function(){return B}}),le=f.hmd(le)},46354:function(le,q,f){"use strict";f.d(q,{yW:function(){return _},ph:function(){return N}});var U=f(82605),B=f(4839);le=f.hmd(le);var V={nowSeconds:function(){return Date.now()/1e3}},R=(0,B.KV)()?function(){try{return(0,B.l$)(le,"perf_hooks").performance}catch(T){return}}():function(){var g=(0,U.Rf)().performance;if(g&&g.now)return{now:function(){return g.now()},timeOrigin:Date.now()-g.now()}}(),C=void 0===R?V:{nowSeconds:function(){return(R.timeOrigin+R.now())/1e3}},_=V.nowSeconds.bind(V),N=C.nowSeconds.bind(C);!function(){var g=(0,U.Rf)().performance;if(g&&g.now){var T=36e5,M=g.now(),E=Date.now(),x=g.timeOrigin?Math.abs(g.timeOrigin+M-E):T,S=x0||navigator.msMaxTouchPoints>0);function K(ct,Xe){var Ht=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,Et=Math.abs(ct-Xe);return Et=Ht.top&&Xe<=Ht.bottom}function ie(ct){var Xe=ct.clientX,Ht=ct.rect;return Xe>=Ht.left&&Xe<=Ht.right}function se(ct){var Xe=ct.clientX,Ht=ct.clientY,vt=ct.allowedEdges,Xt=ct.cursorPrecision,qt=ct.elm.nativeElement.getBoundingClientRect(),Ct={};return vt.left&&K(Xe,qt.left,Xt)&&ae({clientY:Ht,rect:qt})&&(Ct.left=!0),vt.right&&K(Xe,qt.right,Xt)&&ae({clientY:Ht,rect:qt})&&(Ct.right=!0),vt.top&&K(Ht,qt.top,Xt)&&ie({clientX:Xe,rect:qt})&&(Ct.top=!0),vt.bottom&&K(Ht,qt.bottom,Xt)&&ie({clientX:Xe,rect:qt})&&(Ct.bottom=!0),Ct}var ue=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function de(ct,Xe){return ct.left&&ct.top?Xe.topLeft:ct.right&&ct.top?Xe.topRight:ct.left&&ct.bottom?Xe.bottomLeft:ct.right&&ct.bottom?Xe.bottomRight:ct.left||ct.right?Xe.leftOrRight:ct.top||ct.bottom?Xe.topOrBottom:""}function oe(ct){var Ht=ct.initialRectangle,Et=ct.newRectangle,vt={};return Object.keys(ct.edges).forEach(function(Xt){vt[Xt]=(Et[Xt]||0)-(Ht[Xt]||0)}),vt}var $="resize-active",Rt=function(){var ct=function(){function Xe(Ht,Et,vt,Xt){(0,B.Z)(this,Xe),this.platformId=Ht,this.renderer=Et,this.elm=vt,this.zone=Xt,this.resizeEdges={},this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=ue,this.resizeCursorPrecision=3,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new w.vpe,this.resizing=new w.vpe,this.resizeEnd=new w.vpe,this.mouseup=new R.xQ,this.mousedown=new R.xQ,this.mousemove=new R.xQ,this.destroy$=new R.xQ,this.resizeEdges$=new R.xQ,this.pointerEventListeners=Se.getInstance(Et,Xt)}return(0,V.Z)(Xe,[{key:"ngOnInit",value:function(){var Ct,Et=this,vt=(0,C.T)(this.pointerEventListeners.pointerDown,this.mousedown),Xt=(0,C.T)(this.pointerEventListeners.pointerMove,this.mousemove).pipe((0,O.b)(function(Ut){var an=Ut.event;if(Ct)try{an.preventDefault()}catch(An){}}),(0,P.B)()),qt=(0,C.T)(this.pointerEventListeners.pointerUp,this.mouseup),jt=function(){Ct&&Ct.clonedNode&&(Et.elm.nativeElement.parentElement.removeChild(Ct.clonedNode),Et.renderer.setStyle(Et.elm.nativeElement,"visibility","inherit"))},bt=function(){return Object.assign({},ue,Et.resizeCursors)};this.resizeEdges$.pipe((0,y.O)(this.resizeEdges),(0,g.U)(function(){return Et.resizeEdges&&Object.keys(Et.resizeEdges).some(function(Ut){return!!Et.resizeEdges[Ut]})}),(0,T.w)(function(Ut){return Ut?Xt:_.E}),(0,M.e)(this.mouseMoveThrottleMS),(0,E.R)(this.destroy$)).subscribe(function(Ut){var Hn=se({clientX:Ut.clientX,clientY:Ut.clientY,elm:Et.elm,allowedEdges:Et.resizeEdges,cursorPrecision:Et.resizeCursorPrecision}),Zn=bt();if(!Ct){var lr=de(Hn,Zn);Et.renderer.setStyle(Et.elm.nativeElement,"cursor",lr)}Et.setElementClass(Et.elm,"resize-left-hover",!0===Hn.left),Et.setElementClass(Et.elm,"resize-right-hover",!0===Hn.right),Et.setElementClass(Et.elm,"resize-top-hover",!0===Hn.top),Et.setElementClass(Et.elm,"resize-bottom-hover",!0===Hn.bottom)}),vt.pipe((0,x.zg)(function(Ut){function an(Zn){return{clientX:Zn.clientX-Ut.clientX,clientY:Zn.clientY-Ut.clientY}}var An=function(){var lr={x:1,y:1};return Ct&&(Et.resizeSnapGrid.left&&Ct.edges.left?lr.x=+Et.resizeSnapGrid.left:Et.resizeSnapGrid.right&&Ct.edges.right&&(lr.x=+Et.resizeSnapGrid.right),Et.resizeSnapGrid.top&&Ct.edges.top?lr.y=+Et.resizeSnapGrid.top:Et.resizeSnapGrid.bottom&&Ct.edges.bottom&&(lr.y=+Et.resizeSnapGrid.bottom)),lr};function Hn(Zn,lr){return{x:Math.ceil(Zn.clientX/lr.x),y:Math.ceil(Zn.clientY/lr.y)}}return(0,C.T)(Xt.pipe((0,S.q)(1)).pipe((0,g.U)(function(Zn){return[,Zn]})),Xt.pipe((0,A.G)())).pipe((0,g.U)(function(Zn){var lr=(0,U.Z)(Zn,2),Bn=lr[0],En=lr[1];return[Bn&&an(Bn),an(En)]})).pipe((0,L.h)(function(Zn){var lr=(0,U.Z)(Zn,2),Bn=lr[0],En=lr[1];if(!Bn)return!0;var mr=An(),Kt=Hn(Bn,mr),wt=Hn(En,mr);return Kt.x!==wt.x||Kt.y!==wt.y})).pipe((0,g.U)(function(Zn){var Bn=(0,U.Z)(Zn,2)[1],En=An();return{clientX:Math.round(Bn.clientX/En.x)*En.x,clientY:Math.round(Bn.clientY/En.y)*En.y}})).pipe((0,E.R)((0,C.T)(qt,vt)))})).pipe((0,L.h)(function(){return!!Ct})).pipe((0,g.U)(function(Ut){return z(Ct.startingRect,Ct.edges,Ut.clientX,Ut.clientY)})).pipe((0,L.h)(function(Ut){return Et.allowNegativeResizes||!!(Ut.height&&Ut.width&&Ut.height>0&&Ut.width>0)})).pipe((0,L.h)(function(Ut){return!Et.validateResize||Et.validateResize({rectangle:Ut,edges:oe({edges:Ct.edges,initialRectangle:Ct.startingRect,newRectangle:Ut})})}),(0,E.R)(this.destroy$)).subscribe(function(Ut){Ct&&Ct.clonedNode&&(Et.renderer.setStyle(Ct.clonedNode,"height","".concat(Ut.height,"px")),Et.renderer.setStyle(Ct.clonedNode,"width","".concat(Ut.width,"px")),Et.renderer.setStyle(Ct.clonedNode,"top","".concat(Ut.top,"px")),Et.renderer.setStyle(Ct.clonedNode,"left","".concat(Ut.left,"px"))),Et.resizing.observers.length>0&&Et.zone.run(function(){Et.resizing.emit({edges:oe({edges:Ct.edges,initialRectangle:Ct.startingRect,newRectangle:Ut}),rectangle:Ut})}),Ct.currentRect=Ut}),vt.pipe((0,g.U)(function(Ut){return Ut.edges||se({clientX:Ut.clientX,clientY:Ut.clientY,elm:Et.elm,allowedEdges:Et.resizeEdges,cursorPrecision:Et.resizeCursorPrecision})})).pipe((0,L.h)(function(Ut){return Object.keys(Ut).length>0}),(0,E.R)(this.destroy$)).subscribe(function(Ut){Ct&&jt();var an=function(ct,Xe){var Ht=0,Et=0,vt=ct.nativeElement.style,qt=["transform","-ms-transform","-moz-transform","-o-transform"].map(function(jt){return vt[jt]}).find(function(jt){return!!jt});if(qt&&qt.includes("translate")&&(Ht=qt.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),Et=qt.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===Xe)return{height:ct.nativeElement.offsetHeight,width:ct.nativeElement.offsetWidth,top:ct.nativeElement.offsetTop-Et,bottom:ct.nativeElement.offsetHeight+ct.nativeElement.offsetTop-Et,left:ct.nativeElement.offsetLeft-Ht,right:ct.nativeElement.offsetWidth+ct.nativeElement.offsetLeft-Ht};var Ct=ct.nativeElement.getBoundingClientRect();return{height:Ct.height,width:Ct.width,top:Ct.top-Et,bottom:Ct.bottom-Et,left:Ct.left-Ht,right:Ct.right-Ht,scrollTop:ct.nativeElement.scrollTop,scrollLeft:ct.nativeElement.scrollLeft}}(Et.elm,Et.ghostElementPositioning);Ct={edges:Ut,startingRect:an,currentRect:an};var An=bt(),Hn=de(Ct.edges,An);Et.renderer.setStyle(document.body,"cursor",Hn),Et.setElementClass(Et.elm,$,!0),Et.enableGhostResize&&(Ct.clonedNode=Et.elm.nativeElement.cloneNode(!0),Et.elm.nativeElement.parentElement.appendChild(Ct.clonedNode),Et.renderer.setStyle(Et.elm.nativeElement,"visibility","hidden"),Et.renderer.setStyle(Ct.clonedNode,"position",Et.ghostElementPositioning),Et.renderer.setStyle(Ct.clonedNode,"left","".concat(Ct.startingRect.left,"px")),Et.renderer.setStyle(Ct.clonedNode,"top","".concat(Ct.startingRect.top,"px")),Et.renderer.setStyle(Ct.clonedNode,"height","".concat(Ct.startingRect.height,"px")),Et.renderer.setStyle(Ct.clonedNode,"width","".concat(Ct.startingRect.width,"px")),Et.renderer.setStyle(Ct.clonedNode,"cursor",de(Ct.edges,An)),Et.renderer.addClass(Ct.clonedNode,"resize-ghost-element"),Ct.clonedNode.scrollTop=Ct.startingRect.scrollTop,Ct.clonedNode.scrollLeft=Ct.startingRect.scrollLeft),Et.resizeStart.observers.length>0&&Et.zone.run(function(){Et.resizeStart.emit({edges:oe({edges:Ut,initialRectangle:an,newRectangle:an}),rectangle:z(an,{},0,0)})})}),qt.pipe((0,E.R)(this.destroy$)).subscribe(function(){Ct&&(Et.renderer.removeClass(Et.elm.nativeElement,$),Et.renderer.setStyle(document.body,"cursor",""),Et.renderer.setStyle(Et.elm.nativeElement,"cursor",""),Et.resizeEnd.observers.length>0&&Et.zone.run(function(){Et.resizeEnd.emit({edges:oe({edges:Ct.edges,initialRectangle:Ct.startingRect,newRectangle:Ct.currentRect}),rectangle:Ct.currentRect})}),jt(),Ct=null)})}},{key:"ngOnChanges",value:function(Et){Et.resizeEdges&&this.resizeEdges$.next(this.resizeEdges)}},{key:"ngOnDestroy",value:function(){(0,Z.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(Et,vt,Xt){Xt?this.renderer.addClass(Et.nativeElement,vt):this.renderer.removeClass(Et.nativeElement,vt)}}]),Xe}();return ct.\u0275fac=function(Ht){return new(Ht||ct)(w.Y36(w.Lbi),w.Y36(w.Qsj),w.Y36(w.SBq),w.Y36(w.R0b))},ct.\u0275dir=w.lG2({type:ct,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"},exportAs:["mwlResizable"],features:[w.TTD]}),ct}(),Se=function(){function ct(Xe,Ht){(0,B.Z)(this,ct),this.pointerDown=new N.y(function(Et){var vt,Xt;return Ht.runOutsideAngular(function(){vt=Xe.listen("document","mousedown",function(qt){Et.next({clientX:qt.clientX,clientY:qt.clientY,event:qt})}),j&&(Xt=Xe.listen("document","touchstart",function(qt){Et.next({clientX:qt.touches[0].clientX,clientY:qt.touches[0].clientY,event:qt})}))}),function(){vt(),j&&Xt()}}).pipe((0,P.B)()),this.pointerMove=new N.y(function(Et){var vt,Xt;return Ht.runOutsideAngular(function(){vt=Xe.listen("document","mousemove",function(qt){Et.next({clientX:qt.clientX,clientY:qt.clientY,event:qt})}),j&&(Xt=Xe.listen("document","touchmove",function(qt){Et.next({clientX:qt.targetTouches[0].clientX,clientY:qt.targetTouches[0].clientY,event:qt})}))}),function(){vt(),j&&Xt()}}).pipe((0,P.B)()),this.pointerUp=new N.y(function(Et){var vt,Xt,qt;return Ht.runOutsideAngular(function(){vt=Xe.listen("document","mouseup",function(Ct){Et.next({clientX:Ct.clientX,clientY:Ct.clientY,event:Ct})}),j&&(Xt=Xe.listen("document","touchend",function(Ct){Et.next({clientX:Ct.changedTouches[0].clientX,clientY:Ct.changedTouches[0].clientY,event:Ct})}),qt=Xe.listen("document","touchcancel",function(Ct){Et.next({clientX:Ct.changedTouches[0].clientX,clientY:Ct.changedTouches[0].clientY,event:Ct})}))}),function(){vt(),j&&(Xt(),qt())}}).pipe((0,P.B)())}return(0,V.Z)(ct,null,[{key:"getInstance",value:function(Ht,Et){return ct.instance||(ct.instance=new ct(Ht,Et)),ct.instance}}]),ct}(),je=function(){var ct=function Xe(){(0,B.Z)(this,Xe)};return ct.\u0275fac=function(Ht){return new(Ht||ct)},ct.\u0275mod=w.oAB({type:ct}),ct.\u0275inj=w.cJS({}),ct}()},57695:function(le,q,f){var U=f(94518),B=f(23050),V=f(99262),Z=f(44900),w=/^\s*\|\s*/;function C(D,O){var P={};for(var y in D)P[y]=D[y].syntax||D[y];for(var g in O)g in D?O[g].syntax?P[g]=w.test(O[g].syntax)?P[g]+" "+O[g].syntax.trim():O[g].syntax:delete P[g]:O[g].syntax&&(P[g]=O[g].syntax.replace(w,""));return P}function _(D){var O={};for(var P in D)O[P]=D[P].syntax;return O}le.exports={types:C(V,Z.syntaxes),atrules:function(D,O){var P={};for(var y in D){var g=O[y]&&O[y].descriptors||null;P[y]={prelude:y in O&&"prelude"in O[y]?O[y].prelude:D[y].prelude||null,descriptors:D[y].descriptors?C(D[y].descriptors,g||{}):g&&_(g)}}for(var T in O)hasOwnProperty.call(D,T)||(P[T]={prelude:O[T].prelude||null,descriptors:O[T].descriptors&&_(O[T].descriptors)});return P}(function(D){var O=Object.create(null);for(var P in D){var y=D[P],g=null;if(y.descriptors)for(var T in g=Object.create(null),y.descriptors)g[T]=y.descriptors[T].syntax;O[P.substr(1)]={prelude:y.syntax.trim().match(/^@\S+\s+([^;\{]*)/)[1].trim()||null,descriptors:g}}return O}(U),Z.atrules),properties:C(B,Z.properties)}},63335:function(le){function q(Z){return{prev:null,next:null,data:Z}}function f(Z,w,R){var C;return null!==B?(C=B,B=B.cursor,C.prev=w,C.next=R,C.cursor=Z.cursor):C={prev:w,next:R,cursor:Z.cursor},Z.cursor=C,C}function U(Z){var w=Z.cursor;Z.cursor=w.cursor,w.prev=null,w.next=null,w.cursor=B,B=w}var B=null,V=function(){this.cursor=null,this.head=null,this.tail=null};V.createItem=q,V.prototype.createItem=q,V.prototype.updateCursors=function(Z,w,R,C){for(var _=this.cursor;null!==_;)_.prev===Z&&(_.prev=w),_.next===R&&(_.next=C),_=_.cursor},V.prototype.getSize=function(){for(var Z=0,w=this.head;w;)Z++,w=w.next;return Z},V.prototype.fromArray=function(Z){var w=null;this.head=null;for(var R=0;R0?B(N.charCodeAt(0)):0;M100&&(M=P-60+3,P=58);for(var E=y;E<=g;E++)E>=0&&E0&&D[E].length>M?"\u2026":"")+D[E].substr(M,98)+(D[E].length>M+100-1?"\u2026":""));return[N(y,O),new Array(P+T+2).join("-")+"^",N(O,g)].filter(Boolean).join("\n")}le.exports=function(_,N,D,O,P){var y=U("SyntaxError",_);return y.source=N,y.offset=D,y.line=O,y.column=P,y.sourceFragment=function(g){return w(y,isNaN(g)?0:g)},Object.defineProperty(y,"formattedMessage",{get:function(){return"Parse error: "+y.message+"\n"+w(y,2)}}),y.parseError={offset:D,line:O,column:P},y}},13146:function(le,q,f){var U=f(97077),B=U.TYPE,V=U.NAME,w=f(74586).cmpStr,R=B.EOF,C=B.WhiteSpace,_=B.Comment,N=16777215,D=24,O=function(){this.offsetAndType=null,this.balance=null,this.reset()};O.prototype={reset:function(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset},lookupType:function(y){return(y+=this.tokenIndex)>D:R},lookupOffset:function(y){return(y+=this.tokenIndex)0?y>D,this.source,E)){case 1:break e;case 2:T++;break e;default:this.balance[M]===T&&(T=M),E=this.offsetAndType[T]&N}return T-this.tokenIndex},isBalanceEdge:function(y){return this.balance[this.tokenIndex]>D===C;y++,g++);g>0&&this.skip(g)},skipSC:function(){for(;this.tokenType===C||this.tokenType===_;)this.next()},skip:function(y){var g=this.tokenIndex+y;g>D,this.tokenEnd=g&N):(this.tokenIndex=this.tokenCount,this.next())},next:function(){var y=this.tokenIndex+1;y>D,this.tokenEnd=y&N):(this.tokenIndex=this.tokenCount,this.eof=!0,this.tokenType=R,this.tokenStart=this.tokenEnd=this.source.length)},forEachToken:function(y){for(var g=0,T=this.firstCharOffset;g>D,M,x,g)}},dump:function(){var y=this,g=new Array(this.tokenCount);return this.forEachToken(function(T,M,E,x){g[x]={idx:x,type:V[T],chunk:y.source.substring(M,E),balance:y.balance[x]}}),g}},le.exports=O},62146:function(le){var f="undefined"!=typeof Uint32Array?Uint32Array:Array;le.exports=function(B,V){return null===B||B.length";break;case"Property":_="<'"+Z.name+"'>";break;case"Keyword":_=Z.name;break;case"AtKeyword":_="@"+Z.name;break;case"Function":_=Z.name+"(";break;case"String":case"Token":_=Z.value;break;case"Comma":_=",";break;default:throw new Error("Unknown node type `"+Z.type+"`")}return w(_,Z)}le.exports=function(Z,w){var R=q,C=!1,_=!1;return"function"==typeof w?R=w:w&&(C=Boolean(w.forceBraces),_=Boolean(w.compact),"function"==typeof w.decorate&&(R=w.decorate)),V(Z,R,C,_)}},37149:function(le,q,f){le.exports={SyntaxError:f(6063),parse:f(11261),generate:f(58298),walk:f(37363)}},11261:function(le,q,f){var U=f(57674),K=123,ie=function(vt){for(var Xt="function"==typeof Uint32Array?new Uint32Array(128):new Array(128),qt=0;qt<128;qt++)Xt[qt]=vt(String.fromCharCode(qt))?1:0;return Xt}(function(vt){return/[a-zA-Z0-9\-]/.test(vt)}),se={" ":1,"&&":2,"||":3,"|":4};function de(vt){return vt.substringToPos(vt.findWsEnd(vt.pos))}function oe(vt){for(var Xt=vt.pos;Xt=128||0===ie[qt])break}return vt.pos===Xt&&vt.error("Expect a keyword"),vt.substringToPos(Xt)}function $(vt){for(var Xt=vt.pos;Xt57)break}return vt.pos===Xt&&vt.error("Expect a number"),vt.substringToPos(Xt)}function ye(vt){var Xt=vt.str.indexOf("'",vt.pos+1);return-1===Xt&&(vt.pos=vt.str.length,vt.error("Expect an apostrophe")),vt.substringToPos(Xt+1)}function ve(vt){var Xt,qt=null;return vt.eat(K),Xt=$(vt),44===vt.charCode()?(vt.pos++,125!==vt.charCode()&&(qt=$(vt))):qt=Xt,vt.eat(125),{min:Number(Xt),max:qt?Number(qt):0}}function Ne(vt,Xt){var qt=function(vt){var Xt=null,qt=!1;switch(vt.charCode()){case 42:vt.pos++,Xt={min:0,max:0};break;case 43:vt.pos++,Xt={min:1,max:0};break;case 63:vt.pos++,Xt={min:0,max:1};break;case 35:vt.pos++,qt=!0,Xt=vt.charCode()===K?ve(vt):{min:1,max:0};break;case K:Xt=ve(vt);break;default:return null}return{type:"Multiplier",comma:qt,min:Xt.min,max:Xt.max,term:null}}(vt);return null!==qt?(qt.term=Xt,qt):Xt}function gt(vt){var Xt=vt.peek();return""===Xt?null:{type:"Token",value:Xt}}function je(vt,Xt){function qt(Ut,an){return{type:"Group",terms:Ut,combinator:an,disallowEmpty:!1,explicit:!1}}for(Xt=Object.keys(Xt).sort(function(Ut,an){return se[Ut]-se[an]});Xt.length>0;){for(var Ct=Xt.shift(),jt=0,bt=0;jt1&&(vt.splice(bt,jt-bt,qt(vt.slice(bt,jt),Ct)),jt=bt+1),bt=-1))}-1!==bt&&Xt.length&&vt.splice(bt,jt-bt,qt(vt.slice(bt,jt),Ct))}return Ct}function ct(vt){for(var Ct,Xt=[],qt={},jt=null,bt=vt.pos;Ct=Ht(vt);)"Spaces"!==Ct.type&&("Combinator"===Ct.type?((null===jt||"Combinator"===jt.type)&&(vt.pos=bt,vt.error("Unexpected combinator")),qt[Ct.value]=!0):null!==jt&&"Combinator"!==jt.type&&(qt[" "]=!0,Xt.push({type:"Combinator",value:" "})),Xt.push(Ct),jt=Ct,bt=vt.pos);return null!==jt&&"Combinator"===jt.type&&(vt.pos-=bt,vt.error("Unexpected combinator")),{type:"Group",terms:Xt,combinator:je(Xt,qt)||" ",disallowEmpty:!1,explicit:!1}}function Ht(vt){var Xt=vt.charCode();if(Xt<128&&1===ie[Xt])return function(vt){var Xt;return Xt=oe(vt),40===vt.charCode()?(vt.pos++,{type:"Function",name:Xt}):Ne(vt,{type:"Keyword",name:Xt})}(vt);switch(Xt){case 93:break;case 91:return Ne(vt,function(vt){var Xt;return vt.eat(91),Xt=ct(vt),vt.eat(93),Xt.explicit=!0,33===vt.charCode()&&(vt.pos++,Xt.disallowEmpty=!0),Xt}(vt));case 60:return 39===vt.nextCharCode()?function(vt){var Xt;return vt.eat(60),vt.eat(39),Xt=oe(vt),vt.eat(39),vt.eat(62),Ne(vt,{type:"Property",name:Xt})}(vt):function(vt){var Xt,qt=null;return vt.eat(60),Xt=oe(vt),40===vt.charCode()&&41===vt.nextCharCode()&&(vt.pos+=2,Xt+="()"),91===vt.charCodeAt(vt.findWsEnd(vt.pos))&&(de(vt),qt=function(vt){var Xt=null,qt=null,Ct=1;return vt.eat(91),45===vt.charCode()&&(vt.peek(),Ct=-1),-1==Ct&&8734===vt.charCode()?vt.peek():Xt=Ct*Number($(vt)),de(vt),vt.eat(44),de(vt),8734===vt.charCode()?vt.peek():(Ct=1,45===vt.charCode()&&(vt.peek(),Ct=-1),qt=Ct*Number($(vt))),vt.eat(93),null===Xt&&null===qt?null:{type:"Range",min:Xt,max:qt}}(vt)),vt.eat(62),Ne(vt,{type:"Type",name:Xt,opts:qt})}(vt);case 124:return{type:"Combinator",value:vt.substringToPos(124===vt.nextCharCode()?vt.pos+2:vt.pos+1)};case 38:return vt.pos++,vt.eat(38),{type:"Combinator",value:"&&"};case 44:return vt.pos++,{type:"Comma"};case 39:return Ne(vt,{type:"String",value:ye(vt)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:de(vt)};case 64:return(Xt=vt.nextCharCode())<128&&1===ie[Xt]?(vt.pos++,{type:"AtKeyword",name:oe(vt)}):gt(vt);case 42:case 43:case 63:case 35:case 33:break;case K:if((Xt=vt.nextCharCode())<48||Xt>57)return gt(vt);break;default:return gt(vt)}}function Et(vt){var Xt=new U(vt),qt=ct(Xt);return Xt.pos!==vt.length&&Xt.error("Unexpected input"),1===qt.terms.length&&"Group"===qt.terms[0].type&&(qt=qt.terms[0]),qt}Et("[a&&#|<'c'>*||e() f{2} /,(% g#{1,2} h{2,})]!"),le.exports=Et},57674:function(le,q,f){var U=f(6063),C=function(N){this.str=N,this.pos=0};C.prototype={charCodeAt:function(N){return N");function E(K,z,Q){var ae={};for(var ie in K)K[ie].syntax&&(ae[ie]=Q?K[ie].syntax:C(K[ie].syntax,{compact:z}));return ae}function x(K,z,Q){for(var ae={},ie=0,se=Object.entries(K);ie3&&void 0!==arguments[3]?arguments[3]:null,se={type:Q,name:ae},ue={type:Q,name:ae,parent:ie,syntax:null,match:null};return"function"==typeof z?ue.match=D(z,se):("string"==typeof z?Object.defineProperty(ue,"syntax",{get:function(){return Object.defineProperty(ue,"syntax",{value:R(z)}),ue.syntax}}):ue.syntax=z,Object.defineProperty(ue,"match",{get:function(){return Object.defineProperty(ue,"match",{value:D(ue.syntax,se)}),ue.match}})),ue},addAtrule_:function(z,Q){var ae=this;!Q||(this.atrules[z]={type:"Atrule",name:z,prelude:Q.prelude?this.createDescriptor(Q.prelude,"AtrulePrelude",z):null,descriptors:Q.descriptors?Object.keys(Q.descriptors).reduce(function(ie,se){return ie[se]=ae.createDescriptor(Q.descriptors[se],"AtruleDescriptor",se,z),ie},{}):null})},addProperty_:function(z,Q){!Q||(this.properties[z]=this.createDescriptor(Q,"Property",z))},addType_:function(z,Q){!Q||(this.types[z]=this.createDescriptor(Q,"Type",z),Q===w["-ms-legacy-expression"]&&(this.valueCommonSyntax=M))},checkAtruleName:function(z){if(!this.getAtrule(z))return new B("Unknown at-rule","@"+z)},checkAtrulePrelude:function(z,Q){var ae=this.checkAtruleName(z);if(ae)return ae;var ie=this.getAtrule(z);return!ie.prelude&&Q?new SyntaxError("At-rule `@"+z+"` should not contain a prelude"):ie.prelude&&!Q?new SyntaxError("At-rule `@"+z+"` should contain a prelude"):void 0},checkAtruleDescriptorName:function(z,Q){var ae=this.checkAtruleName(z);if(ae)return ae;var ie=this.getAtrule(z),se=Z.keyword(Q);return ie.descriptors?ie.descriptors[se.name]||ie.descriptors[se.basename]?void 0:new B("Unknown at-rule descriptor",Q):new SyntaxError("At-rule `@"+z+"` has no known descriptors")},checkPropertyName:function(z){return Z.property(z).custom?new Error("Lexer matching doesn't applicable for custom properties"):this.getProperty(z)?void 0:new B("Unknown property",z)},matchAtrulePrelude:function(z,Q){var ae=this.checkAtrulePrelude(z,Q);return ae?A(null,ae):Q?L(this,this.getAtrule(z).prelude,Q,!1):A(null,null)},matchAtruleDescriptor:function(z,Q,ae){var ie=this.checkAtruleDescriptorName(z,Q);if(ie)return A(null,ie);var se=this.getAtrule(z),ue=Z.keyword(Q);return L(this,se.descriptors[ue.name]||se.descriptors[ue.basename],ae,!1)},matchDeclaration:function(z){return"Declaration"!==z.type?A(null,new Error("Not a Declaration node")):this.matchProperty(z.property,z.value)},matchProperty:function(z,Q){var ae=this.checkPropertyName(z);return ae?A(null,ae):L(this,this.getProperty(z),Q,!0)},matchType:function(z,Q){var ae=this.getType(z);return ae?L(this,ae,Q,!1):A(null,new B("Unknown type",z))},match:function(z,Q){return"string"==typeof z||z&&z.type?(("string"==typeof z||!z.match)&&(z=this.createDescriptor(z,"Type","anonymous")),L(this,z,Q,!1)):A(null,new B("Bad syntax"))},findValueFragments:function(z,Q,ae,ie){return y.matchFragments(this,Q,this.matchProperty(z,Q),ae,ie)},findDeclarationValueFragments:function(z,Q,ae){return y.matchFragments(this,z.value,this.matchDeclaration(z),Q,ae)},findAllFragments:function(z,Q,ae){var ie=[];return this.syntax.walk(z,{visit:"Declaration",enter:function(se){ie.push.apply(ie,this.findDeclarationValueFragments(se,Q,ae))}.bind(this)}),ie},getAtrule:function(z){var Q=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ae=Z.keyword(z),ie=ae.vendor&&Q?this.atrules[ae.name]||this.atrules[ae.basename]:this.atrules[ae.name];return ie||null},getAtrulePrelude:function(z){var Q=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ae=this.getAtrule(z,Q);return ae&&ae.prelude||null},getAtruleDescriptor:function(z,Q){return this.atrules.hasOwnProperty(z)&&this.atrules.declarators&&this.atrules[z].declarators[Q]||null},getProperty:function(z){var Q=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ae=Z.property(z),ie=ae.vendor&&Q?this.properties[ae.name]||this.properties[ae.basename]:this.properties[ae.name];return ie||null},getType:function(z){return this.types.hasOwnProperty(z)?this.types[z]:null},validate:function(){function z(se,ue,de,oe){if(de.hasOwnProperty(ue))return de[ue];de[ue]=!1,null!==oe.syntax&&_(oe.syntax,function($){if("Type"===$.type||"Property"===$.type){var ye="Type"===$.type?se.types:se.properties,ve="Type"===$.type?Q:ae;(!ye.hasOwnProperty($.name)||z(se,$.name,ve,ye[$.name]))&&(de[ue]=!0)}},this)}var Q={},ae={};for(var ie in this.types)z(this,ie,Q,this.types[ie]);for(var ie in this.properties)z(this,ie,ae,this.properties[ie]);return Q=Object.keys(Q).filter(function(se){return Q[se]}),ae=Object.keys(ae).filter(function(se){return ae[se]}),Q.length||ae.length?{types:Q,properties:ae}:null},dump:function(z,Q){return{generic:this.generic,types:E(this.types,!Q,z),properties:E(this.properties,!Q,z),atrules:x(this.atrules,!Q,z)}},toString:function(){return JSON.stringify(this.dump())}},le.exports=j},40533:function(le,q,f){var U=f(92455),B=f(58298),V={offset:0,line:1,column:1};function w(N,D){var O=N&&N.loc&&N.loc[D];return O?"line"in O?R(O):O:null}function R(N,D){var g={offset:N.offset,line:N.line,column:N.column};if(D){var T=D.split(/\n|\r\n?|\f/);g.offset+=D.length,g.line+=T.length-1,g.column=1===T.length?g.column+D.length:T.pop().length+1}return g}le.exports={SyntaxReferenceError:function(D,O){var P=U("SyntaxReferenceError",D+(O?" `"+O+"`":""));return P.reference=O,P},SyntaxMatchError:function(D,O,P,y){var g=U("SyntaxMatchError",D),T=function(N,D){for(var S,A,O=N.tokens,P=N.longestMatch,y=P1?(S=w(g||D,"end")||R(V,x),A=R(S)):(S=w(g,"start")||R(w(D,"start")||V,x.slice(0,T)),A=w(g,"end")||R(S,x.substr(T,M))),{css:x,mismatchOffset:T,mismatchLength:M,start:S,end:A}}(y,P),M=T.css,E=T.mismatchOffset,x=T.mismatchLength,S=T.start,A=T.end;return g.rawMessage=D,g.syntax=O?B(O):"",g.css=M,g.mismatchOffset=E,g.mismatchLength=x,g.message=D+"\n syntax: "+g.syntax+"\n value: "+(M||"")+"\n --------"+new Array(g.mismatchOffset+1).join("-")+"^",Object.assign(g,S),g.loc={source:P&&P.loc&&P.loc.source||"",start:S,end:A},g}}},25533:function(le,q,f){var U=f(97555).isDigit,B=f(97555).cmpChar,V=f(97555).TYPE,Z=V.Delim,w=V.WhiteSpace,R=V.Comment,C=V.Ident,_=V.Number,N=V.Dimension,O=45,y=!0;function T(S,A){return null!==S&&S.type===Z&&S.value.charCodeAt(0)===A}function M(S,A,L){for(;null!==S&&(S.type===w||S.type===R);)S=L(++A);return A}function E(S,A,L,j){if(!S)return 0;var K=S.value.charCodeAt(A);if(43===K||K===O){if(L)return 0;A++}for(;A0?6:0;if(!U(L)||++A>6)return 0}return A}function T(M,E,x){if(!M)return 0;for(;P(x(E),63);){if(++M>6)return 0;E++}return E}le.exports=function(E,x){var S=0;if(null===E||E.type!==Z||!B(E.value,0,117)||null===(E=x(++S)))return 0;if(P(E,43))return null===(E=x(++S))?0:E.type===Z?T(g(E,0,!0),++S,x):P(E,63)?T(1,++S,x):0;if(E.type===R){if(!y(E,43))return 0;var A=g(E,1,!0);return 0===A?0:null===(E=x(++S))?S:E.type===C||E.type===R?y(E,45)&&g(E,1,!1)?S+1:0:T(A,S,x)}return E.type===C&&y(E,43)?T(g(E,1,!0),++S,x):0}},71473:function(le,q,f){var U=f(97555),B=U.isIdentifierStart,V=U.isHexDigit,Z=U.isDigit,w=U.cmpStr,R=U.consumeNumber,C=U.TYPE,_=f(25533),N=f(70156),D=["unset","initial","inherit"],O=["calc(","-moz-calc(","-webkit-calc("];function A(Se,Oe){return OeSe.max)return!0}return!1}function Q(Se,Oe){var je=Se.index,ct=0;do{if(ct++,Se.balance<=je)break}while(Se=Oe(ct));return ct}function ae(Se){return function(Oe,je,ct){return null===Oe?0:Oe.type===C.Function&&j(Oe.value,O)?Q(Oe,je):Se(Oe,je,ct)}}function ie(Se){return function(Oe){return null===Oe||Oe.type!==Se?0:1}}function et(Se){return function(Oe,je,ct){if(null===Oe||Oe.type!==C.Dimension)return 0;var Xe=R(Oe.value,0);if(null!==Se){var Ht=Oe.value.indexOf("\\",Xe),Et=-1!==Ht&&K(Oe.value,Ht)?Oe.value.substring(Xe,Ht):Oe.value.substr(Xe);if(!1===Se.hasOwnProperty(Et.toLowerCase()))return 0}return z(ct,Oe.value,Xe)?0:1}}function gt(Se){return"function"!=typeof Se&&(Se=function(){return 0}),function(Oe,je,ct){return null!==Oe&&Oe.type===C.Number&&0===Number(Oe.value)?1:Se(Oe,je,ct)}}le.exports={"ident-token":ie(C.Ident),"function-token":ie(C.Function),"at-keyword-token":ie(C.AtKeyword),"hash-token":ie(C.Hash),"string-token":ie(C.String),"bad-string-token":ie(C.BadString),"url-token":ie(C.Url),"bad-url-token":ie(C.BadUrl),"delim-token":ie(C.Delim),"number-token":ie(C.Number),"percentage-token":ie(C.Percentage),"dimension-token":ie(C.Dimension),"whitespace-token":ie(C.WhiteSpace),"CDO-token":ie(C.CDO),"CDC-token":ie(C.CDC),"colon-token":ie(C.Colon),"semicolon-token":ie(C.Semicolon),"comma-token":ie(C.Comma),"[-token":ie(C.LeftSquareBracket),"]-token":ie(C.RightSquareBracket),"(-token":ie(C.LeftParenthesis),")-token":ie(C.RightParenthesis),"{-token":ie(C.LeftCurlyBracket),"}-token":ie(C.RightCurlyBracket),string:ie(C.String),ident:ie(C.Ident),"custom-ident":function(Se){if(null===Se||Se.type!==C.Ident)return 0;var Oe=Se.value.toLowerCase();return j(Oe,D)||L(Oe,"default")?0:1},"custom-property-name":function(Se){return null===Se||Se.type!==C.Ident||45!==A(Se.value,0)||45!==A(Se.value,1)?0:1},"hex-color":function(Se){if(null===Se||Se.type!==C.Hash)return 0;var Oe=Se.value.length;if(4!==Oe&&5!==Oe&&7!==Oe&&9!==Oe)return 0;for(var je=1;jeSe.index||Se.balanceSe.index||Se.balance2&&40===y.charCodeAt(y.length-2)&&41===y.charCodeAt(y.length-1)}function N(y){return"Keyword"===y.type||"AtKeyword"===y.type||"Function"===y.type||"Type"===y.type&&_(y.name)}function D(y,g,T){switch(y){case" ":for(var M=B,E=g.length-1;E>=0;E--)M=C(x=g[E],M,V);return M;case"|":M=V;var S=null;for(E=g.length-1;E>=0;E--){if(N(x=g[E])&&(null===S&&E>0&&N(g[E-1])&&(M=C({type:"Enum",map:S=Object.create(null)},B,M)),null!==S)){var A=(_(x.name)?x.name.slice(0,-1):x.name).toLowerCase();if(!(A in S)){S[A]=x;continue}}S=null,M=C(x,B,M)}return M;case"&&":if(g.length>5)return{type:"MatchOnce",terms:g,all:!0};for(M=V,E=g.length-1;E>=0;E--){var x=g[E];L=g.length>1?D(y,g.filter(function(z){return z!==x}),!1):B,M=C(x,L,M)}return M;case"||":if(g.length>5)return{type:"MatchOnce",terms:g,all:!1};for(M=T?B:V,E=g.length-1;E>=0;E--){var L;x=g[E],L=g.length>1?D(y,g.filter(function(Q){return Q!==x}),!0):B,M=C(x,L,M)}return M}}function P(y){if("function"==typeof y)return{type:"Generic",fn:y};switch(y.type){case"Group":var g=D(y.combinator,y.terms.map(P),!1);return y.disallowEmpty&&(g=C(g,Z,V)),g;case"Multiplier":return function(y){var g=B,T=P(y.term);if(0===y.max)T=C(T,Z,V),(g=C(T,null,V)).then=C(B,B,g),y.comma&&(g.then.else=C({type:"Comma",syntax:y},g,V));else for(var M=y.min||1;M<=y.max;M++)y.comma&&g!==B&&(g=C({type:"Comma",syntax:y},g,V)),g=C(T,C(B,B,g),V);if(0===y.min)g=C(B,B,g);else for(M=0;M=65&&ie<=90&&(ie|=32),ie!==Q.charCodeAt(ae))return!1}return!0}function S(z){return null===z||z.type===R.Comma||z.type===R.Function||z.type===R.LeftParenthesis||z.type===R.LeftSquareBracket||z.type===R.LeftCurlyBracket||function(z){return z.type===R.Delim&&"?"!==z.value}(z)}function A(z){return null===z||z.type===R.RightParenthesis||z.type===R.RightSquareBracket||z.type===R.RightCurlyBracket||z.type===R.Delim}function L(z,Q,ae){function ie(){do{je++,Oe=ject&&(ct=je)}function ve(){Xe=2===Xe.type?Xe.prev:{type:3,syntax:et.syntax,token:Xe.token,prev:Xe},et=et.prev}var et=null,Ne=null,gt=null,_t=null,Rt=0,Se=null,Oe=null,je=-1,ct=0,Xe={type:0,syntax:null,token:null,prev:null};for(ie();null===Se&&++Rt<15e3;)switch(Q.type){case"Match":if(null===Ne){if(null!==Oe&&(je!==z.length-1||"\\0"!==Oe.value&&"\\9"!==Oe.value)){Q=Z;break}Se=O;break}if((Q=Ne.nextState)===w){if(Ne.matchStack===Xe){Q=Z;break}Q=V}for(;Ne.syntaxStack!==et;)ve();Ne=Ne.prev;break;case"Mismatch":if(null!==_t&&!1!==_t)(null===gt||je>gt.tokenIndex)&&(gt=_t,_t=!1);else if(null===gt){Se="Mismatch";break}Q=gt.nextState,Ne=gt.thenStack,et=gt.syntaxStack,Xe=gt.matchStack,Oe=(je=gt.tokenIndex)je){for(;je":"<'"+Q.name+"'>"));if(!1!==_t&&null!==Oe&&"Type"===Q.type&&("custom-ident"===Q.name&&Oe.type===R.Ident||"length"===Q.name&&"0"===Oe.value)){null===_t&&(_t=ue(Q,gt)),Q=Z;break}et={syntax:Q.syntax,opts:Q.syntax.opts||null!==et&&et.opts||null,prev:et},Xe={type:2,syntax:Q.syntax,token:Xe.token,prev:Xe},Q=Ct.match;break;case"Keyword":var bt=Q.name;if(null!==Oe){var nn=Oe.value;if(-1!==nn.indexOf("\\")&&(nn=nn.replace(/\\[09].*$/,"")),E(nn,bt)){$(),Q=V;break}}Q=Z;break;case"AtKeyword":case"Function":if(null!==Oe&&E(Oe.value,Q.name)){$(),Q=V;break}Q=Z;break;case"Token":if(null!==Oe&&Oe.value===Q.value){$(),Q=V;break}Q=Z;break;case"Comma":null!==Oe&&Oe.type===R.Comma?S(Xe.token)?Q=Z:($(),Q=A(Oe)?Z:V):Q=S(Xe.token)||A(Oe)?V:Z;break;case"String":var Ut="";for(Xt=je;Xt=0}function Z(C){return Boolean(C)&&V(C.offset)&&V(C.line)&&V(C.column)}function w(C,_){return function(D,O){if(!D||D.constructor!==Object)return O(D,"Type of node should be an Object");for(var P in D){var y=!0;if(!1!==B.call(D,P)){if("type"===P)D.type!==C&&O(D,"Wrong node type `"+D.type+"`, expected `"+C+"`");else if("loc"===P){if(null===D.loc)continue;if(D.loc&&D.loc.constructor===Object)if("string"!=typeof D.loc.source)P+=".source";else if(Z(D.loc.start)){if(Z(D.loc.end))continue;P+=".end"}else P+=".start";y=!1}else if(_.hasOwnProperty(P)){var g=0;for(y=!1;!y&&g<_[P].length;g++){var T=_[P][g];switch(T){case String:y="string"==typeof D[P];break;case Boolean:y="boolean"==typeof D[P];break;case null:y=null===D[P];break;default:"string"==typeof T?y=D[P]&&D[P].type===T:Array.isArray(T)&&(y=D[P]instanceof U)}}}else O(D,"Unknown field `"+P+"` for "+C+" node type");y||O(D,"Bad value for `"+C+"."+P+"`")}}for(var P in _)B.call(_,P)&&!1===B.call(D,P)&&O(D,"Field `"+C+"."+P+"` is missed")}}function R(C,_){var N=_.structure,D={type:String,loc:!0},O={type:'"'+C+'"'};for(var P in N)if(!1!==B.call(N,P)){for(var y=[],g=D[P]=Array.isArray(N[P])?N[P].slice():[N[P]],T=0;T");else{if(!Array.isArray(M))throw new Error("Wrong value `"+M+"` in `"+C+"."+P+"` structure definition");y.push("List")}}O[P]=y.join(" | ")}return{docs:O,check:w(C,D)}}le.exports={getStructureFromConfig:function(_){var N={};if(_.node)for(var D in _.node)if(B.call(_.node,D)){var O=_.node[D];if(!O.structure)throw new Error("Missed `structure` field in `"+D+"` node type definition");N[D]=R(D,O)}return N}}},24988:function(le){function q(Z){function w(_){return null!==_&&("Type"===_.type||"Property"===_.type||"Keyword"===_.type)}var C=null;return null!==this.matched&&function R(_){if(Array.isArray(_.match)){for(var N=0;N<_.match.length;N++)if(R(_.match[N]))return w(_.syntax)&&C.unshift(_.syntax),!0}else if(_.node===Z)return C=w(_.syntax)?[_.syntax]:[],!0;return!1}(this.matched),C}function f(Z,w,R){var C=q.call(Z,w);return null!==C&&C.some(R)}le.exports={getTrace:q,isType:function(Z,w){return f(this,Z,function(R){return"Type"===R.type&&R.name===w})},isProperty:function(Z,w){return f(this,Z,function(R){return"Property"===R.type&&R.name===w})},isKeyword:function(Z){return f(this,Z,function(w){return"Keyword"===w.type})}}},29365:function(le,q,f){var U=f(88373),B=f(52556),V=f(13146),Z=f(63335),w=f(97555),R=f(97077),C=f(74586),_=C.findWhiteSpaceStart,N=C.cmpStr,D=f(15785),O=function(){},P=R.TYPE,y=R.NAME,g=P.WhiteSpace,T=P.Comment,M=P.Ident,E=P.Function,x=P.Url,S=P.Hash,A=P.Percentage,L=P.Number;function z(ae){return function(){return this[ae]()}}le.exports=function(ie){var se={scanner:new V,locationMap:new U,filename:"",needPositions:!1,onParseError:O,onParseErrorThrow:!1,parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:D,createList:function(){return new Z},createSingleNodeList:function(oe){return(new Z).appendData(oe)},getFirstListNode:function(oe){return oe&&oe.first()},getLastListNode:function(oe){return oe.last()},parseWithFallback:function(oe,$){var ye=this.scanner.tokenIndex;try{return oe.call(this)}catch(et){if(this.onParseErrorThrow)throw et;var ve=$.call(this,ye);return this.onParseErrorThrow=!0,this.onParseError(et,ve),this.onParseErrorThrow=!1,ve}},lookupNonWSType:function(oe){do{var $=this.scanner.lookupType(oe++);if($!==g)return $}while(0!==$);return 0},eat:function(oe){if(this.scanner.tokenType!==oe){var $=this.scanner.tokenStart,ye=y[oe]+" is expected";switch(oe){case M:this.scanner.tokenType===E||this.scanner.tokenType===x?($=this.scanner.tokenEnd-1,ye="Identifier is expected but function found"):ye="Identifier is expected";break;case S:this.scanner.isDelim(35)&&(this.scanner.next(),$++,ye="Name is expected");break;case A:this.scanner.tokenType===L&&($=this.scanner.tokenEnd,ye="Percent sign is expected");break;default:this.scanner.source.charCodeAt(this.scanner.tokenStart)===oe&&($+=1)}this.error(ye,$)}this.scanner.next()},consume:function(oe){var $=this.scanner.getTokenValue();return this.eat(oe),$},consumeFunctionName:function(){var oe=this.scanner.source.substring(this.scanner.tokenStart,this.scanner.tokenEnd-1);return this.eat(E),oe},getLocation:function(oe,$){return this.needPositions?this.locationMap.getLocationRange(oe,$,this.filename):null},getLocationFromList:function(oe){if(this.needPositions){var $=this.getFirstListNode(oe),ye=this.getLastListNode(oe);return this.locationMap.getLocationRange(null!==$?$.loc.start.offset-this.locationMap.startOffset:this.scanner.tokenStart,null!==ye?ye.loc.end.offset-this.locationMap.startOffset:this.scanner.tokenStart,this.filename)}return null},error:function(oe,$){var ye=this.locationMap.getLocation(void 0!==$&&$",se.needPositions=Boolean(oe.positions),se.onParseError="function"==typeof oe.onParseError?oe.onParseError:O,se.onParseErrorThrow=!1,se.parseAtrulePrelude=!("parseAtrulePrelude"in oe)||Boolean(oe.parseAtrulePrelude),se.parseRulePrelude=!("parseRulePrelude"in oe)||Boolean(oe.parseRulePrelude),se.parseValue=!("parseValue"in oe)||Boolean(oe.parseValue),se.parseCustomProperty="parseCustomProperty"in oe&&Boolean(oe.parseCustomProperty),!se.context.hasOwnProperty($))throw new Error("Unknown context `"+$+"`");return"function"==typeof ye&&se.scanner.forEachToken(function(et,Ne,gt){if(et===T){var _t=se.getLocation(Ne,gt),Rt=N(de,gt-2,gt,"*/")?de.slice(Ne+2,gt-2):de.slice(Ne+2,gt);ye(Rt,_t)}}),ve=se.context[$].call(se,oe),se.scanner.eof||se.error(),ve}}},15785:function(le,q,f){var U=f(97555).TYPE,B=U.WhiteSpace,V=U.Comment;le.exports=function(w){var R=this.createList(),C=null,_={recognizer:w,space:null,ignoreWS:!1,ignoreWSAfter:!1};for(this.scanner.skipSC();!this.scanner.eof;){switch(this.scanner.tokenType){case V:this.scanner.next();continue;case B:_.ignoreWS?this.scanner.next():_.space=this.WhiteSpace();continue}if(void 0===(C=w.getNode.call(this,_)))break;null!==_.space&&(R.push(_.space),_.space=null),R.push(C),_.ignoreWSAfter?(_.ignoreWSAfter=!1,_.ignoreWS=!0):_.ignoreWS=!1}return R}},71713:function(le){le.exports={parse:{prelude:null,block:function(){return this.Block(!0)}}}},88208:function(le,q,f){var U=f(97555).TYPE,B=U.String,V=U.Ident,Z=U.Url,w=U.Function,R=U.LeftParenthesis;le.exports={parse:{prelude:function(){var _=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case B:_.push(this.String());break;case Z:case w:_.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===V||this.lookupNonWSType(0)===R)&&(_.push(this.WhiteSpace()),_.push(this.MediaQueryList())),_},block:null}}},55682:function(le,q,f){le.exports={"font-face":f(71713),import:f(88208),media:f(81706),page:f(93949),supports:f(46928)}},81706:function(le){le.exports={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}}},93949:function(le){le.exports={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}}},46928:function(le,q,f){var U=f(97555).TYPE,B=U.WhiteSpace,V=U.Comment,Z=U.Ident,w=U.Function,R=U.Colon,C=U.LeftParenthesis;function _(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function N(){return this.scanner.skipSC(),this.scanner.tokenType===Z&&this.lookupNonWSType(1)===R?this.createSingleNodeList(this.Declaration()):D.call(this)}function D(){var y,O=this.createList(),P=null;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case B:P=this.WhiteSpace();continue;case V:this.scanner.next();continue;case w:y=this.Function(_,this.scope.AtrulePrelude);break;case Z:y=this.Identifier();break;case C:y=this.Parentheses(N,this.scope.AtrulePrelude);break;default:break e}null!==P&&(O.push(P),P=null),O.push(y)}return O}le.exports={parse:{prelude:function(){var P=D.call(this);return null===this.getFirstListNode(P)&&this.error("Condition is expected"),P},block:function(){return this.Block(!1)}}}},53901:function(le,q,f){var U=f(57695);le.exports={generic:!0,types:U.types,atrules:U.atrules,properties:U.properties,node:f(5678)}},15249:function(le,q,f){var U=f(6326).default,B=Object.prototype.hasOwnProperty,V={generic:!0,types:N,atrules:{prelude:D,descriptors:D},properties:N,parseContext:function(P,y){return Object.assign(P,y)},scope:function C(P,y){for(var g in y)B.call(y,g)&&(Z(P[g])?C(P[g],w(y[g])):P[g]=w(y[g]));return P},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function Z(P){return P&&P.constructor===Object}function w(P){return Z(P)?Object.assign({},P):P}function _(P,y){return"string"==typeof y&&/^\s*\|/.test(y)?"string"==typeof P?P+y:y.replace(/^\s*\|\s*/,""):y||null}function N(P,y){if("string"==typeof y)return _(P,y);var g=Object.assign({},P);for(var T in y)B.call(y,T)&&(g[T]=_(B.call(P,T)?P[T]:void 0,y[T]));return g}function D(P,y){var g=N(P,y);return!Z(g)||Object.keys(g).length?g:null}function O(P,y,g){for(var T in g)if(!1!==B.call(g,T))if(!0===g[T])T in y&&B.call(y,T)&&(P[T]=w(y[T]));else if(g[T])if("function"==typeof g[T]){var M=g[T];P[T]=M({},P[T]),P[T]=M(P[T]||{},y[T])}else if(Z(g[T])){var E={};for(var x in P[T])E[x]=O({},P[T][x],g[T]);for(var S in y[T])E[S]=O(E[S]||{},y[T][S],g[T]);P[T]=E}else if(Array.isArray(g[T])){for(var A={},L=g[T].reduce(function(se,ue){return se[ue]=!0,se},{}),j=0,K=Object.entries(P[T]||{});j0&&this.scanner.skip(x),0===S&&(A=this.scanner.source.charCodeAt(this.scanner.tokenStart))!==N&&A!==D&&this.error("Number sign is expected"),T.call(this,0!==S),S===D?"-"+this.consume(C):this.consume(C)}le.exports={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var S=this.scanner.tokenStart,A=null,L=null;if(this.scanner.tokenType===C)T.call(this,!1),L=this.consume(C);else if(this.scanner.tokenType===R&&U(this.scanner.source,this.scanner.tokenStart,D))switch(A="-1",M.call(this,1,O),this.scanner.getTokenLength()){case 2:this.scanner.next(),L=E.call(this);break;case 3:M.call(this,2,D),this.scanner.next(),this.scanner.skipSC(),T.call(this,P),L="-"+this.consume(C);break;default:M.call(this,2,D),g.call(this,3,P),this.scanner.next(),L=this.scanner.substrToCursor(S+2)}else if(this.scanner.tokenType===R||this.scanner.isDelim(N)&&this.scanner.lookupType(1)===R){var j=0;switch(A="1",this.scanner.isDelim(N)&&(j=1,this.scanner.next()),M.call(this,0,O),this.scanner.getTokenLength()){case 1:this.scanner.next(),L=E.call(this);break;case 2:M.call(this,1,D),this.scanner.next(),this.scanner.skipSC(),T.call(this,P),L="-"+this.consume(C);break;default:M.call(this,1,D),g.call(this,2,P),this.scanner.next(),L=this.scanner.substrToCursor(S+j+1)}}else if(this.scanner.tokenType===_){for(var K=this.scanner.source.charCodeAt(this.scanner.tokenStart),z=this.scanner.tokenStart+(j=K===N||K===D);z=2&&42===this.scanner.source.charCodeAt(C-2)&&47===this.scanner.source.charCodeAt(C-1)&&(C-=2),{type:"Comment",loc:this.getLocation(R,this.scanner.tokenStart),value:this.scanner.source.substring(R+2,C)}},generate:function(R){this.chunk("/*"),this.chunk(R.value),this.chunk("*/")}}},7217:function(le,q,f){var U=f(50643).isCustomProperty,B=f(97555).TYPE,V=f(89604).mode,Z=B.Ident,w=B.Hash,R=B.Colon,C=B.Semicolon,_=B.Delim,N=B.WhiteSpace;function E(j){return this.Raw(j,V.exclamationMarkOrSemicolon,!0)}function x(j){return this.Raw(j,V.exclamationMarkOrSemicolon,!1)}function S(){var j=this.scanner.tokenIndex,K=this.Value();return"Raw"!==K.type&&!1===this.scanner.eof&&this.scanner.tokenType!==C&&!1===this.scanner.isDelim(33)&&!1===this.scanner.isBalanceEdge(j)&&this.error(),K}function A(){var j=this.scanner.tokenStart;if(this.scanner.tokenType===_)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===w?w:Z),this.scanner.substrToCursor(j)}function L(){this.eat(_),this.scanner.skipSC();var j=this.consume(Z);return"important"===j||j}le.exports={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var de,K=this.scanner.tokenStart,z=this.scanner.tokenIndex,Q=A.call(this),ae=U(Q),ie=ae?this.parseCustomProperty:this.parseValue,se=ae?x:E,ue=!1;this.scanner.skipSC(),this.eat(R);var oe=this.scanner.tokenIndex;if(ae||this.scanner.skipSC(),de=ie?this.parseWithFallback(S,se):se.call(this,this.scanner.tokenIndex),ae&&"Value"===de.type&&de.children.isEmpty())for(var $=oe-this.scanner.tokenIndex;$<=0;$++)if(this.scanner.lookupType($)===N){de.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.scanner.isDelim(33)&&(ue=L.call(this),this.scanner.skipSC()),!1===this.scanner.eof&&this.scanner.tokenType!==C&&!1===this.scanner.isBalanceEdge(z)&&this.error(),{type:"Declaration",loc:this.getLocation(K,this.scanner.tokenStart),important:ue,property:Q,value:de}},generate:function(K){this.chunk(K.property),this.chunk(":"),this.node(K.value),K.important&&this.chunk(!0===K.important?"!important":"!"+K.important)},walkContext:"declaration"}},69013:function(le,q,f){var U=f(97555).TYPE,B=f(89604).mode,V=U.WhiteSpace,Z=U.Comment,w=U.Semicolon;function R(C){return this.Raw(C,B.semicolonIncluded,!0)}le.exports={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var _=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case V:case Z:case w:this.scanner.next();break;default:_.push(this.parseWithFallback(this.Declaration,R))}return{type:"DeclarationList",loc:this.getLocationFromList(_),children:_}},generate:function(_){this.children(_,function(N){"Declaration"===N.type&&this.chunk(";")})}}},68241:function(le,q,f){var U=f(74586).consumeNumber,V=f(97555).TYPE.Dimension;le.exports={name:"Dimension",structure:{value:String,unit:String},parse:function(){var w=this.scanner.tokenStart,R=U(this.scanner.source,w);return this.eat(V),{type:"Dimension",loc:this.getLocation(w,this.scanner.tokenStart),value:this.scanner.source.substring(w,R),unit:this.scanner.source.substring(R,this.scanner.tokenStart)}},generate:function(w){this.chunk(w.value),this.chunk(w.unit)}}},60298:function(le,q,f){var B=f(97555).TYPE.RightParenthesis;le.exports={name:"Function",structure:{name:String,children:[[]]},parse:function(Z,w){var N,R=this.scanner.tokenStart,C=this.consumeFunctionName(),_=C.toLowerCase();return N=w.hasOwnProperty(_)?w[_].call(this,w):Z.call(this,w),this.scanner.eof||this.eat(B),{type:"Function",loc:this.getLocation(R,this.scanner.tokenStart),name:C,children:N}},generate:function(Z){this.chunk(Z.name),this.chunk("("),this.children(Z),this.chunk(")")},walkContext:"function"}},50759:function(le,q,f){var B=f(97555).TYPE.Hash;le.exports={name:"Hash",structure:{value:String},parse:function(){var Z=this.scanner.tokenStart;return this.eat(B),{type:"Hash",loc:this.getLocation(Z,this.scanner.tokenStart),value:this.scanner.substrToCursor(Z+1)}},generate:function(Z){this.chunk("#"),this.chunk(Z.value)}}},37701:function(le,q,f){var B=f(97555).TYPE.Hash;le.exports={name:"IdSelector",structure:{name:String},parse:function(){var Z=this.scanner.tokenStart;return this.eat(B),{type:"IdSelector",loc:this.getLocation(Z,this.scanner.tokenStart),name:this.scanner.substrToCursor(Z+1)}},generate:function(Z){this.chunk("#"),this.chunk(Z.name)}}},71392:function(le,q,f){var B=f(97555).TYPE.Ident;le.exports={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(B)}},generate:function(Z){this.chunk(Z.name)}}},94179:function(le,q,f){var U=f(97555).TYPE,B=U.Ident,V=U.Number,Z=U.Dimension,w=U.LeftParenthesis,R=U.RightParenthesis,C=U.Colon,_=U.Delim;le.exports={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var O,D=this.scanner.tokenStart,P=null;if(this.eat(w),this.scanner.skipSC(),O=this.consume(B),this.scanner.skipSC(),this.scanner.tokenType!==R){switch(this.eat(C),this.scanner.skipSC(),this.scanner.tokenType){case V:P=this.lookupNonWSType(1)===_?this.Ratio():this.Number();break;case Z:P=this.Dimension();break;case B:P=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(R),{type:"MediaFeature",loc:this.getLocation(D,this.scanner.tokenStart),name:O,value:P}},generate:function(D){this.chunk("("),this.chunk(D.name),null!==D.value&&(this.chunk(":"),this.node(D.value)),this.chunk(")")}}},32107:function(le,q,f){var U=f(97555).TYPE,B=U.WhiteSpace,V=U.Comment,Z=U.Ident,w=U.LeftParenthesis;le.exports={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var C=this.createList(),_=null,N=null;e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case V:this.scanner.next();continue;case B:N=this.WhiteSpace();continue;case Z:_=this.Identifier();break;case w:_=this.MediaFeature();break;default:break e}null!==N&&(C.push(N),N=null),C.push(_)}return null===_&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(C),children:C}},generate:function(C){this.children(C)}}},54459:function(le,q,f){var U=f(97555).TYPE.Comma;le.exports={name:"MediaQueryList",structure:{children:[["MediaQuery"]]},parse:function(V){var Z=this.createList();for(this.scanner.skipSC();!this.scanner.eof&&(Z.push(this.MediaQuery(V)),this.scanner.tokenType===U);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(Z),children:Z}},generate:function(V){this.children(V,function(){this.chunk(",")})}}},61123:function(le){le.exports={name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(f){this.scanner.skipSC();var Z,U=this.scanner.tokenStart,B=U,V=null;return Z=this.scanner.lookupValue(0,"odd")||this.scanner.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),this.scanner.skipSC(),f&&this.scanner.lookupValue(0,"of")?(this.scanner.next(),V=this.SelectorList(),this.needPositions&&(B=this.getLastListNode(V.children).loc.end.offset)):this.needPositions&&(B=Z.loc.end.offset),{type:"Nth",loc:this.getLocation(U,B),nth:Z,selector:V}},generate:function(f){this.node(f.nth),null!==f.selector&&(this.chunk(" of "),this.node(f.selector))}}},63902:function(le,q,f){var U=f(97555).TYPE.Number;le.exports={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(U)}},generate:function(V){this.chunk(V.value)}}},7249:function(le){le.exports={name:"Operator",structure:{value:String},parse:function(){var f=this.scanner.tokenStart;return this.scanner.next(),{type:"Operator",loc:this.getLocation(f,this.scanner.tokenStart),value:this.scanner.substrToCursor(f)}},generate:function(f){this.chunk(f.value)}}},34875:function(le,q,f){var U=f(97555).TYPE,B=U.LeftParenthesis,V=U.RightParenthesis;le.exports={name:"Parentheses",structure:{children:[[]]},parse:function(w,R){var _,C=this.scanner.tokenStart;return this.eat(B),_=w.call(this,R),this.scanner.eof||this.eat(V),{type:"Parentheses",loc:this.getLocation(C,this.scanner.tokenStart),children:_}},generate:function(w){this.chunk("("),this.children(w),this.chunk(")")}}},62173:function(le,q,f){var U=f(74586).consumeNumber,V=f(97555).TYPE.Percentage;le.exports={name:"Percentage",structure:{value:String},parse:function(){var w=this.scanner.tokenStart,R=U(this.scanner.source,w);return this.eat(V),{type:"Percentage",loc:this.getLocation(w,this.scanner.tokenStart),value:this.scanner.source.substring(w,R)}},generate:function(w){this.chunk(w.value),this.chunk("%")}}},38887:function(le,q,f){var U=f(97555).TYPE,B=U.Ident,V=U.Function,Z=U.Colon,w=U.RightParenthesis;le.exports={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var N,D,C=this.scanner.tokenStart,_=null;return this.eat(Z),this.scanner.tokenType===V?(D=(N=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(D)?(this.scanner.skipSC(),_=this.pseudo[D].call(this),this.scanner.skipSC()):(_=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(w)):N=this.consume(B),{type:"PseudoClassSelector",loc:this.getLocation(C,this.scanner.tokenStart),name:N,children:_}},generate:function(C){this.chunk(":"),this.chunk(C.name),null!==C.children&&(this.chunk("("),this.children(C),this.chunk(")"))},walkContext:"function"}},78076:function(le,q,f){var U=f(97555).TYPE,B=U.Ident,V=U.Function,Z=U.Colon,w=U.RightParenthesis;le.exports={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var N,D,C=this.scanner.tokenStart,_=null;return this.eat(Z),this.eat(Z),this.scanner.tokenType===V?(D=(N=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(D)?(this.scanner.skipSC(),_=this.pseudo[D].call(this),this.scanner.skipSC()):(_=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(w)):N=this.consume(B),{type:"PseudoElementSelector",loc:this.getLocation(C,this.scanner.tokenStart),name:N,children:_}},generate:function(C){this.chunk("::"),this.chunk(C.name),null!==C.children&&(this.chunk("("),this.children(C),this.chunk(")"))},walkContext:"function"}},15482:function(le,q,f){var U=f(97555).isDigit,B=f(97555).TYPE,V=B.Number,Z=B.Delim;function C(){this.scanner.skipWS();for(var _=this.consume(V),N=0;N<_.length;N++){var D=_.charCodeAt(N);!U(D)&&46!==D&&this.error("Unsigned number is expected",this.scanner.tokenStart-_.length+N)}return 0===Number(_)&&this.error("Zero number is not allowed",this.scanner.tokenStart-_.length),_}le.exports={name:"Ratio",structure:{left:String,right:String},parse:function(){var O,N=this.scanner.tokenStart,D=C.call(this);return this.scanner.skipWS(),this.scanner.isDelim(47)||this.error("Solidus is expected"),this.eat(Z),O=C.call(this),{type:"Ratio",loc:this.getLocation(N,this.scanner.tokenStart),left:D,right:O}},generate:function(N){this.chunk(N.left),this.chunk("/"),this.chunk(N.right)}}},89604:function(le,q,f){var B=f(97555).TYPE,V=B.WhiteSpace,Z=B.Semicolon,w=B.LeftCurlyBracket,R=B.Delim;function _(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===V?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function N(){return 0}le.exports={name:"Raw",structure:{value:String},parse:function(T,M,E){var S,x=this.scanner.getTokenStart(T);return this.scanner.skip(this.scanner.getRawLength(T,M||N)),S=E&&this.scanner.tokenStart>x?_.call(this):this.scanner.tokenStart,{type:"Raw",loc:this.getLocation(x,S),value:this.scanner.source.substring(x,S)}},generate:function(T){this.chunk(T.value)},mode:{default:N,leftCurlyBracket:function(g){return g===w?1:0},leftCurlyBracketOrSemicolon:function(g){return g===w||g===Z?1:0},exclamationMarkOrSemicolon:function(g,T,M){return g===R&&33===T.charCodeAt(M)||g===Z?1:0},semicolonIncluded:function(g){return g===Z?2:0}}}},56064:function(le,q,f){var U=f(97555).TYPE,B=f(89604).mode,V=U.LeftCurlyBracket;function Z(R){return this.Raw(R,B.leftCurlyBracket,!0)}function w(){var R=this.SelectorList();return"Raw"!==R.type&&!1===this.scanner.eof&&this.scanner.tokenType!==V&&this.error(),R}le.exports={name:"Rule",structure:{prelude:["SelectorList","Raw"],block:["Block"]},parse:function(){var N,D,C=this.scanner.tokenIndex,_=this.scanner.tokenStart;return N=this.parseRulePrelude?this.parseWithFallback(w,Z):Z.call(this,C),D=this.Block(!0),{type:"Rule",loc:this.getLocation(_,this.scanner.tokenStart),prelude:N,block:D}},generate:function(C){this.node(C.prelude),this.node(C.block)},walkContext:"rule"}},43042:function(le){le.exports={name:"Selector",structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]},parse:function(){var f=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(f)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(f),children:f}},generate:function(f){this.children(f)}}},38444:function(le,q,f){var B=f(97555).TYPE.Comma;le.exports={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var Z=this.createList();!this.scanner.eof&&(Z.push(this.Selector()),this.scanner.tokenType===B);)this.scanner.next();return{type:"SelectorList",loc:this.getLocationFromList(Z),children:Z}},generate:function(Z){this.children(Z,function(){this.chunk(",")})},walkContext:"selector"}},12565:function(le,q,f){var U=f(97555).TYPE.String;le.exports={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(U)}},generate:function(V){this.chunk(V.value)}}},91348:function(le,q,f){var U=f(97555).TYPE,B=U.WhiteSpace,V=U.Comment,Z=U.AtKeyword,w=U.CDO,R=U.CDC;function _(N){return this.Raw(N,null,!1)}le.exports={name:"StyleSheet",structure:{children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},parse:function(){for(var P,D=this.scanner.tokenStart,O=this.createList();!this.scanner.eof;){switch(this.scanner.tokenType){case B:this.scanner.next();continue;case V:if(33!==this.scanner.source.charCodeAt(this.scanner.tokenStart+2)){this.scanner.next();continue}P=this.Comment();break;case w:P=this.CDO();break;case R:P=this.CDC();break;case Z:P=this.parseWithFallback(this.Atrule,_);break;default:P=this.parseWithFallback(this.Rule,_)}O.push(P)}return{type:"StyleSheet",loc:this.getLocation(D,this.scanner.tokenStart),children:O}},generate:function(D){this.children(D)},walkContext:"stylesheet"}},16983:function(le,q,f){var B=f(97555).TYPE.Ident;function w(){this.scanner.tokenType!==B&&!1===this.scanner.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.scanner.next()}le.exports={name:"TypeSelector",structure:{name:String},parse:function(){var C=this.scanner.tokenStart;return this.scanner.isDelim(124)?(this.scanner.next(),w.call(this)):(w.call(this),this.scanner.isDelim(124)&&(this.scanner.next(),w.call(this))),{type:"TypeSelector",loc:this.getLocation(C,this.scanner.tokenStart),name:this.scanner.substrToCursor(C)}},generate:function(C){this.chunk(C.name)}}},95616:function(le,q,f){var U=f(97555).isHexDigit,B=f(97555).cmpChar,V=f(97555).TYPE,Z=f(97555).NAME,w=V.Ident,R=V.Number,C=V.Dimension;function P(M,E){for(var x=this.scanner.tokenStart+M,S=0;x6&&this.error("Too many hex digits",x)}return this.scanner.next(),S}function y(M){for(var E=0;this.scanner.isDelim(63);)++E>M&&this.error("Too many question marks"),this.scanner.next()}function g(M){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==M&&this.error(Z[M]+" is expected")}function T(){var M=0;return this.scanner.isDelim(43)?(this.scanner.next(),this.scanner.tokenType===w?void((M=P.call(this,0,!0))>0&&y.call(this,6-M)):this.scanner.isDelim(63)?(this.scanner.next(),void y.call(this,5)):void this.error("Hex digit or question mark is expected")):this.scanner.tokenType===R?(g.call(this,43),M=P.call(this,1,!0),this.scanner.isDelim(63)?void y.call(this,6-M):this.scanner.tokenType===C||this.scanner.tokenType===R?(g.call(this,45),void P.call(this,1,!1)):void 0):this.scanner.tokenType===C?(g.call(this,43),void((M=P.call(this,1,!0))>0&&y.call(this,6-M))):void this.error()}le.exports={name:"UnicodeRange",structure:{value:String},parse:function(){var E=this.scanner.tokenStart;return B(this.scanner.source,E,117)||this.error("U is expected"),B(this.scanner.source,E+1,43)||this.error("Plus sign is expected"),this.scanner.next(),T.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(le,q,f){var U=f(97555).isWhiteSpace,B=f(97555).cmpStr,V=f(97555).TYPE,Z=V.Function,w=V.Url,R=V.RightParenthesis;le.exports={name:"Url",structure:{value:["String","Raw"]},parse:function(){var N,_=this.scanner.tokenStart;switch(this.scanner.tokenType){case w:for(var D=_+4,O=this.scanner.tokenEnd-1;D=48&&x<=57}function B(x){return x>=65&&x<=90}function V(x){return x>=97&&x<=122}function Z(x){return B(x)||V(x)}function w(x){return x>=128}function R(x){return Z(x)||w(x)||95===x}function _(x){return x>=0&&x<=8||11===x||x>=14&&x<=31||127===x}function N(x){return 10===x||13===x||12===x}function D(x){return N(x)||32===x||9===x}function O(x,S){return!(92!==x||N(S)||0===S)}var T=new Array(128);E.Eof=128,E.WhiteSpace=130,E.Digit=131,E.NameStart=132,E.NonPrintable=133;for(var M=0;M=65&&x<=70||x>=97&&x<=102},isUppercaseLetter:B,isLowercaseLetter:V,isLetter:Z,isNonAscii:w,isNameStart:R,isName:function(x){return R(x)||f(x)||45===x},isNonPrintable:_,isNewline:N,isWhiteSpace:D,isValidEscape:O,isIdentifierStart:function(x,S,A){return 45===x?R(S)||45===S||O(S,A):!!R(x)||92===x&&O(x,S)},isNumberStart:function(x,S,A){return 43===x||45===x?f(S)?2:46===S&&f(A)?3:0:46===x?f(S)?2:0:f(x)?1:0},isBOM:function(x){return 65279===x||65534===x?1:0},charCodeCategory:E}},97077:function(le){var q={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},f=Object.keys(q).reduce(function(U,B){return U[q[B]]=B,U},{});le.exports={TYPE:q,NAME:f}},97555:function(le,q,f){var U=f(13146),B=f(62146),V=f(97077),Z=V.TYPE,w=f(88312),R=w.isNewline,C=w.isName,_=w.isValidEscape,N=w.isNumberStart,D=w.isIdentifierStart,O=w.charCodeCategory,P=w.isBOM,y=f(74586),g=y.cmpStr,T=y.getNewlineLength,M=y.findWhiteSpaceEnd,E=y.consumeEscaped,x=y.consumeName,S=y.consumeNumber,A=y.consumeBadUrlRemnants,L=16777215,j=24;function K(z,Q){function ae(je){return je=z.length?void(Ne>j,ye[ve]=Rt,ye[Rt++]=ve;RtS.length)return!1;for(var K=A;K=0&&R(S.charCodeAt(A));A--);return A+1},findWhiteSpaceEnd:function(S,A){for(;A=2&&45===C.charCodeAt(_)&&45===C.charCodeAt(_+1)}function Z(C,_){if(C.length-(_=_||0)>=3&&45===C.charCodeAt(_)&&45!==C.charCodeAt(_+1)){var N=C.indexOf("-",_+2);if(-1!==N)return C.substring(_,N+1)}return""}le.exports={keyword:function(C){if(q.call(f,C))return f[C];var _=C.toLowerCase();if(q.call(f,_))return f[C]=f[_];var N=V(_,0),D=N?"":Z(_,0);return f[C]=Object.freeze({basename:_.substr(D.length),name:_,vendor:D,prefix:D,custom:N})},property:function(C){if(q.call(U,C))return U[C];var _=C,N=C[0];"/"===N?N="/"===C[1]?"//":"/":"_"!==N&&"*"!==N&&"$"!==N&&"#"!==N&&"+"!==N&&"&"!==N&&(N="");var D=V(_,N.length);if(!D&&(_=_.toLowerCase(),q.call(U,_)))return U[C]=U[_];var O=D?"":Z(_,N.length),P=_.substr(0,N.length+O.length);return U[C]=Object.freeze({basename:_.substr(P.length),name:_.substr(N.length),hack:N,vendor:O,prefix:P,custom:D})},isCustomProperty:V,vendorPrefix:Z}},24523:function(le){var q=Object.prototype.hasOwnProperty,f=function(){};function U(C){return"function"==typeof C?C:f}function B(C,_){return function(N,D,O){N.type===_&&C.call(this,N,D,O)}}function V(C,_){var N=_.structure,D=[];for(var O in N)if(!1!==q.call(N,O)){var P=N[O],y={name:O,type:!1,nullable:!1};Array.isArray(N[O])||(P=[N[O]]);for(var g=0;g":".","?":"/","|":"\\"},_={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},D=1;D<20;++D)w[111+D]="f"+D;for(D=0;D<=9;++D)w[D+96]=D.toString();K.prototype.bind=function(z,Q,ae){return this._bindMultiple.call(this,z=z instanceof Array?z:[z],Q,ae),this},K.prototype.unbind=function(z,Q){return this.bind.call(this,z,function(){},Q)},K.prototype.trigger=function(z,Q){return this._directMap[z+":"+Q]&&this._directMap[z+":"+Q]({},z),this},K.prototype.reset=function(){var z=this;return z._callbacks={},z._directMap={},z},K.prototype.stopCallback=function(z,Q){if((" "+Q.className+" ").indexOf(" mousetrap ")>-1||j(Q,this.target))return!1;if("composedPath"in z&&"function"==typeof z.composedPath){var ie=z.composedPath()[0];ie!==z.target&&(Q=ie)}return"INPUT"==Q.tagName||"SELECT"==Q.tagName||"TEXTAREA"==Q.tagName||Q.isContentEditable},K.prototype.handleKey=function(){var z=this;return z._handleKey.apply(z,arguments)},K.addKeycodes=function(z){for(var Q in z)z.hasOwnProperty(Q)&&(w[Q]=z[Q]);N=null},K.init=function(){var z=K(V);for(var Q in z)"_"!==Q.charAt(0)&&(K[Q]=function(ae){return function(){return z[ae].apply(z,arguments)}}(Q))},K.init(),B.Mousetrap=K,le.exports&&(le.exports=K),void 0!==(U=function(){return K}.call(q,f,q,le))&&(le.exports=U)}function O(z,Q,ae){z.addEventListener?z.addEventListener(Q,ae,!1):z.attachEvent("on"+Q,ae)}function P(z){if("keypress"==z.type){var Q=String.fromCharCode(z.which);return z.shiftKey||(Q=Q.toLowerCase()),Q}return w[z.which]?w[z.which]:R[z.which]?R[z.which]:String.fromCharCode(z.which).toLowerCase()}function y(z,Q){return z.sort().join(",")===Q.sort().join(",")}function E(z){return"shift"==z||"ctrl"==z||"alt"==z||"meta"==z}function S(z,Q,ae){return ae||(ae=function(){if(!N)for(var z in N={},w)z>95&&z<112||w.hasOwnProperty(z)&&(N[w[z]]=z);return N}()[z]?"keydown":"keypress"),"keypress"==ae&&Q.length&&(ae="keydown"),ae}function L(z,Q){var ae,ie,se,ue=[];for(ae=function(z){return"+"===z?["+"]:(z=z.replace(/\+{2}/g,"+plus")).split("+")}(z),se=0;se1?function(_t,Rt,Se,Oe){function je(vt){return function(){de=vt,++ae[_t],clearTimeout(ie),ie=setTimeout(oe,1e3)}}function ct(vt){ye(Se,vt,_t),"keyup"!==Oe&&(se=P(vt)),setTimeout(oe,10)}ae[_t]=0;for(var Xe=0;Xe=0;--Ne){var gt=this.tryEntries[Ne],_t=gt.completion;if("root"===gt.tryLoc)return et("end");if(gt.tryLoc<=this.prev){var Rt=B.call(gt,"catchLoc"),Se=B.call(gt,"finallyLoc");if(Rt&&Se){if(this.prev=0;--et){var Ne=this.tryEntries[et];if(Ne.tryLoc<=this.prev&&B.call(Ne,"finallyLoc")&&this.prev=0;--ve){var et=this.tryEntries[ve];if(et.finallyLoc===ye)return this.complete(et.completion,et.afterLoc),se(et),T}},catch:function(ye){for(var ve=this.tryEntries.length-1;ve>=0;--ve){var et=this.tryEntries[ve];if(et.tryLoc===ye){var Ne=et.completion;if("throw"===Ne.type){var gt=Ne.arg;se(et)}return gt}}throw new Error("illegal catch attempt")},delegateYield:function(ye,ve,et){return this.delegate={iterator:de(ye),resultName:ve,nextLoc:et},"next"===this.method&&(this.arg=V),T}},f}(le.exports);try{regeneratorRuntime=q}catch(f){Function("r","regeneratorRuntime = r")(q)}},56938:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);q.Observable=U.Observable,q.Subject=U.Subject;var B=f(37294);q.AnonymousSubject=B.AnonymousSubject;var V=f(37294);q.config=V.config,f(26598),f(87663),f(95351),f(66981),f(31881),f(36800),f(52413),f(86376),f(41029),f(30918),f(79817),f(29023),f(48668),f(61975),f(92442),f(42697),f(63990),f(86230),f(61201),f(32171),f(40439),f(69079),f(9222),f(52357),f(36294),f(12782),f(94618),f(93231),f(96547),f(62374),f(35595),f(57540),f(97010),f(56518),f(59982),f(70198),f(3943),f(95297),f(53842),f(46085),f(46753),f(12452),f(51341),f(41575),f(42657),f(17109),f(89716),f(71255),f(75197),f(70992),f(3106),f(54506),f(16161),f(11405),f(37132),f(45396),f(41154),f(96986),f(67259),f(89015),f(57301),f(4993),f(77490),f(4533),f(42215),f(95564),f(61431),f(68663),f(63566),f(62729),f(48483),f(32979),f(78104),f(64259),f(30336),f(46315),f(60771),f(92700),f(43545),f(89242),f(70177),f(43800),f(33434),f(37179),f(97810),f(27430),f(44633),f(37953),f(58435),f(14234),f(98741),f(43263),f(57180),f(87700),f(34860),f(67751),f(63733),f(38596),f(20038),f(58186),f(77538),f(33866),f(1676),f(3018),f(58003),f(77394),f(92947),f(27971),f(33934),f(43126),f(6320),f(96813),f(20425),f(70140),f(32035),f(49421),f(9693),f(87276),f(63934),f(17360),f(37222),f(55214),f(22854),f(65259),f(84715),f(27798),f(98441),f(56238),f(42145);var Z=f(94117);q.Subscription=Z.Subscription,q.ReplaySubject=Z.ReplaySubject,q.BehaviorSubject=Z.BehaviorSubject,q.Notification=Z.Notification,q.EmptyError=Z.EmptyError,q.ArgumentOutOfRangeError=Z.ArgumentOutOfRangeError,q.ObjectUnsubscribedError=Z.ObjectUnsubscribedError,q.UnsubscriptionError=Z.UnsubscriptionError,q.pipe=Z.pipe;var w=f(53520);q.TestScheduler=w.TestScheduler;var R=f(94117);q.Subscriber=R.Subscriber,q.AsyncSubject=R.AsyncSubject,q.ConnectableObservable=R.ConnectableObservable,q.TimeoutError=R.TimeoutError,q.VirtualTimeScheduler=R.VirtualTimeScheduler;var C=f(55905);q.AjaxResponse=C.AjaxResponse,q.AjaxError=C.AjaxError,q.AjaxTimeoutError=C.AjaxTimeoutError;var _=f(94117),N=f(37294),D=f(37294);q.TimeInterval=D.TimeInterval,q.Timestamp=D.Timestamp;var O=f(73033);q.operators=O,q.Scheduler={asap:_.asapScheduler,queue:_.queueScheduler,animationFrame:_.animationFrameScheduler,async:_.asyncScheduler},q.Symbol={rxSubscriber:N.rxSubscriber,observable:N.observable,iterator:N.iterator}},26598:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.bindCallback=U.bindCallback},87663:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.bindNodeCallback=U.bindNodeCallback},95351:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.combineLatest=U.combineLatest},66981:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.concat=U.concat},31881:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.defer=U.defer},12782:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(55905);U.Observable.ajax=B.ajax},94618:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(4194);U.Observable.webSocket=B.webSocket},36800:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.empty=U.empty},52413:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.forkJoin=U.forkJoin},86376:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.from=U.from},41029:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.fromEvent=U.fromEvent},30918:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.fromEventPattern=U.fromEventPattern},79817:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.fromPromise=U.from},29023:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.generate=U.generate},48668:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.if=U.iif},61975:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.interval=U.interval},92442:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.merge=U.merge},63990:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);function B(){return U.NEVER}q.staticNever=B,U.Observable.never=B},86230:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.of=U.of},61201:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.onErrorResumeNext=U.onErrorResumeNext},32171:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.pairs=U.pairs},42697:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.race=U.race},40439:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.range=U.range},9222:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.throw=U.throwError,U.Observable.throwError=U.throwError},52357:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.timer=U.timer},69079:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.using=U.using},36294:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.zip=U.zip},77490:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(20325);U.Observable.prototype.audit=B.audit},4533:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(55702);U.Observable.prototype.auditTime=B.auditTime},93231:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(19931);U.Observable.prototype.buffer=B.buffer},96547:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(38173);U.Observable.prototype.bufferCount=B.bufferCount},62374:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(93690);U.Observable.prototype.bufferTime=B.bufferTime},35595:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(79681);U.Observable.prototype.bufferToggle=B.bufferToggle},57540:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(75311);U.Observable.prototype.bufferWhen=B.bufferWhen},97010:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(26306);U.Observable.prototype.catch=B._catch,U.Observable.prototype._catch=B._catch},56518:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(15869);U.Observable.prototype.combineAll=B.combineAll},59982:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(23265);U.Observable.prototype.combineLatest=B.combineLatest},70198:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(31179);U.Observable.prototype.concat=B.concat},3943:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(16148);U.Observable.prototype.concatAll=B.concatAll},95297:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(28552);U.Observable.prototype.concatMap=B.concatMap},53842:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(91798);U.Observable.prototype.concatMapTo=B.concatMapTo},46085:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(93653);U.Observable.prototype.count=B.count},12452:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(36477);U.Observable.prototype.debounce=B.debounce},51341:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(61529);U.Observable.prototype.debounceTime=B.debounceTime},41575:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(64502);U.Observable.prototype.defaultIfEmpty=B.defaultIfEmpty},42657:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(33674);U.Observable.prototype.delay=B.delay},17109:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(49477);U.Observable.prototype.delayWhen=B.delayWhen},46753:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(21941);U.Observable.prototype.dematerialize=B.dematerialize},89716:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(18053);U.Observable.prototype.distinct=B.distinct},71255:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(13598);U.Observable.prototype.distinctUntilChanged=B.distinctUntilChanged},75197:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(94936);U.Observable.prototype.distinctUntilKeyChanged=B.distinctUntilKeyChanged},70992:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(21790);U.Observable.prototype.do=B._do,U.Observable.prototype._do=B._do},11405:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(2538);U.Observable.prototype.elementAt=B.elementAt},61431:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(58136);U.Observable.prototype.every=B.every},3106:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(26734);U.Observable.prototype.exhaust=B.exhaust},54506:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(2084);U.Observable.prototype.exhaustMap=B.exhaustMap},16161:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(2945);U.Observable.prototype.expand=B.expand},37132:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(3704);U.Observable.prototype.filter=B.filter},45396:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(58870);U.Observable.prototype.finally=B._finally,U.Observable.prototype._finally=B._finally},41154:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(16201);U.Observable.prototype.find=B.find},96986:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(95148);U.Observable.prototype.findIndex=B.findIndex},67259:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(96050);U.Observable.prototype.first=B.first},89015:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(16309);U.Observable.prototype.groupBy=B.groupBy},57301:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(3640);U.Observable.prototype.ignoreElements=B.ignoreElements},4993:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(87486);U.Observable.prototype.isEmpty=B.isEmpty},42215:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(30274);U.Observable.prototype.last=B.last},95564:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(11668);U.Observable.prototype.let=B.letProto,U.Observable.prototype.letBind=B.letProto},68663:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(23307);U.Observable.prototype.map=B.map},63566:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(3498);U.Observable.prototype.mapTo=B.mapTo},62729:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(70845);U.Observable.prototype.materialize=B.materialize},48483:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(96415);U.Observable.prototype.max=B.max},32979:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(33836);U.Observable.prototype.merge=B.merge},78104:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(58610);U.Observable.prototype.mergeAll=B.mergeAll},64259:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(36098);U.Observable.prototype.mergeMap=B.mergeMap,U.Observable.prototype.flatMap=B.mergeMap},30336:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(53033);U.Observable.prototype.flatMapTo=B.mergeMapTo,U.Observable.prototype.mergeMapTo=B.mergeMapTo},46315:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(11444);U.Observable.prototype.mergeScan=B.mergeScan},60771:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(6626);U.Observable.prototype.min=B.min},92700:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(4291);U.Observable.prototype.multicast=B.multicast},43545:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(37675);U.Observable.prototype.observeOn=B.observeOn},89242:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(92878);U.Observable.prototype.onErrorResumeNext=B.onErrorResumeNext},70177:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(94401);U.Observable.prototype.pairwise=B.pairwise},43800:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(93110);U.Observable.prototype.partition=B.partition},33434:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(53937);U.Observable.prototype.pluck=B.pluck},37179:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(81e3);U.Observable.prototype.publish=B.publish},97810:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(78665);U.Observable.prototype.publishBehavior=B.publishBehavior},44633:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(34696);U.Observable.prototype.publishLast=B.publishLast},27430:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(35543);U.Observable.prototype.publishReplay=B.publishReplay},37953:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(33963);U.Observable.prototype.race=B.race},58435:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(99216);U.Observable.prototype.reduce=B.reduce},14234:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(19613);U.Observable.prototype.repeat=B.repeat},98741:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(72798);U.Observable.prototype.repeatWhen=B.repeatWhen},43263:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(59813);U.Observable.prototype.retry=B.retry},57180:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(5419);U.Observable.prototype.retryWhen=B.retryWhen},87700:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(58693);U.Observable.prototype.sample=B.sample},34860:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(86803);U.Observable.prototype.sampleTime=B.sampleTime},67751:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(65036);U.Observable.prototype.scan=B.scan},63733:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(12201);U.Observable.prototype.sequenceEqual=B.sequenceEqual},38596:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(86892);U.Observable.prototype.share=B.share},20038:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(9050);U.Observable.prototype.shareReplay=B.shareReplay},58186:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(13533);U.Observable.prototype.single=B.single},77538:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(65846);U.Observable.prototype.skip=B.skip},33866:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(90955);U.Observable.prototype.skipLast=B.skipLast},1676:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(75479);U.Observable.prototype.skipUntil=B.skipUntil},3018:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(76841);U.Observable.prototype.skipWhile=B.skipWhile},58003:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(66560);U.Observable.prototype.startWith=B.startWith},77394:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(92265);U.Observable.prototype.subscribeOn=B.subscribeOn},92947:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(41428);U.Observable.prototype.switch=B._switch,U.Observable.prototype._switch=B._switch},27971:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(5193);U.Observable.prototype.switchMap=B.switchMap},33934:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(34022);U.Observable.prototype.switchMapTo=B.switchMapTo},43126:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(204);U.Observable.prototype.take=B.take},6320:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(62299);U.Observable.prototype.takeLast=B.takeLast},96813:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(93542);U.Observable.prototype.takeUntil=B.takeUntil},20425:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(79214);U.Observable.prototype.takeWhile=B.takeWhile},70140:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(35922);U.Observable.prototype.throttle=B.throttle},32035:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(41941);U.Observable.prototype.throttleTime=B.throttleTime},49421:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(99194);U.Observable.prototype.timeInterval=B.timeInterval},9693:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(53358);U.Observable.prototype.timeout=B.timeout},87276:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(41237);U.Observable.prototype.timeoutWith=B.timeoutWith},63934:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(84485);U.Observable.prototype.timestamp=B.timestamp},17360:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(23552);U.Observable.prototype.toArray=B.toArray},37222:function(){},55214:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(13977);U.Observable.prototype.window=B.window},22854:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(54052);U.Observable.prototype.windowCount=B.windowCount},65259:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(17884);U.Observable.prototype.windowTime=B.windowTime},84715:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(18835);U.Observable.prototype.windowToggle=B.windowToggle},27798:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(84220);U.Observable.prototype.windowWhen=B.windowWhen},98441:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(41603);U.Observable.prototype.withLatestFrom=B.withLatestFrom},56238:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(83313);U.Observable.prototype.zip=B.zipProto},42145:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(80396);U.Observable.prototype.zipAll=B.zipAll},20325:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.audit=function(V){return U.audit(V)(this)}},55702:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.auditTime=function(Z,w){return void 0===w&&(w=U.asyncScheduler),B.auditTime(Z,w)(this)}},19931:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.buffer=function(V){return U.buffer(V)(this)}},38173:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.bufferCount=function(V,Z){return void 0===Z&&(Z=null),U.bufferCount(V,Z)(this)}},93690:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(37294),V=f(73033);q.bufferTime=function(w){var R=arguments.length,C=U.asyncScheduler;B.isScheduler(arguments[arguments.length-1])&&(C=arguments[arguments.length-1],R--);var _=null;R>=2&&(_=arguments[1]);var N=Number.POSITIVE_INFINITY;return R>=3&&(N=arguments[2]),V.bufferTime(w,_,N,C)(this)}},79681:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.bufferToggle=function(V,Z){return U.bufferToggle(V,Z)(this)}},75311:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.bufferWhen=function(V){return U.bufferWhen(V)(this)}},26306:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q._catch=function(V){return U.catchError(V)(this)}},15869:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.combineAll=function(V){return U.combineAll(V)(this)}},23265:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(37294);q.combineLatest=function(){for(var Z=[],w=0;w=2?U.reduce(V,Z)(this):U.reduce(V)(this)}},19613:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.repeat=function(V){return void 0===V&&(V=-1),U.repeat(V)(this)}},72798:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.repeatWhen=function(V){return U.repeatWhen(V)(this)}},59813:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.retry=function(V){return void 0===V&&(V=-1),U.retry(V)(this)}},5419:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.retryWhen=function(V){return U.retryWhen(V)(this)}},58693:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.sample=function(V){return U.sample(V)(this)}},86803:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.sampleTime=function(Z,w){return void 0===w&&(w=U.asyncScheduler),B.sampleTime(Z,w)(this)}},65036:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.scan=function(V,Z){return arguments.length>=2?U.scan(V,Z)(this):U.scan(V)(this)}},12201:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.sequenceEqual=function(V,Z){return U.sequenceEqual(V,Z)(this)}},86892:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.share=function(){return U.share()(this)}},9050:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.shareReplay=function(V,Z,w){return V&&"object"==typeof V?U.shareReplay(V)(this):U.shareReplay(V,Z,w)(this)}},13533:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.single=function(V){return U.single(V)(this)}},65846:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.skip=function(V){return U.skip(V)(this)}},90955:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.skipLast=function(V){return U.skipLast(V)(this)}},75479:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.skipUntil=function(V){return U.skipUntil(V)(this)}},76841:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.skipWhile=function(V){return U.skipWhile(V)(this)}},66560:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.startWith=function(){for(var V=[],Z=0;Z1&&void 0!==arguments[1]?arguments[1]:ct.E,rn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ct.E;return(0,je.P)(function(){return Lt()?Yt:rn})}var bt=f(57434),nn=f(55371),Ut=new U.y(S.Z);function an(){return Ut}var An=f(43161);function Hn(){for(var Lt=arguments.length,Yt=new Array(Lt),rn=0;rn0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,L=arguments.length>2?arguments[2]:void 0;return(0,U.Z)(this,E),(x=M.call(this)).scheduler=L,x._events=[],x._infiniteTimeWindow=!1,x._bufferSize=S<1?1:S,x._windowTime=A<1?1:A,A===Number.POSITIVE_INFINITY?(x._infiniteTimeWindow=!0,x.next=x.nextInfiniteTimeWindow):x.next=x.nextTimeWindow,x}return(0,B.Z)(E,[{key:"nextInfiniteTimeWindow",value:function(S){if(!this.isStopped){var A=this._events;A.push(S),A.length>this._bufferSize&&A.shift()}(0,V.Z)((0,Z.Z)(E.prototype),"next",this).call(this,S)}},{key:"nextTimeWindow",value:function(S){this.isStopped||(this._events.push(new g(this._getNow(),S)),this._trimBufferThenGetEvents()),(0,V.Z)((0,Z.Z)(E.prototype),"next",this).call(this,S)}},{key:"_subscribe",value:function(S){var z,A=this._infiniteTimeWindow,L=A?this._events:this._trimBufferThenGetEvents(),j=this.scheduler,K=L.length;if(this.closed)throw new O.N;if(this.isStopped||this.hasError?z=N.w.EMPTY:(this.observers.push(S),z=new P.W(this,S)),j&&S.add(S=new D.ht(S,j)),A)for(var Q=0;QA&&(z=Math.max(z,K-A)),z>0&&j.splice(0,z),j}}]),E}(C.xQ),g=function T(M,E){(0,U.Z)(this,T),this.time=M,this.value=E}},67801:function(le,q,f){"use strict";f.d(q,{b:function(){return V}});var U=f(18967),B=f(14105),V=function(){var Z=function(){function w(R){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.now;(0,U.Z)(this,w),this.SchedulerAction=R,this.now=C}return(0,B.Z)(w,[{key:"schedule",value:function(C){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,N=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,C).schedule(N,_)}}]),w}();return Z.now=function(){return Date.now()},Z}()},68707:function(le,q,f){"use strict";f.d(q,{Yc:function(){return y},xQ:function(){return g},ug:function(){return T}});var U=f(14105),B=f(20901),V=f(89200),Z=f(18967),w=f(10509),R=f(97154),C=f(89797),_=f(39874),N=f(5051),D=f(1696),O=f(18480),P=f(79542),y=function(M){(0,w.Z)(x,M);var E=(0,R.Z)(x);function x(S){var A;return(0,Z.Z)(this,x),(A=E.call(this,S)).destination=S,A}return x}(_.L),g=function(){var M=function(E){(0,w.Z)(S,E);var x=(0,R.Z)(S);function S(){var A;return(0,Z.Z)(this,S),(A=x.call(this)).observers=[],A.closed=!1,A.isStopped=!1,A.hasError=!1,A.thrownError=null,A}return(0,U.Z)(S,[{key:P.b,value:function(){return new y(this)}},{key:"lift",value:function(L){var j=new T(this,this);return j.operator=L,j}},{key:"next",value:function(L){if(this.closed)throw new D.N;if(!this.isStopped)for(var j=this.observers,K=j.length,z=j.slice(),Q=0;Q1&&void 0!==arguments[1]?arguments[1]:0,T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.e;return(0,U.Z)(this,O),(y=D.call(this)).source=P,y.delayTime=g,y.scheduler=T,(!(0,C.k)(g)||g<0)&&(y.delayTime=0),(!T||"function"!=typeof T.schedule)&&(y.scheduler=R.e),y}return(0,B.Z)(O,[{key:"_subscribe",value:function(y){return this.scheduler.schedule(O.dispatch,this.delayTime,{source:this.source,subscriber:y})}}],[{key:"create",value:function(y){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.e;return new O(y,g,T)}},{key:"dispatch",value:function(y){return this.add(y.source.subscribe(y.subscriber))}}]),O}(w.y)},81370:function(le,q,f){"use strict";f.d(q,{aj:function(){return O},Ms:function(){return P}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(91299),R=f(78985),C=f(7283),_=f(61454),N=f(80503),D={};function O(){for(var g=arguments.length,T=new Array(g),M=0;M1&&void 0!==arguments[1]?arguments[1]:null;return new A({method:"GET",url:ue,headers:de})}function g(ue,de,oe){return new A({method:"POST",url:ue,body:de,headers:oe})}function T(ue,de){return new A({method:"DELETE",url:ue,headers:de})}function M(ue,de,oe){return new A({method:"PUT",url:ue,body:de,headers:oe})}function E(ue,de,oe){return new A({method:"PATCH",url:ue,body:de,headers:oe})}var x=(0,f(85639).U)(function(ue,de){return ue.response});function S(ue,de){return x(new A({method:"GET",url:ue,responseType:"json",headers:de}))}var A=function(){var ue=function(de){(0,w.Z)($,de);var oe=(0,R.Z)($);function $(ye){var ve;(0,V.Z)(this,$),ve=oe.call(this);var et={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 ue;try{for(var de=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],oe=0;oe<3;oe++)try{if(new C.J.ActiveXObject(ue=de[oe]))break}catch($){}return new C.J.ActiveXObject(ue)}catch($){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof ye)et.url=ye;else for(var Ne in ye)ye.hasOwnProperty(Ne)&&(et[Ne]=ye[Ne]);return ve.request=et,ve}return(0,Z.Z)($,[{key:"_subscribe",value:function(ve){return new L(ve,this.request)}}]),$}(_.y);return ue.create=function(){var de=function($){return new ue($)};return de.get=y,de.post=g,de.delete=T,de.put=M,de.patch=E,de.getJSON=S,de}(),ue}(),L=function(ue){(0,w.Z)(oe,ue);var de=(0,R.Z)(oe);function oe($,ye){var ve;(0,V.Z)(this,oe),(ve=de.call(this,$)).request=ye,ve.done=!1;var et=ye.headers=ye.headers||{};return!ye.crossDomain&&!ve.getHeader(et,"X-Requested-With")&&(et["X-Requested-With"]="XMLHttpRequest"),!ve.getHeader(et,"Content-Type")&&!(C.J.FormData&&ye.body instanceof C.J.FormData)&&void 0!==ye.body&&(et["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),ye.body=ve.serializeBody(ye.body,ve.getHeader(ye.headers,"Content-Type")),ve.send(),ve}return(0,Z.Z)(oe,[{key:"next",value:function(ye){this.done=!0;var gt,ve=this.xhr,et=this.request,Ne=this.destination;try{gt=new j(ye,ve,et)}catch(_t){return Ne.error(_t)}Ne.next(gt)}},{key:"send",value:function(){var ye=this.request,ve=this.request,et=ve.user,Ne=ve.method,gt=ve.url,_t=ve.async,Rt=ve.password,Se=ve.headers,Oe=ve.body;try{var je=this.xhr=ye.createXHR();this.setupEvents(je,ye),et?je.open(Ne,gt,_t,et,Rt):je.open(Ne,gt,_t),_t&&(je.timeout=ye.timeout,je.responseType=ye.responseType),"withCredentials"in je&&(je.withCredentials=!!ye.withCredentials),this.setHeaders(je,Se),Oe?je.send(Oe):je.send()}catch(ct){this.error(ct)}}},{key:"serializeBody",value:function(ye,ve){if(!ye||"string"==typeof ye)return ye;if(C.J.FormData&&ye instanceof C.J.FormData)return ye;if(ve){var et=ve.indexOf(";");-1!==et&&(ve=ve.substring(0,et))}switch(ve){case"application/x-www-form-urlencoded":return Object.keys(ye).map(function(Ne){return"".concat(encodeURIComponent(Ne),"=").concat(encodeURIComponent(ye[Ne]))}).join("&");case"application/json":return JSON.stringify(ye);default:return ye}}},{key:"setHeaders",value:function(ye,ve){for(var et in ve)ve.hasOwnProperty(et)&&ye.setRequestHeader(et,ve[et])}},{key:"getHeader",value:function(ye,ve){for(var et in ye)if(et.toLowerCase()===ve.toLowerCase())return ye[et]}},{key:"setupEvents",value:function(ye,ve){var gt,_t,et=ve.progressSubscriber;function Ne(Oe){var Ht,je=Ne.subscriber,ct=Ne.progressSubscriber,Xe=Ne.request;ct&&ct.error(Oe);try{Ht=new se(this,Xe)}catch(Et){Ht=Et}je.error(Ht)}(ye.ontimeout=Ne,Ne.request=ve,Ne.subscriber=this,Ne.progressSubscriber=et,ye.upload&&"withCredentials"in ye)&&(et&&(gt=function(je){gt.progressSubscriber.next(je)},C.J.XDomainRequest?ye.onprogress=gt:ye.upload.onprogress=gt,gt.progressSubscriber=et),ye.onerror=_t=function(je){var vt,Xe=_t.progressSubscriber,Ht=_t.subscriber,Et=_t.request;Xe&&Xe.error(je);try{vt=new z("ajax error",this,Et)}catch(Xt){vt=Xt}Ht.error(vt)},_t.request=ve,_t.subscriber=this,_t.progressSubscriber=et);function Rt(Oe){}function Se(Oe){var je=Se.subscriber,ct=Se.progressSubscriber,Xe=Se.request;if(4===this.readyState){var Ht=1223===this.status?204:this.status;if(0===Ht&&(Ht=("text"===this.responseType?this.response||this.responseText:this.response)?200:0),Ht<400)ct&&ct.complete(),je.next(Oe),je.complete();else{var vt;ct&&ct.error(Oe);try{vt=new z("ajax error "+Ht,this,Xe)}catch(Xt){vt=Xt}je.error(vt)}}}ye.onreadystatechange=Rt,Rt.subscriber=this,Rt.progressSubscriber=et,Rt.request=ve,ye.onload=Se,Se.subscriber=this,Se.progressSubscriber=et,Se.request=ve}},{key:"unsubscribe",value:function(){var ve=this.xhr;!this.done&&ve&&4!==ve.readyState&&"function"==typeof ve.abort&&ve.abort(),(0,U.Z)((0,B.Z)(oe.prototype),"unsubscribe",this).call(this)}}]),oe}(N.L),j=function ue(de,oe,$){(0,V.Z)(this,ue),this.originalEvent=de,this.xhr=oe,this.request=$,this.status=oe.status,this.responseType=oe.responseType||$.responseType,this.response=ae(this.responseType,oe)},z=function(){function ue(de,oe,$){return Error.call(this),this.message=de,this.name="AjaxError",this.xhr=oe,this.request=$,this.status=oe.status,this.responseType=oe.responseType||$.responseType,this.response=ae(this.responseType,oe),this}return ue.prototype=Object.create(Error.prototype),ue}();function ae(ue,de){switch(ue){case"json":return function(ue){return"response"in ue?ue.responseType?ue.response:JSON.parse(ue.response||ue.responseText||"null"):JSON.parse(ue.responseText||"null")}(de);case"xml":return de.responseXML;case"text":default:return"response"in de?de.response:de.responseText}}var se=function(ue,de){return z.call(this,"ajax timeout",ue,de),this.name="AjaxTimeoutError",this}},46095:function(le,q,f){"use strict";f.d(q,{p:function(){return g}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),w=f(10509),R=f(97154),C=f(68707),_=f(39874),N=f(89797),D=f(5051),O=f(82667),P={url:"",deserializer:function(M){return JSON.parse(M.data)},serializer:function(M){return JSON.stringify(M)}},g=function(T){(0,w.Z)(E,T);var M=(0,R.Z)(E);function E(x,S){var A;if((0,U.Z)(this,E),A=M.call(this),x instanceof N.y)A.destination=S,A.source=x;else{var L=A._config=Object.assign({},P);if(A._output=new C.xQ,"string"==typeof x)L.url=x;else for(var j in x)x.hasOwnProperty(j)&&(L[j]=x[j]);if(!L.WebSocketCtor&&WebSocket)L.WebSocketCtor=WebSocket;else if(!L.WebSocketCtor)throw new Error("no WebSocket constructor can be found");A.destination=new O.t}return A}return(0,B.Z)(E,[{key:"lift",value:function(S){var A=new E(this._config,this.destination);return A.operator=S,A.source=this,A}},{key:"_resetState",value:function(){this._socket=null,this.source||(this.destination=new O.t),this._output=new C.xQ}},{key:"multiplex",value:function(S,A,L){var j=this;return new N.y(function(K){try{j.next(S())}catch(Q){K.error(Q)}var z=j.subscribe(function(Q){try{L(Q)&&K.next(Q)}catch(ae){K.error(ae)}},function(Q){return K.error(Q)},function(){return K.complete()});return function(){try{j.next(A())}catch(Q){K.error(Q)}z.unsubscribe()}})}},{key:"_connectSocket",value:function(){var S=this,A=this._config,L=A.WebSocketCtor,j=A.protocol,K=A.url,z=A.binaryType,Q=this._output,ae=null;try{ae=j?new L(K,j):new L(K),this._socket=ae,z&&(this._socket.binaryType=z)}catch(se){return void Q.error(se)}var ie=new D.w(function(){S._socket=null,ae&&1===ae.readyState&&ae.close()});ae.onopen=function(se){if(!S._socket)return ae.close(),void S._resetState();var de=S._config.openObserver;de&&de.next(se);var oe=S.destination;S.destination=_.L.create(function($){if(1===ae.readyState)try{ae.send((0,S._config.serializer)($))}catch(ve){S.destination.error(ve)}},function($){var ye=S._config.closingObserver;ye&&ye.next(void 0),$&&$.code?ae.close($.code,$.reason):Q.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),S._resetState()},function(){var $=S._config.closingObserver;$&&$.next(void 0),ae.close(),S._resetState()}),oe&&oe instanceof O.t&&ie.add(oe.subscribe(S.destination))},ae.onerror=function(se){S._resetState(),Q.error(se)},ae.onclose=function(se){S._resetState();var ue=S._config.closeObserver;ue&&ue.next(se),se.wasClean?Q.complete():Q.error(se)},ae.onmessage=function(se){try{Q.next((0,S._config.deserializer)(se))}catch(de){Q.error(de)}}}},{key:"_subscribe",value:function(S){var A=this,L=this.source;return L?L.subscribe(S):(this._socket||this._connectSocket(),this._output.subscribe(S),S.add(function(){var j=A._socket;0===A._output.observers.length&&(j&&1===j.readyState&&j.close(),A._resetState())}),S)}},{key:"unsubscribe",value:function(){var S=this._socket;S&&1===S.readyState&&S.close(),this._resetState(),(0,V.Z)((0,Z.Z)(E.prototype),"unsubscribe",this).call(this)}}]),E}(C.ug)},30437:function(le,q,f){"use strict";f.d(q,{h:function(){return B}});var U=f(51361),B=function(){return U.i6.create}()},99298:function(le,q,f){"use strict";f.d(q,{j:function(){return B}});var U=f(46095);function B(V){return new U.p(V)}},93487:function(le,q,f){"use strict";f.d(q,{E:function(){return B},c:function(){return V}});var U=f(89797),B=new U.y(function(w){return w.complete()});function V(w){return w?function(w){return new U.y(function(R){return w.schedule(function(){return R.complete()})})}(w):B}},91925:function(le,q,f){"use strict";f.d(q,{D:function(){return C}});var U=f(10629),B=f(89797),V=f(78985),Z=f(85639),w=f(64902),R=f(61493);function C(){for(var N=arguments.length,D=new Array(N),O=0;O1?Array.prototype.slice.call(arguments):x)},M,g)})}function _(P,y,g,T,M){var E;if(function(P){return P&&"function"==typeof P.addEventListener&&"function"==typeof P.removeEventListener}(P)){var x=P;P.addEventListener(y,g,M),E=function(){return x.removeEventListener(y,g,M)}}else if(function(P){return P&&"function"==typeof P.on&&"function"==typeof P.off}(P)){var S=P;P.on(y,g),E=function(){return S.off(y,g)}}else if(function(P){return P&&"function"==typeof P.addListener&&"function"==typeof P.removeListener}(P)){var A=P;P.addListener(y,g),E=function(){return A.removeListener(y,g)}}else{if(!P||!P.length)throw new TypeError("Invalid event target");for(var L=0,j=P.length;L0&&void 0!==arguments[0]?arguments[0]:0,C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B.P;return(!(0,V.k)(R)||R<0)&&(R=0),(!C||"function"!=typeof C.schedule)&&(C=B.P),new U.y(function(_){return _.add(C.schedule(w,R,{subscriber:_,counter:0,period:R})),_})}function w(R){var C=R.subscriber,_=R.counter,N=R.period;C.next(_),this.schedule({subscriber:C,counter:_+1,period:N},N)}},55371:function(le,q,f){"use strict";f.d(q,{T:function(){return w}});var U=f(89797),B=f(91299),V=f(65890),Z=f(80503);function w(){for(var R=Number.POSITIVE_INFINITY,C=null,_=arguments.length,N=new Array(_),D=0;D<_;D++)N[D]=arguments[D];var O=N[N.length-1];return(0,B.K)(O)?(C=N.pop(),N.length>1&&"number"==typeof N[N.length-1]&&(R=N.pop())):"number"==typeof O&&(R=N.pop()),null===C&&1===N.length&&N[0]instanceof U.y?N[0]:(0,V.J)(R)((0,Z.n)(N,C))}},43161:function(le,q,f){"use strict";f.d(q,{of:function(){return Z}});var U=f(91299),B=f(80503),V=f(55835);function Z(){for(var w=arguments.length,R=new Array(w),C=0;C0&&void 0!==arguments[0]?arguments[0]:0,w=arguments.length>1?arguments[1]:void 0,R=arguments.length>2?arguments[2]:void 0;return new U.y(function(C){void 0===w&&(w=Z,Z=0);var _=0,N=Z;if(R)return R.schedule(V,0,{index:_,count:w,start:Z,subscriber:C});for(;;){if(_++>=w){C.complete();break}if(C.next(N++),C.closed)break}})}function V(Z){var w=Z.start,R=Z.index,_=Z.subscriber;R>=Z.count?_.complete():(_.next(w),!_.closed&&(Z.index=R+1,Z.start=w+1,this.schedule(Z)))}},11363:function(le,q,f){"use strict";f.d(q,{_:function(){return B}});var U=f(89797);function B(Z,w){return new U.y(w?function(R){return w.schedule(V,0,{error:Z,subscriber:R})}:function(R){return R.error(Z)})}function V(Z){Z.subscriber.error(Z.error)}},5041:function(le,q,f){"use strict";f.d(q,{H:function(){return w}});var U=f(89797),B=f(46813),V=f(11705),Z=f(91299);function w(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,_=arguments.length>1?arguments[1]:void 0,N=arguments.length>2?arguments[2]:void 0,D=-1;return(0,V.k)(_)?D=Number(_)<1?1:Number(_):(0,Z.K)(_)&&(N=_),(0,Z.K)(N)||(N=B.P),new U.y(function(O){var P=(0,V.k)(C)?C:+C-N.now();return N.schedule(R,P,{index:0,period:D,subscriber:O})})}function R(C){var _=C.index,N=C.period,D=C.subscriber;if(D.next(_),!D.closed){if(-1===N)return D.complete();C.index=_+1,this.schedule(C,N)}}},43008:function(le,q,f){"use strict";f.d(q,{$R:function(){return D},mx:function(){return O}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(80503),R=f(78985),C=f(39874),_=f(81695),N=f(32124);function D(){for(var M=arguments.length,E=new Array(M),x=0;x2&&void 0!==arguments[2]||Object.create(null),(0,V.Z)(this,x),(L=E.call(this,S)).resultSelector=A,L.iterators=[],L.active=0,L.resultSelector="function"==typeof A?A:void 0,L}return(0,Z.Z)(x,[{key:"_next",value:function(A){var L=this.iterators;(0,R.k)(A)?L.push(new g(A)):L.push("function"==typeof A[_.hZ]?new y(A[_.hZ]()):new T(this.destination,this,A))}},{key:"_complete",value:function(){var A=this.iterators,L=A.length;if(this.unsubscribe(),0!==L){this.active=L;for(var j=0;jthis.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}]),M}(),T=function(M){(0,U.Z)(x,M);var E=(0,B.Z)(x);function x(S,A,L){var j;return(0,V.Z)(this,x),(j=E.call(this,S)).parent=A,j.observable=L,j.stillUnsubscribed=!0,j.buffer=[],j.isComplete=!1,j}return(0,Z.Z)(x,[{key:_.hZ,value:function(){return this}},{key:"next",value:function(){var A=this.buffer;return 0===A.length&&this.isComplete?{value:null,done:!0}:{value:A.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(A){this.buffer.push(A),this.parent.checkIterators()}},{key:"subscribe",value:function(){return(0,N.ft)(this.observable,new N.IY(this))}}]),x}(N.Ds)},67494:function(le,q,f){"use strict";f.d(q,{U:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(32124);function R(N){return function(O){return O.lift(new C(N))}}var C=function(){function N(D){(0,V.Z)(this,N),this.durationSelector=D}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.durationSelector))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y){var g;return(0,V.Z)(this,O),(g=D.call(this,P)).durationSelector=y,g.hasValue=!1,g}return(0,Z.Z)(O,[{key:"_next",value:function(y){if(this.value=y,this.hasValue=!0,!this.throttled){var g;try{g=(0,this.durationSelector)(y)}catch(E){return this.destination.error(E)}var M=(0,w.ft)(g,new w.IY(this));!M||M.closed?this.clearThrottle():this.add(this.throttled=M)}}},{key:"clearThrottle",value:function(){var y=this.value,g=this.hasValue,T=this.throttled;T&&(this.remove(T),this.throttled=void 0,T.unsubscribe()),g&&(this.value=void 0,this.hasValue=!1,this.destination.next(y))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),O}(w.Ds)},54562:function(le,q,f){"use strict";f.d(q,{e:function(){return Z}});var U=f(46813),B=f(67494),V=f(5041);function Z(w){var R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.P;return(0,B.U)(function(){return(0,V.H)(w,R)})}},13426:function(le,q,f){"use strict";f.d(q,{K:function(){return _}});var U=f(20901),B=f(89200),V=f(10509),Z=f(97154),w=f(18967),R=f(14105),C=f(32124);function _(O){return function(y){var g=new N(O),T=y.lift(g);return g.caught=T}}var N=function(){function O(P){(0,w.Z)(this,O),this.selector=P}return(0,R.Z)(O,[{key:"call",value:function(y,g){return g.subscribe(new D(y,this.selector,this.caught))}}]),O}(),D=function(O){(0,V.Z)(y,O);var P=(0,Z.Z)(y);function y(g,T,M){var E;return(0,w.Z)(this,y),(E=P.call(this,g)).selector=T,E.caught=M,E}return(0,R.Z)(y,[{key:"error",value:function(T){if(!this.isStopped){var M;try{M=this.selector(T,this.caught)}catch(S){return void(0,U.Z)((0,B.Z)(y.prototype),"error",this).call(this,S)}this._unsubscribeAndRecycle();var E=new C.IY(this);this.add(E);var x=(0,C.ft)(M,E);x!==E&&this.add(x)}}}]),y}(C.Ds)},95416:function(le,q,f){"use strict";f.d(q,{u:function(){return B}});var U=f(65890);function B(){return(0,U.J)(1)}},38575:function(le,q,f){"use strict";f.d(q,{b:function(){return B}});var U=f(35135);function B(V,Z){return(0,U.zg)(V,Z,1)}},75398:function(le,q,f){"use strict";f.d(q,{Q:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(N){return function(D){return D.lift(new C(N,D))}}var C=function(){function N(D,O){(0,V.Z)(this,N),this.predicate=D,this.source=O}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.predicate,this.source))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y,g){var T;return(0,V.Z)(this,O),(T=D.call(this,P)).predicate=y,T.source=g,T.count=0,T.index=0,T}return(0,Z.Z)(O,[{key:"_next",value:function(y){this.predicate?this._tryPredicate(y):this.count++}},{key:"_tryPredicate",value:function(y){var g;try{g=this.predicate(y,this.index++,this.source)}catch(T){return void this.destination.error(T)}g&&this.count++}},{key:"_complete",value:function(){this.destination.next(this.count),this.destination.complete()}}]),O}(w.L)},57263:function(le,q,f){"use strict";f.d(q,{b:function(){return C}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874),R=f(46813);function C(O){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.P;return function(y){return y.lift(new _(O,P))}}var _=function(){function O(P,y){(0,V.Z)(this,O),this.dueTime=P,this.scheduler=y}return(0,Z.Z)(O,[{key:"call",value:function(y,g){return g.subscribe(new N(y,this.dueTime,this.scheduler))}}]),O}(),N=function(O){(0,U.Z)(y,O);var P=(0,B.Z)(y);function y(g,T,M){var E;return(0,V.Z)(this,y),(E=P.call(this,g)).dueTime=T,E.scheduler=M,E.debouncedSubscription=null,E.lastValue=null,E.hasValue=!1,E}return(0,Z.Z)(y,[{key:"_next",value:function(T){this.clearDebounce(),this.lastValue=T,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(D,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var T=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(T)}}},{key:"clearDebounce",value:function(){var T=this.debouncedSubscription;null!==T&&(this.remove(T),T.unsubscribe(),this.debouncedSubscription=null)}}]),y}(w.L);function D(O){O.debouncedNext()}},34235:function(le,q,f){"use strict";f.d(q,{d:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(D){return D.lift(new C(N))}}var C=function(){function N(D){(0,V.Z)(this,N),this.defaultValue=D}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.defaultValue))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y){var g;return(0,V.Z)(this,O),(g=D.call(this,P)).defaultValue=y,g.isEmpty=!0,g}return(0,Z.Z)(O,[{key:"_next",value:function(y){this.isEmpty=!1,this.destination.next(y)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),O}(w.L)},86004:function(le,q,f){"use strict";f.d(q,{g:function(){return N}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(46813),R=f(88972),C=f(39874),_=f(80286);function N(y){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.P,T=(0,R.J)(y),M=T?+y-g.now():Math.abs(y);return function(E){return E.lift(new D(M,g))}}var D=function(){function y(g,T){(0,V.Z)(this,y),this.delay=g,this.scheduler=T}return(0,Z.Z)(y,[{key:"call",value:function(T,M){return M.subscribe(new O(T,this.delay,this.scheduler))}}]),y}(),O=function(y){(0,U.Z)(T,y);var g=(0,B.Z)(T);function T(M,E,x){var S;return(0,V.Z)(this,T),(S=g.call(this,M)).delay=E,S.scheduler=x,S.queue=[],S.active=!1,S.errored=!1,S}return(0,Z.Z)(T,[{key:"_schedule",value:function(E){this.active=!0,this.destination.add(E.schedule(T.dispatch,this.delay,{source:this,destination:this.destination,scheduler:E}))}},{key:"scheduleNotification",value:function(E){if(!0!==this.errored){var x=this.scheduler,S=new P(x.now()+this.delay,E);this.queue.push(S),!1===this.active&&this._schedule(x)}}},{key:"_next",value:function(E){this.scheduleNotification(_.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(_.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(E){for(var x=E.source,S=x.queue,A=E.scheduler,L=E.destination;S.length>0&&S[0].time-A.now()<=0;)S.shift().notification.observe(L);if(S.length>0){var j=Math.max(0,S[0].time-A.now());this.schedule(E,j)}else this.unsubscribe(),x.active=!1}}]),T}(C.L),P=function y(g,T){(0,V.Z)(this,y),this.time=g,this.notification=T}},76161:function(le,q,f){"use strict";f.d(q,{x:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(N,D){return function(O){return O.lift(new C(N,D))}}var C=function(){function N(D,O){(0,V.Z)(this,N),this.compare=D,this.keySelector=O}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.compare,this.keySelector))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y,g){var T;return(0,V.Z)(this,O),(T=D.call(this,P)).keySelector=g,T.hasKey=!1,"function"==typeof y&&(T.compare=y),T}return(0,Z.Z)(O,[{key:"compare",value:function(y,g){return y===g}},{key:"_next",value:function(y){var g;try{var T=this.keySelector;g=T?T(y):y}catch(x){return this.destination.error(x)}var M=!1;if(this.hasKey)try{M=(0,this.compare)(this.key,g)}catch(x){return this.destination.error(x)}else this.hasKey=!0;M||(this.key=g,this.destination.next(y))}}]),O}(w.L)},58780:function(le,q,f){"use strict";f.d(q,{h:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(N,D){return function(P){return P.lift(new C(N,D))}}var C=function(){function N(D,O){(0,V.Z)(this,N),this.predicate=D,this.thisArg=O}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.predicate,this.thisArg))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y,g){var T;return(0,V.Z)(this,O),(T=D.call(this,P)).predicate=y,T.thisArg=g,T.count=0,T}return(0,Z.Z)(O,[{key:"_next",value:function(y){var g;try{g=this.predicate.call(this.thisArg,y,this.count++)}catch(T){return void this.destination.error(T)}g&&this.destination.next(y)}}]),O}(w.L)},59803:function(le,q,f){"use strict";f.d(q,{x:function(){return C}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874),R=f(5051);function C(D){return function(O){return O.lift(new _(D))}}var _=function(){function D(O){(0,V.Z)(this,D),this.callback=O}return(0,Z.Z)(D,[{key:"call",value:function(P,y){return y.subscribe(new N(P,this.callback))}}]),D}(),N=function(D){(0,U.Z)(P,D);var O=(0,B.Z)(P);function P(y,g){var T;return(0,V.Z)(this,P),(T=O.call(this,y)).add(new R.w(g)),T}return P}(w.L)},64233:function(le,q,f){"use strict";f.d(q,{P:function(){return C}});var U=f(64646),B=f(58780),V=f(48359),Z=f(34235),w=f(88942),R=f(57070);function C(_,N){var D=arguments.length>=2;return function(O){return O.pipe(_?(0,B.h)(function(P,y){return _(P,y,O)}):R.y,(0,V.q)(1),D?(0,Z.d)(N):(0,w.T)(function(){return new U.K}))}}},86072:function(le,q,f){"use strict";f.d(q,{v:function(){return O},T:function(){return T}});var U=f(20901),B=f(89200),V=f(10509),Z=f(97154),w=f(18967),R=f(14105),C=f(39874),_=f(5051),N=f(89797),D=f(68707);function O(E,x,S,A){return function(L){return L.lift(new P(E,x,S,A))}}var P=function(){function E(x,S,A,L){(0,w.Z)(this,E),this.keySelector=x,this.elementSelector=S,this.durationSelector=A,this.subjectSelector=L}return(0,R.Z)(E,[{key:"call",value:function(S,A){return A.subscribe(new y(S,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),E}(),y=function(E){(0,V.Z)(S,E);var x=(0,Z.Z)(S);function S(A,L,j,K,z){var Q;return(0,w.Z)(this,S),(Q=x.call(this,A)).keySelector=L,Q.elementSelector=j,Q.durationSelector=K,Q.subjectSelector=z,Q.groups=null,Q.attemptedToUnsubscribe=!1,Q.count=0,Q}return(0,R.Z)(S,[{key:"_next",value:function(L){var j;try{j=this.keySelector(L)}catch(K){return void this.error(K)}this._group(L,j)}},{key:"_group",value:function(L,j){var K=this.groups;K||(K=this.groups=new Map);var Q,z=K.get(j);if(this.elementSelector)try{Q=this.elementSelector(L)}catch(se){this.error(se)}else Q=L;if(!z){z=this.subjectSelector?this.subjectSelector():new D.xQ,K.set(j,z);var ae=new T(j,z,this);if(this.destination.next(ae),this.durationSelector){var ie;try{ie=this.durationSelector(new T(j,z))}catch(se){return void this.error(se)}this.add(ie.subscribe(new g(j,z,this)))}}z.closed||z.next(Q)}},{key:"_error",value:function(L){var j=this.groups;j&&(j.forEach(function(K,z){K.error(L)}),j.clear()),this.destination.error(L)}},{key:"_complete",value:function(){var L=this.groups;L&&(L.forEach(function(j,K){j.complete()}),L.clear()),this.destination.complete()}},{key:"removeGroup",value:function(L){this.groups.delete(L)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&(0,U.Z)((0,B.Z)(S.prototype),"unsubscribe",this).call(this))}}]),S}(C.L),g=function(E){(0,V.Z)(S,E);var x=(0,Z.Z)(S);function S(A,L,j){var K;return(0,w.Z)(this,S),(K=x.call(this,L)).key=A,K.group=L,K.parent=j,K}return(0,R.Z)(S,[{key:"_next",value:function(L){this.complete()}},{key:"_unsubscribe",value:function(){var L=this.parent,j=this.key;this.key=this.parent=null,L&&L.removeGroup(j)}}]),S}(C.L),T=function(E){(0,V.Z)(S,E);var x=(0,Z.Z)(S);function S(A,L,j){var K;return(0,w.Z)(this,S),(K=x.call(this)).key=A,K.groupSubject=L,K.refCountSubscription=j,K}return(0,R.Z)(S,[{key:"_subscribe",value:function(L){var j=new _.w,K=this.refCountSubscription,z=this.groupSubject;return K&&!K.closed&&j.add(new M(K)),j.add(z.subscribe(L)),j}}]),S}(N.y),M=function(E){(0,V.Z)(S,E);var x=(0,Z.Z)(S);function S(A){var L;return(0,w.Z)(this,S),(L=x.call(this)).parent=A,A.count++,L}return(0,R.Z)(S,[{key:"unsubscribe",value:function(){var L=this.parent;!L.closed&&!this.closed&&((0,U.Z)((0,B.Z)(S.prototype),"unsubscribe",this).call(this),L.count-=1,0===L.count&&L.attemptedToUnsubscribe&&L.unsubscribe())}}]),S}(_.w)},99583:function(le,q,f){"use strict";f.d(q,{Z:function(){return C}});var U=f(64646),B=f(58780),V=f(64397),Z=f(88942),w=f(34235),R=f(57070);function C(_,N){var D=arguments.length>=2;return function(O){return O.pipe(_?(0,B.h)(function(P,y){return _(P,y,O)}):R.y,(0,V.h)(1),D?(0,w.d)(N):(0,Z.T)(function(){return new U.K}))}}},85639:function(le,q,f){"use strict";f.d(q,{U:function(){return C}});var U=f(88009),B=f(10509),V=f(97154),Z=f(18967),w=f(14105),R=f(39874);function C(D,O){return function(y){if("function"!=typeof D)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return y.lift(new _(D,O))}}var _=function(){function D(O,P){(0,Z.Z)(this,D),this.project=O,this.thisArg=P}return(0,w.Z)(D,[{key:"call",value:function(P,y){return y.subscribe(new N(P,this.project,this.thisArg))}}]),D}(),N=function(D){(0,B.Z)(P,D);var O=(0,V.Z)(P);function P(y,g,T){var M;return(0,Z.Z)(this,P),(M=O.call(this,y)).project=g,M.count=0,M.thisArg=T||(0,U.Z)(M),M}return(0,w.Z)(P,[{key:"_next",value:function(g){var T;try{T=this.project.call(this.thisArg,g,this.count++)}catch(M){return void this.destination.error(M)}this.destination.next(T)}}]),P}(R.L)},12698:function(le,q,f){"use strict";f.d(q,{h:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(N){return function(D){return D.lift(new C(N))}}var C=function(){function N(D){(0,V.Z)(this,N),this.value=D}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.value))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y){var g;return(0,V.Z)(this,O),(g=D.call(this,P)).value=y,g}return(0,Z.Z)(O,[{key:"_next",value:function(y){this.destination.next(this.value)}}]),O}(w.L)},65890:function(le,q,f){"use strict";f.d(q,{J:function(){return V}});var U=f(35135),B=f(57070);function V(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,U.zg)(B.y,Z)}},35135:function(le,q,f){"use strict";f.d(q,{zg:function(){return _},VS:function(){return O}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(85639),R=f(61493),C=f(32124);function _(P,y){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof y?function(T){return T.pipe(_(function(M,E){return(0,R.D)(P(M,E)).pipe((0,w.U)(function(x,S){return y(M,x,E,S)}))},g))}:("number"==typeof y&&(g=y),function(T){return T.lift(new N(P,g))})}var N=function(){function P(y){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,V.Z)(this,P),this.project=y,this.concurrent=g}return(0,Z.Z)(P,[{key:"call",value:function(g,T){return T.subscribe(new D(g,this.project,this.concurrent))}}]),P}(),D=function(P){(0,U.Z)(g,P);var y=(0,B.Z)(g);function g(T,M){var E,x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return(0,V.Z)(this,g),(E=y.call(this,T)).project=M,E.concurrent=x,E.hasCompleted=!1,E.buffer=[],E.active=0,E.index=0,E}return(0,Z.Z)(g,[{key:"_next",value:function(M){this.active0?this._next(M.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),g}(C.Ds),O=_},4981:function(le,q,f){"use strict";f.d(q,{O:function(){return Z}});var U=f(18967),B=f(14105),V=f(39887);function Z(R,C){return function(N){var D;if(D="function"==typeof R?R:function(){return R},"function"==typeof C)return N.lift(new w(D,C));var O=Object.create(N,V.N);return O.source=N,O.subjectFactory=D,O}}var w=function(){function R(C,_){(0,U.Z)(this,R),this.subjectFactory=C,this.selector=_}return(0,B.Z)(R,[{key:"call",value:function(_,N){var D=this.selector,O=this.subjectFactory(),P=D(O).subscribe(_);return P.add(N.subscribe(O)),P}}]),R}()},25110:function(le,q,f){"use strict";f.d(q,{QV:function(){return C},ht:function(){return N}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874),R=f(80286);function C(O){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(g){return g.lift(new _(O,P))}}var _=function(){function O(P){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,V.Z)(this,O),this.scheduler=P,this.delay=y}return(0,Z.Z)(O,[{key:"call",value:function(y,g){return g.subscribe(new N(y,this.scheduler,this.delay))}}]),O}(),N=function(O){(0,U.Z)(y,O);var P=(0,B.Z)(y);function y(g,T){var M,E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,V.Z)(this,y),(M=P.call(this,g)).scheduler=T,M.delay=E,M}return(0,Z.Z)(y,[{key:"scheduleMessage",value:function(T){this.destination.add(this.scheduler.schedule(y.dispatch,this.delay,new D(T,this.destination)))}},{key:"_next",value:function(T){this.scheduleMessage(R.P.createNext(T))}},{key:"_error",value:function(T){this.scheduleMessage(R.P.createError(T)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(R.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(T){T.notification.observe(T.destination),this.unsubscribe()}}]),y}(w.L),D=function O(P,y){(0,V.Z)(this,O),this.notification=P,this.destination=y}},4363:function(le,q,f){"use strict";f.d(q,{G:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(){return function(N){return N.lift(new C)}}var C=function(){function N(){(0,V.Z)(this,N)}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P){var y;return(0,V.Z)(this,O),(y=D.call(this,P)).hasPrev=!1,y}return(0,Z.Z)(O,[{key:"_next",value:function(y){var g;this.hasPrev?g=[this.prev,y]:this.hasPrev=!0,this.prev=y,g&&this.destination.next(g)}}]),O}(w.L)},26575:function(le,q,f){"use strict";f.d(q,{x:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(){return function(D){return D.lift(new C(D))}}var C=function(){function N(D){(0,V.Z)(this,N),this.connectable=D}return(0,Z.Z)(N,[{key:"call",value:function(O,P){var y=this.connectable;y._refCount++;var g=new _(O,y),T=P.subscribe(g);return g.closed||(g.connection=y.connect()),T}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y){var g;return(0,V.Z)(this,O),(g=D.call(this,P)).connectable=y,g}return(0,Z.Z)(O,[{key:"_unsubscribe",value:function(){var y=this.connectable;if(y){this.connectable=null;var g=y._refCount;if(g<=0)this.connection=null;else if(y._refCount=g-1,g>1)this.connection=null;else{var T=this.connection,M=y._connection;this.connection=null,M&&(!T||M===T)&&M.unsubscribe()}}else this.connection=null}}]),O}(w.L)},31927:function(le,q,f){"use strict";f.d(q,{R:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(N,D){var O=!1;return arguments.length>=2&&(O=!0),function(y){return y.lift(new C(N,D,O))}}var C=function(){function N(D,O){var P=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,V.Z)(this,N),this.accumulator=D,this.seed=O,this.hasSeed=P}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.accumulator,this.seed,this.hasSeed))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y,g,T){var M;return(0,V.Z)(this,O),(M=D.call(this,P)).accumulator=y,M._seed=g,M.hasSeed=T,M.index=0,M}return(0,Z.Z)(O,[{key:"seed",get:function(){return this._seed},set:function(y){this.hasSeed=!0,this._seed=y}},{key:"_next",value:function(y){if(this.hasSeed)return this._tryNext(y);this.seed=y,this.destination.next(y)}},{key:"_tryNext",value:function(y){var T,g=this.index++;try{T=this.accumulator(this.seed,y,g)}catch(M){this.destination.error(M)}this.seed=T,this.destination.next(T)}}]),O}(w.L)},16338:function(le,q,f){"use strict";f.d(q,{B:function(){return w}});var U=f(4981),B=f(26575),V=f(68707);function Z(){return new V.xQ}function w(){return function(R){return(0,B.x)()((0,U.O)(Z)(R))}}},61106:function(le,q,f){"use strict";f.d(q,{d:function(){return B}});var U=f(82667);function B(Z,w,R){var C;return C=Z&&"object"==typeof Z?Z:{bufferSize:Z,windowTime:w,refCount:!1,scheduler:R},function(_){return _.lift(function(Z){var O,y,w=Z.bufferSize,R=void 0===w?Number.POSITIVE_INFINITY:w,C=Z.windowTime,_=void 0===C?Number.POSITIVE_INFINITY:C,N=Z.refCount,D=Z.scheduler,P=0,g=!1,T=!1;return function(E){var x;P++,!O||g?(g=!1,O=new U.t(R,_,D),x=O.subscribe(this),y=E.subscribe({next:function(A){O.next(A)},error:function(A){g=!0,O.error(A)},complete:function(){T=!0,y=void 0,O.complete()}}),T&&(y=void 0)):x=O.subscribe(this),this.add(function(){P--,x.unsubscribe(),x=void 0,y&&!T&&N&&0===P&&(y.unsubscribe(),y=void 0,O=void 0)})}}(C))}}},18756:function(le,q,f){"use strict";f.d(q,{T:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(N){return function(D){return D.lift(new C(N))}}var C=function(){function N(D){(0,V.Z)(this,N),this.total=D}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.total))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y){var g;return(0,V.Z)(this,O),(g=D.call(this,P)).total=y,g.count=0,g}return(0,Z.Z)(O,[{key:"_next",value:function(y){++this.count>this.total&&this.destination.next(y)}}]),O}(w.L)},57682:function(le,q,f){"use strict";f.d(q,{O:function(){return V}});var U=f(60131),B=f(91299);function V(){for(var Z=arguments.length,w=new Array(Z),R=0;R0)for(var E=this.count>=this.total?this.total:this.count,x=this.ring,S=0;S1&&void 0!==arguments[1]&&arguments[1];return function(O){return O.lift(new C(N,D))}}var C=function(){function N(D,O){(0,V.Z)(this,N),this.predicate=D,this.inclusive=O}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.predicate,this.inclusive))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y,g){var T;return(0,V.Z)(this,O),(T=D.call(this,P)).predicate=y,T.inclusive=g,T.index=0,T}return(0,Z.Z)(O,[{key:"_next",value:function(y){var T,g=this.destination;try{T=this.predicate(y,this.index++)}catch(M){return void g.error(M)}this.nextOrComplete(y,T)}},{key:"nextOrComplete",value:function(y,g){var T=this.destination;Boolean(g)?T.next(y):(this.inclusive&&T.next(y),T.complete())}}]),O}(w.L)},59371:function(le,q,f){"use strict";f.d(q,{b:function(){return N}});var U=f(88009),B=f(10509),V=f(97154),Z=f(18967),w=f(14105),R=f(39874),C=f(66029),_=f(20684);function N(P,y,g){return function(M){return M.lift(new D(P,y,g))}}var D=function(){function P(y,g,T){(0,Z.Z)(this,P),this.nextOrObserver=y,this.error=g,this.complete=T}return(0,w.Z)(P,[{key:"call",value:function(g,T){return T.subscribe(new O(g,this.nextOrObserver,this.error,this.complete))}}]),P}(),O=function(P){(0,B.Z)(g,P);var y=(0,V.Z)(g);function g(T,M,E,x){var S;return(0,Z.Z)(this,g),(S=y.call(this,T))._tapNext=C.Z,S._tapError=C.Z,S._tapComplete=C.Z,S._tapError=E||C.Z,S._tapComplete=x||C.Z,(0,_.m)(M)?(S._context=(0,U.Z)(S),S._tapNext=M):M&&(S._context=M,S._tapNext=M.next||C.Z,S._tapError=M.error||C.Z,S._tapComplete=M.complete||C.Z),S}return(0,w.Z)(g,[{key:"_next",value:function(M){try{this._tapNext.call(this._context,M)}catch(E){return void this.destination.error(E)}this.destination.next(M)}},{key:"_error",value:function(M){try{this._tapError.call(this._context,M)}catch(E){return void this.destination.error(E)}this.destination.error(M)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(M){return void this.destination.error(M)}return this.destination.complete()}}]),g}(R.L)},243:function(le,q,f){"use strict";f.d(q,{d:function(){return R},P:function(){return C}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(32124),R={leading:!0,trailing:!1};function C(D){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R;return function(P){return P.lift(new _(D,!!O.leading,!!O.trailing))}}var _=function(){function D(O,P,y){(0,V.Z)(this,D),this.durationSelector=O,this.leading=P,this.trailing=y}return(0,Z.Z)(D,[{key:"call",value:function(P,y){return y.subscribe(new N(P,this.durationSelector,this.leading,this.trailing))}}]),D}(),N=function(D){(0,U.Z)(P,D);var O=(0,B.Z)(P);function P(y,g,T,M){var E;return(0,V.Z)(this,P),(E=O.call(this,y)).destination=y,E.durationSelector=g,E._leading=T,E._trailing=M,E._hasValue=!1,E}return(0,Z.Z)(P,[{key:"_next",value:function(g){this._hasValue=!0,this._sendValue=g,this._throttled||(this._leading?this.send():this.throttle(g))}},{key:"send",value:function(){var T=this._sendValue;this._hasValue&&(this.destination.next(T),this.throttle(T)),this._hasValue=!1,this._sendValue=void 0}},{key:"throttle",value:function(g){var T=this.tryDurationSelector(g);T&&this.add(this._throttled=(0,w.ft)(T,new w.IY(this)))}},{key:"tryDurationSelector",value:function(g){try{return this.durationSelector(g)}catch(T){return this.destination.error(T),null}}},{key:"throttlingDone",value:function(){var g=this._throttled,T=this._trailing;g&&g.unsubscribe(),this._throttled=void 0,T&&this.send()}},{key:"notifyNext",value:function(){this.throttlingDone()}},{key:"notifyComplete",value:function(){this.throttlingDone()}}]),P}(w.Ds)},88942:function(le,q,f){"use strict";f.d(q,{T:function(){return C}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(64646),R=f(39874);function C(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D;return function(P){return P.lift(new _(O))}}var _=function(){function O(P){(0,V.Z)(this,O),this.errorFactory=P}return(0,Z.Z)(O,[{key:"call",value:function(y,g){return g.subscribe(new N(y,this.errorFactory))}}]),O}(),N=function(O){(0,U.Z)(y,O);var P=(0,B.Z)(y);function y(g,T){var M;return(0,V.Z)(this,y),(M=P.call(this,g)).errorFactory=T,M.hasValue=!1,M}return(0,Z.Z)(y,[{key:"_next",value:function(T){this.hasValue=!0,this.destination.next(T)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var T;try{T=this.errorFactory()}catch(M){T=M}this.destination.error(T)}}]),y}(R.L);function D(){return new w.K}},73445:function(le,q,f){"use strict";f.d(q,{J:function(){return R},R:function(){return C}});var U=f(18967),B=f(46813),V=f(31927),Z=f(4499),w=f(85639);function R(){var _=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B.P;return function(N){return(0,Z.P)(function(){return N.pipe((0,V.R)(function(D,O){var P=D.current;return{value:O,current:_.now(),last:P}},{current:_.now(),value:void 0,last:void 0}),(0,w.U)(function(D){return new C(D.value,D.current-D.last)}))})}}var C=function _(N,D){(0,U.Z)(this,_),this.value=N,this.interval=D}},63706:function(le,q,f){"use strict";f.d(q,{A:function(){return Z},E:function(){return w}});var U=f(18967),B=f(46813),V=f(85639);function Z(){var R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B.P;return(0,V.U)(function(C){return new w(C,R.now())})}var w=function R(C,_){(0,U.Z)(this,R),this.value=C,this.timestamp=_}},55835:function(le,q,f){"use strict";f.d(q,{r:function(){return V}});var U=f(89797),B=f(5051);function V(Z,w){return new U.y(function(R){var C=new B.w,_=0;return C.add(w.schedule(function(){_!==Z.length?(R.next(Z[_++]),R.closed||C.add(this.schedule())):R.complete()})),C})}},60612:function(le,q,f){"use strict";f.d(q,{Q:function(){return Z}});var U=f(89797),B=f(5051),V=f(81695);function Z(w,R){if(!w)throw new Error("Iterable cannot be null");return new U.y(function(C){var N,_=new B.w;return _.add(function(){N&&"function"==typeof N.return&&N.return()}),_.add(R.schedule(function(){N=w[V.hZ](),_.add(R.schedule(function(){if(!C.closed){var D,O;try{var P=N.next();D=P.value,O=P.done}catch(y){return void C.error(y)}O?C.complete():(C.next(D),this.schedule())}}))})),_})}},10498:function(le,q,f){"use strict";f.d(q,{c:function(){return V}});var U=f(89797),B=f(5051);function V(Z,w){return new U.y(function(R){var C=new B.w;return C.add(w.schedule(function(){return Z.then(function(_){C.add(w.schedule(function(){R.next(_),C.add(w.schedule(function(){return R.complete()}))}))},function(_){C.add(w.schedule(function(){return R.error(_)}))})})),C})}},77493:function(le,q,f){"use strict";f.d(q,{x:function(){return P}});var U=f(89797),B=f(5051),V=f(57694),w=f(10498),R=f(55835),C=f(60612),_=f(19104),N=f(36514),D=f(30621),O=f(2762);function P(y,g){if(null!=y){if((0,_.c)(y))return function(y,g){return new U.y(function(T){var M=new B.w;return M.add(g.schedule(function(){var E=y[V.L]();M.add(E.subscribe({next:function(S){M.add(g.schedule(function(){return T.next(S)}))},error:function(S){M.add(g.schedule(function(){return T.error(S)}))},complete:function(){M.add(g.schedule(function(){return T.complete()}))}}))})),M})}(y,g);if((0,N.t)(y))return(0,w.c)(y,g);if((0,D.z)(y))return(0,R.r)(y,g);if((0,O.T)(y)||"string"==typeof y)return(0,C.Q)(y,g)}throw new TypeError((null!==y&&typeof y||y)+" is not observable")}},4065:function(le,q,f){"use strict";f.d(q,{o:function(){return C}});var U=f(18967),B=f(14105),V=f(10509),Z=f(97154),C=function(_){(0,V.Z)(D,_);var N=(0,Z.Z)(D);function D(O,P){var y;return(0,U.Z)(this,D),(y=N.call(this,O,P)).scheduler=O,y.work=P,y.pending=!1,y}return(0,B.Z)(D,[{key:"schedule",value:function(P){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=P;var g=this.id,T=this.scheduler;return null!=g&&(this.id=this.recycleAsyncId(T,g,y)),this.pending=!0,this.delay=y,this.id=this.id||this.requestAsyncId(T,this.id,y),this}},{key:"requestAsyncId",value:function(P,y){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(P.flush.bind(P,this),g)}},{key:"recycleAsyncId",value:function(P,y){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==g&&this.delay===g&&!1===this.pending)return y;clearInterval(y)}},{key:"execute",value:function(P,y){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var g=this._execute(P,y);if(g)return g;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(P,y){var g=!1,T=void 0;try{this.work(P)}catch(M){g=!0,T=!!M&&M||new Error(M)}if(g)return this.unsubscribe(),T}},{key:"_unsubscribe",value:function(){var P=this.id,y=this.scheduler,g=y.actions,T=g.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==T&&g.splice(T,1),null!=P&&(this.id=this.recycleAsyncId(y,P,null)),this.delay=null}}]),D}(function(_){(0,V.Z)(D,_);var N=(0,Z.Z)(D);function D(O,P){return(0,U.Z)(this,D),N.call(this)}return(0,B.Z)(D,[{key:"schedule",value:function(P){return this}}]),D}(f(5051).w))},81572:function(le,q,f){"use strict";f.d(q,{v:function(){return N}});var U=f(18967),B=f(14105),V=f(88009),Z=f(20901),w=f(89200),R=f(10509),C=f(97154),_=f(67801),N=function(D){(0,R.Z)(P,D);var O=(0,C.Z)(P);function P(y){var g,T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.b.now;return(0,U.Z)(this,P),(g=O.call(this,y,function(){return P.delegate&&P.delegate!==(0,V.Z)(g)?P.delegate.now():T()})).actions=[],g.active=!1,g.scheduled=void 0,g}return(0,B.Z)(P,[{key:"schedule",value:function(g){var T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,M=arguments.length>2?arguments[2]:void 0;return P.delegate&&P.delegate!==this?P.delegate.schedule(g,T,M):(0,Z.Z)((0,w.Z)(P.prototype),"schedule",this).call(this,g,T,M)}},{key:"flush",value:function(g){var T=this.actions;if(this.active)T.push(g);else{var M;this.active=!0;do{if(M=g.execute(g.state,g.delay))break}while(g=T.shift());if(this.active=!1,M){for(;g=T.shift();)g.unsubscribe();throw M}}}}]),P}(_.b)},2296:function(le,q,f){"use strict";f.d(q,{y:function(){return N},h:function(){return D}});var U=f(20901),B=f(89200),V=f(18967),Z=f(14105),w=f(10509),R=f(97154),C=f(4065),_=f(81572),N=function(){var O=function(P){(0,w.Z)(g,P);var y=(0,R.Z)(g);function g(){var T,M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return(0,V.Z)(this,g),(T=y.call(this,M,function(){return T.frame})).maxFrames=E,T.frame=0,T.index=-1,T}return(0,Z.Z)(g,[{key:"flush",value:function(){for(var x,S,M=this.actions,E=this.maxFrames;(S=M[0])&&S.delay<=E&&(M.shift(),this.frame=S.delay,!(x=S.execute(S.state,S.delay))););if(x){for(;S=M.shift();)S.unsubscribe();throw x}}}]),g}(_.v);return O.frameTimeFactor=10,O}(),D=function(O){(0,w.Z)(y,O);var P=(0,R.Z)(y);function y(g,T){var M,E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.index+=1;return(0,V.Z)(this,y),(M=P.call(this,g,T)).scheduler=g,M.work=T,M.index=E,M.active=!0,M.index=g.index=E,M}return(0,Z.Z)(y,[{key:"schedule",value:function(T){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return(0,U.Z)((0,B.Z)(y.prototype),"schedule",this).call(this,T,M);this.active=!1;var E=new y(this.scheduler,this.work);return this.add(E),E.schedule(T,M)}},{key:"requestAsyncId",value:function(T,M){var E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=T.frame+E;var x=T.actions;return x.push(this),x.sort(y.sortActions),!0}},{key:"recycleAsyncId",value:function(T,M){}},{key:"_execute",value:function(T,M){if(!0===this.active)return(0,U.Z)((0,B.Z)(y.prototype),"_execute",this).call(this,T,M)}}],[{key:"sortActions",value:function(T,M){return T.delay===M.delay?T.index===M.index?0:T.index>M.index?1:-1:T.delay>M.delay?1:-1}}]),y}(C.o)},58172:function(le,q,f){"use strict";f.d(q,{r:function(){return P},Z:function(){return O}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),w=f(10509),R=f(97154),_=function(y){(0,w.Z)(T,y);var g=(0,R.Z)(T);function T(M,E){var x;return(0,U.Z)(this,T),(x=g.call(this,M,E)).scheduler=M,x.work=E,x}return(0,B.Z)(T,[{key:"requestAsyncId",value:function(E,x){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==S&&S>0?(0,V.Z)((0,Z.Z)(T.prototype),"requestAsyncId",this).call(this,E,x,S):(E.actions.push(this),E.scheduled||(E.scheduled=requestAnimationFrame(function(){return E.flush(null)})))}},{key:"recycleAsyncId",value:function(E,x){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==S&&S>0||null===S&&this.delay>0)return(0,V.Z)((0,Z.Z)(T.prototype),"recycleAsyncId",this).call(this,E,x,S);0===E.actions.length&&(cancelAnimationFrame(x),E.scheduled=void 0)}}]),T}(f(4065).o),O=new(function(y){(0,w.Z)(T,y);var g=(0,R.Z)(T);function T(){return(0,U.Z)(this,T),g.apply(this,arguments)}return(0,B.Z)(T,[{key:"flush",value:function(E){this.active=!0,this.scheduled=void 0;var S,x=this.actions,A=-1,L=x.length;E=E||x.shift();do{if(S=E.execute(E.state,E.delay))break}while(++A2&&void 0!==arguments[2]?arguments[2]:0;return null!==A&&A>0?(0,V.Z)((0,Z.Z)(M.prototype),"requestAsyncId",this).call(this,x,S,A):(x.actions.push(this),x.scheduled||(x.scheduled=C.H.setImmediate(x.flush.bind(x,null))))}},{key:"recycleAsyncId",value:function(x,S){var A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==A&&A>0||null===A&&this.delay>0)return(0,V.Z)((0,Z.Z)(M.prototype),"recycleAsyncId",this).call(this,x,S,A);0===x.actions.length&&(C.H.clearImmediate(S),x.scheduled=void 0)}}]),M}(f(4065).o),P=new(function(g){(0,w.Z)(M,g);var T=(0,R.Z)(M);function M(){return(0,U.Z)(this,M),T.apply(this,arguments)}return(0,B.Z)(M,[{key:"flush",value:function(x){this.active=!0,this.scheduled=void 0;var A,S=this.actions,L=-1,j=S.length;x=x||S.shift();do{if(A=x.execute(x.state,x.delay))break}while(++L1&&void 0!==arguments[1]?arguments[1]:0;return x>0?(0,V.Z)((0,Z.Z)(T.prototype),"schedule",this).call(this,E,x):(this.delay=x,this.state=E,this.scheduler.flush(this),this)}},{key:"execute",value:function(E,x){return x>0||this.closed?(0,V.Z)((0,Z.Z)(T.prototype),"execute",this).call(this,E,x):this._execute(E,x)}},{key:"requestAsyncId",value:function(E,x){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==S&&S>0||null===S&&this.delay>0?(0,V.Z)((0,Z.Z)(T.prototype),"requestAsyncId",this).call(this,E,x,S):E.flush(this)}}]),T}(f(4065).o),O=new(function(y){(0,w.Z)(T,y);var g=(0,R.Z)(T);function T(){return(0,U.Z)(this,T),g.apply(this,arguments)}return T}(f(81572).v))(_),P=O},81695:function(le,q,f){"use strict";function U(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}f.d(q,{hZ:function(){return B}});var B=U()},57694:function(le,q,f){"use strict";f.d(q,{L:function(){return U}});var U=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},79542:function(le,q,f){"use strict";f.d(q,{b:function(){return U}});var U=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},9855:function(le,q,f){"use strict";f.d(q,{W:function(){return B}});var B=function(){function V(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return V.prototype=Object.create(Error.prototype),V}()},64646:function(le,q,f){"use strict";f.d(q,{K:function(){return B}});var B=function(){function V(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return V.prototype=Object.create(Error.prototype),V}()},96421:function(le,q,f){"use strict";f.d(q,{H:function(){return w}});var U=1,B=function(){return Promise.resolve()}(),V={};function Z(C){return C in V&&(delete V[C],!0)}var w={setImmediate:function(_){var N=U++;return V[N]=!0,B.then(function(){return Z(N)&&_()}),N},clearImmediate:function(_){Z(_)}}},1696:function(le,q,f){"use strict";f.d(q,{N:function(){return B}});var B=function(){function V(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return V.prototype=Object.create(Error.prototype),V}()},98691:function(le,q,f){"use strict";f.d(q,{W:function(){return B}});var B=function(){function V(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return V.prototype=Object.create(Error.prototype),V}()},66351:function(le,q,f){"use strict";f.d(q,{B:function(){return B}});var B=function(){function V(Z){return Error.call(this),this.message=Z?"".concat(Z.length," errors occurred during unsubscription:\n").concat(Z.map(function(w,R){return"".concat(R+1,") ").concat(w.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=Z,this}return V.prototype=Object.create(Error.prototype),V}()},2808:function(le,q,f){"use strict";function U(B,V){for(var Z=0,w=V.length;Z=0}},64902:function(le,q,f){"use strict";function U(B){return null!==B&&"object"==typeof B}f.d(q,{K:function(){return U}})},17504:function(le,q,f){"use strict";f.d(q,{b:function(){return B}});var U=f(89797);function B(V){return!!V&&(V instanceof U.y||"function"==typeof V.lift&&"function"==typeof V.subscribe)}},36514:function(le,q,f){"use strict";function U(B){return!!B&&"function"!=typeof B.subscribe&&"function"==typeof B.then}f.d(q,{t:function(){return U}})},91299:function(le,q,f){"use strict";function U(B){return B&&"function"==typeof B.schedule}f.d(q,{K:function(){return U}})},66029:function(le,q,f){"use strict";function U(){}f.d(q,{Z:function(){return U}})},59849:function(le,q,f){"use strict";function U(B,V){function Z(){return!Z.pred.apply(Z.thisArg,arguments)}return Z.pred=B,Z.thisArg=V,Z}f.d(q,{f:function(){return U}})},96194:function(le,q,f){"use strict";f.d(q,{z:function(){return B},U:function(){return V}});var U=f(57070);function B(){for(var Z=arguments.length,w=new Array(Z),R=0;R4&&void 0!==arguments[4]?arguments[4]:new U.d(w,C,_);if(!N.closed)return R instanceof V.y?R.subscribe(N):(0,B.s)(R)(N)}},3410:function(le,q,f){"use strict";f.d(q,{Y:function(){return Z}});var U=f(39874),B=f(79542),V=f(88944);function Z(w,R,C){if(w){if(w instanceof U.L)return w;if(w[B.b])return w[B.b]()}return w||R||C?new U.L(w,R,C):new U.L(V.c)}},73033:function(le,q,f){"use strict";f.r(q),f.d(q,{audit:function(){return U.U},auditTime:function(){return B.e},buffer:function(){return N},bufferCount:function(){return T},bufferTime:function(){return L},bufferToggle:function(){return oe},bufferWhen:function(){return ve},catchError:function(){return gt.K},combineAll:function(){return Rt},combineLatest:function(){return Xe},concat:function(){return Et},concatAll:function(){return vt.u},concatMap:function(){return Xt.b},concatMapTo:function(){return qt},count:function(){return Ct.Q},debounce:function(){return jt},debounceTime:function(){return Ut.b},defaultIfEmpty:function(){return an.d},delay:function(){return An.g},delayWhen:function(){return Zn},dematerialize:function(){return Kt},distinct:function(){return _e},distinctUntilChanged:function(){return Ge.x},distinctUntilKeyChanged:function(){return Ye},elementAt:function(){return cn},endWith:function(){return xn},every:function(){return Nn},exhaust:function(){return Sn},exhaustMap:function(){return pt},expand:function(){return at},filter:function(){return Lt.h},finalize:function(){return Ae.x},find:function(){return Le},findIndex:function(){return mn},first:function(){return Xn.P},flatMap:function(){return zt.VS},groupBy:function(){return Jr.v},ignoreElements:function(){return ai},isEmpty:function(){return co},last:function(){return fa.Z},map:function(){return sn.U},mapTo:function(){return vs.h},materialize:function(){return wa},max:function(){return Yn},merge:function(){return Qt},mergeAll:function(){return Pt.J},mergeMap:function(){return zt.zg},mergeMapTo:function(){return $t},mergeScan:function(){return tn},min:function(){return Wn},multicast:function(){return Gn.O},observeOn:function(){return mi.QV},onErrorResumeNext:function(){return Bi},pairwise:function(){return Jo.G},partition:function(){return Ao},pluck:function(){return wi},publish:function(){return Ui},publishBehavior:function(){return Fa},publishLast:function(){return ho},publishReplay:function(){return Ba},race:function(){return Fo},reduce:function(){return Zi},refCount:function(){return md.x},repeat:function(){return ns},repeatWhen:function(){return fl},retry:function(){return Tu},retryWhen:function(){return xu},sample:function(){return wu},sampleTime:function(){return vd},scan:function(){return Co.R},sequenceEqual:function(){return Ko},share:function(){return Sp.B},shareReplay:function(){return Ee.d},single:function(){return Pe},skip:function(){return we.T},skipLast:function(){return Ft},skipUntil:function(){return pe},skipWhile:function(){return qe},startWith:function(){return ln.O},subscribeOn:function(){return nr},switchAll:function(){return Bt},switchMap:function(){return _r.w},switchMapTo:function(){return Do},take:function(){return rn.q},takeLast:function(){return Fi.h},takeUntil:function(){return ci.R},takeWhile:function(){return Qi.o},tap:function(){return Ea.b},throttle:function(){return Ci.P},throttleTime:function(){return Hi},throwIfEmpty:function(){return Yt.T},timeInterval:function(){return oa.J},timeout:function(){return Nr},timeoutWith:function(){return xp},timestamp:function(){return wp.A},toArray:function(){return kp},window:function(){return Ep},windowCount:function(){return vv},windowTime:function(){return ee},windowToggle:function(){return pn},windowWhen:function(){return $n},withLatestFrom:function(){return wr},zip:function(){return si},zipAll:function(){return vo}});var U=f(67494),B=f(54562),V=f(88009),Z=f(10509),w=f(97154),R=f(18967),C=f(14105),_=f(32124);function N(Re){return function(be){return be.lift(new D(Re))}}var D=function(){function Re(We){(0,R.Z)(this,Re),this.closingNotifier=We}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new O(be,this.closingNotifier))}}]),Re}(),O=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this,Ze)).buffer=[],rt.add((0,_.ft)(De,new _.IY((0,V.Z)(rt)))),rt}return(0,C.Z)(be,[{key:"_next",value:function(De){this.buffer.push(De)}},{key:"notifyNext",value:function(){var De=this.buffer;this.buffer=[],this.destination.next(De)}}]),be}(_.Ds),P=f(20901),y=f(89200),g=f(39874);function T(Re){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(Ze){return Ze.lift(new M(Re,We))}}var M=function(){function Re(We,be){(0,R.Z)(this,Re),this.bufferSize=We,this.startBufferEvery=be,this.subscriberClass=be&&We!==be?x:E}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new this.subscriberClass(be,this.bufferSize,this.startBufferEvery))}}]),Re}(),E=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this,Ze)).bufferSize=De,rt.buffer=[],rt}return(0,C.Z)(be,[{key:"_next",value:function(De){var rt=this.buffer;rt.push(De),rt.length==this.bufferSize&&(this.destination.next(rt),this.buffer=[])}},{key:"_complete",value:function(){var De=this.buffer;De.length>0&&this.destination.next(De),(0,P.Z)((0,y.Z)(be.prototype),"_complete",this).call(this)}}]),be}(g.L),x=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).bufferSize=De,St.startBufferEvery=rt,St.buffers=[],St.count=0,St}return(0,C.Z)(be,[{key:"_next",value:function(De){var rt=this.bufferSize,St=this.startBufferEvery,un=this.buffers,Cn=this.count;this.count++,Cn%St==0&&un.push([]);for(var Mr=un.length;Mr--;){var Oi=un[Mr];Oi.push(De),Oi.length===rt&&(un.splice(Mr,1),this.destination.next(Oi))}}},{key:"_complete",value:function(){for(var De=this.buffers,rt=this.destination;De.length>0;){var St=De.shift();St.length>0&&rt.next(St)}(0,P.Z)((0,y.Z)(be.prototype),"_complete",this).call(this)}}]),be}(g.L),S=f(46813),A=f(91299);function L(Re){var We=arguments.length,be=S.P;(0,A.K)(arguments[arguments.length-1])&&(be=arguments[arguments.length-1],We--);var Ze=null;We>=2&&(Ze=arguments[1]);var De=Number.POSITIVE_INFINITY;return We>=3&&(De=arguments[2]),function(St){return St.lift(new j(Re,Ze,De,be))}}var j=function(){function Re(We,be,Ze,De){(0,R.Z)(this,Re),this.bufferTimeSpan=We,this.bufferCreationInterval=be,this.maxBufferSize=Ze,this.scheduler=De}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new z(be,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}]),Re}(),K=function Re(){(0,R.Z)(this,Re),this.buffer=[]},z=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt,St,un){var Cn;(0,R.Z)(this,be),(Cn=We.call(this,Ze)).bufferTimeSpan=De,Cn.bufferCreationInterval=rt,Cn.maxBufferSize=St,Cn.scheduler=un,Cn.contexts=[];var Mr=Cn.openContext();if(Cn.timespanOnly=null==rt||rt<0,Cn.timespanOnly){var Oi={subscriber:(0,V.Z)(Cn),context:Mr,bufferTimeSpan:De};Cn.add(Mr.closeAction=un.schedule(Q,De,Oi))}else{var Ho={subscriber:(0,V.Z)(Cn),context:Mr},ha={bufferTimeSpan:De,bufferCreationInterval:rt,subscriber:(0,V.Z)(Cn),scheduler:un};Cn.add(Mr.closeAction=un.schedule(ie,De,Ho)),Cn.add(un.schedule(ae,rt,ha))}return Cn}return(0,C.Z)(be,[{key:"_next",value:function(De){for(var un,rt=this.contexts,St=rt.length,Cn=0;Cn0;){var St=De.shift();rt.next(St.buffer)}(0,P.Z)((0,y.Z)(be.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.contexts=null}},{key:"onBufferFull",value:function(De){this.closeContext(De);var rt=De.closeAction;if(rt.unsubscribe(),this.remove(rt),!this.closed&&this.timespanOnly){De=this.openContext();var St=this.bufferTimeSpan;this.add(De.closeAction=this.scheduler.schedule(Q,St,{subscriber:this,context:De,bufferTimeSpan:St}))}}},{key:"openContext",value:function(){var De=new K;return this.contexts.push(De),De}},{key:"closeContext",value:function(De){this.destination.next(De.buffer);var rt=this.contexts;(rt?rt.indexOf(De):-1)>=0&&rt.splice(rt.indexOf(De),1)}}]),be}(g.L);function Q(Re){var We=Re.subscriber,be=Re.context;be&&We.closeContext(be),We.closed||(Re.context=We.openContext(),Re.context.closeAction=this.schedule(Re,Re.bufferTimeSpan))}function ae(Re){var We=Re.bufferCreationInterval,be=Re.bufferTimeSpan,Ze=Re.subscriber,De=Re.scheduler,rt=Ze.openContext();Ze.closed||(Ze.add(rt.closeAction=De.schedule(ie,be,{subscriber:Ze,context:rt})),this.schedule(Re,We))}function ie(Re){Re.subscriber.closeContext(Re.context)}var se=f(5051),ue=f(61454),de=f(7283);function oe(Re,We){return function(Ze){return Ze.lift(new $(Re,We))}}var $=function(){function Re(We,be){(0,R.Z)(this,Re),this.openings=We,this.closingSelector=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new ye(be,this.openings,this.closingSelector))}}]),Re}(),ye=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).closingSelector=rt,St.contexts=[],St.add((0,ue.D)((0,V.Z)(St),De)),St}return(0,C.Z)(be,[{key:"_next",value:function(De){for(var rt=this.contexts,St=rt.length,un=0;un0;){var St=rt.shift();St.subscription.unsubscribe(),St.buffer=null,St.subscription=null}this.contexts=null,(0,P.Z)((0,y.Z)(be.prototype),"_error",this).call(this,De)}},{key:"_complete",value:function(){for(var De=this.contexts;De.length>0;){var rt=De.shift();this.destination.next(rt.buffer),rt.subscription.unsubscribe(),rt.buffer=null,rt.subscription=null}this.contexts=null,(0,P.Z)((0,y.Z)(be.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(De,rt){De?this.closeBuffer(De):this.openBuffer(rt)}},{key:"notifyComplete",value:function(De){this.closeBuffer(De.context)}},{key:"openBuffer",value:function(De){try{var St=this.closingSelector.call(this,De);St&&this.trySubscribe(St)}catch(un){this._error(un)}}},{key:"closeBuffer",value:function(De){var rt=this.contexts;if(rt&&De){var un=De.subscription;this.destination.next(De.buffer),rt.splice(rt.indexOf(De),1),this.remove(un),un.unsubscribe()}}},{key:"trySubscribe",value:function(De){var rt=this.contexts,un=new se.w,Cn={buffer:[],subscription:un};rt.push(Cn);var Mr=(0,ue.D)(this,De,Cn);!Mr||Mr.closed?this.closeBuffer(Cn):(Mr.context=Cn,this.add(Mr),un.add(Mr))}}]),be}(de.L);function ve(Re){return function(We){return We.lift(new et(Re))}}var et=function(){function Re(We){(0,R.Z)(this,Re),this.closingSelector=We}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Ne(be,this.closingSelector))}}]),Re}(),Ne=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this,Ze)).closingSelector=De,rt.subscribing=!1,rt.openBuffer(),rt}return(0,C.Z)(be,[{key:"_next",value:function(De){this.buffer.push(De)}},{key:"_complete",value:function(){var De=this.buffer;De&&this.destination.next(De),(0,P.Z)((0,y.Z)(be.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 St,De=this.closingSubscription;De&&(this.remove(De),De.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{St=(0,this.closingSelector)()}catch(Cn){return this.error(Cn)}De=new se.w,this.closingSubscription=De,this.add(De),this.subscribing=!0,De.add((0,_.ft)(St,new _.IY(this))),this.subscribing=!1}}]),be}(_.Ds),gt=f(13426),_t=f(81370);function Rt(Re){return function(We){return We.lift(new _t.Ms(Re))}}var Se=f(10629),Oe=f(78985),je=f(61493);function Xe(){for(var Re=arguments.length,We=new Array(Re),be=0;be=2;return function(Ze){return Ze.pipe((0,Lt.h)(function(De,rt){return rt===Re}),(0,rn.q)(1),be?(0,an.d)(We):(0,Yt.T)(function(){return new yt.W}))}}var _n=f(43161);function xn(){for(var Re=arguments.length,We=new Array(Re),be=0;be1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,be=arguments.length>2?arguments[2]:void 0;return We=(We||0)<1?Number.POSITIVE_INFINITY:We,function(Ze){return Ze.lift(new Ce(Re,We,be))}}var Ce=function(){function Re(We,be,Ze){(0,R.Z)(this,Re),this.project=We,this.concurrent=be,this.scheduler=Ze}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Fe(be,this.project,this.concurrent,this.scheduler))}}]),Re}(),Fe=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt,St){var un;return(0,R.Z)(this,be),(un=We.call(this,Ze)).project=De,un.concurrent=rt,un.scheduler=St,un.index=0,un.active=0,un.hasCompleted=!1,rt0&&this._next(De.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}],[{key:"dispatch",value:function(De){De.subscriber.subscribeToProjection(De.result,De.value,De.index)}}]),be}(_.Ds),Ae=f(59803);function Le(Re,We){if("function"!=typeof Re)throw new TypeError("predicate is not a function");return function(be){return be.lift(new ze(Re,be,!1,We))}}var ze=function(){function Re(We,be,Ze,De){(0,R.Z)(this,Re),this.predicate=We,this.source=be,this.yieldIndex=Ze,this.thisArg=De}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Nt(be,this.predicate,this.source,this.yieldIndex,this.thisArg))}}]),Re}(),Nt=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt,St,un){var Cn;return(0,R.Z)(this,be),(Cn=We.call(this,Ze)).predicate=De,Cn.source=rt,Cn.yieldIndex=St,Cn.thisArg=un,Cn.index=0,Cn}return(0,C.Z)(be,[{key:"notifyComplete",value:function(De){var rt=this.destination;rt.next(De),rt.complete(),this.unsubscribe()}},{key:"_next",value:function(De){var rt=this.predicate,St=this.thisArg,un=this.index++;try{rt.call(St||this,De,un,this.source)&&this.notifyComplete(this.yieldIndex?un:De)}catch(Mr){this.destination.error(Mr)}}},{key:"_complete",value:function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}]),be}(g.L);function mn(Re,We){return function(be){return be.lift(new ze(Re,be,!0,We))}}var Xn=f(64233),Jr=f(86072);function ai(){return function(We){return We.lift(new Ir)}}var Ir=function(){function Re(){(0,R.Z)(this,Re)}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new vi(be))}}]),Re}(),vi=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(){return(0,R.Z)(this,be),We.apply(this,arguments)}return(0,C.Z)(be,[{key:"_next",value:function(De){}}]),be}(g.L);function co(){return function(Re){return Re.lift(new Gi)}}var Gi=function(){function Re(){(0,R.Z)(this,Re)}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Yo(be))}}]),Re}(),Yo=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze){return(0,R.Z)(this,be),We.call(this,Ze)}return(0,C.Z)(be,[{key:"notifyComplete",value:function(De){var rt=this.destination;rt.next(De),rt.complete()}},{key:"_next",value:function(De){this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),be}(g.L),fa=f(99583),vs=f(12698),bo=f(80286);function wa(){return function(We){return We.lift(new Yi)}}var Yi=function(){function Re(){(0,R.Z)(this,Re)}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new po(be))}}]),Re}(),po=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze){return(0,R.Z)(this,be),We.call(this,Ze)}return(0,C.Z)(be,[{key:"_next",value:function(De){this.destination.next(bo.P.createNext(De))}},{key:"_error",value:function(De){var rt=this.destination;rt.next(bo.P.createError(De)),rt.complete()}},{key:"_complete",value:function(){var De=this.destination;De.next(bo.P.createComplete()),De.complete()}}]),be}(g.L),Co=f(31927),Fi=f(64397),gs=f(96194);function Zi(Re,We){return arguments.length>=2?function(Ze){return(0,gs.z)((0,Co.R)(Re,We),(0,Fi.h)(1),(0,an.d)(We))(Ze)}:function(Ze){return(0,gs.z)((0,Co.R)(function(De,rt,St){return Re(De,rt,St+1)}),(0,Fi.h)(1))(Ze)}}function Yn(Re){return Zi("function"==typeof Re?function(be,Ze){return Re(be,Ze)>0?be:Ze}:function(be,Ze){return be>Ze?be:Ze})}var It=f(55371);function Qt(){for(var Re=arguments.length,We=new Array(Re),be=0;be2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof We?(0,zt.zg)(function(){return Re},We,be):("number"==typeof We&&(be=We),(0,zt.zg)(function(){return Re},be))}function tn(Re,We){var be=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return function(Ze){return Ze.lift(new bn(Re,We,be))}}var bn=function(){function Re(We,be,Ze){(0,R.Z)(this,Re),this.accumulator=We,this.seed=be,this.concurrent=Ze}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Qn(be,this.accumulator,this.seed,this.concurrent))}}]),Re}(),Qn=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt,St){var un;return(0,R.Z)(this,be),(un=We.call(this,Ze)).accumulator=De,un.acc=rt,un.concurrent=St,un.hasValue=!1,un.hasCompleted=!1,un.buffer=[],un.active=0,un.index=0,un}return(0,C.Z)(be,[{key:"_next",value:function(De){if(this.active0?this._next(De.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}]),be}(_.Ds);function Wn(Re){return Zi("function"==typeof Re?function(be,Ze){return Re(be,Ze)<0?be:Ze}:function(be,Ze){return be0&&void 0!==arguments[0]?arguments[0]:-1;return function(We){return 0===Re?(0,pl.c)():We.lift(new _s(Re<0?-1:Re-1,We))}}var _s=function(){function Re(We,be){(0,R.Z)(this,Re),this.count=We,this.source=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Qo(be,this.count,this.source))}}]),Re}(),Qo=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).count=De,St.source=rt,St}return(0,C.Z)(be,[{key:"complete",value:function(){if(!this.isStopped){var De=this.source,rt=this.count;if(0===rt)return(0,P.Z)((0,y.Z)(be.prototype),"complete",this).call(this);rt>-1&&(this.count=rt-1),De.subscribe(this._unsubscribeAndRecycle())}}}]),be}(g.L);function fl(Re){return function(We){return We.lift(new ac(Re))}}var ac=function(){function Re(We){(0,R.Z)(this,Re),this.notifier=We}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new hl(be,this.notifier,Ze))}}]),Re}(),hl=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).notifier=De,St.source=rt,St.sourceIsBeingSubscribedTo=!0,St}return(0,C.Z)(be,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return(0,P.Z)((0,y.Z)(be.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,P.Z)((0,y.Z)(be.prototype),"complete",this).call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}},{key:"_unsubscribe",value:function(){var De=this.notifications,rt=this.retriesSubscription;De&&(De.unsubscribe(),this.notifications=void 0),rt&&(rt.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"_unsubscribeAndRecycle",value:function(){var De=this._unsubscribe;return this._unsubscribe=null,(0,P.Z)((0,y.Z)(be.prototype),"_unsubscribeAndRecycle",this).call(this),this._unsubscribe=De,this}},{key:"subscribeToRetries",value:function(){var De;this.notifications=new fo.xQ;try{De=(0,this.notifier)(this.notifications)}catch(St){return(0,P.Z)((0,y.Z)(be.prototype),"complete",this).call(this)}this.retries=De,this.retriesSubscription=(0,_.ft)(De,new _.IY(this))}}]),be}(_.Ds);function Tu(){var Re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(We){return We.lift(new Bo(Re,We))}}var Bo=function(){function Re(We,be){(0,R.Z)(this,Re),this.count=We,this.source=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Us(be,this.count,this.source))}}]),Re}(),Us=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).count=De,St.source=rt,St}return(0,C.Z)(be,[{key:"error",value:function(De){if(!this.isStopped){var rt=this.source,St=this.count;if(0===St)return(0,P.Z)((0,y.Z)(be.prototype),"error",this).call(this,De);St>-1&&(this.count=St-1),rt.subscribe(this._unsubscribeAndRecycle())}}}]),be}(g.L);function xu(Re){return function(We){return We.lift(new sc(Re,We))}}var sc=function(){function Re(We,be){(0,R.Z)(this,Re),this.notifier=We,this.source=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Ql(be,this.notifier,this.source))}}]),Re}(),Ql=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).notifier=De,St.source=rt,St}return(0,C.Z)(be,[{key:"error",value:function(De){if(!this.isStopped){var rt=this.errors,St=this.retries,un=this.retriesSubscription;if(St)this.errors=void 0,this.retriesSubscription=void 0;else{rt=new fo.xQ;try{St=(0,this.notifier)(rt)}catch(Mr){return(0,P.Z)((0,y.Z)(be.prototype),"error",this).call(this,Mr)}un=(0,_.ft)(St,new _.IY(this))}this._unsubscribeAndRecycle(),this.errors=rt,this.retries=St,this.retriesSubscription=un,rt.next(De)}}},{key:"_unsubscribe",value:function(){var De=this.errors,rt=this.retriesSubscription;De&&(De.unsubscribe(),this.errors=void 0),rt&&(rt.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"notifyNext",value:function(){var De=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=De,this.source.subscribe(this)}}]),be}(_.Ds),md=f(26575);function wu(Re){return function(We){return We.lift(new rs(Re))}}var rs=function(){function Re(We){(0,R.Z)(this,Re),this.notifier=We}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){var De=new ml(be),rt=Ze.subscribe(De);return rt.add((0,_.ft)(this.notifier,new _.IY(De))),rt}}]),Re}(),ml=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(){var Ze;return(0,R.Z)(this,be),(Ze=We.apply(this,arguments)).hasValue=!1,Ze}return(0,C.Z)(be,[{key:"_next",value:function(De){this.value=De,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))}}]),be}(_.Ds);function vd(Re){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.P;return function(be){return be.lift(new Rr(Re,We))}}var Rr=function(){function Re(We,be){(0,R.Z)(this,Re),this.period=We,this.scheduler=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Jn(be,this.period,this.scheduler))}}]),Re}(),Jn=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).period=De,St.scheduler=rt,St.hasValue=!1,St.add(rt.schedule(ku,De,{subscriber:(0,V.Z)(St),period:De})),St}return(0,C.Z)(be,[{key:"_next",value:function(De){this.lastValue=De,this.hasValue=!0}},{key:"notifyNext",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}]),be}(g.L);function ku(Re){var be=Re.period;Re.subscriber.notifyNext(),this.schedule(Re,be)}function Ko(Re,We){return function(be){return be.lift(new ys(Re,We))}}var ys=function(){function Re(We,be){(0,R.Z)(this,Re),this.compareTo=We,this.comparator=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Cr(be,this.compareTo,this.comparator))}}]),Re}(),Cr=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).compareTo=De,St.comparator=rt,St._a=[],St._b=[],St._oneComplete=!1,St.destination.add(De.subscribe(new Uo(Ze,(0,V.Z)(St)))),St}return(0,C.Z)(be,[{key:"_next",value:function(De){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(De),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 De=this._a,rt=this._b,St=this.comparator;De.length>0&&rt.length>0;){var un=De.shift(),Cn=rt.shift(),Mr=!1;try{Mr=St?St(un,Cn):un===Cn}catch(Oi){this.destination.error(Oi)}Mr||this.emit(!1)}}},{key:"emit",value:function(De){var rt=this.destination;rt.next(De),rt.complete()}},{key:"nextB",value:function(De){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(De),this.checkValues())}},{key:"completeB",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}]),be}(g.L),Uo=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this,Ze)).parent=De,rt}return(0,C.Z)(be,[{key:"_next",value:function(De){this.parent.nextB(De)}},{key:"_error",value:function(De){this.parent.error(De),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.completeB(),this.unsubscribe()}}]),be}(g.L),Sp=f(16338),Ee=f(61106),He=f(64646);function Pe(Re){return function(We){return We.lift(new Me(Re,We))}}var Me=function(){function Re(We,be){(0,R.Z)(this,Re),this.predicate=We,this.source=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Ve(be,this.predicate,this.source))}}]),Re}(),Ve=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).predicate=De,St.source=rt,St.seenValue=!1,St.index=0,St}return(0,C.Z)(be,[{key:"applySingleValue",value:function(De){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=De)}},{key:"_next",value:function(De){var rt=this.index++;this.predicate?this.tryNext(De,rt):this.applySingleValue(De)}},{key:"tryNext",value:function(De,rt){try{this.predicate(De,rt,this.source)&&this.applySingleValue(De)}catch(St){this.destination.error(St)}}},{key:"_complete",value:function(){var De=this.destination;this.index>0?(De.next(this.seenValue?this.singleValue:void 0),De.complete()):De.error(new He.K)}}]),be}(g.L),we=f(18756);function Ft(Re){return function(We){return We.lift(new Tn(Re))}}var Tn=function(){function Re(We){if((0,R.Z)(this,Re),this._skipCount=We,this._skipCount<0)throw new yt.W}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(0===this._skipCount?new g.L(be):new zn(be,this._skipCount))}}]),Re}(),zn=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this,Ze))._skipCount=De,rt._count=0,rt._ring=new Array(De),rt}return(0,C.Z)(be,[{key:"_next",value:function(De){var rt=this._skipCount,St=this._count++;if(St1&&void 0!==arguments[1]?arguments[1]:0;return function(Ze){return Ze.lift(new xr(Re,We))}}var xr=function(){function Re(We,be){(0,R.Z)(this,Re),this.scheduler=We,this.delay=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return new Mn.e(Ze,this.delay,this.scheduler).subscribe(be)}}]),Re}(),_r=f(34487),Wt=f(57070);function Bt(){return(0,_r.w)(Wt.y)}function Do(Re,We){return We?(0,_r.w)(function(){return Re},We):(0,_r.w)(function(){return Re})}var ci=f(44213),Qi=f(49196),Ea=f(59371),Ci=f(243);function Hi(Re){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.P,be=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ci.d;return function(Ze){return Ze.lift(new lc(Re,We,be.leading,be.trailing))}}var lc=function(){function Re(We,be,Ze,De){(0,R.Z)(this,Re),this.duration=We,this.scheduler=be,this.leading=Ze,this.trailing=De}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Ua(be,this.duration,this.scheduler,this.leading,this.trailing))}}]),Re}(),Ua=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt,St,un){var Cn;return(0,R.Z)(this,be),(Cn=We.call(this,Ze)).duration=De,Cn.scheduler=rt,Cn.leading=St,Cn.trailing=un,Cn._hasTrailingValue=!1,Cn._trailingValue=null,Cn}return(0,C.Z)(be,[{key:"_next",value:function(De){this.throttled?this.trailing&&(this._trailingValue=De,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Ha,this.duration,{subscriber:this})),this.leading?this.destination.next(De):this.trailing&&(this._trailingValue=De,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 De=this.throttled;De&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),De.unsubscribe(),this.remove(De),this.throttled=null)}}]),be}(g.L);function Ha(Re){Re.subscriber.clearThrottle()}var oa=f(73445),bs=f(98691),Tp=f(88972);function xp(Re,We){var be=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S.P;return function(Ze){var De=(0,Tp.J)(Re),rt=De?+Re-be.now():Math.abs(Re);return Ze.lift(new Hs(rt,De,We,be))}}var Hs=function(){function Re(We,be,Ze,De){(0,R.Z)(this,Re),this.waitFor=We,this.absoluteTimeout=be,this.withObservable=Ze,this.scheduler=De}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new uc(be,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),Re}(),uc=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt,St,un){var Cn;return(0,R.Z)(this,be),(Cn=We.call(this,Ze)).absoluteTimeout=De,Cn.waitFor=rt,Cn.withObservable=St,Cn.scheduler=un,Cn.scheduleTimeout(),Cn}return(0,C.Z)(be,[{key:"scheduleTimeout",value:function(){var De=this.action;De?this.action=De.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(be.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(De){this.absoluteTimeout||this.scheduleTimeout(),(0,P.Z)((0,y.Z)(be.prototype),"_next",this).call(this,De)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(De){var rt=De.withObservable;De._unsubscribeAndRecycle(),De.add((0,_.ft)(rt,new _.IY(De)))}}]),be}(_.Ds),vl=f(11363);function Nr(Re){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.P;return xp(Re,(0,vl._)(new bs.W),We)}var wp=f(63706);function gd(Re,We,be){return 0===be?[We]:(Re.push(We),Re)}function kp(){return Zi(gd,[])}function Ep(Re){return function(be){return be.lift(new _d(Re))}}var _d=function(){function Re(We){(0,R.Z)(this,Re),this.windowBoundaries=We}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){var De=new Kl(be),rt=Ze.subscribe(De);return rt.closed||De.add((0,_.ft)(this.windowBoundaries,new _.IY(De))),rt}}]),Re}(),Kl=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze){var De;return(0,R.Z)(this,be),(De=We.call(this,Ze)).window=new fo.xQ,Ze.next(De.window),De}return(0,C.Z)(be,[{key:"notifyNext",value:function(){this.openWindow()}},{key:"notifyError",value:function(De){this._error(De)}},{key:"notifyComplete",value:function(){this._complete()}},{key:"_next",value:function(De){this.window.next(De)}},{key:"_error",value:function(De){this.window.error(De),this.destination.error(De)}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete()}},{key:"_unsubscribe",value:function(){this.window=null}},{key:"openWindow",value:function(){var De=this.window;De&&De.complete();var rt=this.destination,St=this.window=new fo.xQ;rt.next(St)}}]),be}(_.Ds);function vv(Re){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(Ze){return Ze.lift(new ge(Re,We))}}var ge=function(){function Re(We,be){(0,R.Z)(this,Re),this.windowSize=We,this.startWindowEvery=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new me(be,this.windowSize,this.startWindowEvery))}}]),Re}(),me=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).destination=Ze,St.windowSize=De,St.startWindowEvery=rt,St.windows=[new fo.xQ],St.count=0,Ze.next(St.windows[0]),St}return(0,C.Z)(be,[{key:"_next",value:function(De){for(var rt=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,St=this.destination,un=this.windowSize,Cn=this.windows,Mr=Cn.length,Oi=0;Oi=0&&Ho%rt==0&&!this.closed&&Cn.shift().complete(),++this.count%rt==0&&!this.closed){var ha=new fo.xQ;Cn.push(ha),St.next(ha)}}},{key:"_error",value:function(De){var rt=this.windows;if(rt)for(;rt.length>0&&!this.closed;)rt.shift().error(De);this.destination.error(De)}},{key:"_complete",value:function(){var De=this.windows;if(De)for(;De.length>0&&!this.closed;)De.shift().complete();this.destination.complete()}},{key:"_unsubscribe",value:function(){this.count=0,this.windows=null}}]),be}(g.L),J=f(11705);function ee(Re){var We=S.P,be=null,Ze=Number.POSITIVE_INFINITY;return(0,A.K)(arguments[3])&&(We=arguments[3]),(0,A.K)(arguments[2])?We=arguments[2]:(0,J.k)(arguments[2])&&(Ze=Number(arguments[2])),(0,A.K)(arguments[1])?We=arguments[1]:(0,J.k)(arguments[1])&&(be=Number(arguments[1])),function(rt){return rt.lift(new Te(Re,be,Ze,We))}}var Te=function(){function Re(We,be,Ze,De){(0,R.Z)(this,Re),this.windowTimeSpan=We,this.windowCreationInterval=be,this.maxWindowSize=Ze,this.scheduler=De}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new ut(be,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}]),Re}(),Be=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(){var Ze;return(0,R.Z)(this,be),(Ze=We.apply(this,arguments))._numberOfNextedValues=0,Ze}return(0,C.Z)(be,[{key:"next",value:function(De){this._numberOfNextedValues++,(0,P.Z)((0,y.Z)(be.prototype),"next",this).call(this,De)}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}]),be}(fo.xQ),ut=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt,St,un){var Cn;(0,R.Z)(this,be),(Cn=We.call(this,Ze)).destination=Ze,Cn.windowTimeSpan=De,Cn.windowCreationInterval=rt,Cn.maxWindowSize=St,Cn.scheduler=un,Cn.windows=[];var Mr=Cn.openWindow();if(null!==rt&&rt>=0){var Oi={subscriber:(0,V.Z)(Cn),window:Mr,context:null},Ho={windowTimeSpan:De,windowCreationInterval:rt,subscriber:(0,V.Z)(Cn),scheduler:un};Cn.add(un.schedule(en,De,Oi)),Cn.add(un.schedule(Zt,rt,Ho))}else{var ha={subscriber:(0,V.Z)(Cn),window:Mr,windowTimeSpan:De};Cn.add(un.schedule(Tt,De,ha))}return Cn}return(0,C.Z)(be,[{key:"_next",value:function(De){for(var rt=this.windows,St=rt.length,un=0;un=this.maxWindowSize&&this.closeWindow(Cn))}}},{key:"_error",value:function(De){for(var rt=this.windows;rt.length>0;)rt.shift().error(De);this.destination.error(De)}},{key:"_complete",value:function(){for(var De=this.windows;De.length>0;){var rt=De.shift();rt.closed||rt.complete()}this.destination.complete()}},{key:"openWindow",value:function(){var De=new Be;return this.windows.push(De),this.destination.next(De),De}},{key:"closeWindow",value:function(De){De.complete();var rt=this.windows;rt.splice(rt.indexOf(De),1)}}]),be}(g.L);function Tt(Re){var We=Re.subscriber,be=Re.windowTimeSpan,Ze=Re.window;Ze&&We.closeWindow(Ze),Re.window=We.openWindow(),this.schedule(Re,be)}function Zt(Re){var We=Re.windowTimeSpan,be=Re.subscriber,Ze=Re.scheduler,De=Re.windowCreationInterval,rt=be.openWindow(),un={action:this,subscription:null};un.subscription=Ze.schedule(en,We,{subscriber:be,window:rt,context:un}),this.add(un.subscription),this.schedule(Re,De)}function en(Re){var We=Re.subscriber,be=Re.window,Ze=Re.context;Ze&&Ze.action&&Ze.subscription&&Ze.action.remove(Ze.subscription),We.closeWindow(be)}function pn(Re,We){return function(be){return be.lift(new Pn(Re,We))}}var Pn=function(){function Re(We,be){(0,R.Z)(this,Re),this.openings=We,this.closingSelector=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Un(be,this.openings,this.closingSelector))}}]),Re}(),Un=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).openings=De,St.closingSelector=rt,St.contexts=[],St.add(St.openSubscription=(0,ue.D)((0,V.Z)(St),De,De)),St}return(0,C.Z)(be,[{key:"_next",value:function(De){var rt=this.contexts;if(rt)for(var St=rt.length,un=0;un0&&void 0!==arguments[0]?arguments[0]:null;De&&(this.remove(De),De.unsubscribe());var rt=this.window;rt&&rt.complete();var un,St=this.window=new fo.xQ;this.destination.next(St);try{var Cn=this.closingSelector;un=Cn()}catch(Mr){return this.destination.error(Mr),void this.window.error(Mr)}this.add(this.closingNotification=(0,ue.D)(this,un))}}]),be}(de.L);function wr(){for(var Re=arguments.length,We=new Array(Re),be=0;be0){var Cn=un.indexOf(St);-1!==Cn&&un.splice(Cn,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(De){if(0===this.toRespond.length){var rt=[De].concat((0,Se.Z)(this.values));this.project?this._tryProject(rt):this.destination.next(rt)}}},{key:"_tryProject",value:function(De){var rt;try{rt=this.project.apply(this,De)}catch(St){return void this.destination.error(St)}this.destination.next(rt)}}]),be}(de.L),Si=f(43008);function si(){for(var Re=arguments.length,We=new Array(Re),be=0;be1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,U.Z)(this,A),this.subscribedFrame=L,this.unsubscribedFrame=j},y=(f(2808),function(A){(0,w.Z)(j,A);var L=(0,R.Z)(j);function j(K,z){var Q;return(0,U.Z)(this,j),(Q=L.call(this,function(ae){var ie=this,se=ie.logSubscribedFrame(),ue=new N.w;return ue.add(new N.w(function(){ie.logUnsubscribedFrame(se)})),ie.scheduleMessages(ae),ue})).messages=K,Q.subscriptions=[],Q.scheduler=z,Q}return(0,B.Z)(j,[{key:"scheduleMessages",value:function(z){for(var Q=this.messages.length,ae=0;ae1&&void 0!==arguments[1]?arguments[1]:null,ie=[],se={actual:ie,ready:!1},ue=j.parseMarblesAsSubscriptions(ae,this.runMode),de=ue.subscribedFrame===Number.POSITIVE_INFINITY?0:ue.subscribedFrame,oe=ue.unsubscribedFrame;this.schedule(function(){$=z.subscribe(function(ve){var et=ve;ve instanceof C.y&&(et=Q.materializeInnerObservable(et,Q.frame)),ie.push({frame:Q.frame,notification:_.P.createNext(et)})},function(ve){ie.push({frame:Q.frame,notification:_.P.createError(ve)})},function(){ie.push({frame:Q.frame,notification:_.P.createComplete()})})},de),oe!==Number.POSITIVE_INFINITY&&this.schedule(function(){return $.unsubscribe()},oe),this.flushTests.push(se);var ye=this.runMode;return{toBe:function(et,Ne,gt){se.ready=!0,se.expected=j.parseMarbles(et,Ne,gt,!0,ye)}}}},{key:"expectSubscriptions",value:function(z){var Q={actual:z,ready:!1};this.flushTests.push(Q);var ae=this.runMode;return{toBe:function(se){var ue="string"==typeof se?[se]:se;Q.ready=!0,Q.expected=ue.map(function(de){return j.parseMarblesAsSubscriptions(de,ae)})}}}},{key:"flush",value:function(){for(var z=this,Q=this.hotObservables;Q.length>0;)Q.shift().setup();(0,V.Z)((0,Z.Z)(j.prototype),"flush",this).call(this),this.flushTests=this.flushTests.filter(function(ae){return!ae.ready||(z.assertDeepEqual(ae.actual,ae.expected),!1)})}},{key:"run",value:function(z){var Q=j.frameTimeFactor,ae=this.maxFrames;j.frameTimeFactor=1,this.maxFrames=Number.POSITIVE_INFINITY,this.runMode=!0,E.v.delegate=this;var ie={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 se=z(ie);return this.flush(),se}finally{j.frameTimeFactor=Q,this.maxFrames=ae,this.runMode=!1,E.v.delegate=void 0}}}],[{key:"parseMarblesAsSubscriptions",value:function(z){var Q=this,ae=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof z)return new D(Number.POSITIVE_INFINITY);for(var ie=z.length,se=-1,ue=Number.POSITIVE_INFINITY,de=Number.POSITIVE_INFINITY,oe=0,$=0;$-1?se:oe,ve(1);break;case"!":if(de!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");de=se>-1?se:oe;break;default:if(ae&&et.match(/^[0-9]$/)&&(0===$||" "===z[$-1])){var Ne=z.slice($),gt=Ne.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(gt){$+=gt[0].length-1;var _t=parseFloat(gt[1]),Rt=gt[2],Se=void 0;switch(Rt){case"ms":Se=_t;break;case"s":Se=1e3*_t;break;case"m":Se=1e3*_t*60}ve(Se/this.frameTimeFactor);break}}throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+et+"'.")}oe=ye}return de<0?new D(ue):new D(ue,de)}},{key:"parseMarbles",value:function(z,Q,ae){var ie=this,se=arguments.length>3&&void 0!==arguments[3]&&arguments[3],ue=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(-1!==z.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var de=z.length,oe=[],$=ue?z.replace(/^[ ]+/,"").indexOf("^"):z.indexOf("^"),ye=-1===$?0:$*-this.frameTimeFactor,ve="object"!=typeof Q?function(Et){return Et}:function(Et){return se&&Q[Et]instanceof y?Q[Et].messages:Q[Et]},et=-1,Ne=0;Ne-1?et:ye,notification:Rt}),ye=gt}return oe}}]),j}(M.y)},4194:function(le,q,f){"use strict";f.r(q),f.d(q,{webSocket:function(){return U.j},WebSocketSubject:function(){return B.p}});var U=f(99298),B=f(46095)},26918:function(le,q,f){"use strict";f(68663)},56205:function(le,q){"use strict";var U;!function(){var B=q||{};void 0!==(U=function(){return B}.apply(q,[]))&&(le.exports=U),B.default=B;var V="http://www.w3.org/2000/xmlns/",w="http://www.w3.org/2000/svg",C=/url\(["']?(.+?)["']?\)/,_={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"},N=function(ue){return ue instanceof HTMLElement||ue instanceof SVGElement},D=function(ue){if(!N(ue))throw new Error("an HTMLElement or SVGElement is required; got "+ue)},O=function(ue){return new Promise(function(de,oe){N(ue)?de(ue):oe(new Error("an HTMLElement or SVGElement is required; got "+ue))})},y=function(ue){var de=Object.keys(_).filter(function(oe){return ue.indexOf("."+oe)>0}).map(function(oe){return _[oe]});return de?de[0]:(console.error("Unknown font format for "+ue+". Fonts may not be working correctly."),"application/octet-stream")},T=function(ue,de,oe){var $=ue.viewBox&&ue.viewBox.baseVal&&ue.viewBox.baseVal[oe]||null!==de.getAttribute(oe)&&!de.getAttribute(oe).match(/%$/)&&parseInt(de.getAttribute(oe))||ue.getBoundingClientRect()[oe]||parseInt(de.style[oe])||parseInt(window.getComputedStyle(ue).getPropertyValue(oe));return null==$||isNaN(parseFloat($))?0:$},x=function(ue){for(var de=window.atob(ue.split(",")[1]),oe=ue.split(",")[0].split(":")[1].split(";")[0],$=new ArrayBuffer(de.length),ye=new Uint8Array($),ve=0;ve *")).forEach(function(jt){jt.setAttributeNS(V,"xmlns","svg"===jt.tagName?w:"http://www.w3.org/1999/xhtml")}),!ct)return ae(se,ue).then(function(jt){var bt=document.createElement("style");bt.setAttribute("type","text/css"),bt.innerHTML="";var nn=document.createElement("defs");nn.appendChild(bt),Xe.insertBefore(nn,Xe.firstChild);var Ut=document.createElement("div");Ut.appendChild(Xe);var an=Ut.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if("function"!=typeof de)return{src:an,width:Et,height:vt};de(an,Et,vt)});var qt=document.createElement("div");qt.appendChild(Xe);var Ct=qt.innerHTML;if("function"!=typeof de)return{src:Ct,width:Et,height:vt};de(Ct,Et,vt)})},B.svgAsDataUri=function(se,ue,de){return D(se),B.prepareSvg(se,ue).then(function(oe){var ye=oe.width,ve=oe.height,et="data:image/svg+xml;base64,"+window.btoa(function(ue){return decodeURIComponent(encodeURIComponent(ue).replace(/%([0-9A-F]{2})/g,function(de,oe){var $=String.fromCharCode("0x"+oe);return"%"===$?"%25":$}))}(']>'+oe.src));return"function"==typeof de&&de(et,ye,ve),et})},B.svgAsPngUri=function(se,ue,de){D(se);var oe=ue||{},$=oe.encoderType,ye=void 0===$?"image/png":$,ve=oe.encoderOptions,et=void 0===ve?.8:ve,Ne=oe.canvg,gt=function(Rt){var Se=Rt.src,Oe=Rt.width,je=Rt.height,ct=document.createElement("canvas"),Xe=ct.getContext("2d"),Ht=window.devicePixelRatio||1;ct.width=Oe*Ht,ct.height=je*Ht,ct.style.width=ct.width+"px",ct.style.height=ct.height+"px",Xe.setTransform(Ht,0,0,Ht,0,0),Ne?Ne(ct,Se):Xe.drawImage(Se,0,0);var Et=void 0;try{Et=ct.toDataURL(ye,et)}catch(vt){if("undefined"!=typeof SecurityError&&vt instanceof SecurityError||"SecurityError"===vt.name)return void console.error("Rendered SVG images cannot be downloaded in this browser.");throw vt}return"function"==typeof de&&de(Et,ct.width,ct.height),Promise.resolve(Et)};return Ne?B.prepareSvg(se,ue).then(gt):B.svgAsDataUri(se,ue).then(function(_t){return new Promise(function(Rt,Se){var Oe=new Image;Oe.onload=function(){return Rt(gt({src:Oe,width:Oe.width,height:Oe.height}))},Oe.onerror=function(){Se("There was an error loading the data URI as an image on the following SVG\n"+window.atob(_t.slice(26))+"Open the following link to see browser's diagnosis\n"+_t)},Oe.src=_t})})},B.download=function(se,ue,de){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(x(ue),se);else{var oe=document.createElement("a");if("download"in oe){oe.download=se,oe.style.display="none",document.body.appendChild(oe);try{var $=x(ue),ye=URL.createObjectURL($);oe.href=ye,oe.onclick=function(){return requestAnimationFrame(function(){return URL.revokeObjectURL(ye)})}}catch(ve){console.error(ve),console.warn("Error while getting object URL. Falling back to string URL."),oe.href=ue}oe.click(),document.body.removeChild(oe)}else de&&de.popup&&(de.popup.document.title=se,de.popup.location.replace(ue))}},B.saveSvg=function(se,ue,de){var oe=ie();return O(se).then(function($){return B.svgAsDataUri($,de||{})}).then(function($){return B.download(ue,$,oe)})},B.saveSvgAsPng=function(se,ue,de){var oe=ie();return O(se).then(function($){return B.svgAsPngUri($,de||{})}).then(function($){return B.download(ue,$,oe)})}}()},5042:function(le,q,f){var U=f(25523),B=Object.prototype.hasOwnProperty,V="undefined"!=typeof Map;function Z(){this._array=[],this._set=V?new Map:Object.create(null)}Z.fromArray=function(R,C){for(var _=new Z,N=0,D=R.length;N=0)return C}else{var _=U.toSetString(R);if(B.call(this._set,_))return this._set[_]}throw new Error('"'+R+'" is not in the set.')},Z.prototype.at=function(R){if(R>=0&&R>>=5)>0&&(O|=32),D+=U.encode(O)}while(P>0);return D},q.decode=function(N,D,O){var T,M,P=N.length,y=0,g=0;do{if(D>=P)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(M=U.decode(N.charCodeAt(D++))))throw new Error("Invalid base64 digit: "+N.charAt(D-1));T=!!(32&M),y+=(M&=31)<>1;return 1==(1&_)?-D:D}(y),O.rest=D}},7698:function(le,q){var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");q.encode=function(U){if(0<=U&&UR||C==R&&w.generatedColumn>=Z.generatedColumn||U.compareByGeneratedPositionsInflated(Z,w)<=0}(this._last,w)?(this._sorted=!1,this._array.push(w)):(this._last=w,this._array.push(w))},V.prototype.toArray=function(){return this._sorted||(this._array.sort(U.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},q.H=V},30673:function(le,q,f){var U=f(78619),B=f(25523),V=f(5042).I,Z=f(66306).H;function w(R){R||(R={}),this._file=B.getArg(R,"file",null),this._sourceRoot=B.getArg(R,"sourceRoot",null),this._skipValidation=B.getArg(R,"skipValidation",!1),this._sources=new V,this._names=new V,this._mappings=new Z,this._sourcesContents=null}w.prototype._version=3,w.fromSourceMap=function(C){var _=C.sourceRoot,N=new w({file:C.file,sourceRoot:_});return C.eachMapping(function(D){var O={generated:{line:D.generatedLine,column:D.generatedColumn}};null!=D.source&&(O.source=D.source,null!=_&&(O.source=B.relative(_,O.source)),O.original={line:D.originalLine,column:D.originalColumn},null!=D.name&&(O.name=D.name)),N.addMapping(O)}),C.sources.forEach(function(D){var O=D;null!==_&&(O=B.relative(_,D)),N._sources.has(O)||N._sources.add(O);var P=C.sourceContentFor(D);null!=P&&N.setSourceContent(D,P)}),N},w.prototype.addMapping=function(C){var _=B.getArg(C,"generated"),N=B.getArg(C,"original",null),D=B.getArg(C,"source",null),O=B.getArg(C,"name",null);this._skipValidation||this._validateMapping(_,N,D,O),null!=D&&(D=String(D),this._sources.has(D)||this._sources.add(D)),null!=O&&(O=String(O),this._names.has(O)||this._names.add(O)),this._mappings.add({generatedLine:_.line,generatedColumn:_.column,originalLine:null!=N&&N.line,originalColumn:null!=N&&N.column,source:D,name:O})},w.prototype.setSourceContent=function(C,_){var N=C;null!=this._sourceRoot&&(N=B.relative(this._sourceRoot,N)),null!=_?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[B.toSetString(N)]=_):this._sourcesContents&&(delete this._sourcesContents[B.toSetString(N)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},w.prototype.applySourceMap=function(C,_,N){var D=_;if(null==_){if(null==C.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');D=C.file}var O=this._sourceRoot;null!=O&&(D=B.relative(O,D));var P=new V,y=new V;this._mappings.unsortedForEach(function(g){if(g.source===D&&null!=g.originalLine){var T=C.originalPositionFor({line:g.originalLine,column:g.originalColumn});null!=T.source&&(g.source=T.source,null!=N&&(g.source=B.join(N,g.source)),null!=O&&(g.source=B.relative(O,g.source)),g.originalLine=T.line,g.originalColumn=T.column,null!=T.name&&(g.name=T.name))}var M=g.source;null!=M&&!P.has(M)&&P.add(M);var E=g.name;null!=E&&!y.has(E)&&y.add(E)},this),this._sources=P,this._names=y,C.sources.forEach(function(g){var T=C.sourceContentFor(g);null!=T&&(null!=N&&(g=B.join(N,g)),null!=O&&(g=B.relative(O,g)),this.setSourceContent(g,T))},this)},w.prototype._validateMapping=function(C,_,N,D){if(_&&"number"!=typeof _.line&&"number"!=typeof _.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(!(C&&"line"in C&&"column"in C&&C.line>0&&C.column>=0)||_||N||D){if(C&&"line"in C&&"column"in C&&_&&"line"in _&&"column"in _&&C.line>0&&C.column>=0&&_.line>0&&_.column>=0&&N)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:C,source:N,original:_,name:D}))}},w.prototype._serializeMappings=function(){for(var g,T,M,E,C=0,_=1,N=0,D=0,O=0,P=0,y="",x=this._mappings.toArray(),S=0,A=x.length;S0){if(!B.compareByGeneratedPositionsInflated(T,x[S-1]))continue;g+=","}g+=U.encode(T.generatedColumn-C),C=T.generatedColumn,null!=T.source&&(E=this._sources.indexOf(T.source),g+=U.encode(E-P),P=E,g+=U.encode(T.originalLine-1-D),D=T.originalLine-1,g+=U.encode(T.originalColumn-N),N=T.originalColumn,null!=T.name&&(M=this._names.indexOf(T.name),g+=U.encode(M-O),O=M)),y+=g}return y},w.prototype._generateSourcesContent=function(C,_){return C.map(function(N){if(!this._sourcesContents)return null;null!=_&&(N=B.relative(_,N));var D=B.toSetString(N);return Object.prototype.hasOwnProperty.call(this._sourcesContents,D)?this._sourcesContents[D]:null},this)},w.prototype.toJSON=function(){var C={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(C.file=this._file),null!=this._sourceRoot&&(C.sourceRoot=this._sourceRoot),this._sourcesContents&&(C.sourcesContent=this._generateSourcesContent(C.sources,C.sourceRoot)),C},w.prototype.toString=function(){return JSON.stringify(this.toJSON())},q.h=w},25523:function(le,q){q.getArg=function(S,A,L){if(A in S)return S[A];if(3===arguments.length)return L;throw new Error('"'+A+'" is a required argument.')};var U=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,B=/^data:.+\,.+$/;function V(S){var A=S.match(U);return A?{scheme:A[1],auth:A[2],host:A[3],port:A[4],path:A[5]}:null}function Z(S){var A="";return S.scheme&&(A+=S.scheme+":"),A+="//",S.auth&&(A+=S.auth+"@"),S.host&&(A+=S.host),S.port&&(A+=":"+S.port),S.path&&(A+=S.path),A}function w(S){var A=S,L=V(S);if(L){if(!L.path)return S;A=L.path}for(var z,j=q.isAbsolute(A),K=A.split(/\/+/),Q=0,ae=K.length-1;ae>=0;ae--)"."===(z=K[ae])?K.splice(ae,1):".."===z?Q++:Q>0&&(""===z?(K.splice(ae+1,Q),Q=0):(K.splice(ae,2),Q--));return""===(A=K.join("/"))&&(A=j?"/":"."),L?(L.path=A,Z(L)):A}function R(S,A){""===S&&(S="."),""===A&&(A=".");var L=V(A),j=V(S);if(j&&(S=j.path||"/"),L&&!L.scheme)return j&&(L.scheme=j.scheme),Z(L);if(L||A.match(B))return A;if(j&&!j.host&&!j.path)return j.host=A,Z(j);var K="/"===A.charAt(0)?A:w(S.replace(/\/+$/,"")+"/"+A);return j?(j.path=K,Z(j)):K}q.urlParse=V,q.urlGenerate=Z,q.normalize=w,q.join=R,q.isAbsolute=function(S){return"/"===S.charAt(0)||U.test(S)},q.relative=function(S,A){""===S&&(S="."),S=S.replace(/\/$/,"");for(var L=0;0!==A.indexOf(S+"/");){var j=S.lastIndexOf("/");if(j<0||(S=S.slice(0,j)).match(/^([^\/]+:\/)?\/*$/))return A;++L}return Array(L+1).join("../")+A.substr(S.length+1)};var _=!("__proto__"in Object.create(null));function N(S){return S}function P(S){if(!S)return!1;var A=S.length;if(A<9||95!==S.charCodeAt(A-1)||95!==S.charCodeAt(A-2)||111!==S.charCodeAt(A-3)||116!==S.charCodeAt(A-4)||111!==S.charCodeAt(A-5)||114!==S.charCodeAt(A-6)||112!==S.charCodeAt(A-7)||95!==S.charCodeAt(A-8)||95!==S.charCodeAt(A-9))return!1;for(var L=A-10;L>=0;L--)if(36!==S.charCodeAt(L))return!1;return!0}function T(S,A){return S===A?0:null===S?1:null===A?-1:S>A?1:-1}q.toSetString=_?N:function(S){return P(S)?"$"+S:S},q.fromSetString=_?N:function(S){return P(S)?S.slice(1):S},q.compareByOriginalPositions=function(S,A,L){var j=T(S.source,A.source);return 0!==j||0!=(j=S.originalLine-A.originalLine)||0!=(j=S.originalColumn-A.originalColumn)||L||0!=(j=S.generatedColumn-A.generatedColumn)||0!=(j=S.generatedLine-A.generatedLine)?j:T(S.name,A.name)},q.compareByGeneratedPositionsDeflated=function(S,A,L){var j=S.generatedLine-A.generatedLine;return 0!==j||0!=(j=S.generatedColumn-A.generatedColumn)||L||0!==(j=T(S.source,A.source))||0!=(j=S.originalLine-A.originalLine)||0!=(j=S.originalColumn-A.originalColumn)?j:T(S.name,A.name)},q.compareByGeneratedPositionsInflated=function(S,A){var L=S.generatedLine-A.generatedLine;return 0!==L||0!=(L=S.generatedColumn-A.generatedColumn)||0!==(L=T(S.source,A.source))||0!=(L=S.originalLine-A.originalLine)||0!=(L=S.originalColumn-A.originalColumn)?L:T(S.name,A.name)},q.parseSourceMapInput=function(S){return JSON.parse(S.replace(/^\)]}'[^\n]*\n/,""))},q.computeSourceURL=function(S,A,L){if(A=A||"",S&&("/"!==S[S.length-1]&&"/"!==A[0]&&(S+="/"),A=S+A),L){var j=V(L);if(!j)throw new Error("sourceMapURL could not be parsed");if(j.path){var K=j.path.lastIndexOf("/");K>=0&&(j.path=j.path.substring(0,K+1))}A=R(Z(j),A)}return w(A)}},52402:function(le){le.exports=function(q){"use strict";var U=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function V(M,E){var x=M[0],S=M[1],A=M[2],L=M[3];S=((S+=((A=((A+=((L=((L+=((x=((x+=(S&A|~S&L)+E[0]-680876936|0)<<7|x>>>25)+S|0)&S|~x&A)+E[1]-389564586|0)<<12|L>>>20)+x|0)&x|~L&S)+E[2]+606105819|0)<<17|A>>>15)+L|0)&L|~A&x)+E[3]-1044525330|0)<<22|S>>>10)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S&A|~S&L)+E[4]-176418897|0)<<7|x>>>25)+S|0)&S|~x&A)+E[5]+1200080426|0)<<12|L>>>20)+x|0)&x|~L&S)+E[6]-1473231341|0)<<17|A>>>15)+L|0)&L|~A&x)+E[7]-45705983|0)<<22|S>>>10)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S&A|~S&L)+E[8]+1770035416|0)<<7|x>>>25)+S|0)&S|~x&A)+E[9]-1958414417|0)<<12|L>>>20)+x|0)&x|~L&S)+E[10]-42063|0)<<17|A>>>15)+L|0)&L|~A&x)+E[11]-1990404162|0)<<22|S>>>10)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S&A|~S&L)+E[12]+1804603682|0)<<7|x>>>25)+S|0)&S|~x&A)+E[13]-40341101|0)<<12|L>>>20)+x|0)&x|~L&S)+E[14]-1502002290|0)<<17|A>>>15)+L|0)&L|~A&x)+E[15]+1236535329|0)<<22|S>>>10)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S&L|A&~L)+E[1]-165796510|0)<<5|x>>>27)+S|0)&A|S&~A)+E[6]-1069501632|0)<<9|L>>>23)+x|0)&S|x&~S)+E[11]+643717713|0)<<14|A>>>18)+L|0)&x|L&~x)+E[0]-373897302|0)<<20|S>>>12)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S&L|A&~L)+E[5]-701558691|0)<<5|x>>>27)+S|0)&A|S&~A)+E[10]+38016083|0)<<9|L>>>23)+x|0)&S|x&~S)+E[15]-660478335|0)<<14|A>>>18)+L|0)&x|L&~x)+E[4]-405537848|0)<<20|S>>>12)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S&L|A&~L)+E[9]+568446438|0)<<5|x>>>27)+S|0)&A|S&~A)+E[14]-1019803690|0)<<9|L>>>23)+x|0)&S|x&~S)+E[3]-187363961|0)<<14|A>>>18)+L|0)&x|L&~x)+E[8]+1163531501|0)<<20|S>>>12)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S&L|A&~L)+E[13]-1444681467|0)<<5|x>>>27)+S|0)&A|S&~A)+E[2]-51403784|0)<<9|L>>>23)+x|0)&S|x&~S)+E[7]+1735328473|0)<<14|A>>>18)+L|0)&x|L&~x)+E[12]-1926607734|0)<<20|S>>>12)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S^A^L)+E[5]-378558|0)<<4|x>>>28)+S|0)^S^A)+E[8]-2022574463|0)<<11|L>>>21)+x|0)^x^S)+E[11]+1839030562|0)<<16|A>>>16)+L|0)^L^x)+E[14]-35309556|0)<<23|S>>>9)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S^A^L)+E[1]-1530992060|0)<<4|x>>>28)+S|0)^S^A)+E[4]+1272893353|0)<<11|L>>>21)+x|0)^x^S)+E[7]-155497632|0)<<16|A>>>16)+L|0)^L^x)+E[10]-1094730640|0)<<23|S>>>9)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S^A^L)+E[13]+681279174|0)<<4|x>>>28)+S|0)^S^A)+E[0]-358537222|0)<<11|L>>>21)+x|0)^x^S)+E[3]-722521979|0)<<16|A>>>16)+L|0)^L^x)+E[6]+76029189|0)<<23|S>>>9)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S^A^L)+E[9]-640364487|0)<<4|x>>>28)+S|0)^S^A)+E[12]-421815835|0)<<11|L>>>21)+x|0)^x^S)+E[15]+530742520|0)<<16|A>>>16)+L|0)^L^x)+E[2]-995338651|0)<<23|S>>>9)+A|0,S=((S+=((L=((L+=(S^((x=((x+=(A^(S|~L))+E[0]-198630844|0)<<6|x>>>26)+S|0)|~A))+E[7]+1126891415|0)<<10|L>>>22)+x|0)^((A=((A+=(x^(L|~S))+E[14]-1416354905|0)<<15|A>>>17)+L|0)|~x))+E[5]-57434055|0)<<21|S>>>11)+A|0,S=((S+=((L=((L+=(S^((x=((x+=(A^(S|~L))+E[12]+1700485571|0)<<6|x>>>26)+S|0)|~A))+E[3]-1894986606|0)<<10|L>>>22)+x|0)^((A=((A+=(x^(L|~S))+E[10]-1051523|0)<<15|A>>>17)+L|0)|~x))+E[1]-2054922799|0)<<21|S>>>11)+A|0,S=((S+=((L=((L+=(S^((x=((x+=(A^(S|~L))+E[8]+1873313359|0)<<6|x>>>26)+S|0)|~A))+E[15]-30611744|0)<<10|L>>>22)+x|0)^((A=((A+=(x^(L|~S))+E[6]-1560198380|0)<<15|A>>>17)+L|0)|~x))+E[13]+1309151649|0)<<21|S>>>11)+A|0,S=((S+=((L=((L+=(S^((x=((x+=(A^(S|~L))+E[4]-145523070|0)<<6|x>>>26)+S|0)|~A))+E[11]-1120210379|0)<<10|L>>>22)+x|0)^((A=((A+=(x^(L|~S))+E[2]+718787259|0)<<15|A>>>17)+L|0)|~x))+E[9]-343485551|0)<<21|S>>>11)+A|0,M[0]=x+M[0]|0,M[1]=S+M[1]|0,M[2]=A+M[2]|0,M[3]=L+M[3]|0}function Z(M){var x,E=[];for(x=0;x<64;x+=4)E[x>>2]=M.charCodeAt(x)+(M.charCodeAt(x+1)<<8)+(M.charCodeAt(x+2)<<16)+(M.charCodeAt(x+3)<<24);return E}function w(M){var x,E=[];for(x=0;x<64;x+=4)E[x>>2]=M[x]+(M[x+1]<<8)+(M[x+2]<<16)+(M[x+3]<<24);return E}function R(M){var S,A,L,j,K,z,E=M.length,x=[1732584193,-271733879,-1732584194,271733878];for(S=64;S<=E;S+=64)V(x,Z(M.substring(S-64,S)));for(A=(M=M.substring(S-64)).length,L=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],S=0;S>2]|=M.charCodeAt(S)<<(S%4<<3);if(L[S>>2]|=128<<(S%4<<3),S>55)for(V(x,L),S=0;S<16;S+=1)L[S]=0;return j=(j=8*E).toString(16).match(/(.*?)(.{0,8})$/),K=parseInt(j[2],16),z=parseInt(j[1],16)||0,L[14]=K,L[15]=z,V(x,L),x}function _(M){var x,E="";for(x=0;x<4;x+=1)E+=U[M>>8*x+4&15]+U[M>>8*x&15];return E}function N(M){var E;for(E=0;EL?new ArrayBuffer(0):(j=L-A,K=new ArrayBuffer(j),z=new Uint8Array(K),Q=new Uint8Array(this,A,j),z.set(Q),K)}}(),T.prototype.append=function(M){return this.appendBinary(D(M)),this},T.prototype.appendBinary=function(M){this._buff+=M,this._length+=M.length;var x,E=this._buff.length;for(x=64;x<=E;x+=64)V(this._hash,Z(this._buff.substring(x-64,x)));return this._buff=this._buff.substring(x-64),this},T.prototype.end=function(M){var S,L,E=this._buff,x=E.length,A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(S=0;S>2]|=E.charCodeAt(S)<<(S%4<<3);return this._finish(A,x),L=N(this._hash),M&&(L=g(L)),this.reset(),L},T.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},T.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},T.prototype.setState=function(M){return this._buff=M.buff,this._length=M.length,this._hash=M.hash,this},T.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},T.prototype._finish=function(M,E){var S,A,L,x=E;if(M[x>>2]|=128<<(x%4<<3),x>55)for(V(this._hash,M),x=0;x<16;x+=1)M[x]=0;S=(S=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),A=parseInt(S[2],16),L=parseInt(S[1],16)||0,M[14]=A,M[15]=L,V(this._hash,M)},T.hash=function(M,E){return T.hashBinary(D(M),E)},T.hashBinary=function(M,E){var S=N(R(M));return E?g(S):S},(T.ArrayBuffer=function(){this.reset()}).prototype.append=function(M){var S,E=function(M,E,x){var S=new Uint8Array(M.byteLength+E.byteLength);return S.set(new Uint8Array(M)),S.set(new Uint8Array(E),M.byteLength),x?S:S.buffer}(this._buff.buffer,M,!0),x=E.length;for(this._length+=M.byteLength,S=64;S<=x;S+=64)V(this._hash,w(E.subarray(S-64,S)));return this._buff=S-64>2]|=E[A]<<(A%4<<3);return this._finish(S,x),L=N(this._hash),M&&(L=g(L)),this.reset(),L},T.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},T.ArrayBuffer.prototype.getState=function(){var M=T.prototype.getState.call(this);return M.buff=function(M){return String.fromCharCode.apply(null,new Uint8Array(M))}(M.buff),M},T.ArrayBuffer.prototype.setState=function(M){return M.buff=function(M,E){var L,x=M.length,S=new ArrayBuffer(x),A=new Uint8Array(S);for(L=0;L>2]|=M[S]<<(S%4<<3);if(L[S>>2]|=128<<(S%4<<3),S>55)for(V(x,L),S=0;S<16;S+=1)L[S]=0;return j=(j=8*E).toString(16).match(/(.*?)(.{0,8})$/),K=parseInt(j[2],16),z=parseInt(j[1],16)||0,L[14]=K,L[15]=z,V(x,L),x}(new Uint8Array(M)));return E?g(S):S},T}()},49940:function(le,q,f){var U=f(33499),B=f(54968),V=B;V.v1=U,V.v4=B,le.exports=V},83702:function(le){for(var q=[],f=0;f<256;++f)q[f]=(f+256).toString(16).substr(1);le.exports=function(B,V){var Z=V||0;return[q[B[Z++]],q[B[Z++]],q[B[Z++]],q[B[Z++]],"-",q[B[Z++]],q[B[Z++]],"-",q[B[Z++]],q[B[Z++]],"-",q[B[Z++]],q[B[Z++]],"-",q[B[Z++]],q[B[Z++]],q[B[Z++]],q[B[Z++]],q[B[Z++]],q[B[Z++]]].join("")}},1942:function(le){var q="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(q){var f=new Uint8Array(16);le.exports=function(){return q(f),f}}else{var U=new Array(16);le.exports=function(){for(var Z,V=0;V<16;V++)0==(3&V)&&(Z=4294967296*Math.random()),U[V]=Z>>>((3&V)<<3)&255;return U}}},33499:function(le,q,f){var V,Z,U=f(1942),B=f(83702),w=0,R=0;le.exports=function(_,N,D){var O=N&&D||0,P=N||[],y=(_=_||{}).node||V,g=void 0!==_.clockseq?_.clockseq:Z;if(null==y||null==g){var T=U();null==y&&(y=V=[1|T[0],T[1],T[2],T[3],T[4],T[5]]),null==g&&(g=Z=16383&(T[6]<<8|T[7]))}var M=void 0!==_.msecs?_.msecs:(new Date).getTime(),E=void 0!==_.nsecs?_.nsecs:R+1,x=M-w+(E-R)/1e4;if(x<0&&void 0===_.clockseq&&(g=g+1&16383),(x<0||M>w)&&void 0===_.nsecs&&(E=0),E>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");w=M,R=E,Z=g;var S=(1e4*(268435455&(M+=122192928e5))+E)%4294967296;P[O++]=S>>>24&255,P[O++]=S>>>16&255,P[O++]=S>>>8&255,P[O++]=255&S;var A=M/4294967296*1e4&268435455;P[O++]=A>>>8&255,P[O++]=255&A,P[O++]=A>>>24&15|16,P[O++]=A>>>16&255,P[O++]=g>>>8|128,P[O++]=255&g;for(var L=0;L<6;++L)P[O+L]=y[L];return N||B(P)}},54968:function(le,q,f){var U=f(1942),B=f(83702);le.exports=function(Z,w,R){var C=w&&R||0;"string"==typeof Z&&(w="binary"===Z?new Array(16):null,Z=null);var _=(Z=Z||{}).random||(Z.rng||U)();if(_[6]=15&_[6]|64,_[8]=63&_[8]|128,w)for(var N=0;N<16;++N)w[C+N]=_[N];return w||B(_)}},3397:function(le){window,le.exports=function(q){var f={};function U(B){if(f[B])return f[B].exports;var V=f[B]={i:B,l:!1,exports:{}};return q[B].call(V.exports,V,V.exports,U),V.l=!0,V.exports}return U.m=q,U.c=f,U.d=function(B,V,Z){U.o(B,V)||Object.defineProperty(B,V,{enumerable:!0,get:Z})},U.r=function(B){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(B,"__esModule",{value:!0})},U.t=function(B,V){if(1&V&&(B=U(B)),8&V||4&V&&"object"==typeof B&&B&&B.__esModule)return B;var Z=Object.create(null);if(U.r(Z),Object.defineProperty(Z,"default",{enumerable:!0,value:B}),2&V&&"string"!=typeof B)for(var w in B)U.d(Z,w,function(R){return B[R]}.bind(null,w));return Z},U.n=function(B){var V=B&&B.__esModule?function(){return B.default}:function(){return B};return U.d(V,"a",V),V},U.o=function(B,V){return Object.prototype.hasOwnProperty.call(B,V)},U.p="",U(U.s=0)}([function(q,f,U){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.AttachAddon=void 0;var B=function(){function Z(w,R){this._disposables=[],this._socket=w,this._socket.binaryType="arraybuffer",this._bidirectional=!R||!1!==R.bidirectional}return Z.prototype.activate=function(w){var R=this;this._disposables.push(V(this._socket,"message",function(C){var _=C.data;w.write("string"==typeof _?_:new Uint8Array(_))})),this._bidirectional&&(this._disposables.push(w.onData(function(C){return R._sendData(C)})),this._disposables.push(w.onBinary(function(C){return R._sendBinary(C)}))),this._disposables.push(V(this._socket,"close",function(){return R.dispose()})),this._disposables.push(V(this._socket,"error",function(){return R.dispose()}))},Z.prototype.dispose=function(){this._disposables.forEach(function(w){return w.dispose()})},Z.prototype._sendData=function(w){1===this._socket.readyState&&this._socket.send(w)},Z.prototype._sendBinary=function(w){if(1===this._socket.readyState){for(var R=new Uint8Array(w.length),C=0;CS;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},x.prototype._createAccessibilityTreeNode=function(){var S=document.createElement("div");return S.setAttribute("role","listitem"),S.tabIndex=-1,this._refreshRowDimensions(S),S},x.prototype._onTab=function(S){for(var A=0;A0?this._charsToConsume.shift()!==S&&(this._charsToAnnounce+=S):this._charsToAnnounce+=S,"\n"===S&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=N.tooMuchOutput)),D.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){A._accessibilityTreeRoot.appendChild(A._liveRegion)},0))},x.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,D.isMac&&T.removeElementFromParent(this._liveRegion)},x.prototype._onKey=function(S){this._clearLiveRegion(),this._charsToConsume.push(S)},x.prototype._refreshRows=function(S,A){this._renderRowsDebouncer.refresh(S,A,this._terminal.rows)},x.prototype._renderRows=function(S,A){for(var L=this._terminal.buffer,j=L.lines.length.toString(),K=S;K<=A;K++){var z=L.translateBufferLineToString(L.ydisp+K,!0),Q=(L.ydisp+K+1).toString(),ae=this._rowElements[K];ae&&(0===z.length?ae.innerText="\xa0":ae.textContent=z,ae.setAttribute("aria-posinset",Q),ae.setAttribute("aria-setsize",j))}this._announceCharacters()},x.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var S=0;S>>0},(C=w.color||(w.color={})).blend=function(P,y){var g=(255&y.rgba)/255;if(1===g)return{css:y.css,rgba:y.rgba};var M=y.rgba>>16&255,E=y.rgba>>8&255,x=P.rgba>>24&255,S=P.rgba>>16&255,A=P.rgba>>8&255,L=x+Math.round(((y.rgba>>24&255)-x)*g),j=S+Math.round((M-S)*g),K=A+Math.round((E-A)*g);return{css:R.toCss(L,j,K),rgba:R.toRgba(L,j,K)}},C.isOpaque=function(P){return 255==(255&P.rgba)},C.ensureContrastRatio=function(P,y,g){var T=N.ensureContrastRatio(P.rgba,y.rgba,g);if(T)return N.toColor(T>>24&255,T>>16&255,T>>8&255)},C.opaque=function(P){var y=(255|P.rgba)>>>0,g=N.toChannels(y);return{css:R.toCss(g[0],g[1],g[2]),rgba:y}},C.opacity=function(P,y){var g=Math.round(255*y),T=N.toChannels(P.rgba),M=T[0],E=T[1],x=T[2];return{css:R.toCss(M,E,x,g),rgba:R.toRgba(M,E,x,g)}},(w.css||(w.css={})).toColor=function(P){switch(P.length){case 7:return{css:P,rgba:(parseInt(P.slice(1),16)<<8|255)>>>0};case 9:return{css:P,rgba:parseInt(P.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(P){function y(g,T,M){var E=g/255,x=T/255,S=M/255;return.2126*(E<=.03928?E/12.92:Math.pow((E+.055)/1.055,2.4))+.7152*(x<=.03928?x/12.92:Math.pow((x+.055)/1.055,2.4))+.0722*(S<=.03928?S/12.92:Math.pow((S+.055)/1.055,2.4))}P.relativeLuminance=function(g){return y(g>>16&255,g>>8&255,255&g)},P.relativeLuminance2=y}(_=w.rgb||(w.rgb={})),function(P){function y(T,M,E){for(var x=T>>24&255,S=T>>16&255,A=T>>8&255,L=M>>24&255,j=M>>16&255,K=M>>8&255,z=O(_.relativeLuminance2(L,K,j),_.relativeLuminance2(x,S,A));z0||j>0||K>0);)L-=Math.max(0,Math.ceil(.1*L)),j-=Math.max(0,Math.ceil(.1*j)),K-=Math.max(0,Math.ceil(.1*K)),z=O(_.relativeLuminance2(L,K,j),_.relativeLuminance2(x,S,A));return(L<<24|j<<16|K<<8|255)>>>0}function g(T,M,E){for(var x=T>>24&255,S=T>>16&255,A=T>>8&255,L=M>>24&255,j=M>>16&255,K=M>>8&255,z=O(_.relativeLuminance2(L,K,j),_.relativeLuminance2(x,S,A));z>>0}P.ensureContrastRatio=function(T,M,E){var x=_.relativeLuminance(T>>8),S=_.relativeLuminance(M>>8);if(O(x,S)>24&255,T>>16&255,T>>8&255,255&T]},P.toColor=function(T,M,E){return{css:R.toCss(T,M,E),rgba:R.toRgba(T,M,E)}}}(N=w.rgba||(w.rgba={})),w.toPaddedHex=D,w.contrastRatio=O},7239:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.ColorContrastCache=void 0;var R=function(){function C(){this._color={},this._rgba={}}return C.prototype.clear=function(){this._color={},this._rgba={}},C.prototype.setCss=function(_,N,D){this._rgba[_]||(this._rgba[_]={}),this._rgba[_][N]=D},C.prototype.getCss=function(_,N){return this._rgba[_]?this._rgba[_][N]:void 0},C.prototype.setColor=function(_,N,D){this._color[_]||(this._color[_]={}),this._color[_][N]=D},C.prototype.getColor=function(_,N){return this._color[_]?this._color[_][N]:void 0},C}();w.ColorContrastCache=R},5680:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.ColorManager=w.DEFAULT_ANSI_COLORS=void 0;var C=R(4774),_=R(7239),N=C.css.toColor("#ffffff"),D=C.css.toColor("#000000"),O=C.css.toColor("#ffffff"),P=C.css.toColor("#000000"),y={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};w.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var T=[C.css.toColor("#2e3436"),C.css.toColor("#cc0000"),C.css.toColor("#4e9a06"),C.css.toColor("#c4a000"),C.css.toColor("#3465a4"),C.css.toColor("#75507b"),C.css.toColor("#06989a"),C.css.toColor("#d3d7cf"),C.css.toColor("#555753"),C.css.toColor("#ef2929"),C.css.toColor("#8ae234"),C.css.toColor("#fce94f"),C.css.toColor("#729fcf"),C.css.toColor("#ad7fa8"),C.css.toColor("#34e2e2"),C.css.toColor("#eeeeec")],M=[0,95,135,175,215,255],E=0;E<216;E++){var x=M[E/36%6|0],S=M[E/6%6|0],A=M[E%6];T.push({css:C.channels.toCss(x,S,A),rgba:C.channels.toRgba(x,S,A)})}for(E=0;E<24;E++){var L=8+10*E;T.push({css:C.channels.toCss(L,L,L),rgba:C.channels.toRgba(L,L,L)})}return T}());var g=function(){function T(M,E){this.allowTransparency=E;var x=M.createElement("canvas");x.width=1,x.height=1;var S=x.getContext("2d");if(!S)throw new Error("Could not get rendering context");this._ctx=S,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new _.ColorContrastCache,this.colors={foreground:N,background:D,cursor:O,cursorAccent:P,selectionTransparent:y,selectionOpaque:C.color.blend(D,y),ansi:w.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return T.prototype.onOptionsChange=function(M){"minimumContrastRatio"===M&&this._contrastCache.clear()},T.prototype.setTheme=function(M){void 0===M&&(M={}),this.colors.foreground=this._parseColor(M.foreground,N),this.colors.background=this._parseColor(M.background,D),this.colors.cursor=this._parseColor(M.cursor,O,!0),this.colors.cursorAccent=this._parseColor(M.cursorAccent,P,!0),this.colors.selectionTransparent=this._parseColor(M.selection,y,!0),this.colors.selectionOpaque=C.color.blend(this.colors.background,this.colors.selectionTransparent),C.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=C.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(M.black,w.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(M.red,w.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(M.green,w.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(M.yellow,w.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(M.blue,w.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(M.magenta,w.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(M.cyan,w.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(M.white,w.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(M.brightBlack,w.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(M.brightRed,w.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(M.brightGreen,w.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(M.brightYellow,w.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(M.brightBlue,w.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(M.brightMagenta,w.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(M.brightCyan,w.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(M.brightWhite,w.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},T.prototype._parseColor=function(M,E,x){if(void 0===x&&(x=this.allowTransparency),void 0===M)return E;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=M,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+M+" is invalid using fallback "+E.css),E;this._ctx.fillRect(0,0,1,1);var S=this._ctx.getImageData(0,0,1,1).data;if(255!==S[3]){if(!x)return console.warn("Color: "+M+" is using transparency, but allowTransparency is false. Using fallback "+E.css+"."),E;var A=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(ae){return Number(ae)}),L=A[0],j=A[1],K=A[2],Q=Math.round(255*A[3]);return{rgba:C.channels.toRgba(L,j,K,Q),css:M}}return{css:this._ctx.fillStyle,rgba:C.channels.toRgba(S[0],S[1],S[2],S[3])}},T}();w.ColorManager=g},9631:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.removeElementFromParent=void 0,w.removeElementFromParent=function(){for(var R,C=[],_=0;_=0;A--)(E=y[A])&&(S=(x<3?E(S):x>3?E(g,T,S):E(g,T))||S);return x>3&&S&&Object.defineProperty(g,T,S),S},_=this&&this.__param||function(y,g){return function(T,M){g(T,M,y)}};Object.defineProperty(w,"__esModule",{value:!0}),w.MouseZone=w.Linkifier=void 0;var N=R(8460),D=R(2585),O=function(){function y(g,T,M){this._bufferService=g,this._logService=T,this._unicodeService=M,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new N.EventEmitter,this._onHideLinkUnderline=new N.EventEmitter,this._onLinkTooltip=new N.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(y.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),y.prototype.attachToDom=function(g,T){this._element=g,this._mouseZoneManager=T},y.prototype.linkifyRows=function(g,T){var M=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=g,this._rowsToLinkify.end=T):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,g),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,T)),this._mouseZoneManager.clearAll(g,T),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return M._linkifyRows()},y._timeBeforeLatency))},y.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var g=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var T=g.ydisp+this._rowsToLinkify.start;if(!(T>=g.lines.length)){for(var M=g.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,E=Math.ceil(2e3/this._bufferService.cols),x=this._bufferService.buffer.iterator(!1,T,M,E,E);x.hasNext();)for(var S=x.next(),A=0;A=0;T--)if(g.priority<=this._linkMatchers[T].priority)return void this._linkMatchers.splice(T+1,0,g);this._linkMatchers.splice(0,0,g)}else this._linkMatchers.push(g)},y.prototype.deregisterLinkMatcher=function(g){for(var T=0;T>9&511:void 0;M.validationCallback?M.validationCallback(z,function(ue){x._rowsTimeoutId||ue&&x._addLink(Q[1],Q[0]-x._bufferService.buffer.ydisp,z,M,se)}):j._addLink(Q[1],Q[0]-j._bufferService.buffer.ydisp,z,M,se)},j=this;null!==(E=S.exec(T))&&"break"!==L(););},y.prototype._addLink=function(g,T,M,E,x){var S=this;if(this._mouseZoneManager&&this._element){var A=this._unicodeService.getStringCellWidth(M),L=g%this._bufferService.cols,j=T+Math.floor(g/this._bufferService.cols),K=(L+A)%this._bufferService.cols,z=j+Math.floor((L+A)/this._bufferService.cols);0===K&&(K=this._bufferService.cols,z--),this._mouseZoneManager.add(new P(L+1,j+1,K+1,z+1,function(Q){if(E.handler)return E.handler(Q,M);var ae=window.open();ae?(ae.opener=null,ae.location.href=M):console.warn("Opening link blocked as opener could not be cleared")},function(){S._onShowLinkUnderline.fire(S._createLinkHoverEvent(L,j,K,z,x)),S._element.classList.add("xterm-cursor-pointer")},function(Q){S._onLinkTooltip.fire(S._createLinkHoverEvent(L,j,K,z,x)),E.hoverTooltipCallback&&E.hoverTooltipCallback(Q,M,{start:{x:L,y:j},end:{x:K,y:z}})},function(){S._onHideLinkUnderline.fire(S._createLinkHoverEvent(L,j,K,z,x)),S._element.classList.remove("xterm-cursor-pointer"),E.hoverLeaveCallback&&E.hoverLeaveCallback()},function(Q){return!E.willLinkActivate||E.willLinkActivate(Q,M)}))}},y.prototype._createLinkHoverEvent=function(g,T,M,E,x){return{x1:g,y1:T,x2:M,y2:E,cols:this._bufferService.cols,fg:x}},y._timeBeforeLatency=200,y=C([_(0,D.IBufferService),_(1,D.ILogService),_(2,D.IUnicodeService)],y)}();w.Linkifier=O;var P=function(g,T,M,E,x,S,A,L,j){this.x1=g,this.y1=T,this.x2=M,this.y2=E,this.clickCallback=x,this.hoverCallback=S,this.tooltipCallback=A,this.leaveCallback=L,this.willLinkActivate=j};w.MouseZone=P},6465:function(Z,w,R){var C,_=this&&this.__extends||(C=function(E,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,A){S.__proto__=A}||function(S,A){for(var L in A)Object.prototype.hasOwnProperty.call(A,L)&&(S[L]=A[L])})(E,x)},function(M,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function x(){this.constructor=M}C(M,E),M.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),N=this&&this.__decorate||function(M,E,x,S){var A,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(M,E,x,S);else for(var K=M.length-1;K>=0;K--)(A=M[K])&&(j=(L<3?A(j):L>3?A(E,x,j):A(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(M,E){return function(x,S){E(x,S,M)}};Object.defineProperty(w,"__esModule",{value:!0}),w.Linkifier2=void 0;var O=R(2585),P=R(8460),y=R(844),g=R(3656),T=function(M){function E(x){var S=M.call(this)||this;return S._bufferService=x,S._linkProviders=[],S._linkCacheDisposables=[],S._isMouseOut=!0,S._activeLine=-1,S._onShowLinkUnderline=S.register(new P.EventEmitter),S._onHideLinkUnderline=S.register(new P.EventEmitter),S.register(y.getDisposeArrayDisposable(S._linkCacheDisposables)),S}return _(E,M),Object.defineProperty(E.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),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}),E.prototype.registerLinkProvider=function(x){var S=this;return this._linkProviders.push(x),{dispose:function(){var L=S._linkProviders.indexOf(x);-1!==L&&S._linkProviders.splice(L,1)}}},E.prototype.attachToDom=function(x,S,A){var L=this;this._element=x,this._mouseService=S,this._renderService=A,this.register(g.addDisposableDomListener(this._element,"mouseleave",function(){L._isMouseOut=!0,L._clearCurrentLink()})),this.register(g.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(g.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},E.prototype._onMouseMove=function(x){if(this._lastMouseEvent=x,this._element&&this._mouseService){var S=this._positionFromMouseEvent(x,this._element,this._mouseService);if(S){this._isMouseOut=!1;for(var A=x.composedPath(),L=0;Lx?this._bufferService.cols:z.link.range.end.x,ie=z.link.range.start.y=x&&this._currentLink.link.range.end.y<=S)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,y.disposeArray(this._linkCacheDisposables))},E.prototype._handleNewLink=function(x){var S=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var A=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);A&&this._linkAtPosition(x.link,A)&&(this._currentLink=x,this._currentLink.state={decorations:{underline:void 0===x.link.decorations||x.link.decorations.underline,pointerCursor:void 0===x.link.decorations||x.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,x.link,this._lastMouseEvent),x.link.decorations={},Object.defineProperties(x.link.decorations,{pointerCursor:{get:function(){var j,K;return null===(K=null===(j=S._currentLink)||void 0===j?void 0:j.state)||void 0===K?void 0:K.decorations.pointerCursor},set:function(j){var K,z;(null===(K=S._currentLink)||void 0===K?void 0:K.state)&&S._currentLink.state.decorations.pointerCursor!==j&&(S._currentLink.state.decorations.pointerCursor=j,S._currentLink.state.isHovered&&(null===(z=S._element)||void 0===z||z.classList.toggle("xterm-cursor-pointer",j)))}},underline:{get:function(){var j,K;return null===(K=null===(j=S._currentLink)||void 0===j?void 0:j.state)||void 0===K?void 0:K.decorations.underline},set:function(j){var K,z,Q;(null===(K=S._currentLink)||void 0===K?void 0:K.state)&&(null===(Q=null===(z=S._currentLink)||void 0===z?void 0:z.state)||void 0===Q?void 0:Q.decorations.underline)!==j&&(S._currentLink.state.decorations.underline=j,S._currentLink.state.isHovered&&S._fireUnderlineEvent(x.link,j))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(L){S._clearCurrentLink(0===L.start?0:L.start+1+S._bufferService.buffer.ydisp,L.end+1+S._bufferService.buffer.ydisp)})))}},E.prototype._linkHover=function(x,S,A){var L;(null===(L=this._currentLink)||void 0===L?void 0:L.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(S,!0),this._currentLink.state.decorations.pointerCursor&&x.classList.add("xterm-cursor-pointer")),S.hover&&S.hover(A,S.text)},E.prototype._fireUnderlineEvent=function(x,S){var A=x.range,L=this._bufferService.buffer.ydisp,j=this._createLinkUnderlineEvent(A.start.x-1,A.start.y-L-1,A.end.x,A.end.y-L-1,void 0);(S?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(j)},E.prototype._linkLeave=function(x,S,A){var L;(null===(L=this._currentLink)||void 0===L?void 0:L.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(S,!1),this._currentLink.state.decorations.pointerCursor&&x.classList.remove("xterm-cursor-pointer")),S.leave&&S.leave(A,S.text)},E.prototype._linkAtPosition=function(x,S){var L=x.range.start.yS.y;return(x.range.start.y===x.range.end.y&&x.range.start.x<=S.x&&x.range.end.x>=S.x||L&&x.range.end.x>=S.x||j&&x.range.start.x<=S.x||L&&j)&&x.range.start.y<=S.y&&x.range.end.y>=S.y},E.prototype._positionFromMouseEvent=function(x,S,A){var L=A.getCoords(x,S,this._bufferService.cols,this._bufferService.rows);if(L)return{x:L[0],y:L[1]+this._bufferService.buffer.ydisp}},E.prototype._createLinkUnderlineEvent=function(x,S,A,L,j){return{x1:x,y1:S,x2:A,y2:L,cols:this._bufferService.cols,fg:j}},N([D(0,O.IBufferService)],E)}(y.Disposable);w.Linkifier2=T},9042:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.tooMuchOutput=w.promptLabel=void 0,w.promptLabel="Terminal input",w.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(Z,w,R){var C,_=this&&this.__extends||(C=function(E,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,A){S.__proto__=A}||function(S,A){for(var L in A)Object.prototype.hasOwnProperty.call(A,L)&&(S[L]=A[L])})(E,x)},function(M,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function x(){this.constructor=M}C(M,E),M.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),N=this&&this.__decorate||function(M,E,x,S){var A,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(M,E,x,S);else for(var K=M.length-1;K>=0;K--)(A=M[K])&&(j=(L<3?A(j):L>3?A(E,x,j):A(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(M,E){return function(x,S){E(x,S,M)}};Object.defineProperty(w,"__esModule",{value:!0}),w.MouseZoneManager=void 0;var O=R(844),P=R(3656),y=R(4725),g=R(2585),T=function(M){function E(x,S,A,L,j,K){var z=M.call(this)||this;return z._element=x,z._screenElement=S,z._bufferService=A,z._mouseService=L,z._selectionService=j,z._optionsService=K,z._zones=[],z._areZonesActive=!1,z._lastHoverCoords=[void 0,void 0],z._initialSelectionLength=0,z.register(P.addDisposableDomListener(z._element,"mousedown",function(Q){return z._onMouseDown(Q)})),z._mouseMoveListener=function(Q){return z._onMouseMove(Q)},z._mouseLeaveListener=function(Q){return z._onMouseLeave(Q)},z._clickListener=function(Q){return z._onClick(Q)},z}return _(E,M),E.prototype.dispose=function(){M.prototype.dispose.call(this),this._deactivate()},E.prototype.add=function(x){this._zones.push(x),1===this._zones.length&&this._activate()},E.prototype.clearAll=function(x,S){if(0!==this._zones.length){x&&S||(x=0,S=this._bufferService.rows-1);for(var A=0;Ax&&L.y1<=S+1||L.y2>x&&L.y2<=S+1||L.y1S+1)&&(this._currentZone&&this._currentZone===L&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(A--,1))}0===this._zones.length&&this._deactivate()}},E.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))},E.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))},E.prototype._onMouseMove=function(x){this._lastHoverCoords[0]===x.pageX&&this._lastHoverCoords[1]===x.pageY||(this._onHover(x),this._lastHoverCoords=[x.pageX,x.pageY])},E.prototype._onHover=function(x){var S=this,A=this._findZoneEventAt(x);A!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),A&&(this._currentZone=A,A.hoverCallback&&A.hoverCallback(x),this._tooltipTimeout=window.setTimeout(function(){return S._onTooltip(x)},this._optionsService.options.linkTooltipHoverDuration)))},E.prototype._onTooltip=function(x){this._tooltipTimeout=void 0;var S=this._findZoneEventAt(x);null==S||S.tooltipCallback(x)},E.prototype._onMouseDown=function(x){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var S=this._findZoneEventAt(x);(null==S?void 0:S.willLinkActivate(x))&&(x.preventDefault(),x.stopImmediatePropagation())}},E.prototype._onMouseLeave=function(x){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},E.prototype._onClick=function(x){var S=this._findZoneEventAt(x),A=this._getSelectionLength();S&&A===this._initialSelectionLength&&(S.clickCallback(x),x.preventDefault(),x.stopImmediatePropagation())},E.prototype._getSelectionLength=function(){var x=this._selectionService.selectionText;return x?x.length:0},E.prototype._findZoneEventAt=function(x){var S=this._mouseService.getCoords(x,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(S)for(var A=S[0],L=S[1],j=0;j=K.x1&&A=K.x1||L===K.y2&&AK.y1&&L4)&&je._coreMouseService.triggerMouseEvent({col:nn.x-33,row:nn.y-33,button:jt,action:bt,ctrl:Ct.ctrlKey,alt:Ct.altKey,shift:Ct.shiftKey})}var Ht={mouseup:null,wheel:null,mousedrag:null,mousemove:null},Et=function(jt){return Xe(jt),jt.buttons||(Oe._document.removeEventListener("mouseup",Ht.mouseup),Ht.mousedrag&&Oe._document.removeEventListener("mousemove",Ht.mousedrag)),Oe.cancel(jt)},vt=function(jt){return Xe(jt),jt.preventDefault(),Oe.cancel(jt)},Xt=function(jt){jt.buttons&&Xe(jt)},qt=function(jt){jt.buttons||Xe(jt)};this.register(this._coreMouseService.onProtocolChange(function(Ct){Ct?("debug"===Oe.optionsService.options.logLevel&&Oe._logService.debug("Binding to mouse events:",Oe._coreMouseService.explainEvents(Ct)),Oe.element.classList.add("enable-mouse-events"),Oe._selectionService.disable()):(Oe._logService.debug("Unbinding from mouse events."),Oe.element.classList.remove("enable-mouse-events"),Oe._selectionService.enable()),8&Ct?Ht.mousemove||(ct.addEventListener("mousemove",qt),Ht.mousemove=qt):(ct.removeEventListener("mousemove",Ht.mousemove),Ht.mousemove=null),16&Ct?Ht.wheel||(ct.addEventListener("wheel",vt,{passive:!1}),Ht.wheel=vt):(ct.removeEventListener("wheel",Ht.wheel),Ht.wheel=null),2&Ct?Ht.mouseup||(Ht.mouseup=Et):(Oe._document.removeEventListener("mouseup",Ht.mouseup),Ht.mouseup=null),4&Ct?Ht.mousedrag||(Ht.mousedrag=Xt):(Oe._document.removeEventListener("mousemove",Ht.mousedrag),Ht.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(x.addDisposableDomListener(ct,"mousedown",function(Ct){if(Ct.preventDefault(),Oe.focus(),Oe._coreMouseService.areMouseEventsActive&&!Oe._selectionService.shouldForceSelection(Ct))return Xe(Ct),Ht.mouseup&&Oe._document.addEventListener("mouseup",Ht.mouseup),Ht.mousedrag&&Oe._document.addEventListener("mousemove",Ht.mousedrag),Oe.cancel(Ct)})),this.register(x.addDisposableDomListener(ct,"wheel",function(Ct){if(!Ht.wheel&&!Oe.buffer.hasScrollback){var jt=Oe.viewport.getLinesScrolled(Ct);if(0===jt)return;for(var bt=P.C0.ESC+(Oe._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Ct.deltaY<0?"A":"B"),nn="",Ut=0;Ut47)},Se.prototype._keyUp=function(Oe){var je;this._customKeyEventHandler&&!1===this._customKeyEventHandler(Oe)||(16===(je=Oe).keyCode||17===je.keyCode||18===je.keyCode||this.focus(),this.updateCursorStyle(Oe))},Se.prototype._keyPress=function(Oe){var je;if(this._keyDownHandled||this._customKeyEventHandler&&!1===this._customKeyEventHandler(Oe))return!1;if(this.cancel(Oe),Oe.charCode)je=Oe.charCode;else if(null==Oe.which)je=Oe.keyCode;else{if(0===Oe.which||0===Oe.charCode)return!1;je=Oe.which}return!(!je||(Oe.altKey||Oe.ctrlKey||Oe.metaKey)&&!this._isThirdLevelShift(this.browser,Oe)||(je=String.fromCharCode(je),this._onKey.fire({key:je,domEvent:Oe}),this._showCursor(),this._coreService.triggerDataEvent(je,!0),0))},Se.prototype.bell=function(){var Oe;this._soundBell()&&(null===(Oe=this._soundService)||void 0===Oe||Oe.playBellSound()),this._onBell.fire()},Se.prototype.resize=function(Oe,je){Oe!==this.cols||je!==this.rows?Rt.prototype.resize.call(this,Oe,je):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Se.prototype._afterResize=function(Oe,je){var ct,Xe;null===(ct=this._charSizeService)||void 0===ct||ct.measure(),null===(Xe=this.viewport)||void 0===Xe||Xe.syncScrollArea(!0)},Se.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 Oe=1;Oe=0;K--)(A=M[K])&&(j=(L<3?A(j):L>3?A(E,x,j):A(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(M,E){return function(x,S){E(x,S,M)}};Object.defineProperty(w,"__esModule",{value:!0}),w.Viewport=void 0;var O=R(844),P=R(3656),y=R(4725),g=R(2585),T=function(M){function E(x,S,A,L,j,K,z){var Q=M.call(this)||this;return Q._scrollLines=x,Q._viewportElement=S,Q._scrollArea=A,Q._bufferService=L,Q._optionsService=j,Q._charSizeService=K,Q._renderService=z,Q.scrollBarWidth=0,Q._currentRowHeight=0,Q._lastRecordedBufferLength=0,Q._lastRecordedViewportHeight=0,Q._lastRecordedBufferHeight=0,Q._lastTouchY=0,Q._lastScrollTop=0,Q._wheelPartialScroll=0,Q._refreshAnimationFrame=null,Q._ignoreNextScrollEvent=!1,Q.scrollBarWidth=Q._viewportElement.offsetWidth-Q._scrollArea.offsetWidth||15,Q.register(P.addDisposableDomListener(Q._viewportElement,"scroll",Q._onScroll.bind(Q))),setTimeout(function(){return Q.syncScrollArea()},0),Q}return _(E,M),E.prototype.onThemeChange=function(x){this._viewportElement.style.backgroundColor=x.background.css},E.prototype._refresh=function(x){var S=this;if(x)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return S._innerRefresh()}))},E.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var x=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==x&&(this._lastRecordedBufferHeight=x,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var S=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==S&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=S),this._refreshAnimationFrame=null},E.prototype.syncScrollArea=function(x){if(void 0===x&&(x=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(x);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(x)},E.prototype._onScroll=function(x){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var S=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(S)}},E.prototype._bubbleScroll=function(x,S){return!(S<0&&0!==this._viewportElement.scrollTop||S>0&&this._viewportElement.scrollTop+this._lastRecordedViewportHeight0?1:-1),this._wheelPartialScroll%=1):x.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(S*=this._bufferService.rows),S},E.prototype._applyScrollModifier=function(x,S){var A=this._optionsService.options.fastScrollModifier;return"alt"===A&&S.altKey||"ctrl"===A&&S.ctrlKey||"shift"===A&&S.shiftKey?x*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:x*this._optionsService.options.scrollSensitivity},E.prototype.onTouchStart=function(x){this._lastTouchY=x.touches[0].pageY},E.prototype.onTouchMove=function(x){var S=this._lastTouchY-x.touches[0].pageY;return this._lastTouchY=x.touches[0].pageY,0!==S&&(this._viewportElement.scrollTop+=S,this._bubbleScroll(x,S))},N([D(3,g.IBufferService),D(4,g.IOptionsService),D(5,y.ICharSizeService),D(6,y.IRenderService)],E)}(O.Disposable);w.Viewport=T},2950:function(Z,w,R){var C=this&&this.__decorate||function(P,y,g,T){var M,E=arguments.length,x=E<3?y:null===T?T=Object.getOwnPropertyDescriptor(y,g):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)x=Reflect.decorate(P,y,g,T);else for(var S=P.length-1;S>=0;S--)(M=P[S])&&(x=(E<3?M(x):E>3?M(y,g,x):M(y,g))||x);return E>3&&x&&Object.defineProperty(y,g,x),x},_=this&&this.__param||function(P,y){return function(g,T){y(g,T,P)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CompositionHelper=void 0;var N=R(4725),D=R(2585),O=function(){function P(y,g,T,M,E,x){this._textarea=y,this._compositionView=g,this._bufferService=T,this._optionsService=M,this._coreService=E,this._renderService=x,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(P.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),P.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},P.prototype.compositionupdate=function(y){var g=this;this._compositionView.textContent=y.data,this.updateCompositionElements(),setTimeout(function(){g._compositionPosition.end=g._textarea.value.length},0)},P.prototype.compositionend=function(){this._finalizeComposition(!0)},P.prototype.keydown=function(y){if(this._isComposing||this._isSendingComposition){if(229===y.keyCode||16===y.keyCode||17===y.keyCode||18===y.keyCode)return!1;this._finalizeComposition(!1)}return 229!==y.keyCode||(this._handleAnyTextareaChanges(),!1)},P.prototype._finalizeComposition=function(y){var g=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,y){var T={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var E;g._isSendingComposition&&(g._isSendingComposition=!1,T.start+=g._dataAlreadySent.length,(E=g._isComposing?g._textarea.value.substring(T.start,T.end):g._textarea.value.substring(T.start)).length>0&&g._coreService.triggerDataEvent(E,!0))},0)}else{this._isSendingComposition=!1;var M=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(M,!0)}},P.prototype._handleAnyTextareaChanges=function(){var y=this,g=this._textarea.value;setTimeout(function(){if(!y._isComposing){var T=y._textarea.value.replace(g,"");T.length>0&&(y._dataAlreadySent=T,y._coreService.triggerDataEvent(T,!0))}},0)},P.prototype.updateCompositionElements=function(y){var g=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var T=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),M=this._renderService.dimensions.actualCellHeight,E=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,x=T*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=x+"px",this._compositionView.style.top=E+"px",this._compositionView.style.height=M+"px",this._compositionView.style.lineHeight=M+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var S=this._compositionView.getBoundingClientRect();this._textarea.style.left=x+"px",this._textarea.style.top=E+"px",this._textarea.style.width=Math.max(S.width,1)+"px",this._textarea.style.height=Math.max(S.height,1)+"px",this._textarea.style.lineHeight=S.height+"px"}y||setTimeout(function(){return g.updateCompositionElements(!0)},0)}},C([_(2,D.IBufferService),_(3,D.IOptionsService),_(4,D.ICoreService),_(5,N.IRenderService)],P)}();w.CompositionHelper=O},9806:function(Z,w){function R(C,_){var N=_.getBoundingClientRect();return[C.clientX-N.left,C.clientY-N.top]}Object.defineProperty(w,"__esModule",{value:!0}),w.getRawByteCoords=w.getCoords=w.getCoordsRelativeToElement=void 0,w.getCoordsRelativeToElement=R,w.getCoords=function(C,_,N,D,O,P,y,g){if(O){var T=R(C,_);if(T)return T[0]=Math.ceil((T[0]+(g?P/2:0))/P),T[1]=Math.ceil(T[1]/y),T[0]=Math.min(Math.max(T[0],1),N+(g?1:0)),T[1]=Math.min(Math.max(T[1],1),D),T}},w.getRawByteCoords=function(C){if(C)return{x:C[0]+32,y:C[1]+32}}},9504:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.moveToCellSequence=void 0;var C=R(2584);function _(g,T,M,E){var x=g-N(M,g),S=T-N(M,T);return y(Math.abs(x-S)-function(A,L,j){for(var K=0,z=A-N(j,A),Q=L-N(j,L),ae=0;ae=0&&TT?"A":"B"}function O(g,T,M,E,x,S){for(var A=g,L=T,j="";A!==M||L!==E;)A+=x?1:-1,x&&A>S.cols-1?(j+=S.buffer.translateBufferLineToString(L,!1,g,A),A=0,g=0,L++):!x&&A<0&&(j+=S.buffer.translateBufferLineToString(L,!1,0,g+1),g=A=S.cols-1,L--);return j+S.buffer.translateBufferLineToString(L,!1,g,A)}function P(g,T){return C.C0.ESC+(T?"O":"[")+g}function y(g,T){g=Math.floor(g);for(var M="",E=0;E0?Q-N(ae,Q):K;var oe,$,ye,ve,et,gt,ue=Q,de=(oe=j,$=K,gt=_(ye=z,ve=Q,et=ae,ie).length>0?ve-N(et,ve):$,oe=ye&>g?"D":"C",y(Math.abs(S-g),P(x,E));x=A>T?"D":"C";var L=Math.abs(A-T);return y(function(j,K){return K.cols-j}(A>T?g:S,M)+(L-1)*M.cols+1+((A>T?S:g)-1),P(x,E))}},244:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.AddonManager=void 0;var R=function(){function C(){this._addons=[]}return C.prototype.dispose=function(){for(var _=this._addons.length-1;_>=0;_--)this._addons[_].instance.dispose()},C.prototype.loadAddon=function(_,N){var D=this,O={instance:N,dispose:N.dispose,isDisposed:!1};this._addons.push(O),N.dispose=function(){return D._wrappedAddonDispose(O)},N.activate(_)},C.prototype._wrappedAddonDispose=function(_){if(!_.isDisposed){for(var N=-1,D=0;D>24&255,se>>16&255,se>>8&255),rgba:se};return this._colors.contrastCache.setColor(M.bg,M.fg,ue),ue}this._colors.contrastCache.setColor(M.bg,M.fg,null)}},T.prototype._resolveBackgroundRgba=function(M,E,x){switch(M){case 16777216:case 33554432:return this._colors.ansi[E].rgba;case 50331648:return E<<8;case 0:default:return x?this._colors.foreground.rgba:this._colors.background.rgba}},T.prototype._resolveForegroundRgba=function(M,E,x,S){switch(M){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&S&&E<8&&(E+=8),this._colors.ansi[E].rgba;case 50331648:return E<<8;case 0:default:return x?this._colors.background.rgba:this._colors.foreground.rgba}},T}();w.BaseRenderLayer=g},2512:function(Z,w,R){var C,_=this&&this.__extends||(C=function(S,A){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,j){L.__proto__=j}||function(L,j){for(var K in j)Object.prototype.hasOwnProperty.call(j,K)&&(L[K]=j[K])})(S,A)},function(x,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function A(){this.constructor=x}C(x,S),x.prototype=null===S?Object.create(S):(A.prototype=S.prototype,new A)}),N=this&&this.__decorate||function(x,S,A,L){var j,K=arguments.length,z=K<3?S:null===L?L=Object.getOwnPropertyDescriptor(S,A):L;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(x,S,A,L);else for(var Q=x.length-1;Q>=0;Q--)(j=x[Q])&&(z=(K<3?j(z):K>3?j(S,A,z):j(S,A))||z);return K>3&&z&&Object.defineProperty(S,A,z),z},D=this&&this.__param||function(x,S){return function(A,L){S(A,L,x)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CursorRenderLayer=void 0;var O=R(1546),P=R(511),y=R(2585),g=R(4725),T=600,M=function(x){function S(A,L,j,K,z,Q,ae,ie,se){var ue=x.call(this,A,"cursor",L,!0,j,K,Q,ae)||this;return ue._onRequestRedraw=z,ue._coreService=ie,ue._coreBrowserService=se,ue._cell=new P.CellData,ue._state={x:0,y:0,isFocused:!1,style:"",width:0},ue._cursorRenderers={bar:ue._renderBarCursor.bind(ue),block:ue._renderBlockCursor.bind(ue),underline:ue._renderUnderlineCursor.bind(ue)},ue}return _(S,x),S.prototype.resize=function(A){x.prototype.resize.call(this,A),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},S.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},S.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onOptionsChanged=function(){var A,L=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new E(this._coreBrowserService.isFocused,function(){L._render(!0)})):(null===(A=this._cursorBlinkStateManager)||void 0===A||A.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},S.prototype.onGridChanged=function(A,L){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},S.prototype._render=function(A){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var L=this._bufferService.buffer.ybase+this._bufferService.buffer.y,j=L-this._bufferService.buffer.ydisp;if(j<0||j>=this._bufferService.rows)this._clearCursor();else{var K=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(L).loadCell(K,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var z=this._optionsService.options.cursorStyle;return z&&"block"!==z?this._cursorRenderers[z](K,j,this._cell):this._renderBlurCursor(K,j,this._cell),this._ctx.restore(),this._state.x=K,this._state.y=j,this._state.isFocused=!1,this._state.style=z,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===K&&this._state.y===j&&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"](K,j,this._cell),this._ctx.restore(),this._state.x=K,this._state.y=j,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},S.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})},S.prototype._renderBarCursor=function(A,L,j){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(A,L,this._optionsService.options.cursorWidth),this._ctx.restore()},S.prototype._renderBlockCursor=function(A,L,j){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(A,L,j.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(j,A,L),this._ctx.restore()},S.prototype._renderUnderlineCursor=function(A,L,j){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(A,L),this._ctx.restore()},S.prototype._renderBlurCursor=function(A,L,j){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(A,L,j.getWidth(),1),this._ctx.restore()},N([D(5,y.IBufferService),D(6,y.IOptionsService),D(7,y.ICoreService),D(8,g.ICoreBrowserService)],S)}(O.BaseRenderLayer);w.CursorRenderLayer=M;var E=function(){function x(S,A){this._renderCallback=A,this.isCursorVisible=!0,S&&this._restartInterval()}return Object.defineProperty(x.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),x.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)},x.prototype.restartBlinkAnimation=function(){var S=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){S._renderCallback(),S._animationFrame=void 0})))},x.prototype._restartInterval=function(S){var A=this;void 0===S&&(S=T),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(A._animationTimeRestarted){var L=T-(Date.now()-A._animationTimeRestarted);if(A._animationTimeRestarted=void 0,L>0)return void A._restartInterval(L)}A.isCursorVisible=!1,A._animationFrame=window.requestAnimationFrame(function(){A._renderCallback(),A._animationFrame=void 0}),A._blinkInterval=window.setInterval(function(){if(A._animationTimeRestarted){var j=T-(Date.now()-A._animationTimeRestarted);return A._animationTimeRestarted=void 0,void A._restartInterval(j)}A.isCursorVisible=!A.isCursorVisible,A._animationFrame=window.requestAnimationFrame(function(){A._renderCallback(),A._animationFrame=void 0})},T)},S)},x.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)},x.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},x}()},3700:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.GridCache=void 0;var R=function(){function C(){this.cache=[]}return C.prototype.resize=function(_,N){for(var D=0;D<_;D++){this.cache.length<=D&&this.cache.push([]);for(var O=this.cache[D].length;O=0;K--)(A=M[K])&&(j=(L<3?A(j):L>3?A(E,x,j):A(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(M,E){return function(x,S){E(x,S,M)}};Object.defineProperty(w,"__esModule",{value:!0}),w.LinkRenderLayer=void 0;var O=R(1546),P=R(8803),y=R(2040),g=R(2585),T=function(M){function E(x,S,A,L,j,K,z,Q){var ae=M.call(this,x,"link",S,!0,A,L,z,Q)||this;return j.onShowLinkUnderline(function(ie){return ae._onShowLinkUnderline(ie)}),j.onHideLinkUnderline(function(ie){return ae._onHideLinkUnderline(ie)}),K.onShowLinkUnderline(function(ie){return ae._onShowLinkUnderline(ie)}),K.onHideLinkUnderline(function(ie){return ae._onHideLinkUnderline(ie)}),ae}return _(E,M),E.prototype.resize=function(x){M.prototype.resize.call(this,x),this._state=void 0},E.prototype.reset=function(){this._clearCurrentLink()},E.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var x=this._state.y2-this._state.y1-1;x>0&&this._clearCells(0,this._state.y1+1,this._state.cols,x),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},E.prototype._onShowLinkUnderline=function(x){if(this._ctx.fillStyle=x.fg===P.INVERTED_DEFAULT_COLOR?this._colors.background.css:x.fg&&y.is256Color(x.fg)?this._colors.ansi[x.fg].css:this._colors.foreground.css,x.y1===x.y2)this._fillBottomLineAtCells(x.x1,x.y1,x.x2-x.x1);else{this._fillBottomLineAtCells(x.x1,x.y1,x.cols-x.x1);for(var S=x.y1+1;S=0;ue--)(ae=j[ue])&&(se=(ie<3?ae(se):ie>3?ae(K,z,se):ae(K,z))||se);return ie>3&&se&&Object.defineProperty(K,z,se),se},D=this&&this.__param||function(j,K){return function(z,Q){K(z,Q,j)}};Object.defineProperty(w,"__esModule",{value:!0}),w.Renderer=void 0;var O=R(9596),P=R(4149),y=R(2512),g=R(5098),T=R(844),M=R(4725),E=R(2585),x=R(1420),S=R(8460),A=1,L=function(j){function K(z,Q,ae,ie,se,ue,de,oe){var $=j.call(this)||this;return $._colors=z,$._screenElement=Q,$._bufferService=ue,$._charSizeService=de,$._optionsService=oe,$._id=A++,$._onRequestRedraw=new S.EventEmitter,$._renderLayers=[se.createInstance(O.TextRenderLayer,$._screenElement,0,$._colors,$._optionsService.options.allowTransparency,$._id),se.createInstance(P.SelectionRenderLayer,$._screenElement,1,$._colors,$._id),se.createInstance(g.LinkRenderLayer,$._screenElement,2,$._colors,$._id,ae,ie),se.createInstance(y.CursorRenderLayer,$._screenElement,3,$._colors,$._id,$._onRequestRedraw)],$.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},$._devicePixelRatio=window.devicePixelRatio,$._updateDimensions(),$.onOptionsChanged(),$}return _(K,j),Object.defineProperty(K.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),K.prototype.dispose=function(){for(var z=0,Q=this._renderLayers;z=0;L--)(x=g[L])&&(A=(S<3?x(A):S>3?x(T,M,A):x(T,M))||A);return S>3&&A&&Object.defineProperty(T,M,A),A},D=this&&this.__param||function(g,T){return function(M,E){T(M,E,g)}};Object.defineProperty(w,"__esModule",{value:!0}),w.SelectionRenderLayer=void 0;var O=R(1546),P=R(2585),y=function(g){function T(M,E,x,S,A,L){var j=g.call(this,M,"selection",E,!0,x,S,A,L)||this;return j._clearState(),j}return _(T,g),T.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},T.prototype.resize=function(M){g.prototype.resize.call(this,M),this._clearState()},T.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},T.prototype.onSelectionChanged=function(M,E,x){if(this._didStateChange(M,E,x,this._bufferService.buffer.ydisp))if(this._clearAll(),M&&E){var S=M[1]-this._bufferService.buffer.ydisp,A=E[1]-this._bufferService.buffer.ydisp,L=Math.max(S,0),j=Math.min(A,this._bufferService.rows-1);if(L>=this._bufferService.rows||j<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,x){var K=M[0];this._fillCells(K,L,E[0]-K,j-L+1)}else{this._fillCells(K=S===L?M[0]:0,L,(L===A?E[0]:this._bufferService.cols)-K,1);var ie=Math.max(j-L-1,0);this._fillCells(0,L+1,this._bufferService.cols,ie),L!==j&&this._fillCells(0,j,A===j?E[0]:this._bufferService.cols,1)}this._state.start=[M[0],M[1]],this._state.end=[E[0],E[1]],this._state.columnSelectMode=x,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},T.prototype._didStateChange=function(M,E,x,S){return!this._areCoordinatesEqual(M,this._state.start)||!this._areCoordinatesEqual(E,this._state.end)||x!==this._state.columnSelectMode||S!==this._state.ydisp},T.prototype._areCoordinatesEqual=function(M,E){return!(!M||!E)&&M[0]===E[0]&&M[1]===E[1]},N([D(4,P.IBufferService),D(5,P.IOptionsService)],T)}(O.BaseRenderLayer);w.SelectionRenderLayer=y},9596:function(Z,w,R){var C,_=this&&this.__extends||(C=function(L,j){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,z){K.__proto__=z}||function(K,z){for(var Q in z)Object.prototype.hasOwnProperty.call(z,Q)&&(K[Q]=z[Q])})(L,j)},function(A,L){if("function"!=typeof L&&null!==L)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function j(){this.constructor=A}C(A,L),A.prototype=null===L?Object.create(L):(j.prototype=L.prototype,new j)}),N=this&&this.__decorate||function(A,L,j,K){var z,Q=arguments.length,ae=Q<3?L:null===K?K=Object.getOwnPropertyDescriptor(L,j):K;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ae=Reflect.decorate(A,L,j,K);else for(var ie=A.length-1;ie>=0;ie--)(z=A[ie])&&(ae=(Q<3?z(ae):Q>3?z(L,j,ae):z(L,j))||ae);return Q>3&&ae&&Object.defineProperty(L,j,ae),ae},D=this&&this.__param||function(A,L){return function(j,K){L(j,K,A)}};Object.defineProperty(w,"__esModule",{value:!0}),w.TextRenderLayer=void 0;var O=R(3700),P=R(1546),y=R(3734),g=R(643),T=R(511),M=R(2585),E=R(4725),x=R(4269),S=function(A){function L(j,K,z,Q,ae,ie,se,ue){var de=A.call(this,j,"text",K,Q,z,ae,ie,se)||this;return de._characterJoinerService=ue,de._characterWidth=0,de._characterFont="",de._characterOverlapCache={},de._workCell=new T.CellData,de._state=new O.GridCache,de}return _(L,A),L.prototype.resize=function(j){A.prototype.resize.call(this,j);var K=this._getFont(!1,!1);this._characterWidth===j.scaledCharWidth&&this._characterFont===K||(this._characterWidth=j.scaledCharWidth,this._characterFont=K,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},L.prototype.reset=function(){this._state.clear(),this._clearAll()},L.prototype._forEachCell=function(j,K,z){for(var Q=j;Q<=K;Q++)for(var ae=Q+this._bufferService.buffer.ydisp,ie=this._bufferService.buffer.lines.get(ae),se=this._characterJoinerService.getJoinedCharacters(ae),ue=0;ue0&&ue===se[0][0]){oe=!0;var ye=se.shift();de=new x.JoinedCellData(this._workCell,ie.translateToString(!0,ye[0],ye[1]),ye[1]-ye[0]),$=ye[1]-1}!oe&&this._isOverlapping(de)&&$this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[K]=z,z},N([D(5,M.IBufferService),D(6,M.IOptionsService),D(7,E.ICharacterJoinerService)],L)}(P.BaseRenderLayer);w.TextRenderLayer=S},9616:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.BaseCharAtlas=void 0;var R=function(){function C(){this._didWarmUp=!1}return C.prototype.dispose=function(){},C.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},C.prototype._doWarmUp=function(){},C.prototype.beginFrame=function(){},C}();w.BaseCharAtlas=R},1420:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.removeTerminalFromCache=w.acquireCharAtlas=void 0;var C=R(2040),_=R(1906),N=[];w.acquireCharAtlas=function(D,O,P,y,g){for(var T=C.generateConfig(y,g,D,P),M=0;M=0){if(C.configEquals(x.config,T))return x.atlas;1===x.ownedBy.length?(x.atlas.dispose(),N.splice(M,1)):x.ownedBy.splice(E,1);break}}for(M=0;M>>24,Ne=ye.rgba>>>16&255,gt=ye.rgba>>>8&255,_t=0;_t<$.data.length;_t+=4)$.data[_t]===et&&$.data[_t+1]===Ne&&$.data[_t+2]===gt?$.data[_t+3]=0:ve=!1;return ve}(ie,z));var ue=this._toCoordinateX(K),de=this._toCoordinateY(K);this._cacheCtx.putImageData(ie,ue,de);var oe={index:K,isEmpty:se,inBitmap:!1};return this._addGlyphToBitmap(oe),oe},L.prototype._addGlyphToBitmap=function(j){var K=this;!("createImageBitmap"in window)||y.isFirefox||y.isSafari||(this._glyphsWaitingOnBitmap.push(j),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout(function(){return K._generateBitmap()},100)))},L.prototype._generateBitmap=function(){var j=this,K=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(z){j._bitmap=z;for(var Q=0;Q=this.capacity)this._unlinkNode(D=this._head),delete this._map[D.key],D.key=_,D.value=N,this._map[_]=D;else{var O=this._nodePool;O.length>0?((D=O.pop()).key=_,D.value=N):D={prev:null,next:null,key:_,value:N},this._map[_]=D,this.size++}this._appendNode(D)},C}();w.LRUMap=R},1296:function(Z,w,R){var C,_=this&&this.__extends||(C=function(ae,ie){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,ue){se.__proto__=ue}||function(se,ue){for(var de in ue)Object.prototype.hasOwnProperty.call(ue,de)&&(se[de]=ue[de])})(ae,ie)},function(Q,ae){if("function"!=typeof ae&&null!==ae)throw new TypeError("Class extends value "+String(ae)+" is not a constructor or null");function ie(){this.constructor=Q}C(Q,ae),Q.prototype=null===ae?Object.create(ae):(ie.prototype=ae.prototype,new ie)}),N=this&&this.__decorate||function(Q,ae,ie,se){var ue,de=arguments.length,oe=de<3?ae:null===se?se=Object.getOwnPropertyDescriptor(ae,ie):se;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)oe=Reflect.decorate(Q,ae,ie,se);else for(var $=Q.length-1;$>=0;$--)(ue=Q[$])&&(oe=(de<3?ue(oe):de>3?ue(ae,ie,oe):ue(ae,ie))||oe);return de>3&&oe&&Object.defineProperty(ae,ie,oe),oe},D=this&&this.__param||function(Q,ae){return function(ie,se){ae(ie,se,Q)}};Object.defineProperty(w,"__esModule",{value:!0}),w.DomRenderer=void 0;var O=R(3787),P=R(8803),y=R(844),g=R(4725),T=R(2585),M=R(8460),E=R(4774),x=R(9631),S="xterm-dom-renderer-owner-",A="xterm-fg-",L="xterm-bg-",j="xterm-focus",K=1,z=function(Q){function ae(ie,se,ue,de,oe,$,ye,ve,et,Ne){var gt=Q.call(this)||this;return gt._colors=ie,gt._element=se,gt._screenElement=ue,gt._viewportElement=de,gt._linkifier=oe,gt._linkifier2=$,gt._charSizeService=ve,gt._optionsService=et,gt._bufferService=Ne,gt._terminalClass=K++,gt._rowElements=[],gt._rowContainer=document.createElement("div"),gt._rowContainer.classList.add("xterm-rows"),gt._rowContainer.style.lineHeight="normal",gt._rowContainer.setAttribute("aria-hidden","true"),gt._refreshRowElements(gt._bufferService.cols,gt._bufferService.rows),gt._selectionContainer=document.createElement("div"),gt._selectionContainer.classList.add("xterm-selection"),gt._selectionContainer.setAttribute("aria-hidden","true"),gt.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},gt._updateDimensions(),gt._injectCss(),gt._rowFactory=ye.createInstance(O.DomRendererRowFactory,document,gt._colors),gt._element.classList.add(S+gt._terminalClass),gt._screenElement.appendChild(gt._rowContainer),gt._screenElement.appendChild(gt._selectionContainer),gt._linkifier.onShowLinkUnderline(function(_t){return gt._onLinkHover(_t)}),gt._linkifier.onHideLinkUnderline(function(_t){return gt._onLinkLeave(_t)}),gt._linkifier2.onShowLinkUnderline(function(_t){return gt._onLinkHover(_t)}),gt._linkifier2.onHideLinkUnderline(function(_t){return gt._onLinkLeave(_t)}),gt}return _(ae,Q),Object.defineProperty(ae.prototype,"onRequestRedraw",{get:function(){return(new M.EventEmitter).event},enumerable:!1,configurable:!0}),ae.prototype.dispose=function(){this._element.classList.remove(S+this._terminalClass),x.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),Q.prototype.dispose.call(this)},ae.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 ie=0,se=this._rowElements;iese;)this._rowContainer.removeChild(this._rowElements.pop())},ae.prototype.onResize=function(ie,se){this._refreshRowElements(ie,se),this._updateDimensions()},ae.prototype.onCharSizeChanged=function(){this._updateDimensions()},ae.prototype.onBlur=function(){this._rowContainer.classList.remove(j)},ae.prototype.onFocus=function(){this._rowContainer.classList.add(j)},ae.prototype.onSelectionChanged=function(ie,se,ue){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(ie&&se){var de=ie[1]-this._bufferService.buffer.ydisp,oe=se[1]-this._bufferService.buffer.ydisp,$=Math.max(de,0),ye=Math.min(oe,this._bufferService.rows-1);if(!($>=this._bufferService.rows||ye<0)){var ve=document.createDocumentFragment();ue?ve.appendChild(this._createSelectionElement($,ie[0],se[0],ye-$+1)):(ve.appendChild(this._createSelectionElement($,de===$?ie[0]:0,$===oe?se[0]:this._bufferService.cols)),ve.appendChild(this._createSelectionElement($+1,0,this._bufferService.cols,ye-$-1)),$!==ye&&ve.appendChild(this._createSelectionElement(ye,0,oe===ye?se[0]:this._bufferService.cols))),this._selectionContainer.appendChild(ve)}}},ae.prototype._createSelectionElement=function(ie,se,ue,de){void 0===de&&(de=1);var oe=document.createElement("div");return oe.style.height=de*this.dimensions.actualCellHeight+"px",oe.style.top=ie*this.dimensions.actualCellHeight+"px",oe.style.left=se*this.dimensions.actualCellWidth+"px",oe.style.width=this.dimensions.actualCellWidth*(ue-se)+"px",oe},ae.prototype.onCursorMove=function(){},ae.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},ae.prototype.clear=function(){for(var ie=0,se=this._rowElements;ie=oe&&(ie=0,ue++)}},N([D(6,T.IInstantiationService),D(7,g.ICharSizeService),D(8,T.IOptionsService),D(9,T.IBufferService)],ae)}(y.Disposable);w.DomRenderer=z},3787:function(Z,w,R){var C=this&&this.__decorate||function(x,S,A,L){var j,K=arguments.length,z=K<3?S:null===L?L=Object.getOwnPropertyDescriptor(S,A):L;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(x,S,A,L);else for(var Q=x.length-1;Q>=0;Q--)(j=x[Q])&&(z=(K<3?j(z):K>3?j(S,A,z):j(S,A))||z);return K>3&&z&&Object.defineProperty(S,A,z),z},_=this&&this.__param||function(x,S){return function(A,L){S(A,L,x)}};Object.defineProperty(w,"__esModule",{value:!0}),w.DomRendererRowFactory=w.CURSOR_STYLE_UNDERLINE_CLASS=w.CURSOR_STYLE_BAR_CLASS=w.CURSOR_STYLE_BLOCK_CLASS=w.CURSOR_BLINK_CLASS=w.CURSOR_CLASS=w.UNDERLINE_CLASS=w.ITALIC_CLASS=w.DIM_CLASS=w.BOLD_CLASS=void 0;var N=R(8803),D=R(643),O=R(511),P=R(2585),y=R(4774),g=R(4725),T=R(4269);w.BOLD_CLASS="xterm-bold",w.DIM_CLASS="xterm-dim",w.ITALIC_CLASS="xterm-italic",w.UNDERLINE_CLASS="xterm-underline",w.CURSOR_CLASS="xterm-cursor",w.CURSOR_BLINK_CLASS="xterm-cursor-blink",w.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",w.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",w.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var M=function(){function x(S,A,L,j){this._document=S,this._colors=A,this._characterJoinerService=L,this._optionsService=j,this._workCell=new O.CellData}return x.prototype.setColors=function(S){this._colors=S},x.prototype.createRow=function(S,A,L,j,K,z,Q,ae){for(var ie=this._document.createDocumentFragment(),se=this._characterJoinerService.getJoinedCharacters(A),ue=0,de=Math.min(S.length,ae)-1;de>=0;de--)if(S.loadCell(de,this._workCell).getCode()!==D.NULL_CELL_CODE||L&&de===K){ue=de+1;break}for(de=0;de0&&de===se[0][0]){$=!0;var et=se.shift();ve=new T.JoinedCellData(this._workCell,S.translateToString(!0,et[0],et[1]),et[1]-et[0]),ye=et[1]-1,oe=ve.getWidth()}var Ne=this._document.createElement("span");if(oe>1&&(Ne.style.width=Q*oe+"px"),$&&(Ne.style.display="inline",K>=de&&K<=ye&&(K=de)),L&&de===K)switch(Ne.classList.add(w.CURSOR_CLASS),z&&Ne.classList.add(w.CURSOR_BLINK_CLASS),j){case"bar":Ne.classList.add(w.CURSOR_STYLE_BAR_CLASS);break;case"underline":Ne.classList.add(w.CURSOR_STYLE_UNDERLINE_CLASS);break;default:Ne.classList.add(w.CURSOR_STYLE_BLOCK_CLASS)}ve.isBold()&&Ne.classList.add(w.BOLD_CLASS),ve.isItalic()&&Ne.classList.add(w.ITALIC_CLASS),ve.isDim()&&Ne.classList.add(w.DIM_CLASS),ve.isUnderline()&&Ne.classList.add(w.UNDERLINE_CLASS),Ne.textContent=ve.isInvisible()?D.WHITESPACE_CELL_CHAR:ve.getChars()||D.WHITESPACE_CELL_CHAR;var gt=ve.getFgColor(),_t=ve.getFgColorMode(),Rt=ve.getBgColor(),Se=ve.getBgColorMode(),Oe=!!ve.isInverse();if(Oe){var je=gt;gt=Rt,Rt=je;var ct=_t;_t=Se,Se=ct}switch(_t){case 16777216:case 33554432:ve.isBold()&><8&&this._optionsService.options.drawBoldTextInBrightColors&&(gt+=8),this._applyMinimumContrast(Ne,this._colors.background,this._colors.ansi[gt])||Ne.classList.add("xterm-fg-"+gt);break;case 50331648:var Xe=y.rgba.toColor(gt>>16&255,gt>>8&255,255>);this._applyMinimumContrast(Ne,this._colors.background,Xe)||this._addStyle(Ne,"color:#"+E(gt.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(Ne,this._colors.background,this._colors.foreground)||Oe&&Ne.classList.add("xterm-fg-"+N.INVERTED_DEFAULT_COLOR)}switch(Se){case 16777216:case 33554432:Ne.classList.add("xterm-bg-"+Rt);break;case 50331648:this._addStyle(Ne,"background-color:#"+E(Rt.toString(16),"0",6));break;case 0:default:Oe&&Ne.classList.add("xterm-bg-"+N.INVERTED_DEFAULT_COLOR)}ie.appendChild(Ne),de=ye}}return ie},x.prototype._applyMinimumContrast=function(S,A,L){if(1===this._optionsService.options.minimumContrastRatio)return!1;var j=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===j&&(j=y.color.ensureContrastRatio(A,L,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=j?j:null)),!!j&&(this._addStyle(S,"color:"+j.css),!0)},x.prototype._addStyle=function(S,A){S.setAttribute("style",""+(S.getAttribute("style")||"")+A+";")},C([_(2,g.ICharacterJoinerService),_(3,P.IOptionsService)],x)}();function E(x,S,A){for(;x.lengththis._bufferService.cols?[N%this._bufferService.cols,this.selectionStart[1]+Math.floor(N/this._bufferService.cols)]:[N,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}),C.prototype.areSelectionValuesReversed=function(){var _=this.selectionStart,N=this.selectionEnd;return!(!_||!N)&&(_[1]>N[1]||_[1]===N[1]&&_[0]>N[0])},C.prototype.onTrim=function(_){return this.selectionStart&&(this.selectionStart[1]-=_),this.selectionEnd&&(this.selectionEnd[1]-=_),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},C}();w.SelectionModel=R},428:function(Z,w,R){var C=this&&this.__decorate||function(y,g,T,M){var E,x=arguments.length,S=x<3?g:null===M?M=Object.getOwnPropertyDescriptor(g,T):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(y,g,T,M);else for(var A=y.length-1;A>=0;A--)(E=y[A])&&(S=(x<3?E(S):x>3?E(g,T,S):E(g,T))||S);return x>3&&S&&Object.defineProperty(g,T,S),S},_=this&&this.__param||function(y,g){return function(T,M){g(T,M,y)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CharSizeService=void 0;var N=R(2585),D=R(8460),O=function(){function y(g,T,M){this._optionsService=M,this.width=0,this.height=0,this._onCharSizeChange=new D.EventEmitter,this._measureStrategy=new P(g,T,this._optionsService)}return Object.defineProperty(y.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),y.prototype.measure=function(){var g=this._measureStrategy.measure();g.width===this.width&&g.height===this.height||(this.width=g.width,this.height=g.height,this._onCharSizeChange.fire())},C([_(2,N.IOptionsService)],y)}();w.CharSizeService=O;var P=function(){function y(g,T,M){this._document=g,this._parentElement=T,this._optionsService=M,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 y.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var g=this._measureElement.getBoundingClientRect();return 0!==g.width&&0!==g.height&&(this._result.width=g.width,this._result.height=Math.ceil(g.height)),this._result},y}()},4269:function(Z,w,R){var C,_=this&&this.__extends||(C=function(x,S){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,L){A.__proto__=L}||function(A,L){for(var j in L)Object.prototype.hasOwnProperty.call(L,j)&&(A[j]=L[j])})(x,S)},function(E,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function S(){this.constructor=E}C(E,x),E.prototype=null===x?Object.create(x):(S.prototype=x.prototype,new S)}),N=this&&this.__decorate||function(E,x,S,A){var L,j=arguments.length,K=j<3?x:null===A?A=Object.getOwnPropertyDescriptor(x,S):A;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)K=Reflect.decorate(E,x,S,A);else for(var z=E.length-1;z>=0;z--)(L=E[z])&&(K=(j<3?L(K):j>3?L(x,S,K):L(x,S))||K);return j>3&&K&&Object.defineProperty(x,S,K),K},D=this&&this.__param||function(E,x){return function(S,A){x(S,A,E)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CharacterJoinerService=w.JoinedCellData=void 0;var O=R(3734),P=R(643),y=R(511),g=R(2585),T=function(E){function x(S,A,L){var j=E.call(this)||this;return j.content=0,j.combinedData="",j.fg=S.fg,j.bg=S.bg,j.combinedData=A,j._width=L,j}return _(x,E),x.prototype.isCombined=function(){return 2097152},x.prototype.getWidth=function(){return this._width},x.prototype.getChars=function(){return this.combinedData},x.prototype.getCode=function(){return 2097151},x.prototype.setFromCharData=function(S){throw new Error("not implemented")},x.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},x}(O.AttributeData);w.JoinedCellData=T;var M=function(){function E(x){this._bufferService=x,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new y.CellData}return E.prototype.register=function(x){var S={id:this._nextCharacterJoinerId++,handler:x};return this._characterJoiners.push(S),S.id},E.prototype.deregister=function(x){for(var S=0;S1)for(var se=this._getJoinedRanges(L,z,K,S,j),ue=0;ue1)for(se=this._getJoinedRanges(L,z,K,S,j),ue=0;ue=0;S--)(M=P[S])&&(x=(E<3?M(x):E>3?M(y,g,x):M(y,g))||x);return E>3&&x&&Object.defineProperty(y,g,x),x},_=this&&this.__param||function(P,y){return function(g,T){y(g,T,P)}};Object.defineProperty(w,"__esModule",{value:!0}),w.MouseService=void 0;var N=R(4725),D=R(9806),O=function(){function P(y,g){this._renderService=y,this._charSizeService=g}return P.prototype.getCoords=function(y,g,T,M,E){return D.getCoords(y,g,T,M,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,E)},P.prototype.getRawByteCoords=function(y,g,T,M){var E=this.getCoords(y,g,T,M);return D.getRawByteCoords(E)},C([_(0,N.IRenderService),_(1,N.ICharSizeService)],P)}();w.MouseService=O},3230:function(Z,w,R){var C,_=this&&this.__extends||(C=function(A,L){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,K){j.__proto__=K}||function(j,K){for(var z in K)Object.prototype.hasOwnProperty.call(K,z)&&(j[z]=K[z])})(A,L)},function(S,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function L(){this.constructor=S}C(S,A),S.prototype=null===A?Object.create(A):(L.prototype=A.prototype,new L)}),N=this&&this.__decorate||function(S,A,L,j){var K,z=arguments.length,Q=z<3?A:null===j?j=Object.getOwnPropertyDescriptor(A,L):j;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(S,A,L,j);else for(var ae=S.length-1;ae>=0;ae--)(K=S[ae])&&(Q=(z<3?K(Q):z>3?K(A,L,Q):K(A,L))||Q);return z>3&&Q&&Object.defineProperty(A,L,Q),Q},D=this&&this.__param||function(S,A){return function(L,j){A(L,j,S)}};Object.defineProperty(w,"__esModule",{value:!0}),w.RenderService=void 0;var O=R(6193),P=R(8460),y=R(844),g=R(5596),T=R(3656),M=R(2585),E=R(4725),x=function(S){function A(L,j,K,z,Q,ae){var ie=S.call(this)||this;if(ie._renderer=L,ie._rowCount=j,ie._charSizeService=Q,ie._isPaused=!1,ie._needsFullRefresh=!1,ie._isNextRenderRedrawOnly=!0,ie._needsSelectionRefresh=!1,ie._canvasWidth=0,ie._canvasHeight=0,ie._selectionState={start:void 0,end:void 0,columnSelectMode:!1},ie._onDimensionsChange=new P.EventEmitter,ie._onRender=new P.EventEmitter,ie._onRefreshRequest=new P.EventEmitter,ie.register({dispose:function(){return ie._renderer.dispose()}}),ie._renderDebouncer=new O.RenderDebouncer(function(ue,de){return ie._renderRows(ue,de)}),ie.register(ie._renderDebouncer),ie._screenDprMonitor=new g.ScreenDprMonitor,ie._screenDprMonitor.setListener(function(){return ie.onDevicePixelRatioChange()}),ie.register(ie._screenDprMonitor),ie.register(ae.onResize(function(ue){return ie._fullRefresh()})),ie.register(z.onOptionChange(function(){return ie._renderer.onOptionsChanged()})),ie.register(ie._charSizeService.onCharSizeChange(function(){return ie.onCharSizeChanged()})),ie._renderer.onRequestRedraw(function(ue){return ie.refreshRows(ue.start,ue.end,!0)}),ie.register(T.addDisposableDomListener(window,"resize",function(){return ie.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var se=new IntersectionObserver(function(ue){return ie._onIntersectionChange(ue[ue.length-1])},{threshold:0});se.observe(K),ie.register({dispose:function(){return se.disconnect()}})}return ie}return _(A,S),Object.defineProperty(A.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),A.prototype._onIntersectionChange=function(L){this._isPaused=void 0===L.isIntersecting?0===L.intersectionRatio:!L.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},A.prototype.refreshRows=function(L,j,K){void 0===K&&(K=!1),this._isPaused?this._needsFullRefresh=!0:(K||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(L,j,this._rowCount))},A.prototype._renderRows=function(L,j){this._renderer.renderRows(L,j),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:L,end:j}),this._isNextRenderRedrawOnly=!0},A.prototype.resize=function(L,j){this._rowCount=j,this._fireOnCanvasResize()},A.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},A.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},A.prototype.dispose=function(){S.prototype.dispose.call(this)},A.prototype.setRenderer=function(L){var j=this;this._renderer.dispose(),this._renderer=L,this._renderer.onRequestRedraw(function(K){return j.refreshRows(K.start,K.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},A.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},A.prototype.setColors=function(L){this._renderer.setColors(L),this._fullRefresh()},A.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},A.prototype.onResize=function(L,j){this._renderer.onResize(L,j),this._fullRefresh()},A.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},A.prototype.onBlur=function(){this._renderer.onBlur()},A.prototype.onFocus=function(){this._renderer.onFocus()},A.prototype.onSelectionChanged=function(L,j,K){this._selectionState.start=L,this._selectionState.end=j,this._selectionState.columnSelectMode=K,this._renderer.onSelectionChanged(L,j,K)},A.prototype.onCursorMove=function(){this._renderer.onCursorMove()},A.prototype.clear=function(){this._renderer.clear()},N([D(3,M.IOptionsService),D(4,E.ICharSizeService),D(5,M.IBufferService)],A)}(y.Disposable);w.RenderService=x},9312:function(Z,w,R){var C,_=this&&this.__extends||(C=function(Q,ae){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,se){ie.__proto__=se}||function(ie,se){for(var ue in se)Object.prototype.hasOwnProperty.call(se,ue)&&(ie[ue]=se[ue])})(Q,ae)},function(z,Q){if("function"!=typeof Q&&null!==Q)throw new TypeError("Class extends value "+String(Q)+" is not a constructor or null");function ae(){this.constructor=z}C(z,Q),z.prototype=null===Q?Object.create(Q):(ae.prototype=Q.prototype,new ae)}),N=this&&this.__decorate||function(z,Q,ae,ie){var se,ue=arguments.length,de=ue<3?Q:null===ie?ie=Object.getOwnPropertyDescriptor(Q,ae):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)de=Reflect.decorate(z,Q,ae,ie);else for(var oe=z.length-1;oe>=0;oe--)(se=z[oe])&&(de=(ue<3?se(de):ue>3?se(Q,ae,de):se(Q,ae))||de);return ue>3&&de&&Object.defineProperty(Q,ae,de),de},D=this&&this.__param||function(z,Q){return function(ae,ie){Q(ae,ie,z)}};Object.defineProperty(w,"__esModule",{value:!0}),w.SelectionService=void 0;var O=R(6114),P=R(456),y=R(511),g=R(8460),T=R(4725),M=R(2585),E=R(9806),x=R(9504),S=R(844),A=R(4841),L=String.fromCharCode(160),j=new RegExp(L,"g"),K=function(z){function Q(ae,ie,se,ue,de,oe,$,ye){var ve=z.call(this)||this;return ve._element=ae,ve._screenElement=ie,ve._linkifier=se,ve._bufferService=ue,ve._coreService=de,ve._mouseService=oe,ve._optionsService=$,ve._renderService=ye,ve._dragScrollAmount=0,ve._enabled=!0,ve._workCell=new y.CellData,ve._mouseDownTimeStamp=0,ve._oldHasSelection=!1,ve._oldSelectionStart=void 0,ve._oldSelectionEnd=void 0,ve._onLinuxMouseSelection=ve.register(new g.EventEmitter),ve._onRedrawRequest=ve.register(new g.EventEmitter),ve._onSelectionChange=ve.register(new g.EventEmitter),ve._onRequestScrollLines=ve.register(new g.EventEmitter),ve._mouseMoveListener=function(et){return ve._onMouseMove(et)},ve._mouseUpListener=function(et){return ve._onMouseUp(et)},ve._coreService.onUserInput(function(){ve.hasSelection&&ve.clearSelection()}),ve._trimListener=ve._bufferService.buffer.lines.onTrim(function(et){return ve._onTrim(et)}),ve.register(ve._bufferService.buffers.onBufferActivate(function(et){return ve._onBufferActivate(et)})),ve.enable(),ve._model=new P.SelectionModel(ve._bufferService),ve._activeSelectionMode=0,ve}return _(Q,z),Object.defineProperty(Q.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),Q.prototype.dispose=function(){this._removeMouseDownListeners()},Q.prototype.reset=function(){this.clearSelection()},Q.prototype.disable=function(){this.clearSelection(),this._enabled=!1},Q.prototype.enable=function(){this._enabled=!0},Object.defineProperty(Q.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"hasSelection",{get:function(){var ie=this._model.finalSelectionStart,se=this._model.finalSelectionEnd;return!(!ie||!se||ie[0]===se[0]&&ie[1]===se[1])},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"selectionText",{get:function(){var ie=this._model.finalSelectionStart,se=this._model.finalSelectionEnd;if(!ie||!se)return"";var ue=this._bufferService.buffer,de=[];if(3===this._activeSelectionMode){if(ie[0]===se[0])return"";for(var oe=ie[1];oe<=se[1];oe++){var $=ue.translateBufferLineToString(oe,!0,ie[0],se[0]);de.push($)}}else{for(de.push(ue.translateBufferLineToString(ie[1],!0,ie[0],ie[1]===se[1]?se[0]:void 0)),oe=ie[1]+1;oe<=se[1]-1;oe++){var ve=ue.lines.get(oe);$=ue.translateBufferLineToString(oe,!0),ve&&ve.isWrapped?de[de.length-1]+=$:de.push($)}ie[1]!==se[1]&&(ve=ue.lines.get(se[1]),$=ue.translateBufferLineToString(se[1],!0,0,se[0]),ve&&ve.isWrapped?de[de.length-1]+=$:de.push($))}return de.map(function(et){return et.replace(j," ")}).join(O.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),Q.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},Q.prototype.refresh=function(ae){var ie=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return ie._refresh()})),O.isLinux&&ae&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},Q.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},Q.prototype._isClickInSelection=function(ae){var ie=this._getMouseBufferCoords(ae),se=this._model.finalSelectionStart,ue=this._model.finalSelectionEnd;return!!(se&&ue&&ie)&&this._areCoordsInSelection(ie,se,ue)},Q.prototype._areCoordsInSelection=function(ae,ie,se){return ae[1]>ie[1]&&ae[1]=ie[0]&&ae[0]=ie[0]},Q.prototype._selectWordAtCursor=function(ae,ie){var se,ue,de=null===(ue=null===(se=this._linkifier.currentLink)||void 0===se?void 0:se.link)||void 0===ue?void 0:ue.range;if(de)return this._model.selectionStart=[de.start.x-1,de.start.y-1],this._model.selectionStartLength=A.getRangeLength(de,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var oe=this._getMouseBufferCoords(ae);return!!oe&&(this._selectWordAt(oe,ie),this._model.selectionEnd=void 0,!0)},Q.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},Q.prototype.selectLines=function(ae,ie){this._model.clearSelection(),ae=Math.max(ae,0),ie=Math.min(ie,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,ae],this._model.selectionEnd=[this._bufferService.cols,ie],this.refresh(),this._onSelectionChange.fire()},Q.prototype._onTrim=function(ae){this._model.onTrim(ae)&&this.refresh()},Q.prototype._getMouseBufferCoords=function(ae){var ie=this._mouseService.getCoords(ae,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(ie)return ie[0]--,ie[1]--,ie[1]+=this._bufferService.buffer.ydisp,ie},Q.prototype._getMouseEventScrollAmount=function(ae){var ie=E.getCoordsRelativeToElement(ae,this._screenElement)[1],se=this._renderService.dimensions.canvasHeight;return ie>=0&&ie<=se?0:(ie>se&&(ie-=se),ie=Math.min(Math.max(ie,-50),50),(ie/=50)/Math.abs(ie)+Math.round(14*ie))},Q.prototype.shouldForceSelection=function(ae){return O.isMac?ae.altKey&&this._optionsService.options.macOptionClickForcesSelection:ae.shiftKey},Q.prototype.onMouseDown=function(ae){if(this._mouseDownTimeStamp=ae.timeStamp,(2!==ae.button||!this.hasSelection)&&0===ae.button){if(!this._enabled){if(!this.shouldForceSelection(ae))return;ae.stopPropagation()}ae.preventDefault(),this._dragScrollAmount=0,this._enabled&&ae.shiftKey?this._onIncrementalClick(ae):1===ae.detail?this._onSingleClick(ae):2===ae.detail?this._onDoubleClick(ae):3===ae.detail&&this._onTripleClick(ae),this._addMouseDownListeners(),this.refresh(!0)}},Q.prototype._addMouseDownListeners=function(){var ae=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return ae._dragScroll()},50)},Q.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},Q.prototype._onIncrementalClick=function(ae){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(ae))},Q.prototype._onSingleClick=function(ae){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(ae)?3:0,this._model.selectionStart=this._getMouseBufferCoords(ae),this._model.selectionStart){this._model.selectionEnd=void 0;var ie=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);ie&&ie.length!==this._model.selectionStart[0]&&0===ie.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},Q.prototype._onDoubleClick=function(ae){this._selectWordAtCursor(ae,!0)&&(this._activeSelectionMode=1)},Q.prototype._onTripleClick=function(ae){var ie=this._getMouseBufferCoords(ae);ie&&(this._activeSelectionMode=2,this._selectLineAt(ie[1]))},Q.prototype.shouldColumnSelect=function(ae){return ae.altKey&&!(O.isMac&&this._optionsService.options.macOptionClickForcesSelection)},Q.prototype._onMouseMove=function(ae){if(ae.stopImmediatePropagation(),this._model.selectionStart){var ie=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(ae),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[0]=this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var se=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(ae.ydisp+this._bufferService.rows,ae.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=ae.ydisp),this.refresh()}},Q.prototype._onMouseUp=function(ae){var ie=ae.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&ie<500&&ae.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var se=this._mouseService.getCoords(ae,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(se&&void 0!==se[0]&&void 0!==se[1]){var ue=x.moveToCellSequence(se[0]-1,se[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(ue,!0)}}}else this._fireEventIfSelectionChanged()},Q.prototype._fireEventIfSelectionChanged=function(){var ae=this._model.finalSelectionStart,ie=this._model.finalSelectionEnd,se=!(!ae||!ie||ae[0]===ie[0]&&ae[1]===ie[1]);se?ae&&ie&&(this._oldSelectionStart&&this._oldSelectionEnd&&ae[0]===this._oldSelectionStart[0]&&ae[1]===this._oldSelectionStart[1]&&ie[0]===this._oldSelectionEnd[0]&&ie[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(ae,ie,se)):this._oldHasSelection&&this._fireOnSelectionChange(ae,ie,se)},Q.prototype._fireOnSelectionChange=function(ae,ie,se){this._oldSelectionStart=ae,this._oldSelectionEnd=ie,this._oldHasSelection=se,this._onSelectionChange.fire()},Q.prototype._onBufferActivate=function(ae){var ie=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=ae.activeBuffer.lines.onTrim(function(se){return ie._onTrim(se)})},Q.prototype._convertViewportColToCharacterIndex=function(ae,ie){for(var se=ie[0],ue=0;ie[0]>=ue;ue++){var de=ae.loadCell(ue,this._workCell).getChars().length;0===this._workCell.getWidth()?se--:de>1&&ie[0]!==ue&&(se+=de-1)}return se},Q.prototype.setSelection=function(ae,ie,se){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[ae,ie],this._model.selectionStartLength=se,this.refresh()},Q.prototype.rightClickSelect=function(ae){this._isClickInSelection(ae)||(this._selectWordAtCursor(ae,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},Q.prototype._getWordAt=function(ae,ie,se,ue){if(void 0===se&&(se=!0),void 0===ue&&(ue=!0),!(ae[0]>=this._bufferService.cols)){var de=this._bufferService.buffer,oe=de.lines.get(ae[1]);if(oe){var $=de.translateBufferLineToString(ae[1],!1),ye=this._convertViewportColToCharacterIndex(oe,ae),ve=ye,et=ae[0]-ye,Ne=0,gt=0,_t=0,Rt=0;if(" "===$.charAt(ye)){for(;ye>0&&" "===$.charAt(ye-1);)ye--;for(;ve<$.length&&" "===$.charAt(ve+1);)ve++}else{var Se=ae[0],Oe=ae[0];0===oe.getWidth(Se)&&(Ne++,Se--),2===oe.getWidth(Oe)&&(gt++,Oe++);var je=oe.getString(Oe).length;for(je>1&&(Rt+=je-1,ve+=je-1);Se>0&&ye>0&&!this._isCharWordSeparator(oe.loadCell(Se-1,this._workCell));){oe.loadCell(Se-1,this._workCell);var ct=this._workCell.getChars().length;0===this._workCell.getWidth()?(Ne++,Se--):ct>1&&(_t+=ct-1,ye-=ct-1),ye--,Se--}for(;Oe1&&(Rt+=Xe-1,ve+=Xe-1),ve++,Oe++}}ve++;var Ht=ye+et-Ne+_t,Et=Math.min(this._bufferService.cols,ve-ye+Ne+gt-_t-Rt);if(ie||""!==$.slice(ye,ve).trim()){if(se&&0===Ht&&32!==oe.getCodePoint(0)){var vt=de.lines.get(ae[1]-1);if(vt&&oe.isWrapped&&32!==vt.getCodePoint(this._bufferService.cols-1)){var Xt=this._getWordAt([this._bufferService.cols-1,ae[1]-1],!1,!0,!1);if(Xt){var qt=this._bufferService.cols-Xt.start;Ht-=qt,Et+=qt}}}if(ue&&Ht+Et===this._bufferService.cols&&32!==oe.getCodePoint(this._bufferService.cols-1)){var Ct=de.lines.get(ae[1]+1);if(Ct&&Ct.isWrapped&&32!==Ct.getCodePoint(0)){var jt=this._getWordAt([0,ae[1]+1],!1,!1,!0);jt&&(Et+=jt.length)}}return{start:Ht,length:Et}}}}},Q.prototype._selectWordAt=function(ae,ie){var se=this._getWordAt(ae,ie);if(se){for(;se.start<0;)se.start+=this._bufferService.cols,ae[1]--;this._model.selectionStart=[se.start,ae[1]],this._model.selectionStartLength=se.length}},Q.prototype._selectToWordAt=function(ae){var ie=this._getWordAt(ae,!0);if(ie){for(var se=ae[1];ie.start<0;)ie.start+=this._bufferService.cols,se--;if(!this._model.areSelectionValuesReversed())for(;ie.start+ie.length>this._bufferService.cols;)ie.length-=this._bufferService.cols,se++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?ie.start:ie.start+ie.length,se]}},Q.prototype._isCharWordSeparator=function(ae){return 0!==ae.getWidth()&&this._optionsService.options.wordSeparator.indexOf(ae.getChars())>=0},Q.prototype._selectLineAt=function(ae){var ie=this._bufferService.buffer.getWrappedRangeForLine(ae);this._model.selectionStart=[0,ie.first],this._model.selectionEnd=[this._bufferService.cols,ie.last],this._model.selectionStartLength=0},N([D(3,M.IBufferService),D(4,M.ICoreService),D(5,T.IMouseService),D(6,M.IOptionsService),D(7,T.IRenderService)],Q)}(S.Disposable);w.SelectionService=K},4725:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.ICharacterJoinerService=w.ISoundService=w.ISelectionService=w.IRenderService=w.IMouseService=w.ICoreBrowserService=w.ICharSizeService=void 0;var C=R(8343);w.ICharSizeService=C.createDecorator("CharSizeService"),w.ICoreBrowserService=C.createDecorator("CoreBrowserService"),w.IMouseService=C.createDecorator("MouseService"),w.IRenderService=C.createDecorator("RenderService"),w.ISelectionService=C.createDecorator("SelectionService"),w.ISoundService=C.createDecorator("SoundService"),w.ICharacterJoinerService=C.createDecorator("CharacterJoinerService")},357:function(Z,w,R){var C=this&&this.__decorate||function(O,P,y,g){var T,M=arguments.length,E=M<3?P:null===g?g=Object.getOwnPropertyDescriptor(P,y):g;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(O,P,y,g);else for(var x=O.length-1;x>=0;x--)(T=O[x])&&(E=(M<3?T(E):M>3?T(P,y,E):T(P,y))||E);return M>3&&E&&Object.defineProperty(P,y,E),E},_=this&&this.__param||function(O,P){return function(y,g){P(y,g,O)}};Object.defineProperty(w,"__esModule",{value:!0}),w.SoundService=void 0;var N=R(2585),D=function(){function O(P){this._optionsService=P}return Object.defineProperty(O,"audioContext",{get:function(){if(!O._audioContext){var y=window.AudioContext||window.webkitAudioContext;if(!y)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;O._audioContext=new y}return O._audioContext},enumerable:!1,configurable:!0}),O.prototype.playBellSound=function(){var P=O.audioContext;if(P){var y=P.createBufferSource();P.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(g){y.buffer=g,y.connect(P.destination),y.start(0)})}},O.prototype._base64ToArrayBuffer=function(P){for(var y=window.atob(P),g=y.length,T=new Uint8Array(g),M=0;Mthis._length)for(var P=this._length;P=D;g--)this._array[this._getCyclicIndex(g+P.length)]=this._array[this._getCyclicIndex(g)];for(g=0;gthis._maxLength){var T=this._length+P.length-this._maxLength;this._startIndex+=T,this._length=this._maxLength,this.onTrimEmitter.fire(T)}else this._length+=P.length},N.prototype.trimStart=function(D){D>this._length&&(D=this._length),this._startIndex+=D,this._length-=D,this.onTrimEmitter.fire(D)},N.prototype.shiftElements=function(D,O,P){if(!(O<=0)){if(D<0||D>=this._length)throw new Error("start argument out of range");if(D+P<0)throw new Error("Cannot shift elements in list beyond index 0");if(P>0){for(var y=O-1;y>=0;y--)this.set(D+y+P,this.get(D+y));var g=D+O+P-this._length;if(g>0)for(this._length+=g;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(y=0;y24)return de.setWinLines||!1;switch(ue){case 1:return!!de.restoreWin;case 2:return!!de.minimizeWin;case 3:return!!de.setWinPosition;case 4:return!!de.setWinSizePixels;case 5:return!!de.raiseWin;case 6:return!!de.lowerWin;case 7:return!!de.refreshWin;case 8:return!!de.setWinSizeChars;case 9:return!!de.maximizeWin;case 10:return!!de.fullscreenWin;case 11:return!!de.getWinState;case 13:return!!de.getWinPosition;case 14:return!!de.getWinSizePixels;case 15:return!!de.getScreenSizePixels;case 16:return!!de.getCellSizePixels;case 18:return!!de.getWinSizeChars;case 19:return!!de.getScreenSizeChars;case 20:return!!de.getIconTitle;case 21:return!!de.getWinTitle;case 22:return!!de.pushTitle;case 23:return!!de.popTitle;case 24:return!!de.setWinLines}return!1}(ue=N=w.WindowsOptionsReportType||(w.WindowsOptionsReportType={}))[ue.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",ue[ue.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS";var ie=function(){function ue(de,oe,$,ye){this._bufferService=de,this._coreService=oe,this._logService=$,this._optionsService=ye,this._data=new Uint32Array(0)}return ue.prototype.hook=function(de){this._data=new Uint32Array(0)},ue.prototype.put=function(de,oe,$){this._data=g.concat(this._data,de.subarray(oe,$))},ue.prototype.unhook=function(de){if(!de)return this._data=new Uint32Array(0),!0;var oe=T.utf32ToString(this._data);switch(this._data=new Uint32Array(0),oe){case'"q':this._coreService.triggerDataEvent(D.C0.ESC+'P1$r0"q'+D.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(D.C0.ESC+'P1$r61;1"p'+D.C0.ESC+"\\");break;case"r":this._coreService.triggerDataEvent(D.C0.ESC+"P1$r"+(this._bufferService.buffer.scrollTop+1)+";"+(this._bufferService.buffer.scrollBottom+1)+"r"+D.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(D.C0.ESC+"P1$r0m"+D.C0.ESC+"\\");break;case" q":var ye={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];this._coreService.triggerDataEvent(D.C0.ESC+"P1$r"+(ye-=this._optionsService.options.cursorBlink?1:0)+" q"+D.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",oe),this._coreService.triggerDataEvent(D.C0.ESC+"P0$r"+D.C0.ESC+"\\")}return!0},ue}(),se=function(ue){function de(oe,$,ye,ve,et,Ne,gt,_t,Rt){void 0===Rt&&(Rt=new P.EscapeSequenceParser);var Se=ue.call(this)||this;Se._bufferService=oe,Se._charsetService=$,Se._coreService=ye,Se._dirtyRowService=ve,Se._logService=et,Se._optionsService=Ne,Se._coreMouseService=gt,Se._unicodeService=_t,Se._parser=Rt,Se._parseBuffer=new Uint32Array(4096),Se._stringDecoder=new T.StringToUtf32,Se._utf8Decoder=new T.Utf8ToUtf32,Se._workCell=new S.CellData,Se._windowTitle="",Se._iconName="",Se._windowTitleStack=[],Se._iconNameStack=[],Se._curAttrData=M.DEFAULT_ATTR_DATA.clone(),Se._eraseAttrDataInternal=M.DEFAULT_ATTR_DATA.clone(),Se._onRequestBell=new E.EventEmitter,Se._onRequestRefreshRows=new E.EventEmitter,Se._onRequestReset=new E.EventEmitter,Se._onRequestSyncScrollBar=new E.EventEmitter,Se._onRequestWindowsOptionsReport=new E.EventEmitter,Se._onA11yChar=new E.EventEmitter,Se._onA11yTab=new E.EventEmitter,Se._onCursorMove=new E.EventEmitter,Se._onLineFeed=new E.EventEmitter,Se._onScroll=new E.EventEmitter,Se._onTitleChange=new E.EventEmitter,Se._onAnsiColorChange=new E.EventEmitter,Se._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},Se.register(Se._parser),Se._parser.setCsiHandlerFallback(function(Xe,Ht){Se._logService.debug("Unknown CSI code: ",{identifier:Se._parser.identToString(Xe),params:Ht.toArray()})}),Se._parser.setEscHandlerFallback(function(Xe){Se._logService.debug("Unknown ESC code: ",{identifier:Se._parser.identToString(Xe)})}),Se._parser.setExecuteHandlerFallback(function(Xe){Se._logService.debug("Unknown EXECUTE code: ",{code:Xe})}),Se._parser.setOscHandlerFallback(function(Xe,Ht,Et){Se._logService.debug("Unknown OSC code: ",{identifier:Xe,action:Ht,data:Et})}),Se._parser.setDcsHandlerFallback(function(Xe,Ht,Et){"HOOK"===Ht&&(Et=Et.toArray()),Se._logService.debug("Unknown DCS code: ",{identifier:Se._parser.identToString(Xe),action:Ht,payload:Et})}),Se._parser.setPrintHandler(function(Xe,Ht,Et){return Se.print(Xe,Ht,Et)}),Se._parser.registerCsiHandler({final:"@"},function(Xe){return Se.insertChars(Xe)}),Se._parser.registerCsiHandler({intermediates:" ",final:"@"},function(Xe){return Se.scrollLeft(Xe)}),Se._parser.registerCsiHandler({final:"A"},function(Xe){return Se.cursorUp(Xe)}),Se._parser.registerCsiHandler({intermediates:" ",final:"A"},function(Xe){return Se.scrollRight(Xe)}),Se._parser.registerCsiHandler({final:"B"},function(Xe){return Se.cursorDown(Xe)}),Se._parser.registerCsiHandler({final:"C"},function(Xe){return Se.cursorForward(Xe)}),Se._parser.registerCsiHandler({final:"D"},function(Xe){return Se.cursorBackward(Xe)}),Se._parser.registerCsiHandler({final:"E"},function(Xe){return Se.cursorNextLine(Xe)}),Se._parser.registerCsiHandler({final:"F"},function(Xe){return Se.cursorPrecedingLine(Xe)}),Se._parser.registerCsiHandler({final:"G"},function(Xe){return Se.cursorCharAbsolute(Xe)}),Se._parser.registerCsiHandler({final:"H"},function(Xe){return Se.cursorPosition(Xe)}),Se._parser.registerCsiHandler({final:"I"},function(Xe){return Se.cursorForwardTab(Xe)}),Se._parser.registerCsiHandler({final:"J"},function(Xe){return Se.eraseInDisplay(Xe)}),Se._parser.registerCsiHandler({prefix:"?",final:"J"},function(Xe){return Se.eraseInDisplay(Xe)}),Se._parser.registerCsiHandler({final:"K"},function(Xe){return Se.eraseInLine(Xe)}),Se._parser.registerCsiHandler({prefix:"?",final:"K"},function(Xe){return Se.eraseInLine(Xe)}),Se._parser.registerCsiHandler({final:"L"},function(Xe){return Se.insertLines(Xe)}),Se._parser.registerCsiHandler({final:"M"},function(Xe){return Se.deleteLines(Xe)}),Se._parser.registerCsiHandler({final:"P"},function(Xe){return Se.deleteChars(Xe)}),Se._parser.registerCsiHandler({final:"S"},function(Xe){return Se.scrollUp(Xe)}),Se._parser.registerCsiHandler({final:"T"},function(Xe){return Se.scrollDown(Xe)}),Se._parser.registerCsiHandler({final:"X"},function(Xe){return Se.eraseChars(Xe)}),Se._parser.registerCsiHandler({final:"Z"},function(Xe){return Se.cursorBackwardTab(Xe)}),Se._parser.registerCsiHandler({final:"`"},function(Xe){return Se.charPosAbsolute(Xe)}),Se._parser.registerCsiHandler({final:"a"},function(Xe){return Se.hPositionRelative(Xe)}),Se._parser.registerCsiHandler({final:"b"},function(Xe){return Se.repeatPrecedingCharacter(Xe)}),Se._parser.registerCsiHandler({final:"c"},function(Xe){return Se.sendDeviceAttributesPrimary(Xe)}),Se._parser.registerCsiHandler({prefix:">",final:"c"},function(Xe){return Se.sendDeviceAttributesSecondary(Xe)}),Se._parser.registerCsiHandler({final:"d"},function(Xe){return Se.linePosAbsolute(Xe)}),Se._parser.registerCsiHandler({final:"e"},function(Xe){return Se.vPositionRelative(Xe)}),Se._parser.registerCsiHandler({final:"f"},function(Xe){return Se.hVPosition(Xe)}),Se._parser.registerCsiHandler({final:"g"},function(Xe){return Se.tabClear(Xe)}),Se._parser.registerCsiHandler({final:"h"},function(Xe){return Se.setMode(Xe)}),Se._parser.registerCsiHandler({prefix:"?",final:"h"},function(Xe){return Se.setModePrivate(Xe)}),Se._parser.registerCsiHandler({final:"l"},function(Xe){return Se.resetMode(Xe)}),Se._parser.registerCsiHandler({prefix:"?",final:"l"},function(Xe){return Se.resetModePrivate(Xe)}),Se._parser.registerCsiHandler({final:"m"},function(Xe){return Se.charAttributes(Xe)}),Se._parser.registerCsiHandler({final:"n"},function(Xe){return Se.deviceStatus(Xe)}),Se._parser.registerCsiHandler({prefix:"?",final:"n"},function(Xe){return Se.deviceStatusPrivate(Xe)}),Se._parser.registerCsiHandler({intermediates:"!",final:"p"},function(Xe){return Se.softReset(Xe)}),Se._parser.registerCsiHandler({intermediates:" ",final:"q"},function(Xe){return Se.setCursorStyle(Xe)}),Se._parser.registerCsiHandler({final:"r"},function(Xe){return Se.setScrollRegion(Xe)}),Se._parser.registerCsiHandler({final:"s"},function(Xe){return Se.saveCursor(Xe)}),Se._parser.registerCsiHandler({final:"t"},function(Xe){return Se.windowOptions(Xe)}),Se._parser.registerCsiHandler({final:"u"},function(Xe){return Se.restoreCursor(Xe)}),Se._parser.registerCsiHandler({intermediates:"'",final:"}"},function(Xe){return Se.insertColumns(Xe)}),Se._parser.registerCsiHandler({intermediates:"'",final:"~"},function(Xe){return Se.deleteColumns(Xe)}),Se._parser.setExecuteHandler(D.C0.BEL,function(){return Se.bell()}),Se._parser.setExecuteHandler(D.C0.LF,function(){return Se.lineFeed()}),Se._parser.setExecuteHandler(D.C0.VT,function(){return Se.lineFeed()}),Se._parser.setExecuteHandler(D.C0.FF,function(){return Se.lineFeed()}),Se._parser.setExecuteHandler(D.C0.CR,function(){return Se.carriageReturn()}),Se._parser.setExecuteHandler(D.C0.BS,function(){return Se.backspace()}),Se._parser.setExecuteHandler(D.C0.HT,function(){return Se.tab()}),Se._parser.setExecuteHandler(D.C0.SO,function(){return Se.shiftOut()}),Se._parser.setExecuteHandler(D.C0.SI,function(){return Se.shiftIn()}),Se._parser.setExecuteHandler(D.C1.IND,function(){return Se.index()}),Se._parser.setExecuteHandler(D.C1.NEL,function(){return Se.nextLine()}),Se._parser.setExecuteHandler(D.C1.HTS,function(){return Se.tabSet()}),Se._parser.registerOscHandler(0,new j.OscHandler(function(Xe){return Se.setTitle(Xe),Se.setIconName(Xe),!0})),Se._parser.registerOscHandler(1,new j.OscHandler(function(Xe){return Se.setIconName(Xe)})),Se._parser.registerOscHandler(2,new j.OscHandler(function(Xe){return Se.setTitle(Xe)})),Se._parser.registerOscHandler(4,new j.OscHandler(function(Xe){return Se.setAnsiColor(Xe)})),Se._parser.registerEscHandler({final:"7"},function(){return Se.saveCursor()}),Se._parser.registerEscHandler({final:"8"},function(){return Se.restoreCursor()}),Se._parser.registerEscHandler({final:"D"},function(){return Se.index()}),Se._parser.registerEscHandler({final:"E"},function(){return Se.nextLine()}),Se._parser.registerEscHandler({final:"H"},function(){return Se.tabSet()}),Se._parser.registerEscHandler({final:"M"},function(){return Se.reverseIndex()}),Se._parser.registerEscHandler({final:"="},function(){return Se.keypadApplicationMode()}),Se._parser.registerEscHandler({final:">"},function(){return Se.keypadNumericMode()}),Se._parser.registerEscHandler({final:"c"},function(){return Se.fullReset()}),Se._parser.registerEscHandler({final:"n"},function(){return Se.setgLevel(2)}),Se._parser.registerEscHandler({final:"o"},function(){return Se.setgLevel(3)}),Se._parser.registerEscHandler({final:"|"},function(){return Se.setgLevel(3)}),Se._parser.registerEscHandler({final:"}"},function(){return Se.setgLevel(2)}),Se._parser.registerEscHandler({final:"~"},function(){return Se.setgLevel(1)}),Se._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return Se.selectDefaultCharset()}),Se._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return Se.selectDefaultCharset()});var Oe=function(Ht){je._parser.registerEscHandler({intermediates:"(",final:Ht},function(){return Se.selectCharset("("+Ht)}),je._parser.registerEscHandler({intermediates:")",final:Ht},function(){return Se.selectCharset(")"+Ht)}),je._parser.registerEscHandler({intermediates:"*",final:Ht},function(){return Se.selectCharset("*"+Ht)}),je._parser.registerEscHandler({intermediates:"+",final:Ht},function(){return Se.selectCharset("+"+Ht)}),je._parser.registerEscHandler({intermediates:"-",final:Ht},function(){return Se.selectCharset("-"+Ht)}),je._parser.registerEscHandler({intermediates:".",final:Ht},function(){return Se.selectCharset("."+Ht)}),je._parser.registerEscHandler({intermediates:"/",final:Ht},function(){return Se.selectCharset("/"+Ht)})},je=this;for(var ct in O.CHARSETS)Oe(ct);return Se._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return Se.screenAlignmentPattern()}),Se._parser.setErrorHandler(function(Xe){return Se._logService.error("Parsing error: ",Xe),Xe}),Se._parser.registerDcsHandler({intermediates:"$",final:"q"},new ie(Se._bufferService,Se._coreService,Se._logService,Se._optionsService)),Se}return _(de,ue),Object.defineProperty(de.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onAnsiColorChange",{get:function(){return this._onAnsiColorChange.event},enumerable:!1,configurable:!0}),de.prototype.dispose=function(){ue.prototype.dispose.call(this)},de.prototype._preserveStack=function(oe,$,ye,ve){this._parseStack.paused=!0,this._parseStack.cursorStartX=oe,this._parseStack.cursorStartY=$,this._parseStack.decodedLength=ye,this._parseStack.position=ve},de.prototype._logSlowResolvingAsync=function(oe){this._logService.logLevel<=L.LogLevelEnum.WARN&&Promise.race([oe,new Promise(function($,ye){return setTimeout(function(){return ye("#SLOW_TIMEOUT")},5e3)})]).catch(function($){if("#SLOW_TIMEOUT"!==$)throw $;console.warn("async parser handler taking longer than 5000 ms")})},de.prototype.parse=function(oe,$){var ye,ve=this._bufferService.buffer,et=ve.x,Ne=ve.y,gt=0,_t=this._parseStack.paused;if(_t){if(ye=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,$))return this._logSlowResolvingAsync(ye),ye;et=this._parseStack.cursorStartX,Ne=this._parseStack.cursorStartY,this._parseStack.paused=!1,oe.length>Q&&(gt=this._parseStack.position+Q)}if(this._logService.debug("parsing data",oe),this._parseBuffer.lengthQ)for(var Rt=gt;Rt0&&2===ct.getWidth(Ne.x-1)&&ct.setCellFromCodePoint(Ne.x-1,0,1,je.fg,je.bg,je.extended);for(var Xe=$;Xe=Rt)if(Se){for(;Ne.x=this._bufferService.rows&&(Ne.y=this._bufferService.rows-1),Ne.lines.get(Ne.ybase+Ne.y).isWrapped=!0),ct=Ne.lines.get(Ne.ybase+Ne.y)}else if(Ne.x=Rt-1,2===et)continue;if(Oe&&(ct.insertCells(Ne.x,et,Ne.getNullCell(je),je),2===ct.getWidth(Rt-1)&&ct.setCellFromCodePoint(Rt-1,x.NULL_CELL_CODE,x.NULL_CELL_WIDTH,je.fg,je.bg,je.extended)),ct.setCellFromCodePoint(Ne.x++,ve,et,je.fg,je.bg,je.extended),et>0)for(;--et;)ct.setCellFromCodePoint(Ne.x++,0,0,je.fg,je.bg,je.extended)}else ct.getWidth(Ne.x-1)?ct.addCodepointToCell(Ne.x-1,ve):ct.addCodepointToCell(Ne.x-2,ve)}ye-$>0&&(ct.loadCell(Ne.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),Ne.x0&&0===ct.getWidth(Ne.x)&&!ct.hasContent(Ne.x)&&ct.setCellFromCodePoint(Ne.x,0,1,je.fg,je.bg,je.extended),this._dirtyRowService.markDirty(Ne.y)},de.prototype.registerCsiHandler=function(oe,$){var ye=this;return this._parser.registerCsiHandler(oe,"t"!==oe.final||oe.prefix||oe.intermediates?$:function(ve){return!ae(ve.params[0],ye._optionsService.options.windowOptions)||$(ve)})},de.prototype.registerDcsHandler=function(oe,$){return this._parser.registerDcsHandler(oe,new K.DcsHandler($))},de.prototype.registerEscHandler=function(oe,$){return this._parser.registerEscHandler(oe,$)},de.prototype.registerOscHandler=function(oe,$){return this._parser.registerOscHandler(oe,new j.OscHandler($))},de.prototype.bell=function(){return this._onRequestBell.fire(),!0},de.prototype.lineFeed=function(){var oe=this._bufferService.buffer;return this._dirtyRowService.markDirty(oe.y),this._optionsService.options.convertEol&&(oe.x=0),oe.y++,oe.y===oe.scrollBottom+1?(oe.y--,this._bufferService.scroll(this._eraseAttrData())):oe.y>=this._bufferService.rows&&(oe.y=this._bufferService.rows-1),oe.x>=this._bufferService.cols&&oe.x--,this._dirtyRowService.markDirty(oe.y),this._onLineFeed.fire(),!0},de.prototype.carriageReturn=function(){return this._bufferService.buffer.x=0,!0},de.prototype.backspace=function(){var oe,$=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),$.x>0&&$.x--,!0;if(this._restrictCursor(this._bufferService.cols),$.x>0)$.x--;else if(0===$.x&&$.y>$.scrollTop&&$.y<=$.scrollBottom&&(null===(oe=$.lines.get($.ybase+$.y))||void 0===oe?void 0:oe.isWrapped)){$.lines.get($.ybase+$.y).isWrapped=!1,$.y--,$.x=this._bufferService.cols-1;var ye=$.lines.get($.ybase+$.y);ye.hasWidth($.x)&&!ye.hasContent($.x)&&$.x--}return this._restrictCursor(),!0},de.prototype.tab=function(){if(this._bufferService.buffer.x>=this._bufferService.cols)return!0;var oe=this._bufferService.buffer.x;return this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-oe),!0},de.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},de.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},de.prototype._restrictCursor=function(oe){void 0===oe&&(oe=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(oe,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)},de.prototype._setCursor=function(oe,$){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=oe,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+$):(this._bufferService.buffer.x=oe,this._bufferService.buffer.y=$),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},de.prototype._moveCursor=function(oe,$){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+oe,this._bufferService.buffer.y+$)},de.prototype.cursorUp=function(oe){var $=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;return this._moveCursor(0,$>=0?-Math.min($,oe.params[0]||1):-(oe.params[0]||1)),!0},de.prototype.cursorDown=function(oe){var $=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;return this._moveCursor(0,$>=0?Math.min($,oe.params[0]||1):oe.params[0]||1),!0},de.prototype.cursorForward=function(oe){return this._moveCursor(oe.params[0]||1,0),!0},de.prototype.cursorBackward=function(oe){return this._moveCursor(-(oe.params[0]||1),0),!0},de.prototype.cursorNextLine=function(oe){return this.cursorDown(oe),this._bufferService.buffer.x=0,!0},de.prototype.cursorPrecedingLine=function(oe){return this.cursorUp(oe),this._bufferService.buffer.x=0,!0},de.prototype.cursorCharAbsolute=function(oe){return this._setCursor((oe.params[0]||1)-1,this._bufferService.buffer.y),!0},de.prototype.cursorPosition=function(oe){return this._setCursor(oe.length>=2?(oe.params[1]||1)-1:0,(oe.params[0]||1)-1),!0},de.prototype.charPosAbsolute=function(oe){return this._setCursor((oe.params[0]||1)-1,this._bufferService.buffer.y),!0},de.prototype.hPositionRelative=function(oe){return this._moveCursor(oe.params[0]||1,0),!0},de.prototype.linePosAbsolute=function(oe){return this._setCursor(this._bufferService.buffer.x,(oe.params[0]||1)-1),!0},de.prototype.vPositionRelative=function(oe){return this._moveCursor(0,oe.params[0]||1),!0},de.prototype.hVPosition=function(oe){return this.cursorPosition(oe),!0},de.prototype.tabClear=function(oe){var $=oe.params[0];return 0===$?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:3===$&&(this._bufferService.buffer.tabs={}),!0},de.prototype.cursorForwardTab=function(oe){if(this._bufferService.buffer.x>=this._bufferService.cols)return!0;for(var $=oe.params[0]||1;$--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop();return!0},de.prototype.cursorBackwardTab=function(oe){if(this._bufferService.buffer.x>=this._bufferService.cols)return!0;for(var $=oe.params[0]||1,ye=this._bufferService.buffer;$--;)ye.x=ye.prevStop();return!0},de.prototype._eraseInBufferLine=function(oe,$,ye,ve){void 0===ve&&(ve=!1);var et=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+oe);et.replaceCells($,ye,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ve&&(et.isWrapped=!1)},de.prototype._resetBufferLine=function(oe){var $=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+oe);$.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),$.isWrapped=!1},de.prototype.eraseInDisplay=function(oe){var $;switch(this._restrictCursor(this._bufferService.cols),oe.params[0]){case 0:for(this._dirtyRowService.markDirty($=this._bufferService.buffer.y),this._eraseInBufferLine($++,this._bufferService.buffer.x,this._bufferService.cols,0===this._bufferService.buffer.x);$=this._bufferService.cols&&(this._bufferService.buffer.lines.get($+1).isWrapped=!1);$--;)this._resetBufferLine($);this._dirtyRowService.markDirty(0);break;case 2:for(this._dirtyRowService.markDirty(($=this._bufferService.rows)-1);$--;)this._resetBufferLine($);this._dirtyRowService.markDirty(0);break;case 3:var ye=this._bufferService.buffer.lines.length-this._bufferService.rows;ye>0&&(this._bufferService.buffer.lines.trimStart(ye),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-ye,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-ye,0),this._onScroll.fire(0))}return!0},de.prototype.eraseInLine=function(oe){switch(this._restrictCursor(this._bufferService.cols),oe.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},de.prototype.insertLines=function(oe){this._restrictCursor();var $=oe.params[0]||1,ye=this._bufferService.buffer;if(ye.y>ye.scrollBottom||ye.yye.scrollBottom||ye.y$.scrollBottom||$.y<$.scrollTop)return!0;for(var ye=oe.params[0]||1,ve=$.scrollTop;ve<=$.scrollBottom;++ve){var et=$.lines.get($.ybase+ve);et.deleteCells(0,ye,$.getNullCell(this._eraseAttrData()),this._eraseAttrData()),et.isWrapped=!1}return this._dirtyRowService.markRangeDirty($.scrollTop,$.scrollBottom),!0},de.prototype.scrollRight=function(oe){var $=this._bufferService.buffer;if($.y>$.scrollBottom||$.y<$.scrollTop)return!0;for(var ye=oe.params[0]||1,ve=$.scrollTop;ve<=$.scrollBottom;++ve){var et=$.lines.get($.ybase+ve);et.insertCells(0,ye,$.getNullCell(this._eraseAttrData()),this._eraseAttrData()),et.isWrapped=!1}return this._dirtyRowService.markRangeDirty($.scrollTop,$.scrollBottom),!0},de.prototype.insertColumns=function(oe){var $=this._bufferService.buffer;if($.y>$.scrollBottom||$.y<$.scrollTop)return!0;for(var ye=oe.params[0]||1,ve=$.scrollTop;ve<=$.scrollBottom;++ve){var et=this._bufferService.buffer.lines.get($.ybase+ve);et.insertCells($.x,ye,$.getNullCell(this._eraseAttrData()),this._eraseAttrData()),et.isWrapped=!1}return this._dirtyRowService.markRangeDirty($.scrollTop,$.scrollBottom),!0},de.prototype.deleteColumns=function(oe){var $=this._bufferService.buffer;if($.y>$.scrollBottom||$.y<$.scrollTop)return!0;for(var ye=oe.params[0]||1,ve=$.scrollTop;ve<=$.scrollBottom;++ve){var et=$.lines.get($.ybase+ve);et.deleteCells($.x,ye,$.getNullCell(this._eraseAttrData()),this._eraseAttrData()),et.isWrapped=!1}return this._dirtyRowService.markRangeDirty($.scrollTop,$.scrollBottom),!0},de.prototype.eraseChars=function(oe){this._restrictCursor();var $=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);return $&&($.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(oe.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y)),!0},de.prototype.repeatPrecedingCharacter=function(oe){if(!this._parser.precedingCodepoint)return!0;for(var $=oe.params[0]||1,ye=new Uint32Array($),ve=0;ve<$;++ve)ye[ve]=this._parser.precedingCodepoint;return this.print(ye,0,ye.length),!0},de.prototype.sendDeviceAttributesPrimary=function(oe){return oe.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(D.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(D.C0.ESC+"[?6c")),!0},de.prototype.sendDeviceAttributesSecondary=function(oe){return oe.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(D.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(D.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(oe.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(D.C0.ESC+"[>83;40003;0c")),!0},de.prototype._is=function(oe){return 0===(this._optionsService.options.termName+"").indexOf(oe)},de.prototype.setMode=function(oe){for(var $=0;$=2||2===ve[1]&&Ne+et>=5)break;ve[1]&&(et=1)}while(++Ne+$5)&&(oe=1),$.extended.underlineStyle=oe,$.fg|=268435456,0===oe&&($.fg&=-268435457),$.updateExtended()},de.prototype.charAttributes=function(oe){if(1===oe.length&&0===oe.params[0])return this._curAttrData.fg=M.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=M.DEFAULT_ATTR_DATA.bg,!0;for(var $,ye=oe.length,ve=this._curAttrData,et=0;et=30&&$<=37?(ve.fg&=-50331904,ve.fg|=16777216|$-30):$>=40&&$<=47?(ve.bg&=-50331904,ve.bg|=16777216|$-40):$>=90&&$<=97?(ve.fg&=-50331904,ve.fg|=16777224|$-90):$>=100&&$<=107?(ve.bg&=-50331904,ve.bg|=16777224|$-100):0===$?(ve.fg=M.DEFAULT_ATTR_DATA.fg,ve.bg=M.DEFAULT_ATTR_DATA.bg):1===$?ve.fg|=134217728:3===$?ve.bg|=67108864:4===$?(ve.fg|=268435456,this._processUnderline(oe.hasSubParams(et)?oe.getSubParams(et)[0]:1,ve)):5===$?ve.fg|=536870912:7===$?ve.fg|=67108864:8===$?ve.fg|=1073741824:2===$?ve.bg|=134217728:21===$?this._processUnderline(2,ve):22===$?(ve.fg&=-134217729,ve.bg&=-134217729):23===$?ve.bg&=-67108865:24===$?ve.fg&=-268435457:25===$?ve.fg&=-536870913:27===$?ve.fg&=-67108865:28===$?ve.fg&=-1073741825:39===$?(ve.fg&=-67108864,ve.fg|=16777215&M.DEFAULT_ATTR_DATA.fg):49===$?(ve.bg&=-67108864,ve.bg|=16777215&M.DEFAULT_ATTR_DATA.bg):38===$||48===$||58===$?et+=this._extractColor(oe,et,ve):59===$?(ve.extended=ve.extended.clone(),ve.extended.underlineColor=-1,ve.updateExtended()):100===$?(ve.fg&=-67108864,ve.fg|=16777215&M.DEFAULT_ATTR_DATA.fg,ve.bg&=-67108864,ve.bg|=16777215&M.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",$);return!0},de.prototype.deviceStatus=function(oe){switch(oe.params[0]){case 5:this._coreService.triggerDataEvent(D.C0.ESC+"[0n");break;case 6:this._coreService.triggerDataEvent(D.C0.ESC+"["+(this._bufferService.buffer.y+1)+";"+(this._bufferService.buffer.x+1)+"R")}return!0},de.prototype.deviceStatusPrivate=function(oe){switch(oe.params[0]){case 6:this._coreService.triggerDataEvent(D.C0.ESC+"[?"+(this._bufferService.buffer.y+1)+";"+(this._bufferService.buffer.x+1)+"R")}return!0},de.prototype.softReset=function(oe){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=M.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},de.prototype.setCursorStyle=function(oe){var $=oe.params[0]||1;switch($){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=$%2==1,!0},de.prototype.setScrollRegion=function(oe){var $,ye=oe.params[0]||1;return(oe.length<2||($=oe.params[1])>this._bufferService.rows||0===$)&&($=this._bufferService.rows),$>ye&&(this._bufferService.buffer.scrollTop=ye-1,this._bufferService.buffer.scrollBottom=$-1,this._setCursor(0,0)),!0},de.prototype.windowOptions=function(oe){if(!ae(oe.params[0],this._optionsService.options.windowOptions))return!0;var $=oe.length>1?oe.params[1]:0;switch(oe.params[0]){case 14:2!==$&&this._onRequestWindowsOptionsReport.fire(N.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(N.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(D.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==$&&2!==$||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==$&&1!==$||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==$&&2!==$||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==$&&1!==$||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},de.prototype.saveCursor=function(oe){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},de.prototype.restoreCursor=function(oe){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},de.prototype.setTitle=function(oe){return this._windowTitle=oe,this._onTitleChange.fire(oe),!0},de.prototype.setIconName=function(oe){return this._iconName=oe,!0},de.prototype._parseAnsiColorChange=function(oe){for(var $,ye={colors:[]},ve=/(\d+);rgb:([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})/gi;null!==($=ve.exec(oe));)ye.colors.push({colorIndex:parseInt($[1]),red:parseInt($[2],16),green:parseInt($[3],16),blue:parseInt($[4],16)});return 0===ye.colors.length?null:ye},de.prototype.setAnsiColor=function(oe){var $=this._parseAnsiColorChange(oe);return $?this._onAnsiColorChange.fire($):this._logService.warn("Expected format ;rgb:// but got data: "+oe),!0},de.prototype.nextLine=function(){return this._bufferService.buffer.x=0,this.index(),!0},de.prototype.keypadApplicationMode=function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0},de.prototype.keypadNumericMode=function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0},de.prototype.selectDefaultCharset=function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,O.DEFAULT_CHARSET),!0},de.prototype.selectCharset=function(oe){return 2!==oe.length?(this.selectDefaultCharset(),!0):("/"===oe[0]||this._charsetService.setgCharset(z[oe[0]],O.CHARSETS[oe[1]]||O.DEFAULT_CHARSET),!0)},de.prototype.index=function(){this._restrictCursor();var oe=this._bufferService.buffer;return this._bufferService.buffer.y++,oe.y===oe.scrollBottom+1?(oe.y--,this._bufferService.scroll(this._eraseAttrData())):oe.y>=this._bufferService.rows&&(oe.y=this._bufferService.rows-1),this._restrictCursor(),!0},de.prototype.tabSet=function(){return this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0,!0},de.prototype.reverseIndex=function(){this._restrictCursor();var oe=this._bufferService.buffer;return oe.y===oe.scrollTop?(oe.lines.shiftElements(oe.ybase+oe.y,oe.scrollBottom-oe.scrollTop,1),oe.lines.set(oe.ybase+oe.y,oe.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(oe.scrollTop,oe.scrollBottom)):(oe.y--,this._restrictCursor()),!0},de.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},de.prototype.reset=function(){this._curAttrData=M.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=M.DEFAULT_ATTR_DATA.clone()},de.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},de.prototype.setgLevel=function(oe){return this._charsetService.setgLevel(oe),!0},de.prototype.screenAlignmentPattern=function(){var oe=new S.CellData;oe.content=1<<22|"E".charCodeAt(0),oe.fg=this._curAttrData.fg,oe.bg=this._curAttrData.bg;var $=this._bufferService.buffer;this._setCursor(0,0);for(var ye=0;ye=0},8273:function(Z,w){function R(C,_,N,D){if(void 0===N&&(N=0),void 0===D&&(D=C.length),N>=C.length)return C;D=D>=C.length?C.length:(C.length+D)%C.length;for(var O=N=(C.length+N)%C.length;O>>16&255,N>>>8&255,255&N]},_.fromColorRGB=function(N){return(255&N[0])<<16|(255&N[1])<<8|255&N[2]},_.prototype.clone=function(){var N=new _;return N.fg=this.fg,N.bg=this.bg,N.extended=this.extended.clone(),N},_.prototype.isInverse=function(){return 67108864&this.fg},_.prototype.isBold=function(){return 134217728&this.fg},_.prototype.isUnderline=function(){return 268435456&this.fg},_.prototype.isBlink=function(){return 536870912&this.fg},_.prototype.isInvisible=function(){return 1073741824&this.fg},_.prototype.isItalic=function(){return 67108864&this.bg},_.prototype.isDim=function(){return 134217728&this.bg},_.prototype.getFgColorMode=function(){return 50331648&this.fg},_.prototype.getBgColorMode=function(){return 50331648&this.bg},_.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},_.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},_.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},_.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},_.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},_.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},_.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},_.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},_.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},_.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},_.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},_.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()},_.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},_.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()},_.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},_.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()},_.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},_}();w.AttributeData=R;var C=function(){function _(N,D){void 0===N&&(N=0),void 0===D&&(D=-1),this.underlineStyle=N,this.underlineColor=D}return _.prototype.clone=function(){return new _(this.underlineStyle,this.underlineColor)},_.prototype.isEmpty=function(){return 0===this.underlineStyle},_}();w.ExtendedAttrs=C},9092:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.BufferStringIterator=w.Buffer=w.MAX_BUFFER_SIZE=void 0;var C=R(6349),_=R(8437),N=R(511),D=R(643),O=R(4634),P=R(4863),y=R(7116),g=R(3734);w.MAX_BUFFER_SIZE=4294967295;var T=function(){function E(x,S,A){this._hasScrollback=x,this._optionsService=S,this._bufferService=A,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=_.DEFAULT_ATTR_DATA.clone(),this.savedCharset=y.DEFAULT_CHARSET,this.markers=[],this._nullCell=N.CellData.fromCharData([0,D.NULL_CELL_CHAR,D.NULL_CELL_WIDTH,D.NULL_CELL_CODE]),this._whitespaceCell=N.CellData.fromCharData([0,D.WHITESPACE_CELL_CHAR,D.WHITESPACE_CELL_WIDTH,D.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new C.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return E.prototype.getNullCell=function(x){return x?(this._nullCell.fg=x.fg,this._nullCell.bg=x.bg,this._nullCell.extended=x.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new g.ExtendedAttrs),this._nullCell},E.prototype.getWhitespaceCell=function(x){return x?(this._whitespaceCell.fg=x.fg,this._whitespaceCell.bg=x.bg,this._whitespaceCell.extended=x.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new g.ExtendedAttrs),this._whitespaceCell},E.prototype.getBlankLine=function(x,S){return new _.BufferLine(this._bufferService.cols,this.getNullCell(x),S)},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 S=this.ybase+this.y-this.ydisp;return S>=0&&Sw.MAX_BUFFER_SIZE?w.MAX_BUFFER_SIZE:S},E.prototype.fillViewportRows=function(x){if(0===this.lines.length){void 0===x&&(x=_.DEFAULT_ATTR_DATA);for(var S=this._rows;S--;)this.lines.push(this.getBlankLine(x))}},E.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new C.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},E.prototype.resize=function(x,S){var A=this.getNullCell(_.DEFAULT_ATTR_DATA),L=this._getCorrectBufferLength(S);if(L>this.lines.maxLength&&(this.lines.maxLength=L),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+K+1?(this.ybase--,K++,this.ydisp>0&&this.ydisp--):this.lines.push(new _.BufferLine(x,A)));else for(z=this._rows;z>S;z--)this.lines.length>S+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(L0&&(this.lines.trimStart(Q),this.ybase=Math.max(this.ybase-Q,0),this.ydisp=Math.max(this.ydisp-Q,0),this.savedY=Math.max(this.savedY-Q,0)),this.lines.maxLength=L}this.x=Math.min(this.x,x-1),this.y=Math.min(this.y,S-1),K&&(this.y+=K),this.savedX=Math.min(this.savedX,x-1),this.scrollTop=0}if(this.scrollBottom=S-1,this._isReflowEnabled&&(this._reflow(x,S),this._cols>x))for(j=0;jthis._cols?this._reflowLarger(x,S):this._reflowSmaller(x,S))},E.prototype._reflowLarger=function(x,S){var A=O.reflowLargerGetLinesToRemove(this.lines,this._cols,x,this.ybase+this.y,this.getNullCell(_.DEFAULT_ATTR_DATA));if(A.length>0){var L=O.reflowLargerCreateNewLayout(this.lines,A);O.reflowLargerApplyNewLayout(this.lines,L.layout),this._reflowLargerAdjustViewport(x,S,L.countRemoved)}},E.prototype._reflowLargerAdjustViewport=function(x,S,A){for(var L=this.getNullCell(_.DEFAULT_ATTR_DATA),j=A;j-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length=0;K--){var z=this.lines.get(K);if(!(!z||!z.isWrapped&&z.getTrimmedLength()<=x)){for(var Q=[z];z.isWrapped&&K>0;)z=this.lines.get(--K),Q.unshift(z);var ae=this.ybase+this.y;if(!(ae>=K&&ae0&&(L.push({start:K+Q.length+j,newLines:oe}),j+=oe.length),Q.push.apply(Q,oe);var ve=ue.length-1,et=ue[ve];0===et&&(et=ue[--ve]);for(var Ne=Q.length-de-1,gt=se;Ne>=0;){var _t=Math.min(gt,et);if(Q[ve].copyCellsFrom(Q[Ne],gt-_t,et-_t,_t,!0),0==(et-=_t)&&(et=ue[--ve]),0==(gt-=_t)){Ne--;var Rt=Math.max(Ne,0);gt=O.getWrappedLineTrimmedLength(Q,Rt,this._cols)}}for($=0;$0;)0===this.ybase?this.y0){var Oe=[],je=[];for($=0;$=0;$--)if(Et&&Et.start>Xe+vt){for(var Xt=Et.newLines.length-1;Xt>=0;Xt--)this.lines.set($--,Et.newLines[Xt]);$++,Oe.push({index:Xe+1,amount:Et.newLines.length}),vt+=Et.newLines.length,Et=L[++Ht]}else this.lines.set($,je[Xe--]);var qt=0;for($=Oe.length-1;$>=0;$--)Oe[$].index+=qt,this.lines.onInsertEmitter.fire(Oe[$]),qt+=Oe[$].amount;var Ct=Math.max(0,ct+j-this.lines.maxLength);Ct>0&&this.lines.onTrimEmitter.fire(Ct)}},E.prototype.stringIndexToBufferIndex=function(x,S,A){for(void 0===A&&(A=!1);S;){var L=this.lines.get(x);if(!L)return[-1,-1];for(var j=A?L.getTrimmedLength():L.length,K=0;K0&&this.lines.get(S).isWrapped;)S--;for(;A+10;);return x>=this._cols?this._cols-1:x<0?0:x},E.prototype.nextStop=function(x){for(null==x&&(x=this.x);!this.tabs[++x]&&x=this._cols?this._cols-1:x<0?0:x},E.prototype.addMarker=function(x){var S=this,A=new P.Marker(x);return this.markers.push(A),A.register(this.lines.onTrim(function(L){A.line-=L,A.line<0&&A.dispose()})),A.register(this.lines.onInsert(function(L){A.line>=L.index&&(A.line+=L.amount)})),A.register(this.lines.onDelete(function(L){A.line>=L.index&&A.lineL.index&&(A.line-=L.amount)})),A.register(A.onDispose(function(){return S._removeMarker(A)})),A},E.prototype._removeMarker=function(x){this.markers.splice(this.markers.indexOf(x),1)},E.prototype.iterator=function(x,S,A,L,j){return new M(this,x,S,A,L,j)},E}();w.Buffer=T;var M=function(){function E(x,S,A,L,j,K){void 0===A&&(A=0),void 0===L&&(L=x.lines.length),void 0===j&&(j=0),void 0===K&&(K=0),this._buffer=x,this._trimRight=S,this._startIndex=A,this._endIndex=L,this._startOverscan=j,this._endOverscan=K,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._currentthis._endIndex+this._endOverscan&&(x.last=this._endIndex+this._endOverscan),x.first=Math.max(x.first,0),x.last=Math.min(x.last,this._buffer.lines.length);for(var S="",A=x.first;A<=x.last;++A)S+=this._buffer.translateBufferLineToString(A,this._trimRight);return this._current=x.last+1,{range:x,content:S}},E}();w.BufferStringIterator=M},8437:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.BufferLine=w.DEFAULT_ATTR_DATA=void 0;var C=R(482),_=R(643),N=R(511),D=R(3734);w.DEFAULT_ATTR_DATA=Object.freeze(new D.AttributeData);var O=function(){function P(y,g,T){void 0===T&&(T=!1),this.isWrapped=T,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*y);for(var M=g||N.CellData.fromCharData([0,_.NULL_CELL_CHAR,_.NULL_CELL_WIDTH,_.NULL_CELL_CODE]),E=0;E>22,2097152&g?this._combined[y].charCodeAt(this._combined[y].length-1):T]},P.prototype.set=function(y,g){this._data[3*y+1]=g[_.CHAR_DATA_ATTR_INDEX],g[_.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[y]=g[1],this._data[3*y+0]=2097152|y|g[_.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*y+0]=g[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|g[_.CHAR_DATA_WIDTH_INDEX]<<22},P.prototype.getWidth=function(y){return this._data[3*y+0]>>22},P.prototype.hasWidth=function(y){return 12582912&this._data[3*y+0]},P.prototype.getFg=function(y){return this._data[3*y+1]},P.prototype.getBg=function(y){return this._data[3*y+2]},P.prototype.hasContent=function(y){return 4194303&this._data[3*y+0]},P.prototype.getCodePoint=function(y){var g=this._data[3*y+0];return 2097152&g?this._combined[y].charCodeAt(this._combined[y].length-1):2097151&g},P.prototype.isCombined=function(y){return 2097152&this._data[3*y+0]},P.prototype.getString=function(y){var g=this._data[3*y+0];return 2097152&g?this._combined[y]:2097151&g?C.stringFromCodePoint(2097151&g):""},P.prototype.loadCell=function(y,g){var T=3*y;return g.content=this._data[T+0],g.fg=this._data[T+1],g.bg=this._data[T+2],2097152&g.content&&(g.combinedData=this._combined[y]),268435456&g.bg&&(g.extended=this._extendedAttrs[y]),g},P.prototype.setCell=function(y,g){2097152&g.content&&(this._combined[y]=g.combinedData),268435456&g.bg&&(this._extendedAttrs[y]=g.extended),this._data[3*y+0]=g.content,this._data[3*y+1]=g.fg,this._data[3*y+2]=g.bg},P.prototype.setCellFromCodePoint=function(y,g,T,M,E,x){268435456&E&&(this._extendedAttrs[y]=x),this._data[3*y+0]=g|T<<22,this._data[3*y+1]=M,this._data[3*y+2]=E},P.prototype.addCodepointToCell=function(y,g){var T=this._data[3*y+0];2097152&T?this._combined[y]+=C.stringFromCodePoint(g):(2097151&T?(this._combined[y]=C.stringFromCodePoint(2097151&T)+C.stringFromCodePoint(g),T&=-2097152,T|=2097152):T=g|1<<22,this._data[3*y+0]=T)},P.prototype.insertCells=function(y,g,T,M){if((y%=this.length)&&2===this.getWidth(y-1)&&this.setCellFromCodePoint(y-1,0,1,(null==M?void 0:M.fg)||0,(null==M?void 0:M.bg)||0,(null==M?void 0:M.extended)||new D.ExtendedAttrs),g=0;--x)this.setCell(y+g+x,this.loadCell(y+x,E));for(x=0;xthis.length){var T=new Uint32Array(3*y);this.length&&T.set(3*y=y&&delete this._combined[x]}}else this._data=new Uint32Array(0),this._combined={};this.length=y}},P.prototype.fill=function(y){this._combined={},this._extendedAttrs={};for(var g=0;g=0;--y)if(4194303&this._data[3*y+0])return y+(this._data[3*y+0]>>22);return 0},P.prototype.copyCellsFrom=function(y,g,T,M,E){var x=y._data;if(E)for(var S=M-1;S>=0;S--)for(var A=0;A<3;A++)this._data[3*(T+S)+A]=x[3*(g+S)+A];else for(S=0;S=g&&(this._combined[j-g+T]=y._combined[j])}},P.prototype.translateToString=function(y,g,T){void 0===y&&(y=!1),void 0===g&&(g=0),void 0===T&&(T=this.length),y&&(T=Math.min(T,this.getTrimmedLength()));for(var M="";g>22||1}return M},P}();w.BufferLine=O},4841:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.getRangeLength=void 0,w.getRangeLength=function(R,C){if(R.start.y>R.end.y)throw new Error("Buffer range end ("+R.end.x+", "+R.end.y+") cannot be before start ("+R.start.x+", "+R.start.y+")");return C*(R.end.y-R.start.y)+(R.end.x-R.start.x+1)}},4634:function(Z,w){function R(C,_,N){if(_===C.length-1)return C[_].getTrimmedLength();var D=!C[_].hasContent(N-1)&&1===C[_].getWidth(N-1),O=2===C[_+1].getWidth(0);return D&&O?N-1:N}Object.defineProperty(w,"__esModule",{value:!0}),w.getWrappedLineTrimmedLength=w.reflowSmallerGetNewLineLengths=w.reflowLargerApplyNewLayout=w.reflowLargerCreateNewLayout=w.reflowLargerGetLinesToRemove=void 0,w.reflowLargerGetLinesToRemove=function(C,_,N,D,O){for(var P=[],y=0;y=y&&D0&&(ae>E||0===M[ae].getTrimmedLength());ae--)Q++;Q>0&&(P.push(y+M.length-Q),P.push(Q)),y+=M.length-1}}}return P},w.reflowLargerCreateNewLayout=function(C,_){for(var N=[],D=0,O=_[D],P=0,y=0;yT&&(P-=T,y++);var M=2===C[y].getWidth(P-1);M&&P--;var E=M?N-1:N;D.push(E),g+=E}return D},w.getWrappedLineTrimmedLength=R},5295:function(Z,w,R){var C,_=this&&this.__extends||(C=function(y,g){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,M){T.__proto__=M}||function(T,M){for(var E in M)Object.prototype.hasOwnProperty.call(M,E)&&(T[E]=M[E])})(y,g)},function(P,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function g(){this.constructor=P}C(P,y),P.prototype=null===y?Object.create(y):(g.prototype=y.prototype,new g)});Object.defineProperty(w,"__esModule",{value:!0}),w.BufferSet=void 0;var N=R(9092),D=R(8460),O=function(P){function y(g,T){var M=P.call(this)||this;return M._optionsService=g,M._bufferService=T,M._onBufferActivate=M.register(new D.EventEmitter),M.reset(),M}return _(y,P),Object.defineProperty(y.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),y.prototype.reset=function(){this._normal=new N.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new N.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this.setupTabStops()},Object.defineProperty(y.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),y.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}))},y.prototype.activateAltBuffer=function(g){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(g),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}))},y.prototype.resize=function(g,T){this._normal.resize(g,T),this._alt.resize(g,T)},y.prototype.setupTabStops=function(g){this._normal.setupTabStops(g),this._alt.setupTabStops(g)},y}(R(844).Disposable);w.BufferSet=O},511:function(Z,w,R){var C,_=this&&this.__extends||(C=function(g,T){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,E){M.__proto__=E}||function(M,E){for(var x in E)Object.prototype.hasOwnProperty.call(E,x)&&(M[x]=E[x])})(g,T)},function(y,g){if("function"!=typeof g&&null!==g)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function T(){this.constructor=y}C(y,g),y.prototype=null===g?Object.create(g):(T.prototype=g.prototype,new T)});Object.defineProperty(w,"__esModule",{value:!0}),w.CellData=void 0;var N=R(482),D=R(643),O=R(3734),P=function(y){function g(){var T=null!==y&&y.apply(this,arguments)||this;return T.content=0,T.fg=0,T.bg=0,T.extended=new O.ExtendedAttrs,T.combinedData="",T}return _(g,y),g.fromCharData=function(T){var M=new g;return M.setFromCharData(T),M},g.prototype.isCombined=function(){return 2097152&this.content},g.prototype.getWidth=function(){return this.content>>22},g.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?N.stringFromCodePoint(2097151&this.content):""},g.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},g.prototype.setFromCharData=function(T){this.fg=T[D.CHAR_DATA_ATTR_INDEX],this.bg=0;var M=!1;if(T[D.CHAR_DATA_CHAR_INDEX].length>2)M=!0;else if(2===T[D.CHAR_DATA_CHAR_INDEX].length){var E=T[D.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=E&&E<=56319){var x=T[D.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=x&&x<=57343?this.content=1024*(E-55296)+x-56320+65536|T[D.CHAR_DATA_WIDTH_INDEX]<<22:M=!0}else M=!0}else this.content=T[D.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|T[D.CHAR_DATA_WIDTH_INDEX]<<22;M&&(this.combinedData=T[D.CHAR_DATA_CHAR_INDEX],this.content=2097152|T[D.CHAR_DATA_WIDTH_INDEX]<<22)},g.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},g}(O.AttributeData);w.CellData=P},643:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.WHITESPACE_CELL_CODE=w.WHITESPACE_CELL_WIDTH=w.WHITESPACE_CELL_CHAR=w.NULL_CELL_CODE=w.NULL_CELL_WIDTH=w.NULL_CELL_CHAR=w.CHAR_DATA_CODE_INDEX=w.CHAR_DATA_WIDTH_INDEX=w.CHAR_DATA_CHAR_INDEX=w.CHAR_DATA_ATTR_INDEX=w.DEFAULT_ATTR=w.DEFAULT_COLOR=void 0,w.DEFAULT_COLOR=256,w.DEFAULT_ATTR=256|w.DEFAULT_COLOR<<9,w.CHAR_DATA_ATTR_INDEX=0,w.CHAR_DATA_CHAR_INDEX=1,w.CHAR_DATA_WIDTH_INDEX=2,w.CHAR_DATA_CODE_INDEX=3,w.NULL_CELL_CHAR="",w.NULL_CELL_WIDTH=1,w.NULL_CELL_CODE=0,w.WHITESPACE_CELL_CHAR=" ",w.WHITESPACE_CELL_WIDTH=1,w.WHITESPACE_CELL_CODE=32},4863:function(Z,w,R){var C,_=this&&this.__extends||(C=function(P,y){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,T){g.__proto__=T}||function(g,T){for(var M in T)Object.prototype.hasOwnProperty.call(T,M)&&(g[M]=T[M])})(P,y)},function(O,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function y(){this.constructor=O}C(O,P),O.prototype=null===P?Object.create(P):(y.prototype=P.prototype,new y)});Object.defineProperty(w,"__esModule",{value:!0}),w.Marker=void 0;var N=R(8460),D=function(O){function P(y){var g=O.call(this)||this;return g.line=y,g._id=P._nextId++,g.isDisposed=!1,g._onDispose=new N.EventEmitter,g}return _(P,O),Object.defineProperty(P.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),P.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),O.prototype.dispose.call(this))},P._nextId=1,P}(R(844).Disposable);w.Marker=D},7116:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.DEFAULT_CHARSET=w.CHARSETS=void 0,w.CHARSETS={},w.DEFAULT_CHARSET=w.CHARSETS.B,w.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"},w.CHARSETS.A={"#":"\xa3"},w.CHARSETS.B=void 0,w.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},w.CHARSETS.C=w.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},w.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},w.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},w.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},w.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},w.CHARSETS.E=w.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},w.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},w.CHARSETS.H=w.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},w.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},2584:function(Z,w){var R,C;Object.defineProperty(w,"__esModule",{value:!0}),w.C1=w.C0=void 0,(C=w.C0||(w.C0={})).NUL="\0",C.SOH="\x01",C.STX="\x02",C.ETX="\x03",C.EOT="\x04",C.ENQ="\x05",C.ACK="\x06",C.BEL="\x07",C.BS="\b",C.HT="\t",C.LF="\n",C.VT="\v",C.FF="\f",C.CR="\r",C.SO="\x0e",C.SI="\x0f",C.DLE="\x10",C.DC1="\x11",C.DC2="\x12",C.DC3="\x13",C.DC4="\x14",C.NAK="\x15",C.SYN="\x16",C.ETB="\x17",C.CAN="\x18",C.EM="\x19",C.SUB="\x1a",C.ESC="\x1b",C.FS="\x1c",C.GS="\x1d",C.RS="\x1e",C.US="\x1f",C.SP=" ",C.DEL="\x7f",(R=w.C1||(w.C1={})).PAD="\x80",R.HOP="\x81",R.BPH="\x82",R.NBH="\x83",R.IND="\x84",R.NEL="\x85",R.SSA="\x86",R.ESA="\x87",R.HTS="\x88",R.HTJ="\x89",R.VTS="\x8a",R.PLD="\x8b",R.PLU="\x8c",R.RI="\x8d",R.SS2="\x8e",R.SS3="\x8f",R.DCS="\x90",R.PU1="\x91",R.PU2="\x92",R.STS="\x93",R.CCH="\x94",R.MW="\x95",R.SPA="\x96",R.EPA="\x97",R.SOS="\x98",R.SGCI="\x99",R.SCI="\x9a",R.CSI="\x9b",R.ST="\x9c",R.OSC="\x9d",R.PM="\x9e",R.APC="\x9f"},7399:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.evaluateKeyboardEvent=void 0;var C=R(2584),_={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:["'",'"']};w.evaluateKeyboardEvent=function(N,D,O,P){var y={type:0,cancel:!1,key:void 0},g=(N.shiftKey?1:0)|(N.altKey?2:0)|(N.ctrlKey?4:0)|(N.metaKey?8:0);switch(N.keyCode){case 0:"UIKeyInputUpArrow"===N.key?y.key=D?C.C0.ESC+"OA":C.C0.ESC+"[A":"UIKeyInputLeftArrow"===N.key?y.key=D?C.C0.ESC+"OD":C.C0.ESC+"[D":"UIKeyInputRightArrow"===N.key?y.key=D?C.C0.ESC+"OC":C.C0.ESC+"[C":"UIKeyInputDownArrow"===N.key&&(y.key=D?C.C0.ESC+"OB":C.C0.ESC+"[B");break;case 8:if(N.shiftKey){y.key=C.C0.BS;break}if(N.altKey){y.key=C.C0.ESC+C.C0.DEL;break}y.key=C.C0.DEL;break;case 9:if(N.shiftKey){y.key=C.C0.ESC+"[Z";break}y.key=C.C0.HT,y.cancel=!0;break;case 13:y.key=N.altKey?C.C0.ESC+C.C0.CR:C.C0.CR,y.cancel=!0;break;case 27:y.key=C.C0.ESC,N.altKey&&(y.key=C.C0.ESC+C.C0.ESC),y.cancel=!0;break;case 37:if(N.metaKey)break;g?(y.key=C.C0.ESC+"[1;"+(g+1)+"D",y.key===C.C0.ESC+"[1;3D"&&(y.key=C.C0.ESC+(O?"b":"[1;5D"))):y.key=D?C.C0.ESC+"OD":C.C0.ESC+"[D";break;case 39:if(N.metaKey)break;g?(y.key=C.C0.ESC+"[1;"+(g+1)+"C",y.key===C.C0.ESC+"[1;3C"&&(y.key=C.C0.ESC+(O?"f":"[1;5C"))):y.key=D?C.C0.ESC+"OC":C.C0.ESC+"[C";break;case 38:if(N.metaKey)break;g?(y.key=C.C0.ESC+"[1;"+(g+1)+"A",O||y.key!==C.C0.ESC+"[1;3A"||(y.key=C.C0.ESC+"[1;5A")):y.key=D?C.C0.ESC+"OA":C.C0.ESC+"[A";break;case 40:if(N.metaKey)break;g?(y.key=C.C0.ESC+"[1;"+(g+1)+"B",O||y.key!==C.C0.ESC+"[1;3B"||(y.key=C.C0.ESC+"[1;5B")):y.key=D?C.C0.ESC+"OB":C.C0.ESC+"[B";break;case 45:N.shiftKey||N.ctrlKey||(y.key=C.C0.ESC+"[2~");break;case 46:y.key=g?C.C0.ESC+"[3;"+(g+1)+"~":C.C0.ESC+"[3~";break;case 36:y.key=g?C.C0.ESC+"[1;"+(g+1)+"H":D?C.C0.ESC+"OH":C.C0.ESC+"[H";break;case 35:y.key=g?C.C0.ESC+"[1;"+(g+1)+"F":D?C.C0.ESC+"OF":C.C0.ESC+"[F";break;case 33:N.shiftKey?y.type=2:y.key=C.C0.ESC+"[5~";break;case 34:N.shiftKey?y.type=3:y.key=C.C0.ESC+"[6~";break;case 112:y.key=g?C.C0.ESC+"[1;"+(g+1)+"P":C.C0.ESC+"OP";break;case 113:y.key=g?C.C0.ESC+"[1;"+(g+1)+"Q":C.C0.ESC+"OQ";break;case 114:y.key=g?C.C0.ESC+"[1;"+(g+1)+"R":C.C0.ESC+"OR";break;case 115:y.key=g?C.C0.ESC+"[1;"+(g+1)+"S":C.C0.ESC+"OS";break;case 116:y.key=g?C.C0.ESC+"[15;"+(g+1)+"~":C.C0.ESC+"[15~";break;case 117:y.key=g?C.C0.ESC+"[17;"+(g+1)+"~":C.C0.ESC+"[17~";break;case 118:y.key=g?C.C0.ESC+"[18;"+(g+1)+"~":C.C0.ESC+"[18~";break;case 119:y.key=g?C.C0.ESC+"[19;"+(g+1)+"~":C.C0.ESC+"[19~";break;case 120:y.key=g?C.C0.ESC+"[20;"+(g+1)+"~":C.C0.ESC+"[20~";break;case 121:y.key=g?C.C0.ESC+"[21;"+(g+1)+"~":C.C0.ESC+"[21~";break;case 122:y.key=g?C.C0.ESC+"[23;"+(g+1)+"~":C.C0.ESC+"[23~";break;case 123:y.key=g?C.C0.ESC+"[24;"+(g+1)+"~":C.C0.ESC+"[24~";break;default:if(!N.ctrlKey||N.shiftKey||N.altKey||N.metaKey)if(O&&!P||!N.altKey||N.metaKey)!O||N.altKey||N.ctrlKey||N.shiftKey||!N.metaKey?N.key&&!N.ctrlKey&&!N.altKey&&!N.metaKey&&N.keyCode>=48&&1===N.key.length?y.key=N.key:N.key&&N.ctrlKey&&"_"===N.key&&(y.key=C.C0.US):65===N.keyCode&&(y.type=1);else{var T=_[N.keyCode],M=T&&T[N.shiftKey?1:0];M?y.key=C.C0.ESC+M:N.keyCode>=65&&N.keyCode<=90&&(y.key=C.C0.ESC+String.fromCharCode(N.ctrlKey?N.keyCode-64:N.keyCode+32))}else N.keyCode>=65&&N.keyCode<=90?y.key=String.fromCharCode(N.keyCode-64):32===N.keyCode?y.key=C.C0.NUL:N.keyCode>=51&&N.keyCode<=55?y.key=String.fromCharCode(N.keyCode-51+27):56===N.keyCode?y.key=C.C0.DEL:219===N.keyCode?y.key=C.C0.ESC:220===N.keyCode?y.key=C.C0.FS:221===N.keyCode&&(y.key=C.C0.GS)}return y}},482:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.Utf8ToUtf32=w.StringToUtf32=w.utf32ToString=w.stringFromCodePoint=void 0,w.stringFromCodePoint=function(_){return _>65535?(_-=65536,String.fromCharCode(55296+(_>>10))+String.fromCharCode(_%1024+56320)):String.fromCharCode(_)},w.utf32ToString=function(_,N,D){void 0===N&&(N=0),void 0===D&&(D=_.length);for(var O="",P=N;P65535?(y-=65536,O+=String.fromCharCode(55296+(y>>10))+String.fromCharCode(y%1024+56320)):O+=String.fromCharCode(y)}return O};var R=function(){function _(){this._interim=0}return _.prototype.clear=function(){this._interim=0},_.prototype.decode=function(N,D){var O=N.length;if(!O)return 0;var P=0,y=0;this._interim&&(56320<=(M=N.charCodeAt(y++))&&M<=57343?D[P++]=1024*(this._interim-55296)+M-56320+65536:(D[P++]=this._interim,D[P++]=M),this._interim=0);for(var g=y;g=O)return this._interim=T,P;var M;56320<=(M=N.charCodeAt(g))&&M<=57343?D[P++]=1024*(T-55296)+M-56320+65536:(D[P++]=T,D[P++]=M)}else 65279!==T&&(D[P++]=T)}return P},_}();w.StringToUtf32=R;var C=function(){function _(){this.interim=new Uint8Array(3)}return _.prototype.clear=function(){this.interim.fill(0)},_.prototype.decode=function(N,D){var O=N.length;if(!O)return 0;var P,y,g,T,M=0,E=0,x=0;if(this.interim[0]){var S=!1,A=this.interim[0];A&=192==(224&A)?31:224==(240&A)?15:7;for(var L=0,j=void 0;(j=63&this.interim[++L])&&L<4;)A<<=6,A|=j;for(var K=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,z=K-L;x=O)return 0;if(128!=(192&(j=N[x++]))){x--,S=!0;break}this.interim[L++]=j,A<<=6,A|=63&j}S||(2===K?A<128?x--:D[M++]=A:3===K?A<2048||A>=55296&&A<=57343||65279===A||(D[M++]=A):A<65536||A>1114111||(D[M++]=A)),this.interim.fill(0)}for(var Q=O-4,ae=x;ae=O)return this.interim[0]=P,M;if(128!=(192&(y=N[ae++]))){ae--;continue}if((E=(31&P)<<6|63&y)<128){ae--;continue}D[M++]=E}else if(224==(240&P)){if(ae>=O)return this.interim[0]=P,M;if(128!=(192&(y=N[ae++]))){ae--;continue}if(ae>=O)return this.interim[0]=P,this.interim[1]=y,M;if(128!=(192&(g=N[ae++]))){ae--;continue}if((E=(15&P)<<12|(63&y)<<6|63&g)<2048||E>=55296&&E<=57343||65279===E)continue;D[M++]=E}else if(240==(248&P)){if(ae>=O)return this.interim[0]=P,M;if(128!=(192&(y=N[ae++]))){ae--;continue}if(ae>=O)return this.interim[0]=P,this.interim[1]=y,M;if(128!=(192&(g=N[ae++]))){ae--;continue}if(ae>=O)return this.interim[0]=P,this.interim[1]=y,this.interim[2]=g,M;if(128!=(192&(T=N[ae++]))){ae--;continue}if((E=(7&P)<<18|(63&y)<<12|(63&g)<<6|63&T)<65536||E>1114111)continue;D[M++]=E}}return M},_}();w.Utf8ToUtf32=C},225:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.UnicodeV6=void 0;var C,_=R(8273),N=[[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]],D=[[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]],O=function(){function P(){if(this.version="6",!C){C=new Uint8Array(65536),_.fill(C,1),C[0]=0,_.fill(C,0,1,32),_.fill(C,0,127,160),_.fill(C,2,4352,4448),C[9001]=2,C[9002]=2,_.fill(C,2,11904,42192),C[12351]=1,_.fill(C,2,44032,55204),_.fill(C,2,63744,64256),_.fill(C,2,65040,65050),_.fill(C,2,65072,65136),_.fill(C,2,65280,65377),_.fill(C,2,65504,65511);for(var y=0;yT[x][1])return!1;for(;x>=E;)if(g>T[M=E+x>>1][1])E=M+1;else{if(!(g=131072&&y<=196605||y>=196608&&y<=262141?2:1},P}();w.UnicodeV6=O},5981:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.WriteBuffer=void 0;var R="undefined"==typeof queueMicrotask?function(_){Promise.resolve().then(_)}:queueMicrotask,C=function(){function _(N){this._action=N,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0}return _.prototype.writeSync=function(N,D){if(void 0!==D&&this._syncCalls>D)this._syncCalls=0;else if(this._pendingData+=N.length,this._writeBuffer.push(N),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var O;for(this._isSyncWriting=!0;O=this._writeBuffer.shift();){this._action(O);var P=this._callbacks.shift();P&&P()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},_.prototype.write=function(N,D){var O=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 O._innerWrite()})),this._pendingData+=N.length,this._writeBuffer.push(N),this._callbacks.push(D)},_.prototype._innerWrite=function(N,D){var O=this;void 0===N&&(N=0),void 0===D&&(D=!0);for(var P=N||Date.now();this._writeBuffer.length>this._bufferOffset;){var y=this._writeBuffer[this._bufferOffset],g=this._action(y,D);if(g)return void g.catch(function(M){return R(function(){throw M}),Promise.resolve(!1)}).then(function(M){return Date.now()-P>=12?setTimeout(function(){return O._innerWrite(0,M)}):O._innerWrite(P,M)});var T=this._callbacks[this._bufferOffset];if(T&&T(),this._bufferOffset++,this._pendingData-=y.length,Date.now()-P>=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 O._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0)},_}();w.WriteBuffer=C},5770:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.PAYLOAD_LIMIT=void 0,w.PAYLOAD_LIMIT=1e7},6351:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.DcsHandler=w.DcsParser=void 0;var C=R(482),_=R(8742),N=R(5770),D=[],O=function(){function g(){this._handlers=Object.create(null),this._active=D,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return g.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=D},g.prototype.registerHandler=function(T,M){void 0===this._handlers[T]&&(this._handlers[T]=[]);var E=this._handlers[T];return E.push(M),{dispose:function(){var S=E.indexOf(M);-1!==S&&E.splice(S,1)}}},g.prototype.clearHandler=function(T){this._handlers[T]&&delete this._handlers[T]},g.prototype.setHandlerFallback=function(T){this._handlerFb=T},g.prototype.reset=function(){if(this._active.length)for(var T=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;T>=0;--T)this._active[T].unhook(!1);this._stack.paused=!1,this._active=D,this._ident=0},g.prototype.hook=function(T,M){if(this.reset(),this._ident=T,this._active=this._handlers[T]||D,this._active.length)for(var E=this._active.length-1;E>=0;E--)this._active[E].hook(M);else this._handlerFb(this._ident,"HOOK",M)},g.prototype.put=function(T,M,E){if(this._active.length)for(var x=this._active.length-1;x>=0;x--)this._active[x].put(T,M,E);else this._handlerFb(this._ident,"PUT",C.utf32ToString(T,M,E))},g.prototype.unhook=function(T,M){if(void 0===M&&(M=!0),this._active.length){var E=!1,x=this._active.length-1,S=!1;if(this._stack.paused&&(x=this._stack.loopPosition-1,E=M,S=this._stack.fallThrough,this._stack.paused=!1),!S&&!1===E){for(;x>=0&&!0!==(E=this._active[x].unhook(T));x--)if(E instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=x,this._stack.fallThrough=!1,E;x--}for(;x>=0;x--)if((E=this._active[x].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=x,this._stack.fallThrough=!0,E}else this._handlerFb(this._ident,"UNHOOK",T);this._active=D,this._ident=0},g}();w.DcsParser=O;var P=new _.Params;P.addParam(0);var y=function(){function g(T){this._handler=T,this._data="",this._params=P,this._hitLimit=!1}return g.prototype.hook=function(T){this._params=T.length>1||T.params[0]?T.clone():P,this._data="",this._hitLimit=!1},g.prototype.put=function(T,M,E){this._hitLimit||(this._data+=C.utf32ToString(T,M,E),this._data.length>N.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},g.prototype.unhook=function(T){var M=this,E=!1;if(this._hitLimit)E=!1;else if(T&&(E=this._handler(this._data,this._params))instanceof Promise)return E.then(function(x){return M._params=P,M._data="",M._hitLimit=!1,x});return this._params=P,this._data="",this._hitLimit=!1,E},g}();w.DcsHandler=y},2015:function(Z,w,R){var C,_=this&&this.__extends||(C=function(x,S){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,L){A.__proto__=L}||function(A,L){for(var j in L)Object.prototype.hasOwnProperty.call(L,j)&&(A[j]=L[j])})(x,S)},function(E,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function S(){this.constructor=E}C(E,x),E.prototype=null===x?Object.create(x):(S.prototype=x.prototype,new S)});Object.defineProperty(w,"__esModule",{value:!0}),w.EscapeSequenceParser=w.VT500_TRANSITION_TABLE=w.TransitionTable=void 0;var N=R(844),D=R(8273),O=R(8742),P=R(6242),y=R(6351),g=function(){function E(x){this.table=new Uint8Array(x)}return E.prototype.setDefault=function(x,S){D.fill(this.table,x<<4|S)},E.prototype.add=function(x,S,A,L){this.table[S<<8|x]=A<<4|L},E.prototype.addMany=function(x,S,A,L){for(var j=0;j1)throw new Error("only one byte as prefix supported");if((L=S.prefix.charCodeAt(0))&&60>L||L>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(S.intermediates){if(S.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var j=0;jK||K>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");L<<=8,L|=K}}if(1!==S.final.length)throw new Error("final must be a single byte");var z=S.final.charCodeAt(0);if(A[0]>z||z>A[1])throw new Error("final must be in range "+A[0]+" .. "+A[1]);return(L<<=8)|z},x.prototype.identToString=function(S){for(var A=[];S;)A.push(String.fromCharCode(255&S)),S>>=8;return A.reverse().join("")},x.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},x.prototype.setPrintHandler=function(S){this._printHandler=S},x.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},x.prototype.registerEscHandler=function(S,A){var L=this._identifier(S,[48,126]);void 0===this._escHandlers[L]&&(this._escHandlers[L]=[]);var j=this._escHandlers[L];return j.push(A),{dispose:function(){var z=j.indexOf(A);-1!==z&&j.splice(z,1)}}},x.prototype.clearEscHandler=function(S){this._escHandlers[this._identifier(S,[48,126])]&&delete this._escHandlers[this._identifier(S,[48,126])]},x.prototype.setEscHandlerFallback=function(S){this._escHandlerFb=S},x.prototype.setExecuteHandler=function(S,A){this._executeHandlers[S.charCodeAt(0)]=A},x.prototype.clearExecuteHandler=function(S){this._executeHandlers[S.charCodeAt(0)]&&delete this._executeHandlers[S.charCodeAt(0)]},x.prototype.setExecuteHandlerFallback=function(S){this._executeHandlerFb=S},x.prototype.registerCsiHandler=function(S,A){var L=this._identifier(S);void 0===this._csiHandlers[L]&&(this._csiHandlers[L]=[]);var j=this._csiHandlers[L];return j.push(A),{dispose:function(){var z=j.indexOf(A);-1!==z&&j.splice(z,1)}}},x.prototype.clearCsiHandler=function(S){this._csiHandlers[this._identifier(S)]&&delete this._csiHandlers[this._identifier(S)]},x.prototype.setCsiHandlerFallback=function(S){this._csiHandlerFb=S},x.prototype.registerDcsHandler=function(S,A){return this._dcsParser.registerHandler(this._identifier(S),A)},x.prototype.clearDcsHandler=function(S){this._dcsParser.clearHandler(this._identifier(S))},x.prototype.setDcsHandlerFallback=function(S){this._dcsParser.setHandlerFallback(S)},x.prototype.registerOscHandler=function(S,A){return this._oscParser.registerHandler(S,A)},x.prototype.clearOscHandler=function(S){this._oscParser.clearHandler(S)},x.prototype.setOscHandlerFallback=function(S){this._oscParser.setHandlerFallback(S)},x.prototype.setErrorHandler=function(S){this._errorHandler=S},x.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},x.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=[])},x.prototype._preserveStack=function(S,A,L,j,K){this._parseStack.state=S,this._parseStack.handlers=A,this._parseStack.handlerPos=L,this._parseStack.transition=j,this._parseStack.chunkPos=K},x.prototype.parse=function(S,A,L){var j,K=0,z=0,Q=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,Q=this._parseStack.chunkPos+1;else{if(void 0===L||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var ae=this._parseStack.handlers,ie=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===L&&ie>-1)for(;ie>=0&&!0!==(j=ae[ie](this._params));ie--)if(j instanceof Promise)return this._parseStack.handlerPos=ie,j;this._parseStack.handlers=[];break;case 4:if(!1===L&&ie>-1)for(;ie>=0&&!0!==(j=ae[ie]());ie--)if(j instanceof Promise)return this._parseStack.handlerPos=ie,j;this._parseStack.handlers=[];break;case 6:if(j=this._dcsParser.unhook(24!==(K=S[this._parseStack.chunkPos])&&26!==K,L))return j;27===K&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(j=this._oscParser.end(24!==(K=S[this._parseStack.chunkPos])&&26!==K,L))return j;27===K&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,Q=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var se=Q;se>4){case 2:for(var ue=se+1;;++ue){if(ue>=A||(K=S[ue])<32||K>126&&K=A||(K=S[ue])<32||K>126&&K=A||(K=S[ue])<32||K>126&&K=A||(K=S[ue])<32||K>126&&K=0&&!0!==(j=ae[de](this._params));de--)if(j instanceof Promise)return this._preserveStack(3,ae,de,z,se),j;de<0&&this._csiHandlerFb(this._collect<<8|K,this._params),this.precedingCodepoint=0;break;case 8:do{switch(K){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(K-48)}}while(++se47&&K<60);se--;break;case 9:this._collect<<=8,this._collect|=K;break;case 10:for(var oe=this._escHandlers[this._collect<<8|K],$=oe?oe.length-1:-1;$>=0&&!0!==(j=oe[$]());$--)if(j instanceof Promise)return this._preserveStack(4,oe,$,z,se),j;$<0&&this._escHandlerFb(this._collect<<8|K),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|K,this._params);break;case 13:for(var ye=se+1;;++ye)if(ye>=A||24===(K=S[ye])||26===K||27===K||K>127&&K=A||(K=S[ve])<32||K>127&&K=0;--y)this._active[y].end(!1);this._stack.paused=!1,this._active=N,this._id=-1,this._state=0},P.prototype._start=function(){if(this._active=this._handlers[this._id]||N,this._active.length)for(var y=this._active.length-1;y>=0;y--)this._active[y].start();else this._handlerFb(this._id,"START")},P.prototype._put=function(y,g,T){if(this._active.length)for(var M=this._active.length-1;M>=0;M--)this._active[M].put(y,g,T);else this._handlerFb(this._id,"PUT",_.utf32ToString(y,g,T))},P.prototype.start=function(){this.reset(),this._state=1},P.prototype.put=function(y,g,T){if(3!==this._state){if(1===this._state)for(;g0&&this._put(y,g,T)}},P.prototype.end=function(y,g){if(void 0===g&&(g=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var T=!1,M=this._active.length-1,E=!1;if(this._stack.paused&&(M=this._stack.loopPosition-1,T=g,E=this._stack.fallThrough,this._stack.paused=!1),!E&&!1===T){for(;M>=0&&!0!==(T=this._active[M].end(y));M--)if(T instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=M,this._stack.fallThrough=!1,T;M--}for(;M>=0;M--)if((T=this._active[M].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=M,this._stack.fallThrough=!0,T}else this._handlerFb(this._id,"END",y);this._active=N,this._id=-1,this._state=0}},P}();w.OscParser=D;var O=function(){function P(y){this._handler=y,this._data="",this._hitLimit=!1}return P.prototype.start=function(){this._data="",this._hitLimit=!1},P.prototype.put=function(y,g,T){this._hitLimit||(this._data+=_.utf32ToString(y,g,T),this._data.length>C.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},P.prototype.end=function(y){var g=this,T=!1;if(this._hitLimit)T=!1;else if(y&&(T=this._handler(this._data))instanceof Promise)return T.then(function(M){return g._data="",g._hitLimit=!1,M});return this._data="",this._hitLimit=!1,T},P}();w.OscHandler=O},8742:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.Params=void 0;var R=2147483647,C=function(){function _(N,D){if(void 0===N&&(N=32),void 0===D&&(D=32),this.maxLength=N,this.maxSubParamsLength=D,D>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(N),this.length=0,this._subParams=new Int32Array(D),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(N),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return _.fromArray=function(N){var D=new _;if(!N.length)return D;for(var O=N[0]instanceof Array?1:0;O>8,P=255&this._subParamsIdx[D];P-O>0&&N.push(Array.prototype.slice.call(this._subParams,O,P))}return N},_.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},_.prototype.addParam=function(N){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(N<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=N>R?R:N}},_.prototype.addSubParam=function(N){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(N<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=N>R?R:N,this._subParamsIdx[this.length-1]++}},_.prototype.hasSubParams=function(N){return(255&this._subParamsIdx[N])-(this._subParamsIdx[N]>>8)>0},_.prototype.getSubParams=function(N){var D=this._subParamsIdx[N]>>8,O=255&this._subParamsIdx[N];return O-D>0?this._subParams.subarray(D,O):null},_.prototype.getSubParamsAll=function(){for(var N={},D=0;D>8,P=255&this._subParamsIdx[D];P-O>0&&(N[D]=this._subParams.slice(O,P))}return N},_.prototype.addDigit=function(N){var D;if(!(this._rejectDigits||!(D=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var O=this._digitIsSub?this._subParams:this.params,P=O[D-1];O[D-1]=~P?Math.min(10*P+N,R):N}},_}();w.Params=C},744:function(Z,w,R){var C,_=this&&this.__extends||(C=function(E,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,A){S.__proto__=A}||function(S,A){for(var L in A)Object.prototype.hasOwnProperty.call(A,L)&&(S[L]=A[L])})(E,x)},function(M,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function x(){this.constructor=M}C(M,E),M.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),N=this&&this.__decorate||function(M,E,x,S){var A,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(M,E,x,S);else for(var K=M.length-1;K>=0;K--)(A=M[K])&&(j=(L<3?A(j):L>3?A(E,x,j):A(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(M,E){return function(x,S){E(x,S,M)}};Object.defineProperty(w,"__esModule",{value:!0}),w.BufferService=w.MINIMUM_ROWS=w.MINIMUM_COLS=void 0;var O=R(2585),P=R(5295),y=R(8460),g=R(844);w.MINIMUM_COLS=2,w.MINIMUM_ROWS=1;var T=function(M){function E(x){var S=M.call(this)||this;return S._optionsService=x,S.isUserScrolling=!1,S._onResize=new y.EventEmitter,S._onScroll=new y.EventEmitter,S.cols=Math.max(x.options.cols,w.MINIMUM_COLS),S.rows=Math.max(x.options.rows,w.MINIMUM_ROWS),S.buffers=new P.BufferSet(x,S),S}return _(E,M),Object.defineProperty(E.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){M.prototype.dispose.call(this),this.buffers.dispose()},E.prototype.resize=function(x,S){this.cols=x,this.rows=S,this.buffers.resize(x,S),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:x,rows:S})},E.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},E.prototype.scroll=function(x,S){void 0===S&&(S=!1);var A,L=this.buffer;(A=this._cachedBlankLine)&&A.length===this.cols&&A.getFg(0)===x.fg&&A.getBg(0)===x.bg||(A=L.getBlankLine(x,S),this._cachedBlankLine=A),A.isWrapped=S;var j=L.ybase+L.scrollTop,K=L.ybase+L.scrollBottom;if(0===L.scrollTop){var z=L.lines.isFull;K===L.lines.length-1?z?L.lines.recycle().copyFrom(A):L.lines.push(A.clone()):L.lines.splice(K+1,0,A.clone()),z?this.isUserScrolling&&(L.ydisp=Math.max(L.ydisp-1,0)):(L.ybase++,this.isUserScrolling||L.ydisp++)}else L.lines.shiftElements(j+1,K-j+1-1,-1),L.lines.set(K,A.clone());this.isUserScrolling||(L.ydisp=L.ybase),this._onScroll.fire(L.ydisp)},E.prototype.scrollLines=function(x,S,A){var L=this.buffer;if(x<0){if(0===L.ydisp)return;this.isUserScrolling=!0}else x+L.ydisp>=L.ybase&&(this.isUserScrolling=!1);var j=L.ydisp;L.ydisp=Math.max(Math.min(L.ydisp+x,L.ybase),0),j!==L.ydisp&&(S||this._onScroll.fire(L.ydisp))},E.prototype.scrollPages=function(x){this.scrollLines(x*(this.rows-1))},E.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},E.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},E.prototype.scrollToLine=function(x){var S=x-this.buffer.ydisp;0!==S&&this.scrollLines(S)},N([D(0,O.IOptionsService)],E)}(g.Disposable);w.BufferService=T},7994:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.CharsetService=void 0;var R=function(){function C(){this.glevel=0,this._charsets=[]}return C.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},C.prototype.setgLevel=function(_){this.glevel=_,this.charset=this._charsets[_]},C.prototype.setgCharset=function(_,N){this._charsets[_]=N,this.glevel===_&&(this.charset=N)},C}();w.CharsetService=R},1753:function(Z,w,R){var C=this&&this.__decorate||function(M,E,x,S){var A,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(M,E,x,S);else for(var K=M.length-1;K>=0;K--)(A=M[K])&&(j=(L<3?A(j):L>3?A(E,x,j):A(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},_=this&&this.__param||function(M,E){return function(x,S){E(x,S,M)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CoreMouseService=void 0;var N=R(2585),D=R(8460),O={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 P(M,E){var x=(M.ctrl?16:0)|(M.shift?4:0)|(M.alt?8:0);return 4===M.button?(x|=64,x|=M.action):(x|=3&M.button,4&M.button&&(x|=64),8&M.button&&(x|=128),32===M.action?x|=32:0!==M.action||E||(x|=3)),x}var y=String.fromCharCode,g={DEFAULT:function(E){var x=[P(E,!1)+32,E.col+32,E.row+32];return x[0]>255||x[1]>255||x[2]>255?"":"\x1b[M"+y(x[0])+y(x[1])+y(x[2])},SGR:function(E){var x=0===E.action&&4!==E.button?"m":"M";return"\x1b[<"+P(E,!0)+";"+E.col+";"+E.row+x}},T=function(){function M(E,x){this._bufferService=E,this._coreService=x,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new D.EventEmitter,this._lastEvent=null;for(var S=0,A=Object.keys(O);S=this._bufferService.cols||E.row<0||E.row>=this._bufferService.rows||4===E.button&&32===E.action||3===E.button&&32!==E.action||4!==E.button&&(2===E.action||3===E.action)||(E.col++,E.row++,32===E.action&&this._lastEvent&&this._compareEvents(this._lastEvent,E))||!this._protocols[this._activeProtocol].restrict(E))return!1;var x=this._encodings[this._activeEncoding](E);return x&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(x):this._coreService.triggerDataEvent(x,!0)),this._lastEvent=E,!0},M.prototype.explainEvents=function(E){return{down:!!(1&E),up:!!(2&E),drag:!!(4&E),move:!!(8&E),wheel:!!(16&E)}},M.prototype._compareEvents=function(E,x){return E.col===x.col&&E.row===x.row&&E.button===x.button&&E.action===x.action&&E.ctrl===x.ctrl&&E.alt===x.alt&&E.shift===x.shift},C([_(0,N.IBufferService),_(1,N.ICoreService)],M)}();w.CoreMouseService=T},6975:function(Z,w,R){var C,_=this&&this.__extends||(C=function(S,A){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,j){L.__proto__=j}||function(L,j){for(var K in j)Object.prototype.hasOwnProperty.call(j,K)&&(L[K]=j[K])})(S,A)},function(x,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function A(){this.constructor=x}C(x,S),x.prototype=null===S?Object.create(S):(A.prototype=S.prototype,new A)}),N=this&&this.__decorate||function(x,S,A,L){var j,K=arguments.length,z=K<3?S:null===L?L=Object.getOwnPropertyDescriptor(S,A):L;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(x,S,A,L);else for(var Q=x.length-1;Q>=0;Q--)(j=x[Q])&&(z=(K<3?j(z):K>3?j(S,A,z):j(S,A))||z);return K>3&&z&&Object.defineProperty(S,A,z),z},D=this&&this.__param||function(x,S){return function(A,L){S(A,L,x)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CoreService=void 0;var O=R(2585),P=R(8460),y=R(1439),g=R(844),T=Object.freeze({insertMode:!1}),M=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),E=function(x){function S(A,L,j,K){var z=x.call(this)||this;return z._bufferService=L,z._logService=j,z._optionsService=K,z.isCursorInitialized=!1,z.isCursorHidden=!1,z._onData=z.register(new P.EventEmitter),z._onUserInput=z.register(new P.EventEmitter),z._onBinary=z.register(new P.EventEmitter),z._scrollToBottom=A,z.register({dispose:function(){return z._scrollToBottom=void 0}}),z.modes=y.clone(T),z.decPrivateModes=y.clone(M),z}return _(S,x),Object.defineProperty(S.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),S.prototype.reset=function(){this.modes=y.clone(T),this.decPrivateModes=y.clone(M)},S.prototype.triggerDataEvent=function(A,L){if(void 0===L&&(L=!1),!this._optionsService.options.disableStdin){var j=this._bufferService.buffer;j.ybase!==j.ydisp&&this._scrollToBottom(),L&&this._onUserInput.fire(),this._logService.debug('sending data "'+A+'"',function(){return A.split("").map(function(K){return K.charCodeAt(0)})}),this._onData.fire(A)}},S.prototype.triggerBinaryEvent=function(A){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+A+'"',function(){return A.split("").map(function(L){return L.charCodeAt(0)})}),this._onBinary.fire(A))},N([D(1,O.IBufferService),D(2,O.ILogService),D(3,O.IOptionsService)],S)}(g.Disposable);w.CoreService=E},3730:function(Z,w,R){var C=this&&this.__decorate||function(O,P,y,g){var T,M=arguments.length,E=M<3?P:null===g?g=Object.getOwnPropertyDescriptor(P,y):g;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(O,P,y,g);else for(var x=O.length-1;x>=0;x--)(T=O[x])&&(E=(M<3?T(E):M>3?T(P,y,E):T(P,y))||E);return M>3&&E&&Object.defineProperty(P,y,E),E},_=this&&this.__param||function(O,P){return function(y,g){P(y,g,O)}};Object.defineProperty(w,"__esModule",{value:!0}),w.DirtyRowService=void 0;var N=R(2585),D=function(){function O(P){this._bufferService=P,this.clearRange()}return Object.defineProperty(O.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),O.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},O.prototype.markDirty=function(P){Pthis._end&&(this._end=P)},O.prototype.markRangeDirty=function(P,y){if(P>y){var g=P;P=y,y=g}Pthis._end&&(this._end=y)},O.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},C([_(0,N.IBufferService)],O)}();w.DirtyRowService=D},4348:function(Z,w,R){var C=this&&this.__spreadArray||function(P,y){for(var g=0,T=y.length,M=P.length;g0?M[0].index:g.length;if(g.length!==j)throw new Error("[createInstance] First service dependency of "+y.name+" at position "+(j+1)+" conflicts with "+g.length+" static arguments");return new(y.bind.apply(y,C([void 0],C(C([],g),E))))},P}();w.InstantiationService=O},7866:function(Z,w,R){var C=this&&this.__decorate||function(y,g,T,M){var E,x=arguments.length,S=x<3?g:null===M?M=Object.getOwnPropertyDescriptor(g,T):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(y,g,T,M);else for(var A=y.length-1;A>=0;A--)(E=y[A])&&(S=(x<3?E(S):x>3?E(g,T,S):E(g,T))||S);return x>3&&S&&Object.defineProperty(g,T,S),S},_=this&&this.__param||function(y,g){return function(T,M){g(T,M,y)}},N=this&&this.__spreadArray||function(y,g){for(var T=0,M=g.length,E=y.length;T=y)return P+this.wcwidth(T);var M=O.charCodeAt(g);56320<=M&&M<=57343?T=1024*(T-55296)+M-56320+65536:P+=this.wcwidth(M)}P+=this.wcwidth(T)}return P},D}();w.UnicodeService=N}},f={};function U(V){var Z=f[V];if(void 0!==Z)return Z.exports;var w=f[V]={exports:{}};return q[V].call(w.exports,w,w.exports,U),w.exports}var B={};return function(){var V=B;Object.defineProperty(V,"__esModule",{value:!0}),V.Terminal=void 0;var Z=U(511),w=U(3236),R=U(9042),C=U(8460),_=U(244),N=function(){function T(M){this._core=new w.Terminal(M),this._addonManager=new _.AddonManager}return T.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(T.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new y(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"unicode",{get:function(){return this._checkProposedApi(),new g(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new O(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),T.prototype.blur=function(){this._core.blur()},T.prototype.focus=function(){this._core.focus()},T.prototype.resize=function(M,E){this._verifyIntegers(M,E),this._core.resize(M,E)},T.prototype.open=function(M){this._core.open(M)},T.prototype.attachCustomKeyEventHandler=function(M){this._core.attachCustomKeyEventHandler(M)},T.prototype.registerLinkMatcher=function(M,E,x){return this._checkProposedApi(),this._core.registerLinkMatcher(M,E,x)},T.prototype.deregisterLinkMatcher=function(M){this._checkProposedApi(),this._core.deregisterLinkMatcher(M)},T.prototype.registerLinkProvider=function(M){return this._checkProposedApi(),this._core.registerLinkProvider(M)},T.prototype.registerCharacterJoiner=function(M){return this._checkProposedApi(),this._core.registerCharacterJoiner(M)},T.prototype.deregisterCharacterJoiner=function(M){this._checkProposedApi(),this._core.deregisterCharacterJoiner(M)},T.prototype.registerMarker=function(M){return this._checkProposedApi(),this._verifyIntegers(M),this._core.addMarker(M)},T.prototype.addMarker=function(M){return this.registerMarker(M)},T.prototype.hasSelection=function(){return this._core.hasSelection()},T.prototype.select=function(M,E,x){this._verifyIntegers(M,E,x),this._core.select(M,E,x)},T.prototype.getSelection=function(){return this._core.getSelection()},T.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},T.prototype.clearSelection=function(){this._core.clearSelection()},T.prototype.selectAll=function(){this._core.selectAll()},T.prototype.selectLines=function(M,E){this._verifyIntegers(M,E),this._core.selectLines(M,E)},T.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},T.prototype.scrollLines=function(M){this._verifyIntegers(M),this._core.scrollLines(M)},T.prototype.scrollPages=function(M){this._verifyIntegers(M),this._core.scrollPages(M)},T.prototype.scrollToTop=function(){this._core.scrollToTop()},T.prototype.scrollToBottom=function(){this._core.scrollToBottom()},T.prototype.scrollToLine=function(M){this._verifyIntegers(M),this._core.scrollToLine(M)},T.prototype.clear=function(){this._core.clear()},T.prototype.write=function(M,E){this._core.write(M,E)},T.prototype.writeUtf8=function(M,E){this._core.write(M,E)},T.prototype.writeln=function(M,E){this._core.write(M),this._core.write("\r\n",E)},T.prototype.paste=function(M){this._core.paste(M)},T.prototype.getOption=function(M){return this._core.optionsService.getOption(M)},T.prototype.setOption=function(M,E){this._core.optionsService.setOption(M,E)},T.prototype.refresh=function(M,E){this._verifyIntegers(M,E),this._core.refresh(M,E)},T.prototype.reset=function(){this._core.reset()},T.prototype.loadAddon=function(M){return this._addonManager.loadAddon(this,M)},Object.defineProperty(T,"strings",{get:function(){return R},enumerable:!1,configurable:!0}),T.prototype._verifyIntegers=function(){for(var M=[],E=0;E=this._line.length))return E?(this._line.loadCell(M,E),E):this._line.loadCell(M,new Z.CellData)},T.prototype.translateToString=function(M,E,x){return this._line.translateToString(M,E,x)},T}(),y=function(){function T(M){this._core=M}return T.prototype.registerCsiHandler=function(M,E){return this._core.registerCsiHandler(M,function(x){return E(x.toArray())})},T.prototype.addCsiHandler=function(M,E){return this.registerCsiHandler(M,E)},T.prototype.registerDcsHandler=function(M,E){return this._core.registerDcsHandler(M,function(x,S){return E(x,S.toArray())})},T.prototype.addDcsHandler=function(M,E){return this.registerDcsHandler(M,E)},T.prototype.registerEscHandler=function(M,E){return this._core.registerEscHandler(M,E)},T.prototype.addEscHandler=function(M,E){return this.registerEscHandler(M,E)},T.prototype.registerOscHandler=function(M,E){return this._core.registerOscHandler(M,E)},T.prototype.addOscHandler=function(M,E){return this.registerOscHandler(M,E)},T}(),g=function(){function T(M){this._core=M}return T.prototype.register=function(M){this._core.unicodeService.register(M)},Object.defineProperty(T.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(E){this._core.unicodeService.activeVersion=E},enumerable:!1,configurable:!0}),T}()}(),B}()},18419:function(le,q,f){"use strict";f.d(q,{o:function(){return V}});var U=f(90838),B=f(68707),V=function(){function Z(){this.data=[],this.dataChange=new U.X([]),this.itemUpdated=new B.xQ}return Z.prototype.getItems=function(){return this.data},Z.prototype.add=function(w){this.findIndex(w)>=0?this.update(w):(this.data.push(w),this.dataChange.next(this.data))},Z.prototype.set=function(w){var R=this;w.forEach(function(_){var N=R.findIndex(_);if(N>=0){var D=Object.assign(R.data[N],_);R.data[N]=D}else R.data.push(_)}),this.data.filter(function(_){return 0===w.filter(function(N){return R.getItemKey(N)===R.getItemKey(_)}).length}).forEach(function(_){return R.remove(_)}),this.dataChange.next(this.data)},Z.prototype.get=function(w){var R=this,C=this.data.findIndex(function(_){return R.getItemKey(_)===w});if(C>=0)return this.data[C]},Z.prototype.update=function(w){var R=this.findIndex(w);if(R>=0){var C=Object.assign(this.data[R],w);this.data[R]=C,this.dataChange.next(this.data),this.itemUpdated.next(C)}},Z.prototype.remove=function(w){var R=this.findIndex(w);R>=0&&(this.data.splice(R,1),this.dataChange.next(this.data))},Object.defineProperty(Z.prototype,"changes",{get:function(){return this.dataChange},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"itemChanged",{get:function(){return this.itemUpdated},enumerable:!1,configurable:!0}),Z.prototype.clear=function(){this.data=[],this.dataChange.next(this.data)},Z.prototype.findIndex=function(w){var R=this;return this.data.findIndex(function(C){return R.getItemKey(C)===R.getItemKey(w)})},Z}()},3941:function(le,q,f){"use strict";f.d(q,{F:function(){return Z}});var U=f(61855),B=f(18419),V=f(65508),Z=function(w){function R(){return null!==w&&w.apply(this,arguments)||this}return(0,U.ZT)(R,w),R.prototype.getItemKey=function(C){return C.link_id},R.\u0275fac=function(){var C;return function(N){return(C||(C=V.n5z(R)))(N||R)}}(),R.\u0275prov=V.Yz7({token:R,factory:R.\u0275fac}),R}(B.o)},96852:function(le,q,f){"use strict";f.d(q,{G:function(){return Z}});var U=f(61855),B=f(18419),V=f(65508),Z=function(w){function R(){return null!==w&&w.apply(this,arguments)||this}return(0,U.ZT)(R,w),R.prototype.getItemKey=function(C){return C.node_id},R.\u0275fac=function(){var C;return function(N){return(C||(C=V.n5z(R)))(N||R)}}(),R.\u0275prov=V.Yz7({token:R,factory:R.\u0275fac}),R}(B.o)},36889:function(le,q,f){"use strict";f.d(q,{X:function(){return V}});var U=f(65508),B=f(96153),V=function(){function Z(w){this.httpServer=w}return Z.prototype.getComputes=function(w){return this.httpServer.get(w,"/computes")},Z.prototype.getUploadPath=function(w,R,C){return w.protocol+"//"+w.host+":"+w.port+"/v2/"+R+"/images/"+C},Z.prototype.getStatistics=function(w){return this.httpServer.get(w,"/statistics")},Z.\u0275fac=function(R){return new(R||Z)(U.LFG(B.wh))},Z.\u0275prov=U.Yz7({token:Z,factory:Z.\u0275fac}),Z}()},96153:function(le,q,f){"use strict";f.d(q,{gc:function(){return C},wh:function(){return _}});var U=f(61855),B=f(65508),V=f(11363),Z=f(13426),w=f(75472),R=function(N){function D(O){return N.call(this,O)||this}return(0,U.ZT)(D,N),D.fromError=function(O,P){var y=new D(O);return y.originalError=P,y},D}(Error),C=function(){function N(){}return N.prototype.handleError=function(D){var O=D;return"HttpErrorResponse"===D.name&&0===D.status&&(O=R.fromError("Server is unreachable",D)),(0,V._)(O)},N.\u0275prov=B.Yz7({token:N,factory:N.\u0275fac=function(O){return new(O||N)}}),N}(),_=function(){function N(D,O){this.http=D,this.errorHandler=O,this.requestsNotificationEmitter=new B.vpe}return N.prototype.get=function(D,O,P){P=this.getJsonOptions(P);var y=this.getOptionsForServer(D,O,P);return this.requestsNotificationEmitter.emit("GET "+y.url),this.http.get(y.url,y.options).pipe((0,Z.K)(this.errorHandler.handleError))},N.prototype.getText=function(D,O,P){P=this.getTextOptions(P);var y=this.getOptionsForServer(D,O,P);return this.requestsNotificationEmitter.emit("GET "+y.url),this.http.get(y.url,y.options).pipe((0,Z.K)(this.errorHandler.handleError))},N.prototype.post=function(D,O,P,y){y=this.getJsonOptions(y);var g=this.getOptionsForServer(D,O,y);return this.requestsNotificationEmitter.emit("POST "+g.url),this.http.post(g.url,P,g.options).pipe((0,Z.K)(this.errorHandler.handleError))},N.prototype.put=function(D,O,P,y){y=this.getJsonOptions(y);var g=this.getOptionsForServer(D,O,y);return this.requestsNotificationEmitter.emit("PUT "+g.url),this.http.put(g.url,P,g.options).pipe((0,Z.K)(this.errorHandler.handleError))},N.prototype.delete=function(D,O,P){P=this.getJsonOptions(P);var y=this.getOptionsForServer(D,O,P);return this.requestsNotificationEmitter.emit("DELETE "+y.url),this.http.delete(y.url,y.options).pipe((0,Z.K)(this.errorHandler.handleError))},N.prototype.patch=function(D,O,P,y){y=this.getJsonOptions(y);var g=this.getOptionsForServer(D,O,y);return this.http.patch(g.url,P,g.options).pipe((0,Z.K)(this.errorHandler.handleError))},N.prototype.head=function(D,O,P){P=this.getJsonOptions(P);var y=this.getOptionsForServer(D,O,P);return this.http.head(y.url,y.options).pipe((0,Z.K)(this.errorHandler.handleError))},N.prototype.options=function(D,O,P){P=this.getJsonOptions(P);var y=this.getOptionsForServer(D,O,P);return this.http.options(y.url,y.options).pipe((0,Z.K)(this.errorHandler.handleError))},N.prototype.getJsonOptions=function(D){return D||{responseType:"json"}},N.prototype.getTextOptions=function(D){return D||{responseType:"text"}},N.prototype.getOptionsForServer=function(D,O,P){if(D.host&&D.port?(D.protocol||(D.protocol=location.protocol),O=D.protocol+"//"+D.host+":"+D.port+"/v2"+O):O="/v2"+O,P.headers||(P.headers={}),"basic"===D.authorization){var y=btoa(D.login+":"+D.password);P.headers.Authorization="Basic "+y}return{url:O,options:P}},N.\u0275fac=function(O){return new(O||N)(B.LFG(w.eN),B.LFG(C))},N.\u0275prov=B.Yz7({token:N,factory:N.\u0275fac}),N}()},14200:function(le,q,f){"use strict";f.d(q,{Y:function(){return R}});var U=f(68707),B=f(65508),V=f(96153),Z=f(10503),w=f(2094),R=function(){function C(_,N,D){this.httpServer=_,this.settingsService=N,this.recentlyOpenedProjectService=D,this.projectListSubject=new U.xQ}return C.prototype.projectListUpdated=function(){this.projectListSubject.next(!0)},C.prototype.get=function(_,N){return this.httpServer.get(_,"/projects/"+N)},C.prototype.open=function(_,N){return this.httpServer.post(_,"/projects/"+N+"/open",{})},C.prototype.close=function(_,N){return this.recentlyOpenedProjectService.removeData(),this.httpServer.post(_,"/projects/"+N+"/close",{})},C.prototype.list=function(_){return this.httpServer.get(_,"/projects")},C.prototype.nodes=function(_,N){return this.httpServer.get(_,"/projects/"+N+"/nodes")},C.prototype.links=function(_,N){return this.httpServer.get(_,"/projects/"+N+"/links")},C.prototype.drawings=function(_,N){return this.httpServer.get(_,"/projects/"+N+"/drawings")},C.prototype.add=function(_,N,D){return this.httpServer.post(_,"/projects",{name:N,project_id:D})},C.prototype.update=function(_,N){return this.httpServer.put(_,"/projects/"+N.project_id,{auto_close:N.auto_close,auto_open:N.auto_open,auto_start:N.auto_start,drawing_grid_size:N.drawing_grid_size,grid_size:N.grid_size,name:N.name,scene_width:N.scene_width,scene_height:N.scene_height,show_interface_labels:N.show_interface_labels})},C.prototype.delete=function(_,N){return this.httpServer.delete(_,"/projects/"+N)},C.prototype.getUploadPath=function(_,N,D){return _.protocol+"//"+_.host+":"+_.port+"/v2/projects/"+N+"/import?name="+D},C.prototype.getExportPath=function(_,N){return _.protocol+"//"+_.host+":"+_.port+"/v2/projects/"+N.project_id+"/export"},C.prototype.export=function(_,N){return this.httpServer.get(_,"/projects/"+N+"/export")},C.prototype.getStatistics=function(_,N){return this.httpServer.get(_,"/projects/"+N+"/stats")},C.prototype.duplicate=function(_,N,D){return this.httpServer.post(_,"/projects/"+N+"/duplicate",{name:D})},C.prototype.isReadOnly=function(_){return!!_.readonly&&_.readonly},C.\u0275fac=function(N){return new(N||C)(B.LFG(V.wh),B.LFG(Z.g),B.LFG(w.p))},C.\u0275prov=B.Yz7({token:C,factory:C.\u0275fac}),C}()},2094:function(le,q,f){"use strict";f.d(q,{p:function(){return B}});var U=f(65508),B=function(){function V(){}return V.prototype.setServerId=function(Z){this.serverId=Z},V.prototype.setProjectId=function(Z){this.projectId=Z},V.prototype.setServerIdProjectList=function(Z){this.serverIdProjectList=Z},V.prototype.getServerId=function(){return this.serverId},V.prototype.getProjectId=function(){return this.projectId},V.prototype.getServerIdProjectList=function(){return this.serverIdProjectList},V.prototype.removeData=function(){this.serverId="",this.projectId=""},V.\u0275prov=U.Yz7({token:V,factory:V.\u0275fac=function(w){return new(w||V)}}),V}()},10503:function(le,q,f){"use strict";f.d(q,{g:function(){return B}});var U=f(65508),B=function(){function V(){this.settings={crash_reports:!0,console_command:void 0,anonymous_statistics:!0},this.reportsSettings="crash_reports",this.consoleSettings="console_command",this.statisticsSettings="statistics_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)),this.getItem(this.statisticsSettings)&&(this.settings.anonymous_statistics="true"===this.getItem(this.statisticsSettings))}return V.prototype.setReportsSettings=function(Z){this.settings.crash_reports=Z,this.removeItem(this.reportsSettings),this.setItem(this.reportsSettings,Z?"true":"false")},V.prototype.setStatisticsSettings=function(Z){this.settings.anonymous_statistics=Z,this.removeItem(this.statisticsSettings),this.setItem(this.statisticsSettings,Z?"true":"false")},V.prototype.getReportsSettings=function(){return"true"===this.getItem(this.reportsSettings)},V.prototype.getStatisticsSettings=function(){return"true"===this.getItem(this.statisticsSettings)},V.prototype.setConsoleSettings=function(Z){this.settings.console_command=Z,this.removeItem(this.consoleSettings),this.setItem(this.consoleSettings,Z)},V.prototype.getConsoleSettings=function(){return this.getItem(this.consoleSettings)},V.prototype.removeItem=function(Z){localStorage.removeItem(Z)},V.prototype.setItem=function(Z,w){localStorage.setItem(Z,w)},V.prototype.getItem=function(Z){return localStorage.getItem(Z)},V.prototype.getAll=function(){return this.settings},V.prototype.setAll=function(Z){this.settings=Z,this.setConsoleSettings(Z.console_command),this.setReportsSettings(Z.crash_reports),this.setStatisticsSettings(Z.anonymous_statistics)},V.\u0275prov=U.Yz7({token:V,factory:V.\u0275fac=function(w){return new(w||V)},providedIn:"root"}),V}()},15132:function(le,q,f){"use strict";f.d(q,{f:function(){return V}});var U=f(65508),B=f(90838),V=function(){function Z(){this._darkMode$=new B.X(!1),this.darkMode$=this._darkMode$.asObservable(),this.themeChanged=new U.vpe,this.savedTheme="dark",localStorage.getItem("theme")||localStorage.setItem("theme","dark"),this.savedTheme=localStorage.getItem("theme")}return Z.prototype.getActualTheme=function(){return this.savedTheme},Z.prototype.setDarkMode=function(w){w?(this.savedTheme="dark",this.themeChanged.emit("dark-theme"),localStorage.setItem("theme","dark")):(this.savedTheme="light",this.themeChanged.emit("light-theme"),localStorage.setItem("theme","light"))},Z.\u0275prov=U.Yz7({token:Z,factory:Z.\u0275fac=function(R){return new(R||Z)},providedIn:"root"}),Z}()},75161:function(le,q,f){"use strict";var U={};f.r(U),f.d(U,{active:function(){return rY},arc:function(){return wte},area:function(){return rH},areaRadial:function(){return sH},ascending:function(){return Cf},axisBottom:function(){return UC},axisLeft:function(){return EE},axisRight:function(){return vm},axisTop:function(){return kE},bisect:function(){return Sf},bisectLeft:function(){return V3},bisectRight:function(){return H3},bisector:function(){return vE},brush:function(){return fY},brushSelection:function(){return cY},brushX:function(){return dY},brushY:function(){return pY},chord:function(){return mY},clientPoint:function(){return d_},cluster:function(){return MK},color:function(){return Gc},contourDensity:function(){return VY},contours:function(){return m8},create:function(){return qE},creator:function(){return i_},cross:function(){return q3},csvFormat:function(){return KY},csvFormatRows:function(){return XY},csvParse:function(){return JY},csvParseRows:function(){return QY},cubehelix:function(){return ke},curveBasis:function(){return jte},curveBasisClosed:function(){return zte},curveBasisOpen:function(){return Wte},curveBundle:function(){return Gte},curveCardinal:function(){return Yte},curveCardinalClosed:function(){return Jte},curveCardinalOpen:function(){return Qte},curveCatmullRom:function(){return Kte},curveCatmullRomClosed:function(){return Xte},curveCatmullRomOpen:function(){return $te},curveLinear:function(){return OA},curveLinearClosed:function(){return ene},curveMonotoneX:function(){return tne},curveMonotoneY:function(){return nne},curveNatural:function(){return rne},curveStep:function(){return ine},curveStepAfter:function(){return ane},curveStepBefore:function(){return one},customEvent:function(){return Sm},descending:function(){return p4},deviation:function(){return Tf},dispatch:function(){return Xd},drag:function(){return Nf},dragDisable:function(){return f_},dragEnable:function(){return Zl},dsvFormat:function(){return _N},easeBack:function(){return w8},easeBackIn:function(){return xJ},easeBackInOut:function(){return w8},easeBackOut:function(){return wJ},easeBounce:function(){return b1},easeBounceIn:function(){return SJ},easeBounceInOut:function(){return TJ},easeBounceOut:function(){return b1},easeCircle:function(){return x8},easeCircleIn:function(){return pJ},easeCircleInOut:function(){return x8},easeCircleOut:function(){return fJ},easeCubic:function(){return nN},easeCubicIn:function(){return XG},easeCubicInOut:function(){return nN},easeCubicOut:function(){return $G},easeElastic:function(){return k8},easeElasticIn:function(){return kJ},easeElasticInOut:function(){return EJ},easeElasticOut:function(){return k8},easeExp:function(){return T8},easeExpIn:function(){return cJ},easeExpInOut:function(){return T8},easeExpOut:function(){return dJ},easeLinear:function(){return rJ},easePoly:function(){return y8},easePolyIn:function(){return aJ},easePolyInOut:function(){return y8},easePolyOut:function(){return sJ},easeQuad:function(){return _8},easeQuadIn:function(){return iJ},easeQuadInOut:function(){return _8},easeQuadOut:function(){return oJ},easeSin:function(){return S8},easeSinIn:function(){return lJ},easeSinInOut:function(){return S8},easeSinOut:function(){return uJ},entries:function(){return DY},event:function(){return Dn},extent:function(){return PC},forceCenter:function(){return MJ},forceCollide:function(){return GJ},forceLink:function(){return JJ},forceManyBody:function(){return tQ},forceRadial:function(){return nQ},forceSimulation:function(){return eQ},forceX:function(){return rQ},forceY:function(){return iQ},format:function(){return MM},formatDefaultLocale:function(){return Z8},formatLocale:function(){return N8},formatPrefix:function(){return kN},formatSpecifier:function(){return C1},geoAlbers:function(){return X7},geoAlbersUsa:function(){return lK},geoArea:function(){return fQ},geoAzimuthalEqualArea:function(){return uK},geoAzimuthalEqualAreaRaw:function(){return c6},geoAzimuthalEquidistant:function(){return cK},geoAzimuthalEquidistantRaw:function(){return d6},geoBounds:function(){return gQ},geoCentroid:function(){return TQ},geoCircle:function(){return xQ},geoClipAntimeridian:function(){return qN},geoClipCircle:function(){return b7},geoClipExtent:function(){return OQ},geoClipRectangle:function(){return KM},geoConicConformal:function(){return pK},geoConicConformalRaw:function(){return tU},geoConicEqualArea:function(){return lA},geoConicEqualAreaRaw:function(){return K7},geoConicEquidistant:function(){return hK},geoConicEquidistantRaw:function(){return nU},geoContains:function(){return FQ},geoDistance:function(){return E1},geoEquirectangular:function(){return fK},geoEquirectangularRaw:function(){return Z1},geoGnomonic:function(){return mK},geoGnomonicRaw:function(){return p6},geoGraticule:function(){return D7},geoGraticule10:function(){return BQ},geoIdentity:function(){return vK},geoInterpolate:function(){return UQ},geoLength:function(){return C7},geoMercator:function(){return dK},geoMercatorRaw:function(){return N1},geoNaturalEarth1:function(){return gK},geoNaturalEarth1Raw:function(){return f6},geoOrthographic:function(){return _K},geoOrthographicRaw:function(){return h6},geoPath:function(){return XQ},geoProjection:function(){return lp},geoProjectionMutator:function(){return l6},geoRotation:function(){return p7},geoStereographic:function(){return yK},geoStereographicRaw:function(){return m6},geoStream:function(){return Wu},geoTransform:function(){return $Q},geoTransverseMercator:function(){return bK},geoTransverseMercatorRaw:function(){return v6},hcl:function(){return u1},hierarchy:function(){return g6},histogram:function(){return bE},hsl:function(){return a1},interpolate:function(){return Pf},interpolateArray:function(){return na},interpolateBasis:function(){return ft},interpolateBasisClosed:function(){return At},interpolateBlues:function(){return Vee},interpolateBrBG:function(){return Cee},interpolateBuGn:function(){return Dee},interpolateBuPu:function(){return Oee},interpolateCool:function(){return Qee},interpolateCubehelix:function(){return $W},interpolateCubehelixDefault:function(){return Yee},interpolateCubehelixLong:function(){return aM},interpolateDate:function(){return Fl},interpolateGnBu:function(){return Pee},interpolateGreens:function(){return qee},interpolateGreys:function(){return jee},interpolateHcl:function(){return KW},interpolateHclLong:function(){return XW},interpolateHsl:function(){return YW},interpolateHslLong:function(){return JW},interpolateInferno:function(){return ete},interpolateLab:function(){return QW},interpolateMagma:function(){return $ee},interpolateNumber:function(){return zo},interpolateObject:function(){return Jc},interpolateOrRd:function(){return Iee},interpolateOranges:function(){return Gee},interpolatePRGn:function(){return See},interpolatePiYG:function(){return Tee},interpolatePlasma:function(){return tte},interpolatePuBu:function(){return Nee},interpolatePuBuGn:function(){return Ree},interpolatePuOr:function(){return xee},interpolatePuRd:function(){return Zee},interpolatePurples:function(){return zee},interpolateRainbow:function(){return Kee},interpolateRdBu:function(){return wee},interpolateRdGy:function(){return kee},interpolateRdPu:function(){return Lee},interpolateRdYlBu:function(){return Eee},interpolateRdYlGn:function(){return Mee},interpolateReds:function(){return Wee},interpolateRgb:function(){return Qr},interpolateRgbBasis:function(){return io},interpolateRgbBasisClosed:function(){return ta},interpolateRound:function(){return eM},interpolateSpectral:function(){return Aee},interpolateString:function(){return Of},interpolateTransformCss:function(){return L4},interpolateTransformSvg:function(){return F4},interpolateViridis:function(){return Xee},interpolateWarm:function(){return Jee},interpolateYlGn:function(){return Bee},interpolateYlGnBu:function(){return Fee},interpolateYlOrBr:function(){return Uee},interpolateYlOrRd:function(){return Hee},interpolateZoom:function(){return H4},interrupt:function(){return Dm},interval:function(){return vne},isoFormat:function(){return ree},isoParse:function(){return aee},keys:function(){return MY},lab:function(){return s1},line:function(){return PA},lineRadial:function(){return aH},linkHorizontal:function(){return Rte},linkRadial:function(){return Zte},linkVertical:function(){return Nte},local:function(){return u_},map:function(){return Rf},matcher:function(){return PE},max:function(){return t_},mean:function(){return CE},median:function(){return SE},merge:function(){return fm},min:function(){return TE},mouse:function(){return el},namespace:function(){return gm},namespaces:function(){return jC},nest:function(){return xY},now:function(){return y_},pack:function(){return $K},packEnclose:function(){return iU},packSiblings:function(){return QK},pairs:function(){return d4},partition:function(){return eX},path:function(){return zu},permute:function(){return Rl},pie:function(){return Mte},pointRadial:function(){return eS},polygonArea:function(){return mX},polygonCentroid:function(){return vX},polygonContains:function(){return bX},polygonHull:function(){return yX},polygonLength:function(){return CX},precisionFixed:function(){return L8},precisionPrefix:function(){return F8},precisionRound:function(){return B8},quadtree:function(){return wM},quantile:function(){return wf},quantize:function(){return eG},radialArea:function(){return sH},radialLine:function(){return aH},randomBates:function(){return xX},randomExponential:function(){return wX},randomIrwinHall:function(){return CU},randomLogNormal:function(){return TX},randomNormal:function(){return bU},randomUniform:function(){return SX},range:function(){return Ps},rgb:function(){return Af},ribbon:function(){return TY},scaleBand:function(){return w6},scaleIdentity:function(){return EU},scaleImplicit:function(){return T6},scaleLinear:function(){return kU},scaleLog:function(){return PU},scaleOrdinal:function(){return x6},scalePoint:function(){return kX},scalePow:function(){return M6},scaleQuantile:function(){return IU},scaleQuantize:function(){return RU},scaleSequential:function(){return k9},scaleSqrt:function(){return NX},scaleThreshold:function(){return NU},scaleTime:function(){return cee},scaleUtc:function(){return dee},scan:function(){return G3},schemeAccent:function(){return fee},schemeBlues:function(){return Y9},schemeBrBG:function(){return E9},schemeBuGn:function(){return Z9},schemeBuPu:function(){return L9},schemeCategory10:function(){return pee},schemeDark2:function(){return hee},schemeGnBu:function(){return F9},schemeGreens:function(){return J9},schemeGreys:function(){return Q9},schemeOrRd:function(){return B9},schemeOranges:function(){return $9},schemePRGn:function(){return M9},schemePaired:function(){return mee},schemePastel1:function(){return vee},schemePastel2:function(){return gee},schemePiYG:function(){return A9},schemePuBu:function(){return H9},schemePuBuGn:function(){return U9},schemePuOr:function(){return D9},schemePuRd:function(){return V9},schemePurples:function(){return K9},schemeRdBu:function(){return O9},schemeRdGy:function(){return P9},schemeRdPu:function(){return q9},schemeRdYlBu:function(){return I9},schemeRdYlGn:function(){return R9},schemeReds:function(){return X9},schemeSet1:function(){return _ee},schemeSet2:function(){return yee},schemeSet3:function(){return bee},schemeSpectral:function(){return N9},schemeYlGn:function(){return z9},schemeYlGnBu:function(){return j9},schemeYlOrBr:function(){return W9},schemeYlOrRd:function(){return G9},select:function(){return ei},selectAll:function(){return LR},selection:function(){return Is},selector:function(){return zC},selectorAll:function(){return DE},set:function(){return EY},shuffle:function(){return f4},stack:function(){return lne},stackOffsetDiverging:function(){return cne},stackOffsetExpand:function(){return une},stackOffsetNone:function(){return F_},stackOffsetSilhouette:function(){return dne},stackOffsetWiggle:function(){return pne},stackOrderAscending:function(){return DH},stackOrderDescending:function(){return fne},stackOrderInsideOut:function(){return hne},stackOrderNone:function(){return B_},stackOrderReverse:function(){return mne},stratify:function(){return iX},style:function(){return ep},sum:function(){return Y3},symbol:function(){return qte},symbolCircle:function(){return q6},symbolCross:function(){return lH},symbolDiamond:function(){return cH},symbolSquare:function(){return fH},symbolStar:function(){return pH},symbolTriangle:function(){return hH},symbolWye:function(){return mH},symbols:function(){return Vte},thresholdFreedmanDiaconis:function(){return z3},thresholdScott:function(){return W3},thresholdSturges:function(){return ZC},tickIncrement:function(){return xf},tickStep:function(){return jc},ticks:function(){return pm},timeDay:function(){return TA},timeDays:function(){return FX},timeFormat:function(){return I6},timeFormatDefaultLocale:function(){return T9},timeFormatLocale:function(){return d9},timeFriday:function(){return YU},timeFridays:function(){return qX},timeHour:function(){return jU},timeHours:function(){return LX},timeInterval:function(){return xa},timeMillisecond:function(){return yA},timeMilliseconds:function(){return ZU},timeMinute:function(){return VU},timeMinutes:function(){return ZX},timeMonday:function(){return H1},timeMondays:function(){return BX},timeMonth:function(){return XU},timeMonths:function(){return zX},timeParse:function(){return S9},timeSaturday:function(){return JU},timeSaturdays:function(){return jX},timeSecond:function(){return SA},timeSeconds:function(){return UU},timeSunday:function(){return U1},timeSundays:function(){return QU},timeThursday:function(){return V1},timeThursdays:function(){return VX},timeTuesday:function(){return WU},timeTuesdays:function(){return UX},timeWednesday:function(){return GU},timeWednesdays:function(){return HX},timeWeek:function(){return U1},timeWeeks:function(){return QU},timeYear:function(){return Hm},timeYears:function(){return WX},timeout:function(){return QR},timer:function(){return cM},timerFlush:function(){return G4},touch:function(){return p_},touches:function(){return jE},transition:function(){return hM},transpose:function(){return J3},tree:function(){return cX},treemap:function(){return dX},treemapBinary:function(){return pX},treemapDice:function(){return F1},treemapResquarify:function(){return hX},treemapSlice:function(){return mA},treemapSliceDice:function(){return fX},treemapSquarify:function(){return _U},tsvFormat:function(){return tJ},tsvFormatRows:function(){return nJ},tsvParse:function(){return $Y},tsvParseRows:function(){return eJ},utcDay:function(){return xA},utcDays:function(){return JX},utcFormat:function(){return kA},utcFriday:function(){return a9},utcFridays:function(){return e$},utcHour:function(){return n9},utcHours:function(){return YX},utcMillisecond:function(){return yA},utcMilliseconds:function(){return ZU},utcMinute:function(){return e9},utcMinutes:function(){return GX},utcMonday:function(){return j1},utcMondays:function(){return QX},utcMonth:function(){return c9},utcMonths:function(){return n$},utcParse:function(){return R6},utcSaturday:function(){return s9},utcSaturdays:function(){return t$},utcSecond:function(){return SA},utcSeconds:function(){return UU},utcSunday:function(){return q1},utcSundays:function(){return l9},utcThursday:function(){return z1},utcThursdays:function(){return $X},utcTuesday:function(){return i9},utcTuesdays:function(){return KX},utcWednesday:function(){return o9},utcWednesdays:function(){return XX},utcWeek:function(){return q1},utcWeeks:function(){return l9},utcYear:function(){return qm},utcYears:function(){return r$},values:function(){return AY},variance:function(){return _E},voronoi:function(){return Nne},window:function(){return QC},zip:function(){return K3},zoom:function(){return VH},zoomIdentity:function(){return HA},zoomTransform:function(){return UH}});var x,B=f(29176),V=f(42515),C=(f(70455),f(99890),f(99740),f(27235)),_=f(36683),N=f(20901),D=f(89200),O=f(10509),P=f(97154),y=f(10629),g=f(18967),T=f(14105);f(26552);"undefined"!=typeof window&&window,"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self;"undefined"!=typeof global&&global,"_nghost-".concat("%COMP%"),"_ngcontent-".concat("%COMP%");var nx=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff";"[^".concat(nx,"]"),"[".concat(nx,"]{2,}"),(0,V.Z)(x={},4,4),(0,V.Z)(x,1,1),(0,V.Z)(x,2,2),(0,V.Z)(x,0,0),(0,V.Z)(x,3,3),Object.keys({useClass:null}),Object.keys({useFactory:null}),Object.keys({useValue:null}),Object.keys({useExisting:null});var e=f(65508),Mt=f(40098),la=f(28722),ti=f(15427),In=f(78081),Ti=f(6517),Rn=f(68707),Ya=f(5051),jB=f(57434),a3=f(58172),qo=f(89797),ro=f(55371),qr=f(44213),ea=f(57682),Ar=f(85639),qi=f(48359),ba=f(59371),Os=f(34487),Ca=f(8392);function Q0(n,r,t){for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];o?n.setProperty(i,o,(null==t?void 0:t.has(i))?"important":""):n.removeProperty(i)}return n}function Kh(n,r){var t=r?"":"none";Q0(n.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function K0(n,r,t){Q0(n.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},t)}function Zg(n,r){return r&&"none"!=r?n+" "+r:n}function xk(n){var r=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*r}function X0(n,r){return n.getPropertyValue(r).split(",").map(function(i){return i.trim()})}function $0(n){var r=n.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}function Lg(n,r,t){return t>=n.top&&t<=n.bottom&&r>=n.left&&r<=n.right}function Xh(n,r,t){n.top+=r,n.bottom=n.top+n.height,n.left+=t,n.right=n.left+n.width}function wk(n,r,t,i){var b=n.width*r,I=n.height*r;return i>n.top-I&&in.left-b&&t=u._config.dragStartThreshold){var G=Date.now()>=u._dragStartTime+u._getDragStartDelay(p),Y=u._dropContainer;if(!G)return void u._endDragSequence(p);(!Y||!Y.isDragging()&&!Y.isReceiving())&&(p.preventDefault(),u._hasStartedDragging=!0,u._ngZone.run(function(){return u._startDragSequence(p)}))}},this._pointerUp=function(p){u._endDragSequence(p)},this.withRootElement(r).withParent(t.parentDragRef||null),this._parentPositions=new l3(i,a),s.registerDragItem(this)}return(0,T.Z)(n,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var i=(0,In.Ig)(t);i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(function(o){return Kh(o,i)}))}},{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(t){var i=this;this._handles=t.map(function(a){return(0,In.fI)(a)}),this._handles.forEach(function(a){return Kh(a,i.disabled)}),this._toggleNativeDragInteractions();var o=new Set;return this._disabledHandles.forEach(function(a){i._handles.indexOf(a)>-1&&o.add(a)}),this._disabledHandles=o,this}},{key:"withPreviewTemplate",value:function(t){return this._previewTemplate=t,this}},{key:"withPlaceholderTemplate",value:function(t){return this._placeholderTemplate=t,this}},{key:"withRootElement",value:function(t){var i=this,o=(0,In.fI)(t);return o!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){o.addEventListener("mousedown",i._pointerDown,Ak),o.addEventListener("touchstart",i._pointerDown,Mk)}),this._initialTransform=void 0,this._rootElement=o),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(t){var i=this;return this._boundaryElement=t?(0,In.fI)(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return i._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(t){return this._parentDragRef=t,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&Fu(this._rootElement),Fu(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(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Kh(t,!0))}},{key:"enableHandle",value:function(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Kh(t,this.disabled))}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"_withDropContainer",value:function(t){this._dropContainer=t}},{key:"getFreeDragPosition",value:function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}},{key:"setFreeDragPosition",value:function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}},{key:"withPreviewContainer",value:function(t){return this._previewContainer=t,this}},{key:"_sortFromLastPointerPosition",value:function(){var t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&Fu(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&Fu(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(t){var i=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(){i._cleanupDragArtifacts(t),i._cleanupCachedDimensions(),i._dragDropRegistry.stopDragging(i)});else{this._passiveTransform.x=this._activeTransform.x;var o=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){i.ended.next({source:i,distance:i._getDragDistance(o),dropPoint:o})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(t){jo(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var i=this._dropContainer;if(i){var o=this._rootElement,a=o.parentNode,s=this._placeholder=this._createPlaceholderElement(),u=this._anchor=this._anchor||this._document.createComment(""),p=this._getShadowRoot();a.insertBefore(u,o),this._initialTransform=o.style.transform||"",this._preview=this._createPreviewElement(),K0(o,!1,tC),this._document.body.appendChild(a.replaceChild(s,o)),this._getPreviewInsertionPoint(a,p).appendChild(this._preview),this.started.next({source:this}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(t,i){var o=this;this._parentDragRef&&i.stopPropagation();var a=this.isDragging(),s=jo(i),u=!s&&0!==i.button,p=this._rootElement,m=(0,ti.sA)(i),b=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),I=s?(0,Ti.yG)(i):(0,Ti.X6)(i);if(m&&m.draggable&&"mousedown"===i.type&&i.preventDefault(),!(a||u||b||I)){this._handles.length&&(this._rootElementTapHighlight=p.style.webkitTapHighlightColor||"",p.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.scrolled(this._getShadowRoot()).subscribe(function(Y){return o._updateOnScroll(Y)}),this._boundaryElement&&(this._boundaryRect=$0(this._boundaryElement));var F=this._previewTemplate;this._pickupPositionInElement=F&&F.template&&!F.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,i);var G=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(i);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:G.x,y:G.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,i)}}},{key:"_cleanupDragArtifacts",value:function(t){var i=this;K0(this._rootElement,!0,tC),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 o=i._dropContainer,a=o.getItemIndex(i),s=i._getPointerPositionOnPage(t),u=i._getDragDistance(s),p=o._isOverContainer(s.x,s.y);i.ended.next({source:i,distance:u,dropPoint:s}),i.dropped.next({item:i,currentIndex:a,previousIndex:i._initialIndex,container:o,previousContainer:i._initialContainer,isPointerOverContainer:p,distance:u,dropPoint:s}),o.drop(i,a,i._initialIndex,i._initialContainer,p,u,s),i._dropContainer=i._initialContainer})}},{key:"_updateActiveDropContainer",value:function(t,i){var o=this,a=t.x,s=t.y,u=i.x,p=i.y,m=this._initialContainer._getSiblingContainerFromPosition(this,a,s);!m&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,s)&&(m=this._initialContainer),m&&m!==this._dropContainer&&this._ngZone.run(function(){o.exited.next({item:o,container:o._dropContainer}),o._dropContainer.exit(o),o._dropContainer=m,o._dropContainer.enter(o,a,s,m===o._initialContainer&&m.sortingDisabled?o._initialIndex:void 0),o.entered.next({item:o,container:m,currentIndex:m.getItemIndex(o)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(u,p),this._dropContainer._sortItem(this,a,s,this._pointerDirectionDelta),this._applyPreviewTransform(a-this._pickupPositionInElement.x,s-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var a,t=this._previewTemplate,i=this.previewClass,o=t?t.template:null;if(o&&t){var s=t.matchSize?this._rootElement.getBoundingClientRect():null,u=t.viewContainer.createEmbeddedView(o,t.context);u.detectChanges(),a=nC(u,this._document),this._previewRef=u,t.matchSize?Xs(a,s):a.style.transform=hf(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var p=this._rootElement;Xs(a=u3(p),p.getBoundingClientRect()),this._initialTransform&&(a.style.transform=this._initialTransform)}return Q0(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},tC),Kh(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach(function(m){return a.classList.add(m)}):a.classList.add(i)),a}},{key:"_animatePreviewToPlaceholder",value:function(){var t=this;if(!this._hasMoved)return Promise.resolve();var i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);var o=function(n){var r=getComputedStyle(n),t=X0(r,"transition-property"),i=t.find(function(u){return"transform"===u||"all"===u});if(!i)return 0;var o=t.indexOf(i),a=X0(r,"transition-duration"),s=X0(r,"transition-delay");return xk(a[o])+xk(s[o])}(this._preview);return 0===o?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(a){var s=function p(m){(!m||(0,ti.sA)(m)===t._preview&&"transform"===m.propertyName)&&(t._preview.removeEventListener("transitionend",p),a(),clearTimeout(u))},u=setTimeout(s,1.5*o);t._preview.addEventListener("transitionend",s)})})}},{key:"_createPlaceholderElement",value:function(){var o,t=this._placeholderTemplate,i=t?t.template:null;return i?(this._placeholderRef=t.viewContainer.createEmbeddedView(i,t.context),this._placeholderRef.detectChanges(),o=nC(this._placeholderRef,this._document)):o=u3(this._rootElement),o.classList.add("cdk-drag-placeholder"),o}},{key:"_getPointerPositionInElement",value:function(t,i){var o=this._rootElement.getBoundingClientRect(),a=t===this._rootElement?null:t,s=a?a.getBoundingClientRect():o,u=jo(i)?i.targetTouches[0]:i,p=this._getViewportScrollPosition();return{x:s.left-o.left+(u.pageX-s.left-p.left),y:s.top-o.top+(u.pageY-s.top-p.top)}}},{key:"_getPointerPositionOnPage",value:function(t){var i=this._getViewportScrollPosition(),o=jo(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,a=o.pageX-i.left,s=o.pageY-i.top;if(this._ownerSVGElement){var u=this._ownerSVGElement.getScreenCTM();if(u){var p=this._ownerSVGElement.createSVGPoint();return p.x=a,p.y=s,p.matrixTransform(u.inverse())}}return{x:a,y:s}}},{key:"_getConstrainedPointerPosition",value:function(t){var i=this._dropContainer?this._dropContainer.lockAxis:null,o=this.constrainPosition?this.constrainPosition(t,this):t,a=o.x,s=o.y;if("x"===this.lockAxis||"x"===i?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===i)&&(a=this._pickupPositionOnPage.x),this._boundaryRect){var u=this._pickupPositionInElement,p=u.x,m=u.y,b=this._boundaryRect,I=this._previewRect,F=b.top+m,G=b.bottom-(I.height-m);a=Ok(a,b.left+p,b.right-(I.width-p)),s=Ok(s,F,G)}return{x:a,y:s}}},{key:"_updatePointerDirectionDelta",value:function(t){var i=t.x,o=t.y,a=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,u=Math.abs(i-s.x),p=Math.abs(o-s.y);return u>this._config.pointerDirectionChangeThreshold&&(a.x=i>s.x?1:-1,s.x=i),p>this._config.pointerDirectionChangeThreshold&&(a.y=o>s.y?1:-1,s.y=o),a}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Kh(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,Ak),t.removeEventListener("touchstart",this._pointerDown,Mk)}},{key:"_applyRootElementTransform",value:function(t,i){var o=hf(t,i);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform&&"none"!=this._rootElement.style.transform?this._rootElement.style.transform:""),this._rootElement.style.transform=Zg(o,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(t,i){var o,a=(null===(o=this._previewTemplate)||void 0===o?void 0:o.template)?void 0:this._initialTransform,s=hf(t,i);this._preview.style.transform=Zg(s,a)}},{key:"_getDragDistance",value:function(t){var i=this._pickupPositionOnPage;return i?{x:t.x-i.x,y:t.y-i.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var t=this._passiveTransform,i=t.x,o=t.y;if(!(0===i&&0===o||this.isDragging())&&this._boundaryElement){var a=this._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(!(0===a.width&&0===a.height||0===s.width&&0===s.height)){var u=a.left-s.left,p=s.right-a.right,m=a.top-s.top,b=s.bottom-a.bottom;a.width>s.width?(u>0&&(i+=u),p>0&&(i-=p)):i=0,a.height>s.height?(m>0&&(o+=m),b>0&&(o-=b)):o=0,(i!==this._passiveTransform.x||o!==this._passiveTransform.y)&&this.setFreeDragPosition({y:o,x:i})}}}},{key:"_getDragStartDelay",value:function(t){var i=this.dragStartDelay;return"number"==typeof i?i:jo(t)?i.touch:i?i.mouse:0}},{key:"_updateOnScroll",value:function(t){var i=this._parentPositions.handleScroll(t);if(i){var o=(0,ti.sA)(t);this._boundaryRect&&(o===this._document||o!==this._boundaryElement&&o.contains(this._boundaryElement))&&Xh(this._boundaryRect,i.top,i.left),this._pickupPositionOnPage.x+=i.left,this._pickupPositionOnPage.y+=i.top,this._dropContainer||(this._activeTransform.x-=i.left,this._activeTransform.y-=i.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,ti.kV)(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(t,i){var o=this._previewContainer||"global";if("parent"===o)return t;if("global"===o){var a=this._document;return i||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return(0,In.fI)(o)}}]),n}();function hf(n,r){return"translate3d(".concat(Math.round(n),"px, ").concat(Math.round(r),"px, 0)")}function Ok(n,r,t){return Math.max(r,Math.min(t,n))}function Fu(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function jo(n){return"t"===n.type[0]}function nC(n,r){var t=n.rootNodes;if(1===t.length&&t[0].nodeType===r.ELEMENT_NODE)return t[0];var i=r.createElement("div");return t.forEach(function(o){return i.appendChild(o)}),i}function Xs(n,r){n.style.width="".concat(r.width,"px"),n.style.height="".concat(r.height,"px"),n.style.transform=hf(r.left,r.top)}function mf(n,r){return Math.max(0,Math.min(r,n))}var f3=function(){function n(r,t,i,o,a){var s=this;(0,g.Z)(this,n),this._dragDropRegistry=t,this._ngZone=o,this._viewportRuler=a,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 Rn.xQ,this.entered=new Rn.xQ,this.exited=new Rn.xQ,this.dropped=new Rn.xQ,this.sorted=new Rn.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=Ya.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Rn.xQ,this._cachedShadowRoot=null,this._startScrollInterval=function(){s._stopScrolling(),(0,jB.F)(0,a3.Z).pipe((0,qr.R)(s._stopScrollTimers)).subscribe(function(){var u=s._scrollNode,p=s.autoScrollStep;1===s._verticalScrollDirection?aC(u,-p):2===s._verticalScrollDirection&&aC(u,p),1===s._horizontalScrollDirection?Ik(u,-p):2===s._horizontalScrollDirection&&Ik(u,p)})},this.element=(0,In.fI)(r),this._document=i,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new l3(i,a)}return(0,T.Z)(n,[{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(t,i,o,a){var s;this._draggingStarted(),null==a?-1===(s=this.sortingDisabled?this._draggables.indexOf(t):-1)&&(s=this._getItemIndexFromPointerPosition(t,i,o)):s=a;var u=this._activeDraggables,p=u.indexOf(t),m=t.getPlaceholderElement(),b=u[s];if(b===t&&(b=u[s+1]),p>-1&&u.splice(p,1),b&&!this._dragDropRegistry.isDragging(b)){var I=b.getRootElement();I.parentElement.insertBefore(m,I),u.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(i,o)){var F=u[0].getRootElement();F.parentNode.insertBefore(m,F),u.unshift(t)}else(0,In.fI)(this.element).appendChild(m),u.push(t);m.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}},{key:"exit",value:function(t){this._reset(),this.exited.next({item:t,container:this})}},{key:"drop",value:function(t,i,o,a,s,u,p){this._reset(),this.dropped.next({item:t,currentIndex:i,previousIndex:o,container:this,previousContainer:a,isPointerOverContainer:s,distance:u,dropPoint:p})}},{key:"withItems",value:function(t){var i=this,o=this._draggables;return this._draggables=t,t.forEach(function(s){return s._withDropContainer(i)}),this.isDragging()&&(o.filter(function(s){return s.isDragging()}).every(function(s){return-1===t.indexOf(s)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"connectedTo",value:function(t){return this._siblings=t.slice(),this}},{key:"withOrientation",value:function(t){return this._orientation=t,this}},{key:"withScrollableParents",value:function(t){var i=(0,In.fI)(this.element);return this._scrollableElements=-1===t.indexOf(i)?[i].concat((0,y.Z)(t)):t.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(t){return this._isDragging?oC("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(o){return o.drag===t}):this._draggables.indexOf(t)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(t,i,o,a){if(!this.sortingDisabled&&this._clientRect&&wk(this._clientRect,.05,i,o)){var s=this._itemPositions,u=this._getItemIndexFromPointerPosition(t,i,o,a);if(!(-1===u&&s.length>0)){var p="horizontal"===this._orientation,m=oC(s,function(xe){return xe.drag===t}),b=s[u],F=b.clientRect,G=m>u?1:-1,Y=this._getItemOffsetPx(s[m].clientRect,F,G),te=this._getSiblingOffsetPx(m,s,G),ce=s.slice();(function(n,r,t){var i=mf(r,n.length-1),o=mf(t,n.length-1);if(i!==o){for(var a=n[i],s=o0&&(s=1):n.scrollHeight-p>n.clientHeight&&(s=2)}if(a){var m=n.scrollLeft;1===a?m>0&&(u=1):n.scrollWidth-m>n.clientWidth&&(u=2)}return[s,u]}(G,F.clientRect,t,i),te=(0,C.Z)(Y,2);u=te[1],((s=te[0])||u)&&(a=G)}}),!s&&!u){var p=this._viewportRuler.getViewportSize(),m=p.width,b=p.height,I={width:m,height:b,top:0,right:m,bottom:b,left:0};s=h3(I,i),u=Rk(I,t),a=window}a&&(s!==this._verticalScrollDirection||u!==this._horizontalScrollDirection||a!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=u,this._scrollNode=a,(s||u)&&a?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var t=(0,In.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var t=(0,In.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}},{key:"_cacheItemPositions",value:function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(i){var o=i.getVisibleElement();return{drag:i,offset:0,initialTransform:o.style.transform||"",clientRect:$0(o)}}).sort(function(i,o){return t?i.clientRect.left-o.clientRect.left:i.clientRect.top-o.clientRect.top})}},{key:"_reset",value:function(){var t=this;this._isDragging=!1;var i=(0,In.fI)(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(o){var a,s=o.getRootElement();if(s){var u=null===(a=t._itemPositions.find(function(p){return p.drag===o}))||void 0===a?void 0:a.initialTransform;s.style.transform=u||""}}),this._siblings.forEach(function(o){return o._stopReceiving(t)}),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(t,i,o){var a="horizontal"===this._orientation,s=i[t].clientRect,u=i[t+-1*o],p=s[a?"width":"height"]*o;if(u){var m=a?"left":"top",b=a?"right":"bottom";-1===o?p-=u.clientRect[m]-s[b]:p+=s[m]-u.clientRect[b]}return p}},{key:"_getItemOffsetPx",value:function(t,i,o){var a="horizontal"===this._orientation,s=a?i.left-t.left:i.top-t.top;return-1===o&&(s+=a?i.width-t.width:i.height-t.height),s}},{key:"_shouldEnterAsFirstChild",value:function(t,i){if(!this._activeDraggables.length)return!1;var o=this._itemPositions,a="horizontal"===this._orientation;if(o[0].drag!==this._activeDraggables[0]){var u=o[o.length-1].clientRect;return a?t>=u.right:i>=u.bottom}var p=o[0].clientRect;return a?t<=p.left:i<=p.top}},{key:"_getItemIndexFromPointerPosition",value:function(t,i,o,a){var s=this,u="horizontal"===this._orientation,p=oC(this._itemPositions,function(m,b,I){var F=m.drag,G=m.clientRect;return F===t?I.length<2:(!a||F!==s._previousSwap.drag||!s._previousSwap.overlaps||(u?a.x:a.y)!==s._previousSwap.delta)&&(u?i>=Math.floor(G.left)&&i=Math.floor(G.top)&&o-1})&&(a.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var t=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(i){if(t.isDragging()){var o=t._parentPositions.handleScroll(i);o&&(t._itemPositions.forEach(function(a){Xh(a.clientRect,o.top,o.left)}),t._itemPositions.forEach(function(a){var s=a.drag;t._dragDropRegistry.isDragging(s)&&s._sortFromLastPointerPosition()}))}else t.isReceiving()&&t._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var t=(0,ti.kV)((0,In.fI)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var t=this,i=this._activeDraggables.filter(function(o){return o.isDragging()});this._siblings.forEach(function(o){return o._startReceiving(t,i)})}}]),n}();function oC(n,r){for(var t=0;t=t-a&&r<=t+a?1:r>=i-a&&r<=i+a?2:0}function Rk(n,r){var t=n.left,i=n.right,a=.05*n.width;return r>=t-a&&r<=t+a?1:r>=i-a&&r<=i+a?2:0}var Bu=(0,ti.i$)({passive:!1,capture:!0}),v3=function(){var n=function(){function r(t,i){var o=this;(0,g.Z)(this,r),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(a){return a.isDragging()},this.pointerMove=new Rn.xQ,this.pointerUp=new Rn.xQ,this.scroll=new Rn.xQ,this._preventDefaultWhileDragging=function(a){o._activeDragInstances.length>0&&a.preventDefault()},this._persistentTouchmoveListener=function(a){o._activeDragInstances.length>0&&(o._activeDragInstances.some(o._draggingPredicate)&&a.preventDefault(),o.pointerMove.next(a))},this._document=i}return(0,T.Z)(r,[{key:"registerDropContainer",value:function(i){this._dropInstances.has(i)||this._dropInstances.add(i)}},{key:"registerDragItem",value:function(i){var o=this;this._dragInstances.add(i),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){o._document.addEventListener("touchmove",o._persistentTouchmoveListener,Bu)})}},{key:"removeDropContainer",value:function(i){this._dropInstances.delete(i)}},{key:"removeDragItem",value:function(i){this._dragInstances.delete(i),this.stopDragging(i),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Bu)}},{key:"startDragging",value:function(i,o){var a=this;if(!(this._activeDragInstances.indexOf(i)>-1)&&(this._activeDragInstances.push(i),1===this._activeDragInstances.length)){var s=o.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:function(p){return a.pointerUp.next(p)},options:!0}).set("scroll",{handler:function(p){return a.scroll.next(p)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Bu}),s||this._globalListeners.set("mousemove",{handler:function(p){return a.pointerMove.next(p)},options:Bu}),this._ngZone.runOutsideAngular(function(){a._globalListeners.forEach(function(u,p){a._document.addEventListener(p,u.handler,u.options)})})}}},{key:"stopDragging",value:function(i){var o=this._activeDragInstances.indexOf(i);o>-1&&(this._activeDragInstances.splice(o,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(i){return this._activeDragInstances.indexOf(i)>-1}},{key:"scrolled",value:function(i){var o=this,a=[this.scroll];return i&&i!==this._document&&a.push(new qo.y(function(s){return o._ngZone.runOutsideAngular(function(){var p=function(b){o._activeDragInstances.length&&s.next(b)};return i.addEventListener("scroll",p,!0),function(){i.removeEventListener("scroll",p,!0)}})})),ro.T.apply(void 0,a)}},{key:"ngOnDestroy",value:function(){var i=this;this._dragInstances.forEach(function(o){return i.removeDragItem(o)}),this._dropInstances.forEach(function(o){return i.removeDropContainer(o)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var i=this;this._globalListeners.forEach(function(o,a){i._document.removeEventListener(a,o.handler,o.options)}),this._globalListeners.clear()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.R0b),e.LFG(Mt.K0))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(e.R0b),e.LFG(Mt.K0))},token:n,providedIn:"root"}),n}(),Nk={dragStartThreshold:5,pointerDirectionChangeThreshold:5},sC=function(){var n=function(){function r(t,i,o,a){(0,g.Z)(this,r),this._document=t,this._ngZone=i,this._viewportRuler=o,this._dragDropRegistry=a}return(0,T.Z)(r,[{key:"createDrag",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nk;return new Dk(i,o,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(i){return new f3(i,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(Mt.K0),e.LFG(e.R0b),e.LFG(la.rL),e.LFG(v3))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(Mt.K0),e.LFG(e.R0b),e.LFG(la.rL),e.LFG(v3))},token:n,providedIn:"root"}),n}(),Hk=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[sC],imports:[la.ZD]}),n}(),Xi=f(93889),Li=f(37429),Ja=f(61493),ji=f(90838),Hg=f(17504),ur=f(43161),b3=[[["caption"]],[["colgroup"],["col"]]],C3=["caption","colgroup, col"];function dC(n){return function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){var o;(0,g.Z)(this,i);for(var a=arguments.length,s=new Array(a),u=0;u4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],u=arguments.length>6?arguments[6]:void 0;(0,g.Z)(this,n),this._isNativeHtmlTable=r,this._stickCellCss=t,this.direction=i,this._coalescedStyleScheduler=o,this._isBrowser=a,this._needsPositionStickyOnElement=s,this._positionListener=u,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(t,"-border-elem-top"),bottom:"".concat(t,"-border-elem-bottom"),left:"".concat(t,"-border-elem-left"),right:"".concat(t,"-border-elem-right")}}return(0,T.Z)(n,[{key:"clearStickyPositioning",value:function(t,i){var u,o=this,a=[],s=(0,_.Z)(t);try{for(s.s();!(u=s.n()).done;){var p=u.value;if(p.nodeType===p.ELEMENT_NODE){a.push(p);for(var m=0;m3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(i.some(function(Y){return Y})||o.some(function(Y){return Y}))){var u=t[0],p=u.children.length,m=this._getCellWidths(u,s),b=this._getStickyStartColumnPositions(m,i),I=this._getStickyEndColumnPositions(m,o),F=i.lastIndexOf(!0),G=o.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var lt,Y="rtl"===a.direction,te=Y?"right":"left",ce=Y?"left":"right",xe=(0,_.Z)(t);try{for(xe.s();!(lt=xe.n()).done;)for(var nt=lt.value,it=0;it1&&void 0!==arguments[1])||arguments[1];if(!i&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var o=[],a=t.children,s=0;s0;s--)i[s]&&(o[s]=a,a+=t[s]);return o}}]),n}(),gC=new e.OlP("CDK_SPL"),yf=function(){var n=function r(t,i){(0,g.Z)(this,r),this.viewContainer=t,this.elementRef=i};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","rowOutlet",""]]}),n}(),rm=function(){var n=function r(t,i){(0,g.Z)(this,r),this.viewContainer=t,this.elementRef=i};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n}(),im=function(){var n=function r(t,i){(0,g.Z)(this,r),this.viewContainer=t,this.elementRef=i};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n}(),Jd=function(){var n=function r(t,i){(0,g.Z)(this,r),this.viewContainer=t,this.elementRef=i};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n}(),om=function(){var n=function(){function r(t,i,o,a,s,u,p,m,b,I,F){(0,g.Z)(this,r),this._differs=t,this._changeDetectorRef=i,this._elementRef=o,this._dir=s,this._platform=p,this._viewRepeater=m,this._coalescedStyleScheduler=b,this._viewportRuler=I,this._stickyPositioningListener=F,this._onDestroy=new Rn.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.contentChanged=new e.vpe,this.viewChange=new ji.X({start:0,end:Number.MAX_VALUE}),a||this._elementRef.nativeElement.setAttribute("role","table"),this._document=u,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return(0,T.Z)(r,[{key:"trackBy",get:function(){return this._trackByFn},set:function(i){this._trackByFn=i}},{key:"dataSource",get:function(){return this._dataSource},set:function(i){this._dataSource!==i&&this._switchDataSource(i)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(i){this._multiTemplateDataRows=(0,In.Ig)(i),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(i){this._fixedLayout=(0,In.Ig)(i),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var i=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(o,a){return i.trackBy?i.trackBy(a.dataIndex,a.data):a}),this._viewportRuler.change().pipe((0,qr.R)(this._onDestroy)).subscribe(function(){i._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var o=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||o,this._forceRecalculateCellWidths=o,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,Li.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var i=this;this._renderRows=this._getAllRenderRows();var o=this._dataDiffer.diff(this._renderRows);if(!o)return this._updateNoDataRow(),void this.contentChanged.next();var a=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(o,a,function(s,u,p){return i._getEmbeddedViewArgs(s.item,p)},function(s){return s.item.data},function(s){1===s.operation&&s.context&&i._renderCellTemplateForItem(s.record.item.rowDef,s.context)}),this._updateRowIndexContext(),o.forEachIdentityChange(function(s){a.get(s.currentIndex).context.$implicit=s.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(i){this._customColumnDefs.add(i)}},{key:"removeColumnDef",value:function(i){this._customColumnDefs.delete(i)}},{key:"addRowDef",value:function(i){this._customRowDefs.add(i)}},{key:"removeRowDef",value:function(i){this._customRowDefs.delete(i)}},{key:"addHeaderRowDef",value:function(i){this._customHeaderRowDefs.add(i),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(i){this._customHeaderRowDefs.delete(i),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(i){this._customFooterRowDefs.add(i),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(i){this._customFooterRowDefs.delete(i),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(i){this._customNoDataRow=i}},{key:"updateStickyHeaderRowStyles",value:function(){var i=this._getRenderedRows(this._headerRowOutlet),a=this._elementRef.nativeElement.querySelector("thead");a&&(a.style.display=i.length?"":"none");var s=this._headerRowDefs.map(function(u){return u.sticky});this._stickyStyler.clearStickyPositioning(i,["top"]),this._stickyStyler.stickRows(i,s,"top"),this._headerRowDefs.forEach(function(u){return u.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var i=this._getRenderedRows(this._footerRowOutlet),a=this._elementRef.nativeElement.querySelector("tfoot");a&&(a.style.display=i.length?"":"none");var s=this._footerRowDefs.map(function(u){return u.sticky});this._stickyStyler.clearStickyPositioning(i,["bottom"]),this._stickyStyler.stickRows(i,s,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,s),this._footerRowDefs.forEach(function(u){return u.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var i=this,o=this._getRenderedRows(this._headerRowOutlet),a=this._getRenderedRows(this._rowOutlet),s=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat((0,y.Z)(o),(0,y.Z)(a),(0,y.Z)(s)),["left","right"]),this._stickyColumnStylesNeedReset=!1),o.forEach(function(u,p){i._addStickyColumnStyles([u],i._headerRowDefs[p])}),this._rowDefs.forEach(function(u){for(var p=[],m=0;m0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(o,a){return i._renderRow(i._headerRowOutlet,o,a)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var i=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(o,a){return i._renderRow(i._footerRowOutlet,o,a)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(i,o){var a=this,s=Array.from(o.columns||[]).map(function(m){return a._columnDefsByName.get(m)}),u=s.map(function(m){return m.sticky}),p=s.map(function(m){return m.stickyEnd});this._stickyStyler.updateStickyColumns(i,u,p,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(i){for(var o=[],a=0;a3&&void 0!==arguments[3]?arguments[3]:{},u=i.viewContainer.createEmbeddedView(o.template,s,a);return this._renderCellTemplateForItem(o,s),u}},{key:"_renderCellTemplateForItem",value:function(i,o){var s,a=(0,_.Z)(this._getCellTemplates(i));try{for(a.s();!(s=a.n()).done;)pu.mostRecentCellOutlet&&pu.mostRecentCellOutlet._viewContainer.createEmbeddedView(s.value,o)}catch(p){a.e(p)}finally{a.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var i=this._rowOutlet.viewContainer,o=0,a=i.length;o0;)t[i]=r[i+1];return N3(n,t=t.map(lE))}function a4(n){for(var r=arguments,t=[],i=arguments.length-1;i-- >0;)t[i]=r[i+1];return t.map(lE).reduce(function(o,a){var s=R3(n,a);return-1!==s?o.concat(n.splice(s,1)):o},[])}function lE(n,r){if("string"==typeof n)try{return document.querySelector(n)}catch(t){throw t}if(!I3(n)&&!r)throw new TypeError(n+" is not a DOM element.");return n}function uE(n){if(n===window)return function(){var n={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({},n);var r={};return Object.defineProperties(r,n),r}();try{var r=n.getBoundingClientRect();return void 0===r.x&&(r.x=r.left,r.y=r.top),r}catch(t){throw new TypeError("Can't call getBoundingClientRect on "+n)}}var r,xC=void 0;"function"!=typeof Object.create?(r=function(){},xC=function(t,i){if(t!==Object(t)&&null!==t)throw TypeError("Argument must be an object, or null");r.prototype=t||{};var o=new r;return r.prototype=null,void 0!==i&&Object.defineProperties(o,i),null===t&&(o.__proto__=null),o}):xC=Object.create;var B3=xC,bf=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function wC(n,r){r=r||{};for(var t=B3(n),i=0;ist.right-t.margin.right?Math.ceil(Math.min(1,(s.x-st.right)/t.margin.right+1)*t.maxSpeed.right):0,gn=s.yst.bottom-t.margin.bottom?Math.ceil(Math.min(1,(s.y-st.bottom)/t.margin.bottom+1)*t.maxSpeed.bottom):0,t.syncMove()&&p.dispatch(Jt,{pageX:s.pageX+Dt,pageY:s.pageY+gn,clientX:s.x+Dt,clientY:s.y+gn}),setTimeout(function(){gn&&function(Jt,st){Jt===window?window.scrollTo(Jt.pageXOffset,Jt.pageYOffset+st):Jt.scrollTop+=st}(Jt,gn),Dt&&function(Jt,st){Jt===window?window.scrollTo(Jt.pageXOffset+st,Jt.pageYOffset):Jt.scrollLeft+=st}(Jt,Dt)})}window.addEventListener("mousedown",te,!1),window.addEventListener("touchstart",te,!1),window.addEventListener("mouseup",ce,!1),window.addEventListener("touchend",ce,!1),window.addEventListener("pointerup",ce,!1),window.addEventListener("mousemove",ht,!1),window.addEventListener("touchmove",ht,!1),window.addEventListener("mouseleave",lt,!1),window.addEventListener("scroll",Y,!0)}function pE(n,r,t){return t?n.y>t.top&&n.yt.left&&n.xt.top&&n.yt.left&&n.x0})}));return b.complete(),ce})).subscribe(function(te){var ce=te.x,xe=te.y,lt=te.dragCancelled;i.scroller.destroy(),i.zone.run(function(){i.dragEnd.next({x:ce,y:xe,dragCancelled:lt})}),function(n,r,t){t&&t.split(" ").forEach(function(i){return n.removeClass(r.nativeElement,i)})}(i.renderer,i.element,i.dragActiveClass),m.complete()}),(0,ro.T)(I,Y).pipe((0,qi.q)(1)).subscribe(function(){requestAnimationFrame(function(){i.document.head.removeChild(s)})}),F}),(0,Kd.B)());(0,ro.T)(o.pipe((0,qi.q)(1),(0,Ar.U)(function(a){return[,a]})),o.pipe((0,EC.G)())).pipe((0,_i.h)(function(a){var s=(0,C.Z)(a,2),u=s[0],p=s[1];return!u||u.x!==p.x||u.y!==p.y}),(0,Ar.U)(function(a){return(0,C.Z)(a,2)[1]})).subscribe(function(a){var s=a.x,u=a.y,p=a.currentDrag$,m=a.clientX,b=a.clientY,I=a.transformX,F=a.transformY,G=a.target;i.zone.run(function(){i.dragging.next({x:s,y:u})}),requestAnimationFrame(function(){if(i.ghostElement){var Y="translate3d(".concat(I,"px, ").concat(F,"px, 0px)");i.setElementStyles(i.ghostElement,{transform:Y,"-webkit-transform":Y,"-ms-transform":Y,"-moz-transform":Y,"-o-transform":Y})}}),p.next({clientX:m,clientY:b,dropData:i.dropData,target:G})})}},{key:"ngOnChanges",value:function(i){i.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 i=this,o=this.canDrag(),a=Object.keys(this.eventListenerSubscriptions).length>0;o&&!a?this.zone.runOutsideAngular(function(){i.eventListenerSubscriptions.mousedown=i.renderer.listen(i.element.nativeElement,"mousedown",function(s){i.onMouseDown(s)}),i.eventListenerSubscriptions.mouseup=i.renderer.listen("document","mouseup",function(s){i.onMouseUp(s)}),i.eventListenerSubscriptions.touchstart=i.renderer.listen(i.element.nativeElement,"touchstart",function(s){i.onTouchStart(s)}),i.eventListenerSubscriptions.touchend=i.renderer.listen("document","touchend",function(s){i.onTouchEnd(s)}),i.eventListenerSubscriptions.touchcancel=i.renderer.listen("document","touchcancel",function(s){i.onTouchEnd(s)}),i.eventListenerSubscriptions.mouseenter=i.renderer.listen(i.element.nativeElement,"mouseenter",function(){i.onMouseEnter()}),i.eventListenerSubscriptions.mouseleave=i.renderer.listen(i.element.nativeElement,"mouseleave",function(){i.onMouseLeave()})}):!o&&a&&this.unsubscribeEventListeners()}},{key:"onMouseDown",value:function(i){var o=this;0===i.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",function(a){o.pointerMove$.next({event:a,clientX:a.clientX,clientY:a.clientY})})),this.pointerDown$.next({event:i,clientX:i.clientX,clientY:i.clientY}))}},{key:"onMouseUp",value:function(i){0===i.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:i,clientX:i.clientX,clientY:i.clientY}))}},{key:"onTouchStart",value:function(i){var a,s,u,o=this;if((this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&(this.timeLongPress.timerBegin=Date.now(),s=!1,u=this.hasScrollbar(),a=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){var p=(0,am.R)(this.document,"contextmenu").subscribe(function(b){b.preventDefault()}),m=(0,am.R)(this.document,"touchmove",{passive:!1}).subscribe(function(b){(o.scrollContainer&&o.scrollContainer.activeLongPressDrag||o.touchStartLongPress)&&!s&&u&&(s=o.shouldBeginDrag(i,b,a)),((!o.scrollContainer||!o.scrollContainer.activeLongPressDrag)&&!o.touchStartLongPress||!u||s)&&(b.preventDefault(),o.pointerMove$.next({event:b,clientX:b.targetTouches[0].clientX,clientY:b.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=function(){p.unsubscribe(),m.unsubscribe()}}this.pointerDown$.next({event:i,clientX:i.touches[0].clientX,clientY:i.touches[0].clientY})}},{key:"onTouchEnd",value:function(i){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&this.enableScroll()),this.pointerUp$.next({event:i,clientX:i.changedTouches[0].clientX,clientY:i.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(i){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",i)}},{key:"unsubscribeEventListeners",value:function(){var i=this;Object.keys(this.eventListenerSubscriptions).forEach(function(o){i.eventListenerSubscriptions[o](),delete i.eventListenerSubscriptions[o]})}},{key:"setElementStyles",value:function(i,o){var a=this;Object.keys(o).forEach(function(s){a.renderer.setStyle(i,s,o[s])})}},{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(i,o,a){var s=this.getScrollPosition(),u_top=Math.abs(s.top-a.top),u_left=Math.abs(s.left-a.left),p=Math.abs(o.targetTouches[0].clientX-i.touches[0].clientX)-u_left,m=Math.abs(o.targetTouches[0].clientY-i.touches[0].clientY)-u_top,I=this.touchStartLongPress?this.touchStartLongPress:{delta:this.scrollContainer.longPressConfig.delta,delay:this.scrollContainer.longPressConfig.duration};return(p+m>I.delta||u_top>0||u_left>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=I.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 i=this.getScrollElement();return i.scrollWidth>i.clientWidth||i.scrollHeight>i.clientHeight}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(cm),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(MC,8),e.Y36(Mt.K0))},n.\u0275dir=e.lG2({type:n,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:[e.TTD]}),n}(),$g=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n}(),mE=f(39095);function Cf(n,r){return nr?1:n>=r?0:NaN}function vE(n){return 1===n.length&&(n=function(n){return function(r,t){return Cf(n(r),t)}}(n)),{left:function(t,i,o,a){for(null==o&&(o=0),null==a&&(a=t.length);o>>1;n(t[s],i)<0?o=s+1:a=s}return o},right:function(t,i,o,a){for(null==o&&(o=0),null==a&&(a=t.length);o>>1;n(t[s],i)>0?a=s:o=s+1}return o}}}var gE=vE(Cf),H3=gE.right,V3=gE.left,Sf=H3;function d4(n,r){null==r&&(r=OC);for(var t=0,i=n.length-1,o=n[0],a=new Array(i<0?0:i);tn?1:r>=n?0:NaN}function qc(n){return null===n?NaN:+n}function _E(n,r){var s,u,t=n.length,i=0,o=-1,a=0,p=0;if(null==r)for(;++o1)return p/(i-1)}function Tf(n,r){var t=_E(n,r);return t&&Math.sqrt(t)}function PC(n,r){var o,a,s,t=n.length,i=-1;if(null==r){for(;++i=o)for(a=s=o;++io&&(a=o),s=o)for(a=s=o;++io&&(a=o),s0)return[n];if((i=r0)for(n=Math.ceil(n/u),r=Math.floor(r/u),s=new Array(a=Math.ceil(r-n+1));++o=0?(a>=dm?10:a>=RC?5:a>=NC?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=dm?10:a>=RC?5:a>=NC?2:1)}function jc(n,r,t){var i=Math.abs(r-n)/Math.max(0,t),o=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),a=i/o;return a>=dm?o*=10:a>=RC?o*=5:a>=NC&&(o*=2),rI;)F.pop(),--G;var te,Y=new Array(G+1);for(a=0;a<=G;++a)(te=Y[a]=[]).x0=a>0?F[a-1]:b,te.x1=a=1)return+t(n[i-1],i-1,n);var i,o=(i-1)*r,a=Math.floor(o),s=+t(n[a],a,n);return s+(+t(n[a+1],a+1,n)-s)*(o-a)}}function z3(n,r,t){return n=IC.call(n,qc).sort(Cf),Math.ceil((t-r)/(2*(wf(n,.75)-wf(n,.25))*Math.pow(n.length,-1/3)))}function W3(n,r,t){return Math.ceil((t-r)/(3.5*Tf(n)*Math.pow(n.length,-1/3)))}function t_(n,r){var o,a,t=n.length,i=-1;if(null==r){for(;++i=o)for(a=o;++ia&&(a=o)}else for(;++i=o)for(a=o;++ia&&(a=o);return a}function CE(n,r){var a,t=n.length,i=t,o=-1,s=0;if(null==r)for(;++o=0;)for(t=(s=n[r]).length;--t>=0;)a[--o]=s[t];return a}function TE(n,r){var o,a,t=n.length,i=-1;if(null==r){for(;++i=o)for(a=o;++io&&(a=o)}else for(;++i=o)for(a=o;++io&&(a=o);return a}function Rl(n,r){for(var t=r.length,i=new Array(t);t--;)i[t]=n[r[t]];return i}function G3(n,r){if(t=n.length){var t,a,i=0,o=0,s=n[o];for(null==r&&(r=Cf);++i=0&&(i=t.slice(o+1),t=t.slice(0,o)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}})}function g4(n,r){for(var o,t=0,i=n.length;t0)for(var a,s,i=new Array(a),o=0;o=0&&"xmlns"!==(r=n.slice(0,t))&&(n=n.slice(t+1)),jC.hasOwnProperty(r)?{space:jC[r],local:n}:n}function tR(n){return function(){var r=this.ownerDocument,t=this.namespaceURI;return t===qC&&r.documentElement.namespaceURI===qC?r.createElement(n):r.createElementNS(t,n)}}function AE(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function i_(n){var r=gm(n);return(r.local?AE:tR)(r)}function nR(){}function zC(n){return null==n?nR:function(){return this.querySelector(n)}}function WC(){return[]}function DE(n){return null==n?WC:function(){return this.querySelectorAll(n)}}var OE=function(r){return function(){return this.matches(r)}};if("undefined"!=typeof document){var _m=document.documentElement;if(!_m.matches){var GC=_m.webkitMatchesSelector||_m.msMatchesSelector||_m.mozMatchesSelector||_m.oMatchesSelector;OE=function(r){return function(){return GC.call(this,r)}}}}var PE=OE;function oR(n){return new Array(n.length)}function ym(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function y4(n,r,t,i,o,a){for(var u,s=0,p=r.length,m=a.length;sr?1:n>=r?0:NaN}function uR(n){return function(){this.removeAttribute(n)}}function cR(n){return function(){this.removeAttributeNS(n.space,n.local)}}function dR(n,r){return function(){this.setAttribute(n,r)}}function pR(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function fR(n,r){return function(){var t=r.apply(this,arguments);null==t?this.removeAttribute(n):this.setAttribute(n,t)}}function hR(n,r){return function(){var t=r.apply(this,arguments);null==t?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,t)}}function QC(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function vR(n){return function(){this.style.removeProperty(n)}}function gR(n,r,t){return function(){this.style.setProperty(n,r,t)}}function E4(n,r,t){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,t)}}function ep(n,r){return n.style.getPropertyValue(r)||QC(n).getComputedStyle(n,null).getPropertyValue(r)}function _R(n){return function(){delete this[n]}}function yR(n,r){return function(){this[n]=r}}function bR(n,r){return function(){var t=r.apply(this,arguments);null==t?delete this[n]:this[n]=t}}function $s(n){return n.trim().split(/^|\s+/)}function KC(n){return n.classList||new RE(n)}function RE(n){this._node=n,this._names=$s(n.getAttribute("class")||"")}function NE(n,r){for(var t=KC(n),i=-1,o=r.length;++i=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var $C={},Dn=null;function t1(n,r,t){return n=Cm(n,r,t),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function Cm(n,r,t){return function(i){var o=Dn;Dn=i;try{n.call(this,this.__data__,r,t)}finally{Dn=o}}}function s_(n){return n.trim().split(/^|\s+/).map(function(r){var t="",i=r.indexOf(".");return i>=0&&(t=r.slice(i+1),r=r.slice(0,i)),{type:r,name:t}})}function HE(n){return function(){var r=this.__on;if(r){for(var a,t=0,i=-1,o=r.length;t=nt&&(nt=lt+1);!(ht=ce[nt])&&++nt=0;)(s=i[o])&&(a&&a!==s.nextSibling&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function(n){function r(I,F){return I&&F?n(I.__data__,F.__data__):!I-!F}n||(n=sR);for(var t=this._groups,i=t.length,o=new Array(i),a=0;a1?this.each((null==r?vR:"function"==typeof r?E4:gR)(n,r,null==t?"":t)):ep(this.node(),n)},property:function(n,r){return arguments.length>1?this.each((null==r?_R:"function"==typeof r?bR:yR)(n,r)):this.node()[n]},classed:function(n,r){var t=$s(n+"");if(arguments.length<2){for(var i=KC(this.node()),o=-1,a=t.length;++o>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):(r=FR.exec(n))?WE(parseInt(r[1],16)):(r=BR.exec(n))?new ua(r[1],r[2],r[3],1):(r=UR.exec(n))?new ua(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Hu.exec(n))?GE(r[1],r[2],r[3],r[4]):(r=km.exec(n))?GE(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Mf.exec(n))?i1(r[1],r[2]/100,r[3]/100,1):(r=h_.exec(n))?i1(r[1],r[2]/100,r[3]/100,r[4]):rp.hasOwnProperty(n)?WE(rp[n]):"transparent"===n?new ua(NaN,NaN,NaN,0):null}function WE(n){return new ua(n>>16&255,n>>8&255,255&n,1)}function GE(n,r,t,i){return i<=0&&(n=r=t=NaN),new ua(n,r,t,i)}function m_(n){return n instanceof zc||(n=Gc(n)),n?new ua((n=n.rgb()).r,n.g,n.b,n.opacity):new ua}function Af(n,r,t,i){return 1===arguments.length?m_(n):new ua(n,r,t,null==i?1:i)}function ua(n,r,t,i){this.r=+n,this.g=+r,this.b=+t,this.opacity=+i}function i1(n,r,t,i){return i<=0?n=r=t=NaN:t<=0||t>=1?n=r=NaN:r<=0&&(n=NaN),new Vu(n,r,t,i)}function o1(n){if(n instanceof Vu)return new Vu(n.h,n.s,n.l,n.opacity);if(n instanceof zc||(n=Gc(n)),!n)return new Vu;if(n instanceof Vu)return n;var r=(n=n.rgb()).r/255,t=n.g/255,i=n.b/255,o=Math.min(r,t,i),a=Math.max(r,t,i),s=NaN,u=a-o,p=(a+o)/2;return u?(s=r===a?(t-i)/u+6*(t0&&p<1?0:s,new Vu(s,u,p,n.opacity)}function a1(n,r,t,i){return 1===arguments.length?o1(n):new Vu(n,r,t,null==i?1:i)}function Vu(n,r,t,i){this.h=+n,this.s=+r,this.l=+t,this.opacity=+i}function YE(n,r,t){return 255*(n<60?r+(t-r)*n/60:n<180?t:n<240?r+(t-r)*(240-n)/60:r)}hu(zc,Gc,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),hu(ua,Af,tp(zc,{brighter:function(r){return r=null==r?Ef:Math.pow(Ef,r),new ua(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new ua(this.r*r,this.g*r,this.b*r,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 r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"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===r?")":", "+r+")")}})),hu(Vu,a1,tp(zc,{brighter:function(r){return r=null==r?Ef:Math.pow(Ef,r),new Vu(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Vu(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),t=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*t,a=2*i-o;return new ua(YE(r>=240?r-240:r+120,a,o),YE(r,a,o),YE(r<120?r+240:r-120,a,o),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 Yc=Math.PI/180,JE=180/Math.PI,jR=4/29,Em=6/29,zR=3*Em*Em;function QE(n){if(n instanceof qu)return new qu(n.l,n.a,n.b,n.opacity);if(n instanceof l){if(isNaN(n.h))return new qu(n.l,0,0,n.opacity);var r=n.h*Yc;return new qu(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}n instanceof ua||(n=m_(n));var s,u,t=$E(n.r),i=$E(n.g),o=$E(n.b),a=KE((.2225045*t+.7168786*i+.0606169*o)/1);return t===i&&i===o?s=u=a:(s=KE((.4360747*t+.3850649*i+.1430804*o)/.96422),u=KE((.0139322*t+.0971045*i+.7141733*o)/.82521)),new qu(116*a-16,500*(s-a),200*(a-u),n.opacity)}function s1(n,r,t,i){return 1===arguments.length?QE(n):new qu(n,r,t,null==i?1:i)}function qu(n,r,t,i){this.l=+n,this.a=+r,this.b=+t,this.opacity=+i}function KE(n){return n>.008856451679035631?Math.pow(n,1/3):n/zR+jR}function l1(n){return n>Em?n*n*n:zR*(n-jR)}function XE(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function $E(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Z4(n){if(n instanceof l)return new l(n.h,n.c,n.l,n.opacity);if(n instanceof qu||(n=QE(n)),0===n.a&&0===n.b)return new l(NaN,0,n.l,n.opacity);var r=Math.atan2(n.b,n.a)*JE;return new l(r<0?r+360:r,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function u1(n,r,t,i){return 1===arguments.length?Z4(n):new l(n,r,t,null==i?1:i)}function l(n,r,t,i){this.h=+n,this.c=+r,this.l=+t,this.opacity=+i}hu(qu,s1,tp(zc,{brighter:function(r){return new qu(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new qu(this.l-18*(null==r?1:r),this.a,this.b,this.opacity)},rgb:function(){var r=(this.l+16)/116,t=isNaN(this.a)?r:r+this.a/500,i=isNaN(this.b)?r:r-this.b/200;return new ua(XE(3.1338561*(t=.96422*l1(t))-1.6168667*(r=1*l1(r))-.4906146*(i=.82521*l1(i))),XE(-.9787684*t+1.9161415*r+.033454*i),XE(.0719453*t-.2289914*r+1.4052427*i),this.opacity)}})),hu(l,u1,tp(zc,{brighter:function(r){return new l(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new l(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return QE(this).rgb()}}));var c=-.14861,d=1.78277,h=-.29227,v=-.90649,k=1.97294,H=k*v,W=k*d,X=d*h-v*c;function fe(n){if(n instanceof Ke)return new Ke(n.h,n.s,n.l,n.opacity);n instanceof ua||(n=m_(n));var t=n.g/255,i=n.b/255,o=(X*i+H*(n.r/255)-W*t)/(X+H-W),a=i-o,s=(k*(t-o)-h*a)/v,u=Math.sqrt(s*s+a*a)/(k*o*(1-o)),p=u?Math.atan2(s,a)*JE-120:NaN;return new Ke(p<0?p+360:p,u,o,n.opacity)}function ke(n,r,t,i){return 1===arguments.length?fe(n):new Ke(n,r,t,null==i?1:i)}function Ke(n,r,t,i){this.h=+n,this.s=+r,this.l=+t,this.opacity=+i}function Je(n,r,t,i,o){var a=n*n,s=a*n;return((1-3*n+3*a-s)*r+(4-6*a+3*s)*t+(1+3*n+3*a-3*s)*i+s*o)/6}function ft(n){var r=n.length-1;return function(t){var i=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),o=n[i],a=n[i+1];return Je((t-i/r)*r,i>0?n[i-1]:2*o-a,o,a,i180||t<-180?t-360*Math.round(t/360):t):Gt(isNaN(n)?r:n)}function fr(n,r){var t=r-n;return t?vn(n,t):Gt(isNaN(n)?r:n)}hu(Ke,ke,tp(zc,{brighter:function(r){return r=null==r?Ef:Math.pow(Ef,r),new Ke(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Ke(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*Yc,t=+this.l,i=isNaN(this.s)?0:this.s*t*(1-t),o=Math.cos(r),a=Math.sin(r);return new ua(255*(t+i*(c*o+d*a)),255*(t+i*(h*o+v*a)),255*(t+i*(k*o)),this.opacity)}}));var Qr=function n(r){var t=function(n){return 1==(n=+n)?fr:function(r,t){return t-r?function(n,r,t){return n=Math.pow(n,t),r=Math.pow(r,t)-n,t=1/t,function(i){return Math.pow(n+i*r,t)}}(r,t,n):Gt(isNaN(r)?t:r)}}(r);function i(o,a){var s=t((o=Af(o)).r,(a=Af(a)).r),u=t(o.g,a.g),p=t(o.b,a.b),m=fr(o.opacity,a.opacity);return function(b){return o.r=s(b),o.g=u(b),o.b=p(b),o.opacity=m(b),o+""}}return i.gamma=n,i}(1);function Mi(n){return function(r){var s,u,t=r.length,i=new Array(t),o=new Array(t),a=new Array(t);for(s=0;st&&(a=r.slice(t,a),u[s]?u[s]+=a:u[++s]=a),(i=i[0])===(o=o[0])?u[s]?u[s]+=o:u[++s]=o:(u[++s]=null,p.push({i:s,x:zo(i,o)})),t=Bl.lastIndex;return t180?b+=360:b-m>180&&(m+=360),F.push({i:I.push(o(I)+"rotate(",null,i)-2,x:zo(m,b)})):b&&I.push(o(I)+"rotate("+b+i)}(m.rotate,b.rotate,I,F),function(m,b,I,F){m!==b?F.push({i:I.push(o(I)+"skewX(",null,i)-2,x:zo(m,b)}):b&&I.push(o(I)+"skewX("+b+i)}(m.skewX,b.skewX,I,F),function(m,b,I,F,G,Y){if(m!==I||b!==F){var te=G.push(o(G)+"scale(",null,",",null,")");Y.push({i:te-4,x:zo(m,I)},{i:te-2,x:zo(b,F)})}else(1!==I||1!==F)&&G.push(o(G)+"scale("+I+","+F+")")}(m.scaleX,m.scaleY,b.scaleX,b.scaleY,I,F),m=b=null,function(G){for(var ce,Y=-1,te=F.length;++Y=0&&n._call.call(null,r),n=n._next;--__}function Y4(){Mm=(lM=v1.now())+uM,__=f1=0;try{G4()}finally{__=0,function(){for(var n,t,r=sM,i=1/0;r;)r._call?(i>r._time&&(i=r._time),n=r,r=r._next):(t=r._next,r._next=null,r=n?n._next=t:sM=t);m1=n,JR(i)}(),Mm=0}}function nG(){var n=v1.now(),r=n-lM;r>1e3&&(uM-=r,lM=n)}function JR(n){__||(f1&&(f1=clearTimeout(f1)),n-Mm>24?(n<1/0&&(f1=setTimeout(Y4,n-v1.now()-uM)),h1&&(h1=clearInterval(h1))):(h1||(lM=v1.now(),h1=setInterval(nG,1e3)),__=1,W4(Y4)))}function QR(n,r,t){var i=new g1;return i.restart(function(o){i.stop(),n(o+r)},r=null==r?0:+r,t),i}g1.prototype=cM.prototype={constructor:g1,restart:function(r,t,i){if("function"!=typeof r)throw new TypeError("callback is not a function");i=(null==i?y_():+i)+(null==t?0:+t),!this._next&&m1!==this&&(m1?m1._next=this:sM=this,m1=this),this._call=r,this._time=i,JR()},stop:function(){this._call&&(this._call=null,this._time=1/0,JR())}};var iG=Xd("start","end","interrupt"),oG=[];function fM(n,r,t,i,o,a){var s=n.__transition;if(s){if(t in s)return}else n.__transition={};!function(n,r,t){var o,i=n.__transition;function s(m){var b,I,F,G;if(1!==t.state)return p();for(b in i)if((G=i[b]).name===t.name){if(3===G.state)return QR(s);4===G.state?(G.state=6,G.timer.stop(),G.on.call("interrupt",n,n.__data__,G.index,G.group),delete i[b]):+b0)throw new Error("too late; already scheduled");return t}function Am(n,r){var t=ju(n,r);if(t.state>2)throw new Error("too late; already started");return t}function ju(n,r){var t=n.__transition;if(!t||!(t=t[r]))throw new Error("transition not found");return t}function Dm(n,r){var i,o,s,t=n.__transition,a=!0;if(t){for(s in r=null==r?null:r+"",t)(i=t[s]).name===r?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),o&&i.on.call("interrupt",n,n.__data__,i.index,i.group),delete t[s]):a=!1;a&&delete n.__transition}}function lG(n,r){var t,i;return function(){var o=Am(this,n),a=o.tween;if(a!==t)for(var s=0,u=(i=t=a).length;s=0&&(r=r.slice(0,t)),!r||"start"===r})}(r)?eN:Am;return function(){var s=a(this,n),u=s.on;u!==i&&(o=(i=u).copy()).on(r,t),s.on=o}}var FG=Is.prototype.constructor;function zG(n,r,t){function i(){var o=this,a=r.apply(o,arguments);return a&&function(s){o.style.setProperty(n,a(s),t)}}return i._value=r,i}var KG=0;function Kc(n,r,t,i){this._groups=n,this._parents=r,this._name=t,this._id=i}function hM(n){return Is().transition(n)}function X4(){return++KG}var b_=Is.prototype;function XG(n){return n*n*n}function $G(n){return--n*n*n+1}function nN(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}Kc.prototype=hM.prototype={constructor:Kc,select:function(n){var r=this._name,t=this._id;"function"!=typeof n&&(n=zC(n));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s1&&i.name===r)return new Kc([[n]],nY,r,+o);return null}function $4(n){return function(){return n}}function iY(n,r,t){this.target=n,this.type=r,this.selection=t}function e8(){Dn.stopImmediatePropagation()}function mM(){Dn.preventDefault(),Dn.stopImmediatePropagation()}var t8={name:"drag"},iN={name:"space"},C_={name:"handle"},S_={name:"center"},vM={name:"x",handles:["e","w"].map(_1),input:function(r,t){return r&&[[r[0],t[0][1]],[r[1],t[1][1]]]},output:function(r){return r&&[r[0][0],r[1][0]]}},gM={name:"y",handles:["n","s"].map(_1),input:function(r,t){return r&&[[t[0][0],r[0]],[t[1][0],r[1]]]},output:function(r){return r&&[r[0][1],r[1][1]]}},oY={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(_1),input:function(r){return r},output:function(r){return r}},ip={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"},n8={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},r8={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},aY={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},sY={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function _1(n){return{type:n}}function lY(){return!Dn.button}function uY(){var n=this.ownerSVGElement||this;return[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function oN(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function aN(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function cY(n){var r=n.__brush;return r?r.dim.output(r.selection):null}function dY(){return sN(vM)}function pY(){return sN(gM)}function fY(){return sN(oY)}function sN(n){var a,r=uY,t=lY,i=Xd(s,"start","brush","end"),o=6;function s(F){var G=F.property("__brush",I).selectAll(".overlay").data([_1("overlay")]);G.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ip.overlay).merge(G).each(function(){var te=oN(this).extent;ei(this).attr("x",te[0][0]).attr("y",te[0][1]).attr("width",te[1][0]-te[0][0]).attr("height",te[1][1]-te[0][1])}),F.selectAll(".selection").data([_1("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ip.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var Y=F.selectAll(".handle").data(n.handles,function(te){return te.type});Y.exit().remove(),Y.enter().append("rect").attr("class",function(te){return"handle handle--"+te.type}).attr("cursor",function(te){return ip[te.type]}),F.each(u).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",b)}function u(){var F=ei(this),G=oN(this).selection;G?(F.selectAll(".selection").style("display",null).attr("x",G[0][0]).attr("y",G[0][1]).attr("width",G[1][0]-G[0][0]).attr("height",G[1][1]-G[0][1]),F.selectAll(".handle").style("display",null).attr("x",function(Y){return"e"===Y.type[Y.type.length-1]?G[1][0]-o/2:G[0][0]-o/2}).attr("y",function(Y){return"s"===Y.type[0]?G[1][1]-o/2:G[0][1]-o/2}).attr("width",function(Y){return"n"===Y.type||"s"===Y.type?G[1][0]-G[0][0]+o:o}).attr("height",function(Y){return"e"===Y.type||"w"===Y.type?G[1][1]-G[0][1]+o:o})):F.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function p(F,G){return F.__brush.emitter||new m(F,G)}function m(F,G){this.that=F,this.args=G,this.state=F.__brush,this.active=0}function b(){if(Dn.touches){if(Dn.changedTouches.lengthMath.abs(Di[1]-li[1])?cr=!0:Yr=!0),li=Di,or=!0,mM(),dr()}function dr(){var Di;switch(kn=li[0]-$r[0],Ln=li[1]-$r[1],Y){case iN:case t8:te&&(kn=Math.max(it-ht,Math.min(hn-Jt,kn)),Qe=ht+kn,st=Jt+kn),ce&&(Ln=Math.max(tt-Ot,Math.min(Dt-gn,Ln)),xt=Ot+Ln,fn=gn+Ln);break;case C_:te<0?(kn=Math.max(it-ht,Math.min(hn-ht,kn)),Qe=ht+kn,st=Jt):te>0&&(kn=Math.max(it-Jt,Math.min(hn-Jt,kn)),Qe=ht,st=Jt+kn),ce<0?(Ln=Math.max(tt-Ot,Math.min(Dt-Ot,Ln)),xt=Ot+Ln,fn=gn):ce>0&&(Ln=Math.max(tt-gn,Math.min(Dt-gn,Ln)),xt=Ot,fn=gn+Ln);break;case S_:te&&(Qe=Math.max(it,Math.min(hn,ht-kn*te)),st=Math.max(it,Math.min(hn,Jt+kn*te))),ce&&(xt=Math.max(tt,Math.min(Dt,Ot-Ln*ce)),fn=Math.max(tt,Math.min(Dt,gn+Ln*ce)))}st0&&(ht=Qe-kn),ce<0?gn=fn-Ln:ce>0&&(Ot=xt-Ln),Y=iN,Eo.attr("cursor",ip.selection),dr());break;default:return}mM()}function xi(){switch(Dn.keyCode){case 16:Sr&&(Yr=cr=Sr=!1,dr());break;case 18:Y===S_&&(te<0?Jt=st:te>0&&(ht=Qe),ce<0?gn=fn:ce>0&&(Ot=xt),Y=C_,dr());break;case 32:Y===iN&&(Dn.altKey?(te&&(Jt=st-kn*te,ht=Qe+kn*te),ce&&(gn=fn-Ln*ce,Ot=xt+Ln*ce),Y=S_):(te<0?Jt=st:te>0&&(ht=Qe),ce<0?gn=fn:ce>0&&(Ot=xt),Y=C_),Eo.attr("cursor",ip[G]),dr());break;default:return}mM()}}function I(){var F=this.__brush||{selection:null};return F.extent=r.apply(this,arguments),F.dim=n,F}return s.move=function(F,G){F.selection?F.on("start.brush",function(){p(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){p(this,arguments).end()}).tween("brush",function(){var Y=this,te=Y.__brush,ce=p(Y,arguments),xe=te.selection,lt=n.input("function"==typeof G?G.apply(this,arguments):G,te.extent),nt=Pf(xe,lt);function it(ht){te.selection=1===ht&&aN(lt)?null:nt(ht),u.call(Y),ce.brush()}return xe&<?it:it(1)}):F.each(function(){var Y=this,te=arguments,ce=Y.__brush,xe=n.input("function"==typeof G?G.apply(Y,te):G,ce.extent),lt=p(Y,te).beforestart();Dm(Y),ce.selection=null==xe||aN(xe)?null:xe,u.call(Y),lt.start().brush().end()})},m.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(G){Sm(new iY(s,G,n.output(this.state.selection)),i.apply,i,[G,this.that,this.args])}},s.extent=function(F){return arguments.length?(r="function"==typeof F?F:$4([[+F[0][0],+F[0][1]],[+F[1][0],+F[1][1]]]),s):r},s.filter=function(F){return arguments.length?(t="function"==typeof F?F:$4(!!F),s):t},s.handleSize=function(F){return arguments.length?(o=+F,s):o},s.on=function(){var F=i.on.apply(i,arguments);return F===i?s:F},s}var i8=Math.cos,o8=Math.sin,a8=Math.PI,_M=a8/2,s8=2*a8,l8=Math.max;function hY(n){return function(r,t){return n(r.source.value+r.target.value,t.source.value+t.target.value)}}function mY(){var n=0,r=null,t=null,i=null;function o(a){var G,Y,te,ce,xe,lt,s=a.length,u=[],p=Ps(s),m=[],b=[],I=b.groups=new Array(s),F=new Array(s*s);for(G=0,xe=-1;++xeOm)if(Math.abs(I*p-m*b)>Om&&a){var G=i-s,Y=o-u,te=p*p+m*m,ce=G*G+Y*Y,xe=Math.sqrt(te),lt=Math.sqrt(F),nt=a*Math.tan((uN-Math.acos((te+F-ce)/(2*xe*lt)))/2),it=nt/lt,ht=nt/xe;Math.abs(it-1)>Om&&(this._+="L"+(r+it*b)+","+(t+it*I)),this._+="A"+a+","+a+",0,0,"+ +(I*G>b*Y)+","+(this._x1=r+ht*p)+","+(this._y1=t+ht*m)}else this._+="L"+(this._x1=r)+","+(this._y1=t)},arc:function(r,t,i,o,a,s){r=+r,t=+t,s=!!s;var u=(i=+i)*Math.cos(o),p=i*Math.sin(o),m=r+u,b=t+p,I=1^s,F=s?o-a:a-o;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+m+","+b:(Math.abs(this._x1-m)>Om||Math.abs(this._y1-b)>Om)&&(this._+="L"+m+","+b),i&&(F<0&&(F=F%cN+cN),F>gY?this._+="A"+i+","+i+",0,1,"+I+","+(r-u)+","+(t-p)+"A"+i+","+i+",0,1,"+I+","+(this._x1=m)+","+(this._y1=b):F>Om&&(this._+="A"+i+","+i+",0,"+ +(F>=uN)+","+I+","+(this._x1=r+i*Math.cos(a))+","+(this._y1=t+i*Math.sin(a))))},rect:function(r,t,i,o){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+t)+"h"+ +i+"v"+ +o+"h"+-i+"Z"},toString:function(){return this._}};var zu=u8;function _Y(n){return n.source}function yY(n){return n.target}function bY(n){return n.radius}function CY(n){return n.startAngle}function SY(n){return n.endAngle}function TY(){var n=_Y,r=yY,t=bY,i=CY,o=SY,a=null;function s(){var u,p=vY.call(arguments),m=n.apply(this,p),b=r.apply(this,p),I=+t.apply(this,(p[0]=m,p)),F=i.apply(this,p)-_M,G=o.apply(this,p)-_M,Y=I*i8(F),te=I*o8(F),ce=+t.apply(this,(p[0]=b,p)),xe=i.apply(this,p)-_M,lt=o.apply(this,p)-_M;if(a||(a=u=zu()),a.moveTo(Y,te),a.arc(0,0,I,F,G),(F!==xe||G!==lt)&&(a.quadraticCurveTo(0,0,ce*i8(xe),ce*o8(xe)),a.arc(0,0,ce,xe,lt)),a.quadraticCurveTo(0,0,Y,te),a.closePath(),u)return a=null,u+""||null}return s.radius=function(u){return arguments.length?(t="function"==typeof u?u:lN(+u),s):t},s.startAngle=function(u){return arguments.length?(i="function"==typeof u?u:lN(+u),s):i},s.endAngle=function(u){return arguments.length?(o="function"==typeof u?u:lN(+u),s):o},s.source=function(u){return arguments.length?(n=u,s):n},s.target=function(u){return arguments.length?(r=u,s):r},s.context=function(u){return arguments.length?(a=null==u?null:u,s):a},s}var vu="$";function yM(){}function c8(n,r){var t=new yM;if(n instanceof yM)n.each(function(u,p){t.set(p,u)});else if(Array.isArray(n)){var a,i=-1,o=n.length;if(null==r)for(;++i=n.length)return null!=t&&u.sort(t),null!=i?i(u):u;for(var Y,te,xe,I=-1,F=u.length,G=n[p++],ce=Rf(),lt=m();++In.length)return u;var m,b=r[p-1];return null!=i&&p>=n.length?m=u.entries():(m=[],u.each(function(I,F){m.push({key:F,values:s(I,p)})})),null!=b?m.sort(function(I,F){return b(I.key,F.key)}):m}return o={object:function(p){return a(p,0,wY,kY)},map:function(p){return a(p,0,d8,p8)},entries:function(p){return s(a(p,0,d8,p8),0)},key:function(p){return n.push(p),o},sortKeys:function(p){return r[n.length-1]=p,o},sortValues:function(p){return t=p,o},rollup:function(p){return i=p,o}}}function wY(){return{}}function kY(n,r,t){n[r]=t}function d8(){return Rf()}function p8(n,r,t){n.set(r,t)}function bM(){}var Pm=Rf.prototype;function f8(n,r){var t=new bM;if(n instanceof bM)n.each(function(a){t.add(a)});else if(n){var i=-1,o=n.length;if(null==r)for(;++ii!=G>i&&t<(F-m)*(i-b)/(G-b)+m&&(o=-o)}return o}function ZY(n,r,t){var i;return function(n,r,t){return(r[0]-n[0])*(t[1]-n[1])==(t[0]-n[0])*(r[1]-n[1])}(n,r,t)&&function(n,r,t){return n<=r&&r<=t||t<=r&&r<=n}(n[i=+(n[0]===r[0])],t[i],r[i])}function BY(){}var op=[[],[[[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 m8(){var n=1,r=1,t=ZC,i=p;function o(m){var b=t(m);if(Array.isArray(b))b=b.slice().sort(PY);else{var I=PC(m),F=I[0],G=I[1];b=jc(F,G,b),b=Ps(Math.floor(F/b)*b,Math.floor(G/b)*b,b)}return b.map(function(Y){return a(m,Y)})}function a(m,b){var I=[],F=[];return function(m,b,I){var Y,te,xe,lt,nt,F=new Array,G=new Array;for(Y=te=-1,op[(xe=m[0]>=b)<<1].forEach(it);++Y=b)<<1].forEach(it);for(op[xe<<0].forEach(it);++te=b)<<1|(lt=m[te*n]>=b)<<2].forEach(it);++Y=b)<<1|(lt=m[te*n+Y+1]>=b)<<2|nt<<3].forEach(it);op[xe|lt<<3].forEach(it)}for(Y=-1,op[(lt=m[te*n]>=b)<<2].forEach(it);++Y=b)<<2|nt<<3].forEach(it);function it(ht){var hn,Jt,Qe=[ht[0][0]+Y,ht[0][1]+te],tt=[ht[1][0]+Y,ht[1][1]+te],Ot=u(Qe),xt=u(tt);(hn=G[Ot])?(Jt=F[xt])?(delete G[hn.end],delete F[Jt.start],hn===Jt?(hn.ring.push(tt),I(hn.ring)):F[hn.start]=G[Jt.end]={start:hn.start,end:Jt.end,ring:hn.ring.concat(Jt.ring)}):(delete G[hn.end],hn.ring.push(tt),G[hn.end=xt]=hn):(hn=F[xt])?(Jt=G[Ot])?(delete F[hn.start],delete G[Jt.end],hn===Jt?(hn.ring.push(tt),I(hn.ring)):F[Jt.start]=G[hn.end]={start:Jt.start,end:hn.end,ring:Jt.ring.concat(hn.ring)}):(delete F[hn.start],hn.ring.unshift(Qe),F[hn.start=Ot]=hn):F[Ot]=G[xt]={start:Ot,end:xt,ring:[Qe,tt]}}op[lt<<3].forEach(it)}(m,b,function(G){i(G,m,b),function(n){for(var r=0,t=n.length,i=n[t-1][1]*n[0][0]-n[t-1][0]*n[0][1];++r0?I.push([G]):F.push(G)}),F.forEach(function(G){for(var ce,Y=0,te=I.length;Y0&&G0&&Y0&&I>0))throw new Error("invalid size");return n=b,r=I,o},o.thresholds=function(m){return arguments.length?(t="function"==typeof m?m:Array.isArray(m)?Im(h8.call(m)):Im(m),o):t},o.smooth=function(m){return arguments.length?(i=m?p:BY,o):i===p},o}function pN(n,r,t){for(var i=n.width,o=n.height,a=1+(t<<1),s=0;s=t&&(u>=a&&(p-=n.data[u-a+s*i]),r.data[u-t+s*i]=p/Math.min(u+1,i-1+a-u,a))}function fN(n,r,t){for(var i=n.width,o=n.height,a=1+(t<<1),s=0;s=t&&(u>=a&&(p-=n.data[s+(u-a)*i]),r.data[s+(u-t)*i]=p/Math.min(u+1,o-1+a-u,a))}function UY(n){return n[0]}function HY(n){return n[1]}function VY(){var n=UY,r=HY,t=960,i=500,o=20,a=2,s=3*o,u=t+2*s>>a,p=i+2*s>>a,m=Im(20);function b(ce){var xe=new Float32Array(u*p),lt=new Float32Array(u*p);ce.forEach(function(ht,Qe,tt){var Ot=n(ht,Qe,tt)+s>>a,xt=r(ht,Qe,tt)+s>>a;Ot>=0&&Ot=0&&xt>a),fN({width:u,height:p,data:lt},{width:u,height:p,data:xe},o>>a),pN({width:u,height:p,data:xe},{width:u,height:p,data:lt},o>>a),fN({width:u,height:p,data:lt},{width:u,height:p,data:xe},o>>a),pN({width:u,height:p,data:xe},{width:u,height:p,data:lt},o>>a),fN({width:u,height:p,data:lt},{width:u,height:p,data:xe},o>>a);var nt=m(xe);if(!Array.isArray(nt)){var it=t_(xe);nt=jc(0,it,nt),(nt=Ps(0,Math.floor(it/nt)*nt,nt)).shift()}return m8().thresholds(nt).size([u,p])(xe).map(I)}function I(ce){return ce.value*=Math.pow(2,-2*a),ce.coordinates.forEach(F),ce}function F(ce){ce.forEach(G)}function G(ce){ce.forEach(Y)}function Y(ce){ce[0]=ce[0]*Math.pow(2,a)-s,ce[1]=ce[1]*Math.pow(2,a)-s}function te(){return u=t+2*(s=3*o)>>a,p=i+2*s>>a,b}return b.x=function(ce){return arguments.length?(n="function"==typeof ce?ce:Im(+ce),b):n},b.y=function(ce){return arguments.length?(r="function"==typeof ce?ce:Im(+ce),b):r},b.size=function(ce){if(!arguments.length)return[t,i];var xe=Math.ceil(ce[0]),lt=Math.ceil(ce[1]);if(!(xe>=0||xe>=0))throw new Error("invalid size");return t=xe,i=lt,te()},b.cellSize=function(ce){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(ce)/Math.LN2),te()},b.thresholds=function(ce){return arguments.length?(m="function"==typeof ce?ce:Array.isArray(ce)?Im(h8.call(ce)):Im(ce),b):m},b.bandwidth=function(ce){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((ce=+ce)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*ce*ce+1)-1)/2),te()},b}function CM(n){return function(){return n}}function hN(n,r,t,i,o,a,s,u,p,m){this.target=n,this.type=r,this.subject=t,this.identifier=i,this.active=o,this.x=a,this.y=s,this.dx=u,this.dy=p,this._=m}function qY(){return!Dn.ctrlKey&&!Dn.button}function jY(){return this.parentNode}function zY(n){return null==n?{x:Dn.x,y:Dn.y}:n}function WY(){return navigator.maxTouchPoints||"ontouchstart"in this}function Nf(){var u,p,m,b,n=qY,r=jY,t=zY,i=WY,o={},a=Xd("start","drag","end"),s=0,I=0;function F(it){it.on("mousedown.drag",G).filter(i).on("touchstart.drag",ce).on("touchmove.drag",xe).on("touchend.drag touchcancel.drag",lt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function G(){if(!b&&n.apply(this,arguments)){var it=nt("mouse",r.apply(this,arguments),el,this,arguments);!it||(ei(Dn.view).on("mousemove.drag",Y,!0).on("mouseup.drag",te,!0),f_(Dn.view),r1(),m=!1,u=Dn.clientX,p=Dn.clientY,it("start"))}}function Y(){if(kf(),!m){var it=Dn.clientX-u,ht=Dn.clientY-p;m=it*it+ht*ht>I}o.mouse("drag")}function te(){ei(Dn.view).on("mousemove.drag mouseup.drag",null),Zl(Dn.view,m),kf(),o.mouse("end")}function ce(){if(n.apply(this,arguments)){var tt,Ot,it=Dn.changedTouches,ht=r.apply(this,arguments),Qe=it.length;for(tt=0;tt=F?ce=!0:10===(Qe=m.charCodeAt(G++))?xe=!0:13===Qe&&(xe=!0,10===m.charCodeAt(G)&&++G),m.slice(ht+1,it-1).replace(/""/g,'"')}for(;G=(I=(u+m)/2))?u=I:m=I,(ce=t>=(F=(p+b)/2))?p=F:b=F,o=a,!(a=a[xe=ce<<1|te]))return o[xe]=s,n;if(G=+n._x.call(null,a.data),Y=+n._y.call(null,a.data),r===G&&t===Y)return s.next=a,o?o[xe]=s:n._root=s,n;do{o=o?o[xe]=new Array(4):n._root=new Array(4),(te=r>=(I=(u+m)/2))?u=I:m=I,(ce=t>=(F=(p+b)/2))?p=F:b=F}while((xe=ce<<1|te)==(lt=(Y>=F)<<1|G>=I));return o[lt]=a,o[xe]=s,n}function Rs(n,r,t,i,o){this.node=n,this.x0=r,this.y0=t,this.x1=i,this.y1=o}function HJ(n){return n[0]}function qJ(n){return n[1]}function wM(n,r,t){var i=new xN(null==r?HJ:r,null==t?qJ:t,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function xN(n,r,t,i,o,a){this._x=n,this._y=r,this._x0=t,this._y0=i,this._x1=o,this._y1=a,this._root=void 0}function M8(n){for(var r={data:n.data},t=r;n=n.next;)t=t.next={data:n.data};return r}var Ns=wM.prototype=xN.prototype;function zJ(n){return n.x+n.vx}function WJ(n){return n.y+n.vy}function GJ(n){var r,t,i=1,o=1;function a(){for(var p,b,I,F,G,Y,te,m=r.length,ce=0;ceF+xt||htG+xt||QeI.index){var hn=F-tt.x-tt.vx,Jt=G-tt.y-tt.vy,st=hn*hn+Jt*Jt;stp.r&&(p.r=p[m].r)}function u(){if(r){var p,b,m=r.length;for(t=new Array(m),p=0;pb&&(b=o),aI&&(I=a));if(p>b||m>I)return this;for(this.cover(p,m).cover(b,I),t=0;tn||n>=o||i>r||r>=a;)switch(m=(rb||(u=Y.y0)>I||(p=Y.x1)=xe)<<1|n>=ce)&&(Y=F[F.length-1],F[F.length-1]=F[F.length-1-te],F[F.length-1-te]=Y)}else{var lt=n-+this._x.call(null,G.data),nt=r-+this._y.call(null,G.data),it=lt*lt+nt*nt;if(it=(F=(s+p)/2))?s=F:p=F,(te=I>=(G=(u+m)/2))?u=G:m=G,r=t,!(t=t[ce=te<<1|Y]))return this;if(!t.length)break;(r[ce+1&3]||r[ce+2&3]||r[ce+3&3])&&(i=r,xe=ce)}for(;t.data!==n;)if(o=t,!(t=t.next))return this;return(a=t.next)&&delete t.next,o?(a?o.next=a:delete o.next,this):r?(a?r[ce]=a:delete r[ce],(t=r[0]||r[1]||r[2]||r[3])&&t===(r[3]||r[2]||r[1]||r[0])&&!t.length&&(i?i[xe]=t:this._root=t),this):(this._root=a,this)},Ns.removeAll=function(n){for(var r=0,t=n.length;r1?(null==ce?u.remove(te):u.set(te,G(ce)),r):u.get(te)},find:function(te,ce,xe){var it,ht,Qe,tt,Ot,lt=0,nt=n.length;for(null==xe?xe=1/0:xe*=xe,lt=0;lt1?(m.on(te,ce),r):m.on(te)}}}function tQ(){var n,r,t,o,i=Sa(-30),a=1,s=1/0,u=.81;function p(F){var G,Y=n.length,te=wM(n,QJ,KJ).visitAfter(b);for(t=F,G=0;G=s)){(F.data!==r||F.next)&&(0===ce&&(nt+=(ce=Lf())*ce),0===xe&&(nt+=(xe=Lf())*xe),nt1?i[0]+i.slice(2):i,+n.slice(t+1)]}function x_(n){return(n=kM(Math.abs(n)))?n[1]:NaN}function O8(n,r){var t=kM(n,r);if(!t)return n+"";var i=t[0],o=t[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}var P8={"":function(n,r){e:for(var a,t=(n=n.toPrecision(r)).length,i=1,o=-1;i0&&(o=0)}return o>0?n.slice(0,o)+n.slice(a+1):n},"%":function(r,t){return(100*r).toFixed(t)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function(r){return Math.round(r).toString(10)},e:function(r,t){return r.toExponential(t)},f:function(r,t){return r.toFixed(t)},g:function(r,t){return r.toPrecision(t)},o:function(r){return Math.round(r).toString(8)},p:function(r,t){return O8(100*r,t)},r:O8,s:function(n,r){var t=kM(n,r);if(!t)return n+"";var i=t[0],o=t[1],a=o-(D8=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+kM(n,Math.max(0,r+a-1))[0]},X:function(r){return Math.round(r).toString(16).toUpperCase()},x:function(r){return Math.round(r).toString(16)}},uQ=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function C1(n){return new wN(n)}function wN(n){if(!(r=uQ.exec(n)))throw new Error("invalid format: "+n);var r,t=r[1]||" ",i=r[2]||">",o=r[3]||"-",a=r[4]||"",s=!!r[5],u=r[6]&&+r[6],p=!!r[7],m=r[8]&&+r[8].slice(1),b=r[9]||"";"n"===b?(p=!0,b="g"):P8[b]||(b=""),(s||"0"===t&&"="===i)&&(s=!0,t="0",i="="),this.fill=t,this.align=i,this.sign=o,this.symbol=a,this.zero=s,this.width=u,this.comma=p,this.precision=m,this.type=b}function I8(n){return n}C1.prototype=wN.prototype,wN.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 EM,MM,kN,R8=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function N8(n){var r=n.grouping&&n.thousands?function(n,r){return function(t,i){for(var o=t.length,a=[],s=0,u=n[0],p=0;o>0&&u>0&&(p+u+1>i&&(u=Math.max(1,i-p)),a.push(t.substring(o-=u,o+u)),!((p+=u+1)>i));)u=n[s=(s+1)%n.length];return a.reverse().join(r)}}(n.grouping,n.thousands):I8,t=n.currency,i=n.decimal,o=n.numerals?function(n){return function(r){return r.replace(/[0-9]/g,function(t){return n[+t]})}}(n.numerals):I8,a=n.percent||"%";function s(p){var m=(p=C1(p)).fill,b=p.align,I=p.sign,F=p.symbol,G=p.zero,Y=p.width,te=p.comma,ce=p.precision,xe=p.type,lt="$"===F?t[0]:"#"===F&&/[boxX]/.test(xe)?"0"+xe.toLowerCase():"",nt="$"===F?t[1]:/[%p]/.test(xe)?a:"",it=P8[xe],ht=!xe||/[defgprs%]/.test(xe);function Qe(tt){var hn,Jt,st,Ot=lt,xt=nt;if("c"===xe)xt=it(tt)+xt,tt="";else{var Dt=(tt=+tt)<0;if(tt=it(Math.abs(tt),ce),Dt&&0==+tt&&(Dt=!1),Ot=(Dt?"("===I?I:"-":"-"===I||"("===I?"":I)+Ot,xt=("s"===xe?R8[8+D8/3]:"")+xt+(Dt&&"("===I?")":""),ht)for(hn=-1,Jt=tt.length;++hn(st=tt.charCodeAt(hn))||st>57){xt=(46===st?i+tt.slice(hn+1):tt.slice(hn))+xt,tt=tt.slice(0,hn);break}}te&&!G&&(tt=r(tt,1/0));var gn=Ot.length+tt.length+xt.length,fn=gn>1)+Ot+tt+xt+fn.slice(gn);break;default:tt=fn+Ot+tt+xt}return o(tt)}return ce=null==ce?xe?6:12:/[gprs]/.test(xe)?Math.max(1,Math.min(21,ce)):Math.max(0,Math.min(20,ce)),Qe.toString=function(){return p+""},Qe}return{format:s,formatPrefix:function(p,m){var b=s(((p=C1(p)).type="f",p)),I=3*Math.max(-8,Math.min(8,Math.floor(x_(m)/3))),F=Math.pow(10,-I),G=R8[8+I/3];return function(Y){return b(F*Y)+G}}}}function Z8(n){return EM=N8(n),MM=EM.format,kN=EM.formatPrefix,EM}function L8(n){return Math.max(0,-x_(Math.abs(n)))}function F8(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(x_(r)/3)))-x_(Math.abs(n)))}function B8(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,x_(r)-x_(n))+1}function Ff(){return new AM}function AM(){this.reset()}Z8({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),AM.prototype={constructor:AM,reset:function(){this.s=this.t=0},add:function(r){U8(DM,r,this.t),U8(this,DM.s,this.s),this.s?this.t+=DM.t:this.s=DM.t},valueOf:function(){return this.s}};var DM=new AM;function U8(n,r,t){var i=n.s=r+t,o=i-r;n.t=r-(i-o)+(t-o)}var kr=1e-6,Ai=Math.PI,Wo=Ai/2,OM=Ai/4,tl=2*Ai,lo=180/Ai,Lr=Ai/180,Ri=Math.abs,w_=Math.atan,Zs=Math.atan2,Er=Math.cos,PM=Math.ceil,V8=Math.exp,IM=(Math,Math.log),EN=Math.pow,vr=Math.sin,S1=Math.sign||function(n){return n>0?1:n<0?-1:0},Ta=Math.sqrt,MN=Math.tan;function q8(n){return n>1?0:n<-1?Ai:Math.acos(n)}function Ul(n){return n>1?Wo:n<-1?-Wo:Math.asin(n)}function j8(n){return(n=vr(n/2))*n}function No(){}function RM(n,r){n&&W8.hasOwnProperty(n.type)&&W8[n.type](n,r)}var z8={Feature:function(r,t){RM(r.geometry,t)},FeatureCollection:function(r,t){for(var i=r.features,o=-1,a=i.length;++o=0?1:-1,o=i*t,a=Er(r=(r*=Lr)/2+OM),s=vr(r),u=PN*s,p=ON*a+u*Er(o),m=u*i*vr(o);NM.add(Zs(m,p)),DN=n,ON=a,PN=s}function fQ(n){return ZM.reset(),Wu(n,Xc),2*ZM}function LM(n){return[Zs(n[1],n[0]),Ul(n[2])]}function Rm(n){var r=n[0],t=n[1],i=Er(t);return[i*Er(r),i*vr(r),vr(t)]}function FM(n,r){return n[0]*r[0]+n[1]*r[1]+n[2]*r[2]}function k_(n,r){return[n[1]*r[2]-n[2]*r[1],n[2]*r[0]-n[0]*r[2],n[0]*r[1]-n[1]*r[0]]}function IN(n,r){n[0]+=r[0],n[1]+=r[1],n[2]+=r[2]}function BM(n,r){return[n[0]*r,n[1]*r,n[2]*r]}function UM(n){var r=Ta(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=r,n[1]/=r,n[2]/=r}var Go,Hl,ra,gu,Nm,K8,X8,E_,Bf,ap,T1=Ff(),sp={point:RN,lineStart:e7,lineEnd:t7,polygonStart:function(){sp.point=n7,sp.lineStart=hQ,sp.lineEnd=mQ,T1.reset(),Xc.polygonStart()},polygonEnd:function(){Xc.polygonEnd(),sp.point=RN,sp.lineStart=e7,sp.lineEnd=t7,NM<0?(Go=-(ra=180),Hl=-(gu=90)):T1>kr?gu=90:T1<-kr&&(Hl=-90),ap[0]=Go,ap[1]=ra}};function RN(n,r){Bf.push(ap=[Go=n,ra=n]),rgu&&(gu=r)}function $8(n,r){var t=Rm([n*Lr,r*Lr]);if(E_){var i=k_(E_,t),a=k_([i[1],-i[0],0],i);UM(a),a=LM(a);var m,s=n-Nm,u=s>0?1:-1,p=a[0]*lo*u,b=Ri(s)>180;b^(u*Nmgu&&(gu=m):b^(u*Nm<(p=(p+360)%360-180)&&pgu&&(gu=r)),b?nVl(Go,ra)&&(ra=n):Vl(n,ra)>Vl(Go,ra)&&(Go=n):ra>=Go?(nra&&(ra=n)):n>Nm?Vl(Go,n)>Vl(Go,ra)&&(ra=n):Vl(n,ra)>Vl(Go,ra)&&(Go=n)}else Bf.push(ap=[Go=n,ra=n]);rgu&&(gu=r),E_=t,Nm=n}function e7(){sp.point=$8}function t7(){ap[0]=Go,ap[1]=ra,sp.point=RN,E_=null}function n7(n,r){if(E_){var t=n-Nm;T1.add(Ri(t)>180?t+(t>0?360:-360):t)}else K8=n,X8=r;Xc.point(n,r),$8(n,r)}function hQ(){Xc.lineStart()}function mQ(){n7(K8,X8),Xc.lineEnd(),Ri(T1)>kr&&(Go=-(ra=180)),ap[0]=Go,ap[1]=ra,E_=null}function Vl(n,r){return(r-=n)<0?r+360:r}function vQ(n,r){return n[0]-r[0]}function r7(n,r){return n[0]<=n[1]?n[0]<=r&&r<=n[1]:rVl(i[0],i[1])&&(i[1]=o[1]),Vl(o[0],i[1])>Vl(i[0],i[1])&&(i[0]=o[0])):a.push(i=o);for(s=-1/0,r=0,i=a[t=a.length-1];r<=t;i=o,++r)(u=Vl(i[1],(o=a[r])[0]))>s&&(s=u,Go=o[0],ra=i[1])}return Bf=ap=null,Go===1/0||Hl===1/0?[[NaN,NaN],[NaN,NaN]]:[[Go,Hl],[ra,gu]]}var x1,HM,VM,qM,jM,zM,WM,GM,NN,ZN,LN,i7,o7,Ls,Fs,Bs,Gu={sphere:No,point:FN,lineStart:a7,lineEnd:s7,polygonStart:function(){Gu.lineStart=bQ,Gu.lineEnd=CQ},polygonEnd:function(){Gu.lineStart=a7,Gu.lineEnd=s7}};function FN(n,r){n*=Lr;var t=Er(r*=Lr);w1(t*Er(n),t*vr(n),vr(r))}function w1(n,r,t){++x1,VM+=(n-VM)/x1,qM+=(r-qM)/x1,jM+=(t-jM)/x1}function a7(){Gu.point=_Q}function _Q(n,r){n*=Lr;var t=Er(r*=Lr);Ls=t*Er(n),Fs=t*vr(n),Bs=vr(r),Gu.point=yQ,w1(Ls,Fs,Bs)}function yQ(n,r){n*=Lr;var t=Er(r*=Lr),i=t*Er(n),o=t*vr(n),a=vr(r),s=Zs(Ta((s=Fs*a-Bs*o)*s+(s=Bs*i-Ls*a)*s+(s=Ls*o-Fs*i)*s),Ls*i+Fs*o+Bs*a);HM+=s,zM+=s*(Ls+(Ls=i)),WM+=s*(Fs+(Fs=o)),GM+=s*(Bs+(Bs=a)),w1(Ls,Fs,Bs)}function s7(){Gu.point=FN}function bQ(){Gu.point=SQ}function CQ(){l7(i7,o7),Gu.point=FN}function SQ(n,r){i7=n,o7=r,n*=Lr,r*=Lr,Gu.point=l7;var t=Er(r);Ls=t*Er(n),Fs=t*vr(n),Bs=vr(r),w1(Ls,Fs,Bs)}function l7(n,r){n*=Lr;var t=Er(r*=Lr),i=t*Er(n),o=t*vr(n),a=vr(r),s=Fs*a-Bs*o,u=Bs*i-Ls*a,p=Ls*o-Fs*i,m=Ta(s*s+u*u+p*p),b=Ul(m),I=m&&-b/m;NN+=I*s,ZN+=I*u,LN+=I*p,HM+=b,zM+=b*(Ls+(Ls=i)),WM+=b*(Fs+(Fs=o)),GM+=b*(Bs+(Bs=a)),w1(Ls,Fs,Bs)}function TQ(n){x1=HM=VM=qM=jM=zM=WM=GM=NN=ZN=LN=0,Wu(n,Gu);var r=NN,t=ZN,i=LN,o=r*r+t*t+i*i;return o<1e-12&&(r=zM,t=WM,i=GM,HMAi?n-tl:n<-Ai?n+tl:n,r]}function HN(n,r,t){return(n%=tl)?r||t?BN(c7(n),d7(r,t)):c7(n):r||t?d7(r,t):UN}function u7(n){return function(r,t){return[(r+=n)>Ai?r-tl:r<-Ai?r+tl:r,t]}}function c7(n){var r=u7(n);return r.invert=u7(-n),r}function d7(n,r){var t=Er(n),i=vr(n),o=Er(r),a=vr(r);function s(u,p){var m=Er(p),b=Er(u)*m,I=vr(u)*m,F=vr(p),G=F*t+b*i;return[Zs(I*o-G*a,b*t-F*i),Ul(G*o+I*a)]}return s.invert=function(u,p){var m=Er(p),b=Er(u)*m,I=vr(u)*m,F=vr(p),G=F*o-I*a;return[Zs(I*o+F*a,b*t+G*i),Ul(G*t-b*i)]},s}function p7(n){function r(t){return(t=n(t[0]*Lr,t[1]*Lr))[0]*=lo,t[1]*=lo,t}return n=HN(n[0]*Lr,n[1]*Lr,n.length>2?n[2]*Lr:0),r.invert=function(t){return(t=n.invert(t[0]*Lr,t[1]*Lr))[0]*=lo,t[1]*=lo,t},r}function f7(n,r,t,i,o,a){if(t){var s=Er(r),u=vr(r),p=i*t;null==o?(o=r+i*tl,a=r-p/2):(o=h7(s,o),a=h7(s,a),(i>0?oa)&&(o+=i*tl));for(var m,b=o;i>0?b>a:b1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],r=null,i}}}function YM(n,r){return Ri(n[0]-r[0])=0;--u)o.point((I=b[u])[0],I[1]);else i(F.x,F.p.x,-1,o);F=F.p}b=(F=F.o).z,G=!G}while(!F.v);o.lineEnd()}}}function g7(n){if(r=n.length){for(var r,o,t=0,i=n[0];++t=0?1:-1,xt=Ot*tt,hn=xt>Ai,Jt=te*ht;if(VN.add(Zs(Jt*Ot*vr(xt),ce*Qe+Jt*Er(xt))),s+=hn?tt+Ot*tl:tt,hn^G>=t^nt>=t){var st=k_(Rm(F),Rm(lt));UM(st);var Dt=k_(a,st);UM(Dt);var gn=(hn^tt>=0?-1:1)*Ul(Dt[2]);(i>gn||i===gn&&(st[0]||st[1]))&&(u+=hn^tt>=0?1:-1)}}return(s<-kr||s0){for(p||(o.polygonStart(),p=!0),o.lineStart(),Qe=0;Qe1&&2&it&&ht.push(ht.pop().concat(ht.shift())),b.push(ht.filter(wQ))}}return F}}function wQ(n){return n.length>1}function kQ(n,r){return((n=n.x)[0]<0?n[1]-Wo-kr:Wo-n[1])-((r=r.x)[0]<0?r[1]-Wo-kr:Wo-r[1])}var qN=y7(function(){return!0},function(n){var o,r=NaN,t=NaN,i=NaN;return{lineStart:function(){n.lineStart(),o=1},point:function(s,u){var p=s>0?Ai:-Ai,m=Ri(s-r);Ri(m-Ai)0?Wo:-Wo),n.point(i,t),n.lineEnd(),n.lineStart(),n.point(p,t),n.point(s,t),o=0):i!==p&&m>=Ai&&(Ri(r-i)kr?w_((vr(r)*(a=Er(i))*vr(t)-vr(i)*(o=Er(r))*vr(n))/(o*a*s)):(r+i)/2}(r,t,s,u),n.point(i,t),n.lineEnd(),n.lineStart(),n.point(p,t),o=0),n.point(r=s,t=u),i=p},lineEnd:function(){n.lineEnd(),r=t=NaN},clean:function(){return 2-o}}},function(n,r,t,i){var o;if(null==n)i.point(-Ai,o=t*Wo),i.point(0,o),i.point(Ai,o),i.point(Ai,0),i.point(Ai,-o),i.point(0,-o),i.point(-Ai,-o),i.point(-Ai,0),i.point(-Ai,o);else if(Ri(n[0]-r[0])>kr){var a=n[0]0,o=Ri(r)>kr;function s(b,I){return Er(b)*Er(I)>r}function p(b,I,F){var te=[1,0,0],ce=k_(Rm(b),Rm(I)),xe=FM(ce,ce),lt=ce[0],nt=xe-lt*lt;if(!nt)return!F&&b;var it=r*xe/nt,ht=-r*lt/nt,Qe=k_(te,ce),tt=BM(te,it);IN(tt,BM(ce,ht));var xt=Qe,hn=FM(tt,xt),Jt=FM(xt,xt),st=hn*hn-Jt*(FM(tt,tt)-1);if(!(st<0)){var Dt=Ta(st),gn=BM(xt,(-hn-Dt)/Jt);if(IN(gn,tt),gn=LM(gn),!F)return gn;var Sr,fn=b[0],kn=I[0],Ln=b[1],or=I[1];kn0^gn[1]<(Ri(gn[0]-fn)Ai^(fn<=gn[0]&&gn[0]<=kn)){var li=BM(xt,(-hn+Dt)/Jt);return IN(li,tt),[gn,LM(li)]}}}function m(b,I){var F=i?n:Ai-n,G=0;return b<-F?G|=1:b>F&&(G|=2),I<-F?G|=4:I>F&&(G|=8),G}return y7(s,function(b){var I,F,G,Y,te;return{lineStart:function(){Y=G=!1,te=1},point:function(xe,lt){var it,nt=[xe,lt],ht=s(xe,lt),Qe=i?ht?0:m(xe,lt):ht?m(xe+(xe<0?Ai:-Ai),lt):0;if(!I&&(Y=G=ht)&&b.lineStart(),ht!==G&&(!(it=p(I,nt))||YM(I,it)||YM(nt,it))&&(nt[0]+=kr,nt[1]+=kr,ht=s(nt[0],nt[1])),ht!==G)te=0,ht?(b.lineStart(),it=p(nt,I),b.point(it[0],it[1])):(it=p(I,nt),b.point(it[0],it[1]),b.lineEnd()),I=it;else if(o&&I&&i^ht){var tt;!(Qe&F)&&(tt=p(nt,I,!0))&&(te=0,i?(b.lineStart(),b.point(tt[0][0],tt[0][1]),b.point(tt[1][0],tt[1][1]),b.lineEnd()):(b.point(tt[1][0],tt[1][1]),b.lineEnd(),b.lineStart(),b.point(tt[0][0],tt[0][1])))}ht&&(!I||!YM(I,nt))&&b.point(nt[0],nt[1]),I=nt,G=ht,F=Qe},lineEnd:function(){G&&b.lineEnd(),I=null},clean:function(){return te|(Y&&G)<<1}}},function(b,I,F,G){f7(G,n,t,F,b,I)},i?[0,-n]:[-Ai,n-Ai])}var k1=1e9,QM=-k1;function KM(n,r,t,i){function o(m,b){return n<=m&&m<=t&&r<=b&&b<=i}function a(m,b,I,F){var G=0,Y=0;if(null==m||(G=s(m,I))!==(Y=s(b,I))||p(m,b)<0^I>0)do{F.point(0===G||3===G?n:t,G>1?i:r)}while((G=(G+I+4)%4)!==Y);else F.point(b[0],b[1])}function s(m,b){return Ri(m[0]-n)0?0:3:Ri(m[0]-t)0?2:1:Ri(m[1]-r)0?1:0:b>0?3:2}function u(m,b){return p(m.x,b.x)}function p(m,b){var I=s(m,1),F=s(b,1);return I!==F?I-F:0===I?b[1]-m[1]:1===I?m[0]-b[0]:2===I?m[1]-b[1]:b[0]-m[0]}return function(m){var F,G,Y,te,ce,xe,lt,nt,it,ht,Qe,b=m,I=m7(),tt={point:Ot,lineStart:function(){tt.point=gn,G&&G.push(Y=[]),ht=!0,it=!1,lt=nt=NaN},lineEnd:function(){F&&(gn(te,ce),xe&&it&&I.rejoin(),F.push(I.result())),tt.point=Ot,it&&b.lineEnd()},polygonStart:function(){b=I,F=[],G=[],Qe=!0},polygonEnd:function(){var fn=function(){for(var fn=0,kn=0,Ln=G.length;kni&&(Tr-$r)*(i-li)>(Pi-li)*(n-$r)&&++fn:Pi<=i&&(Tr-$r)*(i-li)<(Pi-li)*(n-$r)&&--fn;return fn}(),kn=Qe&&fn,Ln=(F=fm(F)).length;(kn||Ln)&&(m.polygonStart(),kn&&(m.lineStart(),a(null,null,1,m),m.lineEnd()),Ln&&v7(F,u,fn,a,m),m.polygonEnd()),b=m,F=G=Y=null}};function Ot(fn,kn){o(fn,kn)&&b.point(fn,kn)}function gn(fn,kn){var Ln=o(fn,kn);if(G&&Y.push([fn,kn]),ht)te=fn,ce=kn,xe=Ln,ht=!1,Ln&&(b.lineStart(),b.point(fn,kn));else if(Ln&&it)b.point(fn,kn);else{var or=[lt=Math.max(QM,Math.min(k1,lt)),nt=Math.max(QM,Math.min(k1,nt))],Sr=[fn=Math.max(QM,Math.min(k1,fn)),kn=Math.max(QM,Math.min(k1,kn))];!function(n,r,t,i,o,a){var Y,s=n[0],u=n[1],b=0,I=1,F=r[0]-s,G=r[1]-u;if(Y=t-s,F||!(Y>0)){if(Y/=F,F<0){if(Y0){if(Y>I)return;Y>b&&(b=Y)}if(Y=o-s,F||!(Y<0)){if(Y/=F,F<0){if(Y>I)return;Y>b&&(b=Y)}else if(F>0){if(Y0)){if(Y/=G,G<0){if(Y0){if(Y>I)return;Y>b&&(b=Y)}if(Y=a-u,G||!(Y<0)){if(Y/=G,G<0){if(Y>I)return;Y>b&&(b=Y)}else if(G>0){if(Y0&&(n[0]=s+b*F,n[1]=u+b*G),I<1&&(r[0]=s+I*F,r[1]=u+I*G),!0}}}}}(or,Sr,n,r,t,i)?Ln&&(b.lineStart(),b.point(fn,kn),Qe=!1):(it||(b.lineStart(),b.point(or[0],or[1])),b.point(Sr[0],Sr[1]),Ln||b.lineEnd(),Qe=!1)}lt=fn,nt=kn,it=Ln}return tt}}function OQ(){var o,a,s,n=0,r=0,t=960,i=500;return s={stream:function(p){return o&&a===p?o:o=KM(n,r,t,i)(a=p)},extent:function(p){return arguments.length?(n=+p[0][0],r=+p[0][1],t=+p[1][0],i=+p[1][1],o=a=null,s):[[n,r],[t,i]]}}}var zN,XM,$M,jN=Ff(),A_={sphere:No,point:No,lineStart:function(){A_.point=RQ,A_.lineEnd=IQ},lineEnd:No,polygonStart:No,polygonEnd:No};function IQ(){A_.point=A_.lineEnd=No}function RQ(n,r){zN=n*=Lr,XM=vr(r*=Lr),$M=Er(r),A_.point=NQ}function NQ(n,r){n*=Lr;var t=vr(r*=Lr),i=Er(r),o=Ri(n-zN),a=Er(o),u=i*vr(o),p=$M*t-XM*i*a,m=XM*t+$M*i*a;jN.add(Zs(Ta(u*u+p*p),m)),zN=n,XM=t,$M=i}function C7(n){return jN.reset(),Wu(n,A_),+jN}var WN=[null,null],ZQ={type:"LineString",coordinates:WN};function E1(n,r){return WN[0]=n,WN[1]=r,C7(ZQ)}var S7={Feature:function(r,t){return eA(r.geometry,t)},FeatureCollection:function(r,t){for(var i=r.features,o=-1,a=i.length;++okr}).map(F)).concat(Ps(PM(a/m)*m,o,m).filter(function(nt){return Ri(nt%I)>kr}).map(G))}return xe.lines=function(){return lt().map(function(nt){return{type:"LineString",coordinates:nt}})},xe.outline=function(){return{type:"Polygon",coordinates:[Y(i).concat(te(s).slice(1),Y(t).reverse().slice(1),te(u).reverse().slice(1))]}},xe.extent=function(nt){return arguments.length?xe.extentMajor(nt).extentMinor(nt):xe.extentMinor()},xe.extentMajor=function(nt){return arguments.length?(u=+nt[0][1],s=+nt[1][1],(i=+nt[0][0])>(t=+nt[1][0])&&(nt=i,i=t,t=nt),u>s&&(nt=u,u=s,s=nt),xe.precision(ce)):[[i,u],[t,s]]},xe.extentMinor=function(nt){return arguments.length?(a=+nt[0][1],o=+nt[1][1],(r=+nt[0][0])>(n=+nt[1][0])&&(nt=r,r=n,n=nt),a>o&&(nt=a,a=o,o=nt),xe.precision(ce)):[[r,a],[n,o]]},xe.step=function(nt){return arguments.length?xe.stepMajor(nt).stepMinor(nt):xe.stepMinor()},xe.stepMajor=function(nt){return arguments.length?(b=+nt[0],I=+nt[1],xe):[b,I]},xe.stepMinor=function(nt){return arguments.length?(p=+nt[0],m=+nt[1],xe):[p,m]},xe.precision=function(nt){return arguments.length?(ce=+nt,F=M7(a,o,90),G=A7(r,n,ce),Y=M7(u,s,90),te=A7(i,t,ce),xe):ce},xe.extentMajor([[-180,-90+kr],[180,90-kr]]).extentMinor([[-180,-80-kr],[180,80+kr]])}function BQ(){return D7()()}function UQ(n,r){var t=n[0]*Lr,i=n[1]*Lr,o=r[0]*Lr,a=r[1]*Lr,s=Er(i),u=vr(i),p=Er(a),m=vr(a),b=s*Er(t),I=s*vr(t),F=p*Er(o),G=p*vr(o),Y=2*Ul(Ta(j8(a-i)+s*p*j8(o-t))),te=vr(Y),ce=Y?function(xe){var lt=vr(xe*=Y)/te,nt=vr(Y-xe)/te,it=nt*b+lt*F,ht=nt*I+lt*G,Qe=nt*u+lt*m;return[Zs(ht,it)*lo,Zs(Qe,Ta(it*it+ht*ht))*lo]}:function(){return[t*lo,i*lo]};return ce.distance=Y,ce}function Zm(n){return n}var O7,P7,JN,QN,GN=Ff(),YN=Ff(),Uf={point:No,lineStart:No,lineEnd:No,polygonStart:function(){Uf.lineStart=HQ,Uf.lineEnd=qQ},polygonEnd:function(){Uf.lineStart=Uf.lineEnd=Uf.point=No,GN.add(Ri(YN)),YN.reset()},result:function(){var r=GN/2;return GN.reset(),r}};function HQ(){Uf.point=VQ}function VQ(n,r){Uf.point=I7,O7=JN=n,P7=QN=r}function I7(n,r){YN.add(QN*n-JN*r),JN=n,QN=r}function qQ(){I7(O7,P7)}var N7,Z7,$c,ed,R7=Uf,D_=1/0,tA=D_,M1=-D_,nA=M1,rA={point:function(n,r){nM1&&(M1=n),rnA&&(nA=r)},lineStart:No,lineEnd:No,polygonStart:No,polygonEnd:No,result:function(){var r=[[D_,tA],[M1,nA]];return M1=nA=-(tA=D_=1/0),r}},KN=0,XN=0,A1=0,iA=0,oA=0,O_=0,$N=0,e6=0,D1=0,Yu={point:Lm,lineStart:L7,lineEnd:F7,polygonStart:function(){Yu.lineStart=YQ,Yu.lineEnd=JQ},polygonEnd:function(){Yu.point=Lm,Yu.lineStart=L7,Yu.lineEnd=F7},result:function(){var r=D1?[$N/D1,e6/D1]:O_?[iA/O_,oA/O_]:A1?[KN/A1,XN/A1]:[NaN,NaN];return KN=XN=A1=iA=oA=O_=$N=e6=D1=0,r}};function Lm(n,r){KN+=n,XN+=r,++A1}function L7(){Yu.point=WQ}function WQ(n,r){Yu.point=GQ,Lm($c=n,ed=r)}function GQ(n,r){var t=n-$c,i=r-ed,o=Ta(t*t+i*i);iA+=o*($c+n)/2,oA+=o*(ed+r)/2,O_+=o,Lm($c=n,ed=r)}function F7(){Yu.point=Lm}function YQ(){Yu.point=QQ}function JQ(){B7(N7,Z7)}function QQ(n,r){Yu.point=B7,Lm(N7=$c=n,Z7=ed=r)}function B7(n,r){var t=n-$c,i=r-ed,o=Ta(t*t+i*i);iA+=o*($c+n)/2,oA+=o*(ed+r)/2,O_+=o,$N+=(o=ed*n-$c*r)*($c+n),e6+=o*(ed+r),D1+=3*o,Lm($c=n,ed=r)}var U7=Yu;function H7(n){this._context=n}H7.prototype={_radius:4.5,pointRadius:function(r){return this._radius=r,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(r,t){switch(this._point){case 0:this._context.moveTo(r,t),this._point=1;break;case 1:this._context.lineTo(r,t);break;default:this._context.moveTo(r+this._radius,t),this._context.arc(r,t,this._radius,0,tl)}},result:No};var n6,V7,q7,O1,P1,t6=Ff(),aA={point:No,lineStart:function(){aA.point=KQ},lineEnd:function(){n6&&j7(V7,q7),aA.point=No},polygonStart:function(){n6=!0},polygonEnd:function(){n6=null},result:function(){var r=+t6;return t6.reset(),r}};function KQ(n,r){aA.point=j7,V7=O1=n,q7=P1=r}function j7(n,r){t6.add(Ta((O1-=n)*O1+(P1-=r)*P1)),O1=n,P1=r}var z7=aA;function W7(){this._string=[]}function G7(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function XQ(n,r){var i,o,t=4.5;function a(s){return s&&("function"==typeof t&&o.pointRadius(+t.apply(this,arguments)),Wu(s,i(o))),o.result()}return a.area=function(s){return Wu(s,i(R7)),R7.result()},a.measure=function(s){return Wu(s,i(z7)),z7.result()},a.bounds=function(s){return Wu(s,i(rA)),rA.result()},a.centroid=function(s){return Wu(s,i(U7)),U7.result()},a.projection=function(s){return arguments.length?(i=null==s?(n=null,Zm):(n=s).stream,a):n},a.context=function(s){return arguments.length?(o=null==s?(r=null,new W7):new H7(r=s),"function"!=typeof t&&o.pointRadius(t),a):r},a.pointRadius=function(s){return arguments.length?(t="function"==typeof s?s:(o.pointRadius(+s),+s),a):t},a.projection(n).context(r)}function $Q(n){return{stream:I1(n)}}function I1(n){return function(r){var t=new r6;for(var i in n)t[i]=n[i];return t.stream=r,t}}function r6(){}function i6(n,r,t){var i=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),null!=i&&n.clipExtent(null),Wu(t,n.stream(rA)),r(rA.result()),null!=i&&n.clipExtent(i),n}function sA(n,r,t){return i6(n,function(i){var o=r[1][0]-r[0][0],a=r[1][1]-r[0][1],s=Math.min(o/(i[1][0]-i[0][0]),a/(i[1][1]-i[0][1])),u=+r[0][0]+(o-s*(i[1][0]+i[0][0]))/2,p=+r[0][1]+(a-s*(i[1][1]+i[0][1]))/2;n.scale(150*s).translate([u,p])},t)}function o6(n,r,t){return sA(n,[[0,0],r],t)}function a6(n,r,t){return i6(n,function(i){var o=+r,a=o/(i[1][0]-i[0][0]),s=(o-a*(i[1][0]+i[0][0]))/2,u=-a*i[0][1];n.scale(150*a).translate([s,u])},t)}function s6(n,r,t){return i6(n,function(i){var o=+r,a=o/(i[1][1]-i[0][1]),s=-a*i[0][0],u=(o-a*(i[1][1]+i[0][1]))/2;n.scale(150*a).translate([s,u])},t)}W7.prototype={_radius:4.5,_circle:G7(4.5),pointRadius:function(r){return(r=+r)!==this._radius&&(this._radius=r,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(r,t){switch(this._point){case 0:this._string.push("M",r,",",t),this._point=1;break;case 1:this._string.push("L",r,",",t);break;default:null==this._circle&&(this._circle=G7(this._radius)),this._string.push("M",r,",",t,this._circle)}},result:function(){if(this._string.length){var r=this._string.join("");return this._string=[],r}return null}},r6.prototype={constructor:r6,point:function(r,t){this.stream.point(r,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 eK=Er(30*Lr);function J7(n,r){return+r?function(n,r){function t(i,o,a,s,u,p,m,b,I,F,G,Y,te,ce){var xe=m-i,lt=b-o,nt=xe*xe+lt*lt;if(nt>4*r&&te--){var it=s+F,ht=u+G,Qe=p+Y,tt=Ta(it*it+ht*ht+Qe*Qe),Ot=Ul(Qe/=tt),xt=Ri(Ri(Qe)-1)r||Ri((xe*Dt+lt*gn)/nt-.5)>.3||s*F+u*G+p*Y2?Dt[2]%360*Lr:0,Jt()):[u*lo,p*lo,m*lo]},xt.angle=function(Dt){return arguments.length?(I=Dt%360*Lr,Jt()):I*lo},xt.precision=function(Dt){return arguments.length?(it=J7(ht,nt=Dt*Dt),st()):Ta(nt)},xt.fitExtent=function(Dt,gn){return sA(xt,Dt,gn)},xt.fitSize=function(Dt,gn){return o6(xt,Dt,gn)},xt.fitWidth=function(Dt,gn){return a6(xt,Dt,gn)},xt.fitHeight=function(Dt,gn){return s6(xt,Dt,gn)},function(){return r=n.apply(this,arguments),xt.invert=r.invert&&hn,Jt()}}function u6(n){var r=0,t=Ai/3,i=l6(n),o=i(r,t);return o.parallels=function(a){return arguments.length?i(r=a[0]*Lr,t=a[1]*Lr):[r*lo,t*lo]},o}function K7(n,r){var t=vr(n),i=(t+vr(r))/2;if(Ri(i)=.12&&ce<.234&&te>=-.425&&te<-.214?o:ce>=.166&&ce<.234&&te>=-.214&&te<-.115?s:t).invert(F)},b.stream=function(F){return n&&r===F?n:n=function(n){var r=n.length;return{point:function(i,o){for(var a=-1;++a0?u<-Wo+kr&&(u=-Wo+kr):u>Wo-kr&&(u=Wo-kr);var p=o/EN(uA(u),i);return[p*vr(i*s),o-p*Er(i*s)]}return a.invert=function(s,u){var p=o-u,m=S1(i)*Ta(s*s+p*p);return[Zs(s,Ri(p))/i*S1(p),2*w_(EN(o/m,1/i))-Wo]},a}function pK(){return u6(tU).scale(109.5).parallels([30,30])}function Z1(n,r){return[n,r]}function fK(){return lp(Z1).scale(152.63)}function nU(n,r){var t=Er(n),i=n===r?vr(n):(t-Er(r))/(r-n),o=t/i+n;if(Ri(i)2?i[2]+90:90]):[(i=t())[0],i[1],i[2]-90]},t([0,0,90]).scale(159.155)}function CK(n,r){return n.parent===r.parent?1:2}function TK(n,r){return n+r.x}function wK(n,r){return Math.max(n,r.y)}function MK(){var n=CK,r=1,t=1,i=!1;function o(a){var s,u=0;a.eachAfter(function(F){var G=F.children;G?(F.x=function(n){return n.reduce(TK,0)/n.length}(G),F.y=function(n){return 1+n.reduce(wK,0)}(G)):(F.x=s?u+=n(F,s):0,F.y=0,s=F)});var p=function(n){for(var r;r=n.children;)n=r[0];return n}(a),m=function(n){for(var r;r=n.children;)n=r[r.length-1];return n}(a),b=p.x-n(p,m)/2,I=m.x+n(m,p)/2;return a.eachAfter(i?function(F){F.x=(F.x-a.x)*r,F.y=(a.y-F.y)*t}:function(F){F.x=(F.x-b)/(I-b)*r,F.y=(1-(a.y?F.y/a.y:1))*t})}return o.separation=function(a){return arguments.length?(n=a,o):n},o.size=function(a){return arguments.length?(i=!1,r=+a[0],t=+a[1],o):i?null:[r,t]},o.nodeSize=function(a){return arguments.length?(i=!0,r=+a[0],t=+a[1],o):i?[r,t]:null},o}function AK(n){var r=0,t=n.children,i=t&&t.length;if(i)for(;--i>=0;)r+=t[i].value;else r=1;n.value=r}function g6(n,r){var o,s,u,p,m,t=new P_(n),i=+n.value&&(t.value=n.value),a=[t];for(null==r&&(r=qK);o=a.pop();)if(i&&(o.value=+o.data.value),(u=r(o.data))&&(m=u.length))for(o.children=new Array(m),p=m-1;p>=0;--p)a.push(s=o.children[p]=new P_(u[p])),s.parent=o,s.depth=o.depth+1;return t.eachBefore(rU)}function qK(n){return n.children}function jK(n){n.data=n.data.data}function rU(n){var r=0;do{n.height=r}while((n=n.parent)&&n.height<++r)}function P_(n){this.data=n,this.depth=this.height=0,this.parent=null}d6.invert=R1(function(n){return n}),N1.invert=function(n,r){return[n,2*w_(V8(r))-Wo]},Z1.invert=Z1,p6.invert=R1(w_),f6.invert=function(n,r){var o,t=r,i=25;do{var a=t*t,s=a*a;t-=o=(t*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-r)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(Ri(o)>kr&&--i>0);return[n/(.8707+(a=t*t)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),t]},h6.invert=R1(Ul),m6.invert=R1(function(n){return 2*w_(n)}),v6.invert=function(n,r){return[-r,2*w_(V8(n))-Wo]},P_.prototype=g6.prototype={constructor:P_,count:function(){return this.eachAfter(AK)},each:function(n){var t,o,a,s,r=this,i=[r];do{for(t=i.reverse(),i=[];r=t.pop();)if(n(r),o=r.children)for(a=0,s=o.length;a=0;--o)t.push(i[o]);return this},sum:function(n){return this.eachAfter(function(r){for(var t=+n(r.data)||0,i=r.children,o=i&&i.length;--o>=0;)t+=i[o].value;r.value=t})},sort:function(n){return this.eachBefore(function(r){r.children&&r.children.sort(n)})},path:function(n){for(var r=this,t=function(n,r){if(n===r)return n;var t=n.ancestors(),i=r.ancestors(),o=null;for(n=t.pop(),r=i.pop();n===r;)o=n,n=t.pop(),r=i.pop();return o}(r,n),i=[r];r!==t;)i.push(r=r.parent);for(var o=i.length;n!==t;)i.splice(o,0,n),n=n.parent;return i},ancestors:function(){for(var n=this,r=[n];n=n.parent;)r.push(n);return r},descendants:function(){var n=[];return this.each(function(r){n.push(r)}),n},leaves:function(){var n=[];return this.eachBefore(function(r){r.children||n.push(r)}),n},links:function(){var n=this,r=[];return n.each(function(t){t!==n&&r.push({source:t.parent,target:t})}),r},copy:function(){return g6(this).eachBefore(jK)}};var zK=Array.prototype.slice;function iU(n){for(var o,a,r=0,t=(n=function(n){for(var t,i,r=n.length;r;)i=Math.random()*r--|0,t=n[r],n[r]=n[i],n[i]=t;return n}(zK.call(n))).length,i=[];r0&&t*t>i*i+o*o}function _6(n,r){for(var t=0;t(p*=p)?(o=(m+p-a)/(2*m),u=Math.sqrt(Math.max(0,p/m-o*o)),t.x=n.x-o*i-u*s,t.y=n.y-o*s+u*i):(o=(m+a-p)/(2*m),u=Math.sqrt(Math.max(0,a/m-o*o)),t.x=r.x+o*i-u*s,t.y=r.y+o*s+u*i)):(t.x=r.x+t.r,t.y=r.y)}function lU(n,r){var t=n.r+r.r-1e-6,i=r.x-n.x,o=r.y-n.y;return t>0&&t*t>i*i+o*o}function uU(n){var r=n._,t=n.next._,i=r.r+t.r,o=(r.x*t.r+t.x*r.r)/i,a=(r.y*t.r+t.y*r.r)/i;return o*o+a*a}function pA(n){this._=n,this.next=null,this.previous=null}function cU(n){if(!(o=n.length))return 0;var r,t,i,o,a,s,u,p,m,b,I;if((r=n[0]).x=0,r.y=0,!(o>1))return r.r;if(r.x=-(t=n[1]).r,t.x=r.r,t.y=0,!(o>2))return r.r+t.r;sU(t,r,i=n[2]),r=new pA(r),t=new pA(t),i=new pA(i),r.next=i.previous=t,t.next=r.previous=i,i.next=t.previous=r;e:for(u=3;u0)throw new Error("cycle");return u}return t.id=function(i){return arguments.length?(n=fA(i),t):n},t.parentId=function(i){return arguments.length?(r=fA(i),t):r},t}function oX(n,r){return n.parent===r.parent?1:2}function b6(n){var r=n.children;return r?r[0]:n.t}function C6(n){var r=n.children;return r?r[r.length-1]:n.t}function aX(n,r,t){var i=t/(r.i-n.i);r.c-=i,r.s+=t,n.c+=i,r.z+=t,r.m+=t}function lX(n,r,t){return n.a.parent===r.parent?n.a:t}function hA(n,r){this._=n,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=r}function cX(){var n=oX,r=1,t=1,i=null;function o(m){var b=function(n){for(var t,o,a,s,u,r=new hA(n,0),i=[r];t=i.pop();)if(a=t._.children)for(t.children=new Array(u=a.length),s=u-1;s>=0;--s)i.push(o=t.children[s]=new hA(a[s],s)),o.parent=t;return(r.parent=new hA(null,0)).children=[r],r}(m);if(b.eachAfter(a),b.parent.m=-b.z,b.eachBefore(s),i)m.eachBefore(p);else{var I=m,F=m,G=m;m.eachBefore(function(lt){lt.xF.x&&(F=lt),lt.depth>G.depth&&(G=lt)});var Y=I===F?1:n(I,F)/2,te=Y-I.x,ce=r/(F.x+Y+te),xe=t/(G.depth||1);m.eachBefore(function(lt){lt.x=(lt.x+te)*ce,lt.y=lt.depth*xe})}return m}function a(m){var b=m.children,I=m.parent.children,F=m.i?I[m.i-1]:null;if(b){!function(n){for(var a,r=0,t=0,i=n.children,o=i.length;--o>=0;)(a=i[o]).z+=r,a.m+=r,r+=a.s+(t+=a.c)}(m);var G=(b[0].z+b[b.length-1].z)/2;F?(m.z=F.z+n(m._,F._),m.m=m.z-G):m.z=G}else F&&(m.z=F.z+n(m._,F._));m.parent.A=function(m,b,I){if(b){for(var it,F=m,G=m,Y=b,te=F.parent.children[0],ce=F.m,xe=G.m,lt=Y.m,nt=te.m;Y=C6(Y),F=b6(F),Y&&F;)te=b6(te),(G=C6(G)).a=m,(it=Y.z+lt-F.z-ce+n(Y._,F._))>0&&(aX(lX(Y,m,I),m,it),ce+=it,xe+=it),lt+=Y.m,ce+=F.m,nt+=te.m,xe+=G.m;Y&&!C6(G)&&(G.t=Y,G.m+=lt-xe),F&&!b6(te)&&(te.t=F,te.m+=ce-nt,I=m)}return I}(m,F,m.parent.A||I[0])}function s(m){m._.x=m.z+m.parent.m,m.m+=m.parent.m}function p(m){m.x*=r,m.y=m.depth*t}return o.separation=function(m){return arguments.length?(n=m,o):n},o.size=function(m){return arguments.length?(i=!1,r=+m[0],t=+m[1],o):i?null:[r,t]},o.nodeSize=function(m){return arguments.length?(i=!0,r=+m[0],t=+m[1],o):i?[r,t]:null},o}function mA(n,r,t,i,o){for(var s,a=n.children,u=-1,p=a.length,m=n.value&&(o-t)/n.value;++ult&&(lt=m),Qe=ce*ce*ht,(nt=Math.max(lt/Qe,Qe/xe))>it){ce-=m;break}it=nt}s.push(p={value:ce,dice:G1?i:1)},t}(vU);function dX(){var n=_U,r=!1,t=1,i=1,o=[0],a=Fm,s=Fm,u=Fm,p=Fm,m=Fm;function b(F){return F.x0=F.y0=0,F.x1=t,F.y1=i,F.eachBefore(I),o=[0],r&&F.eachBefore(fU),F}function I(F){var G=o[F.depth],Y=F.x0+G,te=F.y0+G,ce=F.x1-G,xe=F.y1-G;ce=F-1){var lt=a[I];return lt.x0=Y,lt.y0=te,lt.x1=ce,void(lt.y1=xe)}for(var nt=m[I],it=G/2+nt,ht=I+1,Qe=F-1;ht>>1;m[tt]xe-te){var hn=(Y*xt+ce*Ot)/G;b(I,ht,Ot,Y,te,hn,xe),b(ht,F,xt,hn,te,ce,xe)}else{var Jt=(te*xt+xe*Ot)/G;b(I,ht,Ot,Y,te,ce,Jt),b(ht,F,xt,Y,Jt,ce,xe)}}(0,u,n.value,r,t,i,o)}function fX(n,r,t,i,o){(1&n.depth?mA:F1)(n,r,t,i,o)}var hX=function n(r){function t(i,o,a,s,u){if((p=i._squarify)&&p.ratio===r)for(var p,m,b,I,G,F=-1,Y=p.length,te=i.value;++F1?i:1)},t}(vU);function mX(n){for(var i,r=-1,t=n.length,o=n[t-1],a=0;++r1&&gX(n[t[i-2]],n[t[i-1]],n[o])<=0;)--i;t[i++]=o}return t.slice(0,i)}function yX(n){if((t=n.length)<3)return null;var r,t,i=new Array(t),o=new Array(t);for(r=0;r=0;--r)m.push(n[i[a[r]][2]]);for(r=+u;ra!=u>a&&o<(s-p)*(a-m)/(u-m)+p&&(b=!b),s=p,u=m;return b}function CX(n){for(var o,a,r=-1,t=n.length,i=n[t-1],s=i[0],u=i[1],p=0;++r1);return i+o*u*Math.sqrt(-2*Math.log(s)/s)}}return t.source=n,t}(R_),TX=function n(r){function t(){var i=bU.source(r).apply(this,arguments);return function(){return Math.exp(i())}}return t.source=n,t}(R_),CU=function n(r){function t(i){return function(){for(var o=0,a=0;a2?DX:AX,u=p=null,b}function b(I){return(u||(u=s(t,i,a?function(n){return function(r,t){var i=n(r=+r,t=+t);return function(o){return o<=r?0:o>=t?1:i(o)}}}(n):n,o)))(+I)}return b.invert=function(I){return(p||(p=s(i,t,E6,a?function(n){return function(r,t){var i=n(r=+r,t=+t);return function(o){return o<=0?r:o>=1?t:i(o)}}}(r):r)))(+I)},b.domain=function(I){return arguments.length?(t=S6.call(I,xU),m()):t.slice()},b.range=function(I){return arguments.length?(i=Hf.call(I),m()):i.slice()},b.rangeRound=function(I){return i=Hf.call(I),o=eM,m()},b.clamp=function(I){return arguments.length?(a=!!I,m()):a},b.interpolate=function(I){return arguments.length?(o=I,m()):o},m()}function B1(n){var r=n.domain;return n.ticks=function(t){var i=r();return pm(i[0],i[i.length-1],null==t?10:t)},n.tickFormat=function(t,i){return function(n,r,t){var s,i=n[0],o=n[n.length-1],a=jc(i,o,null==r?10:r);switch((t=C1(null==t?",f":t)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(o));return null==t.precision&&!isNaN(s=F8(a,u))&&(t.precision=s),kN(t,u);case"":case"e":case"g":case"p":case"r":null==t.precision&&!isNaN(s=B8(a,Math.max(Math.abs(i),Math.abs(o))))&&(t.precision=s-("e"===t.type));break;case"f":case"%":null==t.precision&&!isNaN(s=L8(a))&&(t.precision=s-2*("%"===t.type))}return MM(t)}(r(),t,i)},n.nice=function(t){null==t&&(t=10);var p,i=r(),o=0,a=i.length-1,s=i[o],u=i[a];return u0?p=xf(s=Math.floor(s/p)*p,u=Math.ceil(u/p)*p,t):p<0&&(p=xf(s=Math.ceil(s*p)/p,u=Math.floor(u*p)/p,t)),p>0?(i[o]=Math.floor(s/p)*p,i[a]=Math.ceil(u/p)*p,r(i)):p<0&&(i[o]=Math.ceil(s*p)/p,i[a]=Math.floor(u*p)/p,r(i)),n},n}function kU(){var n=gA(E6,zo);return n.copy=function(){return vA(n,kU())},B1(n)}function EU(){var n=[0,1];function r(t){return+t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(n=S6.call(t,xU),r):n.slice()},r.copy=function(){return EU().domain(n)},B1(r)}function MU(n,r){var s,t=0,i=(n=n.slice()).length-1,o=n[t],a=n[i];return a0){for(;Im)break;xe.push(te)}}else for(;I=1;--Y)if(!((te=G*Y)m)break;xe.push(te)}}else xe=pm(I,F,Math.min(F-I,ce)).map(o);return b?xe.reverse():xe},n.tickFormat=function(s,u){if(null==u&&(u=10===t?".0e":","),"function"!=typeof u&&(u=MM(u)),s===1/0)return u;null==s&&(s=10);var p=Math.max(1,t*s/n.ticks().length);return function(m){var b=m/o(Math.round(i(m)));return b*t0?t[s-1]:n[0],s=t?[i[t-1],r]:[i[p-1],i[p]]},a.copy=function(){return RU().domain([n,r]).range(o)},B1(a)}function NU(){var n=[.5],r=[0,1],t=1;function i(o){if(o<=o)return r[Sf(n,o,0,t)]}return i.domain=function(o){return arguments.length?(n=Hf.call(o),t=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(o){return arguments.length?(r=Hf.call(o),t=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(o){var a=r.indexOf(o);return[n[a-1],n[a]]},i.copy=function(){return NU().domain(n).range(r)},i}var A6=new Date,D6=new Date;function xa(n,r,t,i){function o(a){return n(a=new Date(+a)),a}return o.floor=o,o.ceil=function(a){return n(a=new Date(a-1)),r(a,1),n(a),a},o.round=function(a){var s=o(a),u=o.ceil(a);return a-s0))return p;do{p.push(m=new Date(+a)),r(a,u),n(a)}while(m=s)for(;n(s),!a(s);)s.setTime(s-1)},function(s,u){if(s>=s)if(u<0)for(;++u<=0;)for(;r(s,-1),!a(s););else for(;--u>=0;)for(;r(s,1),!a(s););})},t&&(o.count=function(a,s){return A6.setTime(+a),D6.setTime(+s),n(A6),n(D6),Math.floor(t(A6,D6))},o.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?o.filter(i?function(s){return i(s)%a==0}:function(s){return o.count(0,s)%a==0}):o:null}),o}var _A=xa(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});_A.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?xa(function(r){r.setTime(Math.floor(r/n)*n)},function(r,t){r.setTime(+r+t*n)},function(r,t){return(t-r)/n}):_A:null};var yA=_A,ZU=_A.range,Bm=6e4,CA=36e5,FU=6048e5,BU=xa(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+1e3*r)},function(n,r){return(r-n)/1e3},function(n){return n.getUTCSeconds()}),SA=BU,UU=BU.range,HU=xa(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,r){n.setTime(+n+r*Bm)},function(n,r){return(r-n)/Bm},function(n){return n.getMinutes()}),VU=HU,ZX=HU.range,qU=xa(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*Bm)},function(n,r){n.setTime(+n+r*CA)},function(n,r){return(r-n)/CA},function(n){return n.getHours()}),jU=qU,LX=qU.range,zU=xa(function(n){n.setHours(0,0,0,0)},function(n,r){n.setDate(n.getDate()+r)},function(n,r){return(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*Bm)/864e5},function(n){return n.getDate()-1}),TA=zU,FX=zU.range;function Um(n){return xa(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,t){r.setDate(r.getDate()+7*t)},function(r,t){return(t-r-(t.getTimezoneOffset()-r.getTimezoneOffset())*Bm)/FU})}var U1=Um(0),H1=Um(1),WU=Um(2),GU=Um(3),V1=Um(4),YU=Um(5),JU=Um(6),QU=U1.range,BX=H1.range,UX=WU.range,HX=GU.range,VX=V1.range,qX=YU.range,jX=JU.range,KU=xa(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}),XU=KU,zX=KU.range,O6=xa(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});O6.every=function(n){return isFinite(n=Math.floor(n))&&n>0?xa(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,t){r.setFullYear(r.getFullYear()+t*n)}):null};var Hm=O6,WX=O6.range,$U=xa(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*Bm)},function(n,r){return(r-n)/Bm},function(n){return n.getUTCMinutes()}),e9=$U,GX=$U.range,t9=xa(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*CA)},function(n,r){return(r-n)/CA},function(n){return n.getUTCHours()}),n9=t9,YX=t9.range,r9=xa(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/864e5},function(n){return n.getUTCDate()-1}),xA=r9,JX=r9.range;function Vm(n){return xa(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,t){r.setUTCDate(r.getUTCDate()+7*t)},function(r,t){return(t-r)/FU})}var q1=Vm(0),j1=Vm(1),i9=Vm(2),o9=Vm(3),z1=Vm(4),a9=Vm(5),s9=Vm(6),l9=q1.range,QX=j1.range,KX=i9.range,XX=o9.range,$X=z1.range,e$=a9.range,t$=s9.range,u9=xa(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}),c9=u9,n$=u9.range,P6=xa(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});P6.every=function(n){return isFinite(n=Math.floor(n))&&n>0?xa(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,t){r.setUTCFullYear(r.getUTCFullYear()+t*n)}):null};var qm=P6,r$=P6.range;function i$(n){if(0<=n.y&&n.y<100){var r=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return r.setFullYear(n.y),r}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function wA(n){if(0<=n.y&&n.y<100){var r=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return r.setUTCFullYear(n.y),r}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function W1(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}function d9(n){var r=n.dateTime,t=n.date,i=n.time,o=n.periods,a=n.days,s=n.shortDays,u=n.months,p=n.shortMonths,m=G1(o),b=Y1(o),I=G1(a),F=Y1(a),G=G1(s),Y=Y1(s),te=G1(u),ce=Y1(u),xe=G1(p),lt=Y1(p),nt={a:function(br){return s[br.getDay()]},A:function(br){return a[br.getDay()]},b:function(br){return p[br.getMonth()]},B:function(br){return u[br.getMonth()]},c:null,d:m9,e:m9,f:M$,H:w$,I:k$,j:E$,L:v9,m:A$,M:D$,p:function(br){return o[+(br.getHours()>=12)]},Q:b9,s:C9,S:O$,u:P$,U:I$,V:R$,w:N$,W:Z$,x:null,X:null,y:L$,Y:F$,Z:B$,"%":y9},it={a:function(br){return s[br.getUTCDay()]},A:function(br){return a[br.getUTCDay()]},b:function(br){return p[br.getUTCMonth()]},B:function(br){return u[br.getUTCMonth()]},c:null,d:g9,e:g9,f:q$,H:U$,I:H$,j:V$,L:_9,m:j$,M:z$,p:function(br){return o[+(br.getUTCHours()>=12)]},Q:b9,s:C9,S:W$,u:G$,U:Y$,V:J$,w:Q$,W:K$,x:null,X:null,y:X$,Y:$$,Z:eee,"%":y9},ht={a:function(br,gr,dr){var jn=G.exec(gr.slice(dr));return jn?(br.w=Y[jn[0].toLowerCase()],dr+jn[0].length):-1},A:function(br,gr,dr){var jn=I.exec(gr.slice(dr));return jn?(br.w=F[jn[0].toLowerCase()],dr+jn[0].length):-1},b:function(br,gr,dr){var jn=xe.exec(gr.slice(dr));return jn?(br.m=lt[jn[0].toLowerCase()],dr+jn[0].length):-1},B:function(br,gr,dr){var jn=te.exec(gr.slice(dr));return jn?(br.m=ce[jn[0].toLowerCase()],dr+jn[0].length):-1},c:function(br,gr,dr){return Ot(br,r,gr,dr)},d:f9,e:f9,f:C$,H:h9,I:h9,j:g$,L:b$,m:v$,M:_$,p:function(br,gr,dr){var jn=m.exec(gr.slice(dr));return jn?(br.p=b[jn[0].toLowerCase()],dr+jn[0].length):-1},Q:T$,s:x$,S:y$,u:u$,U:c$,V:d$,w:l$,W:p$,x:function(br,gr,dr){return Ot(br,t,gr,dr)},X:function(br,gr,dr){return Ot(br,i,gr,dr)},y:h$,Y:f$,Z:m$,"%":S$};function Qe(br,gr){return function(dr){var ts,dl,oc,jn=[],Lo=-1,xi=0,Di=br.length;for(dr instanceof Date||(dr=new Date(+dr));++Lo53)return null;"w"in jn||(jn.w=1),"Z"in jn?(Di=(xi=wA(W1(jn.y))).getUTCDay(),xi=Di>4||0===Di?j1.ceil(xi):j1(xi),xi=xA.offset(xi,7*(jn.V-1)),jn.y=xi.getUTCFullYear(),jn.m=xi.getUTCMonth(),jn.d=xi.getUTCDate()+(jn.w+6)%7):(Di=(xi=gr(W1(jn.y))).getDay(),xi=Di>4||0===Di?H1.ceil(xi):H1(xi),xi=TA.offset(xi,7*(jn.V-1)),jn.y=xi.getFullYear(),jn.m=xi.getMonth(),jn.d=xi.getDate()+(jn.w+6)%7)}else("W"in jn||"U"in jn)&&("w"in jn||(jn.w="u"in jn?jn.u%7:"W"in jn?1:0),Di="Z"in jn?wA(W1(jn.y)).getUTCDay():gr(W1(jn.y)).getDay(),jn.m=0,jn.d="W"in jn?(jn.w+6)%7+7*jn.W-(Di+5)%7:jn.w+7*jn.U-(Di+6)%7);return"Z"in jn?(jn.H+=jn.Z/100|0,jn.M+=jn.Z%100,wA(jn)):gr(jn)}}function Ot(br,gr,dr,jn){for(var ts,dl,Lo=0,xi=gr.length,Di=dr.length;Lo=Di)return-1;if(37===(ts=gr.charCodeAt(Lo++))){if(ts=gr.charAt(Lo++),!(dl=ht[ts in p9?gr.charAt(Lo++):ts])||(jn=dl(br,dr,jn))<0)return-1}else if(ts!=dr.charCodeAt(jn++))return-1}return jn}return nt.x=Qe(t,nt),nt.X=Qe(i,nt),nt.c=Qe(r,nt),it.x=Qe(t,it),it.X=Qe(i,it),it.c=Qe(r,it),{format:function(gr){var dr=Qe(gr+="",nt);return dr.toString=function(){return gr},dr},parse:function(gr){var dr=tt(gr+="",i$);return dr.toString=function(){return gr},dr},utcFormat:function(gr){var dr=Qe(gr+="",it);return dr.toString=function(){return gr},dr},utcParse:function(gr){var dr=tt(gr,wA);return dr.toString=function(){return gr},dr}}}var Z_,I6,S9,kA,R6,p9={"-":"",_:" ",0:"0"},Ka=/^\s*\d+/,o$=/^%/,a$=/[\\^$*+?|[\]().{}]/g;function $i(n,r,t){var i=n<0?"-":"",o=(i?-n:n)+"",a=o.length;return i+(a68?1900:2e3),t+i[0].length):-1}function m$(n,r,t){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(t,t+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),t+i[0].length):-1}function v$(n,r,t){var i=Ka.exec(r.slice(t,t+2));return i?(n.m=i[0]-1,t+i[0].length):-1}function f9(n,r,t){var i=Ka.exec(r.slice(t,t+2));return i?(n.d=+i[0],t+i[0].length):-1}function g$(n,r,t){var i=Ka.exec(r.slice(t,t+3));return i?(n.m=0,n.d=+i[0],t+i[0].length):-1}function h9(n,r,t){var i=Ka.exec(r.slice(t,t+2));return i?(n.H=+i[0],t+i[0].length):-1}function _$(n,r,t){var i=Ka.exec(r.slice(t,t+2));return i?(n.M=+i[0],t+i[0].length):-1}function y$(n,r,t){var i=Ka.exec(r.slice(t,t+2));return i?(n.S=+i[0],t+i[0].length):-1}function b$(n,r,t){var i=Ka.exec(r.slice(t,t+3));return i?(n.L=+i[0],t+i[0].length):-1}function C$(n,r,t){var i=Ka.exec(r.slice(t,t+6));return i?(n.L=Math.floor(i[0]/1e3),t+i[0].length):-1}function S$(n,r,t){var i=o$.exec(r.slice(t,t+1));return i?t+i[0].length:-1}function T$(n,r,t){var i=Ka.exec(r.slice(t));return i?(n.Q=+i[0],t+i[0].length):-1}function x$(n,r,t){var i=Ka.exec(r.slice(t));return i?(n.Q=1e3*+i[0],t+i[0].length):-1}function m9(n,r){return $i(n.getDate(),r,2)}function w$(n,r){return $i(n.getHours(),r,2)}function k$(n,r){return $i(n.getHours()%12||12,r,2)}function E$(n,r){return $i(1+TA.count(Hm(n),n),r,3)}function v9(n,r){return $i(n.getMilliseconds(),r,3)}function M$(n,r){return v9(n,r)+"000"}function A$(n,r){return $i(n.getMonth()+1,r,2)}function D$(n,r){return $i(n.getMinutes(),r,2)}function O$(n,r){return $i(n.getSeconds(),r,2)}function P$(n){var r=n.getDay();return 0===r?7:r}function I$(n,r){return $i(U1.count(Hm(n),n),r,2)}function R$(n,r){var t=n.getDay();return n=t>=4||0===t?V1(n):V1.ceil(n),$i(V1.count(Hm(n),n)+(4===Hm(n).getDay()),r,2)}function N$(n){return n.getDay()}function Z$(n,r){return $i(H1.count(Hm(n),n),r,2)}function L$(n,r){return $i(n.getFullYear()%100,r,2)}function F$(n,r){return $i(n.getFullYear()%1e4,r,4)}function B$(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+$i(r/60|0,"0",2)+$i(r%60,"0",2)}function g9(n,r){return $i(n.getUTCDate(),r,2)}function U$(n,r){return $i(n.getUTCHours(),r,2)}function H$(n,r){return $i(n.getUTCHours()%12||12,r,2)}function V$(n,r){return $i(1+xA.count(qm(n),n),r,3)}function _9(n,r){return $i(n.getUTCMilliseconds(),r,3)}function q$(n,r){return _9(n,r)+"000"}function j$(n,r){return $i(n.getUTCMonth()+1,r,2)}function z$(n,r){return $i(n.getUTCMinutes(),r,2)}function W$(n,r){return $i(n.getUTCSeconds(),r,2)}function G$(n){var r=n.getUTCDay();return 0===r?7:r}function Y$(n,r){return $i(q1.count(qm(n),n),r,2)}function J$(n,r){var t=n.getUTCDay();return n=t>=4||0===t?z1(n):z1.ceil(n),$i(z1.count(qm(n),n)+(4===qm(n).getUTCDay()),r,2)}function Q$(n){return n.getUTCDay()}function K$(n,r){return $i(j1.count(qm(n),n),r,2)}function X$(n,r){return $i(n.getUTCFullYear()%100,r,2)}function $$(n,r){return $i(n.getUTCFullYear()%1e4,r,4)}function eee(){return"+0000"}function y9(){return"%"}function b9(n){return+n}function C9(n){return Math.floor(+n/1e3)}function T9(n){return Z_=d9(n),I6=Z_.format,S9=Z_.parse,kA=Z_.utcFormat,R6=Z_.utcParse,Z_}T9({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 x9="%Y-%m-%dT%H:%M:%S.%LZ",ree=Date.prototype.toISOString?function(n){return n.toISOString()}:kA(x9),aee=+new Date("2000-01-01T00:00:00.000Z")?function(n){var r=new Date(n);return isNaN(r)?null:r}:R6(x9),Q1=6e4,K1=60*Q1,X1=24*K1,w9=30*X1,N6=365*X1;function lee(n){return new Date(n)}function uee(n){return n instanceof Date?+n:+new Date(+n)}function Z6(n,r,t,i,o,a,s,u,p){var m=gA(E6,zo),b=m.invert,I=m.domain,F=p(".%L"),G=p(":%S"),Y=p("%I:%M"),te=p("%I %p"),ce=p("%a %d"),xe=p("%b %d"),lt=p("%B"),nt=p("%Y"),it=[[s,1,1e3],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,Q1],[a,5,5*Q1],[a,15,15*Q1],[a,30,30*Q1],[o,1,K1],[o,3,3*K1],[o,6,6*K1],[o,12,12*K1],[i,1,X1],[i,2,2*X1],[t,1,6048e5],[r,1,w9],[r,3,3*w9],[n,1,N6]];function ht(tt){return(s(tt)1)&&(n-=Math.floor(n));var r=Math.abs(n-.5);return EA.h=360*n-100,EA.s=1.5-1.5*r,EA.l=.8-.9*r,EA+""}function MA(n){var r=n.length;return function(t){return n[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}var Xee=MA(oi("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),$ee=MA(oi("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ete=MA(oi("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),tte=MA(oi("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function nte(n,r){return n.each(function(){var t=r.apply(this,arguments),i=ei(this);for(var o in t)i.attr(o,t[o])})}function rte(n,r){for(var t in r)n.attr(t,r[t]);return n}function ote(n,r,t){return n.each(function(){var i=r.apply(this,arguments),o=ei(this);for(var a in i)o.style(a,i[a],t)})}function ate(n,r,t){for(var i in r)n.style(i,r[i],t);return n}function lte(n,r){return n.each(function(){var t=r.apply(this,arguments),i=ei(this);for(var o in t)i.property(o,t[o])})}function ute(n,r){for(var t in r)n.property(t,r[t]);return n}function dte(n,r){return n.each(function(){var t=r.apply(this,arguments),i=ei(this).transition(n);for(var o in t)i.attr(o,t[o])})}function pte(n,r){for(var t in r)n.attr(t,r[t]);return n}function hte(n,r,t){return n.each(function(){var i=r.apply(this,arguments),o=ei(this).transition(n);for(var a in i)o.style(a,i[a],t)})}function mte(n,r,t){for(var i in r)n.style(i,r[i],t);return n}function pi(n){return function(){return n}}Is.prototype.attrs=function(n){return("function"==typeof n?nte:rte)(this,n)},Is.prototype.styles=function(n,r){return("function"==typeof n?ote:ate)(this,n,null==r?"":r)},Is.prototype.properties=function(n){return("function"==typeof n?lte:ute)(this,n)},hM.prototype.attrs=function(n){return("function"==typeof n?dte:pte)(this,n)},hM.prototype.styles=function(n,r){return("function"==typeof n?hte:mte)(this,n,null==r?"":r)};var eH=Math.abs,ls=Math.atan2,jm=Math.cos,gte=Math.max,L6=Math.min,td=Math.sin,L_=Math.sqrt,Xa=1e-12,zm=Math.PI,AA=zm/2,up=2*zm;function _te(n){return n>1?0:n<-1?zm:Math.acos(n)}function tH(n){return n>=1?AA:n<=-1?-AA:Math.asin(n)}function yte(n){return n.innerRadius}function bte(n){return n.outerRadius}function Cte(n){return n.startAngle}function Ste(n){return n.endAngle}function Tte(n){return n&&n.padAngle}function xte(n,r,t,i,o,a,s,u){var p=t-n,m=i-r,b=s-o,I=u-a,F=I*p-b*m;if(!(F*Fgn*gn+fn*fn&&(Ot=hn,xt=Jt),{cx:Ot,cy:xt,x01:-b,y01:-I,x11:Ot*(o/ht-1),y11:xt*(o/ht-1)}}function wte(){var n=yte,r=bte,t=pi(0),i=null,o=Cte,a=Ste,s=Tte,u=null;function p(){var m,b,I=+n.apply(this,arguments),F=+r.apply(this,arguments),G=o.apply(this,arguments)-AA,Y=a.apply(this,arguments)-AA,te=eH(Y-G),ce=Y>G;if(u||(u=m=zu()),FXa)if(te>up-Xa)u.moveTo(F*jm(G),F*td(G)),u.arc(0,0,F,G,Y,!ce),I>Xa&&(u.moveTo(I*jm(Y),I*td(Y)),u.arc(0,0,I,Y,G,ce));else{var st,Dt,xe=G,lt=Y,nt=G,it=Y,ht=te,Qe=te,tt=s.apply(this,arguments)/2,Ot=tt>Xa&&(i?+i.apply(this,arguments):L_(I*I+F*F)),xt=L6(eH(F-I)/2,+t.apply(this,arguments)),hn=xt,Jt=xt;if(Ot>Xa){var gn=tH(Ot/I*td(tt)),fn=tH(Ot/F*td(tt));(ht-=2*gn)>Xa?(nt+=gn*=ce?1:-1,it-=gn):(ht=0,nt=it=(G+Y)/2),(Qe-=2*fn)>Xa?(xe+=fn*=ce?1:-1,lt-=fn):(Qe=0,xe=lt=(G+Y)/2)}var kn=F*jm(xe),Ln=F*td(xe),or=I*jm(it),Sr=I*td(it);if(xt>Xa){var Tr,Yr=F*jm(lt),cr=F*td(lt),$r=I*jm(nt),li=I*td(nt);if(te<=up-Xa&&(Tr=xte(kn,Ln,$r,li,Yr,cr,or,Sr))){var Pi=kn-Tr[0],Eo=Ln-Tr[1],br=Yr-Tr[0],gr=cr-Tr[1],dr=1/td(_te((Pi*br+Eo*gr)/(L_(Pi*Pi+Eo*Eo)*L_(br*br+gr*gr)))/2),jn=L_(Tr[0]*Tr[0]+Tr[1]*Tr[1]);hn=L6(xt,(I-jn)/(dr-1)),Jt=L6(xt,(F-jn)/(dr+1))}}Qe>Xa?Jt>Xa?(st=DA($r,li,kn,Ln,F,Jt,ce),Dt=DA(Yr,cr,or,Sr,F,Jt,ce),u.moveTo(st.cx+st.x01,st.cy+st.y01),JtXa&&ht>Xa?hn>Xa?(st=DA(or,Sr,Yr,cr,I,-hn,ce),Dt=DA(kn,Ln,$r,li,I,-hn,ce),u.lineTo(st.cx+st.x01,st.cy+st.y01),hn=F;--G)u.point(lt[G],nt[G]);u.lineEnd(),u.areaEnd()}ce&&(lt[I]=+n(te,I,b),nt[I]=+t(te,I,b),u.point(r?+r(te,I,b):lt[I],i?+i(te,I,b):nt[I]))}if(xe)return u=null,xe+""||null}function m(){return PA().defined(o).curve(s).context(a)}return p.x=function(b){return arguments.length?(n="function"==typeof b?b:pi(+b),r=null,p):n},p.x0=function(b){return arguments.length?(n="function"==typeof b?b:pi(+b),p):n},p.x1=function(b){return arguments.length?(r=null==b?null:"function"==typeof b?b:pi(+b),p):r},p.y=function(b){return arguments.length?(t="function"==typeof b?b:pi(+b),i=null,p):t},p.y0=function(b){return arguments.length?(t="function"==typeof b?b:pi(+b),p):t},p.y1=function(b){return arguments.length?(i=null==b?null:"function"==typeof b?b:pi(+b),p):i},p.lineX0=p.lineY0=function(){return m().x(n).y(t)},p.lineY1=function(){return m().x(n).y(i)},p.lineX1=function(){return m().x(r).y(t)},p.defined=function(b){return arguments.length?(o="function"==typeof b?b:pi(!!b),p):o},p.curve=function(b){return arguments.length?(s=b,null!=a&&(u=s(a)),p):s},p.context=function(b){return arguments.length?(null==b?a=u=null:u=s(a=b),p):a},p}function kte(n,r){return rn?1:r>=n?0:NaN}function Ete(n){return n}function Mte(){var n=Ete,r=kte,t=null,i=pi(0),o=pi(up),a=pi(0);function s(u){var p,b,I,xe,it,m=u.length,F=0,G=new Array(m),Y=new Array(m),te=+i.apply(this,arguments),ce=Math.min(up,Math.max(-up,o.apply(this,arguments)-te)),lt=Math.min(Math.abs(ce)/m,a.apply(this,arguments)),nt=lt*(ce<0?-1:1);for(p=0;p0&&(F+=it);for(null!=r?G.sort(function(ht,Qe){return r(Y[ht],Y[Qe])}):null!=t&&G.sort(function(ht,Qe){return t(u[ht],u[Qe])}),p=0,I=F?(ce-m*nt)/F:0;p0?it*I:0)+nt,padAngle:lt};return Y}return s.value=function(u){return arguments.length?(n="function"==typeof u?u:pi(+u),s):n},s.sortValues=function(u){return arguments.length?(r=u,t=null,s):r},s.sort=function(u){return arguments.length?(t=u,r=null,s):t},s.startAngle=function(u){return arguments.length?(i="function"==typeof u?u:pi(+u),s):i},s.endAngle=function(u){return arguments.length?(o="function"==typeof u?u:pi(+u),s):o},s.padAngle=function(u){return arguments.length?(a="function"==typeof u?u:pi(+u),s):a},s}nH.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(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;default:this._context.lineTo(r,t)}}};var iH=U6(OA);function oH(n){this._curve=n}function U6(n){function r(t){return new oH(n(t))}return r._curve=n,r}function $1(n){var r=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(t){return arguments.length?r(U6(t)):r()._curve},n}function aH(){return $1(PA().curve(iH))}function sH(){var n=rH().curve(iH),r=n.curve,t=n.lineX0,i=n.lineX1,o=n.lineY0,a=n.lineY1;return n.angle=n.x,delete n.x,n.startAngle=n.x0,delete n.x0,n.endAngle=n.x1,delete n.x1,n.radius=n.y,delete n.y,n.innerRadius=n.y0,delete n.y0,n.outerRadius=n.y1,delete n.y1,n.lineStartAngle=function(){return $1(t())},delete n.lineX0,n.lineEndAngle=function(){return $1(i())},delete n.lineX1,n.lineInnerRadius=function(){return $1(o())},delete n.lineY0,n.lineOuterRadius=function(){return $1(a())},delete n.lineY1,n.curve=function(s){return arguments.length?r(U6(s)):r()._curve},n}function eS(n,r){return[(r=+r)*Math.cos(n-=Math.PI/2),r*Math.sin(n)]}oH.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(r,t){this._curve.point(t*Math.sin(r),t*-Math.cos(r))}};var H6=Array.prototype.slice;function Ate(n){return n.source}function Dte(n){return n.target}function V6(n){var r=Ate,t=Dte,i=F6,o=B6,a=null;function s(){var u,p=H6.call(arguments),m=r.apply(this,p),b=t.apply(this,p);if(a||(a=u=zu()),n(a,+i.apply(this,(p[0]=m,p)),+o.apply(this,p),+i.apply(this,(p[0]=b,p)),+o.apply(this,p)),u)return a=null,u+""||null}return s.source=function(u){return arguments.length?(r=u,s):r},s.target=function(u){return arguments.length?(t=u,s):t},s.x=function(u){return arguments.length?(i="function"==typeof u?u:pi(+u),s):i},s.y=function(u){return arguments.length?(o="function"==typeof u?u:pi(+u),s):o},s.context=function(u){return arguments.length?(a=null==u?null:u,s):a},s}function Ote(n,r,t,i,o){n.moveTo(r,t),n.bezierCurveTo(r=(r+i)/2,t,r,o,i,o)}function Pte(n,r,t,i,o){n.moveTo(r,t),n.bezierCurveTo(r,t=(t+o)/2,i,t,i,o)}function Ite(n,r,t,i,o){var a=eS(r,t),s=eS(r,t=(t+o)/2),u=eS(i,t),p=eS(i,o);n.moveTo(a[0],a[1]),n.bezierCurveTo(s[0],s[1],u[0],u[1],p[0],p[1])}function Rte(){return V6(Ote)}function Nte(){return V6(Pte)}function Zte(){var n=V6(Ite);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}var q6={draw:function(r,t){var i=Math.sqrt(t/zm);r.moveTo(i,0),r.arc(0,0,i,0,up)}},lH={draw:function(r,t){var i=Math.sqrt(t/5)/2;r.moveTo(-3*i,-i),r.lineTo(-i,-i),r.lineTo(-i,-3*i),r.lineTo(i,-3*i),r.lineTo(i,-i),r.lineTo(3*i,-i),r.lineTo(3*i,i),r.lineTo(i,i),r.lineTo(i,3*i),r.lineTo(-i,3*i),r.lineTo(-i,i),r.lineTo(-3*i,i),r.closePath()}},uH=Math.sqrt(1/3),Lte=2*uH,cH={draw:function(r,t){var i=Math.sqrt(t/Lte),o=i*uH;r.moveTo(0,-i),r.lineTo(o,0),r.lineTo(0,i),r.lineTo(-o,0),r.closePath()}},dH=Math.sin(zm/10)/Math.sin(7*zm/10),Bte=Math.sin(up/10)*dH,Ute=-Math.cos(up/10)*dH,pH={draw:function(r,t){var i=Math.sqrt(.8908130915292852*t),o=Bte*i,a=Ute*i;r.moveTo(0,-i),r.lineTo(o,a);for(var s=1;s<5;++s){var u=up*s/5,p=Math.cos(u),m=Math.sin(u);r.lineTo(m*i,-p*i),r.lineTo(p*o-m*a,m*o+p*a)}r.closePath()}},fH={draw:function(r,t){var i=Math.sqrt(t),o=-i/2;r.rect(o,o,i,i)}},j6=Math.sqrt(3),hH={draw:function(r,t){var i=-Math.sqrt(t/(3*j6));r.moveTo(0,2*i),r.lineTo(-j6*i,-i),r.lineTo(j6*i,-i),r.closePath()}},_u=-.5,yu=Math.sqrt(3)/2,z6=1/Math.sqrt(12),Hte=3*(z6/2+1),mH={draw:function(r,t){var i=Math.sqrt(t/Hte),o=i/2,a=i*z6,s=o,u=i*z6+i,p=-s,m=u;r.moveTo(o,a),r.lineTo(s,u),r.lineTo(p,m),r.lineTo(_u*o-yu*a,yu*o+_u*a),r.lineTo(_u*s-yu*u,yu*s+_u*u),r.lineTo(_u*p-yu*m,yu*p+_u*m),r.lineTo(_u*o+yu*a,_u*a-yu*o),r.lineTo(_u*s+yu*u,_u*u-yu*s),r.lineTo(_u*p+yu*m,_u*m-yu*p),r.closePath()}},Vte=[q6,lH,cH,fH,pH,hH,mH];function qte(){var n=pi(q6),r=pi(64),t=null;function i(){var o;if(t||(t=o=zu()),n.apply(this,arguments).draw(t,+r.apply(this,arguments)),o)return t=null,o+""||null}return i.type=function(o){return arguments.length?(n="function"==typeof o?o:pi(o),i):n},i.size=function(o){return arguments.length?(r="function"==typeof o?o:pi(+o),i):r},i.context=function(o){return arguments.length?(t=null==o?null:o,i):t},i}function Vf(){}function IA(n,r,t){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+r)/6,(n._y0+4*n._y1+t)/6)}function RA(n){this._context=n}function jte(n){return new RA(n)}function vH(n){this._context=n}function zte(n){return new vH(n)}function gH(n){this._context=n}function Wte(n){return new gH(n)}function _H(n,r){this._basis=new RA(n),this._beta=r}RA.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:IA(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(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,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:IA(this,r,t)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}},vH.prototype={areaStart:Vf,areaEnd:Vf,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(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._x2=r,this._y2=t;break;case 1:this._point=2,this._x3=r,this._y3=t;break;case 2:this._point=3,this._x4=r,this._y4=t,this._context.moveTo((this._x0+4*this._x1+r)/6,(this._y0+4*this._y1+t)/6);break;default:IA(this,r,t)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}},gH.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(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+r)/6,o=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(i,o):this._context.moveTo(i,o);break;case 3:this._point=4;default:IA(this,r,t)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}},_H.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var r=this._x,t=this._y,i=r.length-1;if(i>0)for(var m,o=r[0],a=t[0],s=r[i]-o,u=t[i]-a,p=-1;++p<=i;)this._basis.point(this._beta*r[p]+(1-this._beta)*(o+(m=p/i)*s),this._beta*t[p]+(1-this._beta)*(a+m*u));this._x=this._y=null,this._basis.lineEnd()},point:function(r,t){this._x.push(+r),this._y.push(+t)}};var Gte=function n(r){function t(i){return 1===r?new RA(i):new _H(i,r)}return t.beta=function(i){return n(+i)},t}(.85);function NA(n,r,t){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-r),n._y2+n._k*(n._y1-t),n._x2,n._y2)}function W6(n,r){this._context=n,this._k=(1-r)/6}W6.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:NA(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2,this._x1=r,this._y1=t;break;case 2:this._point=3;default:NA(this,r,t)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Yte=function n(r){function t(i){return new W6(i,r)}return t.tension=function(i){return n(+i)},t}(0);function G6(n,r){this._context=n,this._k=(1-r)/6}G6.prototype={areaStart:Vf,areaEnd:Vf,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(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._x3=r,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=t);break;case 2:this._point=3,this._x5=r,this._y5=t;break;default:NA(this,r,t)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Jte=function n(r){function t(i){return new G6(i,r)}return t.tension=function(i){return n(+i)},t}(0);function Y6(n,r){this._context=n,this._k=(1-r)/6}Y6.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(r,t){switch(r=+r,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:NA(this,r,t)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Qte=function n(r){function t(i){return new Y6(i,r)}return t.tension=function(i){return n(+i)},t}(0);function J6(n,r,t){var i=n._x1,o=n._y1,a=n._x2,s=n._y2;if(n._l01_a>Xa){var u=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,p=3*n._l01_a*(n._l01_a+n._l12_a);i=(i*u-n._x0*n._l12_2a+n._x2*n._l01_2a)/p,o=(o*u-n._y0*n._l12_2a+n._y2*n._l01_2a)/p}if(n._l23_a>Xa){var m=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,b=3*n._l23_a*(n._l23_a+n._l12_a);a=(a*m+n._x1*n._l23_2a-r*n._l12_2a)/b,s=(s*m+n._y1*n._l23_2a-t*n._l12_2a)/b}n._context.bezierCurveTo(i,o,a,s,n._x2,n._y2)}function yH(n,r){this._context=n,this._alpha=r}yH.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(r,t){if(r=+r,t=+t,this._point){var i=this._x2-r,o=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;break;case 2:this._point=3;default:J6(this,r,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=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Kte=function n(r){function t(i){return r?new yH(i,r):new W6(i,0)}return t.alpha=function(i){return n(+i)},t}(.5);function bH(n,r){this._context=n,this._alpha=r}bH.prototype={areaStart:Vf,areaEnd:Vf,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(r,t){if(r=+r,t=+t,this._point){var i=this._x2-r,o=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=r,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=t);break;case 2:this._point=3,this._x5=r,this._y5=t;break;default:J6(this,r,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=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Xte=function n(r){function t(i){return r?new bH(i,r):new G6(i,0)}return t.alpha=function(i){return n(+i)},t}(.5);function CH(n,r){this._context=n,this._alpha=r}CH.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(r,t){if(r=+r,t=+t,this._point){var i=this._x2-r,o=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,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:J6(this,r,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=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var $te=function n(r){function t(i){return r?new CH(i,r):new Y6(i,0)}return t.alpha=function(i){return n(+i)},t}(.5);function SH(n){this._context=n}function ene(n){return new SH(n)}function TH(n){return n<0?-1:1}function xH(n,r,t){var i=n._x1-n._x0,o=r-n._x1,a=(n._y1-n._y0)/(i||o<0&&-0),s=(t-n._y1)/(o||i<0&&-0),u=(a*o+s*i)/(i+o);return(TH(a)+TH(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(u))||0}function wH(n,r){var t=n._x1-n._x0;return t?(3*(n._y1-n._y0)/t-r)/2:r}function Q6(n,r,t){var i=n._x0,a=n._x1,s=n._y1,u=(a-i)/3;n._context.bezierCurveTo(i+u,n._y0+u*r,a-u,s-u*t,a,s)}function ZA(n){this._context=n}function kH(n){this._context=new EH(n)}function EH(n){this._context=n}function tne(n){return new ZA(n)}function nne(n){return new kH(n)}function MH(n){this._context=n}function AH(n){var r,i,t=n.length-1,o=new Array(t),a=new Array(t),s=new Array(t);for(o[0]=0,a[0]=2,s[0]=n[0]+2*n[1],r=1;r=0;--r)o[r]=(s[r]-o[r+1])/a[r];for(a[t-1]=(n[t]+o[t-1])/2,r=0;r1)for(var i,o,s,t=1,a=n[r[0]],u=a.length;t=0;)t[r]=r;return t}function sne(n,r){return n[r]}function lne(){var n=pi([]),r=B_,t=F_,i=sne;function o(a){var u,I,s=n.apply(this,arguments),p=a.length,m=s.length,b=new Array(m);for(u=0;u0){for(var t,i,s,o=0,a=n[0].length;o1)for(var t,o,a,s,u,p,i=0,m=n[r[0]].length;i=0?(o[0]=s,o[1]=s+=a):a<0?(o[1]=u,o[0]=u+=a):o[0]=s}function dne(n,r){if((o=n.length)>0){for(var o,t=0,i=n[r[0]],a=i.length;t0&&(a=(o=n[r[0]]).length)>0){for(var o,a,s,t=0,i=1;i=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(r,t);else{var i=this._x*(1-this._t)+r*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,t)}}this._x=r,this._y=t}},K6.prototype={constructor:K6,insert:function(r,t){var i,o,a;if(r){if(t.P=r,t.N=r.N,r.N&&(r.N.P=t),r.N=t,r.R){for(r=r.R;r.L;)r=r.L;r.L=t}else r.R=t;i=r}else this._?(r=IH(this._),t.P=null,t.N=r,r.P=r.L=t,i=r):(t.P=t.N=null,this._=t,i=null);for(t.L=t.R=null,t.U=i,t.C=!0,r=t;i&&i.C;)i===(o=i.U).L?(a=o.R)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.R&&(tS(this,i),i=(r=i).U),i.C=!1,o.C=!0,nS(this,o)):(a=o.L)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.L&&(nS(this,i),i=(r=i).U),i.C=!1,o.C=!0,tS(this,o)),i=r.U;this._.C=!1},remove:function(r){r.N&&(r.N.P=r.P),r.P&&(r.P.N=r.N),r.N=r.P=null;var i,s,u,t=r.U,o=r.L,a=r.R;if(s=o?a?IH(a):o:a,t?t.L===r?t.L=s:t.R=s:this._=s,o&&a?(u=s.C,s.C=r.C,s.L=o,o.U=s,s!==a?(t=s.U,s.U=r.U,t.L=r=s.R,s.R=a,a.U=s):(s.U=t,t=s,r=s.R)):(u=r.C,r=s),r&&(r.U=t),!u){if(r&&r.C)return void(r.C=!1);do{if(r===this._)break;if(r===t.L){if((i=t.R).C&&(i.C=!1,t.C=!0,tS(this,t),i=t.R),i.L&&i.L.C||i.R&&i.R.C){(!i.R||!i.R.C)&&(i.L.C=!1,i.C=!0,nS(this,i),i=t.R),i.C=t.C,t.C=i.R.C=!1,tS(this,t),r=this._;break}}else if((i=t.L).C&&(i.C=!1,t.C=!0,nS(this,t),i=t.L),i.L&&i.L.C||i.R&&i.R.C){(!i.L||!i.L.C)&&(i.R.C=!1,i.C=!0,tS(this,i),i=t.L),i.C=t.C,t.C=i.L.C=!1,nS(this,t),r=this._;break}i.C=!0,r=t,t=t.U}while(!r.C);r&&(r.C=!1)}}};var RH=K6;function rS(n,r,t,i){var o=[null,null],a=us.push(o)-1;return o.left=n,o.right=r,t&&BA(o,n,r,t),i&&BA(o,r,n,i),ql[n.index].halfedges.push(a),ql[r.index].halfedges.push(a),o}function iS(n,r,t){var i=[r,t];return i.left=n,i}function BA(n,r,t,i){n[0]||n[1]?n.left===t?n[1]=i:n[0]=i:(n[0]=i,n.left=r,n.right=t)}function yne(n,r,t,i,o){var te,a=n[0],s=n[1],u=a[0],p=a[1],I=0,F=1,G=s[0]-u,Y=s[1]-p;if(te=r-u,G||!(te>0)){if(te/=G,G<0){if(te0){if(te>F)return;te>I&&(I=te)}if(te=i-u,G||!(te<0)){if(te/=G,G<0){if(te>F)return;te>I&&(I=te)}else if(G>0){if(te0)){if(te/=Y,Y<0){if(te0){if(te>F)return;te>I&&(I=te)}if(te=o-p,Y||!(te<0)){if(te/=Y,Y<0){if(te>F)return;te>I&&(I=te)}else if(Y>0){if(te0)&&!(F<1)||(I>0&&(n[0]=[u+I*G,p+I*Y]),F<1&&(n[1]=[u+F*G,p+F*Y])),!0}}}}}function bne(n,r,t,i,o){var a=n[1];if(a)return!0;var te,ce,s=n[0],u=n.left,p=n.right,m=u[0],b=u[1],I=p[0],F=p[1],G=(m+I)/2;if(F===b){if(G=i)return;if(m>I){if(s){if(s[1]>=o)return}else s=[G,t];a=[G,o]}else{if(s){if(s[1]1)if(m>I){if(s){if(s[1]>=o)return}else s=[(t-ce)/te,t];a=[(o-ce)/te,o]}else{if(s){if(s[1]=i)return}else s=[r,te*r+ce];a=[i,te*i+ce]}else{if(s){if(s[0]=-Pne)){var G=p*p+m*m,Y=b*b+I*I,te=(I*G-m*Y)/F,ce=(p*Y-b*G)/F,xe=ZH.pop()||new Ene;xe.arc=n,xe.site=o,xe.x=te+s,xe.y=(xe.cy=ce+u)+Math.sqrt(te*te+ce*ce),n.circle=xe;for(var lt=null,nt=oS._;nt;)if(xe.yeo)u=u.L;else{if(!((s=r-One(u,t))>eo)){a>-eo?(i=u.P,o=u):s>-eo?(i=u,o=u.N):i=o=u;break}if(!u.R){i=u;break}u=u.R}!function(n){ql[n.index]={site:n,halfedges:[]}}(n);var p=FH(n);if(V_.insert(i,p),i||o){if(i===o)return H_(i),o=FH(i.site),V_.insert(p,o),p.edge=o.edge=rS(i.site,p.site),U_(i),void U_(o);if(!o)return void(p.edge=rS(i.site,p.site));H_(i),H_(o);var m=i.site,b=m[0],I=m[1],F=n[0]-b,G=n[1]-I,Y=o.site,te=Y[0]-b,ce=Y[1]-I,xe=2*(F*ce-G*te),lt=F*F+G*G,nt=te*te+ce*ce,it=[(ce*lt-G*nt)/xe+b,(F*nt-te*lt)/xe+I];BA(o.edge,m,Y,it),p.edge=rS(m,n,null,it),o.edge=rS(n,Y,null,it),U_(i),U_(o)}}function BH(n,r){var t=n.site,i=t[0],o=t[1],a=o-r;if(!a)return i;var s=n.P;if(!s)return-1/0;var u=(t=s.site)[0],p=t[1],m=p-r;if(!m)return u;var b=u-i,I=1/a-1/m,F=b/m;return I?(-F+Math.sqrt(F*F-2*I*(b*b/(-2*m)-p+m/2+o-a/2)))/I+i:(i+u)/2}function One(n,r){var t=n.N;if(t)return BH(t,r);var i=n.site;return i[1]===r?i[0]:1/0}var V_,ql,oS,us,eo=1e-6,Pne=1e-12;function Ine(n,r,t){return(n[0]-t[0])*(r[1]-n[1])-(n[0]-r[0])*(t[1]-n[1])}function Rne(n,r){return r[1]-n[1]||r[0]-n[0]}function eZ(n,r){var i,o,a,t=n.sort(Rne).pop();for(us=[],ql=new Array(n.length),V_=new RH,oS=new RH;;)if(a=X6,t&&(!a||t[1]eo||Math.abs(a[0][1]-a[1][1])>eo)||delete us[o]})(s,u,p,m),function(n,r,t,i){var a,s,u,p,m,b,I,F,G,Y,te,ce,o=ql.length,xe=!0;for(a=0;aeo||Math.abs(ce-G)>eo)&&(m.splice(p,0,us.push(iS(u,Y,Math.abs(te-n)eo?[n,Math.abs(F-n)eo?[Math.abs(G-i)eo?[t,Math.abs(F-t)eo?[Math.abs(G-r)=u)return null;var m=r-p.site[0],b=t-p.site[1],I=m*m+b*b;do{p=o.cells[a=s],s=null,p.halfedges.forEach(function(F){var G=o.edges[F],Y=G.left;if(Y!==p.site&&Y||(Y=G.right)){var te=r-Y[0],ce=t-Y[1],xe=te*te+ce*ce;xei?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function VH(){var b,I,n=Lne,r=Fne,t=Hne,i=Bne,o=Une,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],u=250,p=H4,m=Xd("start","zoom","end"),F=500,Y=0;function te(st){st.property("__zoom",HH).on("wheel.zoom",Qe).on("mousedown.zoom",tt).on("dblclick.zoom",Ot).filter(o).on("touchstart.zoom",xt).on("touchmove.zoom",hn).on("touchend.zoom touchcancel.zoom",Jt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function ce(st,Dt){return(Dt=Math.max(a[0],Math.min(a[1],Dt)))===st.k?st:new cp(Dt,st.x,st.y)}function xe(st,Dt,gn){var fn=Dt[0]-gn[0]*st.k,kn=Dt[1]-gn[1]*st.k;return fn===st.x&&kn===st.y?st:new cp(st.k,fn,kn)}function lt(st){return[(+st[0][0]+ +st[1][0])/2,(+st[0][1]+ +st[1][1])/2]}function nt(st,Dt,gn){st.on("start.zoom",function(){it(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){it(this,arguments).end()}).tween("zoom",function(){var fn=this,kn=arguments,Ln=it(fn,kn),or=r.apply(fn,kn),Sr=gn||lt(or),Yr=Math.max(or[1][0]-or[0][0],or[1][1]-or[0][1]),cr=fn.__zoom,$r="function"==typeof Dt?Dt.apply(fn,kn):Dt,li=p(cr.invert(Sr).concat(Yr/cr.k),$r.invert(Sr).concat(Yr/$r.k));return function(Tr){if(1===Tr)Tr=$r;else{var Pi=li(Tr),Eo=Yr/Pi[2];Tr=new cp(Eo,Sr[0]-Pi[0]*Eo,Sr[1]-Pi[1]*Eo)}Ln.zoom(null,Tr)}})}function it(st,Dt,gn){return!gn&&st.__zooming||new ht(st,Dt)}function ht(st,Dt){this.that=st,this.args=Dt,this.active=0,this.extent=r.apply(st,Dt),this.taps=0}function Qe(){if(n.apply(this,arguments)){var st=it(this,arguments),Dt=this.__zoom,gn=Math.max(a[0],Math.min(a[1],Dt.k*Math.pow(2,i.apply(this,arguments)))),fn=el(this);Dt.k!==gn&&(st.wheel?((st.mouse[0][0]!==fn[0]||st.mouse[0][1]!==fn[1])&&(st.mouse[1]=Dt.invert(st.mouse[0]=fn)),clearTimeout(st.wheel)):(st.mouse=[fn,Dt.invert(fn)],Dm(this),st.start()),aS(),st.wheel=setTimeout(kn,150),st.zoom("mouse",t(xe(ce(Dt,gn),st.mouse[0],st.mouse[1]),st.extent,s)))}function kn(){st.wheel=null,st.end()}}function tt(){if(!I&&n.apply(this,arguments)){var st=it(this,arguments,!0),Dt=ei(Dn.view).on("mousemove.zoom",Ln,!0).on("mouseup.zoom",or,!0),gn=el(this),fn=Dn.clientX,kn=Dn.clientY;f_(Dn.view),tZ(),st.mouse=[gn,this.__zoom.invert(gn)],Dm(this),st.start()}function Ln(){if(aS(),!st.moved){var Sr=Dn.clientX-fn,Yr=Dn.clientY-kn;st.moved=Sr*Sr+Yr*Yr>Y}st.zoom("mouse",t(xe(st.that.__zoom,st.mouse[0]=el(st.that),st.mouse[1]),st.extent,s))}function or(){Dt.on("mousemove.zoom mouseup.zoom",null),Zl(Dn.view,st.moved),aS(),st.end()}}function Ot(){if(n.apply(this,arguments)){var st=this.__zoom,Dt=el(this),gn=st.invert(Dt),fn=st.k*(Dn.shiftKey?.5:2),kn=t(xe(ce(st,fn),Dt,gn),r.apply(this,arguments),s);aS(),u>0?ei(this).transition().duration(u).call(nt,kn,Dt):ei(this).call(te.transform,kn)}}function xt(){if(n.apply(this,arguments)){var fn,kn,Ln,or,st=Dn.touches,Dt=st.length,gn=it(this,arguments,Dn.changedTouches.length===Dt);for(tZ(),kn=0;kn0?a.animate(a._lastPercent,a.options.percent):a.draw(a.options.percent),a._lastPercent=a.options.percent)):(a.options.animation&&a.options.animationDuration>0?a.animate(a._lastPercent,a.options.percent):a.draw(a.options.percent),a._lastPercent=a.options.percent)},this.polarToCartesian=function(s,u,p,m){var b=m*Math.PI/180;return{x:s+Math.sin(b)*p,y:u-Math.cos(b)*p}},this.draw=function(s){var u=(s=void 0===s?a.options.percent:Math.abs(s))>100?100:s,p=2*a.options.radius+2*a.options.outerStrokeWidth;a.options.showBackground&&(p+=2*a.options.backgroundStrokeWidth+a.max(0,2*a.options.backgroundPadding));var F,G,m={x:p/2,y:p/2},b={x:m.x,y:m.y-a.options.radius},I=a.polarToCartesian(m.x,m.y,a.options.radius,360*(a.options.clockwise?u:100-u)/100);if(100===u&&(I.x=I.x+(a.options.clockwise?-.01:.01)),u>50){var te=(0,C.Z)(a.options.clockwise?[1,1]:[1,0],2);F=te[0],G=te[1]}else{var xe=(0,C.Z)(a.options.clockwise?[0,1]:[0,0],2);F=xe[0],G=xe[1]}var lt=a.options.animateTitle?s:a.options.percent,nt=lt>a.options.maxPercent?"".concat(a.options.maxPercent.toFixed(a.options.toFixed),"+"):lt.toFixed(a.options.toFixed),it=a.options.animateSubtitle?s:a.options.percent,ht={x:m.x,y:m.y,textAnchor:"middle",color:a.options.titleColor,fontSize:a.options.titleFontSize,fontWeight:a.options.titleFontWeight,texts:[],tspans:[]};if(void 0!==a.options.titleFormat&&"Function"===a.options.titleFormat.constructor.name){var Qe=a.options.titleFormat(lt);Qe instanceof Array?ht.texts=(0,y.Z)(Qe):ht.texts.push(Qe.toString())}else"auto"===a.options.title?ht.texts.push(nt):a.options.title instanceof Array?ht.texts=(0,y.Z)(a.options.title):ht.texts.push(a.options.title.toString());var tt={x:m.x,y:m.y,textAnchor:"middle",color:a.options.subtitleColor,fontSize:a.options.subtitleFontSize,fontWeight:a.options.subtitleFontWeight,texts:[],tspans:[]};if(void 0!==a.options.subtitleFormat&&"Function"===a.options.subtitleFormat.constructor.name){var Ot=a.options.subtitleFormat(it);Ot instanceof Array?tt.texts=(0,y.Z)(Ot):tt.texts.push(Ot.toString())}else a.options.subtitle instanceof Array?tt.texts=(0,y.Z)(a.options.subtitle):tt.texts.push(a.options.subtitle.toString());var xt={text:"".concat(a.options.units),fontSize:a.options.unitsFontSize,fontWeight:a.options.unitsFontWeight,color:a.options.unitsColor},hn=0,Jt=1;if(a.options.showTitle&&(hn+=ht.texts.length),a.options.showSubtitle&&(hn+=tt.texts.length),a.options.showTitle){var Dt,st=(0,_.Z)(ht.texts);try{for(st.s();!(Dt=st.n()).done;)ht.tspans.push({span:Dt.value,dy:a.getRelativeY(Jt,hn)}),Jt++}catch(or){st.e(or)}finally{st.f()}}if(a.options.showSubtitle){var kn,fn=(0,_.Z)(tt.texts);try{for(fn.s();!(kn=fn.n()).done;)tt.tspans.push({span:kn.value,dy:a.getRelativeY(Jt,hn)}),Jt++}catch(or){fn.e(or)}finally{fn.f()}}null===a._gradientUUID&&(a._gradientUUID=a.uuid()),a.svg={viewBox:"0 0 ".concat(p," ").concat(p),width:a.options.responsive?"100%":p,height:a.options.responsive?"100%":p,backgroundCircle:{cx:m.x,cy:m.y,r:a.options.radius+a.options.outerStrokeWidth/2+a.options.backgroundPadding,fill:a.options.backgroundColor,fillOpacity:a.options.backgroundOpacity,stroke:a.options.backgroundStroke,strokeWidth:a.options.backgroundStrokeWidth},path:{d:"M ".concat(b.x," ").concat(b.y,"\n A ").concat(a.options.radius," ").concat(a.options.radius," 0 ").concat(F," ").concat(G," ").concat(I.x," ").concat(I.y),stroke:a.options.outerStrokeColor,strokeWidth:a.options.outerStrokeWidth,strokeLinecap:a.options.outerStrokeLinecap,fill:"none"},circle:{cx:m.x,cy:m.y,r:a.options.radius-a.options.space-a.options.outerStrokeWidth/2-a.options.innerStrokeWidth/2,fill:"none",stroke:a.options.innerStrokeColor,strokeWidth:a.options.innerStrokeWidth},title:ht,units:xt,subtitle:tt,image:{x:m.x-a.options.imageWidth/2,y:m.y-a.options.imageHeight/2,src:a.options.imageSrc,width:a.options.imageWidth,height:a.options.imageHeight},outerLinearGradient:{id:"outer-linear-"+a._gradientUUID,colorStop1:a.options.outerStrokeColor,colorStop2:"transparent"===a.options.outerStrokeGradientStopColor?"#FFF":a.options.outerStrokeGradientStopColor},radialGradient:{id:"radial-"+a._gradientUUID,colorStop1:a.options.backgroundColor,colorStop2:"transparent"===a.options.backgroundGradientStopColor?"#FFF":a.options.backgroundGradientStopColor}}},this.getAnimationParameters=function(s,u){var m,b,I,F=a.options.startFromZero||s<0?0:s,G=u<0?0:a.min(u,a.options.maxPercent),Y=Math.abs(Math.round(G-F));return Y>=100?(m=100,b=a.options.animateTitle||a.options.animateSubtitle?Math.round(Y/m):1):(m=Y,b=1),(I=Math.round(a.options.animationDuration/m))<10&&(m=a.options.animationDuration/(I=10),b=!a.options.animateTitle&&!a.options.animateSubtitle&&Y>100?Math.round(100/m):Math.round(Y/m)),b<1&&(b=1),{times:m,step:b,interval:I}},this.animate=function(s,u){a._timerSubscription&&!a._timerSubscription.closed&&a._timerSubscription.unsubscribe();var p=a.options.startFromZero?0:s,m=u,b=a.getAnimationParameters(p,m),I=b.step,F=b.interval,G=p;a._timerSubscription=p=100?(a.draw(m),a._timerSubscription.unsubscribe()):a.draw(G):(a.draw(m),a._timerSubscription.unsubscribe())}):(0,sS.H)(0,F).subscribe(function(){(G-=I)>=m?!a.options.animateTitle&&!a.options.animateSubtitle&&m>=100?(a.draw(m),a._timerSubscription.unsubscribe()):a.draw(G):(a.draw(m),a._timerSubscription.unsubscribe())})},this.emitClickEvent=function(s){a.options.renderOnClick&&a.animate(0,a.options.percent),a.onClick.emit(s)},this.applyOptions=function(){for(var s=0,u=Object.keys(a.options);s0?+a.options.percent:0,a.options.maxPercent=Math.abs(+a.options.maxPercent),a.options.animationDuration=Math.abs(a.options.animationDuration),a.options.outerStrokeWidth=Math.abs(+a.options.outerStrokeWidth),a.options.innerStrokeWidth=Math.abs(+a.options.innerStrokeWidth),a.options.backgroundPadding=+a.options.backgroundPadding},this.getRelativeY=function(s,u){return(1*(s-u/2)-.18).toFixed(2)+"em"},this.min=function(s,u){return su?s:u},this.uuid=function(){var s=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(p){var m=(s+16*Math.random())%16|0;return s=Math.floor(s/16),("x"==p?m:3&m|8).toString(16)})},this.findSvgElement=function(){if(null===this.svgElement){var s=this.elRef.nativeElement.getElementsByTagName("svg");s.length>0&&(this.svgElement=s[0])}},this.checkViewport=function(){a.findSvgElement();var s=a.isInViewport;a.isInViewport=a.isElementInViewport(a.svgElement),s!==a.isInViewport&&a.onViewportChanged.emit({oldValue:s,newValue:a.isInViewport})},this.onScroll=function(s){a.checkViewport()},this.loadEventsForLazyMode=function(){if(a.options.lazy){a.document.addEventListener("scroll",a.onScroll,!0),a.window.addEventListener("resize",a.onScroll,!0),null===a._viewportChangedSubscriber&&(a._viewportChangedSubscriber=a.onViewportChanged.subscribe(function(u){u.newValue&&a.render()}));var s=(0,sS.H)(0,50).subscribe(function(){null===a.svgElement?a.checkViewport():s.unsubscribe()})}},this.unloadEventsForLazyMode=function(){a.document.removeEventListener("scroll",a.onScroll,!0),a.window.removeEventListener("resize",a.onScroll,!0),null!==a._viewportChangedSubscriber&&(a._viewportChangedSubscriber.unsubscribe(),a._viewportChangedSubscriber=null)},this.document=o,this.window=this.document.defaultView,Object.assign(this.options,t),Object.assign(this.defaultOptions,t)}return(0,T.Z)(r,[{key:"isDrawing",value:function(){return this._timerSubscription&&!this._timerSubscription.closed}},{key:"isElementInViewport",value:function(i){if(null==i)return!1;var s,o=i.getBoundingClientRect(),a=i.parentNode;do{if(s=a.getBoundingClientRect(),o.top>=s.bottom||o.bottom<=s.top||o.left>=s.right||o.right<=s.left)return!1;a=a.parentNode}while(a!=this.document.body);return!(o.top>=(this.window.innerHeight||this.document.documentElement.clientHeight)||o.bottom<=0||o.left>=(this.window.innerWidth||this.document.documentElement.clientWidth)||o.right<=0)}},{key:"ngOnInit",value:function(){this.loadEventsForLazyMode()}},{key:"ngOnDestroy",value:function(){this.unloadEventsForLazyMode()}},{key:"ngOnChanges",value:function(i){this.render(),"lazy"in i&&(i.lazy.currentValue?this.loadEventsForLazyMode():this.unloadEventsForLazyMode())}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(VA),e.Y36(e.SBq),e.Y36(Mt.K0))},n.\u0275cmp=e.Xpm({type:n,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:[e.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(t,i){1&t&&e.YNc(0,ore,9,11,"svg",0),2&t&&e.Q6J("ngIf",i.svg)},directives:[Mt.O5,Mt.sg],encapsulation:2}),n}(),sre=function(){var n=function(){function r(){(0,g.Z)(this,r)}return(0,T.Z)(r,null,[{key:"forRoot",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[{provide:VA,useValue:i}]}}}]),r}();return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Mt.ez]]}),n}(),nZ=function(){function n(r){(0,g.Z)(this,n),this.rawFile=r;var i=function(n){return!(!n||!(n.nodeName||n.prop&&n.attr&&n.find))}(r)?r.value:r;this["_createFrom"+("string"==typeof i?"FakePath":"Object")](i)}return(0,T.Z)(n,[{key:"_createFromFakePath",value:function(t){this.lastModifiedDate=void 0,this.size=void 0,this.type="like/"+t.slice(t.lastIndexOf(".")+1).toLowerCase(),this.name=t.slice(t.lastIndexOf("/")+t.lastIndexOf("\\")+2)}},{key:"_createFromObject",value:function(t){this.size=t.size,this.type=t.type,this.name=t.name}}]),n}(),ure=function(){function n(r,t,i){(0,g.Z)(this,n),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=r,this.some=t,this.options=i,this.file=new nZ(t),this._file=t,r.options&&(this.method=r.options.method||"POST",this.alias=r.options.itemAlias||"file"),this.url=r.options.url}return(0,T.Z)(n,[{key:"upload",value:function(){try{this.uploader.uploadItem(this)}catch(t){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(t){return{form:t}}},{key:"onProgress",value:function(t){return{progress:t}}},{key:"onSuccess",value:function(t,i,o){return{response:t,status:i,headers:o}}},{key:"onError",value:function(t,i,o){return{response:t,status:i,headers:o}}},{key:"onCancel",value:function(t,i,o){return{response:t,status:i,headers:o}}},{key:"onComplete",value:function(t,i,o){return{response:t,status:i,headers:o}}},{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(t){this.onBuildForm(t)}},{key:"_onProgress",value:function(t){this.progress=t,this.onProgress(t)}},{key:"_onSuccess",value:function(t,i,o){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(t,i,o)}},{key:"_onError",value:function(t,i,o){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(t,i,o)}},{key:"_onCancel",value:function(t,i,o){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(t,i,o)}},{key:"_onComplete",value:function(t,i,o){this.onComplete(t,i,o),this.uploader.options.removeAfterUpload&&this.remove()}},{key:"_prepareToUploading",value:function(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0}}]),n}(),cre=function(){var n=function(){function r(){(0,g.Z)(this,r)}return(0,T.Z)(r,null,[{key:"getMimeClass",value:function(i){var o="application";return-1!==this.mime_psd.indexOf(i.type)||i.type.match("image.*")?o="image":i.type.match("video.*")?o="video":i.type.match("audio.*")?o="audio":"application/pdf"===i.type?o="pdf":-1!==this.mime_compress.indexOf(i.type)?o="compress":-1!==this.mime_doc.indexOf(i.type)?o="doc":-1!==this.mime_xsl.indexOf(i.type)?o="xls":-1!==this.mime_ppt.indexOf(i.type)&&(o="ppt"),"application"===o&&(o=this.fileTypeDetection(i.name)),o}},{key:"fileTypeDetection",value:function(i){var o={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"},a=i.split(".");if(a.length<2)return"application";var s=a[a.length-1].toLowerCase();return void 0===o[s]?"application":o[s]}}]),r}();return n.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"],n.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"],n.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"],n.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],n.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"],n}(),Wm=function(){function n(r){(0,g.Z)(this,n),this.isUploading=!1,this.queue=[],this.progress=0,this._nextIndex=0,this.options={autoUpload:!1,isHTML5:!0,filters:[],removeAfterUpload:!1,disableMultipart:!1,formatDataFunction:function(i){return i._file},formatDataFunctionIsAsync:!1},this.setOptions(r),this.response=new e.vpe}return(0,T.Z)(n,[{key:"setOptions",value:function(t){this.options=Object.assign(this.options,t),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 i=0;ithis.options.maxFileSize)}},{key:"_fileTypeFilter",value:function(t){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(cre.getMimeClass(t)))}},{key:"_onErrorItem",value:function(t,i,o,a){t._onError(i,o,a),this.onErrorItem(t,i,o,a)}},{key:"_onCompleteItem",value:function(t,i,o,a){t._onComplete(i,o,a),this.onCompleteItem(t,i,o,a);var s=this.getReadyItems()[0];this.isUploading=!1,s?s.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())}},{key:"_headersGetter",value:function(t){return function(i){return i?t[i.toLowerCase()]||void 0:t}}},{key:"_xhrTransport",value:function(t){var s,i=this,o=this,a=t._xhr=new XMLHttpRequest;if(this._onBeforeUploadItem(t),"number"!=typeof t._file.size)throw new TypeError("The file specified is no longer valid");if(this.options.disableMultipart)s=this.options.formatDataFunction(t);else{s=new FormData,this._onBuildItemForm(t,s);var u=function(){return s.append(t.alias,t._file,t.file.name)};this.options.parametersBeforeFiles||u(),void 0!==this.options.additionalParameter&&Object.keys(this.options.additionalParameter).forEach(function(Y){var te=i.options.additionalParameter[Y];"string"==typeof te&&te.indexOf("{{file_name}}")>=0&&(te=te.replace("{{file_name}}",t.file.name)),s.append(Y,te)}),this.options.parametersBeforeFiles&&u()}if(a.upload.onprogress=function(Y){var te=Math.round(Y.lengthComputable?100*Y.loaded/Y.total:0);i._onProgressItem(t,te)},a.onload=function(){var Y=i._parseHeaders(a.getAllResponseHeaders()),te=i._transformResponse(a.response,Y),ce=i._isSuccessCode(a.status)?"Success":"Error";i["_on"+ce+"Item"](t,te,a.status,Y),i._onCompleteItem(t,te,a.status,Y)},a.onerror=function(){var Y=i._parseHeaders(a.getAllResponseHeaders()),te=i._transformResponse(a.response,Y);i._onErrorItem(t,te,a.status,Y),i._onCompleteItem(t,te,a.status,Y)},a.onabort=function(){var Y=i._parseHeaders(a.getAllResponseHeaders()),te=i._transformResponse(a.response,Y);i._onCancelItem(t,te,a.status,Y),i._onCompleteItem(t,te,a.status,Y)},a.open(t.method,t.url,!0),a.withCredentials=t.withCredentials,this.options.headers){var m,p=(0,_.Z)(this.options.headers);try{for(p.s();!(m=p.n()).done;){var b=m.value;a.setRequestHeader(b.name,b.value)}}catch(Y){p.e(Y)}finally{p.f()}}if(t.headers.length){var F,I=(0,_.Z)(t.headers);try{for(I.s();!(F=I.n()).done;){var G=F.value;a.setRequestHeader(G.name,G.value)}}catch(Y){I.e(Y)}finally{I.f()}}this.authToken&&a.setRequestHeader(this.authTokenHeader,this.authToken),a.onreadystatechange=function(){a.readyState==XMLHttpRequest.DONE&&o.response.emit(a.responseText)},this.options.formatDataFunctionIsAsync?s.then(function(Y){return a.send(JSON.stringify(Y))}):a.send(s),this._render()}},{key:"_getTotalProgress",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.options.removeAfterUpload)return t;var i=this.getNotUploadedItems().length,o=i?this.queue.length-i:this.queue.length,a=100/this.queue.length,s=t*a/100;return Math.round(o*a+s)}},{key:"_getFilters",value:function(t){if(!t)return this.options.filters;if(Array.isArray(t))return t;if("string"==typeof t){var i=t.match(/[^\s,]+/g);return this.options.filters.filter(function(o){return-1!==i.indexOf(o.name)})}return this.options.filters}},{key:"_render",value:function(){}},{key:"_queueLimitFilter",value:function(){return void 0===this.options.queueLimit||this.queue.length=200&&t<300||304===t}},{key:"_transformResponse",value:function(t,i){return t}},{key:"_parseHeaders",value:function(t){var o,a,s,i={};return t&&t.split("\n").map(function(u){s=u.indexOf(":"),o=u.slice(0,s).trim().toLowerCase(),a=u.slice(s+1).trim(),o&&(i[o]=i[o]?i[o]+", "+a:a)}),i}},{key:"_onWhenAddingFileFailed",value:function(t,i,o){this.onWhenAddingFileFailed(t,i,o)}},{key:"_onAfterAddingFile",value:function(t){this.onAfterAddingFile(t)}},{key:"_onAfterAddingAll",value:function(t){this.onAfterAddingAll(t)}},{key:"_onBeforeUploadItem",value:function(t){t._onBeforeUpload(),this.onBeforeUploadItem(t)}},{key:"_onBuildItemForm",value:function(t,i){t._onBuildForm(i),this.onBuildItemForm(t,i)}},{key:"_onProgressItem",value:function(t,i){var o=this._getTotalProgress(i);this.progress=o,t._onProgress(i),this.onProgressItem(t,i),this.onProgressAll(o),this._render()}},{key:"_onSuccessItem",value:function(t,i,o,a){t._onSuccess(i,o,a),this.onSuccessItem(t,i,o,a)}},{key:"_onCancelItem",value:function(t,i,o,a){t._onCancel(i,o,a),this.onCancelItem(t,i,o,a)}}]),n}(),lS=function(){var n=function(){function r(t){(0,g.Z)(this,r),this.onFileSelected=new e.vpe,this.element=t}return(0,T.Z)(r,[{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 i=this.element.nativeElement.files,o=this.getOptions(),a=this.getFilters();this.uploader.addToQueue(i,o,a),this.onFileSelected.emit(i),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","ng2FileSelect",""]],hostBindings:function(t,i){1&t&&e.NdJ("change",function(){return i.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}}),n}(),pre=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Mt.ez]]}),n}(),rZ=function(){function n(){}return Object.defineProperty(n.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(n.prototype,"isElectronApp",{get:function(){return!!window.navigator.userAgent.match(/Electron/)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"childProcess",{get:function(){return this.child_process?this.child_process:null},enumerable:!0,configurable:!0}),n}(),fre=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i])},function(r,t){function i(){this.constructor=r}n(r,t),r.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),hre=function(n){function r(){return n.call(this)||this}return fre(r,n),r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=e.Yz7({token:r,factory:function(i){return r.\u0275fac(i)}}),r}(rZ),mre=function(){function n(){}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[{provide:rZ,useClass:hre}]}),n}(),$a=function(){function n(){(0,g.Z)(this,n)}return(0,T.Z)(n,[{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}}]),n}(),vre=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.call(this)}return i}($a);return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),gre=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[{provide:$a,useClass:vre}]}),n}(),uS=f(88009),_re=f(64646),qH=f(60131),iZ=f(4499),Gm=f(93487),yre=f(39887),jH=f(31927),qf=f(13426),cS=f(38575),bre=f(99583),q_=f(64233),Cre=f(26575),zH=f(59803),oZ=f(65890),dp=function n(r,t){(0,g.Z)(this,n),this.id=r,this.url=t},qA=function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,g.Z)(this,t),(a=r.call(this,i,o)).navigationTrigger=s,a.restoredState=u,a}return(0,T.Z)(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(dp),Ym=function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(i,o,a){var s;return(0,g.Z)(this,t),(s=r.call(this,i,o)).urlAfterRedirects=a,s}return(0,T.Z)(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(dp),aZ=function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(i,o,a){var s;return(0,g.Z)(this,t),(s=r.call(this,i,o)).reason=a,s}return(0,T.Z)(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(dp),WH=function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(i,o,a){var s;return(0,g.Z)(this,t),(s=r.call(this,i,o)).error=a,s}return(0,T.Z)(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(dp),Sre=function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(i,o,a,s){var u;return(0,g.Z)(this,t),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u}return(0,T.Z)(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(dp),Tre=function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(i,o,a,s){var u;return(0,g.Z)(this,t),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u}return(0,T.Z)(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(dp),xre=function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(i,o,a,s,u){var p;return(0,g.Z)(this,t),(p=r.call(this,i,o)).urlAfterRedirects=a,p.state=s,p.shouldActivate=u,p}return(0,T.Z)(t,[{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,")")}}]),t}(dp),wre=function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(i,o,a,s){var u;return(0,g.Z)(this,t),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u}return(0,T.Z)(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(dp),kre=function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(i,o,a,s){var u;return(0,g.Z)(this,t),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u}return(0,T.Z)(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(dp),GH=function(){function n(r){(0,g.Z)(this,n),this.route=r}return(0,T.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),n}(),YH=function(){function n(r){(0,g.Z)(this,n),this.route=r}return(0,T.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),n}(),Ere=function(){function n(r){(0,g.Z)(this,n),this.snapshot=r}return(0,T.Z)(n,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),n}(),Mre=function(){function n(r){(0,g.Z)(this,n),this.snapshot=r}return(0,T.Z)(n,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),n}(),Are=function(){function n(r){(0,g.Z)(this,n),this.snapshot=r}return(0,T.Z)(n,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),n}(),Dre=function(){function n(r){(0,g.Z)(this,n),this.snapshot=r}return(0,T.Z)(n,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),n}(),JH=function(){function n(r,t,i){(0,g.Z)(this,n),this.routerEvent=r,this.position=t,this.anchor=i}return(0,T.Z)(n,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),n}(),fi="primary",Ore=function(){function n(r){(0,g.Z)(this,n),this.params=r||{}}return(0,T.Z)(n,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var i=this.params[t];return Array.isArray(i)?i[0]:i}return null}},{key:"getAll",value:function(t){if(this.has(t)){var i=this.params[t];return Array.isArray(i)?i:[i]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),n}();function j_(n){return new Ore(n)}var QH="ngNavigationCancelingError";function sZ(n){var r=Error("NavigationCancelingError: "+n);return r[QH]=!0,r}function Ire(n,r,t){var i=t.path.split("/");if(i.length>n.length||"full"===t.pathMatch&&(r.hasChildren()||i.length0?n[n.length-1]:null}function es(n,r){for(var t in n)n.hasOwnProperty(t)&&r(n[t],t)}function rd(n){return(0,e.CqO)(n)?n:(0,e.QGY)(n)?(0,Ja.D)(Promise.resolve(n)):(0,ur.of)(n)}var Zre={exact:function nV(n,r,t){if(!Qm(n.segments,r.segments)||!jA(n.segments,r.segments,t)||n.numberOfChildren!==r.numberOfChildren)return!1;for(var i in r.children)if(!n.children[i]||!nV(n.children[i],r.children[i],t))return!1;return!0},subset:rV},eV={exact:function(n,r){return nd(n,r)},subset:function(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(function(t){return KH(n[t],r[t])})},ignored:function(){return!0}};function tV(n,r,t){return Zre[t.paths](n.root,r.root,t.matrixParams)&&eV[t.queryParams](n.queryParams,r.queryParams)&&!("exact"===t.fragment&&n.fragment!==r.fragment)}function rV(n,r,t){return iV(n,r,r.segments,t)}function iV(n,r,t,i){if(n.segments.length>t.length){var o=n.segments.slice(0,t.length);return!(!Qm(o,t)||r.hasChildren()||!jA(o,t,i))}if(n.segments.length===t.length){if(!Qm(n.segments,t)||!jA(n.segments,t,i))return!1;for(var a in r.children)if(!n.children[a]||!rV(n.children[a],r.children[a],i))return!1;return!0}var s=t.slice(0,n.segments.length),u=t.slice(n.segments.length);return!!(Qm(n.segments,s)&&jA(n.segments,s,i)&&n.children[fi])&&iV(n.children[fi],r,u,i)}function jA(n,r,t){return r.every(function(i,o){return eV[t](n[o].parameters,i.parameters)})}var Jm=function(){function n(r,t,i){(0,g.Z)(this,n),this.root=r,this.queryParams=t,this.fragment=i}return(0,T.Z)(n,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=j_(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Hre.serialize(this)}}]),n}(),yi=function(){function n(r,t){var i=this;(0,g.Z)(this,n),this.segments=r,this.children=t,this.parent=null,es(t,function(o,a){return o.parent=i})}return(0,T.Z)(n,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return zA(this)}}]),n}(),dS=function(){function n(r,t){(0,g.Z)(this,n),this.path=r,this.parameters=t}return(0,T.Z)(n,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=j_(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return lV(this)}}]),n}();function Qm(n,r){return n.length===r.length&&n.every(function(t,i){return t.path===r[i].path})}var lZ=function n(){(0,g.Z)(this,n)},oV=function(){function n(){(0,g.Z)(this,n)}return(0,T.Z)(n,[{key:"parse",value:function(t){var i=new Qre(t);return new Jm(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}},{key:"serialize",value:function(t){var i="/".concat(pS(t.root,!0)),o=function(n){var r=Object.keys(n).map(function(t){var i=n[t];return Array.isArray(i)?i.map(function(o){return"".concat(WA(t),"=").concat(WA(o))}).join("&"):"".concat(WA(t),"=").concat(WA(i))}).filter(function(t){return!!t});return r.length?"?".concat(r.join("&")):""}(t.queryParams),a="string"==typeof t.fragment?"#".concat(function(n){return encodeURI(n)}(t.fragment)):"";return"".concat(i).concat(o).concat(a)}}]),n}(),Hre=new oV;function zA(n){return n.segments.map(function(r){return lV(r)}).join("/")}function pS(n,r){if(!n.hasChildren())return zA(n);if(r){var t=n.children[fi]?pS(n.children[fi],!1):"",i=[];return es(n.children,function(a,s){s!==fi&&i.push("".concat(s,":").concat(pS(a,!1)))}),i.length>0?"".concat(t,"(").concat(i.join("//"),")"):t}var o=function(n,r){var t=[];return es(n.children,function(i,o){o===fi&&(t=t.concat(r(i,o)))}),es(n.children,function(i,o){o!==fi&&(t=t.concat(r(i,o)))}),t}(n,function(a,s){return s===fi?[pS(n.children[fi],!1)]:["".concat(s,":").concat(pS(a,!1))]});return 1===Object.keys(n.children).length&&null!=n.children[fi]?"".concat(zA(n),"/").concat(o[0]):"".concat(zA(n),"/(").concat(o.join("//"),")")}function aV(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function WA(n){return aV(n).replace(/%3B/gi,";")}function uZ(n){return aV(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function GA(n){return decodeURIComponent(n)}function sV(n){return GA(n.replace(/\+/g,"%20"))}function lV(n){return"".concat(uZ(n.path)).concat(function(n){return Object.keys(n).map(function(r){return";".concat(uZ(r),"=").concat(uZ(n[r]))}).join("")}(n.parameters))}var zre=/^[^\/()?;=#]+/;function YA(n){var r=n.match(zre);return r?r[0]:""}var Wre=/^[^=?&#]+/,Yre=/^[^?&#]+/,Qre=function(){function n(r){(0,g.Z)(this,n),this.url=r,this.remaining=r}return(0,T.Z)(n,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new yi([],{}):new yi([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));var o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(o[fi]=new yi(t,i)),o}},{key:"parseSegment",value:function(){var t=YA(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new dS(GA(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var i=YA(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=YA(this.remaining);a&&this.capture(o=a)}t[GA(i)]=GA(o)}}},{key:"parseQueryParam",value:function(t){var i=function(n){var r=n.match(Wre);return r?r[0]:""}(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=function(n){var r=n.match(Yre);return r?r[0]:""}(this.remaining);a&&this.capture(o=a)}var s=sV(i),u=sV(o);if(t.hasOwnProperty(s)){var p=t[s];Array.isArray(p)||(t[s]=p=[p]),p.push(u)}else t[s]=u}}},{key:"parseParens",value:function(t){var i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var o=YA(this.remaining),a=this.remaining[o.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error("Cannot parse url '".concat(this.url,"'"));var s=void 0;o.indexOf(":")>-1?(s=o.substr(0,o.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=fi);var u=this.parseChildren();i[s]=1===Object.keys(u).length?u[fi]:new yi([],u),this.consumeOptional("//")}return i}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),n}(),uV=function(){function n(r){(0,g.Z)(this,n),this._root=r}return(0,T.Z)(n,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}},{key:"children",value:function(t){var i=cZ(t,this._root);return i?i.children.map(function(o){return o.value}):[]}},{key:"firstChild",value:function(t){var i=cZ(t,this._root);return i&&i.children.length>0?i.children[0].value:null}},{key:"siblings",value:function(t){var i=dZ(t,this._root);return i.length<2?[]:i[i.length-2].children.map(function(a){return a.value}).filter(function(a){return a!==t})}},{key:"pathFromRoot",value:function(t){return dZ(t,this._root).map(function(i){return i.value})}}]),n}();function cZ(n,r){if(n===r.value)return r;var i,t=(0,_.Z)(r.children);try{for(t.s();!(i=t.n()).done;){var a=cZ(n,i.value);if(a)return a}}catch(s){t.e(s)}finally{t.f()}return null}function dZ(n,r){if(n===r.value)return[r];var i,t=(0,_.Z)(r.children);try{for(t.s();!(i=t.n()).done;){var a=dZ(n,i.value);if(a.length)return a.unshift(r),a}}catch(s){t.e(s)}finally{t.f()}return[]}var pp=function(){function n(r,t){(0,g.Z)(this,n),this.value=r,this.children=t}return(0,T.Z)(n,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),n}();function fS(n){var r={};return n&&n.children.forEach(function(t){return r[t.value.outlet]=t}),r}var cV=function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(i,o){var a;return(0,g.Z)(this,t),(a=r.call(this,i)).snapshot=o,pZ((0,uS.Z)(a),i),a}return(0,T.Z)(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(uV);function dV(n,r){var t=function(n,r){var s=new JA([],{},{},"",{},fi,r,null,n.root,-1,{});return new fV("",new pp(s,[]))}(n,r),i=new ji.X([new dS("",{})]),o=new ji.X({}),a=new ji.X({}),s=new ji.X({}),u=new ji.X(""),p=new Fr(i,o,s,u,a,fi,r,t.root);return p.snapshot=t.root,new cV(new pp(p,[]),t)}var Fr=function(){function n(r,t,i,o,a,s,u,p){(0,g.Z)(this,n),this.url=r,this.params=t,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=u,this._futureSnapshot=p}return(0,T.Z)(n,[{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,Ar.U)(function(t){return j_(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ar.U)(function(t){return j_(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),n}();function pV(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=n.pathFromRoot,i=0;if("always"!==r)for(i=t.length-1;i>=1;){var o=t[i],a=t[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(a.component)break;i--}}return Xre(t.slice(i))}function Xre(n){return n.reduce(function(r,t){return{params:Object.assign(Object.assign({},r.params),t.params),data:Object.assign(Object.assign({},r.data),t.data),resolve:Object.assign(Object.assign({},r.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var JA=function(){function n(r,t,i,o,a,s,u,p,m,b,I){(0,g.Z)(this,n),this.url=r,this.params=t,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=u,this.routeConfig=p,this._urlSegment=m,this._lastPathIndex=b,this._resolve=I}return(0,T.Z)(n,[{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=j_(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=j_(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(o){return o.toString()}).join("/"),i=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(i,"')")}}]),n}(),fV=function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(i,o){var a;return(0,g.Z)(this,t),(a=r.call(this,o)).url=i,pZ((0,uS.Z)(a),o),a}return(0,T.Z)(t,[{key:"toString",value:function(){return hV(this._root)}}]),t}(uV);function pZ(n,r){r.value._routerState=n,r.children.forEach(function(t){return pZ(n,t)})}function hV(n){var r=n.children.length>0?" { ".concat(n.children.map(hV).join(", ")," } "):"";return"".concat(n.value).concat(r)}function fZ(n){if(n.snapshot){var r=n.snapshot,t=n._futureSnapshot;n.snapshot=t,nd(r.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),r.fragment!==t.fragment&&n.fragment.next(t.fragment),nd(r.params,t.params)||n.params.next(t.params),function(n,r){if(n.length!==r.length)return!1;for(var t=0;to;){if(a-=o,!(i=i.parent))throw new Error("Invalid number of '../'");o=i.segments.length}return new vZ(i,!1,o-a)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+a,n.numberOfDoubleDots)}(a,r,n),u=s.processChildren?XA(s.segmentGroup,s.index,a.commands):_V(s.segmentGroup,s.index,a.commands);return mZ(s.segmentGroup,u,r,i,o)}function KA(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function hS(n){return"object"==typeof n&&null!=n&&n.outlets}function mZ(n,r,t,i,o){var a={};return i&&es(i,function(s,u){a[u]=Array.isArray(s)?s.map(function(p){return"".concat(p)}):"".concat(s)}),new Jm(t.root===n?r:vV(t.root,n,r),a,o)}function vV(n,r,t){var i={};return es(n.children,function(o,a){i[a]=o===r?t:vV(o,r,t)}),new yi(n.segments,i)}var gV=function(){function n(r,t,i){if((0,g.Z)(this,n),this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=i,r&&i.length>0&&KA(i[0]))throw new Error("Root segment cannot have matrix parameters");var o=i.find(hS);if(o&&o!==$H(i))throw new Error("{outlets:{}} has to be the last command")}return(0,T.Z)(n,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),n}(),vZ=function n(r,t,i){(0,g.Z)(this,n),this.segmentGroup=r,this.processChildren=t,this.index=i};function _V(n,r,t){if(n||(n=new yi([],{})),0===n.segments.length&&n.hasChildren())return XA(n,r,t);var i=function(n,r,t){for(var i=0,o=r,a={match:!1,pathIndex:0,commandIndex:0};o=t.length)return a;var s=n.segments[o],u=t[i];if(hS(u))break;var p="".concat(u),m=i0&&void 0===p)break;if(p&&m&&"object"==typeof m&&void 0===m.outlets){if(!bV(p,m,s))return a;i+=2}else{if(!bV(p,{},s))return a;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(n,r,t),o=t.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",t=0;t0)?Object.assign({},wV):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var a=(r.matcher||Ire)(t,n,r);if(!a)return Object.assign({},wV);var s={};es(a.posParams,function(p,m){s[m]=p.path});var u=a.consumed.length>0?Object.assign(Object.assign({},s),a.consumed[a.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:a.consumed,lastChild:a.consumed.length,parameters:u,positionalParamSegments:null!==(i=a.posParams)&&void 0!==i?i:{}}}function e2(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&Cie(n,t,i)){var a=new yi(r,bie(n,r,i,new yi(t,n.children)));return a._sourceSegment=n,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===t.length&&Sie(n,t,i)){var s=new yi(n.segments,yie(n,r,t,i,n.children,o));return s._sourceSegment=n,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:t}}var u=new yi(n.segments,n.children);return u._sourceSegment=n,u._segmentIndexShift=r.length,{segmentGroup:u,slicedSegments:t}}function yie(n,r,t,i,o,a){var p,s={},u=(0,_.Z)(i);try{for(u.s();!(p=u.n()).done;){var m=p.value;if(t2(n,t,m)&&!o[bu(m)]){var b=new yi([],{});b._sourceSegment=n,b._segmentIndexShift="legacy"===a?n.segments.length:r.length,s[bu(m)]=b}}}catch(I){u.e(I)}finally{u.f()}return Object.assign(Object.assign({},o),s)}function bie(n,r,t,i){var o={};o[fi]=i,i._sourceSegment=n,i._segmentIndexShift=r.length;var s,a=(0,_.Z)(t);try{for(a.s();!(s=a.n()).done;){var u=s.value;if(""===u.path&&bu(u)!==fi){var p=new yi([],{});p._sourceSegment=n,p._segmentIndexShift=r.length,o[bu(u)]=p}}}catch(m){a.e(m)}finally{a.f()}return o}function Cie(n,r,t){return t.some(function(i){return t2(n,r,i)&&bu(i)!==fi})}function Sie(n,r,t){return t.some(function(i){return t2(n,r,i)})}function t2(n,r,t){return(!(n.hasChildren()||r.length>0)||"full"!==t.pathMatch)&&""===t.path}function kV(n,r,t,i){return!!(bu(n)===i||i!==fi&&t2(r,t,n))&&("**"===n.path||$A(r,n,t).matched)}function EV(n,r,t){return 0===r.length&&!n.children[t]}var gS=function n(r){(0,g.Z)(this,n),this.segmentGroup=r||null},MV=function n(r){(0,g.Z)(this,n),this.urlTree=r};function n2(n){return new qo.y(function(r){return r.error(new gS(n))})}function AV(n){return new qo.y(function(r){return r.error(new MV(n))})}function Tie(n){return new qo.y(function(r){return r.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(n,"'")))})}var kie=function(){function n(r,t,i,o,a){(0,g.Z)(this,n),this.configLoader=t,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=r.get(e.h0i)}return(0,T.Z)(n,[{key:"apply",value:function(){var t=this,i=e2(this.urlTree.root,[],[],this.config).segmentGroup,o=new yi(i.segments,i.children);return this.expandSegmentGroup(this.ngModule,this.config,o,fi).pipe((0,Ar.U)(function(u){return t.createUrlTree(bZ(u),t.urlTree.queryParams,t.urlTree.fragment)})).pipe((0,qf.K)(function(u){if(u instanceof MV)return t.allowRedirects=!1,t.match(u.urlTree);throw u instanceof gS?t.noMatchError(u):u}))}},{key:"match",value:function(t){var i=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,fi).pipe((0,Ar.U)(function(s){return i.createUrlTree(bZ(s),t.queryParams,t.fragment)})).pipe((0,qf.K)(function(s){throw s instanceof gS?i.noMatchError(s):s}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,i,o){var a=t.segments.length>0?new yi([],(0,V.Z)({},fi,t)):t;return new Jm(a,i,o)}},{key:"expandSegmentGroup",value:function(t,i,o,a){return 0===o.segments.length&&o.hasChildren()?this.expandChildren(t,i,o).pipe((0,Ar.U)(function(s){return new yi([],s)})):this.expandSegment(t,o,i,o.segments,a,!0)}},{key:"expandChildren",value:function(t,i,o){for(var a=this,s=[],u=0,p=Object.keys(o.children);u1||!a.children[fi])return Tie(t.redirectTo);a=a.children[fi]}}},{key:"applyRedirectCommands",value:function(t,i,o){return this.applyRedirectCreatreUrlTree(i,this.urlSerializer.parse(i),t,o)}},{key:"applyRedirectCreatreUrlTree",value:function(t,i,o,a){var s=this.createSegmentGroup(t,i.root,o,a);return new Jm(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}},{key:"createQueryParams",value:function(t,i){var o={};return es(t,function(a,s){if("string"==typeof a&&a.startsWith(":")){var p=a.substring(1);o[s]=i[p]}else o[s]=a}),o}},{key:"createSegmentGroup",value:function(t,i,o,a){var s=this,u=this.createSegments(t,i.segments,o,a),p={};return es(i.children,function(m,b){p[b]=s.createSegmentGroup(t,m,o,a)}),new yi(u,p)}},{key:"createSegments",value:function(t,i,o,a){var s=this;return i.map(function(u){return u.path.startsWith(":")?s.findPosParam(t,u,a):s.findOrReturn(u,o)})}},{key:"findPosParam",value:function(t,i,o){var a=o[i.path.substring(1)];if(!a)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(i.path,"'."));return a}},{key:"findOrReturn",value:function(t,i){var s,o=0,a=(0,_.Z)(i);try{for(a.s();!(s=a.n()).done;){var u=s.value;if(u.path===t.path)return i.splice(o),u;o++}}catch(p){a.e(p)}finally{a.f()}return t}}]),n}();function bZ(n){for(var r={},t=0,i=Object.keys(n.children);t0||s.hasChildren())&&(r[o]=s)}return function(n){if(1===n.numberOfChildren&&n.children[fi]){var r=n.children[fi];return new yi(n.segments.concat(r.segments),r.children)}return n}(new yi(n.segments,r))}var DV=function n(r){(0,g.Z)(this,n),this.path=r,this.route=this.path[this.path.length-1]},r2=function n(r,t){(0,g.Z)(this,n),this.component=r,this.route=t};function Aie(n,r,t){var i=n._root;return _S(i,r?r._root:null,t,[i.value])}function o2(n,r,t){var i=function(n){if(!n)return null;for(var r=n.parent;r;r=r.parent){var t=r.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(r);return(i?i.module.injector:t).get(n)}function _S(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=fS(r);return n.children.forEach(function(s){Pie(s,a[s.value.outlet],t,i.concat([s.value]),o),delete a[s.value.outlet]}),es(a,function(s,u){return yS(s,t.getContext(u),o)}),o}function Pie(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=n.value,s=r?r.value:null,u=t?t.getContext(n.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var p=Iie(s,a,a.routeConfig.runGuardsAndResolvers);p?o.canActivateChecks.push(new DV(i)):(a.data=s.data,a._resolvedData=s._resolvedData),_S(n,r,a.component?u?u.children:null:t,i,o),p&&u&&u.outlet&&u.outlet.isActivated&&o.canDeactivateChecks.push(new r2(u.outlet.component,s))}else s&&yS(r,u,o),o.canActivateChecks.push(new DV(i)),_S(n,null,a.component?u?u.children:null:t,i,o);return o}function Iie(n,r,t){if("function"==typeof t)return t(n,r);switch(t){case"pathParamsChange":return!Qm(n.url,r.url);case"pathParamsOrQueryParamsChange":return!Qm(n.url,r.url)||!nd(n.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hZ(n,r)||!nd(n.queryParams,r.queryParams);case"paramsChange":default:return!hZ(n,r)}}function yS(n,r,t){var i=fS(n),o=n.value;es(i,function(a,s){yS(a,o.component?r?r.children.getContext(s):null:r,t)}),t.canDeactivateChecks.push(new r2(o.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,o))}var Vie=function n(){(0,g.Z)(this,n)};function OV(n){return new qo.y(function(r){return r.error(n)})}var jie=function(){function n(r,t,i,o,a,s){(0,g.Z)(this,n),this.rootComponentType=r,this.config=t,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=s}return(0,T.Z)(n,[{key:"recognize",value:function(){var t=e2(this.urlTree.root,[],[],this.config.filter(function(u){return void 0===u.redirectTo}),this.relativeLinkResolution).segmentGroup,i=this.processSegmentGroup(this.config,t,fi);if(null===i)return null;var o=new JA([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},fi,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new pp(o,i),s=new fV(this.url,a);return this.inheritParamsAndData(s._root),s}},{key:"inheritParamsAndData",value:function(t){var i=this,o=t.value,a=pV(o,this.paramsInheritanceStrategy);o.params=Object.freeze(a.params),o.data=Object.freeze(a.data),t.children.forEach(function(s){return i.inheritParamsAndData(s)})}},{key:"processSegmentGroup",value:function(t,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,i):this.processSegment(t,i,i.segments,o)}},{key:"processChildren",value:function(t,i){for(var o=[],a=0,s=Object.keys(i.children);a0?$H(o).parameters:{};s=new JA(o,m,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,NV(t),bu(t),t.component,t,IV(i),RV(i)+o.length,ZV(t))}else{var b=$A(i,t,o);if(!b.matched)return null;u=b.consumedSegments,p=o.slice(b.lastChild),s=new JA(u,b.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,NV(t),bu(t),t.component,t,IV(i),RV(i)+u.length,ZV(t))}var I=function(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(t),F=e2(i,u,p,I.filter(function(lt){return void 0===lt.redirectTo}),this.relativeLinkResolution),G=F.segmentGroup,Y=F.slicedSegments;if(0===Y.length&&G.hasChildren()){var te=this.processChildren(I,G);return null===te?null:[new pp(s,te)]}if(0===I.length&&0===Y.length)return[new pp(s,[])];var ce=bu(t)===a,xe=this.processSegment(I,G,Y,ce?fi:a);return null===xe?null:[new pp(s,xe)]}}]),n}();function PV(n){var o,r=[],t=new Set,i=(0,_.Z)(n);try{var a=function(){var F=o.value;if(!function(n){var r=n.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(F))return r.push(F),"continue";var Y,G=r.find(function(te){return F.value.routeConfig===te.value.routeConfig});void 0!==G?((Y=G.children).push.apply(Y,(0,y.Z)(F.children)),t.add(G)):r.push(F)};for(i.s();!(o=i.n()).done;)a()}catch(I){i.e(I)}finally{i.f()}var p,u=(0,_.Z)(t);try{for(u.s();!(p=u.n()).done;){var m=p.value,b=PV(m.children);r.push(new pp(m.value,b))}}catch(I){u.e(I)}finally{u.f()}return r.filter(function(I){return!t.has(I)})}function IV(n){for(var r=n;r._sourceSegment;)r=r._sourceSegment;return r}function RV(n){for(var r=n,t=r._segmentIndexShift?r._segmentIndexShift:0;r._sourceSegment;)t+=(r=r._sourceSegment)._segmentIndexShift?r._segmentIndexShift:0;return t-1}function NV(n){return n.data||{}}function ZV(n){return n.resolve||{}}function CZ(n){return(0,Os.w)(function(r){var t=n(r);return t?(0,Ja.D)(t).pipe((0,Ar.U)(function(){return r})):(0,ur.of)(r)})}var toe=function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(){return(0,g.Z)(this,t),r.apply(this,arguments)}return t}(function(){function n(){(0,g.Z)(this,n)}return(0,T.Z)(n,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,i){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,i){return t.routeConfig===i.routeConfig}}]),n}()),SZ=new e.OlP("ROUTES"),LV=function(){function n(r,t,i,o){(0,g.Z)(this,n),this.loader=r,this.compiler=t,this.onLoadStartListener=i,this.onLoadEndListener=o}return(0,T.Z)(n,[{key:"load",value:function(t,i){var o=this;if(i._loader$)return i._loader$;this.onLoadStartListener&&this.onLoadStartListener(i);var s=this.loadModuleFactory(i.loadChildren).pipe((0,Ar.U)(function(u){o.onLoadEndListener&&o.onLoadEndListener(i);var p=u.create(t);return new _Z(XH(p.injector.get(SZ,void 0,e.XFs.Self|e.XFs.Optional)).map(yZ),p)}),(0,qf.K)(function(u){throw i._loader$=void 0,u}));return i._loader$=new yre.c(s,function(){return new Rn.xQ}).pipe((0,Cre.x)()),i._loader$}},{key:"loadModuleFactory",value:function(t){var i=this;return"string"==typeof t?(0,Ja.D)(this.loader.load(t)):rd(t()).pipe((0,Ro.zg)(function(o){return o instanceof e.YKP?(0,ur.of)(o):(0,Ja.D)(i.compiler.compileModuleAsync(o))}))}}]),n}(),noe=function n(){(0,g.Z)(this,n),this.outlet=null,this.route=null,this.resolver=null,this.children=new z_,this.attachRef=null},z_=function(){function n(){(0,g.Z)(this,n),this.contexts=new Map}return(0,T.Z)(n,[{key:"onChildOutletCreated",value:function(t,i){var o=this.getOrCreateContext(t);o.outlet=i,this.contexts.set(t,o)}},{key:"onChildOutletDestroyed",value:function(t){var i=this.getContext(t);i&&(i.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var i=this.getContext(t);return i||(i=new noe,this.contexts.set(t,i)),i}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),n}(),ioe=function(){function n(){(0,g.Z)(this,n)}return(0,T.Z)(n,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,i){return t}}]),n}();function ooe(n){throw n}function aoe(n,r,t){return r.parse("/")}function FV(n,r){return(0,ur.of)(null)}var soe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},loe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Dr=function(){var n=function(){function r(t,i,o,a,s,u,p,m){var b=this;(0,g.Z)(this,r),this.rootComponentType=t,this.urlSerializer=i,this.rootContexts=o,this.location=a,this.config=m,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Rn.xQ,this.errorHandler=ooe,this.malformedUriErrorHandler=aoe,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:FV,afterPreactivation:FV},this.urlHandlingStrategy=new ioe,this.routeReuseStrategy=new toe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(e.h0i),this.console=s.get(e.c2e);var G=s.get(e.R0b);this.isNgZoneEnabled=G instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(m),this.currentUrlTree=new Jm(new yi([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new LV(u,p,function(te){return b.triggerEvent(new GH(te))},function(te){return b.triggerEvent(new YH(te))}),this.routerState=dV(this.currentUrlTree,this.rootComponentType),this.transitions=new ji.X({id:0,targetPageId: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,T.Z)(r,[{key:"browserPageId",get:function(){var i;return null===(i=this.location.getState())||void 0===i?void 0:i.\u0275routerPageId}},{key:"setupNavigations",value:function(i){var o=this,a=this.events;return i.pipe((0,_i.h)(function(s){return 0!==s.id}),(0,Ar.U)(function(s){return Object.assign(Object.assign({},s),{extractedUrl:o.urlHandlingStrategy.extract(s.rawUrl)})}),(0,Os.w)(function(s){var u=!1,p=!1;return(0,ur.of)(s).pipe((0,ba.b)(function(m){o.currentNavigation={id:m.id,initialUrl:m.currentRawUrl,extractedUrl:m.extractedUrl,trigger:m.source,extras:m.extras,previousNavigation:o.lastSuccessfulNavigation?Object.assign(Object.assign({},o.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Os.w)(function(m){var b=!o.navigated||m.extractedUrl.toString()!==o.browserUrlTree.toString(),I=("reload"===o.onSameUrlNavigation||b)&&o.urlHandlingStrategy.shouldProcessUrl(m.rawUrl);if(a2(m.source)&&(o.browserUrlTree=m.rawUrl),I)return(0,ur.of)(m).pipe((0,Os.w)(function(it){var ht=o.transitions.getValue();return a.next(new qA(it.id,o.serializeUrl(it.extractedUrl),it.source,it.restoredState)),ht!==o.transitions.getValue()?Gm.E:Promise.resolve(it)}),function(n,r,t,i){return(0,Os.w)(function(o){return function(n,r,t,i,o){return new kie(n,r,t,i,o).apply()}(n,r,t,o.extractedUrl,i).pipe((0,Ar.U)(function(a){return Object.assign(Object.assign({},o),{urlAfterRedirects:a})}))})}(o.ngModule.injector,o.configLoader,o.urlSerializer,o.config),(0,ba.b)(function(it){o.currentNavigation=Object.assign(Object.assign({},o.currentNavigation),{finalUrl:it.urlAfterRedirects})}),function(n,r,t,i,o){return(0,Ro.zg)(function(a){return function(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var s=new jie(n,r,t,i,o,a).recognize();return null===s?OV(new Vie):(0,ur.of)(s)}catch(u){return OV(u)}}(n,r,a.urlAfterRedirects,t(a.urlAfterRedirects),i,o).pipe((0,Ar.U)(function(s){return Object.assign(Object.assign({},a),{targetSnapshot:s})}))})}(o.rootComponentType,o.config,function(it){return o.serializeUrl(it)},o.paramsInheritanceStrategy,o.relativeLinkResolution),(0,ba.b)(function(it){"eager"===o.urlUpdateStrategy&&(it.extras.skipLocationChange||o.setBrowserUrl(it.urlAfterRedirects,it),o.browserUrlTree=it.urlAfterRedirects);var ht=new Sre(it.id,o.serializeUrl(it.extractedUrl),o.serializeUrl(it.urlAfterRedirects),it.targetSnapshot);a.next(ht)}));if(b&&o.rawUrlTree&&o.urlHandlingStrategy.shouldProcessUrl(o.rawUrlTree)){var Y=m.extractedUrl,te=m.source,ce=m.restoredState,xe=m.extras,lt=new qA(m.id,o.serializeUrl(Y),te,ce);a.next(lt);var nt=dV(Y,o.rootComponentType).snapshot;return(0,ur.of)(Object.assign(Object.assign({},m),{targetSnapshot:nt,urlAfterRedirects:Y,extras:Object.assign(Object.assign({},xe),{skipLocationChange:!1,replaceUrl:!1})}))}return o.rawUrlTree=m.rawUrl,o.browserUrlTree=m.urlAfterRedirects,m.resolve(null),Gm.E}),CZ(function(m){var Y=m.extras;return o.hooks.beforePreactivation(m.targetSnapshot,{navigationId:m.id,appliedUrlTree:m.extractedUrl,rawUrlTree:m.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),(0,ba.b)(function(m){var b=new Tre(m.id,o.serializeUrl(m.extractedUrl),o.serializeUrl(m.urlAfterRedirects),m.targetSnapshot);o.triggerEvent(b)}),(0,Ar.U)(function(m){return Object.assign(Object.assign({},m),{guards:Aie(m.targetSnapshot,m.currentSnapshot,o.rootContexts)})}),function(n,r){return(0,Ro.zg)(function(t){var i=t.targetSnapshot,o=t.currentSnapshot,a=t.guards,s=a.canActivateChecks,u=a.canDeactivateChecks;return 0===u.length&&0===s.length?(0,ur.of)(Object.assign(Object.assign({},t),{guardsResult:!0})):function(n,r,t,i){return(0,Ja.D)(n).pipe((0,Ro.zg)(function(o){return function(n,r,t,i,o){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return(0,ur.of)(!0);var s=a.map(function(u){var m,p=o2(u,r,o);if(function(n){return n&&jf(n.canDeactivate)}(p))m=rd(p.canDeactivate(n,r,t,i));else{if(!jf(p))throw new Error("Invalid CanDeactivate guard");m=rd(p(n,r,t,i))}return m.pipe((0,q_.P)())});return(0,ur.of)(s).pipe(vS())}(o.component,o.route,t,r,i)}),(0,q_.P)(function(o){return!0!==o},!0))}(u,i,o,n).pipe((0,Ro.zg)(function(p){return p&&function(n){return"boolean"==typeof n}(p)?function(n,r,t,i){return(0,Ja.D)(r).pipe((0,cS.b)(function(o){return(0,qH.z)(function(n,r){return null!==n&&r&&r(new Ere(n)),(0,ur.of)(!0)}(o.route.parent,i),function(n,r){return null!==n&&r&&r(new Are(n)),(0,ur.of)(!0)}(o.route,i),function(n,r,t){var i=r[r.length-1],a=r.slice(0,r.length-1).reverse().map(function(s){return function(n){var r=n.routeConfig?n.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:n,guards:r}:null}(s)}).filter(function(s){return null!==s}).map(function(s){return(0,iZ.P)(function(){var u=s.guards.map(function(p){var b,m=o2(p,s.node,t);if(function(n){return n&&jf(n.canActivateChild)}(m))b=rd(m.canActivateChild(i,n));else{if(!jf(m))throw new Error("Invalid CanActivateChild guard");b=rd(m(i,n))}return b.pipe((0,q_.P)())});return(0,ur.of)(u).pipe(vS())})});return(0,ur.of)(a).pipe(vS())}(n,o.path,t),function(n,r,t){var i=r.routeConfig?r.routeConfig.canActivate:null;if(!i||0===i.length)return(0,ur.of)(!0);var o=i.map(function(a){return(0,iZ.P)(function(){var u,s=o2(a,r,t);if(function(n){return n&&jf(n.canActivate)}(s))u=rd(s.canActivate(r,n));else{if(!jf(s))throw new Error("Invalid CanActivate guard");u=rd(s(r,n))}return u.pipe((0,q_.P)())})});return(0,ur.of)(o).pipe(vS())}(n,o.route,t))}),(0,q_.P)(function(o){return!0!==o},!0))}(i,s,n,r):(0,ur.of)(p)}),(0,Ar.U)(function(p){return Object.assign(Object.assign({},t),{guardsResult:p})}))})}(o.ngModule.injector,function(m){return o.triggerEvent(m)}),(0,ba.b)(function(m){if(Km(m.guardsResult)){var b=sZ('Redirecting to "'.concat(o.serializeUrl(m.guardsResult),'"'));throw b.url=m.guardsResult,b}var I=new xre(m.id,o.serializeUrl(m.extractedUrl),o.serializeUrl(m.urlAfterRedirects),m.targetSnapshot,!!m.guardsResult);o.triggerEvent(I)}),(0,_i.h)(function(m){return!!m.guardsResult||(o.restoreHistory(m),o.cancelNavigationTransition(m,""),!1)}),CZ(function(m){if(m.guards.canActivateChecks.length)return(0,ur.of)(m).pipe((0,ba.b)(function(b){var I=new wre(b.id,o.serializeUrl(b.extractedUrl),o.serializeUrl(b.urlAfterRedirects),b.targetSnapshot);o.triggerEvent(I)}),(0,Os.w)(function(b){var I=!1;return(0,ur.of)(b).pipe(function(n,r){return(0,Ro.zg)(function(t){var i=t.targetSnapshot,o=t.guards.canActivateChecks;if(!o.length)return(0,ur.of)(t);var a=0;return(0,Ja.D)(o).pipe((0,cS.b)(function(s){return function(n,r,t,i){return function(n,r,t,i){var o=Object.keys(n);if(0===o.length)return(0,ur.of)({});var a={};return(0,Ja.D)(o).pipe((0,Ro.zg)(function(s){return function(n,r,t,i){var o=o2(n,r,i);return rd(o.resolve?o.resolve(r,t):o(r,t))}(n[s],r,t,i).pipe((0,ba.b)(function(u){a[s]=u}))}),(0,Xg.h)(1),(0,Ro.zg)(function(){return Object.keys(a).length===o.length?(0,ur.of)(a):Gm.E}))}(n._resolve,n,r,i).pipe((0,Ar.U)(function(a){return n._resolvedData=a,n.data=Object.assign(Object.assign({},n.data),pV(n,t).resolve),null}))}(s.route,i,n,r)}),(0,ba.b)(function(){return a++}),(0,Xg.h)(1),(0,Ro.zg)(function(s){return a===o.length?(0,ur.of)(t):Gm.E}))})}(o.paramsInheritanceStrategy,o.ngModule.injector),(0,ba.b)({next:function(){return I=!0},complete:function(){I||(o.restoreHistory(b),o.cancelNavigationTransition(b,"At least one route resolver didn't emit any value."))}}))}),(0,ba.b)(function(b){var I=new kre(b.id,o.serializeUrl(b.extractedUrl),o.serializeUrl(b.urlAfterRedirects),b.targetSnapshot);o.triggerEvent(I)}))}),CZ(function(m){var Y=m.extras;return o.hooks.afterPreactivation(m.targetSnapshot,{navigationId:m.id,appliedUrlTree:m.extractedUrl,rawUrlTree:m.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),(0,Ar.U)(function(m){var b=function(n,r,t){var i=QA(n,r._root,t?t._root:void 0);return new cV(i,r)}(o.routeReuseStrategy,m.targetSnapshot,m.currentRouterState);return Object.assign(Object.assign({},m),{targetRouterState:b})}),(0,ba.b)(function(m){o.currentUrlTree=m.urlAfterRedirects,o.rawUrlTree=o.urlHandlingStrategy.merge(o.currentUrlTree,m.rawUrl),o.routerState=m.targetRouterState,"deferred"===o.urlUpdateStrategy&&(m.extras.skipLocationChange||o.setBrowserUrl(o.rawUrlTree,m),o.browserUrlTree=m.urlAfterRedirects)}),function(r,t,i){return(0,Ar.U)(function(o){return new cie(t,o.targetRouterState,o.currentRouterState,i).activate(r),o})}(o.rootContexts,o.routeReuseStrategy,function(m){return o.triggerEvent(m)}),(0,ba.b)({next:function(){u=!0},complete:function(){u=!0}}),(0,zH.x)(function(){if(!u&&!p){var m="Navigation ID ".concat(s.id," is not equal to the current navigation id ").concat(o.navigationId);"replace"===o.canceledNavigationResolution&&o.restoreHistory(s),o.cancelNavigationTransition(s,m)}o.currentNavigation=null}),(0,qf.K)(function(m){if(p=!0,function(n){return n&&n[QH]}(m)){var b=Km(m.url);b||(o.navigated=!0,o.restoreHistory(s,!0));var I=new aZ(s.id,o.serializeUrl(s.extractedUrl),m.message);a.next(I),b?setTimeout(function(){var G=o.urlHandlingStrategy.merge(m.url,o.rawUrlTree),Y={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===o.urlUpdateStrategy||a2(s.source)};o.scheduleNavigation(G,"imperative",null,Y,{resolve:s.resolve,reject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{o.restoreHistory(s,!0);var F=new WH(s.id,o.serializeUrl(s.extractedUrl),m);a.next(F);try{s.resolve(o.errorHandler(m))}catch(G){s.reject(G)}}return Gm.E}))}))}},{key:"resetRootComponentType",value:function(i){this.rootComponentType=i,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var i=this.transitions.value;return i.urlAfterRedirects=this.browserUrlTree,i}},{key:"setTransition",value:function(i){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),i))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var i=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(o){var a=i.extractLocationChangeInfoFromEvent(o);i.shouldScheduleNavigation(i.lastLocationChangeInfo,a)&&setTimeout(function(){var s=a.source,u=a.state,p=a.urlTree,m={replaceUrl:!0};if(u){var b=Object.assign({},u);delete b.navigationId,delete b.\u0275routerPageId,0!==Object.keys(b).length&&(m.state=b)}i.scheduleNavigation(p,s,u,m)},0),i.lastLocationChangeInfo=a}))}},{key:"extractLocationChangeInfoFromEvent",value:function(i){var o;return{source:"popstate"===i.type?"popstate":"hashchange",urlTree:this.parseUrl(i.url),state:(null===(o=i.state)||void 0===o?void 0:o.navigationId)?i.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(i,o){if(!i)return!0;var a=o.urlTree.toString()===i.urlTree.toString();return!(o.transitionId===i.transitionId&&a&&("hashchange"===o.source&&"popstate"===i.source||"popstate"===o.source&&"hashchange"===i.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(i){this.events.next(i)}},{key:"resetConfig",value:function(i){TV(i),this.config=i.map(yZ),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(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.relativeTo,s=o.queryParams,u=o.fragment,p=o.queryParamsHandling,m=o.preserveFragment,b=a||this.routerState.root,I=m?this.currentUrlTree.fragment:u,F=null;switch(p){case"merge":F=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":F=this.currentUrlTree.queryParams;break;default:F=s||null}return null!==F&&(F=this.removeEmptyProps(F)),nie(b,this.currentUrlTree,i,F,null!=I?I:null)}},{key:"navigateByUrl",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},a=Km(i)?i:this.parseUrl(i),s=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,o)}},{key:"navigate",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return uoe(i),this.navigateByUrl(this.createUrlTree(i,o),o)}},{key:"serializeUrl",value:function(i){return this.urlSerializer.serialize(i)}},{key:"parseUrl",value:function(i){var o;try{o=this.urlSerializer.parse(i)}catch(a){o=this.malformedUriErrorHandler(a,this.urlSerializer,i)}return o}},{key:"isActive",value:function(i,o){var a;if(a=!0===o?Object.assign({},soe):!1===o?Object.assign({},loe):o,Km(i))return tV(this.currentUrlTree,i,a);var s=this.parseUrl(i);return tV(this.currentUrlTree,s,a)}},{key:"removeEmptyProps",value:function(i){return Object.keys(i).reduce(function(o,a){var s=i[a];return null!=s&&(o[a]=s),o},{})}},{key:"processNavigations",value:function(){var i=this;this.navigations.subscribe(function(o){i.navigated=!0,i.lastSuccessfulId=o.id,i.currentPageId=o.targetPageId,i.events.next(new Ym(o.id,i.serializeUrl(o.extractedUrl),i.serializeUrl(i.currentUrlTree))),i.lastSuccessfulNavigation=i.currentNavigation,o.resolve(!0)},function(o){i.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(i,o,a,s,u){var p,m;if(this.disposed)return Promise.resolve(!1);var te,ce,xe,b=this.getTransition(),I=a2(o)&&b&&!a2(b.source),Y=(this.lastSuccessfulId===b.id||this.currentNavigation?b.rawUrl:b.urlAfterRedirects).toString()===i.toString();if(I&&Y)return Promise.resolve(!0);u?(te=u.resolve,ce=u.reject,xe=u.promise):xe=new Promise(function(ht,Qe){te=ht,ce=Qe});var nt,lt=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),nt=a&&a.\u0275routerPageId?a.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(p=this.browserPageId)&&void 0!==p?p:0:(null!==(m=this.browserPageId)&&void 0!==m?m:0)+1):nt=0,this.setTransition({id:lt,targetPageId:nt,source:o,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:i,extras:s,resolve:te,reject:ce,promise:xe,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),xe.catch(function(ht){return Promise.reject(ht)})}},{key:"setBrowserUrl",value:function(i,o){var a=this.urlSerializer.serialize(i),s=Object.assign(Object.assign({},o.extras.state),this.generateNgRouterState(o.id,o.targetPageId));this.location.isCurrentPathEqualTo(a)||o.extras.replaceUrl?this.location.replaceState(a,"",s):this.location.go(a,"",s)}},{key:"restoreHistory",value:function(i){var a,s,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var u=this.currentPageId-i.targetPageId,p="popstate"===i.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl);p&&0!==u?this.location.historyGo(u):this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===u&&(this.resetState(i),this.browserUrlTree=i.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(o&&this.resetState(i),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(i){this.routerState=i.currentRouterState,this.currentUrlTree=i.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(i,o){var a=new aZ(i.id,this.serializeUrl(i.extractedUrl),o);this.triggerEvent(a),i.resolve(!1)}},{key:"generateNgRouterState",value:function(i,o){return"computed"===this.canceledNavigationResolution?{navigationId:i,"\u0275routerPageId":o}:{navigationId:i}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.DyG),e.LFG(lZ),e.LFG(z_),e.LFG(Mt.Ye),e.LFG(e.zs3),e.LFG(e.v3s),e.LFG(e.Sil),e.LFG(void 0))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function uoe(n){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};(0,g.Z)(this,r),this.router=t,this.viewportScroller=i,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}return(0,T.Z)(r,[{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 i=this;return this.router.events.subscribe(function(o){o instanceof qA?(i.store[i.lastId]=i.viewportScroller.getScrollPosition(),i.lastSource=o.navigationTrigger,i.restoredId=o.restoredState?o.restoredState.navigationId:0):o instanceof Ym&&(i.lastId=o.id,i.scheduleScrollEvent(o,i.router.parseUrl(o.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var i=this;return this.router.events.subscribe(function(o){o instanceof JH&&(o.position?"top"===i.options.scrollPositionRestoration?i.viewportScroller.scrollToPosition([0,0]):"enabled"===i.options.scrollPositionRestoration&&i.viewportScroller.scrollToPosition(o.position):o.anchor&&"enabled"===i.options.anchorScrolling?i.viewportScroller.scrollToAnchor(o.anchor):"disabled"!==i.options.scrollPositionRestoration&&i.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(i,o){this.router.triggerEvent(new JH(i,"popstate"===this.lastSource?this.store[this.restoredId]:null,o))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(Dr),e.LFG(Mt.EM),e.LFG(void 0))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Xm=new e.OlP("ROUTER_CONFIGURATION"),VV=new e.OlP("ROUTER_FORROOT_GUARD"),moe=[Mt.Ye,{provide:lZ,useClass:oV},{provide:Dr,useFactory:function(n,r,t,i,o,a,s){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},p=arguments.length>8?arguments[8]:void 0,m=arguments.length>9?arguments[9]:void 0,b=new Dr(null,n,r,t,i,o,a,XH(s));return p&&(b.urlHandlingStrategy=p),m&&(b.routeReuseStrategy=m),Coe(u,b),u.enableTracing&&b.events.subscribe(function(I){var F,G;null===(F=console.group)||void 0===F||F.call(console,"Router Event: ".concat(I.constructor.name)),console.log(I.toString()),console.log(I),null===(G=console.groupEnd)||void 0===G||G.call(console)}),b},deps:[lZ,z_,Mt.Ye,e.zs3,e.v3s,e.Sil,SZ,Xm,[function n(){(0,g.Z)(this,n)},new e.FiY],[function n(){(0,g.Z)(this,n)},new e.FiY]]},z_,{provide:Fr,useFactory:function(n){return n.routerState.root},deps:[Dr]},{provide:e.v3s,useClass:e.EAV},HV,UV,foe,{provide:Xm,useValue:{enableTracing:!1}}];function voe(){return new e.PXZ("Router",Dr)}var qV=function(){var n=function(){function r(t,i){(0,g.Z)(this,r)}return(0,T.Z)(r,null,[{key:"forRoot",value:function(i,o){return{ngModule:r,providers:[moe,jV(i),{provide:VV,useFactory:yoe,deps:[[Dr,new e.FiY,new e.tp0]]},{provide:Xm,useValue:o||{}},{provide:Mt.S$,useFactory:_oe,deps:[Mt.lw,[new e.tBr(Mt.mr),new e.FiY],Xm]},{provide:TZ,useFactory:goe,deps:[Dr,Mt.EM,Xm]},{provide:BV,useExisting:o&&o.preloadingStrategy?o.preloadingStrategy:UV},{provide:e.PXZ,multi:!0,useFactory:voe},[xZ,{provide:e.ip1,multi:!0,useFactory:Toe,deps:[xZ]},{provide:zV,useFactory:xoe,deps:[xZ]},{provide:e.tb,multi:!0,useExisting:zV}]]}}},{key:"forChild",value:function(i){return{ngModule:r,providers:[jV(i)]}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(VV,8),e.LFG(Dr,8))},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n}();function goe(n,r,t){return t.scrollOffset&&r.setOffset(t.scrollOffset),new TZ(n,r,t)}function _oe(n,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new Mt.Do(n,r):new Mt.b0(n,r)}function yoe(n){return"guarded"}function jV(n){return[{provide:e.deG,multi:!0,useValue:n},{provide:SZ,multi:!0,useValue:n}]}function Coe(n,r){n.errorHandler&&(r.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(r.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(r.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(r.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(r.urlUpdateStrategy=n.urlUpdateStrategy)}var xZ=function(){var n=function(){function r(t){(0,g.Z)(this,r),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Rn.xQ}return(0,T.Z)(r,[{key:"appInitializer",value:function(){var i=this;return this.injector.get(Mt.V_,Promise.resolve(null)).then(function(){if(i.destroyed)return Promise.resolve(!0);var a=null,s=new Promise(function(m){return a=m}),u=i.injector.get(Dr),p=i.injector.get(Xm);return"disabled"===p.initialNavigation?(u.setUpLocationChangeListener(),a(!0)):"enabled"===p.initialNavigation||"enabledBlocking"===p.initialNavigation?(u.hooks.afterPreactivation=function(){return i.initNavigation?(0,ur.of)(null):(i.initNavigation=!0,a(!0),i.resultOfPreactivationDone)},u.initialNavigation()):a(!0),s})}},{key:"bootstrapListener",value:function(i){var o=this.injector.get(Xm),a=this.injector.get(HV),s=this.injector.get(TZ),u=this.injector.get(Dr),p=this.injector.get(e.z2F);i===p.components[0]&&(("enabledNonBlocking"===o.initialNavigation||void 0===o.initialNavigation)&&u.initialNavigation(),a.setUpPreloading(),s.init(),u.resetRootComponentType(p.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.zs3))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function Toe(n){return n.appInitializer.bind(n)}function xoe(n){return n.bootstrapListener.bind(n)}var zV=new e.OlP("Router Initializer"),l2=function(){return function(){}}(),Zo=f(96153),zr=function(){function n(r){this.httpServer=r,this.serverIds=[],this.serviceInitialized=new Rn.xQ,this.serverIds=this.getServerIds(),this.isServiceInitialized=!0,this.serviceInitialized.next(this.isServiceInitialized)}return n.prototype.getServerIds=function(){var r=localStorage.getItem("serverIds");return(null==r?void 0:r.length)>0?r.split(","):[]},n.prototype.updateServerIds=function(){localStorage.removeItem("serverIds"),localStorage.setItem("serverIds",this.serverIds.toString())},n.prototype.get=function(r){var t=JSON.parse(localStorage.getItem("server-"+r));return new Promise(function(o){o(t)})},n.prototype.create=function(r){return r.id=this.serverIds.length+1,localStorage.setItem("server-"+r.id,JSON.stringify(r)),this.serverIds.push("server-"+r.id),this.updateServerIds(),new Promise(function(i){i(r)})},n.prototype.update=function(r){return localStorage.removeItem("server-"+r.id),localStorage.setItem("server-"+r.id,JSON.stringify(r)),new Promise(function(i){i(r)})},n.prototype.findAll=function(){var r=this;return new Promise(function(i){var o=[];r.serverIds.forEach(function(a){var s=JSON.parse(localStorage.getItem(a));o.push(s)}),i(o)})},n.prototype.delete=function(r){return localStorage.removeItem("server-"+r.id),this.serverIds=this.serverIds.filter(function(i){return i!=="server-"+r.id}),this.updateServerIds(),new Promise(function(i){i(r.id)})},n.prototype.getServerUrl=function(r){return r.protocol+"//"+r.host+":"+r.port+"/"},n.prototype.checkServerVersion=function(r){return this.httpServer.get(r,"/version")},n.prototype.getLocalServer=function(r,t){var i=this;return new Promise(function(a,s){i.findAll().then(function(u){var p=u.find(function(b){return"bundled"===b.location});if(p)p.host=r,p.port=t,p.protocol=location.protocol,i.update(p).then(function(b){a(b)},s);else{var m=new l2;m.name="local",m.host=r,m.port=t,m.location="bundled",m.protocol=location.protocol,i.create(m).then(function(b){a(b)},s)}},s)})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),bS=function(){return function(r,t,i){void 0===i&&(i=!1),this.visible=r,this.error=t,this.clear=i}}(),zf=function(){function n(){this.state=new ji.X(new bS(!1))}return n.prototype.setError=function(r){this.state.next(new bS(!1,r.error))},n.prototype.clear=function(){this.state.next(new bS(!1,null,!0))},n.prototype.activate=function(){this.state.next(new bS(!0))},n.prototype.deactivate=function(){this.state.next(new bS(!1))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function koe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}function Eoe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw();e.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}function Moe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}function Aoe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw();e.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}var WV=".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",Ooe=(0,dn.pj)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}(),"primary"),GV=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),Roe=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p){var m;(0,g.Z)(this,i),(m=t.call(this,o))._document=s,m._diameter=100,m._value=0,m._fallbackAnimation=!1,m.mode="determinate";var b=i._diameters;return m._spinnerAnimationLabel=m._getSpinnerAnimationLabel(),b.has(s.head)||b.set(s.head,new Set([100])),m._fallbackAnimation=a.EDGE||a.TRIDENT,m._noopAnimations="NoopAnimations"===u&&!!p&&!p._forceAnimations,p&&(p.diameter&&(m.diameter=p.diameter),p.strokeWidth&&(m.strokeWidth=p.strokeWidth)),m}return(0,T.Z)(i,[{key:"diameter",get:function(){return this._diameter},set:function(a){this._diameter=(0,In.su)(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(a){this._strokeWidth=(0,In.su)(a)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(a){this._value=Math.max(0,Math.min(100,(0,In.su)(a)))}},{key:"ngOnInit",value:function(){var a=this._elementRef.nativeElement;this._styleRoot=(0,ti.kV)(a)||this._document.head,this._attachStyleNode();var s="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");a.classList.add(s)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var a=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(a," ").concat(a)}},{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 a=this._styleRoot,s=this._diameter,u=i._diameters,p=u.get(a);if(!p||!p.has(s)){var m=this._document.createElement("style");m.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),m.textContent=this._getAnimationText(),a.appendChild(m),p||(p=new Set,u.set(a,p)),p.add(s)}}},{key:"_getAnimationText",value:function(){var a=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*a)).replace(/END_VALUE/g,"".concat(.2*a)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),i}(Ooe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(ti.t4),e.Y36(Mt.K0,8),e.Y36(ss.Qb,8),e.Y36(GV))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,i){2&t&&(e.uIk("aria-valuemin","determinate"===i.mode?0:null)("aria-valuemax","determinate"===i.mode?100:null)("aria-valuenow","determinate"===i.mode?i.value:null)("mode",i.mode),e.Udp("width",i.diameter,"px")("height",i.diameter,"px"),e.ekj("_mat-animation-noopable",i._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[e.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(t,i){1&t&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,koe,1,9,"circle",1),e.YNc(2,Eoe,1,7,"circle",2),e.qZA()),2&t&&(e.Udp("width",i.diameter,"px")("height",i.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===i.mode),e.uIk("viewBox",i._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[Mt.RF,Mt.n9],styles:[WV],encapsulation:2,changeDetection:0}),n._diameters=new WeakMap,n}(),YV=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p){var m;return(0,g.Z)(this,i),(m=t.call(this,o,a,s,u,p)).mode="indeterminate",m}return i}(Roe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(ti.t4),e.Y36(Mt.K0,8),e.Y36(ss.Qb,8),e.Y36(GV))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,i){2&t&&(e.Udp("width",i.diameter,"px")("height",i.diameter,"px"),e.ekj("_mat-animation-noopable",i._noopAnimations))},inputs:{color:"color"},features:[e.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(t,i){1&t&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,Moe,1,9,"circle",1),e.YNc(2,Aoe,1,7,"circle",2),e.qZA()),2&t&&(e.Udp("width",i.diameter,"px")("height",i.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===i.mode),e.uIk("viewBox",i._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[Mt.RF,Mt.n9],styles:[WV],encapsulation:2,changeDetection:0}),n}(),Noe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[dn.BQ,Mt.ez],dn.BQ]}),n}(),Zoe=f(11363),kZ=f(91925),Loe=["*"];function JV(n){return Error('Unable to find icon with the name "'.concat(n,'"'))}function QV(n){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(n,'".'))}function KV(n){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(n,'".'))}var $m=function n(r,t,i){(0,g.Z)(this,n),this.url=r,this.svgText=t,this.options=i},CS=function(){var n=function(){function r(t,i,o,a){(0,g.Z)(this,r),this._httpClient=t,this._sanitizer=i,this._errorHandler=a,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=o}return(0,T.Z)(r,[{key:"addSvgIcon",value:function(i,o,a){return this.addSvgIconInNamespace("",i,o,a)}},{key:"addSvgIconLiteral",value:function(i,o,a){return this.addSvgIconLiteralInNamespace("",i,o,a)}},{key:"addSvgIconInNamespace",value:function(i,o,a,s){return this._addSvgIconConfig(i,o,new $m(a,null,s))}},{key:"addSvgIconResolver",value:function(i){return this._resolvers.push(i),this}},{key:"addSvgIconLiteralInNamespace",value:function(i,o,a,s){var u=this._sanitizer.sanitize(e.q3G.HTML,a);if(!u)throw KV(a);return this._addSvgIconConfig(i,o,new $m("",u,s))}},{key:"addSvgIconSet",value:function(i,o){return this.addSvgIconSetInNamespace("",i,o)}},{key:"addSvgIconSetLiteral",value:function(i,o){return this.addSvgIconSetLiteralInNamespace("",i,o)}},{key:"addSvgIconSetInNamespace",value:function(i,o,a){return this._addSvgIconSetConfig(i,new $m(o,null,a))}},{key:"addSvgIconSetLiteralInNamespace",value:function(i,o,a){var s=this._sanitizer.sanitize(e.q3G.HTML,o);if(!s)throw KV(o);return this._addSvgIconSetConfig(i,new $m("",s,a))}},{key:"registerFontClassAlias",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return this._fontCssClassesByAlias.set(i,o),this}},{key:"classNameForFontAlias",value:function(i){return this._fontCssClassesByAlias.get(i)||i}},{key:"setDefaultFontSetClass",value:function(i){return this._defaultFontSetClass=i,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(i){var o=this,a=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,i);if(!a)throw QV(i);var s=this._cachedIconsByUrl.get(a);return s?(0,ur.of)(u2(s)):this._loadSvgIconFromConfig(new $m(i,null)).pipe((0,ba.b)(function(u){return o._cachedIconsByUrl.set(a,u)}),(0,Ar.U)(function(u){return u2(u)}))}},{key:"getNamedSvgIcon",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=XV(o,i),s=this._svgIconConfigs.get(a);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(o,i))return this._svgIconConfigs.set(a,s),this._getSvgFromConfig(s);var u=this._iconSetConfigs.get(o);return u?this._getSvgFromIconSetConfigs(i,u):(0,Zoe._)(JV(a))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(i){return i.svgText?(0,ur.of)(u2(this._svgElementFromConfig(i))):this._loadSvgIconFromConfig(i).pipe((0,Ar.U)(function(o){return u2(o)}))}},{key:"_getSvgFromIconSetConfigs",value:function(i,o){var a=this,s=this._extractIconWithNameFromAnySet(i,o);if(s)return(0,ur.of)(s);var u=o.filter(function(p){return!p.svgText}).map(function(p){return a._loadSvgIconSetFromConfig(p).pipe((0,qf.K)(function(m){var b=a._sanitizer.sanitize(e.q3G.RESOURCE_URL,p.url),I="Loading icon set URL: ".concat(b," failed: ").concat(m.message);return a._errorHandler.handleError(new Error(I)),(0,ur.of)(null)}))});return(0,kZ.D)(u).pipe((0,Ar.U)(function(){var p=a._extractIconWithNameFromAnySet(i,o);if(!p)throw JV(i);return p}))}},{key:"_extractIconWithNameFromAnySet",value:function(i,o){for(var a=o.length-1;a>=0;a--){var s=o[a];if(s.svgText&&s.svgText.indexOf(i)>-1){var u=this._svgElementFromConfig(s),p=this._extractSvgIconFromSet(u,i,s.options);if(p)return p}}return null}},{key:"_loadSvgIconFromConfig",value:function(i){var o=this;return this._fetchIcon(i).pipe((0,ba.b)(function(a){return i.svgText=a}),(0,Ar.U)(function(){return o._svgElementFromConfig(i)}))}},{key:"_loadSvgIconSetFromConfig",value:function(i){return i.svgText?(0,ur.of)(null):this._fetchIcon(i).pipe((0,ba.b)(function(o){return i.svgText=o}))}},{key:"_extractSvgIconFromSet",value:function(i,o,a){var s=i.querySelector('[id="'.concat(o,'"]'));if(!s)return null;var u=s.cloneNode(!0);if(u.removeAttribute("id"),"svg"===u.nodeName.toLowerCase())return this._setSvgAttributes(u,a);if("symbol"===u.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(u),a);var p=this._svgElementFromString("");return p.appendChild(u),this._setSvgAttributes(p,a)}},{key:"_svgElementFromString",value:function(i){var o=this._document.createElement("DIV");o.innerHTML=i;var a=o.querySelector("svg");if(!a)throw Error(" tag not found");return a}},{key:"_toSvgElement",value:function(i){for(var o=this._svgElementFromString(""),a=i.attributes,s=0;s*,.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",Yoe=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Joe=(0,dn.pj)((0,dn.Id)((0,dn.Kr)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}()))),On=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s){var u;(0,g.Z)(this,i),(u=t.call(this,o))._focusMonitor=a,u._animationMode=s,u.isRoundButton=u._hasHostAttributes("mat-fab","mat-mini-fab"),u.isIconButton=u._hasHostAttributes("mat-icon-button");var m,p=(0,_.Z)(Yoe);try{for(p.s();!(m=p.n()).done;){var b=m.value;u._hasHostAttributes(b)&&u._getHostElement().classList.add(b)}}catch(I){p.e(I)}finally{p.f()}return o.nativeElement.classList.add("mat-button-base"),u.isRoundButton&&(u.color="accent"),u}return(0,T.Z)(i,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(a,s){a?this._focusMonitor.focusVia(this._getHostElement(),a,s):this._getHostElement().focus(s)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var a=this,s=arguments.length,u=new Array(s),p=0;p visible",(0,on.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,on.F4)([(0,on.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,on.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,on.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,on.eR)("* => hidden",(0,on.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,on.oB)({opacity:0})))])},aq="tooltip-panel",sq=(0,ti.i$)({passive:!0}),lq=new e.OlP("mat-tooltip-scroll-strategy"),iae={provide:lq,deps:[Xi.aV],useFactory:function(n){return function(){return n.scrollStrategies.reposition({scrollThrottle:20})}}},oae=new e.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),sae=function(){var n=function(){function r(t,i,o,a,s,u,p,m,b,I,F,G){var Y=this;(0,g.Z)(this,r),this._overlay=t,this._elementRef=i,this._scrollDispatcher=o,this._viewContainerRef=a,this._ngZone=s,this._platform=u,this._ariaDescriber=p,this._focusMonitor=m,this._dir=I,this._defaultOptions=F,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 Rn.xQ,this._handleKeydown=function(te){Y._isTooltipVisible()&&te.keyCode===Kr.hY&&!(0,Kr.Vb)(te)&&(te.preventDefault(),te.stopPropagation(),Y._ngZone.run(function(){return Y.hide(0)}))},this._scrollStrategy=b,this._document=G,F&&(F.position&&(this.position=F.position),F.touchGestures&&(this.touchGestures=F.touchGestures)),I.change.pipe((0,qr.R)(this._destroyed)).subscribe(function(){Y._overlayRef&&Y._updatePosition(Y._overlayRef)}),s.runOutsideAngular(function(){i.nativeElement.addEventListener("keydown",Y._handleKeydown)})}return(0,T.Z)(r,[{key:"position",get:function(){return this._position},set:function(i){var o;i!==this._position&&(this._position=i,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(o=this._tooltipInstance)||void 0===o||o.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(i){this._disabled=(0,In.Ig)(i),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(i){var o=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=i?String(i).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){o._ariaDescriber.describe(o._elementRef.nativeElement,o.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(i){this._tooltipClass=i,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var i=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,qr.R)(this._destroyed)).subscribe(function(o){o?"keyboard"===o&&i._ngZone.run(function(){return i.show()}):i._ngZone.run(function(){return i.hide(0)})})}},{key:"ngOnDestroy",value:function(){var i=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),i.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(o){var a=(0,C.Z)(o,2);i.removeEventListener(a[0],a[1],sq)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(i,this.message,"tooltip"),this._focusMonitor.stopMonitoring(i)}},{key:"show",value:function(){var i=this,o=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 a=this._createOverlay();this._detach(),this._portal=this._portal||new Ni.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=a.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,qr.R)(this._destroyed)).subscribe(function(){return i._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(o)}}},{key:"hide",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(i)}},{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 i=this;if(this._overlayRef)return this._overlayRef;var o=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),a=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(o);return a.positionChanges.pipe((0,qr.R)(this._destroyed)).subscribe(function(s){i._updateCurrentPositionClass(s.connectionPair),i._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&i._tooltipInstance.isVisible()&&i._ngZone.run(function(){return i.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:a,panelClass:"".concat(this._cssClassPrefix,"-").concat(aq),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,qr.R)(this._destroyed)).subscribe(function(){return i._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,qr.R)(this._destroyed)).subscribe(function(){var s;return null===(s=i._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(i){var o=i.getConfig().positionStrategy,a=this._getOrigin(),s=this._getOverlayPosition();o.withPositions([this._addOffset(Object.assign(Object.assign({},a.main),s.main)),this._addOffset(Object.assign(Object.assign({},a.fallback),s.fallback))])}},{key:"_addOffset",value:function(i){return i}},{key:"_getOrigin",value:function(){var a,i=!this._dir||"ltr"==this._dir.value,o=this.position;"above"==o||"below"==o?a={originX:"center",originY:"above"==o?"top":"bottom"}:"before"==o||"left"==o&&i||"right"==o&&!i?a={originX:"start",originY:"center"}:("after"==o||"right"==o&&i||"left"==o&&!i)&&(a={originX:"end",originY:"center"});var s=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:s.x,originY:s.y}}}},{key:"_getOverlayPosition",value:function(){var a,i=!this._dir||"ltr"==this._dir.value,o=this.position;"above"==o?a={overlayX:"center",overlayY:"bottom"}:"below"==o?a={overlayX:"center",overlayY:"top"}:"before"==o||"left"==o&&i||"right"==o&&!i?a={overlayX:"end",overlayY:"center"}:("after"==o||"right"==o&&i||"left"==o&&!i)&&(a={overlayX:"start",overlayY:"center"});var s=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:s.x,overlayY:s.y}}}},{key:"_updateTooltipMessage",value:function(){var i=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,qi.q)(1),(0,qr.R)(this._destroyed)).subscribe(function(){i._tooltipInstance&&i._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(i){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=i,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(i,o){return"above"===this.position||"below"===this.position?"top"===o?o="bottom":"bottom"===o&&(o="top"):"end"===i?i="start":"start"===i&&(i="end"),{x:i,y:o}}},{key:"_updateCurrentPositionClass",value:function(i){var u,o=i.overlayY,a=i.originX;if((u="center"===o?this._dir&&"rtl"===this._dir.value?"end"===a?"left":"right":"start"===a?"left":"right":"bottom"===o&&"top"===i.originY?"above":"below")!==this._currentPosition){var p=this._overlayRef;if(p){var m="".concat(this._cssClassPrefix,"-").concat(aq,"-");p.removePanelClass(m+this._currentPosition),p.addPanelClass(m+u)}this._currentPosition=u}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var i=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){i._setupPointerExitEventsIfNeeded(),i.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){i._setupPointerExitEventsIfNeeded(),clearTimeout(i._touchstartTimeout),i._touchstartTimeout=setTimeout(function(){return i.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var o,i=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var a=[];if(this._platformSupportsMouseEvents())a.push(["mouseleave",function(){return i.hide()}],["wheel",function(u){return i._wheelListener(u)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var s=function(){clearTimeout(i._touchstartTimeout),i.hide(i._defaultOptions.touchendHideDelay)};a.push(["touchend",s],["touchcancel",s])}this._addListeners(a),(o=this._passiveListeners).push.apply(o,a)}}},{key:"_addListeners",value:function(i){var o=this;i.forEach(function(a){var s=(0,C.Z)(a,2);o._elementRef.nativeElement.addEventListener(s[0],s[1],sq)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(i){if(this._isTooltipVisible()){var o=this._document.elementFromPoint(i.clientX,i.clientY),a=this._elementRef.nativeElement;o!==a&&!a.contains(o)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var i=this.touchGestures;if("off"!==i){var o=this._elementRef.nativeElement,a=o.style;("on"===i||"INPUT"!==o.nodeName&&"TEXTAREA"!==o.nodeName)&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),("on"===i||!o.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(Xi.aV),e.Y36(e.SBq),e.Y36(la.mF),e.Y36(e.s_b),e.Y36(e.R0b),e.Y36(ti.t4),e.Y36(Ti.$s),e.Y36(Ti.tE),e.Y36(void 0),e.Y36(Ca.Is),e.Y36(void 0),e.Y36(Mt.K0))},n.\u0275dir=e.lG2({type:n,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n}(),Ra=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p,m,b,I,F,G,Y,te){var ce;return(0,g.Z)(this,i),(ce=t.call(this,o,a,s,u,p,m,b,I,F,G,Y,te))._tooltipComponent=uae,ce}return i}(sae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Xi.aV),e.Y36(e.SBq),e.Y36(la.mF),e.Y36(e.s_b),e.Y36(e.R0b),e.Y36(ti.t4),e.Y36(Ti.$s),e.Y36(Ti.tE),e.Y36(lq),e.Y36(Ca.Is,8),e.Y36(oae,8),e.Y36(Mt.K0))},n.\u0275dir=e.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[e.qOj]}),n}(),lae=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Rn.xQ}return(0,T.Z)(r,[{key:"show",value:function(i){var o=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){o._visibility="visible",o._showTimeoutId=void 0,o._onShow(),o._markForCheck()},i)}},{key:"hide",value:function(i){var o=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){o._visibility="hidden",o._hideTimeoutId=void 0,o._markForCheck()},i)}},{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(i){var o=i.toState;"hidden"===o&&!this.isVisible()&&this._onHide.next(),("visible"===o||"hidden"===o)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.sBO))},n.\u0275dir=e.lG2({type:n}),n}(),uae=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a){var s;return(0,g.Z)(this,i),(s=t.call(this,o))._breakpointObserver=a,s._isHandset=s._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),s}return i}(lae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.sBO),e.Y36(d2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,i){2&t&&e.Udp("zoom","visible"===i._visibility?1:null)},features:[e.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,i){var o;1&t&&(e.TgZ(0,"div",0),e.NdJ("@state.start",function(){return i._animationStart()})("@state.done",function(s){return i._animationDone(s)}),e.ALo(1,"async"),e._uU(2),e.qZA()),2&t&&(e.ekj("mat-tooltip-handset",null==(o=e.lcZ(1,5,i._isHandset))?null:o.matches),e.Q6J("ngClass",i.tooltipClass)("@state",i._visibility),e.xp6(2),e.Oqu(i.message))},directives:[Mt.mk],pipes:[Mt.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:[eae.tooltipState]},changeDetection:0}),n}(),uq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[iae],imports:[[Ti.rt,Mt.ez,Xi.U8,dn.BQ],dn.BQ,la.ZD]}),n}();function cae(n,r){1&n&&(e.TgZ(0,"div",4),e._UZ(1,"mat-spinner",5),e.qZA())}function dae(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"div",7),e.TgZ(2,"mat-icon"),e._uU(3,"error_outline"),e.qZA(),e.qZA(),e.TgZ(4,"div"),e._uU(5),e.qZA(),e.TgZ(6,"div"),e.TgZ(7,"button",8),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).refresh()}),e.TgZ(8,"mat-icon"),e._uU(9,"refresh"),e.qZA(),e.qZA(),e.TgZ(10,"button",9),e.TgZ(11,"mat-icon"),e._uU(12,"home"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(5),e.hij("Error occurred: ",i.error.message,"")}}function pae(n,r){if(1&n&&(e.TgZ(0,"div",1),e.YNc(1,cae,2,0,"div",2),e.YNc(2,dae,13,1,"div",3),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.visible&&!t.error),e.xp6(1),e.Q6J("ngIf",t.error)}}var MZ=function(){function n(r,t){this.progressService=r,this.router=t,this.visible=!1}return n.prototype.ngOnInit=function(){var r=this;this.progressService.state.subscribe(function(t){r.visible=t.visible,t.error&&!r.error&&(r.error=t.error),t.clear&&(r.error=null)}),this.routerSubscription=this.router.events.subscribe(function(){r.progressService.clear()})},n.prototype.refresh=function(){this.router.navigateByUrl(this.router.url)},n.prototype.ngOnDestroy=function(){this.routerSubscription.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(zf),e.Y36(Dr))},n.\u0275cmp=e.Xpm({type:n,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(t,i){1&t&&e.YNc(0,pae,3,2,"div",0),2&t&&e.Q6J("ngIf",i.visible||i.error)},directives:[Mt.O5,YV,pr,On,Ra,ia],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:#00000080;z-index:2000}.loading-spinner[_ngcontent-%COMP%], .error-state[_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}"]}),n}(),fae=function(){function n(r,t,i,o){this.router=r,this.serverService=t,this.progressService=i,this.document=o}return n.prototype.ngOnInit=function(){var r=this;this.progressService.activate(),setTimeout(function(){var t;t=parseInt(r.document.location.port,10)?parseInt(r.document.location.port,10):"https:"==r.document.location.protocol?443:80,r.serverService.getLocalServer(r.document.location.hostname,t).then(function(i){r.progressService.deactivate(),r.router.navigate(["/server",i.id,"projects"])})},100)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(zr),e.Y36(zf),e.Y36(Mt.K0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-bundled-server-finder"]],decls:1,vars:0,template:function(t,i){1&t&&e._UZ(0,"app-progress")},directives:[MZ],styles:[""]}),n}(),Kn=f(61855),p2=function(){function n(){this.dataChange=new ji.X([])}return Object.defineProperty(n.prototype,"data",{get:function(){return this.dataChange.value},enumerable:!1,configurable:!0}),n.prototype.addServer=function(r){var t=this.data.slice();t.push(r),this.dataChange.next(t)},n.prototype.addServers=function(r){this.dataChange.next(r)},n.prototype.remove=function(r){var t=this.data.indexOf(r);t>=0&&(this.data.splice(t,1),this.dataChange.next(this.data.slice()))},n.prototype.find=function(r){return this.data.find(function(t){return t.name===r})},n.prototype.findIndex=function(r){return this.data.findIndex(function(t){return t.name===r})},n.prototype.update=function(r){var t=this.findIndex(r.name);t>=0&&(this.data[t]=r,this.dataChange.next(this.data.slice()))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function hae(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"button",2),e.NdJ("click",function(){return e.CHM(t),e.oxw().action()}),e._uU(2),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Oqu(i.data.action)}}function mae(n,r){}var cq=new e.OlP("MatSnackBarData"),f2=function n(){(0,g.Z)(this,n),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},vae=Math.pow(2,31)-1,AZ=function(){function n(r,t){var i=this;(0,g.Z)(this,n),this._overlayRef=t,this._afterDismissed=new Rn.xQ,this._afterOpened=new Rn.xQ,this._onAction=new Rn.xQ,this._dismissedByAction=!1,this.containerInstance=r,this.onAction().subscribe(function(){return i.dismiss()}),r._onExit.subscribe(function(){return i._finishDismiss()})}return(0,T.Z)(n,[{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(t){var i=this;this._durationTimeoutId=setTimeout(function(){return i.dismiss()},Math.min(t,vae))}},{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}}]),n}(),gae=function(){var n=function(){function r(t,i){(0,g.Z)(this,r),this.snackBarRef=t,this.data=i}return(0,T.Z)(r,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(AZ),e.Y36(cq))},n.\u0275cmp=e.Xpm({type:n,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(t,i){1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA(),e.YNc(2,hae,3,1,"div",0)),2&t&&(e.xp6(1),e.Oqu(i.data.message),e.xp6(1),e.Q6J("ngIf",i.hasAction))},directives:[Mt.O5,On],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}),n}(),_ae={snackBarState:(0,on.X$)("state",[(0,on.SB)("void, hidden",(0,on.oB)({transform:"scale(0.8)",opacity:0})),(0,on.SB)("visible",(0,on.oB)({transform:"scale(1)",opacity:1})),(0,on.eR)("* => visible",(0,on.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,on.eR)("* => void, * => hidden",(0,on.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,on.oB)({opacity:0})))])},yae=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p){var m;return(0,g.Z)(this,i),(m=t.call(this))._ngZone=o,m._elementRef=a,m._changeDetectorRef=s,m._platform=u,m.snackBarConfig=p,m._announceDelay=150,m._destroyed=!1,m._onAnnounce=new Rn.xQ,m._onExit=new Rn.xQ,m._onEnter=new Rn.xQ,m._animationState="void",m.attachDomPortal=function(b){return m._assertNotAttached(),m._applySnackBarClasses(),m._portalOutlet.attachDomPortal(b)},m._live="assertive"!==p.politeness||p.announcementMessage?"off"===p.politeness?"off":"polite":"assertive",m._platform.FIREFOX&&("polite"===m._live&&(m._role="status"),"assertive"===m._live&&(m._role="alert")),m}return(0,T.Z)(i,[{key:"attachComponentPortal",value:function(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(a)}},{key:"onAnimationEnd",value:function(a){var u=a.toState;if(("void"===u&&"void"!==a.fromState||"hidden"===u)&&this._completeExit(),"visible"===u){var p=this._onEnter;this._ngZone.run(function(){p.next(),p.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 a=this;this._ngZone.onMicrotaskEmpty.pipe((0,qi.q)(1)).subscribe(function(){a._onExit.next(),a._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var a=this._elementRef.nativeElement,s=this.snackBarConfig.panelClass;s&&(Array.isArray(s)?s.forEach(function(u){return a.classList.add(u)}):a.classList.add(s)),"center"===this.snackBarConfig.horizontalPosition&&a.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&a.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){var s=a._elementRef.nativeElement.querySelector("[aria-hidden]"),u=a._elementRef.nativeElement.querySelector("[aria-live]");if(s&&u){var p=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&s.contains(document.activeElement)&&(p=document.activeElement),s.removeAttribute("aria-hidden"),u.appendChild(s),null==p||p.focus(),a._onAnnounce.next(),a._onAnnounce.complete()}},a._announceDelay)})}}]),i}(Ni.en);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ti.t4),e.Y36(f2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["snack-bar-container"]],viewQuery:function(t,i){var o;1&t&&e.Gf(Ni.Pl,7),2&t&&e.iGM(o=e.CRH())&&(i._portalOutlet=o.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,i){1&t&&e.WFA("@state.done",function(a){return i.onAnimationEnd(a)}),2&t&&e.d8E("@state",i._animationState)},features:[e.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.YNc(1,mae,0,0,"ng-template",1),e.qZA(),e._UZ(2,"div")),2&t&&(e.xp6(2),e.uIk("aria-live",i._live)("role",i._role))},directives:[Ni.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:[_ae.snackBarState]}}),n}(),dq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Xi.U8,Ni.eL,Mt.ez,c2,dn.BQ],dn.BQ]}),n}(),pq=new e.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new f2}}),Cae=function(){var n=function(){function r(t,i,o,a,s,u){(0,g.Z)(this,r),this._overlay=t,this._live=i,this._injector=o,this._breakpointObserver=a,this._parentSnackBar=s,this._defaultConfig=u,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=gae,this.snackBarContainerComponent=yae,this.handsetCssClass="mat-snack-bar-handset"}return(0,T.Z)(r,[{key:"_openedSnackBarRef",get:function(){var i=this._parentSnackBar;return i?i._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(i){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=i:this._snackBarRefAtThisLevel=i}},{key:"openFromComponent",value:function(i,o){return this._attach(i,o)}},{key:"openFromTemplate",value:function(i,o){return this._attach(i,o)}},{key:"open",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,s=Object.assign(Object.assign({},this._defaultConfig),a);return s.data={message:i,action:o},s.announcementMessage===i&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(i,o){var s=e.zs3.create({parent:o&&o.viewContainerRef&&o.viewContainerRef.injector||this._injector,providers:[{provide:f2,useValue:o}]}),u=new Ni.C5(this.snackBarContainerComponent,o.viewContainerRef,s),p=i.attach(u);return p.instance.snackBarConfig=o,p.instance}},{key:"_attach",value:function(i,o){var a=this,s=Object.assign(Object.assign(Object.assign({},new f2),this._defaultConfig),o),u=this._createOverlay(s),p=this._attachSnackBarContainer(u,s),m=new AZ(p,u);if(i instanceof e.Rgc){var b=new Ni.UE(i,null,{$implicit:s.data,snackBarRef:m});m.instance=p.attachTemplatePortal(b)}else{var I=this._createInjector(s,m),F=new Ni.C5(i,void 0,I),G=p.attachComponentPortal(F);m.instance=G.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe((0,qr.R)(u.detachments())).subscribe(function(Y){var te=u.overlayElement.classList;Y.matches?te.add(a.handsetCssClass):te.remove(a.handsetCssClass)}),s.announcementMessage&&p._onAnnounce.subscribe(function(){a._live.announce(s.announcementMessage,s.politeness)}),this._animateSnackBar(m,s),this._openedSnackBarRef=m,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(i,o){var a=this;i.afterDismissed().subscribe(function(){a._openedSnackBarRef==i&&(a._openedSnackBarRef=null),o.announcementMessage&&a._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){i.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):i.containerInstance.enter(),o.duration&&o.duration>0&&i.afterOpened().subscribe(function(){return i._dismissAfter(o.duration)})}},{key:"_createOverlay",value:function(i){var o=new Xi.X_;o.direction=i.direction;var a=this._overlay.position().global(),s="rtl"===i.direction,u="left"===i.horizontalPosition||"start"===i.horizontalPosition&&!s||"end"===i.horizontalPosition&&s,p=!u&&"center"!==i.horizontalPosition;return u?a.left("0"):p?a.right("0"):a.centerHorizontally(),"top"===i.verticalPosition?a.top("0"):a.bottom("0"),o.positionStrategy=a,this._overlay.create(o)}},{key:"_createInjector",value:function(i,o){return e.zs3.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:AZ,useValue:o},{provide:cq,useValue:i.data}]})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(Xi.aV),e.LFG(Ti.Kd),e.LFG(e.zs3),e.LFG(d2),e.LFG(n,12),e.LFG(pq))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(Xi.aV),e.LFG(Ti.Kd),e.LFG(e.gxx),e.LFG(d2),e.LFG(n,12),e.LFG(pq))},token:n,providedIn:dq}),n}(),rr=function(){function n(r,t){this.snackbar=r,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 n.prototype.error=function(r){var t=this;this.zone.run(function(){t.snackbar.open(r,"Close",t.snackBarConfigForError)})},n.prototype.warning=function(r){var t=this;this.zone.run(function(){t.snackbar.open(r,"Close",t.snackBarConfigForWarning)})},n.prototype.success=function(r){var t=this;this.zone.run(function(){t.snackbar.open(r,"Close",t.snackBarConfigForSuccess)})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Cae),e.LFG(e.R0b))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Sae=["*",[["mat-card-footer"]]],Tae=["*","mat-card-footer"],DZ=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n}(),fq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),n}(),hq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),n}(),Mae=function(){var n=function r(){(0,g.Z)(this,r),this.align="start"};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("mat-card-actions-align-end","end"===i.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),n}(),bi=function(){var n=function r(t){(0,g.Z)(this,r),this._animationMode=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(ss.Qb,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:Tae,decls:2,vars:0,template:function(t,i){1&t&&(e.F$t(Sae),e.Hsn(0),e.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}),n}(),Aae=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[dn.BQ],dn.BQ]}),n}(),Vn=f(36410),mq=(f(54562),(0,ti.i$)({passive:!0})),vq=function(){var n=function(){function r(t,i){(0,g.Z)(this,r),this._platform=t,this._ngZone=i,this._monitoredElements=new Map}return(0,T.Z)(r,[{key:"monitor",value:function(i){var o=this;if(!this._platform.isBrowser)return Gm.E;var a=(0,In.fI)(i),s=this._monitoredElements.get(a);if(s)return s.subject;var u=new Rn.xQ,p="cdk-text-field-autofilled",m=function(I){"cdk-text-field-autofill-start"!==I.animationName||a.classList.contains(p)?"cdk-text-field-autofill-end"===I.animationName&&a.classList.contains(p)&&(a.classList.remove(p),o._ngZone.run(function(){return u.next({target:I.target,isAutofilled:!1})})):(a.classList.add(p),o._ngZone.run(function(){return u.next({target:I.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){a.addEventListener("animationstart",m,mq),a.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(a,{subject:u,unlisten:function(){a.removeEventListener("animationstart",m,mq)}}),u}},{key:"stopMonitoring",value:function(i){var o=(0,In.fI)(i),a=this._monitoredElements.get(o);a&&(a.unlisten(),a.subject.complete(),o.classList.remove("cdk-text-field-autofill-monitored"),o.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(o))}},{key:"ngOnDestroy",value:function(){var i=this;this._monitoredElements.forEach(function(o,a){return i.stopMonitoring(a)})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(ti.t4),e.LFG(e.R0b))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(ti.t4),e.LFG(e.R0b))},token:n,providedIn:"root"}),n}(),gq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[ti.ud]]}),n}(),Pae=new e.OlP("MAT_INPUT_VALUE_ACCESSOR"),Iae=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Rae=0,Nae=(0,dn.FD)(function(){return function n(r,t,i,o){(0,g.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=t,this._parentFormGroup=i,this.ngControl=o}}()),hr=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p,m,b,I,F,G){var Y;(0,g.Z)(this,i),(Y=t.call(this,m,u,p,s))._elementRef=o,Y._platform=a,Y._autofillMonitor=I,Y._formField=G,Y._uid="mat-input-".concat(Rae++),Y.focused=!1,Y.stateChanges=new Rn.xQ,Y.controlType="mat-input",Y.autofilled=!1,Y._disabled=!1,Y._required=!1,Y._type="text",Y._readonly=!1,Y._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(xe){return(0,ti.qK)().has(xe)});var te=Y._elementRef.nativeElement,ce=te.nodeName.toLowerCase();return Y._inputValueAccessor=b||te,Y._previousNativeValue=Y.value,Y.id=Y.id,a.IOS&&F.runOutsideAngular(function(){o.nativeElement.addEventListener("keyup",function(xe){var lt=xe.target;!lt.value&&0===lt.selectionStart&&0===lt.selectionEnd&&(lt.setSelectionRange(1,1),lt.setSelectionRange(0,0))})}),Y._isServer=!Y._platform.isBrowser,Y._isNativeSelect="select"===ce,Y._isTextarea="textarea"===ce,Y._isInFormField=!!G,Y._isNativeSelect&&(Y.controlType=te.multiple?"mat-native-select-multiple":"mat-native-select"),Y}return(0,T.Z)(i,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(a){this._disabled=(0,In.Ig)(a),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(a){this._id=a||this._uid}},{key:"required",get:function(){return this._required},set:function(a){this._required=(0,In.Ig)(a)}},{key:"type",get:function(){return this._type},set:function(a){this._type=a||"text",this._validateType(),!this._isTextarea&&(0,ti.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(a){a!==this.value&&(this._inputValueAccessor.value=a,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(a){this._readonly=(0,In.Ig)(a)}},{key:"ngAfterViewInit",value:function(){var a=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(s){a.autofilled=s.isAutofilled,a.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(a){this._elementRef.nativeElement.focus(a)}},{key:"_focusChanged",value:function(a){a!==this.focused&&(this.focused=a,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var a,s,u=(null===(s=null===(a=this._formField)||void 0===a?void 0:a._hideControlPlaceholder)||void 0===s?void 0:s.call(a))?null:this.placeholder;if(u!==this._previousPlaceholder){var p=this._elementRef.nativeElement;this._previousPlaceholder=u,u?p.setAttribute("placeholder",u):p.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var a=this._elementRef.nativeElement.value;this._previousNativeValue!==a&&(this._previousNativeValue=a,this.stateChanges.next())}},{key:"_validateType",value:function(){Iae.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var a=this._elementRef.nativeElement.validity;return a&&a.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var a=this._elementRef.nativeElement,s=a.options[0];return this.focused||a.multiple||!this.empty||!!(a.selectedIndex>-1&&s&&s.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(a){a.length?this._elementRef.nativeElement.setAttribute("aria-describedby",a.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),i}(Nae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(ti.t4),e.Y36(ne.a5,10),e.Y36(ne.F,8),e.Y36(ne.sg,8),e.Y36(dn.rD),e.Y36(Pae,10),e.Y36(vq),e.Y36(e.R0b),e.Y36(Vn.G_,8))},n.\u0275dir=e.lG2({type:n,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(t,i){1&t&&e.NdJ("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&t&&(e.Ikx("disabled",i.disabled)("required",i.required),e.uIk("id",i.id)("data-placeholder",i.placeholder)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),e.ekj("mat-input-server",i._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:[e._Bn([{provide:Vn.Eo,useExisting:n}]),e.qOj,e.TTD]}),n}(),Zae=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[dn.rD],imports:[[gq,Vn.lN,dn.BQ],gq,Vn.lN]}),n}(),hi=f(73044);function Lae(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"You must enter a value"),e.qZA())}function Fae(n,r){if(1&n&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function Bae(n,r){if(1&n&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function Uae(n,r){if(1&n&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function Hae(n,r){if(1&n&&(e.TgZ(0,"mat-form-field"),e.TgZ(1,"mat-select",15),e.YNc(2,Uae,2,2,"mat-option",10),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.authorizations)}}function Vae(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",16),e.qZA())}function qae(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",17),e.qZA())}var jae=function(){function n(r,t,i,o,a){this.serverService=r,this.serverDatabase=t,this.route=i,this.router=o,this.toasterService=a,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 ne.cw({name:new ne.NI("",[ne.kI.required]),location:new ne.NI(""),protocol:new ne.NI("http:"),authorization:new ne.NI("none"),login:new ne.NI(""),password:new ne.NI("")})}return n.prototype.ngOnInit=function(){return(0,Kn.mG)(this,void 0,void 0,function(){var r=this;return(0,Kn.Jh)(this,function(t){return this.serverService.isServiceInitialized&&this.getServers(),this.serverService.serviceInitialized.subscribe(function(i){return(0,Kn.mG)(r,void 0,void 0,function(){return(0,Kn.Jh)(this,function(o){return i&&this.getServers(),[2]})})}),[2]})})},n.prototype.getServers=function(){return(0,Kn.mG)(this,void 0,void 0,function(){var r,t,i=this;return(0,Kn.Jh)(this,function(o){switch(o.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 r=o.sent(),(t=r.filter(function(a){return a.host===i.serverIp&&a.port===i.serverPort})[0])?this.router.navigate(["/server",t.id,"project",this.projectId]):this.serverOptionsVisibility=!0,[2]}})})},n.prototype.createServer=function(){var r=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 l2;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(i){r.router.navigate(["/server",i.id,"project",r.projectId])})}else this.toasterService.error("Please use correct values");else this.toasterService.error("Please use correct values")},n.\u0275fac=function(t){return new(t||n)(e.Y36(zr),e.Y36(p2),e.Y36(Fr),e.Y36(Dr),e.Y36(rr))},n.\u0275cmp=e.Xpm({type:n,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(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Add new server"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"form",6),e.TgZ(8,"mat-form-field"),e._UZ(9,"input",7),e.YNc(10,Lae,2,0,"mat-error",8),e.qZA(),e.TgZ(11,"mat-form-field"),e.TgZ(12,"mat-select",9),e.YNc(13,Fae,2,2,"mat-option",10),e.qZA(),e.qZA(),e.TgZ(14,"mat-form-field"),e.TgZ(15,"mat-select",11),e.YNc(16,Bae,2,2,"mat-option",10),e.qZA(),e.qZA(),e.YNc(17,Hae,3,1,"mat-form-field",8),e.YNc(18,Vae,2,0,"mat-form-field",8),e.YNc(19,qae,2,0,"mat-form-field",8),e.qZA(),e.qZA(),e.TgZ(20,"div",12),e.TgZ(21,"button",13),e.NdJ("click",function(){return i.createServer()}),e._uU(22,"Add server"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.Q6J("hidden",!i.serverOptionsVisibility),e.xp6(7),e.Q6J("formGroup",i.serverForm),e.xp6(3),e.Q6J("ngIf",i.serverForm.get("name").hasError("required")),e.xp6(3),e.Q6J("ngForOf",i.locations),e.xp6(3),e.Q6J("ngForOf",i.protocols),e.xp6(1),e.Q6J("ngIf","remote"===i.serverForm.get("location").value),e.xp6(1),e.Q6J("ngIf","basic"===i.serverForm.get("authorization").value),e.xp6(1),e.Q6J("ngIf","basic"===i.serverForm.get("authorization").value))},directives:[bi,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,Mt.O5,hi.gD,Mt.sg,On,Vn.TO,dn.ey],styles:["mat-form-field{width:100%}\n"],encapsulation:2}),n}(),zae=0,OZ=new e.OlP("CdkAccordion"),Wae=function(){var n=function(){function r(){(0,g.Z)(this,r),this._stateChanges=new Rn.xQ,this._openCloseAllActions=new Rn.xQ,this.id="cdk-accordion-".concat(zae++),this._multi=!1}return(0,T.Z)(r,[{key:"multi",get:function(){return this._multi},set:function(i){this._multi=(0,In.Ig)(i)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(i){this._stateChanges.next(i)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),r}();return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:OZ,useExisting:n}]),e.TTD]}),n}(),Gae=0,Jae=function(){var n=function(){function r(t,i,o){var a=this;(0,g.Z)(this,r),this.accordion=t,this._changeDetectorRef=i,this._expansionDispatcher=o,this._openCloseAllSubscription=Ya.w.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-".concat(Gae++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=o.listen(function(s,u){a.accordion&&!a.accordion.multi&&a.accordion.id===u&&a.id!==s&&(a.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return(0,T.Z)(r,[{key:"expanded",get:function(){return this._expanded},set:function(i){i=(0,In.Ig)(i),this._expanded!==i&&(this._expanded=i,this.expandedChange.emit(i),i?(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(i){this._disabled=(0,In.Ig)(i)}},{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 i=this;return this.accordion._openCloseAllActions.subscribe(function(o){i.disabled||(i.expanded=o)})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(OZ,12),e.Y36(e.sBO),e.Y36(Li.A8))},n.\u0275dir=e.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:OZ,useValue:void 0}])]}),n}(),Qae=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n}(),Kae=["body"];function Xae(n,r){}var $ae=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],ese=["mat-expansion-panel-header","*","mat-action-row"];function tse(n,r){if(1&n&&e._UZ(0,"span",2),2&n){var t=e.oxw();e.Q6J("@indicatorRotate",t._getExpandedState())}}var nse=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],rse=["mat-panel-title","mat-panel-description","*"],PZ=new e.OlP("MAT_ACCORDION"),_q="225ms cubic-bezier(0.4,0.0,0.2,1)",yq={indicatorRotate:(0,on.X$)("indicatorRotate",[(0,on.SB)("collapsed, void",(0,on.oB)({transform:"rotate(0deg)"})),(0,on.SB)("expanded",(0,on.oB)({transform:"rotate(180deg)"})),(0,on.eR)("expanded <=> collapsed, void => collapsed",(0,on.jt)(_q))]),bodyExpansion:(0,on.X$)("bodyExpansion",[(0,on.SB)("collapsed, void",(0,on.oB)({height:"0px",visibility:"hidden"})),(0,on.SB)("expanded",(0,on.oB)({height:"*",visibility:"visible"})),(0,on.eR)("expanded <=> collapsed, void => collapsed",(0,on.jt)(_q))])},ise=function(){var n=function r(t){(0,g.Z)(this,r),this._template=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n}(),ose=0,bq=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Ju=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p,m,b){var I;return(0,g.Z)(this,i),(I=t.call(this,o,a,s))._viewContainerRef=u,I._animationMode=m,I._hideToggle=!1,I.afterExpand=new e.vpe,I.afterCollapse=new e.vpe,I._inputChanges=new Rn.xQ,I._headerId="mat-expansion-panel-header-".concat(ose++),I._bodyAnimationDone=new Rn.xQ,I.accordion=o,I._document=p,I._bodyAnimationDone.pipe((0,sm.x)(function(F,G){return F.fromState===G.fromState&&F.toState===G.toState})).subscribe(function(F){"void"!==F.fromState&&("expanded"===F.toState?I.afterExpand.emit():"collapsed"===F.toState&&I.afterCollapse.emit())}),b&&(I.hideToggle=b.hideToggle),I}return(0,T.Z)(i,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(a){this._hideToggle=(0,In.Ig)(a)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(a){this._togglePosition=a}},{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 a=this;this._lazyContent&&this.opened.pipe((0,ea.O)(null),(0,_i.h)(function(){return a.expanded&&!a._portal}),(0,qi.q)(1)).subscribe(function(){a._portal=new Ni.UE(a._lazyContent._template,a._viewContainerRef)})}},{key:"ngOnChanges",value:function(a){this._inputChanges.next(a)}},{key:"ngOnDestroy",value:function(){(0,N.Z)((0,D.Z)(i.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var a=this._document.activeElement,s=this._body.nativeElement;return a===s||s.contains(a)}return!1}}]),i}(Jae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(PZ,12),e.Y36(e.sBO),e.Y36(Li.A8),e.Y36(e.s_b),e.Y36(Mt.K0),e.Y36(ss.Qb,8),e.Y36(bq,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,ise,5),2&t&&e.iGM(a=e.CRH())&&(i._lazyContent=a.first)},viewQuery:function(t,i){var o;1&t&&e.Gf(Kae,5),2&t&&e.iGM(o=e.CRH())&&(i._body=o.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,i){2&t&&e.ekj("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:PZ,useValue:void 0}]),e.qOj,e.TTD],ngContentSelectors:ese,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,i){1&t&&(e.F$t($ae),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(a){return i._bodyAnimationDone.next(a)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,Xae,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("@bodyExpansion",i._getExpandedState())("id",i.id),e.uIk("aria-labelledby",i._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",i._portal))},directives:[Ni.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:[yq.bodyExpansion]},changeDetection:0}),n}(),lse=(0,dn.sb)(function n(){(0,g.Z)(this,n)}),Qu=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p,m,b){var I;(0,g.Z)(this,i),(I=t.call(this)).panel=o,I._element=a,I._focusMonitor=s,I._changeDetectorRef=u,I._animationMode=m,I._parentChangeSubscription=Ya.w.EMPTY;var F=o.accordion?o.accordion._stateChanges.pipe((0,_i.h)(function(G){return!(!G.hideToggle&&!G.togglePosition)})):Gm.E;return I.tabIndex=parseInt(b||"")||0,I._parentChangeSubscription=(0,ro.T)(o.opened,o.closed,F,o._inputChanges.pipe((0,_i.h)(function(G){return!!(G.hideToggle||G.disabled||G.togglePosition)}))).subscribe(function(){return I._changeDetectorRef.markForCheck()}),o.closed.pipe((0,_i.h)(function(){return o._containsFocus()})).subscribe(function(){return s.focusVia(a,"program")}),p&&(I.expandedHeight=p.expandedHeight,I.collapsedHeight=p.collapsedHeight),I}return(0,T.Z)(i,[{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 a=this._isExpanded();return a&&this.expandedHeight?this.expandedHeight:!a&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(a){switch(a.keyCode){case Kr.L_:case Kr.K5:(0,Kr.Vb)(a)||(a.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(a))}}},{key:"focus",value:function(a,s){a?this._focusMonitor.focusVia(this._element,a,s):this._element.nativeElement.focus(s)}},{key:"ngAfterViewInit",value:function(){var a=this;this._focusMonitor.monitor(this._element).subscribe(function(s){s&&a.panel.accordion&&a.panel.accordion._handleHeaderFocus(a)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),i}(lse);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Ju,1),e.Y36(e.SBq),e.Y36(Ti.tE),e.Y36(e.sBO),e.Y36(bq,8),e.Y36(ss.Qb,8),e.$8M("tabindex"))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,i){1&t&&e.NdJ("click",function(){return i._toggle()})("keydown",function(a){return i._keydown(a)}),2&t&&(e.uIk("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),e.Udp("height",i._getHeaderHeight()),e.ekj("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:rse,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,i){1&t&&(e.F$t(nse),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,tse,1,1,"span",1)),2&t&&(e.xp6(4),e.Q6J("ngIf",i._showToggle()))},directives:[Mt.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:[yq.indicatorRotate]},changeDetection:0}),n}(),use=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),n}(),id=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n}(),od=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){var o;return(0,g.Z)(this,i),(o=t.apply(this,arguments))._ownHeaders=new e.n_E,o._hideToggle=!1,o.displayMode="default",o.togglePosition="after",o}return(0,T.Z)(i,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(a){this._hideToggle=(0,In.Ig)(a)}},{key:"ngAfterContentInit",value:function(){var a=this;this._headers.changes.pipe((0,ea.O)(this._headers)).subscribe(function(s){a._ownHeaders.reset(s.filter(function(u){return u.panel.accordion===a})),a._ownHeaders.notifyOnChanges()}),this._keyManager=new Ti.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(a){this._keyManager.onKeydown(a)}},{key:"_handleHeaderFocus",value:function(a){this._keyManager.updateActiveItem(a)}},{key:"ngOnDestroy",value:function(){(0,N.Z)((0,D.Z)(i.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),i}(Wae);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,Qu,5),2&t&&e.iGM(a=e.CRH())&&(i._headers=a)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("mat-accordion-multi",i.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[e._Bn([{provide:PZ,useExisting:n}]),e.qOj]}),n}(),cse=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Mt.ez,dn.BQ,Qae,Ni.eL]]}),n}(),Cq=f(93386),IZ=["*"],RZ='.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',dse=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],pse=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Sq=(0,dn.Id)((0,dn.Kr)(function(){return function n(){(0,g.Z)(this,n)}}())),gse=(0,dn.Kr)(function(){return function n(){(0,g.Z)(this,n)}}()),Tq=new e.OlP("MatList"),xq=new e.OlP("MatNavList"),Cu=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){var o;return(0,g.Z)(this,i),(o=t.apply(this,arguments))._stateChanges=new Rn.xQ,o}return(0,T.Z)(i,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(Sq);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[e._Bn([{provide:xq,useExisting:n}]),e.qOj,e.TTD],ngContentSelectors:IZ,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[RZ],encapsulation:2,changeDetection:0}),n}(),NZ=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o){var a;return(0,g.Z)(this,i),(a=t.call(this))._elementRef=o,a._stateChanges=new Rn.xQ,"action-list"===a._getListType()&&o.nativeElement.classList.add("mat-action-list"),a}return(0,T.Z)(i,[{key:"_getListType",value:function(){var a=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===a?"list":"mat-action-list"===a?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(Sq);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[e._Bn([{provide:Tq,useExisting:n}]),e.qOj,e.TTD],ngContentSelectors:IZ,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[RZ],encapsulation:2,changeDetection:0}),n}(),wq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n}(),kq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n}(),cs=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u){var p;(0,g.Z)(this,i),(p=t.call(this))._element=o,p._isInteractiveList=!1,p._destroyed=new Rn.xQ,p._disabled=!1,p._isInteractiveList=!!(s||u&&"action-list"===u._getListType()),p._list=s||u;var m=p._getHostElement();return"button"===m.nodeName.toLowerCase()&&!m.hasAttribute("type")&&m.setAttribute("type","button"),p._list&&p._list._stateChanges.pipe((0,qr.R)(p._destroyed)).subscribe(function(){a.markForCheck()}),p}return(0,T.Z)(i,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(a){this._disabled=(0,In.Ig)(a)}},{key:"ngAfterContentInit",value:function(){(0,dn.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}}]),i}(gse);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(xq,8),e.Y36(Tq,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,wq,5),e.Suo(o,kq,5),e.Suo(o,dn.X2,5)),2&t&&(e.iGM(a=e.CRH())&&(i._avatar=a.first),e.iGM(a=e.CRH())&&(i._icon=a.first),e.iGM(a=e.CRH())&&(i._lines=a))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,i){2&t&&e.ekj("mat-list-item-disabled",i.disabled)("mat-list-item-avatar",i._avatar||i._icon)("mat-list-item-with-avatar",i._avatar||i._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[e.qOj],ngContentSelectors:pse,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(t,i){1&t&&(e.F$t(dse),e.TgZ(0,"div",0),e._UZ(1,"div",1),e.Hsn(2),e.TgZ(3,"div",2),e.Hsn(4,1),e.qZA(),e.Hsn(5,2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()))},directives:[dn.wG],encapsulation:2,changeDetection:0}),n}(),Tse=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[dn.uc,dn.si,dn.BQ,dn.us,Mt.ez],dn.uc,dn.BQ,dn.us,Cq.t]}),n}(),xse=function(){function n(r){this.httpClient=r,this.thirdpartylicenses="",this.releasenotes=""}return n.prototype.ngOnInit=function(){var r=this;this.httpClient.get(window.location.href+"/3rdpartylicenses.txt",{responseType:"text"}).subscribe(function(t){r.thirdpartylicenses=t.replace(new RegExp("\n","g"),"
")},function(t){404===t.status&&(r.thirdpartylicenses="File not found")}),this.httpClient.get("ReleaseNotes.txt",{responseType:"text"}).subscribe(function(t){r.releasenotes=t.replace(new RegExp("\n","g"),"
")})},n.prototype.goToDocumentation=function(){window.location.href="https://docs.gns3.com/docs/"},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vc.eN))},n.\u0275cmp=e.Xpm({type:n,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(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"h1"),e._uU(3,"Help"),e.qZA(),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"div",3),e.TgZ(6,"mat-accordion"),e.TgZ(7,"mat-expansion-panel"),e.TgZ(8,"mat-expansion-panel-header"),e.TgZ(9,"mat-panel-title"),e._uU(10," Useful shortcuts "),e.qZA(),e.qZA(),e.TgZ(11,"mat-list"),e.TgZ(12,"mat-list-item"),e._uU(13," ctrl + + to zoom in "),e.qZA(),e.TgZ(14,"mat-list-item"),e._uU(15," ctrl + - to zoom out "),e.qZA(),e.TgZ(16,"mat-list-item"),e._uU(17," ctrl + 0 to reset zoom "),e.qZA(),e.TgZ(18,"mat-list-item"),e._uU(19," ctrl + h to hide toolbar "),e.qZA(),e.TgZ(20,"mat-list-item"),e._uU(21," ctrl + a to select all items on map "),e.qZA(),e.TgZ(22,"mat-list-item"),e._uU(23," ctrl + shift + a to deselect all items on map "),e.qZA(),e.TgZ(24,"mat-list-item"),e._uU(25," ctrl + shift + s to go to preferences "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"mat-expansion-panel"),e.TgZ(27,"mat-expansion-panel-header"),e.TgZ(28,"mat-panel-title"),e._uU(29," Third party components "),e.qZA(),e.qZA(),e._UZ(30,"div",4),e.qZA(),e.TgZ(31,"mat-expansion-panel"),e.TgZ(32,"mat-expansion-panel-header"),e.TgZ(33,"mat-panel-title"),e._uU(34," Release notes "),e.qZA(),e.qZA(),e._UZ(35,"div",4),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"button",5),e.NdJ("click",function(){return i.goToDocumentation()}),e._uU(37,"Go to documentation"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(30),e.Q6J("innerHTML",i.thirdpartylicenses,e.oJD),e.xp6(5),e.Q6J("innerHTML",i.releasenotes,e.oJD))},directives:[od,Ju,Qu,id,NZ,cs,On],styles:[".full-width[_ngcontent-%COMP%]{width:100%;margin-top:20px}"]}),n}(),Mq=function(){function n(r){this.electronService=r}return n.prototype.isWindows=function(){return"win32"===this.electronService.process.platform},n.prototype.isLinux=function(){return"linux"===this.electronService.process.platform},n.prototype.isDarwin=function(){return"darwin"===this.electronService.process.platform},n.\u0275fac=function(t){return new(t||n)(e.LFG($a))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Aq=function(){function n(r){this.platformService=r}return n.prototype.get=function(){return this.platformService.isWindows()?this.getForWindows():this.platformService.isDarwin()?this.getForDarwin():this.getForLinux()},n.prototype.getForWindows=function(){var r=[{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}];return r},n.prototype.getForLinux=function(){return[]},n.prototype.getForDarwin=function(){return[]},n.\u0275fac=function(t){return new(t||n)(e.LFG(Mq))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Dq=function(){function n(r,t){this.electronService=r,this.externalSoftwareDefinition=t}return n.prototype.list=function(){var r=this.externalSoftwareDefinition.get(),t=this.electronService.remote.require("./installed-software.js").getInstalledSoftware(r);return r.map(function(i){return i.installed=t[i.name].length>0,i})},n.\u0275fac=function(t){return new(t||n)(e.LFG($a),e.LFG(Aq))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),wse=[[["caption"]],[["colgroup"],["col"]]],kse=["caption","colgroup, col"],jl=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){var o;return(0,g.Z)(this,i),(o=t.apply(this,arguments)).stickyCssClass="mat-table-sticky",o.needsPositionStickyOnElement=!1,o}return i}(om);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:Li.k,useClass:Li.yy},{provide:om,useExisting:n},{provide:Uc,useExisting:n},{provide:hC,useClass:jk},{provide:gC,useValue:null}]),e.qOj],ngContentSelectors:kse,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){1&t&&(e.F$t(wse),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[rm,yf,Jd,im],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}),n}(),nl=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(vf);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:vf,useExisting:n}]),e.qOj]}),n}(),rl=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(Hc);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:Hc,useExisting:n}]),e.qOj]}),n}(),il=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return(0,T.Z)(i,[{key:"name",get:function(){return this._name},set:function(a){this._setNameInput(a)}},{key:"_updateColumnCssClassName",value:function(){(0,N.Z)((0,D.Z)(i.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),i}(Uu);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:Uu,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),e.qOj]}),n}(),ol=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(qg);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),n}(),al=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(fC);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),n}(),zl=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(gf);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:gf,useExisting:n}]),e.qOj]}),n}(),Wl=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(nm);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:nm,useExisting:n}]),e.qOj]}),n}(),Gl=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(vC);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:vC,useExisting:n}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&e.GkF(0,0)},directives:[pu],encapsulation:2}),n}(),Yl=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(Wg);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:Wg,useExisting:n}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&e.GkF(0,0)},directives:[pu],encapsulation:2}),n}(),Zse=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[bC,dn.BQ],dn.BQ]}),n}(),Lse=9007199254740991,Oq=function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(){return(0,g.Z)(this,t),r.apply(this,arguments)}return t}(function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(){var i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,g.Z)(this,t),(i=r.call(this))._renderData=new ji.X([]),i._filter=new ji.X(""),i._internalPageChanges=new Rn.xQ,i._renderChangesSubscription=null,i.sortingDataAccessor=function(a,s){var u=a[s];if((0,In.t6)(u)){var p=Number(u);return pF?te=1:I0)){var u=Math.ceil(s.length/s.pageSize)-1||0,p=Math.min(s.pageIndex,u);p!==s.pageIndex&&(s.pageIndex=p,a._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var o;null===(o=this._renderChangesSubscription)||void 0===o||o.unsubscribe(),this._renderChangesSubscription=null}}]),t}(Li.o2)),Ku=f(15132),Bse=function(n,r){return{hidden:n,lightTheme:r}},Use=/(.*)<\/a>(.*)\s*