@drayman/elements 1.88.0 → 1.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nebula/main.js +6 -6
- package/dist/ngx-graph/main.js +1 -1
- package/dist/types/code-editor/src/app/models/code-editor-options.d.ts +8 -0
- package/dist/types/ngx-charts/src/app/models/ngx-charts-options.d.ts +84 -142
- package/dist/types/ngx-graph/src/app/models/ngx-graph-options.d.ts +4 -0
- package/package.json +1 -1
package/dist/ngx-graph/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var JE={2289:(E,L,u)=>{E.exports={ResizeSensor:u(294),ElementQueries:u(3322)}},3322:function(E,L,u){"use strict";var D,w;"undefined"!=typeof window&&window,D=[u(294)],void 0!==(w=function(C){var _=function(){var g,f={},v=[];function m(N){N||(N=document.documentElement);var V=window.getComputedStyle(N,null).fontSize;return parseFloat(V)||16}function y(N,V){var U=V.split(/\d/),$=U[U.length-1];switch(V=parseFloat(V),$){case"px":default:return V;case"em":return V*m(N);case"rem":return V*m();case"vw":return V*document.documentElement.clientWidth/100;case"vh":return V*document.documentElement.clientHeight/100;case"vmin":case"vmax":var Y=document.documentElement.clientWidth/100,oe=document.documentElement.clientHeight/100;return V*(0,Math["vmin"===$?"min":"max"])(Y,oe)}}function S(N,V){this.element=N;var U,$,Y,oe,de,ee,J,ce,pe=["min-width","min-height","max-width","max-height"];this.call=function(){for(U in Y=function p(N){if(!N.getBoundingClientRect)return{width:N.offsetWidth,height:N.offsetHeight};var V=N.getBoundingClientRect();return{width:Math.round(V.width),height:Math.round(V.height)}}(this.element),ee={},f[V])!f[V].hasOwnProperty(U)||(oe=y(this.element,($=f[V][U]).value),de="width"===$.property?Y.width:Y.height,J="","min"===$.mode&&de>=oe&&(J+=$.value),"max"===$.mode&&de<=oe&&(J+=$.value),ee[ce=$.mode+"-"+$.property]||(ee[ce]=""),J&&-1===(" "+ee[ce]+" ").indexOf(" "+J+" ")&&(ee[ce]+=" "+J));for(var be in pe)!pe.hasOwnProperty(be)||(ee[pe[be]]?this.element.setAttribute(pe[be],ee[pe[be]].substr(1)):this.element.removeAttribute(pe[be]))}}function k(N,V){N.elementQueriesSetupInformation||(N.elementQueriesSetupInformation=new S(N,V)),N.elementQueriesSensor||(N.elementQueriesSensor=new C(N,function(){N.elementQueriesSetupInformation.call()}))}function O(N,V,U,$){if(void 0===f[N]){f[N]=[];var Y=v.length;g.innerHTML+="\n"+N+" {animation: 0.1s element-queries;}",g.innerHTML+="\n"+N+" > .resize-sensor {min-width: "+Y+"px;}",v.push(N)}f[N].push({mode:V,property:U,value:$})}function F(N){var V;if(document.querySelectorAll&&(V=N?N.querySelectorAll.bind(N):document.querySelectorAll.bind(document)),!V&&"undefined"!=typeof $$&&(V=$$),!V&&"undefined"!=typeof jQuery&&(V=jQuery),!V)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return V}function z(N){var V=[],U=[],$=[],Y=0,oe=-1,de=[];for(var ee in N.children)if(N.children.hasOwnProperty(ee)&&N.children[ee].tagName&&"img"===N.children[ee].tagName.toLowerCase()){V.push(N.children[ee]);var J=N.children[ee].getAttribute("min-width")||N.children[ee].getAttribute("data-min-width"),ce=N.children[ee].getAttribute("data-src")||N.children[ee].getAttribute("url");$.push(ce),U.push({minWidth:J}),J?N.children[ee].style.display="none":(Y=V.length-1,N.children[ee].style.display="block")}function be(){var De,fe=!1;for(De in V)!V.hasOwnProperty(De)||U[De].minWidth&&N.offsetWidth>U[De].minWidth&&(fe=De);if(fe||(fe=Y),oe!==fe)if(de[fe])V[oe].style.display="none",V[fe].style.display="block",oe=fe;else{var Pe=new Image;Pe.onload=function(){V[fe].src=$[fe],V[oe].style.display="none",V[fe].style.display="block",de[fe]=!0,oe=fe},Pe.src=$[fe]}else V[fe].src=$[fe]}oe=Y,N.resizeSensorInstance=new C(N,be),be()}var X=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,se=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function te(N){var V,U,$,Y;for(N=N.replace(/'/g,'"');null!==(V=X.exec(N));)for(U=V[1]+V[3],$=V[2];null!==(Y=se.exec($));)O(U,Y[1],Y[2],Y[3])}function ie(N){var V="";if(N)if("string"==typeof N)(-1!==(N=N.toLowerCase()).indexOf("min-width")||-1!==N.indexOf("max-width"))&&te(N);else for(var U=0,$=N.length;U<$;U++)1===N[U].type?(-1!==(V=N[U].selectorText||N[U].cssText).indexOf("min-height")||-1!==V.indexOf("max-height")||-1!==V.indexOf("min-width")||-1!==V.indexOf("max-width"))&&te(V):4===N[U].type?ie(N[U].cssRules||N[U].rules):3===N[U].type&&N[U].styleSheet.hasOwnProperty("cssRules")&&ie(N[U].styleSheet.cssRules)}var le=!1;this.init=function(){var N="animationstart";void 0!==document.documentElement.style.webkitAnimationName?N="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?N="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(N="oanimationstart"),document.body.addEventListener(N,function($){var Y=$.target,oe=Y&&window.getComputedStyle(Y,null),de=oe&&oe.getPropertyValue("animation-name");if(de&&-1!==de.indexOf("element-queries")){Y.elementQueriesSensor=new C(Y,function(){Y.elementQueriesSetupInformation&&Y.elementQueriesSetupInformation.call()});var ce=window.getComputedStyle(Y.resizeSensor,null).getPropertyValue("min-width");ce=parseInt(ce.replace("px","")),k($.target,v[ce])}}),le||((g=document.createElement("style")).type="text/css",g.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",g.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(g),le=!0);for(var V=0,U=document.styleSheets.length;V<U;V++)try{document.styleSheets[V].href&&0===document.styleSheets[V].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[V].href),ie(document.styleSheets[V].cssRules||document.styleSheets[V].rules||document.styleSheets[V].cssText)}catch($){}!function H(){for(var V=F()("[data-responsive-image],[responsive-image]"),U=0,$=V.length;U<$;U++)z(V[U])}()},this.findElementQueriesElements=function(N){!function R(N){var V=F(N);for(var U in f)if(f.hasOwnProperty(U))for(var $=V(U,N),Y=0,oe=$.length;Y<oe;Y++)k($[Y],U)}(N)},this.update=function(){this.init()}};_.update=function(){_.instance.update()},_.detach=function(g){g.elementQueriesSetupInformation?(g.elementQueriesSensor.detach(),delete g.elementQueriesSetupInformation,delete g.elementQueriesSensor):g.resizeSensorInstance&&(g.resizeSensorInstance.detach(),delete g.resizeSensorInstance)},_.init=function(){_.instance||(_.instance=new _),_.instance.init()};return _.findElementQueriesElements=function(g){_.instance.findElementQueriesElements(g)},_.listen=function(){!function(g){if(document.addEventListener)document.addEventListener("DOMContentLoaded",g,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var f=setInterval(function(){/loaded|complete/i.test(document.readyState)&&(g(),clearInterval(f))},10);else window.onload=g}(_.init)},_}.apply(L,D))&&(E.exports=w)},294:function(E,L,u){"use strict";var D;"undefined"!=typeof window&&window,void 0!==(D=function(){if("undefined"==typeof window)return null;var w="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),C=w.requestAnimationFrame||w.mozRequestAnimationFrame||w.webkitRequestAnimationFrame||function(p){return w.setTimeout(p,20)},_=w.cancelAnimationFrame||w.mozCancelAnimationFrame||w.webkitCancelAnimationFrame||function(p){w.clearTimeout(p)};function x(p,y){var S=Object.prototype.toString.call(p),k="[object Array]"===S||"[object NodeList]"===S||"[object HTMLCollection]"===S||"[object Object]"===S||"undefined"!=typeof jQuery&&p instanceof jQuery||"undefined"!=typeof Elements&&p instanceof Elements,O=0,F=p.length;if(k)for(;O<F;O++)y(p[O]);else y(p)}function g(p){if(!p.getBoundingClientRect)return{width:p.offsetWidth,height:p.offsetHeight};var y=p.getBoundingClientRect();return{width:Math.round(y.width),height:Math.round(y.height)}}function f(p,y){Object.keys(y).forEach(function(S){p.style[S]=y[S]})}var v=function(p,y){var S=0;function k(){var R,z,F=[];this.add=function(H){F.push(H)},this.call=function(H){for(R=0,z=F.length;R<z;R++)F[R].call(this,H)},this.remove=function(H){var X=[];for(R=0,z=F.length;R<z;R++)F[R]!==H&&X.push(F[R]);F=X},this.length=function(){return F.length}}function O(F,R){if(F){if(F.resizedAttached)return void F.resizedAttached.add(R);F.resizedAttached=new k,F.resizedAttached.add(R),F.resizeSensor=document.createElement("div"),F.resizeSensor.dir="ltr",F.resizeSensor.className="resize-sensor";var z={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},H={position:"absolute",left:"0px",top:"0px",transition:"0s"};f(F.resizeSensor,z);var X=document.createElement("div");X.className="resize-sensor-expand",f(X,z);var se=document.createElement("div");f(se,H),X.appendChild(se);var te=document.createElement("div");te.className="resize-sensor-shrink",f(te,z);var ie=document.createElement("div");f(ie,H),f(ie,{width:"200%",height:"200%"}),te.appendChild(ie),F.resizeSensor.appendChild(X),F.resizeSensor.appendChild(te),F.appendChild(F.resizeSensor);var le=window.getComputedStyle(F),N=le?le.getPropertyValue("position"):null;"absolute"!==N&&"relative"!==N&&"fixed"!==N&&"sticky"!==N&&(F.style.position="relative");var V=!1,U=0,$=g(F),Y=0,oe=0,de=!0;S=0;var J=function(){if(de){if(0===F.offsetWidth&&0===F.offsetHeight)return void(S||(S=C(function(){S=0,J()})));de=!1}var fe,De;De=F.offsetHeight,se.style.width=(fe=F.offsetWidth)+10+"px",se.style.height=De+10+"px",X.scrollLeft=fe+10,X.scrollTop=De+10,te.scrollLeft=fe+10,te.scrollTop=De+10};F.resizeSensor.resetSensor=J;var ce=function(){U=0,V&&(Y=$.width,oe=$.height,F.resizedAttached&&F.resizedAttached.call($))},pe=function(){$=g(F),(V=$.width!==Y||$.height!==oe)&&!U&&(U=C(ce)),J()},be=function(fe,De,Pe){fe.attachEvent?fe.attachEvent("on"+De,Pe):fe.addEventListener(De,Pe)};be(X,"scroll",pe),be(te,"scroll",pe),S=C(function(){S=0,J()})}}x(p,function(F){O(F,y)}),this.detach=function(F){S||(_(S),S=0),v.detach(p,F)},this.reset=function(){p.resizeSensor.resetSensor()}};if(v.reset=function(p){x(p,function(y){y.resizeSensor.resetSensor()})},v.detach=function(p,y){x(p,function(S){!S||S.resizedAttached&&"function"==typeof y&&(S.resizedAttached.remove(y),S.resizedAttached.length())||S.resizeSensor&&(S.contains(S.resizeSensor)&&S.removeChild(S.resizeSensor),delete S.resizeSensor,delete S.resizedAttached)})},"undefined"!=typeof MutationObserver){var m=new MutationObserver(function(p){for(var y in p)if(p.hasOwnProperty(y))for(var S=p[y].addedNodes,k=0;k<S.length;k++)S[k].resizeSensor&&v.reset(S[k])});document.addEventListener("DOMContentLoaded",function(p){m.observe(document.body,{childList:!0,subtree:!0})})}return v}.call(L,u,L,E))&&(E.exports=D)},9695:(E,L,u)=>{E.exports={graphlib:u(6456),layout:u(4850),debug:u(1914),util:{time:u(1510).time,notime:u(1510).notime},version:u(8126)}},2234:(E,L,u)=>{"use strict";var d=u(5760),D=u(7365);E.exports={run:function w(x){var g="greedy"===x.graph().acyclicer?D(x,function f(v){return function(m){return v.edge(m).weight}}(x)):function C(x){var g=[],f={},v={};return d.forEach(x.nodes(),function m(p){d.has(v,p)||(v[p]=!0,f[p]=!0,d.forEach(x.outEdges(p),function(y){d.has(f,y.w)?g.push(y):m(y.w)}),delete f[p])}),g}(x);d.forEach(g,function(v){var m=x.edge(v);x.removeEdge(v),m.forwardName=v.name,m.reversed=!0,x.setEdge(v.w,v.v,m,d.uniqueId("rev"))})},undo:function _(x){d.forEach(x.edges(),function(g){var f=x.edge(g);if(f.reversed){x.removeEdge(g);var v=f.forwardName;delete f.reversed,delete f.forwardName,x.setEdge(g.w,g.v,f,v)}})}}},9999:(E,L,u)=>{var d=u(5760),D=u(1510);function C(_,x,g,f,v,m){var y=v[x][m-1],S=D.addDummyNode(_,"border",{width:0,height:0,rank:m,borderType:x},g);v[x][m]=S,_.setParent(S,f),y&&_.setEdge(y,S,{weight:1})}E.exports=function w(_){d.forEach(_.children(),function x(g){var f=_.children(g),v=_.node(g);if(f.length&&d.forEach(f,x),d.has(v,"minRank")){v.borderLeft=[],v.borderRight=[];for(var m=v.minRank,p=v.maxRank+1;m<p;++m)C(_,"borderLeft","_bl",g,v,m),C(_,"borderRight","_br",g,v,m)}})}},3870:(E,L,u)=>{"use strict";var d=u(5760);function C(m){d.forEach(m.nodes(),function(p){_(m.node(p))}),d.forEach(m.edges(),function(p){_(m.edge(p))})}function _(m){var p=m.width;m.width=m.height,m.height=p}function g(m){m.y=-m.y}function v(m){var p=m.x;m.x=m.y,m.y=p}E.exports={adjust:function D(m){var p=m.graph().rankdir.toLowerCase();("lr"===p||"rl"===p)&&C(m)},undo:function w(m){var p=m.graph().rankdir.toLowerCase();("bt"===p||"rl"===p)&&function x(m){d.forEach(m.nodes(),function(p){g(m.node(p))}),d.forEach(m.edges(),function(p){var y=m.edge(p);d.forEach(y.points,g),d.has(y,"y")&&g(y)})}(m),("lr"===p||"rl"===p)&&(function f(m){d.forEach(m.nodes(),function(p){v(m.node(p))}),d.forEach(m.edges(),function(p){var y=m.edge(p);d.forEach(y.points,v),d.has(y,"x")&&v(y)})}(m),C(m))}}},3226:E=>{function L(){var D={};D._next=D._prev=D,this._sentinel=D}function u(D){D._prev._next=D._next,D._next._prev=D._prev,delete D._next,delete D._prev}function d(D,w){if("_next"!==D&&"_prev"!==D)return w}E.exports=L,L.prototype.dequeue=function(){var D=this._sentinel,w=D._prev;if(w!==D)return u(w),w},L.prototype.enqueue=function(D){var w=this._sentinel;D._prev&&D._next&&u(D),D._next=w._next,w._next._prev=D,w._next=D,D._prev=w},L.prototype.toString=function(){for(var D=[],w=this._sentinel,C=w._prev;C!==w;)D.push(JSON.stringify(C,d)),C=C._prev;return"["+D.join(", ")+"]"}},1914:(E,L,u)=>{var d=u(5760),D=u(1510),w=u(6456).Graph;E.exports={debugOrdering:function C(_){var x=D.buildLayerMatrix(_),g=new w({compound:!0,multigraph:!0}).setGraph({});return d.forEach(_.nodes(),function(f){g.setNode(f,{label:f}),g.setParent(f,"layer"+_.node(f).rank)}),d.forEach(_.edges(),function(f){g.setEdge(f.v,f.w,{},f.name)}),d.forEach(x,function(f,v){g.setNode("layer"+v,{rank:"same"}),d.reduce(f,function(p,y){return g.setEdge(p,y,{style:"invis"}),y})}),g}}},6456:(E,L,u)=>{var d;try{d=u(5510)}catch(D){}d||(d=window.graphlib),E.exports=d},7365:(E,L,u)=>{var d=u(5760),D=u(6456).Graph,w=u(3226);E.exports=function _(m,p){if(m.nodeCount()<=1)return[];var y=function f(m,p){var y=new D,S=0,k=0;d.forEach(m.nodes(),function(R){y.setNode(R,{v:R,in:0,out:0})}),d.forEach(m.edges(),function(R){var z=y.edge(R.v,R.w)||0,H=p(R);y.setEdge(R.v,R.w,z+H),k=Math.max(k,y.node(R.v).out+=H),S=Math.max(S,y.node(R.w).in+=H)});var O=d.range(k+S+3).map(function(){return new w}),F=S+1;return d.forEach(y.nodes(),function(R){v(O,F,y.node(R))}),{graph:y,buckets:O,zeroIdx:F}}(m,p||C),S=function x(m,p,y){for(var F,S=[],k=p[p.length-1],O=p[0];m.nodeCount();){for(;F=O.dequeue();)g(m,p,y,F);for(;F=k.dequeue();)g(m,p,y,F);if(m.nodeCount())for(var R=p.length-2;R>0;--R)if(F=p[R].dequeue()){S=S.concat(g(m,p,y,F,!0));break}}return S}(y.graph,y.buckets,y.zeroIdx);return d.flatten(d.map(S,function(k){return m.outEdges(k.v,k.w)}),!0)};var C=d.constant(1);function g(m,p,y,S,k){var O=k?[]:void 0;return d.forEach(m.inEdges(S.v),function(F){var R=m.edge(F),z=m.node(F.v);k&&O.push({v:F.v,w:F.w}),z.out-=R,v(p,y,z)}),d.forEach(m.outEdges(S.v),function(F){var R=m.edge(F),H=m.node(F.w);H.in-=R,v(p,y,H)}),m.removeNode(S.v),O}function v(m,p,y){y.out?y.in?m[y.out-y.in+p].enqueue(y):m[m.length-1].enqueue(y):m[0].enqueue(y)}},4850:(E,L,u)=>{"use strict";var d=u(5760),D=u(2234),w=u(1496),C=u(4124),_=u(1510).normalizeRanks,x=u(162),g=u(1510).removeEmptyRanks,f=u(1230),v=u(9999),m=u(3870),p=u(2974),y=u(8226),S=u(1510),k=u(6456).Graph;E.exports=function O(he,xe){var Te=xe&&xe.debugTiming?S.time:S.notime;Te("layout",function(){var Fe=Te(" buildLayoutGraph",function(){return function V(he){var xe=new k({multigraph:!0,compound:!0}),Te=st(he.graph());return xe.setGraph(d.merge({},H,Pe(Te,z),d.pick(Te,X))),d.forEach(he.nodes(),function(Fe){var Ke=st(he.node(Fe));xe.setNode(Fe,d.defaults(Pe(Ke,se),te)),xe.setParent(Fe,he.parent(Fe))}),d.forEach(he.edges(),function(Fe){var Ke=st(he.edge(Fe));xe.setEdge(Fe,d.merge({},le,Pe(Ke,ie),d.pick(Ke,N)))}),xe}(he)});Te(" runLayout",function(){!function F(he,xe){xe(" makeSpaceForEdgeLabels",function(){!function U(he){var xe=he.graph();xe.ranksep/=2,d.forEach(he.edges(),function(Te){var Fe=he.edge(Te);Fe.minlen*=2,"c"!==Fe.labelpos.toLowerCase()&&("TB"===xe.rankdir||"BT"===xe.rankdir?Fe.width+=Fe.labeloffset:Fe.height+=Fe.labeloffset)})}(he)}),xe(" removeSelfEdges",function(){!function be(he){d.forEach(he.edges(),function(xe){if(xe.v===xe.w){var Te=he.node(xe.v);Te.selfEdges||(Te.selfEdges=[]),Te.selfEdges.push({e:xe,label:he.edge(xe)}),he.removeEdge(xe)}})}(he)}),xe(" acyclic",function(){D.run(he)}),xe(" nestingGraph.run",function(){f.run(he)}),xe(" rank",function(){C(S.asNonCompoundGraph(he))}),xe(" injectEdgeLabelProxies",function(){!function $(he){d.forEach(he.edges(),function(xe){var Te=he.edge(xe);if(Te.width&&Te.height){var Fe=he.node(xe.v),Ke=he.node(xe.w);S.addDummyNode(he,"edge-proxy",{rank:(Ke.rank-Fe.rank)/2+Fe.rank,e:xe},"_ep")}})}(he)}),xe(" removeEmptyRanks",function(){g(he)}),xe(" nestingGraph.cleanup",function(){f.cleanup(he)}),xe(" normalizeRanks",function(){_(he)}),xe(" assignRankMinMax",function(){!function Y(he){var xe=0;d.forEach(he.nodes(),function(Te){var Fe=he.node(Te);Fe.borderTop&&(Fe.minRank=he.node(Fe.borderTop).rank,Fe.maxRank=he.node(Fe.borderBottom).rank,xe=d.max(xe,Fe.maxRank))}),he.graph().maxRank=xe}(he)}),xe(" removeEdgeLabelProxies",function(){!function oe(he){d.forEach(he.nodes(),function(xe){var Te=he.node(xe);"edge-proxy"===Te.dummy&&(he.edge(Te.e).labelRank=Te.rank,he.removeNode(xe))})}(he)}),xe(" normalize.run",function(){w.run(he)}),xe(" parentDummyChains",function(){x(he)}),xe(" addBorderSegments",function(){v(he)}),xe(" order",function(){p(he)}),xe(" insertSelfEdges",function(){!function fe(he){var xe=S.buildLayerMatrix(he);d.forEach(xe,function(Te){var Fe=0;d.forEach(Te,function(Ke,Xe){var ht=he.node(Ke);ht.order=Xe+Fe,d.forEach(ht.selfEdges,function(Kt){S.addDummyNode(he,"selfedge",{width:Kt.label.width,height:Kt.label.height,rank:ht.rank,order:Xe+ ++Fe,e:Kt.e,label:Kt.label},"_se")}),delete ht.selfEdges})})}(he)}),xe(" adjustCoordinateSystem",function(){m.adjust(he)}),xe(" position",function(){y(he)}),xe(" positionSelfEdges",function(){!function De(he){d.forEach(he.nodes(),function(xe){var Te=he.node(xe);if("selfedge"===Te.dummy){var Fe=he.node(Te.e.v),Ke=Fe.x+Fe.width/2,Xe=Fe.y,ht=Te.x-Ke,Kt=Fe.height/2;he.setEdge(Te.e,Te.label),he.removeNode(xe),Te.label.points=[{x:Ke+2*ht/3,y:Xe-Kt},{x:Ke+5*ht/6,y:Xe-Kt},{x:Ke+ht,y:Xe},{x:Ke+5*ht/6,y:Xe+Kt},{x:Ke+2*ht/3,y:Xe+Kt}],Te.label.x=Te.x,Te.label.y=Te.y}})}(he)}),xe(" removeBorderNodes",function(){!function pe(he){d.forEach(he.nodes(),function(xe){if(he.children(xe).length){var Te=he.node(xe),Fe=he.node(Te.borderTop),Ke=he.node(Te.borderBottom),Xe=he.node(d.last(Te.borderLeft)),ht=he.node(d.last(Te.borderRight));Te.width=Math.abs(ht.x-Xe.x),Te.height=Math.abs(Ke.y-Fe.y),Te.x=Xe.x+Te.width/2,Te.y=Fe.y+Te.height/2}}),d.forEach(he.nodes(),function(xe){"border"===he.node(xe).dummy&&he.removeNode(xe)})}(he)}),xe(" normalize.undo",function(){w.undo(he)}),xe(" fixupEdgeLabelCoords",function(){!function J(he){d.forEach(he.edges(),function(xe){var Te=he.edge(xe);if(d.has(Te,"x"))switch(("l"===Te.labelpos||"r"===Te.labelpos)&&(Te.width-=Te.labeloffset),Te.labelpos){case"l":Te.x-=Te.width/2+Te.labeloffset;break;case"r":Te.x+=Te.width/2+Te.labeloffset}})}(he)}),xe(" undoCoordinateSystem",function(){m.undo(he)}),xe(" translateGraph",function(){!function de(he){var xe=Number.POSITIVE_INFINITY,Te=0,Fe=Number.POSITIVE_INFINITY,Ke=0,Xe=he.graph(),ht=Xe.marginx||0,Kt=Xe.marginy||0;function Qi(vn){var Ln=vn.x,wt=vn.y,sr=vn.width,Ct=vn.height;xe=Math.min(xe,Ln-sr/2),Te=Math.max(Te,Ln+sr/2),Fe=Math.min(Fe,wt-Ct/2),Ke=Math.max(Ke,wt+Ct/2)}d.forEach(he.nodes(),function(vn){Qi(he.node(vn))}),d.forEach(he.edges(),function(vn){var Ln=he.edge(vn);d.has(Ln,"x")&&Qi(Ln)}),xe-=ht,Fe-=Kt,d.forEach(he.nodes(),function(vn){var Ln=he.node(vn);Ln.x-=xe,Ln.y-=Fe}),d.forEach(he.edges(),function(vn){var Ln=he.edge(vn);d.forEach(Ln.points,function(wt){wt.x-=xe,wt.y-=Fe}),d.has(Ln,"x")&&(Ln.x-=xe),d.has(Ln,"y")&&(Ln.y-=Fe)}),Xe.width=Te-xe+ht,Xe.height=Ke-Fe+Kt}(he)}),xe(" assignNodeIntersects",function(){!function ee(he){d.forEach(he.edges(),function(xe){var Xe,ht,Te=he.edge(xe),Fe=he.node(xe.v),Ke=he.node(xe.w);Te.points?(Xe=Te.points[0],ht=Te.points[Te.points.length-1]):(Te.points=[],Xe=Ke,ht=Fe),Te.points.unshift(S.intersectRect(Fe,Xe)),Te.points.push(S.intersectRect(Ke,ht))})}(he)}),xe(" reversePoints",function(){!function ce(he){d.forEach(he.edges(),function(xe){var Te=he.edge(xe);Te.reversed&&Te.points.reverse()})}(he)}),xe(" acyclic.undo",function(){D.undo(he)})}(Fe,Te)}),Te(" updateInputGraph",function(){!function R(he,xe){d.forEach(he.nodes(),function(Te){var Fe=he.node(Te),Ke=xe.node(Te);Fe&&(Fe.x=Ke.x,Fe.y=Ke.y,xe.children(Te).length&&(Fe.width=Ke.width,Fe.height=Ke.height))}),d.forEach(he.edges(),function(Te){var Fe=he.edge(Te),Ke=xe.edge(Te);Fe.points=Ke.points,d.has(Ke,"x")&&(Fe.x=Ke.x,Fe.y=Ke.y)}),he.graph().width=xe.graph().width,he.graph().height=xe.graph().height}(he,Fe)})})};var z=["nodesep","edgesep","ranksep","marginx","marginy"],H={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},X=["acyclicer","ranker","rankdir","align"],se=["width","height"],te={width:0,height:0},ie=["minlen","weight","width","height","labeloffset"],le={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},N=["labelpos"];function Pe(he,xe){return d.mapValues(d.pick(he,xe),Number)}function st(he){var xe={};return d.forEach(he,function(Te,Fe){xe[Fe.toLowerCase()]=Te}),xe}},5760:(E,L,u)=>{var d;try{d={cloneDeep:u(733),constant:u(6684),defaults:u(8800),each:u(5474),filter:u(5281),find:u(2516),flatten:u(2274),forEach:u(9851),forIn:u(1176),has:u(4842),isUndefined:u(4235),last:u(5809),map:u(9984),mapValues:u(203),max:u(8176),merge:u(567),min:u(9439),minBy:u(9525),now:u(1710),pick:u(6372),range:u(361),reduce:u(1337),sortBy:u(2906),uniqueId:u(1541),values:u(377),zipObject:u(1617)}}catch(D){}d||(d=window._),E.exports=d},1230:(E,L,u)=>{var d=u(5760),D=u(1510);function C(f,v,m,p,y,S,k){var O=f.children(k);if(O.length){var F=D.addBorderNode(f,"_bt"),R=D.addBorderNode(f,"_bb"),z=f.node(k);f.setParent(F,k),z.borderTop=F,f.setParent(R,k),z.borderBottom=R,d.forEach(O,function(H){C(f,v,m,p,y,S,H);var X=f.node(H),se=X.borderTop?X.borderTop:H,te=X.borderBottom?X.borderBottom:H,ie=X.borderTop?p:2*p,le=se!==te?1:y-S[k]+1;f.setEdge(F,se,{weight:ie,minlen:le,nestingEdge:!0}),f.setEdge(te,R,{weight:ie,minlen:le,nestingEdge:!0})}),f.parent(k)||f.setEdge(v,F,{weight:0,minlen:y+S[k]})}else k!==v&&f.setEdge(v,k,{weight:0,minlen:m})}E.exports={run:function w(f){var v=D.addDummyNode(f,"root",{},"_root"),m=function _(f){var v={};function m(p,y){var S=f.children(p);S&&S.length&&d.forEach(S,function(k){m(k,y+1)}),v[p]=y}return d.forEach(f.children(),function(p){m(p,1)}),v}(f),p=d.max(d.values(m))-1,y=2*p+1;f.graph().nestingRoot=v,d.forEach(f.edges(),function(k){f.edge(k).minlen*=y});var S=function x(f){return d.reduce(f.edges(),function(v,m){return v+f.edge(m).weight},0)}(f)+1;d.forEach(f.children(),function(k){C(f,v,y,S,p,m,k)}),f.graph().nodeRankFactor=y},cleanup:function g(f){var v=f.graph();f.removeNode(v.nestingRoot),delete v.nestingRoot,d.forEach(f.edges(),function(m){f.edge(m).nestingEdge&&f.removeEdge(m)})}}},1496:(E,L,u)=>{"use strict";var d=u(5760),D=u(1510);E.exports={run:function w(x){x.graph().dummyChains=[],d.forEach(x.edges(),function(g){!function C(x,g){var f=g.v,v=x.node(f).rank,m=g.w,p=x.node(m).rank,y=g.name,S=x.edge(g),k=S.labelRank;if(p!==v+1){var O,F,R;for(x.removeEdge(g),R=0,++v;v<p;++R,++v)S.points=[],O=D.addDummyNode(x,"edge",F={width:0,height:0,edgeLabel:S,edgeObj:g,rank:v},"_d"),v===k&&(F.width=S.width,F.height=S.height,F.dummy="edge-label",F.labelpos=S.labelpos),x.setEdge(f,O,{weight:S.weight},y),0===R&&x.graph().dummyChains.push(O),f=O;x.setEdge(f,m,{weight:S.weight},y)}}(x,g)})},undo:function _(x){d.forEach(x.graph().dummyChains,function(g){var m,f=x.node(g),v=f.edgeLabel;for(x.setEdge(f.edgeObj,v);f.dummy;)m=x.successors(g)[0],x.removeNode(g),v.points.push({x:f.x,y:f.y}),"edge-label"===f.dummy&&(v.x=f.x,v.y=f.y,v.width=f.width,v.height=f.height),f=x.node(g=m)})}}},3034:(E,L,u)=>{var d=u(5760);E.exports=function D(w,C,_){var g,x={};d.forEach(_,function(f){for(var m,p,v=w.parent(f);v;){if((m=w.parent(v))?(p=x[m],x[m]=v):(p=g,g=v),p&&p!==v)return void C.setEdge(p,v);v=m}})}},1323:(E,L,u)=>{var d=u(5760);E.exports=function D(w,C){return d.map(C,function(_){var x=w.inEdges(_);if(x.length){var g=d.reduce(x,function(f,v){var m=w.edge(v),p=w.node(v.v);return{sum:f.sum+m.weight*p.order,weight:f.weight+m.weight}},{sum:0,weight:0});return{v:_,barycenter:g.sum/g.weight,weight:g.weight}}return{v:_}})}},1686:(E,L,u)=>{var d=u(5760),D=u(6456).Graph;E.exports=function w(_,x,g){var f=function C(_){for(var x;_.hasNode(x=d.uniqueId("_root")););return x}(_),v=new D({compound:!0}).setGraph({root:f}).setDefaultNodeLabel(function(m){return _.node(m)});return d.forEach(_.nodes(),function(m){var p=_.node(m),y=_.parent(m);(p.rank===x||p.minRank<=x&&x<=p.maxRank)&&(v.setNode(m),v.setParent(m,y||f),d.forEach(_[g](m),function(S){var k=S.v===m?S.w:S.v,O=v.edge(k,m),F=d.isUndefined(O)?0:O.weight;v.setEdge(k,m,{weight:_.edge(S).weight+F})}),d.has(p,"minRank")&&v.setNode(m,{borderLeft:p.borderLeft[x],borderRight:p.borderRight[x]}))}),v}},8796:(E,L,u)=>{"use strict";var d=u(5760);function w(C,_,x){for(var g=d.zipObject(x,d.map(x,function(S,k){return k})),f=d.flatten(d.map(_,function(S){return d.sortBy(d.map(C.outEdges(S),function(k){return{pos:g[k.w],weight:C.edge(k).weight}}),"pos")}),!0),v=1;v<x.length;)v<<=1;var m=2*v-1;v-=1;var p=d.map(new Array(m),function(){return 0}),y=0;return d.forEach(f.forEach(function(S){var k=S.pos+v;p[k]+=S.weight;for(var O=0;k>0;)k%2&&(O+=p[k+1]),p[k=k-1>>1]+=S.weight;y+=S.weight*O})),y}E.exports=function D(C,_){for(var x=0,g=1;g<_.length;++g)x+=w(C,_[g-1],_[g]);return x}},2974:(E,L,u)=>{"use strict";var d=u(5760),D=u(9402),w=u(8796),C=u(1057),_=u(1686),x=u(3034),g=u(6456).Graph,f=u(1510);function m(S,k,O){return d.map(k,function(F){return _(S,F,O)})}function p(S,k){var O=new g;d.forEach(S,function(F){var R=F.graph().root,z=C(F,R,O,k);d.forEach(z.vs,function(H,X){F.node(H).order=X}),x(F,O,z.vs)})}function y(S,k){d.forEach(k,function(O){d.forEach(O,function(F,R){S.node(F).order=R})})}E.exports=function v(S){var k=f.maxRank(S),O=m(S,d.range(1,k+1),"inEdges"),F=m(S,d.range(k-1,-1,-1),"outEdges"),R=D(S);y(S,R);for(var H,z=Number.POSITIVE_INFINITY,X=0,se=0;se<4;++X,++se){p(X%2?O:F,X%4>=2),R=f.buildLayerMatrix(S);var te=w(S,R);te<z&&(se=0,H=d.cloneDeep(R),z=te)}y(S,H)}},9402:(E,L,u)=>{"use strict";var d=u(5760);E.exports=function D(w){var C={},_=d.filter(w.nodes(),function(m){return!w.children(m).length}),x=d.max(d.map(_,function(m){return w.node(m).rank})),g=d.map(d.range(x+1),function(){return[]}),v=d.sortBy(_,function(m){return w.node(m).rank});return d.forEach(v,function f(m){if(!d.has(C,m)){C[m]=!0;var p=w.node(m);g[p.rank].push(m),d.forEach(w.successors(m),f)}}),g}},3826:(E,L,u)=>{"use strict";var d=u(5760);E.exports=function D(_,x){var g={};return d.forEach(_,function(v,m){var p=g[v.v]={indegree:0,in:[],out:[],vs:[v.v],i:m};d.isUndefined(v.barycenter)||(p.barycenter=v.barycenter,p.weight=v.weight)}),d.forEach(x.edges(),function(v){var m=g[v.v],p=g[v.w];!d.isUndefined(m)&&!d.isUndefined(p)&&(p.indegree++,m.out.push(g[v.w]))}),function w(_){var x=[];function g(m){return function(p){p.merged||(d.isUndefined(p.barycenter)||d.isUndefined(m.barycenter)||p.barycenter>=m.barycenter)&&function C(_,x){var g=0,f=0;_.weight&&(g+=_.barycenter*_.weight,f+=_.weight),x.weight&&(g+=x.barycenter*x.weight,f+=x.weight),_.vs=x.vs.concat(_.vs),_.barycenter=g/f,_.weight=f,_.i=Math.min(x.i,_.i),x.merged=!0}(m,p)}}function f(m){return function(p){p.in.push(m),0==--p.indegree&&_.push(p)}}for(;_.length;){var v=_.pop();x.push(v),d.forEach(v.in.reverse(),g(v)),d.forEach(v.out,f(v))}return d.map(d.filter(x,function(m){return!m.merged}),function(m){return d.pick(m,["vs","i","barycenter","weight"])})}(d.filter(g,function(v){return!v.indegree}))}},1057:(E,L,u)=>{var d=u(5760),D=u(1323),w=u(3826),C=u(3803);E.exports=function _(f,v,m,p){var y=f.children(v),S=f.node(v),k=S?S.borderLeft:void 0,O=S?S.borderRight:void 0,F={};k&&(y=d.filter(y,function(te){return te!==k&&te!==O}));var R=D(f,y);d.forEach(R,function(te){if(f.children(te.v).length){var ie=_(f,te.v,m,p);F[te.v]=ie,d.has(ie,"barycenter")&&function g(f,v){d.isUndefined(f.barycenter)?(f.barycenter=v.barycenter,f.weight=v.weight):(f.barycenter=(f.barycenter*f.weight+v.barycenter*v.weight)/(f.weight+v.weight),f.weight+=v.weight)}(te,ie)}});var z=w(R,m);!function x(f,v){d.forEach(f,function(m){m.vs=d.flatten(m.vs.map(function(p){return v[p]?v[p].vs:p}),!0)})}(z,F);var H=C(z,p);if(k&&(H.vs=d.flatten([k,H.vs,O],!0),f.predecessors(k).length)){var X=f.node(f.predecessors(k)[0]),se=f.node(f.predecessors(O)[0]);d.has(H,"barycenter")||(H.barycenter=0,H.weight=0),H.barycenter=(H.barycenter*H.weight+X.order+se.order)/(H.weight+2),H.weight+=2}return H}},3803:(E,L,u)=>{var d=u(5760),D=u(1510);function C(x,g,f){for(var v;g.length&&(v=d.last(g)).i<=f;)g.pop(),x.push(v.vs),f++;return f}E.exports=function w(x,g){var f=D.partition(x,function(F){return d.has(F,"barycenter")}),v=f.lhs,m=d.sortBy(f.rhs,function(F){return-F.i}),p=[],y=0,S=0,k=0;v.sort(function _(x){return function(g,f){return g.barycenter<f.barycenter?-1:g.barycenter>f.barycenter?1:x?f.i-g.i:g.i-f.i}}(!!g)),k=C(p,m,k),d.forEach(v,function(F){k+=F.vs.length,p.push(F.vs),y+=F.barycenter*F.weight,S+=F.weight,k=C(p,m,k)});var O={vs:d.flatten(p,!0)};return S&&(O.barycenter=y/S,O.weight=S),O}},162:(E,L,u)=>{var d=u(5760);E.exports=function D(_){var x=function C(_){var x={},g=0;return d.forEach(_.children(),function f(v){var m=g;d.forEach(_.children(v),f),x[v]={low:m,lim:g++}}),x}(_);d.forEach(_.graph().dummyChains,function(g){for(var f=_.node(g),v=f.edgeObj,m=function w(_,x,g,f){var S,k,v=[],m=[],p=Math.min(x[g].low,x[f].low),y=Math.max(x[g].lim,x[f].lim);S=g;do{S=_.parent(S),v.push(S)}while(S&&(x[S].low>p||y>x[S].lim));for(k=S,S=f;(S=_.parent(S))!==k;)m.push(S);return{path:v.concat(m.reverse()),lca:k}}(_,x,v.v,v.w),p=m.path,y=m.lca,S=0,k=p[S],O=!0;g!==v.w;){if(f=_.node(g),O){for(;(k=p[S])!==y&&_.node(k).maxRank<f.rank;)S++;k===y&&(O=!1)}if(!O){for(;S<p.length-1&&_.node(k=p[S+1]).minRank<=f.rank;)S++;k=p[S]}_.setParent(g,k),g=_.successors(g)[0]}})}},4058:(E,L,u)=>{"use strict";var d=u(5760),D=u(6456).Graph,w=u(1510);function C(z,H){var X={};return d.reduce(H,function se(te,ie){var le=0,N=0,V=te.length,U=d.last(ie);return d.forEach(ie,function($,Y){var oe=function x(z,H){if(z.node(H).dummy)return d.find(z.predecessors(H),function(X){return z.node(X).dummy})}(z,$),de=oe?z.node(oe).order:V;(oe||$===U)&&(d.forEach(ie.slice(N,Y+1),function(ee){d.forEach(z.predecessors(ee),function(J){var ce=z.node(J),pe=ce.order;(pe<le||de<pe)&&(!ce.dummy||!z.node(ee).dummy)&&g(X,J,ee)})}),N=Y+1,le=de)}),ie}),X}function _(z,H){var X={};function se(ie,le,N,V,U){var $;d.forEach(d.range(le,N),function(Y){z.node($=ie[Y]).dummy&&d.forEach(z.predecessors($),function(oe){var de=z.node(oe);de.dummy&&(de.order<V||de.order>U)&&g(X,oe,$)})})}return d.reduce(H,function te(ie,le){var V,N=-1,U=0;return d.forEach(le,function($,Y){if("border"===z.node($).dummy){var oe=z.predecessors($);oe.length&&(V=z.node(oe[0]).order,se(le,U,Y,N,V),U=Y,N=V)}se(le,U,le.length,V,ie.length)}),le}),X}function g(z,H,X){if(H>X){var se=H;H=X,X=se}var te=z[H];te||(z[H]=te={}),te[X]=!0}function f(z,H,X){if(H>X){var se=H;H=X,X=se}return d.has(z[H],X)}function v(z,H,X,se){var te={},ie={},le={};return d.forEach(H,function(N){d.forEach(N,function(V,U){te[V]=V,ie[V]=V,le[V]=U})}),d.forEach(H,function(N){var V=-1;d.forEach(N,function(U){var $=se(U);if($.length)for(var Y=(($=d.sortBy($,function(J){return le[J]})).length-1)/2,oe=Math.floor(Y),de=Math.ceil(Y);oe<=de;++oe){var ee=$[oe];ie[U]===U&&V<le[ee]&&!f(X,U,ee)&&(ie[ee]=U,ie[U]=te[U]=te[ee],V=le[ee])}})}),{root:te,align:ie}}function m(z,H,X,se,te){var ie={},le=function p(z,H,X,se){var te=new D,ie=z.graph(),le=function F(z,H,X){return function(se,te,ie){var U,le=se.node(te),N=se.node(ie),V=0;if(V+=le.width/2,d.has(le,"labelpos"))switch(le.labelpos.toLowerCase()){case"l":U=-le.width/2;break;case"r":U=le.width/2}if(U&&(V+=X?U:-U),U=0,V+=(le.dummy?H:z)/2,V+=(N.dummy?H:z)/2,V+=N.width/2,d.has(N,"labelpos"))switch(N.labelpos.toLowerCase()){case"l":U=N.width/2;break;case"r":U=-N.width/2}return U&&(V+=X?U:-U),U=0,V}}(ie.nodesep,ie.edgesep,se);return d.forEach(H,function(N){var V;d.forEach(N,function(U){var $=X[U];if(te.setNode($),V){var Y=X[V],oe=te.edge(Y,$);te.setEdge(Y,$,Math.max(le(z,U,V),oe||0))}V=U})}),te}(z,H,X,te),N=te?"borderLeft":"borderRight";function V(Y,oe){for(var de=le.nodes(),ee=de.pop(),J={};ee;)J[ee]?Y(ee):(J[ee]=!0,de.push(ee),de=de.concat(oe(ee))),ee=de.pop()}return V(function U(Y){ie[Y]=le.inEdges(Y).reduce(function(oe,de){return Math.max(oe,ie[de.v]+le.edge(de))},0)},le.predecessors.bind(le)),V(function $(Y){var oe=le.outEdges(Y).reduce(function(ee,J){return Math.min(ee,ie[J.w]-le.edge(J))},Number.POSITIVE_INFINITY),de=z.node(Y);oe!==Number.POSITIVE_INFINITY&&de.borderType!==N&&(ie[Y]=Math.max(ie[Y],oe))},le.successors.bind(le)),d.forEach(se,function(Y){ie[Y]=ie[X[Y]]}),ie}function y(z,H){return d.minBy(d.values(H),function(X){var se=Number.NEGATIVE_INFINITY,te=Number.POSITIVE_INFINITY;return d.forIn(X,function(ie,le){var N=function R(z,H){return z.node(H).width}(z,le)/2;se=Math.max(ie+N,se),te=Math.min(ie-N,te)}),se-te})}function S(z,H){var X=d.values(H),se=d.min(X),te=d.max(X);d.forEach(["u","d"],function(ie){d.forEach(["l","r"],function(le){var U,N=ie+le,V=z[N];if(V!==H){var $=d.values(V);(U="l"===le?se-d.min($):te-d.max($))&&(z[N]=d.mapValues(V,function(Y){return Y+U}))}})})}function k(z,H){return d.mapValues(z.ul,function(X,se){if(H)return z[H.toLowerCase()][se];var te=d.sortBy(d.map(z,se));return(te[1]+te[2])/2})}E.exports={positionX:function O(z){var te,H=w.buildLayerMatrix(z),X=d.merge(C(z,H),_(z,H)),se={};d.forEach(["u","d"],function(le){te="u"===le?H:d.values(H).reverse(),d.forEach(["l","r"],function(N){"r"===N&&(te=d.map(te,function(Y){return d.values(Y).reverse()}));var V=("u"===le?z.predecessors:z.successors).bind(z),U=v(0,te,X,V),$=m(z,te,U.root,U.align,"r"===N);"r"===N&&($=d.mapValues($,function(Y){return-Y})),se[le+N]=$})});var ie=y(z,se);return S(se,ie),k(se,z.graph().align)},findType1Conflicts:C,findType2Conflicts:_,addConflict:g,hasConflict:f,verticalAlignment:v,horizontalCompaction:m,alignCoordinates:S,findSmallestWidthAlignment:y,balance:k}},8226:(E,L,u)=>{"use strict";var d=u(5760),D=u(1510),w=u(4058).positionX;E.exports=function C(x){(function _(x){var g=D.buildLayerMatrix(x),f=x.graph().ranksep,v=0;d.forEach(g,function(m){var p=d.max(d.map(m,function(y){return x.node(y).height}));d.forEach(m,function(y){x.node(y).y=v+p/2}),v+=p+f})})(x=D.asNonCompoundGraph(x)),d.forEach(w(x),function(g,f){x.node(f).x=g})}},6632:(E,L,u)=>{"use strict";var d=u(5760),D=u(6456).Graph,w=u(1916).slack;function _(f,v){return d.forEach(f.nodes(),function m(p){d.forEach(v.nodeEdges(p),function(y){var S=y.v,k=p===S?y.w:S;!f.hasNode(k)&&!w(v,y)&&(f.setNode(k,{}),f.setEdge(p,k,{}),m(k))})}),f.nodeCount()}function x(f,v){return d.minBy(v.edges(),function(m){if(f.hasNode(m.v)!==f.hasNode(m.w))return w(v,m)})}function g(f,v,m){d.forEach(f.nodes(),function(p){v.node(p).rank+=m})}E.exports=function C(f){var y,S,v=new D({directed:!1}),m=f.nodes()[0],p=f.nodeCount();for(v.setNode(m,{});_(v,f)<p;)y=x(v,f),S=v.hasNode(y.v)?w(f,y):-w(f,y),g(v,f,S);return v}},4124:(E,L,u)=>{"use strict";var D=u(1916).longestPath,w=u(6632),C=u(3804);E.exports=function _(v){switch(v.graph().ranker){case"network-simplex":default:!function f(v){C(v)}(v);break;case"tight-tree":!function g(v){D(v),w(v)}(v);break;case"longest-path":x(v)}};var x=D},3804:(E,L,u)=>{"use strict";var d=u(5760),D=u(6632),w=u(1916).slack,C=u(1916).longestPath,_=u(6456).alg.preorder,x=u(6456).alg.postorder,g=u(1510).simplify;function f(X){X=g(X),C(X);var te,se=D(X);for(y(se),v(se,X);te=k(se);)F(se,X,te,O(se,X,te))}function v(X,se){var te=x(X,X.nodes());te=te.slice(0,te.length-1),d.forEach(te,function(ie){!function m(X,se,te){var ie=X.node(te);X.edge(te,ie.parent).cutvalue=p(X,se,te)}(X,se,ie)})}function p(X,se,te){var le=X.node(te).parent,N=!0,V=se.edge(te,le),U=0;return V||(N=!1,V=se.edge(le,te)),U=V.weight,d.forEach(se.nodeEdges(te),function($){var Y=$.v===te,oe=Y?$.w:$.v;if(oe!==le){var de=Y===N,ee=se.edge($).weight;if(U+=de?ee:-ee,function z(X,se,te){return X.hasEdge(se,te)}(X,te,oe)){var J=X.edge(te,oe).cutvalue;U+=de?-J:J}}}),U}function y(X,se){arguments.length<2&&(se=X.nodes()[0]),S(X,{},1,se)}function S(X,se,te,ie,le){var N=te,V=X.node(ie);return se[ie]=!0,d.forEach(X.neighbors(ie),function(U){d.has(se,U)||(te=S(X,se,te,U,ie))}),V.low=N,V.lim=te++,le?V.parent=le:delete V.parent,te}function k(X){return d.find(X.edges(),function(se){return X.edge(se).cutvalue<0})}function O(X,se,te){var ie=te.v,le=te.w;se.hasEdge(ie,le)||(ie=te.w,le=te.v);var N=X.node(ie),V=X.node(le),U=N,$=!1;N.lim>V.lim&&(U=V,$=!0);var Y=d.filter(se.edges(),function(oe){return $===H(0,X.node(oe.v),U)&&$!==H(0,X.node(oe.w),U)});return d.minBy(Y,function(oe){return w(se,oe)})}function F(X,se,te,ie){X.removeEdge(te.v,te.w),X.setEdge(ie.v,ie.w,{}),y(X),v(X,se),function R(X,se){var te=d.find(X.nodes(),function(le){return!se.node(le).parent}),ie=_(X,te);ie=ie.slice(1),d.forEach(ie,function(le){var N=X.node(le).parent,V=se.edge(le,N),U=!1;V||(V=se.edge(N,le),U=!0),se.node(le).rank=se.node(N).rank+(U?V.minlen:-V.minlen)})}(X,se)}function H(X,se,te){return te.low<=se.lim&&se.lim<=te.lim}E.exports=f,f.initLowLimValues=y,f.initCutValues=v,f.calcCutValue=p,f.leaveEdge=k,f.enterEdge=O,f.exchangeEdges=F},1916:(E,L,u)=>{"use strict";var d=u(5760);E.exports={longestPath:function D(C){var _={};d.forEach(C.sources(),function x(g){var f=C.node(g);if(d.has(_,g))return f.rank;_[g]=!0;var v=d.min(d.map(C.outEdges(g),function(m){return x(m.w)-C.edge(m).minlen}));return(v===Number.POSITIVE_INFINITY||null==v)&&(v=0),f.rank=v})},slack:function w(C,_){return C.node(_.w).rank-C.node(_.v).rank-C.edge(_).minlen}}},1510:(E,L,u)=>{"use strict";var d=u(5760),D=u(6456).Graph;function w(R,z,H,X){var se;do{se=d.uniqueId(X)}while(R.hasNode(se));return H.dummy=z,R.setNode(se,H),se}function S(R){return d.max(d.map(R.nodes(),function(z){var H=R.node(z).rank;if(!d.isUndefined(H))return H}))}E.exports={addDummyNode:w,simplify:function C(R){var z=(new D).setGraph(R.graph());return d.forEach(R.nodes(),function(H){z.setNode(H,R.node(H))}),d.forEach(R.edges(),function(H){var X=z.edge(H.v,H.w)||{weight:0,minlen:1},se=R.edge(H);z.setEdge(H.v,H.w,{weight:X.weight+se.weight,minlen:Math.max(X.minlen,se.minlen)})}),z},asNonCompoundGraph:function _(R){var z=new D({multigraph:R.isMultigraph()}).setGraph(R.graph());return d.forEach(R.nodes(),function(H){R.children(H).length||z.setNode(H,R.node(H))}),d.forEach(R.edges(),function(H){z.setEdge(H,R.edge(H))}),z},successorWeights:function x(R){var z=d.map(R.nodes(),function(H){var X={};return d.forEach(R.outEdges(H),function(se){X[se.w]=(X[se.w]||0)+R.edge(se).weight}),X});return d.zipObject(R.nodes(),z)},predecessorWeights:function g(R){var z=d.map(R.nodes(),function(H){var X={};return d.forEach(R.inEdges(H),function(se){X[se.v]=(X[se.v]||0)+R.edge(se).weight}),X});return d.zipObject(R.nodes(),z)},intersectRect:function f(R,z){var N,V,H=R.x,X=R.y,se=z.x-H,te=z.y-X,ie=R.width/2,le=R.height/2;if(!se&&!te)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(te)*ie>Math.abs(se)*le?(te<0&&(le=-le),N=le*se/te,V=le):(se<0&&(ie=-ie),N=ie,V=ie*te/se),{x:H+N,y:X+V}},buildLayerMatrix:function v(R){var z=d.map(d.range(S(R)+1),function(){return[]});return d.forEach(R.nodes(),function(H){var X=R.node(H),se=X.rank;d.isUndefined(se)||(z[se][X.order]=H)}),z},normalizeRanks:function m(R){var z=d.min(d.map(R.nodes(),function(H){return R.node(H).rank}));d.forEach(R.nodes(),function(H){var X=R.node(H);d.has(X,"rank")&&(X.rank-=z)})},removeEmptyRanks:function p(R){var z=d.min(d.map(R.nodes(),function(te){return R.node(te).rank})),H=[];d.forEach(R.nodes(),function(te){var ie=R.node(te).rank-z;H[ie]||(H[ie]=[]),H[ie].push(te)});var X=0,se=R.graph().nodeRankFactor;d.forEach(H,function(te,ie){d.isUndefined(te)&&ie%se!=0?--X:X&&d.forEach(te,function(le){R.node(le).rank+=X})})},addBorderNode:function y(R,z,H,X){var se={width:0,height:0};return arguments.length>=4&&(se.rank=H,se.order=X),w(R,"border",se,z)},maxRank:S,partition:function k(R,z){var H={lhs:[],rhs:[]};return d.forEach(R,function(X){z(X)?H.lhs.push(X):H.rhs.push(X)}),H},time:function O(R,z){var H=d.now();try{return z()}finally{console.log(R+" time: "+(d.now()-H)+"ms")}},notime:function F(R,z){return z()}}},8126:E=>{E.exports="0.8.5"},5510:(E,L,u)=>{var d=u(1838);E.exports={Graph:d.Graph,json:u(1088),alg:u(3430),version:d.version}},6730:(E,L,u)=>{var d=u(9138);E.exports=function D(w){var x,C={},_=[];function g(f){d.has(C,f)||(C[f]=!0,x.push(f),d.each(w.successors(f),g),d.each(w.predecessors(f),g))}return d.each(w.nodes(),function(f){x=[],g(f),x.length&&_.push(x)}),_}},2163:(E,L,u)=>{var d=u(9138);function w(C,_,x,g,f,v){d.has(g,_)||(g[_]=!0,x||v.push(_),d.each(f(_),function(m){w(C,m,x,g,f,v)}),x&&v.push(_))}E.exports=function D(C,_,x){d.isArray(_)||(_=[_]);var g=(C.isDirected()?C.successors:C.neighbors).bind(C),f=[],v={};return d.each(_,function(m){if(!C.hasNode(m))throw new Error("Graph does not have node: "+m);w(C,m,"post"===x,v,g,f)}),f}},5668:(E,L,u)=>{var d=u(1718),D=u(9138);E.exports=function w(C,_,x){return D.transform(C.nodes(),function(g,f){g[f]=d(C,f,_,x)},{})}},1718:(E,L,u)=>{var d=u(9138),D=u(1919);E.exports=function C(x,g,f,v){return function _(x,g,f,v){var y,S,m={},p=new D,k=function(O){var F=O.v!==y?O.v:O.w,R=m[F],z=f(O),H=S.distance+z;if(z<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+O+" Weight: "+z);H<R.distance&&(R.distance=H,R.predecessor=y,p.decrease(F,H))};for(x.nodes().forEach(function(O){var F=O===g?0:Number.POSITIVE_INFINITY;m[O]={distance:F},p.add(O,F)});p.size()>0&&(y=p.removeMin(),(S=m[y]).distance!==Number.POSITIVE_INFINITY);)v(y).forEach(k);return m}(x,String(g),f||w,v||function(m){return x.outEdges(m)})};var w=d.constant(1)},9611:(E,L,u)=>{var d=u(9138),D=u(3585);E.exports=function w(C){return d.filter(D(C),function(_){return _.length>1||1===_.length&&C.hasEdge(_[0],_[0])})}},2881:(E,L,u)=>{var d=u(9138);E.exports=function w(_,x,g){return function C(_,x,g){var f={},v=_.nodes();return v.forEach(function(m){f[m]={},f[m][m]={distance:0},v.forEach(function(p){m!==p&&(f[m][p]={distance:Number.POSITIVE_INFINITY})}),g(m).forEach(function(p){var y=p.v===m?p.w:p.v,S=x(p);f[m][y]={distance:S,predecessor:m}})}),v.forEach(function(m){var p=f[m];v.forEach(function(y){var S=f[y];v.forEach(function(k){var F=p[k],R=S[k],z=S[m].distance+F.distance;z<R.distance&&(R.distance=z,R.predecessor=F.predecessor)})})}),f}(_,x||D,g||function(f){return _.outEdges(f)})};var D=d.constant(1)},3430:(E,L,u)=>{E.exports={components:u(6730),dijkstra:u(1718),dijkstraAll:u(5668),findCycles:u(9611),floydWarshall:u(2881),isAcyclic:u(6693),postorder:u(6694),preorder:u(5330),prim:u(6823),tarjan:u(3585),topsort:u(2180)}},6693:(E,L,u)=>{var d=u(2180);E.exports=function D(w){try{d(w)}catch(C){if(C instanceof d.CycleException)return!1;throw C}return!0}},6694:(E,L,u)=>{var d=u(2163);E.exports=function D(w,C){return d(w,C,"post")}},5330:(E,L,u)=>{var d=u(2163);E.exports=function D(w,C){return d(w,C,"pre")}},6823:(E,L,u)=>{var d=u(9138),D=u(6568),w=u(1919);E.exports=function C(_,x){var m,g=new D,f={},v=new w;function p(S){var k=S.v===m?S.w:S.v,O=v.priority(k);if(void 0!==O){var F=x(S);F<O&&(f[k]=m,v.decrease(k,F))}}if(0===_.nodeCount())return g;d.each(_.nodes(),function(S){v.add(S,Number.POSITIVE_INFINITY),g.setNode(S)}),v.decrease(_.nodes()[0],0);for(var y=!1;v.size()>0;){if(m=v.removeMin(),d.has(f,m))g.setEdge(m,f[m]);else{if(y)throw new Error("Input graph is not connected: "+_);y=!0}_.nodeEdges(m).forEach(p)}return g}},3585:(E,L,u)=>{var d=u(9138);E.exports=function D(w){var C=0,_=[],x={},g=[];function f(v){var m=x[v]={onStack:!0,lowlink:C,index:C++};if(_.push(v),w.successors(v).forEach(function(S){d.has(x,S)?x[S].onStack&&(m.lowlink=Math.min(m.lowlink,x[S].index)):(f(S),m.lowlink=Math.min(m.lowlink,x[S].lowlink))}),m.lowlink===m.index){var y,p=[];do{y=_.pop(),x[y].onStack=!1,p.push(y)}while(v!==y);g.push(p)}}return w.nodes().forEach(function(v){d.has(x,v)||f(v)}),g}},2180:(E,L,u)=>{var d=u(9138);function D(C){var _={},x={},g=[];if(d.each(C.sinks(),function f(v){if(d.has(x,v))throw new w;d.has(_,v)||(x[v]=!0,_[v]=!0,d.each(C.predecessors(v),f),delete x[v],g.push(v))}),d.size(_)!==C.nodeCount())throw new w;return g}function w(){}E.exports=D,D.CycleException=w,w.prototype=new Error},1919:(E,L,u)=>{var d=u(9138);function D(){this._arr=[],this._keyIndices={}}E.exports=D,D.prototype.size=function(){return this._arr.length},D.prototype.keys=function(){return this._arr.map(function(w){return w.key})},D.prototype.has=function(w){return d.has(this._keyIndices,w)},D.prototype.priority=function(w){var C=this._keyIndices[w];if(void 0!==C)return this._arr[C].priority},D.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},D.prototype.add=function(w,C){var _=this._keyIndices;if(w=String(w),!d.has(_,w)){var x=this._arr,g=x.length;return _[w]=g,x.push({key:w,priority:C}),this._decrease(g),!0}return!1},D.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var w=this._arr.pop();return delete this._keyIndices[w.key],this._heapify(0),w.key},D.prototype.decrease=function(w,C){var _=this._keyIndices[w];if(C>this._arr[_].priority)throw new Error("New priority is greater than current priority. Key: "+w+" Old: "+this._arr[_].priority+" New: "+C);this._arr[_].priority=C,this._decrease(_)},D.prototype._heapify=function(w){var C=this._arr,_=2*w,x=_+1,g=w;_<C.length&&(g=C[_].priority<C[g].priority?_:g,x<C.length&&(g=C[x].priority<C[g].priority?x:g),g!==w&&(this._swap(w,g),this._heapify(g)))},D.prototype._decrease=function(w){for(var x,C=this._arr,_=C[w].priority;0!==w&&!(C[x=w>>1].priority<_);)this._swap(w,x),w=x},D.prototype._swap=function(w,C){var _=this._arr,x=this._keyIndices,g=_[w],f=_[C];_[w]=f,_[C]=g,x[f.key]=w,x[g.key]=C}},6568:(E,L,u)=>{"use strict";var d=u(9138);E.exports=_;var w="\0";function _(p){this._isDirected=!d.has(p,"directed")||p.directed,this._isMultigraph=!!d.has(p,"multigraph")&&p.multigraph,this._isCompound=!!d.has(p,"compound")&&p.compound,this._label=void 0,this._defaultNodeLabelFn=d.constant(void 0),this._defaultEdgeLabelFn=d.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[w]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function x(p,y){p[y]?p[y]++:p[y]=1}function g(p,y){--p[y]||delete p[y]}function f(p,y,S,k){var O=""+y,F=""+S;if(!p&&O>F){var R=O;O=F,F=R}return O+"\x01"+F+"\x01"+(d.isUndefined(k)?"\0":k)}function v(p,y,S,k){var O=""+y,F=""+S;if(!p&&O>F){var R=O;O=F,F=R}var z={v:O,w:F};return k&&(z.name=k),z}function m(p,y){return f(p,y.v,y.w,y.name)}_.prototype._nodeCount=0,_.prototype._edgeCount=0,_.prototype.isDirected=function(){return this._isDirected},_.prototype.isMultigraph=function(){return this._isMultigraph},_.prototype.isCompound=function(){return this._isCompound},_.prototype.setGraph=function(p){return this._label=p,this},_.prototype.graph=function(){return this._label},_.prototype.setDefaultNodeLabel=function(p){return d.isFunction(p)||(p=d.constant(p)),this._defaultNodeLabelFn=p,this},_.prototype.nodeCount=function(){return this._nodeCount},_.prototype.nodes=function(){return d.keys(this._nodes)},_.prototype.sources=function(){var p=this;return d.filter(this.nodes(),function(y){return d.isEmpty(p._in[y])})},_.prototype.sinks=function(){var p=this;return d.filter(this.nodes(),function(y){return d.isEmpty(p._out[y])})},_.prototype.setNodes=function(p,y){var S=arguments,k=this;return d.each(p,function(O){S.length>1?k.setNode(O,y):k.setNode(O)}),this},_.prototype.setNode=function(p,y){return d.has(this._nodes,p)?(arguments.length>1&&(this._nodes[p]=y),this):(this._nodes[p]=arguments.length>1?y:this._defaultNodeLabelFn(p),this._isCompound&&(this._parent[p]=w,this._children[p]={},this._children[w][p]=!0),this._in[p]={},this._preds[p]={},this._out[p]={},this._sucs[p]={},++this._nodeCount,this)},_.prototype.node=function(p){return this._nodes[p]},_.prototype.hasNode=function(p){return d.has(this._nodes,p)},_.prototype.removeNode=function(p){var y=this;if(d.has(this._nodes,p)){var S=function(k){y.removeEdge(y._edgeObjs[k])};delete this._nodes[p],this._isCompound&&(this._removeFromParentsChildList(p),delete this._parent[p],d.each(this.children(p),function(k){y.setParent(k)}),delete this._children[p]),d.each(d.keys(this._in[p]),S),delete this._in[p],delete this._preds[p],d.each(d.keys(this._out[p]),S),delete this._out[p],delete this._sucs[p],--this._nodeCount}return this},_.prototype.setParent=function(p,y){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(d.isUndefined(y))y=w;else{for(var S=y+="";!d.isUndefined(S);S=this.parent(S))if(S===p)throw new Error("Setting "+y+" as parent of "+p+" would create a cycle");this.setNode(y)}return this.setNode(p),this._removeFromParentsChildList(p),this._parent[p]=y,this._children[y][p]=!0,this},_.prototype._removeFromParentsChildList=function(p){delete this._children[this._parent[p]][p]},_.prototype.parent=function(p){if(this._isCompound){var y=this._parent[p];if(y!==w)return y}},_.prototype.children=function(p){if(d.isUndefined(p)&&(p=w),this._isCompound){var y=this._children[p];if(y)return d.keys(y)}else{if(p===w)return this.nodes();if(this.hasNode(p))return[]}},_.prototype.predecessors=function(p){var y=this._preds[p];if(y)return d.keys(y)},_.prototype.successors=function(p){var y=this._sucs[p];if(y)return d.keys(y)},_.prototype.neighbors=function(p){var y=this.predecessors(p);if(y)return d.union(y,this.successors(p))},_.prototype.isLeaf=function(p){return 0===(this.isDirected()?this.successors(p):this.neighbors(p)).length},_.prototype.filterNodes=function(p){var y=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});y.setGraph(this.graph());var S=this;d.each(this._nodes,function(F,R){p(R)&&y.setNode(R,F)}),d.each(this._edgeObjs,function(F){y.hasNode(F.v)&&y.hasNode(F.w)&&y.setEdge(F,S.edge(F))});var k={};function O(F){var R=S.parent(F);return void 0===R||y.hasNode(R)?(k[F]=R,R):R in k?k[R]:O(R)}return this._isCompound&&d.each(y.nodes(),function(F){y.setParent(F,O(F))}),y},_.prototype.setDefaultEdgeLabel=function(p){return d.isFunction(p)||(p=d.constant(p)),this._defaultEdgeLabelFn=p,this},_.prototype.edgeCount=function(){return this._edgeCount},_.prototype.edges=function(){return d.values(this._edgeObjs)},_.prototype.setPath=function(p,y){var S=this,k=arguments;return d.reduce(p,function(O,F){return k.length>1?S.setEdge(O,F,y):S.setEdge(O,F),F}),this},_.prototype.setEdge=function(){var p,y,S,k,O=!1,F=arguments[0];"object"==typeof F&&null!==F&&"v"in F?(p=F.v,y=F.w,S=F.name,2===arguments.length&&(k=arguments[1],O=!0)):(p=F,y=arguments[1],S=arguments[3],arguments.length>2&&(k=arguments[2],O=!0)),p=""+p,y=""+y,d.isUndefined(S)||(S=""+S);var R=f(this._isDirected,p,y,S);if(d.has(this._edgeLabels,R))return O&&(this._edgeLabels[R]=k),this;if(!d.isUndefined(S)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(p),this.setNode(y),this._edgeLabels[R]=O?k:this._defaultEdgeLabelFn(p,y,S);var z=v(this._isDirected,p,y,S);return p=z.v,y=z.w,Object.freeze(z),this._edgeObjs[R]=z,x(this._preds[y],p),x(this._sucs[p],y),this._in[y][R]=z,this._out[p][R]=z,this._edgeCount++,this},_.prototype.edge=function(p,y,S){var k=1===arguments.length?m(this._isDirected,arguments[0]):f(this._isDirected,p,y,S);return this._edgeLabels[k]},_.prototype.hasEdge=function(p,y,S){var k=1===arguments.length?m(this._isDirected,arguments[0]):f(this._isDirected,p,y,S);return d.has(this._edgeLabels,k)},_.prototype.removeEdge=function(p,y,S){var k=1===arguments.length?m(this._isDirected,arguments[0]):f(this._isDirected,p,y,S),O=this._edgeObjs[k];return O&&(p=O.v,y=O.w,delete this._edgeLabels[k],delete this._edgeObjs[k],g(this._preds[y],p),g(this._sucs[p],y),delete this._in[y][k],delete this._out[p][k],this._edgeCount--),this},_.prototype.inEdges=function(p,y){var S=this._in[p];if(S){var k=d.values(S);return y?d.filter(k,function(O){return O.v===y}):k}},_.prototype.outEdges=function(p,y){var S=this._out[p];if(S){var k=d.values(S);return y?d.filter(k,function(O){return O.w===y}):k}},_.prototype.nodeEdges=function(p,y){var S=this.inEdges(p,y);if(S)return S.concat(this.outEdges(p,y))}},1838:(E,L,u)=>{E.exports={Graph:u(6568),version:u(5089)}},1088:(E,L,u)=>{var d=u(9138),D=u(6568);function C(g){return d.map(g.nodes(),function(f){var v=g.node(f),m=g.parent(f),p={v:f};return d.isUndefined(v)||(p.value=v),d.isUndefined(m)||(p.parent=m),p})}function _(g){return d.map(g.edges(),function(f){var v=g.edge(f),m={v:f.v,w:f.w};return d.isUndefined(f.name)||(m.name=f.name),d.isUndefined(v)||(m.value=v),m})}E.exports={write:function w(g){var f={options:{directed:g.isDirected(),multigraph:g.isMultigraph(),compound:g.isCompound()},nodes:C(g),edges:_(g)};return d.isUndefined(g.graph())||(f.value=d.clone(g.graph())),f},read:function x(g){var f=new D(g.options).setGraph(g.value);return d.each(g.nodes,function(v){f.setNode(v.v,v.value),v.parent&&f.setParent(v.v,v.parent)}),d.each(g.edges,function(v){f.setEdge({v:v.v,w:v.w,name:v.name},v.value)}),f}}},9138:(E,L,u)=>{var d;try{d={clone:u(1094),constant:u(6684),each:u(5474),filter:u(5281),has:u(4842),isArray:u(1503),isEmpty:u(1973),isFunction:u(5946),isUndefined:u(4235),keys:u(118),map:u(9984),reduce:u(1337),size:u(5637),transform:u(9416),union:u(8921),values:u(377)}}catch(D){}d||(d=window._),E.exports=d},5089:E=>{E.exports="2.1.8"},7244:(E,L,u)=>{var w=u(3436)(u(2119),"DataView");E.exports=w},4994:(E,L,u)=>{var d=u(4312),D=u(6421),w=u(5764),C=u(8685),_=u(6676);function x(g){var f=-1,v=null==g?0:g.length;for(this.clear();++f<v;){var m=g[f];this.set(m[0],m[1])}}x.prototype.clear=d,x.prototype.delete=D,x.prototype.get=w,x.prototype.has=C,x.prototype.set=_,E.exports=x},9215:(E,L,u)=>{var d=u(1840),D=u(4378),w=u(4981),C=u(7343),_=u(8895);function x(g){var f=-1,v=null==g?0:g.length;for(this.clear();++f<v;){var m=g[f];this.set(m[0],m[1])}}x.prototype.clear=d,x.prototype.delete=D,x.prototype.get=w,x.prototype.has=C,x.prototype.set=_,E.exports=x},1501:(E,L,u)=>{var w=u(3436)(u(2119),"Map");E.exports=w},9850:(E,L,u)=>{var d=u(638),D=u(1184),w=u(866),C=u(3771),_=u(1772);function x(g){var f=-1,v=null==g?0:g.length;for(this.clear();++f<v;){var m=g[f];this.set(m[0],m[1])}}x.prototype.clear=d,x.prototype.delete=D,x.prototype.get=w,x.prototype.has=C,x.prototype.set=_,E.exports=x},4267:(E,L,u)=>{var w=u(3436)(u(2119),"Promise");E.exports=w},6323:(E,L,u)=>{var w=u(3436)(u(2119),"Set");E.exports=w},8849:(E,L,u)=>{var d=u(9850),D=u(4600),w=u(1387);function C(_){var x=-1,g=null==_?0:_.length;for(this.__data__=new d;++x<g;)this.add(_[x])}C.prototype.add=C.prototype.push=D,C.prototype.has=w,E.exports=C},2858:(E,L,u)=>{var d=u(9215),D=u(3720),w=u(4410),C=u(5576),_=u(2247),x=u(1585);function g(f){var v=this.__data__=new d(f);this.size=v.size}g.prototype.clear=D,g.prototype.delete=w,g.prototype.get=C,g.prototype.has=_,g.prototype.set=x,E.exports=g},443:(E,L,u)=>{var d=u(2119);E.exports=d.Symbol},3457:(E,L,u)=>{var d=u(2119);E.exports=d.Uint8Array},4243:(E,L,u)=>{var w=u(3436)(u(2119),"WeakMap");E.exports=w},6999:E=>{E.exports=function L(u,d,D){switch(D.length){case 0:return u.call(d);case 1:return u.call(d,D[0]);case 2:return u.call(d,D[0],D[1]);case 3:return u.call(d,D[0],D[1],D[2])}return u.apply(d,D)}},6837:E=>{E.exports=function L(u,d){for(var D=-1,w=null==u?0:u.length;++D<w&&!1!==d(u[D],D,u););return u}},9779:E=>{E.exports=function L(u,d){for(var D=-1,w=null==u?0:u.length,C=0,_=[];++D<w;){var x=u[D];d(x,D,u)&&(_[C++]=x)}return _}},1253:(E,L,u)=>{var d=u(4164);E.exports=function D(w,C){return!(null==w||!w.length)&&d(w,C,0)>-1}},177:E=>{E.exports=function L(u,d,D){for(var w=-1,C=null==u?0:u.length;++w<C;)if(D(d,u[w]))return!0;return!1}},2271:(E,L,u)=>{var d=u(5334),D=u(7151),w=u(1503),C=u(891),_=u(8442),x=u(8159),f=Object.prototype.hasOwnProperty;E.exports=function v(m,p){var y=w(m),S=!y&&D(m),k=!y&&!S&&C(m),O=!y&&!S&&!k&&x(m),F=y||S||k||O,R=F?d(m.length,String):[],z=R.length;for(var H in m)(p||f.call(m,H))&&(!F||!("length"==H||k&&("offset"==H||"parent"==H)||O&&("buffer"==H||"byteLength"==H||"byteOffset"==H)||_(H,z)))&&R.push(H);return R}},4633:E=>{E.exports=function L(u,d){for(var D=-1,w=null==u?0:u.length,C=Array(w);++D<w;)C[D]=d(u[D],D,u);return C}},5059:E=>{E.exports=function L(u,d){for(var D=-1,w=d.length,C=u.length;++D<w;)u[C+D]=d[D];return u}},8745:E=>{E.exports=function L(u,d,D,w){var C=-1,_=null==u?0:u.length;for(w&&_&&(D=u[++C]);++C<_;)D=d(D,u[C],C,u);return D}},9503:E=>{E.exports=function L(u,d){for(var D=-1,w=null==u?0:u.length;++D<w;)if(d(u[D],D,u))return!0;return!1}},5481:(E,L,u)=>{var D=u(1847)("length");E.exports=D},9276:(E,L,u)=>{var d=u(5683),D=u(217);E.exports=function w(C,_,x){(void 0!==x&&!D(C[_],x)||void 0===x&&!(_ in C))&&d(C,_,x)}},9719:(E,L,u)=>{var d=u(5683),D=u(217),C=Object.prototype.hasOwnProperty;E.exports=function _(x,g,f){var v=x[g];(!C.call(x,g)||!D(v,f)||void 0===f&&!(g in x))&&d(x,g,f)}},3503:(E,L,u)=>{var d=u(217);E.exports=function D(w,C){for(var _=w.length;_--;)if(d(w[_][0],C))return _;return-1}},4121:(E,L,u)=>{var d=u(1989),D=u(118);E.exports=function w(C,_){return C&&d(_,D(_),C)}},9287:(E,L,u)=>{var d=u(1989),D=u(6555);E.exports=function w(C,_){return C&&d(_,D(_),C)}},5683:(E,L,u)=>{var d=u(6713);E.exports=function D(w,C,_){"__proto__"==C&&d?d(w,C,{configurable:!0,enumerable:!0,value:_,writable:!0}):w[C]=_}},4462:(E,L,u)=>{var d=u(2858),D=u(6837),w=u(9719),C=u(4121),_=u(9287),x=u(9292),g=u(9454),f=u(4444),v=u(9905),m=u(7597),p=u(6967),y=u(8794),S=u(6782),k=u(7878),O=u(4264),F=u(1503),R=u(891),z=u(3222),H=u(5940),X=u(799),se=u(118),te=u(6555),V="[object Arguments]",de="[object Function]",pe="[object Object]",wt={};wt[V]=wt["[object Array]"]=wt["[object ArrayBuffer]"]=wt["[object DataView]"]=wt["[object Boolean]"]=wt["[object Date]"]=wt["[object Float32Array]"]=wt["[object Float64Array]"]=wt["[object Int8Array]"]=wt["[object Int16Array]"]=wt["[object Int32Array]"]=wt["[object Map]"]=wt["[object Number]"]=wt[pe]=wt["[object RegExp]"]=wt["[object Set]"]=wt["[object String]"]=wt["[object Symbol]"]=wt["[object Uint8Array]"]=wt["[object Uint8ClampedArray]"]=wt["[object Uint16Array]"]=wt["[object Uint32Array]"]=!0,wt["[object Error]"]=wt[de]=wt["[object WeakMap]"]=!1,E.exports=function sr(Ct,Sr,Ji,ac,ho,vs){var ti,Ar=1&Sr,rr=2&Sr,Aa=4&Sr;if(Ji&&(ti=ho?Ji(Ct,ac,ho,vs):Ji(Ct)),void 0!==ti)return ti;if(!H(Ct))return Ct;var Ma=F(Ct);if(Ma){if(ti=S(Ct),!Ar)return g(Ct,ti)}else{var or=y(Ct),lc=or==de||"[object GeneratorFunction]"==or;if(R(Ct))return x(Ct,Ar);if(or==pe||or==V||lc&&!ho){if(ti=rr||lc?{}:O(Ct),!Ar)return rr?v(Ct,_(ti,Ct)):f(Ct,C(ti,Ct))}else{if(!wt[or])return ho?Ct:{};ti=k(Ct,or,Ar)}}vs||(vs=new d);var cc=vs.get(Ct);if(cc)return cc;vs.set(Ct,ti),X(Ct)?Ct.forEach(function(Ns){ti.add(sr(Ns,Sr,Ji,Ns,Ct,vs))}):z(Ct)&&Ct.forEach(function(Ns,Rs){ti.set(Rs,sr(Ns,Sr,Ji,Rs,Ct,vs))});var uc=Ma?void 0:(Aa?rr?p:m:rr?te:se)(Ct);return D(uc||Ct,function(Ns,Rs){uc&&(Ns=Ct[Rs=Ns]),w(ti,Rs,sr(Ns,Sr,Ji,Rs,Ct,vs))}),ti}},8858:(E,L,u)=>{var d=u(5940),D=Object.create,w=function(){function C(){}return function(_){if(!d(_))return{};if(D)return D(_);C.prototype=_;var x=new C;return C.prototype=void 0,x}}();E.exports=w},3132:(E,L,u)=>{var d=u(5184),w=u(6539)(d);E.exports=w},7308:(E,L,u)=>{var d=u(4129);E.exports=function D(w,C,_){for(var x=-1,g=w.length;++x<g;){var f=w[x],v=C(f);if(null!=v&&(void 0===m?v==v&&!d(v):_(v,m)))var m=v,p=f}return p}},3609:(E,L,u)=>{var d=u(3132);E.exports=function D(w,C){var _=[];return d(w,function(x,g,f){C(x,g,f)&&_.push(x)}),_}},5317:E=>{E.exports=function L(u,d,D,w){for(var C=u.length,_=D+(w?1:-1);w?_--:++_<C;)if(d(u[_],_,u))return _;return-1}},686:(E,L,u)=>{var d=u(5059),D=u(5039);E.exports=function w(C,_,x,g,f){var v=-1,m=C.length;for(x||(x=D),f||(f=[]);++v<m;){var p=C[v];_>0&&x(p)?_>1?w(p,_-1,x,g,f):d(f,p):g||(f[f.length]=p)}return f}},755:(E,L,u)=>{var D=u(456)();E.exports=D},5184:(E,L,u)=>{var d=u(755),D=u(118);E.exports=function w(C,_){return C&&d(C,_,D)}},5456:(E,L,u)=>{var d=u(6884),D=u(8533);E.exports=function w(C,_){for(var x=0,g=(_=d(_,C)).length;null!=C&&x<g;)C=C[D(_[x++])];return x&&x==g?C:void 0}},8247:(E,L,u)=>{var d=u(5059),D=u(1503);E.exports=function w(C,_,x){var g=_(C);return D(C)?g:d(g,x(C))}},3337:(E,L,u)=>{var d=u(443),D=u(1318),w=u(2902),x=d?d.toStringTag:void 0;E.exports=function g(f){return null==f?void 0===f?"[object Undefined]":"[object Null]":x&&x in Object(f)?D(f):w(f)}},1100:E=>{E.exports=function L(u,d){return u>d}},4781:E=>{var u=Object.prototype.hasOwnProperty;E.exports=function d(D,w){return null!=D&&u.call(D,w)}},9989:E=>{E.exports=function L(u,d){return null!=u&&d in Object(u)}},4164:(E,L,u)=>{var d=u(5317),D=u(968),w=u(4977);E.exports=function C(_,x,g){return x==x?w(_,x,g):d(_,D,g)}},186:(E,L,u)=>{var d=u(3337),D=u(2671);E.exports=function C(_){return D(_)&&"[object Arguments]"==d(_)}},5740:(E,L,u)=>{var d=u(8325),D=u(2671);E.exports=function w(C,_,x,g,f){return C===_||(null==C||null==_||!D(C)&&!D(_)?C!=C&&_!=_:d(C,_,x,g,w,f))}},8325:(E,L,u)=>{var d=u(2858),D=u(3914),w=u(8583),C=u(2286),_=u(8794),x=u(1503),g=u(891),f=u(8159),m="[object Arguments]",p="[object Array]",y="[object Object]",k=Object.prototype.hasOwnProperty;E.exports=function O(F,R,z,H,X,se){var te=x(F),ie=x(R),le=te?p:_(F),N=ie?p:_(R),V=(le=le==m?y:le)==y,U=(N=N==m?y:N)==y,$=le==N;if($&&g(F)){if(!g(R))return!1;te=!0,V=!1}if($&&!V)return se||(se=new d),te||f(F)?D(F,R,z,H,X,se):w(F,R,le,z,H,X,se);if(!(1&z)){var Y=V&&k.call(F,"__wrapped__"),oe=U&&k.call(R,"__wrapped__");if(Y||oe){var de=Y?F.value():F,ee=oe?R.value():R;return se||(se=new d),X(de,ee,z,H,se)}}return!!$&&(se||(se=new d),C(F,R,z,H,X,se))}},7021:(E,L,u)=>{var d=u(8794),D=u(2671);E.exports=function C(_){return D(_)&&"[object Map]"==d(_)}},431:(E,L,u)=>{var d=u(2858),D=u(5740);E.exports=function _(x,g,f,v){var m=f.length,p=m,y=!v;if(null==x)return!p;for(x=Object(x);m--;){var S=f[m];if(y&&S[2]?S[1]!==x[S[0]]:!(S[0]in x))return!1}for(;++m<p;){var k=(S=f[m])[0],O=x[k],F=S[1];if(y&&S[2]){if(void 0===O&&!(k in x))return!1}else{var R=new d;if(v)var z=v(O,F,k,x,g,R);if(!(void 0===z?D(F,O,3,v,R):z))return!1}}return!0}},968:E=>{E.exports=function L(u){return u!=u}},7304:(E,L,u)=>{var d=u(5946),D=u(1943),w=u(5940),C=u(2827),x=/^\[object .+?Constructor\]$/,p=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");E.exports=function y(S){return!(!w(S)||D(S))&&(d(S)?p:x).test(C(S))}},771:(E,L,u)=>{var d=u(8794),D=u(2671);E.exports=function C(_){return D(_)&&"[object Set]"==d(_)}},1083:(E,L,u)=>{var d=u(3337),D=u(6231),w=u(2671),$={};$["[object Float32Array]"]=$["[object Float64Array]"]=$["[object Int8Array]"]=$["[object Int16Array]"]=$["[object Int32Array]"]=$["[object Uint8Array]"]=$["[object Uint8ClampedArray]"]=$["[object Uint16Array]"]=$["[object Uint32Array]"]=!0,$["[object Arguments]"]=$["[object Array]"]=$["[object ArrayBuffer]"]=$["[object Boolean]"]=$["[object DataView]"]=$["[object Date]"]=$["[object Error]"]=$["[object Function]"]=$["[object Map]"]=$["[object Number]"]=$["[object Object]"]=$["[object RegExp]"]=$["[object Set]"]=$["[object String]"]=$["[object WeakMap]"]=!1,E.exports=function Y(oe){return w(oe)&&D(oe.length)&&!!$[d(oe)]}},6517:(E,L,u)=>{var d=u(8133),D=u(9458),w=u(2608),C=u(1503),_=u(7495);E.exports=function x(g){return"function"==typeof g?g:null==g?w:"object"==typeof g?C(g)?D(g[0],g[1]):d(g):_(g)}},1172:(E,L,u)=>{var d=u(5488),D=u(5491),C=Object.prototype.hasOwnProperty;E.exports=function _(x){if(!d(x))return D(x);var g=[];for(var f in Object(x))C.call(x,f)&&"constructor"!=f&&g.push(f);return g}},2809:(E,L,u)=>{var d=u(5940),D=u(5488),w=u(2158),_=Object.prototype.hasOwnProperty;E.exports=function x(g){if(!d(g))return w(g);var f=D(g),v=[];for(var m in g)"constructor"==m&&(f||!_.call(g,m))||v.push(m);return v}},9069:E=>{E.exports=function L(u,d){return u<d}},2046:(E,L,u)=>{var d=u(3132),D=u(6507);E.exports=function w(C,_){var x=-1,g=D(C)?Array(C.length):[];return d(C,function(f,v,m){g[++x]=_(f,v,m)}),g}},8133:(E,L,u)=>{var d=u(431),D=u(2379),w=u(642);E.exports=function C(_){var x=D(_);return 1==x.length&&x[0][2]?w(x[0][0],x[0][1]):function(g){return g===_||d(g,_,x)}}},9458:(E,L,u)=>{var d=u(5740),D=u(8817),w=u(8492),C=u(5352),_=u(2442),x=u(642),g=u(8533);E.exports=function m(p,y){return C(p)&&_(y)?x(g(p),y):function(S){var k=D(S,p);return void 0===k&&k===y?w(S,p):d(y,k,3)}}},3842:(E,L,u)=>{var d=u(2858),D=u(9276),w=u(755),C=u(3675),_=u(5940),x=u(6555),g=u(9351);E.exports=function f(v,m,p,y,S){v!==m&&w(m,function(k,O){if(S||(S=new d),_(k))C(v,m,O,p,f,y,S);else{var F=y?y(g(v,O),k,O+"",v,m,S):void 0;void 0===F&&(F=k),D(v,O,F)}},x)}},3675:(E,L,u)=>{var d=u(9276),D=u(9292),w=u(5208),C=u(9454),_=u(4264),x=u(7151),g=u(1503),f=u(1330),v=u(891),m=u(5946),p=u(5940),y=u(7614),S=u(8159),k=u(9351),O=u(8067);E.exports=function F(R,z,H,X,se,te,ie){var le=k(R,H),N=k(z,H),V=ie.get(N);if(V)d(R,H,V);else{var U=te?te(le,N,H+"",R,z,ie):void 0,$=void 0===U;if($){var Y=g(N),oe=!Y&&v(N),de=!Y&&!oe&&S(N);U=N,Y||oe||de?g(le)?U=le:f(le)?U=C(le):oe?($=!1,U=D(N,!0)):de?($=!1,U=w(N,!0)):U=[]:y(N)||x(N)?(U=le,x(le)?U=O(le):(!p(le)||m(le))&&(U=_(N))):$=!1}$&&(ie.set(N,U),se(U,N,X,te,ie),ie.delete(N)),d(R,H,U)}}},6119:(E,L,u)=>{var d=u(4633),D=u(5456),w=u(6517),C=u(2046),_=u(8750),x=u(5647),g=u(1215),f=u(2608),v=u(1503);E.exports=function m(p,y,S){y=y.length?d(y,function(F){return v(F)?function(R){return D(R,1===F.length?F[0]:F)}:F}):[f];var k=-1;y=d(y,x(w));var O=C(p,function(F,R,z){return{criteria:d(y,function(X){return X(F)}),index:++k,value:F}});return _(O,function(F,R){return g(F,R,S)})}},3021:(E,L,u)=>{var d=u(5495),D=u(8492);E.exports=function w(C,_){return d(C,_,function(x,g){return D(C,g)})}},5495:(E,L,u)=>{var d=u(5456),D=u(5963),w=u(6884);E.exports=function C(_,x,g){for(var f=-1,v=x.length,m={};++f<v;){var p=x[f],y=d(_,p);g(y,p)&&D(m,w(p,_),y)}return m}},1847:E=>{E.exports=function L(u){return function(d){return null==d?void 0:d[u]}}},9222:(E,L,u)=>{var d=u(5456);E.exports=function D(w){return function(C){return d(C,w)}}},6307:E=>{var L=Math.ceil,u=Math.max;E.exports=function d(D,w,C,_){for(var x=-1,g=u(L((w-D)/(C||1)),0),f=Array(g);g--;)f[_?g:++x]=D,D+=C;return f}},3570:E=>{E.exports=function L(u,d,D,w,C){return C(u,function(_,x,g){D=w?(w=!1,_):d(D,_,x,g)}),D}},3269:(E,L,u)=>{var d=u(2608),D=u(3983),w=u(2185);E.exports=function C(_,x){return w(D(_,x,d),_+"")}},5963:(E,L,u)=>{var d=u(9719),D=u(6884),w=u(8442),C=u(5940),_=u(8533);E.exports=function x(g,f,v,m){if(!C(g))return g;for(var p=-1,y=(f=D(f,g)).length,S=y-1,k=g;null!=k&&++p<y;){var O=_(f[p]),F=v;if("__proto__"===O||"constructor"===O||"prototype"===O)return g;if(p!=S){var R=k[O];void 0===(F=m?m(R,O,k):void 0)&&(F=C(R)?R:w(f[p+1])?[]:{})}d(k,O,F),k=k[O]}return g}},9510:(E,L,u)=>{var d=u(6684),D=u(6713),w=u(2608);E.exports=D?function(_,x){return D(_,"toString",{configurable:!0,enumerable:!1,value:d(x),writable:!0})}:w},8750:E=>{E.exports=function L(u,d){var D=u.length;for(u.sort(d);D--;)u[D]=u[D].value;return u}},5334:E=>{E.exports=function L(u,d){for(var D=-1,w=Array(u);++D<u;)w[D]=d(D);return w}},3935:(E,L,u)=>{var d=u(443),D=u(4633),w=u(1503),C=u(4129),x=d?d.prototype:void 0,g=x?x.toString:void 0;E.exports=function f(v){if("string"==typeof v)return v;if(w(v))return D(v,f)+"";if(C(v))return g?g.call(v):"";var m=v+"";return"0"==m&&1/v==-1/0?"-0":m}},3348:(E,L,u)=>{var d=u(2760),D=/^\s+/;E.exports=function w(C){return C&&C.slice(0,d(C)+1).replace(D,"")}},5647:E=>{E.exports=function L(u){return function(d){return u(d)}}},707:(E,L,u)=>{var d=u(8849),D=u(1253),w=u(177),C=u(5972),_=u(4575),x=u(4174);E.exports=function f(v,m,p){var y=-1,S=D,k=v.length,O=!0,F=[],R=F;if(p)O=!1,S=w;else if(k>=200){var z=m?null:_(v);if(z)return x(z);O=!1,S=C,R=new d}else R=m?[]:F;e:for(;++y<k;){var H=v[y],X=m?m(H):H;if(H=p||0!==H?H:0,O&&X==X){for(var se=R.length;se--;)if(R[se]===X)continue e;m&&R.push(X),F.push(H)}else S(R,X,p)||(R!==F&&R.push(X),F.push(H))}return F}},9179:(E,L,u)=>{var d=u(4633);E.exports=function D(w,C){return d(C,function(_){return w[_]})}},8645:E=>{E.exports=function L(u,d,D){for(var w=-1,C=u.length,_=d.length,x={};++w<C;)D(x,u[w],w<_?d[w]:void 0);return x}},5972:E=>{E.exports=function L(u,d){return u.has(d)}},1481:(E,L,u)=>{var d=u(2608);E.exports=function D(w){return"function"==typeof w?w:d}},6884:(E,L,u)=>{var d=u(1503),D=u(5352),w=u(2855),C=u(3943);E.exports=function _(x,g){return d(x)?x:D(x,g)?[x]:w(C(x))}},3362:(E,L,u)=>{var d=u(3457);E.exports=function D(w){var C=new w.constructor(w.byteLength);return new d(C).set(new d(w)),C}},9292:(E,L,u)=>{E=u.nmd(E);var d=u(2119),D=L&&!L.nodeType&&L,w=D&&E&&!E.nodeType&&E,_=w&&w.exports===D?d.Buffer:void 0,x=_?_.allocUnsafe:void 0;E.exports=function g(f,v){if(v)return f.slice();var m=f.length,p=x?x(m):new f.constructor(m);return f.copy(p),p}},7e3:(E,L,u)=>{var d=u(3362);E.exports=function D(w,C){var _=C?d(w.buffer):w.buffer;return new w.constructor(_,w.byteOffset,w.byteLength)}},4098:E=>{var L=/\w*$/;E.exports=function u(d){var D=new d.constructor(d.source,L.exec(d));return D.lastIndex=d.lastIndex,D}},2533:(E,L,u)=>{var d=u(443),D=d?d.prototype:void 0,w=D?D.valueOf:void 0;E.exports=function C(_){return w?Object(w.call(_)):{}}},5208:(E,L,u)=>{var d=u(3362);E.exports=function D(w,C){var _=C?d(w.buffer):w.buffer;return new w.constructor(_,w.byteOffset,w.length)}},3443:(E,L,u)=>{var d=u(4129);E.exports=function D(w,C){if(w!==C){var _=void 0!==w,x=null===w,g=w==w,f=d(w),v=void 0!==C,m=null===C,p=C==C,y=d(C);if(!m&&!y&&!f&&w>C||f&&v&&p&&!m&&!y||x&&v&&p||!_&&p||!g)return 1;if(!x&&!f&&!y&&w<C||y&&_&&g&&!x&&!f||m&&_&&g||!v&&g||!p)return-1}return 0}},1215:(E,L,u)=>{var d=u(3443);E.exports=function D(w,C,_){for(var x=-1,g=w.criteria,f=C.criteria,v=g.length,m=_.length;++x<v;){var p=d(g[x],f[x]);if(p)return x>=m?p:p*("desc"==_[x]?-1:1)}return w.index-C.index}},9454:E=>{E.exports=function L(u,d){var D=-1,w=u.length;for(d||(d=Array(w));++D<w;)d[D]=u[D];return d}},1989:(E,L,u)=>{var d=u(9719),D=u(5683);E.exports=function w(C,_,x,g){var f=!x;x||(x={});for(var v=-1,m=_.length;++v<m;){var p=_[v],y=g?g(x[p],C[p],p,x,C):void 0;void 0===y&&(y=C[p]),f?D(x,p,y):d(x,p,y)}return x}},4444:(E,L,u)=>{var d=u(1989),D=u(9383);E.exports=function w(C,_){return d(C,D(C),_)}},9905:(E,L,u)=>{var d=u(1989),D=u(3051);E.exports=function w(C,_){return d(C,D(C),_)}},4610:(E,L,u)=>{var d=u(2119);E.exports=d["__core-js_shared__"]},4944:(E,L,u)=>{var d=u(3269),D=u(3342);E.exports=function w(C){return d(function(_,x){var g=-1,f=x.length,v=f>1?x[f-1]:void 0,m=f>2?x[2]:void 0;for(v=C.length>3&&"function"==typeof v?(f--,v):void 0,m&&D(x[0],x[1],m)&&(v=f<3?void 0:v,f=1),_=Object(_);++g<f;){var p=x[g];p&&C(_,p,g,v)}return _})}},6539:(E,L,u)=>{var d=u(6507);E.exports=function D(w,C){return function(_,x){if(null==_)return _;if(!d(_))return w(_,x);for(var g=_.length,f=C?g:-1,v=Object(_);(C?f--:++f<g)&&!1!==x(v[f],f,v););return _}}},456:E=>{E.exports=function L(u){return function(d,D,w){for(var C=-1,_=Object(d),x=w(d),g=x.length;g--;){var f=x[u?g:++C];if(!1===D(_[f],f,_))break}return d}}},4653:(E,L,u)=>{var d=u(6517),D=u(6507),w=u(118);E.exports=function C(_){return function(x,g,f){var v=Object(x);if(!D(x)){var m=d(g,3);x=w(x),g=function(y){return m(v[y],y,v)}}var p=_(x,g,f);return p>-1?v[m?x[p]:p]:void 0}}},7509:(E,L,u)=>{var d=u(6307),D=u(3342),w=u(2232);E.exports=function C(_){return function(x,g,f){return f&&"number"!=typeof f&&D(x,g,f)&&(g=f=void 0),x=w(x),void 0===g?(g=x,x=0):g=w(g),f=void 0===f?x<g?1:-1:w(f),d(x,g,f,_)}}},4575:(E,L,u)=>{var d=u(6323),D=u(2552),w=u(4174),_=d&&1/w(new d([,-0]))[1]==1/0?function(x){return new d(x)}:D;E.exports=_},6713:(E,L,u)=>{var d=u(3436),D=function(){try{var w=d(Object,"defineProperty");return w({},"",{}),w}catch(C){}}();E.exports=D},3914:(E,L,u)=>{var d=u(8849),D=u(9503),w=u(5972);E.exports=function x(g,f,v,m,p,y){var S=1&v,k=g.length,O=f.length;if(k!=O&&!(S&&O>k))return!1;var F=y.get(g),R=y.get(f);if(F&&R)return F==f&&R==g;var z=-1,H=!0,X=2&v?new d:void 0;for(y.set(g,f),y.set(f,g);++z<k;){var se=g[z],te=f[z];if(m)var ie=S?m(te,se,z,f,g,y):m(se,te,z,g,f,y);if(void 0!==ie){if(ie)continue;H=!1;break}if(X){if(!D(f,function(le,N){if(!w(X,N)&&(se===le||p(se,le,v,m,y)))return X.push(N)})){H=!1;break}}else if(se!==te&&!p(se,te,v,m,y)){H=!1;break}}return y.delete(g),y.delete(f),H}},8583:(E,L,u)=>{var d=u(443),D=u(3457),w=u(217),C=u(3914),_=u(3205),x=u(4174),X=d?d.prototype:void 0,se=X?X.valueOf:void 0;E.exports=function te(ie,le,N,V,U,$,Y){switch(N){case"[object DataView]":if(ie.byteLength!=le.byteLength||ie.byteOffset!=le.byteOffset)return!1;ie=ie.buffer,le=le.buffer;case"[object ArrayBuffer]":return!(ie.byteLength!=le.byteLength||!$(new D(ie),new D(le)));case"[object Boolean]":case"[object Date]":case"[object Number]":return w(+ie,+le);case"[object Error]":return ie.name==le.name&&ie.message==le.message;case"[object RegExp]":case"[object String]":return ie==le+"";case"[object Map]":var oe=_;case"[object Set]":if(oe||(oe=x),ie.size!=le.size&&!(1&V))return!1;var ee=Y.get(ie);if(ee)return ee==le;V|=2,Y.set(ie,le);var J=C(oe(ie),oe(le),V,U,$,Y);return Y.delete(ie),J;case"[object Symbol]":if(se)return se.call(ie)==se.call(le)}return!1}},2286:(E,L,u)=>{var d=u(7597),C=Object.prototype.hasOwnProperty;E.exports=function _(x,g,f,v,m,p){var y=1&f,S=d(x),k=S.length;if(k!=d(g).length&&!y)return!1;for(var R=k;R--;){var z=S[R];if(!(y?z in g:C.call(g,z)))return!1}var H=p.get(x),X=p.get(g);if(H&&X)return H==g&&X==x;var se=!0;p.set(x,g),p.set(g,x);for(var te=y;++R<k;){var ie=x[z=S[R]],le=g[z];if(v)var N=y?v(le,ie,z,g,x,p):v(ie,le,z,x,g,p);if(!(void 0===N?ie===le||m(ie,le,f,v,p):N)){se=!1;break}te||(te="constructor"==z)}if(se&&!te){var V=x.constructor,U=g.constructor;V!=U&&"constructor"in x&&"constructor"in g&&!("function"==typeof V&&V instanceof V&&"function"==typeof U&&U instanceof U)&&(se=!1)}return p.delete(x),p.delete(g),se}},3975:(E,L,u)=>{var d=u(2274),D=u(3983),w=u(2185);E.exports=function C(_){return w(D(_,void 0,d),_+"")}},9122:E=>{var L="object"==typeof global&&global&&global.Object===Object&&global;E.exports=L},7597:(E,L,u)=>{var d=u(8247),D=u(9383),w=u(118);E.exports=function C(_){return d(_,w,D)}},6967:(E,L,u)=>{var d=u(8247),D=u(3051),w=u(6555);E.exports=function C(_){return d(_,w,D)}},4537:(E,L,u)=>{var d=u(3819);E.exports=function D(w,C){var _=w.__data__;return d(C)?_["string"==typeof C?"string":"hash"]:_.map}},2379:(E,L,u)=>{var d=u(2442),D=u(118);E.exports=function w(C){for(var _=D(C),x=_.length;x--;){var g=_[x],f=C[g];_[x]=[g,f,d(f)]}return _}},3436:(E,L,u)=>{var d=u(7304),D=u(1990);E.exports=function w(C,_){var x=D(C,_);return d(x)?x:void 0}},9519:(E,L,u)=>{var D=u(9385)(Object.getPrototypeOf,Object);E.exports=D},1318:(E,L,u)=>{var d=u(443),D=Object.prototype,w=D.hasOwnProperty,C=D.toString,_=d?d.toStringTag:void 0;E.exports=function x(g){var f=w.call(g,_),v=g[_];try{g[_]=void 0;var m=!0}catch(y){}var p=C.call(g);return m&&(f?g[_]=v:delete g[_]),p}},9383:(E,L,u)=>{var d=u(9779),D=u(9975),C=Object.prototype.propertyIsEnumerable,_=Object.getOwnPropertySymbols;E.exports=_?function(g){return null==g?[]:(g=Object(g),d(_(g),function(f){return C.call(g,f)}))}:D},3051:(E,L,u)=>{var d=u(5059),D=u(9519),w=u(9383),C=u(9975);E.exports=Object.getOwnPropertySymbols?function(g){for(var f=[];g;)d(f,w(g)),g=D(g);return f}:C},8794:(E,L,u)=>{var d=u(7244),D=u(1501),w=u(4267),C=u(6323),_=u(4243),x=u(3337),g=u(2827),f="[object Map]",m="[object Promise]",p="[object Set]",y="[object WeakMap]",S="[object DataView]",k=g(d),O=g(D),F=g(w),R=g(C),z=g(_),H=x;(d&&H(new d(new ArrayBuffer(1)))!=S||D&&H(new D)!=f||w&&H(w.resolve())!=m||C&&H(new C)!=p||_&&H(new _)!=y)&&(H=function(X){var se=x(X),te="[object Object]"==se?X.constructor:void 0,ie=te?g(te):"";if(ie)switch(ie){case k:return S;case O:return f;case F:return m;case R:return p;case z:return y}return se}),E.exports=H},1990:E=>{E.exports=function L(u,d){return null==u?void 0:u[d]}},7283:(E,L,u)=>{var d=u(6884),D=u(7151),w=u(1503),C=u(8442),_=u(6231),x=u(8533);E.exports=function g(f,v,m){for(var p=-1,y=(v=d(v,f)).length,S=!1;++p<y;){var k=x(v[p]);if(!(S=null!=f&&m(f,k)))break;f=f[k]}return S||++p!=y?S:!!(y=null==f?0:f.length)&&_(y)&&C(k,y)&&(w(f)||D(f))}},7609:E=>{var x=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");E.exports=function g(f){return x.test(f)}},4312:(E,L,u)=>{var d=u(862);E.exports=function D(){this.__data__=d?d(null):{},this.size=0}},6421:E=>{E.exports=function L(u){var d=this.has(u)&&delete this.__data__[u];return this.size-=d?1:0,d}},5764:(E,L,u)=>{var d=u(862),C=Object.prototype.hasOwnProperty;E.exports=function _(x){var g=this.__data__;if(d){var f=g[x];return"__lodash_hash_undefined__"===f?void 0:f}return C.call(g,x)?g[x]:void 0}},8685:(E,L,u)=>{var d=u(862),w=Object.prototype.hasOwnProperty;E.exports=function C(_){var x=this.__data__;return d?void 0!==x[_]:w.call(x,_)}},6676:(E,L,u)=>{var d=u(862);E.exports=function w(C,_){var x=this.__data__;return this.size+=this.has(C)?0:1,x[C]=d&&void 0===_?"__lodash_hash_undefined__":_,this}},6782:E=>{var u=Object.prototype.hasOwnProperty;E.exports=function d(D){var w=D.length,C=new D.constructor(w);return w&&"string"==typeof D[0]&&u.call(D,"index")&&(C.index=D.index,C.input=D.input),C}},7878:(E,L,u)=>{var d=u(3362),D=u(7e3),w=u(4098),C=u(2533),_=u(5208);E.exports=function N(V,U,$){var Y=V.constructor;switch(U){case"[object ArrayBuffer]":return d(V);case"[object Boolean]":case"[object Date]":return new Y(+V);case"[object DataView]":return D(V,$);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return _(V,$);case"[object Map]":case"[object Set]":return new Y;case"[object Number]":case"[object String]":return new Y(V);case"[object RegExp]":return w(V);case"[object Symbol]":return C(V)}}},4264:(E,L,u)=>{var d=u(8858),D=u(9519),w=u(5488);E.exports=function C(_){return"function"!=typeof _.constructor||w(_)?{}:d(D(_))}},5039:(E,L,u)=>{var d=u(443),D=u(7151),w=u(1503),C=d?d.isConcatSpreadable:void 0;E.exports=function _(x){return w(x)||D(x)||!!(C&&x&&x[C])}},8442:E=>{var u=/^(?:0|[1-9]\d*)$/;E.exports=function d(D,w){var C=typeof D;return!!(w=null==w?9007199254740991:w)&&("number"==C||"symbol"!=C&&u.test(D))&&D>-1&&D%1==0&&D<w}},3342:(E,L,u)=>{var d=u(217),D=u(6507),w=u(8442),C=u(5940);E.exports=function _(x,g,f){if(!C(f))return!1;var v=typeof g;return!!("number"==v?D(f)&&w(g,f.length):"string"==v&&g in f)&&d(f[g],x)}},5352:(E,L,u)=>{var d=u(1503),D=u(4129),w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/;E.exports=function _(x,g){if(d(x))return!1;var f=typeof x;return!("number"!=f&&"symbol"!=f&&"boolean"!=f&&null!=x&&!D(x))||C.test(x)||!w.test(x)||null!=g&&x in Object(g)}},3819:E=>{E.exports=function L(u){var d=typeof u;return"string"==d||"number"==d||"symbol"==d||"boolean"==d?"__proto__"!==u:null===u}},1943:(E,L,u)=>{var C,d=u(4610),D=(C=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"";E.exports=function w(C){return!!D&&D in C}},5488:E=>{var L=Object.prototype;E.exports=function u(d){var D=d&&d.constructor;return d===("function"==typeof D&&D.prototype||L)}},2442:(E,L,u)=>{var d=u(5940);E.exports=function D(w){return w==w&&!d(w)}},1840:E=>{E.exports=function L(){this.__data__=[],this.size=0}},4378:(E,L,u)=>{var d=u(3503),w=Array.prototype.splice;E.exports=function C(_){var x=this.__data__,g=d(x,_);return!(g<0||(g==x.length-1?x.pop():w.call(x,g,1),--this.size,0))}},4981:(E,L,u)=>{var d=u(3503);E.exports=function D(w){var C=this.__data__,_=d(C,w);return _<0?void 0:C[_][1]}},7343:(E,L,u)=>{var d=u(3503);E.exports=function D(w){return d(this.__data__,w)>-1}},8895:(E,L,u)=>{var d=u(3503);E.exports=function D(w,C){var _=this.__data__,x=d(_,w);return x<0?(++this.size,_.push([w,C])):_[x][1]=C,this}},638:(E,L,u)=>{var d=u(4994),D=u(9215),w=u(1501);E.exports=function C(){this.size=0,this.__data__={hash:new d,map:new(w||D),string:new d}}},1184:(E,L,u)=>{var d=u(4537);E.exports=function D(w){var C=d(this,w).delete(w);return this.size-=C?1:0,C}},866:(E,L,u)=>{var d=u(4537);E.exports=function D(w){return d(this,w).get(w)}},3771:(E,L,u)=>{var d=u(4537);E.exports=function D(w){return d(this,w).has(w)}},1772:(E,L,u)=>{var d=u(4537);E.exports=function D(w,C){var _=d(this,w),x=_.size;return _.set(w,C),this.size+=_.size==x?0:1,this}},3205:E=>{E.exports=function L(u){var d=-1,D=Array(u.size);return u.forEach(function(w,C){D[++d]=[C,w]}),D}},642:E=>{E.exports=function L(u,d){return function(D){return null!=D&&D[u]===d&&(void 0!==d||u in Object(D))}}},719:(E,L,u)=>{var d=u(535);E.exports=function w(C){var _=d(C,function(g){return 500===x.size&&x.clear(),g}),x=_.cache;return _}},862:(E,L,u)=>{var D=u(3436)(Object,"create");E.exports=D},5491:(E,L,u)=>{var D=u(9385)(Object.keys,Object);E.exports=D},2158:E=>{E.exports=function L(u){var d=[];if(null!=u)for(var D in Object(u))d.push(D);return d}},3597:(E,L,u)=>{E=u.nmd(E);var d=u(9122),D=L&&!L.nodeType&&L,w=D&&E&&!E.nodeType&&E,_=w&&w.exports===D&&d.process,x=function(){try{return w&&w.require&&w.require("util").types||_&&_.binding&&_.binding("util")}catch(f){}}();E.exports=x},2902:E=>{var u=Object.prototype.toString;E.exports=function d(D){return u.call(D)}},9385:E=>{E.exports=function L(u,d){return function(D){return u(d(D))}}},3983:(E,L,u)=>{var d=u(6999),D=Math.max;E.exports=function w(C,_,x){return _=D(void 0===_?C.length-1:_,0),function(){for(var g=arguments,f=-1,v=D(g.length-_,0),m=Array(v);++f<v;)m[f]=g[_+f];f=-1;for(var p=Array(_+1);++f<_;)p[f]=g[f];return p[_]=x(m),d(C,this,p)}}},2119:(E,L,u)=>{var d=u(9122),D="object"==typeof self&&self&&self.Object===Object&&self,w=d||D||Function("return this")();E.exports=w},9351:E=>{E.exports=function L(u,d){if(("constructor"!==d||"function"!=typeof u[d])&&"__proto__"!=d)return u[d]}},4600:E=>{E.exports=function u(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this}},1387:E=>{E.exports=function L(u){return this.__data__.has(u)}},4174:E=>{E.exports=function L(u){var d=-1,D=Array(u.size);return u.forEach(function(w){D[++d]=w}),D}},2185:(E,L,u)=>{var d=u(9510),w=u(29)(d);E.exports=w},29:E=>{var d=Date.now;E.exports=function D(w){var C=0,_=0;return function(){var x=d(),g=16-(x-_);if(_=x,g>0){if(++C>=800)return arguments[0]}else C=0;return w.apply(void 0,arguments)}}},3720:(E,L,u)=>{var d=u(9215);E.exports=function D(){this.__data__=new d,this.size=0}},4410:E=>{E.exports=function L(u){var d=this.__data__,D=d.delete(u);return this.size=d.size,D}},5576:E=>{E.exports=function L(u){return this.__data__.get(u)}},2247:E=>{E.exports=function L(u){return this.__data__.has(u)}},1585:(E,L,u)=>{var d=u(9215),D=u(1501),w=u(9850);E.exports=function _(x,g){var f=this.__data__;if(f instanceof d){var v=f.__data__;if(!D||v.length<199)return v.push([x,g]),this.size=++f.size,this;f=this.__data__=new w(v)}return f.set(x,g),this.size=f.size,this}},4977:E=>{E.exports=function L(u,d,D){for(var w=D-1,C=u.length;++w<C;)if(u[w]===d)return w;return-1}},2315:(E,L,u)=>{var d=u(5481),D=u(7609),w=u(1149);E.exports=function C(_){return D(_)?w(_):d(_)}},2855:(E,L,u)=>{var d=u(719),D=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/\\(\\)?/g,C=d(function(_){var x=[];return 46===_.charCodeAt(0)&&x.push(""),_.replace(D,function(g,f,v,m){x.push(v?m.replace(w,"$1"):f||g)}),x});E.exports=C},8533:(E,L,u)=>{var d=u(4129);E.exports=function w(C){if("string"==typeof C||d(C))return C;var _=C+"";return"0"==_&&1/C==-1/0?"-0":_}},2827:E=>{var u=Function.prototype.toString;E.exports=function d(D){if(null!=D){try{return u.call(D)}catch(w){}try{return D+""}catch(w){}}return""}},2760:E=>{var L=/\s/;E.exports=function u(d){for(var D=d.length;D--&&L.test(d.charAt(D)););return D}},1149:E=>{var L="\\ud800-\\udfff",_="["+L+"]",x="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",g="\\ud83c[\\udffb-\\udfff]",v="[^"+L+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",S="(?:"+x+"|"+g+")?",k="[\\ufe0e\\ufe0f]?",F=k+S+"(?:\\u200d(?:"+[v,m,p].join("|")+")"+k+S+")*",R="(?:"+[v+x+"?",x,m,p,_].join("|")+")",z=RegExp(g+"(?="+g+")|"+R+F,"g");E.exports=function H(X){for(var se=z.lastIndex=0;z.test(X);)++se;return se}},1094:(E,L,u)=>{var d=u(4462);E.exports=function w(C){return d(C,4)}},733:(E,L,u)=>{var d=u(4462);E.exports=function C(_){return d(_,5)}},6684:E=>{E.exports=function L(u){return function(){return u}}},8800:(E,L,u)=>{var d=u(3269),D=u(217),w=u(3342),C=u(6555),_=Object.prototype,x=_.hasOwnProperty,g=d(function(f,v){f=Object(f);var m=-1,p=v.length,y=p>2?v[2]:void 0;for(y&&w(v[0],v[1],y)&&(p=1);++m<p;)for(var S=v[m],k=C(S),O=-1,F=k.length;++O<F;){var R=k[O],z=f[R];(void 0===z||D(z,_[R])&&!x.call(f,R))&&(f[R]=S[R])}return f});E.exports=g},5474:(E,L,u)=>{E.exports=u(9851)},217:E=>{E.exports=function L(u,d){return u===d||u!=u&&d!=d}},5281:(E,L,u)=>{var d=u(9779),D=u(3609),w=u(6517),C=u(1503);E.exports=function _(x,g){return(C(x)?d:D)(x,w(g,3))}},2516:(E,L,u)=>{var w=u(4653)(u(6397));E.exports=w},6397:(E,L,u)=>{var d=u(5317),D=u(6517),w=u(4401),C=Math.max;E.exports=function _(x,g,f){var v=null==x?0:x.length;if(!v)return-1;var m=null==f?0:w(f);return m<0&&(m=C(v+m,0)),d(x,D(g,3),m)}},2274:(E,L,u)=>{var d=u(686);E.exports=function D(w){return null!=w&&w.length?d(w,1):[]}},9851:(E,L,u)=>{var d=u(6837),D=u(3132),w=u(1481),C=u(1503);E.exports=function _(x,g){return(C(x)?d:D)(x,w(g))}},1176:(E,L,u)=>{var d=u(755),D=u(1481),w=u(6555);E.exports=function C(_,x){return null==_?_:d(_,D(x),w)}},8817:(E,L,u)=>{var d=u(5456);E.exports=function D(w,C,_){var x=null==w?void 0:d(w,C);return void 0===x?_:x}},4842:(E,L,u)=>{var d=u(4781),D=u(7283);E.exports=function w(C,_){return null!=C&&D(C,_,d)}},8492:(E,L,u)=>{var d=u(9989),D=u(7283);E.exports=function w(C,_){return null!=C&&D(C,_,d)}},2608:E=>{E.exports=function L(u){return u}},7151:(E,L,u)=>{var d=u(186),D=u(2671),w=Object.prototype,C=w.hasOwnProperty,_=w.propertyIsEnumerable,x=d(function(){return arguments}())?d:function(g){return D(g)&&C.call(g,"callee")&&!_.call(g,"callee")};E.exports=x},1503:E=>{E.exports=Array.isArray},6507:(E,L,u)=>{var d=u(5946),D=u(6231);E.exports=function w(C){return null!=C&&D(C.length)&&!d(C)}},1330:(E,L,u)=>{var d=u(6507),D=u(2671);E.exports=function w(C){return D(C)&&d(C)}},891:(E,L,u)=>{E=u.nmd(E);var d=u(2119),D=u(3580),w=L&&!L.nodeType&&L,C=w&&E&&!E.nodeType&&E,x=C&&C.exports===w?d.Buffer:void 0;E.exports=(x?x.isBuffer:void 0)||D},1973:(E,L,u)=>{var d=u(1172),D=u(8794),w=u(7151),C=u(1503),_=u(6507),x=u(891),g=u(5488),f=u(8159),y=Object.prototype.hasOwnProperty;E.exports=function S(k){if(null==k)return!0;if(_(k)&&(C(k)||"string"==typeof k||"function"==typeof k.splice||x(k)||f(k)||w(k)))return!k.length;var O=D(k);if("[object Map]"==O||"[object Set]"==O)return!k.size;if(g(k))return!d(k).length;for(var F in k)if(y.call(k,F))return!1;return!0}},5946:(E,L,u)=>{var d=u(3337),D=u(5940);E.exports=function g(f){if(!D(f))return!1;var v=d(f);return"[object Function]"==v||"[object GeneratorFunction]"==v||"[object AsyncFunction]"==v||"[object Proxy]"==v}},6231:E=>{E.exports=function u(d){return"number"==typeof d&&d>-1&&d%1==0&&d<=9007199254740991}},3222:(E,L,u)=>{var d=u(7021),D=u(5647),w=u(3597),C=w&&w.isMap,_=C?D(C):d;E.exports=_},5940:E=>{E.exports=function L(u){var d=typeof u;return null!=u&&("object"==d||"function"==d)}},2671:E=>{E.exports=function L(u){return null!=u&&"object"==typeof u}},7614:(E,L,u)=>{var d=u(3337),D=u(9519),w=u(2671),g=Function.prototype.toString,f=Object.prototype.hasOwnProperty,v=g.call(Object);E.exports=function m(p){if(!w(p)||"[object Object]"!=d(p))return!1;var y=D(p);if(null===y)return!0;var S=f.call(y,"constructor")&&y.constructor;return"function"==typeof S&&S instanceof S&&g.call(S)==v}},799:(E,L,u)=>{var d=u(771),D=u(5647),w=u(3597),C=w&&w.isSet,_=C?D(C):d;E.exports=_},248:(E,L,u)=>{var d=u(3337),D=u(1503),w=u(2671);E.exports=function _(x){return"string"==typeof x||!D(x)&&w(x)&&"[object String]"==d(x)}},4129:(E,L,u)=>{var d=u(3337),D=u(2671);E.exports=function C(_){return"symbol"==typeof _||D(_)&&"[object Symbol]"==d(_)}},8159:(E,L,u)=>{var d=u(1083),D=u(5647),w=u(3597),C=w&&w.isTypedArray,_=C?D(C):d;E.exports=_},4235:E=>{E.exports=function L(u){return void 0===u}},118:(E,L,u)=>{var d=u(2271),D=u(1172),w=u(6507);E.exports=function C(_){return w(_)?d(_):D(_)}},6555:(E,L,u)=>{var d=u(2271),D=u(2809),w=u(6507);E.exports=function C(_){return w(_)?d(_,!0):D(_)}},5809:E=>{E.exports=function L(u){var d=null==u?0:u.length;return d?u[d-1]:void 0}},9984:(E,L,u)=>{var d=u(4633),D=u(6517),w=u(2046),C=u(1503);E.exports=function _(x,g){return(C(x)?d:w)(x,D(g,3))}},203:(E,L,u)=>{var d=u(5683),D=u(5184),w=u(6517);E.exports=function C(_,x){var g={};return x=w(x,3),D(_,function(f,v,m){d(g,v,x(f,v,m))}),g}},8176:(E,L,u)=>{var d=u(7308),D=u(1100),w=u(2608);E.exports=function C(_){return _&&_.length?d(_,w,D):void 0}},535:(E,L,u)=>{var d=u(9850);function w(C,_){if("function"!=typeof C||null!=_&&"function"!=typeof _)throw new TypeError("Expected a function");var x=function(){var g=arguments,f=_?_.apply(this,g):g[0],v=x.cache;if(v.has(f))return v.get(f);var m=C.apply(this,g);return x.cache=v.set(f,m)||v,m};return x.cache=new(w.Cache||d),x}w.Cache=d,E.exports=w},567:(E,L,u)=>{var d=u(3842),w=u(4944)(function(C,_,x){d(C,_,x)});E.exports=w},9439:(E,L,u)=>{var d=u(7308),D=u(9069),w=u(2608);E.exports=function C(_){return _&&_.length?d(_,w,D):void 0}},9525:(E,L,u)=>{var d=u(7308),D=u(6517),w=u(9069);E.exports=function C(_,x){return _&&_.length?d(_,D(x,2),w):void 0}},2552:E=>{E.exports=function L(){}},1710:(E,L,u)=>{var d=u(2119);E.exports=function(){return d.Date.now()}},6372:(E,L,u)=>{var d=u(3021),w=u(3975)(function(C,_){return null==C?{}:d(C,_)});E.exports=w},7495:(E,L,u)=>{var d=u(1847),D=u(9222),w=u(5352),C=u(8533);E.exports=function _(x){return w(x)?d(C(x)):D(x)}},361:(E,L,u)=>{var D=u(7509)();E.exports=D},1337:(E,L,u)=>{var d=u(8745),D=u(3132),w=u(6517),C=u(3570),_=u(1503);E.exports=function x(g,f,v){var m=_(g)?d:C,p=arguments.length<3;return m(g,w(f,4),v,p,D)}},5637:(E,L,u)=>{var d=u(1172),D=u(8794),w=u(6507),C=u(248),_=u(2315);E.exports=function f(v){if(null==v)return 0;if(w(v))return C(v)?_(v):v.length;var m=D(v);return"[object Map]"==m||"[object Set]"==m?v.size:d(v).length}},2906:(E,L,u)=>{var d=u(686),D=u(6119),w=u(3269),C=u(3342),_=w(function(x,g){if(null==x)return[];var f=g.length;return f>1&&C(x,g[0],g[1])?g=[]:f>2&&C(g[0],g[1],g[2])&&(g=[g[0]]),D(x,d(g,1),[])});E.exports=_},9975:E=>{E.exports=function L(){return[]}},3580:E=>{E.exports=function L(){return!1}},2232:(E,L,u)=>{var d=u(1467),D=1/0;E.exports=function C(_){return _?(_=d(_))===D||_===-D?17976931348623157e292*(_<0?-1:1):_==_?_:0:0===_?_:0}},4401:(E,L,u)=>{var d=u(2232);E.exports=function D(w){var C=d(w),_=C%1;return C==C?_?C-_:C:0}},1467:(E,L,u)=>{var d=u(3348),D=u(5940),w=u(4129),_=/^[-+]0x[0-9a-f]+$/i,x=/^0b[01]+$/i,g=/^0o[0-7]+$/i,f=parseInt;E.exports=function v(m){if("number"==typeof m)return m;if(w(m))return NaN;if(D(m)){var p="function"==typeof m.valueOf?m.valueOf():m;m=D(p)?p+"":p}if("string"!=typeof m)return 0===m?m:+m;m=d(m);var y=x.test(m);return y||g.test(m)?f(m.slice(2),y?2:8):_.test(m)?NaN:+m}},8067:(E,L,u)=>{var d=u(1989),D=u(6555);E.exports=function w(C){return d(C,D(C))}},3943:(E,L,u)=>{var d=u(3935);E.exports=function D(w){return null==w?"":d(w)}},9416:(E,L,u)=>{var d=u(6837),D=u(8858),w=u(5184),C=u(6517),_=u(9519),x=u(1503),g=u(891),f=u(5946),v=u(5940),m=u(8159);E.exports=function p(y,S,k){var O=x(y),F=O||g(y)||m(y);if(S=C(S,4),null==k){var R=y&&y.constructor;k=F?O?new R:[]:v(y)&&f(R)?D(_(y)):{}}return(F?d:w)(y,function(z,H,X){return S(k,z,H,X)}),k}},8921:(E,L,u)=>{var d=u(686),D=u(3269),w=u(707),C=u(1330),_=D(function(x){return w(d(x,1,C,!0))});E.exports=_},1541:(E,L,u)=>{var d=u(3943),D=0;E.exports=function w(C){var _=++D;return d(C)+_}},377:(E,L,u)=>{var d=u(9179),D=u(118);E.exports=function w(C){return null==C?[]:d(C,D(C))}},1617:(E,L,u)=>{var d=u(9719),D=u(8645);E.exports=function w(C,_){return D(C||[],_||[],d)}},7824:(E,L,u)=>{"use strict";function d(D){for(var w in D)L.hasOwnProperty(w)||(L[w]=D[w])}Object.defineProperty(L,"__esModule",{value:!0}),d(u(5085)),d(u(6243)),d(u(1786)),d(u(225)),d(u(6767)),d(u(345)),d(u(5675)),d(u(6461)),d(u(8802)),d(u(3900)),d(u(8866)),d(u(4655)),d(u(4068)),d(u(3858)),d(u(8237)),d(u(3292))},5085:function(E,L,u){"use strict";var _,d=this&&this.__extends||(_=function(x,g){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var m in v)v.hasOwnProperty(m)&&(f[m]=v[m])})(x,g)},function(x,g){function f(){this.constructor=x}_(x,g),x.prototype=null===g?Object.create(g):(f.prototype=g.prototype,new f)});Object.defineProperty(L,"__esModule",{value:!0});var D=u(5675),w=function(_){function x(g){var f=_.call(this)||this,m=g;return m.trigger&&(f.trigger=m.trigger),m.kick&&(f.kick=m.kick),m.drag&&(f.drag=m.drag),m.on&&(f.on=m.on),f.dragstart=f.dragStart=D.Layout.dragStart,f.dragend=f.dragEnd=D.Layout.dragEnd,f}return d(x,_),x.prototype.trigger=function(g){},x.prototype.kick=function(){},x.prototype.drag=function(){},x.prototype.on=function(g,f){return this},x}(D.Layout);L.LayoutAdaptor=w,L.adaptor=function C(_){return new w(_)}},3292:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var d=u(5675),D=u(6767);L.gridify=function w(x,g,f,v){x.cola.start(0,0,0,10,!1);var m=function C(x,g,f,v){x.forEach(function(p){p.routerNode={name:p.name,bounds:p.bounds.inflate(-f)}}),g.forEach(function(p){p.routerNode={bounds:p.bounds.inflate(-v),children:(void 0!==p.groups?p.groups.map(function(y){return x.length+y.id}):[]).concat(void 0!==p.leaves?p.leaves.map(function(y){return y.index}):[])}});var m=x.concat(g).map(function(p,y){return p.routerNode.id=y,p.routerNode});return new D.GridRouter(m,{getChildren:function(p){return p.children},getBounds:function(p){return p.bounds}},f-v)}(x.cola.nodes(),x.cola.groups(),f,v);return m.routeEdges(x.powerGraph.powerEdges,g,function(p){return p.source.routerNode.id},function(p){return p.target.routerNode.id})},L.powerGraphGridLayout=function _(x,g,f){var v;x.nodes.forEach(function(S,k){return S.index=k}),(new d.Layout).avoidOverlaps(!1).nodes(x.nodes).links(x.links).powerGraphGroups(function(S){(v=S).groups.forEach(function(k){return k.padding=f})});var m=x.nodes.length,p=[],y=x.nodes.slice(0);return y.forEach(function(S,k){return S.index=k}),v.groups.forEach(function(S){var k=S.index=S.id+m;y.push(S),void 0!==S.leaves&&S.leaves.forEach(function(O){return p.push({source:k,target:O.index})}),void 0!==S.groups&&S.groups.forEach(function(O){return p.push({source:k,target:O.id+m})})}),v.powerEdges.forEach(function(S){p.push({source:S.source.index,target:S.target.index})}),(new d.Layout).size(g).nodes(y).links(p).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new d.Layout).convergenceThreshold(.001).size(g).avoidOverlaps(!0).nodes(x.nodes).links(x.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(S){(v=S).groups.forEach(function(k){k.padding=f})}).start(50,0,100,0,!1),powerGraph:v}}},6243:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var d=u(9346),D=u(2487);L.d3adaptor=function w(_){return!_||function C(_){return _.version&&null!==_.version.match(/^3\./)}(_)?new d.D3StyleLayoutAdaptor:new D.D3StyleLayoutAdaptor(_)}},9346:function(E,L,u){"use strict";var _,d=this&&this.__extends||(_=function(x,g){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var m in v)v.hasOwnProperty(m)&&(f[m]=v[m])})(x,g)},function(x,g){function f(){this.constructor=x}_(x,g),x.prototype=null===g?Object.create(g):(f.prototype=g.prototype,new f)});Object.defineProperty(L,"__esModule",{value:!0});var D=u(5675),w=function(_){function x(){var g=_.call(this)||this;g.event=d3.dispatch(D.EventType[D.EventType.start],D.EventType[D.EventType.tick],D.EventType[D.EventType.end]);var f=g;return g.drag=function(){if(!m)var m=d3.behavior.drag().origin(D.Layout.dragOrigin).on("dragstart.d3adaptor",D.Layout.dragStart).on("drag.d3adaptor",function(p){D.Layout.drag(p,d3.event),f.resume()}).on("dragend.d3adaptor",D.Layout.dragEnd);if(!arguments.length)return m;this.call(m)},g}return d(x,_),x.prototype.trigger=function(g){var f={type:D.EventType[g.type],alpha:g.alpha,stress:g.stress};this.event[f.type](f)},x.prototype.kick=function(){var g=this;d3.timer(function(){return _.prototype.tick.call(g)})},x.prototype.on=function(g,f){return this.event.on("string"==typeof g?g:D.EventType[g],f),this},x}(D.Layout);L.D3StyleLayoutAdaptor=w,L.d3adaptor=function C(){return new w}},2487:function(E,L,u){"use strict";var C,d=this&&this.__extends||(C=function(_,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,f){g.__proto__=f}||function(g,f){for(var v in f)f.hasOwnProperty(v)&&(g[v]=f[v])})(_,x)},function(_,x){function g(){this.constructor=_}C(_,x),_.prototype=null===x?Object.create(x):(g.prototype=x.prototype,new g)});Object.defineProperty(L,"__esModule",{value:!0});var D=u(5675),w=function(C){function _(x){var g=C.call(this)||this;g.d3Context=x,g.event=x.dispatch(D.EventType[D.EventType.start],D.EventType[D.EventType.tick],D.EventType[D.EventType.end]);var f=g;return g.drag=function(){if(!m)var m=x.drag().subject(D.Layout.dragOrigin).on("start.d3adaptor",D.Layout.dragStart).on("drag.d3adaptor",function(p){D.Layout.drag(p,x.event),f.resume()}).on("end.d3adaptor",D.Layout.dragEnd);if(!arguments.length)return m;arguments[0].call(m)},g}return d(_,C),_.prototype.trigger=function(x){var g={type:D.EventType[x.type],alpha:x.alpha,stress:x.stress};this.event.call(g.type,g)},_.prototype.kick=function(){var x=this,g=this.d3Context.timer(function(){return C.prototype.tick.call(x)&&g.stop()})},_.prototype.on=function(x,g){return this.event.on("string"==typeof x?x:D.EventType[x],g),this},_}(D.Layout);L.D3StyleLayoutAdaptor=w},1786:(E,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var u=function(){function w(){this.locks={}}return w.prototype.add=function(C,_){this.locks[C]=_},w.prototype.clear=function(){this.locks={}},w.prototype.isEmpty=function(){for(var C in this.locks)return!1;return!0},w.prototype.apply=function(C){for(var _ in this.locks)C(Number(_),this.locks[_])},w}();L.Locks=u;var d=function(){function w(C,_,x){void 0===x&&(x=null),this.D=_,this.G=x,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new D,this.project=null,this.x=C,this.k=C.length;var g=this.n=C[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new u,this.minD=Number.MAX_VALUE;for(var v,f=g;f--;)for(v=g;--v>f;){var m=_[f][v];m>0&&m<this.minD&&(this.minD=m)}for(this.minD===Number.MAX_VALUE&&(this.minD=1),f=this.k;f--;){for(this.g[f]=new Array(g),this.H[f]=new Array(g),v=g;v--;)this.H[f][v]=new Array(g);this.Hd[f]=new Array(g),this.a[f]=new Array(g),this.b[f]=new Array(g),this.c[f]=new Array(g),this.d[f]=new Array(g),this.e[f]=new Array(g),this.ia[f]=new Array(g),this.ib[f]=new Array(g),this.xtmp[f]=new Array(g)}}return w.createSquareMatrix=function(C,_){for(var x=new Array(C),g=0;g<C;++g){x[g]=new Array(C);for(var f=0;f<C;++f)x[g][f]=_(g,f)}return x},w.prototype.offsetDir=function(){for(var C=this,_=new Array(this.k),x=0,g=0;g<this.k;++g){var f=_[g]=this.random.getNextBetween(.01,1)-.5;x+=f*f}return x=Math.sqrt(x),_.map(function(v){return v*(C.minD/x)})},w.prototype.computeDerivatives=function(C){var _=this,x=this.n;if(!(x<1)){for(var g,f=new Array(this.k),v=new Array(this.k),m=new Array(this.k),p=0,y=0;y<x;++y){for(g=0;g<this.k;++g)m[g]=this.g[g][y]=0;for(var S=0;S<x;++S)if(y!==S){for(var k=x;k--;){var O=0;for(g=0;g<this.k;++g){var F=f[g]=C[g][y]-C[g][S];O+=v[g]=F*F}if(O>1e-9)break;var R=this.offsetDir();for(g=0;g<this.k;++g)C[g][S]+=R[g]}var z=Math.sqrt(O),H=this.D[y][S],X=null!=this.G?this.G[y][S]:1;if(X>1&&z>H||!isFinite(H)){for(g=0;g<this.k;++g)this.H[g][y][S]=0;continue}X>1&&(X=1);var se=H*H,te=2*X*(z-H)/(se*z),ie=z*z*z,le=2*-X/(se*ie);for(isFinite(te)||console.log(te),g=0;g<this.k;++g)this.g[g][y]+=f[g]*te,m[g]-=this.H[g][y][S]=le*(ie+H*(v[g]-O)+z*O)}for(g=0;g<this.k;++g)p=Math.max(p,this.H[g][y][y]=m[g])}var N=this.snapGridSize/2,V=this.snapGridSize,$=this.snapStrength/(N*N),Y=this.numGridSnapNodes;for(y=0;y<Y;++y)for(g=0;g<this.k;++g){var oe=this.x[g][y],de=oe/V,ee=de%1,J=de-ee;-N<(F=Math.abs(ee)<=.5?oe-J*V:oe>0?oe-(J+1)*V:oe-(J-1)*V)&&F<=N&&(this.scaleSnapByMaxH?(this.g[g][y]+=p*$*F,this.H[g][y][y]+=p*$):(this.g[g][y]+=$*F,this.H[g][y][y]+=$))}this.locks.isEmpty()||this.locks.apply(function(pe,be){for(g=0;g<_.k;++g)_.H[g][pe][pe]+=p,_.g[g][pe]-=p*(be[g]-C[g][pe])})}},w.dotProd=function(C,_){for(var x=0,g=C.length;g--;)x+=C[g]*_[g];return x},w.rightMultiply=function(C,_,x){for(var g=C.length;g--;)x[g]=w.dotProd(C[g],_)},w.prototype.computeStepSize=function(C){for(var _=0,x=0,g=0;g<this.k;++g)_+=w.dotProd(this.g[g],C[g]),w.rightMultiply(this.H[g],C[g],this.Hd[g]),x+=w.dotProd(C[g],this.Hd[g]);return 0!==x&&isFinite(x)?1*_/x:0},w.prototype.reduceStress=function(){this.computeDerivatives(this.x);for(var C=this.computeStepSize(this.g),_=0;_<this.k;++_)this.takeDescentStep(this.x[_],this.g[_],C);return this.computeStress()},w.copy=function(C,_){for(var x=C.length,g=_[0].length,f=0;f<x;++f)for(var v=0;v<g;++v)_[f][v]=C[f][v]},w.prototype.stepAndProject=function(C,_,x,g){w.copy(C,_),this.takeDescentStep(_[0],x[0],g),this.project&&this.project[0](C[0],C[1],_[0]),this.takeDescentStep(_[1],x[1],g),this.project&&this.project[1](_[0],C[1],_[1]);for(var f=2;f<this.k;f++)this.takeDescentStep(_[f],x[f],g)},w.mApply=function(C,_,x){for(var g=C;g-- >0;)for(var f=_;f-- >0;)x(g,f)},w.prototype.matrixApply=function(C){w.mApply(this.k,this.n,C)},w.prototype.computeNextPosition=function(C,_){var x=this;this.computeDerivatives(C);var g=this.computeStepSize(this.g);if(this.stepAndProject(C,_,this.g,g),this.project){this.matrixApply(function(v,m){return x.e[v][m]=C[v][m]-_[v][m]});var f=this.computeStepSize(this.e);f=Math.max(.2,Math.min(f,1)),this.stepAndProject(C,_,this.e,f)}},w.prototype.run=function(C){for(var _=Number.MAX_VALUE,x=!1;!x&&C-- >0;){var g=this.rungeKutta();x=Math.abs(_/g-1)<this.threshold,_=g}return _},w.prototype.rungeKutta=function(){var C=this;this.computeNextPosition(this.x,this.a),w.mid(this.x,this.a,this.ia),this.computeNextPosition(this.ia,this.b),w.mid(this.x,this.b,this.ib),this.computeNextPosition(this.ib,this.c),this.computeNextPosition(this.c,this.d);var _=0;return this.matrixApply(function(x,g){var f=(C.a[x][g]+2*C.b[x][g]+2*C.c[x][g]+C.d[x][g])/6,v=C.x[x][g]-f;_+=v*v,C.x[x][g]=f}),_},w.mid=function(C,_,x){w.mApply(C.length,C[0].length,function(g,f){return x[g][f]=C[g][f]+(_[g][f]-C[g][f])/2})},w.prototype.takeDescentStep=function(C,_,x){for(var g=0;g<this.n;++g)C[g]=C[g]-x*_[g]},w.prototype.computeStress=function(){for(var C=0,_=0,x=this.n-1;_<x;++_)for(var g=_+1,f=this.n;g<f;++g){for(var v=0,m=0;m<this.k;++m){var p=this.x[m][_]-this.x[m][g];v+=p*p}v=Math.sqrt(v);var y=this.D[_][g];if(isFinite(y)){var S=y-v;C+=S*S/(y*y)}}return C},w.zeroDistance=1e-10,w}();L.Descent=d;var D=function(){function w(C){void 0===C&&(C=1),this.seed=C,this.a=214013,this.c=2531011,this.m=2147483648,this.range=32767}return w.prototype.getNext=function(){return this.seed=(this.seed*this.a+this.c)%this.m,(this.seed>>16)/this.range},w.prototype.getNextBetween=function(C,_){return C+this.getNext()*(_-C)},w}();L.PseudoRandom=D},225:function(E,L,u){"use strict";var ee,d=this&&this.__extends||(ee=function(J,ce){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,be){pe.__proto__=be}||function(pe,be){for(var fe in be)be.hasOwnProperty(fe)&&(pe[fe]=be[fe])})(J,ce)},function(J,ce){function pe(){this.constructor=J}ee(J,ce),J.prototype=null===ce?Object.create(ce):(pe.prototype=ce.prototype,new pe)});Object.defineProperty(L,"__esModule",{value:!0});var D=u(4068),w=function ee(){};L.Point=w;var C=function ee(J,ce,pe,be){this.x1=J,this.y1=ce,this.x2=pe,this.y2=be};L.LineSegment=C;var _=function(ee){function J(){return null!==ee&&ee.apply(this,arguments)||this}return d(J,ee),J}(w);function x(ee,J,ce){return(J.x-ee.x)*(ce.y-ee.y)-(ce.x-ee.x)*(J.y-ee.y)}function g(ee,J,ce){return x(ee,J,ce)>0}function f(ee,J,ce){return x(ee,J,ce)<0}function S(ee,J){var ce=J.slice(0);return ce.push(J[0]),{rtan:k(ee,ce),ltan:O(ee,ce)}}function k(ee,J){var pe,be,fe,Pe,ce=J.length-1;if(f(ee,J[1],J[0])&&!g(ee,J[ce-1],J[0]))return 0;for(pe=0,be=ce;;){if(be-pe==1)return g(ee,J[pe],J[be])?pe:be;if((Pe=f(ee,J[(fe=Math.floor((pe+be)/2))+1],J[fe]))&&!g(ee,J[fe-1],J[fe]))return fe;g(ee,J[pe+1],J[pe])?Pe||g(ee,J[pe],J[fe])?be=fe:pe=fe:Pe&&f(ee,J[pe],J[fe])?be=fe:pe=fe}}function O(ee,J){var pe,be,fe,Pe,ce=J.length-1;if(g(ee,J[ce-1],J[0])&&!f(ee,J[1],J[0]))return 0;for(pe=0,be=ce;;){if(be-pe==1)return f(ee,J[pe],J[be])?pe:be;if(Pe=f(ee,J[(fe=Math.floor((pe+be)/2))+1],J[fe]),g(ee,J[fe-1],J[fe])&&!Pe)return fe;f(ee,J[pe+1],J[pe])?Pe?f(ee,J[pe],J[fe])?be=fe:pe=fe:be=fe:Pe?pe=fe:g(ee,J[pe],J[fe])?be=fe:pe=fe}}function F(ee,J,ce,pe,be,fe){var De,Pe;Pe=pe(ee[De=ce(J[0],ee)],J);for(var st=!1;!st;){for(st=!0;De===ee.length-1&&(De=0),!be(J[Pe],ee[De],ee[De+1]);)++De;for(;0===Pe&&(Pe=J.length-1),!fe(ee[De],J[Pe],J[Pe-1]);)--Pe,st=!1}return{t1:De,t2:Pe}}function z(ee,J){return F(ee,J,k,O,g,f)}L.PolyPoint=_,L.isLeft=x,L.ConvexHull=function v(ee){var pe,J=ee.slice(0).sort(function(Fe,Ke){return Fe.x!==Ke.x?Ke.x-Fe.x:Ke.y-Fe.y}),ce=ee.length,fe=J[0].x;for(pe=1;pe<ce&&J[pe].x===fe;++pe);var De=pe-1,Pe=[];if(Pe.push(J[0]),De===ce-1)J[De].y!==J[0].y&&Pe.push(J[De]);else{var st,he=ce-1,xe=J[ce-1].x;for(pe=ce-2;pe>=0&&J[pe].x===xe;pe--);for(st=pe+1,pe=De;++pe<=st;)if(!(x(J[0],J[st],J[pe])>=0&&pe<st)){for(;Pe.length>1&&!(x(Pe[Pe.length-2],Pe[Pe.length-1],J[pe])>0);)Pe.length-=1;0!=pe&&Pe.push(J[pe])}he!=st&&Pe.push(J[he]);var Te=Pe.length;for(pe=st;--pe>=De;)if(!(x(J[he],J[De],J[pe])>=0&&pe>De)){for(;Pe.length>Te&&!(x(Pe[Pe.length-2],Pe[Pe.length-1],J[pe])>0);)Pe.length-=1;0!=pe&&Pe.push(J[pe])}}return Pe},L.clockwiseRadialSweep=function m(ee,J,ce){J.slice(0).sort(function(pe,be){return Math.atan2(pe.y-ee.y,pe.x-ee.x)-Math.atan2(be.y-ee.y,be.x-ee.x)}).forEach(ce)},L.tangent_PolyPolyC=F,L.LRtangent_PolyPolyC=function R(ee,J){var ce=z(J,ee);return{t1:ce.t2,t2:ce.t1}},L.RLtangent_PolyPolyC=z,L.LLtangent_PolyPolyC=function H(ee,J){return F(ee,J,O,O,f,f)},L.RRtangent_PolyPolyC=function X(ee,J){return F(ee,J,k,k,g,g)};var se=function ee(J,ce){this.t1=J,this.t2=ce};L.BiTangent=se;var te=function ee(){};L.BiTangents=te;var ie=function(ee){function J(){return null!==ee&&ee.apply(this,arguments)||this}return d(J,ee),J}(w);L.TVGPoint=ie;var le=function ee(J,ce,pe,be){this.id=J,this.polyid=ce,this.polyvertid=pe,this.p=be,be.vv=this};L.VisibilityVertex=le;var N=function(){function ee(J,ce){this.source=J,this.target=ce}return ee.prototype.length=function(){var J=this.source.p.x-this.target.p.x,ce=this.source.p.y-this.target.p.y;return Math.sqrt(J*J+ce*ce)},ee}();L.VisibilityEdge=N;var V=function(){function ee(J,ce){if(this.P=J,this.V=[],this.E=[],ce)this.V=ce.V.slice(0),this.E=ce.E.slice(0);else{for(var pe=J.length,be=0;be<pe;be++){for(var fe=J[be],De=0;De<fe.length;++De){var st=new le(this.V.length,be,De,fe[De]);this.V.push(st),De>0&&this.E.push(new N(fe[De-1].vv,st))}fe.length>1&&this.E.push(new N(fe[0].vv,fe[fe.length-1].vv))}for(be=0;be<pe-1;be++){var he=J[be];for(De=be+1;De<pe;De++){var xe=J[De],Te=$(he,xe);for(var Fe in Te){var Ke=Te[Fe];this.addEdgeIfVisible(he[Ke.t1],xe[Ke.t2],be,De)}}}}}return ee.prototype.addEdgeIfVisible=function(J,ce,pe,be){this.intersectsPolys(new C(J.x,J.y,ce.x,ce.y),pe,be)||this.E.push(new N(J.vv,ce.vv))},ee.prototype.addPoint=function(J,ce){var pe=this.P.length;this.V.push(new le(this.V.length,pe,0,J));for(var be=0;be<pe;++be)if(be!==ce){var fe=this.P[be],De=S(J,fe);this.addEdgeIfVisible(J,fe[De.ltan],ce,be),this.addEdgeIfVisible(J,fe[De.rtan],ce,be)}return J.vv},ee.prototype.intersectsPolys=function(J,ce,pe){for(var be=0,fe=this.P.length;be<fe;++be)if(be!=ce&&be!=pe&&U(J,this.P[be]).length>0)return!0;return!1},ee}();function U(ee,J){for(var ce=[],pe=1,be=J.length;pe<be;++pe){var fe=D.Rectangle.lineIntersection(ee.x1,ee.y1,ee.x2,ee.y2,J[pe-1].x,J[pe-1].y,J[pe].x,J[pe].y);fe&&ce.push(fe)}return ce}function $(ee,J){for(var ce=ee.length-1,pe=J.length-1,be=new te,fe=0;fe<ce;++fe)for(var De=0;De<pe;++De){var Pe=ee[0==fe?ce-1:fe-1],st=ee[fe],he=ee[fe+1],xe=J[0==De?pe-1:De-1],Te=J[De],Fe=J[De+1],Ke=x(Pe,st,Te),Xe=x(st,xe,Te),ht=x(st,Te,Fe),Kt=x(xe,Te,st),Qi=x(Te,Pe,st),vn=x(Te,st,he);Ke>=0&&Xe>=0&&ht<0&&Kt>=0&&Qi>=0&&vn<0?be.ll=new se(fe,De):Ke<=0&&Xe<=0&&ht>0&&Kt<=0&&Qi<=0&&vn>0?be.rr=new se(fe,De):Ke<=0&&Xe>0&&ht<=0&&Kt>=0&&Qi<0&&vn>=0?be.rl=new se(fe,De):Ke>=0&&Xe<0&&ht>=0&&Kt<=0&&Qi>0&&vn<=0&&(be.lr=new se(fe,De))}return be}function oe(ee,J){return!ee.every(function(ce){return!function Y(ee,J){for(var ce=1,pe=J.length;ce<pe;++ce)if(f(J[ce-1],J[ce],ee))return!1;return!0}(ce,J)})}L.TangentVisibilityGraph=V,L.tangents=$,L.polysOverlap=function de(ee,J){if(oe(ee,J)||oe(J,ee))return!0;for(var ce=1,pe=ee.length;ce<pe;++ce){var be=ee[ce],fe=ee[ce-1];if(U(new C(fe.x,fe.y,be.x,be.y),J).length>0)return!0}return!1}},6767:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var d=u(4068),D=u(8237),w=u(3858),C=function f(v,m,p){this.id=v,this.rect=m,this.children=p,this.leaf=void 0===p||0===p.length};L.NodeWrapper=C;var _=function f(v,m,p,y,S){void 0===y&&(y=null),void 0===S&&(S=null),this.id=v,this.x=m,this.y=p,this.node=y,this.line=S};L.Vert=_;var x=function(){function f(v,m){this.s=v,this.t=m;var p=f.findMatch(v,m),y=m.slice(0).reverse(),S=f.findMatch(v,y);p.length>=S.length?(this.length=p.length,this.si=p.si,this.ti=p.ti,this.reversed=!1):(this.length=S.length,this.si=S.si,this.ti=m.length-S.ti-S.length,this.reversed=!0)}return f.findMatch=function(v,m){for(var p=v.length,y=m.length,S={length:0,si:-1,ti:-1},k=new Array(p),O=0;O<p;O++){k[O]=new Array(y);for(var F=0;F<y;F++)if(v[O]===m[F]){var R=k[O][F]=0===O||0===F?1:k[O-1][F-1]+1;R>S.length&&(S.length=R,S.si=O-R+1,S.ti=F-R+1)}else k[O][F]=0}return S},f.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},f}();L.LongestCommonSubsequence=x;var g=function(){function f(v,m,p){var y=this;void 0===p&&(p=12),this.originalnodes=v,this.groupPadding=p,this.leaves=null,this.nodes=v.map(function(ie,le){return new C(le,m.getBounds(ie),m.getChildren(ie))}),this.leaves=this.nodes.filter(function(ie){return ie.leaf}),this.groups=this.nodes.filter(function(ie){return!ie.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(ie){return ie.children.forEach(function(le){return y.nodes[le].parent=ie})}),this.root={children:[]},this.nodes.forEach(function(ie){void 0===ie.parent&&(ie.parent=y.root,y.root.children.push(ie.id)),ie.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(ie,le){return y.getDepth(ie)-y.getDepth(le)}),this.backToFront.slice(0).reverse().filter(function(ie){return!ie.leaf}).forEach(function(ie){var le=d.Rectangle.empty();ie.children.forEach(function(N){return le=le.union(y.nodes[N].rect)}),ie.rect=le.inflate(y.groupPadding)});var k=this.midPoints(this.cols.map(function(ie){return ie.pos})),O=this.midPoints(this.rows.map(function(ie){return ie.pos})),F=k[0],R=k[k.length-1],z=O[0],H=O[O.length-1],X=this.rows.map(function(ie){return{x1:F,x2:R,y1:ie.pos,y2:ie.pos}}).concat(O.map(function(ie){return{x1:F,x2:R,y1:ie,y2:ie}})),se=this.cols.map(function(ie){return{x1:ie.pos,x2:ie.pos,y1:z,y2:H}}).concat(k.map(function(ie){return{x1:ie,x2:ie,y1:z,y2:H}})),te=X.concat(se);te.forEach(function(ie){return ie.verts=[]}),this.verts=[],this.edges=[],X.forEach(function(ie){return se.forEach(function(le){var N=new _(y.verts.length,le.x1,ie.y1);ie.verts.push(N),le.verts.push(N),y.verts.push(N);for(var V=y.backToFront.length;V-- >0;){var U=y.backToFront[V],$=U.rect,Y=Math.abs(N.x-$.cx()),oe=Math.abs(N.y-$.cy());if(Y<$.width()/2&&oe<$.height()/2){N.node=U;break}}})}),te.forEach(function(ie,le){y.nodes.forEach(function(oe,de){oe.rect.lineIntersections(ie.x1,ie.y1,ie.x2,ie.y2).forEach(function(ee,J){var ce=new _(y.verts.length,ee.x,ee.y,oe,ie);y.verts.push(ce),ie.verts.push(ce),oe.ports.push(ce)})});var N=Math.abs(ie.y1-ie.y2)<.1,V=function(oe,de){return N?de.x-oe.x:de.y-oe.y};ie.verts.sort(V);for(var U=1;U<ie.verts.length;U++){var $=ie.verts[U-1],Y=ie.verts[U];$.node&&$.node===Y.node&&$.node.leaf||y.edges.push({source:$.id,target:Y.id,length:Math.abs(V($,Y))})}})}return f.prototype.avg=function(v){return v.reduce(function(m,p){return m+p})/v.length},f.prototype.getGridLines=function(v){for(var m=[],p=this.leaves.slice(0,this.leaves.length);p.length>0;){var y=p.filter(function(k){return k.rect["overlap"+v.toUpperCase()](p[0].rect)}),S={nodes:y,pos:this.avg(y.map(function(k){return k.rect["c"+v]()}))};m.push(S),S.nodes.forEach(function(k){return p.splice(p.indexOf(k),1)})}return m.sort(function(k,O){return k.pos-O.pos}),m},f.prototype.getDepth=function(v){for(var m=0;v.parent!==this.root;)m++,v=v.parent;return m},f.prototype.midPoints=function(v){for(var m=v[1]-v[0],p=[v[0]-m/2],y=1;y<v.length;y++)p.push((v[y]+v[y-1])/2);return p.push(v[v.length-1]+m/2),p},f.prototype.findLineage=function(v){var m=[v];do{m.push(v=v.parent)}while(v!==this.root);return m.reverse()},f.prototype.findAncestorPathBetween=function(v,m){for(var p=this.findLineage(v),y=this.findLineage(m),S=0;p[S]===y[S];)S++;return{commonAncestor:p[S-1],lineages:p.slice(S).concat(y.slice(S))}},f.prototype.siblingObstacles=function(v,m){var p=this,y=this.findAncestorPathBetween(v,m),S={};y.lineages.forEach(function(O){return S[O.id]={}});var k=y.commonAncestor.children.filter(function(O){return!(O in S)});return y.lineages.filter(function(O){return O.parent!==y.commonAncestor}).forEach(function(O){return k=k.concat(O.parent.children.filter(function(F){return F!==O.id}))}),k.map(function(O){return p.nodes[O]})},f.getSegmentSets=function(v,m,p){for(var y=[],S=0;S<v.length;S++)for(var k=v[S],O=0;O<k.length;O++)(F=k[O]).edgeid=S,F.i=O,Math.abs(F[1][m]-F[0][m])<.1&&y.push(F);y.sort(function(se,te){return se[0][m]-te[0][m]});for(var z=[],H=null,X=0;X<y.length;X++){var F=y[X];(!H||Math.abs(F[0][m]-H.pos)>.1)&&z.push(H={pos:F[0][m],segments:[]}),H.segments.push(F)}return z},f.nudgeSegs=function(v,m,p,y,S,k){var O=y.length;if(!(O<=1)){for(var F=y.map(function(U){return new D.Variable(U[0][v])}),R=[],z=0;z<O;z++)for(var H=0;H<O;H++)if(z!==H){var X=y[z],te=X.edgeid,ie=y[H].edgeid,le=-1,N=-1;"x"==v?S(te,ie)&&(X[0][m]<X[1][m]?(le=H,N=z):(le=z,N=H)):S(te,ie)&&(X[0][m]<X[1][m]?(le=z,N=H):(le=H,N=z)),le>=0&&R.push(new D.Constraint(F[le],F[N],k))}new D.Solver(F,R).solve(),F.forEach(function(U,$){var Y=y[$],oe=U.position();Y[0][v]=Y[1][v]=oe;var de=p[Y.edgeid];Y.i>0&&(de[Y.i-1][1][v]=oe),Y.i<de.length-1&&(de[Y.i+1][0][v]=oe)})}},f.nudgeSegments=function(v,m,p,y,S){for(var k=f.getSegmentSets(v,m,p),O=0;O<k.length;O++){for(var F=k[O],R=[],z=0;z<F.segments.length;z++){var H=F.segments[z];R.push({type:0,s:H,pos:Math.min(H[0][p],H[1][p])}),R.push({type:1,s:H,pos:Math.max(H[0][p],H[1][p])})}R.sort(function(te,ie){return te.pos-ie.pos+te.type-ie.type});var X=[],se=0;R.forEach(function(te){0===te.type?(X.push(te.s),se++):se--,0==se&&(f.nudgeSegs(m,p,v,X,y,S),X=[])})}},f.prototype.routeEdges=function(v,m,p,y){var S=this,k=v.map(function(R){return S.route(p(R),y(R))}),O=f.orderEdges(k),F=k.map(function(R){return f.makeSegments(R)});return f.nudgeSegments(F,"x","y",O,m),f.nudgeSegments(F,"y","x",O,m),f.unreverseEdges(F,k),F},f.unreverseEdges=function(v,m){v.forEach(function(p,y){m[y].reversed&&(p.reverse(),p.forEach(function(k){k.reverse()}))})},f.angleBetween2Lines=function(v,m){var p=Math.atan2(v[0].y-v[1].y,v[0].x-v[1].x),y=Math.atan2(m[0].y-m[1].y,m[0].x-m[1].x),S=p-y;return(S>Math.PI||S<-Math.PI)&&(S=y-p),S},f.isLeft=function(v,m,p){return(m.x-v.x)*(p.y-v.y)-(m.y-v.y)*(p.x-v.x)<=0},f.getOrder=function(v){for(var m={},p=0;p<v.length;p++){var y=v[p];void 0===m[y.l]&&(m[y.l]={}),m[y.l][y.r]=!0}return function(S,k){return void 0!==m[S]&&m[S][k]}},f.orderEdges=function(v){for(var m=[],p=0;p<v.length-1;p++)for(var y=p+1;y<v.length;y++){var F,R,z,S=v[p],k=v[y],O=new x(S,k);if(0!==O.length){if(O.reversed&&(k.reverse(),k.reversed=!0,O=new x(S,k)),(O.si<=0||O.ti<=0)&&(O.si+O.length>=S.length||O.ti+O.length>=k.length)){m.push({l:p,r:y});continue}O.si+O.length>=S.length||O.ti+O.length>=k.length?(F=S[O.si+1],z=S[O.si-1],R=k[O.ti-1]):(F=S[O.si+O.length-2],R=S[O.si+O.length],z=k[O.ti+O.length]),f.isLeft(F,R,z)?m.push({l:y,r:p}):m.push({l:p,r:y})}}return f.getOrder(m)},f.makeSegments=function(v){function m(R){return{x:R.x,y:R.y}}for(var y=[],S=m(v[0]),k=1;k<v.length;k++){var O=m(v[k]),F=k<v.length-1?v[k+1]:null;(!F||(R=S,z=O,H=F,!(Math.abs((z.x-R.x)*(H.y-R.y)-(z.y-R.y)*(H.x-R.x))<.001)))&&(y.push([S,O]),S=O)}var R,z,H;return y},f.prototype.route=function(v,m){var p=this,y=this.nodes[v],S=this.nodes[m];this.obstacles=this.siblingObstacles(y,S);var k={};this.obstacles.forEach(function(N){return k[N.id]=N}),this.passableEdges=this.edges.filter(function(N){var V=p.verts[N.source],U=p.verts[N.target];return!(V.node&&V.node.id in k||U.node&&U.node.id in k)});for(var O=1;O<y.ports.length;O++)this.passableEdges.push({source:y.ports[0].id,target:y.ports[O].id,length:0});for(O=1;O<S.ports.length;O++)this.passableEdges.push({source:S.ports[0].id,target:S.ports[O].id,length:0});var le=new w.Calculator(this.verts.length,this.passableEdges,function(N){return N.source},function(N){return N.target},function(N){return N.length}).PathFromNodeToNodeWithPrevCost(y.ports[0].id,S.ports[0].id,function(N,V,U){var $=p.verts[N],Y=p.verts[V],oe=p.verts[U],de=Math.abs(oe.x-$.x),ee=Math.abs(oe.y-$.y);return $.node===y&&$.node===Y.node||Y.node===S&&Y.node===oe.node?0:de>1&&ee>1?1e3:0}).reverse().map(function(N){return p.verts[N]});return le.push(this.nodes[S.id].ports[0]),le.filter(function(N,V){return!(V<le.length-1&&le[V+1].node===y&&N.node===y||V>0&&N.node===S&&le[V-1].node===S)})},f.getRoutePath=function(v,m,p,y){var O,F,R,de,ee,S={routepath:"M "+v[0][0].x+" "+v[0][0].y+" ",arrowpath:""};if(v.length>1)for(var k=0;k<v.length;k++){var z=(F=(O=v[k])[1].x)-O[0].x,H=(R=O[1].y)-O[0].y;if(k<v.length-1){Math.abs(z)>0?F-=z/Math.abs(z)*m:R-=H/Math.abs(H)*m,S.routepath+="L "+F+" "+R+" ";var X=v[k+1],se=X[0].x,te=X[0].y;z=X[1].x-se,H=X[1].y-te;var V,U,N=f.angleBetween2Lines(O,X)<0?1:0;Math.abs(z)>0?(V=se+z/Math.abs(z)*m,U=te):(V=se,U=te+H/Math.abs(H)*m);var $=Math.abs(V-F),Y=Math.abs(U-R);S.routepath+="A "+$+" "+Y+" 0 0 "+N+" "+V+" "+U+" "}else{var oe=[F,R];Math.abs(z)>0?(de=[F-=z/Math.abs(z)*y,R+p],ee=[F,R-p]):(de=[F+p,R-=H/Math.abs(H)*y],ee=[F-p,R]),S.routepath+="L "+F+" "+R+" ",y>0&&(S.arrowpath="M "+oe[0]+" "+oe[1]+" L "+de[0]+" "+de[1]+" L "+ee[0]+" "+ee[1])}}else z=(F=(O=v[0])[1].x)-O[0].x,H=(R=O[1].y)-O[0].y,oe=[F,R],Math.abs(z)>0?(de=[F-=z/Math.abs(z)*y,R+p],ee=[F,R-p]):(de=[F+p,R-=H/Math.abs(H)*y],ee=[F-p,R]),S.routepath+="L "+F+" "+R+" ",y>0&&(S.arrowpath="M "+oe[0]+" "+oe[1]+" L "+de[0]+" "+de[1]+" L "+ee[0]+" "+ee[1]);return S},f}();L.GridRouter=g},345:(E,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var u_GOLDEN_SECTION=(1+Math.sqrt(5))/2;L.applyPacking=function d(w,C,_,k,S,f){void 0===S&&(S=1),void 0===f&&(f=!0);var p=C,y=_,O=(S=void 0!==S?S:1,k=void 0!==k?k:0,0),F=0,R=0,z=0,H=[];function ie(U,$){H=[],O=0,F=0,z=0;for(var Y=0;Y<U.length;Y++)le(U[Y],$);return Math.abs(function V(){return O/F}()-S)}function le(U,$){for(var Y=void 0,oe=0;oe<H.length;oe++)if(H[oe].space_left>=U.height&&H[oe].x+H[oe].width+U.width+10-$<=1e-4){Y=H[oe];break}H.push(U),void 0!==Y?(U.x=Y.x+Y.width+10,U.y=Y.bottom,U.space_left=U.height,U.bottom=U.y,Y.space_left-=U.height+10,Y.bottom+=U.height+10):(U.y=z,z+=U.height+10,U.x=0,U.bottom=U.y,U.space_left=U.height),U.y+U.height-F>-1e-4&&(F=U.y+U.height-0),U.x+U.width-O>-1e-4&&(O=U.x+U.width-0)}0!=w.length&&(function X(U){U.forEach(function(Y){!function $(Y){var oe=Number.MAX_VALUE,de=Number.MAX_VALUE,ee=0,J=0;Y.array.forEach(function(ce){var pe=void 0!==ce.width?ce.width:k,be=void 0!==ce.height?ce.height:k;pe/=2,be/=2,ee=Math.max(ce.x+pe,ee),oe=Math.min(ce.x-pe,oe),J=Math.max(ce.y+be,J),de=Math.min(ce.y-be,de)}),Y.width=ee-oe,Y.height=J-de}(Y)})}(w),function te(U,$){var Y=Number.POSITIVE_INFINITY,oe=0;U.sort(function(he,xe){return xe.height-he.height});for(var de=Pe=R=U.reduce(function(he,xe){return he.width<xe.width?he.width:xe.width}),ee=st=function N(U){var $=0;return U.forEach(function(Y){return $+=Y.width+10}),$}(U),J=0,ce=Number.MAX_VALUE,pe=Number.MAX_VALUE,be=-1,fe=Number.MAX_VALUE,De=Number.MAX_VALUE;fe>R||De>1e-4;){if(1!=be){var Pe=ee-(ee-de)/u_GOLDEN_SECTION;ce=ie(U,Pe)}if(0!=be){var st=de+(ee-de)/u_GOLDEN_SECTION;pe=ie(U,st)}if(fe=Math.abs(Pe-st),De=Math.abs(ce-pe),ce<Y&&(Y=ce,oe=Pe),pe<Y&&(Y=pe,oe=st),ce>pe?(de=Pe,Pe=st,ce=pe,be=1):(ee=st,st=Pe,pe=ce,be=0),J++>100)break}ie(U,oe)}(w),f&&function se(U){U.forEach(function($){var Y={x:0,y:0};$.array.forEach(function(ee){Y.x+=ee.x,Y.y+=ee.y}),Y.x/=$.array.length,Y.y/=$.array.length;var de_x=$.x-(Y.x-$.width/2)+p/2-O/2,de_y=$.y-(Y.y-$.height/2)+y/2-F/2;$.array.forEach(function(ee){ee.x+=de_x,ee.y+=de_y})})}(w))},L.separateGraphs=function D(w,C){for(var _={},x={},g=[],f=0,v=0;v<C.length;v++){var m=C[v],p=m.source,y=m.target;x[p.index]?x[p.index].push(y):x[p.index]=[y],x[y.index]?x[y.index].push(p):x[y.index]=[p]}for(v=0;v<w.length;v++){var S=w[v];_[S.index]||k(S,!0)}function k(O,F){if(void 0===_[O.index]){F&&(f++,g.push({array:[]})),_[O.index]=f,g[f-1].array.push(O);var R=x[O.index];if(R)for(var z=0;z<R.length;z++)k(R[z],!1)}}return g}},5675:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var f,p,d=u(3900),D=u(8802),w=u(1786),C=u(4068),_=u(3858),x=u(225),g=u(345);function v(p){return void 0!==p.leaves||void 0!==p.groups}(p=f=L.EventType||(L.EventType={}))[p.start=0]="start",p[p.tick=1]="tick",p[p.end=2]="end";var m=function(){function p(){var y=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:p.getSourceIndex,getTargetIndex:p.getTargetIndex,setLength:p.setLinkLength,getType:function(S){return"function"==typeof y._linkType?y._linkType(S):0}}}return p.prototype.on=function(y,S){return this.event||(this.event={}),"string"==typeof y?this.event[f[y]]=S:this.event[y]=S,this},p.prototype.trigger=function(y){this.event&&void 0!==this.event[y.type]&&this.event[y.type](y)},p.prototype.kick=function(){for(;!this.tick(););},p.prototype.tick=function(){if(this._alpha<this._threshold)return this._running=!1,this.trigger({type:f.end,alpha:this._alpha=0,stress:this._lastStress}),!0;var k,O,y=this._nodes.length;for(this._descent.locks.clear(),O=0;O<y;++O)(k=this._nodes[O]).fixed&&((void 0===k.px||void 0===k.py)&&(k.px=k.x,k.py=k.y),this._descent.locks.add(O,[k.px,k.py]));var R=this._descent.rungeKutta();return 0===R?this._alpha=0:void 0!==this._lastStress&&(this._alpha=R),this._lastStress=R,this.updateNodePositions(),this.trigger({type:f.tick,alpha:this._alpha,stress:this._lastStress}),!1},p.prototype.updateNodePositions=function(){for(var k,y=this._descent.x[0],S=this._descent.x[1],O=this._nodes.length;O--;)(k=this._nodes[O]).x=y[O],k.y=S[O]},p.prototype.nodes=function(y){if(!y){if(0===this._nodes.length&&this._links.length>0){var S=0;this._links.forEach(function(O){S=Math.max(S,O.source,O.target)}),this._nodes=new Array(++S);for(var k=0;k<S;++k)this._nodes[k]={}}return this._nodes}return this._nodes=y,this},p.prototype.groups=function(y){var S=this;return y?(this._groups=y,this._rootGroup={},this._groups.forEach(function(k){void 0===k.padding&&(k.padding=1),void 0!==k.leaves&&k.leaves.forEach(function(O,F){"number"==typeof O&&((k.leaves[F]=S._nodes[O]).parent=k)}),void 0!==k.groups&&k.groups.forEach(function(O,F){"number"==typeof O&&((k.groups[F]=S._groups[O]).parent=k)})}),this._rootGroup.leaves=this._nodes.filter(function(k){return void 0===k.parent}),this._rootGroup.groups=this._groups.filter(function(k){return void 0===k.parent}),this):this._groups},p.prototype.powerGraphGroups=function(y){var S=d.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(S.groups),y(S),this},p.prototype.avoidOverlaps=function(y){return arguments.length?(this._avoidOverlaps=y,this):this._avoidOverlaps},p.prototype.handleDisconnected=function(y){return arguments.length?(this._handleDisconnected=y,this):this._handleDisconnected},p.prototype.flowLayout=function(y,S){return arguments.length||(y="y"),this._directedLinkConstraints={axis:y,getMinSeparation:"number"==typeof S?function(){return S}:S},this},p.prototype.links=function(y){return arguments.length?(this._links=y,this):this._links},p.prototype.constraints=function(y){return arguments.length?(this._constraints=y,this):this._constraints},p.prototype.distanceMatrix=function(y){return arguments.length?(this._distanceMatrix=y,this):this._distanceMatrix},p.prototype.size=function(y){return y?(this._canvasSize=y,this):this._canvasSize},p.prototype.defaultNodeSize=function(y){return y?(this._defaultNodeSize=y,this):this._defaultNodeSize},p.prototype.groupCompactness=function(y){return y?(this._groupCompactness=y,this):this._groupCompactness},p.prototype.linkDistance=function(y){return y?(this._linkDistance="function"==typeof y?y:+y,this._linkLengthCalculator=null,this):this._linkDistance},p.prototype.linkType=function(y){return this._linkType=y,this},p.prototype.convergenceThreshold=function(y){return y?(this._threshold="function"==typeof y?y:+y,this):this._threshold},p.prototype.alpha=function(y){return arguments.length?(y=+y,this._alpha?this._alpha=y>0?y:0:y>0&&(this._running||(this._running=!0,this.trigger({type:f.start,alpha:this._alpha=y}),this.kick())),this):this._alpha},p.prototype.getLinkLength=function(y){return"function"==typeof this._linkDistance?+this._linkDistance(y):this._linkDistance},p.setLinkLength=function(y,S){y.length=S},p.prototype.getLinkType=function(y){return"function"==typeof this._linkType?this._linkType(y):0},p.prototype.symmetricDiffLinkLengths=function(y,S){var k=this;return void 0===S&&(S=1),this.linkDistance(function(O){return y*O.length}),this._linkLengthCalculator=function(){return D.symmetricDiffLinkLengths(k._links,k.linkAccessor,S)},this},p.prototype.jaccardLinkLengths=function(y,S){var k=this;return void 0===S&&(S=1),this.linkDistance(function(O){return y*O.length}),this._linkLengthCalculator=function(){return D.jaccardLinkLengths(k._links,k.linkAccessor,S)},this},p.prototype.start=function(y,S,k,O,F,R){var z=this;void 0===y&&(y=0),void 0===S&&(S=0),void 0===k&&(k=0),void 0===O&&(O=0),void 0===F&&(F=!0),void 0===R&&(R=!0);var oe,se=this.nodes().length,te=se+2*this._groups.length,le=this._canvasSize[0],N=this._canvasSize[1],V=new Array(te),U=new Array(te),$=null,Y=this._avoidOverlaps;this._nodes.forEach(function(fe,De){fe.index=De,void 0===fe.x&&(fe.x=le/2,fe.y=N/2),V[De]=fe.x,U[De]=fe.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?oe=this._distanceMatrix:(oe=new _.Calculator(te,this._links,p.getSourceIndex,p.getTargetIndex,function(fe){return z.getLinkLength(fe)}).DistanceMatrix(),$=w.Descent.createSquareMatrix(te,function(){return 2}),this._links.forEach(function(fe){"number"==typeof fe.source&&(fe.source=z._nodes[fe.source]),"number"==typeof fe.target&&(fe.target=z._nodes[fe.target])}),this._links.forEach(function(fe){var De=p.getSourceIndex(fe),Pe=p.getTargetIndex(fe);$[De][Pe]=$[Pe][De]=fe.weight||1}));var de=w.Descent.createSquareMatrix(te,function(fe,De){return oe[fe][De]});if(this._rootGroup&&void 0!==this._rootGroup.groups){var H=se;this._groups.forEach(function(De){(function(De,Pe,st,he){$[De][Pe]=$[Pe][De]=st,de[De][Pe]=de[Pe][De]=.1})(H,H+1,z._groupCompactness),V[H]=0,U[H++]=0,V[H]=0,U[H++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var J=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,J=J.concat(D.generateDirectedEdgeConstraints(se,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new w.Descent([V,U],de),this._descent.locks.clear(),H=0;H<se;++H){var ce=this._nodes[H];ce.fixed&&(ce.px=ce.x,ce.py=ce.y,this._descent.locks.add(H,[ce.x,ce.y]))}if(this._descent.threshold=this._threshold,this.initialLayout(y,V,U),J.length>0&&(this._descent.project=new C.Projection(this._nodes,this._groups,this._rootGroup,J).projectFunctions()),this._descent.run(S),this.separateOverlappingComponents(le,N,R),this.avoidOverlaps(Y),Y&&(this._nodes.forEach(function(fe,De){fe.x=V[De],fe.y=U[De]}),this._descent.project=new C.Projection(this._nodes,this._groups,this._rootGroup,J,!0).projectFunctions(),this._nodes.forEach(function(fe,De){V[De]=fe.x,U[De]=fe.y})),this._descent.G=$,this._descent.run(k),O){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=se,this._descent.scaleSnapByMaxH=se!=te;var be=w.Descent.createSquareMatrix(te,function(fe,De){return fe>=se||De>=se?$[fe][De]:0});this._descent.G=be,this._descent.run(O)}return this.updateNodePositions(),this.separateOverlappingComponents(le,N,R),F?this.resume():this},p.prototype.initialLayout=function(y,S,k){if(this._groups.length>0&&y>0){var O=this._nodes.length,F=this._links.map(function(z){return{source:z.source.index,target:z.target.index}}),R=this._nodes.map(function(z){return{index:z.index}});this._groups.forEach(function(z,H){R.push({index:z.index=O+H})}),this._groups.forEach(function(z,H){void 0!==z.leaves&&z.leaves.forEach(function(X){return F.push({source:z.index,target:X.index})}),void 0!==z.groups&&z.groups.forEach(function(X){return F.push({source:z.index,target:X.index})})}),(new p).size(this.size()).nodes(R).links(F).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(y,0,0,0,!1),this._nodes.forEach(function(z){S[z.index]=R[z.index].x,k[z.index]=R[z.index].y})}else this._descent.run(y)},p.prototype.separateOverlappingComponents=function(y,S,k){var O=this;if(void 0===k&&(k=!0),!this._distanceMatrix&&this._handleDisconnected){var F=this._descent.x[0],R=this._descent.x[1];this._nodes.forEach(function(H,X){H.x=F[X],H.y=R[X]});var z=g.separateGraphs(this._nodes,this._links);g.applyPacking(z,y,S,this._defaultNodeSize,1,k),this._nodes.forEach(function(H,X){O._descent.x[0][X]=H.x,O._descent.x[1][X]=H.y,H.bounds&&(H.bounds.setXCentre(H.x),H.bounds.setYCentre(H.y))})}},p.prototype.resume=function(){return this.alpha(.1)},p.prototype.stop=function(){return this.alpha(0)},p.prototype.prepareEdgeRouting=function(y){void 0===y&&(y=0),this._visibilityGraph=new x.TangentVisibilityGraph(this._nodes.map(function(S){return S.bounds.inflate(-y).vertices()}))},p.prototype.routeEdge=function(y,S,k){void 0===S&&(S=5);var O=[],F=new x.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),R={x:y.source.x,y:y.source.y},z={x:y.target.x,y:y.target.y},H=F.addPoint(R,y.source.index),X=F.addPoint(z,y.target.index);F.addEdgeIfVisible(R,z,y.source.index,y.target.index),void 0!==k&&k(F);var N=new _.Calculator(F.V.length,F.E,function(de){return de.source.id},function(de){return de.target.id},function(de){return de.length()}).PathFromNodeToNode(H.id,X.id);if(1===N.length||N.length===F.V.length){var V=C.makeEdgeBetween(y.source.innerBounds,y.target.innerBounds,S);O=[V.sourceIntersection,V.arrowStart]}else{for(var U=N.length-2,$=F.V[N[U]].p,Y=F.V[N[0]].p,oe=(O=[y.source.innerBounds.rayIntersection($.x,$.y)],U);oe>=0;--oe)O.push(F.V[N[oe]].p);O.push(C.makeEdgeTo(Y,y.target.innerBounds,S))}return O},p.getSourceIndex=function(y){return"number"==typeof y.source?y.source:y.source.index},p.getTargetIndex=function(y){return"number"==typeof y.target?y.target:y.target.index},p.linkId=function(y){return p.getSourceIndex(y)+"-"+p.getTargetIndex(y)},p.dragStart=function(y){v(y)?p.storeOffset(y,p.dragOrigin(y)):(p.stopNode(y),y.fixed|=2)},p.stopNode=function(y){y.px=y.x,y.py=y.y},p.storeOffset=function(y,S){void 0!==y.leaves&&y.leaves.forEach(function(k){k.fixed|=2,p.stopNode(k),k._dragGroupOffsetX=k.x-S.x,k._dragGroupOffsetY=k.y-S.y}),void 0!==y.groups&&y.groups.forEach(function(k){return p.storeOffset(k,S)})},p.dragOrigin=function(y){return v(y)?{x:y.bounds.cx(),y:y.bounds.cy()}:y},p.drag=function(y,S){v(y)?(void 0!==y.leaves&&y.leaves.forEach(function(k){y.bounds.setXCentre(S.x),y.bounds.setYCentre(S.y),k.px=k._dragGroupOffsetX+S.x,k.py=k._dragGroupOffsetY+S.y}),void 0!==y.groups&&y.groups.forEach(function(k){return p.drag(k,S)})):(y.px=S.x,y.py=S.y)},p.dragEnd=function(y){v(y)?(void 0!==y.leaves&&y.leaves.forEach(function(S){p.dragEnd(S),delete S._dragGroupOffsetX,delete S._dragGroupOffsetY}),void 0!==y.groups&&y.groups.forEach(p.dragEnd)):y.fixed&=-7},p.mouseOver=function(y){y.fixed|=4,y.px=y.x,y.py=y.y},p.mouseOut=function(y){y.fixed&=-5},p}();L.Layout=m},6461:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var d=u(3858),D=u(1786),w=u(4068),C=u(8802),_=function(){function v(m,p){this.source=m,this.target=p}return v.prototype.actualLength=function(m){var p=this;return Math.sqrt(m.reduce(function(y,S){var k=S[p.target]-S[p.source];return y+k*k},0))},v}();L.Link3D=_,L.Node3D=function v(m,p,y){void 0===m&&(m=0),void 0===p&&(p=0),void 0===y&&(y=0),this.x=m,this.y=p,this.z=y};var g=function(){function v(m,p,y){var S=this;void 0===y&&(y=1),this.nodes=m,this.links=p,this.idealLinkLength=y,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(v.k);for(var k=0;k<v.k;++k)this.result[k]=new Array(m.length);m.forEach(function(O,F){for(var R=0,z=v.dims;R<z.length;R++){var H=z[R];void 0===O[H]&&(O[H]=Math.random())}S.result[0][F]=O.x,S.result[1][F]=O.y,S.result[2][F]=O.z})}return v.prototype.linkLength=function(m){return m.actualLength(this.result)},v.prototype.start=function(m){var p=this;void 0===m&&(m=100);var y=this.nodes.length,S=new f;this.useJaccardLinkLengths&&C.jaccardLinkLengths(this.links,S,1.5),this.links.forEach(function(H){return H.length*=p.idealLinkLength});var k=new d.Calculator(y,this.links,function(H){return H.source},function(H){return H.target},function(H){return H.length}).DistanceMatrix(),O=D.Descent.createSquareMatrix(y,function(H,X){return k[H][X]}),F=D.Descent.createSquareMatrix(y,function(){return 2});this.links.forEach(function(H){var X=H.source,se=H.target;return F[X][se]=F[se][X]=1}),this.descent=new D.Descent(this.result,O),this.descent.threshold=.001,this.descent.G=F,this.constraints&&(this.descent.project=new w.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var R=0;R<this.nodes.length;R++){var z=this.nodes[R];z.fixed&&this.descent.locks.add(R,[z.x,z.y,z.z])}return this.descent.run(m),this},v.prototype.tick=function(){this.descent.locks.clear();for(var m=0;m<this.nodes.length;m++){var p=this.nodes[m];p.fixed&&this.descent.locks.add(m,[p.x,p.y,p.z])}return this.descent.rungeKutta()},v.k=(v.dims=["x","y","z"]).length,v}();L.Layout3D=g;var f=function(){function v(){}return v.prototype.getSourceIndex=function(m){return m.source},v.prototype.getTargetIndex=function(m){return m.target},v.prototype.getLength=function(m){return m.length},v.prototype.setLength=function(m,p){m.length=p},v}()},8802:(E,L)=>{"use strict";function u(f,v){var m={};for(var p in f)m[p]={};for(var p in v)m[p]={};return Object.keys(m).length}function d(f,v){var m=0;for(var p in f)void 0!==v[p]&&++m;return m}function w(f,v,m,p){var y=function D(f,v){var m={},p=function(y,S){void 0===m[y]&&(m[y]={}),m[y][S]={}};return f.forEach(function(y){var S=v.getSourceIndex(y),k=v.getTargetIndex(y);p(S,k),p(k,S)}),m}(f,p);f.forEach(function(S){var k=y[p.getSourceIndex(S)],O=y[p.getTargetIndex(S)];p.setLength(S,1+v*m(k,O))})}function g(f,v,m){var p=[],y=0,S=[],k=[];function O(N){N.index=N.lowlink=y++,S.push(N),N.onStack=!0;for(var V=0,U=N.out;V<U.length;V++){var $=U[V];void 0===$.index?(O($),N.lowlink=Math.min(N.lowlink,$.lowlink)):$.onStack&&(N.lowlink=Math.min(N.lowlink,$.index))}if(N.lowlink===N.index){for(var Y=[];S.length&&(($=S.pop()).onStack=!1,Y.push($),$!==N););k.push(Y.map(function(oe){return oe.id}))}}for(var F=0;F<f;F++)p.push({id:F,out:[]});for(var R=0,z=v;R<z.length;R++){var H=z[R],X=p[m.getSourceIndex(H)],se=p[m.getTargetIndex(H)];X.out.push(se)}for(var te=0,ie=p;te<ie.length;te++){var le=ie[te];void 0===le.index&&O(le)}return k}Object.defineProperty(L,"__esModule",{value:!0}),L.symmetricDiffLinkLengths=function C(f,v,m){void 0===m&&(m=1),w(f,m,function(p,y){return Math.sqrt(u(p,y)-d(p,y))},v)},L.jaccardLinkLengths=function _(f,v,m){void 0===m&&(m=1),w(f,m,function(p,y){return Math.min(Object.keys(p).length,Object.keys(y).length)<1.1?0:d(p,y)/u(p,y)},v)},L.generateDirectedEdgeConstraints=function x(f,v,m,p){var y=g(f,v,p),S={};y.forEach(function(O,F){return O.forEach(function(R){return S[R]=F})});var k=[];return v.forEach(function(O){var F=p.getSourceIndex(O),R=p.getTargetIndex(O);S[F]!==S[R]&&k.push({axis:m,left:F,right:R,gap:p.getMinSeparation(O)})}),k},L.stronglyConnectedComponents=g},3900:(E,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var u=function v(m,p,y){this.source=m,this.target=p,this.type=y};L.PowerEdge=u;var d=function(){function v(m,p,y,S){var k=this;if(this.linkAccessor=y,this.modules=new Array(m),this.roots=[],S)this.initModulesFromGroup(S);else{this.roots.push(new _);for(var O=0;O<m;++O)this.roots[0].add(this.modules[O]=new w(O))}this.R=p.length,p.forEach(function(F){var R=k.modules[y.getSourceIndex(F)],z=k.modules[y.getTargetIndex(F)],H=y.getType(F);R.outgoing.add(H,z),z.incoming.add(H,R)})}return v.prototype.initModulesFromGroup=function(m){var p=new _;this.roots.push(p);for(var y=0;y<m.leaves.length;++y){var S=m.leaves[y],k=new w(S.id);this.modules[S.id]=k,p.add(k)}if(m.groups)for(var O=0;O<m.groups.length;++O){var F=m.groups[O],R={};for(var z in F)"leaves"!==z&&"groups"!==z&&F.hasOwnProperty(z)&&(R[z]=F[z]);p.add(new w(-1-O,new x,new x,this.initModulesFromGroup(F),R))}return p},v.prototype.merge=function(m,p,y){void 0===y&&(y=0);var S=m.incoming.intersection(p.incoming),k=m.outgoing.intersection(p.outgoing),O=new _;O.add(m),O.add(p);var F=new w(this.modules.length,k,S,O);this.modules.push(F);var R=function(z,H,X){z.forAll(function(se,te){se.forAll(function(ie){var le=ie[H];le.add(te,F),le.remove(te,m),le.remove(te,p),m[X].remove(te,ie),p[X].remove(te,ie)})})};return R(k,"incoming","outgoing"),R(S,"outgoing","incoming"),this.R-=S.count()+k.count(),this.roots[y].remove(m),this.roots[y].remove(p),this.roots[y].add(F),F},v.prototype.rootMerges=function(m){void 0===m&&(m=0);for(var p=this.roots[m].modules(),y=p.length,S=new Array(y*(y-1)),k=0,O=0,F=y-1;O<F;++O)for(var R=O+1;R<y;++R){var z=p[O],H=p[R];S[k]={id:k,nEdges:this.nEdges(z,H),a:z,b:H},k++}return S},v.prototype.greedyMerge=function(){for(var m=0;m<this.roots.length;++m)if(!(this.roots[m].modules().length<2)){var y=this.rootMerges(m).sort(function(S,k){return S.nEdges==k.nEdges?S.id-k.id:S.nEdges-k.nEdges})[0];if(!(y.nEdges>=this.R))return this.merge(y.a,y.b,m),!0}},v.prototype.nEdges=function(m,p){var y=m.incoming.intersection(p.incoming),S=m.outgoing.intersection(p.outgoing);return this.R-y.count()-S.count()},v.prototype.getGroupHierarchy=function(m){var p=this,y=[];return D(this.roots[0],{},y),this.allEdges().forEach(function(O){var F=p.modules[O.source],R=p.modules[O.target];m.push(new u(void 0===F.gid?O.source:y[F.gid],void 0===R.gid?O.target:y[R.gid],O.type))}),y},v.prototype.allEdges=function(){var m=[];return v.getEdges(this.roots[0],m),m},v.getEdges=function(m,p){m.forAll(function(y){y.getEdges(p),v.getEdges(y.children,p)})},v}();function D(v,m,p){v.forAll(function(y){if(y.isLeaf())m.leaves||(m.leaves=[]),m.leaves.push(y.id);else{var S=m;if(y.gid=p.length,!y.isIsland()||y.isPredefined()){if(S={id:y.gid},y.isPredefined())for(var k in y.definition)S[k]=y.definition[k];m.groups||(m.groups=[]),m.groups.push(y.gid),p.push(S)}D(y.children,S,p)}})}L.Configuration=d;var w=function(){function v(m,p,y,S,k){void 0===p&&(p=new x),void 0===y&&(y=new x),void 0===S&&(S=new _),this.id=m,this.outgoing=p,this.incoming=y,this.children=S,this.definition=k}return v.prototype.getEdges=function(m){var p=this;this.outgoing.forAll(function(y,S){y.forAll(function(k){m.push(new u(p.id,k.id,S))})})},v.prototype.isLeaf=function(){return 0===this.children.count()},v.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},v.prototype.isPredefined=function(){return void 0!==this.definition},v}();L.Module=w;var _=function(){function v(){this.table={}}return v.prototype.count=function(){return Object.keys(this.table).length},v.prototype.intersection=function(m){var p=new v;return p.table=function C(v,m){var p={};for(var y in v)y in m&&(p[y]=v[y]);return p}(this.table,m.table),p},v.prototype.intersectionCount=function(m){return this.intersection(m).count()},v.prototype.contains=function(m){return m in this.table},v.prototype.add=function(m){this.table[m.id]=m},v.prototype.remove=function(m){delete this.table[m.id]},v.prototype.forAll=function(m){for(var p in this.table)m(this.table[p])},v.prototype.modules=function(){var m=[];return this.forAll(function(p){p.isPredefined()||m.push(p)}),m},v}();L.ModuleSet=_;var x=function(){function v(){this.sets={},this.n=0}return v.prototype.count=function(){return this.n},v.prototype.contains=function(m){var p=!1;return this.forAllModules(function(y){!p&&y.id==m&&(p=!0)}),p},v.prototype.add=function(m,p){(m in this.sets?this.sets[m]:this.sets[m]=new _).add(p),++this.n},v.prototype.remove=function(m,p){var y=this.sets[m];y.remove(p),0===y.count()&&delete this.sets[m],--this.n},v.prototype.forAll=function(m){for(var p in this.sets)m(this.sets[p],Number(p))},v.prototype.forAllModules=function(m){this.forAll(function(p,y){return p.forAll(m)})},v.prototype.intersection=function(m){var p=new v;return this.forAll(function(y,S){if(S in m.sets){var k=y.intersection(m.sets[S]),O=k.count();O>0&&(p.sets[S]=k,p.n+=O)}}),p},v}();L.LinkSets=x,L.getGroups=function f(v,m,p,y){for(var k=new d(v.length,m,p,y);k.greedyMerge(););var O=[],F=k.getGroupHierarchy(O);return O.forEach(function(R){var z=function(H){var X=R[H];"number"==typeof X&&(R[H]=v[X])};z("source"),z("target")}),{groups:F,powerEdges:O}}},8866:(E,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var u=function(){function D(w){this.elem=w,this.subheaps=[]}return D.prototype.toString=function(w){for(var C="",_=!1,x=0;x<this.subheaps.length;++x){var g=this.subheaps[x];g.elem?(_&&(C+=","),C+=g.toString(w),_=!0):_=!1}return""!==C&&(C="("+C+")"),(this.elem?w(this.elem):"")+C},D.prototype.forEach=function(w){this.empty()||(w(this.elem,this),this.subheaps.forEach(function(C){return C.forEach(w)}))},D.prototype.count=function(){return this.empty()?0:1+this.subheaps.reduce(function(w,C){return w+C.count()},0)},D.prototype.min=function(){return this.elem},D.prototype.empty=function(){return null==this.elem},D.prototype.contains=function(w){if(this===w)return!0;for(var C=0;C<this.subheaps.length;C++)if(this.subheaps[C].contains(w))return!0;return!1},D.prototype.isHeap=function(w){var C=this;return this.subheaps.every(function(_){return w(C.elem,_.elem)&&_.isHeap(w)})},D.prototype.insert=function(w,C){return this.merge(new D(w),C)},D.prototype.merge=function(w,C){return this.empty()?w:w.empty()?this:C(this.elem,w.elem)?(this.subheaps.push(w),this):(w.subheaps.push(this),w)},D.prototype.removeMin=function(w){return this.empty()?null:this.mergePairs(w)},D.prototype.mergePairs=function(w){if(0==this.subheaps.length)return new D(null);if(1==this.subheaps.length)return this.subheaps[0];var C=this.subheaps.pop().merge(this.subheaps.pop(),w),_=this.mergePairs(w);return C.merge(_,w)},D.prototype.decreaseKey=function(w,C,_,x){var g=w.removeMin(x);w.elem=g.elem,w.subheaps=g.subheaps,null!==_&&null!==g.elem&&_(w.elem,w);var f=new D(C);return null!==_&&_(C,f),this.merge(f,x)},D}();L.PairingHeap=u;var d=function(){function D(w){this.lessThan=w}return D.prototype.top=function(){return this.empty()?null:this.root.elem},D.prototype.push=function(){for(var w=[],C=0;C<arguments.length;C++)w[C]=arguments[C];for(var _,g,x=0;g=w[x];++x)_=new u(g),this.root=this.empty()?_:this.root.merge(_,this.lessThan);return _},D.prototype.empty=function(){return!this.root||!this.root.elem},D.prototype.isHeap=function(){return this.root.isHeap(this.lessThan)},D.prototype.forEach=function(w){this.root.forEach(w)},D.prototype.pop=function(){if(this.empty())return null;var w=this.root.min();return this.root=this.root.removeMin(this.lessThan),w},D.prototype.reduceKey=function(w,C,_){void 0===_&&(_=null),this.root=this.root.decreaseKey(w,C,_,this.lessThan)},D.prototype.toString=function(w){return this.root.toString(w)},D.prototype.count=function(){return this.root.count()},D}();L.PriorityQueue=d},4655:function(E,L){"use strict";var _,u=this&&this.__extends||(_=function(x,g){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var m in v)v.hasOwnProperty(m)&&(f[m]=v[m])})(x,g)},function(x,g){function f(){this.constructor=x}_(x,g),x.prototype=null===g?Object.create(g):(f.prototype=g.prototype,new f)});Object.defineProperty(L,"__esModule",{value:!0});var d=function(){function _(){this.findIter=function(x){for(var g=this._root,f=this.iterator();null!==g;){var v=this._comparator(x,g.data);if(0===v)return f._cursor=g,f;f._ancestors.push(g),g=g.get_child(v>0)}return null}}return _.prototype.clear=function(){this._root=null,this.size=0},_.prototype.find=function(x){for(var g=this._root;null!==g;){var f=this._comparator(x,g.data);if(0===f)return g.data;g=g.get_child(f>0)}return null},_.prototype.lowerBound=function(x){return this._bound(x,this._comparator)},_.prototype.upperBound=function(x){var g=this._comparator;return this._bound(x,function f(v,m){return g(m,v)})},_.prototype.min=function(){var x=this._root;if(null===x)return null;for(;null!==x.left;)x=x.left;return x.data},_.prototype.max=function(){var x=this._root;if(null===x)return null;for(;null!==x.right;)x=x.right;return x.data},_.prototype.iterator=function(){return new D(this)},_.prototype.each=function(x){for(var f,g=this.iterator();null!==(f=g.next());)x(f)},_.prototype.reach=function(x){for(var f,g=this.iterator();null!==(f=g.prev());)x(f)},_.prototype._bound=function(x,g){for(var f=this._root,v=this.iterator();null!==f;){var m=this._comparator(x,f.data);if(0===m)return v._cursor=f,v;v._ancestors.push(f),f=f.get_child(m>0)}for(var p=v._ancestors.length-1;p>=0;--p)if(g(x,(f=v._ancestors[p]).data)>0)return v._cursor=f,v._ancestors.length=p,v;return v._ancestors.length=0,v},_}();L.TreeBase=d;var D=function(){function _(x){this._tree=x,this._ancestors=[],this._cursor=null}return _.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},_.prototype.next=function(){if(null===this._cursor){var x=this._tree._root;null!==x&&this._minNode(x)}else if(null===this._cursor.right){var g;do{if(g=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===g)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},_.prototype.prev=function(){if(null===this._cursor){var x=this._tree._root;null!==x&&this._maxNode(x)}else if(null===this._cursor.left){var g;do{if(g=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===g)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},_.prototype._minNode=function(x){for(;null!==x.left;)this._ancestors.push(x),x=x.left;this._cursor=x},_.prototype._maxNode=function(x){for(;null!==x.right;)this._ancestors.push(x),x=x.right;this._cursor=x},_}();L.Iterator=D;var w=function(){function _(x){this.data=x,this.left=null,this.right=null,this.red=!0}return _.prototype.get_child=function(x){return x?this.right:this.left},_.prototype.set_child=function(x,g){x?this.right=g:this.left=g},_}(),C=function(_){function x(g){var f=_.call(this)||this;return f._root=null,f._comparator=g,f.size=0,f}return u(x,_),x.prototype.insert=function(g){var f=!1;if(null===this._root)this._root=new w(g),f=!0,this.size++;else{var v=new w(void 0),m=!1,p=!1,y=null,S=v,k=null,O=this._root;for(S.right=this._root;;){if(null===O?(O=new w(g),k.set_child(m,O),f=!0,this.size++):x.is_red(O.left)&&x.is_red(O.right)&&(O.red=!0,O.left.red=!1,O.right.red=!1),x.is_red(O)&&x.is_red(k)){var F=S.right===y;O===k.get_child(p)?S.set_child(F,x.single_rotate(y,!p)):S.set_child(F,x.double_rotate(y,!p))}var R=this._comparator(O.data,g);if(0===R)break;p=m,null!==y&&(S=y),y=k,k=O,O=O.get_child(m=R<0)}this._root=v.right}return this._root.red=!1,f},x.prototype.remove=function(g){if(null===this._root)return!1;var f=new w(void 0),v=f;v.right=this._root;for(var m=null,p=null,y=null,S=!0;null!==v.get_child(S);){var k=S;p=m,m=v,v=v.get_child(S);var O=this._comparator(g,v.data);if(S=O>0,0===O&&(y=v),!x.is_red(v)&&!x.is_red(v.get_child(S)))if(x.is_red(v.get_child(!S))){var F=x.single_rotate(v,S);m.set_child(k,F),m=F}else if(!x.is_red(v.get_child(!S))){var R=m.get_child(!k);if(null!==R)if(x.is_red(R.get_child(!k))||x.is_red(R.get_child(k))){var z=p.right===m;x.is_red(R.get_child(k))?p.set_child(z,x.double_rotate(m,k)):x.is_red(R.get_child(!k))&&p.set_child(z,x.single_rotate(m,k));var H=p.get_child(z);H.red=!0,v.red=!0,H.left.red=!1,H.right.red=!1}else m.red=!1,R.red=!0,v.red=!0}}return null!==y&&(y.data=v.data,m.set_child(m.right===v,v.get_child(null===v.left)),this.size--),this._root=f.right,null!==this._root&&(this._root.red=!1),null!==y},x.is_red=function(g){return null!==g&&g.red},x.single_rotate=function(g,f){var v=g.get_child(!f);return g.set_child(!f,v.get_child(f)),v.set_child(f,g),g.red=!0,v.red=!1,v},x.double_rotate=function(g,f){return g.set_child(!f,x.single_rotate(g.get_child(!f),!f)),x.single_rotate(g,f)},x}(d);L.RBTree=C},4068:function(E,L,u){"use strict";var N,d=this&&this.__extends||(N=function(V,U){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,Y){$.__proto__=Y}||function($,Y){for(var oe in Y)Y.hasOwnProperty(oe)&&($[oe]=Y[oe])})(V,U)},function(V,U){function $(){this.constructor=V}N(V,U),V.prototype=null===U?Object.create(U):($.prototype=U.prototype,new $)});Object.defineProperty(L,"__esModule",{value:!0});var D=u(8237),w=u(4655);function C(N){return N.bounds=void 0!==N.leaves?N.leaves.reduce(function(V,U){return U.bounds.union(V)},_.empty()):_.empty(),void 0!==N.groups&&(N.bounds=N.groups.reduce(function(V,U){return C(U).union(V)},N.bounds)),N.bounds=N.bounds.inflate(N.padding),N.bounds}L.computeGroupBounds=C;var _=function(){function N(V,U,$,Y){this.x=V,this.X=U,this.y=$,this.Y=Y}return N.empty=function(){return new N(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},N.prototype.cx=function(){return(this.x+this.X)/2},N.prototype.cy=function(){return(this.y+this.Y)/2},N.prototype.overlapX=function(V){var U=this.cx(),$=V.cx();return U<=$&&V.x<this.X?this.X-V.x:$<=U&&this.x<V.X?V.X-this.x:0},N.prototype.overlapY=function(V){var U=this.cy(),$=V.cy();return U<=$&&V.y<this.Y?this.Y-V.y:$<=U&&this.y<V.Y?V.Y-this.y:0},N.prototype.setXCentre=function(V){var U=V-this.cx();this.x+=U,this.X+=U},N.prototype.setYCentre=function(V){var U=V-this.cy();this.y+=U,this.Y+=U},N.prototype.width=function(){return this.X-this.x},N.prototype.height=function(){return this.Y-this.y},N.prototype.union=function(V){return new N(Math.min(this.x,V.x),Math.max(this.X,V.X),Math.min(this.y,V.y),Math.max(this.Y,V.Y))},N.prototype.lineIntersections=function(V,U,$,Y){for(var oe=[[this.x,this.y,this.X,this.y],[this.X,this.y,this.X,this.Y],[this.X,this.Y,this.x,this.Y],[this.x,this.Y,this.x,this.y]],de=[],ee=0;ee<4;++ee){var J=N.lineIntersection(V,U,$,Y,oe[ee][0],oe[ee][1],oe[ee][2],oe[ee][3]);null!==J&&de.push({x:J.x,y:J.y})}return de},N.prototype.rayIntersection=function(V,U){var $=this.lineIntersections(this.cx(),this.cy(),V,U);return $.length>0?$[0]:null},N.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},N.lineIntersection=function(V,U,$,Y,oe,de,ee,J){var ce=$-V,pe=ee-oe,be=Y-U,fe=J-de,De=fe*ce-pe*be;if(0==De)return null;var Pe=V-oe,st=U-de,xe=(pe*st-fe*Pe)/De,Fe=(ce*st-be*Pe)/De;return xe>=0&&xe<=1&&Fe>=0&&Fe<=1?{x:V+xe*ce,y:U+xe*be}:null},N.prototype.inflate=function(V){return new N(this.x-V,this.X+V,this.y-V,this.Y+V)},N}();L.Rectangle=_,L.makeEdgeBetween=function x(N,V,U){var $=N.rayIntersection(V.cx(),V.cy())||{x:N.cx(),y:N.cy()},Y=V.rayIntersection(N.cx(),N.cy())||{x:V.cx(),y:V.cy()},oe=Y.x-$.x,de=Y.y-$.y,ee=Math.sqrt(oe*oe+de*de),J=ee-U;return{sourceIntersection:$,targetIntersection:Y,arrowStart:{x:$.x+J*oe/ee,y:$.y+J*de/ee}}},L.makeEdgeTo=function g(N,V,U){var $=V.rayIntersection(N.x,N.y);$||($={x:V.cx(),y:V.cy()});var Y=$.x-N.x,oe=$.y-N.y,de=Math.sqrt(Y*Y+oe*oe);return{x:$.x-U*Y/de,y:$.y-U*oe/de}};var f=function N(V,U,$){this.v=V,this.r=U,this.pos=$,this.prev=p(),this.next=p()},v=function N(V,U,$){this.isOpen=V,this.v=U,this.pos=$};function m(N,V){return N.pos>V.pos?1:N.pos<V.pos||N.isOpen?-1:V.isOpen?1:0}function p(){return new w.RBTree(function(N,V){return N.pos-V.pos})}var y={getCentre:function(N){return N.cx()},getOpen:function(N){return N.y},getClose:function(N){return N.Y},getSize:function(N){return N.width()},makeRect:function(N,V,U,$){return new _(U-$/2,U+$/2,N,V)},findNeighbours:function F(N,V){var U=function($,Y){for(var de,oe=V.findIter(N);null!==(de=oe[$]());){var ee=de.r.overlapX(N.r);if((ee<=0||ee<=de.r.overlapY(N.r))&&(N[$].insert(de),de[Y].insert(N)),ee<=0)break}};U("next","prev"),U("prev","next")}},S={getCentre:function(N){return N.cy()},getOpen:function(N){return N.x},getClose:function(N){return N.X},getSize:function(N){return N.height()},makeRect:function(N,V,U,$){return new _(N,V,U-$/2,U+$/2)},findNeighbours:function R(N,V){var U=function($,Y){var oe=V.findIter(N)[$]();null!==oe&&oe.r.overlapX(N.r)>0&&(N[$].insert(oe),oe[Y].insert(N))};U("next","prev"),U("prev","next")}};function k(N,V,U,$){void 0===$&&($=!1);var Y=N.padding,oe=void 0!==N.groups?N.groups.length:0,de=void 0!==N.leaves?N.leaves.length:0,ee=oe?N.groups.reduce(function(Xe,ht){return Xe.concat(k(ht,V,U,!0))},[]):[],J=($?2:0)+de+oe,ce=new Array(J),pe=new Array(J),be=0,fe=function(Xe,ht){pe[be]=Xe,ce[be++]=ht};if($){var De=N.bounds,Pe=V.getCentre(De),st=V.getSize(De)/2,he=V.getOpen(De),xe=V.getClose(De),Te=Pe-st+Y/2,Fe=Pe+st-Y/2;N.minVar.desiredPosition=Te,fe(V.makeRect(he,xe,Te,Y),N.minVar),N.maxVar.desiredPosition=Fe,fe(V.makeRect(he,xe,Fe,Y),N.maxVar)}de&&N.leaves.forEach(function(Xe){return fe(Xe.bounds,Xe.variable)}),oe&&N.groups.forEach(function(Xe){var ht=Xe.bounds;fe(V.makeRect(V.getOpen(ht),V.getClose(ht),V.getCentre(ht),V.getSize(ht)),Xe.minVar)});var Ke=O(pe,ce,V,U);return oe&&(ce.forEach(function(Xe){Xe.cOut=[],Xe.cIn=[]}),Ke.forEach(function(Xe){Xe.left.cOut.push(Xe),Xe.right.cIn.push(Xe)}),N.groups.forEach(function(Xe){var ht=(Xe.padding-V.getSize(Xe.bounds))/2;Xe.minVar.cIn.forEach(function(Kt){return Kt.gap+=ht}),Xe.minVar.cOut.forEach(function(Kt){Kt.left=Xe.maxVar,Kt.gap+=ht})})),ee.concat(Ke)}function O(N,V,U,$){var Y,oe=N.length,de=2*oe;console.assert(V.length>=oe);var ee=new Array(de);for(Y=0;Y<oe;++Y){var J=N[Y],ce=new f(V[Y],J,U.getCentre(J));ee[Y]=new v(!0,ce,U.getOpen(J)),ee[Y+oe]=new v(!1,ce,U.getClose(J))}ee.sort(m);var pe=new Array,be=p();for(Y=0;Y<de;++Y){var fe=ee[Y];if(ce=fe.v,fe.isOpen)be.insert(ce),U.findNeighbours(ce,be);else{be.remove(ce);var De=function(he,xe){var Te=(U.getSize(he.r)+U.getSize(xe.r))/2+$;pe.push(new D.Constraint(he.v,xe.v,Te))},Pe=function(he,xe,Te){for(var Fe,Ke=ce[he].iterator();null!==(Fe=Ke[he]());)Te(Fe,ce),Fe[xe].remove(ce)};Pe("prev","next",function(he,xe){return De(he,xe)}),Pe("next","prev",function(he,xe){return De(xe,he)})}}return console.assert(0===be.size),pe}function z(N,V){return O(N,V,y,1e-6)}function H(N,V){return O(N,V,S,1e-6)}function X(N){return k(N,y,1e-6)}function se(N){return k(N,S,1e-6)}L.generateXConstraints=z,L.generateYConstraints=H,L.generateXGroupConstraints=X,L.generateYGroupConstraints=se,L.removeOverlaps=function te(N){var V=N.map(function(Y){return new D.Variable(Y.cx())}),U=z(N,V),$=new D.Solver(V,U);$.solve(),V.forEach(function(Y,oe){return N[oe].setXCentre(Y.position())}),V=N.map(function(Y){return new D.Variable(Y.cy())}),U=H(N,V),($=new D.Solver(V,U)).solve(),V.forEach(function(Y,oe){return N[oe].setYCentre(Y.position())})};var ie=function(N){function V(U,$){var Y=N.call(this,0,$)||this;return Y.index=U,Y}return d(V,N),V}(D.Variable);L.IndexedVariable=ie;var le=function(){function N(V,U,$,Y,oe){var de=this;if(void 0===$&&($=null),void 0===Y&&(Y=null),void 0===oe&&(oe=!1),this.nodes=V,this.groups=U,this.rootGroup=$,this.avoidOverlaps=oe,this.variables=V.map(function(J,ce){return J.variable=new ie(ce,1)}),Y&&this.createConstraints(Y),oe&&$&&void 0!==$.groups){V.forEach(function(J){if(J.width&&J.height){var ce=J.width/2,pe=J.height/2;J.bounds=new _(J.x-ce,J.x+ce,J.y-pe,J.y+pe)}else J.bounds=new _(J.x,J.x,J.y,J.y)}),C($);var ee=V.length;U.forEach(function(J){de.variables[ee]=J.minVar=new ie(ee++,void 0!==J.stiffness?J.stiffness:.01),de.variables[ee]=J.maxVar=new ie(ee++,void 0!==J.stiffness?J.stiffness:.01)})}}return N.prototype.createSeparation=function(V){return new D.Constraint(this.nodes[V.left].variable,this.nodes[V.right].variable,V.gap,void 0!==V.equality&&V.equality)},N.prototype.makeFeasible=function(V){var U=this;if(this.avoidOverlaps){var $="x",Y="width";"x"===V.axis&&($="y",Y="height");var oe=V.offsets.map(function(ee){return U.nodes[ee.node]}).sort(function(ee,J){return ee[$]-J[$]}),de=null;oe.forEach(function(ee){if(de){var J=de[$]+de[Y];J>ee[$]&&(ee[$]=J)}de=ee})}},N.prototype.createAlignment=function(V){var U=this,$=this.nodes[V.offsets[0].node].variable;this.makeFeasible(V);var Y="x"===V.axis?this.xConstraints:this.yConstraints;V.offsets.slice(1).forEach(function(oe){Y.push(new D.Constraint($,U.nodes[oe.node].variable,oe.offset,!0))})},N.prototype.createConstraints=function(V){var U=this,$=function(Y){return void 0===Y.type||"separation"===Y.type};this.xConstraints=V.filter(function(Y){return"x"===Y.axis&&$(Y)}).map(function(Y){return U.createSeparation(Y)}),this.yConstraints=V.filter(function(Y){return"y"===Y.axis&&$(Y)}).map(function(Y){return U.createSeparation(Y)}),V.filter(function(Y){return"alignment"===Y.type}).forEach(function(Y){return U.createAlignment(Y)})},N.prototype.setupVariablesAndBounds=function(V,U,$,Y){this.nodes.forEach(function(oe,de){oe.fixed?(oe.variable.weight=oe.fixedWeight?oe.fixedWeight:1e3,$[de]=Y(oe)):oe.variable.weight=1;var ee=(oe.width||0)/2,J=(oe.height||0)/2,ce=V[de],pe=U[de];oe.bounds=new _(ce-ee,ce+ee,pe-J,pe+J)})},N.prototype.xProject=function(V,U,$){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(V,U,V,$,function(Y){return Y.px},this.xConstraints,X,function(Y){return Y.bounds.setXCentre($[Y.variable.index]=Y.variable.position())},function(Y){var oe=$[Y.minVar.index]=Y.minVar.position(),de=$[Y.maxVar.index]=Y.maxVar.position(),ee=Y.padding/2;Y.bounds.x=oe-ee,Y.bounds.X=de+ee})},N.prototype.yProject=function(V,U,$){!this.rootGroup&&!this.yConstraints||this.project(V,U,U,$,function(Y){return Y.py},this.yConstraints,se,function(Y){return Y.bounds.setYCentre($[Y.variable.index]=Y.variable.position())},function(Y){var oe=$[Y.minVar.index]=Y.minVar.position(),de=$[Y.maxVar.index]=Y.maxVar.position(),ee=Y.padding/2;Y.bounds.y=oe-ee,Y.bounds.Y=de+ee})},N.prototype.projectFunctions=function(){var V=this;return[function(U,$,Y){return V.xProject(U,$,Y)},function(U,$,Y){return V.yProject(U,$,Y)}]},N.prototype.project=function(V,U,$,Y,oe,de,ee,J,ce){this.setupVariablesAndBounds(V,U,Y,oe),this.rootGroup&&this.avoidOverlaps&&(C(this.rootGroup),de=de.concat(ee(this.rootGroup))),this.solve(this.variables,de,$,Y),this.nodes.forEach(J),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(ce),C(this.rootGroup))},N.prototype.solve=function(V,U,$,Y){var oe=new D.Solver(V,U);oe.setStartingPositions($),oe.setDesiredPositions(Y),oe.solve()},N}();L.Projection=le},3858:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var d=u(8866),D=function x(g,f){this.id=g,this.distance=f},w=function x(g){this.id=g,this.neighbours=[]},C=function x(g,f,v){this.node=g,this.prev=f,this.d=v},_=function(){function x(g,f,v,m,p){this.n=g,this.es=f,this.neighbours=new Array(this.n);for(var y=this.n;y--;)this.neighbours[y]=new w(y);for(y=this.es.length;y--;){var S=this.es[y],k=v(S),O=m(S),F=p(S);this.neighbours[k].neighbours.push(new D(O,F)),this.neighbours[O].neighbours.push(new D(k,F))}}return x.prototype.DistanceMatrix=function(){for(var g=new Array(this.n),f=0;f<this.n;++f)g[f]=this.dijkstraNeighbours(f);return g},x.prototype.DistancesFromNode=function(g){return this.dijkstraNeighbours(g)},x.prototype.PathFromNodeToNode=function(g,f){return this.dijkstraNeighbours(g,f)},x.prototype.PathFromNodeToNodeWithPrevCost=function(g,f,v){var m=new d.PriorityQueue(function(se,te){return se.d<=te.d}),p=this.neighbours[g],y=new C(p,null,0),S={};for(m.push(y);!m.empty()&&(p=(y=m.pop()).node).id!==f;)for(var k=p.neighbours.length;k--;){var O=p.neighbours[k],F=this.neighbours[O.id];if(!y.prev||F.id!==y.prev.node.id){var R=F.id+","+p.id;if(!(R in S&&S[R]<=y.d)){var z=y.prev?v(y.prev.node.id,p.id,F.id):0,H=y.d+O.distance+z;S[R]=H,m.push(new C(F,y,H))}}}for(var X=[];y.prev;)X.push((y=y.prev).node.id);return X},x.prototype.dijkstraNeighbours=function(g,f){void 0===f&&(f=-1);for(var v=new d.PriorityQueue(function(z,H){return z.d<=H.d}),m=this.neighbours.length,p=new Array(m);m--;){var y=this.neighbours[m];y.d=m===g?0:Number.POSITIVE_INFINITY,y.q=v.push(y)}for(;!v.empty();){var S=v.pop();if(p[S.id]=S.d,S.id===f){for(var k=[],O=S;void 0!==O.prev;)k.push(O.prev.id),O=O.prev;return k}for(m=S.neighbours.length;m--;){var F=S.neighbours[m],R=(O=this.neighbours[F.id],S.d+F.distance);S.d!==Number.MAX_VALUE&&O.d>R&&(O.d=R,O.prev=S,v.reduceKey(O.q,O,function(H,X){return H.q=X}))}}return p},x}();L.Calculator=_},8237:(E,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var u=function(){function g(f){this.scale=f,this.AB=0,this.AD=0,this.A2=0}return g.prototype.addVariable=function(f){var v=this.scale/f.scale,p=f.weight;this.AB+=p*v*(f.offset/f.scale),this.AD+=p*v*f.desiredPosition,this.A2+=p*v*v},g.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},g}();L.PositionStats=u;var d=function(){function g(f,v,m,p){void 0===p&&(p=!1),this.left=f,this.right=v,this.gap=m,this.equality=p,this.active=!1,this.unsatisfiable=!1,this.left=f,this.right=v,this.gap=m,this.equality=p}return g.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},g}();L.Constraint=d;var D=function(){function g(f,v,m){void 0===v&&(v=1),void 0===m&&(m=1),this.desiredPosition=f,this.weight=v,this.scale=m,this.offset=0}return g.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},g.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},g.prototype.visitNeighbours=function(f,v){var m=function(p,y){return p.active&&f!==y&&v(p,y)};this.cOut.forEach(function(p){return m(p,p.right)}),this.cIn.forEach(function(p){return m(p,p.left)})},g}();L.Variable=D;var w=function(){function g(f){this.vars=[],f.offset=0,this.ps=new u(f.scale),this.addVariable(f)}return g.prototype.addVariable=function(f){f.block=this,this.vars.push(f),this.ps.addVariable(f),this.posn=this.ps.getPosn()},g.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var f=0,v=this.vars.length;f<v;++f)this.ps.addVariable(this.vars[f]);this.posn=this.ps.getPosn()},g.prototype.compute_lm=function(f,v,m){var p=this,y=f.dfdv();return f.visitNeighbours(v,function(S,k){var O=p.compute_lm(k,f,m);k===S.right?(y+=O*S.left.scale,S.lm=O):(y+=O*S.right.scale,S.lm=-O),m(S)}),y/f.scale},g.prototype.populateSplitBlock=function(f,v){var m=this;f.visitNeighbours(v,function(p,y){y.offset=f.offset+(y===p.right?p.gap:-p.gap),m.addVariable(y),m.populateSplitBlock(y,f)})},g.prototype.traverse=function(f,v,m,p){var y=this;void 0===m&&(m=this.vars[0]),void 0===p&&(p=null),m.visitNeighbours(p,function(S,k){v.push(f(S)),y.traverse(f,v,k,m)})},g.prototype.findMinLM=function(){var f=null;return this.compute_lm(this.vars[0],null,function(v){!v.equality&&(null===f||v.lm<f.lm)&&(f=v)}),f},g.prototype.findMinLMBetween=function(f,v){this.compute_lm(f,null,function(){});var m=null;return this.findPath(f,null,v,function(p,y){!p.equality&&p.right===y&&(null===m||p.lm<m.lm)&&(m=p)}),m},g.prototype.findPath=function(f,v,m,p){var y=this,S=!1;return f.visitNeighbours(v,function(k,O){!S&&(O===m||y.findPath(O,f,m,p))&&(S=!0,p(k,O))}),S},g.prototype.isActiveDirectedPathBetween=function(f,v){if(f===v)return!0;for(var m=f.cOut.length;m--;){var p=f.cOut[m];if(p.active&&this.isActiveDirectedPathBetween(p.right,v))return!0}return!1},g.split=function(f){return f.active=!1,[g.createSplitBlock(f.left),g.createSplitBlock(f.right)]},g.createSplitBlock=function(f){var v=new g(f);return v.populateSplitBlock(f,null),v},g.prototype.splitBetween=function(f,v){var m=this.findMinLMBetween(f,v);if(null!==m){var p=g.split(m);return{constraint:m,lb:p[0],rb:p[1]}}return null},g.prototype.mergeAcross=function(f,v,m){v.active=!0;for(var p=0,y=f.vars.length;p<y;++p){var S=f.vars[p];S.offset+=m,this.addVariable(S)}this.posn=this.ps.getPosn()},g.prototype.cost=function(){for(var f=0,v=this.vars.length;v--;){var m=this.vars[v],p=m.position()-m.desiredPosition;f+=p*p*m.weight}return f},g}();L.Block=w;var C=function(){function g(f){this.vs=f;var v=f.length;for(this.list=new Array(v);v--;){var m=new w(f[v]);this.list[v]=m,m.blockInd=v}}return g.prototype.cost=function(){for(var f=0,v=this.list.length;v--;)f+=this.list[v].cost();return f},g.prototype.insert=function(f){f.blockInd=this.list.length,this.list.push(f)},g.prototype.remove=function(f){var v=this.list.length-1,m=this.list[v];this.list.length=v,f!==m&&(this.list[f.blockInd]=m,m.blockInd=f.blockInd)},g.prototype.merge=function(f){var v=f.left.block,m=f.right.block,p=f.right.offset-f.left.offset-f.gap;v.vars.length<m.vars.length?(m.mergeAcross(v,f,p),this.remove(v)):(v.mergeAcross(m,f,-p),this.remove(m))},g.prototype.forEach=function(f){this.list.forEach(f)},g.prototype.updateBlockPositions=function(){this.list.forEach(function(f){return f.updateWeightedPosition()})},g.prototype.split=function(f){var v=this;this.updateBlockPositions(),this.list.forEach(function(m){var p=m.findMinLM();null!==p&&p.lm<_.LAGRANGIAN_TOLERANCE&&(m=p.left.block,w.split(p).forEach(function(y){return v.insert(y)}),v.remove(m),f.push(p))})},g}();L.Blocks=C;var _=function(){function g(f,v){this.vs=f,this.cs=v,this.vs=f,f.forEach(function(m){m.cIn=[],m.cOut=[]}),this.cs=v,v.forEach(function(m){m.left.cOut.push(m),m.right.cIn.push(m)}),this.inactive=v.map(function(m){return m.active=!1,m}),this.bs=null}return g.prototype.cost=function(){return this.bs.cost()},g.prototype.setStartingPositions=function(f){this.inactive=this.cs.map(function(v){return v.active=!1,v}),this.bs=new C(this.vs),this.bs.forEach(function(v,m){return v.posn=f[m]})},g.prototype.setDesiredPositions=function(f){this.vs.forEach(function(v,m){return v.desiredPosition=f[m]})},g.prototype.mostViolated=function(){for(var f=Number.MAX_VALUE,v=null,m=this.inactive,p=m.length,y=p,S=0;S<p;++S){var k=m[S];if(!k.unsatisfiable){var O=k.slack();if((k.equality||O<f)&&(f=O,v=k,y=S,k.equality))break}}return y!==p&&(f<g.ZERO_UPPERBOUND&&!v.active||v.equality)&&(m[y]=m[p-1],m.length=p-1),v},g.prototype.satisfy=function(){null==this.bs&&(this.bs=new C(this.vs)),this.bs.split(this.inactive);for(var f=null;(f=this.mostViolated())&&(f.equality||f.slack()<g.ZERO_UPPERBOUND&&!f.active);){var v=f.left.block;if(v!==f.right.block)this.bs.merge(f);else{if(v.isActiveDirectedPathBetween(f.right,f.left)){f.unsatisfiable=!0;continue}var p=v.splitBetween(f.left,f.right);if(null===p){f.unsatisfiable=!0;continue}this.bs.insert(p.lb),this.bs.insert(p.rb),this.bs.remove(v),this.inactive.push(p.constraint),f.slack()>=0?this.inactive.push(f):this.bs.merge(f)}}},g.prototype.solve=function(){this.satisfy();for(var f=Number.MAX_VALUE,v=this.bs.cost();Math.abs(f-v)>1e-4;)this.satisfy(),f=v,v=this.bs.cost();return v},g.LAGRANGIAN_TOLERANCE=-1e-4,g.ZERO_UPPERBOUND=-1e-10,g}();L.Solver=_,L.removeOverlapInOneDimension=function x(g,f,v){for(var m=g.map(function(ie){return new D(ie.desiredCenter)}),p=[],y=g.length,S=0;S<y-1;S++)p.push(new d(m[S],m[S+1],(g[S].size+g[S+1].size)/2));var F=m[0],R=m[y-1],z=g[0].size/2,H=g[y-1].size/2,X=null,se=null;return f&&(X=new D(f,1e3*F.weight),m.push(X),p.push(new d(X,F,z))),v&&(se=new D(v,1e3*R.weight),m.push(se),p.push(new d(R,se,H))),new _(m,p).solve(),{newCenters:m.slice(0,g.length).map(function(ie){return ie.position()}),lowerBound:X?X.position():F.position()-z,upperBound:se?se.position():R.position()+H}}}},pv={};function Zn(E){var L=pv[E];if(void 0!==L)return L.exports;var u=pv[E]={id:E,loaded:!1,exports:{}};return JE[E].call(u.exports,u,u.exports,Zn),u.loaded=!0,u.exports}Zn.d=(E,L)=>{for(var u in L)Zn.o(L,u)&&!Zn.o(E,u)&&Object.defineProperty(E,u,{enumerable:!0,get:L[u]})},Zn.o=(E,L)=>Object.prototype.hasOwnProperty.call(E,L),Zn.r=E=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})},Zn.nmd=E=>(E.paths=[],E.children||(E.children=[]),E),(()=>{"use strict";var E={};Zn.r(E),Zn.d(E,{forceCenter:()=>z9,forceCollide:()=>ZD,forceLink:()=>eE,forceManyBody:()=>nE,forceRadial:()=>p7,forceSimulation:()=>tE,forceX:()=>g7,forceY:()=>m7});var L={};Zn.r(L),Zn.d(L,{dispatch:()=>rh});var u={};function d(t){return"function"==typeof t}Zn.r(u),Zn.d(u,{interval:()=>_7,now:()=>la,timeout:()=>Jg,timer:()=>dh,timerFlush:()=>gT});let D=!1;const w={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else D&&console.log("RxJS: Back to a better error behavior. Thank you. <3");D=t},get useDeprecatedSynchronousErrorHandling(){return D}};function C(t){setTimeout(()=>{throw t},0)}const _={closed:!0,next(t){},error(t){if(w.useDeprecatedSynchronousErrorHandling)throw t;C(t)},complete(){}},x=Array.isArray||(t=>t&&"number"==typeof t.length);function g(t){return null!==t&&"object"==typeof t}const v=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class m{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof m)e.remove(this);else if(null!==e)for(let o=0;o<e.length;++o)e[o].remove(this);if(d(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(o){n=o instanceof v?p(o.errors):[o]}}if(x(r)){let o=-1,a=r.length;for(;++o<a;){const l=r[o];if(g(l))try{l.unsubscribe()}catch(c){n=n||[],c instanceof v?n=n.concat(p(c.errors)):n.push(c)}}}if(n)throw new v(n)}add(n){let e=n;if(!n)return m.EMPTY;switch(typeof n){case"function":e=new m(n);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof m)){const r=e;e=new m,e._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof m){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[e]:s.push(e),e}remove(n){const e=this._subscriptions;if(e){const i=e.indexOf(n);-1!==i&&e.splice(i,1)}}}var t;function p(t){return t.reduce((n,e)=>n.concat(e instanceof v?e.errors:e),[])}m.EMPTY=((t=new m).closed=!0,t);const y="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class k extends m{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=_;break;case 1:if(!n){this.destination=_;break}if("object"==typeof n){n instanceof k?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new O(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new O(this,n,e,i)}}[y](){return this}static create(n,e,i){const s=new k(n,e,i);return s.syncErrorThrowable=!1,s}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class O extends k{constructor(n,e,i,s){super(),this._parentSubscriber=n;let r,o=this;d(e)?r=e:e&&(r=e.next,i=e.error,s=e.complete,e!==_&&(o=Object.create(e),d(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=i,this._complete=s}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;w.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=w;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):C(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;C(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);w.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),w.useDeprecatedSynchronousErrorHandling)throw i;C(i)}}__tryOrSetError(n,e,i){if(!w.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(s){return w.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=s,n.syncErrorThrown=!0,!0):(C(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const z="function"==typeof Symbol&&Symbol.observable||"@@observable";function H(t){return t}let te=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,s){const{operator:r}=this,o=function R(t,n,e){if(t){if(t instanceof k)return t;if(t[y])return t[y]()}return t||n||e?new k(t,n,e):new k(_)}(e,i,s);if(o.add(r?r.call(o,this.source):this.source||w.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),w.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){w.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function F(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof k?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=ie(i))((s,r)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){r(l),o&&o.unsubscribe()}},r,s)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[z](){return this}pipe(...e){return 0===e.length?this:function se(t){return 0===t.length?H:1===t.length?t[0]:function(e){return t.reduce((i,s)=>s(i),e)}}(e)(this)}toPromise(e){return new(e=ie(e))((i,s)=>{let r;this.subscribe(o=>r=o,o=>s(o),()=>i(r))})}}return t.create=n=>new t(n),t})();function ie(t){if(t||(t=w.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const N=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class V extends m{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class U extends k{constructor(n){super(n),this.destination=n}}let $=(()=>{class t extends te{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[y](){return new U(this)}lift(e){const i=new Y(this,this);return i.operator=e,i}next(e){if(this.closed)throw new N;if(!this.isStopped){const{observers:i}=this,s=i.length,r=i.slice();for(let o=0;o<s;o++)r[o].next(e)}}error(e){if(this.closed)throw new N;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,s=i.length,r=i.slice();for(let o=0;o<s;o++)r[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new N;this.isStopped=!0;const{observers:e}=this,i=e.length,s=e.slice();for(let r=0;r<i;r++)s[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new N;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new N;return this.hasError?(e.error(this.thrownError),m.EMPTY):this.isStopped?(e.complete(),m.EMPTY):(this.observers.push(e),new V(this,e))}asObservable(){const e=new te;return e.source=this,e}}return t.create=(n,e)=>new Y(n,e),t})();class Y extends ${constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):m.EMPTY}}function oe(t){return t&&"function"==typeof t.schedule}function de(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new ee(t,n))}}class ee{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new J(n,this.project,this.thisArg))}}class J extends k{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const ce=t=>n=>{for(let e=0,i=t.length;e<i&&!n.closed;e++)n.next(t[e]);n.complete()},fe=function be(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),he=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function xe(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const Te=t=>{if(t&&"function"==typeof t[z])return(t=>n=>{const e=t[z]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(he(t))return ce(t);if(xe(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,C),n))(t);if(t&&"function"==typeof t[fe])return(t=>n=>{const e=t[fe]();for(;;){let i;try{i=e.next()}catch(s){return n.error(s),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${g(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Xe(t,n){return new te(e=>{const i=new m;let s=0;return i.add(n.schedule(function(){s!==t.length?(e.next(t[s++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function Ln(t,n){return n?function vn(t,n){if(null!=t){if(function Kt(t){return t&&"function"==typeof t[z]}(t))return function Fe(t,n){return new te(e=>{const i=new m;return i.add(n.schedule(()=>{const s=t[z]();i.add(s.subscribe({next(r){i.add(n.schedule(()=>e.next(r)))},error(r){i.add(n.schedule(()=>e.error(r)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(xe(t))return function Ke(t,n){return new te(e=>{const i=new m;return i.add(n.schedule(()=>t.then(s=>{i.add(n.schedule(()=>{e.next(s),i.add(n.schedule(()=>e.complete()))}))},s=>{i.add(n.schedule(()=>e.error(s)))}))),i})}(t,n);if(he(t))return Xe(t,n);if(function Qi(t){return t&&"function"==typeof t[fe]}(t)||"string"==typeof t)return function ht(t,n){if(!t)throw new Error("Iterable cannot be null");return new te(e=>{const i=new m;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(n.schedule(()=>{s=t[fe](),i.add(n.schedule(function(){if(e.closed)return;let r,o;try{const a=s.next();r=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(r),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof te?t:new te(Te(t))}class wt extends k{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Ct extends k{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Ji(t,n){if(!n.closed)return t instanceof te?t.subscribe(n):Te(t)(n)}function ac(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(ac((s,r)=>Ln(t(s,r)).pipe(de((o,a)=>n(s,o,r,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new ho(t,e)))}class ho{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new vs(n,this.project,this.concurrent))}}class vs extends Ct{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active<this.concurrent?this._tryNext(n):this.buffer.push(n)}_tryNext(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(n){const e=new wt(this),i=this.destination;i.add(e);const s=Ji(n,e);s!==e&&i.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(n){this.destination.next(n)}notifyComplete(){const n=this.buffer;this.active--,n.length>0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Ar(t=Number.POSITIVE_INFINITY){return ac(H,t)}function rr(t,n){return n?Xe(t,n):new te(ce(t))}function Aa(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return oe(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof te?t[0]:Ar(n)(rr(t,e))}function Ma(){return function(n){return n.lift(new or(n))}}class or{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const s=new lc(n,i),r=e.subscribe(s);return s.closed||(s.connection=i.connect()),r}}class lc extends k{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,s=n._connection;this.connection=null,s&&(!i||s===i)&&s.unsubscribe()}}class cc extends te{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new m,n.add(this.source.subscribe(new uc(this.getSubject(),this))),n.closed&&(this._connection=null,n=m.EMPTY)),n}refCount(){return Ma()(this)}}const Qh=(()=>{const t=cc.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class uc extends U{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class eS{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,s=this.subjectFactory(),r=i(s).subscribe(n);return r.add(e.subscribe(s)),r}}function tS(){return new $}function Ut(t){for(let n in t)if(t[n]===Ut)return n;throw Error("Could not find renamed property on target object.")}function Jh(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Ht(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Ht).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function qh(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const iS=Ut({__forward_ref__:Ut});function ed(t){return t.__forward_ref__=ed,t.toString=function(){return Ht(this())},t}function mt(t){return function gv(t){return"function"==typeof t&&t.hasOwnProperty(iS)&&t.__forward_ref__===ed}(t)?t():t}class Ye extends Error{constructor(n,e){super(function td(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function rt(t){return"string"==typeof t?t:null==t?"":String(t)}function $n(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():rt(t)}function hc(t,n){const e=n?` in ${n}`:"";throw new Ye(-201,`No provider for ${$n(t)} found${e}`)}function bi(t,n){null==t&&function zt(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Qe(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function kt(t){return{providers:t.providers||[],imports:t.imports||[]}}function nd(t){return mv(t,dc)||mv(t,_v)}function mv(t,n){return t.hasOwnProperty(n)?t[n]:null}function vv(t){return t&&(t.hasOwnProperty(id)||t.hasOwnProperty(uS))?t[id]:null}const dc=Ut({\u0275prov:Ut}),id=Ut({\u0275inj:Ut}),_v=Ut({ngInjectableDef:Ut}),uS=Ut({ngInjectorDef:Ut});var ct=(()=>((ct=ct||{})[ct.Default=0]="Default",ct[ct.Host=1]="Host",ct[ct.Self=2]="Self",ct[ct.SkipSelf=4]="SkipSelf",ct[ct.Optional=8]="Optional",ct))();let sd;function ar(t){const n=sd;return sd=t,n}function yv(t,n,e){const i=nd(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&ct.Optional?null:void 0!==n?n:void hc(Ht(t),"Injector")}function lr(t){return{toString:t}.toString()}var qi=(()=>((qi=qi||{})[qi.OnPush=0]="OnPush",qi[qi.Default=1]="Default",qi))(),es=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(es||(es={})),es))();const dS="undefined"!=typeof globalThis&&globalThis,fS="undefined"!=typeof window&&window,pS="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,jt=dS||"undefined"!=typeof global&&global||fS||pS,fo={},Wt=[],fc=Ut({\u0275cmp:Ut}),rd=Ut({\u0275dir:Ut}),od=Ut({\u0275pipe:Ut}),xv=Ut({\u0275mod:Ut}),Vs=Ut({\u0275fac:Ut}),ka=Ut({__NG_ELEMENT_ID__:Ut});let gS=0;function $e(t){return lr(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===qi.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Wt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||es.Emulated,id:"c",styles:t.styles||Wt,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,o=t.pipes;return i.id+=gS++,i.inputs=Tv(t.inputs,e),i.outputs=Tv(t.outputs),r&&r.forEach(a=>a(i)),i.directiveDefs=s?()=>("function"==typeof s?s():s).map(bv):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(wv):null,i})}function bv(t){return Un(t)||function cr(t){return t[rd]||null}(t)}function wv(t){return function Mr(t){return t[od]||null}(t)}const Cv={};function It(t){return lr(()=>{const n={type:t.type,bootstrap:t.bootstrap||Wt,declarations:t.declarations||Wt,imports:t.imports||Wt,exports:t.exports||Wt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Cv[t.id]=t.type),n})}function Tv(t,n){if(null==t)return fo;const e={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),e[s]=i,n&&(n[s]=r)}return e}const bn=$e;function gi(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Un(t){return t[fc]||null}function Bi(t,n){const e=t[xv]||null;if(!e&&!0===n)throw new Error(`Type ${Ht(t)} does not have '\u0275mod' property.`);return e}function _s(t){return Array.isArray(t)&&"object"==typeof t[1]}function ns(t){return Array.isArray(t)&&!0===t[1]}function cd(t){return 0!=(8&t.flags)}function vc(t){return 2==(2&t.flags)}function _c(t){return 1==(1&t.flags)}function is(t){return null!==t.template}function bS(t){return 0!=(512&t[2])}function Or(t,n){return t.hasOwnProperty(Vs)?t[Vs]:null}class Ev{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ut(){return Sv}function Sv(t){return t.type.prototype.ngOnChanges&&(t.setInput=DS),TS}function TS(){const t=Mv(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===fo)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function DS(t,n,e,i){const s=Mv(t)||function ES(t,n){return t[Av]=n}(t,{previous:fo,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[e],l=o[a];r[a]=new Ev(l&&l.currentValue,n,o===fo),t[i]=n}ut.ngInherit=!0;const Av="__ngSimpleChanges__";function Mv(t){return t[Av]||null}let pd;function gd(){return void 0!==pd?pd:"undefined"!=typeof document?document:void 0}function fn(t){return!!t.listen}const kv={createRenderer:(t,n)=>gd()};function wn(t){for(;Array.isArray(t);)t=t[0];return t}function yc(t,n){return wn(n[t])}function Ci(t,n){return wn(n[t.index])}function md(t,n){return t.data[n]}function Ti(t,n){const e=n[t];return _s(e)?e:e[0]}function Lv(t){return 4==(4&t[2])}function vd(t){return 128==(128&t[2])}function ur(t,n){return null==n?null:t[n]}function Iv(t){t[18]=0}function _d(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const ot={lFrame:zv(null),bindingsEnabled:!0};function Fv(){return ot.bindingsEnabled}function Se(){return ot.lFrame.lView}function Lt(){return ot.lFrame.tView}function ve(t){return ot.lFrame.contextLView=t,t[8]}function In(){let t=Pv();for(;null!==t&&64===t.type;)t=t.parent;return t}function Pv(){return ot.lFrame.currentTNode}function ys(t,n){const e=ot.lFrame;e.currentTNode=t,e.isParent=n}function yd(){return ot.lFrame.isParent}function xd(){ot.lFrame.isParent=!1}function ii(){const t=ot.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function yo(){return ot.lFrame.bindingIndex++}function zs(t){const n=ot.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function GS(t,n){const e=ot.lFrame;e.bindingIndex=e.bindingRootIndex=t,bd(n)}function bd(t){ot.lFrame.currentDirectiveIndex=t}function Bv(){return ot.lFrame.currentQueryIndex}function Cd(t){ot.lFrame.currentQueryIndex=t}function US(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Vv(t,n,e){if(e&ct.SkipSelf){let s=n,r=t;for(;!(s=s.parent,null!==s||e&ct.Host||(s=US(r),null===s||(r=r[15],10&s.type))););if(null===s)return!1;n=s,t=r}const i=ot.lFrame=Hv();return i.currentTNode=n,i.lView=t,!0}function bc(t){const n=Hv(),e=t[1];ot.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Hv(){const t=ot.lFrame,n=null===t?null:t.child;return null===n?zv(t):n}function zv(t){const n={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:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function jv(){const t=ot.lFrame;return ot.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Gv=jv;function wc(){const t=jv();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function si(){return ot.lFrame.selectedIndex}function hr(t){ot.lFrame.selectedIndex=t}function rn(){const t=ot.lFrame;return md(t.tView,t.selectedIndex)}function ae(){ot.lFrame.currentNamespace="svg"}function Cc(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const r=t.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:h}=r;o&&(t.contentHooks||(t.contentHooks=[])).push(-e,o),a&&((t.contentHooks||(t.contentHooks=[])).push(e,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-e,l),c&&((t.viewHooks||(t.viewHooks=[])).push(e,c),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,c)),null!=h&&(t.destroyHooks||(t.destroyHooks=[])).push(e,h)}}function Tc(t,n,e){$v(t,n,3,e)}function Dc(t,n,e,i){(3&t[2])===e&&$v(t,n,e,i)}function Td(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function $v(t,n,e,i){const r=null!=i?i:-1,o=n.length-1;let a=0;for(let l=void 0!==i?65535&t[18]:0;l<o;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=i&&a>=i)break}else n[l]<0&&(t[18]+=65536),(a<r||-1==r)&&(JS(t,e,n,l),t[18]=(4294901760&t[18])+l+2),l++}function JS(t,n,e,i){const s=e[i]<0,r=e[i+1],a=t[s?-e[i]:e[i]];if(s){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{r.call(a)}finally{}}}else try{r.call(a)}finally{}}class Pa{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ec(t,n,e){const i=fn(t);let s=0;for(;s<e.length;){const r=e[s];if("number"==typeof r){if(0!==r)break;s++;const o=e[s++],a=e[s++],l=e[s++];i?t.setAttribute(n,a,l,o):n.setAttributeNS(o,a,l)}else{const o=r,a=e[++s];Ed(o)?i&&t.setProperty(n,o,a):i?t.setAttribute(n,o,a):n.setAttribute(o,a),s++}}return s}function Uv(t){return 3===t||4===t||6===t}function Ed(t){return 64===t.charCodeAt(0)}function Sc(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const s=n[i];"number"==typeof s?e=s:0===e||Wv(t,e,s,null,-1===e||2===e?n[++i]:null)}}return t}function Wv(t,n,e,i,s){let r=0,o=t.length;if(-1===n)o=-1;else for(;r<t.length;){const a=t[r++];if("number"==typeof a){if(a===n){o=-1;break}if(a>n){o=r-1;break}}}for(;r<t.length;){const a=t[r];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==s&&(t[r+1]=s));if(i===t[r+1])return void(t[r+2]=s)}r++,null!==i&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,n),r=o+1),t.splice(r++,0,e),null!==i&&t.splice(r++,0,i),null!==s&&t.splice(r++,0,s)}function Yv(t){return-1!==t}function xo(t){return 32767&t}function bo(t,n){let e=function iA(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let Sd=!0;function Ac(t){const n=Sd;return Sd=t,n}let sA=0;function Ra(t,n){const e=Md(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,Ad(i.data,t),Ad(n,null),Ad(i.blueprint,null));const s=Mc(t,n),r=t.injectorIndex;if(Yv(s)){const o=xo(s),a=bo(s,n),l=a[1].data;for(let c=0;c<8;c++)n[r+c]=a[o+c]|l[o+c]}return n[r+8]=s,r}function Ad(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Md(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Mc(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,s=n;for(;null!==s;){const r=s[1],o=r.type;if(i=2===o?r.declTNode:1===o?s[6]:null,null===i)return-1;if(e++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function kc(t,n,e){!function rA(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(ka)&&(i=e[ka]),null==i&&(i=e[ka]=sA++);const s=255&i;n.data[t+(s>>5)]|=1<<s}(t,n,e)}function Kv(t,n,e){if(e&ct.Optional)return t;hc(n,"NodeInjector")}function Qv(t,n,e,i){if(e&ct.Optional&&void 0===i&&(i=null),0==(e&(ct.Self|ct.Host))){const s=t[9],r=ar(void 0);try{return s?s.get(n,i,e&ct.Optional):yv(n,i,e&ct.Optional)}finally{ar(r)}}return Kv(i,n,e)}function Jv(t,n,e,i=ct.Default,s){if(null!==t){const r=function cA(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(ka)?t[ka]:void 0;return"number"==typeof n?n>=0?255&n:aA:n}(e);if("function"==typeof r){if(!Vv(n,t,i))return i&ct.Host?Kv(s,e,i):Qv(n,e,i,s);try{const o=r(i);if(null!=o||i&ct.Optional)return o;hc(e)}finally{Gv()}}else if("number"==typeof r){let o=null,a=Md(t,n),l=-1,c=i&ct.Host?n[16][6]:null;for((-1===a||i&ct.SkipSelf)&&(l=-1===a?Mc(t,n):n[a+8],-1!==l&&t_(i,!1)?(o=n[1],a=xo(l),n=bo(l,n)):a=-1);-1!==a;){const h=n[1];if(e_(r,a,h.data)){const b=lA(a,n,e,o,i,c);if(b!==qv)return b}l=n[a+8],-1!==l&&t_(i,n[1].data[a+8]===c)&&e_(r,a,n)?(o=h,a=xo(l),n=bo(l,n)):a=-1}}}return Qv(n,e,i,s)}const qv={};function aA(){return new wo(In(),Se())}function lA(t,n,e,i,s,r){const o=n[1],a=o.data[t+8],h=Lc(a,o,e,null==i?vc(a)&&Sd:i!=o&&0!=(3&a.type),s&ct.Host&&r===a);return null!==h?Ba(n,o,h,a):qv}function Lc(t,n,e,i,s){const r=t.providerIndexes,o=n.data,a=1048575&r,l=t.directiveStart,h=r>>20,T=s?a+h:t.directiveEnd;for(let M=i?a:a+h;M<T;M++){const I=o[M];if(M<l&&e===I||M>=l&&I.type===e)return M}if(s){const M=o[l];if(M&&is(M)&&M.type===e)return l}return null}function Ba(t,n,e,i){let s=t[e];const r=n.data;if(function qS(t){return t instanceof Pa}(s)){const o=s;o.resolving&&function sS(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new Ye(-200,`Circular dependency in DI detected for ${t}${e}`)}($n(r[e]));const a=Ac(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?ar(o.injectImpl):null;Vv(t,i,ct.Default);try{s=t[e]=o.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function QS(t,n,e){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=n.type.prototype;if(i){const o=Sv(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}s&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,s),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],n)}finally{null!==l&&ar(l),Ac(a),o.resolving=!1,Gv()}}return s}function e_(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function t_(t,n){return!(t&ct.Self||t&ct.Host&&n)}class wo{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return Jv(this._tNode,this._lView,n,i,e)}}const To="__parameters__";function Eo(t,n,e){return lr(()=>{const i=function Id(t){return function(...e){if(t){const i=t(...e);for(const s in i)this[s]=i[s]}}}(n);function s(...r){if(this instanceof s)return i.apply(this,r),this;const o=new s(...r);return a.annotation=o,a;function a(l,c,h){const b=l.hasOwnProperty(To)?l[To]:Object.defineProperty(l,To,{value:[]})[To];for(;b.length<=h;)b.push(null);return(b[h]=b[h]||[]).push(o),l}}return e&&(s.prototype=Object.create(e.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class et{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Qe({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function zi(t,n){void 0===n&&(n=t);for(let e=0;e<t.length;e++){let i=t[e];Array.isArray(i)?(n===t&&(n=t.slice(0,e)),zi(i,n)):n!==t&&n.push(i)}return n}function xs(t,n){t.forEach(e=>Array.isArray(e)?xs(e,n):n(e))}function i_(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Ic(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function za(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function Di(t,n,e){let i=So(t,n);return i>=0?t[1|i]=e:(i=~i,function fA(t,n,e,i){let s=t.length;if(s==n)t.push(e,i);else if(1===s)t.push(i,t[0]),t[0]=e;else{for(s--,t.push(t[s-1],t[s]);s>n;)t[s]=t[s-2],s--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function Fd(t,n){const e=So(t,n);if(e>=0)return t[1|e]}function So(t,n){return function o_(t,n,e){let i=0,s=t.length>>e;for(;s!==i;){const r=i+(s-i>>1),o=t[r<<e];if(n===o)return r<<e;o>n?s=r:i=r+1}return~(s<<e)}(t,n,1)}const ja={},Nd="__NG_DI_FLAG__",Fc="ngTempTokenPath",xA=/\n/gm,l_="__source",wA=Ut({provide:String,useValue:Ut});let Ga;function c_(t){const n=Ga;return Ga=t,n}function CA(t,n=ct.Default){if(void 0===Ga)throw new Ye(203,"");return null===Ga?yv(t,void 0,n):Ga.get(t,n&ct.Optional?null:void 0,n)}function Ee(t,n=ct.Default){return(function hS(){return sd}()||CA)(mt(t),n)}const Rd=Ee;function Bd(t){const n=[];for(let e=0;e<t.length;e++){const i=mt(t[e]);if(Array.isArray(i)){if(0===i.length)throw new Ye(900,"");let s,r=ct.Default;for(let o=0;o<i.length;o++){const a=i[o],l=TA(a);"number"==typeof l?-1===l?s=a.token:r|=l:s=a}n.push(Ee(s,r))}else n.push(Ee(i))}return n}function $a(t,n){return t[Nd]=n,t.prototype[Nd]=n,t}function TA(t){return t[Nd]}const Pc=$a(Eo("Optional"),8),Nc=$a(Eo("SkipSelf"),4);var Ei=(()=>((Ei=Ei||{})[Ei.Important=1]="Important",Ei[Ei.DashCase=2]="DashCase",Ei))();const v_="__ngContext__";function Qn(t,n){t[v_]=n}function jd(t){const n=function Wa(t){return t[v_]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function $d(t,n){return undefined(t,n)}function Ya(t){const n=t[3];return ns(n)?n[3]:n}function Ud(t){return T_(t[13])}function Wd(t){return T_(t[4])}function T_(t){for(;null!==t&&!ns(t);)t=t[4];return t}function Mo(t,n,e,i,s){if(null!=i){let r,o=!1;ns(i)?r=i:_s(i)&&(o=!0,i=i[0]);const a=wn(i);0===t&&null!==e?null==s?k_(n,e,a):Pr(n,e,a,s||null,!0):1===t&&null!==e?Pr(n,e,a,s||null,!0):2===t?function qd(t,n,e){const i=Bc(t,n);i&&function tM(t,n,e,i){fn(t)?t.removeChild(n,e,i):n.removeChild(e)}(t,i,n,e)}(n,a,o):3===t&&n.destroyNode(a),null!=r&&function sM(t,n,e,i,s){const r=e[7];r!==wn(e)&&Mo(n,t,i,r,s);for(let a=10;a<e.length;a++){const l=e[a];Xa(l[1],l,t,n,i,r)}}(n,t,r,e,s)}}function Xd(t,n,e){if(fn(t))return t.createElement(n,e);{const i=null!==e?function kS(t){const n=t.toLowerCase();return"svg"===n?"http://www.w3.org/2000/svg":"math"===n?"http://www.w3.org/1998/MathML/":null}(e):null;return null===i?t.createElement(n):t.createElementNS(i,n)}}function E_(t,n){const e=t[9],i=e.indexOf(n),s=n[3];1024&n[2]&&(n[2]&=-1025,_d(s,-1)),e.splice(i,1)}function Zd(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const s=i[17];null!==s&&s!==t&&E_(s,i),n>0&&(t[e-1][4]=i[4]);const r=Ic(t,10+n);!function YA(t,n){Xa(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function S_(t,n){if(!(256&n[2])){const e=n[11];fn(e)&&e.destroyNode&&Xa(t,n,e,3,null,null),function KA(t){let n=t[13];if(!n)return Kd(t[1],t);for(;n;){let e=null;if(_s(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)_s(n)&&Kd(n[1],n),n=n[3];null===n&&(n=t),_s(n)&&Kd(n[1],n),e=n&&n[4]}n=e}}(n)}}function Kd(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function eM(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const s=n[e[i]];if(!(s instanceof Pa)){const r=e[i+1];if(Array.isArray(r))for(let o=0;o<r.length;o+=2){const a=s[r[o]],l=r[o+1];try{l.call(a)}finally{}}else try{r.call(s)}finally{}}}}(t,n),function qA(t,n){const e=t.cleanup,i=n[7];let s=-1;if(null!==e)for(let r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const o=e[r+1],a="function"==typeof o?o(n):wn(n[o]),l=i[s=e[r+2]],c=e[r+3];"boolean"==typeof c?a.removeEventListener(e[r],l,c):c>=0?i[s=c]():i[s=-c].unsubscribe(),r+=2}else{const o=i[s=e[r+1]];e[r].call(o)}if(null!==i){for(let r=s+1;r<i.length;r++)i[r]();n[7]=null}}(t,n),1===n[1].type&&fn(n[11])&&n[11].destroy();const e=n[17];if(null!==e&&ns(n[3])){e!==n[3]&&E_(e,n);const i=n[19];null!==i&&i.detachView(t)}}}function A_(t,n,e){return function M_(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[0];if(2&i.flags){const s=t.data[i.directiveStart].encapsulation;if(s===es.None||s===es.Emulated)return null}return Ci(i,e)}(t,n.parent,e)}function Pr(t,n,e,i,s){fn(t)?t.insertBefore(n,e,i,s):n.insertBefore(e,i,s)}function k_(t,n,e){fn(t)?t.appendChild(n,e):n.appendChild(e)}function L_(t,n,e,i,s){null!==i?Pr(t,n,e,i,s):k_(t,n,e)}function Bc(t,n){return fn(t)?t.parentNode(n):n.parentNode}function I_(t,n,e){return F_(t,n,e)}let zc,jc,F_=function O_(t,n,e){return 40&t.type?Ci(t,e):null};function Vc(t,n,e,i){const s=A_(t,i,n),r=n[11],a=I_(i.parent||n[6],i,n);if(null!=s)if(Array.isArray(e))for(let l=0;l<e.length;l++)L_(r,s,e[l],a,!1);else L_(r,s,e,a,!1)}function Hc(t,n){if(null!==n){const e=n.type;if(3&e)return Ci(n,t);if(4&e)return Jd(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return Hc(t,i);{const s=t[n.index];return ns(s)?Jd(-1,s):wn(s)}}if(32&e)return $d(n,t)()||wn(t[n.index]);{const i=N_(t,n);return null!==i?Array.isArray(i)?i[0]:Hc(Ya(t[16]),i):Hc(t,n.next)}}return null}function N_(t,n){return null!==n?t[16][6].projection[n.projection]:null}function Jd(t,n){const e=10+t+1;if(e<n.length){const i=n[e],s=i[1].firstChild;if(null!==s)return Hc(i,s)}return n[7]}function ef(t,n,e,i,s,r,o){for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===n&&(a&&Qn(wn(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)ef(t,n,e.child,i,s,r,!1),Mo(n,t,s,a,r);else if(32&l){const c=$d(e,i);let h;for(;h=c();)Mo(n,t,s,h,r);Mo(n,t,s,a,r)}else 16&l?R_(t,n,i,e,s,r):Mo(n,t,s,a,r);e=o?e.projectionNext:e.next}}function Xa(t,n,e,i,s,r){ef(e,i,t.firstChild,n,s,r,!1)}function R_(t,n,e,i,s,r){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Mo(n,t,s,l[c],r);else ef(t,n,l,o[3],s,r,!0)}function B_(t,n,e){fn(t)?t.setAttribute(n,"style",e):n.style.cssText=e}function tf(t,n,e){fn(t)?""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e):n.className=e}function Nr(t){var n;return(null===(n=function nf(){if(void 0===zc&&(zc=null,jt.trustedTypes))try{zc=jt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return zc}())||void 0===n?void 0:n.createHTML(t))||t}function V_(t){var n;return(null===(n=function sf(){if(void 0===jc&&(jc=null,jt.trustedTypes))try{jc=jt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return jc}())||void 0===n?void 0:n.createHTML(t))||t}class Rr{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class cM extends Rr{getTypeName(){return"HTML"}}class uM extends Rr{getTypeName(){return"Style"}}class hM extends Rr{getTypeName(){return"Script"}}class dM extends Rr{getTypeName(){return"URL"}}class fM extends Rr{getTypeName(){return"ResourceURL"}}function Si(t){return t instanceof Rr?t.changingThisBreaksApplicationSecurity:t}function bs(t,n){const e=j_(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}function j_(t){return t instanceof Rr&&t.getTypeName()||null}class yM{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(Nr(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class xM{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Nr(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Nr(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let s=e.length-1;0<s;s--){const o=e.item(s).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&n.removeAttribute(o)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const wM=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,CM=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Za(t){return(t=String(t)).match(wM)||t.match(CM)?t:"unsafe:"+t}function $_(t){return(t=String(t)).split(",").map(n=>Za(n.trim())).join(", ")}function ws(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Ka(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const U_=ws("area,br,col,hr,img,wbr"),W_=ws("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Y_=ws("rp,rt"),rf=Ka(U_,Ka(W_,ws("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ka(Y_,ws("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ka(Y_,W_)),af=ws("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),lf=ws("srcset"),X_=Ka(af,lf,ws("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ws("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),TM=ws("script,style,template");class DM{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let s=this.checkClobberedElement(e,e.nextSibling);if(s){e=s;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!rf.hasOwnProperty(e))return this.sanitizedSomething=!0,!TM.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let s=0;s<i.length;s++){const r=i.item(s),o=r.name,a=o.toLowerCase();if(!X_.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=r.value;af[a]&&(l=Za(l)),lf[a]&&(l=$_(l)),this.buf.push(" ",o,'="',Z_(l),'"')}return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();rf.hasOwnProperty(e)&&!U_.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(Z_(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const EM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,SM=/([^\#-~ |!])/g;function Z_(t){return t.replace(/&/g,"&").replace(EM,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(SM,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Gc;function K_(t,n){let e=null;try{Gc=Gc||function G_(t){const n=new xM(t);return function bM(){try{return!!(new window.DOMParser).parseFromString(Nr(""),"text/html")}catch(t){return!1}}()?new yM(n):n}(t);let i=n?String(n):"";e=Gc.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=e.innerHTML,e=Gc.getInertBodyElement(i)}while(i!==r);return Nr((new DM).sanitizeChildren(cf(e)||e))}finally{if(e){const i=cf(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function cf(t){return"content"in t&&function AM(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Jt=(()=>((Jt=Jt||{})[Jt.NONE=0]="NONE",Jt[Jt.HTML=1]="HTML",Jt[Jt.STYLE=2]="STYLE",Jt[Jt.SCRIPT=3]="SCRIPT",Jt[Jt.URL=4]="URL",Jt[Jt.RESOURCE_URL=5]="RESOURCE_URL",Jt))();function Qa(t){const n=function Ja(){const t=Se();return t&&t[12]}();return n?V_(n.sanitize(Jt.HTML,t)||""):bs(t,"HTML")?V_(Si(t)):K_(gd(),rt(t))}function hf(t){return t.ngOriginalError}function BM(t,...n){t.error(...n)}class qa{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=function RM(t){return t&&t.ngErrorLogger||BM}(n);i(this._console,"ERROR",n),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&hf(n);for(;e&&hf(e);)e=hf(e);return e||null}}const UM=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(jt))();function q_(t){return t.ownerDocument.defaultView}function ko(t){return t.ownerDocument}function Cs(t){return t instanceof Function?t():t}function ty(t,n,e){let i=t.length;for(;;){const s=t.indexOf(n,e);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const r=n.length;if(s+r===i||t.charCodeAt(s+r)<=32)return s}e=s+1}}const ny="ng-template";function YM(t,n,e){let i=0;for(;i<t.length;){let s=t[i++];if(e&&"class"===s){if(s=t[i],-1!==ty(s.toLowerCase(),n,0))return!0}else if(1===s){for(;i<t.length&&"string"==typeof(s=t[i++]);)if(s.toLowerCase()===n)return!0;return!1}}return!1}function iy(t){return 4===t.type&&t.value!==ny}function XM(t,n,e){return n===(4!==t.type||e?t.value:ny)}function ZM(t,n,e){let i=4;const s=t.attrs||[],r=function JM(t){for(let n=0;n<t.length;n++)if(Uv(t[n]))return n;return t.length}(s);let o=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!XM(t,l,e)||""===l&&1===n.length){if(ss(i))return!1;o=!0}}else{const c=8&i?l:n[++a];if(8&i&&null!==t.attrs){if(!YM(t.attrs,c,e)){if(ss(i))return!1;o=!0}continue}const b=KM(8&i?"class":l,s,iy(t),e);if(-1===b){if(ss(i))return!1;o=!0;continue}if(""!==c){let T;T=b>r?"":s[b+1].toLowerCase();const M=8&i?T:null;if(M&&-1!==ty(M,c,0)||2&i&&c!==T){if(ss(i))return!1;o=!0}}}}else{if(!o&&!ss(i)&&!ss(l))return!1;if(o&&ss(l))continue;o=!1,i=l|1&i}}return ss(i)||o}function ss(t){return 0==(1&t)}function KM(t,n,e,i){if(null===n)return-1;let s=0;if(i||!e){let r=!1;for(;s<n.length;){const o=n[s];if(o===t)return s;if(3===o||6===o)r=!0;else{if(1===o||2===o){let a=n[++s];for(;"string"==typeof a;)a=n[++s];continue}if(4===o)break;if(0===o){s+=4;continue}}s+=r?1:2}return-1}return function qM(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function sy(t,n,e=!1){for(let i=0;i<n.length;i++)if(ZM(t,n[i],e))return!0;return!1}function ek(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let s=0;s<t.length;s++)if(t[s]!==i[s])continue e;return!0}}return!1}function ry(t,n){return t?":not("+n.trim()+")":n}function tk(t){let n=t[0],e=1,i=2,s="",r=!1;for(;e<t.length;){let o=t[e];if("string"==typeof o)if(2&i){const a=t[++e];s+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""!==s&&!ss(o)&&(n+=ry(r,s),s=""),i=o,r=r||!ss(i);e++}return""!==s&&(n+=ry(r,s)),n}const at={};function G(t){oy(Lt(),Se(),si()+t,!1)}function oy(t,n,e,i){if(!i)if(3==(3&n[2])){const r=t.preOrderCheckHooks;null!==r&&Tc(n,r,e)}else{const r=t.preOrderHooks;null!==r&&Dc(n,r,0,e)}hr(e)}function $c(t,n){return t<<17|n<<2}function rs(t){return t>>17&32767}function df(t){return 2|t}function js(t){return(131068&t)>>2}function ff(t,n){return-131069&t|n<<2}function pf(t){return 1|t}function vy(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const s=e[i],r=e[i+1];if(-1!==r){const o=t.data[r];Cd(s),o.contentQueries(2,n[r],r)}}}function el(t,n,e,i,s,r,o,a,l,c){const h=n.blueprint.slice();return h[0]=s,h[2]=140|i,Iv(h),h[3]=h[15]=t,h[8]=e,h[10]=o||t&&t[10],h[11]=a||t&&t[11],h[12]=l||t&&t[12]||null,h[9]=c||t&&t[9]||null,h[6]=r,h[16]=2==n.type?t[16]:h,h}function Io(t,n,e,i,s){let r=t.data[n];if(null===r)r=function Cf(t,n,e,i,s){const r=Pv(),o=yd(),l=t.data[n]=function yk(t,n,e,i,s,r){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,e,n,i,s);return null===t.firstChild&&(t.firstChild=l),null!==r&&(o?null==r.child&&null!==l.parent&&(r.child=l):null===r.next&&(r.next=l)),l}(t,n,e,i,s),function jS(){return ot.lFrame.inI18n}()&&(r.flags|=64);else if(64&r.type){r.type=e,r.value=i,r.attrs=s;const o=function Fa(){const t=ot.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();r.injectorIndex=null===o?-1:o.injectorIndex}return ys(r,!0),r}function Oo(t,n,e,i){if(0===e)return-1;const s=n.length;for(let r=0;r<e;r++)n.push(i),t.blueprint.push(i),t.data.push(null);return s}function tl(t,n,e){bc(n);try{const i=t.viewQuery;null!==i&&If(1,i,e);const s=t.template;null!==s&&_y(t,n,s,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&vy(t,n),t.staticViewQueries&&If(2,t.viewQuery,e);const r=t.components;null!==r&&function mk(t,n){for(let e=0;e<n.length;e++)Rk(t,n[e])}(n,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,wc()}}function Fo(t,n,e,i){const s=n[2];if(256!=(256&s)){bc(n);try{Iv(n),function Nv(t){return ot.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&_y(t,n,e,2,i);const o=3==(3&s);if(o){const c=t.preOrderCheckHooks;null!==c&&Tc(n,c,null)}else{const c=t.preOrderHooks;null!==c&&Dc(n,c,0,null),Td(n,0)}if(function Pk(t){for(let n=Ud(t);null!==n;n=Wd(n)){if(!n[2])continue;const e=n[9];for(let i=0;i<e.length;i++){const s=e[i],r=s[3];0==(1024&s[2])&&_d(r,1),s[2]|=1024}}}(n),function Fk(t){for(let n=Ud(t);null!==n;n=Wd(n))for(let e=10;e<n.length;e++){const i=n[e],s=i[1];vd(i)&&Fo(s,i,s.template,i[8])}}(n),null!==t.contentQueries&&vy(t,n),o){const c=t.contentCheckHooks;null!==c&&Tc(n,c)}else{const c=t.contentHooks;null!==c&&Dc(n,c,1),Td(n,1)}!function pk(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const s=e[i];if(s<0)hr(~s);else{const r=s,o=e[++i],a=e[++i];GS(o,r),a(2,n[r])}}}finally{hr(-1)}}(t,n);const a=t.components;null!==a&&function gk(t,n){for(let e=0;e<n.length;e++)Nk(t,n[e])}(n,a);const l=t.viewQuery;if(null!==l&&If(2,l,i),o){const c=t.viewCheckHooks;null!==c&&Tc(n,c)}else{const c=t.viewHooks;null!==c&&Dc(n,c,2),Td(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-73,1024&n[2]&&(n[2]&=-1025,_d(n[3],-1))}finally{wc()}}}function vk(t,n,e,i){const s=n[10],o=Lv(n);try{!o&&s.begin&&s.begin(),o&&tl(t,n,i),Fo(t,n,e,i)}finally{!o&&s.end&&s.end()}}function _y(t,n,e,i,s){const r=si(),o=2&i;try{hr(-1),o&&n.length>20&&oy(t,n,20,!1),e(i,s)}finally{hr(r)}}function yy(t,n,e){if(cd(n)){const s=n.directiveEnd;for(let r=n.directiveStart;r<s;r++){const o=t.data[r];o.contentQueries&&o.contentQueries(1,e[r],r)}}}function Tf(t,n,e){!Fv()||(function Ek(t,n,e,i){const s=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||Ra(e,n),Qn(i,n);const o=e.initialInputs;for(let a=s;a<r;a++){const l=t.data[a],c=is(l);c&&Lk(n,e,l);const h=Ba(n,t,a,e);Qn(h,n),null!==o&&Ik(0,a-s,h,l,0,o),c&&(Ti(e.index,n)[8]=h)}}(t,n,e,Ci(e,n)),128==(128&e.flags)&&function Sk(t,n,e){const i=e.directiveStart,s=e.directiveEnd,o=e.index,a=function $S(){return ot.lFrame.currentDirectiveIndex}();try{hr(o);for(let l=i;l<s;l++){const c=t.data[l],h=n[l];bd(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Sy(c,h)}}finally{hr(-1),bd(a)}}(t,n,e))}function Df(t,n,e=Ci){const i=n.localNames;if(null!==i){let s=n.index+1;for(let r=0;r<i.length;r+=2){const o=i[r+1],a=-1===o?e(n,t):t[o];t[s++]=a}}}function xy(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=Yc(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function Yc(t,n,e,i,s,r,o,a,l,c){const h=20+i,b=h+s,T=function _k(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:at);return e}(h,b),M="function"==typeof c?c():c;return T[1]={type:t,blueprint:T,template:e,queries:null,viewQuery:a,declTNode:n,data:T.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:b,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:M,incompleteFirstPass:!1}}function Cy(t,n,e,i){const s=Oy(n);null===e?s.push(i):(s.push(e),t.firstCreatePass&&Fy(t).push(i,s.length-1))}function Ty(t,n,e){for(let i in t)if(t.hasOwnProperty(i)){const s=t[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(n,s):e[i]=[n,s]}return e}function Ef(t,n,e,i){let s=!1;if(Fv()){const r=function Ak(t,n,e){const i=t.directiveRegistry;let s=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];sy(e,o.selectors,!1)&&(s||(s=[]),kc(Ra(e,n),t,o.type),is(o)?(Ay(t,e),s.unshift(o)):s.push(o))}return s}(t,n,e),o=null===i?null:{"":-1};if(null!==r){s=!0,My(e,t.data.length,r.length);for(let h=0;h<r.length;h++){const b=r[h];b.providersResolver&&b.providersResolver(b)}let a=!1,l=!1,c=Oo(t,n,r.length,null);for(let h=0;h<r.length;h++){const b=r[h];e.mergedAttrs=Sc(e.mergedAttrs,b.hostAttrs),ky(t,e,n,c,b),kk(c,b,o),null!==b.contentQueries&&(e.flags|=8),(null!==b.hostBindings||null!==b.hostAttrs||0!==b.hostVars)&&(e.flags|=128);const T=b.type.prototype;!a&&(T.ngOnChanges||T.ngOnInit||T.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),a=!0),!l&&(T.ngOnChanges||T.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function xk(t,n){const i=n.directiveEnd,s=t.data,r=n.attrs,o=[];let a=null,l=null;for(let c=n.directiveStart;c<i;c++){const h=s[c],b=h.inputs,T=null===r||iy(n)?null:Ok(b,r);o.push(T),a=Ty(b,c,a),l=Ty(h.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(n.flags|=16),a.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=o,n.inputs=a,n.outputs=l}(t,e)}o&&function Mk(t,n,e){if(n){const i=t.localNames=[];for(let s=0;s<n.length;s+=2){const r=e[n[s+1]];if(null==r)throw new Ye(-301,!1);i.push(n[s],r)}}}(e,i,o)}return e.mergedAttrs=Sc(e.mergedAttrs,e.attrs),s}function Ey(t,n,e,i,s,r){const o=r.hostBindings;if(o){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~n.index;(function Dk(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,s,o)}}function Sy(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function Ay(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function kk(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;is(n)&&(e[""]=t)}}function My(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function ky(t,n,e,i,s){t.data[i]=s;const r=s.factory||(s.factory=Or(s.type)),o=new Pa(r,is(s),null);t.blueprint[i]=o,e[i]=o,Ey(t,n,0,i,Oo(t,e,s.hostVars,at),s)}function Lk(t,n,e){const i=Ci(n,t),s=xy(e),r=t[10],o=Xc(t,el(t,s,null,e.onPush?64:16,i,n,r,r.createRenderer(i,e),null,null));t[n.index]=o}function Ts(t,n,e,i,s,r){const o=Ci(t,n);!function Sf(t,n,e,i,s,r,o){if(null==r)fn(t)?t.removeAttribute(n,s,e):n.removeAttribute(s);else{const a=null==o?rt(r):o(r,i||"",s);fn(t)?t.setAttribute(n,s,a,e):e?n.setAttributeNS(e,s,a):n.setAttribute(s,a)}}(n[11],o,r,t.value,e,i,s)}function Ik(t,n,e,i,s,r){const o=r[n];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],h=o[l++],b=o[l++];null!==a?i.setInput(e,b,c,h):e[h]=b}}}function Ok(t,n){let e=null,i=0;for(;i<n.length;){const s=n[i];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===e&&(e=[]),e.push(s,t[s],n[i+1])),i+=2}else i+=2;else i+=4}return e}function Ly(t,n,e,i){return new Array(t,!0,!1,n,null,0,i,e,null,null)}function Nk(t,n){const e=Ti(n,t);if(vd(e)){const i=e[1];80&e[2]?Fo(i,e,i.template,e[8]):e[5]>0&&Af(e)}}function Af(t){for(let i=Ud(t);null!==i;i=Wd(i))for(let s=10;s<i.length;s++){const r=i[s];if(1024&r[2]){const o=r[1];Fo(o,r,o.template,r[8])}else r[5]>0&&Af(r)}const e=t[1].components;if(null!==e)for(let i=0;i<e.length;i++){const s=Ti(e[i],t);vd(s)&&s[5]>0&&Af(s)}}function Rk(t,n){const e=Ti(n,t),i=e[1];(function Bk(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),tl(i,e,e[8])}function Xc(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function Mf(t){for(;t;){t[2]|=64;const n=Ya(t);if(bS(t)&&!n)return t;t=n}return null}function Iy(t){!function kf(t){for(let n=0;n<t.components.length;n++){const e=t.components[n],i=jd(e),s=i[1];vk(s,i,s.template,e)}}(t[8])}function If(t,n,e){Cd(0),n(t,e)}const Hk=(()=>Promise.resolve(null))();function Oy(t){return t[7]||(t[7]=[])}function Fy(t){return t.cleanup||(t.cleanup=[])}function Ny(t,n){const e=t[9],i=e?e.get(qa,null):null;i&&i.handleError(n)}function Ry(t,n,e,i,s){for(let r=0;r<e.length;){const o=e[r++],a=e[r++],l=n[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,i,a):l[a]=s}}function Gs(t,n,e){const i=yc(n,t);!function D_(t,n,e){fn(t)?t.setValue(n,e):n.textContent=e}(t[11],i,e)}function Zc(t,n,e){let i=e?t.styles:null,s=e?t.classes:null,r=0;if(null!==n)for(let o=0;o<n.length;o++){const a=n[o];"number"==typeof a?r=a:1==r?s=qh(s,a):2==r&&(i=qh(i,a+": "+n[++o]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=s:t.classesWithoutHost=s}const Of=new et("INJECTOR",-1);class By{get(n,e=ja){if(e===ja){const i=new Error(`NullInjectorError: No provider for ${Ht(n)}!`);throw i.name="NullInjectorError",i}return e}}const Ff=new et("Set Injector scope."),nl={},Gk={};let Pf;function Vy(){return void 0===Pf&&(Pf=new By),Pf}function Hy(t,n=null,e=null,i){const s=zy(t,n,e,i);return s._resolveInjectorDefTypes(),s}function zy(t,n=null,e=null,i){return new $k(t,e,n||Vy(),i)}class $k{constructor(n,e,i,s=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&xs(e,a=>this.processProvider(a,n,e)),xs([n],a=>this.processInjectorType(a,[],r)),this.records.set(Of,Po(void 0,this));const o=this.records.get(Ff);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof n?null:Ht(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,e=ja,i=ct.Default){this.assertNotDestroyed();const s=c_(this),r=ar(void 0);try{if(!(i&ct.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function Jk(t){return"function"==typeof t||"object"==typeof t&&t instanceof et}(n)&&nd(n);a=l&&this.injectableDefInScope(l)?Po(Nf(n),nl):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&ct.Self?Vy():this.parent).get(n,e=i&ct.Optional&&e===ja?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Fc]=o[Fc]||[]).unshift(Ht(n)),s)throw o;return function DA(t,n,e,i){const s=t[Fc];throw n[l_]&&s.unshift(n[l_]),t.message=function EA(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=Ht(n);if(Array.isArray(n))s=n.map(Ht).join(" -> ");else if("object"==typeof n){let r=[];for(let o in n)if(n.hasOwnProperty(o)){let a=n[o];r.push(o+":"+("string"==typeof a?JSON.stringify(a):Ht(a)))}s=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${s}]: ${t.replace(xA,"\n ")}`}("\n"+t.message,s,e,i),t.ngTokenPath=s,t[Fc]=null,t}(o,n,"R3InjectorError",this.source)}throw o}finally{ar(r),c_(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,s)=>n.push(Ht(s))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ye(205,!1)}processInjectorType(n,e,i){if(!(n=mt(n)))return!1;let s=vv(n);const r=null==s&&n.ngModule||void 0,o=void 0===r?n:r,a=-1!==i.indexOf(o);if(void 0!==r&&(s=vv(r)),null==s)return!1;if(null!=s.imports&&!a){let h;i.push(o);try{xs(s.imports,b=>{this.processInjectorType(b,e,i)&&(void 0===h&&(h=[]),h.push(b))})}finally{}if(void 0!==h)for(let b=0;b<h.length;b++){const{ngModule:T,providers:M}=h[b];xs(M,I=>this.processProvider(I,T,M||Wt))}}this.injectorDefTypes.add(o);const l=Or(o)||(()=>new o);this.records.set(o,Po(l,nl));const c=s.providers;if(null!=c&&!a){const h=n;xs(c,b=>this.processProvider(b,h,c))}return void 0!==r&&void 0!==n.providers}processProvider(n,e,i){let s=No(n=mt(n))?n:mt(n&&n.provide);const r=function Wk(t,n,e){return Gy(t)?Po(void 0,t.useValue):Po(function jy(t,n,e){let i;if(No(t)){const s=mt(t);return Or(s)||Nf(s)}if(Gy(t))i=()=>mt(t.useValue);else if(function Xk(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...Bd(t.deps||[]));else if(function Yk(t){return!(!t||!t.useExisting)}(t))i=()=>Ee(mt(t.useExisting));else{const s=mt(t&&(t.useClass||t.provide));if(!function Kk(t){return!!t.deps}(t))return Or(s)||Nf(s);i=()=>new s(...Bd(t.deps))}return i}(t),nl)}(n);if(No(n)||!0!==n.multi)this.records.get(s);else{let o=this.records.get(s);o||(o=Po(void 0,nl,!0),o.factory=()=>Bd(o.multi),this.records.set(s,o)),s=n,o.multi.push(n)}this.records.set(s,r)}hydrate(n,e){return e.value===nl&&(e.value=Gk,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Qk(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=mt(n.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Nf(t){const n=nd(t),e=null!==n?n.factory:Or(t);if(null!==e)return e;if(t instanceof et)throw new Ye(204,!1);if(t instanceof Function)return function Uk(t){const n=t.length;if(n>0)throw za(n,"?"),new Ye(204,!1);const e=function lS(t){const n=t&&(t[dc]||t[_v]);if(n){const e=function cS(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Ye(204,!1)}function Po(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function Gy(t){return null!==t&&"object"==typeof t&&wA in t}function No(t){return"function"==typeof t}let oi=(()=>{class t{static create(e,i){var s;if(Array.isArray(e))return Hy({name:""},i,e,"");{const r=null!==(s=e.name)&&void 0!==s?s:"";return Hy({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=ja,t.NULL=new By,t.\u0275prov=Qe({token:t,providedIn:"any",factory:()=>Ee(Of)}),t.__NG_ELEMENT_ID__=-1,t})();function oL(t,n){Cc(jd(t)[1],In())}function qt(t){let n=function tx(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let s;if(is(t))s=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new Ye(903,"");s=n.\u0275dir}if(s){if(e){i.push(s);const o=t;o.inputs=Vf(t.inputs),o.declaredInputs=Vf(t.declaredInputs),o.outputs=Vf(t.outputs);const a=s.hostBindings;a&&uL(t,a);const l=s.viewQuery,c=s.contentQueries;if(l&&lL(t,l),c&&cL(t,c),Jh(t.inputs,s.inputs),Jh(t.declaredInputs,s.declaredInputs),Jh(t.outputs,s.outputs),is(s)&&s.data.animation){const h=t.data;h.animation=(h.animation||[]).concat(s.data.animation)}}const r=s.features;if(r)for(let o=0;o<r.length;o++){const a=r[o];a&&a.ngInherit&&a(t),a===qt&&(e=!1)}}n=Object.getPrototypeOf(n)}!function aL(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const s=t[i];s.hostVars=n+=s.hostVars,s.hostAttrs=Sc(s.hostAttrs,e=Sc(e,s.hostAttrs))}}(i)}function Vf(t){return t===fo?{}:t===Wt?[]:t}function lL(t,n){const e=t.viewQuery;t.viewQuery=e?(i,s)=>{n(i,s),e(i,s)}:n}function cL(t,n){const e=t.contentQueries;t.contentQueries=e?(i,s,r)=>{n(i,s,r),e(i,s,r)}:n}function uL(t,n){const e=t.hostBindings;t.hostBindings=e?(i,s)=>{n(i,s),e(i,s)}:n}let Kc=null;function Ro(){if(!Kc){const t=jt.Symbol;if(t&&t.iterator)Kc=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Kc=i)}}}return Kc}function il(t){return!!Hf(t)&&(Array.isArray(t)||!(t instanceof Map)&&Ro()in t)}function Hf(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Jn(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function me(t,n,e,i){const s=Se();return Jn(s,yo(),n)&&(Lt(),Ts(rn(),s,t,n,e,i)),me}function Vo(t,n,e,i){return Jn(t,yo(),e)?n+rt(e)+i:at}function ue(t,n,e,i,s,r,o,a){const l=Se(),c=Lt(),h=t+20,b=c.firstCreatePass?function vL(t,n,e,i,s,r,o,a,l){const c=n.consts,h=Io(n,t,4,o||null,ur(c,a));Ef(n,e,h,ur(c,l)),Cc(n,h);const b=h.tViews=Yc(2,h,i,s,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,h),b.queries=n.queries.embeddedTView(h)),h}(h,c,l,n,e,i,s,r,o):c.data[h];ys(b,!1);const T=l[11].createComment("");Vc(c,l,T,b),Qn(T,l),Xc(l,l[h]=Ly(T,l,T,b)),_c(b)&&Tf(c,l,b),null!=o&&Df(l,b,a)}function Le(t,n=ct.Default){const e=Se();return null===e?Ee(t,n):Jv(In(),e,mt(t),n)}function j(t,n,e){const i=Se();return Jn(i,yo(),n)&&function Ai(t,n,e,i,s,r,o,a){const l=Ci(n,e);let h,c=n.inputs;!a&&null!=c&&(h=c[i])?(Ry(t,e,h,i,s),vc(n)&&function wk(t,n){const e=Ti(n,t);16&e[2]||(e[2]|=64)}(e,n.index)):3&n.type&&(i=function bk(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),s=null!=o?o(s,n.value||"",i):s,fn(r)?r.setProperty(l,i,s):Ed(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}(Lt(),rn(),i,t,n,i[11],e,!1),j}function Uf(t,n,e,i,s){const o=s?"class":"style";Ry(t,e,n.inputs[o],o,i)}function q(t,n,e,i){const s=Se(),r=Lt(),o=20+t,a=s[11],l=s[o]=Xd(a,n,function KS(){return ot.lFrame.currentNamespace}()),c=r.firstCreatePass?function BL(t,n,e,i,s,r,o){const a=n.consts,c=Io(n,t,2,s,ur(a,r));return Ef(n,e,c,ur(a,o)),null!==c.attrs&&Zc(c,c.attrs,!1),null!==c.mergedAttrs&&Zc(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(o,r,s,0,n,e,i):r.data[o];ys(c,!0);const h=c.mergedAttrs;null!==h&&Ec(a,l,h);const b=c.classes;null!==b&&tf(a,l,b);const T=c.styles;return null!==T&&B_(a,l,T),64!=(64&c.flags)&&Vc(r,s,l,c),0===function NS(){return ot.lFrame.elementDepthCount}()&&Qn(l,s),function RS(){ot.lFrame.elementDepthCount++}(),_c(c)&&(Tf(r,s,c),yy(r,c,s)),null!==i&&Df(s,c),q}function re(){let t=In();yd()?xd():(t=t.parent,ys(t,!1));const n=t;!function BS(){ot.lFrame.elementDepthCount--}();const e=Lt();return e.firstCreatePass&&(Cc(e,t),cd(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function tA(t){return 0!=(16&t.flags)}(n)&&Uf(e,n,Se(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function nA(t){return 0!=(32&t.flags)}(n)&&Uf(e,n,Se(),n.stylesWithoutHost,!1),re}function Ie(t,n,e,i){return q(t,n,e,i),re(),Ie}function Wf(t,n,e){const i=Se(),s=Lt(),r=t+20,o=s.firstCreatePass?function VL(t,n,e,i,s){const r=n.consts,o=ur(r,i),a=Io(n,t,8,"ng-container",o);return null!==o&&Zc(a,o,!0),Ef(n,e,a,ur(r,s)),null!==n.queries&&n.queries.elementStart(n,a),a}(r,s,i,n,e):s.data[r];ys(o,!0);const a=i[r]=i[11].createComment("");return Vc(s,i,a,o),Qn(a,i),_c(o)&&(Tf(s,i,o),yy(s,o,i)),null!=e&&Df(i,o),Wf}function Yf(){let t=In();const n=Lt();return yd()?xd():(t=t.parent,ys(t,!1)),n.firstCreatePass&&(Cc(n,t),cd(t)&&n.queries.elementEnd(t)),Yf}function gr(t,n,e){return Wf(t,n,e),Yf(),gr}function Be(){return Se()}function Xf(t){return!!t&&"function"==typeof t.then}function Cx(t){return!!t&&"function"==typeof t.subscribe}const HL=Cx;function ye(t,n,e,i){const s=Se(),r=Lt(),o=In();return function Dx(t,n,e,i,s,r,o,a){const l=_c(i),h=t.firstCreatePass&&Fy(t),b=n[8],T=Oy(n);let M=!0;if(3&i.type||a){const P=Ci(i,n),K=a?a(P):P,Q=T.length,ne=a?ge=>a(wn(ge[i.index])):i.index;if(fn(e)){let ge=null;if(!a&&l&&(ge=function zL(t,n,e,i){const s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const o=s[r];if(o===e&&s[r+1]===i){const a=n[7],l=s[r+2];return a.length>l?a[l]:null}"string"==typeof o&&(r+=2)}return null}(t,n,s,i.index)),null!==ge)(ge.__ngLastListenerFn__||ge).__ngNextListenerFn__=r,ge.__ngLastListenerFn__=r,M=!1;else{r=Zf(i,n,b,r,!1);const Ce=e.listen(K,s,r);T.push(r,Ce),h&&h.push(s,ne,Q,Q+1)}}else r=Zf(i,n,b,r,!0),K.addEventListener(s,r,o),T.push(r),h&&h.push(s,ne,Q,o)}else r=Zf(i,n,b,r,!1);const I=i.outputs;let B;if(M&&null!==I&&(B=I[s])){const P=B.length;if(P)for(let K=0;K<P;K+=2){const we=n[B[K]][B[K+1]].subscribe(r),Oe=T.length;T.push(r,we),h&&h.push(s,i.index,Oe,-(Oe+1))}}}(r,s,s[11],o,t,n,!!e,i),ye}function Ex(t,n,e,i){try{return!1!==e(i)}catch(s){return Ny(t,s),!1}}function Zf(t,n,e,i,s){return function r(o){if(o===Function)return i;const a=2&t.flags?Ti(t.index,n):n;0==(32&n[2])&&Mf(a);let l=Ex(n,0,i,o),c=r.__ngNextListenerFn__;for(;c;)l=Ex(n,0,c,o)&&l,c=c.__ngNextListenerFn__;return s&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function W(t=1){return function WS(t){return(ot.lFrame.contextLView=function YS(t,n){for(;t>0;)n=n[15],t--;return n}(t,ot.lFrame.contextLView))[8]}(t)}function jL(t,n){let e=null;const i=function QM(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let s=0;s<n.length;s++){const r=n[s];if("*"!==r){if(null===i?sy(t,r,!0):ek(i,r))return s}else e=s}return e}function Nx(t,n,e,i,s){const r=t[e+1],o=null===n;let a=i?rs(r):js(r),l=!1;for(;0!==a&&(!1===l||o);){const h=t[a+1];UL(t[a],n)&&(l=!0,t[a+1]=i?pf(h):df(h)),a=i?rs(h):js(h)}l&&(t[e+1]=i?df(r):pf(r))}function UL(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&So(t,n)>=0}const Fn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Rx(t){return t.substring(Fn.key,Fn.keyEnd)}function Bx(t,n){const e=Fn.textEnd;return e===n?-1:(n=Fn.keyEnd=function ZL(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,Fn.key=n,e),Xo(t,n,e))}function Xo(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function vt(t,n,e){return as(t,n,e,!1),vt}function an(t,n){return as(t,n,null,!0),an}function Ss(t,n){for(let e=function YL(t){return function Hx(t){Fn.key=0,Fn.keyEnd=0,Fn.value=0,Fn.valueEnd=0,Fn.textEnd=t.length}(t),Bx(t,Xo(t,0,Fn.textEnd))}(n);e>=0;e=Bx(n,e))Di(t,Rx(n),!0)}function as(t,n,e,i){const s=Se(),r=Lt(),o=zs(2);r.firstUpdatePass&&Ux(r,t,o,i),n!==at&&Jn(s,o,n)&&Yx(r,r.data[si()],s,s[11],t,s[o+1]=function rI(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Ht(Si(t)))),t}(n,e),i,o)}function ls(t,n,e,i){const s=Lt(),r=zs(2);s.firstUpdatePass&&Ux(s,null,r,i);const o=Se();if(e!==at&&Jn(o,r,e)){const a=s.data[si()];if(Zx(a,i)&&!$x(s,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=qh(l,e||"")),Uf(s,a,o,e,i)}else!function sI(t,n,e,i,s,r,o,a){s===at&&(s=Wt);let l=0,c=0,h=0<s.length?s[0]:null,b=0<r.length?r[0]:null;for(;null!==h||null!==b;){const T=l<s.length?s[l+1]:void 0,M=c<r.length?r[c+1]:void 0;let B,I=null;h===b?(l+=2,c+=2,T!==M&&(I=b,B=M)):null===b||null!==h&&h<b?(l+=2,I=h):(c+=2,I=b,B=M),null!==I&&Yx(t,n,e,i,I,B,o,a),h=l<s.length?s[l]:null,b=c<r.length?r[c]:null}}(s,a,o,o[11],o[r+1],o[r+1]=function iI(t,n,e){if(null==e||""===e)return Wt;const i=[],s=Si(e);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(i,s[r],!0);else if("object"==typeof s)for(const r in s)s.hasOwnProperty(r)&&t(i,r,s[r]);else"string"==typeof s&&n(i,s);return i}(t,n,e),i,r)}}function $x(t,n){return n>=t.expandoStartIndex}function Ux(t,n,e,i){const s=t.data;if(null===s[e+1]){const r=s[si()],o=$x(t,e);Zx(r,i)&&null===n&&!o&&(n=!1),n=function qL(t,n,e,i){const s=function wd(t){const n=ot.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let r=i?n.residualClasses:n.residualStyles;if(null===s)0===(i?n.classBindings:n.styleBindings)&&(e=rl(e=Qf(null,t,n,e,i),n.attrs,i),r=null);else{const o=n.directiveStylingLast;if(-1===o||t[o]!==s)if(e=Qf(s,t,n,e,i),null===r){let l=function eI(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==js(i))return t[rs(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=Qf(null,t,n,l[1],i),l=rl(l,n.attrs,i),function tI(t,n,e,i){t[rs(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function nI(t,n,e){let i;const s=n.directiveEnd;for(let r=1+n.directiveStylingLast;r<s;r++)i=rl(i,t[r].hostAttrs,e);return rl(i,n.attrs,e)}(t,n,i)}return void 0!==r&&(i?n.residualClasses=r:n.residualStyles=r),e}(s,r,n,i),function GL(t,n,e,i,s,r){let o=r?n.classBindings:n.styleBindings,a=rs(o),l=js(o);t[i]=e;let h,c=!1;if(Array.isArray(e)){const b=e;h=b[1],(null===h||So(b,h)>0)&&(c=!0)}else h=e;if(s)if(0!==l){const T=rs(t[a+1]);t[i+1]=$c(T,a),0!==T&&(t[T+1]=ff(t[T+1],i)),t[a+1]=function sk(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=$c(a,0),0!==a&&(t[a+1]=ff(t[a+1],i)),a=i;else t[i+1]=$c(l,0),0===a?a=i:t[l+1]=ff(t[l+1],i),l=i;c&&(t[i+1]=df(t[i+1])),Nx(t,h,i,!0),Nx(t,h,i,!1),function $L(t,n,e,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&So(r,n)>=0&&(e[i+1]=pf(e[i+1]))}(n,h,t,i,r),o=$c(a,l),r?n.classBindings=o:n.styleBindings=o}(s,r,n,e,o,i)}}function Qf(t,n,e,i,s){let r=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(r=n[a],i=rl(i,r.hostAttrs,s),r!==t);)a++;return null!==t&&(e.directiveStylingLast=a),i}function rl(t,n,e){const i=e?1:2;let s=-1;if(null!==n)for(let r=0;r<n.length;r++){const o=n[r];"number"==typeof o?s=o:s===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Di(t,o,!!e||n[++r]))}return void 0===t?null:t}function Yx(t,n,e,i,s,r,o,a){if(!(3&n.type))return;const l=t.data,c=l[a+1];tu(function cy(t){return 1==(1&t)}(c)?Xx(l,n,e,s,js(c),o):void 0)||(tu(r)||function ly(t){return 2==(2&t)}(c)&&(r=Xx(l,null,e,s,a,o)),function rM(t,n,e,i,s){const r=fn(t);if(n)s?r?t.addClass(e,i):e.classList.add(i):r?t.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:Ei.DashCase;if(null==s)r?t.removeStyle(e,i,o):e.style.removeProperty(i);else{const a="string"==typeof s&&s.endsWith("!important");a&&(s=s.slice(0,-10),o|=Ei.Important),r?t.setStyle(e,i,s,o):e.style.setProperty(i,s,a?"important":"")}}}(i,o,yc(si(),e),s,r))}function Xx(t,n,e,i,s,r){const o=null===n;let a;for(;s>0;){const l=t[s],c=Array.isArray(l),h=c?l[1]:l,b=null===h;let T=e[s+1];T===at&&(T=b?Wt:void 0);let M=b?Fd(T,i):h===i?T:void 0;if(c&&!tu(M)&&(M=Fd(l,i)),tu(M)&&(a=M,o))return a;const I=t[s+1];s=o?rs(I):js(I)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(a=Fd(l,i))}return a}function tu(t){return void 0!==t}function Zx(t,n){return 0!=(t.flags&(n?16:32))}function St(t,n=""){const e=Se(),i=Lt(),s=t+20,r=i.firstCreatePass?Io(i,s,1,n,null):i.data[s],o=e[s]=function Yd(t,n){return fn(t)?t.createText(n):t.createTextNode(n)}(e[11],n);Vc(i,e,o,r),ys(r,!1)}function mi(t){return nn("",t,""),mi}function nn(t,n,e){const i=Se(),s=Vo(i,t,n,e);return s!==at&&Gs(i,si(),s),nn}const nu="en-US";let vb=nu;class Gb{}class EO{resolveComponentFactory(n){throw function DO(t){const n=Error(`No component factory found for ${Ht(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let mr=(()=>{class t{}return t.NULL=new EO,t})();function SO(){return Qo(In(),Se())}function Qo(t,n){return new Gt(Ci(t,n))}let Gt=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=SO,t})();function AO(t){return t instanceof Gt?t.nativeElement:t}class ul{}let au=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function kO(){const t=Se(),e=Ti(In().index,t);return function MO(t){return t[11]}(_s(e)?e:t)}(),t})(),LO=(()=>{class t{}return t.\u0275prov=Qe({token:t,providedIn:"root",factory:()=>null}),t})();class Jo{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const IO=new Jo("13.4.0"),rp={};function lu(t,n,e,i,s=!1){for(;null!==e;){const r=n[e.index];if(null!==r&&i.push(wn(r)),ns(r))for(let a=10;a<r.length;a++){const l=r[a],c=l[1].firstChild;null!==c&&lu(l[1],l,c,i)}const o=e.type;if(8&o)lu(t,n,e.child,i);else if(32&o){const a=$d(e,n);let l;for(;l=a();)i.push(l)}else if(16&o){const a=N_(n,e);if(Array.isArray(a))i.push(...a);else{const l=Ya(n[16]);lu(l[1],l,a,i,!0)}}e=s?e.projectionNext:e.next}return i}class hl{constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,e=n[1];return lu(e,n,e.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(ns(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(Zd(n,i),Ic(e,i))}this._attachedToViewContainer=!1}S_(this._lView[1],this._lView)}onDestroy(n){Cy(this._lView[1],this._lView,null,n)}markForCheck(){Mf(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Lf(t,n,e){const i=n[10];i.begin&&i.begin();try{Fo(t,n,t.template,e)}catch(s){throw Ny(n,s),s}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ye(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ZA(t,n){Xa(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Ye(902,"");this._appRef=n}}class OO extends hl{constructor(n){super(n),this._view=n}detectChanges(){Iy(this._view)}checkNoChanges(){}get context(){return null}}class Ub extends mr{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Un(n);return new op(e,this.ngModule)}}function Wb(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class op extends Gb{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function nk(t){return t.map(tk).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Wb(this.componentDef.inputs)}get outputs(){return Wb(this.componentDef.outputs)}create(n,e,i,s){const r=(s=s||this.ngModule)?function PO(t,n){return{get:(e,i,s)=>{const r=t.get(e,rp,s);return r!==rp||i===rp?r:n.get(e,i,s)}}}(n,s.injector):n,o=r.get(ul,kv),a=r.get(LO,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=i?function wy(t,n,e){if(fn(t))return t.selectRootElement(n,e===es.ShadowDom);let i="string"==typeof n?t.querySelector(n):n;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Xd(o.createRenderer(null,this.componentDef),c,function FO(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(c)),b=this.componentDef.onPush?576:528,T=function ex(t,n){return{components:[],scheduler:t||UM,clean:Hk,playerHandler:n||null,flags:0}}(),M=Yc(0,null,null,1,0,null,null,null,null,null),I=el(null,M,T,b,null,null,o,l,a,r);let B,P;bc(I);try{const K=function Jy(t,n,e,i,s,r){const o=e[1];e[20]=t;const l=Io(o,20,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(Zc(l,c,!0),null!==t&&(Ec(s,t,c),null!==l.classes&&tf(s,t,l.classes),null!==l.styles&&B_(s,t,l.styles)));const h=i.createRenderer(t,n),b=el(e,xy(n),null,n.onPush?64:16,e[20],l,i,h,r||null,null);return o.firstCreatePass&&(kc(Ra(l,e),o,n.type),Ay(o,l),My(l,e.length,1)),Xc(e,b),e[20]=b}(h,this.componentDef,I,o,l);if(h)if(i)Ec(l,h,["ng-version",IO.full]);else{const{attrs:Q,classes:ne}=function ik(t){const n=[],e=[];let i=1,s=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===s?""!==r&&n.push(r,t[++i]):8===s&&e.push(r);else{if(!ss(s))break;s=r}i++}return{attrs:n,classes:e}}(this.componentDef.selectors[0]);Q&&Ec(l,h,Q),ne&&ne.length>0&&tf(l,h,ne.join(" "))}if(P=md(M,20),void 0!==e){const Q=P.projection=[];for(let ne=0;ne<this.ngContentSelectors.length;ne++){const ge=e[ne];Q.push(null!=ge?Array.from(ge):null)}}B=function qy(t,n,e,i,s){const r=e[1],o=function Tk(t,n,e){const i=In();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),ky(t,i,n,Oo(t,n,1,null),e));const s=Ba(n,t,i.directiveStart,i);Qn(s,n);const r=Ci(i,n);return r&&Qn(r,n),s}(r,e,n);if(i.components.push(o),t[8]=o,s&&s.forEach(l=>l(o,n)),n.contentQueries){const l=In();n.contentQueries(1,o,l.directiveStart)}const a=In();return!r.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(hr(a.index),Ey(e[1],a,0,a.directiveStart,a.directiveEnd,n),Sy(n,o)),o}(K,this.componentDef,I,T,[oL]),tl(M,I,null)}finally{wc()}return new RO(this.componentType,B,Qo(P,I),I,P)}}class RO extends class TO{}{constructor(n,e,i,s,r){super(),this.location=i,this._rootLView=s,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new OO(s),this.componentType=n}get injector(){return new wo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class qo{}const ea=new Map;class Zb extends qo{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ub(this);const i=Bi(n);this._bootstrapComponents=Cs(i.bootstrap),this._r3Injector=zy(n,e,[{provide:qo,useValue:this},{provide:mr,useValue:this.componentFactoryResolver}],Ht(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=oi.THROW_IF_NOT_FOUND,i=ct.Default){return n===oi||n===qo||n===Of?this:this._r3Injector.get(n,e,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class ap extends class VO{}{constructor(n){super(),this.moduleType=n,null!==Bi(n)&&function HO(t){const n=new Set;!function e(i){const s=Bi(i,!0),r=s.id;null!==r&&(function Yb(t,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${t} - ${Ht(n)} vs ${Ht(n.name)}`)}(r,ea.get(r),i),ea.set(r,i));const o=Cs(s.imports);for(const a of o)n.has(a)||(n.add(a),e(a))}(t)}(n)}create(n){return new Zb(this.moduleType,n)}}function $s(t,n,e,i){return Qb(Se(),ii(),t,n,e,i)}function Qb(t,n,e,i,s,r){const o=n+e;return Jn(t,o,s)?function Ds(t,n,e){return t[n]=e}(t,o+1,r?i.call(r,s):i(s)):function dl(t,n){const e=t[n];return e===at?void 0:e}(t,o+1)}function cp(t){return n=>{setTimeout(t,void 0,n)}}const _e=class JO extends ${constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var s,r,o;let a=n,l=e||(()=>null),c=i;if(n&&"object"==typeof n){const b=n;a=null===(s=b.next)||void 0===s?void 0:s.bind(b),l=null===(r=b.error)||void 0===r?void 0:r.bind(b),c=null===(o=b.complete)||void 0===o?void 0:o.bind(b)}this.__isAsync&&(l=cp(l),a&&(a=cp(a)),c&&(c=cp(c)));const h=super.subscribe({next:a,error:l,complete:c});return n instanceof m&&n.add(h),h}};function qO(){return this._results[Ro()]()}class up{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Ro(),i=up.prototype;i[e]||(i[e]=qO)}get changes(){return this._changes||(this._changes=new _e)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const s=zi(n);(this._changesDetected=!function hA(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let s=t[i],r=n[i];if(e&&(s=e(s),r=e(r)),r!==s)return!1}return!0}(i._results,s,e))&&(i._results=s,i.length=s.length,i.last=s[this.length-1],i.first=s[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Us=(()=>{class t{}return t.__NG_ELEMENT_ID__=nF,t})();const eF=Us,tF=class extends eF{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n){const e=this._declarationTContainer.tViews,i=el(this._declarationLView,e,n,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(i[19]=r.createEmbeddedView(e)),tl(e,i,n),new hl(i)}};function nF(){return cu(In(),Se())}function cu(t,n){return 4&t.type?new tF(n,t,Qo(t,n)):null}let Gi=(()=>{class t{}return t.__NG_ELEMENT_ID__=iF,t})();function iF(){return a0(In(),Se())}const sF=Gi,r0=class extends sF{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Qo(this._hostTNode,this._hostLView)}get injector(){return new wo(this._hostTNode,this._hostLView)}get parentInjector(){const n=Mc(this._hostTNode,this._hostLView);if(Yv(n)){const e=bo(n,this._hostLView),i=xo(n);return new wo(e[1].data[i+8],e)}return new wo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=o0(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){const s=n.createEmbeddedView(e||{});return this.insert(s,i),s}createComponent(n,e,i,s,r){const o=n&&!function Ha(t){return"function"==typeof t}(n);let a;if(o)a=e;else{const b=e||{};a=b.index,i=b.injector,s=b.projectableNodes,r=b.ngModuleRef}const l=o?n:new op(Un(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const T=(o?c:this.parentInjector).get(qo,null);T&&(r=T)}const h=l.create(c,s,void 0,r);return this.insert(h.hostView,a),h}insert(n,e){const i=n._lView,s=i[1];if(function PS(t){return ns(t[3])}(i)){const h=this.indexOf(n);if(-1!==h)this.detach(h);else{const b=i[3],T=new r0(b,b[6],b[3]);T.detach(T.indexOf(n))}}const r=this._adjustIndex(e),o=this._lContainer;!function QA(t,n,e,i){const s=10+i,r=e.length;i>0&&(e[s-1][4]=n),i<r-10?(n[4]=e[s],i_(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const o=n[17];null!==o&&e!==o&&function JA(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(o,n);const a=n[19];null!==a&&a.insertView(t),n[2]|=128}(s,i,o,r);const a=Jd(r,o),l=i[11],c=Bc(l,o[7]);return null!==c&&function XA(t,n,e,i,s,r){i[0]=s,i[6]=n,Xa(t,i,e,1,s,r)}(s,o[6],l,i,c,a),n.attachToViewContainerRef(),i_(hp(o),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=o0(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Zd(this._lContainer,e);i&&(Ic(hp(this._lContainer),e),S_(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=Zd(this._lContainer,e);return i&&null!=Ic(hp(this._lContainer),e)?new hl(i):null}_adjustIndex(n,e=0){return null==n?this.length+e:n}};function o0(t){return t[8]}function hp(t){return t[8]||(t[8]=[])}function a0(t,n){let e;const i=n[t.index];if(ns(i))e=i;else{let s;if(8&t.type)s=wn(i);else{const r=n[11];s=r.createComment("");const o=Ci(t,n);Pr(r,Bc(r,o),s,function nM(t,n){return fn(t)?t.nextSibling(n):n.nextSibling}(r,o),!1)}n[t.index]=e=Ly(i,n,s,t),Xc(n,e)}return new r0(e,t,n)}class dp{constructor(n){this.queryList=n,this.matches=null}clone(){return new dp(this.queryList)}setDirty(){this.queryList.setDirty()}}class fp{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,s=[];for(let r=0;r<i;r++){const o=e.getByIndex(r);s.push(this.queries[o.indexInDeclarationView].clone())}return new fp(s)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==d0(n,e).matches&&this.queries[e].setDirty()}}class l0{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class pp{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const s=null!==e?e.length:0,r=this.getByIndex(i).embeddedTView(n,s);r&&(r.indexInDeclarationView=i,null!==e?e.push(r):e=[r])}return null!==e?new pp(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class gp{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new gp(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let s=0;s<i.length;s++){const r=i[s];this.matchTNodeWithReadOption(n,e,aF(e,r)),this.matchTNodeWithReadOption(n,e,Lc(e,n,r,!1,!1))}else i===Us?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,Lc(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const s=this.metadata.read;if(null!==s)if(s===Gt||s===Gi||s===Us&&4&e.type)this.addMatch(e.index,-2);else{const r=Lc(e,n,s,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function aF(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function cF(t,n,e,i){return-1===e?function lF(t,n){return 11&t.type?Qo(t,n):4&t.type?cu(t,n):null}(n,t):-2===e?function uF(t,n,e){return e===Gt?Qo(n,t):e===Us?cu(n,t):e===Gi?a0(n,t):void 0}(t,n,i):Ba(t,t[1],e,n)}function c0(t,n,e,i){const s=n[19].queries[i];if(null===s.matches){const r=t.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:cF(n,r[c],o[l+1],e.metadata.read))}s.matches=a}return s.matches}function mp(t,n,e,i){const s=t.queries.getByIndex(e),r=s.matches;if(null!==r){const o=c0(t,n,s,e);for(let a=0;a<r.length;a+=2){const l=r[a];if(l>0)i.push(o[a/2]);else{const c=r[a+1],h=n[-l];for(let b=10;b<h.length;b++){const T=h[b];T[17]===T[3]&&mp(T[1],T,c,i)}if(null!==h[9]){const b=h[9];for(let T=0;T<b.length;T++){const M=b[T];mp(M[1],M,c,i)}}}}}return i}function ft(t){const n=Se(),e=Lt(),i=Bv();Cd(i+1);const s=d0(e,i);if(t.dirty&&Lv(n)===(2==(2&s.metadata.flags))){if(null===s.matches)t.reset([]);else{const r=s.crossesNgTemplate?mp(e,n,i,[]):c0(e,n,s,i);t.reset(r,AO),t.notifyOnChanges()}return!0}return!1}function Mi(t,n,e){const i=Lt();i.firstCreatePass&&(h0(i,new l0(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),u0(i,Se(),n)}function Rt(t,n,e,i){const s=Lt();if(s.firstCreatePass){const r=In();h0(s,new l0(n,e,i),r.index),function dF(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(s,t),2==(2&e)&&(s.staticContentQueries=!0)}u0(s,Se(),e)}function pt(){return function hF(t,n){return t[19].queries[n].queryList}(Se(),Bv())}function u0(t,n,e){const i=new up(4==(4&e));Cy(t,n,i,i.destroy),null===n[19]&&(n[19]=new fp),n[19].queries.push(new dp(i))}function h0(t,n,e){null===t.queries&&(t.queries=new pp),t.queries.track(new gp(n,e))}function d0(t,n){return t.queries.getByIndex(n)}function pl(t,n){return cu(t,n)}function du(...t){}const M0=new et("Application Initializer");let wp=(()=>{class t{constructor(e){this.appInits=e,this.resolve=du,this.reject=du,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,s)=>{this.resolve=i,this.reject=s})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s<this.appInits.length;s++){const r=this.appInits[s]();if(Xf(r))e.push(r);else if(HL(r)){const o=new Promise((a,l)=>{r.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(s=>{this.reject(s)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Ee(M0,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const ml=new et("AppId",{providedIn:"root",factory:function k0(){return`${Cp()}${Cp()}${Cp()}`}});function Cp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const L0=new et("Platform Initializer"),Tp=new et("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),MF=new et("appBootstrapListener"),Ws=new et("LocaleId",{providedIn:"root",factory:()=>Rd(Ws,ct.Optional|ct.SkipSelf)||function kF(){return"undefined"!=typeof $localize&&$localize.locale||nu}()}),FF=(()=>Promise.resolve(0))();function Dp(t){"undefined"==typeof Zone?FF.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Bt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new _e(!1),this.onMicrotaskEmpty=new _e(!1),this.onStable=new _e(!1),this.onError=new _e(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&e,s.shouldCoalesceRunChangeDetection=i,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function PF(){let t=jt.requestAnimationFrame,n=jt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function BF(t){const n=()=>{!function RF(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(jt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Sp(t),t.isCheckStableRunning=!0,Ep(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Sp(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,s,r,o,a)=>{try{return I0(t),e.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),O0(t)}},onInvoke:(e,i,s,r,o,a,l)=>{try{return I0(t),e.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),O0(t)}},onHasTask:(e,i,s,r)=>{e.hasTask(s,r),i===s&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Sp(t),Ep(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,s,r)=>(e.handleError(s,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(s)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Bt.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Bt.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,s){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+s,n,NF,du,du);try{return r.runTask(o,e,i)}finally{r.cancelTask(o)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const NF={};function Ep(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Sp(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function I0(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function O0(t){t._nesting--,Ep(t)}class VF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _e,this.onMicrotaskEmpty=new _e,this.onStable=new _e,this.onError=new _e}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,s){return n.apply(e,i)}}let Ap=(()=>{class t{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Bt.assertNotInAngularZone(),Dp(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Dp(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,s){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:s})}whenStable(e,i,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,s){return[]}}return t.\u0275fac=function(e){return new(e||t)(Ee(Bt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),HF=(()=>{class t{constructor(){this._applications=new Map,Mp.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Mp.findTestabilityInTree(this,e,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class zF{addToWindow(n){}findTestabilityInTree(n,e,i){return null}}let Mp=new zF,Hr=null;const F0=new et("AllowMultipleToken"),P0=new et("PlatformOnDestroy");function N0(t,n,e=[]){const i=`Platform: ${n}`,s=new et(i);return(r=[])=>{let o=kp();if(!o||o.injector.get(F0,!1)){const a=[...e,...r,{provide:s,useValue:!0}];t?t(a):function UF(t){if(Hr&&!Hr.get(F0,!1))throw new Ye(400,"");Hr=t;const n=t.get(R0),e=t.get(L0,null);e&&e.forEach(i=>i())}(function YF(t=[],n){return oi.create({name:n,providers:[{provide:Ff,useValue:"platform"},{provide:P0,useValue:()=>Hr=null},...t]})}(a,i))}return function WF(t){const n=kp();if(!n)throw new Ye(401,"");return n}()}}function kp(){var t;return null!==(t=null==Hr?void 0:Hr.get(R0))&&void 0!==t?t:null}let R0=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function XF(t,n){let e;return e="noop"===t?new VF:("zone.js"===t?void 0:t)||new Bt({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:Bt,useValue:a}];return a.run(()=>{const c=oi.create({providers:l,parent:this.injector,name:e.moduleType.name}),h=e.create(c),b=h.injector.get(qa,null);if(!b)throw new Ye(402,"");return a.runOutsideAngular(()=>{const T=a.onError.subscribe({next:M=>{b.handleError(M)}});h.onDestroy(()=>{Lp(this._modules,h),T.unsubscribe()})}),function ZF(t,n,e){try{const i=e();return Xf(i)?i.catch(s=>{throw n.runOutsideAngular(()=>t.handleError(s)),s}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(b,a,()=>{const T=h.injector.get(wp);return T.runInitializers(),T.donePromise.then(()=>(function MI(t){bi(t,"Expected localeId to be defined"),"string"==typeof t&&(vb=t.toLowerCase().replace(/_/g,"-"))}(h.injector.get(Ws,nu)||nu),this._moduleDoBootstrap(h),h))})})}bootstrapModule(e,i=[]){const s=B0({},i);return function GF(t,n,e){const i=new ap(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,s))}_moduleDoBootstrap(e){const i=e.injector.get(vl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(s=>i.bootstrap(s));else{if(!e.instance.ngDoBootstrap)throw new Ye(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ye(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(P0,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Ee(oi))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function B0(t,n){return Array.isArray(n)?n.reduce(B0,t):Object.assign(Object.assign({},t),n)}let vl=(()=>{class t{constructor(e,i,s,r){this._zone=e,this._injector=i,this._exceptionHandler=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new te(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new te(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Bt.assertNotInAngularZone(),Dp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const h=this._zone.onUnstable.subscribe(()=>{Bt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),h.unsubscribe()}});this.isStable=Aa(o,a.pipe(function nS(){return t=>Ma()(function qE(t,n){return function(i){let s;if(s="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new eS(s,n));const r=Object.create(i,Qh);return r.source=i,r.subjectFactory=s,r}}(tS)(t))}()))}bootstrap(e,i){if(!this._initStatus.done)throw new Ye(405,"");let s;s=e instanceof Gb?e:this._injector.get(mr).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const r=function $F(t){return t.isBoundToModule}(s)?void 0:this._injector.get(qo),a=s.create(oi.NULL,[],i||s.selector,r),l=a.location.nativeElement,c=a.injector.get(Ap,null),h=c&&a.injector.get(HF);return c&&h&&h.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Lp(this.components,a),h&&h.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Ye(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Lp(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(MF,[]).concat(this._bootstrapListeners).forEach(s=>s(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Ee(Bt),Ee(oi),Ee(qa),Ee(wp))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Lp(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let H0=!0,As=(()=>{class t{}return t.__NG_ELEMENT_ID__=JF,t})();function JF(t){return function qF(t,n,e){if(vc(t)&&!e){const i=Ti(t.index,n);return new hl(i,i)}return 47&t.type?new hl(n[16],n):null}(In(),Se(),16==(16&t))}class U0{constructor(){}supports(n){return il(n)}create(n){return new rP(n)}}const sP=(t,n)=>n;class rP{constructor(n){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=n||sP}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,s=0,r=null;for(;e||i;){const o=!i||e&&e.currentIndex<Y0(i,s,r)?e:i,a=Y0(o,s,r),l=o.currentIndex;if(o===i)s--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)s++;else{r||(r=[]);const c=a-s,h=l-s;if(c!=h){for(let T=0;T<c;T++){const M=T<r.length?r[T]:r[T]=0,I=M+T;h<=I&&I<c&&(r[T]=M+1)}r[o.previousIndex]=h-c}}a!==l&&n(o,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!il(n))throw new Ye(900,"");return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let s,r,o,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)r=n[a],o=this._trackByFn(a,r),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,r,o,a)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,o,a),i=!0),e=e._next}else s=0,function mL(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[Ro()]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,a=>{o=this._trackByFn(s,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,s)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,s),i=!0),e=e._next,s++}),this.length=s;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,s){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,s)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,s))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,s)):n=this._addAfter(new oP(e,i),r,s),n}_verifyReinsertion(n,e,i,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,s):n.currentIndex!=s&&(n.currentIndex=s,this._addToMoves(n,s)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const s=n._prevRemoved,r=n._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const s=null===e?this._itHead:e._next;return n._next=s,n._prev=e,null===s?this._itTail=n:s._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new W0),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new W0),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class oP{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class aP{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class W0{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new aP,this.map.set(e,i)),i.add(n)}get(n,e){const s=this.map.get(n);return s?s.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Y0(t,n,e){const i=t.previousIndex;if(null===i)return i;let s=0;return e&&i<e.length&&(s=e[i]),i+n+s}class X0{constructor(){}supports(n){return n instanceof Map||Hf(n)}create(){return new lP}}class lP{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let e;for(e=this._mapHead;null!==e;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}diff(n){if(n){if(!(n instanceof Map||Hf(n)))throw new Ye(900,"")}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(i,s)=>{if(e&&e.key===s)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(s,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const s=this._records.get(n);this._maybeAddToChanges(s,e);const r=s._prev,o=s._next;return r&&(r._next=o),o&&(o._prev=r),s._next=null,s._prev=null,s}const i=new cP(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class cP{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Z0(){return new gu([new U0])}let gu=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const s=i.factories.slice();e=e.concat(s)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Z0()),deps:[[t,new Nc,new Pc]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(null!=i)return i;throw new Ye(901,"")}}return t.\u0275prov=Qe({token:t,providedIn:"root",factory:Z0}),t})();function K0(){return new _l([new X0])}let _l=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const s=i.factories.slice();e=e.concat(s)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||K0()),deps:[[t,new Nc,new Pc]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Ye(901,"")}}return t.\u0275prov=Qe({token:t,providedIn:"root",factory:K0}),t})();const dP=N0(null,"core",[]);let fP=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(Ee(vl))},t.\u0275mod=It({type:t}),t.\u0275inj=kt({}),t})(),mu=null;function vr(){return mu}const Nt=new et("DocumentToken");let yl=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:function(){return function vP(){return Ee(Q0)}()},providedIn:"platform"}),t})(),Q0=(()=>{class t extends yl{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vr().getBaseHref(this._doc)}onPopState(e){const i=vr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=vr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,s){J0()?this._history.pushState(e,i,s):this.location.hash=s}replaceState(e,i,s){J0()?this._history.replaceState(e,i,s):this.location.hash=s}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt))},t.\u0275prov=Qe({token:t,factory:function(){return function _P(){return new Q0(Ee(Nt))}()},providedIn:"platform"}),t})();function J0(){return!!window.history.pushState}function q0(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function ew(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function jr(t){return t&&"?"!==t[0]?"?"+t:t}let Np=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:function(){return function yP(t){const n=Ee(Nt).location;return new bP(Ee(yl),n&&n.origin||"")}()},providedIn:"root"}),t})();const xP=new et("appBaseHref");let bP=(()=>{class t extends Np{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return q0(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+jr(this._platformLocation.search),s=this._platformLocation.hash;return s&&e?`${i}${s}`:i}pushState(e,i,s,r){const o=this.prepareExternalUrl(s+jr(r));this._platformLocation.pushState(e,i,o)}replaceState(e,i,s,r){const o=this.prepareExternalUrl(s+jr(r));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,s;null===(s=(i=this._platformLocation).historyGo)||void 0===s||s.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(Ee(yl),Ee(xP,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),tw=(()=>{class t{constructor(e,i){this._subject=new _e,this._urlChangeListeners=[],this._platformStrategy=e;const s=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=ew(nw(s)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+jr(i))}normalize(e){return t.stripTrailingSlash(function CP(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,nw(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",s=null){this._platformStrategy.pushState(s,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+jr(i)),s)}replaceState(e,i="",s=null){this._platformStrategy.replaceState(s,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+jr(i)),s)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,s;null===(s=(i=this._platformStrategy).historyGo)||void 0===s||s.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(s=>s(e,i))}subscribe(e,i,s){return this._subject.subscribe({next:e,error:i,complete:s})}}return t.normalizeQueryParams=jr,t.joinWithSlash=q0,t.stripTrailingSlash=ew,t.\u0275fac=function(e){return new(e||t)(Ee(Np),Ee(yl))},t.\u0275prov=Qe({token:t,factory:function(){return function wP(){return new tw(Ee(Np),Ee(yl))}()},providedIn:"root"}),t})();function nw(t){return t.replace(/\/index.html$/,"")}let hw=(()=>{class t{constructor(e,i,s,r){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=s,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(il(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Ht(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(s=>{i?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return t.\u0275fac=function(e){return new(e||t)(Le(gu),Le(_l),Le(Gt),Le(au))},t.\u0275dir=bn({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class c2{constructor(n,e,i,s){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Mt=(()=>{class t{constructor(e,i,s){this._viewContainer=e,this._template=i,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((s,r,o)=>{if(null==s.previousIndex)i.createEmbeddedView(this._template,new c2(s.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===r?void 0:r);else if(null!==r){const a=i.get(r);i.move(a,o),dw(a,s)}});for(let s=0,r=i.length;s<r;s++){const a=i.get(s).context;a.index=s,a.count=r,a.ngForOf=this._ngForOf}e.forEachIdentityChange(s=>{dw(i.get(s.currentIndex),s)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(Le(Gi),Le(Us),Le(gu))},t.\u0275dir=bn({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function dw(t,n){t.context.$implicit=n.item}let yt=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new u2,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){fw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){fw("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(Le(Gi),Le(Us))},t.\u0275dir=bn({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class u2{constructor(){this.$implicit=null,this.ngIf=null}}function fw(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Ht(n)}'.`)}const pw="browser";let Kp=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(Le(Gi))},t.\u0275dir=bn({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[ut]}),t})();class $2{createSubscription(n,e){return n.subscribe({next:e,error:i=>{throw i}})}dispose(n){n.unsubscribe()}onDestroy(n){n.unsubscribe()}}class U2{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}onDestroy(n){}}const W2=new U2,Y2=new $2;let xw=(()=>{class t{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Xf(e))return W2;if(Cx(e))return Y2;throw function us(t,n){return new Ye(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(Le(As,16))},t.\u0275pipe=gi({name:"async",type:t,pure:!1}),t})(),_r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({}),t})();class qp extends class fN extends class mP{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function gP(t){mu||(mu=t)}(new qp)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function pN(){return Cl=Cl||document.querySelector("base"),Cl?Cl.getAttribute("href"):null}();return null==e?null:function gN(t){Au=Au||document.createElement("a"),Au.setAttribute("href",t);const n=Au.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){Cl=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function a2(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[s,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(s.trim()===n)return decodeURIComponent(r)}return null}(document.cookie,n)}}let Au,Cl=null;const Cw=new et("TRANSITION_ID"),vN=[{provide:M0,useFactory:function mN(t,n,e){return()=>{e.get(wp).donePromise.then(()=>{const i=vr(),s=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let r=0;r<s.length;r++)i.remove(s[r])})}},deps:[Cw,Nt,oi],multi:!0}];class eg{static init(){!function jF(t){Mp=t}(new eg)}addToWindow(n){jt.getAngularTestability=(i,s=!0)=>{const r=n.findTestabilityInTree(i,s);if(null==r)throw new Error("Could not find testability for element.");return r},jt.getAllAngularTestabilities=()=>n.getAllTestabilities(),jt.getAllAngularRootElements=()=>n.getAllRootElements(),jt.frameworkStabilizers||(jt.frameworkStabilizers=[]),jt.frameworkStabilizers.push(i=>{const s=jt.getAllAngularTestabilities();let r=s.length,o=!1;const a=function(l){o=o||l,r--,0==r&&i(o)};s.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const s=n.getTestability(e);return null!=s?s:i?vr().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let _N=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();const Mu=new et("EventManagerPlugins");let ku=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,s){return this._findPluginFor(i).addEventListener(e,i,s)}addGlobalEventListener(e,i,s){return this._findPluginFor(i).addGlobalEventListener(e,i,s)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const s=this._plugins;for(let r=0;r<s.length;r++){const o=s[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(Ee(Mu),Ee(Bt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();class Tw{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const s=vr().getGlobalEventTarget(this._doc,n);if(!s)throw new Error(`Unsupported event target ${s} for event ${e}`);return this.addEventListener(s,e,i)}}let Dw=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),i.add(s))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),Tl=(()=>{class t extends Dw{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,s){e.forEach(r=>{const o=this._doc.createElement("style");o.textContent=r,s.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(Ew),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,s)=>{this._addStylesToHost(e,s,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ew))}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();function Ew(t){vr().remove(t)}const tg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ng=/%COMP%/g;function Lu(t,n,e){for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?Lu(t,s,e):(s=s.replace(ng,t),e.push(s))}return e}function Mw(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let Iu=(()=>{class t{constructor(e,i,s){this.eventManager=e,this.sharedStylesHost=i,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new ig(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case es.Emulated:{let s=this.rendererByCompId.get(i.id);return s||(s=new TN(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,s)),s.applyToHost(e),s}case 1:case es.ShadowDom:return new DN(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const s=Lu(i.id,i.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Ee(ku),Ee(Tl),Ee(ml))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();class ig{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(tg[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){n.appendChild(e)}insertBefore(n,e,i){n&&n.insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,s){if(s){e=s+":"+e;const r=tg[s];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const s=tg[i];s?n.removeAttributeNS(s,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,s){s&(Ei.DashCase|Ei.Important)?n.style.setProperty(e,i,s&Ei.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Ei.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,Mw(i)):this.eventManager.addEventListener(n,e,Mw(i))}}class TN extends ig{constructor(n,e,i,s){super(n),this.component=i;const r=Lu(s+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function bN(t){return"_ngcontent-%COMP%".replace(ng,t)}(s+"-"+i.id),this.hostAttr=function wN(t){return"_nghost-%COMP%".replace(ng,t)}(s+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class DN extends ig{constructor(n,e,i,s){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=Lu(s.id,s.styles,[]);for(let o=0;o<r.length;o++){const a=document.createElement("style");a.textContent=r[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let EN=(()=>{class t extends Tw{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,s){return e.addEventListener(i,s,!1),()=>this.removeEventListener(e,i,s)}removeEventListener(e,i,s){return e.removeEventListener(i,s)}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();const Lw=["alt","control","meta","shift"],AN={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Iw={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},MN={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let kN=(()=>{class t extends Tw{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const r=t.parseEventName(i),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vr().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),s=i.shift();if(0===i.length||"keydown"!==s&&"keyup"!==s)return null;const r=t._normalizeKey(i.pop());let o="";if(Lw.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=r,0!=i.length||0===r.length)return null;const a={};return a.domEventName=s,a.fullKey=o,a}static getEventFullKey(e){let i="",s=function LN(t){let n=t.key;if(null==n){if(n=t.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&Iw.hasOwnProperty(n)&&(n=Iw[n]))}return AN[n]||n}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),Lw.forEach(r=>{r!=s&&MN[r](e)&&(i+=r+".")}),i+=s,i}static eventCallback(e,i,s){return r=>{t.getEventFullKey(r)===e&&s.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();const PN=N0(dP,"browser",[{provide:Tp,useValue:pw},{provide:L0,useValue:function IN(){qp.makeCurrent(),eg.init()},multi:!0},{provide:Nt,useFactory:function FN(){return function LS(t){pd=t}(document),document},deps:[]}]),NN=[{provide:Ff,useValue:"root"},{provide:qa,useFactory:function ON(){return new qa},deps:[]},{provide:Mu,useClass:EN,multi:!0,deps:[Nt,Bt,Tp]},{provide:Mu,useClass:kN,multi:!0,deps:[Nt]},{provide:Iu,useClass:Iu,deps:[ku,Tl,ml]},{provide:ul,useExisting:Iu},{provide:Dw,useExisting:Tl},{provide:Tl,useClass:Tl,deps:[Nt]},{provide:Ap,useClass:Ap,deps:[Bt]},{provide:ku,useClass:ku,deps:[Mu,Bt]},{provide:class hN{},useClass:_N,deps:[]}];let Ow=(()=>{class t{constructor(e){if(e)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.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:ml,useValue:e.appId},{provide:Cw,useExisting:ml},vN]}}}return t.\u0275fac=function(e){return new(e||t)(Ee(t,12))},t.\u0275mod=It({type:t}),t.\u0275inj=kt({providers:NN,imports:[_r,fP]}),t})();"undefined"!=typeof window&&window;let rg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:function(e){let i=null;return i=e?new(e||t):Ee(Nw),i},providedIn:"root"}),t})(),Nw=(()=>{class t extends rg{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Jt.NONE:return i;case Jt.HTML:return bs(i,"HTML")?Si(i):K_(this._doc,String(i)).toString();case Jt.STYLE:return bs(i,"Style")?Si(i):i;case Jt.SCRIPT:if(bs(i,"Script"))return Si(i);throw new Error("unsafe value used in a script context");case Jt.URL:return j_(i),bs(i,"URL")?Si(i):Za(String(i));case Jt.RESOURCE_URL:if(bs(i,"ResourceURL"))return Si(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function pM(t){return new cM(t)}(e)}bypassSecurityTrustStyle(e){return function gM(t){return new uM(t)}(e)}bypassSecurityTrustScript(e){return function mM(t){return new hM(t)}(e)}bypassSecurityTrustUrl(e){return function vM(t){return new dM(t)}(e)}bypassSecurityTrustResourceUrl(e){return function _M(t){return new fM(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt))},t.\u0275prov=Qe({token:t,factory:function(e){let i=null;return i=e?new e:function WN(t){return new Nw(t.get(Nt))}(Ee(oi)),i},providedIn:"root"}),t})();class YN extends m{constructor(n,e){super()}schedule(n,e=0){return this}}class Ou extends YN{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,s=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(s,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let s,i=!1;try{this.work(n)}catch(r){i=!0,s=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),s}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,s=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&i.splice(s,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let Rw=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,s){return new this.SchedulerAction(this,e).schedule(s,i)}}return t.now=()=>Date.now(),t})();class hs extends Rw{constructor(n,e=Rw.now){super(n,()=>hs.delegate&&hs.delegate!==this?hs.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return hs.delegate&&hs.delegate!==this?hs.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const KN=new class ZN extends hs{}(class XN extends Ou{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}schedule(n,e=0){return e>0?super.schedule(n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)}execute(n,e){return e>0||this.closed?super.execute(n,e):this._execute(n,e)}requestAsyncId(n,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(n,e,i):n.flush(this)}}),QN=new te(t=>t.complete());function Bw(t){return t?function JN(t){return new te(n=>t.schedule(()=>n.complete()))}(t):QN}function na(...t){let n=t[t.length-1];return oe(n)?(t.pop(),Xe(t,n)):rr(t)}function eR({error:t,subscriber:n}){n.error(t)}class Wi{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return na(this.value);case"E":return function qN(t,n){return new te(n?e=>n.schedule(eR,0,{error:t,subscriber:e}):e=>e.error(t))}(this.error);case"C":return Bw()}throw new Error("unexpected notification kind value")}static createNext(n){return void 0!==n?new Wi("N",n):Wi.undefinedValueNotification}static createError(n){return new Wi("E",void 0,n)}static createComplete(){return Wi.completeNotification}}Wi.completeNotification=new Wi("C"),Wi.undefinedValueNotification=new Wi("N",void 0);class Fu extends k{constructor(n,e,i=0){super(n),this.scheduler=e,this.delay=i}static dispatch(n){const{notification:e,destination:i}=n;e.observe(i),this.unsubscribe()}scheduleMessage(n){this.destination.add(this.scheduler.schedule(Fu.dispatch,this.delay,new nR(n,this.destination)))}_next(n){this.scheduleMessage(Wi.createNext(n))}_error(n){this.scheduleMessage(Wi.createError(n)),this.unsubscribe()}_complete(){this.scheduleMessage(Wi.createComplete()),this.unsubscribe()}}class nR{constructor(n,e){this.notification=n,this.destination=e}}class iR extends ${constructor(n=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=n<1?1:n,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(n){const e=this._events;e.push(n),e.length>this._bufferSize&&e.shift(),super.next(n)}nextTimeWindow(n){this._events.push(new sR(this._getNow(),n)),this._trimBufferThenGetEvents(),super.next(n)}_subscribe(n){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=i.length;let o;if(this.closed)throw new N;if(this.isStopped||this.hasError?o=m.EMPTY:(this.observers.push(n),o=new V(this,n)),s&&n.add(n=new Fu(n,s)),e)for(let a=0;a<r&&!n.closed;a++)n.next(i[a]);else for(let a=0;a<r&&!n.closed;a++)n.next(i[a].value);return this.hasError?n.error(this.thrownError):this.isStopped&&n.complete(),o}_getNow(){return(this.scheduler||KN).now()}_trimBufferThenGetEvents(){const n=this._getNow(),e=this._bufferSize,i=this._windowTime,s=this._events,r=s.length;let o=0;for(;o<r&&!(n-s[o].time<i);)o++;return r>e&&(o=Math.max(o,r-e)),o>0&&s.splice(0,o),s}}class sR{constructor(n,e){this.time=n,this.value=e}}function Vw(t,n){return"function"==typeof n?e=>e.pipe(Vw((i,s)=>Ln(t(i,s)).pipe(de((r,o)=>n(i,r,s,o))))):e=>e.lift(new rR(t))}class rR{constructor(n){this.project=n}call(n,e){return e.subscribe(new oR(n,this.project))}}class oR extends Ct{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new wt(this),s=this.destination;s.add(i),this.innerSubscription=Ji(n,i),this.innerSubscription!==i&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const Pu={schedule(t,n){const e=setTimeout(t,n);return()=>clearTimeout(e)},scheduleBeforeRender(t){if("undefined"==typeof window)return Pu.schedule(t,0);if(void 0===window.requestAnimationFrame)return Pu.schedule(t,16);const n=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(n)}};let og;function gR(t,n,e){let i=e;return function lR(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&n.some((s,r)=>!("*"===s||!function uR(t,n){if(!og){const e=Element.prototype;og=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&og.call(t,n)}(t,s)||(i=r,0))),i}class vR{constructor(n,e){this.componentFactory=e.get(mr).resolveComponentFactory(n)}create(n){return new _R(this.componentFactory,n)}}class _R{constructor(n,e){this.componentFactory=n,this.injector=e,this.eventEmitters=new iR(1),this.events=this.eventEmitters.pipe(Vw(i=>Aa(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(Bt),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Pu.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(n){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,e){this.runInZone(()=>{null!==this.componentRef?function hR(t,n){return t===n||t!=t&&n!=n}(e,this.getInputValue(n))&&(void 0!==e||!this.unchangedInputs.has(n))||(this.recordInputChange(n,e),this.unchangedInputs.delete(n),this.hasInputChanges=!0,this.componentRef.instance[n]=e,this.scheduleDetectChanges()):this.initialInputValues.set(n,e)})}initializeComponent(n){const e=oi.create({providers:[],parent:this.injector}),i=function pR(t,n){const e=t.childNodes,i=n.map(()=>[]);let s=-1;n.some((r,o)=>"*"===r&&(s=o,!0));for(let r=0,o=e.length;r<o;++r){const a=e[r],l=gR(a,n,s);-1!==l&&i[l].push(a)}return i}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,n),this.viewChangeDetectorRef=this.componentRef.injector.get(As),this.implementsOnChanges=function cR(t){return"function"==typeof t}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(vl).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:n})=>{this.initialInputValues.has(n)&&this.setInputValue(n,this.initialInputValues.get(n))}),this.initialInputValues.clear()}initializeOutputs(n){const e=this.componentFactory.outputs.map(({propName:i,templateName:s})=>n.instance[i].pipe(de(o=>({name:s,value:o}))));this.eventEmitters.next(e)}callNgOnChanges(n){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,n.instance.ngOnChanges(e)}markViewForCheck(n){this.hasInputChanges&&(this.hasInputChanges=!1,n.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Pu.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(n,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[n];if(i)return void(i.currentValue=e);const s=this.unchangedInputs.has(n),r=s?void 0:this.getInputValue(n);this.inputChanges[n]=new Ev(r,e,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}}class yR extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Hw{}const Xs="*";function zn(t,n){return{type:7,name:t,definitions:n,options:{}}}function Dn(t,n=null){return{type:4,styles:n,timings:t}}function zw(t,n=null){return{type:2,steps:t,options:n}}function lt(t){return{type:6,styles:t,offset:null}}function jw(t,n,e){return{type:0,name:t,styles:n,options:e}}function wR(t){return{type:5,steps:t}}function En(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function Gw(t){Promise.resolve(null).then(t)}class Dl{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Gw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class $w{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,s=0;const r=this.players.length;0==r?Gw(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==r&&this._onFinish()}),o.onDestroy(()=>{++i==r&&this._onDestroy()}),o.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const s=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(s)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const At=!1;function Uw(t){return new Ye(3e3,At)}function n3(){return"undefined"!=typeof window&&void 0!==window.document}function lg(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function xr(t){switch(t.length){case 0:return new Dl;case 1:return t[0];default:return new $w(t)}}function Ww(t,n,e,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(h=>{const b=h.offset,T=b==l,M=T&&c||{};Object.keys(h).forEach(I=>{let B=I,P=h[I];if("offset"!==I)switch(B=n.normalizePropertyName(B,o),P){case"!":P=s[I];break;case Xs:P=r[I];break;default:P=n.normalizeStyleValue(I,B,P,o)}M[B]=P}),T||a.push(M),c=M,l=b}),o.length)throw function UR(t){return new Ye(3502,At)}();return a}function cg(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&ug(e,"start",t)));break;case"done":t.onDone(()=>i(e&&ug(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&ug(e,"destroy",t)))}}function ug(t,n,e){const i=e.totalTime,r=hg(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),o=t._data;return null!=o&&(r._data=o),r}function hg(t,n,e,i,s="",r=0,o){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function ki(t,n,e){let i;return t instanceof Map?(i=t.get(n),i||t.set(n,i=e)):(i=t[n],i||(i=t[n]=e)),i}function Yw(t){const n=t.indexOf(":");return[t.substring(1,n),t.substr(n+1)]}let dg=(t,n)=>!1,Xw=(t,n,e)=>[],Zw=null;function fg(t){const n=t.parentNode||t.host;return n===Zw?null:n}(lg()||"undefined"!=typeof Element)&&(n3()?(Zw=(()=>document.documentElement)(),dg=(t,n)=>{for(;n;){if(n===t)return!0;n=fg(n)}return!1}):dg=(t,n)=>t.contains(n),Xw=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let Gr=null,Kw=!1;function Qw(t){Gr||(Gr=function r3(){return"undefined"!=typeof document?document.body:null}()||{},Kw=!!Gr.style&&"WebkitAppearance"in Gr.style);let n=!0;return Gr.style&&!function s3(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Gr.style,!n&&Kw&&(n="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Gr.style)),n}const Jw=dg,qw=Xw;let eC=(()=>{class t{validateStyleProperty(e){return Qw(e)}matchesElement(e,i){return!1}containsElement(e,i){return Jw(e,i)}getParentElement(e){return fg(e)}query(e,i,s){return qw(e,i,s)}computeStyle(e,i,s){return s||""}animate(e,i,s,r,o,a=[],l){return new Dl(s,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),pg=(()=>{class t{}return t.NOOP=new eC,t})();const gg="ng-enter",Ru="ng-leave",Bu="ng-trigger",Vu=".ng-trigger",nC="ng-animating",mg=".ng-animating";function $r(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:vg(parseFloat(n[1]),n[2])}function vg(t,n){return"s"===n?1e3*t:t}function Hu(t,n,e){return t.hasOwnProperty("duration")?t:function l3(t,n,e){let s,r=0,o="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(Uw()),{duration:0,delay:0,easing:""};s=vg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=vg(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else s=t;if(!e){let a=!1,l=n.length;s<0&&(n.push(function CR(){return new Ye(3100,At)}()),a=!0),r<0&&(n.push(function TR(){return new Ye(3101,At)}()),a=!0),a&&n.splice(l,0,Uw())}return{duration:s,delay:r,easing:o}}(t,n,e)}function ia(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function br(t,n,e={}){if(n)for(let i in t)e[i]=t[i];else ia(t,e);return e}function sC(t,n,e){return e?n+":"+e+";":""}function rC(t){let n="";for(let e=0;e<t.style.length;e++){const i=t.style.item(e);n+=sC(0,i,t.style.getPropertyValue(i))}for(const e in t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(n+=sC(0,h3(e),t.style[e]));t.setAttribute("style",n)}function Ms(t,n,e){t.style&&(Object.keys(n).forEach(i=>{const s=yg(i);e&&!e.hasOwnProperty(i)&&(e[i]=t.style[s]),t.style[s]=n[i]}),lg()&&rC(t))}function Ur(t,n){t.style&&(Object.keys(n).forEach(e=>{const i=yg(e);t.style[i]=""}),lg()&&rC(t))}function El(t){return Array.isArray(t)?1==t.length?t[0]:zw(t):t}const _g=new RegExp("{{\\s*(.+?)\\s*}}","g");function oC(t){let n=[];if("string"==typeof t){let e;for(;e=_g.exec(t);)n.push(e[1]);_g.lastIndex=0}return n}function zu(t,n,e){const i=t.toString(),s=i.replace(_g,(r,o)=>{let a=n[o];return n.hasOwnProperty(o)||(e.push(function ER(t){return new Ye(3003,At)}()),a=""),a.toString()});return s==i?t:s}function ju(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const u3=/-+([a-z0-9])/g;function yg(t){return t.replace(u3,(...n)=>n[1].toUpperCase())}function h3(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Li(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function SR(t){return new Ye(3004,At)}()}}function aC(t,n){return window.getComputedStyle(t)[n]}function _3(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function y3(t,n,e){if(":"==t[0]){const l=function x3(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(function zR(t){return new Ye(3016,At)}()),"* => *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function HR(t){return new Ye(3015,At)}()),n;const s=i[1],r=i[2],o=i[3];n.push(lC(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&n.push(lC(o,s))}(i,e,n)):e.push(t),e}const Wu=new Set(["true","1"]),Yu=new Set(["false","0"]);function lC(t,n){const e=Wu.has(t)||Yu.has(t),i=Wu.has(n)||Yu.has(n);return(s,r)=>{let o="*"==t||t==s,a="*"==n||n==r;return!o&&e&&"boolean"==typeof s&&(o=s?Wu.has(t):Yu.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?Wu.has(n):Yu.has(n)),o&&a}}const b3=new RegExp("s*:selfs*,?","g");function xg(t,n,e,i){return new w3(t).build(n,e,i)}class w3{constructor(n){this._driver=n}build(n,e,i){const s=new D3(e);this._resetContextStyleTimingState(s);const r=Li(this,El(n),s);return s.unsupportedCSSPropertiesFound.size&&s.unsupportedCSSPropertiesFound.keys(),r}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles={},n.collectedStyles[""]={},n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,s=e.depCount=0;const r=[],o=[];return"@"==n.name.charAt(0)&&e.errors.push(function MR(){return new Ye(3006,At)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,s+=l.depCount,o.push(l)}else e.errors.push(function kR(){return new Ye(3007,At)}())}),{type:7,name:n.name,states:r,transitions:o,queryCount:i,depCount:s,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),s=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,o=s||{};i.styles.forEach(a=>{if(Xu(a)){const l=a;Object.keys(l).forEach(c=>{oC(l[c]).forEach(h=>{o.hasOwnProperty(h)||r.add(h)})})}}),r.size&&(ju(r.values()),e.errors.push(function LR(t,n){return new Ye(3008,At)}()))}return{type:0,name:n.name,style:i,options:s?{params:s}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=Li(this,El(n.animation),e);return{type:1,matchers:_3(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Wr(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>Li(this,i,e)),options:Wr(n.options)}}visitGroup(n,e){const i=e.currentTime;let s=0;const r=n.steps.map(o=>{e.currentTime=i;const a=Li(this,o,e);return s=Math.max(s,e.currentTime),a});return e.currentTime=s,{type:3,steps:r,options:Wr(n.options)}}visitAnimate(n,e){const i=function S3(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return bg(Hu(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=bg(0,0,"");return r.dynamic=!0,r.strValue=e,r}const s=Hu(e,n);return bg(s.duration,s.delay,s.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let s,r=n.styles?n.styles:lt({});if(5==r.type)s=this.visitKeyframes(r,e);else{let o=n.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=lt(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,s=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:s,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[];Array.isArray(n.styles)?n.styles.forEach(o=>{"string"==typeof o?o==Xs?i.push(o):e.errors.push(function IR(t){return new Ye(3002,At)}()):i.push(o)}):i.push(n.styles);let s=!1,r=null;return i.forEach(o=>{if(Xu(o)){const a=o,l=a.easing;if(l&&(r=l,delete a.easing),!s)for(let c in a)if(a[c].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:i,easing:r,offset:n.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let s=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let h=!0;c&&(r!=s&&r>=c.startTime&&s<=c.endTime&&(e.errors.push(function OR(t,n,e,i,s){return new Ye(3010,At)}()),h=!1),r=c.startTime),h&&(l[a]={startTime:r,endTime:s}),e.options&&function c3(t,n,e){const i=n.params||{},s=oC(t);s.length&&s.forEach(r=>{i.hasOwnProperty(r)||e.push(function DR(t){return new Ye(3001,At)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function FR(){return new Ye(3011,At)}()),i;let r=0;const o=[];let a=!1,l=!1,c=0;const h=n.steps.map(K=>{const Q=this._makeStyleAst(K,e);let ne=null!=Q.offset?Q.offset:function E3(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(Xu(e)&&e.hasOwnProperty("offset")){const i=e;n=parseFloat(i.offset),delete i.offset}});else if(Xu(t)&&t.hasOwnProperty("offset")){const e=t;n=parseFloat(e.offset),delete e.offset}return n}(Q.styles),ge=0;return null!=ne&&(r++,ge=Q.offset=ne),l=l||ge<0||ge>1,a=a||ge<c,c=ge,o.push(ge),Q});l&&e.errors.push(function PR(){return new Ye(3012,At)}()),a&&e.errors.push(function NR(){return new Ye(3200,At)}());const b=n.steps.length;let T=0;r>0&&r<b?e.errors.push(function RR(){return new Ye(3202,At)}()):0==r&&(T=1/(b-1));const M=b-1,I=e.currentTime,B=e.currentAnimateTimings,P=B.duration;return h.forEach((K,Q)=>{const ne=T>0?Q==M?1:T*Q:o[Q],ge=ne*P;e.currentTime=I+B.delay+ge,B.duration=ge,this._validateStyleAst(K,e),K.offset=ne,i.styles.push(K)}),i}visitReference(n,e){return{type:8,animation:Li(this,El(n.animation),e),options:Wr(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Wr(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Wr(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,s=n.options||{};e.queryCount++,e.currentQuery=n;const[r,o]=function C3(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(b3,"")),t=t.replace(/@\*/g,Vu).replace(/@\w+/g,e=>Vu+"-"+e.substr(1)).replace(/:animating/g,mg),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,ki(e.collectedStyles,e.currentQuerySelector,{});const a=Li(this,El(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:n.selector,options:Wr(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function BR(){return new Ye(3013,At)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Hu(n.timings,e.errors,!0);return{type:12,animation:Li(this,El(n.animation),e),timings:i,options:null}}}class D3{constructor(n){this.errors=n,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,this.unsupportedCSSPropertiesFound=new Set}}function Xu(t){return!Array.isArray(t)&&"object"==typeof t}function Wr(t){return t?(t=ia(t)).params&&(t.params=function T3(t){return t?ia(t):null}(t.params)):t={},t}function bg(t,n,e){return{duration:t,delay:n,easing:e}}function wg(t,n,e,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Zu{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const k3=new RegExp(":enter","g"),I3=new RegExp(":leave","g");function Cg(t,n,e,i,s,r={},o={},a,l,c=[]){return(new O3).buildKeyframes(t,n,e,i,s,r,o,a,l,c)}class O3{buildKeyframes(n,e,i,s,r,o,a,l,c,h=[]){c=c||new Zu;const b=new Tg(n,e,c,s,r,h,[]);b.options=l,b.currentTimeline.setStyles([o],null,b.errors,l),Li(this,i,b);const T=b.timelines.filter(M=>M.containsAnimation());if(Object.keys(a).length){let M;for(let I=T.length-1;I>=0;I--){const B=T[I];if(B.element===e){M=B;break}}M&&!M.allowOnlyTimelineStyles()&&M.setStyles([a],null,b.errors,l)}return T.length?T.map(M=>M.buildKeyframes()):[wg(e,[],[],[],0,0,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const s=e.createSubContext(n.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,s,s.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const o=null!=i.duration?$r(i.duration):null,a=null!=i.delay?$r(i.delay):null;return 0!==o&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),Li(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let s=e;const r=n.options;if(r&&(r.params||r.delay)&&(s=e.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Ku);const o=$r(r.delay);s.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>Li(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>i&&s.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let s=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?$r(n.options.delay):0;n.steps.forEach(o=>{const a=e.createSubContext(n.options);r&&a.delayNextStep(r),Li(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(s),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Hu(e.params?zu(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),s=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),s.snapshotCurrentStyles());const r=n.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,s=e.currentAnimateTimings;!s&&i.getCurrentStyleProperties().length&&i.forwardFrame();const r=s&&s.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,s=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(s+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,s=n.options||{},r=s.delay?$r(s.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ku);let o=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,h)=>{e.currentQueryIndex=h;const b=e.createSubContext(n.options,c);r&&b.delayNextStep(r),c===e.element&&(l=b.currentTimeline),Li(this,n.animation,b),b.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,b.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,s=e.currentTimeline,r=n.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const h=e.currentTimeline;l&&h.delayNextStep(l);const b=h.currentTime;Li(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=s.currentTime-b+(s.startTime-i.currentTimeline.startTime)}}const Ku={};class Tg{constructor(n,e,i,s,r,o,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ku,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Qu(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let s=this.options;null!=i.duration&&(s.duration=$r(i.duration)),null!=i.delay&&(s.delay=$r(i.delay));const r=i.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=zu(r[a],o,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(s=>{i[s]=e[s]})}}return n}createSubContext(n=null,e,i){const s=e||this.element,r=new Tg(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Ku,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const s={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},r=new F3(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,s,n.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,s,r,o){let a=[];if(s&&a.push(this.element),n.length>0){n=(n=n.replace(k3,"."+this._enterClassName)).replace(I3,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&0==a.length&&o.push(function VR(t){return new Ye(3014,At)}()),a}}class Qu{constructor(n,e,i,s){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=s,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Qu(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){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))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles[n]=e,this._globalTimelineStyles[n]=e,this._styleSummary[n]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&(this._previousKeyframe.easing=n),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Xs,this._currentKeyframe[e]=Xs}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,s){e&&(this._previousKeyframe.easing=e);const r=s&&s.params||{},o=function P3(t,n){const e={};let i;return t.forEach(s=>{"*"===s?(i=i||Object.keys(n),i.forEach(r=>{e[r]=Xs})):br(s,!1,e)}),e}(n,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=zu(o[a],r,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Xs),this._updateStyle(a,l)})}applyStylesToKeyframe(){const n=this._pendingStyles,e=Object.keys(n);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=n[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(n=>{const e=this._localTimelineStyles[n];this._pendingStyles[n]=e,this._updateStyle(n,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){Object.keys(n._styleSummary).forEach(e=>{const i=this._styleSummary[e],s=n._styleSummary[e];(!i||s.time>i.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((a,l)=>{const c=br(a,!0);Object.keys(c).forEach(h=>{const b=c[h];"!"==b?n.add(h):b==Xs&&e.add(h)}),i||(c.offset=l/this.duration),s.push(c)});const r=n.size?ju(n.values()):[],o=e.size?ju(e.values()):[];if(i){const a=s[0],l=ia(a);a.offset=0,l.offset=1,s=[a,l]}return wg(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}}class F3 extends Qu{constructor(n,e,i,s,r,o,a=!1){super(n,e,o.delay),this.keyframes=i,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],o=i+e,a=e/o,l=br(n[0],!1);l.offset=0,r.push(l);const c=br(n[0],!1);c.offset=hC(a),r.push(c);const h=n.length-1;for(let b=1;b<=h;b++){let T=br(n[b],!1);T.offset=hC((e+T.offset*i)/o),r.push(T)}i=o,e=0,s="",n=r}return wg(this.element,n,this.preStyleProps,this.postStyleProps,i,e,s,!0)}}function hC(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class Dg{}class N3 extends Dg{normalizePropertyName(n,e){return yg(n)}normalizeStyleValue(n,e,i,s){let r="";const o=i.toString().trim();if(R3[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&s.push(function AR(t,n){return new Ye(3005,At)}())}return o+r}}const R3=(()=>function B3(t){const n={};return t.forEach(e=>n[e]=!0),n}("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(",")))();function dC(t,n,e,i,s,r,o,a,l,c,h,b,T){return{type:0,element:t,triggerName:n,isRemovalTransition:s,fromState:e,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:b,errors:T}}const Eg={};class fC{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,s){return function V3(t,n,e,i,s){return t.some(r=>r(n,e,i,s))}(this.ast.matchers,n,e,i,s)}buildStyles(n,e,i){const s=this._stateStyles["*"],r=this._stateStyles[n],o=s?s.buildStyles(e,i):{};return r?r.buildStyles(e,i):o}build(n,e,i,s,r,o,a,l,c,h){const b=[],T=this.ast.options&&this.ast.options.params||Eg,I=this.buildStyles(i,a&&a.params||Eg,b),B=l&&l.params||Eg,P=this.buildStyles(s,B,b),K=new Set,Q=new Map,ne=new Map,ge="void"===s,Ce={params:Object.assign(Object.assign({},T),B)},we=h?[]:Cg(n,e,this.ast.animation,r,o,I,P,Ce,c,b);let Oe=0;if(we.forEach(Ge=>{Oe=Math.max(Ge.duration+Ge.delay,Oe)}),b.length)return dC(e,this._triggerName,i,s,ge,I,P,[],[],Q,ne,Oe,b);we.forEach(Ge=>{const Ze=Ge.element,Ue=ki(Q,Ze,{});Ge.preStyleProps.forEach(He=>Ue[He]=!0);const ke=ki(ne,Ze,{});Ge.postStyleProps.forEach(He=>ke[He]=!0),Ze!==e&&K.add(Ze)});const Je=ju(K.values());return dC(e,this._triggerName,i,s,ge,I,P,we,Je,Q,ne,Oe)}}class H3{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i={},s=ia(this.defaultParams);return Object.keys(n).forEach(r=>{const o=n[r];null!=o&&(s[r]=o)}),this.styles.styles.forEach(r=>{if("string"!=typeof r){const o=r;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=zu(l,s,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class j3{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new H3(s.style,s.options&&s.options.params||{},i)}),pC(this.states,"true","1"),pC(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new fC(n,s,this.states))}),this.fallbackTransition=function G3(t,n,e){return new fC(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,s){return this.transitionFactories.find(o=>o.match(n,e,i,s))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function pC(t,n,e){t.hasOwnProperty(n)?t.hasOwnProperty(e)||(t[e]=t[n]):t.hasOwnProperty(e)&&(t[n]=t[e])}const $3=new Zu;class U3{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(n,e){const i=[],r=xg(this._driver,e,i,[]);if(i.length)throw function WR(t){return new Ye(3503,At)}();this._animations[n]=r}_buildPlayer(n,e,i){const s=n.element,r=Ww(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(s,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const s=[],r=this._animations[n];let o;const a=new Map;if(r?(o=Cg(this._driver,e,r,gg,Ru,{},{},i,$3,s),o.forEach(h=>{const b=ki(a,h.element,{});h.postStyleProps.forEach(T=>b[T]=null)})):(s.push(function YR(){return new Ye(3300,At)}()),o=[]),s.length)throw function XR(t){return new Ye(3504,At)}();a.forEach((h,b)=>{Object.keys(h).forEach(T=>{h[T]=this._driver.computeStyle(b,T,Xs)})});const c=xr(o.map(h=>{const b=a.get(h.element);return this._buildPlayer(h,{},b)}));return this._playersById[n]=c,c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),delete this._playersById[n];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById[n];if(!e)throw function ZR(t){return new Ye(3301,At)}();return e}listen(n,e,i,s){const r=hg(e,"","","");return cg(this._getPlayer(n),i,r,s),()=>{}}command(n,e,i,s){if("register"==i)return void this.register(n,s[0]);if("create"==i)return void this.create(n,e,s[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(n)}}}const gC="ng-animate-queued",Sg="ng-animate-disabled",K3=[],mC={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Q3={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Yi="__ng_removed";class Ag{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function tB(t){return null!=t?t:null}(i?n.value:n),i){const r=ia(n);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(s=>{null==i[s]&&(i[s]=e[s])})}}}const Sl="void",Mg=new Ag(Sl);class J3{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Xi(e,this._hostClassName)}listen(n,e,i,s){if(!this._triggers.hasOwnProperty(e))throw function KR(t,n){return new Ye(3302,At)}();if(null==i||0==i.length)throw function QR(t){return new Ye(3303,At)}();if(!function nB(t){return"start"==t||"done"==t}(i))throw function JR(t,n){return new Ye(3400,At)}();const r=ki(this._elementListeners,n,[]),o={name:e,phase:i,callback:s};r.push(o);const a=ki(this._engine.statesByElement,n,{});return a.hasOwnProperty(e)||(Xi(n,Bu),Xi(n,Bu+"-"+e),a[e]=Mg),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers[e]||delete a[e]})}}register(n,e){return!this._triggers[n]&&(this._triggers[n]=e,!0)}_getTrigger(n){const e=this._triggers[n];if(!e)throw function qR(t){return new Ye(3401,At)}();return e}trigger(n,e,i,s=!0){const r=this._getTrigger(e),o=new kg(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Xi(n,Bu),Xi(n,Bu+"-"+e),this._engine.statesByElement.set(n,a={}));let l=a[e];const c=new Ag(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=Mg),c.value!==Sl&&l.value===c.value){if(!function rB(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let s=0;s<e.length;s++){const r=e[s];if(!n.hasOwnProperty(r)||t[r]!==n[r])return!1}return!0}(l.params,c.params)){const B=[],P=r.matchStyles(l.value,l.params,B),K=r.matchStyles(c.value,c.params,B);B.length?this._engine.reportError(B):this._engine.afterFlush(()=>{Ur(n,P),Ms(n,K)})}return}const T=ki(this._engine.playersByElement,n,[]);T.forEach(B=>{B.namespaceId==this.id&&B.triggerName==e&&B.queued&&B.destroy()});let M=r.matchTransition(l.value,c.value,n,c.params),I=!1;if(!M){if(!s)return;M=r.fallbackTransition,I=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:M,fromState:l,toState:c,player:o,isFallbackTransition:I}),I||(Xi(n,gC),o.onStart(()=>{sa(n,gC)})),o.onDone(()=>{let B=this.players.indexOf(o);B>=0&&this.players.splice(B,1);const P=this._engine.playersByElement.get(n);if(P){let K=P.indexOf(o);K>=0&&P.splice(K,1)}}),this.players.push(o),T.push(o),o}deregister(n){delete this._triggers[n],this._engine.statesByElement.forEach((e,i)=>{delete e[n]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(s=>s.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Vu,!0);i.forEach(s=>{if(s[Yi])return;const r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(n,e,i,s){const r=this._engine.statesByElement.get(n),o=new Map;if(r){const a=[];if(Object.keys(r).forEach(l=>{if(o.set(l,r[l].value),this._triggers[l]){const c=this.trigger(n,l,Sl,s);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,o),i&&xr(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const s=new Set;e.forEach(r=>{const o=r.name;if(s.has(o))return;s.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||Mg,h=new Ag(Sl),b=new kg(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:l,fromState:c,toState:h,player:b,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let s=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)s=!0;else{let o=n;for(;o=o.parentNode;)if(i.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(n),s)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[Yi];(!r||r===mC)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Xi(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const s=i.player;if(s.destroyed)return;const r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=hg(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,cg(i.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(i)}),this._queue=[],e.sort((i,s)=>{const r=i.transition.ast.depCount,o=s.transition.ast.depCount;return 0==r||0==o?r-o:this._engine.driver.containsElement(i.element,s.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class q3{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new J3(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,s=this.namespacesByHostElement,r=i.length-1;if(r>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const l=s.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=r;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,e)){i.splice(a+1,0,n),o=!0;break}o||i.unshift(n)}else i.push(n);return s.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let s=this._namespaceLookup[n];s&&s.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const s=this._namespaceList.indexOf(i);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i){const s=Object.keys(i);for(let r=0;r<s.length;r++){const o=i[s[r]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&e.add(a)}}}return e}trigger(n,e,i,s){if(Ju(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,s),!0}return!1}insertNode(n,e,i,s){if(!Ju(e))return;const r=e[Yi];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(n){const o=this._fetchNamespace(n);o&&o.insertNode(e,i)}s&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Xi(n,Sg)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),sa(n,Sg))}removeNode(n,e,i,s){if(Ju(e)){const r=n?this._fetchNamespace(n):null;if(r?r.removeNode(e,s):this.markElementAsRemoved(n,e,!1,s),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(n,e,i,s,r){this.collectedLeaveElements.push(e),e[Yi]={namespaceId:n,setForRemoval:s,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,s,r){return Ju(e)?this._fetchNamespace(n).listen(e,i,s,r):()=>{}}_buildInstruction(n,e,i,s,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,s,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,Vu,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,mg,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return xr(this.players).onDone(()=>n());n()})}processLeaveNode(n){var e;const i=n[Yi];if(i&&i.setForRemoval){if(n[Yi]=mC,i.namespaceId){this.destroyInnerAnimations(n);const s=this._fetchNamespace(i.namespaceId);s&&s.clearElementCache(n)}this._onRemovalComplete(n,i.setForRemoval)}(null===(e=n.classList)||void 0===e?void 0:e.contains(Sg))&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,s)=>this._balanceNamespaceList(i,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Xi(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,n)}finally{for(let s=0;s<i.length;s++)i[s]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?xr(e).onDone(()=>{i.forEach(s=>s())}):i.forEach(s=>s())}}reportError(n){throw function e3(t){return new Ye(3402,At)}()}_flushAnimations(n,e){const i=new Zu,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(Ae=>{h.add(Ae);const Ve=this.driver.query(Ae,".ng-animate-queued",!0);for(let Re=0;Re<Ve.length;Re++)h.add(Ve[Re])});const b=this.bodyNode,T=Array.from(this.statesByElement.keys()),M=yC(T,this.collectedEnterElements),I=new Map;let B=0;M.forEach((Ae,Ve)=>{const Re=gg+B++;I.set(Ve,Re),Ae.forEach(We=>Xi(We,Re))});const P=[],K=new Set,Q=new Set;for(let Ae=0;Ae<this.collectedLeaveElements.length;Ae++){const Ve=this.collectedLeaveElements[Ae],Re=Ve[Yi];Re&&Re.setForRemoval&&(P.push(Ve),K.add(Ve),Re.hasAnimation?this.driver.query(Ve,".ng-star-inserted",!0).forEach(We=>K.add(We)):Q.add(Ve))}const ne=new Map,ge=yC(T,Array.from(K));ge.forEach((Ae,Ve)=>{const Re=Ru+B++;ne.set(Ve,Re),Ae.forEach(We=>Xi(We,Re))}),n.push(()=>{M.forEach((Ae,Ve)=>{const Re=I.get(Ve);Ae.forEach(We=>sa(We,Re))}),ge.forEach((Ae,Ve)=>{const Re=ne.get(Ve);Ae.forEach(We=>sa(We,Re))}),P.forEach(Ae=>{this.processLeaveNode(Ae)})});const Ce=[],we=[];for(let Ae=this._namespaceList.length-1;Ae>=0;Ae--)this._namespaceList[Ae].drainQueuedTransitions(e).forEach(Re=>{const We=Re.player,it=Re.element;if(Ce.push(We),this.collectedEnterElements.length){const Zt=it[Yi];if(Zt&&Zt.setForMove){if(Zt.previousTriggersValues&&Zt.previousTriggersValues.has(Re.triggerName)){const Vn=Zt.previousTriggersValues.get(Re.triggerName),Ne=this.statesByElement.get(Re.element);Ne&&Ne[Re.triggerName]&&(Ne[Re.triggerName].value=Vn)}return void We.destroy()}}const Et=!b||!this.driver.containsElement(b,it),hn=ne.get(it),Bn=I.get(it),xt=this._buildInstruction(Re,i,Bn,hn,Et);if(xt.errors&&xt.errors.length)return void we.push(xt);if(Et)return We.onStart(()=>Ur(it,xt.fromStyles)),We.onDestroy(()=>Ms(it,xt.toStyles)),void s.push(We);if(Re.isFallbackTransition)return We.onStart(()=>Ur(it,xt.fromStyles)),We.onDestroy(()=>Ms(it,xt.toStyles)),void s.push(We);const Ri=[];xt.timelines.forEach(Zt=>{Zt.stretchStartingKeyframe=!0,this.disabledNodes.has(Zt.element)||Ri.push(Zt)}),xt.timelines=Ri,i.append(it,xt.timelines),o.push({instruction:xt,player:We,element:it}),xt.queriedElements.forEach(Zt=>ki(a,Zt,[]).push(We)),xt.preStyleProps.forEach((Zt,Vn)=>{const Ne=Object.keys(Zt);if(Ne.length){let tt=l.get(Vn);tt||l.set(Vn,tt=new Set),Ne.forEach(gt=>tt.add(gt))}}),xt.postStyleProps.forEach((Zt,Vn)=>{const Ne=Object.keys(Zt);let tt=c.get(Vn);tt||c.set(Vn,tt=new Set),Ne.forEach(gt=>tt.add(gt))})});if(we.length){const Ae=[];we.forEach(Ve=>{Ae.push(function t3(t,n){return new Ye(3505,At)}())}),Ce.forEach(Ve=>Ve.destroy()),this.reportError(Ae)}const Oe=new Map,Je=new Map;o.forEach(Ae=>{const Ve=Ae.element;i.has(Ve)&&(Je.set(Ve,Ve),this._beforeAnimationBuild(Ae.player.namespaceId,Ae.instruction,Oe))}),s.forEach(Ae=>{const Ve=Ae.element;this._getPreviousPlayers(Ve,!1,Ae.namespaceId,Ae.triggerName,null).forEach(We=>{ki(Oe,Ve,[]).push(We),We.destroy()})});const Ge=P.filter(Ae=>bC(Ae,l,c)),Ze=new Map;_C(Ze,this.driver,Q,c,Xs).forEach(Ae=>{bC(Ae,l,c)&&Ge.push(Ae)});const ke=new Map;M.forEach((Ae,Ve)=>{_C(ke,this.driver,new Set(Ae),l,"!")}),Ge.forEach(Ae=>{const Ve=Ze.get(Ae),Re=ke.get(Ae);Ze.set(Ae,Object.assign(Object.assign({},Ve),Re))});const He=[],Vt=[],Dt={};o.forEach(Ae=>{const{element:Ve,player:Re,instruction:We}=Ae;if(i.has(Ve)){if(h.has(Ve))return Re.onDestroy(()=>Ms(Ve,We.toStyles)),Re.disabled=!0,Re.overrideTotalTime(We.totalTime),void s.push(Re);let it=Dt;if(Je.size>1){let hn=Ve;const Bn=[];for(;hn=hn.parentNode;){const xt=Je.get(hn);if(xt){it=xt;break}Bn.push(hn)}Bn.forEach(xt=>Je.set(xt,it))}const Et=this._buildAnimation(Re.namespaceId,We,Oe,r,ke,Ze);if(Re.setRealPlayer(Et),it===Dt)He.push(Re);else{const hn=this.playersByElement.get(it);hn&&hn.length&&(Re.parentPlayer=xr(hn)),s.push(Re)}}else Ur(Ve,We.fromStyles),Re.onDestroy(()=>Ms(Ve,We.toStyles)),Vt.push(Re),h.has(Ve)&&s.push(Re)}),Vt.forEach(Ae=>{const Ve=r.get(Ae.element);if(Ve&&Ve.length){const Re=xr(Ve);Ae.setRealPlayer(Re)}}),s.forEach(Ae=>{Ae.parentPlayer?Ae.syncPlayerEvents(Ae.parentPlayer):Ae.destroy()});for(let Ae=0;Ae<P.length;Ae++){const Ve=P[Ae],Re=Ve[Yi];if(sa(Ve,Ru),Re&&Re.hasAnimation)continue;let We=[];if(a.size){let Et=a.get(Ve);Et&&Et.length&&We.push(...Et);let hn=this.driver.query(Ve,mg,!0);for(let Bn=0;Bn<hn.length;Bn++){let xt=a.get(hn[Bn]);xt&&xt.length&&We.push(...xt)}}const it=We.filter(Et=>!Et.destroyed);it.length?iB(this,Ve,it):this.processLeaveNode(Ve)}return P.length=0,He.forEach(Ae=>{this.players.push(Ae),Ae.onDone(()=>{Ae.destroy();const Ve=this.players.indexOf(Ae);this.players.splice(Ve,1)}),Ae.play()}),He}elementContainsData(n,e){let i=!1;const s=e[Yi];return s&&s.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,s,r){let o=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(o=a)}else{const a=this.playersByElement.get(n);if(a){const l=!r||r==Sl;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(i||s)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(n,e,i){const r=e.element,o=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,h=c!==r,b=ki(i,c,[]);this._getPreviousPlayers(c,h,o,a,e.toState).forEach(M=>{const I=M.getRealPlayer();I.beforeDestroy&&I.beforeDestroy(),M.destroy(),b.push(M)})}Ur(r,e.fromStyles)}_buildAnimation(n,e,i,s,r,o){const a=e.triggerName,l=e.element,c=[],h=new Set,b=new Set,T=e.timelines.map(I=>{const B=I.element;h.add(B);const P=B[Yi];if(P&&P.removedBeforeQueried)return new Dl(I.duration,I.delay);const K=B!==l,Q=function sB(t){const n=[];return xC(t,n),n}((i.get(B)||K3).map(Oe=>Oe.getRealPlayer())).filter(Oe=>!!Oe.element&&Oe.element===B),ne=r.get(B),ge=o.get(B),Ce=Ww(0,this._normalizer,0,I.keyframes,ne,ge),we=this._buildPlayer(I,Ce,Q);if(I.subTimeline&&s&&b.add(B),K){const Oe=new kg(n,a,B);Oe.setRealPlayer(we),c.push(Oe)}return we});c.forEach(I=>{ki(this.playersByQueriedElement,I.element,[]).push(I),I.onDone(()=>function eB(t,n,e){let i;if(t instanceof Map){if(i=t.get(n),i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&t.delete(n)}}else if(i=t[n],i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&delete t[n]}return i}(this.playersByQueriedElement,I.element,I))}),h.forEach(I=>Xi(I,nC));const M=xr(T);return M.onDestroy(()=>{h.forEach(I=>sa(I,nC)),Ms(l,e.toStyles)}),b.forEach(I=>{ki(s,I,[]).push(M)}),M}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new Dl(n.duration,n.delay)}}class kg{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new Dl,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>cg(n,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){ki(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Ju(t){return t&&1===t.nodeType}function vC(t,n){const e=t.style.display;return t.style.display=null!=n?n:"none",e}function _C(t,n,e,i,s){const r=[];e.forEach(l=>r.push(vC(l)));const o=[];i.forEach((l,c)=>{const h={};l.forEach(b=>{const T=h[b]=n.computeStyle(c,b,s);(!T||0==T.length)&&(c[Yi]=Q3,o.push(c))}),t.set(c,h)});let a=0;return e.forEach(l=>vC(l,r[a++])),o}function yC(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const s=new Set(n),r=new Map;function o(a){if(!a)return 1;let l=r.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:s.has(c)?1:o(c),r.set(a,l),l}return n.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function Xi(t,n){var e;null===(e=t.classList)||void 0===e||e.add(n)}function sa(t,n){var e;null===(e=t.classList)||void 0===e||e.remove(n)}function iB(t,n,e){xr(e).onDone(()=>t.processLeaveNode(n))}function xC(t,n){for(let e=0;e<t.length;e++){const i=t[e];i instanceof $w?xC(i.players,n):n.push(i)}}function bC(t,n,e){const i=e.get(t);if(!i)return!1;let s=n.get(t);return s?i.forEach(r=>s.add(r)):n.set(t,i),e.delete(t),!0}class qu{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new q3(n,e,i),this._timelineEngine=new U3(n,e,i),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(n,e,i,s,r){const o=n+"-"+s;let a=this._triggerCache[o];if(!a){const l=[],h=xg(this._driver,r,l,[]);if(l.length)throw function $R(t,n){return new Ye(3404,At)}();a=function z3(t,n,e){return new j3(t,n,e)}(s,h,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,s,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,s){this._transitionEngine.insertNode(n,e,i,s)}onRemove(n,e,i,s){this._transitionEngine.removeNode(n,e,s||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,s){if("@"==i.charAt(0)){const[r,o]=Yw(i);this._timelineEngine.command(r,e,o,s)}else this._transitionEngine.trigger(n,e,i,s)}listen(n,e,i,s,r){if("@"==i.charAt(0)){const[o,a]=Yw(i);return this._timelineEngine.listen(o,e,a,r)}return this._transitionEngine.listen(n,e,i,s,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let aB=(()=>{class t{constructor(e,i,s){this._element=e,this._startStyles=i,this._endStyles=s,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ms(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ms(this._element,this._initialStyles),this._endStyles&&(Ms(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ur(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ur(this._element,this._endStyles),this._endStyles=null),Ms(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Lg(t){let n=null;const e=Object.keys(t);for(let i=0;i<e.length;i++){const s=e[i];lB(s)&&(n=n||{},n[s]=t[s])}return n}function lB(t){return"display"===t||"position"===t}class wC{constructor(n,e,i,s){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(n,e,i){return n.animate(e,i)}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(n[i]=this._finished?e[i]:aC(this.element,i))})}this.currentSnapshot=n}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class cB{validateStyleProperty(n){return Qw(n)}matchesElement(n,e){return!1}containsElement(n,e){return Jw(n,e)}getParentElement(n){return fg(n)}query(n,e,i){return qw(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,s,r,o=[]){const l={duration:i,delay:s,fill:0==s?"both":"forwards"};r&&(l.easing=r);const c={},h=o.filter(T=>T instanceof wC);(function f3(t,n){return 0===t||0===n})(i,s)&&h.forEach(T=>{let M=T.currentSnapshot;Object.keys(M).forEach(I=>c[I]=M[I])}),e=function p3(t,n,e){const i=Object.keys(e);if(i.length&&n.length){let r=n[0],o=[];if(i.forEach(a=>{r.hasOwnProperty(a)||o.push(a),r[a]=e[a]}),o.length)for(var s=1;s<n.length;s++){let a=n[s];o.forEach(function(l){a[l]=aC(t,l)})}}return n}(n,e=e.map(T=>br(T,!1)),c);const b=function oB(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=Lg(n[0]),n.length>1&&(i=Lg(n[n.length-1]))):n&&(e=Lg(n)),e||i?new aB(t,e,i):null}(n,e);return new wC(n,e,l,b)}}let uB=(()=>{class t extends Hw{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:es.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?zw(e):e;return CC(this._renderer,null,i,"register",[s]),new hB(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Ee(ul),Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();class hB extends class bR{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new dB(this._id,n,e||{},this._renderer)}}class dB{constructor(n,e,i,s){this.id=n,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return CC(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,e;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function CC(t,n,e,i,s){return t.setProperty(n,`@@${e}:${i}`,s)}const TC="@.disabled";let fB=(()=>{class t{constructor(e,i,s){this.delegate=e,this.engine=i,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,o)=>{const a=null==o?void 0:o.parentNode(r);a&&o.removeChild(a,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let h=this._rendererCache.get(r);return h||(h=new DC("",r,this.engine),this._rendererCache.set(r,h)),h}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=h=>{Array.isArray(h)?h.forEach(l):this.engine.registerTrigger(o,a,e,h.name,h)};return i.data.animation.forEach(l),new pB(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,s){e>=0&&e<this._microtaskId?this._zone.run(()=>i(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Ee(ul),Ee(qu),Ee(Bt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();class DC{constructor(n,e,i){this.namespaceId=n,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,s=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,s)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,s){this.delegate.setAttribute(n,e,i,s)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,s){this.delegate.setStyle(n,e,i,s)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==TC?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class pB extends DC{constructor(n,e,i,s){super(e,i,s),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==TC?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.substr(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const s=function gB(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.substr(1),o="";return"@"!=r.charAt(0)&&([r,o]=function mB(t){const n=t.indexOf(".");return[t.substring(0,n),t.substr(n+1)]}(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let vB=(()=>{class t extends qu{constructor(e,i,s){super(e.body,i,s)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt),Ee(pg),Ee(Dg))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();const EC=new et("AnimationModuleType"),SC=[{provide:Hw,useClass:uB},{provide:Dg,useFactory:function _B(){return new N3}},{provide:qu,useClass:vB},{provide:ul,useFactory:function yB(t,n,e){return new fB(t,n,e)},deps:[Iu,qu,Bt]}],AC=[{provide:pg,useFactory:()=>new cB},{provide:EC,useValue:"BrowserAnimations"},...SC],xB=[{provide:pg,useClass:eC},{provide:EC,useValue:"NoopAnimations"},...SC];let bB=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?xB:AC}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({providers:AC,imports:[Ow]}),t})();class Ig{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class Og extends Ig{constructor(n,e,i,s){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=s}}class wB extends Ig{constructor(n,e,i){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class CB extends Ig{constructor(n){super(),this.element=n instanceof Gt?n.nativeElement:n}}class MC extends class TB{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof Og?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof wB?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof CB?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(n,e,i,s,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=s,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let s;return n.viewContainerRef?(s=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=i.create(n.injector||this._defaultInjector),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=n,s}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context);return i.rootNodes.forEach(s=>this.outletElement.appendChild(s)),i.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(i);-1!==s&&e.remove(s)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}class DB extends MC{}let EB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({}),t})();function Ng(t,n,e,i){var o,s=arguments.length,r=s<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(s<3?o(r):s>3?o(n,e,r):o(n,e))||r);return s>3&&r&&Object.defineProperty(n,e,r),r}function th(t,n,e,i){return d(e)&&(i=e,e=void 0),i?th(t,n,e).pipe(de(s=>x(s)?i(...s):i(s))):new te(s=>{LC(t,n,function r(o){s.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},s,e)})}function LC(t,n,e,i,s){let r;if(function JB(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const o=t;t.addEventListener(n,e,s),r=()=>o.removeEventListener(n,e,s)}else if(function QB(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const o=t;t.on(n,e),r=()=>o.off(n,e)}else if(function KB(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const o=t;t.addListener(n,e),r=()=>o.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o<a;o++)LC(t[o],n,e,i,s)}i.add(r)}"function"==typeof SuppressedError&&SuppressedError;const Vg=new hs(Ou);function Hg(t,n=Vg){return e=>e.lift(new qB(t,n))}class qB{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new eV(n,this.dueTime,this.scheduler))}}class eV extends k{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(tV,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function tV(t){t.debouncedNext()}function nV(){}function zg(t){return null==t?nV:function(){return this.querySelector(t)}}function sV(){return[]}function IC(t){return null==t?sV:function(){return this.querySelectorAll(t)}}function OC(t){return function(){return this.matches(t)}}function FC(t){return new Array(t.length)}function nh(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function cV(t,n,e,i,s,r){for(var a,o=0,l=n.length,c=r.length;o<c;++o)(a=n[o])?(a.__data__=r[o],i[o]=a):e[o]=new nh(t,r[o]);for(;o<l;++o)(a=n[o])&&(s[o]=a)}function uV(t,n,e,i,s,r,o){var a,l,M,c={},h=n.length,b=r.length,T=new Array(h);for(a=0;a<h;++a)(l=n[a])&&(T[a]=M="$"+o.call(l,l.__data__,a,n),M in c?s[a]=l:c[M]=l);for(a=0;a<b;++a)(l=c[M="$"+o.call(t,r[a],a,r)])?(i[a]=l,l.__data__=r[a],c[M]=null):e[a]=new nh(t,r[a]);for(a=0;a<h;++a)(l=n[a])&&c[T[a]]===l&&(s[a]=l)}function vV(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}nh.prototype={constructor:nh,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var jg="http://www.w3.org/1999/xhtml";const NC={svg:"http://www.w3.org/2000/svg",xhtml:jg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ih(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),NC.hasOwnProperty(n)?{space:NC[n],local:t}:t}function TV(t){return function(){this.removeAttribute(t)}}function DV(t){return function(){this.removeAttributeNS(t.space,t.local)}}function EV(t,n){return function(){this.setAttribute(t,n)}}function SV(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function AV(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function MV(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function RC(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function LV(t){return function(){this.style.removeProperty(t)}}function IV(t,n,e){return function(){this.style.setProperty(t,n,e)}}function OV(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function ra(t,n){return t.style.getPropertyValue(n)||RC(t).getComputedStyle(t,null).getPropertyValue(n)}function PV(t){return function(){delete this[t]}}function NV(t,n){return function(){this[t]=n}}function RV(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function BC(t){return t.trim().split(/^|\s+/)}function Gg(t){return t.classList||new VC(t)}function VC(t){this._node=t,this._names=BC(t.getAttribute("class")||"")}function HC(t,n){for(var e=Gg(t),i=-1,s=n.length;++i<s;)e.add(n[i])}function zC(t,n){for(var e=Gg(t),i=-1,s=n.length;++i<s;)e.remove(n[i])}function VV(t){return function(){HC(this,t)}}function HV(t){return function(){zC(this,t)}}function zV(t,n){return function(){(n.apply(this,arguments)?HC:zC)(this,t)}}function GV(){this.textContent=""}function $V(t){return function(){this.textContent=t}}function UV(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function YV(){this.innerHTML=""}function XV(t){return function(){this.innerHTML=t}}function ZV(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function QV(){this.nextSibling&&this.parentNode.appendChild(this)}function qV(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function t5(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===jg&&n.documentElement.namespaceURI===jg?n.createElement(t):n.createElementNS(e,t)}}function n5(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function jC(t){var n=ih(t);return(n.local?n5:t5)(n)}function r5(){return null}function a5(){var t=this.parentNode;t&&t.removeChild(this)}function c5(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function u5(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}VC.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var GC={},Ot=null;function p5(t,n,e){return t=$C(t,n,e),function(i){var s=i.relatedTarget;(!s||s!==this&&!(8&s.compareDocumentPosition(this)))&&t.call(this,i)}}function $C(t,n,e){return function(i){var s=Ot;Ot=i;try{t.call(this,this.__data__,n,e)}finally{Ot=s}}}function g5(t){return t.trim().split(/^|\s+/).map(function(n){var e="",i=n.indexOf(".");return i>=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}function m5(t){return function(){var n=this.__on;if(n){for(var r,e=0,i=-1,s=n.length;e<s;++e)r=n[e],t.type&&r.type!==t.type||r.name!==t.name?n[++i]=r:this.removeEventListener(r.type,r.listener,r.capture);++i?n.length=i:delete this.__on}}}function v5(t,n,e){var i=GC.hasOwnProperty(t.type)?p5:$C;return function(s,r,o){var l,a=this.__on,c=i(n,r,o);if(a)for(var h=0,b=a.length;h<b;++h)if((l=a[h]).type===t.type&&l.name===t.name)return this.removeEventListener(l.type,l.listener,l.capture),this.addEventListener(l.type,l.listener=c,l.capture=e),void(l.value=n);this.addEventListener(t.type,c,e),l={type:t.type,name:t.name,value:n,listener:c,capture:e},a?a.push(l):this.__on=[l]}}function UC(t,n,e){var i=RC(t),s=i.CustomEvent;"function"==typeof s?s=new s(n,e):(s=i.document.createEvent("Event"),e?(s.initEvent(n,e.bubbles,e.cancelable),s.detail=e.detail):s.initEvent(n,!1,!1)),t.dispatchEvent(s)}function x5(t,n){return function(){return UC(this,t,n)}}function b5(t,n){return function(){return UC(this,t,n.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(GC={mouseenter:"mouseover",mouseleave:"mouseout"}));var WC=[null];function Ii(t,n){this._groups=t,this._parents=n}function YC(){return new Ii([[document.documentElement]],WC)}Ii.prototype=YC.prototype={constructor:Ii,select:function iV(t){"function"!=typeof t&&(t=zg(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,c,r=n[s],o=r.length,a=i[s]=new Array(o),h=0;h<o;++h)(l=r[h])&&(c=t.call(l,l.__data__,h,r))&&("__data__"in l&&(c.__data__=l.__data__),a[h]=c);return new Ii(i,this._parents)},selectAll:function rV(t){"function"!=typeof t&&(t=IC(t));for(var n=this._groups,e=n.length,i=[],s=[],r=0;r<e;++r)for(var l,o=n[r],a=o.length,c=0;c<a;++c)(l=o[c])&&(i.push(t.call(l,l.__data__,c,o)),s.push(l));return new Ii(i,s)},filter:function oV(t){"function"!=typeof t&&(t=OC(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,r=n[s],o=r.length,a=i[s]=[],c=0;c<o;++c)(l=r[c])&&t.call(l,l.__data__,c,r)&&a.push(l);return new Ii(i,this._parents)},data:function hV(t,n){if(!t)return M=new Array(this.size()),c=-1,this.each(function(we){M[++c]=we}),M;var e=n?uV:cV,i=this._parents,s=this._groups;"function"!=typeof t&&(t=function lV(t){return function(){return t}}(t));for(var r=s.length,o=new Array(r),a=new Array(r),l=new Array(r),c=0;c<r;++c){var h=i[c],b=s[c],T=b.length,M=t.call(h,h&&h.__data__,c,i),I=M.length,B=a[c]=new Array(I),P=o[c]=new Array(I);e(h,b,B,P,l[c]=new Array(T),M,n);for(var ge,Ce,Q=0,ne=0;Q<I;++Q)if(ge=B[Q]){for(Q>=ne&&(ne=Q+1);!(Ce=P[ne])&&++ne<I;);ge._next=Ce||null}}return(o=new Ii(o,i))._enter=a,o._exit=l,o},enter:function aV(){return new Ii(this._enter||this._groups.map(FC),this._parents)},exit:function dV(){return new Ii(this._exit||this._groups.map(FC),this._parents)},join:function fV(t,n,e){var i=this.enter(),s=this,r=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=n&&(s=n(s)),null==e?r.remove():e(r),i&&s?i.merge(s).order():s},merge:function pV(t){for(var n=this._groups,e=t._groups,i=n.length,r=Math.min(i,e.length),o=new Array(i),a=0;a<r;++a)for(var T,l=n[a],c=e[a],h=l.length,b=o[a]=new Array(h),M=0;M<h;++M)(T=l[M]||c[M])&&(b[M]=T);for(;a<i;++a)o[a]=n[a];return new Ii(o,this._parents)},order:function gV(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var o,i=t[n],s=i.length-1,r=i[s];--s>=0;)(o=i[s])&&(r&&4^o.compareDocumentPosition(r)&&r.parentNode.insertBefore(o,r),r=o);return this},sort:function mV(t){function n(b,T){return b&&T?t(b.__data__,T.__data__):!b-!T}t||(t=vV);for(var e=this._groups,i=e.length,s=new Array(i),r=0;r<i;++r){for(var c,o=e[r],a=o.length,l=s[r]=new Array(a),h=0;h<a;++h)(c=o[h])&&(l[h]=c);l.sort(n)}return new Ii(s,this._parents).order()},call:function _V(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function yV(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},node:function xV(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var i=t[n],s=0,r=i.length;s<r;++s){var o=i[s];if(o)return o}return null},size:function bV(){var t=0;return this.each(function(){++t}),t},empty:function wV(){return!this.node()},each:function CV(t){for(var n=this._groups,e=0,i=n.length;e<i;++e)for(var a,s=n[e],r=0,o=s.length;r<o;++r)(a=s[r])&&t.call(a,a.__data__,r,s);return this},attr:function kV(t,n){var e=ih(t);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==n?e.local?DV:TV:"function"==typeof n?e.local?MV:AV:e.local?SV:EV)(e,n))},style:function FV(t,n,e){return arguments.length>1?this.each((null==n?LV:"function"==typeof n?OV:IV)(t,n,null==e?"":e)):ra(this.node(),t)},property:function BV(t,n){return arguments.length>1?this.each((null==n?PV:"function"==typeof n?RV:NV)(t,n)):this.node()[t]},classed:function jV(t,n){var e=BC(t+"");if(arguments.length<2){for(var i=Gg(this.node()),s=-1,r=e.length;++s<r;)if(!i.contains(e[s]))return!1;return!0}return this.each(("function"==typeof n?zV:n?VV:HV)(e,n))},text:function WV(t){return arguments.length?this.each(null==t?GV:("function"==typeof t?UV:$V)(t)):this.node().textContent},html:function KV(t){return arguments.length?this.each(null==t?YV:("function"==typeof t?ZV:XV)(t)):this.node().innerHTML},raise:function JV(){return this.each(QV)},lower:function e5(){return this.each(qV)},append:function s5(t){var n="function"==typeof t?t:jC(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function o5(t,n){var e="function"==typeof t?t:jC(t),i=null==n?r5:"function"==typeof n?n:zg(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function l5(){return this.each(a5)},clone:function h5(t){return this.select(t?u5:c5)},datum:function d5(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function _5(t,n,e){var s,o,i=g5(t+""),r=i.length;if(!(arguments.length<2)){for(a=n?v5:m5,null==e&&(e=!1),s=0;s<r;++s)this.each(a(i[s],n,e));return this}var a=this.node().__on;if(a)for(var h,l=0,c=a.length;l<c;++l)for(s=0,h=a[l];s<r;++s)if((o=i[s]).type===h.type&&o.name===h.name)return h.value},dispatch:function w5(t,n){return this.each(("function"==typeof n?b5:x5)(t,n))}};const Ml=YC;function Sn(t){return"string"==typeof t?new Ii([[document.querySelector(t)]],[document.documentElement]):new Ii([[t]],WC)}var C5={value:function(){}};function XC(){for(var i,t=0,n=arguments.length,e={};t<n;++t){if(!(i=arguments[t]+"")||i in e||/[\s.]/.test(i))throw new Error("illegal type: "+i);e[i]=[]}return new sh(e)}function sh(t){this._=t}function T5(t,n){return t.trim().split(/^|\s+/).map(function(e){var i="",s=e.indexOf(".");if(s>=0&&(i=e.slice(s+1),e=e.slice(0,s)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function D5(t,n){for(var s,e=0,i=t.length;e<i;++e)if((s=t[e]).name===n)return s.value}function ZC(t,n,e){for(var i=0,s=t.length;i<s;++i)if(t[i].name===n){t[i]=C5,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=e&&t.push({name:n,value:e}),t}sh.prototype=XC.prototype={constructor:sh,on:function(t,n){var s,e=this._,i=T5(t+"",e),r=-1,o=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++r<o;)if(s=(t=i[r]).type)e[s]=ZC(e[s],t.name,n);else if(null==n)for(s in e)e[s]=ZC(e[s],t.name,null);return this}for(;++r<o;)if((s=(t=i[r]).type)&&(s=D5(e[s],t.name)))return s},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new sh(t)},call:function(t,n){if((s=arguments.length-2)>0)for(var s,r,e=new Array(s),i=0;i<s;++i)e[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=0,s=(r=this._[t]).length;i<s;++i)r[i].value.apply(n,e)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],s=0,r=i.length;s<r;++s)i[s].value.apply(n,e)}};const rh=XC;function Ug(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function KC(t,n){var e=Object.create(t.prototype);for(var i in n)e[i]=n[i];return e}function kl(){}var oh=1/.7,oa="\\s*([+-]?\\d+)\\s*",Il="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ks="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",A5=/^#([0-9a-f]{3,8})$/,M5=new RegExp("^rgb\\("+[oa,oa,oa]+"\\)$"),k5=new RegExp("^rgb\\("+[ks,ks,ks]+"\\)$"),L5=new RegExp("^rgba\\("+[oa,oa,oa,Il]+"\\)$"),I5=new RegExp("^rgba\\("+[ks,ks,ks,Il]+"\\)$"),O5=new RegExp("^hsl\\("+[Il,ks,ks]+"\\)$"),F5=new RegExp("^hsla\\("+[Il,ks,ks,Il]+"\\)$"),QC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function JC(){return this.rgb().formatHex()}function qC(){return this.rgb().formatRgb()}function Yr(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=A5.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?eT(n):3===e?new Oi(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?ah(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?ah(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=M5.exec(t))?new Oi(n[1],n[2],n[3],1):(n=k5.exec(t))?new Oi(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=L5.exec(t))?ah(n[1],n[2],n[3],n[4]):(n=I5.exec(t))?ah(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=O5.exec(t))?iT(n[1],n[2]/100,n[3]/100,1):(n=F5.exec(t))?iT(n[1],n[2]/100,n[3]/100,n[4]):QC.hasOwnProperty(t)?eT(QC[t]):"transparent"===t?new Oi(NaN,NaN,NaN,0):null}function eT(t){return new Oi(t>>16&255,t>>8&255,255&t,1)}function ah(t,n,e,i){return i<=0&&(t=n=e=NaN),new Oi(t,n,e,i)}function N5(t){return t instanceof kl||(t=Yr(t)),t?new Oi((t=t.rgb()).r,t.g,t.b,t.opacity):new Oi}function Ol(t,n,e,i){return 1===arguments.length?N5(t):new Oi(t,n,e,null==i?1:i)}function Oi(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function tT(){return"#"+Wg(this.r)+Wg(this.g)+Wg(this.b)}function nT(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Wg(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function iT(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Ls(t,n,e,i)}function sT(t){if(t instanceof Ls)return new Ls(t.h,t.s,t.l,t.opacity);if(t instanceof kl||(t=Yr(t)),!t)return new Ls;if(t instanceof Ls)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,s=Math.min(n,e,i),r=Math.max(n,e,i),o=NaN,a=r-s,l=(r+s)/2;return a?(o=n===r?(e-i)/a+6*(e<i):e===r?(i-n)/a+2:(n-e)/a+4,a/=l<.5?r+s:2-r-s,o*=60):a=l>0&&l<1?0:o,new Ls(o,a,l,t.opacity)}function Ls(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function Yg(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function rT(t,n,e,i,s){var r=t*t,o=r*t;return((1-3*t+3*r-o)*n+(4-6*r+3*o)*e+(1+3*t+3*r-3*o)*i+o*s)/6}function Xg(t){return function(){return t}}function aT(t,n){var e=n-t;return e?function oT(t,n){return function(e){return t+e*n}}(t,e):Xg(isNaN(t)?n:t)}Ug(kl,Yr,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:JC,formatHex:JC,formatHsl:function P5(){return sT(this).formatHsl()},formatRgb:qC,toString:qC}),Ug(Oi,Ol,KC(kl,{brighter:function(t){return t=null==t?oh:Math.pow(oh,t),new Oi(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Oi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tT,formatHex:tT,formatRgb:nT,toString:nT})),Ug(Ls,function R5(t,n,e,i){return 1===arguments.length?sT(t):new Ls(t,n,e,null==i?1:i)},KC(kl,{brighter:function(t){return t=null==t?oh:Math.pow(oh,t),new Ls(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ls(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,s=2*e-i;return new Oi(Yg(t>=240?t-240:t+120,s,i),Yg(t,s,i),Yg(t<120?t+240:t-120,s,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const lh=function t(n){var e=function z5(t){return 1==(t=+t)?aT:function(n,e){return e-n?function H5(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):Xg(isNaN(n)?e:n)}}(n);function i(s,r){var o=e((s=Ol(s)).r,(r=Ol(r)).r),a=e(s.g,r.g),l=e(s.b,r.b),c=aT(s.opacity,r.opacity);return function(h){return s.r=o(h),s.g=a(h),s.b=l(h),s.opacity=c(h),s+""}}return i.gamma=t,i}(1);function lT(t){return function(n){var o,a,e=n.length,i=new Array(e),s=new Array(e),r=new Array(e);for(o=0;o<e;++o)a=Ol(n[o]),i[o]=a.r||0,s[o]=a.g||0,r[o]=a.b||0;return i=t(i),s=t(s),r=t(r),a.opacity=1,function(l){return a.r=i(l),a.g=s(l),a.b=r(l),a+""}}}function ds(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}lT(function B5(t){var n=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),s=t[i],r=t[i+1];return rT((e-i/n)*n,i>0?t[i-1]:2*s-r,s,r,i<n-1?t[i+2]:2*r-s)}}),lT(function V5(t){var n=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*n);return rT((e-i/n)*n,t[(i+n-1)%n],t[i%n],t[(i+1)%n],t[(i+2)%n])}});var Zg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kg=new RegExp(Zg.source,"g");function uT(t,n){var i,s,r,e=Zg.lastIndex=Kg.lastIndex=0,o=-1,a=[],l=[];for(t+="",n+="";(i=Zg.exec(t))&&(s=Kg.exec(n));)(r=s.index)>e&&(r=n.slice(e,r),a[o]?a[o]+=r:a[++o]=r),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,l.push({i:o,x:ds(i,s)})),e=Kg.lastIndex;return e<n.length&&(r=n.slice(e),a[o]?a[o]+=r:a[++o]=r),a.length<2?l[0]?function U5(t){return function(n){return t(n)+""}}(l[0].x):function $5(t){return function(){return t}}(n):(n=l.length,function(c){for(var b,h=0;h<n;++h)a[(b=l[h]).i]=b.x(c);return a.join("")})}var ch,Nl,aa=0,Fl=0,Pl=0,uh=0,Zr=0,hh=0,Rl="object"==typeof performance&&performance.now?performance:Date,pT="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function la(){return Zr||(pT(K5),Zr=Rl.now()+hh)}function K5(){Zr=0}function Bl(){this._call=this._time=this._next=null}function dh(t,n,e){var i=new Bl;return i.restart(t,n,e),i}function gT(){la(),++aa;for(var n,t=ch;t;)(n=Zr-t._time)>=0&&t._call.call(null,n),t=t._next;--aa}function mT(){Zr=(uh=Rl.now())+hh,aa=Fl=0;try{gT()}finally{aa=0,function J5(){for(var t,e,n=ch,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ch=e);Nl=t,Qg(i)}(),Zr=0}}function Q5(){var t=Rl.now(),n=t-uh;n>1e3&&(hh-=n,uh=t)}function Qg(t){aa||(Fl&&(Fl=clearTimeout(Fl)),t-Zr>24?(t<1/0&&(Fl=setTimeout(mT,t-Rl.now()-hh)),Pl&&(Pl=clearInterval(Pl))):(Pl||(uh=Rl.now(),Pl=setInterval(Q5,1e3)),aa=1,pT(mT)))}function Jg(t,n,e){var i=new Bl;return i.restart(function(s){i.stop(),t(s+n)},n=null==n?0:+n,e),i}Bl.prototype=dh.prototype={constructor:Bl,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?la():+e)+(null==n?0:+n),!this._next&&Nl!==this&&(Nl?Nl._next=this:ch=this,Nl=this),this._call=t,this._time=e,Qg()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qg())}};var q5=rh("start","end","cancel","interrupt"),eH=[];function gh(t,n,e,i,s,r){var o=t.__transition;if(o){if(e in o)return}else t.__transition={};!function tH(t,n,e){var s,i=t.__transition;function o(c){var h,b,T,M;if(1!==e.state)return l();for(h in i)if((M=i[h]).name===e.name){if(3===M.state)return Jg(o);4===M.state?(M.state=6,M.timer.stop(),M.on.call("interrupt",t,t.__data__,M.index,M.group),delete i[h]):+h<n&&(M.state=6,M.timer.stop(),M.on.call("cancel",t,t.__data__,M.index,M.group),delete i[h])}if(Jg(function(){3===e.state&&(e.state=4,e.timer.restart(a,e.delay,e.time),a(c))}),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,s=new Array(T=e.tween.length),h=0,b=-1;h<T;++h)(M=e.tween[h].value.call(t,t.__data__,e.index,e.group))&&(s[++b]=M);s.length=b+1}}function a(c){for(var h=c<e.duration?e.ease.call(null,c/e.duration):(e.timer.restart(l),e.state=5,1),b=-1,T=s.length;++b<T;)s[b].call(t,h);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),l())}function l(){for(var c in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=dh(function r(c){e.state=1,e.timer.restart(o,e.delay,e.time),e.delay<=c&&o(c-e.delay)},0,e.time)}(t,e,{name:n,index:i,group:s,on:q5,tween:eH,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:0})}function tm(t,n){var e=fs(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function Zs(t,n){var e=fs(t,n);if(e.state>3)throw new Error("too late; already running");return e}function fs(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var Vl,sm,wT,mh,xT=180/Math.PI,im={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function bT(t,n,e,i,s,r){var o,a,l;return(o=Math.sqrt(t*t+n*n))&&(t/=o,n/=o),(l=t*e+n*i)&&(e-=t*l,i-=n*l),(a=Math.sqrt(e*e+i*i))&&(e/=a,i/=a,l/=a),t*i<n*e&&(t=-t,n=-n,l=-l,o=-o),{translateX:s,translateY:r,rotate:Math.atan2(n,t)*xT,skewX:Math.atan(l)*xT,scaleX:o,scaleY:a}}function CT(t,n,e,i){function s(c){return c.length?c.pop()+" ":""}return function(c,h){var b=[],T=[];return c=t(c),h=t(h),function r(c,h,b,T,M,I){if(c!==b||h!==T){var B=M.push("translate(",null,n,null,e);I.push({i:B-4,x:ds(c,b)},{i:B-2,x:ds(h,T)})}else(b||T)&&M.push("translate("+b+n+T+e)}(c.translateX,c.translateY,h.translateX,h.translateY,b,T),function o(c,h,b,T){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),T.push({i:b.push(s(b)+"rotate(",null,i)-2,x:ds(c,h)})):h&&b.push(s(b)+"rotate("+h+i)}(c.rotate,h.rotate,b,T),function a(c,h,b,T){c!==h?T.push({i:b.push(s(b)+"skewX(",null,i)-2,x:ds(c,h)}):h&&b.push(s(b)+"skewX("+h+i)}(c.skewX,h.skewX,b,T),function l(c,h,b,T,M,I){if(c!==b||h!==T){var B=M.push(s(M)+"scale(",null,",",null,")");I.push({i:B-4,x:ds(c,b)},{i:B-2,x:ds(h,T)})}else(1!==b||1!==T)&&M.push(s(M)+"scale("+b+","+T+")")}(c.scaleX,c.scaleY,h.scaleX,h.scaleY,b,T),c=h=null,function(M){for(var P,I=-1,B=T.length;++I<B;)b[(P=T[I]).i]=P.x(M);return b.join("")}}}var rH=CT(function iH(t){return"none"===t?im:(Vl||(Vl=document.createElement("DIV"),sm=document.documentElement,wT=document.defaultView),Vl.style.transform=t,t=wT.getComputedStyle(sm.appendChild(Vl),null).getPropertyValue("transform"),sm.removeChild(Vl),bT(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),oH=CT(function sH(t){return null!=t&&(mh||(mh=document.createElementNS("http://www.w3.org/2000/svg","g")),mh.setAttribute("transform",t),t=mh.transform.baseVal.consolidate())?bT((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):im},", ",")",")");function aH(t,n){var e,i;return function(){var s=Zs(this,t),r=s.tween;if(r!==e)for(var o=0,a=(i=e=r).length;o<a;++o)if(i[o].name===n){(i=i.slice()).splice(o,1);break}s.tween=i}}function lH(t,n,e){var i,s;if("function"!=typeof e)throw new Error;return function(){var r=Zs(this,t),o=r.tween;if(o!==i){s=(i=o).slice();for(var a={name:n,value:e},l=0,c=s.length;l<c;++l)if(s[l].name===n){s[l]=a;break}l===c&&s.push(a)}r.tween=s}}function rm(t,n,e){var i=t._id;return t.each(function(){var s=Zs(this,i);(s.value||(s.value={}))[n]=e.apply(this,arguments)}),function(s){return fs(s,i).value[n]}}function TT(t,n){var e;return("number"==typeof n?ds:n instanceof Yr?lh:(e=Yr(n))?(n=e,lh):uT)(t,n)}function uH(t){return function(){this.removeAttribute(t)}}function hH(t){return function(){this.removeAttributeNS(t.space,t.local)}}function dH(t,n,e){var i,r,s=e+"";return function(){var o=this.getAttribute(t);return o===s?null:o===i?r:r=n(i=o,e)}}function fH(t,n,e){var i,r,s=e+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===s?null:o===i?r:r=n(i=o,e)}}function pH(t,n,e){var i,s,r;return function(){var o,l,a=e(this);return null==a?void this.removeAttribute(t):(o=this.getAttribute(t))===(l=a+"")?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}function gH(t,n,e){var i,s,r;return function(){var o,l,a=e(this);return null==a?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local))===(l=a+"")?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}function vH(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function _H(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function yH(t,n){var e,i;function s(){var r=n.apply(this,arguments);return r!==i&&(e=(i=r)&&_H(t,r)),e}return s._value=n,s}function xH(t,n){var e,i;function s(){var r=n.apply(this,arguments);return r!==i&&(e=(i=r)&&vH(t,r)),e}return s._value=n,s}function wH(t,n){return function(){tm(this,t).delay=+n.apply(this,arguments)}}function CH(t,n){return n=+n,function(){tm(this,t).delay=n}}function DH(t,n){return function(){Zs(this,t).duration=+n.apply(this,arguments)}}function EH(t,n){return n=+n,function(){Zs(this,t).duration=n}}function AH(t,n){if("function"!=typeof n)throw new Error;return function(){Zs(this,t).ease=n}}function OH(t,n,e){var i,s,r=function IH(t){return(t+"").trim().split(/^|\s+/).every(function(n){var e=n.indexOf(".");return e>=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?tm:Zs;return function(){var o=r(this,t),a=o.on;a!==i&&(s=(i=a).copy()).on(n,e),o.on=s}}var VH=Ml.prototype.constructor;function DT(t){return function(){this.style.removeProperty(t)}}function WH(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}function YH(t,n,e){var i,s;function r(){var o=n.apply(this,arguments);return o!==s&&(i=(s=o)&&WH(t,o,e)),i}return r._value=n,r}function JH(t){return function(n){this.textContent=t.call(this,n)}}function qH(t){var n,e;function i(){var s=t.apply(this,arguments);return s!==e&&(n=(e=s)&&JH(s)),n}return i._value=t,i}var i4=0;function Ks(t,n,e,i){this._groups=t,this._parents=n,this._name=e,this._id=i}function ET(){return++i4}var ca=Ml.prototype;Ks.prototype=function s4(t){return Ml().transition(t)}.prototype={constructor:Ks,select:function RH(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=zg(t));for(var i=this._groups,s=i.length,r=new Array(s),o=0;o<s;++o)for(var h,b,a=i[o],l=a.length,c=r[o]=new Array(l),T=0;T<l;++T)(h=a[T])&&(b=t.call(h,h.__data__,T,a))&&("__data__"in h&&(b.__data__=h.__data__),c[T]=b,gh(c[T],n,e,T,c,fs(h,e)));return new Ks(r,this._parents,n,e)},selectAll:function BH(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=IC(t));for(var i=this._groups,s=i.length,r=[],o=[],a=0;a<s;++a)for(var h,l=i[a],c=l.length,b=0;b<c;++b)if(h=l[b]){for(var M,T=t.call(h,h.__data__,b,l),I=fs(h,e),B=0,P=T.length;B<P;++B)(M=T[B])&&gh(M,n,e,B,T,I);r.push(T),o.push(h)}return new Ks(r,o,n,e)},filter:function kH(t){"function"!=typeof t&&(t=OC(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,r=n[s],o=r.length,a=i[s]=[],c=0;c<o;++c)(l=r[c])&&t.call(l,l.__data__,c,r)&&a.push(l);return new Ks(i,this._parents,this._name,this._id)},merge:function LH(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,i=n.length,r=Math.min(i,e.length),o=new Array(i),a=0;a<r;++a)for(var T,l=n[a],c=e[a],h=l.length,b=o[a]=new Array(h),M=0;M<h;++M)(T=l[M]||c[M])&&(b[M]=T);for(;a<i;++a)o[a]=n[a];return new Ks(o,this._parents,this._name,this._id)},selection:function HH(){return new VH(this._groups,this._parents)},transition:function t4(){for(var t=this._name,n=this._id,e=ET(),i=this._groups,s=i.length,r=0;r<s;++r)for(var l,o=i[r],a=o.length,c=0;c<a;++c)if(l=o[c]){var h=fs(l,n);gh(l,t,e,c,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Ks(i,this._parents,t,e)},call:ca.call,nodes:ca.nodes,node:ca.node,size:ca.size,empty:ca.empty,each:ca.each,on:function FH(t,n){var e=this._id;return arguments.length<2?fs(this.node(),e).on.on(t):this.each(OH(e,t,n))},attr:function mH(t,n){var e=ih(t),i="transform"===e?oH:TT;return this.attrTween(t,"function"==typeof n?(e.local?gH:pH)(e,i,rm(this,"attr."+t,n)):null==n?(e.local?hH:uH)(e):(e.local?fH:dH)(e,i,n))},attrTween:function bH(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=ih(t);return this.tween(e,(i.local?yH:xH)(i,n))},style:function UH(t,n,e){var i="transform"==(t+="")?rH:TT;return null==n?this.styleTween(t,function zH(t,n){var e,i,s;return function(){var r=ra(this,t),o=(this.style.removeProperty(t),ra(this,t));return r===o?null:r===e&&o===i?s:s=n(e=r,i=o)}}(t,i)).on("end.style."+t,DT(t)):"function"==typeof n?this.styleTween(t,function GH(t,n,e){var i,s,r;return function(){var o=ra(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=ra(this,t)),o===l?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}(t,i,rm(this,"style."+t,n))).each(function $H(t,n){var e,i,s,a,r="style."+n,o="end."+r;return function(){var l=Zs(this,t),c=l.on,h=null==l.value[r]?a||(a=DT(n)):void 0;(c!==e||s!==h)&&(i=(e=c).copy()).on(o,s=h),l.on=i}}(this._id,t)):this.styleTween(t,function jH(t,n,e){var i,r,s=e+"";return function(){var o=ra(this,t);return o===s?null:o===i?r:r=n(i=o,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function XH(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,YH(t,n,null==e?"":e))},text:function QH(t){return this.tween("text","function"==typeof t?function KH(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(rm(this,"text",t)):function ZH(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function e4(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,qH(t))},remove:function NH(){return this.on("end.remove",function PH(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function cH(t,n){var e=this._id;if(t+="",arguments.length<2){for(var o,i=fs(this.node(),e).tween,s=0,r=i.length;s<r;++s)if((o=i[s]).name===t)return o.value;return null}return this.each((null==n?aH:lH)(e,t,n))},delay:function TH(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?wH:CH)(n,t)):fs(this.node(),n).delay},duration:function SH(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?DH:EH)(n,t)):fs(this.node(),n).duration},ease:function MH(t){var n=this._id;return arguments.length?this.each(AH(n,t)):fs(this.node(),n).ease},end:function n4(){var t,n,e=this,i=e._id,s=e.size();return new Promise(function(r,o){var a={value:o},l={value:function(){0==--s&&r()}};e.each(function(){var c=Zs(this,i),h=c.on;h!==t&&((n=(t=h).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(l)),c.on=n})})}};var om={time:null,delay:0,duration:250,ease:function r4(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function o4(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return om.time=la(),om;return e}function Hl(t){return{type:t}}function fm(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function pm(t){let n=t,e=t;function i(o,a,l,c){for(null==l&&(l=0),null==c&&(c=o.length);l<c;){const h=l+c>>>1;e(o[h],a)<0?l=h+1:c=h}return l}return 1===t.length&&(n=(o,a)=>t(o)-a,e=function y4(t){return(n,e)=>fm(t(n),e)}(t)),{left:i,center:function r(o,a,l,c){null==l&&(l=0),null==c&&(c=o.length);const h=i(o,a,l,c-1);return h>l&&n(o[h-1],a)>-n(o[h],a)?h-1:h},right:function s(o,a,l,c){for(null==l&&(l=0),null==c&&(c=o.length);l<c;){const h=l+c>>>1;e(o[h],a)>0?c=h:l=h+1}return l}}}Ml.prototype.interrupt=function nH(t){return this.each(function(){!function nm(t,n){var i,s,o,e=t.__transition,r=!0;if(e){for(o in n=null==n?null:n+"",e)(i=e[o]).name===n?(s=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete e[o]):r=!1;r&&delete t.__transition}}(this,t)})},Ml.prototype.transition=function a4(t){var n,e;t instanceof Ks?(n=t._id,t=t._name):(n=ET(),(e=om).time=la(),t=null==t?null:t+"");for(var i=this._groups,s=i.length,r=0;r<s;++r)for(var l,o=i[r],a=o.length,c=0;c<a;++c)(l=o[c])&&gh(l,t,n,c,o,e||o4(l,n));return new Ks(i,this._parents,t,n)},["w","e"].map(Hl),["n","s"].map(Hl),["n","w","e","s","nw","ne","sw","se"].map(Hl);var gm=Math.sqrt(50),mm=Math.sqrt(10),vm=Math.sqrt(2);function _m(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),s=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),r=i/s;return r>=gm?s*=10:r>=mm?s*=5:r>=vm&&(s*=2),n<t?-s:s}const Js=1e3,Zi=6e4,qs=60*Zi,Kr=24*qs,ym=7*Kr,OT=30*Kr,xm=365*Kr;var bm=new Date,wm=new Date;function jn(t,n,e,i){function s(r){return t(r=0===arguments.length?new Date:new Date(+r)),r}return s.floor=function(r){return t(r=new Date(+r)),r},s.ceil=function(r){return t(r=new Date(r-1)),n(r,1),t(r),r},s.round=function(r){var o=s(r),a=s.ceil(r);return r-o<a-r?o:a},s.offset=function(r,o){return n(r=new Date(+r),null==o?1:Math.floor(o)),r},s.range=function(r,o,a){var c,l=[];if(r=s.ceil(r),a=null==a?1:Math.floor(a),!(r<o&&a>0))return l;do{l.push(c=new Date(+r)),n(r,a),t(r)}while(c<r&&r<o);return l},s.filter=function(r){return jn(function(o){if(o>=o)for(;t(o),!r(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;n(o,-1),!r(o););else for(;--a>=0;)for(;n(o,1),!r(o););})},e&&(s.count=function(r,o){return bm.setTime(+r),wm.setTime(+o),t(bm),t(wm),Math.floor(e(bm,wm))},s.every=function(r){return r=Math.floor(r),isFinite(r)&&r>0?r>1?s.filter(i?function(o){return i(o)%r==0}:function(o){return s.count(0,o)%r==0}):s:null}),s}var yh=jn(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});yh.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?jn(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):yh:null};const b4=yh;var FT=jn(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*Js)},function(t,n){return(n-t)/Js},function(t){return t.getUTCSeconds()});const zl=FT;var PT=jn(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Js)},function(t,n){t.setTime(+t+n*Zi)},function(t,n){return(n-t)/Zi},function(t){return t.getMinutes()});const NT=PT;var RT=jn(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Js-t.getMinutes()*Zi)},function(t,n){t.setTime(+t+n*qs)},function(t,n){return(n-t)/qs},function(t){return t.getHours()});const BT=RT;var VT=jn(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Zi)/Kr,t=>t.getDate()-1);const HT=VT;function Qr(t){return jn(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Zi)/ym})}var Cm=Qr(0),zT=(Qr(1),Qr(2),Qr(3),Qr(4),Qr(5),Qr(6),jn(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}));const jT=zT;var Tm=jn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Tm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?jn(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const GT=Tm;var $T=jn(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*Zi)},function(t,n){return(n-t)/Zi},function(t){return t.getUTCMinutes()});const A4=$T;var UT=jn(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*qs)},function(t,n){return(n-t)/qs},function(t){return t.getUTCHours()});const M4=UT;var WT=jn(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/Kr},function(t){return t.getUTCDate()-1});const k4=WT;function Jr(t){return jn(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/ym})}var YT=Jr(0),XT=(Jr(1),Jr(2),Jr(3),Jr(4),Jr(5),Jr(6),jn(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}));const R4=XT;var Dm=jn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Dm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?jn(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const B4=Dm;function ZT(t,n,e,i,s,r){const o=[[zl,1,Js],[zl,5,5e3],[zl,15,15e3],[zl,30,3e4],[r,1,Zi],[r,5,5*Zi],[r,15,15*Zi],[r,30,30*Zi],[s,1,qs],[s,3,3*qs],[s,6,6*qs],[s,12,12*qs],[i,1,Kr],[i,2,2*Kr],[e,1,ym],[n,1,OT],[n,3,3*OT],[t,1,xm]];function l(c,h,b){const T=Math.abs(h-c)/b,M=pm(([,,P])=>P).right(o,T);if(M===o.length)return t.every(_m(c/xm,h/xm,b));if(0===M)return b4.every(Math.max(_m(c,h,b),1));const[I,B]=o[T/o[M-1][2]<o[M][2]/T?M-1:M];return I.every(B)}return[function a(c,h,b){const T=h<c;T&&([c,h]=[h,c]);const M=b&&"function"==typeof b.range?b:l(c,h,b),I=M?M.range(c,+h+1):[];return T?I.reverse():I},l]}const[Pq,Nq]=ZT(B4,R4,YT,k4,M4,A4),[V4,H4]=ZT(GT,jT,Cm,HT,BT,NT);var Em=new Date,Sm=new Date;function er(t,n,e,i){function s(r){return t(r=0===arguments.length?new Date:new Date(+r)),r}return s.floor=function(r){return t(r=new Date(+r)),r},s.ceil=function(r){return t(r=new Date(r-1)),n(r,1),t(r),r},s.round=function(r){var o=s(r),a=s.ceil(r);return r-o<a-r?o:a},s.offset=function(r,o){return n(r=new Date(+r),null==o?1:Math.floor(o)),r},s.range=function(r,o,a){var c,l=[];if(r=s.ceil(r),a=null==a?1:Math.floor(a),!(r<o&&a>0))return l;do{l.push(c=new Date(+r)),n(r,a),t(r)}while(c<r&&r<o);return l},s.filter=function(r){return er(function(o){if(o>=o)for(;t(o),!r(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;n(o,-1),!r(o););else for(;--a>=0;)for(;n(o,1),!r(o););})},e&&(s.count=function(r,o){return Em.setTime(+r),Sm.setTime(+o),t(Em),t(Sm),Math.floor(e(Em,Sm))},s.every=function(r){return r=Math.floor(r),isFinite(r)&&r>0?r>1?s.filter(i?function(o){return i(o)%r==0}:function(o){return s.count(0,o)%r==0}):s:null}),s}var JT=6048e5;function qr(t){return er(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/JT})}var qT=qr(0),xh=qr(1),da=(qr(2),qr(3),qr(4)),e1=(qr(5),qr(6),er(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const t1=e1;function eo(t){return er(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-6e4*(e.getTimezoneOffset()-n.getTimezoneOffset()))/JT})}var n1=eo(0),bh=eo(1),fa=(eo(2),eo(3),eo(4)),s1=(eo(5),eo(6),er(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1}));const r1=s1;var Am=er(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Am.every=function(t){return isFinite(t=Math.floor(t))&&t>0?er(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const jl=Am;var Mm=er(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Mm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?er(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const Gl=Mm;function km(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Lm(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function $l(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var o1={"-":"",_:" ",0:"0"},Gn=/^\s*\d+/,K4=/^%/,Q4=/[\\^$*+?|[\]().{}]/g;function Pt(t,n,e){var i=t<0?"-":"",s=(i?-t:t)+"",r=s.length;return i+(r<e?new Array(e-r+1).join(n)+s:s)}function J4(t){return t.replace(Q4,"\\$&")}function Ul(t){return new RegExp("^(?:"+t.map(J4).join("|")+")","i")}function Wl(t){for(var n={},e=-1,i=t.length;++e<i;)n[t[e].toLowerCase()]=e;return n}function q4(t,n,e){var i=Gn.exec(n.slice(e,e+1));return i?(t.w=+i[0],e+i[0].length):-1}function e8(t,n,e){var i=Gn.exec(n.slice(e,e+1));return i?(t.u=+i[0],e+i[0].length):-1}function t8(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.U=+i[0],e+i[0].length):-1}function n8(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.V=+i[0],e+i[0].length):-1}function i8(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.W=+i[0],e+i[0].length):-1}function a1(t,n,e){var i=Gn.exec(n.slice(e,e+4));return i?(t.y=+i[0],e+i[0].length):-1}function l1(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function s8(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function r8(t,n,e){var i=Gn.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function o8(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function c1(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function a8(t,n,e){var i=Gn.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function u1(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function l8(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function c8(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function u8(t,n,e){var i=Gn.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function h8(t,n,e){var i=Gn.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function d8(t,n,e){var i=K4.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function f8(t,n,e){var i=Gn.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function p8(t,n,e){var i=Gn.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function h1(t,n){return Pt(t.getDate(),n,2)}function g8(t,n){return Pt(t.getHours(),n,2)}function m8(t,n){return Pt(t.getHours()%12||12,n,2)}function v8(t,n){return Pt(1+r1.count(jl(t),t),n,3)}function d1(t,n){return Pt(t.getMilliseconds(),n,3)}function _8(t,n){return d1(t,n)+"000"}function y8(t,n){return Pt(t.getMonth()+1,n,2)}function x8(t,n){return Pt(t.getMinutes(),n,2)}function b8(t,n){return Pt(t.getSeconds(),n,2)}function w8(t){var n=t.getDay();return 0===n?7:n}function C8(t,n){return Pt(n1.count(jl(t)-1,t),n,2)}function f1(t){var n=t.getDay();return n>=4||0===n?fa(t):fa.ceil(t)}function T8(t,n){return t=f1(t),Pt(fa.count(jl(t),t)+(4===jl(t).getDay()),n,2)}function D8(t){return t.getDay()}function E8(t,n){return Pt(bh.count(jl(t)-1,t),n,2)}function S8(t,n){return Pt(t.getFullYear()%100,n,2)}function A8(t,n){return Pt((t=f1(t)).getFullYear()%100,n,2)}function M8(t,n){return Pt(t.getFullYear()%1e4,n,4)}function k8(t,n){var e=t.getDay();return Pt((t=e>=4||0===e?fa(t):fa.ceil(t)).getFullYear()%1e4,n,4)}function L8(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Pt(n/60|0,"0",2)+Pt(n%60,"0",2)}function p1(t,n){return Pt(t.getUTCDate(),n,2)}function I8(t,n){return Pt(t.getUTCHours(),n,2)}function O8(t,n){return Pt(t.getUTCHours()%12||12,n,2)}function F8(t,n){return Pt(1+t1.count(Gl(t),t),n,3)}function g1(t,n){return Pt(t.getUTCMilliseconds(),n,3)}function P8(t,n){return g1(t,n)+"000"}function N8(t,n){return Pt(t.getUTCMonth()+1,n,2)}function R8(t,n){return Pt(t.getUTCMinutes(),n,2)}function B8(t,n){return Pt(t.getUTCSeconds(),n,2)}function V8(t){var n=t.getUTCDay();return 0===n?7:n}function H8(t,n){return Pt(qT.count(Gl(t)-1,t),n,2)}function m1(t){var n=t.getUTCDay();return n>=4||0===n?da(t):da.ceil(t)}function z8(t,n){return t=m1(t),Pt(da.count(Gl(t),t)+(4===Gl(t).getUTCDay()),n,2)}function j8(t){return t.getUTCDay()}function G8(t,n){return Pt(xh.count(Gl(t)-1,t),n,2)}function $8(t,n){return Pt(t.getUTCFullYear()%100,n,2)}function U8(t,n){return Pt((t=m1(t)).getUTCFullYear()%100,n,2)}function W8(t,n){return Pt(t.getUTCFullYear()%1e4,n,4)}function Y8(t,n){var e=t.getUTCDay();return Pt((t=e>=4||0===e?da(t):da.ceil(t)).getUTCFullYear()%1e4,n,4)}function X8(){return"+0000"}function v1(){return"%"}function _1(t){return+t}function y1(t){return Math.floor(+t/1e3)}function Yl(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}!function J8(t){(function Z4(t){var n=t.dateTime,e=t.date,i=t.time,s=t.periods,r=t.days,o=t.shortDays,a=t.months,l=t.shortMonths,c=Ul(s),h=Wl(s),b=Ul(r),T=Wl(r),M=Ul(o),I=Wl(o),B=Ul(a),P=Wl(a),K=Ul(l),Q=Wl(l),ne={a:function Ve(Ne){return o[Ne.getDay()]},A:function Re(Ne){return r[Ne.getDay()]},b:function We(Ne){return l[Ne.getMonth()]},B:function it(Ne){return a[Ne.getMonth()]},c:null,d:h1,e:h1,f:_8,g:A8,G:k8,H:g8,I:m8,j:v8,L:d1,m:y8,M:x8,p:function Et(Ne){return s[+(Ne.getHours()>=12)]},q:function hn(Ne){return 1+~~(Ne.getMonth()/3)},Q:_1,s:y1,S:b8,u:w8,U:C8,V:T8,w:D8,W:E8,x:null,X:null,y:S8,Y:M8,Z:L8,"%":v1},ge={a:function Bn(Ne){return o[Ne.getUTCDay()]},A:function xt(Ne){return r[Ne.getUTCDay()]},b:function Ri(Ne){return l[Ne.getUTCMonth()]},B:function Ps(Ne){return a[Ne.getUTCMonth()]},c:null,d:p1,e:p1,f:P8,g:U8,G:Y8,H:I8,I:O8,j:F8,L:g1,m:N8,M:R8,p:function Zt(Ne){return s[+(Ne.getUTCHours()>=12)]},q:function Vn(Ne){return 1+~~(Ne.getUTCMonth()/3)},Q:_1,s:y1,S:B8,u:V8,U:H8,V:z8,w:j8,W:G8,x:null,X:null,y:$8,Y:W8,Z:X8,"%":v1},Ce={a:function Ze(Ne,tt,gt){var Me=M.exec(tt.slice(gt));return Me?(Ne.w=I[Me[0].toLowerCase()],gt+Me[0].length):-1},A:function Ue(Ne,tt,gt){var Me=b.exec(tt.slice(gt));return Me?(Ne.w=T[Me[0].toLowerCase()],gt+Me[0].length):-1},b:function ke(Ne,tt,gt){var Me=K.exec(tt.slice(gt));return Me?(Ne.m=Q[Me[0].toLowerCase()],gt+Me[0].length):-1},B:function He(Ne,tt,gt){var Me=B.exec(tt.slice(gt));return Me?(Ne.m=P[Me[0].toLowerCase()],gt+Me[0].length):-1},c:function Vt(Ne,tt,gt){return Je(Ne,n,tt,gt)},d:c1,e:c1,f:h8,g:l1,G:a1,H:u1,I:u1,j:a8,L:u8,m:o8,M:l8,p:function Ge(Ne,tt,gt){var Me=c.exec(tt.slice(gt));return Me?(Ne.p=h[Me[0].toLowerCase()],gt+Me[0].length):-1},q:r8,Q:f8,s:p8,S:c8,u:e8,U:t8,V:n8,w:q4,W:i8,x:function Dt(Ne,tt,gt){return Je(Ne,e,tt,gt)},X:function Ae(Ne,tt,gt){return Je(Ne,i,tt,gt)},y:l1,Y:a1,Z:s8,"%":d8};function we(Ne,tt){return function(gt){var fi,ir,pi,Me=[],Xn=-1,Ft=0,ei=Ne.length;for(gt instanceof Date||(gt=new Date(+gt));++Xn<ei;)37===Ne.charCodeAt(Xn)&&(Me.push(Ne.slice(Ft,Xn)),null!=(ir=o1[fi=Ne.charAt(++Xn)])?fi=Ne.charAt(++Xn):ir="e"===fi?" ":"0",(pi=tt[fi])&&(fi=pi(gt,ir)),Me.push(fi),Ft=Xn+1);return Me.push(Ne.slice(Ft,Xn)),Me.join("")}}function Oe(Ne,tt){return function(gt){var Ft,ei,Me=$l(1900,void 0,1);if(Je(Me,Ne,gt+="",0)!=gt.length)return null;if("Q"in Me)return new Date(Me.Q);if("s"in Me)return new Date(1e3*Me.s+("L"in Me?Me.L:0));if(tt&&!("Z"in Me)&&(Me.Z=0),"p"in Me&&(Me.H=Me.H%12+12*Me.p),void 0===Me.m&&(Me.m="q"in Me?Me.q:0),"V"in Me){if(Me.V<1||Me.V>53)return null;"w"in Me||(Me.w=1),"Z"in Me?(ei=(Ft=Lm($l(Me.y,0,1))).getUTCDay(),Ft=ei>4||0===ei?xh.ceil(Ft):xh(Ft),Ft=t1.offset(Ft,7*(Me.V-1)),Me.y=Ft.getUTCFullYear(),Me.m=Ft.getUTCMonth(),Me.d=Ft.getUTCDate()+(Me.w+6)%7):(ei=(Ft=km($l(Me.y,0,1))).getDay(),Ft=ei>4||0===ei?bh.ceil(Ft):bh(Ft),Ft=r1.offset(Ft,7*(Me.V-1)),Me.y=Ft.getFullYear(),Me.m=Ft.getMonth(),Me.d=Ft.getDate()+(Me.w+6)%7)}else("W"in Me||"U"in Me)&&("w"in Me||(Me.w="u"in Me?Me.u%7:"W"in Me?1:0),ei="Z"in Me?Lm($l(Me.y,0,1)).getUTCDay():km($l(Me.y,0,1)).getDay(),Me.m=0,Me.d="W"in Me?(Me.w+6)%7+7*Me.W-(ei+5)%7:Me.w+7*Me.U-(ei+6)%7);return"Z"in Me?(Me.H+=Me.Z/100|0,Me.M+=Me.Z%100,Lm(Me)):km(Me)}}function Je(Ne,tt,gt,Me){for(var fi,ir,Xn=0,Ft=tt.length,ei=gt.length;Xn<Ft;){if(Me>=ei)return-1;if(37===(fi=tt.charCodeAt(Xn++))){if(fi=tt.charAt(Xn++),!(ir=Ce[fi in o1?tt.charAt(Xn++):fi])||(Me=ir(Ne,gt,Me))<0)return-1}else if(fi!=gt.charCodeAt(Me++))return-1}return Me}return ne.x=we(e,ne),ne.X=we(i,ne),ne.c=we(n,ne),ge.x=we(e,ge),ge.X=we(i,ge),ge.c=we(n,ge),{format:function(Ne){var tt=we(Ne+="",ne);return tt.toString=function(){return Ne},tt},parse:function(Ne){var tt=Oe(Ne+="",!1);return tt.toString=function(){return Ne},tt},utcFormat:function(Ne){var tt=we(Ne+="",ge);return tt.toString=function(){return Ne},tt},utcParse:function(Ne){var tt=Oe(Ne+="",!0);return tt.toString=function(){return Ne},tt}}})(t)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),pm(fm),pm(function b1(t){return null===t?NaN:+t});var A1,u6=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wh(t){if(!(n=u6.exec(t)))throw new Error("invalid format: "+t);var n;return new Om({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Om(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ch(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function M1(t,n){var e=Ch(t,n);if(!e)return t+"";var i=e[0],s=e[1];return s<0?"0."+new Array(-s).join("0")+i:i.length>s+1?i.slice(0,s+1)+"."+i.slice(s+1):i+new Array(s-i.length+2).join("0")}wh.prototype=Om.prototype,Om.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const k1={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function h6(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return M1(100*t,n)},r:M1,s:function m6(t,n){var e=Ch(t,n);if(!e)return t+"";var i=e[0],s=e[1],r=s-(A1=3*Math.max(-8,Math.min(8,Math.floor(s/3))))+1,o=i.length;return r===o?i:r>o?i+new Array(r-o+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+Ch(t,Math.max(0,n+r-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function L1(t){return t}var I1=Array.prototype.map,O1=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function v6(t){var n=void 0===t.grouping||void 0===t.thousands?L1:function f6(t,n){return function(e,i){for(var s=e.length,r=[],o=0,a=t[0],l=0;s>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(e.substring(s-=a,s+a)),!((l+=a+1)>i));)a=t[o=(o+1)%t.length];return r.reverse().join(n)}}(I1.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",r=void 0===t.numerals?L1:function p6(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(I1.call(t.numerals,String)),o=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(b){var T=(b=wh(b)).fill,M=b.align,I=b.sign,B=b.symbol,P=b.zero,K=b.width,Q=b.comma,ne=b.precision,ge=b.trim,Ce=b.type;"n"===Ce?(Q=!0,Ce="g"):k1[Ce]||(void 0===ne&&(ne=12),ge=!0,Ce="g"),(P||"0"===T&&"="===M)&&(P=!0,T="0",M="=");var we="$"===B?e:"#"===B&&/[boxX]/.test(Ce)?"0"+Ce.toLowerCase():"",Oe="$"===B?i:/[%p]/.test(Ce)?o:"",Je=k1[Ce],Ge=/[defgprs%]/.test(Ce);function Ze(Ue){var Vt,Dt,Ae,ke=we,He=Oe;if("c"===Ce)He=Je(Ue)+He,Ue="";else{var Ve=(Ue=+Ue)<0||1/Ue<0;if(Ue=isNaN(Ue)?l:Je(Math.abs(Ue),ne),ge&&(Ue=function g6(t){e:for(var s,n=t.length,e=1,i=-1;e<n;++e)switch(t[e]){case".":i=s=e;break;case"0":0===i&&(i=e),s=e;break;default:if(!+t[e])break e;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(s+1):t}(Ue)),Ve&&0==+Ue&&"+"!==I&&(Ve=!1),ke=(Ve?"("===I?I:a:"-"===I||"("===I?"":I)+ke,He=("s"===Ce?O1[8+A1/3]:"")+He+(Ve&&"("===I?")":""),Ge)for(Vt=-1,Dt=Ue.length;++Vt<Dt;)if(48>(Ae=Ue.charCodeAt(Vt))||Ae>57){He=(46===Ae?s+Ue.slice(Vt+1):Ue.slice(Vt))+He,Ue=Ue.slice(0,Vt);break}}Q&&!P&&(Ue=n(Ue,1/0));var Re=ke.length+Ue.length+He.length,We=Re<K?new Array(K-Re+1).join(T):"";switch(Q&&P&&(Ue=n(We+Ue,We.length?K-He.length:1/0),We=""),M){case"<":Ue=ke+Ue+He+We;break;case"=":Ue=ke+We+Ue+He;break;case"^":Ue=We.slice(0,Re=We.length>>1)+ke+Ue+He+We.slice(Re);break;default:Ue=We+ke+Ue+He}return r(Ue)}return ne=void 0===ne?6:/[gprs]/.test(Ce)?Math.max(1,Math.min(21,ne)):Math.max(0,Math.min(20,ne)),Ze.toString=function(){return b+""},Ze}return{format:c,formatPrefix:function h(b,T){var M=c(((b=wh(b)).type="f",b)),I=3*Math.max(-8,Math.min(8,Math.floor(function ma(t){return(t=Ch(Math.abs(t)))?t[1]:NaN}(T)/3))),B=Math.pow(10,-I),P=O1[8+I/3];return function(K){return M(B*K)+P}}}}!function _6(t){v6(t)}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const N1=Symbol("implicit");function Dh(){var t=new Map,n=[],e=[],i=N1;function s(r){var o=r+"",a=t.get(o);if(!a){if(i!==N1)return i;t.set(o,a=n.push(r))}return e[(a-1)%e.length]}return s.domain=function(r){if(!arguments.length)return n.slice();n=[],t=new Map;for(const o of r){const a=o+"";t.has(a)||t.set(a,n.push(o))}return s},s.range=function(r){return arguments.length?(e=Array.from(r),s):e.slice()},s.unknown=function(r){return arguments.length?(i=r,s):i},s.copy=function(){return Dh(n,e).unknown(i)},Yl.apply(s,arguments),s}function V1(t){this._context=t}function io(t){return new V1(t)}V1.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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Pm=Math.PI,Nm=2*Pm,so=1e-6,T6=Nm-so;function Rm(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function H1(){return new Rm}Rm.prototype=H1.prototype={constructor:Rm,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,s,r){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+s)+","+(this._y1=+r)},arcTo:function(t,n,e,i,s){var r=this._x1,o=this._y1,a=(e=+e)-(t=+t),l=(i=+i)-(n=+n),c=r-t,h=o-n,b=c*c+h*h;if((s=+s)<0)throw new Error("negative radius: "+s);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(b>so)if(Math.abs(h*a-l*c)>so&&s){var T=e-r,M=i-o,I=a*a+l*l,B=T*T+M*M,P=Math.sqrt(I),K=Math.sqrt(b),Q=s*Math.tan((Pm-Math.acos((I+b-B)/(2*P*K)))/2),ne=Q/K,ge=Q/P;Math.abs(ne-1)>so&&(this._+="L"+(t+ne*c)+","+(n+ne*h)),this._+="A"+s+","+s+",0,0,"+ +(h*T>c*M)+","+(this._x1=t+ge*a)+","+(this._y1=n+ge*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,s,r){t=+t,n=+n,r=!!r;var o=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+o,c=n+a,h=1^r,b=r?i-s:s-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>so||Math.abs(this._y1-c)>so)&&(this._+="L"+l+","+c),e&&(b<0&&(b=b%Nm+Nm),b>T6?this._+="A"+e+","+e+",0,1,"+h+","+(t-o)+","+(n-a)+"A"+e+","+e+",0,1,"+h+","+(this._x1=l)+","+(this._y1=c):b>so&&(this._+="A"+e+","+e+",0,"+ +(b>=Pm)+","+h+","+(this._x1=t+e*Math.cos(s))+","+(this._y1=n+e*Math.sin(s))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const Bm=H1;function $t(t){return function(){return t}}function z1(t){return t[0]}function j1(t){return t[1]}function G1(){}function Vm(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function $1(t,n){this._context=t,this._k=(1-n)/6}function U1(t,n){this._context=t,this._k=(1-n)/6}function W1(t){this._curve=t}function j6(t,n,e,i,s){for(var o,r=t.children,a=-1,l=r.length,c=t.value&&(i-n)/t.value;++a<l;)(o=r[a]).y0=e,o.y1=s,o.x0=n,o.x1=n+=o.value*c}function G6(t,n,e,i,s){for(var o,r=t.children,a=-1,l=r.length,c=t.value&&(s-e)/t.value;++a<l;)(o=r[a]).x0=n,o.x1=i,o.y0=e,o.y1=e+=o.value*c}function X6(t){var n=0,e=t.children,i=e&&e.length;if(i)for(;--i>=0;)n+=e[i].value;else n=1;t.value=n}function Q1(t,n){var s,o,a,l,c,e=new Jl(t),i=+t.value&&(e.value=t.value),r=[e];for(null==n&&(n=lz);s=r.pop();)if(i&&(s.value=+s.data.value),(a=n(s.data))&&(c=a.length))for(s.children=new Array(c),l=c-1;l>=0;--l)r.push(o=s.children[l]=new Jl(a[l])),o.parent=s,o.depth=s.depth+1;return e.eachBefore(J1)}function lz(t){return t.children}function cz(t){t.data=t.data.data}function J1(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Jl(t){this.data=t,this.depth=this.height=0,this.parent=null}$1.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:Vm(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Vm(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new $1(i,n)}return e.tension=function(i){return t(+i)},e}(0),U1.prototype={areaStart:G1,areaEnd:G1,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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Vm(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new U1(i,n)}return e.tension=function(i){return t(+i)},e}(0),function Y1(t){function n(e){return new W1(t(e))}return n._curve=t,n}(io),W1.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,function t(n){function e(i,s,r,o,a){!function U6(t,n,e,i,s,r){for(var l,c,M,I,P,K,Q,ne,ge,Ce,we,o=[],a=n.children,h=0,b=0,T=a.length,B=n.value;h<T;){M=s-e,I=r-i;do{P=a[b++].value}while(!P&&b<T);for(K=Q=P,we=P*P*(Ce=Math.max(I/M,M/I)/(B*t)),ge=Math.max(Q/we,we/K);b<T;++b){if(P+=c=a[b].value,c<K&&(K=c),c>Q&&(Q=c),we=P*P*Ce,(ne=Math.max(Q/we,we/K))>ge){P-=c;break}ge=ne}o.push(l={value:P,dice:M<I,children:a.slice(h,b)}),l.dice?j6(l,e,i,s,B?i+=I*P/B:r):G6(l,e,i,B?e+=M*P/B:s,r),B-=P,h=b}}(n,i,s,r,o,a)}return e.ratio=function(i){return t((i=+i)>1?i:1)},e}((1+Math.sqrt(5))/2),Jl.prototype=Q1.prototype={constructor:Jl,count:function Z6(){return this.eachAfter(X6)},each:function K6(t){var e,s,r,o,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),s=n.children)for(r=0,o=s.length;r<o;++r)i.push(s[r])}while(i.length);return this},eachAfter:function J6(t){for(var s,r,o,n=this,e=[n],i=[];n=e.pop();)if(i.push(n),s=n.children)for(r=0,o=s.length;r<o;++r)e.push(s[r]);for(;n=i.pop();)t(n);return this},eachBefore:function Q6(t){for(var i,s,n=this,e=[n];n=e.pop();)if(t(n),i=n.children)for(s=i.length-1;s>=0;--s)e.push(i[s]);return this},sum:function q6(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,s=i&&i.length;--s>=0;)e+=i[s].value;n.value=e})},sort:function ez(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function tz(t){for(var n=this,e=function nz(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),s=null;for(t=e.pop(),n=i.pop();t===n;)s=t,t=e.pop(),n=i.pop();return s}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var s=i.length;t!==e;)i.splice(s,0,t),t=t.parent;return i},ancestors:function iz(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function sz(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function rz(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function oz(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function az(){return Q1(this).eachBefore(cz)}};const pz=["caretElm"];function gz(t,n){}const mz=function(t){return{model:t}};function vz(t,n){if(1&t&&(q(0,"span"),ue(1,gz,0,0,"ng-template",5),re()),2&t){const e=W();G(1),j("ngTemplateOutlet",e.template)("ngTemplateOutletContext",$s(2,mz,e.context))}}function _z(t,n){1&t&&Ie(0,"span",6),2&t&&j("innerHTML",W().title,Qa)}let oD=(()=>{class t{constructor(e,i,s){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=s}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function N$(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const s=Object.getOwnPropertyNames(i.inputs);for(const r of s)e.instance[r]=i.inputs[r]}if(void 0!==i.outputs){const s=Object.getOwnPropertyNames(i.outputs);for(const r of s)e.instance[r]=i.outputs[r]}}return e}appendComponent(e,i={},s){s||(s=this.getRootViewContainer());const r=this.getComponentRootNode(s),o=new DB(r,this.componentFactoryResolver,this.applicationRef,this.injector),a=new Og(e),l=o.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(Ee(vl),Ee(mr),Ee(oi))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function R$(t,n,e){e=e||{};let i,s,r,o=null,a=0;function l(){a=!1===e.leading?0:+new Date,o=null,r=t.apply(i,s)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const h=n-(c-a);return i=this,s=arguments,h<=0?(clearTimeout(o),o=null,a=c,r=t.apply(i,s)):!o&&!1!==e.trailing&&(o=setTimeout(l,h)),r}}function B$(t,n){return function(i,s,r){return{configurable:!0,enumerable:r.enumerable,get:function(){return Object.defineProperty(this,s,{configurable:!0,enumerable:r.enumerable,value:R$(r.value,t,n)}),this[s]}}}}var Mn=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(Mn||(Mn={})),Mn))();function aD(t,n,e){return"top"===e?t.top-7:"bottom"===e?t.top+t.height-n.height+7:"center"===e?t.top+t.height/2-n.height/2:void 0}function lD(t,n,e){return"left"===e?t.left-7:"right"===e?t.left+t.width-n.width+7:"center"===e?t.left+t.width/2-n.width/2:void 0}class Fi{static calculateVerticalAlignment(n,e,i){let s=aD(n,e,i);return s+e.height>window.innerHeight&&(s=window.innerHeight-e.height),s}static calculateVerticalCaret(n,e,i,s){let r;"top"===s&&(r=n.height/2-i.height/2+7),"bottom"===s&&(r=e.height-n.height/2-i.height/2-7),"center"===s&&(r=e.height/2-i.height/2);const o=aD(n,e,s);return o+e.height>window.innerHeight&&(r+=o+e.height-window.innerHeight),r}static calculateHorizontalAlignment(n,e,i){let s=lD(n,e,i);return s+e.width>window.innerWidth&&(s=window.innerWidth-e.width),s}static calculateHorizontalCaret(n,e,i,s){let r;"left"===s&&(r=n.width/2-i.width/2+7),"right"===s&&(r=e.width-n.width/2-i.width/2-7),"center"===s&&(r=e.width/2-i.width/2);const o=lD(n,e,s);return o+e.width>window.innerWidth&&(r+=o+e.width-window.innerWidth),r}static shouldFlip(n,e,i,s){let r=!1;return"right"===i&&n.left+n.width+e.width+s>window.innerWidth&&(r=!0),"left"===i&&n.left-e.width-s<0&&(r=!0),"top"===i&&n.top-e.height-s<0&&(r=!0),"bottom"===i&&n.top+n.height+e.height+s>window.innerHeight&&(r=!0),r}static positionCaret(n,e,i,s,r){let o=0,a=0;return n===Mn.right?(a=-7,o=Fi.calculateVerticalCaret(i,e,s,r)):n===Mn.left?(a=e.width,o=Fi.calculateVerticalCaret(i,e,s,r)):n===Mn.top?(o=e.height,a=Fi.calculateHorizontalCaret(i,e,s,r)):n===Mn.bottom&&(o=-7,a=Fi.calculateHorizontalCaret(i,e,s,r)),{top:o,left:a}}static positionContent(n,e,i,s,r){let o=0,a=0;return n===Mn.right?(a=i.left+i.width+s,o=Fi.calculateVerticalAlignment(i,e,r)):n===Mn.left?(a=i.left-e.width-s,o=Fi.calculateVerticalAlignment(i,e,r)):n===Mn.top?(o=i.top-e.height-s,a=Fi.calculateHorizontalAlignment(i,e,r)):n===Mn.bottom&&(o=i.top+i.height+s,a=Fi.calculateHorizontalAlignment(i,e,r)),{top:o,left:a}}static determinePlacement(n,e,i,s){if(Fi.shouldFlip(i,e,n,s)){if(n===Mn.right)return Mn.left;if(n===Mn.left)return Mn.right;if(n===Mn.top)return Mn.bottom;if(n===Mn.bottom)return Mn.top}return n}}let Ym,V$=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const s=e.getBoundingClientRect();this.checkFlip(i,s),this.positionContent(e,i,s),this.showCaret&&this.positionCaret(i,s),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,s){const{top:r,left:o}=Fi.positionContent(this.placement,s,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${r}px`),this.renderer.setStyle(e,"left",`${o}px`)}positionCaret(e,i){const s=this.caretElm.nativeElement,r=s.getBoundingClientRect(),{top:o,left:a}=Fi.positionCaret(this.placement,i,e,r,this.alignment);this.renderer.setStyle(s,"top",`${o}px`),this.renderer.setStyle(s,"left",`${a}px`)}checkFlip(e,i){this.placement=Fi.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(Le(Gt),Le(au))},t.\u0275cmp=$e({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&Mi(pz,5),2&e){let s;ft(s=pt())&&(i.caretElm=s.first)}},hostVars:2,hostBindings:function(e,i){1&e&&ye("resize",function(){return i.onWindowResize()},!1,q_),2&e&&function Gx(t){ls(Di,Ss,t,!0)}(i.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(q(0,"div"),Ie(1,"span",0,1),q(3,"div",2),ue(4,vz,2,4,"span",3),ue(5,_z,1,1,"span",4),re()()),2&e&&(G(1),function ib(t,n,e){ls(Di,Ss,Vo(Se(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),j("hidden",!i.showCaret),G(3),j("ngIf",!i.title),G(1),j("ngIf",i.title))},directives:[yt,Kp],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),Ng([B$(100)],t.prototype,"onWindowResize",null),t})(),jm=(()=>{class t extends class H${constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}{constructor(e){super(e),this.type=V$}}return t.\u0275fac=function(e){return new(e||t)(Ee(oD))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),dD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[_r]]}),t})(),fD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({providers:[oD,jm],imports:[[_r]]}),t})();"undefined"!=typeof window?Ym=window:"undefined"!=typeof global&&(Ym=global);let gs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[_r,dD,fD],_r,dD,fD]}),t})(),j$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs]]}),t})(),ED=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs]]}),t})(),U$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs]]}),t})(),X$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs]]}),t})(),kD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs]]}),t})();Math;let tv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs]]}),t})(),e9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs,tv,kD]]}),t})(),s9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs]]}),t})(),a9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs]]}),t})(),u9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs,tv,ED]]}),t})(),d9=(()=>{class t{constructor(){!function h9(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[gs,j$,ED,U$,X$,kD,e9,s9,tv,a9,u9]}),t})();function RD(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Bh(t){this._context=t}function BD(t,n){this._basis=new Bh(t),this._beta=n}Bh.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:RD(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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);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:RD(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},BD.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var l,i=t[0],s=n[0],r=t[e]-i,o=n[e]-s,a=-1;++a<=e;)this._basis.point(this._beta*t[a]+(1-this._beta)*(i+(l=a/e)*r),this._beta*n[a]+(1-this._beta)*(s+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const f9=function t(n){function e(i){return 1===n?new Bh(i):new BD(i,n)}return e.beta=function(i){return t(+i)},e}(.85);var VD=Math.PI;function zD(t){return(1-Math.cos(VD*t))/2}const jD=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function GD(t,n){return function(i){return i.lift(new p9(t,n))}}class p9{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new g9(n,this.predicate,this.thisArg))}}class g9 extends k{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}const m9=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Vh(t){return n=>0===t?Bw():n.lift(new v9(t))}class v9{constructor(n){if(this.total=n,this.total<0)throw new m9}call(n,e){return e.subscribe(new _9(n,this.total))}}class _9 extends k{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function y9(t=null){return n=>n.lift(new x9(t))}class x9{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new b9(n,this.defaultValue))}}class b9 extends k{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function w9(t=D9){return n=>n.lift(new C9(t))}class C9{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new T9(n,this.errorFactory))}}class T9 extends k{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function D9(){return new jD}function F9(t){return void 0===t}function B9(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return Array.from(t)}function V9(t){return Array.isArray(t)?t:Array.from(t)}function nc(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];var i=function(b,T){return{a:b.a*T.a+b.c*T.b,c:b.a*T.c+b.c*T.d,e:b.a*T.e+b.c*T.f+b.e,b:b.b*T.a+b.d*T.b,d:b.b*T.c+b.d*T.d,f:b.b*T.e+b.d*T.f+b.f}};switch((n=Array.isArray(n[0])?n[0]:n).length){case 0:throw new Error("no matrices provided");case 1:return n[0];case 2:return i(n[0],n[1]);default:var s=n,r=V9(s),o=r[0],a=r[1],l=r.slice(2),c=i(o,a);return nc.apply(void 0,[c].concat(B9(l)))}}function WD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:t,b:0,d:1,f:n}}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;var xa=Zn(9695);function z9(t,n){var e;function i(){var s,o,r=e.length,a=0,l=0;for(s=0;s<r;++s)a+=(o=e[s]).x,l+=o.y;for(a=a/r-t,l=l/r-n,s=0;s<r;++s)(o=e[s]).x-=a,o.y-=l}return null==t&&(t=0),null==n&&(n=0),i.initialize=function(s){e=s},i.x=function(s){return arguments.length?(t=+s,i):t},i.y=function(s){return arguments.length?(n=+s,i):n},i}function Rn(t){return function(){return t}}function Er(){return 1e-6*(Math.random()-.5)}function YD(t,n,e,i){if(isNaN(n)||isNaN(e))return t;var s,b,T,M,I,B,P,K,Q,r=t._root,o={data:i},a=t._x0,l=t._y0,c=t._x1,h=t._y1;if(!r)return t._root=o,t;for(;r.length;)if((B=n>=(b=(a+c)/2))?a=b:c=b,(P=e>=(T=(l+h)/2))?l=T:h=T,s=r,!(r=r[K=P<<1|B]))return s[K]=o,t;if(M=+t._x.call(null,r.data),I=+t._y.call(null,r.data),n===M&&e===I)return o.next=r,s?s[K]=o:t._root=o,t;do{s=s?s[K]=new Array(4):t._root=new Array(4),(B=n>=(b=(a+c)/2))?a=b:c=b,(P=e>=(T=(l+h)/2))?l=T:h=T}while((K=P<<1|B)==(Q=(I>=T)<<1|M>=b));return s[Q]=r,s[K]=o,t}function hi(t,n,e,i,s){this.node=t,this.x0=n,this.y0=e,this.x1=i,this.y1=s}function e7(t){return t[0]}function n7(t){return t[1]}function nv(t,n,e){var i=new iv(null==n?e7:n,null==e?n7:e,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function iv(t,n,e,i,s,r){this._x=t,this._y=n,this._x0=e,this._y0=i,this._x1=s,this._y1=r,this._root=void 0}function XD(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var di=nv.prototype=iv.prototype;function s7(t){return t.x+t.vx}function r7(t){return t.y+t.vy}function ZD(t){var n,e,i=1,s=1;function r(){for(var l,h,b,T,M,I,B,c=n.length,P=0;P<s;++P)for(h=nv(n,s7,r7).visitAfter(o),l=0;l<c;++l)B=(I=e[(b=n[l]).index])*I,T=b.x+b.vx,M=b.y+b.vy,h.visit(K);function K(Q,ne,ge,Ce,we){var Oe=Q.data,Je=Q.r,Ge=I+Je;if(!Oe)return ne>T+Ge||Ce<T-Ge||ge>M+Ge||we<M-Ge;if(Oe.index>b.index){var Ze=T-Oe.x-Oe.vx,Ue=M-Oe.y-Oe.vy,ke=Ze*Ze+Ue*Ue;ke<Ge*Ge&&(0===Ze&&(ke+=(Ze=Er())*Ze),0===Ue&&(ke+=(Ue=Er())*Ue),ke=(Ge-(ke=Math.sqrt(ke)))/ke*i,b.vx+=(Ze*=ke)*(Ge=(Je*=Je)/(B+Je)),b.vy+=(Ue*=ke)*Ge,Oe.vx-=Ze*(Ge=1-Ge),Oe.vy-=Ue*Ge)}}}function o(l){if(l.data)return l.r=e[l.data.index];for(var c=l.r=0;c<4;++c)l[c]&&l[c].r>l.r&&(l.r=l[c].r)}function a(){if(n){var l,h,c=n.length;for(e=new Array(c),l=0;l<c;++l)e[(h=n[l]).index]=+t(h,l,n)}}return"function"!=typeof t&&(t=Rn(null==t?1:+t)),r.initialize=function(l){n=l,a()},r.iterations=function(l){return arguments.length?(s=+l,r):s},r.strength=function(l){return arguments.length?(i=+l,r):i},r.radius=function(l){return arguments.length?(t="function"==typeof l?l:Rn(+l),a(),r):t},r}di.copy=function(){var e,i,t=new iv(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return t;if(!n.length)return t._root=XD(n),t;for(e=[{source:n,target:t._root=new Array(4)}];n=e.pop();)for(var s=0;s<4;++s)(i=n.source[s])&&(i.length?e.push({source:i,target:n.target[s]=new Array(4)}):n.target[s]=XD(i));return t},di.add=function j9(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return YD(this.cover(n,e),n,e,t)},di.addAll=function G9(t){var n,e,s,r,i=t.length,o=new Array(i),a=new Array(i),l=1/0,c=1/0,h=-1/0,b=-1/0;for(e=0;e<i;++e)isNaN(s=+this._x.call(null,n=t[e]))||isNaN(r=+this._y.call(null,n))||(o[e]=s,a[e]=r,s<l&&(l=s),s>h&&(h=s),r<c&&(c=r),r>b&&(b=r));if(l>h||c>b)return this;for(this.cover(l,c).cover(h,b),e=0;e<i;++e)YD(this,o[e],a[e],t[e]);return this},di.cover=function $9(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,i=this._y0,s=this._x1,r=this._y1;if(isNaN(e))s=(e=Math.floor(t))+1,r=(i=Math.floor(n))+1;else{for(var l,c,o=s-e,a=this._root;e>t||t>=s||i>n||n>=r;)switch(c=(n<i)<<1|t<e,l=new Array(4),l[c]=a,a=l,o*=2,c){case 0:s=e+o,r=i+o;break;case 1:e=s-o,r=i+o;break;case 2:s=e+o,i=r-o;break;case 3:e=s-o,i=r-o}this._root&&this._root.length&&(this._root=a)}return this._x0=e,this._y0=i,this._x1=s,this._y1=r,this},di.data=function U9(){var t=[];return this.visit(function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)}),t},di.extent=function W9(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},di.find=function Y9(t,n,e){var i,o,a,l,c,I,B,s=this._x0,r=this._y0,h=this._x1,b=this._y1,T=[],M=this._root;for(M&&T.push(new hi(M,s,r,h,b)),null==e?e=1/0:(s=t-e,r=n-e,h=t+e,b=n+e,e*=e);I=T.pop();)if(!(!(M=I.node)||(o=I.x0)>h||(a=I.y0)>b||(l=I.x1)<s||(c=I.y1)<r))if(M.length){var P=(o+l)/2,K=(a+c)/2;T.push(new hi(M[3],P,K,l,c),new hi(M[2],o,K,P,c),new hi(M[1],P,a,l,K),new hi(M[0],o,a,P,K)),(B=(n>=K)<<1|t>=P)&&(I=T[T.length-1],T[T.length-1]=T[T.length-1-B],T[T.length-1-B]=I)}else{var Q=t-+this._x.call(null,M.data),ne=n-+this._y.call(null,M.data),ge=Q*Q+ne*ne;if(ge<e){var Ce=Math.sqrt(e=ge);s=t-Ce,r=n-Ce,h=t+Ce,b=n+Ce,i=M.data}}return i},di.remove=function X9(t){if(isNaN(h=+this._x.call(null,t))||isNaN(b=+this._y.call(null,t)))return this;var n,i,s,r,h,b,T,M,I,B,P,K,e=this._root,o=this._x0,a=this._y0,l=this._x1,c=this._y1;if(!e)return this;if(e.length)for(;;){if((I=h>=(T=(o+l)/2))?o=T:l=T,(B=b>=(M=(a+c)/2))?a=M:c=M,n=e,!(e=e[P=B<<1|I]))return this;if(!e.length)break;(n[P+1&3]||n[P+2&3]||n[P+3&3])&&(i=n,K=P)}for(;e.data!==t;)if(s=e,!(e=e.next))return this;return(r=e.next)&&delete e.next,s?(r?s.next=r:delete s.next,this):n?(r?n[P]=r:delete n[P],(e=n[0]||n[1]||n[2]||n[3])&&e===(n[3]||n[2]||n[1]||n[0])&&!e.length&&(i?i[K]=e:this._root=e),this):(this._root=r,this)},di.removeAll=function Z9(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},di.root=function K9(){return this._root},di.size=function Q9(){var t=0;return this.visit(function(n){if(!n.length)do{++t}while(n=n.next)}),t},di.visit=function J9(t){var e,s,r,o,a,l,n=[],i=this._root;for(i&&n.push(new hi(i,this._x0,this._y0,this._x1,this._y1));e=n.pop();)if(!t(i=e.node,r=e.x0,o=e.y0,a=e.x1,l=e.y1)&&i.length){var c=(r+a)/2,h=(o+l)/2;(s=i[3])&&n.push(new hi(s,c,h,a,l)),(s=i[2])&&n.push(new hi(s,r,h,c,l)),(s=i[1])&&n.push(new hi(s,c,o,a,h)),(s=i[0])&&n.push(new hi(s,r,o,c,h))}return this},di.visitAfter=function q9(t){var i,n=[],e=[];for(this._root&&n.push(new hi(this._root,this._x0,this._y0,this._x1,this._y1));i=n.pop();){var s=i.node;if(s.length){var r,o=i.x0,a=i.y0,l=i.x1,c=i.y1,h=(o+l)/2,b=(a+c)/2;(r=s[0])&&n.push(new hi(r,o,a,h,b)),(r=s[1])&&n.push(new hi(r,h,a,l,b)),(r=s[2])&&n.push(new hi(r,o,b,h,c)),(r=s[3])&&n.push(new hi(r,h,b,l,c))}e.push(i)}for(;i=e.pop();)t(i.node,i.x0,i.y0,i.x1,i.y1);return this},di.x=function t7(t){return arguments.length?(this._x=t,this):this._x},di.y=function i7(t){return arguments.length?(this._y=t,this):this._y};var Ki="$";function Hh(){}function KD(t,n){var e=new Hh;if(t instanceof Hh)t.each(function(a,l){e.set(l,a)});else if(Array.isArray(t)){var r,i=-1,s=t.length;if(null==n)for(;++i<s;)e.set(i,t[i]);else for(;++i<s;)e.set(n(r=t[i],i,t),r)}else if(t)for(var o in t)e.set(o,t[o]);return e}Hh.prototype=KD.prototype={constructor:Hh,has:function(t){return Ki+t in this},get:function(t){return this[Ki+t]},set:function(t,n){return this[Ki+t]=n,this},remove:function(t){var n=Ki+t;return n in this&&delete this[n]},clear:function(){for(var t in this)t[0]===Ki&&delete this[t]},keys:function(){var t=[];for(var n in this)n[0]===Ki&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)n[0]===Ki&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)n[0]===Ki&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)n[0]===Ki&&++t;return t},empty:function(){for(var t in this)if(t[0]===Ki)return!1;return!0},each:function(t){for(var n in this)n[0]===Ki&&t(this[n],n.slice(1),this)}};const sv=KD;function zh(){}var ao=sv.prototype;function c7(t){return t.index}function qD(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}function eE(t){var i,r,o,a,l,n=c7,e=function h(B){return 1/Math.min(a[B.source.index],a[B.target.index])},s=Rn(30),c=1;function b(B){for(var P=0,K=t.length;P<c;++P)for(var ne,ge,Ce,we,Oe,Je,Ge,Q=0;Q<K;++Q)we=(Ce=(ne=t[Q]).target).x+Ce.vx-(ge=ne.source).x-ge.vx||Er(),Oe=Ce.y+Ce.vy-ge.y-ge.vy||Er(),Oe*=Je=((Je=Math.sqrt(we*we+Oe*Oe))-r[Q])/Je*B*i[Q],Ce.vx-=(we*=Je)*(Ge=l[Q]),Ce.vy-=Oe*Ge,ge.vx+=we*(Ge=1-Ge),ge.vy+=Oe*Ge}function T(){if(o){var B,ne,P=o.length,K=t.length,Q=sv(o,n);for(B=0,a=new Array(P);B<K;++B)(ne=t[B]).index=B,"object"!=typeof ne.source&&(ne.source=qD(Q,ne.source)),"object"!=typeof ne.target&&(ne.target=qD(Q,ne.target)),a[ne.source.index]=(a[ne.source.index]||0)+1,a[ne.target.index]=(a[ne.target.index]||0)+1;for(B=0,l=new Array(K);B<K;++B)l[B]=a[(ne=t[B]).source.index]/(a[ne.source.index]+a[ne.target.index]);i=new Array(K),M(),r=new Array(K),I()}}function M(){if(o)for(var B=0,P=t.length;B<P;++B)i[B]=+e(t[B],B,t)}function I(){if(o)for(var B=0,P=t.length;B<P;++B)r[B]=+s(t[B],B,t)}return null==t&&(t=[]),b.initialize=function(B){o=B,T()},b.links=function(B){return arguments.length?(t=B,T(),b):t},b.id=function(B){return arguments.length?(n=B,b):n},b.iterations=function(B){return arguments.length?(c=+B,b):c},b.strength=function(B){return arguments.length?(e="function"==typeof B?B:Rn(+B),M(),b):e},b.distance=function(B){return arguments.length?(s="function"==typeof B?B:Rn(+B),I(),b):s},b}function u7(t){return t.x}function h7(t){return t.y}zh.prototype=function l7(t,n){var e=new zh;if(t instanceof zh)t.each(function(r){e.add(r)});else if(t){var i=-1,s=t.length;if(null==n)for(;++i<s;)e.add(t[i]);else for(;++i<s;)e.add(n(t[i],i,t))}return e}.prototype={constructor:zh,has:ao.has,add:function(t){return this[Ki+(t+="")]=t,this},remove:ao.remove,clear:ao.clear,values:ao.keys,size:ao.size,empty:ao.empty,each:ao.each};var f7=Math.PI*(3-Math.sqrt(5));function tE(t){var n,e=1,i=.001,s=1-Math.pow(i,1/300),r=0,o=.6,a=sv(),l=dh(h),c=rh("tick","end");function h(){b(),c.call("tick",n),e<i&&(l.stop(),c.call("end",n))}function b(I){var B,K,P=t.length;void 0===I&&(I=1);for(var Q=0;Q<I;++Q)for(e+=(r-e)*s,a.each(function(ne){ne(e)}),B=0;B<P;++B)null==(K=t[B]).fx?K.x+=K.vx*=o:(K.x=K.fx,K.vx=0),null==K.fy?K.y+=K.vy*=o:(K.y=K.fy,K.vy=0);return n}function T(){for(var P,I=0,B=t.length;I<B;++I){if((P=t[I]).index=I,null!=P.fx&&(P.x=P.fx),null!=P.fy&&(P.y=P.fy),isNaN(P.x)||isNaN(P.y)){var K=10*Math.sqrt(I),Q=I*f7;P.x=K*Math.cos(Q),P.y=K*Math.sin(Q)}(isNaN(P.vx)||isNaN(P.vy))&&(P.vx=P.vy=0)}}function M(I){return I.initialize&&I.initialize(t),I}return null==t&&(t=[]),T(),n={tick:b,restart:function(){return l.restart(h),n},stop:function(){return l.stop(),n},nodes:function(I){return arguments.length?(t=I,T(),a.each(M),n):t},alpha:function(I){return arguments.length?(e=+I,n):e},alphaMin:function(I){return arguments.length?(i=+I,n):i},alphaDecay:function(I){return arguments.length?(s=+I,n):+s},alphaTarget:function(I){return arguments.length?(r=+I,n):r},velocityDecay:function(I){return arguments.length?(o=1-I,n):1-o},force:function(I,B){return arguments.length>1?(null==B?a.remove(I):a.set(I,M(B)),n):a.get(I)},find:function(I,B,P){var ne,ge,Ce,we,Oe,K=0,Q=t.length;for(null==P?P=1/0:P*=P,K=0;K<Q;++K)(Ce=(ne=I-(we=t[K]).x)*ne+(ge=B-we.y)*ge)<P&&(Oe=we,P=Ce);return Oe},on:function(I,B){return arguments.length>1?(c.on(I,B),n):c.on(I)}}}function nE(){var t,n,e,s,i=Rn(-30),r=1,o=1/0,a=.81;function l(T){var M,I=t.length,B=nv(t,u7,h7).visitAfter(h);for(e=T,M=0;M<I;++M)n=t[M],B.visit(b)}function c(){if(t){var T,I,M=t.length;for(s=new Array(M),T=0;T<M;++T)s[(I=t[T]).index]=+i(I,T,t)}}function h(T){var I,B,K,Q,ne,M=0,P=0;if(T.length){for(K=Q=ne=0;ne<4;++ne)(I=T[ne])&&(B=Math.abs(I.value))&&(M+=I.value,P+=B,K+=B*I.x,Q+=B*I.y);T.x=K/P,T.y=Q/P}else{(I=T).x=I.data.x,I.y=I.data.y;do{M+=s[I.data.index]}while(I=I.next)}T.value=M}function b(T,M,I,B){if(!T.value)return!0;var P=T.x-n.x,K=T.y-n.y,Q=B-M,ne=P*P+K*K;if(Q*Q/a<ne)return ne<o&&(0===P&&(ne+=(P=Er())*P),0===K&&(ne+=(K=Er())*K),ne<r&&(ne=Math.sqrt(r*ne)),n.vx+=P*T.value*e/ne,n.vy+=K*T.value*e/ne),!0;if(!(T.length||ne>=o)){(T.data!==n||T.next)&&(0===P&&(ne+=(P=Er())*P),0===K&&(ne+=(K=Er())*K),ne<r&&(ne=Math.sqrt(r*ne)));do{T.data!==n&&(n.vx+=P*(Q=s[T.data.index]*e/ne),n.vy+=K*Q)}while(T=T.next)}}return l.initialize=function(T){t=T,c()},l.strength=function(T){return arguments.length?(i="function"==typeof T?T:Rn(+T),c(),l):i},l.distanceMin=function(T){return arguments.length?(r=T*T,l):Math.sqrt(r)},l.distanceMax=function(T){return arguments.length?(o=T*T,l):Math.sqrt(o)},l.theta=function(T){return arguments.length?(a=T*T,l):Math.sqrt(a)},l}function p7(t,n,e){var i,r,o,s=Rn(.1);function a(c){for(var h=0,b=i.length;h<b;++h){var T=i[h],M=T.x-n||1e-6,I=T.y-e||1e-6,B=Math.sqrt(M*M+I*I),P=(o[h]-B)*r[h]*c/B;T.vx+=M*P,T.vy+=I*P}}function l(){if(i){var c,h=i.length;for(r=new Array(h),o=new Array(h),c=0;c<h;++c)o[c]=+t(i[c],c,i),r[c]=isNaN(o[c])?0:+s(i[c],c,i)}}return"function"!=typeof t&&(t=Rn(+t)),null==n&&(n=0),null==e&&(e=0),a.initialize=function(c){i=c,l()},a.strength=function(c){return arguments.length?(s="function"==typeof c?c:Rn(+c),l(),a):s},a.radius=function(c){return arguments.length?(t="function"==typeof c?c:Rn(+c),l(),a):t},a.x=function(c){return arguments.length?(n=+c,a):n},a.y=function(c){return arguments.length?(e=+c,a):e},a}function g7(t){var e,i,s,n=Rn(.1);function r(a){for(var h,l=0,c=e.length;l<c;++l)(h=e[l]).vx+=(s[l]-h.x)*i[l]*a}function o(){if(e){var a,l=e.length;for(i=new Array(l),s=new Array(l),a=0;a<l;++a)i[a]=isNaN(s[a]=+t(e[a],a,e))?0:+n(e[a],a,e)}}return"function"!=typeof t&&(t=Rn(null==t?0:+t)),r.initialize=function(a){e=a,o()},r.strength=function(a){return arguments.length?(n="function"==typeof a?a:Rn(+a),o(),r):n},r.x=function(a){return arguments.length?(t="function"==typeof a?a:Rn(+a),o(),r):t},r}function m7(t){var e,i,s,n=Rn(.1);function r(a){for(var h,l=0,c=e.length;l<c;++l)(h=e[l]).vy+=(s[l]-h.y)*i[l]*a}function o(){if(e){var a,l=e.length;for(i=new Array(l),s=new Array(l),a=0;a<l;++a)i[a]=isNaN(s[a]=+t(e[a],a,e))?0:+n(e[a],a,e)}}return"function"!=typeof t&&(t=Rn(null==t?0:+t)),r.initialize=function(a){e=a,o()},r.strength=function(a){return arguments.length?(n="function"==typeof a?a:Rn(+a),o(),r):n},r.y=function(a){return arguments.length?(t="function"==typeof a?a:Rn(+a),o(),r):t},r}var v7=Zn(7824);function _7(t,n,e){var i=new Bl,s=n;return null==n?(i.restart(t,n,e),i):(n=+n,e=null==e?la():+e,i.restart(function r(o){o+=s,i.restart(r,s+=n,e),t(o)},n,e),i)}const y7=["linkTemplate"],x7=["nodeTemplate"],b7=["clusterTemplate"],w7=["defsTemplate"],C7=["miniMapNodeTemplate"],T7=["nodeElement"],D7=["linkElement"];function E7(t,n){1&t&&(ae(),gr(0,14)),2&t&&j("ngTemplateOutlet",W(2).defsTemplate)}function S7(t,n){if(1&t&&(ae(),Ie(0,"path",15)),2&t){const e=n.$implicit;me("d",e.textPath)("id",e.id)}}const ic=function(t){return{$implicit:t}};function A7(t,n){if(1&t&&(ae(),gr(0,20)),2&t){const e=W().$implicit;j("ngTemplateOutlet",W(2).clusterTemplate)("ngTemplateOutletContext",$s(2,ic,e))}}function M7(t,n){if(1&t&&(ae(),q(0,"g",21),Ie(1,"rect"),q(2,"text",22),St(3),re()()),2&t){const e=W().$implicit;G(1),me("width",e.dimension.width)("height",e.dimension.height)("fill",null==e.data?null:e.data.color),G(1),me("x",10)("y",e.dimension.height/2),G(1),nn(" ",e.label," ")}}function k7(t,n){if(1&t){const e=Be();ae(),q(0,"g",16,17),ye("click",function(){const r=ve(e).$implicit;return W(2).onClick(r)}),ue(2,A7,1,4,"ng-container",18),ue(3,M7,4,6,"g",19),re()}if(2&t){const e=n.$implicit,i=W(2);an("old-node",i.animate&&i.oldClusters.has(e.id)),j("id",e.id),me("transform",e.transform),G(2),j("ngIf",i.clusterTemplate),G(1),j("ngIf",!i.clusterTemplate)}}function L7(t,n){if(1&t&&(ae(),gr(0,20)),2&t){const e=W().$implicit;j("ngTemplateOutlet",W(2).linkTemplate)("ngTemplateOutletContext",$s(2,ic,e))}}function I7(t,n){1&t&&(ae(),Ie(0,"path",26)),2&t&&me("d",W().$implicit.line)}function O7(t,n){if(1&t&&(ae(),q(0,"g",23,24),ue(2,L7,1,4,"ng-container",18),ue(3,I7,1,1,"path",25),re()),2&t){const e=n.$implicit,i=W(2);j("id",e.id),G(2),j("ngIf",i.linkTemplate),G(1),j("ngIf",!i.linkTemplate)}}function F7(t,n){if(1&t&&(ae(),gr(0,20)),2&t){const e=W().$implicit;j("ngTemplateOutlet",W(2).nodeTemplate)("ngTemplateOutletContext",$s(2,ic,e))}}function P7(t,n){if(1&t&&(ae(),Ie(0,"circle",30)),2&t){const e=W().$implicit;me("cx",e.dimension.width/2)("cy",e.dimension.height/2)("fill",null==e.data?null:e.data.color)}}function N7(t,n){if(1&t){const e=Be();ae(),q(0,"g",27,28),ye("click",function(){const r=ve(e).$implicit;return W(2).onClick(r)})("mousedown",function(s){const o=ve(e).$implicit;return W(2).onNodeMouseDown(s,o)}),ue(2,F7,1,4,"ng-container",18),ue(3,P7,1,3,"circle",29),re()}if(2&t){const e=n.$implicit,i=W(2);an("old-node",i.animate&&i.oldNodes.has(e.id)),j("id",e.id),me("transform",e.transform),G(2),j("ngIf",i.nodeTemplate),G(1),j("ngIf",!i.nodeTemplate)}}function R7(t,n){if(1&t){const e=Be();ae(),q(0,"g",4),ye("touchstart",function(s){return ve(e),W().onTouchStart(s)})("touchend",function(s){return ve(e),W().onTouchEnd(s)}),q(1,"defs"),ue(2,E7,1,1,"ng-container",5),ue(3,S7,1,2,"path",6),re(),q(4,"rect",7),ye("mousedown",function(){return ve(e),W().isPanning=!0}),re(),function eu(t,n=0,e){const i=Se(),s=Lt(),r=Io(s,20+t,16,null,e||null);null===r.projection&&(r.projection=n),xd(),64!=(64&r.flags)&&function iM(t,n,e){R_(n[11],0,n,e,A_(t,e,n),I_(e.parent||n[6],e,n))}(s,i,r)}(5),q(6,"g",8),ue(7,k7,4,6,"g",9),re(),q(8,"g",10),ue(9,O7,4,3,"g",11),re(),q(10,"g",12),ue(11,N7,4,6,"g",13),re()()}if(2&t){const e=W();me("transform",e.transform),G(2),j("ngIf",e.defsTemplate),G(1),j("ngForOf",e.graph.edges),G(1),me("width",100*e.dims.width)("height",100*e.dims.height)("transform","translate("+50*(-e.dims.width||0)+","+50*(-e.dims.height||0)+")"),G(3),j("ngForOf",e.graph.clusters)("ngForTrackBy",e.trackNodeBy),G(2),j("ngForOf",e.graph.edges)("ngForTrackBy",e.trackLinkBy),G(2),j("ngForOf",e.graph.nodes)("ngForTrackBy",e.trackNodeBy)}}function B7(t,n){if(1&t&&(ae(),gr(0,20)),2&t){const e=W().$implicit;j("ngTemplateOutlet",W(2).miniMapNodeTemplate)("ngTemplateOutletContext",$s(2,ic,e))}}function V7(t,n){if(1&t&&(ae(),gr(0,20)),2&t){const e=W().$implicit;j("ngTemplateOutlet",W(2).nodeTemplate)("ngTemplateOutletContext",$s(2,ic,e))}}function H7(t,n){if(1&t&&(ae(),Ie(0,"circle",30)),2&t){const e=W().$implicit,i=W(2);me("cx",e.dimension.width/2/i.minimapScaleCoefficient)("cy",e.dimension.height/2/i.minimapScaleCoefficient)("fill",null==e.data?null:e.data.color)}}function z7(t,n){if(1&t&&(ae(),q(0,"g",36,28),ue(2,B7,1,4,"ng-container",18),ue(3,V7,1,4,"ng-container",18),ue(4,H7,1,3,"circle",29),re()),2&t){const e=n.$implicit,i=W(2);an("old-node",i.animate&&i.oldNodes.has(e.id)),j("id",e.id),me("transform",e.transform),G(2),j("ngIf",i.miniMapNodeTemplate),G(1),j("ngIf",!i.miniMapNodeTemplate&&i.nodeTemplate),G(1),j("ngIf",!i.nodeTemplate&&!i.miniMapNodeTemplate)}}function j7(t,n){if(1&t){const e=Be();ae(),q(0,"g",31)(1,"rect",32),ye("mousedown",function(s){return ve(e),W().onMinimapPanTo(s)}),re(),q(2,"g")(3,"g",33),ue(4,z7,5,7,"g",34),re(),q(5,"rect",35),ye("mousedown",function(){return ve(e),W().onMinimapDragMouseDown()}),re()()()}if(2&t){const e=W();me("transform",e.minimapTransform)("clip-path","url(#"+e.minimapClipPathId+")"),G(1),me("width",e.graphDims.width/e.minimapScaleCoefficient)("height",e.graphDims.height/e.minimapScaleCoefficient),G(1),vt("transform","translate("+-e.minimapOffsetX/e.minimapScaleCoefficient+"px,"+-e.minimapOffsetY/e.minimapScaleCoefficient+"px)"),G(1),vt("transform","scale("+1/e.minimapScaleCoefficient+")"),G(1),j("ngForOf",e.graph.nodes)("ngForTrackBy",e.trackNodeBy),G(1),an("panning",e.isMinimapPanning),me("transform","translate("+e.panOffsetX/e.zoomLevel/-e.minimapScaleCoefficient+","+e.panOffsetY/e.zoomLevel/-e.minimapScaleCoefficient+")")("width",e.width/e.minimapScaleCoefficient/e.zoomLevel)("height",e.height/e.minimapScaleCoefficient/e.zoomLevel)}}const G7=["*"],iE={};function nr(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,iE[t]?nr():(iE[t]=!0,t)}var ba=(()=>(function(t){t.Both="both",t.Horizontal="horizontal",t.Vertical="vertical"}(ba||(ba={})),ba))(),wa=(()=>(function(t){t.UpperLeft="UpperLeft",t.UpperRight="UpperRight"}(wa||(wa={})),wa))();function $7(t,n,e){e=e||{};let i,s,r,o=null,a=0;function l(){a=!1===e.leading?0:+new Date,o=null,r=t.apply(i,s)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const h=n-(c-a);return i=this,s=arguments,h<=0?(clearTimeout(o),o=null,a=c,r=t.apply(i,s)):!o&&!1!==e.trailing&&(o=setTimeout(l,h)),r}}function U7(t,n){return function(i,s,r){return{configurable:!0,enumerable:r.enumerable,get:function(){return Object.defineProperty(this,s,{configurable:!0,enumerable:r.enumerable,value:$7(r.value,t,n)}),this[s]}}}}let sE=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class W7{constructor(n,e,i){"string"==typeof n&&(n=sE.find(s=>s.name===n)),this.colorDomain=n.domain,this.domain=e,this.customColors=i,this.scale=this.generateColorScheme(n,this.domain)}generateColorScheme(n,e){return"string"==typeof n&&(n=sE.find(i=>i.name===n)),Dh().range(n.domain).domain(e)}getColor(n){if(null==n)throw new Error("Value can not be null");if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(s=>s.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}let X7=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new _e,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:s}=this.element.nativeElement;i&&s?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(Le(Gt),Le(Bt))},t.\u0275dir=bn({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})();var Ca=(()=>(function(t){t.LEFT_TO_RIGHT="LR",t.RIGHT_TO_LEFT="RL",t.TOP_TO_BOTTOM="TB",t.BOTTOM_TO_TOM="BT"}(Ca||(Ca={})),Ca))();function Ta(t){return"string"==typeof t?{id:t,x:0,y:0}:t}function oE(t,n){return"number"==typeof n?t[n]:n}const aE={dagre:class Z7{constructor(){this.defaultSettings={orientation:Ca.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),xa.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],s=n.nodes.find(r=>r.id===i.id);s.position={x:i.x,y:i.y},s.dimension={width:i.width,height:i.height}}return n}updateEdge(n,e){const i=n.nodes.find(l=>l.id===e.source),s=n.nodes.find(l=>l.id===e.target),r=i.position.y<=s.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-r*(i.dimension.height/2)},{x:s.position.x,y:s.position.y+r*(s.dimension.height/2)}],n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xa.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=n.nodes.map(i=>{const s=Object.assign({},i);return s.width=i.dimension.width,s.height=i.dimension.height,s.x=i.position.x,s.y=i.position.y,s}),this.dagreEdges=n.edges.map(i=>{const s=Object.assign({},i);return s.id||(s.id=nr()),s});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreCluster:class K7{constructor(){this.defaultSettings={orientation:Ca.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),xa.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const s=this.dagreGraph._nodes[i.id];return Object.assign(Object.assign({},i),{position:{x:s.x,y:s.y},dimension:{width:s.width,height:s.height}})};return n.clusters=(n.clusters||[]).map(e),n.nodes=n.nodes.map(e),n}updateEdge(n,e){const i=n.nodes.find(l=>l.id===e.source),s=n.nodes.find(l=>l.id===e.target),r=i.position.y<=s.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-r*(i.dimension.height/2)},{x:s.position.x,y:s.position.y+r*(s.dimension.height/2)}],n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xa.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=n.nodes.map(i=>{const s=Object.assign({},i);return s.width=i.dimension.width,s.height=i.dimension.height,s.x=i.position.x,s.y=i.position.y,s}),this.dagreClusters=n.clusters||[],this.dagreEdges=n.edges.map(i=>{const s=Object.assign({},i);return s.id||(s.id=nr()),s});for(const i of this.dagreNodes)this.dagreGraph.setNode(i.id,i);for(const i of this.dagreClusters)this.dagreGraph.setNode(i.id,i),i.childNodeIds.forEach(s=>{this.dagreGraph.setParent(s,i.id)});for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreNodesOnly:class J7{constructor(){this.defaultSettings={orientation:Ca.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),xa.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],s=n.nodes.find(r=>r.id===i.id);s.position={x:i.x,y:i.y},s.dimension={width:i.width,height:i.height}}for(const e of n.edges)this.updateEdge(n,e);return n}updateEdge(n,e){const i=n.nodes.find(I=>I.id===e.source),s=n.nodes.find(I=>I.id===e.target),r="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",o="y"===r?"x":"y",a="y"===r?"height":"width",l=i.position[r]<=s.position[r]?-1:1,c={[o]:i.position[o],[r]:i.position[r]-l*(i.dimension[a]/2)},h={[o]:s.position[o],[r]:s.position[r]+l*(s.dimension[a]/2)},b=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[c,{[o]:c[o],[r]:c[r]-l*b},{[o]:h[o],[r]:h[r]+l*b},h];const M=n.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return M&&(M.points=e.points),n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xa.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=n.nodes.map(i=>{const s=Object.assign({},i);return s.width=i.dimension.width,s.height=i.dimension.height,s.x=i.position.x,s.y=i.position.y,s}),this.dagreEdges=n.edges.map(i=>{const s=Object.assign({},i);return s.id||(s.id=nr()),s});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},d3ForceDirected:class q7{constructor(){this.defaultSettings={force:tE().force("charge",nE().strength(-150)).force("collide",ZD(5)),forceLink:eE().id(n=>n.id).distance(()=>100)},this.settings={},this.outputGraph$=new $}run(n){return this.inputGraph=n,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign({},e))],edges:[...this.inputGraph.edges.map(e=>Object.assign({},e))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(n,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.nodes(this.d3Graph.nodes).force("link",i.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(n){return this.outputGraph.nodes=this.d3Graph.nodes.map(e=>Object.assign(Object.assign({},e),{id:e.id||nr(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(e=>Object.assign(Object.assign({},e),{source:Ta(e.source).id,target:Ta(e.target).id,points:[{x:Ta(e.source).x,y:Ta(e.source).y},{x:Ta(e.target).x,y:Ta(e.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(n,e){this.settings.force.alphaTarget(.3).restart();const i=this.d3Graph.nodes.find(s=>s.id===n.id);!i||(this.draggingStart={x:e.x-i.x,y:e.y-i.y},i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDrag(n,e){if(!n)return;const i=this.d3Graph.nodes.find(s=>s.id===n.id);!i||(i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDragEnd(n,e){if(!n)return;const i=this.d3Graph.nodes.find(s=>s.id===n.id);!i||(this.settings.force.alphaTarget(0),i.fx=void 0,i.fy=void 0)}},colaForceDirected:class eU{constructor(){this.defaultSettings={force:(0,v7.d3adaptor)(Object.assign(Object.assign(Object.assign({},L),E),u)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new $}run(n){return this.inputGraph=n,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign(Object.assign({},e),{width:e.dimension?e.dimension.width:20,height:e.dimension?e.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(e=>({padding:5,groups:e.childNodeIds.map(i=>this.inputGraph.clusters.findIndex(s=>s.id===i)).filter(i=>i>=0),leaves:e.childNodeIds.map(i=>this.inputGraph.nodes.findIndex(s=>s.id===i)).filter(i=>i>=0)}))],links:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(r=>e.source===r.id),s=this.inputGraph.nodes.findIndex(r=>e.target===r.id);if(-1!==i&&-1!==s)return Object.assign(Object.assign({},e),{source:i,target:s})}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(r=>e.source===r.id),s=this.inputGraph.nodes.findIndex(r=>e.target===r.id);if(!(i>=0&&s>=0))return e}).filter(e=>!!e)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(n,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(n){return this.outputGraph.nodes=n.nodes.map(e=>Object.assign(Object.assign({},e),{id:e.id||nr(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=n.links.map(e=>{const i=oE(n.nodes,e.source),s=oE(n.nodes,e.target);return Object.assign(Object.assign({},e),{source:i.id,target:s.id,points:[i.bounds.rayIntersection(s.bounds.cx(),s.bounds.cy()),s.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})}).concat(n.groupLinks.map(e=>{const i=n.nodes.find(a=>a.id===e.source),s=n.nodes.find(a=>a.id===e.target),r=i||n.groups.find(a=>a.id===e.source),o=s||n.groups.find(a=>a.id===e.target);return Object.assign(Object.assign({},e),{source:r.id,target:o.id,points:[r.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy()),o.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy())]})})),this.outputGraph.clusters=n.groups.map((e,i)=>Object.assign(Object.assign({},this.inputGraph.clusters[i]),{dimension:{width:e.bounds?e.bounds.width():20,height:e.bounds?e.bounds.height():20},position:{x:e.bounds?e.bounds.x+e.bounds.width()/2:0,y:e.bounds?e.bounds.y+e.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(n,e){const i=this.outputGraph.nodes.findIndex(r=>r.id===n.id),s=this.internalGraph.nodes[i];!s||(this.draggingStart={x:s.x-e.x,y:s.y-e.y},s.fixed=1,this.settings.force.start())}onDrag(n,e){if(!n)return;const i=this.outputGraph.nodes.findIndex(r=>r.id===n.id),s=this.internalGraph.nodes[i];!s||(s.x=this.draggingStart.x+e.x,s.y=this.draggingStart.y+e.y)}onDragEnd(n,e){if(!n)return;const i=this.outputGraph.nodes.findIndex(r=>r.id===n.id),s=this.internalGraph.nodes[i];!s||(s.fixed=0)}}};let lE=(()=>{class t{getLayout(e){if(aE[e])return new aE[e];throw new Error(`Unknown layout type '${e}'`)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),tU=(()=>{class t{constructor(){this.mouseWheelUp=new _e,this.mouseWheelDown=new _e}onMouseWheelChrome(e){this.mouseWheelFunc(e)}onMouseWheelFirefox(e){this.mouseWheelFunc(e)}onWheel(e){this.mouseWheelFunc(e)}onMouseWheelIE(e){this.mouseWheelFunc(e)}mouseWheelFunc(e){window.event&&(e=window.event);const i=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail||e.deltaY||e.deltaX)),r=e.wheelDelta?i<0:i>0;(e.wheelDelta?i>0:i<0)?this.mouseWheelUp.emit(e):r&&this.mouseWheelDown.emit(e),e.returnValue=!1,e.preventDefault&&e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=bn({type:t,selectors:[["","mouseWheel",""]],hostBindings:function(e,i){1&e&&ye("mousewheel",function(r){return i.onMouseWheelChrome(r)})("DOMMouseScroll",function(r){return i.onMouseWheelFirefox(r)})("wheel",function(r){return i.onWheel(r)})("onmousewheel",function(r){return i.onMouseWheelIE(r)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),t})(),nU=(()=>{class t{constructor(e,i,s,r){this.el=e,this.zone=i,this.cd=s,this.layoutService=r,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=ba.Both,this.enableZoom=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.autoZoom=!1,this.panOnZoom=!0,this.animate=!1,this.autoCenter=!1,this.enableTrackpadSupport=!1,this.showMiniMap=!1,this.miniMapMaxWidth=100,this.miniMapPosition=wa.UpperRight,this.scheme="cool",this.animations=!0,this.select=new _e,this.activate=new _e,this.deactivate=new _e,this.zoomChange=new _e,this.clickHandler=new _e,this.isMouseMoveCalled=!1,this.graphSubscription=new m,this.subscriptions=[],this.isPanning=!1,this.isDragging=!1,this.initialized=!1,this.graphDims={width:0,height:0},this._oldLinks=[],this.oldNodes=new Set,this.oldClusters=new Set,this.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},this._touchLastX=null,this._touchLastY=null,this.minimapScaleCoefficient=3,this.minimapOffsetX=0,this.minimapOffsetY=0,this.isMinimapPanning=!1,this.groupResultsBy=o=>o.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(e){this.zoomTo(Number(e))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(e){this.panTo(Number(e),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(e){this.panTo(null,Number(e))}ngOnInit(){this.update$&&this.subscriptions.push(this.update$.subscribe(()=>{this.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(()=>{this.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(()=>{this.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(e=>{this.panToNodeId(e)})),this.minimapClipPathId=`minimapClip${nr()}`}ngOnChanges(e){this.basicUpdate();const{layoutSettings:s}=e;this.setLayout(this.layout),s&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(e){this.initialized=!1,e||(e="dagre"),"string"==typeof e&&(this.layout=this.layoutService.getLayout(e),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(e){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=e)}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy());for(const e of this.subscriptions)e.unsubscribe();this.subscriptions=null}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new X7(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=f9.beta(1)),this.zone.run(()=>{this.dims=function Y7({width:t,height:n}){let e=t,i=n;return e=Math.max(0,e),i=Math.max(0,i),{width:Math.floor(e),height:Math.floor(i)}}({width:this.width,height:this.height}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new m;const e=i=>(i.meta||(i.meta={}),i.id||(i.id=nr()),i.dimension?i.meta.forceDimensions=void 0===i.meta.forceDimensions||i.meta.forceDimensions:(i.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},i.meta.forceDimensions=!1),i.position={x:0,y:0},i.data=i.data?i.data:{},i);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(e):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(e):[],edges:this.links.length>0?[...this.links].map(i=>(i.id||(i.id=nr()),i)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const e=this.layout.run(this.graph),i=e instanceof te?e:na(e);this.graphSubscription.add(i.subscribe(s=>{this.graph=s,this.tick()})),0!==this.graph.nodes.length&&i.pipe(function E9(t,n){const e=arguments.length>=2;return i=>i.pipe(t?GD((s,r)=>t(s,r,i)):H,Vh(1),e?y9(n):w9(()=>new jD))}()).subscribe(()=>this.applyNodeDimensions())}tick(){const e=new Set;this.graph.nodes.map(r=>{r.transform=`translate(${r.position.x-r.dimension.width/2||0}, ${r.position.y-r.dimension.height/2||0})`,r.data||(r.data={}),r.data.color=this.colors.getColor(this.groupResultsBy(r)),e.add(r.id)});const i=new Set;(this.graph.clusters||[]).map(r=>{r.transform=`translate(${r.position.x-r.dimension.width/2||0}, ${r.position.y-r.dimension.height/2||0})`,r.data||(r.data={}),r.data.color=this.colors.getColor(this.groupResultsBy(r)),i.add(r.id)}),setTimeout(()=>{this.oldNodes=e,this.oldClusters=i},500);const s=[];for(const r in this.graph.edgeLabels){const o=this.graph.edgeLabels[r],a=r.replace(/[^\w-]*/g,""),l=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let c=this._oldLinks.find(l?B=>`${B.source}${B.target}${B.id}`===a:B=>`${B.source}${B.target}`===a);const h=this.graph.edges.find(l?B=>`${B.source}${B.target}${B.id}`===a:B=>`${B.source}${B.target}`===a);c?c.data&&h&&h.data&&JSON.stringify(c.data)!==JSON.stringify(h.data)&&(c.data=h.data):c=h||o,c.oldLine=c.line;const b=o.points,T=this.generateLine(b),M=Object.assign({},c);M.line=T,M.points=b,this.updateMidpointOnEdge(M,b);const I=b[Math.floor(b.length/2)];I&&(M.textTransform=`translate(${I.x||0},${I.y||0})`),M.textAngle=0,M.oldLine||(M.oldLine=M.line),this.calcDominantBaseline(M),s.push(M)}this.graph.edges=s,this.graph.edges&&(this._oldLinks=this.graph.edges.map(r=>{const o=Object.assign({},r);return o.oldLine=r.line,o})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case wa.UpperLeft:return"";case wa.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let e=1/0,i=-1/0,s=1/0,r=-1/0;for(let o=0;o<this.graph.nodes.length;o++){const a=this.graph.nodes[o];e=a.position.x<e?a.position.x:e,s=a.position.y<s?a.position.y:s,i=a.position.x+a.dimension.width>i?a.position.x+a.dimension.width:i,r=a.position.y+a.dimension.height>r?a.position.y+a.dimension.height:r}e-=100,s-=100,i+=100,r+=100,this.graphDims.width=i-e,this.graphDims.height=r-s,this.minimapOffsetX=e,this.minimapOffsetY=s}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(e=>{const i=e.nativeElement,s=this.graph.nodes.find(o=>o.id===i.id);if(!s)return;let r;try{if(r=i.getBBox(),!r.width||!r.height)return}catch(o){return}if(s.dimension.height=this.nodeHeight?s.dimension.height&&s.meta.forceDimensions?s.dimension.height:this.nodeHeight:s.dimension.height&&s.meta.forceDimensions?s.dimension.height:r.height,this.nodeMaxHeight&&(s.dimension.height=Math.max(s.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(s.dimension.height=Math.min(s.dimension.height,this.nodeMinHeight)),this.nodeWidth)s.dimension.width=s.dimension.width&&s.meta.forceDimensions?s.dimension.width:this.nodeWidth;else if(i.getElementsByTagName("text").length){let o;try{for(const a of i.getElementsByTagName("text")){const l=a.getBBox();o?(l.width>o.width&&(o.width=l.width),l.height>o.height&&(o.height=l.height)):o=l}}catch(a){return}s.dimension.width=s.dimension.width&&s.meta.forceDimensions?s.dimension.width:o.width+20}else s.dimension.width=s.dimension.width&&s.meta.forceDimensions?s.dimension.width:r.width;this.nodeMaxWidth&&(s.dimension.width=Math.max(s.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(s.dimension.width=Math.min(s.dimension.width,this.nodeMinWidth))})}redrawLines(e=this.animate){this.linkElements.map(i=>{const s=this.graph.edges.find(r=>r.id===i.nativeElement.id);s&&(Sn(i.nativeElement).select(".line").attr("d",s.oldLine).transition().ease(zD).duration(e?500:0).attr("d",s.line),Sn(this.el.nativeElement).select(`#${s.id}`).attr("d",s.oldTextPath).transition().ease(zD).duration(e?500:0).attr("d",s.textPath),this.updateMidpointOnEdge(s,s.points))})}calcDominantBaseline(e){const i=e.points[0],s=e.points[e.points.length-1];e.oldTextPath=e.textPath,s.x<i.x?(e.dominantBaseline="text-before-edge",e.textPath=this.generateLine([...e.points].reverse())):(e.dominantBaseline="text-after-edge",e.textPath=e.line)}generateLine(e){return function Xl(){var t=z1,n=j1,e=$t(!0),i=null,s=io,r=null;function o(a){var l,h,T,c=a.length,b=!1;for(null==i&&(r=s(T=Bm())),l=0;l<=c;++l)!(l<c&&e(h=a[l],l,a))===b&&((b=!b)?r.lineStart():r.lineEnd()),b&&r.point(+t(h,l,a),+n(h,l,a));if(T)return r=null,T+""||null}return o.x=function(a){return arguments.length?(t="function"==typeof a?a:$t(+a),o):t},o.y=function(a){return arguments.length?(n="function"==typeof a?a:$t(+a),o):n},o.defined=function(a){return arguments.length?(e="function"==typeof a?a:$t(!!a),o):e},o.curve=function(a){return arguments.length?(s=a,null!=i&&(r=s(i)),o):s},o.context=function(a){return arguments.length?(null==a?i=r=null:r=s(i=a),o):i},o}().x(s=>s.x).y(s=>s.y).curve(this.curve)(e)}onZoom(e,i){if(this.enableTrackpadSupport&&!e.ctrlKey)return void this.pan(-1*e.deltaX,-1*e.deltaY);const s=1+("in"===i?this.zoomSpeed:-this.zoomSpeed),r=this.zoomLevel*s;if(!(r<=this.minZoomLevel||r>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&e){const o=e.clientX,a=e.clientY,l=this.el.nativeElement.querySelector("svg"),c=l.querySelector("g.chart"),h=l.createSVGPoint();h.x=o,h.y=a;const b=h.matrixTransform(c.getScreenCTM().inverse());this.pan(b.x,b.y,!0),this.zoom(s),this.pan(-b.x,-b.y,!0)}else this.zoom(s)}pan(e,i,s=!1){const r=s?1:this.zoomLevel;this.transformationMatrix=nc(this.transformationMatrix,WD(e/r,i/r)),this.updateTransform()}panTo(e,i){null==e||isNaN(e)||null==i||isNaN(i)||(this.transformationMatrix=nc(this.transformationMatrix,WD((-this.panOffsetX-e*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-i*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(e){this.transformationMatrix=nc(this.transformationMatrix,function P9(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return F9(n)&&(n=t),{a:t,c:0,e:0,b:0,d:n,f:0}}(e,e)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(e){this.transformationMatrix.a=isNaN(e)?this.transformationMatrix.a:Number(e),this.transformationMatrix.d=isNaN(e)?this.transformationMatrix.d:Number(e),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(e){if(!this.draggingEnabled)return;const i=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(i,e),i.position.x+=e.movementX/this.zoomLevel,i.position.y+=e.movementY/this.zoomLevel,i.transform=`translate(${i.position.x-i.dimension.width/2}, ${i.position.y-i.dimension.height/2})`;for(const o of this.graph.edges)if((o.target===i.id||o.source===i.id||o.target.id===i.id||o.source.id===i.id)&&this.layout&&"string"!=typeof this.layout){const a=this.layout.updateEdge(this.graph,o),l=a instanceof te?a:na(a);this.graphSubscription.add(l.subscribe(c=>{this.graph=c,this.redrawEdge(o)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(e){const i=this.generateLine(e.points);this.calcDominantBaseline(e),e.oldLine=e.line,e.line=i}updateTransform(){this.transform=function R9(t){return function UD(t){return"matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}(t)}(function H9(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*n)/n,b:Math.round(t.b*n)/n,c:Math.round(t.c*n)/n,d:Math.round(t.d*n)/n,e:Math.round(t.e*n)/n,f:Math.round(t.f*n)/n}}(this.transformationMatrix,100))}onClick(e){this.select.emit(e)}onActivate(e){this.activeEntries.indexOf(e)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.indexOf(e);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(e=>this.groupResultsBy(e)).reduce((e,i)=>-1!==e.indexOf(i)?e:e.concat([i]),[]).sort()}trackLinkBy(e,i){return i.id}trackNodeBy(e,i){return i.id}setColors(){this.colors=new W7(this.scheme,this.seriesDomain,this.customColors)}onMouseMove(e){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,e):this.isDragging&&this.draggingEnabled&&this.onDrag(e)}onMouseDown(e){this.isMouseMoveCalled=!1}graphClick(e){this.isMouseMoveCalled||this.clickHandler.emit(e)}onTouchStart(e){this._touchLastX=e.changedTouches[0].clientX,this._touchLastY=e.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(e){if(this.isPanning&&this.panningEnabled){const i=e.changedTouches[0].clientX,s=e.changedTouches[0].clientY,r=i-this._touchLastX,o=s-this._touchLastY;this._touchLastX=i,this._touchLastY=s,this.pan(r,o)}}onTouchEnd(e){this.isPanning=!1}onMouseUp(e){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,e)}onNodeMouseDown(e,i){!this.draggingEnabled||(this.isDragging=!0,this.draggingNode=i,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(i,e))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(e){this.panTo((e.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(e.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let s=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);s<this.minZoomLevel&&(s=this.minZoomLevel),s>this.maxZoomLevel&&(s=this.maxZoomLevel),s!==this.zoomLevel&&(this.zoomLevel=s,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(e){const i=this.graph.nodes.find(s=>s.id===e);!i||this.panTo(i.position.x,i.position.y)}panWithConstraints(e,i){let s=i.movementX,r=i.movementY;switch(this.isMinimapPanning&&(s=-this.minimapScaleCoefficient*s*this.zoomLevel,r=-this.minimapScaleCoefficient*r*this.zoomLevel),e){case ba.Horizontal:this.pan(s,0);break;case ba.Vertical:this.pan(0,r);break;default:this.pan(s,r)}}updateMidpointOnEdge(e,i){if(e&&i)if(i.length%2==1)e.midPoint=i[Math.floor(i.length/2)];else{const s=i[i.length/2],r=i[i.length/2-1];e.midPoint={x:(s.x+r.x)/2,y:(s.y+r.y)/2}}}basicUpdate(){if(this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const s=this.el.nativeElement;if(null!==s.parentNode){const r=s.parentNode.getBoundingClientRect();e=r.width,i=r.height}return e&&i?{width:e,height:i}:null}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=th(window,"resize").pipe(Hg(200)).subscribe(s=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}}return t.\u0275fac=function(e){return new(e||t)(Le(Gt),Le(Bt),Le(As),Le(lE))},t.\u0275cmp=$e({type:t,selectors:[["ngx-graph"]],contentQueries:function(e,i,s){if(1&e&&(Rt(s,y7,5),Rt(s,x7,5),Rt(s,b7,5),Rt(s,w7,5),Rt(s,C7,5)),2&e){let r;ft(r=pt())&&(i.linkTemplate=r.first),ft(r=pt())&&(i.nodeTemplate=r.first),ft(r=pt())&&(i.clusterTemplate=r.first),ft(r=pt())&&(i.defsTemplate=r.first),ft(r=pt())&&(i.miniMapNodeTemplate=r.first)}},viewQuery:function(e,i){if(1&e&&(Mi(T7,5),Mi(D7,5)),2&e){let s;ft(s=pt())&&(i.nodeElements=s),ft(s=pt())&&(i.linkElements=s)}},hostBindings:function(e,i){1&e&&ye("mousemove",function(r){return i.onMouseMove(r)},!1,ko)("mousedown",function(r){return i.onMouseDown(r)},!1,ko)("click",function(r){return i.graphClick(r)},!1,ko)("touchmove",function(r){return i.onTouchMove(r)},!1,ko)("mouseup",function(r){return i.onMouseUp(r)},!1,ko)},inputs:{nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",curve:"curve",draggingEnabled:"draggingEnabled",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layout:"layout",layoutSettings:"layoutSettings",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapMaxHeight:"miniMapMaxHeight",miniMapPosition:"miniMapPosition",view:"view",scheme:"scheme",customColors:"customColors",animations:"animations",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[ut],ngContentSelectors:G7,decls:6,vars:11,consts:[["mouseWheel","",1,"ngx-charts-outer",3,"mouseWheelUp","mouseWheelDown"],[1,"ngx-charts"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"id","click"],["clusterElement",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"link-group",3,"id"],["linkElement",""],["class","edge",4,"ngIf"],[1,"edge"],[1,"node-group",3,"id","click","mousedown"],["nodeElement",""],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(e,i){1&e&&(function qc(t){const n=Se()[16][6];if(!n.projection){const i=n.projection=za(t?t.length:1,null),s=i.slice();let r=n.child;for(;null!==r;){const o=t?jL(r,t):0;null!==o&&(s[o]?s[o].projectionNext=r:i[o]=r,s[o]=r),r=r.next}}}(),q(0,"div",0),ye("mouseWheelUp",function(r){return i.onZoom(r,"in")})("mouseWheelDown",function(r){return i.onZoom(r,"out")}),ae(),q(1,"svg",1),ue(2,R7,12,12,"g",2),q(3,"clipPath"),Ie(4,"rect"),re(),ue(5,j7,6,15,"g",3),re()()),2&e&&(vt("width",i.width,"px"),j("@animationState","active")("@.disabled",!i.animations),G(1),me("width",i.width)("height",i.height),G(1),j("ngIf",i.initialized&&i.graph),G(1),me("id",i.minimapClipPathId),G(1),me("width",i.graphDims.width/i.minimapScaleCoefficient)("height",i.graphDims.height/i.minimapScaleCoefficient),G(1),j("ngIf",i.showMiniMap))},directives:[tU,yt,Kp,Mt],styles:[".minimap .minimap-background{fill:#0000001a}.minimap .minimap-drag{fill:#0003;stroke:#fff;stroke-width:1px;stroke-dasharray:2px;stroke-dashoffset:2px;cursor:pointer}.minimap .minimap-drag.panning{fill:#0000004d}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-webkit-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:#0000;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}\n"],encapsulation:2,data:{animation:[zn("animationState",[En(":enter",[lt({opacity:0}),Dn("500ms 100ms",lt({opacity:1}))])])]},changeDetection:0}),Ng([U7(500)],t.prototype,"updateMinimap",null),t})(),iU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({providers:[lE],imports:[[_r]]}),t})(),sU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[_r],iU]}),t})();var cE=Zn(2289);class rU{constructor(n,e,i,s,r){this.element=n,this.newWidth=e,this.newHeight=i,this.oldWidth=s,this.oldHeight=r}}let oU=(()=>{class t{constructor(e){this.element=e,this.resized=new _e}ngOnInit(){cE.ResizeSensor&&(this.resizeSensor=new cE.ResizeSensor(this.element.nativeElement,()=>this.onResized()))}ngOnDestroy(){this.resizeSensor&&this.resizeSensor.detach()}onResized(){const e=this.element.nativeElement.clientWidth,i=this.element.nativeElement.clientHeight;if(e===this.oldWidth&&i===this.oldHeight)return;const s=new rU(this.element,e,i,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.emit(s)}}return t.\u0275fac=function(e){return new(e||t)(Le(Gt))},t.\u0275dir=bn({type:t,selectors:[["","resized",""]],outputs:{resized:"resized"}}),t})(),aU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[]]}),t})();function uE(t,n=0){return function cU(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function jh(t){return Array.isArray(t)?t:[t]}function kn(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Gh(t){return t instanceof Gt?t.nativeElement:t}new class hU extends hs{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,s=-1,r=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++s<r&&(n=e.shift()));if(this.active=!1,i){for(;++s<r&&(n=e.shift());)n.unsubscribe();throw i}}}(class uU extends Ou{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let fU=1;const pU=Promise.resolve(),$h={};function hE(t){return t in $h&&(delete $h[t],!0)}const dE={setImmediate(t){const n=fU++;return $h[n]=!0,pU.then(()=>hE(n)&&t()),n},clearImmediate(t){hE(t)}};new class mU extends hs{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,s=-1,r=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++s<r&&(n=e.shift()));if(this.active=!1,i){for(;++s<r&&(n=e.shift());)n.unsubscribe();throw i}}}(class gU extends Ou{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=dE.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(dE.clearImmediate(e),n.scheduled=void 0)}});class yU{constructor(n){this.durationSelector=n}call(n,e){return e.subscribe(new xU(n,this.durationSelector))}}class xU extends Ct{constructor(n,e){super(n),this.durationSelector=e,this.hasValue=!1}_next(n){if(this.value=n,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:s}=this;e=s(n)}catch(s){return this.destination.error(s)}const i=Ji(e,new wt(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:n,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(n))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function fE(t){return!x(t)&&t-parseFloat(t)+1>=0}function wU(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function pE(t,n=Vg){return function _U(t){return function(e){return e.lift(new yU(t))}}(()=>function bU(t=0,n,e){let i=-1;return fE(n)?i=Number(n)<1?1:Number(n):oe(n)&&(e=n),oe(e)||(e=Vg),new te(s=>{const r=fE(t)?t:+t-e.now();return e.schedule(wU,r,{index:0,period:i,subscriber:s})})}(t,n))}let rv;try{rv="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){rv=!1}let sc,lo,ov,Os=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function p2(t){return t===pw}(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&&!rv)&&"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 t.\u0275fac=function(e){return new(e||t)(Ee(Tp))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),gE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({}),t})();function Uh(t){return function CU(){if(null==sc&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>sc=!0}))}finally{sc=sc||!1}return sc}()?t:!!t.capture}function TU(){if(null==lo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return lo=!1,lo;if("scrollBehavior"in document.documentElement.style)lo=!0;else{const t=Element.prototype.scrollTo;lo=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return lo}function co(t){return t.composedPath?t.composedPath()[0]:t.target}function av(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const SU=new et("cdk-dir-doc",{providedIn:"root",factory:function AU(){return Rd(Nt)}}),MU=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let vE=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new _e,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function kU(t){const n=(null==t?void 0:t.toLowerCase())||"";return"auto"===n&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?MU.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(Ee(SU,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),rc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({}),t})(),_E=(()=>{class t{constructor(e,i,s){this._ngZone=e,this._platform=i,this._scrolled=new $,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new te(i=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(pE(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):na()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const s=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(GD(r=>!r||s.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((s,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let s=Gh(i),r=e.getElementRef().nativeElement;do{if(s==r)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>th(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Ee(Bt),Ee(Os),Ee(Nt,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yE=(()=>{class t{constructor(e,i,s){this._platform=e,this._change=new $,this._changeListener=r=>{this._change.next(r)},this._document=s,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+i,height:s,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),s=e.documentElement,r=s.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||s.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(pE(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(Ee(Os),Ee(Bt),Ee(Nt,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({}),t})(),xE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[rc,gE,lv],rc,lv]}),t})();function ms(t){return n=>n.lift(new OU(t))}class OU{constructor(n){this.notifier=n}call(n,e){const i=new FU(n),s=Ji(this.notifier,new wt(i));return s&&!i.seenValue?(i.add(s),e.subscribe(i)):i}}class FU extends Ct{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const bE=TU();class PU{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=kn(-this._previousScrollPosition.left),n.style.top=kn(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,s=this._document.body.style,r=i.scrollBehavior||"",o=s.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),bE&&(i.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),bE&&(i.scrollBehavior=r,s.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class NU{constructor(n,e,i,s){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class wE{enable(){}disable(){}attach(){}}function cv(t,n){return n.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function CE(t,n){return n.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class RU{constructor(n,e,i,s){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=s,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:s}=this._viewportRuler.getViewportSize();cv(e,[{width:i,height:s,bottom:s,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let BU=(()=>{class t{constructor(e,i,s,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=s,this.noop=()=>new wE,this.close=o=>new NU(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new PU(this._viewportRuler,this._document),this.reposition=o=>new RU(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=r}}return t.\u0275fac=function(e){return new(e||t)(Ee(_E),Ee(yE),Ee(Bt),Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class VU{constructor(n){if(this.scrollStrategy=new wE,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class HU{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}class zU{constructor(n,e,i,s,r,o,a,l,c){this._portalOutlet=n,this._host=e,this._pane=i,this._config=s,this._ngZone=r,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new $,this._attachments=new $,this._detachments=new $,this._locationChanges=m.EMPTY,this._backdropClickHandler=h=>this._backdropClick.next(h),this._keydownEvents=new $,this._outsidePointerEvents=new $,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){let e=this._portalOutlet.attach(n);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Vh(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){var n;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(n=this._host)||void 0===n||n.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=Object.assign(Object.assign({},this._config),n),this._updateElementSize()}setDirection(n){this._config=Object.assign(Object.assign({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=kn(this._config.width),n.height=kn(this._config.height),n.minWidth=kn(this._config.minWidth),n.minHeight=kn(this._config.minHeight),n.maxWidth=kn(this._config.maxWidth),n.maxHeight=kn(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(!n)return;let e;const i=()=>{n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",i),this._disposeBackdrop(n)),this._config.backdropClass&&this._toggleClasses(n,this._config.backdropClass,!1),clearTimeout(e)};n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",i)}),n.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(n,e,i){const s=jh(e||[]).filter(r=>!!r);s.length&&(i?n.classList.add(...s):n.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(ms(Aa(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.remove(),this._backdropElement===n&&(this._backdropElement=null))}}let TE=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||av()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r<s.length;r++)s[r].remove()}const i=this._document.createElement("div");i.classList.add(e),av()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt),Ee(Os))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const DE="cdk-overlay-connected-position-bounding-box",jU=/([A-Za-z%]+)$/;class GU{constructor(n,e,i,s,r){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new $,this._resizeSubscription=m.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}get positions(){return this._preferredPositions}attach(n){this._validatePositions(),n.hostElement.classList.add(DE),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,s=this._containerRect,r=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(n,s,a),c=this._getOverlayPoint(l,e,a),h=this._getOverlayFit(c,e,i,a);if(h.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(h,c,i)?r.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<h.visibleArea)&&(o={overlayFit:h,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}if(r.length){let a=null,l=-1;for(const c of r){const h=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);h>l&&(l=h,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&uo(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(DE),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let s,r;if("center"==i.originX)s=n.left+n.width/2;else{const o=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;s="start"==i.originX?o:a}return e.left<0&&(s-=e.left),r="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(r-=e.top),{x:s,y:r}}_getOverlayPoint(n,e,i){let s,r;return s="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+s,y:n.y+r}}_getOverlayFit(n,e,i,s){const r=SE(e);let{x:o,y:a}=n,l=this._getOffset(s,"x"),c=this._getOffset(s,"y");l&&(o+=l),c&&(a+=c);let T=0-a,M=a+r.height-i.height,I=this._subtractOverflows(r.width,0-o,o+r.width-i.width),B=this._subtractOverflows(r.height,T,M),P=I*B;return{visibleArea:P,isCompletelyWithinViewport:r.width*r.height===P,fitsInViewportVertically:B===r.height,fitsInViewportHorizontally:I==r.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const s=i.bottom-e.y,r=i.right-e.x,o=EE(this._overlayRef.getConfig().minHeight),a=EE(this._overlayRef.getConfig().minWidth),c=n.fitsInViewportHorizontally||null!=a&&a<=r;return(n.fitsInViewportVertically||null!=o&&o<=s)&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const s=SE(e),r=this._viewportRect,o=Math.max(n.x+s.width-r.width,0),a=Math.max(n.y+s.height-r.height,0),l=Math.max(r.top-i.top-n.y,0),c=Math.max(r.left-i.left-n.x,0);let h=0,b=0;return h=s.width<=r.width?c||-o:n.x<this._viewportMargin?r.left-i.left-n.x:0,b=s.height<=r.height?l||-a:n.y<this._viewportMargin?r.top-i.top-n.y:0,this._previousPushAmount={x:h,y:b},{x:n.x+h,y:n.y+b}}_applyPosition(n,e){if(this._setTransformOrigin(n),this._setOverlayElementStyles(e,n),this._setBoundingBoxStyles(e,n),n.panelClass&&this._addPanelClasses(n.panelClass),this._lastPosition=n,this._positionChanges.observers.length){const i=this._getScrollVisibility(),s=new HU(n,i);this._positionChanges.next(s)}this._isInitialRender=!1}_setTransformOrigin(n){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,s=n.overlayY;i="center"===n.overlayX?"center":this._isRtl()?"start"===n.overlayX?"right":"left":"start"===n.overlayX?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${i} ${s}`}_calculateBoundingBoxRect(n,e){const i=this._viewportRect,s=this._isRtl();let r,o,a,h,b,T;if("top"===e.overlayY)o=n.y,r=i.height-o+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-n.y+2*this._viewportMargin,r=i.height-a+this._viewportMargin;else{const M=Math.min(i.bottom-n.y+i.top,n.y),I=this._lastBoundingBoxSize.height;r=2*M,o=n.y-M,r>I&&!this._isInitialRender&&!this._growAfterOpen&&(o=n.y-I/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)T=i.width-n.x+this._viewportMargin,h=n.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)b=n.x,h=i.right-n.x;else{const M=Math.min(i.right-n.x+i.left,n.x),I=this._lastBoundingBoxSize.width;h=2*M,b=n.x-M,h>I&&!this._isInitialRender&&!this._growAfterOpen&&(b=n.x-I/2)}return{top:o,left:b,bottom:a,right:T,width:h,height:r}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;s.height=kn(i.height),s.top=kn(i.top),s.bottom=kn(i.bottom),s.width=kn(i.width),s.left=kn(i.left),s.right=kn(i.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(s.maxHeight=kn(r)),o&&(s.maxWidth=kn(o))}this._lastBoundingBoxSize=i,uo(this._boundingBox.style,s)}_resetBoundingBoxStyles(){uo(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){uo(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},s=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(s){const h=this._viewportRuler.getViewportScrollPosition();uo(i,this._getExactOverlayY(e,n,h)),uo(i,this._getExactOverlayX(e,n,h))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(s?i.maxHeight=kn(o.maxHeight):r&&(i.maxHeight="")),o.maxWidth&&(s?i.maxWidth=kn(o.maxWidth):r&&(i.maxWidth="")),uo(this._pane.style,i)}_getExactOverlayY(n,e,i){let s={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"bottom"===n.overlayY?s.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":s.top=kn(r.y),s}_getExactOverlayX(n,e,i){let o,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),o=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===o?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=kn(r.x),s}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:CE(n,i),isOriginOutsideView:cv(n,i),isOverlayClipped:CE(e,i),isOverlayOutsideView:cv(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,s)=>i-Math.max(s,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&jh(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Gt)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function uo(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function EE(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(jU);return e&&"px"!==e?null:parseFloat(n)}return t||null}function SE(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const AE="cdk-global-overlay-wrapper";class $U{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(AE),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._rightOffset="",this._leftOffset=n,this._justifyContent="flex-start",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._leftOffset="",this._rightOffset=n,this._justifyContent="flex-end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._justifyContent="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:s,height:r,maxWidth:o,maxHeight:a}=i,l=!("100%"!==s&&"100vw"!==s||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);n.position=this._cssPosition,n.marginLeft=l?"0":this._leftOffset,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(AE),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let UU=(()=>{class t{constructor(e,i,s,r){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=r}global(){return new $U}flexibleConnectedTo(e){return new GU(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(Ee(yE),Ee(Nt),Ee(Os),Ee(TE))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ME=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),WU=(()=>{class t extends ME{constructor(e){super(e),this._keydownListener=i=>{const s=this._attachedOverlays;for(let r=s.length-1;r>-1;r--)if(s[r]._keydownEvents.observers.length>0){s[r]._keydownEvents.next(i);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),YU=(()=>{class t extends ME{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=co(s)},this._clickListener=s=>{const r=co(s),o="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(r)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(s)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt),Ee(Os))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),XU=0,Yh=(()=>{class t{constructor(e,i,s,r,o,a,l,c,h,b,T){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=s,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=h,this._location=b,this._outsideClickDispatcher=T}create(e){const i=this._createHostElement(),s=this._createPaneElement(i),r=this._createPortalOutlet(s),o=new VU(e);return o.direction=o.direction||this._directionality.value,new zU(r,i,s,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+XU++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(vl)),new MC(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(Ee(BU),Ee(TE),Ee(mr),Ee(UU),Ee(WU),Ee(oi),Ee(Bt),Ee(Nt),Ee(vE),Ee(tw),Ee(YU))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();const QU={provide:new et("cdk-connected-overlay-scroll-strategy"),deps:[Yh],useFactory:function KU(t){return()=>t.scrollStrategies.reposition()}};let JU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({providers:[Yh,QU],imports:[[rc,EB,xE],xE]}),t})();class qU extends ${constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new N;return this._value}next(n){super.next(this._value=n)}}function kE(t){return n=>n.lift(new aW(t))}class aW{constructor(n){this.total=n}call(n,e){return e.subscribe(new lW(n,this.total))}}class lW extends k{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){++this.count>this.total&&this.destination.next(n)}}class uW{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new hW(n,this.compare,this.keySelector))}}class hW extends k{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:s}=this;e=s?s(n):n}catch(s){return this.destination.error(s)}let i=!1;if(this.hasKey)try{const{compare:s}=this;i=s(this.key,e)}catch(s){return this.destination.error(s)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}let dW=(()=>{class t{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),fW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({providers:[dW]}),t})();function Xh(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const IE="cdk-describedby-message-container",OE="cdk-describedby-message",Zh="cdk-describedby-host";let mW=0;const Fs=new Map;let Ni=null,vW=(()=>{class t{constructor(e){this._document=e}describe(e,i,s){if(!this._canBeDescribed(e,i))return;const r=uv(i,s);"string"!=typeof i?(FE(i),Fs.set(r,{messageElement:i,referenceCount:0})):Fs.has(r)||this._createMessageElement(i,s),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,s){if(!i||!this._isElementNode(e))return;const r=uv(i,s);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),"string"==typeof i){const o=Fs.get(r);o&&0===o.referenceCount&&this._deleteMessageElement(r)}Ni&&0===Ni.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Zh}]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(Zh);Ni&&this._deleteMessagesContainer(),Fs.clear()}_createMessageElement(e,i){const s=this._document.createElement("div");FE(s),s.textContent=e,i&&s.setAttribute("role",i),this._createMessagesContainer(),Ni.appendChild(s),Fs.set(uv(e,i),{messageElement:s,referenceCount:0})}_deleteMessageElement(e){var i;const s=Fs.get(e);null===(i=null==s?void 0:s.messageElement)||void 0===i||i.remove(),Fs.delete(e)}_createMessagesContainer(){if(!Ni){const e=this._document.getElementById(IE);null==e||e.remove(),Ni=this._document.createElement("div"),Ni.id=IE,Ni.style.visibility="hidden",Ni.classList.add("cdk-visually-hidden"),this._document.body.appendChild(Ni)}}_deleteMessagesContainer(){Ni&&(Ni.remove(),Ni=null)}_removeCdkDescribedByReferenceIds(e){const i=Xh(e,"aria-describedby").filter(s=>0!=s.indexOf(OE));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const s=Fs.get(i);(function pW(t,n,e){const i=Xh(t,n);i.some(s=>s.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))})(e,"aria-describedby",s.messageElement.id),e.setAttribute(Zh,""),s.referenceCount++}_removeMessageReference(e,i){const s=Fs.get(i);s.referenceCount--,function gW(t,n,e){const s=Xh(t,n).filter(r=>r!=e.trim());s.length?t.setAttribute(n,s.join(" ")):t.removeAttribute(n)}(e,"aria-describedby",s.messageElement.id),e.removeAttribute(Zh)}_isElementDescribedByMessage(e,i){const s=Xh(e,"aria-describedby"),r=Fs.get(i),o=r&&r.messageElement.id;return!!o&&-1!=s.indexOf(o)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const s=null==i?"":`${i}`.trim(),r=e.getAttribute("aria-label");return!(!s||r&&r.trim()===s)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function uv(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function FE(t){t.id||(t.id=`${OE}-${mW++}`)}const DW=new et("cdk-input-modality-detector-options"),EW={ignoreKeys:[18,17,224,91,16]},Ea=Uh({passive:!0,capture:!0});let SW=(()=>{class t{constructor(e,i,s,r){this._platform=e,this._mostRecentTarget=null,this._modality=new qU(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=co(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(function CW(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}(o)?"keyboard":"mouse"),this._mostRecentTarget=co(o))},this._onTouchstart=o=>{!function TW(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}(o)?(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=co(o)):this._modality.next("keyboard")},this._options=Object.assign(Object.assign({},EW),r),this.modalityDetected=this._modality.pipe(kE(1)),this.modalityChanged=this.modalityDetected.pipe(function cW(t,n){return e=>e.lift(new uW(t,n))}()),e.isBrowser&&i.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,Ea),s.addEventListener("mousedown",this._onMousedown,Ea),s.addEventListener("touchstart",this._onTouchstart,Ea)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ea),document.removeEventListener("mousedown",this._onMousedown,Ea),document.removeEventListener("touchstart",this._onTouchstart,Ea))}}return t.\u0275fac=function(e){return new(e||t)(Ee(Os),Ee(Bt),Ee(Nt),Ee(DW,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const MW=new et("cdk-focus-monitor-default-options"),Kh=Uh({passive:!0,capture:!0});let kW=(()=>{class t{constructor(e,i,s,r,o){this._ngZone=e,this._platform=i,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new $,this._rootNodeFocusAndBlurListener=a=>{const l=co(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let h=l;h;h=h.parentElement)c.call(this,a,h)},this._document=r,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,i=!1){const s=Gh(e);if(!this._platform.isBrowser||1!==s.nodeType)return na(null);const r=function EU(t){if(function DU(){if(null==ov){const t="undefined"!=typeof document?document.head:null;ov=!(!t||!t.createShadowRoot&&!t.attachShadow)}return ov}()){const n=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(s)||this._getDocument(),o=this._elementInfo.get(s);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new $,rootNode:r};return this._elementInfo.set(s,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Gh(e),s=this._elementInfo.get(i);s&&(s.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(s))}focusVia(e,i,s){const r=Gh(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const s=this._elementInfo.get(i),r=co(e);!s||!s.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),s)}_onBlur(e,i){const s=this._elementInfo.get(i);!s||s.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(s.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,s=this._rootNodeFocusListenerCount.get(i)||0;s||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Kh),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Kh)}),this._rootNodeFocusListenerCount.set(i,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ms(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const s=this._rootNodeFocusListenerCount.get(i);s>1?this._rootNodeFocusListenerCount.set(i,s-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Kh),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Kh),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,s){this._setClasses(e,i),this._emitOrigin(s.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((s,r)=>{(r===e||s.checkChildren&&r.contains(e))&&i.push([r,s])}),i}}return t.\u0275fac=function(e){return new(e||t)(Ee(Bt),Ee(Os),Ee(SW),Ee(Nt,8),Ee(MW,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const RE="cdk-high-contrast-black-on-white",BE="cdk-high-contrast-white-on-black",hv="cdk-high-contrast-active";let VE=(()=>{class t{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,s=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(hv),e.remove(RE),e.remove(BE),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(hv),e.add(RE)):2===i&&(e.add(hv),e.add(BE))}}}return t.\u0275fac=function(e){return new(e||t)(Ee(Os),Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),LW=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(Ee(VE))},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gE,fW]]}),t})();const OW=new et("mat-sanity-checks",{providedIn:"root",factory:function IW(){return!0}});let jE=(()=>{class t{constructor(e,i,s){this._sanityChecks=i,this._document=s,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!av()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(Ee(VE),Ee(OW,8),Ee(Nt))},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[rc],rc]}),t})();class VW extends k{notifyNext(n,e,i,s,r){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class HW extends k{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function zW(t,n,e,i,s=new HW(t,e,i)){if(!s.closed)return n instanceof te?n.subscribe(s):Te(n)(s)}const WE={};class GW{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new $W(n,this.resultSelector))}}class $W extends VW{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(WE),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i<e;i++)this.add(zW(this,n[i],void 0,i))}}notifyComplete(n){0==(this.active-=1)&&this.destination.complete()}notifyNext(n,e,i){const s=this.values,o=this.toRespond?s[i]===WE?--this.toRespond:this.toRespond:0;s[i]=e,0===o&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(n){let e;try{e=this.resultSelector.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function fv(...t){return function UW(){return Ar(1)}()(na(...t))}function WW(...t){const n=t[t.length-1];return oe(n)?(t.pop(),e=>fv(t,e,n)):e=>fv(t,e)}const YE=new Set;let Sa,YW=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ZW}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function XW(t){if(!YE.has(t))try{Sa||(Sa=document.createElement("style"),Sa.setAttribute("type","text/css"),document.head.appendChild(Sa)),Sa.sheet&&(Sa.sheet.insertRule(`@media ${t} {body{ }}`,0),YE.add(t))}catch(n){console.error(n)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(Ee(Os))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function ZW(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let KW=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new $}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return XE(jh(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){let r=function jW(...t){let n,e;return oe(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&x(t[0])&&(t=t[0]),rr(t,e).lift(new GW(n))}(XE(jh(e)).map(o=>this._registerQuery(o).observable));return r=fv(r.pipe(Vh(1)),r.pipe(kE(1),Hg(0))),r.pipe(de(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new te(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(WW(i),de(({matches:o})=>({query:e,matches:o})),ms(this._destroySubject)),mql:i};return this._queries.set(e,r),r}}return t.\u0275fac=function(e){return new(e||t)(Ee(YW),Ee(Bt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function XE(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}const JW={tooltipState:zn("state",[jw("initial, void, hidden",lt({opacity:0,transform:"scale(0)"})),jw("visible",lt({transform:"scale(1)"})),En("* => visible",Dn("200ms cubic-bezier(0, 0, 0.2, 1)",wR([lt({opacity:0,transform:"scale(0)",offset:0}),lt({opacity:.5,transform:"scale(0.99)",offset:.5}),lt({opacity:1,transform:"scale(1)",offset:1})]))),En("* => hidden",Dn("100ms cubic-bezier(0, 0, 0.2, 1)",lt({opacity:0})))])},ZE="tooltip-panel",KE=Uh({passive:!0}),QE=new et("mat-tooltip-scroll-strategy"),nY={provide:QE,deps:[Yh],useFactory:function tY(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},iY=new et("mat-tooltip-default-options",{providedIn:"root",factory:function sY(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let rY=(()=>{class t{constructor(e,i,s,r,o,a,l,c,h,b,T,M){this._overlay=e,this._elementRef=i,this._scrollDispatcher=s,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=b,this._defaultOptions=T,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 $,this._scrollStrategy=h,this._document=M,T&&(T.position&&(this.position=T.position),T.touchGestures&&(this.touchGestures=T.touchGestures)),b.change.pipe(ms(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=function lU(t){return null!=t&&"false"!=`${t}`}(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=uE(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=uE(e)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ms(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,s])=>{e.removeEventListener(i,s,KE)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new Og(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(ms(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe(ms(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${ZE}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ms(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ms(this._destroyed)).subscribe(()=>{var s;return null===(s=this._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(ms(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!function oW(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,s=this._getOrigin(),r=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},s.main),r.main)),this._addOffset(Object.assign(Object.assign({},s.fallback),r.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let s;"above"==i||"below"==i?s={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?s={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(s={originX:"end",originY:"center"});const{x:r,y:o}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:r,originY:o}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let s;"above"==i?s={overlayX:"center",overlayY:"bottom"}:"below"==i?s={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?s={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(s={overlayX:"start",overlayY:"center"});const{x:r,y:o}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:r,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Vh(1),ms(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:s,originY:r}=e;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===i&&"top"===r?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${ZE}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,s])=>{this._elementRef.nativeElement.addEventListener(i,s,KE)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;i!==s&&!s.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,s=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===e||!i.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){!function wx(){throw new Error("invalid")}()},t.\u0275dir=bn({type:t,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),oY=(()=>{class t extends rY{constructor(e,i,s,r,o,a,l,c,h,b,T,M){super(e,i,s,r,o,a,l,c,h,b,T,M),this._tooltipComponent=lY}}return t.\u0275fac=function(e){return new(e||t)(Le(Yh),Le(Gt),Le(_E),Le(Gi),Le(Bt),Le(Os),Le(vW),Le(kW),Le(QE),Le(vE,8),Le(iY,8),Le(Nt))},t.\u0275dir=bn({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[qt]}),t})(),aY=(()=>{class t{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new $}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const i=e.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return t.\u0275fac=function(e){return new(e||t)(Le(As))},t.\u0275dir=bn({type:t}),t})(),lY=(()=>{class t extends aY{constructor(e,i){super(e),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(Le(As),Le(KW))},t.\u0275cmp=$e({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){2&e&&vt("zoom","visible"===i._visibility?1:null)},features:[qt],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,i){if(1&e&&(q(0,"div",0),ye("@state.start",function(){return i._animationStart()})("@state.done",function(r){return i._animationDone(r)}),function n0(t,n){const e=Lt();let i;const s=t+20;e.firstCreatePass?(i=function YO(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[s]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(s,i.onDestroy)):i=e.data[s];const r=i.factory||(i.factory=Or(i.type)),o=ar(Le);try{const a=Ac(!1),l=r();return Ac(a),function _L(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Se(),s,l),l}finally{ar(o)}}(1,"async"),St(2),re()),2&e){let s;an("mat-tooltip-handset",null==(s=function s0(t,n,e){const i=t+20,s=Se(),r=function _o(t,n){return t[n]}(s,i);return function fl(t,n){return t[1].data[n].pure}(s,i)?Qb(s,ii(),n,r.transform,e,r):r.transform(e)}(1,5,i._isHandset))?null:s.matches),j("ngClass",i.tooltipClass)("@state",i._visibility),G(2),mi(i.message)}},directives:[hw],pipes:[xw],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:[JW.tooltipState]},changeDetection:0}),t})(),cY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({providers:[nY],imports:[[LW,_r,JU,jE],jE,lv]}),t})();function uY(t,n){1&t&&(ae(),q(0,"marker",6),Ie(1,"path",7),re())}function hY(t,n){if(1&t){const e=Be();ae(),q(0,"g",8),ye("click",function(){const r=ve(e).$implicit,o=W(2);return o.onNodeClick?o.onNodeClick({nodeId:r.id}):null}),Ie(1,"rect",9)(2,"text",10),re()}if(2&t){const e=n.$implicit,i=W(2);j("matTooltip",e.data.tooltip),G(1),me("width",e.dimension.width)("height",e.dimension.height)("fill",e.data.customColor||e.data.color),G(1),j("innerHTML",i.getSanitizedString(e.label),Qa),me("x",10)("y",e.dimension.height/2)}}function dY(t,n){if(1&t){const e=Be();ae(),q(0,"g",11),ye("click",function(){const r=ve(e).$implicit,o=W(2);return o.onLinkClick?o.onLinkClick({sourceNodeId:r.source,targetNodeId:r.target,id:r.originalId}):null}),Ie(1,"path",12),q(2,"text",13)(3,"textPath",14),St(4),re()()()}if(2&t){const e=n.$implicit;G(3),vt("dominant-baseline",e.dominantBaseline),me("href","#"+e.id),G(1),nn(" ",e.label," ")}}function fY(t,n){if(1&t&&(q(0,"ngx-graph",2),ue(1,uY,2,0,"ng-template",null,3,pl),ue(3,hY,3,7,"ng-template",null,4,pl),ue(5,dY,5,4,"ng-template",null,5,pl),re()),2&t){const e=W();j("showMiniMap",e.showMiniMap)("draggingEnabled",e.draggingEnabled)("links",e.safeLinks)("nodes",e.nodes)("autoCenter",e.autoCenter)("autoZoom",e.autoZoom)}}let pY=(()=>{class t{constructor(e){this.sanitizer=e,this.safeLinks=[]}ngOnChanges(){this.safeLinks=(this.links||[]).map((e,i)=>Object.assign(Object.assign({},e),{originalId:e.id||i,id:`edge-${e.id||i}`}))}onResized(e){window.dispatchEvent(new Event("resize"))}getSanitizedString(e){return this.sanitizer.bypassSecurityTrustHtml(e)}}return t.\u0275fac=function(e){return new(e||t)(Le(rg))},t.\u0275cmp=$e({type:t,selectors:[["drayman-ngx-graph-internal"]],inputs:{links:"links",nodes:"nodes",clusters:"clusters",showMiniMap:"showMiniMap",draggingEnabled:"draggingEnabled",autoCenter:"autoCenter",autoZoom:"autoZoom",onNodeClick:"onNodeClick",onLinkClick:"onLinkClick"},features:[ut],decls:2,vars:1,consts:[[2,"width","100%","height","100%",3,"resized"],[3,"showMiniMap","draggingEnabled","links","nodes","autoCenter","autoZoom",4,"ngIf"],[3,"showMiniMap","draggingEnabled","links","nodes","autoCenter","autoZoom"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","viewBox","0 -5 10 10","refX","8","refY","0","markerWidth","4","markerHeight","4","orient","auto"],["d","M0,-5L10,0L0,5",1,"arrow-head"],[1,"node",2,"cursor","pointer",3,"matTooltip","click"],["rx","4px"],["alignment-baseline","central",3,"innerHTML"],[1,"edge",2,"cursor","pointer",3,"click"],["stroke-width","2","marker-end","url(#arrow)",1,"line"],["text-anchor","middle",1,"edge-label"],["startOffset","50%",1,"text-path"]],template:function(e,i){1&e&&(q(0,"div",0),ye("resized",function(r){return i.onResized(r)}),ue(1,fY,7,6,"ngx-graph",1),re()),2&e&&(G(1),j("ngIf",null==i.nodes?null:i.nodes.length))},directives:[oU,yt,nU,oY],styles:[""]}),t})(),gY=(()=>{class t{constructor(e){this.injector=e}ngDoBootstrap(){const e=function xR(t,n){const e=function fR(t,n){return n.get(mr).resolveComponentFactory(t).inputs}(t,n.injector),i=n.strategyFactory||new vR(t,n.injector),s=function dR(t){const n={};return t.forEach(({propName:e,templateName:i})=>{n[function aR(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(i)]=e}),n}(e);class r extends yR{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||n.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,h){this.ngElementStrategy.setInputValue(s[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return r.observedAttributes=Object.keys(s),e.forEach(({propName:o})=>{Object.defineProperty(r.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),r}(pY,{injector:this.injector});customElements.define("drayman-ngx-graph",e)}}return t.\u0275fac=function(e){return new(e||t)(Ee(oi))},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[Ow,bB,d9,sU,aU,cY]]}),t})();(function QF(){H0=!1})(),PN().bootstrapModule(gY).catch(t=>console.error(t))})()})();
|
|
1
|
+
(()=>{var eS={2289:(E,L,u)=>{E.exports={ResizeSensor:u(294),ElementQueries:u(3322)}},3322:function(E,L,u){"use strict";var D,w;"undefined"!=typeof window&&window,D=[u(294)],void 0!==(w=function(C){var _=function(){var g,f={},v=[];function m(N){N||(N=document.documentElement);var V=window.getComputedStyle(N,null).fontSize;return parseFloat(V)||16}function y(N,V){var U=V.split(/\d/),$=U[U.length-1];switch(V=parseFloat(V),$){case"px":default:return V;case"em":return V*m(N);case"rem":return V*m();case"vw":return V*document.documentElement.clientWidth/100;case"vh":return V*document.documentElement.clientHeight/100;case"vmin":case"vmax":var Y=document.documentElement.clientWidth/100,oe=document.documentElement.clientHeight/100;return V*(0,Math["vmin"===$?"min":"max"])(Y,oe)}}function S(N,V){this.element=N;var U,$,Y,oe,de,ee,J,ce,pe=["min-width","min-height","max-width","max-height"];this.call=function(){for(U in Y=function p(N){if(!N.getBoundingClientRect)return{width:N.offsetWidth,height:N.offsetHeight};var V=N.getBoundingClientRect();return{width:Math.round(V.width),height:Math.round(V.height)}}(this.element),ee={},f[V])!f[V].hasOwnProperty(U)||(oe=y(this.element,($=f[V][U]).value),de="width"===$.property?Y.width:Y.height,J="","min"===$.mode&&de>=oe&&(J+=$.value),"max"===$.mode&&de<=oe&&(J+=$.value),ee[ce=$.mode+"-"+$.property]||(ee[ce]=""),J&&-1===(" "+ee[ce]+" ").indexOf(" "+J+" ")&&(ee[ce]+=" "+J));for(var be in pe)!pe.hasOwnProperty(be)||(ee[pe[be]]?this.element.setAttribute(pe[be],ee[pe[be]].substr(1)):this.element.removeAttribute(pe[be]))}}function k(N,V){N.elementQueriesSetupInformation||(N.elementQueriesSetupInformation=new S(N,V)),N.elementQueriesSensor||(N.elementQueriesSensor=new C(N,function(){N.elementQueriesSetupInformation.call()}))}function O(N,V,U,$){if(void 0===f[N]){f[N]=[];var Y=v.length;g.innerHTML+="\n"+N+" {animation: 0.1s element-queries;}",g.innerHTML+="\n"+N+" > .resize-sensor {min-width: "+Y+"px;}",v.push(N)}f[N].push({mode:V,property:U,value:$})}function F(N){var V;if(document.querySelectorAll&&(V=N?N.querySelectorAll.bind(N):document.querySelectorAll.bind(document)),!V&&"undefined"!=typeof $$&&(V=$$),!V&&"undefined"!=typeof jQuery&&(V=jQuery),!V)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return V}function z(N){var V=[],U=[],$=[],Y=0,oe=-1,de=[];for(var ee in N.children)if(N.children.hasOwnProperty(ee)&&N.children[ee].tagName&&"img"===N.children[ee].tagName.toLowerCase()){V.push(N.children[ee]);var J=N.children[ee].getAttribute("min-width")||N.children[ee].getAttribute("data-min-width"),ce=N.children[ee].getAttribute("data-src")||N.children[ee].getAttribute("url");$.push(ce),U.push({minWidth:J}),J?N.children[ee].style.display="none":(Y=V.length-1,N.children[ee].style.display="block")}function be(){var De,fe=!1;for(De in V)!V.hasOwnProperty(De)||U[De].minWidth&&N.offsetWidth>U[De].minWidth&&(fe=De);if(fe||(fe=Y),oe!==fe)if(de[fe])V[oe].style.display="none",V[fe].style.display="block",oe=fe;else{var Pe=new Image;Pe.onload=function(){V[fe].src=$[fe],V[oe].style.display="none",V[fe].style.display="block",de[fe]=!0,oe=fe},Pe.src=$[fe]}else V[fe].src=$[fe]}oe=Y,N.resizeSensorInstance=new C(N,be),be()}var X=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,se=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function te(N){var V,U,$,Y;for(N=N.replace(/'/g,'"');null!==(V=X.exec(N));)for(U=V[1]+V[3],$=V[2];null!==(Y=se.exec($));)O(U,Y[1],Y[2],Y[3])}function ie(N){var V="";if(N)if("string"==typeof N)(-1!==(N=N.toLowerCase()).indexOf("min-width")||-1!==N.indexOf("max-width"))&&te(N);else for(var U=0,$=N.length;U<$;U++)1===N[U].type?(-1!==(V=N[U].selectorText||N[U].cssText).indexOf("min-height")||-1!==V.indexOf("max-height")||-1!==V.indexOf("min-width")||-1!==V.indexOf("max-width"))&&te(V):4===N[U].type?ie(N[U].cssRules||N[U].rules):3===N[U].type&&N[U].styleSheet.hasOwnProperty("cssRules")&&ie(N[U].styleSheet.cssRules)}var le=!1;this.init=function(){var N="animationstart";void 0!==document.documentElement.style.webkitAnimationName?N="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?N="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(N="oanimationstart"),document.body.addEventListener(N,function($){var Y=$.target,oe=Y&&window.getComputedStyle(Y,null),de=oe&&oe.getPropertyValue("animation-name");if(de&&-1!==de.indexOf("element-queries")){Y.elementQueriesSensor=new C(Y,function(){Y.elementQueriesSetupInformation&&Y.elementQueriesSetupInformation.call()});var ce=window.getComputedStyle(Y.resizeSensor,null).getPropertyValue("min-width");ce=parseInt(ce.replace("px","")),k($.target,v[ce])}}),le||((g=document.createElement("style")).type="text/css",g.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",g.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(g),le=!0);for(var V=0,U=document.styleSheets.length;V<U;V++)try{document.styleSheets[V].href&&0===document.styleSheets[V].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[V].href),ie(document.styleSheets[V].cssRules||document.styleSheets[V].rules||document.styleSheets[V].cssText)}catch($){}!function H(){for(var V=F()("[data-responsive-image],[responsive-image]"),U=0,$=V.length;U<$;U++)z(V[U])}()},this.findElementQueriesElements=function(N){!function R(N){var V=F(N);for(var U in f)if(f.hasOwnProperty(U))for(var $=V(U,N),Y=0,oe=$.length;Y<oe;Y++)k($[Y],U)}(N)},this.update=function(){this.init()}};_.update=function(){_.instance.update()},_.detach=function(g){g.elementQueriesSetupInformation?(g.elementQueriesSensor.detach(),delete g.elementQueriesSetupInformation,delete g.elementQueriesSensor):g.resizeSensorInstance&&(g.resizeSensorInstance.detach(),delete g.resizeSensorInstance)},_.init=function(){_.instance||(_.instance=new _),_.instance.init()};return _.findElementQueriesElements=function(g){_.instance.findElementQueriesElements(g)},_.listen=function(){!function(g){if(document.addEventListener)document.addEventListener("DOMContentLoaded",g,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var f=setInterval(function(){/loaded|complete/i.test(document.readyState)&&(g(),clearInterval(f))},10);else window.onload=g}(_.init)},_}.apply(L,D))&&(E.exports=w)},294:function(E,L,u){"use strict";var D;"undefined"!=typeof window&&window,void 0!==(D=function(){if("undefined"==typeof window)return null;var w="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),C=w.requestAnimationFrame||w.mozRequestAnimationFrame||w.webkitRequestAnimationFrame||function(p){return w.setTimeout(p,20)},_=w.cancelAnimationFrame||w.mozCancelAnimationFrame||w.webkitCancelAnimationFrame||function(p){w.clearTimeout(p)};function x(p,y){var S=Object.prototype.toString.call(p),k="[object Array]"===S||"[object NodeList]"===S||"[object HTMLCollection]"===S||"[object Object]"===S||"undefined"!=typeof jQuery&&p instanceof jQuery||"undefined"!=typeof Elements&&p instanceof Elements,O=0,F=p.length;if(k)for(;O<F;O++)y(p[O]);else y(p)}function g(p){if(!p.getBoundingClientRect)return{width:p.offsetWidth,height:p.offsetHeight};var y=p.getBoundingClientRect();return{width:Math.round(y.width),height:Math.round(y.height)}}function f(p,y){Object.keys(y).forEach(function(S){p.style[S]=y[S]})}var v=function(p,y){var S=0;function k(){var R,z,F=[];this.add=function(H){F.push(H)},this.call=function(H){for(R=0,z=F.length;R<z;R++)F[R].call(this,H)},this.remove=function(H){var X=[];for(R=0,z=F.length;R<z;R++)F[R]!==H&&X.push(F[R]);F=X},this.length=function(){return F.length}}function O(F,R){if(F){if(F.resizedAttached)return void F.resizedAttached.add(R);F.resizedAttached=new k,F.resizedAttached.add(R),F.resizeSensor=document.createElement("div"),F.resizeSensor.dir="ltr",F.resizeSensor.className="resize-sensor";var z={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},H={position:"absolute",left:"0px",top:"0px",transition:"0s"};f(F.resizeSensor,z);var X=document.createElement("div");X.className="resize-sensor-expand",f(X,z);var se=document.createElement("div");f(se,H),X.appendChild(se);var te=document.createElement("div");te.className="resize-sensor-shrink",f(te,z);var ie=document.createElement("div");f(ie,H),f(ie,{width:"200%",height:"200%"}),te.appendChild(ie),F.resizeSensor.appendChild(X),F.resizeSensor.appendChild(te),F.appendChild(F.resizeSensor);var le=window.getComputedStyle(F),N=le?le.getPropertyValue("position"):null;"absolute"!==N&&"relative"!==N&&"fixed"!==N&&"sticky"!==N&&(F.style.position="relative");var V=!1,U=0,$=g(F),Y=0,oe=0,de=!0;S=0;var J=function(){if(de){if(0===F.offsetWidth&&0===F.offsetHeight)return void(S||(S=C(function(){S=0,J()})));de=!1}var fe,De;De=F.offsetHeight,se.style.width=(fe=F.offsetWidth)+10+"px",se.style.height=De+10+"px",X.scrollLeft=fe+10,X.scrollTop=De+10,te.scrollLeft=fe+10,te.scrollTop=De+10};F.resizeSensor.resetSensor=J;var ce=function(){U=0,V&&(Y=$.width,oe=$.height,F.resizedAttached&&F.resizedAttached.call($))},pe=function(){$=g(F),(V=$.width!==Y||$.height!==oe)&&!U&&(U=C(ce)),J()},be=function(fe,De,Pe){fe.attachEvent?fe.attachEvent("on"+De,Pe):fe.addEventListener(De,Pe)};be(X,"scroll",pe),be(te,"scroll",pe),S=C(function(){S=0,J()})}}x(p,function(F){O(F,y)}),this.detach=function(F){S||(_(S),S=0),v.detach(p,F)},this.reset=function(){p.resizeSensor.resetSensor()}};if(v.reset=function(p){x(p,function(y){y.resizeSensor.resetSensor()})},v.detach=function(p,y){x(p,function(S){!S||S.resizedAttached&&"function"==typeof y&&(S.resizedAttached.remove(y),S.resizedAttached.length())||S.resizeSensor&&(S.contains(S.resizeSensor)&&S.removeChild(S.resizeSensor),delete S.resizeSensor,delete S.resizedAttached)})},"undefined"!=typeof MutationObserver){var m=new MutationObserver(function(p){for(var y in p)if(p.hasOwnProperty(y))for(var S=p[y].addedNodes,k=0;k<S.length;k++)S[k].resizeSensor&&v.reset(S[k])});document.addEventListener("DOMContentLoaded",function(p){m.observe(document.body,{childList:!0,subtree:!0})})}return v}.call(L,u,L,E))&&(E.exports=D)},9695:(E,L,u)=>{E.exports={graphlib:u(6456),layout:u(4850),debug:u(1914),util:{time:u(1510).time,notime:u(1510).notime},version:u(8126)}},2234:(E,L,u)=>{"use strict";var d=u(5760),D=u(7365);E.exports={run:function w(x){var g="greedy"===x.graph().acyclicer?D(x,function f(v){return function(m){return v.edge(m).weight}}(x)):function C(x){var g=[],f={},v={};return d.forEach(x.nodes(),function m(p){d.has(v,p)||(v[p]=!0,f[p]=!0,d.forEach(x.outEdges(p),function(y){d.has(f,y.w)?g.push(y):m(y.w)}),delete f[p])}),g}(x);d.forEach(g,function(v){var m=x.edge(v);x.removeEdge(v),m.forwardName=v.name,m.reversed=!0,x.setEdge(v.w,v.v,m,d.uniqueId("rev"))})},undo:function _(x){d.forEach(x.edges(),function(g){var f=x.edge(g);if(f.reversed){x.removeEdge(g);var v=f.forwardName;delete f.reversed,delete f.forwardName,x.setEdge(g.w,g.v,f,v)}})}}},9999:(E,L,u)=>{var d=u(5760),D=u(1510);function C(_,x,g,f,v,m){var y=v[x][m-1],S=D.addDummyNode(_,"border",{width:0,height:0,rank:m,borderType:x},g);v[x][m]=S,_.setParent(S,f),y&&_.setEdge(y,S,{weight:1})}E.exports=function w(_){d.forEach(_.children(),function x(g){var f=_.children(g),v=_.node(g);if(f.length&&d.forEach(f,x),d.has(v,"minRank")){v.borderLeft=[],v.borderRight=[];for(var m=v.minRank,p=v.maxRank+1;m<p;++m)C(_,"borderLeft","_bl",g,v,m),C(_,"borderRight","_br",g,v,m)}})}},3870:(E,L,u)=>{"use strict";var d=u(5760);function C(m){d.forEach(m.nodes(),function(p){_(m.node(p))}),d.forEach(m.edges(),function(p){_(m.edge(p))})}function _(m){var p=m.width;m.width=m.height,m.height=p}function g(m){m.y=-m.y}function v(m){var p=m.x;m.x=m.y,m.y=p}E.exports={adjust:function D(m){var p=m.graph().rankdir.toLowerCase();("lr"===p||"rl"===p)&&C(m)},undo:function w(m){var p=m.graph().rankdir.toLowerCase();("bt"===p||"rl"===p)&&function x(m){d.forEach(m.nodes(),function(p){g(m.node(p))}),d.forEach(m.edges(),function(p){var y=m.edge(p);d.forEach(y.points,g),d.has(y,"y")&&g(y)})}(m),("lr"===p||"rl"===p)&&(function f(m){d.forEach(m.nodes(),function(p){v(m.node(p))}),d.forEach(m.edges(),function(p){var y=m.edge(p);d.forEach(y.points,v),d.has(y,"x")&&v(y)})}(m),C(m))}}},3226:E=>{function L(){var D={};D._next=D._prev=D,this._sentinel=D}function u(D){D._prev._next=D._next,D._next._prev=D._prev,delete D._next,delete D._prev}function d(D,w){if("_next"!==D&&"_prev"!==D)return w}E.exports=L,L.prototype.dequeue=function(){var D=this._sentinel,w=D._prev;if(w!==D)return u(w),w},L.prototype.enqueue=function(D){var w=this._sentinel;D._prev&&D._next&&u(D),D._next=w._next,w._next._prev=D,w._next=D,D._prev=w},L.prototype.toString=function(){for(var D=[],w=this._sentinel,C=w._prev;C!==w;)D.push(JSON.stringify(C,d)),C=C._prev;return"["+D.join(", ")+"]"}},1914:(E,L,u)=>{var d=u(5760),D=u(1510),w=u(6456).Graph;E.exports={debugOrdering:function C(_){var x=D.buildLayerMatrix(_),g=new w({compound:!0,multigraph:!0}).setGraph({});return d.forEach(_.nodes(),function(f){g.setNode(f,{label:f}),g.setParent(f,"layer"+_.node(f).rank)}),d.forEach(_.edges(),function(f){g.setEdge(f.v,f.w,{},f.name)}),d.forEach(x,function(f,v){g.setNode("layer"+v,{rank:"same"}),d.reduce(f,function(p,y){return g.setEdge(p,y,{style:"invis"}),y})}),g}}},6456:(E,L,u)=>{var d;try{d=u(5510)}catch(D){}d||(d=window.graphlib),E.exports=d},7365:(E,L,u)=>{var d=u(5760),D=u(6456).Graph,w=u(3226);E.exports=function _(m,p){if(m.nodeCount()<=1)return[];var y=function f(m,p){var y=new D,S=0,k=0;d.forEach(m.nodes(),function(R){y.setNode(R,{v:R,in:0,out:0})}),d.forEach(m.edges(),function(R){var z=y.edge(R.v,R.w)||0,H=p(R);y.setEdge(R.v,R.w,z+H),k=Math.max(k,y.node(R.v).out+=H),S=Math.max(S,y.node(R.w).in+=H)});var O=d.range(k+S+3).map(function(){return new w}),F=S+1;return d.forEach(y.nodes(),function(R){v(O,F,y.node(R))}),{graph:y,buckets:O,zeroIdx:F}}(m,p||C),S=function x(m,p,y){for(var F,S=[],k=p[p.length-1],O=p[0];m.nodeCount();){for(;F=O.dequeue();)g(m,p,y,F);for(;F=k.dequeue();)g(m,p,y,F);if(m.nodeCount())for(var R=p.length-2;R>0;--R)if(F=p[R].dequeue()){S=S.concat(g(m,p,y,F,!0));break}}return S}(y.graph,y.buckets,y.zeroIdx);return d.flatten(d.map(S,function(k){return m.outEdges(k.v,k.w)}),!0)};var C=d.constant(1);function g(m,p,y,S,k){var O=k?[]:void 0;return d.forEach(m.inEdges(S.v),function(F){var R=m.edge(F),z=m.node(F.v);k&&O.push({v:F.v,w:F.w}),z.out-=R,v(p,y,z)}),d.forEach(m.outEdges(S.v),function(F){var R=m.edge(F),H=m.node(F.w);H.in-=R,v(p,y,H)}),m.removeNode(S.v),O}function v(m,p,y){y.out?y.in?m[y.out-y.in+p].enqueue(y):m[m.length-1].enqueue(y):m[0].enqueue(y)}},4850:(E,L,u)=>{"use strict";var d=u(5760),D=u(2234),w=u(1496),C=u(4124),_=u(1510).normalizeRanks,x=u(162),g=u(1510).removeEmptyRanks,f=u(1230),v=u(9999),m=u(3870),p=u(2974),y=u(8226),S=u(1510),k=u(6456).Graph;E.exports=function O(he,xe){var Te=xe&&xe.debugTiming?S.time:S.notime;Te("layout",function(){var Fe=Te(" buildLayoutGraph",function(){return function V(he){var xe=new k({multigraph:!0,compound:!0}),Te=st(he.graph());return xe.setGraph(d.merge({},H,Pe(Te,z),d.pick(Te,X))),d.forEach(he.nodes(),function(Fe){var Ke=st(he.node(Fe));xe.setNode(Fe,d.defaults(Pe(Ke,se),te)),xe.setParent(Fe,he.parent(Fe))}),d.forEach(he.edges(),function(Fe){var Ke=st(he.edge(Fe));xe.setEdge(Fe,d.merge({},le,Pe(Ke,ie),d.pick(Ke,N)))}),xe}(he)});Te(" runLayout",function(){!function F(he,xe){xe(" makeSpaceForEdgeLabels",function(){!function U(he){var xe=he.graph();xe.ranksep/=2,d.forEach(he.edges(),function(Te){var Fe=he.edge(Te);Fe.minlen*=2,"c"!==Fe.labelpos.toLowerCase()&&("TB"===xe.rankdir||"BT"===xe.rankdir?Fe.width+=Fe.labeloffset:Fe.height+=Fe.labeloffset)})}(he)}),xe(" removeSelfEdges",function(){!function be(he){d.forEach(he.edges(),function(xe){if(xe.v===xe.w){var Te=he.node(xe.v);Te.selfEdges||(Te.selfEdges=[]),Te.selfEdges.push({e:xe,label:he.edge(xe)}),he.removeEdge(xe)}})}(he)}),xe(" acyclic",function(){D.run(he)}),xe(" nestingGraph.run",function(){f.run(he)}),xe(" rank",function(){C(S.asNonCompoundGraph(he))}),xe(" injectEdgeLabelProxies",function(){!function $(he){d.forEach(he.edges(),function(xe){var Te=he.edge(xe);if(Te.width&&Te.height){var Fe=he.node(xe.v),Ke=he.node(xe.w);S.addDummyNode(he,"edge-proxy",{rank:(Ke.rank-Fe.rank)/2+Fe.rank,e:xe},"_ep")}})}(he)}),xe(" removeEmptyRanks",function(){g(he)}),xe(" nestingGraph.cleanup",function(){f.cleanup(he)}),xe(" normalizeRanks",function(){_(he)}),xe(" assignRankMinMax",function(){!function Y(he){var xe=0;d.forEach(he.nodes(),function(Te){var Fe=he.node(Te);Fe.borderTop&&(Fe.minRank=he.node(Fe.borderTop).rank,Fe.maxRank=he.node(Fe.borderBottom).rank,xe=d.max(xe,Fe.maxRank))}),he.graph().maxRank=xe}(he)}),xe(" removeEdgeLabelProxies",function(){!function oe(he){d.forEach(he.nodes(),function(xe){var Te=he.node(xe);"edge-proxy"===Te.dummy&&(he.edge(Te.e).labelRank=Te.rank,he.removeNode(xe))})}(he)}),xe(" normalize.run",function(){w.run(he)}),xe(" parentDummyChains",function(){x(he)}),xe(" addBorderSegments",function(){v(he)}),xe(" order",function(){p(he)}),xe(" insertSelfEdges",function(){!function fe(he){var xe=S.buildLayerMatrix(he);d.forEach(xe,function(Te){var Fe=0;d.forEach(Te,function(Ke,Xe){var ft=he.node(Ke);ft.order=Xe+Fe,d.forEach(ft.selfEdges,function(Kt){S.addDummyNode(he,"selfedge",{width:Kt.label.width,height:Kt.label.height,rank:ft.rank,order:Xe+ ++Fe,e:Kt.e,label:Kt.label},"_se")}),delete ft.selfEdges})})}(he)}),xe(" adjustCoordinateSystem",function(){m.adjust(he)}),xe(" position",function(){y(he)}),xe(" positionSelfEdges",function(){!function De(he){d.forEach(he.nodes(),function(xe){var Te=he.node(xe);if("selfedge"===Te.dummy){var Fe=he.node(Te.e.v),Ke=Fe.x+Fe.width/2,Xe=Fe.y,ft=Te.x-Ke,Kt=Fe.height/2;he.setEdge(Te.e,Te.label),he.removeNode(xe),Te.label.points=[{x:Ke+2*ft/3,y:Xe-Kt},{x:Ke+5*ft/6,y:Xe-Kt},{x:Ke+ft,y:Xe},{x:Ke+5*ft/6,y:Xe+Kt},{x:Ke+2*ft/3,y:Xe+Kt}],Te.label.x=Te.x,Te.label.y=Te.y}})}(he)}),xe(" removeBorderNodes",function(){!function pe(he){d.forEach(he.nodes(),function(xe){if(he.children(xe).length){var Te=he.node(xe),Fe=he.node(Te.borderTop),Ke=he.node(Te.borderBottom),Xe=he.node(d.last(Te.borderLeft)),ft=he.node(d.last(Te.borderRight));Te.width=Math.abs(ft.x-Xe.x),Te.height=Math.abs(Ke.y-Fe.y),Te.x=Xe.x+Te.width/2,Te.y=Fe.y+Te.height/2}}),d.forEach(he.nodes(),function(xe){"border"===he.node(xe).dummy&&he.removeNode(xe)})}(he)}),xe(" normalize.undo",function(){w.undo(he)}),xe(" fixupEdgeLabelCoords",function(){!function J(he){d.forEach(he.edges(),function(xe){var Te=he.edge(xe);if(d.has(Te,"x"))switch(("l"===Te.labelpos||"r"===Te.labelpos)&&(Te.width-=Te.labeloffset),Te.labelpos){case"l":Te.x-=Te.width/2+Te.labeloffset;break;case"r":Te.x+=Te.width/2+Te.labeloffset}})}(he)}),xe(" undoCoordinateSystem",function(){m.undo(he)}),xe(" translateGraph",function(){!function de(he){var xe=Number.POSITIVE_INFINITY,Te=0,Fe=Number.POSITIVE_INFINITY,Ke=0,Xe=he.graph(),ft=Xe.marginx||0,Kt=Xe.marginy||0;function Qi(vn){var Ln=vn.x,wt=vn.y,sr=vn.width,Ct=vn.height;xe=Math.min(xe,Ln-sr/2),Te=Math.max(Te,Ln+sr/2),Fe=Math.min(Fe,wt-Ct/2),Ke=Math.max(Ke,wt+Ct/2)}d.forEach(he.nodes(),function(vn){Qi(he.node(vn))}),d.forEach(he.edges(),function(vn){var Ln=he.edge(vn);d.has(Ln,"x")&&Qi(Ln)}),xe-=ft,Fe-=Kt,d.forEach(he.nodes(),function(vn){var Ln=he.node(vn);Ln.x-=xe,Ln.y-=Fe}),d.forEach(he.edges(),function(vn){var Ln=he.edge(vn);d.forEach(Ln.points,function(wt){wt.x-=xe,wt.y-=Fe}),d.has(Ln,"x")&&(Ln.x-=xe),d.has(Ln,"y")&&(Ln.y-=Fe)}),Xe.width=Te-xe+ft,Xe.height=Ke-Fe+Kt}(he)}),xe(" assignNodeIntersects",function(){!function ee(he){d.forEach(he.edges(),function(xe){var Xe,ft,Te=he.edge(xe),Fe=he.node(xe.v),Ke=he.node(xe.w);Te.points?(Xe=Te.points[0],ft=Te.points[Te.points.length-1]):(Te.points=[],Xe=Ke,ft=Fe),Te.points.unshift(S.intersectRect(Fe,Xe)),Te.points.push(S.intersectRect(Ke,ft))})}(he)}),xe(" reversePoints",function(){!function ce(he){d.forEach(he.edges(),function(xe){var Te=he.edge(xe);Te.reversed&&Te.points.reverse()})}(he)}),xe(" acyclic.undo",function(){D.undo(he)})}(Fe,Te)}),Te(" updateInputGraph",function(){!function R(he,xe){d.forEach(he.nodes(),function(Te){var Fe=he.node(Te),Ke=xe.node(Te);Fe&&(Fe.x=Ke.x,Fe.y=Ke.y,xe.children(Te).length&&(Fe.width=Ke.width,Fe.height=Ke.height))}),d.forEach(he.edges(),function(Te){var Fe=he.edge(Te),Ke=xe.edge(Te);Fe.points=Ke.points,d.has(Ke,"x")&&(Fe.x=Ke.x,Fe.y=Ke.y)}),he.graph().width=xe.graph().width,he.graph().height=xe.graph().height}(he,Fe)})})};var z=["nodesep","edgesep","ranksep","marginx","marginy"],H={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},X=["acyclicer","ranker","rankdir","align"],se=["width","height"],te={width:0,height:0},ie=["minlen","weight","width","height","labeloffset"],le={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},N=["labelpos"];function Pe(he,xe){return d.mapValues(d.pick(he,xe),Number)}function st(he){var xe={};return d.forEach(he,function(Te,Fe){xe[Fe.toLowerCase()]=Te}),xe}},5760:(E,L,u)=>{var d;try{d={cloneDeep:u(733),constant:u(6684),defaults:u(8800),each:u(5474),filter:u(5281),find:u(2516),flatten:u(2274),forEach:u(9851),forIn:u(1176),has:u(4842),isUndefined:u(4235),last:u(5809),map:u(9984),mapValues:u(203),max:u(8176),merge:u(567),min:u(9439),minBy:u(9525),now:u(1710),pick:u(6372),range:u(361),reduce:u(1337),sortBy:u(2906),uniqueId:u(1541),values:u(377),zipObject:u(1617)}}catch(D){}d||(d=window._),E.exports=d},1230:(E,L,u)=>{var d=u(5760),D=u(1510);function C(f,v,m,p,y,S,k){var O=f.children(k);if(O.length){var F=D.addBorderNode(f,"_bt"),R=D.addBorderNode(f,"_bb"),z=f.node(k);f.setParent(F,k),z.borderTop=F,f.setParent(R,k),z.borderBottom=R,d.forEach(O,function(H){C(f,v,m,p,y,S,H);var X=f.node(H),se=X.borderTop?X.borderTop:H,te=X.borderBottom?X.borderBottom:H,ie=X.borderTop?p:2*p,le=se!==te?1:y-S[k]+1;f.setEdge(F,se,{weight:ie,minlen:le,nestingEdge:!0}),f.setEdge(te,R,{weight:ie,minlen:le,nestingEdge:!0})}),f.parent(k)||f.setEdge(v,F,{weight:0,minlen:y+S[k]})}else k!==v&&f.setEdge(v,k,{weight:0,minlen:m})}E.exports={run:function w(f){var v=D.addDummyNode(f,"root",{},"_root"),m=function _(f){var v={};function m(p,y){var S=f.children(p);S&&S.length&&d.forEach(S,function(k){m(k,y+1)}),v[p]=y}return d.forEach(f.children(),function(p){m(p,1)}),v}(f),p=d.max(d.values(m))-1,y=2*p+1;f.graph().nestingRoot=v,d.forEach(f.edges(),function(k){f.edge(k).minlen*=y});var S=function x(f){return d.reduce(f.edges(),function(v,m){return v+f.edge(m).weight},0)}(f)+1;d.forEach(f.children(),function(k){C(f,v,y,S,p,m,k)}),f.graph().nodeRankFactor=y},cleanup:function g(f){var v=f.graph();f.removeNode(v.nestingRoot),delete v.nestingRoot,d.forEach(f.edges(),function(m){f.edge(m).nestingEdge&&f.removeEdge(m)})}}},1496:(E,L,u)=>{"use strict";var d=u(5760),D=u(1510);E.exports={run:function w(x){x.graph().dummyChains=[],d.forEach(x.edges(),function(g){!function C(x,g){var f=g.v,v=x.node(f).rank,m=g.w,p=x.node(m).rank,y=g.name,S=x.edge(g),k=S.labelRank;if(p!==v+1){var O,F,R;for(x.removeEdge(g),R=0,++v;v<p;++R,++v)S.points=[],O=D.addDummyNode(x,"edge",F={width:0,height:0,edgeLabel:S,edgeObj:g,rank:v},"_d"),v===k&&(F.width=S.width,F.height=S.height,F.dummy="edge-label",F.labelpos=S.labelpos),x.setEdge(f,O,{weight:S.weight},y),0===R&&x.graph().dummyChains.push(O),f=O;x.setEdge(f,m,{weight:S.weight},y)}}(x,g)})},undo:function _(x){d.forEach(x.graph().dummyChains,function(g){var m,f=x.node(g),v=f.edgeLabel;for(x.setEdge(f.edgeObj,v);f.dummy;)m=x.successors(g)[0],x.removeNode(g),v.points.push({x:f.x,y:f.y}),"edge-label"===f.dummy&&(v.x=f.x,v.y=f.y,v.width=f.width,v.height=f.height),f=x.node(g=m)})}}},3034:(E,L,u)=>{var d=u(5760);E.exports=function D(w,C,_){var g,x={};d.forEach(_,function(f){for(var m,p,v=w.parent(f);v;){if((m=w.parent(v))?(p=x[m],x[m]=v):(p=g,g=v),p&&p!==v)return void C.setEdge(p,v);v=m}})}},1323:(E,L,u)=>{var d=u(5760);E.exports=function D(w,C){return d.map(C,function(_){var x=w.inEdges(_);if(x.length){var g=d.reduce(x,function(f,v){var m=w.edge(v),p=w.node(v.v);return{sum:f.sum+m.weight*p.order,weight:f.weight+m.weight}},{sum:0,weight:0});return{v:_,barycenter:g.sum/g.weight,weight:g.weight}}return{v:_}})}},1686:(E,L,u)=>{var d=u(5760),D=u(6456).Graph;E.exports=function w(_,x,g){var f=function C(_){for(var x;_.hasNode(x=d.uniqueId("_root")););return x}(_),v=new D({compound:!0}).setGraph({root:f}).setDefaultNodeLabel(function(m){return _.node(m)});return d.forEach(_.nodes(),function(m){var p=_.node(m),y=_.parent(m);(p.rank===x||p.minRank<=x&&x<=p.maxRank)&&(v.setNode(m),v.setParent(m,y||f),d.forEach(_[g](m),function(S){var k=S.v===m?S.w:S.v,O=v.edge(k,m),F=d.isUndefined(O)?0:O.weight;v.setEdge(k,m,{weight:_.edge(S).weight+F})}),d.has(p,"minRank")&&v.setNode(m,{borderLeft:p.borderLeft[x],borderRight:p.borderRight[x]}))}),v}},8796:(E,L,u)=>{"use strict";var d=u(5760);function w(C,_,x){for(var g=d.zipObject(x,d.map(x,function(S,k){return k})),f=d.flatten(d.map(_,function(S){return d.sortBy(d.map(C.outEdges(S),function(k){return{pos:g[k.w],weight:C.edge(k).weight}}),"pos")}),!0),v=1;v<x.length;)v<<=1;var m=2*v-1;v-=1;var p=d.map(new Array(m),function(){return 0}),y=0;return d.forEach(f.forEach(function(S){var k=S.pos+v;p[k]+=S.weight;for(var O=0;k>0;)k%2&&(O+=p[k+1]),p[k=k-1>>1]+=S.weight;y+=S.weight*O})),y}E.exports=function D(C,_){for(var x=0,g=1;g<_.length;++g)x+=w(C,_[g-1],_[g]);return x}},2974:(E,L,u)=>{"use strict";var d=u(5760),D=u(9402),w=u(8796),C=u(1057),_=u(1686),x=u(3034),g=u(6456).Graph,f=u(1510);function m(S,k,O){return d.map(k,function(F){return _(S,F,O)})}function p(S,k){var O=new g;d.forEach(S,function(F){var R=F.graph().root,z=C(F,R,O,k);d.forEach(z.vs,function(H,X){F.node(H).order=X}),x(F,O,z.vs)})}function y(S,k){d.forEach(k,function(O){d.forEach(O,function(F,R){S.node(F).order=R})})}E.exports=function v(S){var k=f.maxRank(S),O=m(S,d.range(1,k+1),"inEdges"),F=m(S,d.range(k-1,-1,-1),"outEdges"),R=D(S);y(S,R);for(var H,z=Number.POSITIVE_INFINITY,X=0,se=0;se<4;++X,++se){p(X%2?O:F,X%4>=2),R=f.buildLayerMatrix(S);var te=w(S,R);te<z&&(se=0,H=d.cloneDeep(R),z=te)}y(S,H)}},9402:(E,L,u)=>{"use strict";var d=u(5760);E.exports=function D(w){var C={},_=d.filter(w.nodes(),function(m){return!w.children(m).length}),x=d.max(d.map(_,function(m){return w.node(m).rank})),g=d.map(d.range(x+1),function(){return[]}),v=d.sortBy(_,function(m){return w.node(m).rank});return d.forEach(v,function f(m){if(!d.has(C,m)){C[m]=!0;var p=w.node(m);g[p.rank].push(m),d.forEach(w.successors(m),f)}}),g}},3826:(E,L,u)=>{"use strict";var d=u(5760);E.exports=function D(_,x){var g={};return d.forEach(_,function(v,m){var p=g[v.v]={indegree:0,in:[],out:[],vs:[v.v],i:m};d.isUndefined(v.barycenter)||(p.barycenter=v.barycenter,p.weight=v.weight)}),d.forEach(x.edges(),function(v){var m=g[v.v],p=g[v.w];!d.isUndefined(m)&&!d.isUndefined(p)&&(p.indegree++,m.out.push(g[v.w]))}),function w(_){var x=[];function g(m){return function(p){p.merged||(d.isUndefined(p.barycenter)||d.isUndefined(m.barycenter)||p.barycenter>=m.barycenter)&&function C(_,x){var g=0,f=0;_.weight&&(g+=_.barycenter*_.weight,f+=_.weight),x.weight&&(g+=x.barycenter*x.weight,f+=x.weight),_.vs=x.vs.concat(_.vs),_.barycenter=g/f,_.weight=f,_.i=Math.min(x.i,_.i),x.merged=!0}(m,p)}}function f(m){return function(p){p.in.push(m),0==--p.indegree&&_.push(p)}}for(;_.length;){var v=_.pop();x.push(v),d.forEach(v.in.reverse(),g(v)),d.forEach(v.out,f(v))}return d.map(d.filter(x,function(m){return!m.merged}),function(m){return d.pick(m,["vs","i","barycenter","weight"])})}(d.filter(g,function(v){return!v.indegree}))}},1057:(E,L,u)=>{var d=u(5760),D=u(1323),w=u(3826),C=u(3803);E.exports=function _(f,v,m,p){var y=f.children(v),S=f.node(v),k=S?S.borderLeft:void 0,O=S?S.borderRight:void 0,F={};k&&(y=d.filter(y,function(te){return te!==k&&te!==O}));var R=D(f,y);d.forEach(R,function(te){if(f.children(te.v).length){var ie=_(f,te.v,m,p);F[te.v]=ie,d.has(ie,"barycenter")&&function g(f,v){d.isUndefined(f.barycenter)?(f.barycenter=v.barycenter,f.weight=v.weight):(f.barycenter=(f.barycenter*f.weight+v.barycenter*v.weight)/(f.weight+v.weight),f.weight+=v.weight)}(te,ie)}});var z=w(R,m);!function x(f,v){d.forEach(f,function(m){m.vs=d.flatten(m.vs.map(function(p){return v[p]?v[p].vs:p}),!0)})}(z,F);var H=C(z,p);if(k&&(H.vs=d.flatten([k,H.vs,O],!0),f.predecessors(k).length)){var X=f.node(f.predecessors(k)[0]),se=f.node(f.predecessors(O)[0]);d.has(H,"barycenter")||(H.barycenter=0,H.weight=0),H.barycenter=(H.barycenter*H.weight+X.order+se.order)/(H.weight+2),H.weight+=2}return H}},3803:(E,L,u)=>{var d=u(5760),D=u(1510);function C(x,g,f){for(var v;g.length&&(v=d.last(g)).i<=f;)g.pop(),x.push(v.vs),f++;return f}E.exports=function w(x,g){var f=D.partition(x,function(F){return d.has(F,"barycenter")}),v=f.lhs,m=d.sortBy(f.rhs,function(F){return-F.i}),p=[],y=0,S=0,k=0;v.sort(function _(x){return function(g,f){return g.barycenter<f.barycenter?-1:g.barycenter>f.barycenter?1:x?f.i-g.i:g.i-f.i}}(!!g)),k=C(p,m,k),d.forEach(v,function(F){k+=F.vs.length,p.push(F.vs),y+=F.barycenter*F.weight,S+=F.weight,k=C(p,m,k)});var O={vs:d.flatten(p,!0)};return S&&(O.barycenter=y/S,O.weight=S),O}},162:(E,L,u)=>{var d=u(5760);E.exports=function D(_){var x=function C(_){var x={},g=0;return d.forEach(_.children(),function f(v){var m=g;d.forEach(_.children(v),f),x[v]={low:m,lim:g++}}),x}(_);d.forEach(_.graph().dummyChains,function(g){for(var f=_.node(g),v=f.edgeObj,m=function w(_,x,g,f){var S,k,v=[],m=[],p=Math.min(x[g].low,x[f].low),y=Math.max(x[g].lim,x[f].lim);S=g;do{S=_.parent(S),v.push(S)}while(S&&(x[S].low>p||y>x[S].lim));for(k=S,S=f;(S=_.parent(S))!==k;)m.push(S);return{path:v.concat(m.reverse()),lca:k}}(_,x,v.v,v.w),p=m.path,y=m.lca,S=0,k=p[S],O=!0;g!==v.w;){if(f=_.node(g),O){for(;(k=p[S])!==y&&_.node(k).maxRank<f.rank;)S++;k===y&&(O=!1)}if(!O){for(;S<p.length-1&&_.node(k=p[S+1]).minRank<=f.rank;)S++;k=p[S]}_.setParent(g,k),g=_.successors(g)[0]}})}},4058:(E,L,u)=>{"use strict";var d=u(5760),D=u(6456).Graph,w=u(1510);function C(z,H){var X={};return d.reduce(H,function se(te,ie){var le=0,N=0,V=te.length,U=d.last(ie);return d.forEach(ie,function($,Y){var oe=function x(z,H){if(z.node(H).dummy)return d.find(z.predecessors(H),function(X){return z.node(X).dummy})}(z,$),de=oe?z.node(oe).order:V;(oe||$===U)&&(d.forEach(ie.slice(N,Y+1),function(ee){d.forEach(z.predecessors(ee),function(J){var ce=z.node(J),pe=ce.order;(pe<le||de<pe)&&(!ce.dummy||!z.node(ee).dummy)&&g(X,J,ee)})}),N=Y+1,le=de)}),ie}),X}function _(z,H){var X={};function se(ie,le,N,V,U){var $;d.forEach(d.range(le,N),function(Y){z.node($=ie[Y]).dummy&&d.forEach(z.predecessors($),function(oe){var de=z.node(oe);de.dummy&&(de.order<V||de.order>U)&&g(X,oe,$)})})}return d.reduce(H,function te(ie,le){var V,N=-1,U=0;return d.forEach(le,function($,Y){if("border"===z.node($).dummy){var oe=z.predecessors($);oe.length&&(V=z.node(oe[0]).order,se(le,U,Y,N,V),U=Y,N=V)}se(le,U,le.length,V,ie.length)}),le}),X}function g(z,H,X){if(H>X){var se=H;H=X,X=se}var te=z[H];te||(z[H]=te={}),te[X]=!0}function f(z,H,X){if(H>X){var se=H;H=X,X=se}return d.has(z[H],X)}function v(z,H,X,se){var te={},ie={},le={};return d.forEach(H,function(N){d.forEach(N,function(V,U){te[V]=V,ie[V]=V,le[V]=U})}),d.forEach(H,function(N){var V=-1;d.forEach(N,function(U){var $=se(U);if($.length)for(var Y=(($=d.sortBy($,function(J){return le[J]})).length-1)/2,oe=Math.floor(Y),de=Math.ceil(Y);oe<=de;++oe){var ee=$[oe];ie[U]===U&&V<le[ee]&&!f(X,U,ee)&&(ie[ee]=U,ie[U]=te[U]=te[ee],V=le[ee])}})}),{root:te,align:ie}}function m(z,H,X,se,te){var ie={},le=function p(z,H,X,se){var te=new D,ie=z.graph(),le=function F(z,H,X){return function(se,te,ie){var U,le=se.node(te),N=se.node(ie),V=0;if(V+=le.width/2,d.has(le,"labelpos"))switch(le.labelpos.toLowerCase()){case"l":U=-le.width/2;break;case"r":U=le.width/2}if(U&&(V+=X?U:-U),U=0,V+=(le.dummy?H:z)/2,V+=(N.dummy?H:z)/2,V+=N.width/2,d.has(N,"labelpos"))switch(N.labelpos.toLowerCase()){case"l":U=N.width/2;break;case"r":U=-N.width/2}return U&&(V+=X?U:-U),U=0,V}}(ie.nodesep,ie.edgesep,se);return d.forEach(H,function(N){var V;d.forEach(N,function(U){var $=X[U];if(te.setNode($),V){var Y=X[V],oe=te.edge(Y,$);te.setEdge(Y,$,Math.max(le(z,U,V),oe||0))}V=U})}),te}(z,H,X,te),N=te?"borderLeft":"borderRight";function V(Y,oe){for(var de=le.nodes(),ee=de.pop(),J={};ee;)J[ee]?Y(ee):(J[ee]=!0,de.push(ee),de=de.concat(oe(ee))),ee=de.pop()}return V(function U(Y){ie[Y]=le.inEdges(Y).reduce(function(oe,de){return Math.max(oe,ie[de.v]+le.edge(de))},0)},le.predecessors.bind(le)),V(function $(Y){var oe=le.outEdges(Y).reduce(function(ee,J){return Math.min(ee,ie[J.w]-le.edge(J))},Number.POSITIVE_INFINITY),de=z.node(Y);oe!==Number.POSITIVE_INFINITY&&de.borderType!==N&&(ie[Y]=Math.max(ie[Y],oe))},le.successors.bind(le)),d.forEach(se,function(Y){ie[Y]=ie[X[Y]]}),ie}function y(z,H){return d.minBy(d.values(H),function(X){var se=Number.NEGATIVE_INFINITY,te=Number.POSITIVE_INFINITY;return d.forIn(X,function(ie,le){var N=function R(z,H){return z.node(H).width}(z,le)/2;se=Math.max(ie+N,se),te=Math.min(ie-N,te)}),se-te})}function S(z,H){var X=d.values(H),se=d.min(X),te=d.max(X);d.forEach(["u","d"],function(ie){d.forEach(["l","r"],function(le){var U,N=ie+le,V=z[N];if(V!==H){var $=d.values(V);(U="l"===le?se-d.min($):te-d.max($))&&(z[N]=d.mapValues(V,function(Y){return Y+U}))}})})}function k(z,H){return d.mapValues(z.ul,function(X,se){if(H)return z[H.toLowerCase()][se];var te=d.sortBy(d.map(z,se));return(te[1]+te[2])/2})}E.exports={positionX:function O(z){var te,H=w.buildLayerMatrix(z),X=d.merge(C(z,H),_(z,H)),se={};d.forEach(["u","d"],function(le){te="u"===le?H:d.values(H).reverse(),d.forEach(["l","r"],function(N){"r"===N&&(te=d.map(te,function(Y){return d.values(Y).reverse()}));var V=("u"===le?z.predecessors:z.successors).bind(z),U=v(0,te,X,V),$=m(z,te,U.root,U.align,"r"===N);"r"===N&&($=d.mapValues($,function(Y){return-Y})),se[le+N]=$})});var ie=y(z,se);return S(se,ie),k(se,z.graph().align)},findType1Conflicts:C,findType2Conflicts:_,addConflict:g,hasConflict:f,verticalAlignment:v,horizontalCompaction:m,alignCoordinates:S,findSmallestWidthAlignment:y,balance:k}},8226:(E,L,u)=>{"use strict";var d=u(5760),D=u(1510),w=u(4058).positionX;E.exports=function C(x){(function _(x){var g=D.buildLayerMatrix(x),f=x.graph().ranksep,v=0;d.forEach(g,function(m){var p=d.max(d.map(m,function(y){return x.node(y).height}));d.forEach(m,function(y){x.node(y).y=v+p/2}),v+=p+f})})(x=D.asNonCompoundGraph(x)),d.forEach(w(x),function(g,f){x.node(f).x=g})}},6632:(E,L,u)=>{"use strict";var d=u(5760),D=u(6456).Graph,w=u(1916).slack;function _(f,v){return d.forEach(f.nodes(),function m(p){d.forEach(v.nodeEdges(p),function(y){var S=y.v,k=p===S?y.w:S;!f.hasNode(k)&&!w(v,y)&&(f.setNode(k,{}),f.setEdge(p,k,{}),m(k))})}),f.nodeCount()}function x(f,v){return d.minBy(v.edges(),function(m){if(f.hasNode(m.v)!==f.hasNode(m.w))return w(v,m)})}function g(f,v,m){d.forEach(f.nodes(),function(p){v.node(p).rank+=m})}E.exports=function C(f){var y,S,v=new D({directed:!1}),m=f.nodes()[0],p=f.nodeCount();for(v.setNode(m,{});_(v,f)<p;)y=x(v,f),S=v.hasNode(y.v)?w(f,y):-w(f,y),g(v,f,S);return v}},4124:(E,L,u)=>{"use strict";var D=u(1916).longestPath,w=u(6632),C=u(3804);E.exports=function _(v){switch(v.graph().ranker){case"network-simplex":default:!function f(v){C(v)}(v);break;case"tight-tree":!function g(v){D(v),w(v)}(v);break;case"longest-path":x(v)}};var x=D},3804:(E,L,u)=>{"use strict";var d=u(5760),D=u(6632),w=u(1916).slack,C=u(1916).longestPath,_=u(6456).alg.preorder,x=u(6456).alg.postorder,g=u(1510).simplify;function f(X){X=g(X),C(X);var te,se=D(X);for(y(se),v(se,X);te=k(se);)F(se,X,te,O(se,X,te))}function v(X,se){var te=x(X,X.nodes());te=te.slice(0,te.length-1),d.forEach(te,function(ie){!function m(X,se,te){var ie=X.node(te);X.edge(te,ie.parent).cutvalue=p(X,se,te)}(X,se,ie)})}function p(X,se,te){var le=X.node(te).parent,N=!0,V=se.edge(te,le),U=0;return V||(N=!1,V=se.edge(le,te)),U=V.weight,d.forEach(se.nodeEdges(te),function($){var Y=$.v===te,oe=Y?$.w:$.v;if(oe!==le){var de=Y===N,ee=se.edge($).weight;if(U+=de?ee:-ee,function z(X,se,te){return X.hasEdge(se,te)}(X,te,oe)){var J=X.edge(te,oe).cutvalue;U+=de?-J:J}}}),U}function y(X,se){arguments.length<2&&(se=X.nodes()[0]),S(X,{},1,se)}function S(X,se,te,ie,le){var N=te,V=X.node(ie);return se[ie]=!0,d.forEach(X.neighbors(ie),function(U){d.has(se,U)||(te=S(X,se,te,U,ie))}),V.low=N,V.lim=te++,le?V.parent=le:delete V.parent,te}function k(X){return d.find(X.edges(),function(se){return X.edge(se).cutvalue<0})}function O(X,se,te){var ie=te.v,le=te.w;se.hasEdge(ie,le)||(ie=te.w,le=te.v);var N=X.node(ie),V=X.node(le),U=N,$=!1;N.lim>V.lim&&(U=V,$=!0);var Y=d.filter(se.edges(),function(oe){return $===H(0,X.node(oe.v),U)&&$!==H(0,X.node(oe.w),U)});return d.minBy(Y,function(oe){return w(se,oe)})}function F(X,se,te,ie){X.removeEdge(te.v,te.w),X.setEdge(ie.v,ie.w,{}),y(X),v(X,se),function R(X,se){var te=d.find(X.nodes(),function(le){return!se.node(le).parent}),ie=_(X,te);ie=ie.slice(1),d.forEach(ie,function(le){var N=X.node(le).parent,V=se.edge(le,N),U=!1;V||(V=se.edge(N,le),U=!0),se.node(le).rank=se.node(N).rank+(U?V.minlen:-V.minlen)})}(X,se)}function H(X,se,te){return te.low<=se.lim&&se.lim<=te.lim}E.exports=f,f.initLowLimValues=y,f.initCutValues=v,f.calcCutValue=p,f.leaveEdge=k,f.enterEdge=O,f.exchangeEdges=F},1916:(E,L,u)=>{"use strict";var d=u(5760);E.exports={longestPath:function D(C){var _={};d.forEach(C.sources(),function x(g){var f=C.node(g);if(d.has(_,g))return f.rank;_[g]=!0;var v=d.min(d.map(C.outEdges(g),function(m){return x(m.w)-C.edge(m).minlen}));return(v===Number.POSITIVE_INFINITY||null==v)&&(v=0),f.rank=v})},slack:function w(C,_){return C.node(_.w).rank-C.node(_.v).rank-C.edge(_).minlen}}},1510:(E,L,u)=>{"use strict";var d=u(5760),D=u(6456).Graph;function w(R,z,H,X){var se;do{se=d.uniqueId(X)}while(R.hasNode(se));return H.dummy=z,R.setNode(se,H),se}function S(R){return d.max(d.map(R.nodes(),function(z){var H=R.node(z).rank;if(!d.isUndefined(H))return H}))}E.exports={addDummyNode:w,simplify:function C(R){var z=(new D).setGraph(R.graph());return d.forEach(R.nodes(),function(H){z.setNode(H,R.node(H))}),d.forEach(R.edges(),function(H){var X=z.edge(H.v,H.w)||{weight:0,minlen:1},se=R.edge(H);z.setEdge(H.v,H.w,{weight:X.weight+se.weight,minlen:Math.max(X.minlen,se.minlen)})}),z},asNonCompoundGraph:function _(R){var z=new D({multigraph:R.isMultigraph()}).setGraph(R.graph());return d.forEach(R.nodes(),function(H){R.children(H).length||z.setNode(H,R.node(H))}),d.forEach(R.edges(),function(H){z.setEdge(H,R.edge(H))}),z},successorWeights:function x(R){var z=d.map(R.nodes(),function(H){var X={};return d.forEach(R.outEdges(H),function(se){X[se.w]=(X[se.w]||0)+R.edge(se).weight}),X});return d.zipObject(R.nodes(),z)},predecessorWeights:function g(R){var z=d.map(R.nodes(),function(H){var X={};return d.forEach(R.inEdges(H),function(se){X[se.v]=(X[se.v]||0)+R.edge(se).weight}),X});return d.zipObject(R.nodes(),z)},intersectRect:function f(R,z){var N,V,H=R.x,X=R.y,se=z.x-H,te=z.y-X,ie=R.width/2,le=R.height/2;if(!se&&!te)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(te)*ie>Math.abs(se)*le?(te<0&&(le=-le),N=le*se/te,V=le):(se<0&&(ie=-ie),N=ie,V=ie*te/se),{x:H+N,y:X+V}},buildLayerMatrix:function v(R){var z=d.map(d.range(S(R)+1),function(){return[]});return d.forEach(R.nodes(),function(H){var X=R.node(H),se=X.rank;d.isUndefined(se)||(z[se][X.order]=H)}),z},normalizeRanks:function m(R){var z=d.min(d.map(R.nodes(),function(H){return R.node(H).rank}));d.forEach(R.nodes(),function(H){var X=R.node(H);d.has(X,"rank")&&(X.rank-=z)})},removeEmptyRanks:function p(R){var z=d.min(d.map(R.nodes(),function(te){return R.node(te).rank})),H=[];d.forEach(R.nodes(),function(te){var ie=R.node(te).rank-z;H[ie]||(H[ie]=[]),H[ie].push(te)});var X=0,se=R.graph().nodeRankFactor;d.forEach(H,function(te,ie){d.isUndefined(te)&&ie%se!=0?--X:X&&d.forEach(te,function(le){R.node(le).rank+=X})})},addBorderNode:function y(R,z,H,X){var se={width:0,height:0};return arguments.length>=4&&(se.rank=H,se.order=X),w(R,"border",se,z)},maxRank:S,partition:function k(R,z){var H={lhs:[],rhs:[]};return d.forEach(R,function(X){z(X)?H.lhs.push(X):H.rhs.push(X)}),H},time:function O(R,z){var H=d.now();try{return z()}finally{console.log(R+" time: "+(d.now()-H)+"ms")}},notime:function F(R,z){return z()}}},8126:E=>{E.exports="0.8.5"},5510:(E,L,u)=>{var d=u(1838);E.exports={Graph:d.Graph,json:u(1088),alg:u(3430),version:d.version}},6730:(E,L,u)=>{var d=u(9138);E.exports=function D(w){var x,C={},_=[];function g(f){d.has(C,f)||(C[f]=!0,x.push(f),d.each(w.successors(f),g),d.each(w.predecessors(f),g))}return d.each(w.nodes(),function(f){x=[],g(f),x.length&&_.push(x)}),_}},2163:(E,L,u)=>{var d=u(9138);function w(C,_,x,g,f,v){d.has(g,_)||(g[_]=!0,x||v.push(_),d.each(f(_),function(m){w(C,m,x,g,f,v)}),x&&v.push(_))}E.exports=function D(C,_,x){d.isArray(_)||(_=[_]);var g=(C.isDirected()?C.successors:C.neighbors).bind(C),f=[],v={};return d.each(_,function(m){if(!C.hasNode(m))throw new Error("Graph does not have node: "+m);w(C,m,"post"===x,v,g,f)}),f}},5668:(E,L,u)=>{var d=u(1718),D=u(9138);E.exports=function w(C,_,x){return D.transform(C.nodes(),function(g,f){g[f]=d(C,f,_,x)},{})}},1718:(E,L,u)=>{var d=u(9138),D=u(1919);E.exports=function C(x,g,f,v){return function _(x,g,f,v){var y,S,m={},p=new D,k=function(O){var F=O.v!==y?O.v:O.w,R=m[F],z=f(O),H=S.distance+z;if(z<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+O+" Weight: "+z);H<R.distance&&(R.distance=H,R.predecessor=y,p.decrease(F,H))};for(x.nodes().forEach(function(O){var F=O===g?0:Number.POSITIVE_INFINITY;m[O]={distance:F},p.add(O,F)});p.size()>0&&(y=p.removeMin(),(S=m[y]).distance!==Number.POSITIVE_INFINITY);)v(y).forEach(k);return m}(x,String(g),f||w,v||function(m){return x.outEdges(m)})};var w=d.constant(1)},9611:(E,L,u)=>{var d=u(9138),D=u(3585);E.exports=function w(C){return d.filter(D(C),function(_){return _.length>1||1===_.length&&C.hasEdge(_[0],_[0])})}},2881:(E,L,u)=>{var d=u(9138);E.exports=function w(_,x,g){return function C(_,x,g){var f={},v=_.nodes();return v.forEach(function(m){f[m]={},f[m][m]={distance:0},v.forEach(function(p){m!==p&&(f[m][p]={distance:Number.POSITIVE_INFINITY})}),g(m).forEach(function(p){var y=p.v===m?p.w:p.v,S=x(p);f[m][y]={distance:S,predecessor:m}})}),v.forEach(function(m){var p=f[m];v.forEach(function(y){var S=f[y];v.forEach(function(k){var F=p[k],R=S[k],z=S[m].distance+F.distance;z<R.distance&&(R.distance=z,R.predecessor=F.predecessor)})})}),f}(_,x||D,g||function(f){return _.outEdges(f)})};var D=d.constant(1)},3430:(E,L,u)=>{E.exports={components:u(6730),dijkstra:u(1718),dijkstraAll:u(5668),findCycles:u(9611),floydWarshall:u(2881),isAcyclic:u(6693),postorder:u(6694),preorder:u(5330),prim:u(6823),tarjan:u(3585),topsort:u(2180)}},6693:(E,L,u)=>{var d=u(2180);E.exports=function D(w){try{d(w)}catch(C){if(C instanceof d.CycleException)return!1;throw C}return!0}},6694:(E,L,u)=>{var d=u(2163);E.exports=function D(w,C){return d(w,C,"post")}},5330:(E,L,u)=>{var d=u(2163);E.exports=function D(w,C){return d(w,C,"pre")}},6823:(E,L,u)=>{var d=u(9138),D=u(6568),w=u(1919);E.exports=function C(_,x){var m,g=new D,f={},v=new w;function p(S){var k=S.v===m?S.w:S.v,O=v.priority(k);if(void 0!==O){var F=x(S);F<O&&(f[k]=m,v.decrease(k,F))}}if(0===_.nodeCount())return g;d.each(_.nodes(),function(S){v.add(S,Number.POSITIVE_INFINITY),g.setNode(S)}),v.decrease(_.nodes()[0],0);for(var y=!1;v.size()>0;){if(m=v.removeMin(),d.has(f,m))g.setEdge(m,f[m]);else{if(y)throw new Error("Input graph is not connected: "+_);y=!0}_.nodeEdges(m).forEach(p)}return g}},3585:(E,L,u)=>{var d=u(9138);E.exports=function D(w){var C=0,_=[],x={},g=[];function f(v){var m=x[v]={onStack:!0,lowlink:C,index:C++};if(_.push(v),w.successors(v).forEach(function(S){d.has(x,S)?x[S].onStack&&(m.lowlink=Math.min(m.lowlink,x[S].index)):(f(S),m.lowlink=Math.min(m.lowlink,x[S].lowlink))}),m.lowlink===m.index){var y,p=[];do{y=_.pop(),x[y].onStack=!1,p.push(y)}while(v!==y);g.push(p)}}return w.nodes().forEach(function(v){d.has(x,v)||f(v)}),g}},2180:(E,L,u)=>{var d=u(9138);function D(C){var _={},x={},g=[];if(d.each(C.sinks(),function f(v){if(d.has(x,v))throw new w;d.has(_,v)||(x[v]=!0,_[v]=!0,d.each(C.predecessors(v),f),delete x[v],g.push(v))}),d.size(_)!==C.nodeCount())throw new w;return g}function w(){}E.exports=D,D.CycleException=w,w.prototype=new Error},1919:(E,L,u)=>{var d=u(9138);function D(){this._arr=[],this._keyIndices={}}E.exports=D,D.prototype.size=function(){return this._arr.length},D.prototype.keys=function(){return this._arr.map(function(w){return w.key})},D.prototype.has=function(w){return d.has(this._keyIndices,w)},D.prototype.priority=function(w){var C=this._keyIndices[w];if(void 0!==C)return this._arr[C].priority},D.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},D.prototype.add=function(w,C){var _=this._keyIndices;if(w=String(w),!d.has(_,w)){var x=this._arr,g=x.length;return _[w]=g,x.push({key:w,priority:C}),this._decrease(g),!0}return!1},D.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var w=this._arr.pop();return delete this._keyIndices[w.key],this._heapify(0),w.key},D.prototype.decrease=function(w,C){var _=this._keyIndices[w];if(C>this._arr[_].priority)throw new Error("New priority is greater than current priority. Key: "+w+" Old: "+this._arr[_].priority+" New: "+C);this._arr[_].priority=C,this._decrease(_)},D.prototype._heapify=function(w){var C=this._arr,_=2*w,x=_+1,g=w;_<C.length&&(g=C[_].priority<C[g].priority?_:g,x<C.length&&(g=C[x].priority<C[g].priority?x:g),g!==w&&(this._swap(w,g),this._heapify(g)))},D.prototype._decrease=function(w){for(var x,C=this._arr,_=C[w].priority;0!==w&&!(C[x=w>>1].priority<_);)this._swap(w,x),w=x},D.prototype._swap=function(w,C){var _=this._arr,x=this._keyIndices,g=_[w],f=_[C];_[w]=f,_[C]=g,x[f.key]=w,x[g.key]=C}},6568:(E,L,u)=>{"use strict";var d=u(9138);E.exports=_;var w="\0";function _(p){this._isDirected=!d.has(p,"directed")||p.directed,this._isMultigraph=!!d.has(p,"multigraph")&&p.multigraph,this._isCompound=!!d.has(p,"compound")&&p.compound,this._label=void 0,this._defaultNodeLabelFn=d.constant(void 0),this._defaultEdgeLabelFn=d.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[w]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function x(p,y){p[y]?p[y]++:p[y]=1}function g(p,y){--p[y]||delete p[y]}function f(p,y,S,k){var O=""+y,F=""+S;if(!p&&O>F){var R=O;O=F,F=R}return O+"\x01"+F+"\x01"+(d.isUndefined(k)?"\0":k)}function v(p,y,S,k){var O=""+y,F=""+S;if(!p&&O>F){var R=O;O=F,F=R}var z={v:O,w:F};return k&&(z.name=k),z}function m(p,y){return f(p,y.v,y.w,y.name)}_.prototype._nodeCount=0,_.prototype._edgeCount=0,_.prototype.isDirected=function(){return this._isDirected},_.prototype.isMultigraph=function(){return this._isMultigraph},_.prototype.isCompound=function(){return this._isCompound},_.prototype.setGraph=function(p){return this._label=p,this},_.prototype.graph=function(){return this._label},_.prototype.setDefaultNodeLabel=function(p){return d.isFunction(p)||(p=d.constant(p)),this._defaultNodeLabelFn=p,this},_.prototype.nodeCount=function(){return this._nodeCount},_.prototype.nodes=function(){return d.keys(this._nodes)},_.prototype.sources=function(){var p=this;return d.filter(this.nodes(),function(y){return d.isEmpty(p._in[y])})},_.prototype.sinks=function(){var p=this;return d.filter(this.nodes(),function(y){return d.isEmpty(p._out[y])})},_.prototype.setNodes=function(p,y){var S=arguments,k=this;return d.each(p,function(O){S.length>1?k.setNode(O,y):k.setNode(O)}),this},_.prototype.setNode=function(p,y){return d.has(this._nodes,p)?(arguments.length>1&&(this._nodes[p]=y),this):(this._nodes[p]=arguments.length>1?y:this._defaultNodeLabelFn(p),this._isCompound&&(this._parent[p]=w,this._children[p]={},this._children[w][p]=!0),this._in[p]={},this._preds[p]={},this._out[p]={},this._sucs[p]={},++this._nodeCount,this)},_.prototype.node=function(p){return this._nodes[p]},_.prototype.hasNode=function(p){return d.has(this._nodes,p)},_.prototype.removeNode=function(p){var y=this;if(d.has(this._nodes,p)){var S=function(k){y.removeEdge(y._edgeObjs[k])};delete this._nodes[p],this._isCompound&&(this._removeFromParentsChildList(p),delete this._parent[p],d.each(this.children(p),function(k){y.setParent(k)}),delete this._children[p]),d.each(d.keys(this._in[p]),S),delete this._in[p],delete this._preds[p],d.each(d.keys(this._out[p]),S),delete this._out[p],delete this._sucs[p],--this._nodeCount}return this},_.prototype.setParent=function(p,y){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(d.isUndefined(y))y=w;else{for(var S=y+="";!d.isUndefined(S);S=this.parent(S))if(S===p)throw new Error("Setting "+y+" as parent of "+p+" would create a cycle");this.setNode(y)}return this.setNode(p),this._removeFromParentsChildList(p),this._parent[p]=y,this._children[y][p]=!0,this},_.prototype._removeFromParentsChildList=function(p){delete this._children[this._parent[p]][p]},_.prototype.parent=function(p){if(this._isCompound){var y=this._parent[p];if(y!==w)return y}},_.prototype.children=function(p){if(d.isUndefined(p)&&(p=w),this._isCompound){var y=this._children[p];if(y)return d.keys(y)}else{if(p===w)return this.nodes();if(this.hasNode(p))return[]}},_.prototype.predecessors=function(p){var y=this._preds[p];if(y)return d.keys(y)},_.prototype.successors=function(p){var y=this._sucs[p];if(y)return d.keys(y)},_.prototype.neighbors=function(p){var y=this.predecessors(p);if(y)return d.union(y,this.successors(p))},_.prototype.isLeaf=function(p){return 0===(this.isDirected()?this.successors(p):this.neighbors(p)).length},_.prototype.filterNodes=function(p){var y=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});y.setGraph(this.graph());var S=this;d.each(this._nodes,function(F,R){p(R)&&y.setNode(R,F)}),d.each(this._edgeObjs,function(F){y.hasNode(F.v)&&y.hasNode(F.w)&&y.setEdge(F,S.edge(F))});var k={};function O(F){var R=S.parent(F);return void 0===R||y.hasNode(R)?(k[F]=R,R):R in k?k[R]:O(R)}return this._isCompound&&d.each(y.nodes(),function(F){y.setParent(F,O(F))}),y},_.prototype.setDefaultEdgeLabel=function(p){return d.isFunction(p)||(p=d.constant(p)),this._defaultEdgeLabelFn=p,this},_.prototype.edgeCount=function(){return this._edgeCount},_.prototype.edges=function(){return d.values(this._edgeObjs)},_.prototype.setPath=function(p,y){var S=this,k=arguments;return d.reduce(p,function(O,F){return k.length>1?S.setEdge(O,F,y):S.setEdge(O,F),F}),this},_.prototype.setEdge=function(){var p,y,S,k,O=!1,F=arguments[0];"object"==typeof F&&null!==F&&"v"in F?(p=F.v,y=F.w,S=F.name,2===arguments.length&&(k=arguments[1],O=!0)):(p=F,y=arguments[1],S=arguments[3],arguments.length>2&&(k=arguments[2],O=!0)),p=""+p,y=""+y,d.isUndefined(S)||(S=""+S);var R=f(this._isDirected,p,y,S);if(d.has(this._edgeLabels,R))return O&&(this._edgeLabels[R]=k),this;if(!d.isUndefined(S)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(p),this.setNode(y),this._edgeLabels[R]=O?k:this._defaultEdgeLabelFn(p,y,S);var z=v(this._isDirected,p,y,S);return p=z.v,y=z.w,Object.freeze(z),this._edgeObjs[R]=z,x(this._preds[y],p),x(this._sucs[p],y),this._in[y][R]=z,this._out[p][R]=z,this._edgeCount++,this},_.prototype.edge=function(p,y,S){var k=1===arguments.length?m(this._isDirected,arguments[0]):f(this._isDirected,p,y,S);return this._edgeLabels[k]},_.prototype.hasEdge=function(p,y,S){var k=1===arguments.length?m(this._isDirected,arguments[0]):f(this._isDirected,p,y,S);return d.has(this._edgeLabels,k)},_.prototype.removeEdge=function(p,y,S){var k=1===arguments.length?m(this._isDirected,arguments[0]):f(this._isDirected,p,y,S),O=this._edgeObjs[k];return O&&(p=O.v,y=O.w,delete this._edgeLabels[k],delete this._edgeObjs[k],g(this._preds[y],p),g(this._sucs[p],y),delete this._in[y][k],delete this._out[p][k],this._edgeCount--),this},_.prototype.inEdges=function(p,y){var S=this._in[p];if(S){var k=d.values(S);return y?d.filter(k,function(O){return O.v===y}):k}},_.prototype.outEdges=function(p,y){var S=this._out[p];if(S){var k=d.values(S);return y?d.filter(k,function(O){return O.w===y}):k}},_.prototype.nodeEdges=function(p,y){var S=this.inEdges(p,y);if(S)return S.concat(this.outEdges(p,y))}},1838:(E,L,u)=>{E.exports={Graph:u(6568),version:u(5089)}},1088:(E,L,u)=>{var d=u(9138),D=u(6568);function C(g){return d.map(g.nodes(),function(f){var v=g.node(f),m=g.parent(f),p={v:f};return d.isUndefined(v)||(p.value=v),d.isUndefined(m)||(p.parent=m),p})}function _(g){return d.map(g.edges(),function(f){var v=g.edge(f),m={v:f.v,w:f.w};return d.isUndefined(f.name)||(m.name=f.name),d.isUndefined(v)||(m.value=v),m})}E.exports={write:function w(g){var f={options:{directed:g.isDirected(),multigraph:g.isMultigraph(),compound:g.isCompound()},nodes:C(g),edges:_(g)};return d.isUndefined(g.graph())||(f.value=d.clone(g.graph())),f},read:function x(g){var f=new D(g.options).setGraph(g.value);return d.each(g.nodes,function(v){f.setNode(v.v,v.value),v.parent&&f.setParent(v.v,v.parent)}),d.each(g.edges,function(v){f.setEdge({v:v.v,w:v.w,name:v.name},v.value)}),f}}},9138:(E,L,u)=>{var d;try{d={clone:u(1094),constant:u(6684),each:u(5474),filter:u(5281),has:u(4842),isArray:u(1503),isEmpty:u(1973),isFunction:u(5946),isUndefined:u(4235),keys:u(118),map:u(9984),reduce:u(1337),size:u(5637),transform:u(9416),union:u(8921),values:u(377)}}catch(D){}d||(d=window._),E.exports=d},5089:E=>{E.exports="2.1.8"},7244:(E,L,u)=>{var w=u(3436)(u(2119),"DataView");E.exports=w},4994:(E,L,u)=>{var d=u(4312),D=u(6421),w=u(5764),C=u(8685),_=u(6676);function x(g){var f=-1,v=null==g?0:g.length;for(this.clear();++f<v;){var m=g[f];this.set(m[0],m[1])}}x.prototype.clear=d,x.prototype.delete=D,x.prototype.get=w,x.prototype.has=C,x.prototype.set=_,E.exports=x},9215:(E,L,u)=>{var d=u(1840),D=u(4378),w=u(4981),C=u(7343),_=u(8895);function x(g){var f=-1,v=null==g?0:g.length;for(this.clear();++f<v;){var m=g[f];this.set(m[0],m[1])}}x.prototype.clear=d,x.prototype.delete=D,x.prototype.get=w,x.prototype.has=C,x.prototype.set=_,E.exports=x},1501:(E,L,u)=>{var w=u(3436)(u(2119),"Map");E.exports=w},9850:(E,L,u)=>{var d=u(638),D=u(1184),w=u(866),C=u(3771),_=u(1772);function x(g){var f=-1,v=null==g?0:g.length;for(this.clear();++f<v;){var m=g[f];this.set(m[0],m[1])}}x.prototype.clear=d,x.prototype.delete=D,x.prototype.get=w,x.prototype.has=C,x.prototype.set=_,E.exports=x},4267:(E,L,u)=>{var w=u(3436)(u(2119),"Promise");E.exports=w},6323:(E,L,u)=>{var w=u(3436)(u(2119),"Set");E.exports=w},8849:(E,L,u)=>{var d=u(9850),D=u(4600),w=u(1387);function C(_){var x=-1,g=null==_?0:_.length;for(this.__data__=new d;++x<g;)this.add(_[x])}C.prototype.add=C.prototype.push=D,C.prototype.has=w,E.exports=C},2858:(E,L,u)=>{var d=u(9215),D=u(3720),w=u(4410),C=u(5576),_=u(2247),x=u(1585);function g(f){var v=this.__data__=new d(f);this.size=v.size}g.prototype.clear=D,g.prototype.delete=w,g.prototype.get=C,g.prototype.has=_,g.prototype.set=x,E.exports=g},443:(E,L,u)=>{var d=u(2119);E.exports=d.Symbol},3457:(E,L,u)=>{var d=u(2119);E.exports=d.Uint8Array},4243:(E,L,u)=>{var w=u(3436)(u(2119),"WeakMap");E.exports=w},6999:E=>{E.exports=function L(u,d,D){switch(D.length){case 0:return u.call(d);case 1:return u.call(d,D[0]);case 2:return u.call(d,D[0],D[1]);case 3:return u.call(d,D[0],D[1],D[2])}return u.apply(d,D)}},6837:E=>{E.exports=function L(u,d){for(var D=-1,w=null==u?0:u.length;++D<w&&!1!==d(u[D],D,u););return u}},9779:E=>{E.exports=function L(u,d){for(var D=-1,w=null==u?0:u.length,C=0,_=[];++D<w;){var x=u[D];d(x,D,u)&&(_[C++]=x)}return _}},1253:(E,L,u)=>{var d=u(4164);E.exports=function D(w,C){return!(null==w||!w.length)&&d(w,C,0)>-1}},177:E=>{E.exports=function L(u,d,D){for(var w=-1,C=null==u?0:u.length;++w<C;)if(D(d,u[w]))return!0;return!1}},2271:(E,L,u)=>{var d=u(5334),D=u(7151),w=u(1503),C=u(891),_=u(8442),x=u(8159),f=Object.prototype.hasOwnProperty;E.exports=function v(m,p){var y=w(m),S=!y&&D(m),k=!y&&!S&&C(m),O=!y&&!S&&!k&&x(m),F=y||S||k||O,R=F?d(m.length,String):[],z=R.length;for(var H in m)(p||f.call(m,H))&&(!F||!("length"==H||k&&("offset"==H||"parent"==H)||O&&("buffer"==H||"byteLength"==H||"byteOffset"==H)||_(H,z)))&&R.push(H);return R}},4633:E=>{E.exports=function L(u,d){for(var D=-1,w=null==u?0:u.length,C=Array(w);++D<w;)C[D]=d(u[D],D,u);return C}},5059:E=>{E.exports=function L(u,d){for(var D=-1,w=d.length,C=u.length;++D<w;)u[C+D]=d[D];return u}},8745:E=>{E.exports=function L(u,d,D,w){var C=-1,_=null==u?0:u.length;for(w&&_&&(D=u[++C]);++C<_;)D=d(D,u[C],C,u);return D}},9503:E=>{E.exports=function L(u,d){for(var D=-1,w=null==u?0:u.length;++D<w;)if(d(u[D],D,u))return!0;return!1}},5481:(E,L,u)=>{var D=u(1847)("length");E.exports=D},9276:(E,L,u)=>{var d=u(5683),D=u(217);E.exports=function w(C,_,x){(void 0!==x&&!D(C[_],x)||void 0===x&&!(_ in C))&&d(C,_,x)}},9719:(E,L,u)=>{var d=u(5683),D=u(217),C=Object.prototype.hasOwnProperty;E.exports=function _(x,g,f){var v=x[g];(!C.call(x,g)||!D(v,f)||void 0===f&&!(g in x))&&d(x,g,f)}},3503:(E,L,u)=>{var d=u(217);E.exports=function D(w,C){for(var _=w.length;_--;)if(d(w[_][0],C))return _;return-1}},4121:(E,L,u)=>{var d=u(1989),D=u(118);E.exports=function w(C,_){return C&&d(_,D(_),C)}},9287:(E,L,u)=>{var d=u(1989),D=u(6555);E.exports=function w(C,_){return C&&d(_,D(_),C)}},5683:(E,L,u)=>{var d=u(6713);E.exports=function D(w,C,_){"__proto__"==C&&d?d(w,C,{configurable:!0,enumerable:!0,value:_,writable:!0}):w[C]=_}},4462:(E,L,u)=>{var d=u(2858),D=u(6837),w=u(9719),C=u(4121),_=u(9287),x=u(9292),g=u(9454),f=u(4444),v=u(9905),m=u(7597),p=u(6967),y=u(8794),S=u(6782),k=u(7878),O=u(4264),F=u(1503),R=u(891),z=u(3222),H=u(5940),X=u(799),se=u(118),te=u(6555),V="[object Arguments]",de="[object Function]",pe="[object Object]",wt={};wt[V]=wt["[object Array]"]=wt["[object ArrayBuffer]"]=wt["[object DataView]"]=wt["[object Boolean]"]=wt["[object Date]"]=wt["[object Float32Array]"]=wt["[object Float64Array]"]=wt["[object Int8Array]"]=wt["[object Int16Array]"]=wt["[object Int32Array]"]=wt["[object Map]"]=wt["[object Number]"]=wt[pe]=wt["[object RegExp]"]=wt["[object Set]"]=wt["[object String]"]=wt["[object Symbol]"]=wt["[object Uint8Array]"]=wt["[object Uint8ClampedArray]"]=wt["[object Uint16Array]"]=wt["[object Uint32Array]"]=!0,wt["[object Error]"]=wt[de]=wt["[object WeakMap]"]=!1,E.exports=function sr(Ct,Sr,Ji,ac,ho,vs){var ti,Ar=1&Sr,rr=2&Sr,Aa=4&Sr;if(Ji&&(ti=ho?Ji(Ct,ac,ho,vs):Ji(Ct)),void 0!==ti)return ti;if(!H(Ct))return Ct;var Ma=F(Ct);if(Ma){if(ti=S(Ct),!Ar)return g(Ct,ti)}else{var or=y(Ct),lc=or==de||"[object GeneratorFunction]"==or;if(R(Ct))return x(Ct,Ar);if(or==pe||or==V||lc&&!ho){if(ti=rr||lc?{}:O(Ct),!Ar)return rr?v(Ct,_(ti,Ct)):f(Ct,C(ti,Ct))}else{if(!wt[or])return ho?Ct:{};ti=k(Ct,or,Ar)}}vs||(vs=new d);var cc=vs.get(Ct);if(cc)return cc;vs.set(Ct,ti),X(Ct)?Ct.forEach(function(Ns){ti.add(sr(Ns,Sr,Ji,Ns,Ct,vs))}):z(Ct)&&Ct.forEach(function(Ns,Rs){ti.set(Rs,sr(Ns,Sr,Ji,Rs,Ct,vs))});var uc=Ma?void 0:(Aa?rr?p:m:rr?te:se)(Ct);return D(uc||Ct,function(Ns,Rs){uc&&(Ns=Ct[Rs=Ns]),w(ti,Rs,sr(Ns,Sr,Ji,Rs,Ct,vs))}),ti}},8858:(E,L,u)=>{var d=u(5940),D=Object.create,w=function(){function C(){}return function(_){if(!d(_))return{};if(D)return D(_);C.prototype=_;var x=new C;return C.prototype=void 0,x}}();E.exports=w},3132:(E,L,u)=>{var d=u(5184),w=u(6539)(d);E.exports=w},7308:(E,L,u)=>{var d=u(4129);E.exports=function D(w,C,_){for(var x=-1,g=w.length;++x<g;){var f=w[x],v=C(f);if(null!=v&&(void 0===m?v==v&&!d(v):_(v,m)))var m=v,p=f}return p}},3609:(E,L,u)=>{var d=u(3132);E.exports=function D(w,C){var _=[];return d(w,function(x,g,f){C(x,g,f)&&_.push(x)}),_}},5317:E=>{E.exports=function L(u,d,D,w){for(var C=u.length,_=D+(w?1:-1);w?_--:++_<C;)if(d(u[_],_,u))return _;return-1}},686:(E,L,u)=>{var d=u(5059),D=u(5039);E.exports=function w(C,_,x,g,f){var v=-1,m=C.length;for(x||(x=D),f||(f=[]);++v<m;){var p=C[v];_>0&&x(p)?_>1?w(p,_-1,x,g,f):d(f,p):g||(f[f.length]=p)}return f}},755:(E,L,u)=>{var D=u(456)();E.exports=D},5184:(E,L,u)=>{var d=u(755),D=u(118);E.exports=function w(C,_){return C&&d(C,_,D)}},5456:(E,L,u)=>{var d=u(6884),D=u(8533);E.exports=function w(C,_){for(var x=0,g=(_=d(_,C)).length;null!=C&&x<g;)C=C[D(_[x++])];return x&&x==g?C:void 0}},8247:(E,L,u)=>{var d=u(5059),D=u(1503);E.exports=function w(C,_,x){var g=_(C);return D(C)?g:d(g,x(C))}},3337:(E,L,u)=>{var d=u(443),D=u(1318),w=u(2902),x=d?d.toStringTag:void 0;E.exports=function g(f){return null==f?void 0===f?"[object Undefined]":"[object Null]":x&&x in Object(f)?D(f):w(f)}},1100:E=>{E.exports=function L(u,d){return u>d}},4781:E=>{var u=Object.prototype.hasOwnProperty;E.exports=function d(D,w){return null!=D&&u.call(D,w)}},9989:E=>{E.exports=function L(u,d){return null!=u&&d in Object(u)}},4164:(E,L,u)=>{var d=u(5317),D=u(968),w=u(4977);E.exports=function C(_,x,g){return x==x?w(_,x,g):d(_,D,g)}},186:(E,L,u)=>{var d=u(3337),D=u(2671);E.exports=function C(_){return D(_)&&"[object Arguments]"==d(_)}},5740:(E,L,u)=>{var d=u(8325),D=u(2671);E.exports=function w(C,_,x,g,f){return C===_||(null==C||null==_||!D(C)&&!D(_)?C!=C&&_!=_:d(C,_,x,g,w,f))}},8325:(E,L,u)=>{var d=u(2858),D=u(3914),w=u(8583),C=u(2286),_=u(8794),x=u(1503),g=u(891),f=u(8159),m="[object Arguments]",p="[object Array]",y="[object Object]",k=Object.prototype.hasOwnProperty;E.exports=function O(F,R,z,H,X,se){var te=x(F),ie=x(R),le=te?p:_(F),N=ie?p:_(R),V=(le=le==m?y:le)==y,U=(N=N==m?y:N)==y,$=le==N;if($&&g(F)){if(!g(R))return!1;te=!0,V=!1}if($&&!V)return se||(se=new d),te||f(F)?D(F,R,z,H,X,se):w(F,R,le,z,H,X,se);if(!(1&z)){var Y=V&&k.call(F,"__wrapped__"),oe=U&&k.call(R,"__wrapped__");if(Y||oe){var de=Y?F.value():F,ee=oe?R.value():R;return se||(se=new d),X(de,ee,z,H,se)}}return!!$&&(se||(se=new d),C(F,R,z,H,X,se))}},7021:(E,L,u)=>{var d=u(8794),D=u(2671);E.exports=function C(_){return D(_)&&"[object Map]"==d(_)}},431:(E,L,u)=>{var d=u(2858),D=u(5740);E.exports=function _(x,g,f,v){var m=f.length,p=m,y=!v;if(null==x)return!p;for(x=Object(x);m--;){var S=f[m];if(y&&S[2]?S[1]!==x[S[0]]:!(S[0]in x))return!1}for(;++m<p;){var k=(S=f[m])[0],O=x[k],F=S[1];if(y&&S[2]){if(void 0===O&&!(k in x))return!1}else{var R=new d;if(v)var z=v(O,F,k,x,g,R);if(!(void 0===z?D(F,O,3,v,R):z))return!1}}return!0}},968:E=>{E.exports=function L(u){return u!=u}},7304:(E,L,u)=>{var d=u(5946),D=u(1943),w=u(5940),C=u(2827),x=/^\[object .+?Constructor\]$/,p=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");E.exports=function y(S){return!(!w(S)||D(S))&&(d(S)?p:x).test(C(S))}},771:(E,L,u)=>{var d=u(8794),D=u(2671);E.exports=function C(_){return D(_)&&"[object Set]"==d(_)}},1083:(E,L,u)=>{var d=u(3337),D=u(6231),w=u(2671),$={};$["[object Float32Array]"]=$["[object Float64Array]"]=$["[object Int8Array]"]=$["[object Int16Array]"]=$["[object Int32Array]"]=$["[object Uint8Array]"]=$["[object Uint8ClampedArray]"]=$["[object Uint16Array]"]=$["[object Uint32Array]"]=!0,$["[object Arguments]"]=$["[object Array]"]=$["[object ArrayBuffer]"]=$["[object Boolean]"]=$["[object DataView]"]=$["[object Date]"]=$["[object Error]"]=$["[object Function]"]=$["[object Map]"]=$["[object Number]"]=$["[object Object]"]=$["[object RegExp]"]=$["[object Set]"]=$["[object String]"]=$["[object WeakMap]"]=!1,E.exports=function Y(oe){return w(oe)&&D(oe.length)&&!!$[d(oe)]}},6517:(E,L,u)=>{var d=u(8133),D=u(9458),w=u(2608),C=u(1503),_=u(7495);E.exports=function x(g){return"function"==typeof g?g:null==g?w:"object"==typeof g?C(g)?D(g[0],g[1]):d(g):_(g)}},1172:(E,L,u)=>{var d=u(5488),D=u(5491),C=Object.prototype.hasOwnProperty;E.exports=function _(x){if(!d(x))return D(x);var g=[];for(var f in Object(x))C.call(x,f)&&"constructor"!=f&&g.push(f);return g}},2809:(E,L,u)=>{var d=u(5940),D=u(5488),w=u(2158),_=Object.prototype.hasOwnProperty;E.exports=function x(g){if(!d(g))return w(g);var f=D(g),v=[];for(var m in g)"constructor"==m&&(f||!_.call(g,m))||v.push(m);return v}},9069:E=>{E.exports=function L(u,d){return u<d}},2046:(E,L,u)=>{var d=u(3132),D=u(6507);E.exports=function w(C,_){var x=-1,g=D(C)?Array(C.length):[];return d(C,function(f,v,m){g[++x]=_(f,v,m)}),g}},8133:(E,L,u)=>{var d=u(431),D=u(2379),w=u(642);E.exports=function C(_){var x=D(_);return 1==x.length&&x[0][2]?w(x[0][0],x[0][1]):function(g){return g===_||d(g,_,x)}}},9458:(E,L,u)=>{var d=u(5740),D=u(8817),w=u(8492),C=u(5352),_=u(2442),x=u(642),g=u(8533);E.exports=function m(p,y){return C(p)&&_(y)?x(g(p),y):function(S){var k=D(S,p);return void 0===k&&k===y?w(S,p):d(y,k,3)}}},3842:(E,L,u)=>{var d=u(2858),D=u(9276),w=u(755),C=u(3675),_=u(5940),x=u(6555),g=u(9351);E.exports=function f(v,m,p,y,S){v!==m&&w(m,function(k,O){if(S||(S=new d),_(k))C(v,m,O,p,f,y,S);else{var F=y?y(g(v,O),k,O+"",v,m,S):void 0;void 0===F&&(F=k),D(v,O,F)}},x)}},3675:(E,L,u)=>{var d=u(9276),D=u(9292),w=u(5208),C=u(9454),_=u(4264),x=u(7151),g=u(1503),f=u(1330),v=u(891),m=u(5946),p=u(5940),y=u(7614),S=u(8159),k=u(9351),O=u(8067);E.exports=function F(R,z,H,X,se,te,ie){var le=k(R,H),N=k(z,H),V=ie.get(N);if(V)d(R,H,V);else{var U=te?te(le,N,H+"",R,z,ie):void 0,$=void 0===U;if($){var Y=g(N),oe=!Y&&v(N),de=!Y&&!oe&&S(N);U=N,Y||oe||de?g(le)?U=le:f(le)?U=C(le):oe?($=!1,U=D(N,!0)):de?($=!1,U=w(N,!0)):U=[]:y(N)||x(N)?(U=le,x(le)?U=O(le):(!p(le)||m(le))&&(U=_(N))):$=!1}$&&(ie.set(N,U),se(U,N,X,te,ie),ie.delete(N)),d(R,H,U)}}},6119:(E,L,u)=>{var d=u(4633),D=u(5456),w=u(6517),C=u(2046),_=u(8750),x=u(5647),g=u(1215),f=u(2608),v=u(1503);E.exports=function m(p,y,S){y=y.length?d(y,function(F){return v(F)?function(R){return D(R,1===F.length?F[0]:F)}:F}):[f];var k=-1;y=d(y,x(w));var O=C(p,function(F,R,z){return{criteria:d(y,function(X){return X(F)}),index:++k,value:F}});return _(O,function(F,R){return g(F,R,S)})}},3021:(E,L,u)=>{var d=u(5495),D=u(8492);E.exports=function w(C,_){return d(C,_,function(x,g){return D(C,g)})}},5495:(E,L,u)=>{var d=u(5456),D=u(5963),w=u(6884);E.exports=function C(_,x,g){for(var f=-1,v=x.length,m={};++f<v;){var p=x[f],y=d(_,p);g(y,p)&&D(m,w(p,_),y)}return m}},1847:E=>{E.exports=function L(u){return function(d){return null==d?void 0:d[u]}}},9222:(E,L,u)=>{var d=u(5456);E.exports=function D(w){return function(C){return d(C,w)}}},6307:E=>{var L=Math.ceil,u=Math.max;E.exports=function d(D,w,C,_){for(var x=-1,g=u(L((w-D)/(C||1)),0),f=Array(g);g--;)f[_?g:++x]=D,D+=C;return f}},3570:E=>{E.exports=function L(u,d,D,w,C){return C(u,function(_,x,g){D=w?(w=!1,_):d(D,_,x,g)}),D}},3269:(E,L,u)=>{var d=u(2608),D=u(3983),w=u(2185);E.exports=function C(_,x){return w(D(_,x,d),_+"")}},5963:(E,L,u)=>{var d=u(9719),D=u(6884),w=u(8442),C=u(5940),_=u(8533);E.exports=function x(g,f,v,m){if(!C(g))return g;for(var p=-1,y=(f=D(f,g)).length,S=y-1,k=g;null!=k&&++p<y;){var O=_(f[p]),F=v;if("__proto__"===O||"constructor"===O||"prototype"===O)return g;if(p!=S){var R=k[O];void 0===(F=m?m(R,O,k):void 0)&&(F=C(R)?R:w(f[p+1])?[]:{})}d(k,O,F),k=k[O]}return g}},9510:(E,L,u)=>{var d=u(6684),D=u(6713),w=u(2608);E.exports=D?function(_,x){return D(_,"toString",{configurable:!0,enumerable:!1,value:d(x),writable:!0})}:w},8750:E=>{E.exports=function L(u,d){var D=u.length;for(u.sort(d);D--;)u[D]=u[D].value;return u}},5334:E=>{E.exports=function L(u,d){for(var D=-1,w=Array(u);++D<u;)w[D]=d(D);return w}},3935:(E,L,u)=>{var d=u(443),D=u(4633),w=u(1503),C=u(4129),x=d?d.prototype:void 0,g=x?x.toString:void 0;E.exports=function f(v){if("string"==typeof v)return v;if(w(v))return D(v,f)+"";if(C(v))return g?g.call(v):"";var m=v+"";return"0"==m&&1/v==-1/0?"-0":m}},3348:(E,L,u)=>{var d=u(2760),D=/^\s+/;E.exports=function w(C){return C&&C.slice(0,d(C)+1).replace(D,"")}},5647:E=>{E.exports=function L(u){return function(d){return u(d)}}},707:(E,L,u)=>{var d=u(8849),D=u(1253),w=u(177),C=u(5972),_=u(4575),x=u(4174);E.exports=function f(v,m,p){var y=-1,S=D,k=v.length,O=!0,F=[],R=F;if(p)O=!1,S=w;else if(k>=200){var z=m?null:_(v);if(z)return x(z);O=!1,S=C,R=new d}else R=m?[]:F;e:for(;++y<k;){var H=v[y],X=m?m(H):H;if(H=p||0!==H?H:0,O&&X==X){for(var se=R.length;se--;)if(R[se]===X)continue e;m&&R.push(X),F.push(H)}else S(R,X,p)||(R!==F&&R.push(X),F.push(H))}return F}},9179:(E,L,u)=>{var d=u(4633);E.exports=function D(w,C){return d(C,function(_){return w[_]})}},8645:E=>{E.exports=function L(u,d,D){for(var w=-1,C=u.length,_=d.length,x={};++w<C;)D(x,u[w],w<_?d[w]:void 0);return x}},5972:E=>{E.exports=function L(u,d){return u.has(d)}},1481:(E,L,u)=>{var d=u(2608);E.exports=function D(w){return"function"==typeof w?w:d}},6884:(E,L,u)=>{var d=u(1503),D=u(5352),w=u(2855),C=u(3943);E.exports=function _(x,g){return d(x)?x:D(x,g)?[x]:w(C(x))}},3362:(E,L,u)=>{var d=u(3457);E.exports=function D(w){var C=new w.constructor(w.byteLength);return new d(C).set(new d(w)),C}},9292:(E,L,u)=>{E=u.nmd(E);var d=u(2119),D=L&&!L.nodeType&&L,w=D&&E&&!E.nodeType&&E,_=w&&w.exports===D?d.Buffer:void 0,x=_?_.allocUnsafe:void 0;E.exports=function g(f,v){if(v)return f.slice();var m=f.length,p=x?x(m):new f.constructor(m);return f.copy(p),p}},7e3:(E,L,u)=>{var d=u(3362);E.exports=function D(w,C){var _=C?d(w.buffer):w.buffer;return new w.constructor(_,w.byteOffset,w.byteLength)}},4098:E=>{var L=/\w*$/;E.exports=function u(d){var D=new d.constructor(d.source,L.exec(d));return D.lastIndex=d.lastIndex,D}},2533:(E,L,u)=>{var d=u(443),D=d?d.prototype:void 0,w=D?D.valueOf:void 0;E.exports=function C(_){return w?Object(w.call(_)):{}}},5208:(E,L,u)=>{var d=u(3362);E.exports=function D(w,C){var _=C?d(w.buffer):w.buffer;return new w.constructor(_,w.byteOffset,w.length)}},3443:(E,L,u)=>{var d=u(4129);E.exports=function D(w,C){if(w!==C){var _=void 0!==w,x=null===w,g=w==w,f=d(w),v=void 0!==C,m=null===C,p=C==C,y=d(C);if(!m&&!y&&!f&&w>C||f&&v&&p&&!m&&!y||x&&v&&p||!_&&p||!g)return 1;if(!x&&!f&&!y&&w<C||y&&_&&g&&!x&&!f||m&&_&&g||!v&&g||!p)return-1}return 0}},1215:(E,L,u)=>{var d=u(3443);E.exports=function D(w,C,_){for(var x=-1,g=w.criteria,f=C.criteria,v=g.length,m=_.length;++x<v;){var p=d(g[x],f[x]);if(p)return x>=m?p:p*("desc"==_[x]?-1:1)}return w.index-C.index}},9454:E=>{E.exports=function L(u,d){var D=-1,w=u.length;for(d||(d=Array(w));++D<w;)d[D]=u[D];return d}},1989:(E,L,u)=>{var d=u(9719),D=u(5683);E.exports=function w(C,_,x,g){var f=!x;x||(x={});for(var v=-1,m=_.length;++v<m;){var p=_[v],y=g?g(x[p],C[p],p,x,C):void 0;void 0===y&&(y=C[p]),f?D(x,p,y):d(x,p,y)}return x}},4444:(E,L,u)=>{var d=u(1989),D=u(9383);E.exports=function w(C,_){return d(C,D(C),_)}},9905:(E,L,u)=>{var d=u(1989),D=u(3051);E.exports=function w(C,_){return d(C,D(C),_)}},4610:(E,L,u)=>{var d=u(2119);E.exports=d["__core-js_shared__"]},4944:(E,L,u)=>{var d=u(3269),D=u(3342);E.exports=function w(C){return d(function(_,x){var g=-1,f=x.length,v=f>1?x[f-1]:void 0,m=f>2?x[2]:void 0;for(v=C.length>3&&"function"==typeof v?(f--,v):void 0,m&&D(x[0],x[1],m)&&(v=f<3?void 0:v,f=1),_=Object(_);++g<f;){var p=x[g];p&&C(_,p,g,v)}return _})}},6539:(E,L,u)=>{var d=u(6507);E.exports=function D(w,C){return function(_,x){if(null==_)return _;if(!d(_))return w(_,x);for(var g=_.length,f=C?g:-1,v=Object(_);(C?f--:++f<g)&&!1!==x(v[f],f,v););return _}}},456:E=>{E.exports=function L(u){return function(d,D,w){for(var C=-1,_=Object(d),x=w(d),g=x.length;g--;){var f=x[u?g:++C];if(!1===D(_[f],f,_))break}return d}}},4653:(E,L,u)=>{var d=u(6517),D=u(6507),w=u(118);E.exports=function C(_){return function(x,g,f){var v=Object(x);if(!D(x)){var m=d(g,3);x=w(x),g=function(y){return m(v[y],y,v)}}var p=_(x,g,f);return p>-1?v[m?x[p]:p]:void 0}}},7509:(E,L,u)=>{var d=u(6307),D=u(3342),w=u(2232);E.exports=function C(_){return function(x,g,f){return f&&"number"!=typeof f&&D(x,g,f)&&(g=f=void 0),x=w(x),void 0===g?(g=x,x=0):g=w(g),f=void 0===f?x<g?1:-1:w(f),d(x,g,f,_)}}},4575:(E,L,u)=>{var d=u(6323),D=u(2552),w=u(4174),_=d&&1/w(new d([,-0]))[1]==1/0?function(x){return new d(x)}:D;E.exports=_},6713:(E,L,u)=>{var d=u(3436),D=function(){try{var w=d(Object,"defineProperty");return w({},"",{}),w}catch(C){}}();E.exports=D},3914:(E,L,u)=>{var d=u(8849),D=u(9503),w=u(5972);E.exports=function x(g,f,v,m,p,y){var S=1&v,k=g.length,O=f.length;if(k!=O&&!(S&&O>k))return!1;var F=y.get(g),R=y.get(f);if(F&&R)return F==f&&R==g;var z=-1,H=!0,X=2&v?new d:void 0;for(y.set(g,f),y.set(f,g);++z<k;){var se=g[z],te=f[z];if(m)var ie=S?m(te,se,z,f,g,y):m(se,te,z,g,f,y);if(void 0!==ie){if(ie)continue;H=!1;break}if(X){if(!D(f,function(le,N){if(!w(X,N)&&(se===le||p(se,le,v,m,y)))return X.push(N)})){H=!1;break}}else if(se!==te&&!p(se,te,v,m,y)){H=!1;break}}return y.delete(g),y.delete(f),H}},8583:(E,L,u)=>{var d=u(443),D=u(3457),w=u(217),C=u(3914),_=u(3205),x=u(4174),X=d?d.prototype:void 0,se=X?X.valueOf:void 0;E.exports=function te(ie,le,N,V,U,$,Y){switch(N){case"[object DataView]":if(ie.byteLength!=le.byteLength||ie.byteOffset!=le.byteOffset)return!1;ie=ie.buffer,le=le.buffer;case"[object ArrayBuffer]":return!(ie.byteLength!=le.byteLength||!$(new D(ie),new D(le)));case"[object Boolean]":case"[object Date]":case"[object Number]":return w(+ie,+le);case"[object Error]":return ie.name==le.name&&ie.message==le.message;case"[object RegExp]":case"[object String]":return ie==le+"";case"[object Map]":var oe=_;case"[object Set]":if(oe||(oe=x),ie.size!=le.size&&!(1&V))return!1;var ee=Y.get(ie);if(ee)return ee==le;V|=2,Y.set(ie,le);var J=C(oe(ie),oe(le),V,U,$,Y);return Y.delete(ie),J;case"[object Symbol]":if(se)return se.call(ie)==se.call(le)}return!1}},2286:(E,L,u)=>{var d=u(7597),C=Object.prototype.hasOwnProperty;E.exports=function _(x,g,f,v,m,p){var y=1&f,S=d(x),k=S.length;if(k!=d(g).length&&!y)return!1;for(var R=k;R--;){var z=S[R];if(!(y?z in g:C.call(g,z)))return!1}var H=p.get(x),X=p.get(g);if(H&&X)return H==g&&X==x;var se=!0;p.set(x,g),p.set(g,x);for(var te=y;++R<k;){var ie=x[z=S[R]],le=g[z];if(v)var N=y?v(le,ie,z,g,x,p):v(ie,le,z,x,g,p);if(!(void 0===N?ie===le||m(ie,le,f,v,p):N)){se=!1;break}te||(te="constructor"==z)}if(se&&!te){var V=x.constructor,U=g.constructor;V!=U&&"constructor"in x&&"constructor"in g&&!("function"==typeof V&&V instanceof V&&"function"==typeof U&&U instanceof U)&&(se=!1)}return p.delete(x),p.delete(g),se}},3975:(E,L,u)=>{var d=u(2274),D=u(3983),w=u(2185);E.exports=function C(_){return w(D(_,void 0,d),_+"")}},9122:E=>{var L="object"==typeof global&&global&&global.Object===Object&&global;E.exports=L},7597:(E,L,u)=>{var d=u(8247),D=u(9383),w=u(118);E.exports=function C(_){return d(_,w,D)}},6967:(E,L,u)=>{var d=u(8247),D=u(3051),w=u(6555);E.exports=function C(_){return d(_,w,D)}},4537:(E,L,u)=>{var d=u(3819);E.exports=function D(w,C){var _=w.__data__;return d(C)?_["string"==typeof C?"string":"hash"]:_.map}},2379:(E,L,u)=>{var d=u(2442),D=u(118);E.exports=function w(C){for(var _=D(C),x=_.length;x--;){var g=_[x],f=C[g];_[x]=[g,f,d(f)]}return _}},3436:(E,L,u)=>{var d=u(7304),D=u(1990);E.exports=function w(C,_){var x=D(C,_);return d(x)?x:void 0}},9519:(E,L,u)=>{var D=u(9385)(Object.getPrototypeOf,Object);E.exports=D},1318:(E,L,u)=>{var d=u(443),D=Object.prototype,w=D.hasOwnProperty,C=D.toString,_=d?d.toStringTag:void 0;E.exports=function x(g){var f=w.call(g,_),v=g[_];try{g[_]=void 0;var m=!0}catch(y){}var p=C.call(g);return m&&(f?g[_]=v:delete g[_]),p}},9383:(E,L,u)=>{var d=u(9779),D=u(9975),C=Object.prototype.propertyIsEnumerable,_=Object.getOwnPropertySymbols;E.exports=_?function(g){return null==g?[]:(g=Object(g),d(_(g),function(f){return C.call(g,f)}))}:D},3051:(E,L,u)=>{var d=u(5059),D=u(9519),w=u(9383),C=u(9975);E.exports=Object.getOwnPropertySymbols?function(g){for(var f=[];g;)d(f,w(g)),g=D(g);return f}:C},8794:(E,L,u)=>{var d=u(7244),D=u(1501),w=u(4267),C=u(6323),_=u(4243),x=u(3337),g=u(2827),f="[object Map]",m="[object Promise]",p="[object Set]",y="[object WeakMap]",S="[object DataView]",k=g(d),O=g(D),F=g(w),R=g(C),z=g(_),H=x;(d&&H(new d(new ArrayBuffer(1)))!=S||D&&H(new D)!=f||w&&H(w.resolve())!=m||C&&H(new C)!=p||_&&H(new _)!=y)&&(H=function(X){var se=x(X),te="[object Object]"==se?X.constructor:void 0,ie=te?g(te):"";if(ie)switch(ie){case k:return S;case O:return f;case F:return m;case R:return p;case z:return y}return se}),E.exports=H},1990:E=>{E.exports=function L(u,d){return null==u?void 0:u[d]}},7283:(E,L,u)=>{var d=u(6884),D=u(7151),w=u(1503),C=u(8442),_=u(6231),x=u(8533);E.exports=function g(f,v,m){for(var p=-1,y=(v=d(v,f)).length,S=!1;++p<y;){var k=x(v[p]);if(!(S=null!=f&&m(f,k)))break;f=f[k]}return S||++p!=y?S:!!(y=null==f?0:f.length)&&_(y)&&C(k,y)&&(w(f)||D(f))}},7609:E=>{var x=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");E.exports=function g(f){return x.test(f)}},4312:(E,L,u)=>{var d=u(862);E.exports=function D(){this.__data__=d?d(null):{},this.size=0}},6421:E=>{E.exports=function L(u){var d=this.has(u)&&delete this.__data__[u];return this.size-=d?1:0,d}},5764:(E,L,u)=>{var d=u(862),C=Object.prototype.hasOwnProperty;E.exports=function _(x){var g=this.__data__;if(d){var f=g[x];return"__lodash_hash_undefined__"===f?void 0:f}return C.call(g,x)?g[x]:void 0}},8685:(E,L,u)=>{var d=u(862),w=Object.prototype.hasOwnProperty;E.exports=function C(_){var x=this.__data__;return d?void 0!==x[_]:w.call(x,_)}},6676:(E,L,u)=>{var d=u(862);E.exports=function w(C,_){var x=this.__data__;return this.size+=this.has(C)?0:1,x[C]=d&&void 0===_?"__lodash_hash_undefined__":_,this}},6782:E=>{var u=Object.prototype.hasOwnProperty;E.exports=function d(D){var w=D.length,C=new D.constructor(w);return w&&"string"==typeof D[0]&&u.call(D,"index")&&(C.index=D.index,C.input=D.input),C}},7878:(E,L,u)=>{var d=u(3362),D=u(7e3),w=u(4098),C=u(2533),_=u(5208);E.exports=function N(V,U,$){var Y=V.constructor;switch(U){case"[object ArrayBuffer]":return d(V);case"[object Boolean]":case"[object Date]":return new Y(+V);case"[object DataView]":return D(V,$);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return _(V,$);case"[object Map]":case"[object Set]":return new Y;case"[object Number]":case"[object String]":return new Y(V);case"[object RegExp]":return w(V);case"[object Symbol]":return C(V)}}},4264:(E,L,u)=>{var d=u(8858),D=u(9519),w=u(5488);E.exports=function C(_){return"function"!=typeof _.constructor||w(_)?{}:d(D(_))}},5039:(E,L,u)=>{var d=u(443),D=u(7151),w=u(1503),C=d?d.isConcatSpreadable:void 0;E.exports=function _(x){return w(x)||D(x)||!!(C&&x&&x[C])}},8442:E=>{var u=/^(?:0|[1-9]\d*)$/;E.exports=function d(D,w){var C=typeof D;return!!(w=null==w?9007199254740991:w)&&("number"==C||"symbol"!=C&&u.test(D))&&D>-1&&D%1==0&&D<w}},3342:(E,L,u)=>{var d=u(217),D=u(6507),w=u(8442),C=u(5940);E.exports=function _(x,g,f){if(!C(f))return!1;var v=typeof g;return!!("number"==v?D(f)&&w(g,f.length):"string"==v&&g in f)&&d(f[g],x)}},5352:(E,L,u)=>{var d=u(1503),D=u(4129),w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/;E.exports=function _(x,g){if(d(x))return!1;var f=typeof x;return!("number"!=f&&"symbol"!=f&&"boolean"!=f&&null!=x&&!D(x))||C.test(x)||!w.test(x)||null!=g&&x in Object(g)}},3819:E=>{E.exports=function L(u){var d=typeof u;return"string"==d||"number"==d||"symbol"==d||"boolean"==d?"__proto__"!==u:null===u}},1943:(E,L,u)=>{var C,d=u(4610),D=(C=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"";E.exports=function w(C){return!!D&&D in C}},5488:E=>{var L=Object.prototype;E.exports=function u(d){var D=d&&d.constructor;return d===("function"==typeof D&&D.prototype||L)}},2442:(E,L,u)=>{var d=u(5940);E.exports=function D(w){return w==w&&!d(w)}},1840:E=>{E.exports=function L(){this.__data__=[],this.size=0}},4378:(E,L,u)=>{var d=u(3503),w=Array.prototype.splice;E.exports=function C(_){var x=this.__data__,g=d(x,_);return!(g<0||(g==x.length-1?x.pop():w.call(x,g,1),--this.size,0))}},4981:(E,L,u)=>{var d=u(3503);E.exports=function D(w){var C=this.__data__,_=d(C,w);return _<0?void 0:C[_][1]}},7343:(E,L,u)=>{var d=u(3503);E.exports=function D(w){return d(this.__data__,w)>-1}},8895:(E,L,u)=>{var d=u(3503);E.exports=function D(w,C){var _=this.__data__,x=d(_,w);return x<0?(++this.size,_.push([w,C])):_[x][1]=C,this}},638:(E,L,u)=>{var d=u(4994),D=u(9215),w=u(1501);E.exports=function C(){this.size=0,this.__data__={hash:new d,map:new(w||D),string:new d}}},1184:(E,L,u)=>{var d=u(4537);E.exports=function D(w){var C=d(this,w).delete(w);return this.size-=C?1:0,C}},866:(E,L,u)=>{var d=u(4537);E.exports=function D(w){return d(this,w).get(w)}},3771:(E,L,u)=>{var d=u(4537);E.exports=function D(w){return d(this,w).has(w)}},1772:(E,L,u)=>{var d=u(4537);E.exports=function D(w,C){var _=d(this,w),x=_.size;return _.set(w,C),this.size+=_.size==x?0:1,this}},3205:E=>{E.exports=function L(u){var d=-1,D=Array(u.size);return u.forEach(function(w,C){D[++d]=[C,w]}),D}},642:E=>{E.exports=function L(u,d){return function(D){return null!=D&&D[u]===d&&(void 0!==d||u in Object(D))}}},719:(E,L,u)=>{var d=u(535);E.exports=function w(C){var _=d(C,function(g){return 500===x.size&&x.clear(),g}),x=_.cache;return _}},862:(E,L,u)=>{var D=u(3436)(Object,"create");E.exports=D},5491:(E,L,u)=>{var D=u(9385)(Object.keys,Object);E.exports=D},2158:E=>{E.exports=function L(u){var d=[];if(null!=u)for(var D in Object(u))d.push(D);return d}},3597:(E,L,u)=>{E=u.nmd(E);var d=u(9122),D=L&&!L.nodeType&&L,w=D&&E&&!E.nodeType&&E,_=w&&w.exports===D&&d.process,x=function(){try{return w&&w.require&&w.require("util").types||_&&_.binding&&_.binding("util")}catch(f){}}();E.exports=x},2902:E=>{var u=Object.prototype.toString;E.exports=function d(D){return u.call(D)}},9385:E=>{E.exports=function L(u,d){return function(D){return u(d(D))}}},3983:(E,L,u)=>{var d=u(6999),D=Math.max;E.exports=function w(C,_,x){return _=D(void 0===_?C.length-1:_,0),function(){for(var g=arguments,f=-1,v=D(g.length-_,0),m=Array(v);++f<v;)m[f]=g[_+f];f=-1;for(var p=Array(_+1);++f<_;)p[f]=g[f];return p[_]=x(m),d(C,this,p)}}},2119:(E,L,u)=>{var d=u(9122),D="object"==typeof self&&self&&self.Object===Object&&self,w=d||D||Function("return this")();E.exports=w},9351:E=>{E.exports=function L(u,d){if(("constructor"!==d||"function"!=typeof u[d])&&"__proto__"!=d)return u[d]}},4600:E=>{E.exports=function u(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this}},1387:E=>{E.exports=function L(u){return this.__data__.has(u)}},4174:E=>{E.exports=function L(u){var d=-1,D=Array(u.size);return u.forEach(function(w){D[++d]=w}),D}},2185:(E,L,u)=>{var d=u(9510),w=u(29)(d);E.exports=w},29:E=>{var d=Date.now;E.exports=function D(w){var C=0,_=0;return function(){var x=d(),g=16-(x-_);if(_=x,g>0){if(++C>=800)return arguments[0]}else C=0;return w.apply(void 0,arguments)}}},3720:(E,L,u)=>{var d=u(9215);E.exports=function D(){this.__data__=new d,this.size=0}},4410:E=>{E.exports=function L(u){var d=this.__data__,D=d.delete(u);return this.size=d.size,D}},5576:E=>{E.exports=function L(u){return this.__data__.get(u)}},2247:E=>{E.exports=function L(u){return this.__data__.has(u)}},1585:(E,L,u)=>{var d=u(9215),D=u(1501),w=u(9850);E.exports=function _(x,g){var f=this.__data__;if(f instanceof d){var v=f.__data__;if(!D||v.length<199)return v.push([x,g]),this.size=++f.size,this;f=this.__data__=new w(v)}return f.set(x,g),this.size=f.size,this}},4977:E=>{E.exports=function L(u,d,D){for(var w=D-1,C=u.length;++w<C;)if(u[w]===d)return w;return-1}},2315:(E,L,u)=>{var d=u(5481),D=u(7609),w=u(1149);E.exports=function C(_){return D(_)?w(_):d(_)}},2855:(E,L,u)=>{var d=u(719),D=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/\\(\\)?/g,C=d(function(_){var x=[];return 46===_.charCodeAt(0)&&x.push(""),_.replace(D,function(g,f,v,m){x.push(v?m.replace(w,"$1"):f||g)}),x});E.exports=C},8533:(E,L,u)=>{var d=u(4129);E.exports=function w(C){if("string"==typeof C||d(C))return C;var _=C+"";return"0"==_&&1/C==-1/0?"-0":_}},2827:E=>{var u=Function.prototype.toString;E.exports=function d(D){if(null!=D){try{return u.call(D)}catch(w){}try{return D+""}catch(w){}}return""}},2760:E=>{var L=/\s/;E.exports=function u(d){for(var D=d.length;D--&&L.test(d.charAt(D)););return D}},1149:E=>{var L="\\ud800-\\udfff",_="["+L+"]",x="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",g="\\ud83c[\\udffb-\\udfff]",v="[^"+L+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",S="(?:"+x+"|"+g+")?",k="[\\ufe0e\\ufe0f]?",F=k+S+"(?:\\u200d(?:"+[v,m,p].join("|")+")"+k+S+")*",R="(?:"+[v+x+"?",x,m,p,_].join("|")+")",z=RegExp(g+"(?="+g+")|"+R+F,"g");E.exports=function H(X){for(var se=z.lastIndex=0;z.test(X);)++se;return se}},1094:(E,L,u)=>{var d=u(4462);E.exports=function w(C){return d(C,4)}},733:(E,L,u)=>{var d=u(4462);E.exports=function C(_){return d(_,5)}},6684:E=>{E.exports=function L(u){return function(){return u}}},8800:(E,L,u)=>{var d=u(3269),D=u(217),w=u(3342),C=u(6555),_=Object.prototype,x=_.hasOwnProperty,g=d(function(f,v){f=Object(f);var m=-1,p=v.length,y=p>2?v[2]:void 0;for(y&&w(v[0],v[1],y)&&(p=1);++m<p;)for(var S=v[m],k=C(S),O=-1,F=k.length;++O<F;){var R=k[O],z=f[R];(void 0===z||D(z,_[R])&&!x.call(f,R))&&(f[R]=S[R])}return f});E.exports=g},5474:(E,L,u)=>{E.exports=u(9851)},217:E=>{E.exports=function L(u,d){return u===d||u!=u&&d!=d}},5281:(E,L,u)=>{var d=u(9779),D=u(3609),w=u(6517),C=u(1503);E.exports=function _(x,g){return(C(x)?d:D)(x,w(g,3))}},2516:(E,L,u)=>{var w=u(4653)(u(6397));E.exports=w},6397:(E,L,u)=>{var d=u(5317),D=u(6517),w=u(4401),C=Math.max;E.exports=function _(x,g,f){var v=null==x?0:x.length;if(!v)return-1;var m=null==f?0:w(f);return m<0&&(m=C(v+m,0)),d(x,D(g,3),m)}},2274:(E,L,u)=>{var d=u(686);E.exports=function D(w){return null!=w&&w.length?d(w,1):[]}},9851:(E,L,u)=>{var d=u(6837),D=u(3132),w=u(1481),C=u(1503);E.exports=function _(x,g){return(C(x)?d:D)(x,w(g))}},1176:(E,L,u)=>{var d=u(755),D=u(1481),w=u(6555);E.exports=function C(_,x){return null==_?_:d(_,D(x),w)}},8817:(E,L,u)=>{var d=u(5456);E.exports=function D(w,C,_){var x=null==w?void 0:d(w,C);return void 0===x?_:x}},4842:(E,L,u)=>{var d=u(4781),D=u(7283);E.exports=function w(C,_){return null!=C&&D(C,_,d)}},8492:(E,L,u)=>{var d=u(9989),D=u(7283);E.exports=function w(C,_){return null!=C&&D(C,_,d)}},2608:E=>{E.exports=function L(u){return u}},7151:(E,L,u)=>{var d=u(186),D=u(2671),w=Object.prototype,C=w.hasOwnProperty,_=w.propertyIsEnumerable,x=d(function(){return arguments}())?d:function(g){return D(g)&&C.call(g,"callee")&&!_.call(g,"callee")};E.exports=x},1503:E=>{E.exports=Array.isArray},6507:(E,L,u)=>{var d=u(5946),D=u(6231);E.exports=function w(C){return null!=C&&D(C.length)&&!d(C)}},1330:(E,L,u)=>{var d=u(6507),D=u(2671);E.exports=function w(C){return D(C)&&d(C)}},891:(E,L,u)=>{E=u.nmd(E);var d=u(2119),D=u(3580),w=L&&!L.nodeType&&L,C=w&&E&&!E.nodeType&&E,x=C&&C.exports===w?d.Buffer:void 0;E.exports=(x?x.isBuffer:void 0)||D},1973:(E,L,u)=>{var d=u(1172),D=u(8794),w=u(7151),C=u(1503),_=u(6507),x=u(891),g=u(5488),f=u(8159),y=Object.prototype.hasOwnProperty;E.exports=function S(k){if(null==k)return!0;if(_(k)&&(C(k)||"string"==typeof k||"function"==typeof k.splice||x(k)||f(k)||w(k)))return!k.length;var O=D(k);if("[object Map]"==O||"[object Set]"==O)return!k.size;if(g(k))return!d(k).length;for(var F in k)if(y.call(k,F))return!1;return!0}},5946:(E,L,u)=>{var d=u(3337),D=u(5940);E.exports=function g(f){if(!D(f))return!1;var v=d(f);return"[object Function]"==v||"[object GeneratorFunction]"==v||"[object AsyncFunction]"==v||"[object Proxy]"==v}},6231:E=>{E.exports=function u(d){return"number"==typeof d&&d>-1&&d%1==0&&d<=9007199254740991}},3222:(E,L,u)=>{var d=u(7021),D=u(5647),w=u(3597),C=w&&w.isMap,_=C?D(C):d;E.exports=_},5940:E=>{E.exports=function L(u){var d=typeof u;return null!=u&&("object"==d||"function"==d)}},2671:E=>{E.exports=function L(u){return null!=u&&"object"==typeof u}},7614:(E,L,u)=>{var d=u(3337),D=u(9519),w=u(2671),g=Function.prototype.toString,f=Object.prototype.hasOwnProperty,v=g.call(Object);E.exports=function m(p){if(!w(p)||"[object Object]"!=d(p))return!1;var y=D(p);if(null===y)return!0;var S=f.call(y,"constructor")&&y.constructor;return"function"==typeof S&&S instanceof S&&g.call(S)==v}},799:(E,L,u)=>{var d=u(771),D=u(5647),w=u(3597),C=w&&w.isSet,_=C?D(C):d;E.exports=_},248:(E,L,u)=>{var d=u(3337),D=u(1503),w=u(2671);E.exports=function _(x){return"string"==typeof x||!D(x)&&w(x)&&"[object String]"==d(x)}},4129:(E,L,u)=>{var d=u(3337),D=u(2671);E.exports=function C(_){return"symbol"==typeof _||D(_)&&"[object Symbol]"==d(_)}},8159:(E,L,u)=>{var d=u(1083),D=u(5647),w=u(3597),C=w&&w.isTypedArray,_=C?D(C):d;E.exports=_},4235:E=>{E.exports=function L(u){return void 0===u}},118:(E,L,u)=>{var d=u(2271),D=u(1172),w=u(6507);E.exports=function C(_){return w(_)?d(_):D(_)}},6555:(E,L,u)=>{var d=u(2271),D=u(2809),w=u(6507);E.exports=function C(_){return w(_)?d(_,!0):D(_)}},5809:E=>{E.exports=function L(u){var d=null==u?0:u.length;return d?u[d-1]:void 0}},9984:(E,L,u)=>{var d=u(4633),D=u(6517),w=u(2046),C=u(1503);E.exports=function _(x,g){return(C(x)?d:w)(x,D(g,3))}},203:(E,L,u)=>{var d=u(5683),D=u(5184),w=u(6517);E.exports=function C(_,x){var g={};return x=w(x,3),D(_,function(f,v,m){d(g,v,x(f,v,m))}),g}},8176:(E,L,u)=>{var d=u(7308),D=u(1100),w=u(2608);E.exports=function C(_){return _&&_.length?d(_,w,D):void 0}},535:(E,L,u)=>{var d=u(9850);function w(C,_){if("function"!=typeof C||null!=_&&"function"!=typeof _)throw new TypeError("Expected a function");var x=function(){var g=arguments,f=_?_.apply(this,g):g[0],v=x.cache;if(v.has(f))return v.get(f);var m=C.apply(this,g);return x.cache=v.set(f,m)||v,m};return x.cache=new(w.Cache||d),x}w.Cache=d,E.exports=w},567:(E,L,u)=>{var d=u(3842),w=u(4944)(function(C,_,x){d(C,_,x)});E.exports=w},9439:(E,L,u)=>{var d=u(7308),D=u(9069),w=u(2608);E.exports=function C(_){return _&&_.length?d(_,w,D):void 0}},9525:(E,L,u)=>{var d=u(7308),D=u(6517),w=u(9069);E.exports=function C(_,x){return _&&_.length?d(_,D(x,2),w):void 0}},2552:E=>{E.exports=function L(){}},1710:(E,L,u)=>{var d=u(2119);E.exports=function(){return d.Date.now()}},6372:(E,L,u)=>{var d=u(3021),w=u(3975)(function(C,_){return null==C?{}:d(C,_)});E.exports=w},7495:(E,L,u)=>{var d=u(1847),D=u(9222),w=u(5352),C=u(8533);E.exports=function _(x){return w(x)?d(C(x)):D(x)}},361:(E,L,u)=>{var D=u(7509)();E.exports=D},1337:(E,L,u)=>{var d=u(8745),D=u(3132),w=u(6517),C=u(3570),_=u(1503);E.exports=function x(g,f,v){var m=_(g)?d:C,p=arguments.length<3;return m(g,w(f,4),v,p,D)}},5637:(E,L,u)=>{var d=u(1172),D=u(8794),w=u(6507),C=u(248),_=u(2315);E.exports=function f(v){if(null==v)return 0;if(w(v))return C(v)?_(v):v.length;var m=D(v);return"[object Map]"==m||"[object Set]"==m?v.size:d(v).length}},2906:(E,L,u)=>{var d=u(686),D=u(6119),w=u(3269),C=u(3342),_=w(function(x,g){if(null==x)return[];var f=g.length;return f>1&&C(x,g[0],g[1])?g=[]:f>2&&C(g[0],g[1],g[2])&&(g=[g[0]]),D(x,d(g,1),[])});E.exports=_},9975:E=>{E.exports=function L(){return[]}},3580:E=>{E.exports=function L(){return!1}},2232:(E,L,u)=>{var d=u(1467),D=1/0;E.exports=function C(_){return _?(_=d(_))===D||_===-D?17976931348623157e292*(_<0?-1:1):_==_?_:0:0===_?_:0}},4401:(E,L,u)=>{var d=u(2232);E.exports=function D(w){var C=d(w),_=C%1;return C==C?_?C-_:C:0}},1467:(E,L,u)=>{var d=u(3348),D=u(5940),w=u(4129),_=/^[-+]0x[0-9a-f]+$/i,x=/^0b[01]+$/i,g=/^0o[0-7]+$/i,f=parseInt;E.exports=function v(m){if("number"==typeof m)return m;if(w(m))return NaN;if(D(m)){var p="function"==typeof m.valueOf?m.valueOf():m;m=D(p)?p+"":p}if("string"!=typeof m)return 0===m?m:+m;m=d(m);var y=x.test(m);return y||g.test(m)?f(m.slice(2),y?2:8):_.test(m)?NaN:+m}},8067:(E,L,u)=>{var d=u(1989),D=u(6555);E.exports=function w(C){return d(C,D(C))}},3943:(E,L,u)=>{var d=u(3935);E.exports=function D(w){return null==w?"":d(w)}},9416:(E,L,u)=>{var d=u(6837),D=u(8858),w=u(5184),C=u(6517),_=u(9519),x=u(1503),g=u(891),f=u(5946),v=u(5940),m=u(8159);E.exports=function p(y,S,k){var O=x(y),F=O||g(y)||m(y);if(S=C(S,4),null==k){var R=y&&y.constructor;k=F?O?new R:[]:v(y)&&f(R)?D(_(y)):{}}return(F?d:w)(y,function(z,H,X){return S(k,z,H,X)}),k}},8921:(E,L,u)=>{var d=u(686),D=u(3269),w=u(707),C=u(1330),_=D(function(x){return w(d(x,1,C,!0))});E.exports=_},1541:(E,L,u)=>{var d=u(3943),D=0;E.exports=function w(C){var _=++D;return d(C)+_}},377:(E,L,u)=>{var d=u(9179),D=u(118);E.exports=function w(C){return null==C?[]:d(C,D(C))}},1617:(E,L,u)=>{var d=u(9719),D=u(8645);E.exports=function w(C,_){return D(C||[],_||[],d)}},7824:(E,L,u)=>{"use strict";function d(D){for(var w in D)L.hasOwnProperty(w)||(L[w]=D[w])}Object.defineProperty(L,"__esModule",{value:!0}),d(u(5085)),d(u(6243)),d(u(1786)),d(u(225)),d(u(6767)),d(u(345)),d(u(5675)),d(u(6461)),d(u(8802)),d(u(3900)),d(u(8866)),d(u(4655)),d(u(4068)),d(u(3858)),d(u(8237)),d(u(3292))},5085:function(E,L,u){"use strict";var _,d=this&&this.__extends||(_=function(x,g){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var m in v)v.hasOwnProperty(m)&&(f[m]=v[m])})(x,g)},function(x,g){function f(){this.constructor=x}_(x,g),x.prototype=null===g?Object.create(g):(f.prototype=g.prototype,new f)});Object.defineProperty(L,"__esModule",{value:!0});var D=u(5675),w=function(_){function x(g){var f=_.call(this)||this,m=g;return m.trigger&&(f.trigger=m.trigger),m.kick&&(f.kick=m.kick),m.drag&&(f.drag=m.drag),m.on&&(f.on=m.on),f.dragstart=f.dragStart=D.Layout.dragStart,f.dragend=f.dragEnd=D.Layout.dragEnd,f}return d(x,_),x.prototype.trigger=function(g){},x.prototype.kick=function(){},x.prototype.drag=function(){},x.prototype.on=function(g,f){return this},x}(D.Layout);L.LayoutAdaptor=w,L.adaptor=function C(_){return new w(_)}},3292:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var d=u(5675),D=u(6767);L.gridify=function w(x,g,f,v){x.cola.start(0,0,0,10,!1);var m=function C(x,g,f,v){x.forEach(function(p){p.routerNode={name:p.name,bounds:p.bounds.inflate(-f)}}),g.forEach(function(p){p.routerNode={bounds:p.bounds.inflate(-v),children:(void 0!==p.groups?p.groups.map(function(y){return x.length+y.id}):[]).concat(void 0!==p.leaves?p.leaves.map(function(y){return y.index}):[])}});var m=x.concat(g).map(function(p,y){return p.routerNode.id=y,p.routerNode});return new D.GridRouter(m,{getChildren:function(p){return p.children},getBounds:function(p){return p.bounds}},f-v)}(x.cola.nodes(),x.cola.groups(),f,v);return m.routeEdges(x.powerGraph.powerEdges,g,function(p){return p.source.routerNode.id},function(p){return p.target.routerNode.id})},L.powerGraphGridLayout=function _(x,g,f){var v;x.nodes.forEach(function(S,k){return S.index=k}),(new d.Layout).avoidOverlaps(!1).nodes(x.nodes).links(x.links).powerGraphGroups(function(S){(v=S).groups.forEach(function(k){return k.padding=f})});var m=x.nodes.length,p=[],y=x.nodes.slice(0);return y.forEach(function(S,k){return S.index=k}),v.groups.forEach(function(S){var k=S.index=S.id+m;y.push(S),void 0!==S.leaves&&S.leaves.forEach(function(O){return p.push({source:k,target:O.index})}),void 0!==S.groups&&S.groups.forEach(function(O){return p.push({source:k,target:O.id+m})})}),v.powerEdges.forEach(function(S){p.push({source:S.source.index,target:S.target.index})}),(new d.Layout).size(g).nodes(y).links(p).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new d.Layout).convergenceThreshold(.001).size(g).avoidOverlaps(!0).nodes(x.nodes).links(x.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(S){(v=S).groups.forEach(function(k){k.padding=f})}).start(50,0,100,0,!1),powerGraph:v}}},6243:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var d=u(9346),D=u(2487);L.d3adaptor=function w(_){return!_||function C(_){return _.version&&null!==_.version.match(/^3\./)}(_)?new d.D3StyleLayoutAdaptor:new D.D3StyleLayoutAdaptor(_)}},9346:function(E,L,u){"use strict";var _,d=this&&this.__extends||(_=function(x,g){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var m in v)v.hasOwnProperty(m)&&(f[m]=v[m])})(x,g)},function(x,g){function f(){this.constructor=x}_(x,g),x.prototype=null===g?Object.create(g):(f.prototype=g.prototype,new f)});Object.defineProperty(L,"__esModule",{value:!0});var D=u(5675),w=function(_){function x(){var g=_.call(this)||this;g.event=d3.dispatch(D.EventType[D.EventType.start],D.EventType[D.EventType.tick],D.EventType[D.EventType.end]);var f=g;return g.drag=function(){if(!m)var m=d3.behavior.drag().origin(D.Layout.dragOrigin).on("dragstart.d3adaptor",D.Layout.dragStart).on("drag.d3adaptor",function(p){D.Layout.drag(p,d3.event),f.resume()}).on("dragend.d3adaptor",D.Layout.dragEnd);if(!arguments.length)return m;this.call(m)},g}return d(x,_),x.prototype.trigger=function(g){var f={type:D.EventType[g.type],alpha:g.alpha,stress:g.stress};this.event[f.type](f)},x.prototype.kick=function(){var g=this;d3.timer(function(){return _.prototype.tick.call(g)})},x.prototype.on=function(g,f){return this.event.on("string"==typeof g?g:D.EventType[g],f),this},x}(D.Layout);L.D3StyleLayoutAdaptor=w,L.d3adaptor=function C(){return new w}},2487:function(E,L,u){"use strict";var C,d=this&&this.__extends||(C=function(_,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,f){g.__proto__=f}||function(g,f){for(var v in f)f.hasOwnProperty(v)&&(g[v]=f[v])})(_,x)},function(_,x){function g(){this.constructor=_}C(_,x),_.prototype=null===x?Object.create(x):(g.prototype=x.prototype,new g)});Object.defineProperty(L,"__esModule",{value:!0});var D=u(5675),w=function(C){function _(x){var g=C.call(this)||this;g.d3Context=x,g.event=x.dispatch(D.EventType[D.EventType.start],D.EventType[D.EventType.tick],D.EventType[D.EventType.end]);var f=g;return g.drag=function(){if(!m)var m=x.drag().subject(D.Layout.dragOrigin).on("start.d3adaptor",D.Layout.dragStart).on("drag.d3adaptor",function(p){D.Layout.drag(p,x.event),f.resume()}).on("end.d3adaptor",D.Layout.dragEnd);if(!arguments.length)return m;arguments[0].call(m)},g}return d(_,C),_.prototype.trigger=function(x){var g={type:D.EventType[x.type],alpha:x.alpha,stress:x.stress};this.event.call(g.type,g)},_.prototype.kick=function(){var x=this,g=this.d3Context.timer(function(){return C.prototype.tick.call(x)&&g.stop()})},_.prototype.on=function(x,g){return this.event.on("string"==typeof x?x:D.EventType[x],g),this},_}(D.Layout);L.D3StyleLayoutAdaptor=w},1786:(E,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var u=function(){function w(){this.locks={}}return w.prototype.add=function(C,_){this.locks[C]=_},w.prototype.clear=function(){this.locks={}},w.prototype.isEmpty=function(){for(var C in this.locks)return!1;return!0},w.prototype.apply=function(C){for(var _ in this.locks)C(Number(_),this.locks[_])},w}();L.Locks=u;var d=function(){function w(C,_,x){void 0===x&&(x=null),this.D=_,this.G=x,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new D,this.project=null,this.x=C,this.k=C.length;var g=this.n=C[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new u,this.minD=Number.MAX_VALUE;for(var v,f=g;f--;)for(v=g;--v>f;){var m=_[f][v];m>0&&m<this.minD&&(this.minD=m)}for(this.minD===Number.MAX_VALUE&&(this.minD=1),f=this.k;f--;){for(this.g[f]=new Array(g),this.H[f]=new Array(g),v=g;v--;)this.H[f][v]=new Array(g);this.Hd[f]=new Array(g),this.a[f]=new Array(g),this.b[f]=new Array(g),this.c[f]=new Array(g),this.d[f]=new Array(g),this.e[f]=new Array(g),this.ia[f]=new Array(g),this.ib[f]=new Array(g),this.xtmp[f]=new Array(g)}}return w.createSquareMatrix=function(C,_){for(var x=new Array(C),g=0;g<C;++g){x[g]=new Array(C);for(var f=0;f<C;++f)x[g][f]=_(g,f)}return x},w.prototype.offsetDir=function(){for(var C=this,_=new Array(this.k),x=0,g=0;g<this.k;++g){var f=_[g]=this.random.getNextBetween(.01,1)-.5;x+=f*f}return x=Math.sqrt(x),_.map(function(v){return v*(C.minD/x)})},w.prototype.computeDerivatives=function(C){var _=this,x=this.n;if(!(x<1)){for(var g,f=new Array(this.k),v=new Array(this.k),m=new Array(this.k),p=0,y=0;y<x;++y){for(g=0;g<this.k;++g)m[g]=this.g[g][y]=0;for(var S=0;S<x;++S)if(y!==S){for(var k=x;k--;){var O=0;for(g=0;g<this.k;++g){var F=f[g]=C[g][y]-C[g][S];O+=v[g]=F*F}if(O>1e-9)break;var R=this.offsetDir();for(g=0;g<this.k;++g)C[g][S]+=R[g]}var z=Math.sqrt(O),H=this.D[y][S],X=null!=this.G?this.G[y][S]:1;if(X>1&&z>H||!isFinite(H)){for(g=0;g<this.k;++g)this.H[g][y][S]=0;continue}X>1&&(X=1);var se=H*H,te=2*X*(z-H)/(se*z),ie=z*z*z,le=2*-X/(se*ie);for(isFinite(te)||console.log(te),g=0;g<this.k;++g)this.g[g][y]+=f[g]*te,m[g]-=this.H[g][y][S]=le*(ie+H*(v[g]-O)+z*O)}for(g=0;g<this.k;++g)p=Math.max(p,this.H[g][y][y]=m[g])}var N=this.snapGridSize/2,V=this.snapGridSize,$=this.snapStrength/(N*N),Y=this.numGridSnapNodes;for(y=0;y<Y;++y)for(g=0;g<this.k;++g){var oe=this.x[g][y],de=oe/V,ee=de%1,J=de-ee;-N<(F=Math.abs(ee)<=.5?oe-J*V:oe>0?oe-(J+1)*V:oe-(J-1)*V)&&F<=N&&(this.scaleSnapByMaxH?(this.g[g][y]+=p*$*F,this.H[g][y][y]+=p*$):(this.g[g][y]+=$*F,this.H[g][y][y]+=$))}this.locks.isEmpty()||this.locks.apply(function(pe,be){for(g=0;g<_.k;++g)_.H[g][pe][pe]+=p,_.g[g][pe]-=p*(be[g]-C[g][pe])})}},w.dotProd=function(C,_){for(var x=0,g=C.length;g--;)x+=C[g]*_[g];return x},w.rightMultiply=function(C,_,x){for(var g=C.length;g--;)x[g]=w.dotProd(C[g],_)},w.prototype.computeStepSize=function(C){for(var _=0,x=0,g=0;g<this.k;++g)_+=w.dotProd(this.g[g],C[g]),w.rightMultiply(this.H[g],C[g],this.Hd[g]),x+=w.dotProd(C[g],this.Hd[g]);return 0!==x&&isFinite(x)?1*_/x:0},w.prototype.reduceStress=function(){this.computeDerivatives(this.x);for(var C=this.computeStepSize(this.g),_=0;_<this.k;++_)this.takeDescentStep(this.x[_],this.g[_],C);return this.computeStress()},w.copy=function(C,_){for(var x=C.length,g=_[0].length,f=0;f<x;++f)for(var v=0;v<g;++v)_[f][v]=C[f][v]},w.prototype.stepAndProject=function(C,_,x,g){w.copy(C,_),this.takeDescentStep(_[0],x[0],g),this.project&&this.project[0](C[0],C[1],_[0]),this.takeDescentStep(_[1],x[1],g),this.project&&this.project[1](_[0],C[1],_[1]);for(var f=2;f<this.k;f++)this.takeDescentStep(_[f],x[f],g)},w.mApply=function(C,_,x){for(var g=C;g-- >0;)for(var f=_;f-- >0;)x(g,f)},w.prototype.matrixApply=function(C){w.mApply(this.k,this.n,C)},w.prototype.computeNextPosition=function(C,_){var x=this;this.computeDerivatives(C);var g=this.computeStepSize(this.g);if(this.stepAndProject(C,_,this.g,g),this.project){this.matrixApply(function(v,m){return x.e[v][m]=C[v][m]-_[v][m]});var f=this.computeStepSize(this.e);f=Math.max(.2,Math.min(f,1)),this.stepAndProject(C,_,this.e,f)}},w.prototype.run=function(C){for(var _=Number.MAX_VALUE,x=!1;!x&&C-- >0;){var g=this.rungeKutta();x=Math.abs(_/g-1)<this.threshold,_=g}return _},w.prototype.rungeKutta=function(){var C=this;this.computeNextPosition(this.x,this.a),w.mid(this.x,this.a,this.ia),this.computeNextPosition(this.ia,this.b),w.mid(this.x,this.b,this.ib),this.computeNextPosition(this.ib,this.c),this.computeNextPosition(this.c,this.d);var _=0;return this.matrixApply(function(x,g){var f=(C.a[x][g]+2*C.b[x][g]+2*C.c[x][g]+C.d[x][g])/6,v=C.x[x][g]-f;_+=v*v,C.x[x][g]=f}),_},w.mid=function(C,_,x){w.mApply(C.length,C[0].length,function(g,f){return x[g][f]=C[g][f]+(_[g][f]-C[g][f])/2})},w.prototype.takeDescentStep=function(C,_,x){for(var g=0;g<this.n;++g)C[g]=C[g]-x*_[g]},w.prototype.computeStress=function(){for(var C=0,_=0,x=this.n-1;_<x;++_)for(var g=_+1,f=this.n;g<f;++g){for(var v=0,m=0;m<this.k;++m){var p=this.x[m][_]-this.x[m][g];v+=p*p}v=Math.sqrt(v);var y=this.D[_][g];if(isFinite(y)){var S=y-v;C+=S*S/(y*y)}}return C},w.zeroDistance=1e-10,w}();L.Descent=d;var D=function(){function w(C){void 0===C&&(C=1),this.seed=C,this.a=214013,this.c=2531011,this.m=2147483648,this.range=32767}return w.prototype.getNext=function(){return this.seed=(this.seed*this.a+this.c)%this.m,(this.seed>>16)/this.range},w.prototype.getNextBetween=function(C,_){return C+this.getNext()*(_-C)},w}();L.PseudoRandom=D},225:function(E,L,u){"use strict";var ee,d=this&&this.__extends||(ee=function(J,ce){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,be){pe.__proto__=be}||function(pe,be){for(var fe in be)be.hasOwnProperty(fe)&&(pe[fe]=be[fe])})(J,ce)},function(J,ce){function pe(){this.constructor=J}ee(J,ce),J.prototype=null===ce?Object.create(ce):(pe.prototype=ce.prototype,new pe)});Object.defineProperty(L,"__esModule",{value:!0});var D=u(4068),w=function ee(){};L.Point=w;var C=function ee(J,ce,pe,be){this.x1=J,this.y1=ce,this.x2=pe,this.y2=be};L.LineSegment=C;var _=function(ee){function J(){return null!==ee&&ee.apply(this,arguments)||this}return d(J,ee),J}(w);function x(ee,J,ce){return(J.x-ee.x)*(ce.y-ee.y)-(ce.x-ee.x)*(J.y-ee.y)}function g(ee,J,ce){return x(ee,J,ce)>0}function f(ee,J,ce){return x(ee,J,ce)<0}function S(ee,J){var ce=J.slice(0);return ce.push(J[0]),{rtan:k(ee,ce),ltan:O(ee,ce)}}function k(ee,J){var pe,be,fe,Pe,ce=J.length-1;if(f(ee,J[1],J[0])&&!g(ee,J[ce-1],J[0]))return 0;for(pe=0,be=ce;;){if(be-pe==1)return g(ee,J[pe],J[be])?pe:be;if((Pe=f(ee,J[(fe=Math.floor((pe+be)/2))+1],J[fe]))&&!g(ee,J[fe-1],J[fe]))return fe;g(ee,J[pe+1],J[pe])?Pe||g(ee,J[pe],J[fe])?be=fe:pe=fe:Pe&&f(ee,J[pe],J[fe])?be=fe:pe=fe}}function O(ee,J){var pe,be,fe,Pe,ce=J.length-1;if(g(ee,J[ce-1],J[0])&&!f(ee,J[1],J[0]))return 0;for(pe=0,be=ce;;){if(be-pe==1)return f(ee,J[pe],J[be])?pe:be;if(Pe=f(ee,J[(fe=Math.floor((pe+be)/2))+1],J[fe]),g(ee,J[fe-1],J[fe])&&!Pe)return fe;f(ee,J[pe+1],J[pe])?Pe?f(ee,J[pe],J[fe])?be=fe:pe=fe:be=fe:Pe?pe=fe:g(ee,J[pe],J[fe])?be=fe:pe=fe}}function F(ee,J,ce,pe,be,fe){var De,Pe;Pe=pe(ee[De=ce(J[0],ee)],J);for(var st=!1;!st;){for(st=!0;De===ee.length-1&&(De=0),!be(J[Pe],ee[De],ee[De+1]);)++De;for(;0===Pe&&(Pe=J.length-1),!fe(ee[De],J[Pe],J[Pe-1]);)--Pe,st=!1}return{t1:De,t2:Pe}}function z(ee,J){return F(ee,J,k,O,g,f)}L.PolyPoint=_,L.isLeft=x,L.ConvexHull=function v(ee){var pe,J=ee.slice(0).sort(function(Fe,Ke){return Fe.x!==Ke.x?Ke.x-Fe.x:Ke.y-Fe.y}),ce=ee.length,fe=J[0].x;for(pe=1;pe<ce&&J[pe].x===fe;++pe);var De=pe-1,Pe=[];if(Pe.push(J[0]),De===ce-1)J[De].y!==J[0].y&&Pe.push(J[De]);else{var st,he=ce-1,xe=J[ce-1].x;for(pe=ce-2;pe>=0&&J[pe].x===xe;pe--);for(st=pe+1,pe=De;++pe<=st;)if(!(x(J[0],J[st],J[pe])>=0&&pe<st)){for(;Pe.length>1&&!(x(Pe[Pe.length-2],Pe[Pe.length-1],J[pe])>0);)Pe.length-=1;0!=pe&&Pe.push(J[pe])}he!=st&&Pe.push(J[he]);var Te=Pe.length;for(pe=st;--pe>=De;)if(!(x(J[he],J[De],J[pe])>=0&&pe>De)){for(;Pe.length>Te&&!(x(Pe[Pe.length-2],Pe[Pe.length-1],J[pe])>0);)Pe.length-=1;0!=pe&&Pe.push(J[pe])}}return Pe},L.clockwiseRadialSweep=function m(ee,J,ce){J.slice(0).sort(function(pe,be){return Math.atan2(pe.y-ee.y,pe.x-ee.x)-Math.atan2(be.y-ee.y,be.x-ee.x)}).forEach(ce)},L.tangent_PolyPolyC=F,L.LRtangent_PolyPolyC=function R(ee,J){var ce=z(J,ee);return{t1:ce.t2,t2:ce.t1}},L.RLtangent_PolyPolyC=z,L.LLtangent_PolyPolyC=function H(ee,J){return F(ee,J,O,O,f,f)},L.RRtangent_PolyPolyC=function X(ee,J){return F(ee,J,k,k,g,g)};var se=function ee(J,ce){this.t1=J,this.t2=ce};L.BiTangent=se;var te=function ee(){};L.BiTangents=te;var ie=function(ee){function J(){return null!==ee&&ee.apply(this,arguments)||this}return d(J,ee),J}(w);L.TVGPoint=ie;var le=function ee(J,ce,pe,be){this.id=J,this.polyid=ce,this.polyvertid=pe,this.p=be,be.vv=this};L.VisibilityVertex=le;var N=function(){function ee(J,ce){this.source=J,this.target=ce}return ee.prototype.length=function(){var J=this.source.p.x-this.target.p.x,ce=this.source.p.y-this.target.p.y;return Math.sqrt(J*J+ce*ce)},ee}();L.VisibilityEdge=N;var V=function(){function ee(J,ce){if(this.P=J,this.V=[],this.E=[],ce)this.V=ce.V.slice(0),this.E=ce.E.slice(0);else{for(var pe=J.length,be=0;be<pe;be++){for(var fe=J[be],De=0;De<fe.length;++De){var st=new le(this.V.length,be,De,fe[De]);this.V.push(st),De>0&&this.E.push(new N(fe[De-1].vv,st))}fe.length>1&&this.E.push(new N(fe[0].vv,fe[fe.length-1].vv))}for(be=0;be<pe-1;be++){var he=J[be];for(De=be+1;De<pe;De++){var xe=J[De],Te=$(he,xe);for(var Fe in Te){var Ke=Te[Fe];this.addEdgeIfVisible(he[Ke.t1],xe[Ke.t2],be,De)}}}}}return ee.prototype.addEdgeIfVisible=function(J,ce,pe,be){this.intersectsPolys(new C(J.x,J.y,ce.x,ce.y),pe,be)||this.E.push(new N(J.vv,ce.vv))},ee.prototype.addPoint=function(J,ce){var pe=this.P.length;this.V.push(new le(this.V.length,pe,0,J));for(var be=0;be<pe;++be)if(be!==ce){var fe=this.P[be],De=S(J,fe);this.addEdgeIfVisible(J,fe[De.ltan],ce,be),this.addEdgeIfVisible(J,fe[De.rtan],ce,be)}return J.vv},ee.prototype.intersectsPolys=function(J,ce,pe){for(var be=0,fe=this.P.length;be<fe;++be)if(be!=ce&&be!=pe&&U(J,this.P[be]).length>0)return!0;return!1},ee}();function U(ee,J){for(var ce=[],pe=1,be=J.length;pe<be;++pe){var fe=D.Rectangle.lineIntersection(ee.x1,ee.y1,ee.x2,ee.y2,J[pe-1].x,J[pe-1].y,J[pe].x,J[pe].y);fe&&ce.push(fe)}return ce}function $(ee,J){for(var ce=ee.length-1,pe=J.length-1,be=new te,fe=0;fe<ce;++fe)for(var De=0;De<pe;++De){var Pe=ee[0==fe?ce-1:fe-1],st=ee[fe],he=ee[fe+1],xe=J[0==De?pe-1:De-1],Te=J[De],Fe=J[De+1],Ke=x(Pe,st,Te),Xe=x(st,xe,Te),ft=x(st,Te,Fe),Kt=x(xe,Te,st),Qi=x(Te,Pe,st),vn=x(Te,st,he);Ke>=0&&Xe>=0&&ft<0&&Kt>=0&&Qi>=0&&vn<0?be.ll=new se(fe,De):Ke<=0&&Xe<=0&&ft>0&&Kt<=0&&Qi<=0&&vn>0?be.rr=new se(fe,De):Ke<=0&&Xe>0&&ft<=0&&Kt>=0&&Qi<0&&vn>=0?be.rl=new se(fe,De):Ke>=0&&Xe<0&&ft>=0&&Kt<=0&&Qi>0&&vn<=0&&(be.lr=new se(fe,De))}return be}function oe(ee,J){return!ee.every(function(ce){return!function Y(ee,J){for(var ce=1,pe=J.length;ce<pe;++ce)if(f(J[ce-1],J[ce],ee))return!1;return!0}(ce,J)})}L.TangentVisibilityGraph=V,L.tangents=$,L.polysOverlap=function de(ee,J){if(oe(ee,J)||oe(J,ee))return!0;for(var ce=1,pe=ee.length;ce<pe;++ce){var be=ee[ce],fe=ee[ce-1];if(U(new C(fe.x,fe.y,be.x,be.y),J).length>0)return!0}return!1}},6767:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var d=u(4068),D=u(8237),w=u(3858),C=function f(v,m,p){this.id=v,this.rect=m,this.children=p,this.leaf=void 0===p||0===p.length};L.NodeWrapper=C;var _=function f(v,m,p,y,S){void 0===y&&(y=null),void 0===S&&(S=null),this.id=v,this.x=m,this.y=p,this.node=y,this.line=S};L.Vert=_;var x=function(){function f(v,m){this.s=v,this.t=m;var p=f.findMatch(v,m),y=m.slice(0).reverse(),S=f.findMatch(v,y);p.length>=S.length?(this.length=p.length,this.si=p.si,this.ti=p.ti,this.reversed=!1):(this.length=S.length,this.si=S.si,this.ti=m.length-S.ti-S.length,this.reversed=!0)}return f.findMatch=function(v,m){for(var p=v.length,y=m.length,S={length:0,si:-1,ti:-1},k=new Array(p),O=0;O<p;O++){k[O]=new Array(y);for(var F=0;F<y;F++)if(v[O]===m[F]){var R=k[O][F]=0===O||0===F?1:k[O-1][F-1]+1;R>S.length&&(S.length=R,S.si=O-R+1,S.ti=F-R+1)}else k[O][F]=0}return S},f.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},f}();L.LongestCommonSubsequence=x;var g=function(){function f(v,m,p){var y=this;void 0===p&&(p=12),this.originalnodes=v,this.groupPadding=p,this.leaves=null,this.nodes=v.map(function(ie,le){return new C(le,m.getBounds(ie),m.getChildren(ie))}),this.leaves=this.nodes.filter(function(ie){return ie.leaf}),this.groups=this.nodes.filter(function(ie){return!ie.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(ie){return ie.children.forEach(function(le){return y.nodes[le].parent=ie})}),this.root={children:[]},this.nodes.forEach(function(ie){void 0===ie.parent&&(ie.parent=y.root,y.root.children.push(ie.id)),ie.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(ie,le){return y.getDepth(ie)-y.getDepth(le)}),this.backToFront.slice(0).reverse().filter(function(ie){return!ie.leaf}).forEach(function(ie){var le=d.Rectangle.empty();ie.children.forEach(function(N){return le=le.union(y.nodes[N].rect)}),ie.rect=le.inflate(y.groupPadding)});var k=this.midPoints(this.cols.map(function(ie){return ie.pos})),O=this.midPoints(this.rows.map(function(ie){return ie.pos})),F=k[0],R=k[k.length-1],z=O[0],H=O[O.length-1],X=this.rows.map(function(ie){return{x1:F,x2:R,y1:ie.pos,y2:ie.pos}}).concat(O.map(function(ie){return{x1:F,x2:R,y1:ie,y2:ie}})),se=this.cols.map(function(ie){return{x1:ie.pos,x2:ie.pos,y1:z,y2:H}}).concat(k.map(function(ie){return{x1:ie,x2:ie,y1:z,y2:H}})),te=X.concat(se);te.forEach(function(ie){return ie.verts=[]}),this.verts=[],this.edges=[],X.forEach(function(ie){return se.forEach(function(le){var N=new _(y.verts.length,le.x1,ie.y1);ie.verts.push(N),le.verts.push(N),y.verts.push(N);for(var V=y.backToFront.length;V-- >0;){var U=y.backToFront[V],$=U.rect,Y=Math.abs(N.x-$.cx()),oe=Math.abs(N.y-$.cy());if(Y<$.width()/2&&oe<$.height()/2){N.node=U;break}}})}),te.forEach(function(ie,le){y.nodes.forEach(function(oe,de){oe.rect.lineIntersections(ie.x1,ie.y1,ie.x2,ie.y2).forEach(function(ee,J){var ce=new _(y.verts.length,ee.x,ee.y,oe,ie);y.verts.push(ce),ie.verts.push(ce),oe.ports.push(ce)})});var N=Math.abs(ie.y1-ie.y2)<.1,V=function(oe,de){return N?de.x-oe.x:de.y-oe.y};ie.verts.sort(V);for(var U=1;U<ie.verts.length;U++){var $=ie.verts[U-1],Y=ie.verts[U];$.node&&$.node===Y.node&&$.node.leaf||y.edges.push({source:$.id,target:Y.id,length:Math.abs(V($,Y))})}})}return f.prototype.avg=function(v){return v.reduce(function(m,p){return m+p})/v.length},f.prototype.getGridLines=function(v){for(var m=[],p=this.leaves.slice(0,this.leaves.length);p.length>0;){var y=p.filter(function(k){return k.rect["overlap"+v.toUpperCase()](p[0].rect)}),S={nodes:y,pos:this.avg(y.map(function(k){return k.rect["c"+v]()}))};m.push(S),S.nodes.forEach(function(k){return p.splice(p.indexOf(k),1)})}return m.sort(function(k,O){return k.pos-O.pos}),m},f.prototype.getDepth=function(v){for(var m=0;v.parent!==this.root;)m++,v=v.parent;return m},f.prototype.midPoints=function(v){for(var m=v[1]-v[0],p=[v[0]-m/2],y=1;y<v.length;y++)p.push((v[y]+v[y-1])/2);return p.push(v[v.length-1]+m/2),p},f.prototype.findLineage=function(v){var m=[v];do{m.push(v=v.parent)}while(v!==this.root);return m.reverse()},f.prototype.findAncestorPathBetween=function(v,m){for(var p=this.findLineage(v),y=this.findLineage(m),S=0;p[S]===y[S];)S++;return{commonAncestor:p[S-1],lineages:p.slice(S).concat(y.slice(S))}},f.prototype.siblingObstacles=function(v,m){var p=this,y=this.findAncestorPathBetween(v,m),S={};y.lineages.forEach(function(O){return S[O.id]={}});var k=y.commonAncestor.children.filter(function(O){return!(O in S)});return y.lineages.filter(function(O){return O.parent!==y.commonAncestor}).forEach(function(O){return k=k.concat(O.parent.children.filter(function(F){return F!==O.id}))}),k.map(function(O){return p.nodes[O]})},f.getSegmentSets=function(v,m,p){for(var y=[],S=0;S<v.length;S++)for(var k=v[S],O=0;O<k.length;O++)(F=k[O]).edgeid=S,F.i=O,Math.abs(F[1][m]-F[0][m])<.1&&y.push(F);y.sort(function(se,te){return se[0][m]-te[0][m]});for(var z=[],H=null,X=0;X<y.length;X++){var F=y[X];(!H||Math.abs(F[0][m]-H.pos)>.1)&&z.push(H={pos:F[0][m],segments:[]}),H.segments.push(F)}return z},f.nudgeSegs=function(v,m,p,y,S,k){var O=y.length;if(!(O<=1)){for(var F=y.map(function(U){return new D.Variable(U[0][v])}),R=[],z=0;z<O;z++)for(var H=0;H<O;H++)if(z!==H){var X=y[z],te=X.edgeid,ie=y[H].edgeid,le=-1,N=-1;"x"==v?S(te,ie)&&(X[0][m]<X[1][m]?(le=H,N=z):(le=z,N=H)):S(te,ie)&&(X[0][m]<X[1][m]?(le=z,N=H):(le=H,N=z)),le>=0&&R.push(new D.Constraint(F[le],F[N],k))}new D.Solver(F,R).solve(),F.forEach(function(U,$){var Y=y[$],oe=U.position();Y[0][v]=Y[1][v]=oe;var de=p[Y.edgeid];Y.i>0&&(de[Y.i-1][1][v]=oe),Y.i<de.length-1&&(de[Y.i+1][0][v]=oe)})}},f.nudgeSegments=function(v,m,p,y,S){for(var k=f.getSegmentSets(v,m,p),O=0;O<k.length;O++){for(var F=k[O],R=[],z=0;z<F.segments.length;z++){var H=F.segments[z];R.push({type:0,s:H,pos:Math.min(H[0][p],H[1][p])}),R.push({type:1,s:H,pos:Math.max(H[0][p],H[1][p])})}R.sort(function(te,ie){return te.pos-ie.pos+te.type-ie.type});var X=[],se=0;R.forEach(function(te){0===te.type?(X.push(te.s),se++):se--,0==se&&(f.nudgeSegs(m,p,v,X,y,S),X=[])})}},f.prototype.routeEdges=function(v,m,p,y){var S=this,k=v.map(function(R){return S.route(p(R),y(R))}),O=f.orderEdges(k),F=k.map(function(R){return f.makeSegments(R)});return f.nudgeSegments(F,"x","y",O,m),f.nudgeSegments(F,"y","x",O,m),f.unreverseEdges(F,k),F},f.unreverseEdges=function(v,m){v.forEach(function(p,y){m[y].reversed&&(p.reverse(),p.forEach(function(k){k.reverse()}))})},f.angleBetween2Lines=function(v,m){var p=Math.atan2(v[0].y-v[1].y,v[0].x-v[1].x),y=Math.atan2(m[0].y-m[1].y,m[0].x-m[1].x),S=p-y;return(S>Math.PI||S<-Math.PI)&&(S=y-p),S},f.isLeft=function(v,m,p){return(m.x-v.x)*(p.y-v.y)-(m.y-v.y)*(p.x-v.x)<=0},f.getOrder=function(v){for(var m={},p=0;p<v.length;p++){var y=v[p];void 0===m[y.l]&&(m[y.l]={}),m[y.l][y.r]=!0}return function(S,k){return void 0!==m[S]&&m[S][k]}},f.orderEdges=function(v){for(var m=[],p=0;p<v.length-1;p++)for(var y=p+1;y<v.length;y++){var F,R,z,S=v[p],k=v[y],O=new x(S,k);if(0!==O.length){if(O.reversed&&(k.reverse(),k.reversed=!0,O=new x(S,k)),(O.si<=0||O.ti<=0)&&(O.si+O.length>=S.length||O.ti+O.length>=k.length)){m.push({l:p,r:y});continue}O.si+O.length>=S.length||O.ti+O.length>=k.length?(F=S[O.si+1],z=S[O.si-1],R=k[O.ti-1]):(F=S[O.si+O.length-2],R=S[O.si+O.length],z=k[O.ti+O.length]),f.isLeft(F,R,z)?m.push({l:y,r:p}):m.push({l:p,r:y})}}return f.getOrder(m)},f.makeSegments=function(v){function m(R){return{x:R.x,y:R.y}}for(var y=[],S=m(v[0]),k=1;k<v.length;k++){var O=m(v[k]),F=k<v.length-1?v[k+1]:null;(!F||(R=S,z=O,H=F,!(Math.abs((z.x-R.x)*(H.y-R.y)-(z.y-R.y)*(H.x-R.x))<.001)))&&(y.push([S,O]),S=O)}var R,z,H;return y},f.prototype.route=function(v,m){var p=this,y=this.nodes[v],S=this.nodes[m];this.obstacles=this.siblingObstacles(y,S);var k={};this.obstacles.forEach(function(N){return k[N.id]=N}),this.passableEdges=this.edges.filter(function(N){var V=p.verts[N.source],U=p.verts[N.target];return!(V.node&&V.node.id in k||U.node&&U.node.id in k)});for(var O=1;O<y.ports.length;O++)this.passableEdges.push({source:y.ports[0].id,target:y.ports[O].id,length:0});for(O=1;O<S.ports.length;O++)this.passableEdges.push({source:S.ports[0].id,target:S.ports[O].id,length:0});var le=new w.Calculator(this.verts.length,this.passableEdges,function(N){return N.source},function(N){return N.target},function(N){return N.length}).PathFromNodeToNodeWithPrevCost(y.ports[0].id,S.ports[0].id,function(N,V,U){var $=p.verts[N],Y=p.verts[V],oe=p.verts[U],de=Math.abs(oe.x-$.x),ee=Math.abs(oe.y-$.y);return $.node===y&&$.node===Y.node||Y.node===S&&Y.node===oe.node?0:de>1&&ee>1?1e3:0}).reverse().map(function(N){return p.verts[N]});return le.push(this.nodes[S.id].ports[0]),le.filter(function(N,V){return!(V<le.length-1&&le[V+1].node===y&&N.node===y||V>0&&N.node===S&&le[V-1].node===S)})},f.getRoutePath=function(v,m,p,y){var O,F,R,de,ee,S={routepath:"M "+v[0][0].x+" "+v[0][0].y+" ",arrowpath:""};if(v.length>1)for(var k=0;k<v.length;k++){var z=(F=(O=v[k])[1].x)-O[0].x,H=(R=O[1].y)-O[0].y;if(k<v.length-1){Math.abs(z)>0?F-=z/Math.abs(z)*m:R-=H/Math.abs(H)*m,S.routepath+="L "+F+" "+R+" ";var X=v[k+1],se=X[0].x,te=X[0].y;z=X[1].x-se,H=X[1].y-te;var V,U,N=f.angleBetween2Lines(O,X)<0?1:0;Math.abs(z)>0?(V=se+z/Math.abs(z)*m,U=te):(V=se,U=te+H/Math.abs(H)*m);var $=Math.abs(V-F),Y=Math.abs(U-R);S.routepath+="A "+$+" "+Y+" 0 0 "+N+" "+V+" "+U+" "}else{var oe=[F,R];Math.abs(z)>0?(de=[F-=z/Math.abs(z)*y,R+p],ee=[F,R-p]):(de=[F+p,R-=H/Math.abs(H)*y],ee=[F-p,R]),S.routepath+="L "+F+" "+R+" ",y>0&&(S.arrowpath="M "+oe[0]+" "+oe[1]+" L "+de[0]+" "+de[1]+" L "+ee[0]+" "+ee[1])}}else z=(F=(O=v[0])[1].x)-O[0].x,H=(R=O[1].y)-O[0].y,oe=[F,R],Math.abs(z)>0?(de=[F-=z/Math.abs(z)*y,R+p],ee=[F,R-p]):(de=[F+p,R-=H/Math.abs(H)*y],ee=[F-p,R]),S.routepath+="L "+F+" "+R+" ",y>0&&(S.arrowpath="M "+oe[0]+" "+oe[1]+" L "+de[0]+" "+de[1]+" L "+ee[0]+" "+ee[1]);return S},f}();L.GridRouter=g},345:(E,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var u_GOLDEN_SECTION=(1+Math.sqrt(5))/2;L.applyPacking=function d(w,C,_,k,S,f){void 0===S&&(S=1),void 0===f&&(f=!0);var p=C,y=_,O=(S=void 0!==S?S:1,k=void 0!==k?k:0,0),F=0,R=0,z=0,H=[];function ie(U,$){H=[],O=0,F=0,z=0;for(var Y=0;Y<U.length;Y++)le(U[Y],$);return Math.abs(function V(){return O/F}()-S)}function le(U,$){for(var Y=void 0,oe=0;oe<H.length;oe++)if(H[oe].space_left>=U.height&&H[oe].x+H[oe].width+U.width+10-$<=1e-4){Y=H[oe];break}H.push(U),void 0!==Y?(U.x=Y.x+Y.width+10,U.y=Y.bottom,U.space_left=U.height,U.bottom=U.y,Y.space_left-=U.height+10,Y.bottom+=U.height+10):(U.y=z,z+=U.height+10,U.x=0,U.bottom=U.y,U.space_left=U.height),U.y+U.height-F>-1e-4&&(F=U.y+U.height-0),U.x+U.width-O>-1e-4&&(O=U.x+U.width-0)}0!=w.length&&(function X(U){U.forEach(function(Y){!function $(Y){var oe=Number.MAX_VALUE,de=Number.MAX_VALUE,ee=0,J=0;Y.array.forEach(function(ce){var pe=void 0!==ce.width?ce.width:k,be=void 0!==ce.height?ce.height:k;pe/=2,be/=2,ee=Math.max(ce.x+pe,ee),oe=Math.min(ce.x-pe,oe),J=Math.max(ce.y+be,J),de=Math.min(ce.y-be,de)}),Y.width=ee-oe,Y.height=J-de}(Y)})}(w),function te(U,$){var Y=Number.POSITIVE_INFINITY,oe=0;U.sort(function(he,xe){return xe.height-he.height});for(var de=Pe=R=U.reduce(function(he,xe){return he.width<xe.width?he.width:xe.width}),ee=st=function N(U){var $=0;return U.forEach(function(Y){return $+=Y.width+10}),$}(U),J=0,ce=Number.MAX_VALUE,pe=Number.MAX_VALUE,be=-1,fe=Number.MAX_VALUE,De=Number.MAX_VALUE;fe>R||De>1e-4;){if(1!=be){var Pe=ee-(ee-de)/u_GOLDEN_SECTION;ce=ie(U,Pe)}if(0!=be){var st=de+(ee-de)/u_GOLDEN_SECTION;pe=ie(U,st)}if(fe=Math.abs(Pe-st),De=Math.abs(ce-pe),ce<Y&&(Y=ce,oe=Pe),pe<Y&&(Y=pe,oe=st),ce>pe?(de=Pe,Pe=st,ce=pe,be=1):(ee=st,st=Pe,pe=ce,be=0),J++>100)break}ie(U,oe)}(w),f&&function se(U){U.forEach(function($){var Y={x:0,y:0};$.array.forEach(function(ee){Y.x+=ee.x,Y.y+=ee.y}),Y.x/=$.array.length,Y.y/=$.array.length;var de_x=$.x-(Y.x-$.width/2)+p/2-O/2,de_y=$.y-(Y.y-$.height/2)+y/2-F/2;$.array.forEach(function(ee){ee.x+=de_x,ee.y+=de_y})})}(w))},L.separateGraphs=function D(w,C){for(var _={},x={},g=[],f=0,v=0;v<C.length;v++){var m=C[v],p=m.source,y=m.target;x[p.index]?x[p.index].push(y):x[p.index]=[y],x[y.index]?x[y.index].push(p):x[y.index]=[p]}for(v=0;v<w.length;v++){var S=w[v];_[S.index]||k(S,!0)}function k(O,F){if(void 0===_[O.index]){F&&(f++,g.push({array:[]})),_[O.index]=f,g[f-1].array.push(O);var R=x[O.index];if(R)for(var z=0;z<R.length;z++)k(R[z],!1)}}return g}},5675:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var f,p,d=u(3900),D=u(8802),w=u(1786),C=u(4068),_=u(3858),x=u(225),g=u(345);function v(p){return void 0!==p.leaves||void 0!==p.groups}(p=f=L.EventType||(L.EventType={}))[p.start=0]="start",p[p.tick=1]="tick",p[p.end=2]="end";var m=function(){function p(){var y=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:p.getSourceIndex,getTargetIndex:p.getTargetIndex,setLength:p.setLinkLength,getType:function(S){return"function"==typeof y._linkType?y._linkType(S):0}}}return p.prototype.on=function(y,S){return this.event||(this.event={}),"string"==typeof y?this.event[f[y]]=S:this.event[y]=S,this},p.prototype.trigger=function(y){this.event&&void 0!==this.event[y.type]&&this.event[y.type](y)},p.prototype.kick=function(){for(;!this.tick(););},p.prototype.tick=function(){if(this._alpha<this._threshold)return this._running=!1,this.trigger({type:f.end,alpha:this._alpha=0,stress:this._lastStress}),!0;var k,O,y=this._nodes.length;for(this._descent.locks.clear(),O=0;O<y;++O)(k=this._nodes[O]).fixed&&((void 0===k.px||void 0===k.py)&&(k.px=k.x,k.py=k.y),this._descent.locks.add(O,[k.px,k.py]));var R=this._descent.rungeKutta();return 0===R?this._alpha=0:void 0!==this._lastStress&&(this._alpha=R),this._lastStress=R,this.updateNodePositions(),this.trigger({type:f.tick,alpha:this._alpha,stress:this._lastStress}),!1},p.prototype.updateNodePositions=function(){for(var k,y=this._descent.x[0],S=this._descent.x[1],O=this._nodes.length;O--;)(k=this._nodes[O]).x=y[O],k.y=S[O]},p.prototype.nodes=function(y){if(!y){if(0===this._nodes.length&&this._links.length>0){var S=0;this._links.forEach(function(O){S=Math.max(S,O.source,O.target)}),this._nodes=new Array(++S);for(var k=0;k<S;++k)this._nodes[k]={}}return this._nodes}return this._nodes=y,this},p.prototype.groups=function(y){var S=this;return y?(this._groups=y,this._rootGroup={},this._groups.forEach(function(k){void 0===k.padding&&(k.padding=1),void 0!==k.leaves&&k.leaves.forEach(function(O,F){"number"==typeof O&&((k.leaves[F]=S._nodes[O]).parent=k)}),void 0!==k.groups&&k.groups.forEach(function(O,F){"number"==typeof O&&((k.groups[F]=S._groups[O]).parent=k)})}),this._rootGroup.leaves=this._nodes.filter(function(k){return void 0===k.parent}),this._rootGroup.groups=this._groups.filter(function(k){return void 0===k.parent}),this):this._groups},p.prototype.powerGraphGroups=function(y){var S=d.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(S.groups),y(S),this},p.prototype.avoidOverlaps=function(y){return arguments.length?(this._avoidOverlaps=y,this):this._avoidOverlaps},p.prototype.handleDisconnected=function(y){return arguments.length?(this._handleDisconnected=y,this):this._handleDisconnected},p.prototype.flowLayout=function(y,S){return arguments.length||(y="y"),this._directedLinkConstraints={axis:y,getMinSeparation:"number"==typeof S?function(){return S}:S},this},p.prototype.links=function(y){return arguments.length?(this._links=y,this):this._links},p.prototype.constraints=function(y){return arguments.length?(this._constraints=y,this):this._constraints},p.prototype.distanceMatrix=function(y){return arguments.length?(this._distanceMatrix=y,this):this._distanceMatrix},p.prototype.size=function(y){return y?(this._canvasSize=y,this):this._canvasSize},p.prototype.defaultNodeSize=function(y){return y?(this._defaultNodeSize=y,this):this._defaultNodeSize},p.prototype.groupCompactness=function(y){return y?(this._groupCompactness=y,this):this._groupCompactness},p.prototype.linkDistance=function(y){return y?(this._linkDistance="function"==typeof y?y:+y,this._linkLengthCalculator=null,this):this._linkDistance},p.prototype.linkType=function(y){return this._linkType=y,this},p.prototype.convergenceThreshold=function(y){return y?(this._threshold="function"==typeof y?y:+y,this):this._threshold},p.prototype.alpha=function(y){return arguments.length?(y=+y,this._alpha?this._alpha=y>0?y:0:y>0&&(this._running||(this._running=!0,this.trigger({type:f.start,alpha:this._alpha=y}),this.kick())),this):this._alpha},p.prototype.getLinkLength=function(y){return"function"==typeof this._linkDistance?+this._linkDistance(y):this._linkDistance},p.setLinkLength=function(y,S){y.length=S},p.prototype.getLinkType=function(y){return"function"==typeof this._linkType?this._linkType(y):0},p.prototype.symmetricDiffLinkLengths=function(y,S){var k=this;return void 0===S&&(S=1),this.linkDistance(function(O){return y*O.length}),this._linkLengthCalculator=function(){return D.symmetricDiffLinkLengths(k._links,k.linkAccessor,S)},this},p.prototype.jaccardLinkLengths=function(y,S){var k=this;return void 0===S&&(S=1),this.linkDistance(function(O){return y*O.length}),this._linkLengthCalculator=function(){return D.jaccardLinkLengths(k._links,k.linkAccessor,S)},this},p.prototype.start=function(y,S,k,O,F,R){var z=this;void 0===y&&(y=0),void 0===S&&(S=0),void 0===k&&(k=0),void 0===O&&(O=0),void 0===F&&(F=!0),void 0===R&&(R=!0);var oe,se=this.nodes().length,te=se+2*this._groups.length,le=this._canvasSize[0],N=this._canvasSize[1],V=new Array(te),U=new Array(te),$=null,Y=this._avoidOverlaps;this._nodes.forEach(function(fe,De){fe.index=De,void 0===fe.x&&(fe.x=le/2,fe.y=N/2),V[De]=fe.x,U[De]=fe.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?oe=this._distanceMatrix:(oe=new _.Calculator(te,this._links,p.getSourceIndex,p.getTargetIndex,function(fe){return z.getLinkLength(fe)}).DistanceMatrix(),$=w.Descent.createSquareMatrix(te,function(){return 2}),this._links.forEach(function(fe){"number"==typeof fe.source&&(fe.source=z._nodes[fe.source]),"number"==typeof fe.target&&(fe.target=z._nodes[fe.target])}),this._links.forEach(function(fe){var De=p.getSourceIndex(fe),Pe=p.getTargetIndex(fe);$[De][Pe]=$[Pe][De]=fe.weight||1}));var de=w.Descent.createSquareMatrix(te,function(fe,De){return oe[fe][De]});if(this._rootGroup&&void 0!==this._rootGroup.groups){var H=se;this._groups.forEach(function(De){(function(De,Pe,st,he){$[De][Pe]=$[Pe][De]=st,de[De][Pe]=de[Pe][De]=.1})(H,H+1,z._groupCompactness),V[H]=0,U[H++]=0,V[H]=0,U[H++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var J=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,J=J.concat(D.generateDirectedEdgeConstraints(se,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new w.Descent([V,U],de),this._descent.locks.clear(),H=0;H<se;++H){var ce=this._nodes[H];ce.fixed&&(ce.px=ce.x,ce.py=ce.y,this._descent.locks.add(H,[ce.x,ce.y]))}if(this._descent.threshold=this._threshold,this.initialLayout(y,V,U),J.length>0&&(this._descent.project=new C.Projection(this._nodes,this._groups,this._rootGroup,J).projectFunctions()),this._descent.run(S),this.separateOverlappingComponents(le,N,R),this.avoidOverlaps(Y),Y&&(this._nodes.forEach(function(fe,De){fe.x=V[De],fe.y=U[De]}),this._descent.project=new C.Projection(this._nodes,this._groups,this._rootGroup,J,!0).projectFunctions(),this._nodes.forEach(function(fe,De){V[De]=fe.x,U[De]=fe.y})),this._descent.G=$,this._descent.run(k),O){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=se,this._descent.scaleSnapByMaxH=se!=te;var be=w.Descent.createSquareMatrix(te,function(fe,De){return fe>=se||De>=se?$[fe][De]:0});this._descent.G=be,this._descent.run(O)}return this.updateNodePositions(),this.separateOverlappingComponents(le,N,R),F?this.resume():this},p.prototype.initialLayout=function(y,S,k){if(this._groups.length>0&&y>0){var O=this._nodes.length,F=this._links.map(function(z){return{source:z.source.index,target:z.target.index}}),R=this._nodes.map(function(z){return{index:z.index}});this._groups.forEach(function(z,H){R.push({index:z.index=O+H})}),this._groups.forEach(function(z,H){void 0!==z.leaves&&z.leaves.forEach(function(X){return F.push({source:z.index,target:X.index})}),void 0!==z.groups&&z.groups.forEach(function(X){return F.push({source:z.index,target:X.index})})}),(new p).size(this.size()).nodes(R).links(F).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(y,0,0,0,!1),this._nodes.forEach(function(z){S[z.index]=R[z.index].x,k[z.index]=R[z.index].y})}else this._descent.run(y)},p.prototype.separateOverlappingComponents=function(y,S,k){var O=this;if(void 0===k&&(k=!0),!this._distanceMatrix&&this._handleDisconnected){var F=this._descent.x[0],R=this._descent.x[1];this._nodes.forEach(function(H,X){H.x=F[X],H.y=R[X]});var z=g.separateGraphs(this._nodes,this._links);g.applyPacking(z,y,S,this._defaultNodeSize,1,k),this._nodes.forEach(function(H,X){O._descent.x[0][X]=H.x,O._descent.x[1][X]=H.y,H.bounds&&(H.bounds.setXCentre(H.x),H.bounds.setYCentre(H.y))})}},p.prototype.resume=function(){return this.alpha(.1)},p.prototype.stop=function(){return this.alpha(0)},p.prototype.prepareEdgeRouting=function(y){void 0===y&&(y=0),this._visibilityGraph=new x.TangentVisibilityGraph(this._nodes.map(function(S){return S.bounds.inflate(-y).vertices()}))},p.prototype.routeEdge=function(y,S,k){void 0===S&&(S=5);var O=[],F=new x.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),R={x:y.source.x,y:y.source.y},z={x:y.target.x,y:y.target.y},H=F.addPoint(R,y.source.index),X=F.addPoint(z,y.target.index);F.addEdgeIfVisible(R,z,y.source.index,y.target.index),void 0!==k&&k(F);var N=new _.Calculator(F.V.length,F.E,function(de){return de.source.id},function(de){return de.target.id},function(de){return de.length()}).PathFromNodeToNode(H.id,X.id);if(1===N.length||N.length===F.V.length){var V=C.makeEdgeBetween(y.source.innerBounds,y.target.innerBounds,S);O=[V.sourceIntersection,V.arrowStart]}else{for(var U=N.length-2,$=F.V[N[U]].p,Y=F.V[N[0]].p,oe=(O=[y.source.innerBounds.rayIntersection($.x,$.y)],U);oe>=0;--oe)O.push(F.V[N[oe]].p);O.push(C.makeEdgeTo(Y,y.target.innerBounds,S))}return O},p.getSourceIndex=function(y){return"number"==typeof y.source?y.source:y.source.index},p.getTargetIndex=function(y){return"number"==typeof y.target?y.target:y.target.index},p.linkId=function(y){return p.getSourceIndex(y)+"-"+p.getTargetIndex(y)},p.dragStart=function(y){v(y)?p.storeOffset(y,p.dragOrigin(y)):(p.stopNode(y),y.fixed|=2)},p.stopNode=function(y){y.px=y.x,y.py=y.y},p.storeOffset=function(y,S){void 0!==y.leaves&&y.leaves.forEach(function(k){k.fixed|=2,p.stopNode(k),k._dragGroupOffsetX=k.x-S.x,k._dragGroupOffsetY=k.y-S.y}),void 0!==y.groups&&y.groups.forEach(function(k){return p.storeOffset(k,S)})},p.dragOrigin=function(y){return v(y)?{x:y.bounds.cx(),y:y.bounds.cy()}:y},p.drag=function(y,S){v(y)?(void 0!==y.leaves&&y.leaves.forEach(function(k){y.bounds.setXCentre(S.x),y.bounds.setYCentre(S.y),k.px=k._dragGroupOffsetX+S.x,k.py=k._dragGroupOffsetY+S.y}),void 0!==y.groups&&y.groups.forEach(function(k){return p.drag(k,S)})):(y.px=S.x,y.py=S.y)},p.dragEnd=function(y){v(y)?(void 0!==y.leaves&&y.leaves.forEach(function(S){p.dragEnd(S),delete S._dragGroupOffsetX,delete S._dragGroupOffsetY}),void 0!==y.groups&&y.groups.forEach(p.dragEnd)):y.fixed&=-7},p.mouseOver=function(y){y.fixed|=4,y.px=y.x,y.py=y.y},p.mouseOut=function(y){y.fixed&=-5},p}();L.Layout=m},6461:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var d=u(3858),D=u(1786),w=u(4068),C=u(8802),_=function(){function v(m,p){this.source=m,this.target=p}return v.prototype.actualLength=function(m){var p=this;return Math.sqrt(m.reduce(function(y,S){var k=S[p.target]-S[p.source];return y+k*k},0))},v}();L.Link3D=_,L.Node3D=function v(m,p,y){void 0===m&&(m=0),void 0===p&&(p=0),void 0===y&&(y=0),this.x=m,this.y=p,this.z=y};var g=function(){function v(m,p,y){var S=this;void 0===y&&(y=1),this.nodes=m,this.links=p,this.idealLinkLength=y,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(v.k);for(var k=0;k<v.k;++k)this.result[k]=new Array(m.length);m.forEach(function(O,F){for(var R=0,z=v.dims;R<z.length;R++){var H=z[R];void 0===O[H]&&(O[H]=Math.random())}S.result[0][F]=O.x,S.result[1][F]=O.y,S.result[2][F]=O.z})}return v.prototype.linkLength=function(m){return m.actualLength(this.result)},v.prototype.start=function(m){var p=this;void 0===m&&(m=100);var y=this.nodes.length,S=new f;this.useJaccardLinkLengths&&C.jaccardLinkLengths(this.links,S,1.5),this.links.forEach(function(H){return H.length*=p.idealLinkLength});var k=new d.Calculator(y,this.links,function(H){return H.source},function(H){return H.target},function(H){return H.length}).DistanceMatrix(),O=D.Descent.createSquareMatrix(y,function(H,X){return k[H][X]}),F=D.Descent.createSquareMatrix(y,function(){return 2});this.links.forEach(function(H){var X=H.source,se=H.target;return F[X][se]=F[se][X]=1}),this.descent=new D.Descent(this.result,O),this.descent.threshold=.001,this.descent.G=F,this.constraints&&(this.descent.project=new w.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var R=0;R<this.nodes.length;R++){var z=this.nodes[R];z.fixed&&this.descent.locks.add(R,[z.x,z.y,z.z])}return this.descent.run(m),this},v.prototype.tick=function(){this.descent.locks.clear();for(var m=0;m<this.nodes.length;m++){var p=this.nodes[m];p.fixed&&this.descent.locks.add(m,[p.x,p.y,p.z])}return this.descent.rungeKutta()},v.k=(v.dims=["x","y","z"]).length,v}();L.Layout3D=g;var f=function(){function v(){}return v.prototype.getSourceIndex=function(m){return m.source},v.prototype.getTargetIndex=function(m){return m.target},v.prototype.getLength=function(m){return m.length},v.prototype.setLength=function(m,p){m.length=p},v}()},8802:(E,L)=>{"use strict";function u(f,v){var m={};for(var p in f)m[p]={};for(var p in v)m[p]={};return Object.keys(m).length}function d(f,v){var m=0;for(var p in f)void 0!==v[p]&&++m;return m}function w(f,v,m,p){var y=function D(f,v){var m={},p=function(y,S){void 0===m[y]&&(m[y]={}),m[y][S]={}};return f.forEach(function(y){var S=v.getSourceIndex(y),k=v.getTargetIndex(y);p(S,k),p(k,S)}),m}(f,p);f.forEach(function(S){var k=y[p.getSourceIndex(S)],O=y[p.getTargetIndex(S)];p.setLength(S,1+v*m(k,O))})}function g(f,v,m){var p=[],y=0,S=[],k=[];function O(N){N.index=N.lowlink=y++,S.push(N),N.onStack=!0;for(var V=0,U=N.out;V<U.length;V++){var $=U[V];void 0===$.index?(O($),N.lowlink=Math.min(N.lowlink,$.lowlink)):$.onStack&&(N.lowlink=Math.min(N.lowlink,$.index))}if(N.lowlink===N.index){for(var Y=[];S.length&&(($=S.pop()).onStack=!1,Y.push($),$!==N););k.push(Y.map(function(oe){return oe.id}))}}for(var F=0;F<f;F++)p.push({id:F,out:[]});for(var R=0,z=v;R<z.length;R++){var H=z[R],X=p[m.getSourceIndex(H)],se=p[m.getTargetIndex(H)];X.out.push(se)}for(var te=0,ie=p;te<ie.length;te++){var le=ie[te];void 0===le.index&&O(le)}return k}Object.defineProperty(L,"__esModule",{value:!0}),L.symmetricDiffLinkLengths=function C(f,v,m){void 0===m&&(m=1),w(f,m,function(p,y){return Math.sqrt(u(p,y)-d(p,y))},v)},L.jaccardLinkLengths=function _(f,v,m){void 0===m&&(m=1),w(f,m,function(p,y){return Math.min(Object.keys(p).length,Object.keys(y).length)<1.1?0:d(p,y)/u(p,y)},v)},L.generateDirectedEdgeConstraints=function x(f,v,m,p){var y=g(f,v,p),S={};y.forEach(function(O,F){return O.forEach(function(R){return S[R]=F})});var k=[];return v.forEach(function(O){var F=p.getSourceIndex(O),R=p.getTargetIndex(O);S[F]!==S[R]&&k.push({axis:m,left:F,right:R,gap:p.getMinSeparation(O)})}),k},L.stronglyConnectedComponents=g},3900:(E,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var u=function v(m,p,y){this.source=m,this.target=p,this.type=y};L.PowerEdge=u;var d=function(){function v(m,p,y,S){var k=this;if(this.linkAccessor=y,this.modules=new Array(m),this.roots=[],S)this.initModulesFromGroup(S);else{this.roots.push(new _);for(var O=0;O<m;++O)this.roots[0].add(this.modules[O]=new w(O))}this.R=p.length,p.forEach(function(F){var R=k.modules[y.getSourceIndex(F)],z=k.modules[y.getTargetIndex(F)],H=y.getType(F);R.outgoing.add(H,z),z.incoming.add(H,R)})}return v.prototype.initModulesFromGroup=function(m){var p=new _;this.roots.push(p);for(var y=0;y<m.leaves.length;++y){var S=m.leaves[y],k=new w(S.id);this.modules[S.id]=k,p.add(k)}if(m.groups)for(var O=0;O<m.groups.length;++O){var F=m.groups[O],R={};for(var z in F)"leaves"!==z&&"groups"!==z&&F.hasOwnProperty(z)&&(R[z]=F[z]);p.add(new w(-1-O,new x,new x,this.initModulesFromGroup(F),R))}return p},v.prototype.merge=function(m,p,y){void 0===y&&(y=0);var S=m.incoming.intersection(p.incoming),k=m.outgoing.intersection(p.outgoing),O=new _;O.add(m),O.add(p);var F=new w(this.modules.length,k,S,O);this.modules.push(F);var R=function(z,H,X){z.forAll(function(se,te){se.forAll(function(ie){var le=ie[H];le.add(te,F),le.remove(te,m),le.remove(te,p),m[X].remove(te,ie),p[X].remove(te,ie)})})};return R(k,"incoming","outgoing"),R(S,"outgoing","incoming"),this.R-=S.count()+k.count(),this.roots[y].remove(m),this.roots[y].remove(p),this.roots[y].add(F),F},v.prototype.rootMerges=function(m){void 0===m&&(m=0);for(var p=this.roots[m].modules(),y=p.length,S=new Array(y*(y-1)),k=0,O=0,F=y-1;O<F;++O)for(var R=O+1;R<y;++R){var z=p[O],H=p[R];S[k]={id:k,nEdges:this.nEdges(z,H),a:z,b:H},k++}return S},v.prototype.greedyMerge=function(){for(var m=0;m<this.roots.length;++m)if(!(this.roots[m].modules().length<2)){var y=this.rootMerges(m).sort(function(S,k){return S.nEdges==k.nEdges?S.id-k.id:S.nEdges-k.nEdges})[0];if(!(y.nEdges>=this.R))return this.merge(y.a,y.b,m),!0}},v.prototype.nEdges=function(m,p){var y=m.incoming.intersection(p.incoming),S=m.outgoing.intersection(p.outgoing);return this.R-y.count()-S.count()},v.prototype.getGroupHierarchy=function(m){var p=this,y=[];return D(this.roots[0],{},y),this.allEdges().forEach(function(O){var F=p.modules[O.source],R=p.modules[O.target];m.push(new u(void 0===F.gid?O.source:y[F.gid],void 0===R.gid?O.target:y[R.gid],O.type))}),y},v.prototype.allEdges=function(){var m=[];return v.getEdges(this.roots[0],m),m},v.getEdges=function(m,p){m.forAll(function(y){y.getEdges(p),v.getEdges(y.children,p)})},v}();function D(v,m,p){v.forAll(function(y){if(y.isLeaf())m.leaves||(m.leaves=[]),m.leaves.push(y.id);else{var S=m;if(y.gid=p.length,!y.isIsland()||y.isPredefined()){if(S={id:y.gid},y.isPredefined())for(var k in y.definition)S[k]=y.definition[k];m.groups||(m.groups=[]),m.groups.push(y.gid),p.push(S)}D(y.children,S,p)}})}L.Configuration=d;var w=function(){function v(m,p,y,S,k){void 0===p&&(p=new x),void 0===y&&(y=new x),void 0===S&&(S=new _),this.id=m,this.outgoing=p,this.incoming=y,this.children=S,this.definition=k}return v.prototype.getEdges=function(m){var p=this;this.outgoing.forAll(function(y,S){y.forAll(function(k){m.push(new u(p.id,k.id,S))})})},v.prototype.isLeaf=function(){return 0===this.children.count()},v.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},v.prototype.isPredefined=function(){return void 0!==this.definition},v}();L.Module=w;var _=function(){function v(){this.table={}}return v.prototype.count=function(){return Object.keys(this.table).length},v.prototype.intersection=function(m){var p=new v;return p.table=function C(v,m){var p={};for(var y in v)y in m&&(p[y]=v[y]);return p}(this.table,m.table),p},v.prototype.intersectionCount=function(m){return this.intersection(m).count()},v.prototype.contains=function(m){return m in this.table},v.prototype.add=function(m){this.table[m.id]=m},v.prototype.remove=function(m){delete this.table[m.id]},v.prototype.forAll=function(m){for(var p in this.table)m(this.table[p])},v.prototype.modules=function(){var m=[];return this.forAll(function(p){p.isPredefined()||m.push(p)}),m},v}();L.ModuleSet=_;var x=function(){function v(){this.sets={},this.n=0}return v.prototype.count=function(){return this.n},v.prototype.contains=function(m){var p=!1;return this.forAllModules(function(y){!p&&y.id==m&&(p=!0)}),p},v.prototype.add=function(m,p){(m in this.sets?this.sets[m]:this.sets[m]=new _).add(p),++this.n},v.prototype.remove=function(m,p){var y=this.sets[m];y.remove(p),0===y.count()&&delete this.sets[m],--this.n},v.prototype.forAll=function(m){for(var p in this.sets)m(this.sets[p],Number(p))},v.prototype.forAllModules=function(m){this.forAll(function(p,y){return p.forAll(m)})},v.prototype.intersection=function(m){var p=new v;return this.forAll(function(y,S){if(S in m.sets){var k=y.intersection(m.sets[S]),O=k.count();O>0&&(p.sets[S]=k,p.n+=O)}}),p},v}();L.LinkSets=x,L.getGroups=function f(v,m,p,y){for(var k=new d(v.length,m,p,y);k.greedyMerge(););var O=[],F=k.getGroupHierarchy(O);return O.forEach(function(R){var z=function(H){var X=R[H];"number"==typeof X&&(R[H]=v[X])};z("source"),z("target")}),{groups:F,powerEdges:O}}},8866:(E,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var u=function(){function D(w){this.elem=w,this.subheaps=[]}return D.prototype.toString=function(w){for(var C="",_=!1,x=0;x<this.subheaps.length;++x){var g=this.subheaps[x];g.elem?(_&&(C+=","),C+=g.toString(w),_=!0):_=!1}return""!==C&&(C="("+C+")"),(this.elem?w(this.elem):"")+C},D.prototype.forEach=function(w){this.empty()||(w(this.elem,this),this.subheaps.forEach(function(C){return C.forEach(w)}))},D.prototype.count=function(){return this.empty()?0:1+this.subheaps.reduce(function(w,C){return w+C.count()},0)},D.prototype.min=function(){return this.elem},D.prototype.empty=function(){return null==this.elem},D.prototype.contains=function(w){if(this===w)return!0;for(var C=0;C<this.subheaps.length;C++)if(this.subheaps[C].contains(w))return!0;return!1},D.prototype.isHeap=function(w){var C=this;return this.subheaps.every(function(_){return w(C.elem,_.elem)&&_.isHeap(w)})},D.prototype.insert=function(w,C){return this.merge(new D(w),C)},D.prototype.merge=function(w,C){return this.empty()?w:w.empty()?this:C(this.elem,w.elem)?(this.subheaps.push(w),this):(w.subheaps.push(this),w)},D.prototype.removeMin=function(w){return this.empty()?null:this.mergePairs(w)},D.prototype.mergePairs=function(w){if(0==this.subheaps.length)return new D(null);if(1==this.subheaps.length)return this.subheaps[0];var C=this.subheaps.pop().merge(this.subheaps.pop(),w),_=this.mergePairs(w);return C.merge(_,w)},D.prototype.decreaseKey=function(w,C,_,x){var g=w.removeMin(x);w.elem=g.elem,w.subheaps=g.subheaps,null!==_&&null!==g.elem&&_(w.elem,w);var f=new D(C);return null!==_&&_(C,f),this.merge(f,x)},D}();L.PairingHeap=u;var d=function(){function D(w){this.lessThan=w}return D.prototype.top=function(){return this.empty()?null:this.root.elem},D.prototype.push=function(){for(var w=[],C=0;C<arguments.length;C++)w[C]=arguments[C];for(var _,g,x=0;g=w[x];++x)_=new u(g),this.root=this.empty()?_:this.root.merge(_,this.lessThan);return _},D.prototype.empty=function(){return!this.root||!this.root.elem},D.prototype.isHeap=function(){return this.root.isHeap(this.lessThan)},D.prototype.forEach=function(w){this.root.forEach(w)},D.prototype.pop=function(){if(this.empty())return null;var w=this.root.min();return this.root=this.root.removeMin(this.lessThan),w},D.prototype.reduceKey=function(w,C,_){void 0===_&&(_=null),this.root=this.root.decreaseKey(w,C,_,this.lessThan)},D.prototype.toString=function(w){return this.root.toString(w)},D.prototype.count=function(){return this.root.count()},D}();L.PriorityQueue=d},4655:function(E,L){"use strict";var _,u=this&&this.__extends||(_=function(x,g){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var m in v)v.hasOwnProperty(m)&&(f[m]=v[m])})(x,g)},function(x,g){function f(){this.constructor=x}_(x,g),x.prototype=null===g?Object.create(g):(f.prototype=g.prototype,new f)});Object.defineProperty(L,"__esModule",{value:!0});var d=function(){function _(){this.findIter=function(x){for(var g=this._root,f=this.iterator();null!==g;){var v=this._comparator(x,g.data);if(0===v)return f._cursor=g,f;f._ancestors.push(g),g=g.get_child(v>0)}return null}}return _.prototype.clear=function(){this._root=null,this.size=0},_.prototype.find=function(x){for(var g=this._root;null!==g;){var f=this._comparator(x,g.data);if(0===f)return g.data;g=g.get_child(f>0)}return null},_.prototype.lowerBound=function(x){return this._bound(x,this._comparator)},_.prototype.upperBound=function(x){var g=this._comparator;return this._bound(x,function f(v,m){return g(m,v)})},_.prototype.min=function(){var x=this._root;if(null===x)return null;for(;null!==x.left;)x=x.left;return x.data},_.prototype.max=function(){var x=this._root;if(null===x)return null;for(;null!==x.right;)x=x.right;return x.data},_.prototype.iterator=function(){return new D(this)},_.prototype.each=function(x){for(var f,g=this.iterator();null!==(f=g.next());)x(f)},_.prototype.reach=function(x){for(var f,g=this.iterator();null!==(f=g.prev());)x(f)},_.prototype._bound=function(x,g){for(var f=this._root,v=this.iterator();null!==f;){var m=this._comparator(x,f.data);if(0===m)return v._cursor=f,v;v._ancestors.push(f),f=f.get_child(m>0)}for(var p=v._ancestors.length-1;p>=0;--p)if(g(x,(f=v._ancestors[p]).data)>0)return v._cursor=f,v._ancestors.length=p,v;return v._ancestors.length=0,v},_}();L.TreeBase=d;var D=function(){function _(x){this._tree=x,this._ancestors=[],this._cursor=null}return _.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},_.prototype.next=function(){if(null===this._cursor){var x=this._tree._root;null!==x&&this._minNode(x)}else if(null===this._cursor.right){var g;do{if(g=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===g)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},_.prototype.prev=function(){if(null===this._cursor){var x=this._tree._root;null!==x&&this._maxNode(x)}else if(null===this._cursor.left){var g;do{if(g=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===g)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},_.prototype._minNode=function(x){for(;null!==x.left;)this._ancestors.push(x),x=x.left;this._cursor=x},_.prototype._maxNode=function(x){for(;null!==x.right;)this._ancestors.push(x),x=x.right;this._cursor=x},_}();L.Iterator=D;var w=function(){function _(x){this.data=x,this.left=null,this.right=null,this.red=!0}return _.prototype.get_child=function(x){return x?this.right:this.left},_.prototype.set_child=function(x,g){x?this.right=g:this.left=g},_}(),C=function(_){function x(g){var f=_.call(this)||this;return f._root=null,f._comparator=g,f.size=0,f}return u(x,_),x.prototype.insert=function(g){var f=!1;if(null===this._root)this._root=new w(g),f=!0,this.size++;else{var v=new w(void 0),m=!1,p=!1,y=null,S=v,k=null,O=this._root;for(S.right=this._root;;){if(null===O?(O=new w(g),k.set_child(m,O),f=!0,this.size++):x.is_red(O.left)&&x.is_red(O.right)&&(O.red=!0,O.left.red=!1,O.right.red=!1),x.is_red(O)&&x.is_red(k)){var F=S.right===y;O===k.get_child(p)?S.set_child(F,x.single_rotate(y,!p)):S.set_child(F,x.double_rotate(y,!p))}var R=this._comparator(O.data,g);if(0===R)break;p=m,null!==y&&(S=y),y=k,k=O,O=O.get_child(m=R<0)}this._root=v.right}return this._root.red=!1,f},x.prototype.remove=function(g){if(null===this._root)return!1;var f=new w(void 0),v=f;v.right=this._root;for(var m=null,p=null,y=null,S=!0;null!==v.get_child(S);){var k=S;p=m,m=v,v=v.get_child(S);var O=this._comparator(g,v.data);if(S=O>0,0===O&&(y=v),!x.is_red(v)&&!x.is_red(v.get_child(S)))if(x.is_red(v.get_child(!S))){var F=x.single_rotate(v,S);m.set_child(k,F),m=F}else if(!x.is_red(v.get_child(!S))){var R=m.get_child(!k);if(null!==R)if(x.is_red(R.get_child(!k))||x.is_red(R.get_child(k))){var z=p.right===m;x.is_red(R.get_child(k))?p.set_child(z,x.double_rotate(m,k)):x.is_red(R.get_child(!k))&&p.set_child(z,x.single_rotate(m,k));var H=p.get_child(z);H.red=!0,v.red=!0,H.left.red=!1,H.right.red=!1}else m.red=!1,R.red=!0,v.red=!0}}return null!==y&&(y.data=v.data,m.set_child(m.right===v,v.get_child(null===v.left)),this.size--),this._root=f.right,null!==this._root&&(this._root.red=!1),null!==y},x.is_red=function(g){return null!==g&&g.red},x.single_rotate=function(g,f){var v=g.get_child(!f);return g.set_child(!f,v.get_child(f)),v.set_child(f,g),g.red=!0,v.red=!1,v},x.double_rotate=function(g,f){return g.set_child(!f,x.single_rotate(g.get_child(!f),!f)),x.single_rotate(g,f)},x}(d);L.RBTree=C},4068:function(E,L,u){"use strict";var N,d=this&&this.__extends||(N=function(V,U){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,Y){$.__proto__=Y}||function($,Y){for(var oe in Y)Y.hasOwnProperty(oe)&&($[oe]=Y[oe])})(V,U)},function(V,U){function $(){this.constructor=V}N(V,U),V.prototype=null===U?Object.create(U):($.prototype=U.prototype,new $)});Object.defineProperty(L,"__esModule",{value:!0});var D=u(8237),w=u(4655);function C(N){return N.bounds=void 0!==N.leaves?N.leaves.reduce(function(V,U){return U.bounds.union(V)},_.empty()):_.empty(),void 0!==N.groups&&(N.bounds=N.groups.reduce(function(V,U){return C(U).union(V)},N.bounds)),N.bounds=N.bounds.inflate(N.padding),N.bounds}L.computeGroupBounds=C;var _=function(){function N(V,U,$,Y){this.x=V,this.X=U,this.y=$,this.Y=Y}return N.empty=function(){return new N(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},N.prototype.cx=function(){return(this.x+this.X)/2},N.prototype.cy=function(){return(this.y+this.Y)/2},N.prototype.overlapX=function(V){var U=this.cx(),$=V.cx();return U<=$&&V.x<this.X?this.X-V.x:$<=U&&this.x<V.X?V.X-this.x:0},N.prototype.overlapY=function(V){var U=this.cy(),$=V.cy();return U<=$&&V.y<this.Y?this.Y-V.y:$<=U&&this.y<V.Y?V.Y-this.y:0},N.prototype.setXCentre=function(V){var U=V-this.cx();this.x+=U,this.X+=U},N.prototype.setYCentre=function(V){var U=V-this.cy();this.y+=U,this.Y+=U},N.prototype.width=function(){return this.X-this.x},N.prototype.height=function(){return this.Y-this.y},N.prototype.union=function(V){return new N(Math.min(this.x,V.x),Math.max(this.X,V.X),Math.min(this.y,V.y),Math.max(this.Y,V.Y))},N.prototype.lineIntersections=function(V,U,$,Y){for(var oe=[[this.x,this.y,this.X,this.y],[this.X,this.y,this.X,this.Y],[this.X,this.Y,this.x,this.Y],[this.x,this.Y,this.x,this.y]],de=[],ee=0;ee<4;++ee){var J=N.lineIntersection(V,U,$,Y,oe[ee][0],oe[ee][1],oe[ee][2],oe[ee][3]);null!==J&&de.push({x:J.x,y:J.y})}return de},N.prototype.rayIntersection=function(V,U){var $=this.lineIntersections(this.cx(),this.cy(),V,U);return $.length>0?$[0]:null},N.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},N.lineIntersection=function(V,U,$,Y,oe,de,ee,J){var ce=$-V,pe=ee-oe,be=Y-U,fe=J-de,De=fe*ce-pe*be;if(0==De)return null;var Pe=V-oe,st=U-de,xe=(pe*st-fe*Pe)/De,Fe=(ce*st-be*Pe)/De;return xe>=0&&xe<=1&&Fe>=0&&Fe<=1?{x:V+xe*ce,y:U+xe*be}:null},N.prototype.inflate=function(V){return new N(this.x-V,this.X+V,this.y-V,this.Y+V)},N}();L.Rectangle=_,L.makeEdgeBetween=function x(N,V,U){var $=N.rayIntersection(V.cx(),V.cy())||{x:N.cx(),y:N.cy()},Y=V.rayIntersection(N.cx(),N.cy())||{x:V.cx(),y:V.cy()},oe=Y.x-$.x,de=Y.y-$.y,ee=Math.sqrt(oe*oe+de*de),J=ee-U;return{sourceIntersection:$,targetIntersection:Y,arrowStart:{x:$.x+J*oe/ee,y:$.y+J*de/ee}}},L.makeEdgeTo=function g(N,V,U){var $=V.rayIntersection(N.x,N.y);$||($={x:V.cx(),y:V.cy()});var Y=$.x-N.x,oe=$.y-N.y,de=Math.sqrt(Y*Y+oe*oe);return{x:$.x-U*Y/de,y:$.y-U*oe/de}};var f=function N(V,U,$){this.v=V,this.r=U,this.pos=$,this.prev=p(),this.next=p()},v=function N(V,U,$){this.isOpen=V,this.v=U,this.pos=$};function m(N,V){return N.pos>V.pos?1:N.pos<V.pos||N.isOpen?-1:V.isOpen?1:0}function p(){return new w.RBTree(function(N,V){return N.pos-V.pos})}var y={getCentre:function(N){return N.cx()},getOpen:function(N){return N.y},getClose:function(N){return N.Y},getSize:function(N){return N.width()},makeRect:function(N,V,U,$){return new _(U-$/2,U+$/2,N,V)},findNeighbours:function F(N,V){var U=function($,Y){for(var de,oe=V.findIter(N);null!==(de=oe[$]());){var ee=de.r.overlapX(N.r);if((ee<=0||ee<=de.r.overlapY(N.r))&&(N[$].insert(de),de[Y].insert(N)),ee<=0)break}};U("next","prev"),U("prev","next")}},S={getCentre:function(N){return N.cy()},getOpen:function(N){return N.x},getClose:function(N){return N.X},getSize:function(N){return N.height()},makeRect:function(N,V,U,$){return new _(N,V,U-$/2,U+$/2)},findNeighbours:function R(N,V){var U=function($,Y){var oe=V.findIter(N)[$]();null!==oe&&oe.r.overlapX(N.r)>0&&(N[$].insert(oe),oe[Y].insert(N))};U("next","prev"),U("prev","next")}};function k(N,V,U,$){void 0===$&&($=!1);var Y=N.padding,oe=void 0!==N.groups?N.groups.length:0,de=void 0!==N.leaves?N.leaves.length:0,ee=oe?N.groups.reduce(function(Xe,ft){return Xe.concat(k(ft,V,U,!0))},[]):[],J=($?2:0)+de+oe,ce=new Array(J),pe=new Array(J),be=0,fe=function(Xe,ft){pe[be]=Xe,ce[be++]=ft};if($){var De=N.bounds,Pe=V.getCentre(De),st=V.getSize(De)/2,he=V.getOpen(De),xe=V.getClose(De),Te=Pe-st+Y/2,Fe=Pe+st-Y/2;N.minVar.desiredPosition=Te,fe(V.makeRect(he,xe,Te,Y),N.minVar),N.maxVar.desiredPosition=Fe,fe(V.makeRect(he,xe,Fe,Y),N.maxVar)}de&&N.leaves.forEach(function(Xe){return fe(Xe.bounds,Xe.variable)}),oe&&N.groups.forEach(function(Xe){var ft=Xe.bounds;fe(V.makeRect(V.getOpen(ft),V.getClose(ft),V.getCentre(ft),V.getSize(ft)),Xe.minVar)});var Ke=O(pe,ce,V,U);return oe&&(ce.forEach(function(Xe){Xe.cOut=[],Xe.cIn=[]}),Ke.forEach(function(Xe){Xe.left.cOut.push(Xe),Xe.right.cIn.push(Xe)}),N.groups.forEach(function(Xe){var ft=(Xe.padding-V.getSize(Xe.bounds))/2;Xe.minVar.cIn.forEach(function(Kt){return Kt.gap+=ft}),Xe.minVar.cOut.forEach(function(Kt){Kt.left=Xe.maxVar,Kt.gap+=ft})})),ee.concat(Ke)}function O(N,V,U,$){var Y,oe=N.length,de=2*oe;console.assert(V.length>=oe);var ee=new Array(de);for(Y=0;Y<oe;++Y){var J=N[Y],ce=new f(V[Y],J,U.getCentre(J));ee[Y]=new v(!0,ce,U.getOpen(J)),ee[Y+oe]=new v(!1,ce,U.getClose(J))}ee.sort(m);var pe=new Array,be=p();for(Y=0;Y<de;++Y){var fe=ee[Y];if(ce=fe.v,fe.isOpen)be.insert(ce),U.findNeighbours(ce,be);else{be.remove(ce);var De=function(he,xe){var Te=(U.getSize(he.r)+U.getSize(xe.r))/2+$;pe.push(new D.Constraint(he.v,xe.v,Te))},Pe=function(he,xe,Te){for(var Fe,Ke=ce[he].iterator();null!==(Fe=Ke[he]());)Te(Fe,ce),Fe[xe].remove(ce)};Pe("prev","next",function(he,xe){return De(he,xe)}),Pe("next","prev",function(he,xe){return De(xe,he)})}}return console.assert(0===be.size),pe}function z(N,V){return O(N,V,y,1e-6)}function H(N,V){return O(N,V,S,1e-6)}function X(N){return k(N,y,1e-6)}function se(N){return k(N,S,1e-6)}L.generateXConstraints=z,L.generateYConstraints=H,L.generateXGroupConstraints=X,L.generateYGroupConstraints=se,L.removeOverlaps=function te(N){var V=N.map(function(Y){return new D.Variable(Y.cx())}),U=z(N,V),$=new D.Solver(V,U);$.solve(),V.forEach(function(Y,oe){return N[oe].setXCentre(Y.position())}),V=N.map(function(Y){return new D.Variable(Y.cy())}),U=H(N,V),($=new D.Solver(V,U)).solve(),V.forEach(function(Y,oe){return N[oe].setYCentre(Y.position())})};var ie=function(N){function V(U,$){var Y=N.call(this,0,$)||this;return Y.index=U,Y}return d(V,N),V}(D.Variable);L.IndexedVariable=ie;var le=function(){function N(V,U,$,Y,oe){var de=this;if(void 0===$&&($=null),void 0===Y&&(Y=null),void 0===oe&&(oe=!1),this.nodes=V,this.groups=U,this.rootGroup=$,this.avoidOverlaps=oe,this.variables=V.map(function(J,ce){return J.variable=new ie(ce,1)}),Y&&this.createConstraints(Y),oe&&$&&void 0!==$.groups){V.forEach(function(J){if(J.width&&J.height){var ce=J.width/2,pe=J.height/2;J.bounds=new _(J.x-ce,J.x+ce,J.y-pe,J.y+pe)}else J.bounds=new _(J.x,J.x,J.y,J.y)}),C($);var ee=V.length;U.forEach(function(J){de.variables[ee]=J.minVar=new ie(ee++,void 0!==J.stiffness?J.stiffness:.01),de.variables[ee]=J.maxVar=new ie(ee++,void 0!==J.stiffness?J.stiffness:.01)})}}return N.prototype.createSeparation=function(V){return new D.Constraint(this.nodes[V.left].variable,this.nodes[V.right].variable,V.gap,void 0!==V.equality&&V.equality)},N.prototype.makeFeasible=function(V){var U=this;if(this.avoidOverlaps){var $="x",Y="width";"x"===V.axis&&($="y",Y="height");var oe=V.offsets.map(function(ee){return U.nodes[ee.node]}).sort(function(ee,J){return ee[$]-J[$]}),de=null;oe.forEach(function(ee){if(de){var J=de[$]+de[Y];J>ee[$]&&(ee[$]=J)}de=ee})}},N.prototype.createAlignment=function(V){var U=this,$=this.nodes[V.offsets[0].node].variable;this.makeFeasible(V);var Y="x"===V.axis?this.xConstraints:this.yConstraints;V.offsets.slice(1).forEach(function(oe){Y.push(new D.Constraint($,U.nodes[oe.node].variable,oe.offset,!0))})},N.prototype.createConstraints=function(V){var U=this,$=function(Y){return void 0===Y.type||"separation"===Y.type};this.xConstraints=V.filter(function(Y){return"x"===Y.axis&&$(Y)}).map(function(Y){return U.createSeparation(Y)}),this.yConstraints=V.filter(function(Y){return"y"===Y.axis&&$(Y)}).map(function(Y){return U.createSeparation(Y)}),V.filter(function(Y){return"alignment"===Y.type}).forEach(function(Y){return U.createAlignment(Y)})},N.prototype.setupVariablesAndBounds=function(V,U,$,Y){this.nodes.forEach(function(oe,de){oe.fixed?(oe.variable.weight=oe.fixedWeight?oe.fixedWeight:1e3,$[de]=Y(oe)):oe.variable.weight=1;var ee=(oe.width||0)/2,J=(oe.height||0)/2,ce=V[de],pe=U[de];oe.bounds=new _(ce-ee,ce+ee,pe-J,pe+J)})},N.prototype.xProject=function(V,U,$){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(V,U,V,$,function(Y){return Y.px},this.xConstraints,X,function(Y){return Y.bounds.setXCentre($[Y.variable.index]=Y.variable.position())},function(Y){var oe=$[Y.minVar.index]=Y.minVar.position(),de=$[Y.maxVar.index]=Y.maxVar.position(),ee=Y.padding/2;Y.bounds.x=oe-ee,Y.bounds.X=de+ee})},N.prototype.yProject=function(V,U,$){!this.rootGroup&&!this.yConstraints||this.project(V,U,U,$,function(Y){return Y.py},this.yConstraints,se,function(Y){return Y.bounds.setYCentre($[Y.variable.index]=Y.variable.position())},function(Y){var oe=$[Y.minVar.index]=Y.minVar.position(),de=$[Y.maxVar.index]=Y.maxVar.position(),ee=Y.padding/2;Y.bounds.y=oe-ee,Y.bounds.Y=de+ee})},N.prototype.projectFunctions=function(){var V=this;return[function(U,$,Y){return V.xProject(U,$,Y)},function(U,$,Y){return V.yProject(U,$,Y)}]},N.prototype.project=function(V,U,$,Y,oe,de,ee,J,ce){this.setupVariablesAndBounds(V,U,Y,oe),this.rootGroup&&this.avoidOverlaps&&(C(this.rootGroup),de=de.concat(ee(this.rootGroup))),this.solve(this.variables,de,$,Y),this.nodes.forEach(J),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(ce),C(this.rootGroup))},N.prototype.solve=function(V,U,$,Y){var oe=new D.Solver(V,U);oe.setStartingPositions($),oe.setDesiredPositions(Y),oe.solve()},N}();L.Projection=le},3858:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var d=u(8866),D=function x(g,f){this.id=g,this.distance=f},w=function x(g){this.id=g,this.neighbours=[]},C=function x(g,f,v){this.node=g,this.prev=f,this.d=v},_=function(){function x(g,f,v,m,p){this.n=g,this.es=f,this.neighbours=new Array(this.n);for(var y=this.n;y--;)this.neighbours[y]=new w(y);for(y=this.es.length;y--;){var S=this.es[y],k=v(S),O=m(S),F=p(S);this.neighbours[k].neighbours.push(new D(O,F)),this.neighbours[O].neighbours.push(new D(k,F))}}return x.prototype.DistanceMatrix=function(){for(var g=new Array(this.n),f=0;f<this.n;++f)g[f]=this.dijkstraNeighbours(f);return g},x.prototype.DistancesFromNode=function(g){return this.dijkstraNeighbours(g)},x.prototype.PathFromNodeToNode=function(g,f){return this.dijkstraNeighbours(g,f)},x.prototype.PathFromNodeToNodeWithPrevCost=function(g,f,v){var m=new d.PriorityQueue(function(se,te){return se.d<=te.d}),p=this.neighbours[g],y=new C(p,null,0),S={};for(m.push(y);!m.empty()&&(p=(y=m.pop()).node).id!==f;)for(var k=p.neighbours.length;k--;){var O=p.neighbours[k],F=this.neighbours[O.id];if(!y.prev||F.id!==y.prev.node.id){var R=F.id+","+p.id;if(!(R in S&&S[R]<=y.d)){var z=y.prev?v(y.prev.node.id,p.id,F.id):0,H=y.d+O.distance+z;S[R]=H,m.push(new C(F,y,H))}}}for(var X=[];y.prev;)X.push((y=y.prev).node.id);return X},x.prototype.dijkstraNeighbours=function(g,f){void 0===f&&(f=-1);for(var v=new d.PriorityQueue(function(z,H){return z.d<=H.d}),m=this.neighbours.length,p=new Array(m);m--;){var y=this.neighbours[m];y.d=m===g?0:Number.POSITIVE_INFINITY,y.q=v.push(y)}for(;!v.empty();){var S=v.pop();if(p[S.id]=S.d,S.id===f){for(var k=[],O=S;void 0!==O.prev;)k.push(O.prev.id),O=O.prev;return k}for(m=S.neighbours.length;m--;){var F=S.neighbours[m],R=(O=this.neighbours[F.id],S.d+F.distance);S.d!==Number.MAX_VALUE&&O.d>R&&(O.d=R,O.prev=S,v.reduceKey(O.q,O,function(H,X){return H.q=X}))}}return p},x}();L.Calculator=_},8237:(E,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var u=function(){function g(f){this.scale=f,this.AB=0,this.AD=0,this.A2=0}return g.prototype.addVariable=function(f){var v=this.scale/f.scale,p=f.weight;this.AB+=p*v*(f.offset/f.scale),this.AD+=p*v*f.desiredPosition,this.A2+=p*v*v},g.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},g}();L.PositionStats=u;var d=function(){function g(f,v,m,p){void 0===p&&(p=!1),this.left=f,this.right=v,this.gap=m,this.equality=p,this.active=!1,this.unsatisfiable=!1,this.left=f,this.right=v,this.gap=m,this.equality=p}return g.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},g}();L.Constraint=d;var D=function(){function g(f,v,m){void 0===v&&(v=1),void 0===m&&(m=1),this.desiredPosition=f,this.weight=v,this.scale=m,this.offset=0}return g.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},g.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},g.prototype.visitNeighbours=function(f,v){var m=function(p,y){return p.active&&f!==y&&v(p,y)};this.cOut.forEach(function(p){return m(p,p.right)}),this.cIn.forEach(function(p){return m(p,p.left)})},g}();L.Variable=D;var w=function(){function g(f){this.vars=[],f.offset=0,this.ps=new u(f.scale),this.addVariable(f)}return g.prototype.addVariable=function(f){f.block=this,this.vars.push(f),this.ps.addVariable(f),this.posn=this.ps.getPosn()},g.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var f=0,v=this.vars.length;f<v;++f)this.ps.addVariable(this.vars[f]);this.posn=this.ps.getPosn()},g.prototype.compute_lm=function(f,v,m){var p=this,y=f.dfdv();return f.visitNeighbours(v,function(S,k){var O=p.compute_lm(k,f,m);k===S.right?(y+=O*S.left.scale,S.lm=O):(y+=O*S.right.scale,S.lm=-O),m(S)}),y/f.scale},g.prototype.populateSplitBlock=function(f,v){var m=this;f.visitNeighbours(v,function(p,y){y.offset=f.offset+(y===p.right?p.gap:-p.gap),m.addVariable(y),m.populateSplitBlock(y,f)})},g.prototype.traverse=function(f,v,m,p){var y=this;void 0===m&&(m=this.vars[0]),void 0===p&&(p=null),m.visitNeighbours(p,function(S,k){v.push(f(S)),y.traverse(f,v,k,m)})},g.prototype.findMinLM=function(){var f=null;return this.compute_lm(this.vars[0],null,function(v){!v.equality&&(null===f||v.lm<f.lm)&&(f=v)}),f},g.prototype.findMinLMBetween=function(f,v){this.compute_lm(f,null,function(){});var m=null;return this.findPath(f,null,v,function(p,y){!p.equality&&p.right===y&&(null===m||p.lm<m.lm)&&(m=p)}),m},g.prototype.findPath=function(f,v,m,p){var y=this,S=!1;return f.visitNeighbours(v,function(k,O){!S&&(O===m||y.findPath(O,f,m,p))&&(S=!0,p(k,O))}),S},g.prototype.isActiveDirectedPathBetween=function(f,v){if(f===v)return!0;for(var m=f.cOut.length;m--;){var p=f.cOut[m];if(p.active&&this.isActiveDirectedPathBetween(p.right,v))return!0}return!1},g.split=function(f){return f.active=!1,[g.createSplitBlock(f.left),g.createSplitBlock(f.right)]},g.createSplitBlock=function(f){var v=new g(f);return v.populateSplitBlock(f,null),v},g.prototype.splitBetween=function(f,v){var m=this.findMinLMBetween(f,v);if(null!==m){var p=g.split(m);return{constraint:m,lb:p[0],rb:p[1]}}return null},g.prototype.mergeAcross=function(f,v,m){v.active=!0;for(var p=0,y=f.vars.length;p<y;++p){var S=f.vars[p];S.offset+=m,this.addVariable(S)}this.posn=this.ps.getPosn()},g.prototype.cost=function(){for(var f=0,v=this.vars.length;v--;){var m=this.vars[v],p=m.position()-m.desiredPosition;f+=p*p*m.weight}return f},g}();L.Block=w;var C=function(){function g(f){this.vs=f;var v=f.length;for(this.list=new Array(v);v--;){var m=new w(f[v]);this.list[v]=m,m.blockInd=v}}return g.prototype.cost=function(){for(var f=0,v=this.list.length;v--;)f+=this.list[v].cost();return f},g.prototype.insert=function(f){f.blockInd=this.list.length,this.list.push(f)},g.prototype.remove=function(f){var v=this.list.length-1,m=this.list[v];this.list.length=v,f!==m&&(this.list[f.blockInd]=m,m.blockInd=f.blockInd)},g.prototype.merge=function(f){var v=f.left.block,m=f.right.block,p=f.right.offset-f.left.offset-f.gap;v.vars.length<m.vars.length?(m.mergeAcross(v,f,p),this.remove(v)):(v.mergeAcross(m,f,-p),this.remove(m))},g.prototype.forEach=function(f){this.list.forEach(f)},g.prototype.updateBlockPositions=function(){this.list.forEach(function(f){return f.updateWeightedPosition()})},g.prototype.split=function(f){var v=this;this.updateBlockPositions(),this.list.forEach(function(m){var p=m.findMinLM();null!==p&&p.lm<_.LAGRANGIAN_TOLERANCE&&(m=p.left.block,w.split(p).forEach(function(y){return v.insert(y)}),v.remove(m),f.push(p))})},g}();L.Blocks=C;var _=function(){function g(f,v){this.vs=f,this.cs=v,this.vs=f,f.forEach(function(m){m.cIn=[],m.cOut=[]}),this.cs=v,v.forEach(function(m){m.left.cOut.push(m),m.right.cIn.push(m)}),this.inactive=v.map(function(m){return m.active=!1,m}),this.bs=null}return g.prototype.cost=function(){return this.bs.cost()},g.prototype.setStartingPositions=function(f){this.inactive=this.cs.map(function(v){return v.active=!1,v}),this.bs=new C(this.vs),this.bs.forEach(function(v,m){return v.posn=f[m]})},g.prototype.setDesiredPositions=function(f){this.vs.forEach(function(v,m){return v.desiredPosition=f[m]})},g.prototype.mostViolated=function(){for(var f=Number.MAX_VALUE,v=null,m=this.inactive,p=m.length,y=p,S=0;S<p;++S){var k=m[S];if(!k.unsatisfiable){var O=k.slack();if((k.equality||O<f)&&(f=O,v=k,y=S,k.equality))break}}return y!==p&&(f<g.ZERO_UPPERBOUND&&!v.active||v.equality)&&(m[y]=m[p-1],m.length=p-1),v},g.prototype.satisfy=function(){null==this.bs&&(this.bs=new C(this.vs)),this.bs.split(this.inactive);for(var f=null;(f=this.mostViolated())&&(f.equality||f.slack()<g.ZERO_UPPERBOUND&&!f.active);){var v=f.left.block;if(v!==f.right.block)this.bs.merge(f);else{if(v.isActiveDirectedPathBetween(f.right,f.left)){f.unsatisfiable=!0;continue}var p=v.splitBetween(f.left,f.right);if(null===p){f.unsatisfiable=!0;continue}this.bs.insert(p.lb),this.bs.insert(p.rb),this.bs.remove(v),this.inactive.push(p.constraint),f.slack()>=0?this.inactive.push(f):this.bs.merge(f)}}},g.prototype.solve=function(){this.satisfy();for(var f=Number.MAX_VALUE,v=this.bs.cost();Math.abs(f-v)>1e-4;)this.satisfy(),f=v,v=this.bs.cost();return v},g.LAGRANGIAN_TOLERANCE=-1e-4,g.ZERO_UPPERBOUND=-1e-10,g}();L.Solver=_,L.removeOverlapInOneDimension=function x(g,f,v){for(var m=g.map(function(ie){return new D(ie.desiredCenter)}),p=[],y=g.length,S=0;S<y-1;S++)p.push(new d(m[S],m[S+1],(g[S].size+g[S+1].size)/2));var F=m[0],R=m[y-1],z=g[0].size/2,H=g[y-1].size/2,X=null,se=null;return f&&(X=new D(f,1e3*F.weight),m.push(X),p.push(new d(X,F,z))),v&&(se=new D(v,1e3*R.weight),m.push(se),p.push(new d(R,se,H))),new _(m,p).solve(),{newCenters:m.slice(0,g.length).map(function(ie){return ie.position()}),lowerBound:X?X.position():F.position()-z,upperBound:se?se.position():R.position()+H}}}},pv={};function Zn(E){var L=pv[E];if(void 0!==L)return L.exports;var u=pv[E]={id:E,loaded:!1,exports:{}};return eS[E].call(u.exports,u,u.exports,Zn),u.loaded=!0,u.exports}Zn.d=(E,L)=>{for(var u in L)Zn.o(L,u)&&!Zn.o(E,u)&&Object.defineProperty(E,u,{enumerable:!0,get:L[u]})},Zn.o=(E,L)=>Object.prototype.hasOwnProperty.call(E,L),Zn.r=E=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})},Zn.nmd=E=>(E.paths=[],E.children||(E.children=[]),E),(()=>{"use strict";var E={};Zn.r(E),Zn.d(E,{forceCenter:()=>G9,forceCollide:()=>ZD,forceLink:()=>eE,forceManyBody:()=>nE,forceRadial:()=>m7,forceSimulation:()=>tE,forceX:()=>v7,forceY:()=>_7});var L={};Zn.r(L),Zn.d(L,{dispatch:()=>rh});var u={};function d(t){return"function"==typeof t}Zn.r(u),Zn.d(u,{interval:()=>x7,now:()=>la,timeout:()=>Jg,timer:()=>dh,timerFlush:()=>gT});let D=!1;const w={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else D&&console.log("RxJS: Back to a better error behavior. Thank you. <3");D=t},get useDeprecatedSynchronousErrorHandling(){return D}};function C(t){setTimeout(()=>{throw t},0)}const _={closed:!0,next(t){},error(t){if(w.useDeprecatedSynchronousErrorHandling)throw t;C(t)},complete(){}},x=Array.isArray||(t=>t&&"number"==typeof t.length);function g(t){return null!==t&&"object"==typeof t}const v=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class m{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof m)e.remove(this);else if(null!==e)for(let o=0;o<e.length;++o)e[o].remove(this);if(d(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(o){n=o instanceof v?p(o.errors):[o]}}if(x(r)){let o=-1,a=r.length;for(;++o<a;){const l=r[o];if(g(l))try{l.unsubscribe()}catch(c){n=n||[],c instanceof v?n=n.concat(p(c.errors)):n.push(c)}}}if(n)throw new v(n)}add(n){let e=n;if(!n)return m.EMPTY;switch(typeof n){case"function":e=new m(n);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof m)){const r=e;e=new m,e._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof m){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[e]:s.push(e),e}remove(n){const e=this._subscriptions;if(e){const i=e.indexOf(n);-1!==i&&e.splice(i,1)}}}var t;function p(t){return t.reduce((n,e)=>n.concat(e instanceof v?e.errors:e),[])}m.EMPTY=((t=new m).closed=!0,t);const y="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class k extends m{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=_;break;case 1:if(!n){this.destination=_;break}if("object"==typeof n){n instanceof k?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new O(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new O(this,n,e,i)}}[y](){return this}static create(n,e,i){const s=new k(n,e,i);return s.syncErrorThrowable=!1,s}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class O extends k{constructor(n,e,i,s){super(),this._parentSubscriber=n;let r,o=this;d(e)?r=e:e&&(r=e.next,i=e.error,s=e.complete,e!==_&&(o=Object.create(e),d(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=i,this._complete=s}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;w.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=w;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):C(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;C(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);w.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),w.useDeprecatedSynchronousErrorHandling)throw i;C(i)}}__tryOrSetError(n,e,i){if(!w.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(s){return w.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=s,n.syncErrorThrown=!0,!0):(C(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const z="function"==typeof Symbol&&Symbol.observable||"@@observable";function H(t){return t}let te=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,s){const{operator:r}=this,o=function R(t,n,e){if(t){if(t instanceof k)return t;if(t[y])return t[y]()}return t||n||e?new k(t,n,e):new k(_)}(e,i,s);if(o.add(r?r.call(o,this.source):this.source||w.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),w.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){w.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function F(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof k?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=ie(i))((s,r)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){r(l),o&&o.unsubscribe()}},r,s)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[z](){return this}pipe(...e){return 0===e.length?this:function se(t){return 0===t.length?H:1===t.length?t[0]:function(e){return t.reduce((i,s)=>s(i),e)}}(e)(this)}toPromise(e){return new(e=ie(e))((i,s)=>{let r;this.subscribe(o=>r=o,o=>s(o),()=>i(r))})}}return t.create=n=>new t(n),t})();function ie(t){if(t||(t=w.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const N=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class V extends m{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class U extends k{constructor(n){super(n),this.destination=n}}let $=(()=>{class t extends te{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[y](){return new U(this)}lift(e){const i=new Y(this,this);return i.operator=e,i}next(e){if(this.closed)throw new N;if(!this.isStopped){const{observers:i}=this,s=i.length,r=i.slice();for(let o=0;o<s;o++)r[o].next(e)}}error(e){if(this.closed)throw new N;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,s=i.length,r=i.slice();for(let o=0;o<s;o++)r[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new N;this.isStopped=!0;const{observers:e}=this,i=e.length,s=e.slice();for(let r=0;r<i;r++)s[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new N;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new N;return this.hasError?(e.error(this.thrownError),m.EMPTY):this.isStopped?(e.complete(),m.EMPTY):(this.observers.push(e),new V(this,e))}asObservable(){const e=new te;return e.source=this,e}}return t.create=(n,e)=>new Y(n,e),t})();class Y extends ${constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):m.EMPTY}}function oe(t){return t&&"function"==typeof t.schedule}function de(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new ee(t,n))}}class ee{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new J(n,this.project,this.thisArg))}}class J extends k{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const ce=t=>n=>{for(let e=0,i=t.length;e<i&&!n.closed;e++)n.next(t[e]);n.complete()},fe=function be(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),he=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function xe(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const Te=t=>{if(t&&"function"==typeof t[z])return(t=>n=>{const e=t[z]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(he(t))return ce(t);if(xe(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,C),n))(t);if(t&&"function"==typeof t[fe])return(t=>n=>{const e=t[fe]();for(;;){let i;try{i=e.next()}catch(s){return n.error(s),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${g(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Xe(t,n){return new te(e=>{const i=new m;let s=0;return i.add(n.schedule(function(){s!==t.length?(e.next(t[s++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function Ln(t,n){return n?function vn(t,n){if(null!=t){if(function Kt(t){return t&&"function"==typeof t[z]}(t))return function Fe(t,n){return new te(e=>{const i=new m;return i.add(n.schedule(()=>{const s=t[z]();i.add(s.subscribe({next(r){i.add(n.schedule(()=>e.next(r)))},error(r){i.add(n.schedule(()=>e.error(r)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(xe(t))return function Ke(t,n){return new te(e=>{const i=new m;return i.add(n.schedule(()=>t.then(s=>{i.add(n.schedule(()=>{e.next(s),i.add(n.schedule(()=>e.complete()))}))},s=>{i.add(n.schedule(()=>e.error(s)))}))),i})}(t,n);if(he(t))return Xe(t,n);if(function Qi(t){return t&&"function"==typeof t[fe]}(t)||"string"==typeof t)return function ft(t,n){if(!t)throw new Error("Iterable cannot be null");return new te(e=>{const i=new m;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(n.schedule(()=>{s=t[fe](),i.add(n.schedule(function(){if(e.closed)return;let r,o;try{const a=s.next();r=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(r),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof te?t:new te(Te(t))}class wt extends k{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Ct extends k{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Ji(t,n){if(!n.closed)return t instanceof te?t.subscribe(n):Te(t)(n)}function ac(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(ac((s,r)=>Ln(t(s,r)).pipe(de((o,a)=>n(s,o,r,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new ho(t,e)))}class ho{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new vs(n,this.project,this.concurrent))}}class vs extends Ct{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active<this.concurrent?this._tryNext(n):this.buffer.push(n)}_tryNext(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(n){const e=new wt(this),i=this.destination;i.add(e);const s=Ji(n,e);s!==e&&i.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(n){this.destination.next(n)}notifyComplete(){const n=this.buffer;this.active--,n.length>0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Ar(t=Number.POSITIVE_INFINITY){return ac(H,t)}function rr(t,n){return n?Xe(t,n):new te(ce(t))}function Aa(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return oe(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof te?t[0]:Ar(n)(rr(t,e))}function Ma(){return function(n){return n.lift(new or(n))}}class or{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const s=new lc(n,i),r=e.subscribe(s);return s.closed||(s.connection=i.connect()),r}}class lc extends k{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,s=n._connection;this.connection=null,s&&(!i||s===i)&&s.unsubscribe()}}class cc extends te{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new m,n.add(this.source.subscribe(new uc(this.getSubject(),this))),n.closed&&(this._connection=null,n=m.EMPTY)),n}refCount(){return Ma()(this)}}const Qh=(()=>{const t=cc.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class uc extends U{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class nS{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,s=this.subjectFactory(),r=i(s).subscribe(n);return r.add(e.subscribe(s)),r}}function iS(){return new $}function Ut(t){for(let n in t)if(t[n]===Ut)return n;throw Error("Could not find renamed property on target object.")}function Jh(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Ht(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Ht).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function qh(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const rS=Ut({__forward_ref__:Ut});function ed(t){return t.__forward_ref__=ed,t.toString=function(){return Ht(this())},t}function mt(t){return function gv(t){return"function"==typeof t&&t.hasOwnProperty(rS)&&t.__forward_ref__===ed}(t)?t():t}class Ye extends Error{constructor(n,e){super(function td(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function rt(t){return"string"==typeof t?t:null==t?"":String(t)}function $n(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():rt(t)}function hc(t,n){const e=n?` in ${n}`:"";throw new Ye(-201,`No provider for ${$n(t)} found${e}`)}function wi(t,n){null==t&&function zt(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Qe(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function kt(t){return{providers:t.providers||[],imports:t.imports||[]}}function nd(t){return mv(t,dc)||mv(t,_v)}function mv(t,n){return t.hasOwnProperty(n)?t[n]:null}function vv(t){return t&&(t.hasOwnProperty(id)||t.hasOwnProperty(dS))?t[id]:null}const dc=Ut({\u0275prov:Ut}),id=Ut({\u0275inj:Ut}),_v=Ut({ngInjectableDef:Ut}),dS=Ut({ngInjectorDef:Ut});var ct=(()=>((ct=ct||{})[ct.Default=0]="Default",ct[ct.Host=1]="Host",ct[ct.Self=2]="Self",ct[ct.SkipSelf=4]="SkipSelf",ct[ct.Optional=8]="Optional",ct))();let sd;function ar(t){const n=sd;return sd=t,n}function yv(t,n,e){const i=nd(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&ct.Optional?null:void 0!==n?n:void hc(Ht(t),"Injector")}function lr(t){return{toString:t}.toString()}var qi=(()=>((qi=qi||{})[qi.OnPush=0]="OnPush",qi[qi.Default=1]="Default",qi))(),es=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(es||(es={})),es))();const pS="undefined"!=typeof globalThis&&globalThis,gS="undefined"!=typeof window&&window,mS="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,jt=pS||"undefined"!=typeof global&&global||gS||mS,fo={},Wt=[],fc=Ut({\u0275cmp:Ut}),rd=Ut({\u0275dir:Ut}),od=Ut({\u0275pipe:Ut}),xv=Ut({\u0275mod:Ut}),Vs=Ut({\u0275fac:Ut}),ka=Ut({__NG_ELEMENT_ID__:Ut});let vS=0;function $e(t){return lr(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===qi.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Wt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||es.Emulated,id:"c",styles:t.styles||Wt,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,o=t.pipes;return i.id+=vS++,i.inputs=Tv(t.inputs,e),i.outputs=Tv(t.outputs),r&&r.forEach(a=>a(i)),i.directiveDefs=s?()=>("function"==typeof s?s():s).map(bv):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(wv):null,i})}function bv(t){return Un(t)||function cr(t){return t[rd]||null}(t)}function wv(t){return function Mr(t){return t[od]||null}(t)}const Cv={};function It(t){return lr(()=>{const n={type:t.type,bootstrap:t.bootstrap||Wt,declarations:t.declarations||Wt,imports:t.imports||Wt,exports:t.exports||Wt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Cv[t.id]=t.type),n})}function Tv(t,n){if(null==t)return fo;const e={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),e[s]=i,n&&(n[s]=r)}return e}const bn=$e;function gi(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Un(t){return t[fc]||null}function Bi(t,n){const e=t[xv]||null;if(!e&&!0===n)throw new Error(`Type ${Ht(t)} does not have '\u0275mod' property.`);return e}function _s(t){return Array.isArray(t)&&"object"==typeof t[1]}function ns(t){return Array.isArray(t)&&!0===t[1]}function cd(t){return 0!=(8&t.flags)}function vc(t){return 2==(2&t.flags)}function _c(t){return 1==(1&t.flags)}function is(t){return null!==t.template}function CS(t){return 0!=(512&t[2])}function Or(t,n){return t.hasOwnProperty(Vs)?t[Vs]:null}class Ev{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ut(){return Sv}function Sv(t){return t.type.prototype.ngOnChanges&&(t.setInput=SS),ES}function ES(){const t=Mv(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===fo)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function SS(t,n,e,i){const s=Mv(t)||function AS(t,n){return t[Av]=n}(t,{previous:fo,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[e],l=o[a];r[a]=new Ev(l&&l.currentValue,n,o===fo),t[i]=n}ut.ngInherit=!0;const Av="__ngSimpleChanges__";function Mv(t){return t[Av]||null}let pd;function gd(){return void 0!==pd?pd:"undefined"!=typeof document?document:void 0}function fn(t){return!!t.listen}const kv={createRenderer:(t,n)=>gd()};function wn(t){for(;Array.isArray(t);)t=t[0];return t}function yc(t,n){return wn(n[t])}function Ti(t,n){return wn(n[t.index])}function md(t,n){return t.data[n]}function Di(t,n){const e=n[t];return _s(e)?e:e[0]}function Lv(t){return 4==(4&t[2])}function vd(t){return 128==(128&t[2])}function ur(t,n){return null==n?null:t[n]}function Iv(t){t[18]=0}function _d(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const ot={lFrame:zv(null),bindingsEnabled:!0};function Fv(){return ot.bindingsEnabled}function Se(){return ot.lFrame.lView}function Lt(){return ot.lFrame.tView}function ve(t){return ot.lFrame.contextLView=t,t[8]}function In(){let t=Pv();for(;null!==t&&64===t.type;)t=t.parent;return t}function Pv(){return ot.lFrame.currentTNode}function ys(t,n){const e=ot.lFrame;e.currentTNode=t,e.isParent=n}function yd(){return ot.lFrame.isParent}function xd(){ot.lFrame.isParent=!1}function ii(){const t=ot.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function yo(){return ot.lFrame.bindingIndex++}function zs(t){const n=ot.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function US(t,n){const e=ot.lFrame;e.bindingIndex=e.bindingRootIndex=t,bd(n)}function bd(t){ot.lFrame.currentDirectiveIndex=t}function Bv(){return ot.lFrame.currentQueryIndex}function Cd(t){ot.lFrame.currentQueryIndex=t}function YS(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Vv(t,n,e){if(e&ct.SkipSelf){let s=n,r=t;for(;!(s=s.parent,null!==s||e&ct.Host||(s=YS(r),null===s||(r=r[15],10&s.type))););if(null===s)return!1;n=s,t=r}const i=ot.lFrame=Hv();return i.currentTNode=n,i.lView=t,!0}function bc(t){const n=Hv(),e=t[1];ot.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Hv(){const t=ot.lFrame,n=null===t?null:t.child;return null===n?zv(t):n}function zv(t){const n={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:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function jv(){const t=ot.lFrame;return ot.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Gv=jv;function wc(){const t=jv();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function si(){return ot.lFrame.selectedIndex}function hr(t){ot.lFrame.selectedIndex=t}function rn(){const t=ot.lFrame;return md(t.tView,t.selectedIndex)}function ae(){ot.lFrame.currentNamespace="svg"}function Cc(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const r=t.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:h}=r;o&&(t.contentHooks||(t.contentHooks=[])).push(-e,o),a&&((t.contentHooks||(t.contentHooks=[])).push(e,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-e,l),c&&((t.viewHooks||(t.viewHooks=[])).push(e,c),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,c)),null!=h&&(t.destroyHooks||(t.destroyHooks=[])).push(e,h)}}function Tc(t,n,e){$v(t,n,3,e)}function Dc(t,n,e,i){(3&t[2])===e&&$v(t,n,e,i)}function Td(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function $v(t,n,e,i){const r=null!=i?i:-1,o=n.length-1;let a=0;for(let l=void 0!==i?65535&t[18]:0;l<o;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=i&&a>=i)break}else n[l]<0&&(t[18]+=65536),(a<r||-1==r)&&(eA(t,e,n,l),t[18]=(4294901760&t[18])+l+2),l++}function eA(t,n,e,i){const s=e[i]<0,r=e[i+1],a=t[s?-e[i]:e[i]];if(s){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{r.call(a)}finally{}}}else try{r.call(a)}finally{}}class Pa{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ec(t,n,e){const i=fn(t);let s=0;for(;s<e.length;){const r=e[s];if("number"==typeof r){if(0!==r)break;s++;const o=e[s++],a=e[s++],l=e[s++];i?t.setAttribute(n,a,l,o):n.setAttributeNS(o,a,l)}else{const o=r,a=e[++s];Ed(o)?i&&t.setProperty(n,o,a):i?t.setAttribute(n,o,a):n.setAttribute(o,a),s++}}return s}function Uv(t){return 3===t||4===t||6===t}function Ed(t){return 64===t.charCodeAt(0)}function Sc(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const s=n[i];"number"==typeof s?e=s:0===e||Wv(t,e,s,null,-1===e||2===e?n[++i]:null)}}return t}function Wv(t,n,e,i,s){let r=0,o=t.length;if(-1===n)o=-1;else for(;r<t.length;){const a=t[r++];if("number"==typeof a){if(a===n){o=-1;break}if(a>n){o=r-1;break}}}for(;r<t.length;){const a=t[r];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==s&&(t[r+1]=s));if(i===t[r+1])return void(t[r+2]=s)}r++,null!==i&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,n),r=o+1),t.splice(r++,0,e),null!==i&&t.splice(r++,0,i),null!==s&&t.splice(r++,0,s)}function Yv(t){return-1!==t}function xo(t){return 32767&t}function bo(t,n){let e=function rA(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let Sd=!0;function Ac(t){const n=Sd;return Sd=t,n}let oA=0;function Ra(t,n){const e=Md(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,Ad(i.data,t),Ad(n,null),Ad(i.blueprint,null));const s=Mc(t,n),r=t.injectorIndex;if(Yv(s)){const o=xo(s),a=bo(s,n),l=a[1].data;for(let c=0;c<8;c++)n[r+c]=a[o+c]|l[o+c]}return n[r+8]=s,r}function Ad(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Md(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Mc(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,s=n;for(;null!==s;){const r=s[1],o=r.type;if(i=2===o?r.declTNode:1===o?s[6]:null,null===i)return-1;if(e++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function kc(t,n,e){!function aA(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(ka)&&(i=e[ka]),null==i&&(i=e[ka]=oA++);const s=255&i;n.data[t+(s>>5)]|=1<<s}(t,n,e)}function Kv(t,n,e){if(e&ct.Optional)return t;hc(n,"NodeInjector")}function Qv(t,n,e,i){if(e&ct.Optional&&void 0===i&&(i=null),0==(e&(ct.Self|ct.Host))){const s=t[9],r=ar(void 0);try{return s?s.get(n,i,e&ct.Optional):yv(n,i,e&ct.Optional)}finally{ar(r)}}return Kv(i,n,e)}function Jv(t,n,e,i=ct.Default,s){if(null!==t){const r=function hA(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(ka)?t[ka]:void 0;return"number"==typeof n?n>=0?255&n:cA:n}(e);if("function"==typeof r){if(!Vv(n,t,i))return i&ct.Host?Kv(s,e,i):Qv(n,e,i,s);try{const o=r(i);if(null!=o||i&ct.Optional)return o;hc(e)}finally{Gv()}}else if("number"==typeof r){let o=null,a=Md(t,n),l=-1,c=i&ct.Host?n[16][6]:null;for((-1===a||i&ct.SkipSelf)&&(l=-1===a?Mc(t,n):n[a+8],-1!==l&&t_(i,!1)?(o=n[1],a=xo(l),n=bo(l,n)):a=-1);-1!==a;){const h=n[1];if(e_(r,a,h.data)){const b=uA(a,n,e,o,i,c);if(b!==qv)return b}l=n[a+8],-1!==l&&t_(i,n[1].data[a+8]===c)&&e_(r,a,n)?(o=h,a=xo(l),n=bo(l,n)):a=-1}}}return Qv(n,e,i,s)}const qv={};function cA(){return new wo(In(),Se())}function uA(t,n,e,i,s,r){const o=n[1],a=o.data[t+8],h=Lc(a,o,e,null==i?vc(a)&&Sd:i!=o&&0!=(3&a.type),s&ct.Host&&r===a);return null!==h?Ba(n,o,h,a):qv}function Lc(t,n,e,i,s){const r=t.providerIndexes,o=n.data,a=1048575&r,l=t.directiveStart,h=r>>20,T=s?a+h:t.directiveEnd;for(let M=i?a:a+h;M<T;M++){const I=o[M];if(M<l&&e===I||M>=l&&I.type===e)return M}if(s){const M=o[l];if(M&&is(M)&&M.type===e)return l}return null}function Ba(t,n,e,i){let s=t[e];const r=n.data;if(function tA(t){return t instanceof Pa}(s)){const o=s;o.resolving&&function oS(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new Ye(-200,`Circular dependency in DI detected for ${t}${e}`)}($n(r[e]));const a=Ac(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?ar(o.injectImpl):null;Vv(t,i,ct.Default);try{s=t[e]=o.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function qS(t,n,e){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=n.type.prototype;if(i){const o=Sv(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}s&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,s),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],n)}finally{null!==l&&ar(l),Ac(a),o.resolving=!1,Gv()}}return s}function e_(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function t_(t,n){return!(t&ct.Self||t&ct.Host&&n)}class wo{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return Jv(this._tNode,this._lView,n,i,e)}}const To="__parameters__";function Eo(t,n,e){return lr(()=>{const i=function Id(t){return function(...e){if(t){const i=t(...e);for(const s in i)this[s]=i[s]}}}(n);function s(...r){if(this instanceof s)return i.apply(this,r),this;const o=new s(...r);return a.annotation=o,a;function a(l,c,h){const b=l.hasOwnProperty(To)?l[To]:Object.defineProperty(l,To,{value:[]})[To];for(;b.length<=h;)b.push(null);return(b[h]=b[h]||[]).push(o),l}}return e&&(s.prototype=Object.create(e.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class et{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Qe({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function zi(t,n){void 0===n&&(n=t);for(let e=0;e<t.length;e++){let i=t[e];Array.isArray(i)?(n===t&&(n=t.slice(0,e)),zi(i,n)):n!==t&&n.push(i)}return n}function xs(t,n){t.forEach(e=>Array.isArray(e)?xs(e,n):n(e))}function i_(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Ic(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function za(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function Ei(t,n,e){let i=So(t,n);return i>=0?t[1|i]=e:(i=~i,function gA(t,n,e,i){let s=t.length;if(s==n)t.push(e,i);else if(1===s)t.push(i,t[0]),t[0]=e;else{for(s--,t.push(t[s-1],t[s]);s>n;)t[s]=t[s-2],s--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function Fd(t,n){const e=So(t,n);if(e>=0)return t[1|e]}function So(t,n){return function o_(t,n,e){let i=0,s=t.length>>e;for(;s!==i;){const r=i+(s-i>>1),o=t[r<<e];if(n===o)return r<<e;o>n?s=r:i=r+1}return~(s<<e)}(t,n,1)}const ja={},Nd="__NG_DI_FLAG__",Fc="ngTempTokenPath",wA=/\n/gm,l_="__source",TA=Ut({provide:String,useValue:Ut});let Ga;function c_(t){const n=Ga;return Ga=t,n}function DA(t,n=ct.Default){if(void 0===Ga)throw new Ye(203,"");return null===Ga?yv(t,void 0,n):Ga.get(t,n&ct.Optional?null:void 0,n)}function Ee(t,n=ct.Default){return(function fS(){return sd}()||DA)(mt(t),n)}const Rd=Ee;function Bd(t){const n=[];for(let e=0;e<t.length;e++){const i=mt(t[e]);if(Array.isArray(i)){if(0===i.length)throw new Ye(900,"");let s,r=ct.Default;for(let o=0;o<i.length;o++){const a=i[o],l=EA(a);"number"==typeof l?-1===l?s=a.token:r|=l:s=a}n.push(Ee(s,r))}else n.push(Ee(i))}return n}function $a(t,n){return t[Nd]=n,t.prototype[Nd]=n,t}function EA(t){return t[Nd]}const Pc=$a(Eo("Optional"),8),Nc=$a(Eo("SkipSelf"),4);var Si=(()=>((Si=Si||{})[Si.Important=1]="Important",Si[Si.DashCase=2]="DashCase",Si))();const v_="__ngContext__";function Qn(t,n){t[v_]=n}function jd(t){const n=function Wa(t){return t[v_]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function $d(t,n){return undefined(t,n)}function Ya(t){const n=t[3];return ns(n)?n[3]:n}function Ud(t){return T_(t[13])}function Wd(t){return T_(t[4])}function T_(t){for(;null!==t&&!ns(t);)t=t[4];return t}function Mo(t,n,e,i,s){if(null!=i){let r,o=!1;ns(i)?r=i:_s(i)&&(o=!0,i=i[0]);const a=wn(i);0===t&&null!==e?null==s?k_(n,e,a):Pr(n,e,a,s||null,!0):1===t&&null!==e?Pr(n,e,a,s||null,!0):2===t?function qd(t,n,e){const i=Bc(t,n);i&&function iM(t,n,e,i){fn(t)?t.removeChild(n,e,i):n.removeChild(e)}(t,i,n,e)}(n,a,o):3===t&&n.destroyNode(a),null!=r&&function oM(t,n,e,i,s){const r=e[7];r!==wn(e)&&Mo(n,t,i,r,s);for(let a=10;a<e.length;a++){const l=e[a];Xa(l[1],l,t,n,i,r)}}(n,t,r,e,s)}}function Xd(t,n,e){if(fn(t))return t.createElement(n,e);{const i=null!==e?function IS(t){const n=t.toLowerCase();return"svg"===n?"http://www.w3.org/2000/svg":"math"===n?"http://www.w3.org/1998/MathML/":null}(e):null;return null===i?t.createElement(n):t.createElementNS(i,n)}}function E_(t,n){const e=t[9],i=e.indexOf(n),s=n[3];1024&n[2]&&(n[2]&=-1025,_d(s,-1)),e.splice(i,1)}function Zd(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const s=i[17];null!==s&&s!==t&&E_(s,i),n>0&&(t[e-1][4]=i[4]);const r=Ic(t,10+n);!function ZA(t,n){Xa(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function S_(t,n){if(!(256&n[2])){const e=n[11];fn(e)&&e.destroyNode&&Xa(t,n,e,3,null,null),function JA(t){let n=t[13];if(!n)return Kd(t[1],t);for(;n;){let e=null;if(_s(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)_s(n)&&Kd(n[1],n),n=n[3];null===n&&(n=t),_s(n)&&Kd(n[1],n),e=n&&n[4]}n=e}}(n)}}function Kd(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function nM(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const s=n[e[i]];if(!(s instanceof Pa)){const r=e[i+1];if(Array.isArray(r))for(let o=0;o<r.length;o+=2){const a=s[r[o]],l=r[o+1];try{l.call(a)}finally{}}else try{r.call(s)}finally{}}}}(t,n),function tM(t,n){const e=t.cleanup,i=n[7];let s=-1;if(null!==e)for(let r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const o=e[r+1],a="function"==typeof o?o(n):wn(n[o]),l=i[s=e[r+2]],c=e[r+3];"boolean"==typeof c?a.removeEventListener(e[r],l,c):c>=0?i[s=c]():i[s=-c].unsubscribe(),r+=2}else{const o=i[s=e[r+1]];e[r].call(o)}if(null!==i){for(let r=s+1;r<i.length;r++)i[r]();n[7]=null}}(t,n),1===n[1].type&&fn(n[11])&&n[11].destroy();const e=n[17];if(null!==e&&ns(n[3])){e!==n[3]&&E_(e,n);const i=n[19];null!==i&&i.detachView(t)}}}function A_(t,n,e){return function M_(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[0];if(2&i.flags){const s=t.data[i.directiveStart].encapsulation;if(s===es.None||s===es.Emulated)return null}return Ti(i,e)}(t,n.parent,e)}function Pr(t,n,e,i,s){fn(t)?t.insertBefore(n,e,i,s):n.insertBefore(e,i,s)}function k_(t,n,e){fn(t)?t.appendChild(n,e):n.appendChild(e)}function L_(t,n,e,i,s){null!==i?Pr(t,n,e,i,s):k_(t,n,e)}function Bc(t,n){return fn(t)?t.parentNode(n):n.parentNode}function I_(t,n,e){return F_(t,n,e)}let zc,jc,F_=function O_(t,n,e){return 40&t.type?Ti(t,e):null};function Vc(t,n,e,i){const s=A_(t,i,n),r=n[11],a=I_(i.parent||n[6],i,n);if(null!=s)if(Array.isArray(e))for(let l=0;l<e.length;l++)L_(r,s,e[l],a,!1);else L_(r,s,e,a,!1)}function Hc(t,n){if(null!==n){const e=n.type;if(3&e)return Ti(n,t);if(4&e)return Jd(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return Hc(t,i);{const s=t[n.index];return ns(s)?Jd(-1,s):wn(s)}}if(32&e)return $d(n,t)()||wn(t[n.index]);{const i=N_(t,n);return null!==i?Array.isArray(i)?i[0]:Hc(Ya(t[16]),i):Hc(t,n.next)}}return null}function N_(t,n){return null!==n?t[16][6].projection[n.projection]:null}function Jd(t,n){const e=10+t+1;if(e<n.length){const i=n[e],s=i[1].firstChild;if(null!==s)return Hc(i,s)}return n[7]}function ef(t,n,e,i,s,r,o){for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===n&&(a&&Qn(wn(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)ef(t,n,e.child,i,s,r,!1),Mo(n,t,s,a,r);else if(32&l){const c=$d(e,i);let h;for(;h=c();)Mo(n,t,s,h,r);Mo(n,t,s,a,r)}else 16&l?R_(t,n,i,e,s,r):Mo(n,t,s,a,r);e=o?e.projectionNext:e.next}}function Xa(t,n,e,i,s,r){ef(e,i,t.firstChild,n,s,r,!1)}function R_(t,n,e,i,s,r){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Mo(n,t,s,l[c],r);else ef(t,n,l,o[3],s,r,!0)}function B_(t,n,e){fn(t)?t.setAttribute(n,"style",e):n.style.cssText=e}function tf(t,n,e){fn(t)?""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e):n.className=e}function Nr(t){var n;return(null===(n=function nf(){if(void 0===zc&&(zc=null,jt.trustedTypes))try{zc=jt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return zc}())||void 0===n?void 0:n.createHTML(t))||t}function V_(t){var n;return(null===(n=function sf(){if(void 0===jc&&(jc=null,jt.trustedTypes))try{jc=jt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return jc}())||void 0===n?void 0:n.createHTML(t))||t}class Rr{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class hM extends Rr{getTypeName(){return"HTML"}}class dM extends Rr{getTypeName(){return"Style"}}class fM extends Rr{getTypeName(){return"Script"}}class pM extends Rr{getTypeName(){return"URL"}}class gM extends Rr{getTypeName(){return"ResourceURL"}}function Ai(t){return t instanceof Rr?t.changingThisBreaksApplicationSecurity:t}function bs(t,n){const e=j_(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}function j_(t){return t instanceof Rr&&t.getTypeName()||null}class bM{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(Nr(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class wM{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Nr(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Nr(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let s=e.length-1;0<s;s--){const o=e.item(s).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&n.removeAttribute(o)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const TM=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,DM=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Za(t){return(t=String(t)).match(TM)||t.match(DM)?t:"unsafe:"+t}function $_(t){return(t=String(t)).split(",").map(n=>Za(n.trim())).join(", ")}function ws(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Ka(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const U_=ws("area,br,col,hr,img,wbr"),W_=ws("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Y_=ws("rp,rt"),rf=Ka(U_,Ka(W_,ws("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ka(Y_,ws("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ka(Y_,W_)),af=ws("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),lf=ws("srcset"),X_=Ka(af,lf,ws("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ws("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),EM=ws("script,style,template");class SM{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let s=this.checkClobberedElement(e,e.nextSibling);if(s){e=s;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!rf.hasOwnProperty(e))return this.sanitizedSomething=!0,!EM.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let s=0;s<i.length;s++){const r=i.item(s),o=r.name,a=o.toLowerCase();if(!X_.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=r.value;af[a]&&(l=Za(l)),lf[a]&&(l=$_(l)),this.buf.push(" ",o,'="',Z_(l),'"')}return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();rf.hasOwnProperty(e)&&!U_.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(Z_(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const AM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,MM=/([^\#-~ |!])/g;function Z_(t){return t.replace(/&/g,"&").replace(AM,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(MM,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Gc;function K_(t,n){let e=null;try{Gc=Gc||function G_(t){const n=new wM(t);return function CM(){try{return!!(new window.DOMParser).parseFromString(Nr(""),"text/html")}catch(t){return!1}}()?new bM(n):n}(t);let i=n?String(n):"";e=Gc.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=e.innerHTML,e=Gc.getInertBodyElement(i)}while(i!==r);return Nr((new SM).sanitizeChildren(cf(e)||e))}finally{if(e){const i=cf(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function cf(t){return"content"in t&&function kM(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Jt=(()=>((Jt=Jt||{})[Jt.NONE=0]="NONE",Jt[Jt.HTML=1]="HTML",Jt[Jt.STYLE=2]="STYLE",Jt[Jt.SCRIPT=3]="SCRIPT",Jt[Jt.URL=4]="URL",Jt[Jt.RESOURCE_URL=5]="RESOURCE_URL",Jt))();function Qa(t){const n=function Ja(){const t=Se();return t&&t[12]}();return n?V_(n.sanitize(Jt.HTML,t)||""):bs(t,"HTML")?V_(Ai(t)):K_(gd(),rt(t))}function hf(t){return t.ngOriginalError}function HM(t,...n){t.error(...n)}class qa{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=function VM(t){return t&&t.ngErrorLogger||HM}(n);i(this._console,"ERROR",n),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&hf(n);for(;e&&hf(e);)e=hf(e);return e||null}}const YM=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(jt))();function q_(t){return t.ownerDocument.defaultView}function ko(t){return t.ownerDocument}function Cs(t){return t instanceof Function?t():t}function ty(t,n,e){let i=t.length;for(;;){const s=t.indexOf(n,e);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const r=n.length;if(s+r===i||t.charCodeAt(s+r)<=32)return s}e=s+1}}const ny="ng-template";function ZM(t,n,e){let i=0;for(;i<t.length;){let s=t[i++];if(e&&"class"===s){if(s=t[i],-1!==ty(s.toLowerCase(),n,0))return!0}else if(1===s){for(;i<t.length&&"string"==typeof(s=t[i++]);)if(s.toLowerCase()===n)return!0;return!1}}return!1}function iy(t){return 4===t.type&&t.value!==ny}function KM(t,n,e){return n===(4!==t.type||e?t.value:ny)}function QM(t,n,e){let i=4;const s=t.attrs||[],r=function ek(t){for(let n=0;n<t.length;n++)if(Uv(t[n]))return n;return t.length}(s);let o=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!KM(t,l,e)||""===l&&1===n.length){if(ss(i))return!1;o=!0}}else{const c=8&i?l:n[++a];if(8&i&&null!==t.attrs){if(!ZM(t.attrs,c,e)){if(ss(i))return!1;o=!0}continue}const b=JM(8&i?"class":l,s,iy(t),e);if(-1===b){if(ss(i))return!1;o=!0;continue}if(""!==c){let T;T=b>r?"":s[b+1].toLowerCase();const M=8&i?T:null;if(M&&-1!==ty(M,c,0)||2&i&&c!==T){if(ss(i))return!1;o=!0}}}}else{if(!o&&!ss(i)&&!ss(l))return!1;if(o&&ss(l))continue;o=!1,i=l|1&i}}return ss(i)||o}function ss(t){return 0==(1&t)}function JM(t,n,e,i){if(null===n)return-1;let s=0;if(i||!e){let r=!1;for(;s<n.length;){const o=n[s];if(o===t)return s;if(3===o||6===o)r=!0;else{if(1===o||2===o){let a=n[++s];for(;"string"==typeof a;)a=n[++s];continue}if(4===o)break;if(0===o){s+=4;continue}}s+=r?1:2}return-1}return function tk(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function sy(t,n,e=!1){for(let i=0;i<n.length;i++)if(QM(t,n[i],e))return!0;return!1}function nk(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let s=0;s<t.length;s++)if(t[s]!==i[s])continue e;return!0}}return!1}function ry(t,n){return t?":not("+n.trim()+")":n}function ik(t){let n=t[0],e=1,i=2,s="",r=!1;for(;e<t.length;){let o=t[e];if("string"==typeof o)if(2&i){const a=t[++e];s+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""!==s&&!ss(o)&&(n+=ry(r,s),s=""),i=o,r=r||!ss(i);e++}return""!==s&&(n+=ry(r,s)),n}const at={};function G(t){oy(Lt(),Se(),si()+t,!1)}function oy(t,n,e,i){if(!i)if(3==(3&n[2])){const r=t.preOrderCheckHooks;null!==r&&Tc(n,r,e)}else{const r=t.preOrderHooks;null!==r&&Dc(n,r,0,e)}hr(e)}function $c(t,n){return t<<17|n<<2}function rs(t){return t>>17&32767}function df(t){return 2|t}function js(t){return(131068&t)>>2}function ff(t,n){return-131069&t|n<<2}function pf(t){return 1|t}function vy(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const s=e[i],r=e[i+1];if(-1!==r){const o=t.data[r];Cd(s),o.contentQueries(2,n[r],r)}}}function el(t,n,e,i,s,r,o,a,l,c){const h=n.blueprint.slice();return h[0]=s,h[2]=140|i,Iv(h),h[3]=h[15]=t,h[8]=e,h[10]=o||t&&t[10],h[11]=a||t&&t[11],h[12]=l||t&&t[12]||null,h[9]=c||t&&t[9]||null,h[6]=r,h[16]=2==n.type?t[16]:h,h}function Io(t,n,e,i,s){let r=t.data[n];if(null===r)r=function Cf(t,n,e,i,s){const r=Pv(),o=yd(),l=t.data[n]=function bk(t,n,e,i,s,r){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,e,n,i,s);return null===t.firstChild&&(t.firstChild=l),null!==r&&(o?null==r.child&&null!==l.parent&&(r.child=l):null===r.next&&(r.next=l)),l}(t,n,e,i,s),function $S(){return ot.lFrame.inI18n}()&&(r.flags|=64);else if(64&r.type){r.type=e,r.value=i,r.attrs=s;const o=function Fa(){const t=ot.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();r.injectorIndex=null===o?-1:o.injectorIndex}return ys(r,!0),r}function Oo(t,n,e,i){if(0===e)return-1;const s=n.length;for(let r=0;r<e;r++)n.push(i),t.blueprint.push(i),t.data.push(null);return s}function tl(t,n,e){bc(n);try{const i=t.viewQuery;null!==i&&If(1,i,e);const s=t.template;null!==s&&_y(t,n,s,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&vy(t,n),t.staticViewQueries&&If(2,t.viewQuery,e);const r=t.components;null!==r&&function _k(t,n){for(let e=0;e<n.length;e++)Vk(t,n[e])}(n,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,wc()}}function Fo(t,n,e,i){const s=n[2];if(256!=(256&s)){bc(n);try{Iv(n),function Nv(t){return ot.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&_y(t,n,e,2,i);const o=3==(3&s);if(o){const c=t.preOrderCheckHooks;null!==c&&Tc(n,c,null)}else{const c=t.preOrderHooks;null!==c&&Dc(n,c,0,null),Td(n,0)}if(function Rk(t){for(let n=Ud(t);null!==n;n=Wd(n)){if(!n[2])continue;const e=n[9];for(let i=0;i<e.length;i++){const s=e[i],r=s[3];0==(1024&s[2])&&_d(r,1),s[2]|=1024}}}(n),function Nk(t){for(let n=Ud(t);null!==n;n=Wd(n))for(let e=10;e<n.length;e++){const i=n[e],s=i[1];vd(i)&&Fo(s,i,s.template,i[8])}}(n),null!==t.contentQueries&&vy(t,n),o){const c=t.contentCheckHooks;null!==c&&Tc(n,c)}else{const c=t.contentHooks;null!==c&&Dc(n,c,1),Td(n,1)}!function mk(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const s=e[i];if(s<0)hr(~s);else{const r=s,o=e[++i],a=e[++i];US(o,r),a(2,n[r])}}}finally{hr(-1)}}(t,n);const a=t.components;null!==a&&function vk(t,n){for(let e=0;e<n.length;e++)Bk(t,n[e])}(n,a);const l=t.viewQuery;if(null!==l&&If(2,l,i),o){const c=t.viewCheckHooks;null!==c&&Tc(n,c)}else{const c=t.viewHooks;null!==c&&Dc(n,c,2),Td(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-73,1024&n[2]&&(n[2]&=-1025,_d(n[3],-1))}finally{wc()}}}function yk(t,n,e,i){const s=n[10],o=Lv(n);try{!o&&s.begin&&s.begin(),o&&tl(t,n,i),Fo(t,n,e,i)}finally{!o&&s.end&&s.end()}}function _y(t,n,e,i,s){const r=si(),o=2&i;try{hr(-1),o&&n.length>20&&oy(t,n,20,!1),e(i,s)}finally{hr(r)}}function yy(t,n,e){if(cd(n)){const s=n.directiveEnd;for(let r=n.directiveStart;r<s;r++){const o=t.data[r];o.contentQueries&&o.contentQueries(1,e[r],r)}}}function Tf(t,n,e){!Fv()||(function Ak(t,n,e,i){const s=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||Ra(e,n),Qn(i,n);const o=e.initialInputs;for(let a=s;a<r;a++){const l=t.data[a],c=is(l);c&&Ok(n,e,l);const h=Ba(n,t,a,e);Qn(h,n),null!==o&&Fk(0,a-s,h,l,0,o),c&&(Di(e.index,n)[8]=h)}}(t,n,e,Ti(e,n)),128==(128&e.flags)&&function Mk(t,n,e){const i=e.directiveStart,s=e.directiveEnd,o=e.index,a=function WS(){return ot.lFrame.currentDirectiveIndex}();try{hr(o);for(let l=i;l<s;l++){const c=t.data[l],h=n[l];bd(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Sy(c,h)}}finally{hr(-1),bd(a)}}(t,n,e))}function Df(t,n,e=Ti){const i=n.localNames;if(null!==i){let s=n.index+1;for(let r=0;r<i.length;r+=2){const o=i[r+1],a=-1===o?e(n,t):t[o];t[s++]=a}}}function xy(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=Yc(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function Yc(t,n,e,i,s,r,o,a,l,c){const h=20+i,b=h+s,T=function xk(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:at);return e}(h,b),M="function"==typeof c?c():c;return T[1]={type:t,blueprint:T,template:e,queries:null,viewQuery:a,declTNode:n,data:T.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:b,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:M,incompleteFirstPass:!1}}function Cy(t,n,e,i){const s=Oy(n);null===e?s.push(i):(s.push(e),t.firstCreatePass&&Fy(t).push(i,s.length-1))}function Ty(t,n,e){for(let i in t)if(t.hasOwnProperty(i)){const s=t[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(n,s):e[i]=[n,s]}return e}function Ef(t,n,e,i){let s=!1;if(Fv()){const r=function kk(t,n,e){const i=t.directiveRegistry;let s=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];sy(e,o.selectors,!1)&&(s||(s=[]),kc(Ra(e,n),t,o.type),is(o)?(Ay(t,e),s.unshift(o)):s.push(o))}return s}(t,n,e),o=null===i?null:{"":-1};if(null!==r){s=!0,My(e,t.data.length,r.length);for(let h=0;h<r.length;h++){const b=r[h];b.providersResolver&&b.providersResolver(b)}let a=!1,l=!1,c=Oo(t,n,r.length,null);for(let h=0;h<r.length;h++){const b=r[h];e.mergedAttrs=Sc(e.mergedAttrs,b.hostAttrs),ky(t,e,n,c,b),Ik(c,b,o),null!==b.contentQueries&&(e.flags|=8),(null!==b.hostBindings||null!==b.hostAttrs||0!==b.hostVars)&&(e.flags|=128);const T=b.type.prototype;!a&&(T.ngOnChanges||T.ngOnInit||T.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),a=!0),!l&&(T.ngOnChanges||T.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function wk(t,n){const i=n.directiveEnd,s=t.data,r=n.attrs,o=[];let a=null,l=null;for(let c=n.directiveStart;c<i;c++){const h=s[c],b=h.inputs,T=null===r||iy(n)?null:Pk(b,r);o.push(T),a=Ty(b,c,a),l=Ty(h.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(n.flags|=16),a.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=o,n.inputs=a,n.outputs=l}(t,e)}o&&function Lk(t,n,e){if(n){const i=t.localNames=[];for(let s=0;s<n.length;s+=2){const r=e[n[s+1]];if(null==r)throw new Ye(-301,!1);i.push(n[s],r)}}}(e,i,o)}return e.mergedAttrs=Sc(e.mergedAttrs,e.attrs),s}function Ey(t,n,e,i,s,r){const o=r.hostBindings;if(o){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~n.index;(function Sk(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,s,o)}}function Sy(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function Ay(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function Ik(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;is(n)&&(e[""]=t)}}function My(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function ky(t,n,e,i,s){t.data[i]=s;const r=s.factory||(s.factory=Or(s.type)),o=new Pa(r,is(s),null);t.blueprint[i]=o,e[i]=o,Ey(t,n,0,i,Oo(t,e,s.hostVars,at),s)}function Ok(t,n,e){const i=Ti(n,t),s=xy(e),r=t[10],o=Xc(t,el(t,s,null,e.onPush?64:16,i,n,r,r.createRenderer(i,e),null,null));t[n.index]=o}function Ts(t,n,e,i,s,r){const o=Ti(t,n);!function Sf(t,n,e,i,s,r,o){if(null==r)fn(t)?t.removeAttribute(n,s,e):n.removeAttribute(s);else{const a=null==o?rt(r):o(r,i||"",s);fn(t)?t.setAttribute(n,s,a,e):e?n.setAttributeNS(e,s,a):n.setAttribute(s,a)}}(n[11],o,r,t.value,e,i,s)}function Fk(t,n,e,i,s,r){const o=r[n];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],h=o[l++],b=o[l++];null!==a?i.setInput(e,b,c,h):e[h]=b}}}function Pk(t,n){let e=null,i=0;for(;i<n.length;){const s=n[i];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===e&&(e=[]),e.push(s,t[s],n[i+1])),i+=2}else i+=2;else i+=4}return e}function Ly(t,n,e,i){return new Array(t,!0,!1,n,null,0,i,e,null,null)}function Bk(t,n){const e=Di(n,t);if(vd(e)){const i=e[1];80&e[2]?Fo(i,e,i.template,e[8]):e[5]>0&&Af(e)}}function Af(t){for(let i=Ud(t);null!==i;i=Wd(i))for(let s=10;s<i.length;s++){const r=i[s];if(1024&r[2]){const o=r[1];Fo(o,r,o.template,r[8])}else r[5]>0&&Af(r)}const e=t[1].components;if(null!==e)for(let i=0;i<e.length;i++){const s=Di(e[i],t);vd(s)&&s[5]>0&&Af(s)}}function Vk(t,n){const e=Di(n,t),i=e[1];(function Hk(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),tl(i,e,e[8])}function Xc(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function Mf(t){for(;t;){t[2]|=64;const n=Ya(t);if(CS(t)&&!n)return t;t=n}return null}function Iy(t){!function kf(t){for(let n=0;n<t.components.length;n++){const e=t.components[n],i=jd(e),s=i[1];yk(s,i,s.template,e)}}(t[8])}function If(t,n,e){Cd(0),n(t,e)}const jk=(()=>Promise.resolve(null))();function Oy(t){return t[7]||(t[7]=[])}function Fy(t){return t.cleanup||(t.cleanup=[])}function Ny(t,n){const e=t[9],i=e?e.get(qa,null):null;i&&i.handleError(n)}function Ry(t,n,e,i,s){for(let r=0;r<e.length;){const o=e[r++],a=e[r++],l=n[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,i,a):l[a]=s}}function Gs(t,n,e){const i=yc(n,t);!function D_(t,n,e){fn(t)?t.setValue(n,e):n.textContent=e}(t[11],i,e)}function Zc(t,n,e){let i=e?t.styles:null,s=e?t.classes:null,r=0;if(null!==n)for(let o=0;o<n.length;o++){const a=n[o];"number"==typeof a?r=a:1==r?s=qh(s,a):2==r&&(i=qh(i,a+": "+n[++o]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=s:t.classesWithoutHost=s}const Of=new et("INJECTOR",-1);class By{get(n,e=ja){if(e===ja){const i=new Error(`NullInjectorError: No provider for ${Ht(n)}!`);throw i.name="NullInjectorError",i}return e}}const Ff=new et("Set Injector scope."),nl={},Uk={};let Pf;function Vy(){return void 0===Pf&&(Pf=new By),Pf}function Hy(t,n=null,e=null,i){const s=zy(t,n,e,i);return s._resolveInjectorDefTypes(),s}function zy(t,n=null,e=null,i){return new Wk(t,e,n||Vy(),i)}class Wk{constructor(n,e,i,s=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&xs(e,a=>this.processProvider(a,n,e)),xs([n],a=>this.processInjectorType(a,[],r)),this.records.set(Of,Po(void 0,this));const o=this.records.get(Ff);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof n?null:Ht(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,e=ja,i=ct.Default){this.assertNotDestroyed();const s=c_(this),r=ar(void 0);try{if(!(i&ct.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function eL(t){return"function"==typeof t||"object"==typeof t&&t instanceof et}(n)&&nd(n);a=l&&this.injectableDefInScope(l)?Po(Nf(n),nl):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&ct.Self?Vy():this.parent).get(n,e=i&ct.Optional&&e===ja?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Fc]=o[Fc]||[]).unshift(Ht(n)),s)throw o;return function SA(t,n,e,i){const s=t[Fc];throw n[l_]&&s.unshift(n[l_]),t.message=function AA(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=Ht(n);if(Array.isArray(n))s=n.map(Ht).join(" -> ");else if("object"==typeof n){let r=[];for(let o in n)if(n.hasOwnProperty(o)){let a=n[o];r.push(o+":"+("string"==typeof a?JSON.stringify(a):Ht(a)))}s=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${s}]: ${t.replace(wA,"\n ")}`}("\n"+t.message,s,e,i),t.ngTokenPath=s,t[Fc]=null,t}(o,n,"R3InjectorError",this.source)}throw o}finally{ar(r),c_(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,s)=>n.push(Ht(s))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ye(205,!1)}processInjectorType(n,e,i){if(!(n=mt(n)))return!1;let s=vv(n);const r=null==s&&n.ngModule||void 0,o=void 0===r?n:r,a=-1!==i.indexOf(o);if(void 0!==r&&(s=vv(r)),null==s)return!1;if(null!=s.imports&&!a){let h;i.push(o);try{xs(s.imports,b=>{this.processInjectorType(b,e,i)&&(void 0===h&&(h=[]),h.push(b))})}finally{}if(void 0!==h)for(let b=0;b<h.length;b++){const{ngModule:T,providers:M}=h[b];xs(M,I=>this.processProvider(I,T,M||Wt))}}this.injectorDefTypes.add(o);const l=Or(o)||(()=>new o);this.records.set(o,Po(l,nl));const c=s.providers;if(null!=c&&!a){const h=n;xs(c,b=>this.processProvider(b,h,c))}return void 0!==r&&void 0!==n.providers}processProvider(n,e,i){let s=No(n=mt(n))?n:mt(n&&n.provide);const r=function Xk(t,n,e){return Gy(t)?Po(void 0,t.useValue):Po(function jy(t,n,e){let i;if(No(t)){const s=mt(t);return Or(s)||Nf(s)}if(Gy(t))i=()=>mt(t.useValue);else if(function Kk(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...Bd(t.deps||[]));else if(function Zk(t){return!(!t||!t.useExisting)}(t))i=()=>Ee(mt(t.useExisting));else{const s=mt(t&&(t.useClass||t.provide));if(!function Jk(t){return!!t.deps}(t))return Or(s)||Nf(s);i=()=>new s(...Bd(t.deps))}return i}(t),nl)}(n);if(No(n)||!0!==n.multi)this.records.get(s);else{let o=this.records.get(s);o||(o=Po(void 0,nl,!0),o.factory=()=>Bd(o.multi),this.records.set(s,o)),s=n,o.multi.push(n)}this.records.set(s,r)}hydrate(n,e){return e.value===nl&&(e.value=Uk,e.value=e.factory()),"object"==typeof e.value&&e.value&&function qk(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=mt(n.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Nf(t){const n=nd(t),e=null!==n?n.factory:Or(t);if(null!==e)return e;if(t instanceof et)throw new Ye(204,!1);if(t instanceof Function)return function Yk(t){const n=t.length;if(n>0)throw za(n,"?"),new Ye(204,!1);const e=function uS(t){const n=t&&(t[dc]||t[_v]);if(n){const e=function hS(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Ye(204,!1)}function Po(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function Gy(t){return null!==t&&"object"==typeof t&&TA in t}function No(t){return"function"==typeof t}let oi=(()=>{class t{static create(e,i){var s;if(Array.isArray(e))return Hy({name:""},i,e,"");{const r=null!==(s=e.name)&&void 0!==s?s:"";return Hy({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=ja,t.NULL=new By,t.\u0275prov=Qe({token:t,providedIn:"any",factory:()=>Ee(Of)}),t.__NG_ELEMENT_ID__=-1,t})();function lL(t,n){Cc(jd(t)[1],In())}function qt(t){let n=function tx(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let s;if(is(t))s=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new Ye(903,"");s=n.\u0275dir}if(s){if(e){i.push(s);const o=t;o.inputs=Vf(t.inputs),o.declaredInputs=Vf(t.declaredInputs),o.outputs=Vf(t.outputs);const a=s.hostBindings;a&&dL(t,a);const l=s.viewQuery,c=s.contentQueries;if(l&&uL(t,l),c&&hL(t,c),Jh(t.inputs,s.inputs),Jh(t.declaredInputs,s.declaredInputs),Jh(t.outputs,s.outputs),is(s)&&s.data.animation){const h=t.data;h.animation=(h.animation||[]).concat(s.data.animation)}}const r=s.features;if(r)for(let o=0;o<r.length;o++){const a=r[o];a&&a.ngInherit&&a(t),a===qt&&(e=!1)}}n=Object.getPrototypeOf(n)}!function cL(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const s=t[i];s.hostVars=n+=s.hostVars,s.hostAttrs=Sc(s.hostAttrs,e=Sc(e,s.hostAttrs))}}(i)}function Vf(t){return t===fo?{}:t===Wt?[]:t}function uL(t,n){const e=t.viewQuery;t.viewQuery=e?(i,s)=>{n(i,s),e(i,s)}:n}function hL(t,n){const e=t.contentQueries;t.contentQueries=e?(i,s,r)=>{n(i,s,r),e(i,s,r)}:n}function dL(t,n){const e=t.hostBindings;t.hostBindings=e?(i,s)=>{n(i,s),e(i,s)}:n}let Kc=null;function Ro(){if(!Kc){const t=jt.Symbol;if(t&&t.iterator)Kc=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Kc=i)}}}return Kc}function il(t){return!!Hf(t)&&(Array.isArray(t)||!(t instanceof Map)&&Ro()in t)}function Hf(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Jn(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function me(t,n,e,i){const s=Se();return Jn(s,yo(),n)&&(Lt(),Ts(rn(),s,t,n,e,i)),me}function Vo(t,n,e,i){return Jn(t,yo(),e)?n+rt(e)+i:at}function ue(t,n,e,i,s,r,o,a){const l=Se(),c=Lt(),h=t+20,b=c.firstCreatePass?function yL(t,n,e,i,s,r,o,a,l){const c=n.consts,h=Io(n,t,4,o||null,ur(c,a));Ef(n,e,h,ur(c,l)),Cc(n,h);const b=h.tViews=Yc(2,h,i,s,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,h),b.queries=n.queries.embeddedTView(h)),h}(h,c,l,n,e,i,s,r,o):c.data[h];ys(b,!1);const T=l[11].createComment("");Vc(c,l,T,b),Qn(T,l),Xc(l,l[h]=Ly(T,l,T,b)),_c(b)&&Tf(c,l,b),null!=o&&Df(l,b,a)}function Le(t,n=ct.Default){const e=Se();return null===e?Ee(t,n):Jv(In(),e,mt(t),n)}function j(t,n,e){const i=Se();return Jn(i,yo(),n)&&function Mi(t,n,e,i,s,r,o,a){const l=Ti(n,e);let h,c=n.inputs;!a&&null!=c&&(h=c[i])?(Ry(t,e,h,i,s),vc(n)&&function Tk(t,n){const e=Di(n,t);16&e[2]||(e[2]|=64)}(e,n.index)):3&n.type&&(i=function Ck(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),s=null!=o?o(s,n.value||"",i):s,fn(r)?r.setProperty(l,i,s):Ed(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}(Lt(),rn(),i,t,n,i[11],e,!1),j}function Uf(t,n,e,i,s){const o=s?"class":"style";Ry(t,e,n.inputs[o],o,i)}function q(t,n,e,i){const s=Se(),r=Lt(),o=20+t,a=s[11],l=s[o]=Xd(a,n,function JS(){return ot.lFrame.currentNamespace}()),c=r.firstCreatePass?function HL(t,n,e,i,s,r,o){const a=n.consts,c=Io(n,t,2,s,ur(a,r));return Ef(n,e,c,ur(a,o)),null!==c.attrs&&Zc(c,c.attrs,!1),null!==c.mergedAttrs&&Zc(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(o,r,s,0,n,e,i):r.data[o];ys(c,!0);const h=c.mergedAttrs;null!==h&&Ec(a,l,h);const b=c.classes;null!==b&&tf(a,l,b);const T=c.styles;return null!==T&&B_(a,l,T),64!=(64&c.flags)&&Vc(r,s,l,c),0===function BS(){return ot.lFrame.elementDepthCount}()&&Qn(l,s),function VS(){ot.lFrame.elementDepthCount++}(),_c(c)&&(Tf(r,s,c),yy(r,c,s)),null!==i&&Df(s,c),q}function re(){let t=In();yd()?xd():(t=t.parent,ys(t,!1));const n=t;!function HS(){ot.lFrame.elementDepthCount--}();const e=Lt();return e.firstCreatePass&&(Cc(e,t),cd(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function iA(t){return 0!=(16&t.flags)}(n)&&Uf(e,n,Se(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function sA(t){return 0!=(32&t.flags)}(n)&&Uf(e,n,Se(),n.stylesWithoutHost,!1),re}function Ie(t,n,e,i){return q(t,n,e,i),re(),Ie}function Wf(t,n,e){const i=Se(),s=Lt(),r=t+20,o=s.firstCreatePass?function zL(t,n,e,i,s){const r=n.consts,o=ur(r,i),a=Io(n,t,8,"ng-container",o);return null!==o&&Zc(a,o,!0),Ef(n,e,a,ur(r,s)),null!==n.queries&&n.queries.elementStart(n,a),a}(r,s,i,n,e):s.data[r];ys(o,!0);const a=i[r]=i[11].createComment("");return Vc(s,i,a,o),Qn(a,i),_c(o)&&(Tf(s,i,o),yy(s,o,i)),null!=e&&Df(i,o),Wf}function Yf(){let t=In();const n=Lt();return yd()?xd():(t=t.parent,ys(t,!1)),n.firstCreatePass&&(Cc(n,t),cd(t)&&n.queries.elementEnd(t)),Yf}function gr(t,n,e){return Wf(t,n,e),Yf(),gr}function Be(){return Se()}function Xf(t){return!!t&&"function"==typeof t.then}function Cx(t){return!!t&&"function"==typeof t.subscribe}const jL=Cx;function ye(t,n,e,i){const s=Se(),r=Lt(),o=In();return function Dx(t,n,e,i,s,r,o,a){const l=_c(i),h=t.firstCreatePass&&Fy(t),b=n[8],T=Oy(n);let M=!0;if(3&i.type||a){const P=Ti(i,n),K=a?a(P):P,Q=T.length,ne=a?ge=>a(wn(ge[i.index])):i.index;if(fn(e)){let ge=null;if(!a&&l&&(ge=function GL(t,n,e,i){const s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const o=s[r];if(o===e&&s[r+1]===i){const a=n[7],l=s[r+2];return a.length>l?a[l]:null}"string"==typeof o&&(r+=2)}return null}(t,n,s,i.index)),null!==ge)(ge.__ngLastListenerFn__||ge).__ngNextListenerFn__=r,ge.__ngLastListenerFn__=r,M=!1;else{r=Zf(i,n,b,r,!1);const Ce=e.listen(K,s,r);T.push(r,Ce),h&&h.push(s,ne,Q,Q+1)}}else r=Zf(i,n,b,r,!0),K.addEventListener(s,r,o),T.push(r),h&&h.push(s,ne,Q,o)}else r=Zf(i,n,b,r,!1);const I=i.outputs;let B;if(M&&null!==I&&(B=I[s])){const P=B.length;if(P)for(let K=0;K<P;K+=2){const we=n[B[K]][B[K+1]].subscribe(r),Oe=T.length;T.push(r,we),h&&h.push(s,i.index,Oe,-(Oe+1))}}}(r,s,s[11],o,t,n,!!e,i),ye}function Ex(t,n,e,i){try{return!1!==e(i)}catch(s){return Ny(t,s),!1}}function Zf(t,n,e,i,s){return function r(o){if(o===Function)return i;const a=2&t.flags?Di(t.index,n):n;0==(32&n[2])&&Mf(a);let l=Ex(n,0,i,o),c=r.__ngNextListenerFn__;for(;c;)l=Ex(n,0,c,o)&&l,c=c.__ngNextListenerFn__;return s&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function W(t=1){return function XS(t){return(ot.lFrame.contextLView=function ZS(t,n){for(;t>0;)n=n[15],t--;return n}(t,ot.lFrame.contextLView))[8]}(t)}function $L(t,n){let e=null;const i=function qM(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let s=0;s<n.length;s++){const r=n[s];if("*"!==r){if(null===i?sy(t,r,!0):nk(i,r))return s}else e=s}return e}function Nx(t,n,e,i,s){const r=t[e+1],o=null===n;let a=i?rs(r):js(r),l=!1;for(;0!==a&&(!1===l||o);){const h=t[a+1];YL(t[a],n)&&(l=!0,t[a+1]=i?pf(h):df(h)),a=i?rs(h):js(h)}l&&(t[e+1]=i?df(r):pf(r))}function YL(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&So(t,n)>=0}const Fn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Rx(t){return t.substring(Fn.key,Fn.keyEnd)}function Bx(t,n){const e=Fn.textEnd;return e===n?-1:(n=Fn.keyEnd=function QL(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,Fn.key=n,e),Xo(t,n,e))}function Xo(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function vt(t,n,e){return as(t,n,e,!1),vt}function an(t,n){return as(t,n,null,!0),an}function Ss(t,n){for(let e=function ZL(t){return function Hx(t){Fn.key=0,Fn.keyEnd=0,Fn.value=0,Fn.valueEnd=0,Fn.textEnd=t.length}(t),Bx(t,Xo(t,0,Fn.textEnd))}(n);e>=0;e=Bx(n,e))Ei(t,Rx(n),!0)}function as(t,n,e,i){const s=Se(),r=Lt(),o=zs(2);r.firstUpdatePass&&Ux(r,t,o,i),n!==at&&Jn(s,o,n)&&Yx(r,r.data[si()],s,s[11],t,s[o+1]=function aI(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Ht(Ai(t)))),t}(n,e),i,o)}function ls(t,n,e,i){const s=Lt(),r=zs(2);s.firstUpdatePass&&Ux(s,null,r,i);const o=Se();if(e!==at&&Jn(o,r,e)){const a=s.data[si()];if(Zx(a,i)&&!$x(s,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=qh(l,e||"")),Uf(s,a,o,e,i)}else!function oI(t,n,e,i,s,r,o,a){s===at&&(s=Wt);let l=0,c=0,h=0<s.length?s[0]:null,b=0<r.length?r[0]:null;for(;null!==h||null!==b;){const T=l<s.length?s[l+1]:void 0,M=c<r.length?r[c+1]:void 0;let B,I=null;h===b?(l+=2,c+=2,T!==M&&(I=b,B=M)):null===b||null!==h&&h<b?(l+=2,I=h):(c+=2,I=b,B=M),null!==I&&Yx(t,n,e,i,I,B,o,a),h=l<s.length?s[l]:null,b=c<r.length?r[c]:null}}(s,a,o,o[11],o[r+1],o[r+1]=function rI(t,n,e){if(null==e||""===e)return Wt;const i=[],s=Ai(e);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(i,s[r],!0);else if("object"==typeof s)for(const r in s)s.hasOwnProperty(r)&&t(i,r,s[r]);else"string"==typeof s&&n(i,s);return i}(t,n,e),i,r)}}function $x(t,n){return n>=t.expandoStartIndex}function Ux(t,n,e,i){const s=t.data;if(null===s[e+1]){const r=s[si()],o=$x(t,e);Zx(r,i)&&null===n&&!o&&(n=!1),n=function tI(t,n,e,i){const s=function wd(t){const n=ot.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let r=i?n.residualClasses:n.residualStyles;if(null===s)0===(i?n.classBindings:n.styleBindings)&&(e=rl(e=Qf(null,t,n,e,i),n.attrs,i),r=null);else{const o=n.directiveStylingLast;if(-1===o||t[o]!==s)if(e=Qf(s,t,n,e,i),null===r){let l=function nI(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==js(i))return t[rs(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=Qf(null,t,n,l[1],i),l=rl(l,n.attrs,i),function iI(t,n,e,i){t[rs(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function sI(t,n,e){let i;const s=n.directiveEnd;for(let r=1+n.directiveStylingLast;r<s;r++)i=rl(i,t[r].hostAttrs,e);return rl(i,n.attrs,e)}(t,n,i)}return void 0!==r&&(i?n.residualClasses=r:n.residualStyles=r),e}(s,r,n,i),function UL(t,n,e,i,s,r){let o=r?n.classBindings:n.styleBindings,a=rs(o),l=js(o);t[i]=e;let h,c=!1;if(Array.isArray(e)){const b=e;h=b[1],(null===h||So(b,h)>0)&&(c=!0)}else h=e;if(s)if(0!==l){const T=rs(t[a+1]);t[i+1]=$c(T,a),0!==T&&(t[T+1]=ff(t[T+1],i)),t[a+1]=function ok(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=$c(a,0),0!==a&&(t[a+1]=ff(t[a+1],i)),a=i;else t[i+1]=$c(l,0),0===a?a=i:t[l+1]=ff(t[l+1],i),l=i;c&&(t[i+1]=df(t[i+1])),Nx(t,h,i,!0),Nx(t,h,i,!1),function WL(t,n,e,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&So(r,n)>=0&&(e[i+1]=pf(e[i+1]))}(n,h,t,i,r),o=$c(a,l),r?n.classBindings=o:n.styleBindings=o}(s,r,n,e,o,i)}}function Qf(t,n,e,i,s){let r=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(r=n[a],i=rl(i,r.hostAttrs,s),r!==t);)a++;return null!==t&&(e.directiveStylingLast=a),i}function rl(t,n,e){const i=e?1:2;let s=-1;if(null!==n)for(let r=0;r<n.length;r++){const o=n[r];"number"==typeof o?s=o:s===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Ei(t,o,!!e||n[++r]))}return void 0===t?null:t}function Yx(t,n,e,i,s,r,o,a){if(!(3&n.type))return;const l=t.data,c=l[a+1];tu(function cy(t){return 1==(1&t)}(c)?Xx(l,n,e,s,js(c),o):void 0)||(tu(r)||function ly(t){return 2==(2&t)}(c)&&(r=Xx(l,null,e,s,a,o)),function aM(t,n,e,i,s){const r=fn(t);if(n)s?r?t.addClass(e,i):e.classList.add(i):r?t.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:Si.DashCase;if(null==s)r?t.removeStyle(e,i,o):e.style.removeProperty(i);else{const a="string"==typeof s&&s.endsWith("!important");a&&(s=s.slice(0,-10),o|=Si.Important),r?t.setStyle(e,i,s,o):e.style.setProperty(i,s,a?"important":"")}}}(i,o,yc(si(),e),s,r))}function Xx(t,n,e,i,s,r){const o=null===n;let a;for(;s>0;){const l=t[s],c=Array.isArray(l),h=c?l[1]:l,b=null===h;let T=e[s+1];T===at&&(T=b?Wt:void 0);let M=b?Fd(T,i):h===i?T:void 0;if(c&&!tu(M)&&(M=Fd(l,i)),tu(M)&&(a=M,o))return a;const I=t[s+1];s=o?rs(I):js(I)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(a=Fd(l,i))}return a}function tu(t){return void 0!==t}function Zx(t,n){return 0!=(t.flags&(n?16:32))}function St(t,n=""){const e=Se(),i=Lt(),s=t+20,r=i.firstCreatePass?Io(i,s,1,n,null):i.data[s],o=e[s]=function Yd(t,n){return fn(t)?t.createText(n):t.createTextNode(n)}(e[11],n);Vc(i,e,o,r),ys(r,!1)}function mi(t){return nn("",t,""),mi}function nn(t,n,e){const i=Se(),s=Vo(i,t,n,e);return s!==at&&Gs(i,si(),s),nn}const nu="en-US";let vb=nu;class Gb{}class AO{resolveComponentFactory(n){throw function SO(t){const n=Error(`No component factory found for ${Ht(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let mr=(()=>{class t{}return t.NULL=new AO,t})();function MO(){return Qo(In(),Se())}function Qo(t,n){return new Gt(Ti(t,n))}let Gt=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=MO,t})();function kO(t){return t instanceof Gt?t.nativeElement:t}class ul{}let au=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function IO(){const t=Se(),e=Di(In().index,t);return function LO(t){return t[11]}(_s(e)?e:t)}(),t})(),OO=(()=>{class t{}return t.\u0275prov=Qe({token:t,providedIn:"root",factory:()=>null}),t})();class Jo{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const FO=new Jo("13.4.0"),rp={};function lu(t,n,e,i,s=!1){for(;null!==e;){const r=n[e.index];if(null!==r&&i.push(wn(r)),ns(r))for(let a=10;a<r.length;a++){const l=r[a],c=l[1].firstChild;null!==c&&lu(l[1],l,c,i)}const o=e.type;if(8&o)lu(t,n,e.child,i);else if(32&o){const a=$d(e,n);let l;for(;l=a();)i.push(l)}else if(16&o){const a=N_(n,e);if(Array.isArray(a))i.push(...a);else{const l=Ya(n[16]);lu(l[1],l,a,i,!0)}}e=s?e.projectionNext:e.next}return i}class hl{constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,e=n[1];return lu(e,n,e.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(ns(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(Zd(n,i),Ic(e,i))}this._attachedToViewContainer=!1}S_(this._lView[1],this._lView)}onDestroy(n){Cy(this._lView[1],this._lView,null,n)}markForCheck(){Mf(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Lf(t,n,e){const i=n[10];i.begin&&i.begin();try{Fo(t,n,t.template,e)}catch(s){throw Ny(n,s),s}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ye(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function QA(t,n){Xa(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Ye(902,"");this._appRef=n}}class PO extends hl{constructor(n){super(n),this._view=n}detectChanges(){Iy(this._view)}checkNoChanges(){}get context(){return null}}class Ub extends mr{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Un(n);return new op(e,this.ngModule)}}function Wb(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class op extends Gb{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function sk(t){return t.map(ik).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Wb(this.componentDef.inputs)}get outputs(){return Wb(this.componentDef.outputs)}create(n,e,i,s){const r=(s=s||this.ngModule)?function RO(t,n){return{get:(e,i,s)=>{const r=t.get(e,rp,s);return r!==rp||i===rp?r:n.get(e,i,s)}}}(n,s.injector):n,o=r.get(ul,kv),a=r.get(OO,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=i?function wy(t,n,e){if(fn(t))return t.selectRootElement(n,e===es.ShadowDom);let i="string"==typeof n?t.querySelector(n):n;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Xd(o.createRenderer(null,this.componentDef),c,function NO(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(c)),b=this.componentDef.onPush?576:528,T=function ex(t,n){return{components:[],scheduler:t||YM,clean:jk,playerHandler:n||null,flags:0}}(),M=Yc(0,null,null,1,0,null,null,null,null,null),I=el(null,M,T,b,null,null,o,l,a,r);let B,P;bc(I);try{const K=function Jy(t,n,e,i,s,r){const o=e[1];e[20]=t;const l=Io(o,20,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(Zc(l,c,!0),null!==t&&(Ec(s,t,c),null!==l.classes&&tf(s,t,l.classes),null!==l.styles&&B_(s,t,l.styles)));const h=i.createRenderer(t,n),b=el(e,xy(n),null,n.onPush?64:16,e[20],l,i,h,r||null,null);return o.firstCreatePass&&(kc(Ra(l,e),o,n.type),Ay(o,l),My(l,e.length,1)),Xc(e,b),e[20]=b}(h,this.componentDef,I,o,l);if(h)if(i)Ec(l,h,["ng-version",FO.full]);else{const{attrs:Q,classes:ne}=function rk(t){const n=[],e=[];let i=1,s=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===s?""!==r&&n.push(r,t[++i]):8===s&&e.push(r);else{if(!ss(s))break;s=r}i++}return{attrs:n,classes:e}}(this.componentDef.selectors[0]);Q&&Ec(l,h,Q),ne&&ne.length>0&&tf(l,h,ne.join(" "))}if(P=md(M,20),void 0!==e){const Q=P.projection=[];for(let ne=0;ne<this.ngContentSelectors.length;ne++){const ge=e[ne];Q.push(null!=ge?Array.from(ge):null)}}B=function qy(t,n,e,i,s){const r=e[1],o=function Ek(t,n,e){const i=In();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),ky(t,i,n,Oo(t,n,1,null),e));const s=Ba(n,t,i.directiveStart,i);Qn(s,n);const r=Ti(i,n);return r&&Qn(r,n),s}(r,e,n);if(i.components.push(o),t[8]=o,s&&s.forEach(l=>l(o,n)),n.contentQueries){const l=In();n.contentQueries(1,o,l.directiveStart)}const a=In();return!r.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(hr(a.index),Ey(e[1],a,0,a.directiveStart,a.directiveEnd,n),Sy(n,o)),o}(K,this.componentDef,I,T,[lL]),tl(M,I,null)}finally{wc()}return new VO(this.componentType,B,Qo(P,I),I,P)}}class VO extends class EO{}{constructor(n,e,i,s,r){super(),this.location=i,this._rootLView=s,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new PO(s),this.componentType=n}get injector(){return new wo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class qo{}const ea=new Map;class Zb extends qo{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ub(this);const i=Bi(n);this._bootstrapComponents=Cs(i.bootstrap),this._r3Injector=zy(n,e,[{provide:qo,useValue:this},{provide:mr,useValue:this.componentFactoryResolver}],Ht(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=oi.THROW_IF_NOT_FOUND,i=ct.Default){return n===oi||n===qo||n===Of?this:this._r3Injector.get(n,e,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class ap extends class zO{}{constructor(n){super(),this.moduleType=n,null!==Bi(n)&&function jO(t){const n=new Set;!function e(i){const s=Bi(i,!0),r=s.id;null!==r&&(function Yb(t,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${t} - ${Ht(n)} vs ${Ht(n.name)}`)}(r,ea.get(r),i),ea.set(r,i));const o=Cs(s.imports);for(const a of o)n.has(a)||(n.add(a),e(a))}(t)}(n)}create(n){return new Zb(this.moduleType,n)}}function $s(t,n,e,i){return Qb(Se(),ii(),t,n,e,i)}function Qb(t,n,e,i,s,r){const o=n+e;return Jn(t,o,s)?function Ds(t,n,e){return t[n]=e}(t,o+1,r?i.call(r,s):i(s)):function dl(t,n){const e=t[n];return e===at?void 0:e}(t,o+1)}function cp(t){return n=>{setTimeout(t,void 0,n)}}const _e=class eF extends ${constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var s,r,o;let a=n,l=e||(()=>null),c=i;if(n&&"object"==typeof n){const b=n;a=null===(s=b.next)||void 0===s?void 0:s.bind(b),l=null===(r=b.error)||void 0===r?void 0:r.bind(b),c=null===(o=b.complete)||void 0===o?void 0:o.bind(b)}this.__isAsync&&(l=cp(l),a&&(a=cp(a)),c&&(c=cp(c)));const h=super.subscribe({next:a,error:l,complete:c});return n instanceof m&&n.add(h),h}};function tF(){return this._results[Ro()]()}class up{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Ro(),i=up.prototype;i[e]||(i[e]=tF)}get changes(){return this._changes||(this._changes=new _e)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const s=zi(n);(this._changesDetected=!function fA(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let s=t[i],r=n[i];if(e&&(s=e(s),r=e(r)),r!==s)return!1}return!0}(i._results,s,e))&&(i._results=s,i.length=s.length,i.last=s[this.length-1],i.first=s[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Us=(()=>{class t{}return t.__NG_ELEMENT_ID__=sF,t})();const nF=Us,iF=class extends nF{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n){const e=this._declarationTContainer.tViews,i=el(this._declarationLView,e,n,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(i[19]=r.createEmbeddedView(e)),tl(e,i,n),new hl(i)}};function sF(){return cu(In(),Se())}function cu(t,n){return 4&t.type?new iF(n,t,Qo(t,n)):null}let Gi=(()=>{class t{}return t.__NG_ELEMENT_ID__=rF,t})();function rF(){return a0(In(),Se())}const oF=Gi,r0=class extends oF{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Qo(this._hostTNode,this._hostLView)}get injector(){return new wo(this._hostTNode,this._hostLView)}get parentInjector(){const n=Mc(this._hostTNode,this._hostLView);if(Yv(n)){const e=bo(n,this._hostLView),i=xo(n);return new wo(e[1].data[i+8],e)}return new wo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=o0(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){const s=n.createEmbeddedView(e||{});return this.insert(s,i),s}createComponent(n,e,i,s,r){const o=n&&!function Ha(t){return"function"==typeof t}(n);let a;if(o)a=e;else{const b=e||{};a=b.index,i=b.injector,s=b.projectableNodes,r=b.ngModuleRef}const l=o?n:new op(Un(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const T=(o?c:this.parentInjector).get(qo,null);T&&(r=T)}const h=l.create(c,s,void 0,r);return this.insert(h.hostView,a),h}insert(n,e){const i=n._lView,s=i[1];if(function RS(t){return ns(t[3])}(i)){const h=this.indexOf(n);if(-1!==h)this.detach(h);else{const b=i[3],T=new r0(b,b[6],b[3]);T.detach(T.indexOf(n))}}const r=this._adjustIndex(e),o=this._lContainer;!function qA(t,n,e,i){const s=10+i,r=e.length;i>0&&(e[s-1][4]=n),i<r-10?(n[4]=e[s],i_(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const o=n[17];null!==o&&e!==o&&function eM(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(o,n);const a=n[19];null!==a&&a.insertView(t),n[2]|=128}(s,i,o,r);const a=Jd(r,o),l=i[11],c=Bc(l,o[7]);return null!==c&&function KA(t,n,e,i,s,r){i[0]=s,i[6]=n,Xa(t,i,e,1,s,r)}(s,o[6],l,i,c,a),n.attachToViewContainerRef(),i_(hp(o),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=o0(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Zd(this._lContainer,e);i&&(Ic(hp(this._lContainer),e),S_(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=Zd(this._lContainer,e);return i&&null!=Ic(hp(this._lContainer),e)?new hl(i):null}_adjustIndex(n,e=0){return null==n?this.length+e:n}};function o0(t){return t[8]}function hp(t){return t[8]||(t[8]=[])}function a0(t,n){let e;const i=n[t.index];if(ns(i))e=i;else{let s;if(8&t.type)s=wn(i);else{const r=n[11];s=r.createComment("");const o=Ti(t,n);Pr(r,Bc(r,o),s,function sM(t,n){return fn(t)?t.nextSibling(n):n.nextSibling}(r,o),!1)}n[t.index]=e=Ly(i,n,s,t),Xc(n,e)}return new r0(e,t,n)}class dp{constructor(n){this.queryList=n,this.matches=null}clone(){return new dp(this.queryList)}setDirty(){this.queryList.setDirty()}}class fp{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,s=[];for(let r=0;r<i;r++){const o=e.getByIndex(r);s.push(this.queries[o.indexInDeclarationView].clone())}return new fp(s)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==d0(n,e).matches&&this.queries[e].setDirty()}}class l0{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class pp{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const s=null!==e?e.length:0,r=this.getByIndex(i).embeddedTView(n,s);r&&(r.indexInDeclarationView=i,null!==e?e.push(r):e=[r])}return null!==e?new pp(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class gp{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new gp(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let s=0;s<i.length;s++){const r=i[s];this.matchTNodeWithReadOption(n,e,cF(e,r)),this.matchTNodeWithReadOption(n,e,Lc(e,n,r,!1,!1))}else i===Us?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,Lc(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const s=this.metadata.read;if(null!==s)if(s===Gt||s===Gi||s===Us&&4&e.type)this.addMatch(e.index,-2);else{const r=Lc(e,n,s,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function cF(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function hF(t,n,e,i){return-1===e?function uF(t,n){return 11&t.type?Qo(t,n):4&t.type?cu(t,n):null}(n,t):-2===e?function dF(t,n,e){return e===Gt?Qo(n,t):e===Us?cu(n,t):e===Gi?a0(n,t):void 0}(t,n,i):Ba(t,t[1],e,n)}function c0(t,n,e,i){const s=n[19].queries[i];if(null===s.matches){const r=t.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:hF(n,r[c],o[l+1],e.metadata.read))}s.matches=a}return s.matches}function mp(t,n,e,i){const s=t.queries.getByIndex(e),r=s.matches;if(null!==r){const o=c0(t,n,s,e);for(let a=0;a<r.length;a+=2){const l=r[a];if(l>0)i.push(o[a/2]);else{const c=r[a+1],h=n[-l];for(let b=10;b<h.length;b++){const T=h[b];T[17]===T[3]&&mp(T[1],T,c,i)}if(null!==h[9]){const b=h[9];for(let T=0;T<b.length;T++){const M=b[T];mp(M[1],M,c,i)}}}}}return i}function ht(t){const n=Se(),e=Lt(),i=Bv();Cd(i+1);const s=d0(e,i);if(t.dirty&&Lv(n)===(2==(2&s.metadata.flags))){if(null===s.matches)t.reset([]);else{const r=s.crossesNgTemplate?mp(e,n,i,[]):c0(e,n,s,i);t.reset(r,kO),t.notifyOnChanges()}return!0}return!1}function vi(t,n,e){const i=Lt();i.firstCreatePass&&(h0(i,new l0(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),u0(i,Se(),n)}function Rt(t,n,e,i){const s=Lt();if(s.firstCreatePass){const r=In();h0(s,new l0(n,e,i),r.index),function pF(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(s,t),2==(2&e)&&(s.staticContentQueries=!0)}u0(s,Se(),e)}function dt(){return function fF(t,n){return t[19].queries[n].queryList}(Se(),Bv())}function u0(t,n,e){const i=new up(4==(4&e));Cy(t,n,i,i.destroy),null===n[19]&&(n[19]=new fp),n[19].queries.push(new dp(i))}function h0(t,n,e){null===t.queries&&(t.queries=new pp),t.queries.track(new gp(n,e))}function d0(t,n){return t.queries.getByIndex(n)}function pl(t,n){return cu(t,n)}function du(...t){}const M0=new et("Application Initializer");let wp=(()=>{class t{constructor(e){this.appInits=e,this.resolve=du,this.reject=du,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,s)=>{this.resolve=i,this.reject=s})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s<this.appInits.length;s++){const r=this.appInits[s]();if(Xf(r))e.push(r);else if(jL(r)){const o=new Promise((a,l)=>{r.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(s=>{this.reject(s)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Ee(M0,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const ml=new et("AppId",{providedIn:"root",factory:function k0(){return`${Cp()}${Cp()}${Cp()}`}});function Cp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const L0=new et("Platform Initializer"),Tp=new et("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),LF=new et("appBootstrapListener"),Ws=new et("LocaleId",{providedIn:"root",factory:()=>Rd(Ws,ct.Optional|ct.SkipSelf)||function IF(){return"undefined"!=typeof $localize&&$localize.locale||nu}()}),NF=(()=>Promise.resolve(0))();function Dp(t){"undefined"==typeof Zone?NF.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Bt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new _e(!1),this.onMicrotaskEmpty=new _e(!1),this.onStable=new _e(!1),this.onError=new _e(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&e,s.shouldCoalesceRunChangeDetection=i,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function RF(){let t=jt.requestAnimationFrame,n=jt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function HF(t){const n=()=>{!function VF(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(jt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Sp(t),t.isCheckStableRunning=!0,Ep(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Sp(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,s,r,o,a)=>{try{return I0(t),e.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),O0(t)}},onInvoke:(e,i,s,r,o,a,l)=>{try{return I0(t),e.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),O0(t)}},onHasTask:(e,i,s,r)=>{e.hasTask(s,r),i===s&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Sp(t),Ep(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,s,r)=>(e.handleError(s,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(s)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Bt.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Bt.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,s){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+s,n,BF,du,du);try{return r.runTask(o,e,i)}finally{r.cancelTask(o)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const BF={};function Ep(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Sp(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function I0(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function O0(t){t._nesting--,Ep(t)}class zF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _e,this.onMicrotaskEmpty=new _e,this.onStable=new _e,this.onError=new _e}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,s){return n.apply(e,i)}}let Ap=(()=>{class t{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Bt.assertNotInAngularZone(),Dp(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Dp(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,s){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:s})}whenStable(e,i,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,s){return[]}}return t.\u0275fac=function(e){return new(e||t)(Ee(Bt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),jF=(()=>{class t{constructor(){this._applications=new Map,Mp.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Mp.findTestabilityInTree(this,e,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class GF{addToWindow(n){}findTestabilityInTree(n,e,i){return null}}let Mp=new GF,Hr=null;const F0=new et("AllowMultipleToken"),P0=new et("PlatformOnDestroy");function N0(t,n,e=[]){const i=`Platform: ${n}`,s=new et(i);return(r=[])=>{let o=kp();if(!o||o.injector.get(F0,!1)){const a=[...e,...r,{provide:s,useValue:!0}];t?t(a):function YF(t){if(Hr&&!Hr.get(F0,!1))throw new Ye(400,"");Hr=t;const n=t.get(R0),e=t.get(L0,null);e&&e.forEach(i=>i())}(function ZF(t=[],n){return oi.create({name:n,providers:[{provide:Ff,useValue:"platform"},{provide:P0,useValue:()=>Hr=null},...t]})}(a,i))}return function XF(t){const n=kp();if(!n)throw new Ye(401,"");return n}()}}function kp(){var t;return null!==(t=null==Hr?void 0:Hr.get(R0))&&void 0!==t?t:null}let R0=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function KF(t,n){let e;return e="noop"===t?new zF:("zone.js"===t?void 0:t)||new Bt({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:Bt,useValue:a}];return a.run(()=>{const c=oi.create({providers:l,parent:this.injector,name:e.moduleType.name}),h=e.create(c),b=h.injector.get(qa,null);if(!b)throw new Ye(402,"");return a.runOutsideAngular(()=>{const T=a.onError.subscribe({next:M=>{b.handleError(M)}});h.onDestroy(()=>{Lp(this._modules,h),T.unsubscribe()})}),function QF(t,n,e){try{const i=e();return Xf(i)?i.catch(s=>{throw n.runOutsideAngular(()=>t.handleError(s)),s}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(b,a,()=>{const T=h.injector.get(wp);return T.runInitializers(),T.donePromise.then(()=>(function LI(t){wi(t,"Expected localeId to be defined"),"string"==typeof t&&(vb=t.toLowerCase().replace(/_/g,"-"))}(h.injector.get(Ws,nu)||nu),this._moduleDoBootstrap(h),h))})})}bootstrapModule(e,i=[]){const s=B0({},i);return function UF(t,n,e){const i=new ap(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,s))}_moduleDoBootstrap(e){const i=e.injector.get(vl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(s=>i.bootstrap(s));else{if(!e.instance.ngDoBootstrap)throw new Ye(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ye(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(P0,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Ee(oi))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function B0(t,n){return Array.isArray(n)?n.reduce(B0,t):Object.assign(Object.assign({},t),n)}let vl=(()=>{class t{constructor(e,i,s,r){this._zone=e,this._injector=i,this._exceptionHandler=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new te(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new te(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Bt.assertNotInAngularZone(),Dp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const h=this._zone.onUnstable.subscribe(()=>{Bt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),h.unsubscribe()}});this.isStable=Aa(o,a.pipe(function sS(){return t=>Ma()(function tS(t,n){return function(i){let s;if(s="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new nS(s,n));const r=Object.create(i,Qh);return r.source=i,r.subjectFactory=s,r}}(iS)(t))}()))}bootstrap(e,i){if(!this._initStatus.done)throw new Ye(405,"");let s;s=e instanceof Gb?e:this._injector.get(mr).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const r=function WF(t){return t.isBoundToModule}(s)?void 0:this._injector.get(qo),a=s.create(oi.NULL,[],i||s.selector,r),l=a.location.nativeElement,c=a.injector.get(Ap,null),h=c&&a.injector.get(jF);return c&&h&&h.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Lp(this.components,a),h&&h.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Ye(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Lp(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(LF,[]).concat(this._bootstrapListeners).forEach(s=>s(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Ee(Bt),Ee(oi),Ee(qa),Ee(wp))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Lp(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let H0=!0,As=(()=>{class t{}return t.__NG_ELEMENT_ID__=eP,t})();function eP(t){return function tP(t,n,e){if(vc(t)&&!e){const i=Di(t.index,n);return new hl(i,i)}return 47&t.type?new hl(n[16],n):null}(In(),Se(),16==(16&t))}class U0{constructor(){}supports(n){return il(n)}create(n){return new aP(n)}}const oP=(t,n)=>n;class aP{constructor(n){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=n||oP}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,s=0,r=null;for(;e||i;){const o=!i||e&&e.currentIndex<Y0(i,s,r)?e:i,a=Y0(o,s,r),l=o.currentIndex;if(o===i)s--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)s++;else{r||(r=[]);const c=a-s,h=l-s;if(c!=h){for(let T=0;T<c;T++){const M=T<r.length?r[T]:r[T]=0,I=M+T;h<=I&&I<c&&(r[T]=M+1)}r[o.previousIndex]=h-c}}a!==l&&n(o,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!il(n))throw new Ye(900,"");return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let s,r,o,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)r=n[a],o=this._trackByFn(a,r),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,r,o,a)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,o,a),i=!0),e=e._next}else s=0,function _L(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[Ro()]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,a=>{o=this._trackByFn(s,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,s)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,s),i=!0),e=e._next,s++}),this.length=s;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,s){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,s)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,s))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,s)):n=this._addAfter(new lP(e,i),r,s),n}_verifyReinsertion(n,e,i,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,s):n.currentIndex!=s&&(n.currentIndex=s,this._addToMoves(n,s)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const s=n._prevRemoved,r=n._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const s=null===e?this._itHead:e._next;return n._next=s,n._prev=e,null===s?this._itTail=n:s._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new W0),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new W0),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class lP{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class cP{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class W0{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new cP,this.map.set(e,i)),i.add(n)}get(n,e){const s=this.map.get(n);return s?s.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Y0(t,n,e){const i=t.previousIndex;if(null===i)return i;let s=0;return e&&i<e.length&&(s=e[i]),i+n+s}class X0{constructor(){}supports(n){return n instanceof Map||Hf(n)}create(){return new uP}}class uP{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let e;for(e=this._mapHead;null!==e;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}diff(n){if(n){if(!(n instanceof Map||Hf(n)))throw new Ye(900,"")}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(i,s)=>{if(e&&e.key===s)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(s,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const s=this._records.get(n);this._maybeAddToChanges(s,e);const r=s._prev,o=s._next;return r&&(r._next=o),o&&(o._prev=r),s._next=null,s._prev=null,s}const i=new hP(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class hP{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Z0(){return new gu([new U0])}let gu=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const s=i.factories.slice();e=e.concat(s)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Z0()),deps:[[t,new Nc,new Pc]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(null!=i)return i;throw new Ye(901,"")}}return t.\u0275prov=Qe({token:t,providedIn:"root",factory:Z0}),t})();function K0(){return new _l([new X0])}let _l=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const s=i.factories.slice();e=e.concat(s)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||K0()),deps:[[t,new Nc,new Pc]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Ye(901,"")}}return t.\u0275prov=Qe({token:t,providedIn:"root",factory:K0}),t})();const pP=N0(null,"core",[]);let gP=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(Ee(vl))},t.\u0275mod=It({type:t}),t.\u0275inj=kt({}),t})(),mu=null;function vr(){return mu}const Nt=new et("DocumentToken");let yl=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:function(){return function yP(){return Ee(Q0)}()},providedIn:"platform"}),t})(),Q0=(()=>{class t extends yl{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vr().getBaseHref(this._doc)}onPopState(e){const i=vr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=vr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,s){J0()?this._history.pushState(e,i,s):this.location.hash=s}replaceState(e,i,s){J0()?this._history.replaceState(e,i,s):this.location.hash=s}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt))},t.\u0275prov=Qe({token:t,factory:function(){return function xP(){return new Q0(Ee(Nt))}()},providedIn:"platform"}),t})();function J0(){return!!window.history.pushState}function q0(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function ew(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function jr(t){return t&&"?"!==t[0]?"?"+t:t}let Np=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:function(){return function bP(t){const n=Ee(Nt).location;return new CP(Ee(yl),n&&n.origin||"")}()},providedIn:"root"}),t})();const wP=new et("appBaseHref");let CP=(()=>{class t extends Np{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return q0(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+jr(this._platformLocation.search),s=this._platformLocation.hash;return s&&e?`${i}${s}`:i}pushState(e,i,s,r){const o=this.prepareExternalUrl(s+jr(r));this._platformLocation.pushState(e,i,o)}replaceState(e,i,s,r){const o=this.prepareExternalUrl(s+jr(r));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,s;null===(s=(i=this._platformLocation).historyGo)||void 0===s||s.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(Ee(yl),Ee(wP,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),tw=(()=>{class t{constructor(e,i){this._subject=new _e,this._urlChangeListeners=[],this._platformStrategy=e;const s=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=ew(nw(s)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+jr(i))}normalize(e){return t.stripTrailingSlash(function DP(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,nw(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",s=null){this._platformStrategy.pushState(s,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+jr(i)),s)}replaceState(e,i="",s=null){this._platformStrategy.replaceState(s,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+jr(i)),s)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,s;null===(s=(i=this._platformStrategy).historyGo)||void 0===s||s.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(s=>s(e,i))}subscribe(e,i,s){return this._subject.subscribe({next:e,error:i,complete:s})}}return t.normalizeQueryParams=jr,t.joinWithSlash=q0,t.stripTrailingSlash=ew,t.\u0275fac=function(e){return new(e||t)(Ee(Np),Ee(yl))},t.\u0275prov=Qe({token:t,factory:function(){return function TP(){return new tw(Ee(Np),Ee(yl))}()},providedIn:"root"}),t})();function nw(t){return t.replace(/\/index.html$/,"")}let hw=(()=>{class t{constructor(e,i,s,r){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=s,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(il(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Ht(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(s=>{i?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return t.\u0275fac=function(e){return new(e||t)(Le(gu),Le(_l),Le(Gt),Le(au))},t.\u0275dir=bn({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class h2{constructor(n,e,i,s){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Mt=(()=>{class t{constructor(e,i,s){this._viewContainer=e,this._template=i,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((s,r,o)=>{if(null==s.previousIndex)i.createEmbeddedView(this._template,new h2(s.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===r?void 0:r);else if(null!==r){const a=i.get(r);i.move(a,o),dw(a,s)}});for(let s=0,r=i.length;s<r;s++){const a=i.get(s).context;a.index=s,a.count=r,a.ngForOf=this._ngForOf}e.forEachIdentityChange(s=>{dw(i.get(s.currentIndex),s)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(Le(Gi),Le(Us),Le(gu))},t.\u0275dir=bn({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function dw(t,n){t.context.$implicit=n.item}let yt=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new d2,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){fw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){fw("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(Le(Gi),Le(Us))},t.\u0275dir=bn({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class d2{constructor(){this.$implicit=null,this.ngIf=null}}function fw(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Ht(n)}'.`)}const pw="browser";let Kp=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(Le(Gi))},t.\u0275dir=bn({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[ut]}),t})();class W2{createSubscription(n,e){return n.subscribe({next:e,error:i=>{throw i}})}dispose(n){n.unsubscribe()}onDestroy(n){n.unsubscribe()}}class Y2{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}onDestroy(n){}}const X2=new Y2,Z2=new W2;let xw=(()=>{class t{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Xf(e))return X2;if(Cx(e))return Z2;throw function us(t,n){return new Ye(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(Le(As,16))},t.\u0275pipe=gi({name:"async",type:t,pure:!1}),t})(),_r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({}),t})();class qp extends class gN extends class _P{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function vP(t){mu||(mu=t)}(new qp)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function mN(){return Cl=Cl||document.querySelector("base"),Cl?Cl.getAttribute("href"):null}();return null==e?null:function vN(t){Au=Au||document.createElement("a"),Au.setAttribute("href",t);const n=Au.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){Cl=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function c2(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[s,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(s.trim()===n)return decodeURIComponent(r)}return null}(document.cookie,n)}}let Au,Cl=null;const Cw=new et("TRANSITION_ID"),yN=[{provide:M0,useFactory:function _N(t,n,e){return()=>{e.get(wp).donePromise.then(()=>{const i=vr(),s=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let r=0;r<s.length;r++)i.remove(s[r])})}},deps:[Cw,Nt,oi],multi:!0}];class eg{static init(){!function $F(t){Mp=t}(new eg)}addToWindow(n){jt.getAngularTestability=(i,s=!0)=>{const r=n.findTestabilityInTree(i,s);if(null==r)throw new Error("Could not find testability for element.");return r},jt.getAllAngularTestabilities=()=>n.getAllTestabilities(),jt.getAllAngularRootElements=()=>n.getAllRootElements(),jt.frameworkStabilizers||(jt.frameworkStabilizers=[]),jt.frameworkStabilizers.push(i=>{const s=jt.getAllAngularTestabilities();let r=s.length,o=!1;const a=function(l){o=o||l,r--,0==r&&i(o)};s.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const s=n.getTestability(e);return null!=s?s:i?vr().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let xN=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();const Mu=new et("EventManagerPlugins");let ku=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,s){return this._findPluginFor(i).addEventListener(e,i,s)}addGlobalEventListener(e,i,s){return this._findPluginFor(i).addGlobalEventListener(e,i,s)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const s=this._plugins;for(let r=0;r<s.length;r++){const o=s[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(Ee(Mu),Ee(Bt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();class Tw{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const s=vr().getGlobalEventTarget(this._doc,n);if(!s)throw new Error(`Unsupported event target ${s} for event ${e}`);return this.addEventListener(s,e,i)}}let Dw=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),i.add(s))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),Tl=(()=>{class t extends Dw{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,s){e.forEach(r=>{const o=this._doc.createElement("style");o.textContent=r,s.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(Ew),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,s)=>{this._addStylesToHost(e,s,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ew))}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();function Ew(t){vr().remove(t)}const tg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ng=/%COMP%/g;function Lu(t,n,e){for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?Lu(t,s,e):(s=s.replace(ng,t),e.push(s))}return e}function Mw(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let Iu=(()=>{class t{constructor(e,i,s){this.eventManager=e,this.sharedStylesHost=i,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new ig(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case es.Emulated:{let s=this.rendererByCompId.get(i.id);return s||(s=new EN(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,s)),s.applyToHost(e),s}case 1:case es.ShadowDom:return new SN(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const s=Lu(i.id,i.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Ee(ku),Ee(Tl),Ee(ml))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();class ig{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(tg[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){n.appendChild(e)}insertBefore(n,e,i){n&&n.insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,s){if(s){e=s+":"+e;const r=tg[s];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const s=tg[i];s?n.removeAttributeNS(s,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,s){s&(Si.DashCase|Si.Important)?n.style.setProperty(e,i,s&Si.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Si.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,Mw(i)):this.eventManager.addEventListener(n,e,Mw(i))}}class EN extends ig{constructor(n,e,i,s){super(n),this.component=i;const r=Lu(s+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function CN(t){return"_ngcontent-%COMP%".replace(ng,t)}(s+"-"+i.id),this.hostAttr=function TN(t){return"_nghost-%COMP%".replace(ng,t)}(s+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class SN extends ig{constructor(n,e,i,s){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=Lu(s.id,s.styles,[]);for(let o=0;o<r.length;o++){const a=document.createElement("style");a.textContent=r[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let AN=(()=>{class t extends Tw{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,s){return e.addEventListener(i,s,!1),()=>this.removeEventListener(e,i,s)}removeEventListener(e,i,s){return e.removeEventListener(i,s)}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();const Lw=["alt","control","meta","shift"],kN={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Iw={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},LN={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let IN=(()=>{class t extends Tw{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const r=t.parseEventName(i),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vr().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),s=i.shift();if(0===i.length||"keydown"!==s&&"keyup"!==s)return null;const r=t._normalizeKey(i.pop());let o="";if(Lw.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=r,0!=i.length||0===r.length)return null;const a={};return a.domEventName=s,a.fullKey=o,a}static getEventFullKey(e){let i="",s=function ON(t){let n=t.key;if(null==n){if(n=t.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&Iw.hasOwnProperty(n)&&(n=Iw[n]))}return kN[n]||n}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),Lw.forEach(r=>{r!=s&&LN[r](e)&&(i+=r+".")}),i+=s,i}static eventCallback(e,i,s){return r=>{t.getEventFullKey(r)===e&&s.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();const RN=N0(pP,"browser",[{provide:Tp,useValue:pw},{provide:L0,useValue:function FN(){qp.makeCurrent(),eg.init()},multi:!0},{provide:Nt,useFactory:function NN(){return function OS(t){pd=t}(document),document},deps:[]}]),BN=[{provide:Ff,useValue:"root"},{provide:qa,useFactory:function PN(){return new qa},deps:[]},{provide:Mu,useClass:AN,multi:!0,deps:[Nt,Bt,Tp]},{provide:Mu,useClass:IN,multi:!0,deps:[Nt]},{provide:Iu,useClass:Iu,deps:[ku,Tl,ml]},{provide:ul,useExisting:Iu},{provide:Dw,useExisting:Tl},{provide:Tl,useClass:Tl,deps:[Nt]},{provide:Ap,useClass:Ap,deps:[Bt]},{provide:ku,useClass:ku,deps:[Mu,Bt]},{provide:class fN{},useClass:xN,deps:[]}];let Ow=(()=>{class t{constructor(e){if(e)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.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:ml,useValue:e.appId},{provide:Cw,useExisting:ml},yN]}}}return t.\u0275fac=function(e){return new(e||t)(Ee(t,12))},t.\u0275mod=It({type:t}),t.\u0275inj=kt({providers:BN,imports:[_r,gP]}),t})();"undefined"!=typeof window&&window;let rg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:function(e){let i=null;return i=e?new(e||t):Ee(Nw),i},providedIn:"root"}),t})(),Nw=(()=>{class t extends rg{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Jt.NONE:return i;case Jt.HTML:return bs(i,"HTML")?Ai(i):K_(this._doc,String(i)).toString();case Jt.STYLE:return bs(i,"Style")?Ai(i):i;case Jt.SCRIPT:if(bs(i,"Script"))return Ai(i);throw new Error("unsafe value used in a script context");case Jt.URL:return j_(i),bs(i,"URL")?Ai(i):Za(String(i));case Jt.RESOURCE_URL:if(bs(i,"ResourceURL"))return Ai(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function mM(t){return new hM(t)}(e)}bypassSecurityTrustStyle(e){return function vM(t){return new dM(t)}(e)}bypassSecurityTrustScript(e){return function _M(t){return new fM(t)}(e)}bypassSecurityTrustUrl(e){return function yM(t){return new pM(t)}(e)}bypassSecurityTrustResourceUrl(e){return function xM(t){return new gM(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt))},t.\u0275prov=Qe({token:t,factory:function(e){let i=null;return i=e?new e:function XN(t){return new Nw(t.get(Nt))}(Ee(oi)),i},providedIn:"root"}),t})();class ZN extends m{constructor(n,e){super()}schedule(n,e=0){return this}}class Ou extends ZN{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,s=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(s,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let s,i=!1;try{this.work(n)}catch(r){i=!0,s=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),s}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,s=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&i.splice(s,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let Rw=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,s){return new this.SchedulerAction(this,e).schedule(s,i)}}return t.now=()=>Date.now(),t})();class hs extends Rw{constructor(n,e=Rw.now){super(n,()=>hs.delegate&&hs.delegate!==this?hs.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return hs.delegate&&hs.delegate!==this?hs.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const JN=new class QN extends hs{}(class KN extends Ou{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}schedule(n,e=0){return e>0?super.schedule(n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)}execute(n,e){return e>0||this.closed?super.execute(n,e):this._execute(n,e)}requestAsyncId(n,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(n,e,i):n.flush(this)}}),qN=new te(t=>t.complete());function Bw(t){return t?function eR(t){return new te(n=>t.schedule(()=>n.complete()))}(t):qN}function na(...t){let n=t[t.length-1];return oe(n)?(t.pop(),Xe(t,n)):rr(t)}function nR({error:t,subscriber:n}){n.error(t)}class Wi{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return na(this.value);case"E":return function tR(t,n){return new te(n?e=>n.schedule(nR,0,{error:t,subscriber:e}):e=>e.error(t))}(this.error);case"C":return Bw()}throw new Error("unexpected notification kind value")}static createNext(n){return void 0!==n?new Wi("N",n):Wi.undefinedValueNotification}static createError(n){return new Wi("E",void 0,n)}static createComplete(){return Wi.completeNotification}}Wi.completeNotification=new Wi("C"),Wi.undefinedValueNotification=new Wi("N",void 0);class Fu extends k{constructor(n,e,i=0){super(n),this.scheduler=e,this.delay=i}static dispatch(n){const{notification:e,destination:i}=n;e.observe(i),this.unsubscribe()}scheduleMessage(n){this.destination.add(this.scheduler.schedule(Fu.dispatch,this.delay,new sR(n,this.destination)))}_next(n){this.scheduleMessage(Wi.createNext(n))}_error(n){this.scheduleMessage(Wi.createError(n)),this.unsubscribe()}_complete(){this.scheduleMessage(Wi.createComplete()),this.unsubscribe()}}class sR{constructor(n,e){this.notification=n,this.destination=e}}class rR extends ${constructor(n=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=n<1?1:n,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(n){const e=this._events;e.push(n),e.length>this._bufferSize&&e.shift(),super.next(n)}nextTimeWindow(n){this._events.push(new oR(this._getNow(),n)),this._trimBufferThenGetEvents(),super.next(n)}_subscribe(n){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=i.length;let o;if(this.closed)throw new N;if(this.isStopped||this.hasError?o=m.EMPTY:(this.observers.push(n),o=new V(this,n)),s&&n.add(n=new Fu(n,s)),e)for(let a=0;a<r&&!n.closed;a++)n.next(i[a]);else for(let a=0;a<r&&!n.closed;a++)n.next(i[a].value);return this.hasError?n.error(this.thrownError):this.isStopped&&n.complete(),o}_getNow(){return(this.scheduler||JN).now()}_trimBufferThenGetEvents(){const n=this._getNow(),e=this._bufferSize,i=this._windowTime,s=this._events,r=s.length;let o=0;for(;o<r&&!(n-s[o].time<i);)o++;return r>e&&(o=Math.max(o,r-e)),o>0&&s.splice(0,o),s}}class oR{constructor(n,e){this.time=n,this.value=e}}function Vw(t,n){return"function"==typeof n?e=>e.pipe(Vw((i,s)=>Ln(t(i,s)).pipe(de((r,o)=>n(i,r,s,o))))):e=>e.lift(new aR(t))}class aR{constructor(n){this.project=n}call(n,e){return e.subscribe(new lR(n,this.project))}}class lR extends Ct{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new wt(this),s=this.destination;s.add(i),this.innerSubscription=Ji(n,i),this.innerSubscription!==i&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const Pu={schedule(t,n){const e=setTimeout(t,n);return()=>clearTimeout(e)},scheduleBeforeRender(t){if("undefined"==typeof window)return Pu.schedule(t,0);if(void 0===window.requestAnimationFrame)return Pu.schedule(t,16);const n=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(n)}};let og;function vR(t,n,e){let i=e;return function uR(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&n.some((s,r)=>!("*"===s||!function dR(t,n){if(!og){const e=Element.prototype;og=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&og.call(t,n)}(t,s)||(i=r,0))),i}class yR{constructor(n,e){this.componentFactory=e.get(mr).resolveComponentFactory(n)}create(n){return new xR(this.componentFactory,n)}}class xR{constructor(n,e){this.componentFactory=n,this.injector=e,this.eventEmitters=new rR(1),this.events=this.eventEmitters.pipe(Vw(i=>Aa(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(Bt),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Pu.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(n){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,e){this.runInZone(()=>{null!==this.componentRef?function fR(t,n){return t===n||t!=t&&n!=n}(e,this.getInputValue(n))&&(void 0!==e||!this.unchangedInputs.has(n))||(this.recordInputChange(n,e),this.unchangedInputs.delete(n),this.hasInputChanges=!0,this.componentRef.instance[n]=e,this.scheduleDetectChanges()):this.initialInputValues.set(n,e)})}initializeComponent(n){const e=oi.create({providers:[],parent:this.injector}),i=function mR(t,n){const e=t.childNodes,i=n.map(()=>[]);let s=-1;n.some((r,o)=>"*"===r&&(s=o,!0));for(let r=0,o=e.length;r<o;++r){const a=e[r],l=vR(a,n,s);-1!==l&&i[l].push(a)}return i}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,n),this.viewChangeDetectorRef=this.componentRef.injector.get(As),this.implementsOnChanges=function hR(t){return"function"==typeof t}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(vl).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:n})=>{this.initialInputValues.has(n)&&this.setInputValue(n,this.initialInputValues.get(n))}),this.initialInputValues.clear()}initializeOutputs(n){const e=this.componentFactory.outputs.map(({propName:i,templateName:s})=>n.instance[i].pipe(de(o=>({name:s,value:o}))));this.eventEmitters.next(e)}callNgOnChanges(n){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,n.instance.ngOnChanges(e)}markViewForCheck(n){this.hasInputChanges&&(this.hasInputChanges=!1,n.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Pu.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(n,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[n];if(i)return void(i.currentValue=e);const s=this.unchangedInputs.has(n),r=s?void 0:this.getInputValue(n);this.inputChanges[n]=new Ev(r,e,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}}class bR extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Hw{}const Xs="*";function zn(t,n){return{type:7,name:t,definitions:n,options:{}}}function Dn(t,n=null){return{type:4,styles:n,timings:t}}function zw(t,n=null){return{type:2,steps:t,options:n}}function lt(t){return{type:6,styles:t,offset:null}}function jw(t,n,e){return{type:0,name:t,styles:n,options:e}}function TR(t){return{type:5,steps:t}}function En(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function Gw(t){Promise.resolve(null).then(t)}class Dl{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Gw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class $w{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,s=0;const r=this.players.length;0==r?Gw(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==r&&this._onFinish()}),o.onDestroy(()=>{++i==r&&this._onDestroy()}),o.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const s=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(s)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const At=!1;function Uw(t){return new Ye(3e3,At)}function r3(){return"undefined"!=typeof window&&void 0!==window.document}function lg(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function xr(t){switch(t.length){case 0:return new Dl;case 1:return t[0];default:return new $w(t)}}function Ww(t,n,e,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(h=>{const b=h.offset,T=b==l,M=T&&c||{};Object.keys(h).forEach(I=>{let B=I,P=h[I];if("offset"!==I)switch(B=n.normalizePropertyName(B,o),P){case"!":P=s[I];break;case Xs:P=r[I];break;default:P=n.normalizeStyleValue(I,B,P,o)}M[B]=P}),T||a.push(M),c=M,l=b}),o.length)throw function YR(t){return new Ye(3502,At)}();return a}function cg(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&ug(e,"start",t)));break;case"done":t.onDone(()=>i(e&&ug(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&ug(e,"destroy",t)))}}function ug(t,n,e){const i=e.totalTime,r=hg(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),o=t._data;return null!=o&&(r._data=o),r}function hg(t,n,e,i,s="",r=0,o){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function ki(t,n,e){let i;return t instanceof Map?(i=t.get(n),i||t.set(n,i=e)):(i=t[n],i||(i=t[n]=e)),i}function Yw(t){const n=t.indexOf(":");return[t.substring(1,n),t.substr(n+1)]}let dg=(t,n)=>!1,Xw=(t,n,e)=>[],Zw=null;function fg(t){const n=t.parentNode||t.host;return n===Zw?null:n}(lg()||"undefined"!=typeof Element)&&(r3()?(Zw=(()=>document.documentElement)(),dg=(t,n)=>{for(;n;){if(n===t)return!0;n=fg(n)}return!1}):dg=(t,n)=>t.contains(n),Xw=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let Gr=null,Kw=!1;function Qw(t){Gr||(Gr=function a3(){return"undefined"!=typeof document?document.body:null}()||{},Kw=!!Gr.style&&"WebkitAppearance"in Gr.style);let n=!0;return Gr.style&&!function o3(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Gr.style,!n&&Kw&&(n="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Gr.style)),n}const Jw=dg,qw=Xw;let eC=(()=>{class t{validateStyleProperty(e){return Qw(e)}matchesElement(e,i){return!1}containsElement(e,i){return Jw(e,i)}getParentElement(e){return fg(e)}query(e,i,s){return qw(e,i,s)}computeStyle(e,i,s){return s||""}animate(e,i,s,r,o,a=[],l){return new Dl(s,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),pg=(()=>{class t{}return t.NOOP=new eC,t})();const gg="ng-enter",Ru="ng-leave",Bu="ng-trigger",Vu=".ng-trigger",nC="ng-animating",mg=".ng-animating";function $r(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:vg(parseFloat(n[1]),n[2])}function vg(t,n){return"s"===n?1e3*t:t}function Hu(t,n,e){return t.hasOwnProperty("duration")?t:function u3(t,n,e){let s,r=0,o="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(Uw()),{duration:0,delay:0,easing:""};s=vg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=vg(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else s=t;if(!e){let a=!1,l=n.length;s<0&&(n.push(function DR(){return new Ye(3100,At)}()),a=!0),r<0&&(n.push(function ER(){return new Ye(3101,At)}()),a=!0),a&&n.splice(l,0,Uw())}return{duration:s,delay:r,easing:o}}(t,n,e)}function ia(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function br(t,n,e={}){if(n)for(let i in t)e[i]=t[i];else ia(t,e);return e}function sC(t,n,e){return e?n+":"+e+";":""}function rC(t){let n="";for(let e=0;e<t.style.length;e++){const i=t.style.item(e);n+=sC(0,i,t.style.getPropertyValue(i))}for(const e in t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(n+=sC(0,p3(e),t.style[e]));t.setAttribute("style",n)}function Ms(t,n,e){t.style&&(Object.keys(n).forEach(i=>{const s=yg(i);e&&!e.hasOwnProperty(i)&&(e[i]=t.style[s]),t.style[s]=n[i]}),lg()&&rC(t))}function Ur(t,n){t.style&&(Object.keys(n).forEach(e=>{const i=yg(e);t.style[i]=""}),lg()&&rC(t))}function El(t){return Array.isArray(t)?1==t.length?t[0]:zw(t):t}const _g=new RegExp("{{\\s*(.+?)\\s*}}","g");function oC(t){let n=[];if("string"==typeof t){let e;for(;e=_g.exec(t);)n.push(e[1]);_g.lastIndex=0}return n}function zu(t,n,e){const i=t.toString(),s=i.replace(_g,(r,o)=>{let a=n[o];return n.hasOwnProperty(o)||(e.push(function AR(t){return new Ye(3003,At)}()),a=""),a.toString()});return s==i?t:s}function ju(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const f3=/-+([a-z0-9])/g;function yg(t){return t.replace(f3,(...n)=>n[1].toUpperCase())}function p3(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Li(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function MR(t){return new Ye(3004,At)}()}}function aC(t,n){return window.getComputedStyle(t)[n]}function x3(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function b3(t,n,e){if(":"==t[0]){const l=function w3(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(function GR(t){return new Ye(3016,At)}()),"* => *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function jR(t){return new Ye(3015,At)}()),n;const s=i[1],r=i[2],o=i[3];n.push(lC(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&n.push(lC(o,s))}(i,e,n)):e.push(t),e}const Wu=new Set(["true","1"]),Yu=new Set(["false","0"]);function lC(t,n){const e=Wu.has(t)||Yu.has(t),i=Wu.has(n)||Yu.has(n);return(s,r)=>{let o="*"==t||t==s,a="*"==n||n==r;return!o&&e&&"boolean"==typeof s&&(o=s?Wu.has(t):Yu.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?Wu.has(n):Yu.has(n)),o&&a}}const C3=new RegExp("s*:selfs*,?","g");function xg(t,n,e,i){return new T3(t).build(n,e,i)}class T3{constructor(n){this._driver=n}build(n,e,i){const s=new S3(e);this._resetContextStyleTimingState(s);const r=Li(this,El(n),s);return s.unsupportedCSSPropertiesFound.size&&s.unsupportedCSSPropertiesFound.keys(),r}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles={},n.collectedStyles[""]={},n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,s=e.depCount=0;const r=[],o=[];return"@"==n.name.charAt(0)&&e.errors.push(function LR(){return new Ye(3006,At)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,s+=l.depCount,o.push(l)}else e.errors.push(function IR(){return new Ye(3007,At)}())}),{type:7,name:n.name,states:r,transitions:o,queryCount:i,depCount:s,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),s=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,o=s||{};i.styles.forEach(a=>{if(Xu(a)){const l=a;Object.keys(l).forEach(c=>{oC(l[c]).forEach(h=>{o.hasOwnProperty(h)||r.add(h)})})}}),r.size&&(ju(r.values()),e.errors.push(function OR(t,n){return new Ye(3008,At)}()))}return{type:0,name:n.name,style:i,options:s?{params:s}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=Li(this,El(n.animation),e);return{type:1,matchers:x3(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Wr(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>Li(this,i,e)),options:Wr(n.options)}}visitGroup(n,e){const i=e.currentTime;let s=0;const r=n.steps.map(o=>{e.currentTime=i;const a=Li(this,o,e);return s=Math.max(s,e.currentTime),a});return e.currentTime=s,{type:3,steps:r,options:Wr(n.options)}}visitAnimate(n,e){const i=function M3(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return bg(Hu(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=bg(0,0,"");return r.dynamic=!0,r.strValue=e,r}const s=Hu(e,n);return bg(s.duration,s.delay,s.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let s,r=n.styles?n.styles:lt({});if(5==r.type)s=this.visitKeyframes(r,e);else{let o=n.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=lt(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,s=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:s,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[];Array.isArray(n.styles)?n.styles.forEach(o=>{"string"==typeof o?o==Xs?i.push(o):e.errors.push(function FR(t){return new Ye(3002,At)}()):i.push(o)}):i.push(n.styles);let s=!1,r=null;return i.forEach(o=>{if(Xu(o)){const a=o,l=a.easing;if(l&&(r=l,delete a.easing),!s)for(let c in a)if(a[c].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:i,easing:r,offset:n.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let s=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let h=!0;c&&(r!=s&&r>=c.startTime&&s<=c.endTime&&(e.errors.push(function PR(t,n,e,i,s){return new Ye(3010,At)}()),h=!1),r=c.startTime),h&&(l[a]={startTime:r,endTime:s}),e.options&&function h3(t,n,e){const i=n.params||{},s=oC(t);s.length&&s.forEach(r=>{i.hasOwnProperty(r)||e.push(function SR(t){return new Ye(3001,At)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function NR(){return new Ye(3011,At)}()),i;let r=0;const o=[];let a=!1,l=!1,c=0;const h=n.steps.map(K=>{const Q=this._makeStyleAst(K,e);let ne=null!=Q.offset?Q.offset:function A3(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(Xu(e)&&e.hasOwnProperty("offset")){const i=e;n=parseFloat(i.offset),delete i.offset}});else if(Xu(t)&&t.hasOwnProperty("offset")){const e=t;n=parseFloat(e.offset),delete e.offset}return n}(Q.styles),ge=0;return null!=ne&&(r++,ge=Q.offset=ne),l=l||ge<0||ge>1,a=a||ge<c,c=ge,o.push(ge),Q});l&&e.errors.push(function RR(){return new Ye(3012,At)}()),a&&e.errors.push(function BR(){return new Ye(3200,At)}());const b=n.steps.length;let T=0;r>0&&r<b?e.errors.push(function VR(){return new Ye(3202,At)}()):0==r&&(T=1/(b-1));const M=b-1,I=e.currentTime,B=e.currentAnimateTimings,P=B.duration;return h.forEach((K,Q)=>{const ne=T>0?Q==M?1:T*Q:o[Q],ge=ne*P;e.currentTime=I+B.delay+ge,B.duration=ge,this._validateStyleAst(K,e),K.offset=ne,i.styles.push(K)}),i}visitReference(n,e){return{type:8,animation:Li(this,El(n.animation),e),options:Wr(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Wr(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Wr(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,s=n.options||{};e.queryCount++,e.currentQuery=n;const[r,o]=function D3(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(C3,"")),t=t.replace(/@\*/g,Vu).replace(/@\w+/g,e=>Vu+"-"+e.substr(1)).replace(/:animating/g,mg),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,ki(e.collectedStyles,e.currentQuerySelector,{});const a=Li(this,El(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:n.selector,options:Wr(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function HR(){return new Ye(3013,At)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Hu(n.timings,e.errors,!0);return{type:12,animation:Li(this,El(n.animation),e),timings:i,options:null}}}class S3{constructor(n){this.errors=n,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,this.unsupportedCSSPropertiesFound=new Set}}function Xu(t){return!Array.isArray(t)&&"object"==typeof t}function Wr(t){return t?(t=ia(t)).params&&(t.params=function E3(t){return t?ia(t):null}(t.params)):t={},t}function bg(t,n,e){return{duration:t,delay:n,easing:e}}function wg(t,n,e,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Zu{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const I3=new RegExp(":enter","g"),F3=new RegExp(":leave","g");function Cg(t,n,e,i,s,r={},o={},a,l,c=[]){return(new P3).buildKeyframes(t,n,e,i,s,r,o,a,l,c)}class P3{buildKeyframes(n,e,i,s,r,o,a,l,c,h=[]){c=c||new Zu;const b=new Tg(n,e,c,s,r,h,[]);b.options=l,b.currentTimeline.setStyles([o],null,b.errors,l),Li(this,i,b);const T=b.timelines.filter(M=>M.containsAnimation());if(Object.keys(a).length){let M;for(let I=T.length-1;I>=0;I--){const B=T[I];if(B.element===e){M=B;break}}M&&!M.allowOnlyTimelineStyles()&&M.setStyles([a],null,b.errors,l)}return T.length?T.map(M=>M.buildKeyframes()):[wg(e,[],[],[],0,0,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const s=e.createSubContext(n.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,s,s.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const o=null!=i.duration?$r(i.duration):null,a=null!=i.delay?$r(i.delay):null;return 0!==o&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),Li(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let s=e;const r=n.options;if(r&&(r.params||r.delay)&&(s=e.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Ku);const o=$r(r.delay);s.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>Li(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>i&&s.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let s=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?$r(n.options.delay):0;n.steps.forEach(o=>{const a=e.createSubContext(n.options);r&&a.delayNextStep(r),Li(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(s),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Hu(e.params?zu(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),s=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),s.snapshotCurrentStyles());const r=n.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,s=e.currentAnimateTimings;!s&&i.getCurrentStyleProperties().length&&i.forwardFrame();const r=s&&s.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,s=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(s+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,s=n.options||{},r=s.delay?$r(s.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ku);let o=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,h)=>{e.currentQueryIndex=h;const b=e.createSubContext(n.options,c);r&&b.delayNextStep(r),c===e.element&&(l=b.currentTimeline),Li(this,n.animation,b),b.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,b.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,s=e.currentTimeline,r=n.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const h=e.currentTimeline;l&&h.delayNextStep(l);const b=h.currentTime;Li(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=s.currentTime-b+(s.startTime-i.currentTimeline.startTime)}}const Ku={};class Tg{constructor(n,e,i,s,r,o,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ku,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Qu(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let s=this.options;null!=i.duration&&(s.duration=$r(i.duration)),null!=i.delay&&(s.delay=$r(i.delay));const r=i.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=zu(r[a],o,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(s=>{i[s]=e[s]})}}return n}createSubContext(n=null,e,i){const s=e||this.element,r=new Tg(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Ku,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const s={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},r=new N3(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,s,n.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,s,r,o){let a=[];if(s&&a.push(this.element),n.length>0){n=(n=n.replace(I3,"."+this._enterClassName)).replace(F3,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&0==a.length&&o.push(function zR(t){return new Ye(3014,At)}()),a}}class Qu{constructor(n,e,i,s){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=s,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Qu(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){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))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles[n]=e,this._globalTimelineStyles[n]=e,this._styleSummary[n]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&(this._previousKeyframe.easing=n),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Xs,this._currentKeyframe[e]=Xs}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,s){e&&(this._previousKeyframe.easing=e);const r=s&&s.params||{},o=function R3(t,n){const e={};let i;return t.forEach(s=>{"*"===s?(i=i||Object.keys(n),i.forEach(r=>{e[r]=Xs})):br(s,!1,e)}),e}(n,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=zu(o[a],r,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Xs),this._updateStyle(a,l)})}applyStylesToKeyframe(){const n=this._pendingStyles,e=Object.keys(n);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=n[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(n=>{const e=this._localTimelineStyles[n];this._pendingStyles[n]=e,this._updateStyle(n,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){Object.keys(n._styleSummary).forEach(e=>{const i=this._styleSummary[e],s=n._styleSummary[e];(!i||s.time>i.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((a,l)=>{const c=br(a,!0);Object.keys(c).forEach(h=>{const b=c[h];"!"==b?n.add(h):b==Xs&&e.add(h)}),i||(c.offset=l/this.duration),s.push(c)});const r=n.size?ju(n.values()):[],o=e.size?ju(e.values()):[];if(i){const a=s[0],l=ia(a);a.offset=0,l.offset=1,s=[a,l]}return wg(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}}class N3 extends Qu{constructor(n,e,i,s,r,o,a=!1){super(n,e,o.delay),this.keyframes=i,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],o=i+e,a=e/o,l=br(n[0],!1);l.offset=0,r.push(l);const c=br(n[0],!1);c.offset=hC(a),r.push(c);const h=n.length-1;for(let b=1;b<=h;b++){let T=br(n[b],!1);T.offset=hC((e+T.offset*i)/o),r.push(T)}i=o,e=0,s="",n=r}return wg(this.element,n,this.preStyleProps,this.postStyleProps,i,e,s,!0)}}function hC(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class Dg{}class B3 extends Dg{normalizePropertyName(n,e){return yg(n)}normalizeStyleValue(n,e,i,s){let r="";const o=i.toString().trim();if(V3[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&s.push(function kR(t,n){return new Ye(3005,At)}())}return o+r}}const V3=(()=>function H3(t){const n={};return t.forEach(e=>n[e]=!0),n}("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(",")))();function dC(t,n,e,i,s,r,o,a,l,c,h,b,T){return{type:0,element:t,triggerName:n,isRemovalTransition:s,fromState:e,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:b,errors:T}}const Eg={};class fC{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,s){return function z3(t,n,e,i,s){return t.some(r=>r(n,e,i,s))}(this.ast.matchers,n,e,i,s)}buildStyles(n,e,i){const s=this._stateStyles["*"],r=this._stateStyles[n],o=s?s.buildStyles(e,i):{};return r?r.buildStyles(e,i):o}build(n,e,i,s,r,o,a,l,c,h){const b=[],T=this.ast.options&&this.ast.options.params||Eg,I=this.buildStyles(i,a&&a.params||Eg,b),B=l&&l.params||Eg,P=this.buildStyles(s,B,b),K=new Set,Q=new Map,ne=new Map,ge="void"===s,Ce={params:Object.assign(Object.assign({},T),B)},we=h?[]:Cg(n,e,this.ast.animation,r,o,I,P,Ce,c,b);let Oe=0;if(we.forEach(Ge=>{Oe=Math.max(Ge.duration+Ge.delay,Oe)}),b.length)return dC(e,this._triggerName,i,s,ge,I,P,[],[],Q,ne,Oe,b);we.forEach(Ge=>{const Ze=Ge.element,Ue=ki(Q,Ze,{});Ge.preStyleProps.forEach(He=>Ue[He]=!0);const ke=ki(ne,Ze,{});Ge.postStyleProps.forEach(He=>ke[He]=!0),Ze!==e&&K.add(Ze)});const Je=ju(K.values());return dC(e,this._triggerName,i,s,ge,I,P,we,Je,Q,ne,Oe)}}class j3{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i={},s=ia(this.defaultParams);return Object.keys(n).forEach(r=>{const o=n[r];null!=o&&(s[r]=o)}),this.styles.styles.forEach(r=>{if("string"!=typeof r){const o=r;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=zu(l,s,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class $3{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new j3(s.style,s.options&&s.options.params||{},i)}),pC(this.states,"true","1"),pC(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new fC(n,s,this.states))}),this.fallbackTransition=function U3(t,n,e){return new fC(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,s){return this.transitionFactories.find(o=>o.match(n,e,i,s))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function pC(t,n,e){t.hasOwnProperty(n)?t.hasOwnProperty(e)||(t[e]=t[n]):t.hasOwnProperty(e)&&(t[n]=t[e])}const W3=new Zu;class Y3{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(n,e){const i=[],r=xg(this._driver,e,i,[]);if(i.length)throw function XR(t){return new Ye(3503,At)}();this._animations[n]=r}_buildPlayer(n,e,i){const s=n.element,r=Ww(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(s,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const s=[],r=this._animations[n];let o;const a=new Map;if(r?(o=Cg(this._driver,e,r,gg,Ru,{},{},i,W3,s),o.forEach(h=>{const b=ki(a,h.element,{});h.postStyleProps.forEach(T=>b[T]=null)})):(s.push(function ZR(){return new Ye(3300,At)}()),o=[]),s.length)throw function KR(t){return new Ye(3504,At)}();a.forEach((h,b)=>{Object.keys(h).forEach(T=>{h[T]=this._driver.computeStyle(b,T,Xs)})});const c=xr(o.map(h=>{const b=a.get(h.element);return this._buildPlayer(h,{},b)}));return this._playersById[n]=c,c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),delete this._playersById[n];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById[n];if(!e)throw function QR(t){return new Ye(3301,At)}();return e}listen(n,e,i,s){const r=hg(e,"","","");return cg(this._getPlayer(n),i,r,s),()=>{}}command(n,e,i,s){if("register"==i)return void this.register(n,s[0]);if("create"==i)return void this.create(n,e,s[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(n)}}}const gC="ng-animate-queued",Sg="ng-animate-disabled",J3=[],mC={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},q3={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Yi="__ng_removed";class Ag{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function iB(t){return null!=t?t:null}(i?n.value:n),i){const r=ia(n);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(s=>{null==i[s]&&(i[s]=e[s])})}}}const Sl="void",Mg=new Ag(Sl);class eB{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Xi(e,this._hostClassName)}listen(n,e,i,s){if(!this._triggers.hasOwnProperty(e))throw function JR(t,n){return new Ye(3302,At)}();if(null==i||0==i.length)throw function qR(t){return new Ye(3303,At)}();if(!function sB(t){return"start"==t||"done"==t}(i))throw function e3(t,n){return new Ye(3400,At)}();const r=ki(this._elementListeners,n,[]),o={name:e,phase:i,callback:s};r.push(o);const a=ki(this._engine.statesByElement,n,{});return a.hasOwnProperty(e)||(Xi(n,Bu),Xi(n,Bu+"-"+e),a[e]=Mg),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers[e]||delete a[e]})}}register(n,e){return!this._triggers[n]&&(this._triggers[n]=e,!0)}_getTrigger(n){const e=this._triggers[n];if(!e)throw function t3(t){return new Ye(3401,At)}();return e}trigger(n,e,i,s=!0){const r=this._getTrigger(e),o=new kg(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Xi(n,Bu),Xi(n,Bu+"-"+e),this._engine.statesByElement.set(n,a={}));let l=a[e];const c=new Ag(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=Mg),c.value!==Sl&&l.value===c.value){if(!function aB(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let s=0;s<e.length;s++){const r=e[s];if(!n.hasOwnProperty(r)||t[r]!==n[r])return!1}return!0}(l.params,c.params)){const B=[],P=r.matchStyles(l.value,l.params,B),K=r.matchStyles(c.value,c.params,B);B.length?this._engine.reportError(B):this._engine.afterFlush(()=>{Ur(n,P),Ms(n,K)})}return}const T=ki(this._engine.playersByElement,n,[]);T.forEach(B=>{B.namespaceId==this.id&&B.triggerName==e&&B.queued&&B.destroy()});let M=r.matchTransition(l.value,c.value,n,c.params),I=!1;if(!M){if(!s)return;M=r.fallbackTransition,I=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:M,fromState:l,toState:c,player:o,isFallbackTransition:I}),I||(Xi(n,gC),o.onStart(()=>{sa(n,gC)})),o.onDone(()=>{let B=this.players.indexOf(o);B>=0&&this.players.splice(B,1);const P=this._engine.playersByElement.get(n);if(P){let K=P.indexOf(o);K>=0&&P.splice(K,1)}}),this.players.push(o),T.push(o),o}deregister(n){delete this._triggers[n],this._engine.statesByElement.forEach((e,i)=>{delete e[n]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(s=>s.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Vu,!0);i.forEach(s=>{if(s[Yi])return;const r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(n,e,i,s){const r=this._engine.statesByElement.get(n),o=new Map;if(r){const a=[];if(Object.keys(r).forEach(l=>{if(o.set(l,r[l].value),this._triggers[l]){const c=this.trigger(n,l,Sl,s);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,o),i&&xr(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const s=new Set;e.forEach(r=>{const o=r.name;if(s.has(o))return;s.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||Mg,h=new Ag(Sl),b=new kg(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:l,fromState:c,toState:h,player:b,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let s=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)s=!0;else{let o=n;for(;o=o.parentNode;)if(i.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(n),s)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[Yi];(!r||r===mC)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Xi(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const s=i.player;if(s.destroyed)return;const r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=hg(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,cg(i.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(i)}),this._queue=[],e.sort((i,s)=>{const r=i.transition.ast.depCount,o=s.transition.ast.depCount;return 0==r||0==o?r-o:this._engine.driver.containsElement(i.element,s.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class tB{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new eB(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,s=this.namespacesByHostElement,r=i.length-1;if(r>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const l=s.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=r;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,e)){i.splice(a+1,0,n),o=!0;break}o||i.unshift(n)}else i.push(n);return s.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let s=this._namespaceLookup[n];s&&s.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const s=this._namespaceList.indexOf(i);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i){const s=Object.keys(i);for(let r=0;r<s.length;r++){const o=i[s[r]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&e.add(a)}}}return e}trigger(n,e,i,s){if(Ju(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,s),!0}return!1}insertNode(n,e,i,s){if(!Ju(e))return;const r=e[Yi];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(n){const o=this._fetchNamespace(n);o&&o.insertNode(e,i)}s&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Xi(n,Sg)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),sa(n,Sg))}removeNode(n,e,i,s){if(Ju(e)){const r=n?this._fetchNamespace(n):null;if(r?r.removeNode(e,s):this.markElementAsRemoved(n,e,!1,s),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(n,e,i,s,r){this.collectedLeaveElements.push(e),e[Yi]={namespaceId:n,setForRemoval:s,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,s,r){return Ju(e)?this._fetchNamespace(n).listen(e,i,s,r):()=>{}}_buildInstruction(n,e,i,s,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,s,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,Vu,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,mg,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return xr(this.players).onDone(()=>n());n()})}processLeaveNode(n){var e;const i=n[Yi];if(i&&i.setForRemoval){if(n[Yi]=mC,i.namespaceId){this.destroyInnerAnimations(n);const s=this._fetchNamespace(i.namespaceId);s&&s.clearElementCache(n)}this._onRemovalComplete(n,i.setForRemoval)}(null===(e=n.classList)||void 0===e?void 0:e.contains(Sg))&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,s)=>this._balanceNamespaceList(i,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Xi(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,n)}finally{for(let s=0;s<i.length;s++)i[s]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?xr(e).onDone(()=>{i.forEach(s=>s())}):i.forEach(s=>s())}}reportError(n){throw function n3(t){return new Ye(3402,At)}()}_flushAnimations(n,e){const i=new Zu,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(Ae=>{h.add(Ae);const Ve=this.driver.query(Ae,".ng-animate-queued",!0);for(let Re=0;Re<Ve.length;Re++)h.add(Ve[Re])});const b=this.bodyNode,T=Array.from(this.statesByElement.keys()),M=yC(T,this.collectedEnterElements),I=new Map;let B=0;M.forEach((Ae,Ve)=>{const Re=gg+B++;I.set(Ve,Re),Ae.forEach(We=>Xi(We,Re))});const P=[],K=new Set,Q=new Set;for(let Ae=0;Ae<this.collectedLeaveElements.length;Ae++){const Ve=this.collectedLeaveElements[Ae],Re=Ve[Yi];Re&&Re.setForRemoval&&(P.push(Ve),K.add(Ve),Re.hasAnimation?this.driver.query(Ve,".ng-star-inserted",!0).forEach(We=>K.add(We)):Q.add(Ve))}const ne=new Map,ge=yC(T,Array.from(K));ge.forEach((Ae,Ve)=>{const Re=Ru+B++;ne.set(Ve,Re),Ae.forEach(We=>Xi(We,Re))}),n.push(()=>{M.forEach((Ae,Ve)=>{const Re=I.get(Ve);Ae.forEach(We=>sa(We,Re))}),ge.forEach((Ae,Ve)=>{const Re=ne.get(Ve);Ae.forEach(We=>sa(We,Re))}),P.forEach(Ae=>{this.processLeaveNode(Ae)})});const Ce=[],we=[];for(let Ae=this._namespaceList.length-1;Ae>=0;Ae--)this._namespaceList[Ae].drainQueuedTransitions(e).forEach(Re=>{const We=Re.player,it=Re.element;if(Ce.push(We),this.collectedEnterElements.length){const Zt=it[Yi];if(Zt&&Zt.setForMove){if(Zt.previousTriggersValues&&Zt.previousTriggersValues.has(Re.triggerName)){const Vn=Zt.previousTriggersValues.get(Re.triggerName),Ne=this.statesByElement.get(Re.element);Ne&&Ne[Re.triggerName]&&(Ne[Re.triggerName].value=Vn)}return void We.destroy()}}const Et=!b||!this.driver.containsElement(b,it),hn=ne.get(it),Bn=I.get(it),xt=this._buildInstruction(Re,i,Bn,hn,Et);if(xt.errors&&xt.errors.length)return void we.push(xt);if(Et)return We.onStart(()=>Ur(it,xt.fromStyles)),We.onDestroy(()=>Ms(it,xt.toStyles)),void s.push(We);if(Re.isFallbackTransition)return We.onStart(()=>Ur(it,xt.fromStyles)),We.onDestroy(()=>Ms(it,xt.toStyles)),void s.push(We);const Ri=[];xt.timelines.forEach(Zt=>{Zt.stretchStartingKeyframe=!0,this.disabledNodes.has(Zt.element)||Ri.push(Zt)}),xt.timelines=Ri,i.append(it,xt.timelines),o.push({instruction:xt,player:We,element:it}),xt.queriedElements.forEach(Zt=>ki(a,Zt,[]).push(We)),xt.preStyleProps.forEach((Zt,Vn)=>{const Ne=Object.keys(Zt);if(Ne.length){let tt=l.get(Vn);tt||l.set(Vn,tt=new Set),Ne.forEach(gt=>tt.add(gt))}}),xt.postStyleProps.forEach((Zt,Vn)=>{const Ne=Object.keys(Zt);let tt=c.get(Vn);tt||c.set(Vn,tt=new Set),Ne.forEach(gt=>tt.add(gt))})});if(we.length){const Ae=[];we.forEach(Ve=>{Ae.push(function s3(t,n){return new Ye(3505,At)}())}),Ce.forEach(Ve=>Ve.destroy()),this.reportError(Ae)}const Oe=new Map,Je=new Map;o.forEach(Ae=>{const Ve=Ae.element;i.has(Ve)&&(Je.set(Ve,Ve),this._beforeAnimationBuild(Ae.player.namespaceId,Ae.instruction,Oe))}),s.forEach(Ae=>{const Ve=Ae.element;this._getPreviousPlayers(Ve,!1,Ae.namespaceId,Ae.triggerName,null).forEach(We=>{ki(Oe,Ve,[]).push(We),We.destroy()})});const Ge=P.filter(Ae=>bC(Ae,l,c)),Ze=new Map;_C(Ze,this.driver,Q,c,Xs).forEach(Ae=>{bC(Ae,l,c)&&Ge.push(Ae)});const ke=new Map;M.forEach((Ae,Ve)=>{_C(ke,this.driver,new Set(Ae),l,"!")}),Ge.forEach(Ae=>{const Ve=Ze.get(Ae),Re=ke.get(Ae);Ze.set(Ae,Object.assign(Object.assign({},Ve),Re))});const He=[],Vt=[],Dt={};o.forEach(Ae=>{const{element:Ve,player:Re,instruction:We}=Ae;if(i.has(Ve)){if(h.has(Ve))return Re.onDestroy(()=>Ms(Ve,We.toStyles)),Re.disabled=!0,Re.overrideTotalTime(We.totalTime),void s.push(Re);let it=Dt;if(Je.size>1){let hn=Ve;const Bn=[];for(;hn=hn.parentNode;){const xt=Je.get(hn);if(xt){it=xt;break}Bn.push(hn)}Bn.forEach(xt=>Je.set(xt,it))}const Et=this._buildAnimation(Re.namespaceId,We,Oe,r,ke,Ze);if(Re.setRealPlayer(Et),it===Dt)He.push(Re);else{const hn=this.playersByElement.get(it);hn&&hn.length&&(Re.parentPlayer=xr(hn)),s.push(Re)}}else Ur(Ve,We.fromStyles),Re.onDestroy(()=>Ms(Ve,We.toStyles)),Vt.push(Re),h.has(Ve)&&s.push(Re)}),Vt.forEach(Ae=>{const Ve=r.get(Ae.element);if(Ve&&Ve.length){const Re=xr(Ve);Ae.setRealPlayer(Re)}}),s.forEach(Ae=>{Ae.parentPlayer?Ae.syncPlayerEvents(Ae.parentPlayer):Ae.destroy()});for(let Ae=0;Ae<P.length;Ae++){const Ve=P[Ae],Re=Ve[Yi];if(sa(Ve,Ru),Re&&Re.hasAnimation)continue;let We=[];if(a.size){let Et=a.get(Ve);Et&&Et.length&&We.push(...Et);let hn=this.driver.query(Ve,mg,!0);for(let Bn=0;Bn<hn.length;Bn++){let xt=a.get(hn[Bn]);xt&&xt.length&&We.push(...xt)}}const it=We.filter(Et=>!Et.destroyed);it.length?rB(this,Ve,it):this.processLeaveNode(Ve)}return P.length=0,He.forEach(Ae=>{this.players.push(Ae),Ae.onDone(()=>{Ae.destroy();const Ve=this.players.indexOf(Ae);this.players.splice(Ve,1)}),Ae.play()}),He}elementContainsData(n,e){let i=!1;const s=e[Yi];return s&&s.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,s,r){let o=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(o=a)}else{const a=this.playersByElement.get(n);if(a){const l=!r||r==Sl;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(i||s)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(n,e,i){const r=e.element,o=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,h=c!==r,b=ki(i,c,[]);this._getPreviousPlayers(c,h,o,a,e.toState).forEach(M=>{const I=M.getRealPlayer();I.beforeDestroy&&I.beforeDestroy(),M.destroy(),b.push(M)})}Ur(r,e.fromStyles)}_buildAnimation(n,e,i,s,r,o){const a=e.triggerName,l=e.element,c=[],h=new Set,b=new Set,T=e.timelines.map(I=>{const B=I.element;h.add(B);const P=B[Yi];if(P&&P.removedBeforeQueried)return new Dl(I.duration,I.delay);const K=B!==l,Q=function oB(t){const n=[];return xC(t,n),n}((i.get(B)||J3).map(Oe=>Oe.getRealPlayer())).filter(Oe=>!!Oe.element&&Oe.element===B),ne=r.get(B),ge=o.get(B),Ce=Ww(0,this._normalizer,0,I.keyframes,ne,ge),we=this._buildPlayer(I,Ce,Q);if(I.subTimeline&&s&&b.add(B),K){const Oe=new kg(n,a,B);Oe.setRealPlayer(we),c.push(Oe)}return we});c.forEach(I=>{ki(this.playersByQueriedElement,I.element,[]).push(I),I.onDone(()=>function nB(t,n,e){let i;if(t instanceof Map){if(i=t.get(n),i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&t.delete(n)}}else if(i=t[n],i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&delete t[n]}return i}(this.playersByQueriedElement,I.element,I))}),h.forEach(I=>Xi(I,nC));const M=xr(T);return M.onDestroy(()=>{h.forEach(I=>sa(I,nC)),Ms(l,e.toStyles)}),b.forEach(I=>{ki(s,I,[]).push(M)}),M}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new Dl(n.duration,n.delay)}}class kg{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new Dl,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>cg(n,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){ki(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Ju(t){return t&&1===t.nodeType}function vC(t,n){const e=t.style.display;return t.style.display=null!=n?n:"none",e}function _C(t,n,e,i,s){const r=[];e.forEach(l=>r.push(vC(l)));const o=[];i.forEach((l,c)=>{const h={};l.forEach(b=>{const T=h[b]=n.computeStyle(c,b,s);(!T||0==T.length)&&(c[Yi]=q3,o.push(c))}),t.set(c,h)});let a=0;return e.forEach(l=>vC(l,r[a++])),o}function yC(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const s=new Set(n),r=new Map;function o(a){if(!a)return 1;let l=r.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:s.has(c)?1:o(c),r.set(a,l),l}return n.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function Xi(t,n){var e;null===(e=t.classList)||void 0===e||e.add(n)}function sa(t,n){var e;null===(e=t.classList)||void 0===e||e.remove(n)}function rB(t,n,e){xr(e).onDone(()=>t.processLeaveNode(n))}function xC(t,n){for(let e=0;e<t.length;e++){const i=t[e];i instanceof $w?xC(i.players,n):n.push(i)}}function bC(t,n,e){const i=e.get(t);if(!i)return!1;let s=n.get(t);return s?i.forEach(r=>s.add(r)):n.set(t,i),e.delete(t),!0}class qu{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new tB(n,e,i),this._timelineEngine=new Y3(n,e,i),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(n,e,i,s,r){const o=n+"-"+s;let a=this._triggerCache[o];if(!a){const l=[],h=xg(this._driver,r,l,[]);if(l.length)throw function WR(t,n){return new Ye(3404,At)}();a=function G3(t,n,e){return new $3(t,n,e)}(s,h,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,s,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,s){this._transitionEngine.insertNode(n,e,i,s)}onRemove(n,e,i,s){this._transitionEngine.removeNode(n,e,s||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,s){if("@"==i.charAt(0)){const[r,o]=Yw(i);this._timelineEngine.command(r,e,o,s)}else this._transitionEngine.trigger(n,e,i,s)}listen(n,e,i,s,r){if("@"==i.charAt(0)){const[o,a]=Yw(i);return this._timelineEngine.listen(o,e,a,r)}return this._transitionEngine.listen(n,e,i,s,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let cB=(()=>{class t{constructor(e,i,s){this._element=e,this._startStyles=i,this._endStyles=s,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ms(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ms(this._element,this._initialStyles),this._endStyles&&(Ms(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ur(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ur(this._element,this._endStyles),this._endStyles=null),Ms(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Lg(t){let n=null;const e=Object.keys(t);for(let i=0;i<e.length;i++){const s=e[i];uB(s)&&(n=n||{},n[s]=t[s])}return n}function uB(t){return"display"===t||"position"===t}class wC{constructor(n,e,i,s){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(n,e,i){return n.animate(e,i)}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(n[i]=this._finished?e[i]:aC(this.element,i))})}this.currentSnapshot=n}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class hB{validateStyleProperty(n){return Qw(n)}matchesElement(n,e){return!1}containsElement(n,e){return Jw(n,e)}getParentElement(n){return fg(n)}query(n,e,i){return qw(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,s,r,o=[]){const l={duration:i,delay:s,fill:0==s?"both":"forwards"};r&&(l.easing=r);const c={},h=o.filter(T=>T instanceof wC);(function g3(t,n){return 0===t||0===n})(i,s)&&h.forEach(T=>{let M=T.currentSnapshot;Object.keys(M).forEach(I=>c[I]=M[I])}),e=function m3(t,n,e){const i=Object.keys(e);if(i.length&&n.length){let r=n[0],o=[];if(i.forEach(a=>{r.hasOwnProperty(a)||o.push(a),r[a]=e[a]}),o.length)for(var s=1;s<n.length;s++){let a=n[s];o.forEach(function(l){a[l]=aC(t,l)})}}return n}(n,e=e.map(T=>br(T,!1)),c);const b=function lB(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=Lg(n[0]),n.length>1&&(i=Lg(n[n.length-1]))):n&&(e=Lg(n)),e||i?new cB(t,e,i):null}(n,e);return new wC(n,e,l,b)}}let dB=(()=>{class t extends Hw{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:es.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?zw(e):e;return CC(this._renderer,null,i,"register",[s]),new fB(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Ee(ul),Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();class fB extends class CR{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new pB(this._id,n,e||{},this._renderer)}}class pB{constructor(n,e,i,s){this.id=n,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return CC(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,e;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function CC(t,n,e,i,s){return t.setProperty(n,`@@${e}:${i}`,s)}const TC="@.disabled";let gB=(()=>{class t{constructor(e,i,s){this.delegate=e,this.engine=i,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,o)=>{const a=null==o?void 0:o.parentNode(r);a&&o.removeChild(a,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let h=this._rendererCache.get(r);return h||(h=new DC("",r,this.engine),this._rendererCache.set(r,h)),h}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=h=>{Array.isArray(h)?h.forEach(l):this.engine.registerTrigger(o,a,e,h.name,h)};return i.data.animation.forEach(l),new mB(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,s){e>=0&&e<this._microtaskId?this._zone.run(()=>i(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Ee(ul),Ee(qu),Ee(Bt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();class DC{constructor(n,e,i){this.namespaceId=n,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,s=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,s)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,s){this.delegate.setAttribute(n,e,i,s)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,s){this.delegate.setStyle(n,e,i,s)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==TC?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class mB extends DC{constructor(n,e,i,s){super(e,i,s),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==TC?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.substr(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const s=function vB(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.substr(1),o="";return"@"!=r.charAt(0)&&([r,o]=function _B(t){const n=t.indexOf(".");return[t.substring(0,n),t.substr(n+1)]}(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let yB=(()=>{class t extends qu{constructor(e,i,s){super(e.body,i,s)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt),Ee(pg),Ee(Dg))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();const EC=new et("AnimationModuleType"),SC=[{provide:Hw,useClass:dB},{provide:Dg,useFactory:function xB(){return new B3}},{provide:qu,useClass:yB},{provide:ul,useFactory:function bB(t,n,e){return new gB(t,n,e)},deps:[Iu,qu,Bt]}],AC=[{provide:pg,useFactory:()=>new hB},{provide:EC,useValue:"BrowserAnimations"},...SC],wB=[{provide:pg,useClass:eC},{provide:EC,useValue:"NoopAnimations"},...SC];let CB=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?wB:AC}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({providers:AC,imports:[Ow]}),t})();class Ig{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class Og extends Ig{constructor(n,e,i,s){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=s}}class TB extends Ig{constructor(n,e,i){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class DB extends Ig{constructor(n){super(),this.element=n instanceof Gt?n.nativeElement:n}}class MC extends class EB{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof Og?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof TB?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof DB?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(n,e,i,s,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=s,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let s;return n.viewContainerRef?(s=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=i.create(n.injector||this._defaultInjector),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=n,s}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context);return i.rootNodes.forEach(s=>this.outletElement.appendChild(s)),i.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(i);-1!==s&&e.remove(s)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}class SB extends MC{}let AB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({}),t})();function Ng(t,n,e,i){var o,s=arguments.length,r=s<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(s<3?o(r):s>3?o(n,e,r):o(n,e))||r);return s>3&&r&&Object.defineProperty(n,e,r),r}function th(t,n,e,i){return d(e)&&(i=e,e=void 0),i?th(t,n,e).pipe(de(s=>x(s)?i(...s):i(s))):new te(s=>{LC(t,n,function r(o){s.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},s,e)})}function LC(t,n,e,i,s){let r;if(function eV(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const o=t;t.addEventListener(n,e,s),r=()=>o.removeEventListener(n,e,s)}else if(function qB(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const o=t;t.on(n,e),r=()=>o.off(n,e)}else if(function JB(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const o=t;t.addListener(n,e),r=()=>o.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o<a;o++)LC(t[o],n,e,i,s)}i.add(r)}"function"==typeof SuppressedError&&SuppressedError;const Vg=new hs(Ou);function Hg(t,n=Vg){return e=>e.lift(new tV(t,n))}class tV{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new nV(n,this.dueTime,this.scheduler))}}class nV extends k{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(iV,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function iV(t){t.debouncedNext()}function sV(){}function zg(t){return null==t?sV:function(){return this.querySelector(t)}}function oV(){return[]}function IC(t){return null==t?oV:function(){return this.querySelectorAll(t)}}function OC(t){return function(){return this.matches(t)}}function FC(t){return new Array(t.length)}function nh(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function hV(t,n,e,i,s,r){for(var a,o=0,l=n.length,c=r.length;o<c;++o)(a=n[o])?(a.__data__=r[o],i[o]=a):e[o]=new nh(t,r[o]);for(;o<l;++o)(a=n[o])&&(s[o]=a)}function dV(t,n,e,i,s,r,o){var a,l,M,c={},h=n.length,b=r.length,T=new Array(h);for(a=0;a<h;++a)(l=n[a])&&(T[a]=M="$"+o.call(l,l.__data__,a,n),M in c?s[a]=l:c[M]=l);for(a=0;a<b;++a)(l=c[M="$"+o.call(t,r[a],a,r)])?(i[a]=l,l.__data__=r[a],c[M]=null):e[a]=new nh(t,r[a]);for(a=0;a<h;++a)(l=n[a])&&c[T[a]]===l&&(s[a]=l)}function yV(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}nh.prototype={constructor:nh,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var jg="http://www.w3.org/1999/xhtml";const NC={svg:"http://www.w3.org/2000/svg",xhtml:jg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ih(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),NC.hasOwnProperty(n)?{space:NC[n],local:t}:t}function EV(t){return function(){this.removeAttribute(t)}}function SV(t){return function(){this.removeAttributeNS(t.space,t.local)}}function AV(t,n){return function(){this.setAttribute(t,n)}}function MV(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function kV(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function LV(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function RC(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function OV(t){return function(){this.style.removeProperty(t)}}function FV(t,n,e){return function(){this.style.setProperty(t,n,e)}}function PV(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function ra(t,n){return t.style.getPropertyValue(n)||RC(t).getComputedStyle(t,null).getPropertyValue(n)}function RV(t){return function(){delete this[t]}}function BV(t,n){return function(){this[t]=n}}function VV(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function BC(t){return t.trim().split(/^|\s+/)}function Gg(t){return t.classList||new VC(t)}function VC(t){this._node=t,this._names=BC(t.getAttribute("class")||"")}function HC(t,n){for(var e=Gg(t),i=-1,s=n.length;++i<s;)e.add(n[i])}function zC(t,n){for(var e=Gg(t),i=-1,s=n.length;++i<s;)e.remove(n[i])}function zV(t){return function(){HC(this,t)}}function jV(t){return function(){zC(this,t)}}function GV(t,n){return function(){(n.apply(this,arguments)?HC:zC)(this,t)}}function UV(){this.textContent=""}function WV(t){return function(){this.textContent=t}}function YV(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function ZV(){this.innerHTML=""}function KV(t){return function(){this.innerHTML=t}}function QV(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function qV(){this.nextSibling&&this.parentNode.appendChild(this)}function t5(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function s5(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===jg&&n.documentElement.namespaceURI===jg?n.createElement(t):n.createElementNS(e,t)}}function r5(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function jC(t){var n=ih(t);return(n.local?r5:s5)(n)}function a5(){return null}function c5(){var t=this.parentNode;t&&t.removeChild(this)}function h5(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function d5(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}VC.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var GC={},Ot=null;function m5(t,n,e){return t=$C(t,n,e),function(i){var s=i.relatedTarget;(!s||s!==this&&!(8&s.compareDocumentPosition(this)))&&t.call(this,i)}}function $C(t,n,e){return function(i){var s=Ot;Ot=i;try{t.call(this,this.__data__,n,e)}finally{Ot=s}}}function v5(t){return t.trim().split(/^|\s+/).map(function(n){var e="",i=n.indexOf(".");return i>=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}function _5(t){return function(){var n=this.__on;if(n){for(var r,e=0,i=-1,s=n.length;e<s;++e)r=n[e],t.type&&r.type!==t.type||r.name!==t.name?n[++i]=r:this.removeEventListener(r.type,r.listener,r.capture);++i?n.length=i:delete this.__on}}}function y5(t,n,e){var i=GC.hasOwnProperty(t.type)?m5:$C;return function(s,r,o){var l,a=this.__on,c=i(n,r,o);if(a)for(var h=0,b=a.length;h<b;++h)if((l=a[h]).type===t.type&&l.name===t.name)return this.removeEventListener(l.type,l.listener,l.capture),this.addEventListener(l.type,l.listener=c,l.capture=e),void(l.value=n);this.addEventListener(t.type,c,e),l={type:t.type,name:t.name,value:n,listener:c,capture:e},a?a.push(l):this.__on=[l]}}function UC(t,n,e){var i=RC(t),s=i.CustomEvent;"function"==typeof s?s=new s(n,e):(s=i.document.createEvent("Event"),e?(s.initEvent(n,e.bubbles,e.cancelable),s.detail=e.detail):s.initEvent(n,!1,!1)),t.dispatchEvent(s)}function w5(t,n){return function(){return UC(this,t,n)}}function C5(t,n){return function(){return UC(this,t,n.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(GC={mouseenter:"mouseover",mouseleave:"mouseout"}));var WC=[null];function Ii(t,n){this._groups=t,this._parents=n}function YC(){return new Ii([[document.documentElement]],WC)}Ii.prototype=YC.prototype={constructor:Ii,select:function rV(t){"function"!=typeof t&&(t=zg(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,c,r=n[s],o=r.length,a=i[s]=new Array(o),h=0;h<o;++h)(l=r[h])&&(c=t.call(l,l.__data__,h,r))&&("__data__"in l&&(c.__data__=l.__data__),a[h]=c);return new Ii(i,this._parents)},selectAll:function aV(t){"function"!=typeof t&&(t=IC(t));for(var n=this._groups,e=n.length,i=[],s=[],r=0;r<e;++r)for(var l,o=n[r],a=o.length,c=0;c<a;++c)(l=o[c])&&(i.push(t.call(l,l.__data__,c,o)),s.push(l));return new Ii(i,s)},filter:function lV(t){"function"!=typeof t&&(t=OC(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,r=n[s],o=r.length,a=i[s]=[],c=0;c<o;++c)(l=r[c])&&t.call(l,l.__data__,c,r)&&a.push(l);return new Ii(i,this._parents)},data:function fV(t,n){if(!t)return M=new Array(this.size()),c=-1,this.each(function(we){M[++c]=we}),M;var e=n?dV:hV,i=this._parents,s=this._groups;"function"!=typeof t&&(t=function uV(t){return function(){return t}}(t));for(var r=s.length,o=new Array(r),a=new Array(r),l=new Array(r),c=0;c<r;++c){var h=i[c],b=s[c],T=b.length,M=t.call(h,h&&h.__data__,c,i),I=M.length,B=a[c]=new Array(I),P=o[c]=new Array(I);e(h,b,B,P,l[c]=new Array(T),M,n);for(var ge,Ce,Q=0,ne=0;Q<I;++Q)if(ge=B[Q]){for(Q>=ne&&(ne=Q+1);!(Ce=P[ne])&&++ne<I;);ge._next=Ce||null}}return(o=new Ii(o,i))._enter=a,o._exit=l,o},enter:function cV(){return new Ii(this._enter||this._groups.map(FC),this._parents)},exit:function pV(){return new Ii(this._exit||this._groups.map(FC),this._parents)},join:function gV(t,n,e){var i=this.enter(),s=this,r=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=n&&(s=n(s)),null==e?r.remove():e(r),i&&s?i.merge(s).order():s},merge:function mV(t){for(var n=this._groups,e=t._groups,i=n.length,r=Math.min(i,e.length),o=new Array(i),a=0;a<r;++a)for(var T,l=n[a],c=e[a],h=l.length,b=o[a]=new Array(h),M=0;M<h;++M)(T=l[M]||c[M])&&(b[M]=T);for(;a<i;++a)o[a]=n[a];return new Ii(o,this._parents)},order:function vV(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var o,i=t[n],s=i.length-1,r=i[s];--s>=0;)(o=i[s])&&(r&&4^o.compareDocumentPosition(r)&&r.parentNode.insertBefore(o,r),r=o);return this},sort:function _V(t){function n(b,T){return b&&T?t(b.__data__,T.__data__):!b-!T}t||(t=yV);for(var e=this._groups,i=e.length,s=new Array(i),r=0;r<i;++r){for(var c,o=e[r],a=o.length,l=s[r]=new Array(a),h=0;h<a;++h)(c=o[h])&&(l[h]=c);l.sort(n)}return new Ii(s,this._parents).order()},call:function xV(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function bV(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},node:function wV(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var i=t[n],s=0,r=i.length;s<r;++s){var o=i[s];if(o)return o}return null},size:function CV(){var t=0;return this.each(function(){++t}),t},empty:function TV(){return!this.node()},each:function DV(t){for(var n=this._groups,e=0,i=n.length;e<i;++e)for(var a,s=n[e],r=0,o=s.length;r<o;++r)(a=s[r])&&t.call(a,a.__data__,r,s);return this},attr:function IV(t,n){var e=ih(t);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==n?e.local?SV:EV:"function"==typeof n?e.local?LV:kV:e.local?MV:AV)(e,n))},style:function NV(t,n,e){return arguments.length>1?this.each((null==n?OV:"function"==typeof n?PV:FV)(t,n,null==e?"":e)):ra(this.node(),t)},property:function HV(t,n){return arguments.length>1?this.each((null==n?RV:"function"==typeof n?VV:BV)(t,n)):this.node()[t]},classed:function $V(t,n){var e=BC(t+"");if(arguments.length<2){for(var i=Gg(this.node()),s=-1,r=e.length;++s<r;)if(!i.contains(e[s]))return!1;return!0}return this.each(("function"==typeof n?GV:n?zV:jV)(e,n))},text:function XV(t){return arguments.length?this.each(null==t?UV:("function"==typeof t?YV:WV)(t)):this.node().textContent},html:function JV(t){return arguments.length?this.each(null==t?ZV:("function"==typeof t?QV:KV)(t)):this.node().innerHTML},raise:function e5(){return this.each(qV)},lower:function n5(){return this.each(t5)},append:function o5(t){var n="function"==typeof t?t:jC(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function l5(t,n){var e="function"==typeof t?t:jC(t),i=null==n?a5:"function"==typeof n?n:zg(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function u5(){return this.each(c5)},clone:function f5(t){return this.select(t?d5:h5)},datum:function p5(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function x5(t,n,e){var s,o,i=v5(t+""),r=i.length;if(!(arguments.length<2)){for(a=n?y5:_5,null==e&&(e=!1),s=0;s<r;++s)this.each(a(i[s],n,e));return this}var a=this.node().__on;if(a)for(var h,l=0,c=a.length;l<c;++l)for(s=0,h=a[l];s<r;++s)if((o=i[s]).type===h.type&&o.name===h.name)return h.value},dispatch:function T5(t,n){return this.each(("function"==typeof n?C5:w5)(t,n))}};const Ml=YC;function Sn(t){return"string"==typeof t?new Ii([[document.querySelector(t)]],[document.documentElement]):new Ii([[t]],WC)}var D5={value:function(){}};function XC(){for(var i,t=0,n=arguments.length,e={};t<n;++t){if(!(i=arguments[t]+"")||i in e||/[\s.]/.test(i))throw new Error("illegal type: "+i);e[i]=[]}return new sh(e)}function sh(t){this._=t}function E5(t,n){return t.trim().split(/^|\s+/).map(function(e){var i="",s=e.indexOf(".");if(s>=0&&(i=e.slice(s+1),e=e.slice(0,s)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function S5(t,n){for(var s,e=0,i=t.length;e<i;++e)if((s=t[e]).name===n)return s.value}function ZC(t,n,e){for(var i=0,s=t.length;i<s;++i)if(t[i].name===n){t[i]=D5,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=e&&t.push({name:n,value:e}),t}sh.prototype=XC.prototype={constructor:sh,on:function(t,n){var s,e=this._,i=E5(t+"",e),r=-1,o=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++r<o;)if(s=(t=i[r]).type)e[s]=ZC(e[s],t.name,n);else if(null==n)for(s in e)e[s]=ZC(e[s],t.name,null);return this}for(;++r<o;)if((s=(t=i[r]).type)&&(s=S5(e[s],t.name)))return s},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new sh(t)},call:function(t,n){if((s=arguments.length-2)>0)for(var s,r,e=new Array(s),i=0;i<s;++i)e[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=0,s=(r=this._[t]).length;i<s;++i)r[i].value.apply(n,e)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],s=0,r=i.length;s<r;++s)i[s].value.apply(n,e)}};const rh=XC;function Ug(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function KC(t,n){var e=Object.create(t.prototype);for(var i in n)e[i]=n[i];return e}function kl(){}var oh=1/.7,oa="\\s*([+-]?\\d+)\\s*",Il="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ks="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",k5=/^#([0-9a-f]{3,8})$/,L5=new RegExp("^rgb\\("+[oa,oa,oa]+"\\)$"),I5=new RegExp("^rgb\\("+[ks,ks,ks]+"\\)$"),O5=new RegExp("^rgba\\("+[oa,oa,oa,Il]+"\\)$"),F5=new RegExp("^rgba\\("+[ks,ks,ks,Il]+"\\)$"),P5=new RegExp("^hsl\\("+[Il,ks,ks]+"\\)$"),N5=new RegExp("^hsla\\("+[Il,ks,ks,Il]+"\\)$"),QC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function JC(){return this.rgb().formatHex()}function qC(){return this.rgb().formatRgb()}function Yr(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=k5.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?eT(n):3===e?new Oi(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?ah(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?ah(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=L5.exec(t))?new Oi(n[1],n[2],n[3],1):(n=I5.exec(t))?new Oi(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=O5.exec(t))?ah(n[1],n[2],n[3],n[4]):(n=F5.exec(t))?ah(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=P5.exec(t))?iT(n[1],n[2]/100,n[3]/100,1):(n=N5.exec(t))?iT(n[1],n[2]/100,n[3]/100,n[4]):QC.hasOwnProperty(t)?eT(QC[t]):"transparent"===t?new Oi(NaN,NaN,NaN,0):null}function eT(t){return new Oi(t>>16&255,t>>8&255,255&t,1)}function ah(t,n,e,i){return i<=0&&(t=n=e=NaN),new Oi(t,n,e,i)}function B5(t){return t instanceof kl||(t=Yr(t)),t?new Oi((t=t.rgb()).r,t.g,t.b,t.opacity):new Oi}function Ol(t,n,e,i){return 1===arguments.length?B5(t):new Oi(t,n,e,null==i?1:i)}function Oi(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function tT(){return"#"+Wg(this.r)+Wg(this.g)+Wg(this.b)}function nT(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Wg(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function iT(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Ls(t,n,e,i)}function sT(t){if(t instanceof Ls)return new Ls(t.h,t.s,t.l,t.opacity);if(t instanceof kl||(t=Yr(t)),!t)return new Ls;if(t instanceof Ls)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,s=Math.min(n,e,i),r=Math.max(n,e,i),o=NaN,a=r-s,l=(r+s)/2;return a?(o=n===r?(e-i)/a+6*(e<i):e===r?(i-n)/a+2:(n-e)/a+4,a/=l<.5?r+s:2-r-s,o*=60):a=l>0&&l<1?0:o,new Ls(o,a,l,t.opacity)}function Ls(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function Yg(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function rT(t,n,e,i,s){var r=t*t,o=r*t;return((1-3*t+3*r-o)*n+(4-6*r+3*o)*e+(1+3*t+3*r-3*o)*i+o*s)/6}function Xg(t){return function(){return t}}function aT(t,n){var e=n-t;return e?function oT(t,n){return function(e){return t+e*n}}(t,e):Xg(isNaN(t)?n:t)}Ug(kl,Yr,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:JC,formatHex:JC,formatHsl:function R5(){return sT(this).formatHsl()},formatRgb:qC,toString:qC}),Ug(Oi,Ol,KC(kl,{brighter:function(t){return t=null==t?oh:Math.pow(oh,t),new Oi(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Oi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tT,formatHex:tT,formatRgb:nT,toString:nT})),Ug(Ls,function V5(t,n,e,i){return 1===arguments.length?sT(t):new Ls(t,n,e,null==i?1:i)},KC(kl,{brighter:function(t){return t=null==t?oh:Math.pow(oh,t),new Ls(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ls(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,s=2*e-i;return new Oi(Yg(t>=240?t-240:t+120,s,i),Yg(t,s,i),Yg(t<120?t+240:t-120,s,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const lh=function t(n){var e=function G5(t){return 1==(t=+t)?aT:function(n,e){return e-n?function j5(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):Xg(isNaN(n)?e:n)}}(n);function i(s,r){var o=e((s=Ol(s)).r,(r=Ol(r)).r),a=e(s.g,r.g),l=e(s.b,r.b),c=aT(s.opacity,r.opacity);return function(h){return s.r=o(h),s.g=a(h),s.b=l(h),s.opacity=c(h),s+""}}return i.gamma=t,i}(1);function lT(t){return function(n){var o,a,e=n.length,i=new Array(e),s=new Array(e),r=new Array(e);for(o=0;o<e;++o)a=Ol(n[o]),i[o]=a.r||0,s[o]=a.g||0,r[o]=a.b||0;return i=t(i),s=t(s),r=t(r),a.opacity=1,function(l){return a.r=i(l),a.g=s(l),a.b=r(l),a+""}}}function ds(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}lT(function H5(t){var n=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),s=t[i],r=t[i+1];return rT((e-i/n)*n,i>0?t[i-1]:2*s-r,s,r,i<n-1?t[i+2]:2*r-s)}}),lT(function z5(t){var n=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*n);return rT((e-i/n)*n,t[(i+n-1)%n],t[i%n],t[(i+1)%n],t[(i+2)%n])}});var Zg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kg=new RegExp(Zg.source,"g");function uT(t,n){var i,s,r,e=Zg.lastIndex=Kg.lastIndex=0,o=-1,a=[],l=[];for(t+="",n+="";(i=Zg.exec(t))&&(s=Kg.exec(n));)(r=s.index)>e&&(r=n.slice(e,r),a[o]?a[o]+=r:a[++o]=r),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,l.push({i:o,x:ds(i,s)})),e=Kg.lastIndex;return e<n.length&&(r=n.slice(e),a[o]?a[o]+=r:a[++o]=r),a.length<2?l[0]?function Y5(t){return function(n){return t(n)+""}}(l[0].x):function W5(t){return function(){return t}}(n):(n=l.length,function(c){for(var b,h=0;h<n;++h)a[(b=l[h]).i]=b.x(c);return a.join("")})}var ch,Nl,aa=0,Fl=0,Pl=0,uh=0,Zr=0,hh=0,Rl="object"==typeof performance&&performance.now?performance:Date,pT="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function la(){return Zr||(pT(J5),Zr=Rl.now()+hh)}function J5(){Zr=0}function Bl(){this._call=this._time=this._next=null}function dh(t,n,e){var i=new Bl;return i.restart(t,n,e),i}function gT(){la(),++aa;for(var n,t=ch;t;)(n=Zr-t._time)>=0&&t._call.call(null,n),t=t._next;--aa}function mT(){Zr=(uh=Rl.now())+hh,aa=Fl=0;try{gT()}finally{aa=0,function eH(){for(var t,e,n=ch,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ch=e);Nl=t,Qg(i)}(),Zr=0}}function q5(){var t=Rl.now(),n=t-uh;n>1e3&&(hh-=n,uh=t)}function Qg(t){aa||(Fl&&(Fl=clearTimeout(Fl)),t-Zr>24?(t<1/0&&(Fl=setTimeout(mT,t-Rl.now()-hh)),Pl&&(Pl=clearInterval(Pl))):(Pl||(uh=Rl.now(),Pl=setInterval(q5,1e3)),aa=1,pT(mT)))}function Jg(t,n,e){var i=new Bl;return i.restart(function(s){i.stop(),t(s+n)},n=null==n?0:+n,e),i}Bl.prototype=dh.prototype={constructor:Bl,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?la():+e)+(null==n?0:+n),!this._next&&Nl!==this&&(Nl?Nl._next=this:ch=this,Nl=this),this._call=t,this._time=e,Qg()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qg())}};var tH=rh("start","end","cancel","interrupt"),nH=[];function gh(t,n,e,i,s,r){var o=t.__transition;if(o){if(e in o)return}else t.__transition={};!function iH(t,n,e){var s,i=t.__transition;function o(c){var h,b,T,M;if(1!==e.state)return l();for(h in i)if((M=i[h]).name===e.name){if(3===M.state)return Jg(o);4===M.state?(M.state=6,M.timer.stop(),M.on.call("interrupt",t,t.__data__,M.index,M.group),delete i[h]):+h<n&&(M.state=6,M.timer.stop(),M.on.call("cancel",t,t.__data__,M.index,M.group),delete i[h])}if(Jg(function(){3===e.state&&(e.state=4,e.timer.restart(a,e.delay,e.time),a(c))}),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,s=new Array(T=e.tween.length),h=0,b=-1;h<T;++h)(M=e.tween[h].value.call(t,t.__data__,e.index,e.group))&&(s[++b]=M);s.length=b+1}}function a(c){for(var h=c<e.duration?e.ease.call(null,c/e.duration):(e.timer.restart(l),e.state=5,1),b=-1,T=s.length;++b<T;)s[b].call(t,h);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),l())}function l(){for(var c in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=dh(function r(c){e.state=1,e.timer.restart(o,e.delay,e.time),e.delay<=c&&o(c-e.delay)},0,e.time)}(t,e,{name:n,index:i,group:s,on:tH,tween:nH,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:0})}function tm(t,n){var e=fs(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function Zs(t,n){var e=fs(t,n);if(e.state>3)throw new Error("too late; already running");return e}function fs(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var Vl,sm,wT,mh,xT=180/Math.PI,im={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function bT(t,n,e,i,s,r){var o,a,l;return(o=Math.sqrt(t*t+n*n))&&(t/=o,n/=o),(l=t*e+n*i)&&(e-=t*l,i-=n*l),(a=Math.sqrt(e*e+i*i))&&(e/=a,i/=a,l/=a),t*i<n*e&&(t=-t,n=-n,l=-l,o=-o),{translateX:s,translateY:r,rotate:Math.atan2(n,t)*xT,skewX:Math.atan(l)*xT,scaleX:o,scaleY:a}}function CT(t,n,e,i){function s(c){return c.length?c.pop()+" ":""}return function(c,h){var b=[],T=[];return c=t(c),h=t(h),function r(c,h,b,T,M,I){if(c!==b||h!==T){var B=M.push("translate(",null,n,null,e);I.push({i:B-4,x:ds(c,b)},{i:B-2,x:ds(h,T)})}else(b||T)&&M.push("translate("+b+n+T+e)}(c.translateX,c.translateY,h.translateX,h.translateY,b,T),function o(c,h,b,T){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),T.push({i:b.push(s(b)+"rotate(",null,i)-2,x:ds(c,h)})):h&&b.push(s(b)+"rotate("+h+i)}(c.rotate,h.rotate,b,T),function a(c,h,b,T){c!==h?T.push({i:b.push(s(b)+"skewX(",null,i)-2,x:ds(c,h)}):h&&b.push(s(b)+"skewX("+h+i)}(c.skewX,h.skewX,b,T),function l(c,h,b,T,M,I){if(c!==b||h!==T){var B=M.push(s(M)+"scale(",null,",",null,")");I.push({i:B-4,x:ds(c,b)},{i:B-2,x:ds(h,T)})}else(1!==b||1!==T)&&M.push(s(M)+"scale("+b+","+T+")")}(c.scaleX,c.scaleY,h.scaleX,h.scaleY,b,T),c=h=null,function(M){for(var P,I=-1,B=T.length;++I<B;)b[(P=T[I]).i]=P.x(M);return b.join("")}}}var aH=CT(function rH(t){return"none"===t?im:(Vl||(Vl=document.createElement("DIV"),sm=document.documentElement,wT=document.defaultView),Vl.style.transform=t,t=wT.getComputedStyle(sm.appendChild(Vl),null).getPropertyValue("transform"),sm.removeChild(Vl),bT(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),lH=CT(function oH(t){return null!=t&&(mh||(mh=document.createElementNS("http://www.w3.org/2000/svg","g")),mh.setAttribute("transform",t),t=mh.transform.baseVal.consolidate())?bT((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):im},", ",")",")");function cH(t,n){var e,i;return function(){var s=Zs(this,t),r=s.tween;if(r!==e)for(var o=0,a=(i=e=r).length;o<a;++o)if(i[o].name===n){(i=i.slice()).splice(o,1);break}s.tween=i}}function uH(t,n,e){var i,s;if("function"!=typeof e)throw new Error;return function(){var r=Zs(this,t),o=r.tween;if(o!==i){s=(i=o).slice();for(var a={name:n,value:e},l=0,c=s.length;l<c;++l)if(s[l].name===n){s[l]=a;break}l===c&&s.push(a)}r.tween=s}}function rm(t,n,e){var i=t._id;return t.each(function(){var s=Zs(this,i);(s.value||(s.value={}))[n]=e.apply(this,arguments)}),function(s){return fs(s,i).value[n]}}function TT(t,n){var e;return("number"==typeof n?ds:n instanceof Yr?lh:(e=Yr(n))?(n=e,lh):uT)(t,n)}function dH(t){return function(){this.removeAttribute(t)}}function fH(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pH(t,n,e){var i,r,s=e+"";return function(){var o=this.getAttribute(t);return o===s?null:o===i?r:r=n(i=o,e)}}function gH(t,n,e){var i,r,s=e+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===s?null:o===i?r:r=n(i=o,e)}}function mH(t,n,e){var i,s,r;return function(){var o,l,a=e(this);return null==a?void this.removeAttribute(t):(o=this.getAttribute(t))===(l=a+"")?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}function vH(t,n,e){var i,s,r;return function(){var o,l,a=e(this);return null==a?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local))===(l=a+"")?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}function yH(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function xH(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function bH(t,n){var e,i;function s(){var r=n.apply(this,arguments);return r!==i&&(e=(i=r)&&xH(t,r)),e}return s._value=n,s}function wH(t,n){var e,i;function s(){var r=n.apply(this,arguments);return r!==i&&(e=(i=r)&&yH(t,r)),e}return s._value=n,s}function TH(t,n){return function(){tm(this,t).delay=+n.apply(this,arguments)}}function DH(t,n){return n=+n,function(){tm(this,t).delay=n}}function SH(t,n){return function(){Zs(this,t).duration=+n.apply(this,arguments)}}function AH(t,n){return n=+n,function(){Zs(this,t).duration=n}}function kH(t,n){if("function"!=typeof n)throw new Error;return function(){Zs(this,t).ease=n}}function PH(t,n,e){var i,s,r=function FH(t){return(t+"").trim().split(/^|\s+/).every(function(n){var e=n.indexOf(".");return e>=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?tm:Zs;return function(){var o=r(this,t),a=o.on;a!==i&&(s=(i=a).copy()).on(n,e),o.on=s}}var zH=Ml.prototype.constructor;function DT(t){return function(){this.style.removeProperty(t)}}function XH(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}function ZH(t,n,e){var i,s;function r(){var o=n.apply(this,arguments);return o!==s&&(i=(s=o)&&XH(t,o,e)),i}return r._value=n,r}function e4(t){return function(n){this.textContent=t.call(this,n)}}function t4(t){var n,e;function i(){var s=t.apply(this,arguments);return s!==e&&(n=(e=s)&&e4(s)),n}return i._value=t,i}var r4=0;function Ks(t,n,e,i){this._groups=t,this._parents=n,this._name=e,this._id=i}function ET(){return++r4}var ca=Ml.prototype;Ks.prototype=function o4(t){return Ml().transition(t)}.prototype={constructor:Ks,select:function VH(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=zg(t));for(var i=this._groups,s=i.length,r=new Array(s),o=0;o<s;++o)for(var h,b,a=i[o],l=a.length,c=r[o]=new Array(l),T=0;T<l;++T)(h=a[T])&&(b=t.call(h,h.__data__,T,a))&&("__data__"in h&&(b.__data__=h.__data__),c[T]=b,gh(c[T],n,e,T,c,fs(h,e)));return new Ks(r,this._parents,n,e)},selectAll:function HH(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=IC(t));for(var i=this._groups,s=i.length,r=[],o=[],a=0;a<s;++a)for(var h,l=i[a],c=l.length,b=0;b<c;++b)if(h=l[b]){for(var M,T=t.call(h,h.__data__,b,l),I=fs(h,e),B=0,P=T.length;B<P;++B)(M=T[B])&&gh(M,n,e,B,T,I);r.push(T),o.push(h)}return new Ks(r,o,n,e)},filter:function IH(t){"function"!=typeof t&&(t=OC(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,r=n[s],o=r.length,a=i[s]=[],c=0;c<o;++c)(l=r[c])&&t.call(l,l.__data__,c,r)&&a.push(l);return new Ks(i,this._parents,this._name,this._id)},merge:function OH(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,i=n.length,r=Math.min(i,e.length),o=new Array(i),a=0;a<r;++a)for(var T,l=n[a],c=e[a],h=l.length,b=o[a]=new Array(h),M=0;M<h;++M)(T=l[M]||c[M])&&(b[M]=T);for(;a<i;++a)o[a]=n[a];return new Ks(o,this._parents,this._name,this._id)},selection:function jH(){return new zH(this._groups,this._parents)},transition:function i4(){for(var t=this._name,n=this._id,e=ET(),i=this._groups,s=i.length,r=0;r<s;++r)for(var l,o=i[r],a=o.length,c=0;c<a;++c)if(l=o[c]){var h=fs(l,n);gh(l,t,e,c,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Ks(i,this._parents,t,e)},call:ca.call,nodes:ca.nodes,node:ca.node,size:ca.size,empty:ca.empty,each:ca.each,on:function NH(t,n){var e=this._id;return arguments.length<2?fs(this.node(),e).on.on(t):this.each(PH(e,t,n))},attr:function _H(t,n){var e=ih(t),i="transform"===e?lH:TT;return this.attrTween(t,"function"==typeof n?(e.local?vH:mH)(e,i,rm(this,"attr."+t,n)):null==n?(e.local?fH:dH)(e):(e.local?gH:pH)(e,i,n))},attrTween:function CH(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=ih(t);return this.tween(e,(i.local?bH:wH)(i,n))},style:function YH(t,n,e){var i="transform"==(t+="")?aH:TT;return null==n?this.styleTween(t,function GH(t,n){var e,i,s;return function(){var r=ra(this,t),o=(this.style.removeProperty(t),ra(this,t));return r===o?null:r===e&&o===i?s:s=n(e=r,i=o)}}(t,i)).on("end.style."+t,DT(t)):"function"==typeof n?this.styleTween(t,function UH(t,n,e){var i,s,r;return function(){var o=ra(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=ra(this,t)),o===l?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}(t,i,rm(this,"style."+t,n))).each(function WH(t,n){var e,i,s,a,r="style."+n,o="end."+r;return function(){var l=Zs(this,t),c=l.on,h=null==l.value[r]?a||(a=DT(n)):void 0;(c!==e||s!==h)&&(i=(e=c).copy()).on(o,s=h),l.on=i}}(this._id,t)):this.styleTween(t,function $H(t,n,e){var i,r,s=e+"";return function(){var o=ra(this,t);return o===s?null:o===i?r:r=n(i=o,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function KH(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,ZH(t,n,null==e?"":e))},text:function qH(t){return this.tween("text","function"==typeof t?function JH(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(rm(this,"text",t)):function QH(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function n4(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,t4(t))},remove:function BH(){return this.on("end.remove",function RH(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function hH(t,n){var e=this._id;if(t+="",arguments.length<2){for(var o,i=fs(this.node(),e).tween,s=0,r=i.length;s<r;++s)if((o=i[s]).name===t)return o.value;return null}return this.each((null==n?cH:uH)(e,t,n))},delay:function EH(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?TH:DH)(n,t)):fs(this.node(),n).delay},duration:function MH(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?SH:AH)(n,t)):fs(this.node(),n).duration},ease:function LH(t){var n=this._id;return arguments.length?this.each(kH(n,t)):fs(this.node(),n).ease},end:function s4(){var t,n,e=this,i=e._id,s=e.size();return new Promise(function(r,o){var a={value:o},l={value:function(){0==--s&&r()}};e.each(function(){var c=Zs(this,i),h=c.on;h!==t&&((n=(t=h).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(l)),c.on=n})})}};var om={time:null,delay:0,duration:250,ease:function a4(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function l4(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return om.time=la(),om;return e}function Hl(t){return{type:t}}function fm(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function pm(t){let n=t,e=t;function i(o,a,l,c){for(null==l&&(l=0),null==c&&(c=o.length);l<c;){const h=l+c>>>1;e(o[h],a)<0?l=h+1:c=h}return l}return 1===t.length&&(n=(o,a)=>t(o)-a,e=function b4(t){return(n,e)=>fm(t(n),e)}(t)),{left:i,center:function r(o,a,l,c){null==l&&(l=0),null==c&&(c=o.length);const h=i(o,a,l,c-1);return h>l&&n(o[h-1],a)>-n(o[h],a)?h-1:h},right:function s(o,a,l,c){for(null==l&&(l=0),null==c&&(c=o.length);l<c;){const h=l+c>>>1;e(o[h],a)>0?c=h:l=h+1}return l}}}Ml.prototype.interrupt=function sH(t){return this.each(function(){!function nm(t,n){var i,s,o,e=t.__transition,r=!0;if(e){for(o in n=null==n?null:n+"",e)(i=e[o]).name===n?(s=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete e[o]):r=!1;r&&delete t.__transition}}(this,t)})},Ml.prototype.transition=function c4(t){var n,e;t instanceof Ks?(n=t._id,t=t._name):(n=ET(),(e=om).time=la(),t=null==t?null:t+"");for(var i=this._groups,s=i.length,r=0;r<s;++r)for(var l,o=i[r],a=o.length,c=0;c<a;++c)(l=o[c])&&gh(l,t,n,c,o,e||l4(l,n));return new Ks(i,this._parents,t,n)},["w","e"].map(Hl),["n","s"].map(Hl),["n","w","e","s","nw","ne","sw","se"].map(Hl);var gm=Math.sqrt(50),mm=Math.sqrt(10),vm=Math.sqrt(2);function _m(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),s=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),r=i/s;return r>=gm?s*=10:r>=mm?s*=5:r>=vm&&(s*=2),n<t?-s:s}const Js=1e3,Zi=6e4,qs=60*Zi,Kr=24*qs,ym=7*Kr,OT=30*Kr,xm=365*Kr;var bm=new Date,wm=new Date;function jn(t,n,e,i){function s(r){return t(r=0===arguments.length?new Date:new Date(+r)),r}return s.floor=function(r){return t(r=new Date(+r)),r},s.ceil=function(r){return t(r=new Date(r-1)),n(r,1),t(r),r},s.round=function(r){var o=s(r),a=s.ceil(r);return r-o<a-r?o:a},s.offset=function(r,o){return n(r=new Date(+r),null==o?1:Math.floor(o)),r},s.range=function(r,o,a){var c,l=[];if(r=s.ceil(r),a=null==a?1:Math.floor(a),!(r<o&&a>0))return l;do{l.push(c=new Date(+r)),n(r,a),t(r)}while(c<r&&r<o);return l},s.filter=function(r){return jn(function(o){if(o>=o)for(;t(o),!r(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;n(o,-1),!r(o););else for(;--a>=0;)for(;n(o,1),!r(o););})},e&&(s.count=function(r,o){return bm.setTime(+r),wm.setTime(+o),t(bm),t(wm),Math.floor(e(bm,wm))},s.every=function(r){return r=Math.floor(r),isFinite(r)&&r>0?r>1?s.filter(i?function(o){return i(o)%r==0}:function(o){return s.count(0,o)%r==0}):s:null}),s}var yh=jn(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});yh.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?jn(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):yh:null};const C4=yh;var FT=jn(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*Js)},function(t,n){return(n-t)/Js},function(t){return t.getUTCSeconds()});const zl=FT;var PT=jn(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Js)},function(t,n){t.setTime(+t+n*Zi)},function(t,n){return(n-t)/Zi},function(t){return t.getMinutes()});const NT=PT;var RT=jn(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Js-t.getMinutes()*Zi)},function(t,n){t.setTime(+t+n*qs)},function(t,n){return(n-t)/qs},function(t){return t.getHours()});const BT=RT;var VT=jn(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Zi)/Kr,t=>t.getDate()-1);const HT=VT;function Qr(t){return jn(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Zi)/ym})}var Cm=Qr(0),zT=(Qr(1),Qr(2),Qr(3),Qr(4),Qr(5),Qr(6),jn(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}));const jT=zT;var Tm=jn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Tm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?jn(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const GT=Tm;var $T=jn(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*Zi)},function(t,n){return(n-t)/Zi},function(t){return t.getUTCMinutes()});const k4=$T;var UT=jn(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*qs)},function(t,n){return(n-t)/qs},function(t){return t.getUTCHours()});const L4=UT;var WT=jn(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/Kr},function(t){return t.getUTCDate()-1});const I4=WT;function Jr(t){return jn(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/ym})}var YT=Jr(0),XT=(Jr(1),Jr(2),Jr(3),Jr(4),Jr(5),Jr(6),jn(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}));const V4=XT;var Dm=jn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Dm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?jn(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const H4=Dm;function ZT(t,n,e,i,s,r){const o=[[zl,1,Js],[zl,5,5e3],[zl,15,15e3],[zl,30,3e4],[r,1,Zi],[r,5,5*Zi],[r,15,15*Zi],[r,30,30*Zi],[s,1,qs],[s,3,3*qs],[s,6,6*qs],[s,12,12*qs],[i,1,Kr],[i,2,2*Kr],[e,1,ym],[n,1,OT],[n,3,3*OT],[t,1,xm]];function l(c,h,b){const T=Math.abs(h-c)/b,M=pm(([,,P])=>P).right(o,T);if(M===o.length)return t.every(_m(c/xm,h/xm,b));if(0===M)return C4.every(Math.max(_m(c,h,b),1));const[I,B]=o[T/o[M-1][2]<o[M][2]/T?M-1:M];return I.every(B)}return[function a(c,h,b){const T=h<c;T&&([c,h]=[h,c]);const M=b&&"function"==typeof b.range?b:l(c,h,b),I=M?M.range(c,+h+1):[];return T?I.reverse():I},l]}const[Nq,Rq]=ZT(H4,V4,YT,I4,L4,k4),[z4,j4]=ZT(GT,jT,Cm,HT,BT,NT);var Em=new Date,Sm=new Date;function er(t,n,e,i){function s(r){return t(r=0===arguments.length?new Date:new Date(+r)),r}return s.floor=function(r){return t(r=new Date(+r)),r},s.ceil=function(r){return t(r=new Date(r-1)),n(r,1),t(r),r},s.round=function(r){var o=s(r),a=s.ceil(r);return r-o<a-r?o:a},s.offset=function(r,o){return n(r=new Date(+r),null==o?1:Math.floor(o)),r},s.range=function(r,o,a){var c,l=[];if(r=s.ceil(r),a=null==a?1:Math.floor(a),!(r<o&&a>0))return l;do{l.push(c=new Date(+r)),n(r,a),t(r)}while(c<r&&r<o);return l},s.filter=function(r){return er(function(o){if(o>=o)for(;t(o),!r(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;n(o,-1),!r(o););else for(;--a>=0;)for(;n(o,1),!r(o););})},e&&(s.count=function(r,o){return Em.setTime(+r),Sm.setTime(+o),t(Em),t(Sm),Math.floor(e(Em,Sm))},s.every=function(r){return r=Math.floor(r),isFinite(r)&&r>0?r>1?s.filter(i?function(o){return i(o)%r==0}:function(o){return s.count(0,o)%r==0}):s:null}),s}var JT=6048e5;function qr(t){return er(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/JT})}var qT=qr(0),xh=qr(1),da=(qr(2),qr(3),qr(4)),e1=(qr(5),qr(6),er(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const t1=e1;function eo(t){return er(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-6e4*(e.getTimezoneOffset()-n.getTimezoneOffset()))/JT})}var n1=eo(0),bh=eo(1),fa=(eo(2),eo(3),eo(4)),s1=(eo(5),eo(6),er(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1}));const r1=s1;var Am=er(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Am.every=function(t){return isFinite(t=Math.floor(t))&&t>0?er(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const jl=Am;var Mm=er(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Mm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?er(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const Gl=Mm;function km(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Lm(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function $l(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var o1={"-":"",_:" ",0:"0"},Gn=/^\s*\d+/,J4=/^%/,q4=/[\\^$*+?|[\]().{}]/g;function Pt(t,n,e){var i=t<0?"-":"",s=(i?-t:t)+"",r=s.length;return i+(r<e?new Array(e-r+1).join(n)+s:s)}function e8(t){return t.replace(q4,"\\$&")}function Ul(t){return new RegExp("^(?:"+t.map(e8).join("|")+")","i")}function Wl(t){for(var n={},e=-1,i=t.length;++e<i;)n[t[e].toLowerCase()]=e;return n}function t8(t,n,e){var i=Gn.exec(n.slice(e,e+1));return i?(t.w=+i[0],e+i[0].length):-1}function n8(t,n,e){var i=Gn.exec(n.slice(e,e+1));return i?(t.u=+i[0],e+i[0].length):-1}function i8(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.U=+i[0],e+i[0].length):-1}function s8(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.V=+i[0],e+i[0].length):-1}function r8(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.W=+i[0],e+i[0].length):-1}function a1(t,n,e){var i=Gn.exec(n.slice(e,e+4));return i?(t.y=+i[0],e+i[0].length):-1}function l1(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function o8(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function a8(t,n,e){var i=Gn.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function l8(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function c1(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function c8(t,n,e){var i=Gn.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function u1(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function u8(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function h8(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function d8(t,n,e){var i=Gn.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function f8(t,n,e){var i=Gn.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function p8(t,n,e){var i=J4.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function g8(t,n,e){var i=Gn.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function m8(t,n,e){var i=Gn.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function h1(t,n){return Pt(t.getDate(),n,2)}function v8(t,n){return Pt(t.getHours(),n,2)}function _8(t,n){return Pt(t.getHours()%12||12,n,2)}function y8(t,n){return Pt(1+r1.count(jl(t),t),n,3)}function d1(t,n){return Pt(t.getMilliseconds(),n,3)}function x8(t,n){return d1(t,n)+"000"}function b8(t,n){return Pt(t.getMonth()+1,n,2)}function w8(t,n){return Pt(t.getMinutes(),n,2)}function C8(t,n){return Pt(t.getSeconds(),n,2)}function T8(t){var n=t.getDay();return 0===n?7:n}function D8(t,n){return Pt(n1.count(jl(t)-1,t),n,2)}function f1(t){var n=t.getDay();return n>=4||0===n?fa(t):fa.ceil(t)}function E8(t,n){return t=f1(t),Pt(fa.count(jl(t),t)+(4===jl(t).getDay()),n,2)}function S8(t){return t.getDay()}function A8(t,n){return Pt(bh.count(jl(t)-1,t),n,2)}function M8(t,n){return Pt(t.getFullYear()%100,n,2)}function k8(t,n){return Pt((t=f1(t)).getFullYear()%100,n,2)}function L8(t,n){return Pt(t.getFullYear()%1e4,n,4)}function I8(t,n){var e=t.getDay();return Pt((t=e>=4||0===e?fa(t):fa.ceil(t)).getFullYear()%1e4,n,4)}function O8(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Pt(n/60|0,"0",2)+Pt(n%60,"0",2)}function p1(t,n){return Pt(t.getUTCDate(),n,2)}function F8(t,n){return Pt(t.getUTCHours(),n,2)}function P8(t,n){return Pt(t.getUTCHours()%12||12,n,2)}function N8(t,n){return Pt(1+t1.count(Gl(t),t),n,3)}function g1(t,n){return Pt(t.getUTCMilliseconds(),n,3)}function R8(t,n){return g1(t,n)+"000"}function B8(t,n){return Pt(t.getUTCMonth()+1,n,2)}function V8(t,n){return Pt(t.getUTCMinutes(),n,2)}function H8(t,n){return Pt(t.getUTCSeconds(),n,2)}function z8(t){var n=t.getUTCDay();return 0===n?7:n}function j8(t,n){return Pt(qT.count(Gl(t)-1,t),n,2)}function m1(t){var n=t.getUTCDay();return n>=4||0===n?da(t):da.ceil(t)}function G8(t,n){return t=m1(t),Pt(da.count(Gl(t),t)+(4===Gl(t).getUTCDay()),n,2)}function $8(t){return t.getUTCDay()}function U8(t,n){return Pt(xh.count(Gl(t)-1,t),n,2)}function W8(t,n){return Pt(t.getUTCFullYear()%100,n,2)}function Y8(t,n){return Pt((t=m1(t)).getUTCFullYear()%100,n,2)}function X8(t,n){return Pt(t.getUTCFullYear()%1e4,n,4)}function Z8(t,n){var e=t.getUTCDay();return Pt((t=e>=4||0===e?da(t):da.ceil(t)).getUTCFullYear()%1e4,n,4)}function K8(){return"+0000"}function v1(){return"%"}function _1(t){return+t}function y1(t){return Math.floor(+t/1e3)}function Yl(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}!function e6(t){(function Q4(t){var n=t.dateTime,e=t.date,i=t.time,s=t.periods,r=t.days,o=t.shortDays,a=t.months,l=t.shortMonths,c=Ul(s),h=Wl(s),b=Ul(r),T=Wl(r),M=Ul(o),I=Wl(o),B=Ul(a),P=Wl(a),K=Ul(l),Q=Wl(l),ne={a:function Ve(Ne){return o[Ne.getDay()]},A:function Re(Ne){return r[Ne.getDay()]},b:function We(Ne){return l[Ne.getMonth()]},B:function it(Ne){return a[Ne.getMonth()]},c:null,d:h1,e:h1,f:x8,g:k8,G:I8,H:v8,I:_8,j:y8,L:d1,m:b8,M:w8,p:function Et(Ne){return s[+(Ne.getHours()>=12)]},q:function hn(Ne){return 1+~~(Ne.getMonth()/3)},Q:_1,s:y1,S:C8,u:T8,U:D8,V:E8,w:S8,W:A8,x:null,X:null,y:M8,Y:L8,Z:O8,"%":v1},ge={a:function Bn(Ne){return o[Ne.getUTCDay()]},A:function xt(Ne){return r[Ne.getUTCDay()]},b:function Ri(Ne){return l[Ne.getUTCMonth()]},B:function Ps(Ne){return a[Ne.getUTCMonth()]},c:null,d:p1,e:p1,f:R8,g:Y8,G:Z8,H:F8,I:P8,j:N8,L:g1,m:B8,M:V8,p:function Zt(Ne){return s[+(Ne.getUTCHours()>=12)]},q:function Vn(Ne){return 1+~~(Ne.getUTCMonth()/3)},Q:_1,s:y1,S:H8,u:z8,U:j8,V:G8,w:$8,W:U8,x:null,X:null,y:W8,Y:X8,Z:K8,"%":v1},Ce={a:function Ze(Ne,tt,gt){var Me=M.exec(tt.slice(gt));return Me?(Ne.w=I[Me[0].toLowerCase()],gt+Me[0].length):-1},A:function Ue(Ne,tt,gt){var Me=b.exec(tt.slice(gt));return Me?(Ne.w=T[Me[0].toLowerCase()],gt+Me[0].length):-1},b:function ke(Ne,tt,gt){var Me=K.exec(tt.slice(gt));return Me?(Ne.m=Q[Me[0].toLowerCase()],gt+Me[0].length):-1},B:function He(Ne,tt,gt){var Me=B.exec(tt.slice(gt));return Me?(Ne.m=P[Me[0].toLowerCase()],gt+Me[0].length):-1},c:function Vt(Ne,tt,gt){return Je(Ne,n,tt,gt)},d:c1,e:c1,f:f8,g:l1,G:a1,H:u1,I:u1,j:c8,L:d8,m:l8,M:u8,p:function Ge(Ne,tt,gt){var Me=c.exec(tt.slice(gt));return Me?(Ne.p=h[Me[0].toLowerCase()],gt+Me[0].length):-1},q:a8,Q:g8,s:m8,S:h8,u:n8,U:i8,V:s8,w:t8,W:r8,x:function Dt(Ne,tt,gt){return Je(Ne,e,tt,gt)},X:function Ae(Ne,tt,gt){return Je(Ne,i,tt,gt)},y:l1,Y:a1,Z:o8,"%":p8};function we(Ne,tt){return function(gt){var fi,ir,pi,Me=[],Xn=-1,Ft=0,ei=Ne.length;for(gt instanceof Date||(gt=new Date(+gt));++Xn<ei;)37===Ne.charCodeAt(Xn)&&(Me.push(Ne.slice(Ft,Xn)),null!=(ir=o1[fi=Ne.charAt(++Xn)])?fi=Ne.charAt(++Xn):ir="e"===fi?" ":"0",(pi=tt[fi])&&(fi=pi(gt,ir)),Me.push(fi),Ft=Xn+1);return Me.push(Ne.slice(Ft,Xn)),Me.join("")}}function Oe(Ne,tt){return function(gt){var Ft,ei,Me=$l(1900,void 0,1);if(Je(Me,Ne,gt+="",0)!=gt.length)return null;if("Q"in Me)return new Date(Me.Q);if("s"in Me)return new Date(1e3*Me.s+("L"in Me?Me.L:0));if(tt&&!("Z"in Me)&&(Me.Z=0),"p"in Me&&(Me.H=Me.H%12+12*Me.p),void 0===Me.m&&(Me.m="q"in Me?Me.q:0),"V"in Me){if(Me.V<1||Me.V>53)return null;"w"in Me||(Me.w=1),"Z"in Me?(ei=(Ft=Lm($l(Me.y,0,1))).getUTCDay(),Ft=ei>4||0===ei?xh.ceil(Ft):xh(Ft),Ft=t1.offset(Ft,7*(Me.V-1)),Me.y=Ft.getUTCFullYear(),Me.m=Ft.getUTCMonth(),Me.d=Ft.getUTCDate()+(Me.w+6)%7):(ei=(Ft=km($l(Me.y,0,1))).getDay(),Ft=ei>4||0===ei?bh.ceil(Ft):bh(Ft),Ft=r1.offset(Ft,7*(Me.V-1)),Me.y=Ft.getFullYear(),Me.m=Ft.getMonth(),Me.d=Ft.getDate()+(Me.w+6)%7)}else("W"in Me||"U"in Me)&&("w"in Me||(Me.w="u"in Me?Me.u%7:"W"in Me?1:0),ei="Z"in Me?Lm($l(Me.y,0,1)).getUTCDay():km($l(Me.y,0,1)).getDay(),Me.m=0,Me.d="W"in Me?(Me.w+6)%7+7*Me.W-(ei+5)%7:Me.w+7*Me.U-(ei+6)%7);return"Z"in Me?(Me.H+=Me.Z/100|0,Me.M+=Me.Z%100,Lm(Me)):km(Me)}}function Je(Ne,tt,gt,Me){for(var fi,ir,Xn=0,Ft=tt.length,ei=gt.length;Xn<Ft;){if(Me>=ei)return-1;if(37===(fi=tt.charCodeAt(Xn++))){if(fi=tt.charAt(Xn++),!(ir=Ce[fi in o1?tt.charAt(Xn++):fi])||(Me=ir(Ne,gt,Me))<0)return-1}else if(fi!=gt.charCodeAt(Me++))return-1}return Me}return ne.x=we(e,ne),ne.X=we(i,ne),ne.c=we(n,ne),ge.x=we(e,ge),ge.X=we(i,ge),ge.c=we(n,ge),{format:function(Ne){var tt=we(Ne+="",ne);return tt.toString=function(){return Ne},tt},parse:function(Ne){var tt=Oe(Ne+="",!1);return tt.toString=function(){return Ne},tt},utcFormat:function(Ne){var tt=we(Ne+="",ge);return tt.toString=function(){return Ne},tt},utcParse:function(Ne){var tt=Oe(Ne+="",!0);return tt.toString=function(){return Ne},tt}}})(t)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),pm(fm),pm(function b1(t){return null===t?NaN:+t});var A1,d6=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wh(t){if(!(n=d6.exec(t)))throw new Error("invalid format: "+t);var n;return new Om({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Om(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ch(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function M1(t,n){var e=Ch(t,n);if(!e)return t+"";var i=e[0],s=e[1];return s<0?"0."+new Array(-s).join("0")+i:i.length>s+1?i.slice(0,s+1)+"."+i.slice(s+1):i+new Array(s-i.length+2).join("0")}wh.prototype=Om.prototype,Om.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const k1={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function f6(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return M1(100*t,n)},r:M1,s:function _6(t,n){var e=Ch(t,n);if(!e)return t+"";var i=e[0],s=e[1],r=s-(A1=3*Math.max(-8,Math.min(8,Math.floor(s/3))))+1,o=i.length;return r===o?i:r>o?i+new Array(r-o+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+Ch(t,Math.max(0,n+r-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function L1(t){return t}var I1=Array.prototype.map,O1=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function y6(t){var n=void 0===t.grouping||void 0===t.thousands?L1:function g6(t,n){return function(e,i){for(var s=e.length,r=[],o=0,a=t[0],l=0;s>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(e.substring(s-=a,s+a)),!((l+=a+1)>i));)a=t[o=(o+1)%t.length];return r.reverse().join(n)}}(I1.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",r=void 0===t.numerals?L1:function m6(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(I1.call(t.numerals,String)),o=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(b){var T=(b=wh(b)).fill,M=b.align,I=b.sign,B=b.symbol,P=b.zero,K=b.width,Q=b.comma,ne=b.precision,ge=b.trim,Ce=b.type;"n"===Ce?(Q=!0,Ce="g"):k1[Ce]||(void 0===ne&&(ne=12),ge=!0,Ce="g"),(P||"0"===T&&"="===M)&&(P=!0,T="0",M="=");var we="$"===B?e:"#"===B&&/[boxX]/.test(Ce)?"0"+Ce.toLowerCase():"",Oe="$"===B?i:/[%p]/.test(Ce)?o:"",Je=k1[Ce],Ge=/[defgprs%]/.test(Ce);function Ze(Ue){var Vt,Dt,Ae,ke=we,He=Oe;if("c"===Ce)He=Je(Ue)+He,Ue="";else{var Ve=(Ue=+Ue)<0||1/Ue<0;if(Ue=isNaN(Ue)?l:Je(Math.abs(Ue),ne),ge&&(Ue=function v6(t){e:for(var s,n=t.length,e=1,i=-1;e<n;++e)switch(t[e]){case".":i=s=e;break;case"0":0===i&&(i=e),s=e;break;default:if(!+t[e])break e;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(s+1):t}(Ue)),Ve&&0==+Ue&&"+"!==I&&(Ve=!1),ke=(Ve?"("===I?I:a:"-"===I||"("===I?"":I)+ke,He=("s"===Ce?O1[8+A1/3]:"")+He+(Ve&&"("===I?")":""),Ge)for(Vt=-1,Dt=Ue.length;++Vt<Dt;)if(48>(Ae=Ue.charCodeAt(Vt))||Ae>57){He=(46===Ae?s+Ue.slice(Vt+1):Ue.slice(Vt))+He,Ue=Ue.slice(0,Vt);break}}Q&&!P&&(Ue=n(Ue,1/0));var Re=ke.length+Ue.length+He.length,We=Re<K?new Array(K-Re+1).join(T):"";switch(Q&&P&&(Ue=n(We+Ue,We.length?K-He.length:1/0),We=""),M){case"<":Ue=ke+Ue+He+We;break;case"=":Ue=ke+We+Ue+He;break;case"^":Ue=We.slice(0,Re=We.length>>1)+ke+Ue+He+We.slice(Re);break;default:Ue=We+ke+Ue+He}return r(Ue)}return ne=void 0===ne?6:/[gprs]/.test(Ce)?Math.max(1,Math.min(21,ne)):Math.max(0,Math.min(20,ne)),Ze.toString=function(){return b+""},Ze}return{format:c,formatPrefix:function h(b,T){var M=c(((b=wh(b)).type="f",b)),I=3*Math.max(-8,Math.min(8,Math.floor(function ma(t){return(t=Ch(Math.abs(t)))?t[1]:NaN}(T)/3))),B=Math.pow(10,-I),P=O1[8+I/3];return function(K){return M(B*K)+P}}}}!function x6(t){y6(t)}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const N1=Symbol("implicit");function Dh(){var t=new Map,n=[],e=[],i=N1;function s(r){var o=r+"",a=t.get(o);if(!a){if(i!==N1)return i;t.set(o,a=n.push(r))}return e[(a-1)%e.length]}return s.domain=function(r){if(!arguments.length)return n.slice();n=[],t=new Map;for(const o of r){const a=o+"";t.has(a)||t.set(a,n.push(o))}return s},s.range=function(r){return arguments.length?(e=Array.from(r),s):e.slice()},s.unknown=function(r){return arguments.length?(i=r,s):i},s.copy=function(){return Dh(n,e).unknown(i)},Yl.apply(s,arguments),s}function V1(t){this._context=t}function io(t){return new V1(t)}V1.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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Pm=Math.PI,Nm=2*Pm,so=1e-6,E6=Nm-so;function Rm(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function H1(){return new Rm}Rm.prototype=H1.prototype={constructor:Rm,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,s,r){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+s)+","+(this._y1=+r)},arcTo:function(t,n,e,i,s){var r=this._x1,o=this._y1,a=(e=+e)-(t=+t),l=(i=+i)-(n=+n),c=r-t,h=o-n,b=c*c+h*h;if((s=+s)<0)throw new Error("negative radius: "+s);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(b>so)if(Math.abs(h*a-l*c)>so&&s){var T=e-r,M=i-o,I=a*a+l*l,B=T*T+M*M,P=Math.sqrt(I),K=Math.sqrt(b),Q=s*Math.tan((Pm-Math.acos((I+b-B)/(2*P*K)))/2),ne=Q/K,ge=Q/P;Math.abs(ne-1)>so&&(this._+="L"+(t+ne*c)+","+(n+ne*h)),this._+="A"+s+","+s+",0,0,"+ +(h*T>c*M)+","+(this._x1=t+ge*a)+","+(this._y1=n+ge*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,s,r){t=+t,n=+n,r=!!r;var o=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+o,c=n+a,h=1^r,b=r?i-s:s-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>so||Math.abs(this._y1-c)>so)&&(this._+="L"+l+","+c),e&&(b<0&&(b=b%Nm+Nm),b>E6?this._+="A"+e+","+e+",0,1,"+h+","+(t-o)+","+(n-a)+"A"+e+","+e+",0,1,"+h+","+(this._x1=l)+","+(this._y1=c):b>so&&(this._+="A"+e+","+e+",0,"+ +(b>=Pm)+","+h+","+(this._x1=t+e*Math.cos(s))+","+(this._y1=n+e*Math.sin(s))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const Bm=H1;function $t(t){return function(){return t}}function z1(t){return t[0]}function j1(t){return t[1]}function G1(){}function Vm(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function $1(t,n){this._context=t,this._k=(1-n)/6}function U1(t,n){this._context=t,this._k=(1-n)/6}function W1(t){this._curve=t}function $6(t,n,e,i,s){for(var o,r=t.children,a=-1,l=r.length,c=t.value&&(i-n)/t.value;++a<l;)(o=r[a]).y0=e,o.y1=s,o.x0=n,o.x1=n+=o.value*c}function U6(t,n,e,i,s){for(var o,r=t.children,a=-1,l=r.length,c=t.value&&(s-e)/t.value;++a<l;)(o=r[a]).x0=n,o.x1=i,o.y0=e,o.y1=e+=o.value*c}function K6(t){var n=0,e=t.children,i=e&&e.length;if(i)for(;--i>=0;)n+=e[i].value;else n=1;t.value=n}function Q1(t,n){var s,o,a,l,c,e=new Jl(t),i=+t.value&&(e.value=t.value),r=[e];for(null==n&&(n=uz);s=r.pop();)if(i&&(s.value=+s.data.value),(a=n(s.data))&&(c=a.length))for(s.children=new Array(c),l=c-1;l>=0;--l)r.push(o=s.children[l]=new Jl(a[l])),o.parent=s,o.depth=s.depth+1;return e.eachBefore(J1)}function uz(t){return t.children}function hz(t){t.data=t.data.data}function J1(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Jl(t){this.data=t,this.depth=this.height=0,this.parent=null}$1.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:Vm(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Vm(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new $1(i,n)}return e.tension=function(i){return t(+i)},e}(0),U1.prototype={areaStart:G1,areaEnd:G1,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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Vm(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new U1(i,n)}return e.tension=function(i){return t(+i)},e}(0),function Y1(t){function n(e){return new W1(t(e))}return n._curve=t,n}(io),W1.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,function t(n){function e(i,s,r,o,a){!function Y6(t,n,e,i,s,r){for(var l,c,M,I,P,K,Q,ne,ge,Ce,we,o=[],a=n.children,h=0,b=0,T=a.length,B=n.value;h<T;){M=s-e,I=r-i;do{P=a[b++].value}while(!P&&b<T);for(K=Q=P,we=P*P*(Ce=Math.max(I/M,M/I)/(B*t)),ge=Math.max(Q/we,we/K);b<T;++b){if(P+=c=a[b].value,c<K&&(K=c),c>Q&&(Q=c),we=P*P*Ce,(ne=Math.max(Q/we,we/K))>ge){P-=c;break}ge=ne}o.push(l={value:P,dice:M<I,children:a.slice(h,b)}),l.dice?$6(l,e,i,s,B?i+=I*P/B:r):U6(l,e,i,B?e+=M*P/B:s,r),B-=P,h=b}}(n,i,s,r,o,a)}return e.ratio=function(i){return t((i=+i)>1?i:1)},e}((1+Math.sqrt(5))/2),Jl.prototype=Q1.prototype={constructor:Jl,count:function Q6(){return this.eachAfter(K6)},each:function J6(t){var e,s,r,o,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),s=n.children)for(r=0,o=s.length;r<o;++r)i.push(s[r])}while(i.length);return this},eachAfter:function ez(t){for(var s,r,o,n=this,e=[n],i=[];n=e.pop();)if(i.push(n),s=n.children)for(r=0,o=s.length;r<o;++r)e.push(s[r]);for(;n=i.pop();)t(n);return this},eachBefore:function q6(t){for(var i,s,n=this,e=[n];n=e.pop();)if(t(n),i=n.children)for(s=i.length-1;s>=0;--s)e.push(i[s]);return this},sum:function tz(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,s=i&&i.length;--s>=0;)e+=i[s].value;n.value=e})},sort:function nz(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function iz(t){for(var n=this,e=function sz(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),s=null;for(t=e.pop(),n=i.pop();t===n;)s=t,t=e.pop(),n=i.pop();return s}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var s=i.length;t!==e;)i.splice(s,0,t),t=t.parent;return i},ancestors:function rz(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function oz(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function az(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function lz(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function cz(){return Q1(this).eachBefore(hz)}};const mz=["caretElm"];function vz(t,n){}const _z=function(t){return{model:t}};function yz(t,n){if(1&t&&(q(0,"span"),ue(1,vz,0,0,"ng-template",5),re()),2&t){const e=W();G(1),j("ngTemplateOutlet",e.template)("ngTemplateOutletContext",$s(2,_z,e.context))}}function xz(t,n){1&t&&Ie(0,"span",6),2&t&&j("innerHTML",W().title,Qa)}let oD=(()=>{class t{constructor(e,i,s){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=s}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function B$(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const s=Object.getOwnPropertyNames(i.inputs);for(const r of s)e.instance[r]=i.inputs[r]}if(void 0!==i.outputs){const s=Object.getOwnPropertyNames(i.outputs);for(const r of s)e.instance[r]=i.outputs[r]}}return e}appendComponent(e,i={},s){s||(s=this.getRootViewContainer());const r=this.getComponentRootNode(s),o=new SB(r,this.componentFactoryResolver,this.applicationRef,this.injector),a=new Og(e),l=o.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(Ee(vl),Ee(mr),Ee(oi))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function V$(t,n,e){e=e||{};let i,s,r,o=null,a=0;function l(){a=!1===e.leading?0:+new Date,o=null,r=t.apply(i,s)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const h=n-(c-a);return i=this,s=arguments,h<=0?(clearTimeout(o),o=null,a=c,r=t.apply(i,s)):!o&&!1!==e.trailing&&(o=setTimeout(l,h)),r}}function H$(t,n){return function(i,s,r){return{configurable:!0,enumerable:r.enumerable,get:function(){return Object.defineProperty(this,s,{configurable:!0,enumerable:r.enumerable,value:V$(r.value,t,n)}),this[s]}}}}var Mn=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(Mn||(Mn={})),Mn))();function aD(t,n,e){return"top"===e?t.top-7:"bottom"===e?t.top+t.height-n.height+7:"center"===e?t.top+t.height/2-n.height/2:void 0}function lD(t,n,e){return"left"===e?t.left-7:"right"===e?t.left+t.width-n.width+7:"center"===e?t.left+t.width/2-n.width/2:void 0}class Fi{static calculateVerticalAlignment(n,e,i){let s=aD(n,e,i);return s+e.height>window.innerHeight&&(s=window.innerHeight-e.height),s}static calculateVerticalCaret(n,e,i,s){let r;"top"===s&&(r=n.height/2-i.height/2+7),"bottom"===s&&(r=e.height-n.height/2-i.height/2-7),"center"===s&&(r=e.height/2-i.height/2);const o=aD(n,e,s);return o+e.height>window.innerHeight&&(r+=o+e.height-window.innerHeight),r}static calculateHorizontalAlignment(n,e,i){let s=lD(n,e,i);return s+e.width>window.innerWidth&&(s=window.innerWidth-e.width),s}static calculateHorizontalCaret(n,e,i,s){let r;"left"===s&&(r=n.width/2-i.width/2+7),"right"===s&&(r=e.width-n.width/2-i.width/2-7),"center"===s&&(r=e.width/2-i.width/2);const o=lD(n,e,s);return o+e.width>window.innerWidth&&(r+=o+e.width-window.innerWidth),r}static shouldFlip(n,e,i,s){let r=!1;return"right"===i&&n.left+n.width+e.width+s>window.innerWidth&&(r=!0),"left"===i&&n.left-e.width-s<0&&(r=!0),"top"===i&&n.top-e.height-s<0&&(r=!0),"bottom"===i&&n.top+n.height+e.height+s>window.innerHeight&&(r=!0),r}static positionCaret(n,e,i,s,r){let o=0,a=0;return n===Mn.right?(a=-7,o=Fi.calculateVerticalCaret(i,e,s,r)):n===Mn.left?(a=e.width,o=Fi.calculateVerticalCaret(i,e,s,r)):n===Mn.top?(o=e.height,a=Fi.calculateHorizontalCaret(i,e,s,r)):n===Mn.bottom&&(o=-7,a=Fi.calculateHorizontalCaret(i,e,s,r)),{top:o,left:a}}static positionContent(n,e,i,s,r){let o=0,a=0;return n===Mn.right?(a=i.left+i.width+s,o=Fi.calculateVerticalAlignment(i,e,r)):n===Mn.left?(a=i.left-e.width-s,o=Fi.calculateVerticalAlignment(i,e,r)):n===Mn.top?(o=i.top-e.height-s,a=Fi.calculateHorizontalAlignment(i,e,r)):n===Mn.bottom&&(o=i.top+i.height+s,a=Fi.calculateHorizontalAlignment(i,e,r)),{top:o,left:a}}static determinePlacement(n,e,i,s){if(Fi.shouldFlip(i,e,n,s)){if(n===Mn.right)return Mn.left;if(n===Mn.left)return Mn.right;if(n===Mn.top)return Mn.bottom;if(n===Mn.bottom)return Mn.top}return n}}let Ym,z$=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const s=e.getBoundingClientRect();this.checkFlip(i,s),this.positionContent(e,i,s),this.showCaret&&this.positionCaret(i,s),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,s){const{top:r,left:o}=Fi.positionContent(this.placement,s,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${r}px`),this.renderer.setStyle(e,"left",`${o}px`)}positionCaret(e,i){const s=this.caretElm.nativeElement,r=s.getBoundingClientRect(),{top:o,left:a}=Fi.positionCaret(this.placement,i,e,r,this.alignment);this.renderer.setStyle(s,"top",`${o}px`),this.renderer.setStyle(s,"left",`${a}px`)}checkFlip(e,i){this.placement=Fi.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(Le(Gt),Le(au))},t.\u0275cmp=$e({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&vi(mz,5),2&e){let s;ht(s=dt())&&(i.caretElm=s.first)}},hostVars:2,hostBindings:function(e,i){1&e&&ye("resize",function(){return i.onWindowResize()},!1,q_),2&e&&function Gx(t){ls(Ei,Ss,t,!0)}(i.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(q(0,"div"),Ie(1,"span",0,1),q(3,"div",2),ue(4,yz,2,4,"span",3),ue(5,xz,1,1,"span",4),re()()),2&e&&(G(1),function ib(t,n,e){ls(Ei,Ss,Vo(Se(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),j("hidden",!i.showCaret),G(3),j("ngIf",!i.title),G(1),j("ngIf",i.title))},directives:[yt,Kp],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),Ng([H$(100)],t.prototype,"onWindowResize",null),t})(),jm=(()=>{class t extends class j${constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}{constructor(e){super(e),this.type=z$}}return t.\u0275fac=function(e){return new(e||t)(Ee(oD))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),dD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[_r]]}),t})(),fD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({providers:[oD,jm],imports:[[_r]]}),t})();"undefined"!=typeof window?Ym=window:"undefined"!=typeof global&&(Ym=global);let gs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[_r,dD,fD],_r,dD,fD]}),t})(),U$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs]]}),t})(),ED=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs]]}),t})(),Y$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs]]}),t})(),K$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs]]}),t})(),kD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs]]}),t})();Math;let tv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs]]}),t})(),n9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs,tv,kD]]}),t})(),o9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs]]}),t})(),c9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs]]}),t})(),d9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[gs,tv,ED]]}),t})(),p9=(()=>{class t{constructor(){!function f9(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[gs,U$,ED,Y$,K$,kD,n9,o9,tv,c9,d9]}),t})();function RD(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Bh(t){this._context=t}function BD(t,n){this._basis=new Bh(t),this._beta=n}Bh.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:RD(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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);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:RD(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},BD.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var l,i=t[0],s=n[0],r=t[e]-i,o=n[e]-s,a=-1;++a<=e;)this._basis.point(this._beta*t[a]+(1-this._beta)*(i+(l=a/e)*r),this._beta*n[a]+(1-this._beta)*(s+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const g9=function t(n){function e(i){return 1===n?new Bh(i):new BD(i,n)}return e.beta=function(i){return t(+i)},e}(.85);var VD=Math.PI;function zD(t){return(1-Math.cos(VD*t))/2}const jD=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function GD(t,n){return function(i){return i.lift(new m9(t,n))}}class m9{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new v9(n,this.predicate,this.thisArg))}}class v9 extends k{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}const _9=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Vh(t){return n=>0===t?Bw():n.lift(new y9(t))}class y9{constructor(n){if(this.total=n,this.total<0)throw new _9}call(n,e){return e.subscribe(new x9(n,this.total))}}class x9 extends k{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function b9(t=null){return n=>n.lift(new w9(t))}class w9{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new C9(n,this.defaultValue))}}class C9 extends k{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function T9(t=S9){return n=>n.lift(new D9(t))}class D9{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new E9(n,this.errorFactory))}}class E9 extends k{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function S9(){return new jD}function N9(t){return void 0===t}function H9(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return Array.from(t)}function z9(t){return Array.isArray(t)?t:Array.from(t)}function nc(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];var i=function(b,T){return{a:b.a*T.a+b.c*T.b,c:b.a*T.c+b.c*T.d,e:b.a*T.e+b.c*T.f+b.e,b:b.b*T.a+b.d*T.b,d:b.b*T.c+b.d*T.d,f:b.b*T.e+b.d*T.f+b.f}};switch((n=Array.isArray(n[0])?n[0]:n).length){case 0:throw new Error("no matrices provided");case 1:return n[0];case 2:return i(n[0],n[1]);default:var s=n,r=z9(s),o=r[0],a=r[1],l=r.slice(2),c=i(o,a);return nc.apply(void 0,[c].concat(H9(l)))}}function WD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:t,b:0,d:1,f:n}}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;var xa=Zn(9695);function G9(t,n){var e;function i(){var s,o,r=e.length,a=0,l=0;for(s=0;s<r;++s)a+=(o=e[s]).x,l+=o.y;for(a=a/r-t,l=l/r-n,s=0;s<r;++s)(o=e[s]).x-=a,o.y-=l}return null==t&&(t=0),null==n&&(n=0),i.initialize=function(s){e=s},i.x=function(s){return arguments.length?(t=+s,i):t},i.y=function(s){return arguments.length?(n=+s,i):n},i}function Rn(t){return function(){return t}}function Er(){return 1e-6*(Math.random()-.5)}function YD(t,n,e,i){if(isNaN(n)||isNaN(e))return t;var s,b,T,M,I,B,P,K,Q,r=t._root,o={data:i},a=t._x0,l=t._y0,c=t._x1,h=t._y1;if(!r)return t._root=o,t;for(;r.length;)if((B=n>=(b=(a+c)/2))?a=b:c=b,(P=e>=(T=(l+h)/2))?l=T:h=T,s=r,!(r=r[K=P<<1|B]))return s[K]=o,t;if(M=+t._x.call(null,r.data),I=+t._y.call(null,r.data),n===M&&e===I)return o.next=r,s?s[K]=o:t._root=o,t;do{s=s?s[K]=new Array(4):t._root=new Array(4),(B=n>=(b=(a+c)/2))?a=b:c=b,(P=e>=(T=(l+h)/2))?l=T:h=T}while((K=P<<1|B)==(Q=(I>=T)<<1|M>=b));return s[Q]=r,s[K]=o,t}function hi(t,n,e,i,s){this.node=t,this.x0=n,this.y0=e,this.x1=i,this.y1=s}function n7(t){return t[0]}function s7(t){return t[1]}function nv(t,n,e){var i=new iv(null==n?n7:n,null==e?s7:e,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function iv(t,n,e,i,s,r){this._x=t,this._y=n,this._x0=e,this._y0=i,this._x1=s,this._y1=r,this._root=void 0}function XD(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var di=nv.prototype=iv.prototype;function o7(t){return t.x+t.vx}function a7(t){return t.y+t.vy}function ZD(t){var n,e,i=1,s=1;function r(){for(var l,h,b,T,M,I,B,c=n.length,P=0;P<s;++P)for(h=nv(n,o7,a7).visitAfter(o),l=0;l<c;++l)B=(I=e[(b=n[l]).index])*I,T=b.x+b.vx,M=b.y+b.vy,h.visit(K);function K(Q,ne,ge,Ce,we){var Oe=Q.data,Je=Q.r,Ge=I+Je;if(!Oe)return ne>T+Ge||Ce<T-Ge||ge>M+Ge||we<M-Ge;if(Oe.index>b.index){var Ze=T-Oe.x-Oe.vx,Ue=M-Oe.y-Oe.vy,ke=Ze*Ze+Ue*Ue;ke<Ge*Ge&&(0===Ze&&(ke+=(Ze=Er())*Ze),0===Ue&&(ke+=(Ue=Er())*Ue),ke=(Ge-(ke=Math.sqrt(ke)))/ke*i,b.vx+=(Ze*=ke)*(Ge=(Je*=Je)/(B+Je)),b.vy+=(Ue*=ke)*Ge,Oe.vx-=Ze*(Ge=1-Ge),Oe.vy-=Ue*Ge)}}}function o(l){if(l.data)return l.r=e[l.data.index];for(var c=l.r=0;c<4;++c)l[c]&&l[c].r>l.r&&(l.r=l[c].r)}function a(){if(n){var l,h,c=n.length;for(e=new Array(c),l=0;l<c;++l)e[(h=n[l]).index]=+t(h,l,n)}}return"function"!=typeof t&&(t=Rn(null==t?1:+t)),r.initialize=function(l){n=l,a()},r.iterations=function(l){return arguments.length?(s=+l,r):s},r.strength=function(l){return arguments.length?(i=+l,r):i},r.radius=function(l){return arguments.length?(t="function"==typeof l?l:Rn(+l),a(),r):t},r}di.copy=function(){var e,i,t=new iv(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return t;if(!n.length)return t._root=XD(n),t;for(e=[{source:n,target:t._root=new Array(4)}];n=e.pop();)for(var s=0;s<4;++s)(i=n.source[s])&&(i.length?e.push({source:i,target:n.target[s]=new Array(4)}):n.target[s]=XD(i));return t},di.add=function $9(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return YD(this.cover(n,e),n,e,t)},di.addAll=function U9(t){var n,e,s,r,i=t.length,o=new Array(i),a=new Array(i),l=1/0,c=1/0,h=-1/0,b=-1/0;for(e=0;e<i;++e)isNaN(s=+this._x.call(null,n=t[e]))||isNaN(r=+this._y.call(null,n))||(o[e]=s,a[e]=r,s<l&&(l=s),s>h&&(h=s),r<c&&(c=r),r>b&&(b=r));if(l>h||c>b)return this;for(this.cover(l,c).cover(h,b),e=0;e<i;++e)YD(this,o[e],a[e],t[e]);return this},di.cover=function W9(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,i=this._y0,s=this._x1,r=this._y1;if(isNaN(e))s=(e=Math.floor(t))+1,r=(i=Math.floor(n))+1;else{for(var l,c,o=s-e,a=this._root;e>t||t>=s||i>n||n>=r;)switch(c=(n<i)<<1|t<e,l=new Array(4),l[c]=a,a=l,o*=2,c){case 0:s=e+o,r=i+o;break;case 1:e=s-o,r=i+o;break;case 2:s=e+o,i=r-o;break;case 3:e=s-o,i=r-o}this._root&&this._root.length&&(this._root=a)}return this._x0=e,this._y0=i,this._x1=s,this._y1=r,this},di.data=function Y9(){var t=[];return this.visit(function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)}),t},di.extent=function X9(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},di.find=function Z9(t,n,e){var i,o,a,l,c,I,B,s=this._x0,r=this._y0,h=this._x1,b=this._y1,T=[],M=this._root;for(M&&T.push(new hi(M,s,r,h,b)),null==e?e=1/0:(s=t-e,r=n-e,h=t+e,b=n+e,e*=e);I=T.pop();)if(!(!(M=I.node)||(o=I.x0)>h||(a=I.y0)>b||(l=I.x1)<s||(c=I.y1)<r))if(M.length){var P=(o+l)/2,K=(a+c)/2;T.push(new hi(M[3],P,K,l,c),new hi(M[2],o,K,P,c),new hi(M[1],P,a,l,K),new hi(M[0],o,a,P,K)),(B=(n>=K)<<1|t>=P)&&(I=T[T.length-1],T[T.length-1]=T[T.length-1-B],T[T.length-1-B]=I)}else{var Q=t-+this._x.call(null,M.data),ne=n-+this._y.call(null,M.data),ge=Q*Q+ne*ne;if(ge<e){var Ce=Math.sqrt(e=ge);s=t-Ce,r=n-Ce,h=t+Ce,b=n+Ce,i=M.data}}return i},di.remove=function K9(t){if(isNaN(h=+this._x.call(null,t))||isNaN(b=+this._y.call(null,t)))return this;var n,i,s,r,h,b,T,M,I,B,P,K,e=this._root,o=this._x0,a=this._y0,l=this._x1,c=this._y1;if(!e)return this;if(e.length)for(;;){if((I=h>=(T=(o+l)/2))?o=T:l=T,(B=b>=(M=(a+c)/2))?a=M:c=M,n=e,!(e=e[P=B<<1|I]))return this;if(!e.length)break;(n[P+1&3]||n[P+2&3]||n[P+3&3])&&(i=n,K=P)}for(;e.data!==t;)if(s=e,!(e=e.next))return this;return(r=e.next)&&delete e.next,s?(r?s.next=r:delete s.next,this):n?(r?n[P]=r:delete n[P],(e=n[0]||n[1]||n[2]||n[3])&&e===(n[3]||n[2]||n[1]||n[0])&&!e.length&&(i?i[K]=e:this._root=e),this):(this._root=r,this)},di.removeAll=function Q9(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},di.root=function J9(){return this._root},di.size=function q9(){var t=0;return this.visit(function(n){if(!n.length)do{++t}while(n=n.next)}),t},di.visit=function e7(t){var e,s,r,o,a,l,n=[],i=this._root;for(i&&n.push(new hi(i,this._x0,this._y0,this._x1,this._y1));e=n.pop();)if(!t(i=e.node,r=e.x0,o=e.y0,a=e.x1,l=e.y1)&&i.length){var c=(r+a)/2,h=(o+l)/2;(s=i[3])&&n.push(new hi(s,c,h,a,l)),(s=i[2])&&n.push(new hi(s,r,h,c,l)),(s=i[1])&&n.push(new hi(s,c,o,a,h)),(s=i[0])&&n.push(new hi(s,r,o,c,h))}return this},di.visitAfter=function t7(t){var i,n=[],e=[];for(this._root&&n.push(new hi(this._root,this._x0,this._y0,this._x1,this._y1));i=n.pop();){var s=i.node;if(s.length){var r,o=i.x0,a=i.y0,l=i.x1,c=i.y1,h=(o+l)/2,b=(a+c)/2;(r=s[0])&&n.push(new hi(r,o,a,h,b)),(r=s[1])&&n.push(new hi(r,h,a,l,b)),(r=s[2])&&n.push(new hi(r,o,b,h,c)),(r=s[3])&&n.push(new hi(r,h,b,l,c))}e.push(i)}for(;i=e.pop();)t(i.node,i.x0,i.y0,i.x1,i.y1);return this},di.x=function i7(t){return arguments.length?(this._x=t,this):this._x},di.y=function r7(t){return arguments.length?(this._y=t,this):this._y};var Ki="$";function Hh(){}function KD(t,n){var e=new Hh;if(t instanceof Hh)t.each(function(a,l){e.set(l,a)});else if(Array.isArray(t)){var r,i=-1,s=t.length;if(null==n)for(;++i<s;)e.set(i,t[i]);else for(;++i<s;)e.set(n(r=t[i],i,t),r)}else if(t)for(var o in t)e.set(o,t[o]);return e}Hh.prototype=KD.prototype={constructor:Hh,has:function(t){return Ki+t in this},get:function(t){return this[Ki+t]},set:function(t,n){return this[Ki+t]=n,this},remove:function(t){var n=Ki+t;return n in this&&delete this[n]},clear:function(){for(var t in this)t[0]===Ki&&delete this[t]},keys:function(){var t=[];for(var n in this)n[0]===Ki&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)n[0]===Ki&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)n[0]===Ki&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)n[0]===Ki&&++t;return t},empty:function(){for(var t in this)if(t[0]===Ki)return!1;return!0},each:function(t){for(var n in this)n[0]===Ki&&t(this[n],n.slice(1),this)}};const sv=KD;function zh(){}var ao=sv.prototype;function h7(t){return t.index}function qD(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}function eE(t){var i,r,o,a,l,n=h7,e=function h(B){return 1/Math.min(a[B.source.index],a[B.target.index])},s=Rn(30),c=1;function b(B){for(var P=0,K=t.length;P<c;++P)for(var ne,ge,Ce,we,Oe,Je,Ge,Q=0;Q<K;++Q)we=(Ce=(ne=t[Q]).target).x+Ce.vx-(ge=ne.source).x-ge.vx||Er(),Oe=Ce.y+Ce.vy-ge.y-ge.vy||Er(),Oe*=Je=((Je=Math.sqrt(we*we+Oe*Oe))-r[Q])/Je*B*i[Q],Ce.vx-=(we*=Je)*(Ge=l[Q]),Ce.vy-=Oe*Ge,ge.vx+=we*(Ge=1-Ge),ge.vy+=Oe*Ge}function T(){if(o){var B,ne,P=o.length,K=t.length,Q=sv(o,n);for(B=0,a=new Array(P);B<K;++B)(ne=t[B]).index=B,"object"!=typeof ne.source&&(ne.source=qD(Q,ne.source)),"object"!=typeof ne.target&&(ne.target=qD(Q,ne.target)),a[ne.source.index]=(a[ne.source.index]||0)+1,a[ne.target.index]=(a[ne.target.index]||0)+1;for(B=0,l=new Array(K);B<K;++B)l[B]=a[(ne=t[B]).source.index]/(a[ne.source.index]+a[ne.target.index]);i=new Array(K),M(),r=new Array(K),I()}}function M(){if(o)for(var B=0,P=t.length;B<P;++B)i[B]=+e(t[B],B,t)}function I(){if(o)for(var B=0,P=t.length;B<P;++B)r[B]=+s(t[B],B,t)}return null==t&&(t=[]),b.initialize=function(B){o=B,T()},b.links=function(B){return arguments.length?(t=B,T(),b):t},b.id=function(B){return arguments.length?(n=B,b):n},b.iterations=function(B){return arguments.length?(c=+B,b):c},b.strength=function(B){return arguments.length?(e="function"==typeof B?B:Rn(+B),M(),b):e},b.distance=function(B){return arguments.length?(s="function"==typeof B?B:Rn(+B),I(),b):s},b}function d7(t){return t.x}function f7(t){return t.y}zh.prototype=function u7(t,n){var e=new zh;if(t instanceof zh)t.each(function(r){e.add(r)});else if(t){var i=-1,s=t.length;if(null==n)for(;++i<s;)e.add(t[i]);else for(;++i<s;)e.add(n(t[i],i,t))}return e}.prototype={constructor:zh,has:ao.has,add:function(t){return this[Ki+(t+="")]=t,this},remove:ao.remove,clear:ao.clear,values:ao.keys,size:ao.size,empty:ao.empty,each:ao.each};var g7=Math.PI*(3-Math.sqrt(5));function tE(t){var n,e=1,i=.001,s=1-Math.pow(i,1/300),r=0,o=.6,a=sv(),l=dh(h),c=rh("tick","end");function h(){b(),c.call("tick",n),e<i&&(l.stop(),c.call("end",n))}function b(I){var B,K,P=t.length;void 0===I&&(I=1);for(var Q=0;Q<I;++Q)for(e+=(r-e)*s,a.each(function(ne){ne(e)}),B=0;B<P;++B)null==(K=t[B]).fx?K.x+=K.vx*=o:(K.x=K.fx,K.vx=0),null==K.fy?K.y+=K.vy*=o:(K.y=K.fy,K.vy=0);return n}function T(){for(var P,I=0,B=t.length;I<B;++I){if((P=t[I]).index=I,null!=P.fx&&(P.x=P.fx),null!=P.fy&&(P.y=P.fy),isNaN(P.x)||isNaN(P.y)){var K=10*Math.sqrt(I),Q=I*g7;P.x=K*Math.cos(Q),P.y=K*Math.sin(Q)}(isNaN(P.vx)||isNaN(P.vy))&&(P.vx=P.vy=0)}}function M(I){return I.initialize&&I.initialize(t),I}return null==t&&(t=[]),T(),n={tick:b,restart:function(){return l.restart(h),n},stop:function(){return l.stop(),n},nodes:function(I){return arguments.length?(t=I,T(),a.each(M),n):t},alpha:function(I){return arguments.length?(e=+I,n):e},alphaMin:function(I){return arguments.length?(i=+I,n):i},alphaDecay:function(I){return arguments.length?(s=+I,n):+s},alphaTarget:function(I){return arguments.length?(r=+I,n):r},velocityDecay:function(I){return arguments.length?(o=1-I,n):1-o},force:function(I,B){return arguments.length>1?(null==B?a.remove(I):a.set(I,M(B)),n):a.get(I)},find:function(I,B,P){var ne,ge,Ce,we,Oe,K=0,Q=t.length;for(null==P?P=1/0:P*=P,K=0;K<Q;++K)(Ce=(ne=I-(we=t[K]).x)*ne+(ge=B-we.y)*ge)<P&&(Oe=we,P=Ce);return Oe},on:function(I,B){return arguments.length>1?(c.on(I,B),n):c.on(I)}}}function nE(){var t,n,e,s,i=Rn(-30),r=1,o=1/0,a=.81;function l(T){var M,I=t.length,B=nv(t,d7,f7).visitAfter(h);for(e=T,M=0;M<I;++M)n=t[M],B.visit(b)}function c(){if(t){var T,I,M=t.length;for(s=new Array(M),T=0;T<M;++T)s[(I=t[T]).index]=+i(I,T,t)}}function h(T){var I,B,K,Q,ne,M=0,P=0;if(T.length){for(K=Q=ne=0;ne<4;++ne)(I=T[ne])&&(B=Math.abs(I.value))&&(M+=I.value,P+=B,K+=B*I.x,Q+=B*I.y);T.x=K/P,T.y=Q/P}else{(I=T).x=I.data.x,I.y=I.data.y;do{M+=s[I.data.index]}while(I=I.next)}T.value=M}function b(T,M,I,B){if(!T.value)return!0;var P=T.x-n.x,K=T.y-n.y,Q=B-M,ne=P*P+K*K;if(Q*Q/a<ne)return ne<o&&(0===P&&(ne+=(P=Er())*P),0===K&&(ne+=(K=Er())*K),ne<r&&(ne=Math.sqrt(r*ne)),n.vx+=P*T.value*e/ne,n.vy+=K*T.value*e/ne),!0;if(!(T.length||ne>=o)){(T.data!==n||T.next)&&(0===P&&(ne+=(P=Er())*P),0===K&&(ne+=(K=Er())*K),ne<r&&(ne=Math.sqrt(r*ne)));do{T.data!==n&&(n.vx+=P*(Q=s[T.data.index]*e/ne),n.vy+=K*Q)}while(T=T.next)}}return l.initialize=function(T){t=T,c()},l.strength=function(T){return arguments.length?(i="function"==typeof T?T:Rn(+T),c(),l):i},l.distanceMin=function(T){return arguments.length?(r=T*T,l):Math.sqrt(r)},l.distanceMax=function(T){return arguments.length?(o=T*T,l):Math.sqrt(o)},l.theta=function(T){return arguments.length?(a=T*T,l):Math.sqrt(a)},l}function m7(t,n,e){var i,r,o,s=Rn(.1);function a(c){for(var h=0,b=i.length;h<b;++h){var T=i[h],M=T.x-n||1e-6,I=T.y-e||1e-6,B=Math.sqrt(M*M+I*I),P=(o[h]-B)*r[h]*c/B;T.vx+=M*P,T.vy+=I*P}}function l(){if(i){var c,h=i.length;for(r=new Array(h),o=new Array(h),c=0;c<h;++c)o[c]=+t(i[c],c,i),r[c]=isNaN(o[c])?0:+s(i[c],c,i)}}return"function"!=typeof t&&(t=Rn(+t)),null==n&&(n=0),null==e&&(e=0),a.initialize=function(c){i=c,l()},a.strength=function(c){return arguments.length?(s="function"==typeof c?c:Rn(+c),l(),a):s},a.radius=function(c){return arguments.length?(t="function"==typeof c?c:Rn(+c),l(),a):t},a.x=function(c){return arguments.length?(n=+c,a):n},a.y=function(c){return arguments.length?(e=+c,a):e},a}function v7(t){var e,i,s,n=Rn(.1);function r(a){for(var h,l=0,c=e.length;l<c;++l)(h=e[l]).vx+=(s[l]-h.x)*i[l]*a}function o(){if(e){var a,l=e.length;for(i=new Array(l),s=new Array(l),a=0;a<l;++a)i[a]=isNaN(s[a]=+t(e[a],a,e))?0:+n(e[a],a,e)}}return"function"!=typeof t&&(t=Rn(null==t?0:+t)),r.initialize=function(a){e=a,o()},r.strength=function(a){return arguments.length?(n="function"==typeof a?a:Rn(+a),o(),r):n},r.x=function(a){return arguments.length?(t="function"==typeof a?a:Rn(+a),o(),r):t},r}function _7(t){var e,i,s,n=Rn(.1);function r(a){for(var h,l=0,c=e.length;l<c;++l)(h=e[l]).vy+=(s[l]-h.y)*i[l]*a}function o(){if(e){var a,l=e.length;for(i=new Array(l),s=new Array(l),a=0;a<l;++a)i[a]=isNaN(s[a]=+t(e[a],a,e))?0:+n(e[a],a,e)}}return"function"!=typeof t&&(t=Rn(null==t?0:+t)),r.initialize=function(a){e=a,o()},r.strength=function(a){return arguments.length?(n="function"==typeof a?a:Rn(+a),o(),r):n},r.y=function(a){return arguments.length?(t="function"==typeof a?a:Rn(+a),o(),r):t},r}var y7=Zn(7824);function x7(t,n,e){var i=new Bl,s=n;return null==n?(i.restart(t,n,e),i):(n=+n,e=null==e?la():+e,i.restart(function r(o){o+=s,i.restart(r,s+=n,e),t(o)},n,e),i)}const b7=["linkTemplate"],w7=["nodeTemplate"],C7=["clusterTemplate"],T7=["defsTemplate"],D7=["miniMapNodeTemplate"],E7=["nodeElement"],S7=["linkElement"];function A7(t,n){1&t&&(ae(),gr(0,14)),2&t&&j("ngTemplateOutlet",W(2).defsTemplate)}function M7(t,n){if(1&t&&(ae(),Ie(0,"path",15)),2&t){const e=n.$implicit;me("d",e.textPath)("id",e.id)}}const ic=function(t){return{$implicit:t}};function k7(t,n){if(1&t&&(ae(),gr(0,20)),2&t){const e=W().$implicit;j("ngTemplateOutlet",W(2).clusterTemplate)("ngTemplateOutletContext",$s(2,ic,e))}}function L7(t,n){if(1&t&&(ae(),q(0,"g",21),Ie(1,"rect"),q(2,"text",22),St(3),re()()),2&t){const e=W().$implicit;G(1),me("width",e.dimension.width)("height",e.dimension.height)("fill",null==e.data?null:e.data.color),G(1),me("x",10)("y",e.dimension.height/2),G(1),nn(" ",e.label," ")}}function I7(t,n){if(1&t){const e=Be();ae(),q(0,"g",16,17),ye("click",function(){const r=ve(e).$implicit;return W(2).onClick(r)}),ue(2,k7,1,4,"ng-container",18),ue(3,L7,4,6,"g",19),re()}if(2&t){const e=n.$implicit,i=W(2);an("old-node",i.animate&&i.oldClusters.has(e.id)),j("id",e.id),me("transform",e.transform),G(2),j("ngIf",i.clusterTemplate),G(1),j("ngIf",!i.clusterTemplate)}}function O7(t,n){if(1&t&&(ae(),gr(0,20)),2&t){const e=W().$implicit;j("ngTemplateOutlet",W(2).linkTemplate)("ngTemplateOutletContext",$s(2,ic,e))}}function F7(t,n){1&t&&(ae(),Ie(0,"path",26)),2&t&&me("d",W().$implicit.line)}function P7(t,n){if(1&t&&(ae(),q(0,"g",23,24),ue(2,O7,1,4,"ng-container",18),ue(3,F7,1,1,"path",25),re()),2&t){const e=n.$implicit,i=W(2);j("id",e.id),G(2),j("ngIf",i.linkTemplate),G(1),j("ngIf",!i.linkTemplate)}}function N7(t,n){if(1&t&&(ae(),gr(0,20)),2&t){const e=W().$implicit;j("ngTemplateOutlet",W(2).nodeTemplate)("ngTemplateOutletContext",$s(2,ic,e))}}function R7(t,n){if(1&t&&(ae(),Ie(0,"circle",30)),2&t){const e=W().$implicit;me("cx",e.dimension.width/2)("cy",e.dimension.height/2)("fill",null==e.data?null:e.data.color)}}function B7(t,n){if(1&t){const e=Be();ae(),q(0,"g",27,28),ye("click",function(){const r=ve(e).$implicit;return W(2).onClick(r)})("mousedown",function(s){const o=ve(e).$implicit;return W(2).onNodeMouseDown(s,o)}),ue(2,N7,1,4,"ng-container",18),ue(3,R7,1,3,"circle",29),re()}if(2&t){const e=n.$implicit,i=W(2);an("old-node",i.animate&&i.oldNodes.has(e.id)),j("id",e.id),me("transform",e.transform),G(2),j("ngIf",i.nodeTemplate),G(1),j("ngIf",!i.nodeTemplate)}}function V7(t,n){if(1&t){const e=Be();ae(),q(0,"g",4),ye("touchstart",function(s){return ve(e),W().onTouchStart(s)})("touchend",function(s){return ve(e),W().onTouchEnd(s)}),q(1,"defs"),ue(2,A7,1,1,"ng-container",5),ue(3,M7,1,2,"path",6),re(),q(4,"rect",7),ye("mousedown",function(){return ve(e),W().isPanning=!0}),re(),function eu(t,n=0,e){const i=Se(),s=Lt(),r=Io(s,20+t,16,null,e||null);null===r.projection&&(r.projection=n),xd(),64!=(64&r.flags)&&function rM(t,n,e){R_(n[11],0,n,e,A_(t,e,n),I_(e.parent||n[6],e,n))}(s,i,r)}(5),q(6,"g",8),ue(7,I7,4,6,"g",9),re(),q(8,"g",10),ue(9,P7,4,3,"g",11),re(),q(10,"g",12),ue(11,B7,4,6,"g",13),re()()}if(2&t){const e=W();me("transform",e.transform),G(2),j("ngIf",e.defsTemplate),G(1),j("ngForOf",e.graph.edges),G(1),me("width",100*e.dims.width)("height",100*e.dims.height)("transform","translate("+50*(-e.dims.width||0)+","+50*(-e.dims.height||0)+")"),G(3),j("ngForOf",e.graph.clusters)("ngForTrackBy",e.trackNodeBy),G(2),j("ngForOf",e.graph.edges)("ngForTrackBy",e.trackLinkBy),G(2),j("ngForOf",e.graph.nodes)("ngForTrackBy",e.trackNodeBy)}}function H7(t,n){if(1&t&&(ae(),gr(0,20)),2&t){const e=W().$implicit;j("ngTemplateOutlet",W(2).miniMapNodeTemplate)("ngTemplateOutletContext",$s(2,ic,e))}}function z7(t,n){if(1&t&&(ae(),gr(0,20)),2&t){const e=W().$implicit;j("ngTemplateOutlet",W(2).nodeTemplate)("ngTemplateOutletContext",$s(2,ic,e))}}function j7(t,n){if(1&t&&(ae(),Ie(0,"circle",30)),2&t){const e=W().$implicit,i=W(2);me("cx",e.dimension.width/2/i.minimapScaleCoefficient)("cy",e.dimension.height/2/i.minimapScaleCoefficient)("fill",null==e.data?null:e.data.color)}}function G7(t,n){if(1&t&&(ae(),q(0,"g",36,28),ue(2,H7,1,4,"ng-container",18),ue(3,z7,1,4,"ng-container",18),ue(4,j7,1,3,"circle",29),re()),2&t){const e=n.$implicit,i=W(2);an("old-node",i.animate&&i.oldNodes.has(e.id)),j("id",e.id),me("transform",e.transform),G(2),j("ngIf",i.miniMapNodeTemplate),G(1),j("ngIf",!i.miniMapNodeTemplate&&i.nodeTemplate),G(1),j("ngIf",!i.nodeTemplate&&!i.miniMapNodeTemplate)}}function $7(t,n){if(1&t){const e=Be();ae(),q(0,"g",31)(1,"rect",32),ye("mousedown",function(s){return ve(e),W().onMinimapPanTo(s)}),re(),q(2,"g")(3,"g",33),ue(4,G7,5,7,"g",34),re(),q(5,"rect",35),ye("mousedown",function(){return ve(e),W().onMinimapDragMouseDown()}),re()()()}if(2&t){const e=W();me("transform",e.minimapTransform)("clip-path","url(#"+e.minimapClipPathId+")"),G(1),me("width",e.graphDims.width/e.minimapScaleCoefficient)("height",e.graphDims.height/e.minimapScaleCoefficient),G(1),vt("transform","translate("+-e.minimapOffsetX/e.minimapScaleCoefficient+"px,"+-e.minimapOffsetY/e.minimapScaleCoefficient+"px)"),G(1),vt("transform","scale("+1/e.minimapScaleCoefficient+")"),G(1),j("ngForOf",e.graph.nodes)("ngForTrackBy",e.trackNodeBy),G(1),an("panning",e.isMinimapPanning),me("transform","translate("+e.panOffsetX/e.zoomLevel/-e.minimapScaleCoefficient+","+e.panOffsetY/e.zoomLevel/-e.minimapScaleCoefficient+")")("width",e.width/e.minimapScaleCoefficient/e.zoomLevel)("height",e.height/e.minimapScaleCoefficient/e.zoomLevel)}}const U7=["*"],iE={};function nr(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,iE[t]?nr():(iE[t]=!0,t)}var ba=(()=>(function(t){t.Both="both",t.Horizontal="horizontal",t.Vertical="vertical"}(ba||(ba={})),ba))(),wa=(()=>(function(t){t.UpperLeft="UpperLeft",t.UpperRight="UpperRight"}(wa||(wa={})),wa))();function W7(t,n,e){e=e||{};let i,s,r,o=null,a=0;function l(){a=!1===e.leading?0:+new Date,o=null,r=t.apply(i,s)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const h=n-(c-a);return i=this,s=arguments,h<=0?(clearTimeout(o),o=null,a=c,r=t.apply(i,s)):!o&&!1!==e.trailing&&(o=setTimeout(l,h)),r}}function Y7(t,n){return function(i,s,r){return{configurable:!0,enumerable:r.enumerable,get:function(){return Object.defineProperty(this,s,{configurable:!0,enumerable:r.enumerable,value:W7(r.value,t,n)}),this[s]}}}}let sE=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class X7{constructor(n,e,i){"string"==typeof n&&(n=sE.find(s=>s.name===n)),this.colorDomain=n.domain,this.domain=e,this.customColors=i,this.scale=this.generateColorScheme(n,this.domain)}generateColorScheme(n,e){return"string"==typeof n&&(n=sE.find(i=>i.name===n)),Dh().range(n.domain).domain(e)}getColor(n){if(null==n)throw new Error("Value can not be null");if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(s=>s.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}let K7=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new _e,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:s}=this.element.nativeElement;i&&s?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(Le(Gt),Le(Bt))},t.\u0275dir=bn({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})();var Ca=(()=>(function(t){t.LEFT_TO_RIGHT="LR",t.RIGHT_TO_LEFT="RL",t.TOP_TO_BOTTOM="TB",t.BOTTOM_TO_TOM="BT"}(Ca||(Ca={})),Ca))();class rE{constructor(){this.defaultSettings={orientation:Ca.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),xa.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],s=n.nodes.find(r=>r.id===i.id);s.position={x:i.x,y:i.y},s.dimension={width:i.width,height:i.height}}return n}updateEdge(n,e){const i=n.nodes.find(l=>l.id===e.source),s=n.nodes.find(l=>l.id===e.target),r=i.position.y<=s.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-r*(i.dimension.height/2)},{x:s.position.x,y:s.position.y+r*(s.dimension.height/2)}],n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xa.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=n.nodes.map(i=>{const s=Object.assign({},i);return s.width=i.dimension.width,s.height=i.dimension.height,s.x=i.position.x,s.y=i.position.y,s}),this.dagreEdges=n.edges.map(i=>{const s=Object.assign({},i);return s.id||(s.id=nr()),s});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}}function Ta(t){return"string"==typeof t?{id:t,x:0,y:0}:t}function aE(t,n){return"number"==typeof n?t[n]:n}const lE={dagre:rE,dagreCluster:class Q7{constructor(){this.defaultSettings={orientation:Ca.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),xa.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const s=this.dagreGraph._nodes[i.id];return Object.assign(Object.assign({},i),{position:{x:s.x,y:s.y},dimension:{width:s.width,height:s.height}})};return n.clusters=(n.clusters||[]).map(e),n.nodes=n.nodes.map(e),n}updateEdge(n,e){const i=n.nodes.find(l=>l.id===e.source),s=n.nodes.find(l=>l.id===e.target),r=i.position.y<=s.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-r*(i.dimension.height/2)},{x:s.position.x,y:s.position.y+r*(s.dimension.height/2)}],n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xa.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=n.nodes.map(i=>{const s=Object.assign({},i);return s.width=i.dimension.width,s.height=i.dimension.height,s.x=i.position.x,s.y=i.position.y,s}),this.dagreClusters=n.clusters||[],this.dagreEdges=n.edges.map(i=>{const s=Object.assign({},i);return s.id||(s.id=nr()),s});for(const i of this.dagreNodes)this.dagreGraph.setNode(i.id,i);for(const i of this.dagreClusters)this.dagreGraph.setNode(i.id,i),i.childNodeIds.forEach(s=>{this.dagreGraph.setParent(s,i.id)});for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreNodesOnly:class q7{constructor(){this.defaultSettings={orientation:Ca.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),xa.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],s=n.nodes.find(r=>r.id===i.id);s.position={x:i.x,y:i.y},s.dimension={width:i.width,height:i.height}}for(const e of n.edges)this.updateEdge(n,e);return n}updateEdge(n,e){const i=n.nodes.find(I=>I.id===e.source),s=n.nodes.find(I=>I.id===e.target),r="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",o="y"===r?"x":"y",a="y"===r?"height":"width",l=i.position[r]<=s.position[r]?-1:1,c={[o]:i.position[o],[r]:i.position[r]-l*(i.dimension[a]/2)},h={[o]:s.position[o],[r]:s.position[r]+l*(s.dimension[a]/2)},b=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[c,{[o]:c[o],[r]:c[r]-l*b},{[o]:h[o],[r]:h[r]+l*b},h];const M=n.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return M&&(M.points=e.points),n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xa.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=n.nodes.map(i=>{const s=Object.assign({},i);return s.width=i.dimension.width,s.height=i.dimension.height,s.x=i.position.x,s.y=i.position.y,s}),this.dagreEdges=n.edges.map(i=>{const s=Object.assign({},i);return s.id||(s.id=nr()),s});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},d3ForceDirected:class eU{constructor(){this.defaultSettings={force:tE().force("charge",nE().strength(-150)).force("collide",ZD(5)),forceLink:eE().id(n=>n.id).distance(()=>100)},this.settings={},this.outputGraph$=new $}run(n){return this.inputGraph=n,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign({},e))],edges:[...this.inputGraph.edges.map(e=>Object.assign({},e))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(n,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.nodes(this.d3Graph.nodes).force("link",i.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(n){return this.outputGraph.nodes=this.d3Graph.nodes.map(e=>Object.assign(Object.assign({},e),{id:e.id||nr(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(e=>Object.assign(Object.assign({},e),{source:Ta(e.source).id,target:Ta(e.target).id,points:[{x:Ta(e.source).x,y:Ta(e.source).y},{x:Ta(e.target).x,y:Ta(e.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(n,e){this.settings.force.alphaTarget(.3).restart();const i=this.d3Graph.nodes.find(s=>s.id===n.id);!i||(this.draggingStart={x:e.x-i.x,y:e.y-i.y},i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDrag(n,e){if(!n)return;const i=this.d3Graph.nodes.find(s=>s.id===n.id);!i||(i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDragEnd(n,e){if(!n)return;const i=this.d3Graph.nodes.find(s=>s.id===n.id);!i||(this.settings.force.alphaTarget(0),i.fx=void 0,i.fy=void 0)}},colaForceDirected:class tU{constructor(){this.defaultSettings={force:(0,y7.d3adaptor)(Object.assign(Object.assign(Object.assign({},L),E),u)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new $}run(n){return this.inputGraph=n,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign(Object.assign({},e),{width:e.dimension?e.dimension.width:20,height:e.dimension?e.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(e=>({padding:5,groups:e.childNodeIds.map(i=>this.inputGraph.clusters.findIndex(s=>s.id===i)).filter(i=>i>=0),leaves:e.childNodeIds.map(i=>this.inputGraph.nodes.findIndex(s=>s.id===i)).filter(i=>i>=0)}))],links:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(r=>e.source===r.id),s=this.inputGraph.nodes.findIndex(r=>e.target===r.id);if(-1!==i&&-1!==s)return Object.assign(Object.assign({},e),{source:i,target:s})}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(r=>e.source===r.id),s=this.inputGraph.nodes.findIndex(r=>e.target===r.id);if(!(i>=0&&s>=0))return e}).filter(e=>!!e)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(n,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(n){return this.outputGraph.nodes=n.nodes.map(e=>Object.assign(Object.assign({},e),{id:e.id||nr(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=n.links.map(e=>{const i=aE(n.nodes,e.source),s=aE(n.nodes,e.target);return Object.assign(Object.assign({},e),{source:i.id,target:s.id,points:[i.bounds.rayIntersection(s.bounds.cx(),s.bounds.cy()),s.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})}).concat(n.groupLinks.map(e=>{const i=n.nodes.find(a=>a.id===e.source),s=n.nodes.find(a=>a.id===e.target),r=i||n.groups.find(a=>a.id===e.source),o=s||n.groups.find(a=>a.id===e.target);return Object.assign(Object.assign({},e),{source:r.id,target:o.id,points:[r.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy()),o.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy())]})})),this.outputGraph.clusters=n.groups.map((e,i)=>Object.assign(Object.assign({},this.inputGraph.clusters[i]),{dimension:{width:e.bounds?e.bounds.width():20,height:e.bounds?e.bounds.height():20},position:{x:e.bounds?e.bounds.x+e.bounds.width()/2:0,y:e.bounds?e.bounds.y+e.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(n,e){const i=this.outputGraph.nodes.findIndex(r=>r.id===n.id),s=this.internalGraph.nodes[i];!s||(this.draggingStart={x:s.x-e.x,y:s.y-e.y},s.fixed=1,this.settings.force.start())}onDrag(n,e){if(!n)return;const i=this.outputGraph.nodes.findIndex(r=>r.id===n.id),s=this.internalGraph.nodes[i];!s||(s.x=this.draggingStart.x+e.x,s.y=this.draggingStart.y+e.y)}onDragEnd(n,e){if(!n)return;const i=this.outputGraph.nodes.findIndex(r=>r.id===n.id),s=this.internalGraph.nodes[i];!s||(s.fixed=0)}}};let cE=(()=>{class t{getLayout(e){if(lE[e])return new lE[e];throw new Error(`Unknown layout type '${e}'`)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),nU=(()=>{class t{constructor(){this.mouseWheelUp=new _e,this.mouseWheelDown=new _e}onMouseWheelChrome(e){this.mouseWheelFunc(e)}onMouseWheelFirefox(e){this.mouseWheelFunc(e)}onWheel(e){this.mouseWheelFunc(e)}onMouseWheelIE(e){this.mouseWheelFunc(e)}mouseWheelFunc(e){window.event&&(e=window.event);const i=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail||e.deltaY||e.deltaX)),r=e.wheelDelta?i<0:i>0;(e.wheelDelta?i>0:i<0)?this.mouseWheelUp.emit(e):r&&this.mouseWheelDown.emit(e),e.returnValue=!1,e.preventDefault&&e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=bn({type:t,selectors:[["","mouseWheel",""]],hostBindings:function(e,i){1&e&&ye("mousewheel",function(r){return i.onMouseWheelChrome(r)})("DOMMouseScroll",function(r){return i.onMouseWheelFirefox(r)})("wheel",function(r){return i.onWheel(r)})("onmousewheel",function(r){return i.onMouseWheelIE(r)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),t})(),uE=(()=>{class t{constructor(e,i,s,r){this.el=e,this.zone=i,this.cd=s,this.layoutService=r,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=ba.Both,this.enableZoom=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.autoZoom=!1,this.panOnZoom=!0,this.animate=!1,this.autoCenter=!1,this.enableTrackpadSupport=!1,this.showMiniMap=!1,this.miniMapMaxWidth=100,this.miniMapPosition=wa.UpperRight,this.scheme="cool",this.animations=!0,this.select=new _e,this.activate=new _e,this.deactivate=new _e,this.zoomChange=new _e,this.clickHandler=new _e,this.isMouseMoveCalled=!1,this.graphSubscription=new m,this.subscriptions=[],this.isPanning=!1,this.isDragging=!1,this.initialized=!1,this.graphDims={width:0,height:0},this._oldLinks=[],this.oldNodes=new Set,this.oldClusters=new Set,this.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},this._touchLastX=null,this._touchLastY=null,this.minimapScaleCoefficient=3,this.minimapOffsetX=0,this.minimapOffsetY=0,this.isMinimapPanning=!1,this.groupResultsBy=o=>o.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(e){this.zoomTo(Number(e))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(e){this.panTo(Number(e),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(e){this.panTo(null,Number(e))}ngOnInit(){this.update$&&this.subscriptions.push(this.update$.subscribe(()=>{this.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(()=>{this.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(()=>{this.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(e=>{this.panToNodeId(e)})),this.minimapClipPathId=`minimapClip${nr()}`}ngOnChanges(e){this.basicUpdate();const{layoutSettings:s}=e;this.setLayout(this.layout),s&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(e){this.initialized=!1,e||(e="dagre"),"string"==typeof e&&(this.layout=this.layoutService.getLayout(e),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(e){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=e)}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy());for(const e of this.subscriptions)e.unsubscribe();this.subscriptions=null}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new K7(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=g9.beta(1)),this.zone.run(()=>{this.dims=function Z7({width:t,height:n}){let e=t,i=n;return e=Math.max(0,e),i=Math.max(0,i),{width:Math.floor(e),height:Math.floor(i)}}({width:this.width,height:this.height}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new m;const e=i=>(i.meta||(i.meta={}),i.id||(i.id=nr()),i.dimension?i.meta.forceDimensions=void 0===i.meta.forceDimensions||i.meta.forceDimensions:(i.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},i.meta.forceDimensions=!1),i.position={x:0,y:0},i.data=i.data?i.data:{},i);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(e):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(e):[],edges:this.links.length>0?[...this.links].map(i=>(i.id||(i.id=nr()),i)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const e=this.layout.run(this.graph),i=e instanceof te?e:na(e);this.graphSubscription.add(i.subscribe(s=>{this.graph=s,this.tick()})),0!==this.graph.nodes.length&&i.pipe(function A9(t,n){const e=arguments.length>=2;return i=>i.pipe(t?GD((s,r)=>t(s,r,i)):H,Vh(1),e?b9(n):T9(()=>new jD))}()).subscribe(()=>this.applyNodeDimensions())}tick(){const e=new Set;this.graph.nodes.map(r=>{r.transform=`translate(${r.position.x-r.dimension.width/2||0}, ${r.position.y-r.dimension.height/2||0})`,r.data||(r.data={}),r.data.color=this.colors.getColor(this.groupResultsBy(r)),e.add(r.id)});const i=new Set;(this.graph.clusters||[]).map(r=>{r.transform=`translate(${r.position.x-r.dimension.width/2||0}, ${r.position.y-r.dimension.height/2||0})`,r.data||(r.data={}),r.data.color=this.colors.getColor(this.groupResultsBy(r)),i.add(r.id)}),setTimeout(()=>{this.oldNodes=e,this.oldClusters=i},500);const s=[];for(const r in this.graph.edgeLabels){const o=this.graph.edgeLabels[r],a=r.replace(/[^\w-]*/g,""),l=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let c=this._oldLinks.find(l?B=>`${B.source}${B.target}${B.id}`===a:B=>`${B.source}${B.target}`===a);const h=this.graph.edges.find(l?B=>`${B.source}${B.target}${B.id}`===a:B=>`${B.source}${B.target}`===a);c?c.data&&h&&h.data&&JSON.stringify(c.data)!==JSON.stringify(h.data)&&(c.data=h.data):c=h||o,c.oldLine=c.line;const b=o.points,T=this.generateLine(b),M=Object.assign({},c);M.line=T,M.points=b,this.updateMidpointOnEdge(M,b);const I=b[Math.floor(b.length/2)];I&&(M.textTransform=`translate(${I.x||0},${I.y||0})`),M.textAngle=0,M.oldLine||(M.oldLine=M.line),this.calcDominantBaseline(M),s.push(M)}this.graph.edges=s,this.graph.edges&&(this._oldLinks=this.graph.edges.map(r=>{const o=Object.assign({},r);return o.oldLine=r.line,o})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case wa.UpperLeft:return"";case wa.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let e=1/0,i=-1/0,s=1/0,r=-1/0;for(let o=0;o<this.graph.nodes.length;o++){const a=this.graph.nodes[o];e=a.position.x<e?a.position.x:e,s=a.position.y<s?a.position.y:s,i=a.position.x+a.dimension.width>i?a.position.x+a.dimension.width:i,r=a.position.y+a.dimension.height>r?a.position.y+a.dimension.height:r}e-=100,s-=100,i+=100,r+=100,this.graphDims.width=i-e,this.graphDims.height=r-s,this.minimapOffsetX=e,this.minimapOffsetY=s}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(e=>{const i=e.nativeElement,s=this.graph.nodes.find(o=>o.id===i.id);if(!s)return;let r;try{if(r=i.getBBox(),!r.width||!r.height)return}catch(o){return}if(s.dimension.height=this.nodeHeight?s.dimension.height&&s.meta.forceDimensions?s.dimension.height:this.nodeHeight:s.dimension.height&&s.meta.forceDimensions?s.dimension.height:r.height,this.nodeMaxHeight&&(s.dimension.height=Math.max(s.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(s.dimension.height=Math.min(s.dimension.height,this.nodeMinHeight)),this.nodeWidth)s.dimension.width=s.dimension.width&&s.meta.forceDimensions?s.dimension.width:this.nodeWidth;else if(i.getElementsByTagName("text").length){let o;try{for(const a of i.getElementsByTagName("text")){const l=a.getBBox();o?(l.width>o.width&&(o.width=l.width),l.height>o.height&&(o.height=l.height)):o=l}}catch(a){return}s.dimension.width=s.dimension.width&&s.meta.forceDimensions?s.dimension.width:o.width+20}else s.dimension.width=s.dimension.width&&s.meta.forceDimensions?s.dimension.width:r.width;this.nodeMaxWidth&&(s.dimension.width=Math.max(s.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(s.dimension.width=Math.min(s.dimension.width,this.nodeMinWidth))})}redrawLines(e=this.animate){this.linkElements.map(i=>{const s=this.graph.edges.find(r=>r.id===i.nativeElement.id);s&&(Sn(i.nativeElement).select(".line").attr("d",s.oldLine).transition().ease(zD).duration(e?500:0).attr("d",s.line),Sn(this.el.nativeElement).select(`#${s.id}`).attr("d",s.oldTextPath).transition().ease(zD).duration(e?500:0).attr("d",s.textPath),this.updateMidpointOnEdge(s,s.points))})}calcDominantBaseline(e){const i=e.points[0],s=e.points[e.points.length-1];e.oldTextPath=e.textPath,s.x<i.x?(e.dominantBaseline="text-before-edge",e.textPath=this.generateLine([...e.points].reverse())):(e.dominantBaseline="text-after-edge",e.textPath=e.line)}generateLine(e){return function Xl(){var t=z1,n=j1,e=$t(!0),i=null,s=io,r=null;function o(a){var l,h,T,c=a.length,b=!1;for(null==i&&(r=s(T=Bm())),l=0;l<=c;++l)!(l<c&&e(h=a[l],l,a))===b&&((b=!b)?r.lineStart():r.lineEnd()),b&&r.point(+t(h,l,a),+n(h,l,a));if(T)return r=null,T+""||null}return o.x=function(a){return arguments.length?(t="function"==typeof a?a:$t(+a),o):t},o.y=function(a){return arguments.length?(n="function"==typeof a?a:$t(+a),o):n},o.defined=function(a){return arguments.length?(e="function"==typeof a?a:$t(!!a),o):e},o.curve=function(a){return arguments.length?(s=a,null!=i&&(r=s(i)),o):s},o.context=function(a){return arguments.length?(null==a?i=r=null:r=s(i=a),o):i},o}().x(s=>s.x).y(s=>s.y).curve(this.curve)(e)}onZoom(e,i){if(this.enableTrackpadSupport&&!e.ctrlKey)return void this.pan(-1*e.deltaX,-1*e.deltaY);const s=1+("in"===i?this.zoomSpeed:-this.zoomSpeed),r=this.zoomLevel*s;if(!(r<=this.minZoomLevel||r>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&e){const o=e.clientX,a=e.clientY,l=this.el.nativeElement.querySelector("svg"),c=l.querySelector("g.chart"),h=l.createSVGPoint();h.x=o,h.y=a;const b=h.matrixTransform(c.getScreenCTM().inverse());this.pan(b.x,b.y,!0),this.zoom(s),this.pan(-b.x,-b.y,!0)}else this.zoom(s)}pan(e,i,s=!1){const r=s?1:this.zoomLevel;this.transformationMatrix=nc(this.transformationMatrix,WD(e/r,i/r)),this.updateTransform()}panTo(e,i){null==e||isNaN(e)||null==i||isNaN(i)||(this.transformationMatrix=nc(this.transformationMatrix,WD((-this.panOffsetX-e*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-i*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(e){this.transformationMatrix=nc(this.transformationMatrix,function R9(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return N9(n)&&(n=t),{a:t,c:0,e:0,b:0,d:n,f:0}}(e,e)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(e){this.transformationMatrix.a=isNaN(e)?this.transformationMatrix.a:Number(e),this.transformationMatrix.d=isNaN(e)?this.transformationMatrix.d:Number(e),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(e){if(!this.draggingEnabled)return;const i=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(i,e),i.position.x+=e.movementX/this.zoomLevel,i.position.y+=e.movementY/this.zoomLevel,i.transform=`translate(${i.position.x-i.dimension.width/2}, ${i.position.y-i.dimension.height/2})`;for(const o of this.graph.edges)if((o.target===i.id||o.source===i.id||o.target.id===i.id||o.source.id===i.id)&&this.layout&&"string"!=typeof this.layout){const a=this.layout.updateEdge(this.graph,o),l=a instanceof te?a:na(a);this.graphSubscription.add(l.subscribe(c=>{this.graph=c,this.redrawEdge(o)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(e){const i=this.generateLine(e.points);this.calcDominantBaseline(e),e.oldLine=e.line,e.line=i}updateTransform(){this.transform=function V9(t){return function UD(t){return"matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}(t)}(function j9(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*n)/n,b:Math.round(t.b*n)/n,c:Math.round(t.c*n)/n,d:Math.round(t.d*n)/n,e:Math.round(t.e*n)/n,f:Math.round(t.f*n)/n}}(this.transformationMatrix,100))}onClick(e){this.select.emit(e)}onActivate(e){this.activeEntries.indexOf(e)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.indexOf(e);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(e=>this.groupResultsBy(e)).reduce((e,i)=>-1!==e.indexOf(i)?e:e.concat([i]),[]).sort()}trackLinkBy(e,i){return i.id}trackNodeBy(e,i){return i.id}setColors(){this.colors=new X7(this.scheme,this.seriesDomain,this.customColors)}onMouseMove(e){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,e):this.isDragging&&this.draggingEnabled&&this.onDrag(e)}onMouseDown(e){this.isMouseMoveCalled=!1}graphClick(e){this.isMouseMoveCalled||this.clickHandler.emit(e)}onTouchStart(e){this._touchLastX=e.changedTouches[0].clientX,this._touchLastY=e.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(e){if(this.isPanning&&this.panningEnabled){const i=e.changedTouches[0].clientX,s=e.changedTouches[0].clientY,r=i-this._touchLastX,o=s-this._touchLastY;this._touchLastX=i,this._touchLastY=s,this.pan(r,o)}}onTouchEnd(e){this.isPanning=!1}onMouseUp(e){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,e)}onNodeMouseDown(e,i){!this.draggingEnabled||(this.isDragging=!0,this.draggingNode=i,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(i,e))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(e){this.panTo((e.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(e.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let s=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);s<this.minZoomLevel&&(s=this.minZoomLevel),s>this.maxZoomLevel&&(s=this.maxZoomLevel),s!==this.zoomLevel&&(this.zoomLevel=s,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(e){const i=this.graph.nodes.find(s=>s.id===e);!i||this.panTo(i.position.x,i.position.y)}panWithConstraints(e,i){let s=i.movementX,r=i.movementY;switch(this.isMinimapPanning&&(s=-this.minimapScaleCoefficient*s*this.zoomLevel,r=-this.minimapScaleCoefficient*r*this.zoomLevel),e){case ba.Horizontal:this.pan(s,0);break;case ba.Vertical:this.pan(0,r);break;default:this.pan(s,r)}}updateMidpointOnEdge(e,i){if(e&&i)if(i.length%2==1)e.midPoint=i[Math.floor(i.length/2)];else{const s=i[i.length/2],r=i[i.length/2-1];e.midPoint={x:(s.x+r.x)/2,y:(s.y+r.y)/2}}}basicUpdate(){if(this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const s=this.el.nativeElement;if(null!==s.parentNode){const r=s.parentNode.getBoundingClientRect();e=r.width,i=r.height}return e&&i?{width:e,height:i}:null}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=th(window,"resize").pipe(Hg(200)).subscribe(s=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}}return t.\u0275fac=function(e){return new(e||t)(Le(Gt),Le(Bt),Le(As),Le(cE))},t.\u0275cmp=$e({type:t,selectors:[["ngx-graph"]],contentQueries:function(e,i,s){if(1&e&&(Rt(s,b7,5),Rt(s,w7,5),Rt(s,C7,5),Rt(s,T7,5),Rt(s,D7,5)),2&e){let r;ht(r=dt())&&(i.linkTemplate=r.first),ht(r=dt())&&(i.nodeTemplate=r.first),ht(r=dt())&&(i.clusterTemplate=r.first),ht(r=dt())&&(i.defsTemplate=r.first),ht(r=dt())&&(i.miniMapNodeTemplate=r.first)}},viewQuery:function(e,i){if(1&e&&(vi(E7,5),vi(S7,5)),2&e){let s;ht(s=dt())&&(i.nodeElements=s),ht(s=dt())&&(i.linkElements=s)}},hostBindings:function(e,i){1&e&&ye("mousemove",function(r){return i.onMouseMove(r)},!1,ko)("mousedown",function(r){return i.onMouseDown(r)},!1,ko)("click",function(r){return i.graphClick(r)},!1,ko)("touchmove",function(r){return i.onTouchMove(r)},!1,ko)("mouseup",function(r){return i.onMouseUp(r)},!1,ko)},inputs:{nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",curve:"curve",draggingEnabled:"draggingEnabled",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layout:"layout",layoutSettings:"layoutSettings",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapMaxHeight:"miniMapMaxHeight",miniMapPosition:"miniMapPosition",view:"view",scheme:"scheme",customColors:"customColors",animations:"animations",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[ut],ngContentSelectors:U7,decls:6,vars:11,consts:[["mouseWheel","",1,"ngx-charts-outer",3,"mouseWheelUp","mouseWheelDown"],[1,"ngx-charts"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"id","click"],["clusterElement",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"link-group",3,"id"],["linkElement",""],["class","edge",4,"ngIf"],[1,"edge"],[1,"node-group",3,"id","click","mousedown"],["nodeElement",""],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(e,i){1&e&&(function qc(t){const n=Se()[16][6];if(!n.projection){const i=n.projection=za(t?t.length:1,null),s=i.slice();let r=n.child;for(;null!==r;){const o=t?$L(r,t):0;null!==o&&(s[o]?s[o].projectionNext=r:i[o]=r,s[o]=r),r=r.next}}}(),q(0,"div",0),ye("mouseWheelUp",function(r){return i.onZoom(r,"in")})("mouseWheelDown",function(r){return i.onZoom(r,"out")}),ae(),q(1,"svg",1),ue(2,V7,12,12,"g",2),q(3,"clipPath"),Ie(4,"rect"),re(),ue(5,$7,6,15,"g",3),re()()),2&e&&(vt("width",i.width,"px"),j("@animationState","active")("@.disabled",!i.animations),G(1),me("width",i.width)("height",i.height),G(1),j("ngIf",i.initialized&&i.graph),G(1),me("id",i.minimapClipPathId),G(1),me("width",i.graphDims.width/i.minimapScaleCoefficient)("height",i.graphDims.height/i.minimapScaleCoefficient),G(1),j("ngIf",i.showMiniMap))},directives:[nU,yt,Kp,Mt],styles:[".minimap .minimap-background{fill:#0000001a}.minimap .minimap-drag{fill:#0003;stroke:#fff;stroke-width:1px;stroke-dasharray:2px;stroke-dashoffset:2px;cursor:pointer}.minimap .minimap-drag.panning{fill:#0000004d}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-webkit-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:#0000;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}\n"],encapsulation:2,data:{animation:[zn("animationState",[En(":enter",[lt({opacity:0}),Dn("500ms 100ms",lt({opacity:1}))])])]},changeDetection:0}),Ng([Y7(500)],t.prototype,"updateMinimap",null),t})(),iU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({providers:[cE],imports:[[_r]]}),t})(),sU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[_r],iU]}),t})();var hE=Zn(2289);class rU{constructor(n,e,i,s,r){this.element=n,this.newWidth=e,this.newHeight=i,this.oldWidth=s,this.oldHeight=r}}let oU=(()=>{class t{constructor(e){this.element=e,this.resized=new _e}ngOnInit(){hE.ResizeSensor&&(this.resizeSensor=new hE.ResizeSensor(this.element.nativeElement,()=>this.onResized()))}ngOnDestroy(){this.resizeSensor&&this.resizeSensor.detach()}onResized(){const e=this.element.nativeElement.clientWidth,i=this.element.nativeElement.clientHeight;if(e===this.oldWidth&&i===this.oldHeight)return;const s=new rU(this.element,e,i,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.emit(s)}}return t.\u0275fac=function(e){return new(e||t)(Le(Gt))},t.\u0275dir=bn({type:t,selectors:[["","resized",""]],outputs:{resized:"resized"}}),t})(),aU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[]]}),t})();function dE(t,n=0){return function cU(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function jh(t){return Array.isArray(t)?t:[t]}function kn(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Gh(t){return t instanceof Gt?t.nativeElement:t}new class hU extends hs{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,s=-1,r=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++s<r&&(n=e.shift()));if(this.active=!1,i){for(;++s<r&&(n=e.shift());)n.unsubscribe();throw i}}}(class uU extends Ou{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let fU=1;const pU=Promise.resolve(),$h={};function fE(t){return t in $h&&(delete $h[t],!0)}const pE={setImmediate(t){const n=fU++;return $h[n]=!0,pU.then(()=>fE(n)&&t()),n},clearImmediate(t){fE(t)}};new class mU extends hs{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,s=-1,r=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++s<r&&(n=e.shift()));if(this.active=!1,i){for(;++s<r&&(n=e.shift());)n.unsubscribe();throw i}}}(class gU extends Ou{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=pE.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(pE.clearImmediate(e),n.scheduled=void 0)}});class yU{constructor(n){this.durationSelector=n}call(n,e){return e.subscribe(new xU(n,this.durationSelector))}}class xU extends Ct{constructor(n,e){super(n),this.durationSelector=e,this.hasValue=!1}_next(n){if(this.value=n,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:s}=this;e=s(n)}catch(s){return this.destination.error(s)}const i=Ji(e,new wt(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:n,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(n))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function gE(t){return!x(t)&&t-parseFloat(t)+1>=0}function wU(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function mE(t,n=Vg){return function _U(t){return function(e){return e.lift(new yU(t))}}(()=>function bU(t=0,n,e){let i=-1;return gE(n)?i=Number(n)<1?1:Number(n):oe(n)&&(e=n),oe(e)||(e=Vg),new te(s=>{const r=gE(t)?t:+t-e.now();return e.schedule(wU,r,{index:0,period:i,subscriber:s})})}(t,n))}let rv;try{rv="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){rv=!1}let sc,lo,ov,Os=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function m2(t){return t===pw}(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&&!rv)&&"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 t.\u0275fac=function(e){return new(e||t)(Ee(Tp))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({}),t})();function Uh(t){return function CU(){if(null==sc&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>sc=!0}))}finally{sc=sc||!1}return sc}()?t:!!t.capture}function TU(){if(null==lo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return lo=!1,lo;if("scrollBehavior"in document.documentElement.style)lo=!0;else{const t=Element.prototype.scrollTo;lo=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return lo}function co(t){return t.composedPath?t.composedPath()[0]:t.target}function av(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const SU=new et("cdk-dir-doc",{providedIn:"root",factory:function AU(){return Rd(Nt)}}),MU=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let yE=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new _e,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function kU(t){const n=(null==t?void 0:t.toLowerCase())||"";return"auto"===n&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?MU.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(Ee(SU,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),rc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({}),t})(),xE=(()=>{class t{constructor(e,i,s){this._ngZone=e,this._platform=i,this._scrolled=new $,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new te(i=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(mE(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):na()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const s=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(GD(r=>!r||s.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((s,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let s=Gh(i),r=e.getElementRef().nativeElement;do{if(s==r)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>th(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Ee(Bt),Ee(Os),Ee(Nt,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bE=(()=>{class t{constructor(e,i,s){this._platform=e,this._change=new $,this._changeListener=r=>{this._change.next(r)},this._document=s,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+i,height:s,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),s=e.documentElement,r=s.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||s.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(mE(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(Ee(Os),Ee(Bt),Ee(Nt,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({}),t})(),wE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[rc,vE,lv],rc,lv]}),t})();function ms(t){return n=>n.lift(new OU(t))}class OU{constructor(n){this.notifier=n}call(n,e){const i=new FU(n),s=Ji(this.notifier,new wt(i));return s&&!i.seenValue?(i.add(s),e.subscribe(i)):i}}class FU extends Ct{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const CE=TU();class PU{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=kn(-this._previousScrollPosition.left),n.style.top=kn(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,s=this._document.body.style,r=i.scrollBehavior||"",o=s.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),CE&&(i.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),CE&&(i.scrollBehavior=r,s.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class NU{constructor(n,e,i,s){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class TE{enable(){}disable(){}attach(){}}function cv(t,n){return n.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function DE(t,n){return n.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class RU{constructor(n,e,i,s){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=s,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:s}=this._viewportRuler.getViewportSize();cv(e,[{width:i,height:s,bottom:s,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let BU=(()=>{class t{constructor(e,i,s,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=s,this.noop=()=>new TE,this.close=o=>new NU(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new PU(this._viewportRuler,this._document),this.reposition=o=>new RU(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=r}}return t.\u0275fac=function(e){return new(e||t)(Ee(xE),Ee(bE),Ee(Bt),Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class VU{constructor(n){if(this.scrollStrategy=new TE,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class HU{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}class zU{constructor(n,e,i,s,r,o,a,l,c){this._portalOutlet=n,this._host=e,this._pane=i,this._config=s,this._ngZone=r,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new $,this._attachments=new $,this._detachments=new $,this._locationChanges=m.EMPTY,this._backdropClickHandler=h=>this._backdropClick.next(h),this._keydownEvents=new $,this._outsidePointerEvents=new $,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){let e=this._portalOutlet.attach(n);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Vh(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){var n;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(n=this._host)||void 0===n||n.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=Object.assign(Object.assign({},this._config),n),this._updateElementSize()}setDirection(n){this._config=Object.assign(Object.assign({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=kn(this._config.width),n.height=kn(this._config.height),n.minWidth=kn(this._config.minWidth),n.minHeight=kn(this._config.minHeight),n.maxWidth=kn(this._config.maxWidth),n.maxHeight=kn(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(!n)return;let e;const i=()=>{n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",i),this._disposeBackdrop(n)),this._config.backdropClass&&this._toggleClasses(n,this._config.backdropClass,!1),clearTimeout(e)};n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",i)}),n.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(n,e,i){const s=jh(e||[]).filter(r=>!!r);s.length&&(i?n.classList.add(...s):n.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(ms(Aa(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.remove(),this._backdropElement===n&&(this._backdropElement=null))}}let EE=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||av()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r<s.length;r++)s[r].remove()}const i=this._document.createElement("div");i.classList.add(e),av()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt),Ee(Os))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const SE="cdk-overlay-connected-position-bounding-box",jU=/([A-Za-z%]+)$/;class GU{constructor(n,e,i,s,r){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new $,this._resizeSubscription=m.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}get positions(){return this._preferredPositions}attach(n){this._validatePositions(),n.hostElement.classList.add(SE),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,s=this._containerRect,r=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(n,s,a),c=this._getOverlayPoint(l,e,a),h=this._getOverlayFit(c,e,i,a);if(h.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(h,c,i)?r.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<h.visibleArea)&&(o={overlayFit:h,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}if(r.length){let a=null,l=-1;for(const c of r){const h=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);h>l&&(l=h,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&uo(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(SE),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let s,r;if("center"==i.originX)s=n.left+n.width/2;else{const o=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;s="start"==i.originX?o:a}return e.left<0&&(s-=e.left),r="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(r-=e.top),{x:s,y:r}}_getOverlayPoint(n,e,i){let s,r;return s="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+s,y:n.y+r}}_getOverlayFit(n,e,i,s){const r=ME(e);let{x:o,y:a}=n,l=this._getOffset(s,"x"),c=this._getOffset(s,"y");l&&(o+=l),c&&(a+=c);let T=0-a,M=a+r.height-i.height,I=this._subtractOverflows(r.width,0-o,o+r.width-i.width),B=this._subtractOverflows(r.height,T,M),P=I*B;return{visibleArea:P,isCompletelyWithinViewport:r.width*r.height===P,fitsInViewportVertically:B===r.height,fitsInViewportHorizontally:I==r.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const s=i.bottom-e.y,r=i.right-e.x,o=AE(this._overlayRef.getConfig().minHeight),a=AE(this._overlayRef.getConfig().minWidth),c=n.fitsInViewportHorizontally||null!=a&&a<=r;return(n.fitsInViewportVertically||null!=o&&o<=s)&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const s=ME(e),r=this._viewportRect,o=Math.max(n.x+s.width-r.width,0),a=Math.max(n.y+s.height-r.height,0),l=Math.max(r.top-i.top-n.y,0),c=Math.max(r.left-i.left-n.x,0);let h=0,b=0;return h=s.width<=r.width?c||-o:n.x<this._viewportMargin?r.left-i.left-n.x:0,b=s.height<=r.height?l||-a:n.y<this._viewportMargin?r.top-i.top-n.y:0,this._previousPushAmount={x:h,y:b},{x:n.x+h,y:n.y+b}}_applyPosition(n,e){if(this._setTransformOrigin(n),this._setOverlayElementStyles(e,n),this._setBoundingBoxStyles(e,n),n.panelClass&&this._addPanelClasses(n.panelClass),this._lastPosition=n,this._positionChanges.observers.length){const i=this._getScrollVisibility(),s=new HU(n,i);this._positionChanges.next(s)}this._isInitialRender=!1}_setTransformOrigin(n){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,s=n.overlayY;i="center"===n.overlayX?"center":this._isRtl()?"start"===n.overlayX?"right":"left":"start"===n.overlayX?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${i} ${s}`}_calculateBoundingBoxRect(n,e){const i=this._viewportRect,s=this._isRtl();let r,o,a,h,b,T;if("top"===e.overlayY)o=n.y,r=i.height-o+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-n.y+2*this._viewportMargin,r=i.height-a+this._viewportMargin;else{const M=Math.min(i.bottom-n.y+i.top,n.y),I=this._lastBoundingBoxSize.height;r=2*M,o=n.y-M,r>I&&!this._isInitialRender&&!this._growAfterOpen&&(o=n.y-I/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)T=i.width-n.x+this._viewportMargin,h=n.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)b=n.x,h=i.right-n.x;else{const M=Math.min(i.right-n.x+i.left,n.x),I=this._lastBoundingBoxSize.width;h=2*M,b=n.x-M,h>I&&!this._isInitialRender&&!this._growAfterOpen&&(b=n.x-I/2)}return{top:o,left:b,bottom:a,right:T,width:h,height:r}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;s.height=kn(i.height),s.top=kn(i.top),s.bottom=kn(i.bottom),s.width=kn(i.width),s.left=kn(i.left),s.right=kn(i.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(s.maxHeight=kn(r)),o&&(s.maxWidth=kn(o))}this._lastBoundingBoxSize=i,uo(this._boundingBox.style,s)}_resetBoundingBoxStyles(){uo(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){uo(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},s=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(s){const h=this._viewportRuler.getViewportScrollPosition();uo(i,this._getExactOverlayY(e,n,h)),uo(i,this._getExactOverlayX(e,n,h))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(s?i.maxHeight=kn(o.maxHeight):r&&(i.maxHeight="")),o.maxWidth&&(s?i.maxWidth=kn(o.maxWidth):r&&(i.maxWidth="")),uo(this._pane.style,i)}_getExactOverlayY(n,e,i){let s={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"bottom"===n.overlayY?s.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":s.top=kn(r.y),s}_getExactOverlayX(n,e,i){let o,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),o=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===o?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=kn(r.x),s}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:DE(n,i),isOriginOutsideView:cv(n,i),isOverlayClipped:DE(e,i),isOverlayOutsideView:cv(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,s)=>i-Math.max(s,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&jh(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Gt)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function uo(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function AE(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(jU);return e&&"px"!==e?null:parseFloat(n)}return t||null}function ME(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const kE="cdk-global-overlay-wrapper";class $U{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(kE),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._rightOffset="",this._leftOffset=n,this._justifyContent="flex-start",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._leftOffset="",this._rightOffset=n,this._justifyContent="flex-end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._justifyContent="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:s,height:r,maxWidth:o,maxHeight:a}=i,l=!("100%"!==s&&"100vw"!==s||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);n.position=this._cssPosition,n.marginLeft=l?"0":this._leftOffset,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(kE),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let UU=(()=>{class t{constructor(e,i,s,r){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=r}global(){return new $U}flexibleConnectedTo(e){return new GU(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(Ee(bE),Ee(Nt),Ee(Os),Ee(EE))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),LE=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),WU=(()=>{class t extends LE{constructor(e){super(e),this._keydownListener=i=>{const s=this._attachedOverlays;for(let r=s.length-1;r>-1;r--)if(s[r]._keydownEvents.observers.length>0){s[r]._keydownEvents.next(i);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),YU=(()=>{class t extends LE{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=co(s)},this._clickListener=s=>{const r=co(s),o="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(r)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(s)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt),Ee(Os))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),XU=0,Yh=(()=>{class t{constructor(e,i,s,r,o,a,l,c,h,b,T){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=s,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=h,this._location=b,this._outsideClickDispatcher=T}create(e){const i=this._createHostElement(),s=this._createPaneElement(i),r=this._createPortalOutlet(s),o=new VU(e);return o.direction=o.direction||this._directionality.value,new zU(r,i,s,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+XU++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(vl)),new MC(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(Ee(BU),Ee(EE),Ee(mr),Ee(UU),Ee(WU),Ee(oi),Ee(Bt),Ee(Nt),Ee(yE),Ee(tw),Ee(YU))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();const QU={provide:new et("cdk-connected-overlay-scroll-strategy"),deps:[Yh],useFactory:function KU(t){return()=>t.scrollStrategies.reposition()}};let JU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({providers:[Yh,QU],imports:[[rc,AB,wE],wE]}),t})();class qU extends ${constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new N;return this._value}next(n){super.next(this._value=n)}}function IE(t){return n=>n.lift(new aW(t))}class aW{constructor(n){this.total=n}call(n,e){return e.subscribe(new lW(n,this.total))}}class lW extends k{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){++this.count>this.total&&this.destination.next(n)}}class uW{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new hW(n,this.compare,this.keySelector))}}class hW extends k{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:s}=this;e=s?s(n):n}catch(s){return this.destination.error(s)}let i=!1;if(this.hasKey)try{const{compare:s}=this;i=s(this.key,e)}catch(s){return this.destination.error(s)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}let dW=(()=>{class t{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),fW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({providers:[dW]}),t})();function Xh(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const FE="cdk-describedby-message-container",PE="cdk-describedby-message",Zh="cdk-describedby-host";let mW=0;const Fs=new Map;let Ni=null,vW=(()=>{class t{constructor(e){this._document=e}describe(e,i,s){if(!this._canBeDescribed(e,i))return;const r=uv(i,s);"string"!=typeof i?(NE(i),Fs.set(r,{messageElement:i,referenceCount:0})):Fs.has(r)||this._createMessageElement(i,s),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,s){if(!i||!this._isElementNode(e))return;const r=uv(i,s);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),"string"==typeof i){const o=Fs.get(r);o&&0===o.referenceCount&&this._deleteMessageElement(r)}Ni&&0===Ni.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Zh}]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(Zh);Ni&&this._deleteMessagesContainer(),Fs.clear()}_createMessageElement(e,i){const s=this._document.createElement("div");NE(s),s.textContent=e,i&&s.setAttribute("role",i),this._createMessagesContainer(),Ni.appendChild(s),Fs.set(uv(e,i),{messageElement:s,referenceCount:0})}_deleteMessageElement(e){var i;const s=Fs.get(e);null===(i=null==s?void 0:s.messageElement)||void 0===i||i.remove(),Fs.delete(e)}_createMessagesContainer(){if(!Ni){const e=this._document.getElementById(FE);null==e||e.remove(),Ni=this._document.createElement("div"),Ni.id=FE,Ni.style.visibility="hidden",Ni.classList.add("cdk-visually-hidden"),this._document.body.appendChild(Ni)}}_deleteMessagesContainer(){Ni&&(Ni.remove(),Ni=null)}_removeCdkDescribedByReferenceIds(e){const i=Xh(e,"aria-describedby").filter(s=>0!=s.indexOf(PE));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const s=Fs.get(i);(function pW(t,n,e){const i=Xh(t,n);i.some(s=>s.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))})(e,"aria-describedby",s.messageElement.id),e.setAttribute(Zh,""),s.referenceCount++}_removeMessageReference(e,i){const s=Fs.get(i);s.referenceCount--,function gW(t,n,e){const s=Xh(t,n).filter(r=>r!=e.trim());s.length?t.setAttribute(n,s.join(" ")):t.removeAttribute(n)}(e,"aria-describedby",s.messageElement.id),e.removeAttribute(Zh)}_isElementDescribedByMessage(e,i){const s=Xh(e,"aria-describedby"),r=Fs.get(i),o=r&&r.messageElement.id;return!!o&&-1!=s.indexOf(o)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const s=null==i?"":`${i}`.trim(),r=e.getAttribute("aria-label");return!(!s||r&&r.trim()===s)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function uv(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function NE(t){t.id||(t.id=`${PE}-${mW++}`)}const DW=new et("cdk-input-modality-detector-options"),EW={ignoreKeys:[18,17,224,91,16]},Ea=Uh({passive:!0,capture:!0});let SW=(()=>{class t{constructor(e,i,s,r){this._platform=e,this._mostRecentTarget=null,this._modality=new qU(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=co(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(function CW(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}(o)?"keyboard":"mouse"),this._mostRecentTarget=co(o))},this._onTouchstart=o=>{!function TW(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}(o)?(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=co(o)):this._modality.next("keyboard")},this._options=Object.assign(Object.assign({},EW),r),this.modalityDetected=this._modality.pipe(IE(1)),this.modalityChanged=this.modalityDetected.pipe(function cW(t,n){return e=>e.lift(new uW(t,n))}()),e.isBrowser&&i.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,Ea),s.addEventListener("mousedown",this._onMousedown,Ea),s.addEventListener("touchstart",this._onTouchstart,Ea)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ea),document.removeEventListener("mousedown",this._onMousedown,Ea),document.removeEventListener("touchstart",this._onTouchstart,Ea))}}return t.\u0275fac=function(e){return new(e||t)(Ee(Os),Ee(Bt),Ee(Nt),Ee(DW,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const MW=new et("cdk-focus-monitor-default-options"),Kh=Uh({passive:!0,capture:!0});let kW=(()=>{class t{constructor(e,i,s,r,o){this._ngZone=e,this._platform=i,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new $,this._rootNodeFocusAndBlurListener=a=>{const l=co(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let h=l;h;h=h.parentElement)c.call(this,a,h)},this._document=r,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,i=!1){const s=Gh(e);if(!this._platform.isBrowser||1!==s.nodeType)return na(null);const r=function EU(t){if(function DU(){if(null==ov){const t="undefined"!=typeof document?document.head:null;ov=!(!t||!t.createShadowRoot&&!t.attachShadow)}return ov}()){const n=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(s)||this._getDocument(),o=this._elementInfo.get(s);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new $,rootNode:r};return this._elementInfo.set(s,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Gh(e),s=this._elementInfo.get(i);s&&(s.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(s))}focusVia(e,i,s){const r=Gh(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const s=this._elementInfo.get(i),r=co(e);!s||!s.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),s)}_onBlur(e,i){const s=this._elementInfo.get(i);!s||s.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(s.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,s=this._rootNodeFocusListenerCount.get(i)||0;s||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Kh),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Kh)}),this._rootNodeFocusListenerCount.set(i,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ms(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const s=this._rootNodeFocusListenerCount.get(i);s>1?this._rootNodeFocusListenerCount.set(i,s-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Kh),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Kh),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,s){this._setClasses(e,i),this._emitOrigin(s.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((s,r)=>{(r===e||s.checkChildren&&r.contains(e))&&i.push([r,s])}),i}}return t.\u0275fac=function(e){return new(e||t)(Ee(Bt),Ee(Os),Ee(SW),Ee(Nt,8),Ee(MW,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const VE="cdk-high-contrast-black-on-white",HE="cdk-high-contrast-white-on-black",hv="cdk-high-contrast-active";let zE=(()=>{class t{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,s=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(hv),e.remove(VE),e.remove(HE),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(hv),e.add(VE)):2===i&&(e.add(hv),e.add(HE))}}}return t.\u0275fac=function(e){return new(e||t)(Ee(Os),Ee(Nt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),LW=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(Ee(zE))},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[vE,fW]]}),t})();const OW=new et("mat-sanity-checks",{providedIn:"root",factory:function IW(){return!0}});let $E=(()=>{class t{constructor(e,i,s){this._sanityChecks=i,this._document=s,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!av()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(Ee(zE),Ee(OW,8),Ee(Nt))},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[rc],rc]}),t})();class VW extends k{notifyNext(n,e,i,s,r){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class HW extends k{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function zW(t,n,e,i,s=new HW(t,e,i)){if(!s.closed)return n instanceof te?n.subscribe(s):Te(n)(s)}const XE={};class GW{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new $W(n,this.resultSelector))}}class $W extends VW{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(XE),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i<e;i++)this.add(zW(this,n[i],void 0,i))}}notifyComplete(n){0==(this.active-=1)&&this.destination.complete()}notifyNext(n,e,i){const s=this.values,o=this.toRespond?s[i]===XE?--this.toRespond:this.toRespond:0;s[i]=e,0===o&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(n){let e;try{e=this.resultSelector.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function fv(...t){return function UW(){return Ar(1)}()(na(...t))}function WW(...t){const n=t[t.length-1];return oe(n)?(t.pop(),e=>fv(t,e,n)):e=>fv(t,e)}const ZE=new Set;let Sa,YW=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ZW}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function XW(t){if(!ZE.has(t))try{Sa||(Sa=document.createElement("style"),Sa.setAttribute("type","text/css"),document.head.appendChild(Sa)),Sa.sheet&&(Sa.sheet.insertRule(`@media ${t} {body{ }}`,0),ZE.add(t))}catch(n){console.error(n)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(Ee(Os))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function ZW(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let KW=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new $}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return KE(jh(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){let r=function jW(...t){let n,e;return oe(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&x(t[0])&&(t=t[0]),rr(t,e).lift(new GW(n))}(KE(jh(e)).map(o=>this._registerQuery(o).observable));return r=fv(r.pipe(Vh(1)),r.pipe(IE(1),Hg(0))),r.pipe(de(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new te(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(WW(i),de(({matches:o})=>({query:e,matches:o})),ms(this._destroySubject)),mql:i};return this._queries.set(e,r),r}}return t.\u0275fac=function(e){return new(e||t)(Ee(YW),Ee(Bt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function KE(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}const JW={tooltipState:zn("state",[jw("initial, void, hidden",lt({opacity:0,transform:"scale(0)"})),jw("visible",lt({transform:"scale(1)"})),En("* => visible",Dn("200ms cubic-bezier(0, 0, 0.2, 1)",TR([lt({opacity:0,transform:"scale(0)",offset:0}),lt({opacity:.5,transform:"scale(0.99)",offset:.5}),lt({opacity:1,transform:"scale(1)",offset:1})]))),En("* => hidden",Dn("100ms cubic-bezier(0, 0, 0.2, 1)",lt({opacity:0})))])},QE="tooltip-panel",JE=Uh({passive:!0}),qE=new et("mat-tooltip-scroll-strategy"),nY={provide:qE,deps:[Yh],useFactory:function tY(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},iY=new et("mat-tooltip-default-options",{providedIn:"root",factory:function sY(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let rY=(()=>{class t{constructor(e,i,s,r,o,a,l,c,h,b,T,M){this._overlay=e,this._elementRef=i,this._scrollDispatcher=s,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=b,this._defaultOptions=T,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 $,this._scrollStrategy=h,this._document=M,T&&(T.position&&(this.position=T.position),T.touchGestures&&(this.touchGestures=T.touchGestures)),b.change.pipe(ms(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=function lU(t){return null!=t&&"false"!=`${t}`}(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=dE(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=dE(e)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ms(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,s])=>{e.removeEventListener(i,s,JE)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new Og(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(ms(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe(ms(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${QE}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ms(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ms(this._destroyed)).subscribe(()=>{var s;return null===(s=this._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(ms(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!function oW(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,s=this._getOrigin(),r=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},s.main),r.main)),this._addOffset(Object.assign(Object.assign({},s.fallback),r.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let s;"above"==i||"below"==i?s={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?s={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(s={originX:"end",originY:"center"});const{x:r,y:o}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:r,originY:o}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let s;"above"==i?s={overlayX:"center",overlayY:"bottom"}:"below"==i?s={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?s={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(s={overlayX:"start",overlayY:"center"});const{x:r,y:o}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:r,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Vh(1),ms(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:s,originY:r}=e;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===i&&"top"===r?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${QE}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,s])=>{this._elementRef.nativeElement.addEventListener(i,s,JE)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;i!==s&&!s.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,s=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===e||!i.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){!function wx(){throw new Error("invalid")}()},t.\u0275dir=bn({type:t,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),oY=(()=>{class t extends rY{constructor(e,i,s,r,o,a,l,c,h,b,T,M){super(e,i,s,r,o,a,l,c,h,b,T,M),this._tooltipComponent=lY}}return t.\u0275fac=function(e){return new(e||t)(Le(Yh),Le(Gt),Le(xE),Le(Gi),Le(Bt),Le(Os),Le(vW),Le(kW),Le(qE),Le(yE,8),Le(iY,8),Le(Nt))},t.\u0275dir=bn({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[qt]}),t})(),aY=(()=>{class t{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new $}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const i=e.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return t.\u0275fac=function(e){return new(e||t)(Le(As))},t.\u0275dir=bn({type:t}),t})(),lY=(()=>{class t extends aY{constructor(e,i){super(e),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(Le(As),Le(KW))},t.\u0275cmp=$e({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){2&e&&vt("zoom","visible"===i._visibility?1:null)},features:[qt],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,i){if(1&e&&(q(0,"div",0),ye("@state.start",function(){return i._animationStart()})("@state.done",function(r){return i._animationDone(r)}),function n0(t,n){const e=Lt();let i;const s=t+20;e.firstCreatePass?(i=function ZO(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[s]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(s,i.onDestroy)):i=e.data[s];const r=i.factory||(i.factory=Or(i.type)),o=ar(Le);try{const a=Ac(!1),l=r();return Ac(a),function xL(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Se(),s,l),l}finally{ar(o)}}(1,"async"),St(2),re()),2&e){let s;an("mat-tooltip-handset",null==(s=function s0(t,n,e){const i=t+20,s=Se(),r=function _o(t,n){return t[n]}(s,i);return function fl(t,n){return t[1].data[n].pure}(s,i)?Qb(s,ii(),n,r.transform,e,r):r.transform(e)}(1,5,i._isHandset))?null:s.matches),j("ngClass",i.tooltipClass)("@state",i._visibility),G(2),mi(i.message)}},directives:[hw],pipes:[xw],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:[JW.tooltipState]},changeDetection:0}),t})(),cY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=It({type:t}),t.\u0275inj=kt({providers:[nY],imports:[[LW,_r,JU,$E],$E,lv]}),t})();function uY(t,n){1&t&&(ae(),q(0,"marker",6),Ie(1,"path",7),re())}function hY(t,n){if(1&t){const e=Be();ae(),q(0,"g",8),ye("click",function(){const r=ve(e).$implicit,o=W(2);return o.onNodeClick?o.onNodeClick({nodeId:r.id}):null}),Ie(1,"rect",9)(2,"text",10),re()}if(2&t){const e=n.$implicit,i=W(2);j("matTooltip",e.data.tooltip),G(1),me("width",e.dimension.width)("height",e.dimension.height)("fill",e.data.customColor||e.data.color),G(1),j("innerHTML",i.getSanitizedString(e.label),Qa),me("x",10)("y",e.dimension.height/2)}}function dY(t,n){if(1&t){const e=Be();ae(),q(0,"g",11),ye("click",function(){const r=ve(e).$implicit,o=W(2);return o.onLinkClick?o.onLinkClick({sourceNodeId:r.source,targetNodeId:r.target,id:r.originalId}):null}),Ie(1,"path",12),q(2,"text",13)(3,"textPath",14),St(4),re()()()}if(2&t){const e=n.$implicit;G(3),vt("dominant-baseline",e.dominantBaseline),me("href","#"+e.id),G(1),nn(" ",e.label," ")}}function fY(t,n){if(1&t&&(q(0,"ngx-graph",2),ue(1,uY,2,0,"ng-template",null,3,pl),ue(3,hY,3,7,"ng-template",null,4,pl),ue(5,dY,5,4,"ng-template",null,5,pl),re()),2&t){const e=W();j("showMiniMap",e.showMiniMap)("draggingEnabled",e.draggingEnabled)("links",e.safeLinks)("nodes",e.nodes)("layout",e.viewportLayout)("autoCenter",!e.preserveView&&e.autoCenter)("autoZoom",!e.preserveView&&e.autoZoom)}}class pY extends rE{constructor(n){super(),this.component=n}run(n){const e=super.run(n),{graphComponent:i,preserveView:s}=this.component;return s?(i&&i!==this.initializedCamera&&e.nodes.length&&(i.panToNodeId(e.nodes[0].id),i.pan(-i.dims.width/4,0),this.initializedCamera=i),e):(this.initializedCamera=void 0,e)}}let gY=(()=>{class t{constructor(e){this.sanitizer=e,this.safeLinks=[],this.viewportLayout=new pY(this)}ngOnChanges(){this.safeLinks=(this.links||[]).map((e,i)=>Object.assign(Object.assign({},e),{originalId:e.id||i,id:`edge-${e.id||i}`}))}onResized(e){window.dispatchEvent(new Event("resize"))}getSanitizedString(e){return this.sanitizer.bypassSecurityTrustHtml(e)}}return t.\u0275fac=function(e){return new(e||t)(Le(rg))},t.\u0275cmp=$e({type:t,selectors:[["drayman-ngx-graph-internal"]],viewQuery:function(e,i){if(1&e&&vi(uE,5),2&e){let s;ht(s=dt())&&(i.graphComponent=s.first)}},inputs:{links:"links",nodes:"nodes",clusters:"clusters",showMiniMap:"showMiniMap",draggingEnabled:"draggingEnabled",autoCenter:"autoCenter",autoZoom:"autoZoom",preserveView:"preserveView",onNodeClick:"onNodeClick",onLinkClick:"onLinkClick"},features:[ut],decls:2,vars:1,consts:[[2,"width","100%","height","100%",3,"resized"],[3,"showMiniMap","draggingEnabled","links","nodes","layout","autoCenter","autoZoom",4,"ngIf"],[3,"showMiniMap","draggingEnabled","links","nodes","layout","autoCenter","autoZoom"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","viewBox","0 -5 10 10","refX","8","refY","0","markerWidth","4","markerHeight","4","orient","auto"],["d","M0,-5L10,0L0,5",1,"arrow-head"],[1,"node",2,"cursor","pointer",3,"matTooltip","click"],["rx","4px"],["alignment-baseline","central",3,"innerHTML"],[1,"edge",2,"cursor","pointer",3,"click"],["stroke-width","2","marker-end","url(#arrow)",1,"line"],["text-anchor","middle",1,"edge-label"],["startOffset","50%",1,"text-path"]],template:function(e,i){1&e&&(q(0,"div",0),ye("resized",function(r){return i.onResized(r)}),ue(1,fY,7,7,"ngx-graph",1),re()),2&e&&(G(1),j("ngIf",null==i.nodes?null:i.nodes.length))},directives:[oU,yt,uE,oY],styles:[""]}),t})(),mY=(()=>{class t{constructor(e){this.injector=e}ngDoBootstrap(){const e=function wR(t,n){const e=function gR(t,n){return n.get(mr).resolveComponentFactory(t).inputs}(t,n.injector),i=n.strategyFactory||new yR(t,n.injector),s=function pR(t){const n={};return t.forEach(({propName:e,templateName:i})=>{n[function cR(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(i)]=e}),n}(e);class r extends bR{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||n.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,h){this.ngElementStrategy.setInputValue(s[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return r.observedAttributes=Object.keys(s),e.forEach(({propName:o})=>{Object.defineProperty(r.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),r}(gY,{injector:this.injector});customElements.define("drayman-ngx-graph",e)}}return t.\u0275fac=function(e){return new(e||t)(Ee(oi))},t.\u0275mod=It({type:t}),t.\u0275inj=kt({imports:[[Ow,CB,p9,sU,aU,cY]]}),t})();(function qF(){H0=!1})(),RN().bootstrapModule(mY).catch(t=>console.error(t))})()})();
|