text: (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},"4t0b":function(e,t){!function(){"use strict";var e,t,n,r,s,o,i,l,a,u,c,h,d,p="leader-line",f=1,g=2,m=3,y=4,_={top:f,right:g,bottom:m,left:y},v=1,b=2,w=3,S=4,x=5,E={straight:v,arc:b,fluid:w,magnet:S,grid:x},C="behind",k=p+"-defs",O='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="leader-line-defs"><style><![CDATA[.leader-line{position:absolute;overflow:visible!important;pointer-events:none!important;font-size:16px}#leader-line-defs{width:0;height:0;position:absolute;left:0;top:0}.leader-line-line-path{fill:none}.leader-line-mask-bg-rect{fill:#fff}.leader-line-caps-mask-anchor,.leader-line-caps-mask-marker-shape{fill:#000}.leader-line-caps-mask-anchor{stroke:#000}.leader-line-caps-mask-line,.leader-line-plugs-face{stroke:transparent}.leader-line-line-mask-shape{stroke:#fff}.leader-line-line-outline-mask-shape{stroke:#000}.leader-line-plug-mask-shape{fill:#fff;stroke:#000}.leader-line-plug-outline-mask-shape{fill:#000;stroke:#fff}.leader-line-areaAnchor{position:absolute;overflow:visible!important}]]></style><defs><circle id="leader-line-disc" cx="0" cy="0" r="5"/><rect id="leader-line-square" x="-5" y="-5" width="10" height="10"/><polygon id="leader-line-arrow1" points="-8,-8 8,0 -8,8 -5,0"/><polygon id="leader-line-arrow2" points="-4,-8 4,0 -4,8 -7,5 -2,0 -7,-5"/><polygon id="leader-line-arrow3" points="-4,-5 8,0 -4,5"/><g id="leader-line-hand"><path style="fill: #fcfcfc" d="M9.19 11.14h4.75c1.38 0 2.49-1.11 2.49-2.49 0-.51-.15-.98-.41-1.37h1.3c1.38 0 2.49-1.11 2.49-2.49s-1.11-2.53-2.49-2.53h1.02c1.38 0 2.49-1.11 2.49-2.49s-1.11-2.49-2.49-2.49h14.96c1.37 0 2.49-1.11 2.49-2.49s-1.11-2.49-2.49-2.49H16.58C16-9.86 14.28-11.14 9.7-11.14c-4.79 0-6.55 3.42-7.87 4.73H-2.14v13.23h3.68C3.29 9.97 5.47 11.14 9.19 11.14L9.19 11.14Z"/><path style="fill: black" d="M13.95 12c1.85 0 3.35-1.5 3.35-3.35 0-.17-.02-.34-.04-.51h.07c1.85 0 3.35-1.5 3.35-3.35 0-.79-.27-1.51-.72-2.08 1.03-.57 1.74-1.67 1.74-2.93 0-.59-.16-1.15-.43-1.63h12.04c1.85 0 3.35-1.5 3.35-3.35 0-1.85-1.5-3.35-3.35-3.35H17.2C16.26-10.93 13.91-12 9.7-12 5.36-12 3.22-9.4 1.94-7.84c0 0-.29.33-.5.57-.63 0-3.58 0-3.58 0C-2.61-7.27-3-6.88-3-6.41v13.23c0 .47.39.86.86.86 0 0 2.48 0 3.2 0C2.9 10.73 5.29 12 9.19 12L13.95 12ZM9.19 10.28c-3.46 0-5.33-1.05-6.9-3.87-.15-.27-.44-.44-.75-.44 0 0-1.81 0-2.82 0V-5.55c1.06 0 3.11 0 3.11 0 .25 0 .44-.06.61-.25l.83-.95c1.23-1.49 2.91-3.53 6.43-3.53 3.45 0 4.9.74 5.57 1.72h-4.3c-.48 0-.86.38-.86.86s.39.86.86.86h22.34c.9 0 1.63.73 1.63 1.63 0 .9-.73 1.63-1.63 1.63H15.83c-.48 0-.86.38-.86.86 0 .47.39.86.86.86h2.52c.9 0 1.63.73 1.63 1.63s-.73 1.63-1.63 1.63h-3.12c-.48 0-.86.38-.86.86 0 .47.39.86.86.86h2.11c.88 0 1.63.76 1.63 1.67 0 .9-.73 1.63-1.63 1.63h-3.2c-.48 0-.86.39-.86.86 0 .47.39.86.86.86h1.36c.05.16.09.34.09.51 0 .9-.73 1.63-1.63 1.63C13.95 10.28 9.19 10.28 9.19 10.28Z"/></g><g id="leader-line-crosshair"><path d="M0-78.97c-43.54 0-78.97 35.43-78.97 78.97 0 43.54 35.43 78.97 78.97 78.97s78.97-35.43 78.97-78.97C78.97-43.54 43.55-78.97 0-78.97ZM76.51-1.21h-9.91v-9.11h-2.43v9.11h-11.45c-.64-28.12-23.38-50.86-51.5-51.5V-64.17h9.11V-66.6h-9.11v-9.91C42.46-75.86 75.86-42.45 76.51-1.21ZM-1.21-30.76h-9.11v2.43h9.11V-4.2c-1.44.42-2.57 1.54-2.98 2.98H-28.33v-9.11h-2.43v9.11H-50.29C-49.65-28-27.99-49.65-1.21-50.29V-30.76ZM-30.76 1.21v9.11h2.43v-9.11H-4.2c.42 1.44 1.54 2.57 2.98 2.98v24.13h-9.11v2.43h9.11v19.53C-27.99 49.65-49.65 28-50.29 1.21H-30.76ZM1.22 30.75h9.11v-2.43h-9.11V4.2c1.44-.42 2.56-1.54 2.98-2.98h24.13v9.11h2.43v-9.11h19.53C49.65 28 28 49.65 1.22 50.29V30.75ZM30.76-1.21v-9.11h-2.43v9.11H4.2c-.42-1.44-1.54-2.56-2.98-2.98V-28.33h9.11v-2.43h-9.11V-50.29C28-49.65 49.65-28 50.29-1.21H30.76ZM-1.21-76.51v9.91h-9.11v2.43h9.11v11.45c-28.12.64-50.86 23.38-51.5 51.5H-64.17v-9.11H-66.6v9.11h-9.91C-75.86-42.45-42.45-75.86-1.21-76.51ZM-76.51 1.21h9.91v9.11h2.43v-9.11h11.45c.64 28.12 23.38 50.86 51.5 51.5v11.45h-9.11v2.43h9.11v9.91C-42.45 75.86-75.86 42.45-76.51 1.21ZM1.22 76.51v-9.91h9.11v-2.43h-9.11v-11.45c28.12-.64 50.86-23.38 51.5-51.5h11.45v9.11h2.43v-9.11h9.91C75.86 42.45 42.45 75.86 1.22 76.51Z"/><path d="M0 83.58-7.1 96 7.1 96Z"/><path d="M0-83.58 7.1-96-7.1-96"/><path d="M83.58 0 96 7.1 96-7.1Z"/><path d="M-83.58 0-96-7.1-96 7.1Z"/></g></defs></svg>',M={disc:{elmId:"leader-line-disc",noRotate:!0,bBox:{left:-5,top:-5,width:10,height:10,right:5,bottom:5},widthR:2.5,heightR:2.5,bCircle:5,sideLen:5,backLen:5,overhead:0,outlineBase:1,outlineMax:4},square:{elmId:"leader-line-square",noRotate:!0,bBox:{left:-5,top:-5,width:10,height:10,right:5,bottom:5},widthR:2.5,heightR:2.5,bCircle:5,sideLen:5,backLen:5,overhead:0,outlineBase:1,outlineMax:4},arrow1:{elmId:"leader-line-arrow1",bBox:{left:-8,top:-8,width:16,height:16,right:8,bottom:8},widthR:4,heightR:4,bCircle:8,sideLen:8,backLen:8,overhead:8,outlineBase:2,outlineMax:1.5},arrow2:{elmId:"leader-line-arrow2",bBox:{left:-7,top:-8,width:11,height:16,right:4,bottom:8},widthR:2.75,heightR:4,bCircle:8,sideLen:8,backLen:7,overhead:4,outlineBase:1,outlineMax:1.75},arrow3:{elmId:"leader-line-arrow3",bBox:{left:-4,top:-5,width:12,height:10,right:8,bottom:5},widthR:3,heightR:2.5,bCircle:8,sideLen:5,backLen:4,overhead:8,outlineBase:1,outlineMax:2.5},hand:{elmId:"leader-line-hand",bBox:{left:-3,top:-12,width:40,height:24,right:37,bottom:12},widthR:10,heightR:6,bCircle:37,sideLen:12,backLen:3,overhead:37},crosshair:{elmId:"leader-line-crosshair",noRotate:!0,bBox:{left:-96,top:-96,width:192,height:192,right:96,bottom:96},widthR:48,heightR:48,bCircle:96,sideLen:96,backLen:96,overhead:0}},T={behind:C,disc:"disc",square:"square",arrow1:"arrow1",arrow2:"arrow2",arrow3:"arrow3",hand:"hand",crosshair:"crosshair"},I={disc:"disc",square:"square",arrow1:"arrow1",arrow2:"arrow2",arrow3:"arrow3",hand:"hand",crosshair:"crosshair"},A=[f,g,m,y],P="auto",N={x:"left",y:"top",width:"width",height:"height"},R=80,V=4,L=5,D=120,U=8,F=3.75,j=10,B=30,H=.5522847,z=.25*Math.PI,$=/^\s*(\-?[\d\.]+)\s*(\%)?\s*$/,W="http://www.w3.org/2000/svg",G="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style&&!window.navigator.msPointerEnabled,q=!G&&!!document.uniqueID,Z="MozAppearance"in document.documentElement.style,Q=!(G||Z||!window.chrome||!window.CSS),Y=!G&&!q&&!Z&&!Q&&!window.chrome&&"WebkitAppearance"in document.documentElement.style,K=q||G?.2:.1,X={path:w,lineColor:"coral",lineSize:4,plugSE:[C,"arrow1"],plugSizeSE:[1,1],lineOutlineEnabled:!1,lineOutlineColor:"indianred",lineOutlineSize:.25,plugOutlineEnabledSE:[!1,!1],plugOutlineSizeSE:[1,1]},J=(c={}.toString,d=(h={}.hasOwnProperty.toString).call(Object),function(e){var t,n;return e&&"[object Object]"===c.call(e)&&(!(t=Object.getPrototypeOf(e))||(n=t.hasOwnProperty("constructor")&&t.constructor)&&"function"==typeof n&&h.call(n)===d)}),ee=Number.isFinite||function(e){return"number"==typeof e&&window.isFinite(e)},te=function(){var e,t={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},n=1e3/60/2,r=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,n)},s=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||function(e){clearTimeout(e)},o=Number.isFinite||function(e){return"number"==typeof e&&window.isFinite(e)},i=[],l=0;function a(){var t=Date.now(),o=!1;e&&(s.call(window,e),e=null),i.forEach(function(e){var r,s,i;if(e.framesStart){if((r=t-e.framesStart)>=e.duration&&e.count&&e.loopsLeft<=1)return i=e.frames[e.lastFrame=e.reverse?0:e.frames.length-1],e.frameCallback(i.value,!0,i.timeRatio,i.outputRatio),void(e.framesStart=null);if(r>e.duration){if(s=Math.floor(r/e.duration),e.count){if(s>=e.loopsLeft)return i=e.frames[e.lastFrame=e.reverse?0:e.frames.length-1],e.frameCallback(i.value,!0,i.timeRatio,i.outputRatio),void(e.framesStart=null);e.loopsLeft-=s}e.framesStart+=e.duration*s,r=t-e.framesStart}e.reverse&&(r=e.duration-r),i=e.frames[e.lastFrame=Math.round(r/n)],!1!==e.frameCallback(i.value,!1,i.timeRatio,i.outputRatio)?o=!0:e.framesStart=null}}),o&&(e=r.call(window,a))}function u(e,t){e.framesStart=Date.now(),null!=t&&(e.framesStart-=e.duration*(e.reverse?1-t:t)),e.loopsLeft=e.count,e.lastFrame=null,a()}return{add:function(e,r,s,o,a,c,h){var d,p,f,g,m,y,_,v,b,w,S,x,E,C=++l;function k(t,n){return{value:e(n),timeRatio:t,outputRatio:n}}if("string"==typeof a&&(a=t[a]),e=e||function(){},s<n)p=[k(0,0),k(1,1)];else{if(f=n/s,p=[k(0,0)],0===a[0]&&0===a[1]&&1===a[2]&&1===a[3])for(m=f;m<=1;m+=f)p.push(k(m,m));else for(y=g=(m=f)/10;y<=1;y+=g)w=(b=(v=y)*v)*v,E=3*(S=1-v)*b,m<=(_={x:(x=S*S*3*v)*a[0]+E*a[2]+w,y:x*a[1]+E*a[3]+w}).x&&(p.push(k(_.x,_.y)),m+=f);p.push(k(1,1))}return i.push(d={animId:C,frameCallback:r,duration:s,count:o,frames:p,reverse:!!c}),!1!==h&&u(d,h),C},remove:function(e){var t;i.some(function(n,r){return n.animId===e&&(t=r,!(n.framesStart=null))})&&i.splice(t,1)},start:function(e,t,n){i.some(function(r){return r.animId===e&&(r.reverse=!!t,u(r,n),!0)})},stop:function(e,t){var n;return i.some(function(r){return r.animId===e&&(t?null!=r.lastFrame&&(n=r.frames[r.lastFrame].timeRatio):(n=(Date.now()-r.framesStart)/r.duration,r.reverse&&(n=1-n),n<0?n=0:1<n&&(n=1)),!(r.framesStart=null))}),n},validTiming:function(e){return"string"==typeof e?t[e]:Array.isArray(e)&&[0,1,2,3].every(function(t){return o(e[t])&&0<=e[t]&&e[t]<=1})?[e[0],e[1],e[2],e[3]]:null}}}(),ne=function(e){e.SVGPathElement.prototype.getPathData&&e.SVGPathElement.prototype.setPathData||function(){var t={Z:"Z",M:"M",L:"L",C:"C",Q:"Q",A:"A",H:"H",V:"V",S:"S",T:"T",z:"Z",m:"m",l:"l",c:"c",q:"q",a:"a",h:"h",v:"v",s:"s",t:"t"},n=function(e){this._string=e,this._currentIndex=0,this._endIndex=this._string.length,this._prevCommand=null,this._skipOptionalSpaces()},r=-1!==e.navigator.userAgent.indexOf("MSIE ");n.prototype={parseSegment:function(){var e=this._string[this._currentIndex],n=t[e]?t[e]:null;if(null===n){if(null===this._prevCommand)return null;if(null===(n=("+"===e||"-"===e||"."===e||"0"<=e&&e<="9")&&"Z"!==this._prevCommand?"M"===this._prevCommand?"L":"m"===this._prevCommand?"l":this._prevCommand:null))return null}else this._currentIndex+=1;var r=null,s=(this._prevCommand=n).toUpperCase();return"H"===s||"V"===s?r=[this._parseNumber()]:"M"===s||"L"===s||"T"===s?r=[this._parseNumber(),this._parseNumber()]:"S"===s||"Q"===s?r=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber()]:"C"===s?r=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber()]:"A"===s?r=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseArcFlag(),this._parseArcFlag(),this._parseNumber(),this._parseNumber()]:"Z"===s&&(this._skipOptionalSpaces(),r=[]),null===r||0<=r.indexOf(null)?null:{type:n,values:r}},hasMoreData:function(){return this._currentIndex<this._endIndex},peekSegmentType:function(){var e=this._string[this._currentIndex];return t[e]?t[e]:null},initialCommandIsMoveTo:function(){if(!this.hasMoreData())return!0;var e=this.peekSegmentType();return"M"===e||"m"===e},_isCurrentSpace:function(){var e=this._string[this._currentIndex];return e<=" "&&(" "===e||"\n"===e||"\t"===e||"\r"===e||"\f"===e)},_skipOptionalSpaces:function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex+=1;return this._currentIndex<this._endIndex},_skipOptionalSpacesOrDelimiter:function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!==this._string[this._currentIndex])&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","===this._string[this._currentIndex]&&(this._currentIndex+=1,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},_parseNumber:function(){var e=0,t=0,n=1,r=0,s=1,o=1,i=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"===this._string[this._currentIndex]?this._currentIndex+=1:this._currentIndex<this._endIndex&&"-"===this._string[this._currentIndex]&&(this._currentIndex+=1,s=-1),this._currentIndex===this._endIndex||(this._string[this._currentIndex]<"0"||"9"<this._string[this._currentIndex])&&"."!==this._string[this._currentIndex])return null;for(var l=this._currentIndex;this._currentIndex<this._endIndex&&"0"<=this._string[this._currentIndex]&&this._string[this._currentIndex]<="9";)this._currentIndex+=1;if(this._currentIndex!==l)for(var a=this._currentIndex-1,u=1;l<=a;)t+=u*(this._string[a]-"0"),a-=1,u*=10;if(this._currentIndex<this._endIndex&&"."===this._string[this._currentIndex]){if(this._currentIndex+=1,this._currentIndex>=this._endIndex||this._string[this._currentIndex]<"0"||"9"<this._string[this._currentIndex])return null;for(;this._currentIndex<this._endIndex&&"0"<=this._string[this._currentIndex]&&this._string[this._currentIndex]<="9";)n*=10,r+=(this._string.charAt(this._currentIndex)-"0")/n,this._currentIndex+=1}if(this._currentIndex!==i&&this._currentIndex+1<this._endIndex&&("e"===this._string[this._currentIndex]||"E"===this._string[this._currentIndex])&&"x"!==this._string[this._currentIndex+1]&&"m"!==this._string[this._currentIndex+1]){if(this._currentIndex+=1,"+"===this._string[this._currentIndex]?this._currentIndex+=1:"-"===this._string[this._currentIndex]&&(this._currentIndex+=1,o=-1),this._currentIndex>=this._endIndex||this._string[this._currentIndex]<"0"||"9"<this._string[this._currentIndex])return null;for(;this._currentIndex<this._endIndex&&"0"<=this._string[this._currentIndex]&&this._string[this._currentIndex]<="9";)e*=10,e+=this._string[this._currentIndex]-"0",this._currentIndex+=1}var c=t+r;return c*=s,e&&(c*=Math.pow(10,o*e)),i===this._currentIndex?null:(this._skipOptionalSpacesOrDelimiter(),c)},_parseArcFlag:function(){if(this._currentIndex>=this._endIndex)return null;var e=null,t=this._string[this._currentIndex];if(this._currentIndex+=1,"0"===t)e=0;else{if("1"!==t)return null;e=1}return this._skipOptionalSpacesOrDelimiter(),e}};var s=function(e){if(!e||0===e.length)return[];var t=new n(e),r=[];if(t.initialCommandIsMoveTo())for(;t.hasMoreData();){var s=t.parseSegment();if(null===s)break;r.push(s)}return r},o=e.SVGPathElement.prototype.setAttribute,i=e.SVGPathElement.prototype.removeAttribute,l=e.Symbol?e.Symbol():"__cachedPathData",a=e.Symbol?e.Symbol():"__cachedNormalizedPathData",u=function(e,t,n,r,s,o,i,l,a,c){var h,d,p,f,g=function(e,t,n){return{x:e*Math.cos(n)-t*Math.sin(n),y:e*Math.sin(n)+t*Math.cos(n)}},m=Math.PI*i/180,y=[];if(c)h=c[0],d=c[1],p=c[2],f=c[3];else{var _=g(e,t,-m);e=_.x,t=_.y;var v=g(n,r,-m),b=(e-(n=v.x))/2,w=(t-(r=v.y))/2,S=b*b/(s*s)+w*w/(o*o);1<S&&(s*=S=Math.sqrt(S),o*=S);var x=s*s,E=o*o,C=(l===a?-1:1)*Math.sqrt(Math.abs((x*E-x*w*w-E*b*b)/(x*w*w+E*b*b)));p=C*s*w/o+(e+n)/2,f=C*-o*b/s+(t+r)/2,h=Math.asin(parseFloat(((t-f)/o).toFixed(9))),d=Math.asin(parseFloat(((r-f)/o).toFixed(9))),e<p&&(h=Math.PI-h),n<p&&(d=Math.PI-d),h<0&&(h=2*Math.PI+h),d<0&&(d=2*Math.PI+d),a&&d<h&&(h-=2*Math.PI),!a&&h<d&&(d-=2*Math.PI)}var k=d-h;if(Math.abs(k)>120*Math.PI/180){var O=d,M=n,T=r;d=a&&h<d?h+120*Math.PI/180*1:h+120*Math.PI/180*-1,n=p+s*Math.cos(d),r=f+o*Math.sin(d),y=u(n,r,M,T,s,o,i,0,a,[d,O,p,f])}k=d-h;var I=Math.cos(h),A=Math.sin(h),P=Math.cos(d),N=Math.sin(d),R=Math.tan(k/4),V=4/3*s*R,L=4/3*o*R,D=[e,t],U=[e+V*A,t-L*I],F=[n+V*N,r-L*P],j=[n,r];if(U[0]=2*D[0]-U[0],U[1]=2*D[1]-U[1],c)return[U,F,j].concat(y);y=[U,F,j].concat(y).join().split(",");var B=[],H=[];return y.forEach(function(e,t){H.push(t%2?g(y[t-1],y[t],m).y:g(y[t],y[t+1],m).x),6===H.length&&(B.push(H),H=[])}),B},c=function(e){return e.map(function(e){return{type:e.type,values:Array.prototype.slice.call(e.values)}})},h=function(e){var t=[],n=null,r=null,s=null,o=null,i=null,l=null,a=null;return e.forEach(function(e){if("M"===e.type){var c=e.values[0],h=e.values[1];t.push({type:"M",values:[c,h]}),o=l=c,i=a=h}else if("C"===e.type){var d=e.values[0],p=e.values[1],f=e.values[2],g=e.values[3];t.push({type:"C",values:[d,p,f,g,c=e.values[4],h=e.values[5]]}),r=f,s=g,o=c,i=h}else if("L"===e.type)t.push({type:"L",values:[c=e.values[0],h=e.values[1]]}),o=c,i=h;else if("H"===e.type)t.push({type:"L",values:[c=e.values[0],i]}),o=c;else if("V"===e.type)t.push({type:"L",values:[o,h=e.values[0]]}),i=h;else if("S"===e.type)"C"===n||"S"===n?(m=o+(o-r),y=i+(i-s)):(m=o,y=i),t.push({type:"C",values:[m,y,f=e.values[0],g=e.values[1],c=e.values[2],h=e.values[3]]}),r=f,s=g,o=c,i=h;else if("T"===e.type){"Q"===n||"T"===n?(d=o+(o-r),p=i+(i-s)):(d=o,p=i);var m=o+2*(d-o)/3,y=i+2*(p-i)/3,_=(c=e.values[0])+2*(d-c)/3,v=(h=e.values[1])+2*(p-h)/3;t.push({type:"C",values:[m,y,_,v,c,h]}),r=d,s=p,o=c,i=h}else if("Q"===e.type)t.push({type:"C",values:[m=o+2*((d=e.values[0])-o)/3,y=i+2*((p=e.values[1])-i)/3,_=(c=e.values[2])+2*(d-c)/3,v=(h=e.values[3])+2*(p-h)/3,c,h]}),r=d,s=p,o=c,i=h;else if("A"===e.type){var b=e.values[0],w=e.values[1],S=e.values[2],x=e.values[3],E=e.values[4];c=e.values[5],h=e.values[6],0===b||0===w?(t.push({type:"C",values:[o,i,c,h,c,h]}),o=c,i=h):o===c&&i===h||u(o,i,c,h,b,w,S,x,E).forEach(function(e){t.push({type:"C",values:e}),o=c,i=h})}else"Z"===e.type&&(t.push(e),o=l,i=a);n=e.type}),t};e.SVGPathElement.prototype.setAttribute=function(e,t){"d"===e&&(this[l]=null,this[a]=null),o.call(this,e,t)},e.SVGPathElement.prototype.removeAttribute=function(e,t){"d"===e&&(this[l]=null,this[a]=null),i.call(this,e)},e.SVGPathElement.prototype.getPathData=function(e){if(e&&e.normalize){if(this[a])return c(this[a]);this[l]?d=c(this[l]):(d=s(this.getAttribute("d")||""),this[l]=c(d));var t=h((n=[],u=i=o=r=null,d.forEach(function(e){var t=e.type;if("M"===t){var s=e.values[0],l=e.values[1];n.push({type:"M",values:[s,l]}),r=i=s,o=u=l}else if("m"===t)n.push({type:"M",values:[s=r+e.values[0],l=o+e.values[1]]}),r=i=s,o=u=l;else if("L"===t)n.push({type:"L",values:[s=e.values[0],l=e.values[1]]}),r=s,o=l;else if("l"===t)n.push({type:"L",values:[s=r+e.values[0],l=o+e.values[1]]}),r=s,o=l;else if("C"===t){var a=e.values[0],c=e.values[1],h=e.values[2],d=e.values[3];n.push({type:"C",values:[a,c,h,d,s=e.values[4],l=e.values[5]]}),r=s,o=l}else"c"===t?(n.push({type:"C",values:[a=r+e.values[0],c=o+e.values[1],h=r+e.values[2],d=o+e.values[3],s=r+e.values[4],l=o+e.values[5]]}),r=s,o=l):"Q"===t?(n.push({type:"Q",values:[a=e.values[0],c=e.values[1],s=e.values[2],l=e.values[3]]}),r=s,o=l):"q"===t?(n.push({type:"Q",values:[a=r+e.values[0],c=o+e.values[1],s=r+e.values[2],l=o+e.values[3]]}),r=s,o=l):"A"===t?(n.push({type:"A",values:[e.values[0],e.values[1],e.values[2],e.values[3],e.values[4],s=e.values[5],l=e.values[6]]}),r=s,o=l):"a"===t?(n.push({type:"A",values:[e.values[0],e.values[1],e.values[2],e.values[3],e.values[4],s=r+e.values[5],l=o+e.values[6]]}),r=s,o=l):"H"===t?(n.push({type:"H",values:[s=e.values[0]]}),r=s):"h"===t?(n.push({type:"H",values:[s=r+e.values[0]]}),r=s):"V"===t?(n.push({type:"V",values:[l=e.values[0]]}),o=l):"v"===t?(n.push({type:"V",values:[l=o+e.values[0]]}),o=l):"S"===t?(n.push({type:"S",values:[h=e.values[0],d=e.values[1],s=e.values[2],l=e.values[3]]}),r=s,o=l):"s"===t?(n.push({type:"S",values:[h=r+e.values[0],d=o+e.values[1],s=r+e.values[2],l=o+e.values[3]]}),r=s,o=l):"T"===t?(n.push({type:"T",values:[s=e.values[0],l=e.values[1]]}),r=s,o=l):"t"===t?(n.push({type:"T",values:[s=r+e.values[0],l=o+e.values[1]]}),r=s,o=l):"Z"!==t&&"z"!==t||(n.push({type:"Z",values:[]}),r=i,o=u)}),n));return this[a]=c(t),t}if(this[l])return c(this[l]);var n,r,o,i,u,d=s(this.getAttribute("d")||"");return this[l]=c(d),d},e.SVGPathElement.prototype.setPathData=function(e){if(0===e.length)r?this.setAttribute("d",""):this.removeAttribute("d");else{for(var t="",n=0,s=e.length;n<s;n+=1){var o=e[n];0<n&&(t+=" "),t+=o.type,o.values&&0<o.values.length&&(t+=" "+o.values.join(" "))}this.setAttribute("d",t)}},e.SVGRectElement.prototype.getPathData=function(e){var t=this.x.baseVal.value,n=this.y.baseVal.value,r=this.width.baseVal.value,s=this.height.baseVal.value,o=this.hasAttribute("rx")?this.rx.baseVal.value:this.ry.baseVal.value,i=this.hasAttribute("ry")?this.ry.baseVal.value:this.rx.baseVal.value;r/2<o&&(o=r/2),s/2<i&&(i=s/2);var l=[{type:"M",values:[t+o,n]},{type:"H",values:[t+r-o]},{type:"A",values:[o,i,0,0,1,t+r,n+i]},{type:"V",values:[n+s-i]},{type:"A",values:[o,i,0,0,1,t+r-o,n+s]},{type:"H",values:[t+o]},{type:"A",values:[o,i,0,0,1,t,n+s-i]},{type:"V",values:[n+i]},{type:"A",values:[o,i,0,0,1,t+o,n]},{type:"Z",values:[]}];return l=l.filter(function(e){return"A"!==e.type||0!==e.values[0]&&0!==e.values[1]}),e&&!0===e.normalize&&(l=h(l)),l},e.SVGCircleElement.prototype.getPathData=function(e){var t=this.cx.baseVal.value,n=this.cy.baseVal.value,r=this.r.baseVal.value,s=[{type:"M",values:[t+r,n]},{type:"A",values:[r,r,0,0,1,t,n+r]},{type:"A",values:[r,r,0,0,1,t-r,n]},{type:"A",values:[r,r,0,0,1,t,n-r]},{type:"A",values:[r,r,0,0,1,t+r,n]},{type:"Z",values:[]}];return e&&!0===e.normalize&&(s=h(s)),s},e.SVGEllipseElement.prototype.getPathData=function(e){var t=this.cx.baseVal.value,n=this.cy.baseVal.value,r=this.rx.baseVal.value,s=this.ry.baseVal.value,o=[{type:"M",values:[t+r,n]},{type:"A",values:[r,s,0,0,1,t,n+s]},{type:"A",values:[r,s,0,0,1,t-r,n]},{type:"A",values:[r,s,0,0,1,t,n-s]},{type:"A",values:[r,s,0,0,1,t+r,n]},{type:"Z",values:[]}];return e&&!0===e.normalize&&(o=h(o)),o},e.SVGLineElement.prototype.getPathData=function(){return[{type:"M",values:[this.x1.baseVal.value,this.y1.baseVal.value]},{type:"L",values:[this.x2.baseVal.value,this.y2.baseVal.value]}]},e.SVGPolylineElement.prototype.getPathData=function(){for(var e=[],t=0;t<this.points.numberOfItems;t+=1){var n=this.points.getItem(t);e.push({type:0===t?"M":"L",values:[n.x,n.y]})}return e},e.SVGPolygonElement.prototype.getPathData=function(){for(var e=[],t=0;t<this.points.numberOfItems;t+=1){var n=this.points.getItem(t);e.push({type:0===t?"M":"L",values:[n.x,n.y]})}return e.push({type:"Z",values:[]}),e}}()},re=function(e){var t={};function n(r){if(t[r])return t[r].exports;var s=t[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){n.r(t);var r=500,s=[],o=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return setTimeout(e,1e3/60)},i=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||function(e){return clearTimeout(e)},l=void 0,a=Date.now();function u(){var e=void 0,t=void 0;l&&(i.call(window,l),l=null),s.forEach(function(t){t.event&&(t.listener(t.event),t.event=null,e=!0)}),e?(a=Date.now(),t=!0):Date.now()-a<r&&(t=!0),t&&(l=o.call(window,u))}function c(e){var t=-1;return s.some(function(n,r){return n.listener===e&&(t=r,!0)}),t}var h={add:function(e){var t=void 0;return-1===c(e)?(s.push(t={listener:e}),function(e){t.event=e,l||u()}):null},remove:function(e){var t;-1<(t=c(e))&&(s.splice(t,1),!s.length&&l&&(i.call(window,l),l=null))}};t.default=h}]).default,se={line_altColor:{iniValue:!1},line_color:{},line_colorTra:{iniValue:!1},line_strokeWidth:{},plug_enabled:{iniValue:!1},plug_enabledSE:{hasSE:!0,iniValue:!1},plug_plugSE:{hasSE:!0,iniValue:C},plug_colorSE:{hasSE:!0},plug_colorTraSE:{hasSE:!0,iniValue:!1},plug_markerWidthSE:{hasSE:!0},plug_markerHeightSE:{hasSE:!0},lineOutline_enabled:{iniValue:!1},lineOutline_color:{},lineOutline_colorTra:{iniValue:!1},lineOutline_strokeWidth:{},lineOutline_inStrokeWidth:{},plugOutline_enabledSE:{hasSE:!0,iniValue:!1},plugOutline_plugSE:{hasSE:!0,iniValue:C},plugOutline_colorSE:{hasSE:!0},plugOutline_colorTraSE:{hasSE:!0,iniValue:!1},plugOutline_strokeWidthSE:{hasSE:!0},plugOutline_inStrokeWidthSE:{hasSE:!0},position_socketXYSE:{hasSE:!0,hasProps:!0},position_plugOverheadSE:{hasSE:!0},position_path:{},position_lineStrokeWidth:{},position_socketGravitySE:{hasSE:!0},path_pathData:{},path_edge:{hasProps:!0},viewBox_bBox:{hasProps:!0},viewBox_plugBCircleSE:{hasSE:!0},lineMask_enabled:{iniValue:!1},lineMask_outlineMode:{iniValue:!1},lineMask_x:{},lineMask_y:{},lineOutlineMask_x:{},lineOutlineMask_y:{},maskBGRect_x:{},maskBGRect_y:{},capsMaskAnchor_enabledSE:{hasSE:!0,iniValue:!1},capsMaskAnchor_pathDataSE:{hasSE:!0},capsMaskAnchor_strokeWidthSE:{hasSE:!0},capsMaskMarker_enabled:{iniValue:!1},capsMaskMarker_enabledSE:{hasSE:!0,iniValue:!1},capsMaskMarker_plugSE:{hasSE:!0,iniValue:C},capsMaskMarker_markerWidthSE:{hasSE:!0},capsMaskMarker_markerHeightSE:{hasSE:!0},caps_enabled:{iniValue:!1},attach_plugSideLenSE:{hasSE:!0},attach_plugBackLenSE:{hasSE:!0}},oe={show_on:{},show_effect:{},show_animOptions:{},show_animId:{},show_inAnim:{}},ie="fade",le=[],ae={},ue=0,ce={},he=0;function de(e,t){var n,r;return typeof e!=typeof t||(n=J(e)?"obj":Array.isArray(e)?"array":"")!=(J(t)?"obj":Array.isArray(t)?"array":"")||("obj"===n?de(r=Object.keys(e).sort(),Object.keys(t).sort())||r.some(function(n){return de(e[n],t[n])}):"array"===n?e.length!==t.length||e.some(function(e,n){return de(e,t[n])}):e!==t)}function pe(e){return e?J(e)?Object.keys(e).reduce(function(t,n){return t[n]=pe(e[n]),t},{}):Array.isArray(e)?e.map(pe):e:e}function fe(e){var t,n,r,s=1,o=e=(e+"").trim();function i(e){var t=1,n=$.exec(e);return n&&(t=parseFloat(n[1]),n[2]?t=0<=t&&t<=100?t/100:1:(t<0||1<t)&&(t=1)),t}return(t=/^(rgba|hsla|hwb|gray|device\-cmyk)\s*\(([\s\S]+)\)$/i.exec(e))?(n=t[1].toLowerCase(),r=t[2].trim().split(/\s*,\s*/),"rgba"===n&&4===r.length?(s=i(r[3]),o="rgb("+r.slice(0,3).join(", ")+")"):"hsla"===n&&4===r.length?(s=i(r[3]),o="hsl("+r.slice(0,3).join(", ")+")"):"hwb"===n&&4===r.length?(s=i(r[3]),o="hwb("+r.slice(0,3).join(", ")+")"):"gray"===n&&2===r.length?(s=i(r[1]),o="gray("+r[0]+")"):"device-cmyk"===n&&5<=r.length&&(s=i(r[4]),o="device-cmyk("+r.slice(0,4).join(", ")+")")):(t=/^\#(?:([\da-f]{6})([\da-f]{2})|([\da-f]{3})([\da-f]))$/i.exec(e))?t[1]?(s=parseInt(t[2],16)/255,o="#"+t[1]):(s=parseInt(t[4]+t[4],16)/255,o="#"+t[3]):"transparent"===e.toLocaleLowerCase()&&(s=0),[s,o]}function ge(e){return!(!e||e.nodeType!==Node.ELEMENT_NODE||"function"!=typeof e.getBoundingClientRect)}function me(e,t){var n,r,s,o,i={};if(!(s=e.ownerDocument))return console.error("Cannot get document that contains the element."),null;if(e.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_DISCONNECTED)return console.error("A disconnected element was passed."),null;for(r in n=e.getBoundingClientRect())i[r]=n[r];if(!t){if(!(o=s.defaultView))return console.error("Cannot get window that contains the element."),null;i.left+=o.pageXOffset,i.right+=o.pageXOffset,i.top+=o.pageYOffset,i.bottom+=o.pageYOffset}return i}function ye(e,t){var n,r,s=[],o=e;for(t=t||window;;){if(!(n=o.ownerDocument))return console.error("Cannot get document that contains the element."),null;if(!(r=n.defaultView))return console.error("Cannot get window that contains the element."),null;if(r===t)break;if(!(o=r.frameElement))return console.error("`baseWindow` was not found."),null;s.unshift(o)}return s}function _e(e,t){var n,r,s=0,o=0;return(r=ye(e,t=t||window))?r.length?(r.forEach(function(e,t){var n,r,i=me(e,0<t);s+=i.left,o+=i.top,r=(n=e).ownerDocument.defaultView.getComputedStyle(n,""),i={left:n.clientLeft+parseFloat(r.paddingLeft),top:n.clientTop+parseFloat(r.paddingTop)},s+=i.left,o+=i.top}),(n=me(e,!0)).left+=s,n.right+=s,n.top+=o,n.bottom+=o,n):me(e):null}function ve(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function be(e,t,n){var r=t.x-e.x,s=t.y-e.y;return{x:e.x+r*n,y:e.y+s*n,angle:Math.atan2(s,r)/(Math.PI/180)}}function we(e,t,n){var r=Math.atan2(e.y-t.y,t.x-e.x);return{x:t.x+Math.cos(r)*n,y:t.y+Math.sin(r)*n*-1}}function Se(e,t,n,r,s){var o=s*s,i=o*s,l=1-s,a=l*l,u=a*l,c=u*e.x+3*a*s*t.x+3*l*o*n.x+i*r.x,h=u*e.y+3*a*s*t.y+3*l*o*n.y+i*r.y,d=e.x+2*s*(t.x-e.x)+o*(n.x-2*t.x+e.x),p=e.y+2*s*(t.y-e.y)+o*(n.y-2*t.y+e.y),f=t.x+2*s*(n.x-t.x)+o*(r.x-2*n.x+t.x),g=t.y+2*s*(n.y-t.y)+o*(r.y-2*n.y+t.y),m=l*e.x+s*t.x,y=l*e.y+s*t.y,_=l*n.x+s*r.x,v=l*n.y+s*r.y,b=90-180*Math.atan2(d-f,p-g)/Math.PI;return{x:c,y:h,fromP2:{x:d,y:p},toP1:{x:f,y:g},fromP1:{x:m,y},toP2:{x:_,y:v},angle:b+=180<b?-180:180}}function xe(e,t,n,r,s){function o(e,t,n,r,s){return e*(e*(-3*t+9*n-9*r+3*s)+6*t-12*n+6*r)-3*t+3*n}var i,l,a,u,c=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0;return i=(s=null==s||1<s?1:s<0?0:s)/2,[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816].forEach(function(s,d){a=o(l=i*s+i,e.x,t.x,n.x,r.x),u=o(l,e.y,t.y,n.y,r.y),h+=c[d]*Math.sqrt(a*a+u*u)}),i*h}function Ee(e,t,n,r,s){for(var o,i=.5,l=1-i;o=xe(e,t,n,r,l),!(Math.abs(o-s)<=.01);)l+=(o<s?1:-1)*(i/=2);return l}function Ce(e,t){var n;return e.forEach(function(e){var r=t?e.map(function(e){var n={x:e.x,y:e.y};return t(n),n}):e;n||(n=[{type:"M",values:[r[0].x,r[0].y]}]),n.push(r.length?2===r.length?{type:"L",values:[r[1].x,r[1].y]}:{type:"C",values:[r[1].x,r[1].y,r[2].x,r[2].y,r[3].x,r[3].y]}:{type:"Z",values:[]})}),n}function ke(e){var t=[],n=0;return e.forEach(function(e){var r=(2===e.length?ve:xe).apply(null,e);t.push(r),n+=r}),{segsLen:t,lenAll:n}}function Oe(e,t){return null==e||null==t||e.length!==t.length||e.some(function(e,n){var r=t[n];return e.type!==r.type||e.values.some(function(e,t){return e!==r.values[t]})})}function Me(e,t,n){e.events[t]?e.events[t].indexOf(n)<0&&e.events[t].push(n):e.events[t]=[n]}function Te(e,t,n){var r;e.events[t]&&-1<(r=e.events[t].indexOf(n))&&e.events[t].splice(r,1)}function Ie(e){i&&clearTimeout(i),le.push(e),i=setTimeout(function(){le.forEach(function(e){e()}),le=[]},0)}function Ae(e,t){e.reflowTargets.indexOf(t)<0&&e.reflowTargets.push(t)}function Pe(e){e.reflowTargets.forEach(function(e){var t;t=e,setTimeout(function(){var e=t.parentNode,n=t.nextSibling;e.insertBefore(e.removeChild(t),n)},0)}),e.reflowTargets=[]}function Ne(e,t,n,r,s,o,i){var a,u,c;"auto-start-reverse"===n?("boolean"!=typeof l&&(t.setAttribute("orient","auto-start-reverse"),l=t.orientType.baseVal===SVGMarkerElement.SVG_MARKER_ORIENT_UNKNOWN),l?t.setAttribute("orient",n):((a=s.createSVGTransform()).setRotate(180,0,0),o.transform.baseVal.appendItem(a),t.setAttribute("orient","auto"),c=!0)):(t.setAttribute("orient",n),!1===l&&o.transform.baseVal.clear()),u=t.viewBox.baseVal,c?(u.x=-r.right,u.y=-r.bottom):(u.x=r.left,u.y=r.top),u.width=r.width,u.height=r.height,q&&Ae(e,i)}function Re(e,t){return{prop:e?"markerEnd":"markerStart",orient:t?t.noRotate?"0":e?"auto":"auto-start-reverse":null}}function Ve(e,t){Object.keys(t).forEach(function(n){var r=t[n];e[n]=null!=r.iniValue?r.hasSE?[r.iniValue,r.iniValue]:r.iniValue:r.hasSE?r.hasProps?[{},{}]:[]:r.hasProps?{}:null})}function Le(e,t,n,r,s){return r!==t[n]&&(t[n]=r,s&&s.forEach(function(t){t(e,r,n)}),!0)}function De(e){function t(e,t){return e+parseFloat(t)}var n=e.document,r=e.getComputedStyle(n.documentElement,""),s=e.getComputedStyle(n.body,""),o={x:0,y:0};return"static"!==s.position?(o.x-=[r.marginLeft,r.borderLeftWidth,r.paddingLeft,s.marginLeft,s.borderLeftWidth].reduce(t,0),o.y-=[r.marginTop,r.borderTopWidth,r.paddingTop,s.marginTop,s.borderTopWidth].reduce(t,0)):"static"!==r.position&&(o.x-=[r.marginLeft,r.borderLeftWidth].reduce(t,0),o.y-=[r.marginTop,r.borderTopWidth].reduce(t,0)),o}function Ue(e){var t,n=e.document;n.getElementById(k)||(t=(new e.DOMParser).parseFromString(O,"image/svg+xml"),n.body.appendChild(t.documentElement),ne(e))}function Fe(e){var t,n,r,s,o,i,l,a,u,c,h,d,p,_,E,C,k,O,M=e.options,T=e.curStats,I=e.aplStats,P=T.position_socketXYSE,N=!1;function $(e,t){var n=t===f?{x:e.left+e.width/2,y:e.top}:t===g?{x:e.right,y:e.top+e.height/2}:t===m?{x:e.left+e.width/2,y:e.bottom}:{x:e.left,y:e.top+e.height/2};return n.socketId=t,n}function W(e){return{x:e.x,y:e.y}}if(T.position_path=M.path,T.position_lineStrokeWidth=T.line_strokeWidth,T.position_socketGravitySE=t=pe(M.socketGravitySE),n=[0,1].map(function(t){var n,r,s,o=M.anchorSE[t],i=e.optionIsAttach.anchorSE[t],l=!1!==i?ce[o._id]:null,a=!1!==i&&l.conf.getStrokeWidth?l.conf.getStrokeWidth(l,e):0,u=!1!==i&&l.conf.getBBoxNest?l.conf.getBBoxNest(l,e,a):_e(o,e.baseWindow);return T.capsMaskAnchor_pathDataSE[t]=!1!==i&&l.conf.getPathData?l.conf.getPathData(l,e,a):(r=null!=(n=u).right?n.right:n.left+n.width,[{type:"M",values:[n.left,n.top]},{type:"L",values:[r,n.top]},{type:"L",values:[r,s=null!=n.bottom?n.bottom:n.top+n.height]},{type:"L",values:[n.left,s]},{type:"Z",values:[]}]),T.capsMaskAnchor_strokeWidthSE[t]=a,u}),l=-1,M.socketSE[0]&&M.socketSE[1]?(P[0]=$(n[0],M.socketSE[0]),P[1]=$(n[1],M.socketSE[1])):(M.socketSE[0]||M.socketSE[1]?(M.socketSE[0]?(o=0,i=1):(o=1,i=0),P[o]=$(n[o],M.socketSE[o]),(s=A.map(function(e){return $(n[i],e)})).forEach(function(e){var t=ve(e,P[o]);(t<l||-1===l)&&(P[i]=e,l=t)})):(s=A.map(function(e){return $(n[1],e)}),A.map(function(e){return $(n[0],e)}).forEach(function(e){s.forEach(function(t){var n=ve(e,t);(n<l||-1===l)&&(P[0]=e,P[1]=t,l=n)})})),[0,1].forEach(function(e){var t,r;M.socketSE[e]||(n[e].width||n[e].height?n[e].width||P[e].socketId!==y&&P[e].socketId!==g?n[e].height||P[e].socketId!==f&&P[e].socketId!==m||(P[e].socketId=0<=P[e?0:1].y-n[e].top?m:f):P[e].socketId=0<=P[e?0:1].x-n[e].left?g:y:(t=P[e?0:1].x-n[e].left,r=P[e?0:1].y-n[e].top,P[e].socketId=Math.abs(t)>=Math.abs(r)?0<=t?g:y:0<=r?m:f))})),T.position_path!==I.position_path||T.position_lineStrokeWidth!==I.position_lineStrokeWidth||[0,1].some(function(e){return T.position_plugOverheadSE[e]!==I.position_plugOverheadSE[e]||(o=P[e]).x!==(i=I.position_socketXYSE[e]).x||o.y!==i.y||o.socketId!==i.socketId||(r=I.position_socketGravitySE[e],(s=null==(n=t[e])?"auto":Array.isArray(n)?"array":"number")!=(null==r?"auto":Array.isArray(r)?"array":"number")||("array"===s?n[0]!==r[0]||n[1]!==r[1]:n!==r));var n,r,s,o,i})){switch(e.pathList.baseVal=r=[],e.pathList.animVal=null,T.position_path){case v:r.push([W(P[0]),W(P[1])]);break;case b:d=z*("number"==typeof t[0]&&0<t[0]||"number"==typeof t[1]&&0<t[1]?-1:1),_=-(p=Math.atan2(P[1].y-P[0].y,P[1].x-P[0].x))+d,E=Math.PI-p-d,C=ve(P[0],P[1])/Math.sqrt(2)*H,k={x:P[0].x+Math.cos(_)*C,y:P[0].y+Math.sin(_)*C*-1},O={x:P[1].x+Math.cos(E)*C,y:P[1].y+Math.sin(E)*C*-1},r.push([W(P[0]),k,O,W(P[1])]);break;case w:case S:u=[t[0],T.position_path===S?0:t[1]],c=[],h=[],P.forEach(function(e,t){var n,r,s,o,i,l=u[t];Array.isArray(l)?n={x:l[0],y:l[1]}:"number"==typeof l?n=e.socketId===f?{x:0,y:-l}:e.socketId===g?{x:l,y:0}:e.socketId===m?{x:0,y:l}:{x:-l,y:0}:(r=P[t?0:1],o=0<(s=T.position_plugOverheadSE[t])?D+(U<s?(s-U)*F:0):R+(T.position_lineStrokeWidth>V?(T.position_lineStrokeWidth-V)*L:0),e.socketId===f?((i=(e.y-r.y)/2)<o&&(i=o),n={x:0,y:-i}):e.socketId===g?((i=(r.x-e.x)/2)<o&&(i=o),n={x:i,y:0}):e.socketId===m?((i=(r.y-e.y)/2)<o&&(i=o),n={x:0,y:i}):((i=(e.x-r.x)/2)<o&&(i=o),n={x:-i,y:0})),c[t]=e.x+n.x,h[t]=e.y+n.y}),r.push([W(P[0]),{x:c[0],y:h[0]},{x:c[1],y:h[1]},W(P[1])]);break;case x:!function(){var e,n=1,s=2,o=3,i=4,l=[[],[]],a=[];function u(e){return e===n?o:e===s?i:e===o?n:s}function c(e){return e===s||e===i?"x":"y"}function h(e,t,r){var i={x:e.x,y:e.y};if(r){if(r===u(e.dirId))throw new Error("Invalid dirId: "+r);i.dirId=r}else i.dirId=e.dirId;return i.dirId===n?i.y-=t:i.dirId===s?i.x+=t:i.dirId===o?i.y+=t:i.x-=t,i}function d(e,t){return t.dirId===n?e.y<=t.y:t.dirId===s?e.x>=t.x:t.dirId===o?e.y>=t.y:e.x<=t.x}function p(e,t){return t.dirId===n||t.dirId===o?e.x===t.x:e.y===t.y}function f(e){return e[0]?{contain:0,notContain:1}:{contain:1,notContain:0}}function g(e,t,n){return Math.abs(t[n]-e[n])}function m(e,t,r){return"x"===r?e.x<t.x?s:i:e.y<t.y?o:n}function y(){var e,t,n,r,i=[d(a[1],a[0]),d(a[0],a[1])],u=[c(a[0].dirId),c(a[1].dirId)];if(u[0]===u[1]){if(i[0]&&i[1])return p(a[1],a[0])||(a[0][u[0]]===a[1][u[1]]?(l[0].push(a[0]),l[1].push(a[1])):(e=a[0][u[0]]+(a[1][u[1]]-a[0][u[0]])/2,l[0].push(h(a[0],Math.abs(e-a[0][u[0]]))),l[1].push(h(a[1],Math.abs(e-a[1][u[1]]))))),!1;i[0]!==i[1]?(t=f(i),(n=g(a[t.notContain],a[t.contain],u[t.notContain]))<B&&(a[t.notContain]=h(a[t.notContain],B-n)),l[t.notContain].push(a[t.notContain]),a[t.notContain]=h(a[t.notContain],B,p(a[t.contain],a[t.notContain])?"x"===u[t.notContain]?o:s:m(a[t.notContain],a[t.contain],"x"===u[t.notContain]?"y":"x"))):(n=g(a[0],a[1],"x"===u[0]?"y":"x"),l.forEach(function(e,t){var r=0===t?1:0;e.push(a[t]),a[t]=h(a[t],B,2*B<=n?m(a[t],a[r],"x"===u[t]?"y":"x"):"x"===u[t]?o:s)}))}else{if(i[0]&&i[1])return p(a[1],a[0])?l[1].push(a[1]):p(a[0],a[1])?l[0].push(a[0]):l[0].push("x"===u[0]?{x:a[1].x,y:a[0].y}:{x:a[0].x,y:a[1].y}),!1;i[0]!==i[1]?(t=f(i),l[t.notContain].push(a[t.notContain]),a[t.notContain]=h(a[t.notContain],B,g(a[t.notContain],a[t.contain],u[t.contain])>=B?m(a[t.notContain],a[t.contain],u[t.contain]):a[t.contain].dirId)):(r=[{x:a[0].x,y:a[0].y},{x:a[1].x,y:a[1].y}],l.forEach(function(e,t){var n=0===t?1:0,s=g(r[t],r[n],u[t]);s<B&&(a[t]=h(a[t],B-s)),e.push(a[t]),a[t]=h(a[t],B,m(a[t],a[n],u[n]))}))}return!0}for(P.forEach(function(e,r){var c,d=W(e),p=t[r];c=Array.isArray(p)?p[0]<0?[i,-p[0]]:0<p[0]?[s,p[0]]:p[1]<0?[n,-p[1]]:0<p[1]?[o,p[1]]:[e.socketId,0]:"number"!=typeof p?[e.socketId,B]:0<=p?[e.socketId,p]:[u(e.socketId),-p],d.dirId=c[0],p=c[1],l[r].push(d),a[r]=h(d,p)});y(););l[1].reverse(),l[0].concat(l[1]).forEach(function(t,n){var s={x:t.x,y:t.y};0<n&&r.push([e,s]),e=s})}()}a=[],T.position_plugOverheadSE.forEach(function(e,t){var s,o,i,l,u,c,h,d,p,m,_,v=!t;0<e?2===(s=r[o=v?0:r.length-1]).length?(a[o]=a[o]||ve.apply(null,s),a[o]>j&&(a[o]-e<j&&(e=a[o]-j),i=be(s[0],s[1],(v?e:a[o]-e)/a[o]),r[o]=v?[i,s[1]]:[s[0],i],a[o]-=e)):(a[o]=a[o]||xe.apply(null,s),a[o]>j&&(a[o]-e<j&&(e=a[o]-j),i=Se(s[0],s[1],s[2],s[3],Ee(s[0],s[1],s[2],s[3],v?e:a[o]-e)),v?(l=s[0],u=i.toP1):(l=s[3],u=i.fromP2),c=Math.atan2(l.y-i.y,i.x-l.x),h=ve(i,u),i.x=l.x+Math.cos(c)*e,i.y=l.y+Math.sin(c)*e*-1,u.x=i.x+Math.cos(c)*h,u.y=i.y+Math.sin(c)*h*-1,r[o]=v?[i,i.toP1,i.toP2,s[3]]:[s[0],i.fromP1,i.fromP2,i],a[o]=null)):e<0&&(s=r[o=v?0:r.length-1],e<(_=-n[t]["x"==(p=(d=P[t].socketId)===y||d===g?"x":"y")?"width":"height"])&&(e=_),m=e*(d===y||d===f?-1:1),2===s.length?s[v?0:s.length-1][p]+=m:(v?[0,1]:[s.length-2,s.length-1]).forEach(function(e){s[e][p]+=m}),a[o]=null)}),I.position_socketXYSE=pe(P),I.position_plugOverheadSE=pe(T.position_plugOverheadSE),I.position_path=T.position_path,I.position_lineStrokeWidth=T.position_lineStrokeWidth,I.position_socketGravitySE=pe(t),N=!0,e.events.apl_position&&e.events.apl_position.forEach(function(t){t(e,r)})}return N}function je(e,t){t!==e.isShown&&(!!t!=!!e.isShown&&(e.svg.style.visibility=t?"":"hidden"),e.isShown=t,e.events&&e.events.svgShow&&e.events.svgShow.forEach(function(n){n(e,t)}))}function Be(t,n){var r,s,o,i,l,a,u,c,h,d,p,f,g,m,y,_,v,b,w,S,x,E,k,O,T,A,P,R,V,L,D,U,F,j,B,H,z,$,W,G,J,ee,te,ne,re,se,oe,ie,le,ae,ue,ce={};n.line&&(ce.line=(s=(r=t).options,l=!1,l=Le(r,o=r.curStats,"line_color",s.lineColor,(i=r.events).cur_line_color)||l,l=Le(r,o,"line_colorTra",fe(o.line_color)[0]<1)||l,l=Le(r,o,"line_strokeWidth",s.lineSize,i.cur_line_strokeWidth)||l)),(n.plug||ce.line)&&(ce.plug=(u=(a=t).options,c=a.curStats,h=a.events,d=!1,[0,1].forEach(function(e){var t,n,r,s,o,i,l,p,f=u.plugSE[e];d=Le(a,c.plug_enabledSE,e,f!==C)||d,d=Le(a,c.plug_plugSE,e,f)||d,d=Le(a,c.plug_colorSE,e,p=u.plugColorSE[e]||c.line_color,h.cur_plug_colorSE)||d,d=Le(a,c.plug_colorTraSE,e,fe(p)[0]<1)||d,f!==C&&(s=n=(t=M[I[f]]).widthR*u.plugSizeSE[e],o=r=t.heightR*u.plugSizeSE[e],Y&&(s*=c.line_strokeWidth,o*=c.line_strokeWidth),d=Le(a,c.plug_markerWidthSE,e,s)||d,d=Le(a,c.plug_markerHeightSE,e,o)||d,c.capsMaskMarker_markerWidthSE[e]=n,c.capsMaskMarker_markerHeightSE[e]=r),c.plugOutline_plugSE[e]=c.capsMaskMarker_plugSE[e]=f,c.plug_enabledSE[e]?(c.position_plugOverheadSE[e]=t.overhead*(p=c.line_strokeWidth/X.lineSize*u.plugSizeSE[e]),c.viewBox_plugBCircleSE[e]=t.bCircle*p,i=t.sideLen*p,l=t.backLen*p):(c.position_plugOverheadSE[e]=-c.line_strokeWidth/2,c.viewBox_plugBCircleSE[e]=i=l=0),Le(a,c.attach_plugSideLenSE,e,i,h.cur_attach_plugSideLenSE),Le(a,c.attach_plugBackLenSE,e,l,h.cur_attach_plugBackLenSE),c.capsMaskAnchor_enabledSE[e]=!c.plug_enabledSE[e]}),d=Le(a,c,"plug_enabled",c.plug_enabledSE[0]||c.plug_enabledSE[1])||d)),(n.lineOutline||ce.line)&&(ce.lineOutline=(g=(p=t).options,y=!1,y=Le(p,m=p.curStats,"lineOutline_enabled",g.lineOutlineEnabled)||y,y=Le(p,m,"lineOutline_color",g.lineOutlineColor)||y,y=Le(p,m,"lineOutline_colorTra",fe(m.lineOutline_color)[0]<1)||y,y=Le(p,m,"lineOutline_strokeWidth",m.line_strokeWidth-2*(f=m.line_strokeWidth*g.lineOutlineSize))||y,y=Le(p,m,"lineOutline_inStrokeWidth",m.lineOutline_colorTra?m.lineOutline_strokeWidth+2*K:m.line_strokeWidth-f)||y)),(n.plugOutline||ce.line||ce.plug||ce.lineOutline)&&(ce.plugOutline=(v=(_=t).options,b=_.curStats,w=!1,[0,1].forEach(function(e){var t,n=b.plugOutline_plugSE[e],r=n!==C?M[I[n]]:null;w=Le(_,b.plugOutline_enabledSE,e,v.plugOutlineEnabledSE[e]&&b.plug_enabled&&b.plug_enabledSE[e]&&!!r&&!!r.outlineBase)||w,w=Le(_,b.plugOutline_colorSE,e,t=v.plugOutlineColorSE[e]||b.lineOutline_color)||w,w=Le(_,b.plugOutline_colorTraSE,e,fe(t)[0]<1)||w,r&&r.outlineBase&&((t=v.plugOutlineSizeSE[e])>r.outlineMax&&(t=r.outlineMax),w=Le(_,b.plugOutline_strokeWidthSE,e,t*=2*r.outlineBase)||w,w=Le(_,b.plugOutline_inStrokeWidthSE,e,b.plugOutline_colorTraSE[e]?t-K/(b.line_strokeWidth/X.lineSize)/v.plugSizeSE[e]*2:t/2)||w)}),w)),(n.faces||ce.line||ce.plug||ce.lineOutline||ce.plugOutline)&&(ce.faces=(E=(S=t).curStats,k=S.aplStats,O=S.events,T=!1,!E.line_altColor&&Le(S,k,"line_color",x=E.line_color,O.apl_line_color)&&(S.lineFace.style.stroke=x,T=!0),Le(S,k,"line_strokeWidth",x=E.line_strokeWidth,O.apl_line_strokeWidth)&&(S.lineShape.style.strokeWidth=x+"px",T=!0,(Z||q)&&(Ae(S,S.lineShape),q&&(Ae(S,S.lineFace),Ae(S,S.lineMaskCaps)))),Le(S,k,"lineOutline_enabled",x=E.lineOutline_enabled,O.apl_lineOutline_enabled)&&(S.lineOutlineFace.style.display=x?"inline":"none",T=!0),E.lineOutline_enabled&&(Le(S,k,"lineOutline_color",x=E.lineOutline_color,O.apl_lineOutline_color)&&(S.lineOutlineFace.style.stroke=x,T=!0),Le(S,k,"lineOutline_strokeWidth",x=E.lineOutline_strokeWidth,O.apl_lineOutline_strokeWidth)&&(S.lineOutlineMaskShape.style.strokeWidth=x+"px",T=!0,q&&(Ae(S,S.lineOutlineMaskCaps),Ae(S,S.lineOutlineFace))),Le(S,k,"lineOutline_inStrokeWidth",x=E.lineOutline_inStrokeWidth,O.apl_lineOutline_inStrokeWidth)&&(S.lineMaskShape.style.strokeWidth=x+"px",T=!0,q&&(Ae(S,S.lineOutlineMaskCaps),Ae(S,S.lineOutlineFace)))),Le(S,k,"plug_enabled",x=E.plug_enabled,O.apl_plug_enabled)&&(S.plugsFace.style.display=x?"inline":"none",T=!0),E.plug_enabled&&[0,1].forEach(function(e){var t=E.plug_plugSE[e],n=t!==C?M[I[t]]:null,r=Re(e,n);Le(S,k.plug_enabledSE,e,x=E.plug_enabledSE[e],O.apl_plug_enabledSE)&&(S.plugsFace.style[r.prop]=x?"url(#"+S.plugMarkerIdSE[e]+")":"none",T=!0),E.plug_enabledSE[e]&&(Le(S,k.plug_plugSE,e,t,O.apl_plug_plugSE)&&(S.plugFaceSE[e].href.baseVal="#"+n.elmId,Ne(S,S.plugMarkerSE[e],r.orient,n.bBox,S.svg,S.plugMarkerShapeSE[e],S.plugsFace),T=!0,Z&&Ae(S,S.plugsFace)),Le(S,k.plug_colorSE,e,x=E.plug_colorSE[e],O.apl_plug_colorSE)&&(S.plugFaceSE[e].style.fill=x,T=!0,(Q||Y||q)&&!E.line_colorTra&&Ae(S,q?S.lineMaskCaps:S.capsMaskLine)),["markerWidth","markerHeight"].forEach(function(t){var n="plug_"+t+"SE";Le(S,k[n],e,x=E[n][e],O["apl_"+n])&&(S.plugMarkerSE[e][t].baseVal.value=x,T=!0)}),Le(S,k.plugOutline_enabledSE,e,x=E.plugOutline_enabledSE[e],O.apl_plugOutline_enabledSE)&&(x?(S.plugFaceSE[e].style.mask="url(#"+S.plugMaskIdSE[e]+")",S.plugOutlineFaceSE[e].style.display="inline"):(S.plugFaceSE[e].style.mask="none",S.plugOutlineFaceSE[e].style.display="none"),T=!0),E.plugOutline_enabledSE[e]&&(Le(S,k.plugOutline_plugSE,e,t,O.apl_plugOutline_plugSE)&&(S.plugOutlineFaceSE[e].href.baseVal=S.plugMaskShapeSE[e].href.baseVal=S.plugOutlineMaskShapeSE[e].href.baseVal="#"+n.elmId,[S.plugMaskSE[e],S.plugOutlineMaskSE[e]].forEach(function(e){e.x.baseVal.value=n.bBox.left,e.y.baseVal.value=n.bBox.top,e.width.baseVal.value=n.bBox.width,e.height.baseVal.value=n.bBox.height}),T=!0),Le(S,k.plugOutline_colorSE,e,x=E.plugOutline_colorSE[e],O.apl_plugOutline_colorSE)&&(S.plugOutlineFaceSE[e].style.fill=x,T=!0,q&&(Ae(S,S.lineMaskCaps),Ae(S,S.lineOutlineMaskCaps))),Le(S,k.plugOutline_strokeWidthSE,e,x=E.plugOutline_strokeWidthSE[e],O.apl_plugOutline_strokeWidthSE)&&(S.plugOutlineMaskShapeSE[e].style.strokeWidth=x+"px",T=!0),Le(S,k.plugOutline_inStrokeWidthSE,e,x=E.plugOutline_inStrokeWidthSE[e],O.apl_plugOutline_inStrokeWidthSE)&&(S.plugMaskShapeSE[e].style.strokeWidth=x+"px",T=!0)))}),T)),(n.position||ce.line||ce.plug)&&(ce.position=Fe(t)),(n.path||ce.position)&&(ce.path=(R=(A=t).curStats,V=A.aplStats,D=R.path_edge,U=!1,(L=A.pathList.animVal||A.pathList.baseVal)&&(D.x1=D.x2=L[0][0].x,D.y1=D.y2=L[0][0].y,R.path_pathData=P=Ce(L,function(e){e.x<D.x1&&(D.x1=e.x),e.y<D.y1&&(D.y1=e.y),e.x>D.x2&&(D.x2=e.x),e.y>D.y2&&(D.y2=e.y)}),Oe(P,V.path_pathData)&&(A.linePath.setPathData(P),V.path_pathData=P,U=!0,q?(Ae(A,A.plugsFace),Ae(A,A.lineMaskCaps)):Z&&Ae(A,A.linePath),A.events.apl_path&&A.events.apl_path.forEach(function(e){e(A,P)}))),U)),ce.viewBox=(z=(H=(F=t).curStats).path_edge,$=H.viewBox_bBox,W=F.aplStats.viewBox_bBox,G=F.svg.viewBox.baseVal,J=F.svg.style,ee=!1,j=Math.max(H.line_strokeWidth/2,H.viewBox_plugBCircleSE[0]||0,H.viewBox_plugBCircleSE[1]||0),B={x1:z.x1-j,y1:z.y1-j,x2:z.x2+j,y2:z.y2+j},F.events.new_edge4viewBox&&F.events.new_edge4viewBox.forEach(function(e){e(F,B)}),$.x=H.lineMask_x=H.lineOutlineMask_x=H.maskBGRect_x=B.x1,$.y=H.lineMask_y=H.lineOutlineMask_y=H.maskBGRect_y=B.y1,$.width=B.x2-B.x1,$.height=B.y2-B.y1,["x","y","width","height"].forEach(function(e){var t;(t=$[e])!==W[e]&&(G[e]=W[e]=t,J[N[e]]=t+("x"===e||"y"===e?F.bodyOffset[e]:0)+"px",ee=!0)}),ee),ce.mask=(re=(te=t).curStats,se=te.aplStats,oe=!1,re.plug_enabled?[0,1].forEach(function(e){re.capsMaskMarker_enabledSE[e]=re.plug_enabledSE[e]&&re.plug_colorTraSE[e]||re.plugOutline_enabledSE[e]&&re.plugOutline_colorTraSE[e]}):re.capsMaskMarker_enabledSE[0]=re.capsMaskMarker_enabledSE[1]=!1,re.capsMaskMarker_enabled=re.capsMaskMarker_enabledSE[0]||re.capsMaskMarker_enabledSE[1],re.lineMask_outlineMode=re.lineOutline_enabled,re.caps_enabled=re.capsMaskMarker_enabled||re.capsMaskAnchor_enabledSE[0]||re.capsMaskAnchor_enabledSE[1],re.lineMask_enabled=re.caps_enabled||re.lineMask_outlineMode,(re.lineMask_enabled&&!re.lineMask_outlineMode||re.lineOutline_enabled)&&["x","y"].forEach(function(e){var t="maskBGRect_"+e;Le(te,se,t,ne=re[t])&&(te.maskBGRect[e].baseVal.value=ne,oe=!0)}),Le(te,se,"lineMask_enabled",ne=re.lineMask_enabled)&&(te.lineFace.style.mask=ne?"url(#"+te.lineMaskId+")":"none",oe=!0,Y&&Ae(te,te.lineMask)),re.lineMask_enabled&&(Le(te,se,"lineMask_outlineMode",ne=re.lineMask_outlineMode)&&(ne?(te.lineMaskBG.style.display="none",te.lineMaskShape.style.display="inline"):(te.lineMaskBG.style.display="inline",te.lineMaskShape.style.display="none"),oe=!0),["x","y"].forEach(function(e){var t="lineMask_"+e;Le(te,se,t,ne=re[t])&&(te.lineMask[e].baseVal.value=ne,oe=!0)}),Le(te,se,"caps_enabled",ne=re.caps_enabled)&&(te.lineMaskCaps.style.display=te.lineOutlineMaskCaps.style.display=ne?"inline":"none",oe=!0,Y&&Ae(te,te.capsMaskLine)),re.caps_enabled&&([0,1].forEach(function(e){var t;Le(te,se.capsMaskAnchor_enabledSE,e,ne=re.capsMaskAnchor_enabledSE[e])&&(te.capsMaskAnchorSE[e].style.display=ne?"inline":"none",oe=!0,Y&&Ae(te,te.lineMask)),re.capsMaskAnchor_enabledSE[e]&&(Oe(t=re.capsMaskAnchor_pathDataSE[e],se.capsMaskAnchor_pathDataSE[e])&&(te.capsMaskAnchorSE[e].setPathData(t),se.capsMaskAnchor_pathDataSE[e]=t,oe=!0),Le(te,se.capsMaskAnchor_strokeWidthSE,e,ne=re.capsMaskAnchor_strokeWidthSE[e])&&(te.capsMaskAnchorSE[e].style.strokeWidth=ne+"px",oe=!0))}),Le(te,se,"capsMaskMarker_enabled",ne=re.capsMaskMarker_enabled)&&(te.capsMaskLine.style.display=ne?"inline":"none",oe=!0),re.capsMaskMarker_enabled&&[0,1].forEach(function(e){var t=re.capsMaskMarker_plugSE[e],n=t!==C?M[I[t]]:null,r=Re(e,n);Le(te,se.capsMaskMarker_enabledSE,e,ne=re.capsMaskMarker_enabledSE[e])&&(te.capsMaskLine.style[r.prop]=ne?"url(#"+te.lineMaskMarkerIdSE[e]+")":"none",oe=!0),re.capsMaskMarker_enabledSE[e]&&(Le(te,se.capsMaskMarker_plugSE,e,t)&&(te.capsMaskMarkerShapeSE[e].href.baseVal="#"+n.elmId,Ne(te,te.capsMaskMarkerSE[e],r.orient,n.bBox,te.svg,te.capsMaskMarkerShapeSE[e],te.capsMaskLine),oe=!0,Z&&(Ae(te,te.capsMaskLine),Ae(te,te.lineFace))),["markerWidth","markerHeight"].forEach(function(t){var n="capsMaskMarker_"+t+"SE";Le(te,se[n],e,ne=re[n][e])&&(te.capsMaskMarkerSE[e][t].baseVal.value=ne,oe=!0)}))}))),re.lineOutline_enabled&&["x","y"].forEach(function(e){var t="lineOutlineMask_"+e;Le(te,se,t,ne=re[t])&&(te.lineOutlineMask[e].baseVal.value=ne,oe=!0)}),oe),n.effect&&(ae=(ie=t).curStats,ue=ie.aplStats,Object.keys(e).forEach(function(t){var n=e[t],r=t+"_enabled",s=t+"_options",o=ae[s];Le(ie,ue,r,le=ae[r])?(le&&(ue[s]=pe(o)),n[le?"init":"remove"](ie)):le&&de(o,ue[s])&&(n.remove(ie),ue[r]=!0,ue[s]=pe(o),n.init(ie))})),(Q||Y)&&ce.line&&!ce.path&&Ae(t,t.lineShape),Q&&ce.plug&&!ce.line&&Ae(t,t.plugsFace),Pe(t)}function He(e,t){return{duration:ee(e.duration)&&0<e.duration?e.duration:t.duration,timing:te.validTiming(e.timing)?e.timing:pe(t.timing)}}function ze(e,n,r,s){var o,i=e.curStats,l=e.aplStats,a={};function u(){["show_on","show_effect","show_animOptions"].forEach(function(e){l[e]=i[e]})}i.show_on=n,r&&t[r]&&(i.show_effect=r,i.show_animOptions=He(J(s)?s:{},t[r].defaultAnimOptions)),a.show_on=i.show_on!==l.show_on,a.show_effect=i.show_effect!==l.show_effect,a.show_animOptions=de(i.show_animOptions,l.show_animOptions),a.show_effect||a.show_animOptions?i.show_inAnim?(o=a.show_effect?t[l.show_effect].stop(e,!0,!0):t[l.show_effect].stop(e),u(),t[l.show_effect].init(e,o)):a.show_on&&(l.show_effect&&a.show_effect&&t[l.show_effect].stop(e,!0,!0),u(),t[l.show_effect].init(e)):a.show_on&&(u(),t[l.show_effect].start(e))}function $e(e,t,n){var r={props:e,optionName:n};return!(!(e.attachments.indexOf(t)<0)||t.conf.bind&&!t.conf.bind(t,r)||(e.attachments.push(t),t.boundTargets.push(r),0))}function We(e,t,n){var r=e.attachments.indexOf(t);-1<r&&e.attachments.splice(r,1),t.boundTargets.some(function(n,s){return n.props===e&&(t.conf.unbind&&t.conf.unbind(t,n),r=s,!0)})&&(t.boundTargets.splice(r,1),n||Ie(function(){t.boundTargets.length||o(t)}))}function Ge(o,i){var l,a,u=o.options,c={};function h(e,t,n,r,s){var o={};return n?null!=r?(o.container=e[n],o.key=r):(o.container=e,o.key=n):(o.container=e,o.key=t),o.default=s,o.acceptsAuto=null==o.default,o}function d(e,t,n,r,s,o,i){var l,a,u,c=h(e,n,s,o,i);return null!=t[n]&&(a=(t[n]+"").toLowerCase())&&(c.acceptsAuto&&a===P||(u=r[a]))&&u!==c.container[c.key]&&(c.container[c.key]=u,l=!0),null!=c.container[c.key]||c.acceptsAuto||(c.container[c.key]=c.default,l=!0),l}function f(e,t,n,r,s,o,i,l,a){var u,c,d,p,f=h(e,n,s,o,i);if(!r){if(null==f.default)throw new Error("Invalid `type`: "+n);r=typeof f.default}return null!=t[n]&&(f.acceptsAuto&&(t[n]+"").toLowerCase()===P||(d=c=t[n],("number"===(p=r)?ee(d):typeof d===p)&&(c=a&&"string"===r&&c?c.trim():c,1)&&(!l||l(c))))&&c!==f.container[f.key]&&(f.container[f.key]=c,u=!0),null!=f.container[f.key]||f.acceptsAuto||(f.container[f.key]=f.default,u=!0),u}if(i=i||{},["start","end"].forEach(function(e,t){var n=i[e],r=!1;if(n&&(ge(n)||(r=s(n,"anchor")))&&n!==u.anchorSE[t]){if(!1!==o.optionIsAttach.anchorSE[t]&&We(o,ce[u.anchorSE[t]._id]),r&&!$e(o,ce[n._id],e))throw new Error("Can't bind attachment");u.anchorSE[t]=n,o.optionIsAttach.anchorSE[t]=r,a=c.position=!0}}),!u.anchorSE[0]||!u.anchorSE[1]||u.anchorSE[0]===u.anchorSE[1])throw new Error("`start` and `end` are required.");a&&(l=function(e,t){var n,r,s;if(!(n=ye(!1!==o.optionIsAttach.anchorSE[0]?ce[u.anchorSE[0]._id].element:u.anchorSE[0]))||!(r=ye(t)))throw new Error("Cannot get frames.");return n.length&&r.length&&(n.reverse(),r.reverse(),n.some(function(e){return r.some(function(t){return t===e&&(s=t.contentWindow,!0)})})),s||window}(0,!1!==o.optionIsAttach.anchorSE[1]?ce[u.anchorSE[1]._id].element:u.anchorSE[1]))!==o.baseWindow&&(function(n,r){var o,i,l,a,u,c,h,d,f,g,m=n.aplStats,y=r.document,_=p+"-"+n._id;function v(e){var t=i.appendChild(y.createElementNS(W,"mask"));return t.id=e,t.maskUnits.baseVal=SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE,[t.x,t.y,t.width,t.height].forEach(function(e){e.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0)}),t}function b(e){var t=i.appendChild(y.createElementNS(W,"marker"));return t.id=e,t.markerUnits.baseVal=SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH,t.viewBox.baseVal||t.setAttribute("viewBox","0 0 0 0"),t}function w(e){return[e.width,e.height].forEach(function(e){e.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PERCENTAGE,100)}),e}n.pathList={},Ve(m,se),Object.keys(e).forEach(function(t){var r=t+"_enabled";m[r]&&(e[t].remove(n),m[r]=!1)}),n.baseWindow&&n.svg&&n.baseWindow.document.body.removeChild(n.svg),Ue(n.baseWindow=r),n.bodyOffset=De(r),n.svg=o=y.createElementNS(W,"svg"),o.className.baseVal=p,o.viewBox.baseVal||o.setAttribute("viewBox","0 0 0 0"),n.defs=i=o.appendChild(y.createElementNS(W,"defs")),n.linePath=a=i.appendChild(y.createElementNS(W,"path")),a.id=u=_+"-line-path",a.className.baseVal=p+"-line-path",Y&&(a.style.fill="none"),n.lineShape=a=i.appendChild(y.createElementNS(W,"use")),a.id=c=_+"-line-shape",a.href.baseVal="#"+u,(l=i.appendChild(y.createElementNS(W,"g"))).id=h=_+"-caps",n.capsMaskAnchorSE=[0,1].map(function(){var e=l.appendChild(y.createElementNS(W,"path"));return e.className.baseVal=p+"-caps-mask-anchor",e}),n.lineMaskMarkerIdSE=[_+"-caps-mask-marker-0",_+"-caps-mask-marker-1"],n.capsMaskMarkerSE=[0,1].map(function(e){return b(n.lineMaskMarkerIdSE[e])}),n.capsMaskMarkerShapeSE=[0,1].map(function(e){var t=n.capsMaskMarkerSE[e].appendChild(y.createElementNS(W,"use"));return t.className.baseVal=p+"-caps-mask-marker-shape",t}),n.capsMaskLine=a=l.appendChild(y.createElementNS(W,"use")),a.className.baseVal=p+"-caps-mask-line",a.href.baseVal="#"+c,n.maskBGRect=a=w(i.appendChild(y.createElementNS(W,"rect"))),a.id=d=_+"-mask-bg-rect",a.className.baseVal=p+"-mask-bg-rect",Y&&(a.style.fill="white"),n.lineMask=w(v(n.lineMaskId=_+"-line-mask")),n.lineMaskBG=a=n.lineMask.appendChild(y.createElementNS(W,"use")),a.href.baseVal="#"+d,n.lineMaskShape=a=n.lineMask.appendChild(y.createElementNS(W,"use")),a.className.baseVal=p+"-line-mask-shape",a.href.baseVal="#"+u,a.style.display="none",n.lineMaskCaps=a=n.lineMask.appendChild(y.createElementNS(W,"use")),a.href.baseVal="#"+h,n.lineOutlineMask=w(v(f=_+"-line-outline-mask")),(a=n.lineOutlineMask.appendChild(y.createElementNS(W,"use"))).href.baseVal="#"+d,n.lineOutlineMaskShape=a=n.lineOutlineMask.appendChild(y.createElementNS(W,"use")),a.className.baseVal=p+"-line-outline-mask-shape",a.href.baseVal="#"+u,n.lineOutlineMaskCaps=a=n.lineOutlineMask.appendChild(y.createElementNS(W,"use")),a.href.baseVal="#"+h,n.face=o.appendChild(y.createElementNS(W,"g")),n.lineFace=a=n.face.appendChild(y.createElementNS(W,"use")),a.href.baseVal="#"+c,n.lineOutlineFace=a=n.face.appendChild(y.createElementNS(W,"use")),a.href.baseVal="#"+c,a.style.mask="url(#"+f+")",a.style.display="none",n.plugMaskIdSE=[_+"-plug-mask-0",_+"-plug-mask-1"],n.plugMaskSE=[0,1].map(function(e){return v(n.plugMaskIdSE[e])}),n.plugMaskShapeSE=[0,1].map(function(e){var t=n.plugMaskSE[e].appendChild(y.createElementNS(W,"use"));return t.className.baseVal=p+"-plug-mask-shape",t}),g=[],n.plugOutlineMaskSE=[0,1].map(function(e){return v(g[e]=_+"-plug-outline-mask-"+e)}),n.plugOutlineMaskShapeSE=[0,1].map(function(e){var t=n.plugOutlineMaskSE[e].appendChild(y.createElementNS(W,"use"));return t.className.baseVal=p+"-plug-outline-mask-shape",t}),n.plugMarkerIdSE=[_+"-plug-marker-0",_+"-plug-marker-1"],n.plugMarkerSE=[0,1].map(function(e){var t=b(n.plugMarkerIdSE[e]);return Y&&(t.markerUnits.baseVal=SVGMarkerElement.SVG_MARKERUNITS_USERSPACEONUSE),t}),n.plugMarkerShapeSE=[0,1].map(function(e){return n.plugMarkerSE[e].appendChild(y.createElementNS(W,"g"))}),n.plugFaceSE=[0,1].map(function(e){return n.plugMarkerShapeSE[e].appendChild(y.createElementNS(W,"use"))}),n.plugOutlineFaceSE=[0,1].map(function(e){var t=n.plugMarkerShapeSE[e].appendChild(y.createElementNS(W,"use"));return t.style.mask="url(#"+g[e]+")",t.style.display="none",t}),n.plugsFace=a=n.face.appendChild(y.createElementNS(W,"use")),a.className.baseVal=p+"-plugs-face",a.href.baseVal="#"+c,a.style.display="none",n.curStats.show_inAnim?(n.isShown=1,t[m.show_effect].stop(n,!0)):n.isShown||(o.style.visibility="hidden"),y.body.appendChild(o),[0,1,2].forEach(function(e){var t,r=n.options.labelSEM[e];r&&s(r,"label")&&(t=ce[r._id]).conf.initSvg&&t.conf.initSvg(t,n)})}(o,l),c.line=c.plug=c.lineOutline=c.plugOutline=c.faces=c.effect=!0),c.position=d(u,i,"path",E,null,null,X.path)||c.position,c.position=d(u,i,"startSocket",_,"socketSE",0)||c.position,c.position=d(u,i,"endSocket",_,"socketSE",1)||c.position,[i.startSocketGravity,i.endSocketGravity].forEach(function(e,t){var n,r,s=!1;null!=e&&(Array.isArray(e)?ee(e[0])&&ee(e[1])&&(s=[e[0],e[1]],Array.isArray(u.socketGravitySE[t])&&(n=s).length===(r=u.socketGravitySE[t]).length&&n.every(function(e,t){return e===r[t]})&&(s=!1)):((e+"").toLowerCase()===P?s=null:ee(e)&&0<=e&&(s=e),s===u.socketGravitySE[t]&&(s=!1)),!1!==s&&(u.socketGravitySE[t]=s,c.position=!0))}),c.line=f(u,i,"color",null,"lineColor",null,X.lineColor,null,!0)||c.line,c.line=f(u,i,"size",null,"lineSize",null,X.lineSize,function(e){return 0<e})||c.line,["startPlug","endPlug"].forEach(function(e,t){c.plug=d(u,i,e,T,"plugSE",t,X.plugSE[t])||c.plug,c.plug=f(u,i,e+"Color","string","plugColorSE",t,null,null,!0)||c.plug,c.plug=f(u,i,e+"Size",null,"plugSizeSE",t,X.plugSizeSE[t],function(e){return 0<e})||c.plug}),c.lineOutline=f(u,i,"outline",null,"lineOutlineEnabled",null,X.lineOutlineEnabled)||c.lineOutline,c.lineOutline=f(u,i,"outlineColor",null,"lineOutlineColor",null,X.lineOutlineColor,null,!0)||c.lineOutline,c.lineOutline=f(u,i,"outlineSize",null,"lineOutlineSize",null,X.lineOutlineSize,function(e){return 0<e&&e<=.48})||c.lineOutline,["startPlugOutline","endPlugOutline"].forEach(function(e,t){c.plugOutline=f(u,i,e,null,"plugOutlineEnabledSE",t,X.plugOutlineEnabledSE[t])||c.plugOutline,c.plugOutline=f(u,i,e+"Color","string","plugOutlineColorSE",t,null,null,!0)||c.plugOutline,c.plugOutline=f(u,i,e+"Size",null,"plugOutlineSizeSE",t,X.plugOutlineSizeSE[t],function(e){return 1<=e})||c.plugOutline}),["startLabel","endLabel","middleLabel"].forEach(function(e,t){var l,a,c,h=i[e],d=u.labelSEM[t]&&!o.optionIsAttach.labelSEM[t]?ce[u.labelSEM[t]._id].text:u.labelSEM[t],p=!1;if((l="string"==typeof h)&&(h=h.trim()),(l||h&&(p=s(h,"label")))&&h!==d){if(u.labelSEM[t]&&(We(o,ce[u.labelSEM[t]._id]),u.labelSEM[t]=""),h){if(p?(a=ce[(c=h)._id]).boundTargets.slice().forEach(function(e){a.conf.removeOption(a,e)}):c=new r(n.captionLabel,[h]),!$e(o,ce[c._id],e))throw new Error("Can't bind attachment");u.labelSEM[t]=c}o.optionIsAttach.labelSEM[t]=p}}),Object.keys(e).forEach(function(t){var n,r,s=e[t],l=t+"_enabled",a=t+"_options";function h(e){var t={};return s.optionsConf.forEach(function(n){var r=n[0],s=n[3];null==n[4]||t[s]||(t[s]=[]),("function"==typeof r?r:"id"===r?d:f).apply(null,[t,e].concat(n.slice(1)))}),t}function p(e){var n,r=t+"_animOptions";return e.hasOwnProperty("animation")?J(e.animation)?n=o.curStats[r]=He(e.animation,s.defaultAnimOptions):o.curStats[r]=(n=!!e.animation)?He({},s.defaultAnimOptions):null:o.curStats[r]=(n=!!s.defaultEnabled)?He({},s.defaultAnimOptions):null,n}i.hasOwnProperty(t)&&(J(n=i[t])?(o.curStats[l]=!0,r=o.curStats[a]=h(n),s.anim&&(o.curStats[a].animation=p(n))):(r=o.curStats[l]=!!n)&&(o.curStats[a]=h({}),s.anim&&(o.curStats[a].animation=p({}))),de(r,u[t])&&(u[t]=r,c.effect=!0))}),Be(o,c)}function qe(n,r,s){var o={options:{anchorSE:[],socketSE:[],socketGravitySE:[],plugSE:[],plugColorSE:[],plugSizeSE:[],plugOutlineEnabledSE:[],plugOutlineColorSE:[],plugOutlineSizeSE:[],labelSEM:["","",""]},optionIsAttach:{anchorSE:[!1,!1],labelSEM:[!1,!1,!1]},curStats:{},aplStats:{},attachments:[],events:{},reflowTargets:[]};Ve(o.curStats,se),Ve(o.aplStats,se),Object.keys(e).forEach(function(t){var n=e[t].stats;Ve(o.curStats,n),Ve(o.aplStats,n),o.options[t]=!1}),Ve(o.curStats,oe),Ve(o.aplStats,oe),o.curStats.show_effect=ie,o.curStats.show_animOptions=pe(t[ie].defaultAnimOptions),Object.defineProperty(this,"_id",{value:++ue}),o._id=this._id,ae[this._id]=o,1===arguments.length&&(s=n,n=null),s=s||{},(n||r)&&(s=pe(s),n&&(s.start=n),r&&(s.end=r)),o.isShown=o.aplStats.show_on=!s.hide,this.setOptions(s)}e={dash:{stats:{dash_len:{},dash_gap:{},dash_maxOffset:{}},anim:!0,defaultAnimOptions:{duration:1e3,timing:"linear"},optionsConf:[["type","len","number",null,null,null,function(e){return 0<e}],["type","gap","number",null,null,null,function(e){return 0<e}]],init:function(t){Me(t,"apl_line_strokeWidth",e.dash.update),t.lineFace.style.strokeDashoffset=0,e.dash.update(t)},remove:function(t){var n=t.curStats;Te(t,"apl_line_strokeWidth",e.dash.update),n.dash_animId&&(te.remove(n.dash_animId),n.dash_animId=null),t.lineFace.style.strokeDasharray="none",t.lineFace.style.strokeDashoffset=0,Ve(t.aplStats,e.dash.stats)},update:function(e){var t,n=e.curStats,r=e.aplStats,s=r.dash_options,o=!1;n.dash_len=s.len||2*r.line_strokeWidth,n.dash_gap=s.gap||r.line_strokeWidth,n.dash_maxOffset=n.dash_len+n.dash_gap,o=Le(e,r,"dash_len",n.dash_len)||o,(o=Le(e,r,"dash_gap",n.dash_gap)||o)&&(e.lineFace.style.strokeDasharray=r.dash_len+","+r.dash_gap),n.dash_animOptions?(o=Le(e,r,"dash_maxOffset",n.dash_maxOffset),r.dash_animOptions&&(o||de(n.dash_animOptions,r.dash_animOptions))&&(n.dash_animId&&(t=te.stop(n.dash_animId),te.remove(n.dash_animId)),r.dash_animOptions=null),r.dash_animOptions||(n.dash_animId=te.add(function(e){return(1-e)*r.dash_maxOffset+"px"},function(t){e.lineFace.style.strokeDashoffset=t},n.dash_animOptions.duration,0,n.dash_animOptions.timing,!1,t),r.dash_animOptions=pe(n.dash_animOptions))):r.dash_animOptions&&(n.dash_animId&&(te.remove(n.dash_animId),n.dash_animId=null),e.lineFace.style.strokeDashoffset=0,r.dash_animOptions=null)}},gradient:{stats:{gradient_colorSE:{hasSE:!0},gradient_pointSE:{hasSE:!0,hasProps:!0}},optionsConf:[["type","startColor","string","colorSE",0,null,null,!0],["type","endColor","string","colorSE",1,null,null,!0]],init:function(t){var n,r=t.baseWindow.document,s=p+"-"+t._id+"-gradient";t.efc_gradient_gradient=n=t.defs.appendChild(r.createElementNS(W,"linearGradient")),n.id=s,n.gradientUnits.baseVal=SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE,[n.x1,n.y1,n.x2,n.y2].forEach(function(e){e.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0)}),t.efc_gradient_stopSE=[0,1].map(function(e){var n=t.efc_gradient_gradient.appendChild(r.createElementNS(W,"stop"));try{n.offset.baseVal=e}catch(t){if(t.code!==DOMException.NO_MODIFICATION_ALLOWED_ERR)throw t;n.setAttribute("offset",e)}return n}),Me(t,"cur_plug_colorSE",e.gradient.update),Me(t,"apl_path",e.gradient.update),t.curStats.line_altColor=!0,t.lineFace.style.stroke="url(#"+s+")",e.gradient.update(t)},remove:function(t){t.efc_gradient_gradient&&(t.defs.removeChild(t.efc_gradient_gradient),t.efc_gradient_gradient=t.efc_gradient_stopSE=null),Te(t,"cur_plug_colorSE",e.gradient.update),Te(t,"apl_path",e.gradient.update),t.curStats.line_altColor=!1,t.lineFace.style.stroke=t.curStats.line_color,Ve(t.aplStats,e.gradient.stats)},update:function(e){var t,n,r=e.curStats,s=e.aplStats,o=s.gradient_options,i=e.pathList.animVal||e.pathList.baseVal;[0,1].forEach(function(e){r.gradient_colorSE[e]=o.colorSE[e]||r.plug_colorSE[e]}),r.gradient_pointSE[0]={x:(n=i[0][0]).x,y:n.y},n=(t=i[i.length-1])[t.length-1],r.gradient_pointSE[1]={x:n.x,y:n.y},[0,1].forEach(function(t){var n;Le(e,s.gradient_colorSE,t,n=r.gradient_colorSE[t])&&(Y?(n=fe(n),e.efc_gradient_stopSE[t].style.stopColor=n[1],e.efc_gradient_stopSE[t].style.stopOpacity=n[0]):e.efc_gradient_stopSE[t].style.stopColor=n),["x","y"].forEach(function(o){(n=r.gradient_pointSE[t][o])!==s.gradient_pointSE[t][o]&&(e.efc_gradient_gradient[o+(t+1)].baseVal.value=s.gradient_pointSE[t][o]=n)})})}},dropShadow:{stats:{dropShadow_dx:{},dropShadow_dy:{},dropShadow_blur:{},dropShadow_color:{},dropShadow_opacity:{},dropShadow_x:{},dropShadow_y:{}},optionsConf:[["type","dx",null,null,null,2],["type","dy",null,null,null,4],["type","blur",null,null,null,3,function(e){return 0<=e}],["type","color",null,null,null,"#000",null,!0],["type","opacity",null,null,null,.8,function(e){return 0<=e&&e<=1}]],init:function(t){var n,r,s,o,i,l=t.defs,a=p+"-"+t._id+"-dropShadow",c=(n=t.baseWindow.document,r=a,i={},"boolean"!=typeof u&&(u=!!window.SVGFEDropShadowElement&&!Y),i.elmsAppend=[i.elmFilter=s=n.createElementNS(W,"filter")],s.filterUnits.baseVal=SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE,s.x.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),s.y.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),s.width.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PERCENTAGE,100),s.height.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PERCENTAGE,100),s.id=r,u?(i.elmOffset=i.elmBlur=o=s.appendChild(n.createElementNS(W,"feDropShadow")),i.styleFlood=o.style):(i.elmBlur=s.appendChild(n.createElementNS(W,"feGaussianBlur")),i.elmOffset=o=s.appendChild(n.createElementNS(W,"feOffset")),o.result.baseVal="offsetblur",o=s.appendChild(n.createElementNS(W,"feFlood")),i.styleFlood=o.style,(o=s.appendChild(n.createElementNS(W,"feComposite"))).in2.baseVal="offsetblur",o.operator.baseVal=SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_IN,(o=s.appendChild(n.createElementNS(W,"feMerge"))).appendChild(n.createElementNS(W,"feMergeNode")),o.appendChild(n.createElementNS(W,"feMergeNode")).in1.baseVal="SourceGraphic"),i);["elmFilter","elmOffset","elmBlur","styleFlood","elmsAppend"].forEach(function(e){t["efc_dropShadow_"+e]=c[e]}),c.elmsAppend.forEach(function(e){l.appendChild(e)}),t.face.setAttribute("filter","url(#"+a+")"),Me(t,"new_edge4viewBox",e.dropShadow.adjustEdge),e.dropShadow.update(t)},remove:function(t){var n=t.defs;t.efc_dropShadow_elmsAppend&&(t.efc_dropShadow_elmsAppend.forEach(function(e){n.removeChild(e)}),t.efc_dropShadow_elmFilter=t.efc_dropShadow_elmOffset=t.efc_dropShadow_elmBlur=t.efc_dropShadow_styleFlood=t.efc_dropShadow_elmsAppend=null),Te(t,"new_edge4viewBox",e.dropShadow.adjustEdge),Be(t,{}),t.face.removeAttribute("filter"),Ve(t.aplStats,e.dropShadow.stats)},update:function(e){var t,n,r=e.curStats,s=e.aplStats,o=s.dropShadow_options;r.dropShadow_dx=t=o.dx,Le(e,s,"dropShadow_dx",t)&&(e.efc_dropShadow_elmOffset.dx.baseVal=t,n=!0),r.dropShadow_dy=t=o.dy,Le(e,s,"dropShadow_dy",t)&&(e.efc_dropShadow_elmOffset.dy.baseVal=t,n=!0),r.dropShadow_blur=t=o.blur,Le(e,s,"dropShadow_blur",t)&&(e.efc_dropShadow_elmBlur.setStdDeviation(t,t),n=!0),n&&Be(e,{}),r.dropShadow_color=t=o.color,Le(e,s,"dropShadow_color",t)&&(e.efc_dropShadow_styleFlood.floodColor=t),r.dropShadow_opacity=t=o.opacity,Le(e,s,"dropShadow_opacity",t)&&(e.efc_dropShadow_styleFlood.floodOpacity=t)},adjustEdge:function(e,t){var n,r,s=e.curStats,o=e.aplStats;null!=s.dropShadow_dx&&((r={x1:t.x1-(n=3*s.dropShadow_blur)+s.dropShadow_dx,y1:t.y1-n+s.dropShadow_dy,x2:t.x2+n+s.dropShadow_dx,y2:t.y2+n+s.dropShadow_dy}).x1<t.x1&&(t.x1=r.x1),r.y1<t.y1&&(t.y1=r.y1),r.x2>t.x2&&(t.x2=r.x2),r.y2>t.y2&&(t.y2=r.y2),["x","y"].forEach(function(n){var r,i="dropShadow_"+n;s[i]=r=t[n+"1"],Le(e,o,i,r)&&(e.efc_dropShadow_elmFilter[n].baseVal.value=r)}))}}},Object.keys(e).forEach(function(t){var n=e[t],r=n.stats;r[t+"_enabled"]={iniValue:!1},r[t+"_options"]={hasProps:!0},n.anim&&(r[t+"_animOptions"]={},r[t+"_animId"]={})}),t={none:{defaultAnimOptions:{},init:function(e,n){var r=e.curStats;r.show_animId&&(te.remove(r.show_animId),r.show_animId=null),t.none.start(e,n)},start:function(e,n){t.none.stop(e,!0)},stop:function(e,t,n){return n=null!=n?n:e.aplStats.show_on,e.curStats.show_inAnim=!1,t&&je(e,n),n?1:0}},fade:{defaultAnimOptions:{duration:300,timing:"linear"},init:function(e,n){var r=e.curStats,s=e.aplStats;r.show_animId&&te.remove(r.show_animId),r.show_animId=te.add(function(e){return e},function(n,r){r?t.fade.stop(e,!0):(e.svg.style.opacity=n+"",q&&(Ae(e,e.svg),Pe(e)))},s.show_animOptions.duration,1,s.show_animOptions.timing,null,!1),t.fade.start(e,n)},start:function(e,t){var n,r=e.curStats;r.show_inAnim&&(n=te.stop(r.show_animId)),je(e,1),r.show_inAnim=!0,te.start(r.show_animId,!e.aplStats.show_on,null!=t?t:n)},stop:function(e,t,n){var r,s=e.curStats;return n=null!=n?n:e.aplStats.show_on,r=s.show_inAnim?te.stop(s.show_animId):n?1:0,s.show_inAnim=!1,t&&(e.svg.style.opacity=n?"":"0",je(e,n)),r}},draw:{defaultAnimOptions:{duration:500,timing:[.58,0,.42,1]},init:function(e,n){var r=e.curStats,s=e.aplStats,o=e.pathList.baseVal,i=ke(o),l=i.segsLen,a=i.lenAll;r.show_animId&&te.remove(r.show_animId),r.show_animId=te.add(function(e){var t,n,r,s,i=-1;if(0===e)n=[[o[0][0],o[0][0]]];else if(1===e)n=o;else{for(t=a*e,n=[];t>=l[++i];)n.push(o[i]),t-=l[i];t&&(2===(r=o[i]).length?n.push([r[0],be(r[0],r[1],t/l[i])]):(s=Se(r[0],r[1],r[2],r[3],Ee(r[0],r[1],r[2],r[3],t)),n.push([r[0],s.fromP1,s.fromP2,s])))}return n},function(n,r){r?t.draw.stop(e,!0):(e.pathList.animVal=n,Be(e,{path:!0}))},s.show_animOptions.duration,1,s.show_animOptions.timing,null,!1),t.draw.start(e,n)},start:function(e,n){var r,s=e.curStats;s.show_inAnim&&(r=te.stop(s.show_animId)),je(e,1),s.show_inAnim=!0,Me(e,"apl_position",t.draw.update),te.start(s.show_animId,!e.aplStats.show_on,null!=n?n:r)},stop:function(e,t,n){var r,s=e.curStats;return n=null!=n?n:e.aplStats.show_on,r=s.show_inAnim?te.stop(s.show_animId):n?1:0,s.show_inAnim=!1,t&&(e.pathList.animVal=n?null:[[e.pathList.baseVal[0][0],e.pathList.baseVal[0][0]]],Be(e,{path:!0}),je(e,n)),r},update:function(e){Te(e,"apl_position",t.draw.update),e.curStats.show_inAnim?t.draw.init(e,t.draw.stop(e)):e.aplStats.show_animOptions={}}}},function(){function t(e){return function(t){var n={};n[e]=t,this.setOptions(n)}}[["start","anchorSE",0],["end","anchorSE",1],["color","lineColor"],["size","lineSize"],["startSocketGravity","socketGravitySE",0],["endSocketGravity","socketGravitySE",1],["startPlugColor","plugColorSE",0],["endPlugColor","plugColorSE",1],["startPlugSize","plugSizeSE",0],["endPlugSize","plugSizeSE",1],["outline","lineOutlineEnabled"],["outlineColor","lineOutlineColor"],["outlineSize","lineOutlineSize"],["startPlugOutline","plugOutlineEnabledSE",0],["endPlugOutline","plugOutlineEnabledSE",1],["startPlugOutlineColor","plugOutlineColorSE",0],["endPlugOutlineColor","plugOutlineColorSE",1],["startPlugOutlineSize","plugOutlineSizeSE",0],["endPlugOutlineSize","plugOutlineSizeSE",1]].forEach(function(e){var n=e[0],r=e[1],s=e[2];Object.defineProperty(qe.prototype,n,{get:function(){var e=null!=s?ae[this._id].options[r][s]:r?ae[this._id].options[r]:ae[this._id].options[n];return null==e?P:pe(e)},set:t(n),enumerable:!0})}),[["path",E],["startSocket",_,"socketSE",0],["endSocket",_,"socketSE",1],["startPlug",T,"plugSE",0],["endPlug",T,"plugSE",1]].forEach(function(e){var n=e[0],r=e[1],s=e[2],o=e[3];Object.defineProperty(qe.prototype,n,{get:function(){var e,t=null!=o?ae[this._id].options[s][o]:s?ae[this._id].options[s]:ae[this._id].options[n];return t?Object.keys(r).some(function(n){return r[n]===t&&(e=n,!0)})?e:new Error("It's broken"):P},set:t(n),enumerable:!0})}),Object.keys(e).forEach(function(n){var r=e[n];Object.defineProperty(qe.prototype,n,{get:function(){var e,t,s=ae[this._id].options[n];return J(s)?(e=s,t=r.optionsConf.reduce(function(t,n){var r,s=n[1],o=n[2],i=n[3],l=n[4],a=null!=l?e[i][l]:i?e[i]:e[s];return t[s]="id"===n[0]?a?Object.keys(o).some(function(e){return o[e]===a&&(r=e,!0)})?r:new Error("It's broken"):P:null==a?P:pe(a),t},{}),r.anim&&(t.animation=pe(e.animation)),t):s},set:t(n),enumerable:!0})}),["startLabel","endLabel","middleLabel"].forEach(function(e,n){Object.defineProperty(qe.prototype,e,{get:function(){var e=ae[this._id],t=e.options;return t.labelSEM[n]&&!e.optionIsAttach.labelSEM[n]?ce[t.labelSEM[n]._id].text:t.labelSEM[n]||""},set:t(e),enumerable:!0})})}(),qe.prototype.setOptions=function(e){return Ge(ae[this._id],e),this},qe.prototype.position=function(){return Be(ae[this._id],{position:!0}),this},qe.prototype.remove=function(){var t=ae[this._id],n=t.curStats;Object.keys(e).forEach(function(e){var t=e+"_animId";n[t]&&te.remove(n[t])}),n.show_animId&&te.remove(n.show_animId),t.attachments.slice().forEach(function(e){We(t,e)}),t.baseWindow&&t.svg&&t.baseWindow.document.body.removeChild(t.svg),delete ae[this._id]},qe.prototype.show=function(e,t){return ze(ae[this._id],!0,e,t),this},qe.prototype.hide=function(e,t){return ze(ae[this._id],!1,e,t),this},o=function(e){e&&ce[e._id]&&(e.boundTargets.slice().forEach(function(t){We(t.props,e,!0)}),e.conf.remove&&e.conf.remove(e),delete ce[e._id])},r=function(){function e(e,t){var n,r={conf:e,curStats:{},aplStats:{},boundTargets:[]},s={};e.argOptions.every(function(e){return!(!t.length||("string"==typeof e.type?typeof t[0]!==e.type:"function"!=typeof e.type||!e.type(t[0]))||(s[e.optionName]=t.shift(),0))}),n=t.length&&J(t[0])?pe(t[0]):{},Object.keys(s).forEach(function(e){n[e]=s[e]}),e.stats&&(Ve(r.curStats,e.stats),Ve(r.aplStats,e.stats)),Object.defineProperty(this,"_id",{value:++he}),Object.defineProperty(this,"isRemoved",{get:function(){return!ce[this._id]}}),r._id=this._id,e.init&&!e.init(r,n)||(ce[this._id]=r)}return e.prototype.remove=function(){var e=this,t=ce[e._id];t&&(t.boundTargets.slice().forEach(function(e){t.conf.removeOption(t,e)}),Ie(function(){var t=ce[e._id];t&&(console.error("LeaderLineAttachment was not removed by removeOption"),o(t))}))},e}(),window.LeaderLineAttachment=r,s=function(e,t){return e instanceof r&&(!(e.isRemoved||t&&ce[e._id].conf.type!==t)||null)},n={pointAnchor:{type:"anchor",argOptions:[{optionName:"element",type:ge}],init:function(e,t){return e.element=n.pointAnchor.checkElement(t.element),e.x=n.pointAnchor.parsePercent(t.x,!0)||[.5,!0],e.y=n.pointAnchor.parsePercent(t.y,!0)||[.5,!0],!0},removeOption:function(e,t){var s=t.props,o={},i=e.element,l=s.options.anchorSE["start"===t.optionName?1:0];i===l&&(i=l===document.body?new r(n.pointAnchor,[i]):document.body),o[t.optionName]=i,Ge(s,o)},getBBoxNest:function(e,t){var n=_e(e.element,t.baseWindow),r=n.width,s=n.height;return n.width=n.height=0,n.left=n.right=n.left+e.x[0]*(e.x[1]?r:1),n.top=n.bottom=n.top+e.y[0]*(e.y[1]?s:1),n},parsePercent:function(e,t){var n,r,s=!1;return ee(e)?r=e:"string"==typeof e&&(n=$.exec(e))&&n[2]&&(s=0!=(r=parseFloat(n[1])/100)),null!=r&&(t||0<=r)?[r,s]:null},checkElement:function(e){if(null==e)e=document.body;else if(!ge(e))throw new Error("`element` must be Element");return e}},areaAnchor:{type:"anchor",argOptions:[{optionName:"element",type:ge},{optionName:"shape",type:"string"}],stats:{color:{},strokeWidth:{},elementWidth:{},elementHeight:{},elementLeft:{},elementTop:{},pathListRel:{},bBoxRel:{},pathData:{},viewBoxBBox:{hasProps:!0},dashLen:{},dashGap:{}},init:function(e,t){var r,s,o,i=[];return e.element=n.pointAnchor.checkElement(t.element),"string"==typeof t.color&&(e.color=t.color.trim()),"string"==typeof t.fillColor&&(e.fill=t.fillColor.trim()),ee(t.size)&&0<=t.size&&(e.size=t.size),t.dash&&(e.dash=!0,ee(t.dash.len)&&0<t.dash.len&&(e.dashLen=t.dash.len),ee(t.dash.gap)&&0<t.dash.gap&&(e.dashGap=t.dash.gap)),"circle"===t.shape?e.shape=t.shape:"polygon"===t.shape&&Array.isArray(t.points)&&3<=t.points.length&&t.points.every(function(t){var r={};return!(!(r.x=n.pointAnchor.parsePercent(t[0],!0))||!(r.y=n.pointAnchor.parsePercent(t[1],!0))||(i.push(r),(r.x[1]||r.y[1])&&(e.hasRatio=!0),0))})?(e.shape=t.shape,e.points=i):(e.shape="rect",e.radius=ee(t.radius)&&0<=t.radius?t.radius:0),"rect"!==e.shape&&"circle"!==e.shape||(e.x=n.pointAnchor.parsePercent(t.x,!0)||[-.05,!0],e.y=n.pointAnchor.parsePercent(t.y,!0)||[-.05,!0],e.width=n.pointAnchor.parsePercent(t.width)||[1.1,!0],e.height=n.pointAnchor.parsePercent(t.height)||[1.1,!0],(e.x[1]||e.y[1]||e.width[1]||e.height[1])&&(e.hasRatio=!0)),e.svg=s=(r=e.element.ownerDocument).createElementNS(W,"svg"),s.className.baseVal=p+"-areaAnchor",s.viewBox.baseVal||s.setAttribute("viewBox","0 0 0 0"),e.path=s.appendChild(r.createElementNS(W,"path")),e.path.style.fill=e.fill||"none",e.isShown=!1,s.style.visibility="hidden",r.body.appendChild(s),Ue(o=r.defaultView),e.bodyOffset=De(o),e.updateColor=function(){var t,n=e.aplStats,r=e.boundTargets.length?e.boundTargets[0].props.curStats:null;e.curStats.color=t=e.color||(r?r.line_color:X.lineColor),Le(e,n,"color",t)&&(e.path.style.stroke=t)},e.updateShow=function(){je(e,e.boundTargets.some(function(e){return!0===e.props.isShown}))},!0},bind:function(e,t){var n=t.props;return e.color||Me(n,"cur_line_color",e.updateColor),Me(n,"svgShow",e.updateShow),Ie(function(){e.updateColor(),e.updateShow()}),!0},unbind:function(e,t){var r=t.props;e.color||Te(r,"cur_line_color",e.updateColor),Te(r,"svgShow",e.updateShow),1<e.boundTargets.length&&Ie(function(){e.updateColor(),e.updateShow(),n.areaAnchor.update(e)&&e.boundTargets.forEach(function(e){Be(e.props,{position:!0})})})},removeOption:function(e,t){n.pointAnchor.removeOption(e,t)},remove:function(e){e.boundTargets.length&&(console.error("LeaderLineAttachment was not unbound by remove"),e.boundTargets.forEach(function(t){n.areaAnchor.unbind(e,t)})),e.svg.parentNode.removeChild(e.svg)},getStrokeWidth:function(e,t){return n.areaAnchor.update(e)&&1<e.boundTargets.length&&Ie(function(){e.boundTargets.forEach(function(e){e.props!==t&&Be(e.props,{position:!0})})}),e.curStats.strokeWidth},getPathData:function(e,t){var n=_e(e.element,t.baseWindow);return Ce(e.curStats.pathListRel,function(e){e.x+=n.left,e.y+=n.top})},getBBoxNest:function(e,t){var n=_e(e.element,t.baseWindow),r=e.curStats.bBoxRel;return{left:r.left+n.left,top:r.top+n.top,right:r.right+n.left,bottom:r.bottom+n.top,width:r.width,height:r.height}},update:function(e){var t,n,r,s,o,i,l,a,u,c,h,d,p,f,g,m,y,_,v,b,w,S,x,E,C,k,O,M,T,I,A,P,R=e.curStats,V=e.aplStats,L=e.boundTargets.length?e.boundTargets[0].props.curStats:null,D={};if(D.strokeWidth=Le(e,R,"strokeWidth",null!=e.size?e.size:L?L.line_strokeWidth:X.lineSize),t=me(e.element),D.elementWidth=Le(e,R,"elementWidth",t.width),D.elementHeight=Le(e,R,"elementHeight",t.height),D.elementLeft=Le(e,R,"elementLeft",t.left),D.elementTop=Le(e,R,"elementTop",t.top),D.strokeWidth||e.hasRatio&&(D.elementWidth||D.elementHeight)){switch(e.shape){case"rect":(b={left:e.x[0]*(e.x[1]?t.width:1),top:e.y[0]*(e.y[1]?t.height:1),width:e.width[0]*(e.width[1]?t.width:1),height:e.height[0]*(e.height[1]?t.height:1)}).right=b.left+b.width,b.bottom=b.top+b.height,E=R.strokeWidth/2,S=(x=Math.min(b.width,b.height))?x/2*Math.SQRT2+E:0,(w=e.radius?e.radius<=S?e.radius:S:0)?(k=w-(C=(w-E)/Math.SQRT2),R.pathListRel=[[(O=[{x:b.left-k,y:b.top+C},{x:b.left+C,y:b.top-k},{x:b.right-C,y:b.top-k},{x:b.right+k,y:b.top+C},{x:b.right+k,y:b.bottom-C},{x:b.right-C,y:b.bottom+k},{x:b.left+C,y:b.bottom+k},{x:b.left-k,y:b.bottom-C}])[0],{x:O[0].x,y:O[0].y-(M=w*H)},{x:O[1].x-M,y:O[1].y},O[1]]],O[1].x!==O[2].x&&R.pathListRel.push([O[1],O[2]]),R.pathListRel.push([O[2],{x:O[2].x+M,y:O[2].y},{x:O[3].x,y:O[3].y-M},O[3]]),O[3].y!==O[4].y&&R.pathListRel.push([O[3],O[4]]),R.pathListRel.push([O[4],{x:O[4].x,y:O[4].y+M},{x:O[5].x+M,y:O[5].y},O[5]]),O[5].x!==O[6].x&&R.pathListRel.push([O[5],O[6]]),R.pathListRel.push([O[6],{x:O[6].x-M,y:O[6].y},{x:O[7].x,y:O[7].y+M},O[7]]),O[7].y!==O[0].y&&R.pathListRel.push([O[7],O[0]]),R.pathListRel.push([]),O=[{x:b.left-(k=w-C+R.strokeWidth/2),y:b.top-k},{x:b.right+k,y:b.bottom+k}]):(R.pathListRel=[[(O=[{x:b.left-(k=R.strokeWidth/2),y:b.top-k},{x:b.right+k,y:b.bottom+k}])[0],{x:O[1].x,y:O[0].y}],[{x:O[1].x,y:O[0].y},O[1]],[O[1],{x:O[0].x,y:O[1].y}],[]],O=[{x:b.left-R.strokeWidth,y:b.top-R.strokeWidth},{x:b.right+R.strokeWidth,y:b.bottom+R.strokeWidth}]),R.bBoxRel={left:O[0].x,top:O[0].y,right:O[1].x,bottom:O[1].y,width:O[1].x-O[0].x,height:O[1].y-O[0].y};break;case"circle":(l={left:e.x[0]*(e.x[1]?t.width:1),top:e.y[0]*(e.y[1]?t.height:1),width:e.width[0]*(e.width[1]?t.width:1),height:e.height[0]*(e.height[1]?t.height:1)}).width||l.height||(l.width=l.height=10),l.width||(l.width=l.height),l.height||(l.height=l.width),l.right=l.left+l.width,l.bottom=l.top+l.height,a=l.left+l.width/2,u=l.top+l.height/2,f=R.strokeWidth/2,m=l.height/2,c=(g=l.width/2)*Math.SQRT2+f,h=m*Math.SQRT2+f,R.pathListRel=[[(v=[{x:a-c,y:u},{x:a,y:u-h},{x:a+c,y:u},{x:a,y:u+h}])[0],{x:v[0].x,y:v[0].y-(p=h*H)},{x:v[1].x-(d=c*H),y:v[1].y},v[1]],[v[1],{x:v[1].x+d,y:v[1].y},{x:v[2].x,y:v[2].y-p},v[2]],[v[2],{x:v[2].x,y:v[2].y+p},{x:v[3].x+d,y:v[3].y},v[3]],[v[3],{x:v[3].x-d,y:v[3].y},{x:v[0].x,y:v[0].y+p},v[0]],[]],R.bBoxRel={left:(v=[{x:l.left-(y=c-g+R.strokeWidth/2),y:l.top-(_=h-m+R.strokeWidth/2)},{x:l.right+y,y:l.bottom+_}])[0].x,top:v[0].y,right:v[1].x,bottom:v[1].y,width:v[1].x-v[0].x,height:v[1].y-v[0].y};break;case"polygon":e.points.forEach(function(e){var n=e.x[0]*(e.x[1]?t.width:1),o=e.y[0]*(e.y[1]?t.height:1);r?(n<r.left&&(r.left=n),n>r.right&&(r.right=n),o<r.top&&(r.top=o),o>r.bottom&&(r.bottom=o)):r={left:n,right:n,top:o,bottom:o},s?R.pathListRel.push([s,{x:n,y:o}]):R.pathListRel=[],s={x:n,y:o}}),R.pathListRel.push([]),R.bBoxRel={left:(i=[{x:r.left-(o=R.strokeWidth/2),y:r.top-o},{x:r.right+o,y:r.bottom+o}])[0].x,top:i[0].y,right:i[1].x,bottom:i[1].y,width:i[1].x-i[0].x,height:i[1].y-i[0].y}}D.pathListRel=D.bBoxRel=!0}return(D.pathListRel||D.elementLeft||D.elementTop)&&(R.pathData=Ce(R.pathListRel,function(e){e.x+=t.left,e.y+=t.top})),Le(e,V,"strokeWidth",n=R.strokeWidth)&&(e.path.style.strokeWidth=n+"px"),Oe(n=R.pathData,V.pathData)&&(e.path.setPathData(n),V.pathData=n,D.pathData=!0),e.dash&&(!D.pathData&&(!D.strokeWidth||e.dashLen&&e.dashGap)||(R.dashLen=e.dashLen||2*R.strokeWidth,R.dashGap=e.dashGap||R.strokeWidth),D.dash=Le(e,V,"dashLen",R.dashLen)||D.dash,D.dash=Le(e,V,"dashGap",R.dashGap)||D.dash,D.dash&&(e.path.style.strokeDasharray=V.dashLen+","+V.dashGap)),I=V.viewBoxBBox,A=e.svg.viewBox.baseVal,P=e.svg.style,(T=R.viewBoxBBox).x=R.bBoxRel.left+t.left,T.y=R.bBoxRel.top+t.top,T.width=R.bBoxRel.width,T.height=R.bBoxRel.height,["x","y","width","height"].forEach(function(t){(n=T[t])!==I[t]&&(A[t]=I[t]=n,P[N[t]]=n+("x"===t||"y"===t?e.bodyOffset[t]:0)+"px")}),D.strokeWidth||D.pathListRel||D.bBoxRel}},mouseHoverAnchor:{type:"anchor",argOptions:[{optionName:"element",type:ge},{optionName:"showEffectName",type:"string"}],style:{backgroundImage:"url('data:image/svg+xml;charset=utf-8;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cG9seWdvbiBwb2ludHM9IjI0LDAgMCw4IDgsMTEgMCwxOSA1LDI0IDEzLDE2IDE2LDI0IiBmaWxsPSJjb3JhbCIvPjwvc3ZnPg==')",backgroundSize:"",backgroundRepeat:"no-repeat",backgroundColor:"#f8f881",cursor:"default"},hoverStyle:{backgroundImage:"none",backgroundColor:"#fadf8f"},padding:{top:1,right:15,bottom:1,left:2},minHeight:15,backgroundPosition:{right:2,top:2},backgroundSize:{width:12,height:12},dirKeys:[["top","Top"],["right","Right"],["bottom","Bottom"],["left","Left"]],init:function(e,r){var s,o,i,l,a,u,c,h,d,p,f,g=n.mouseHoverAnchor,m={};if(e.element=n.pointAnchor.checkElement(r.element),!((p=(h=e.element).ownerDocument)&&(d=p.defaultView)&&d.HTMLElement&&h instanceof d.HTMLElement))throw new Error("`element` must be HTML element");return g.style.backgroundSize=g.backgroundSize.width+"px "+g.backgroundSize.height+"px",["style","hoverStyle"].forEach(function(t){var n=g[t];e[t]=Object.keys(n).reduce(function(e,t){return e[t]=n[t],e},{})}),"inline"===(s=e.element.ownerDocument.defaultView.getComputedStyle(e.element,"")).display?e.style.display="inline-block":"none"===s.display&&(e.style.display="block"),n.mouseHoverAnchor.dirKeys.forEach(function(t){var n=t[0],r="padding"+t[1];parseFloat(s[r])<g.padding[n]&&(e.style[r]=g.padding[n]+"px")}),e.style.display&&(l=e.element.style.display,e.element.style.display=e.style.display),n.mouseHoverAnchor.dirKeys.forEach(function(t){var n="padding"+t[1];e.style[n]&&(m[n]=e.element.style[n],e.element.style[n]=e.style[n])}),(i=e.element.getBoundingClientRect()).height<g.minHeight&&(q?(f=g.minHeight,"content-box"===s.boxSizing?f-=parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth)+parseFloat(s.paddingTop)+parseFloat(s.paddingBottom):"padding-box"===s.boxSizing&&(f-=parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth)),e.style.height=f+"px"):e.style.height=parseFloat(s.height)+(g.minHeight-i.height)+"px"),e.style.backgroundPosition=Y?i.width-g.backgroundSize.width-g.backgroundPosition.right+"px "+g.backgroundPosition.top+"px":"right "+g.backgroundPosition.right+"px top "+g.backgroundPosition.top+"px",e.style.display&&(e.element.style.display=l),n.mouseHoverAnchor.dirKeys.forEach(function(t){var n="padding"+t[1];e.style[n]&&(e.element.style[n]=m[n])}),["style","hoverStyle"].forEach(function(t){var n=e[t],s=r[t];J(s)&&Object.keys(s).forEach(function(e){"string"==typeof s[e]||ee(s[e])?n[e]=s[e]:null==s[e]&&delete n[e]})}),"function"==typeof r.onSwitch&&(c=r.onSwitch),r.showEffectName&&t[r.showEffectName]&&(e.showEffectName=a=r.showEffectName),u=r.animOptions,e.elmStyle=o=e.element.style,e.mouseenter=function(t){e.hoverStyleSave=g.getStyles(o,Object.keys(e.hoverStyle)),g.setStyles(o,e.hoverStyle),e.boundTargets.forEach(function(e){ze(e.props,!0,a,u)}),c&&c(t)},e.mouseleave=function(t){g.setStyles(o,e.hoverStyleSave),e.boundTargets.forEach(function(e){ze(e.props,!1,a,u)}),c&&c(t)},!0},bind:function(e,t){var r,s,o,i,l;return t.props.svg?n.mouseHoverAnchor.llShow(t.props,!1,e.showEffectName):Ie(function(){n.mouseHoverAnchor.llShow(t.props,!1,e.showEffectName)}),e.enabled||(e.styleSave=n.mouseHoverAnchor.getStyles(e.elmStyle,Object.keys(e.style)),n.mouseHoverAnchor.setStyles(e.elmStyle,e.style),e.removeEventListener=(s=e.mouseenter,o=e.mouseleave,"onmouseenter"in(r=e.element)&&"onmouseleave"in r?(r.addEventListener("mouseenter",s,!1),r.addEventListener("mouseleave",o,!1),function(){r.removeEventListener("mouseenter",s,!1),r.removeEventListener("mouseleave",o,!1)}):(console.warn("mouseenter and mouseleave events polyfill is enabled."),r.addEventListener("mouseover",i=function(e){e.relatedTarget&&(e.relatedTarget===this||this.compareDocumentPosition(e.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||s.apply(this,arguments)}),r.addEventListener("mouseout",l=function(e){e.relatedTarget&&(e.relatedTarget===this||this.compareDocumentPosition(e.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||o.apply(this,arguments)}),function(){r.removeEventListener("mouseover",i,!1),r.removeEventListener("mouseout",l,!1)})),e.enabled=!0),!0},unbind:function(e,t){e.enabled&&e.boundTargets.length<=1&&(e.removeEventListener(),n.mouseHoverAnchor.setStyles(e.elmStyle,e.styleSave),e.enabled=!1),n.mouseHoverAnchor.llShow(t.props,!0,e.showEffectName)},removeOption:function(e,t){n.pointAnchor.removeOption(e,t)},remove:function(e){e.boundTargets.length&&(console.error("LeaderLineAttachment was not unbound by remove"),e.boundTargets.forEach(function(t){n.mouseHoverAnchor.unbind(e,t)}))},getBBoxNest:function(e,t){return _e(e.element,t.baseWindow)},llShow:function(e,n,r){t[r||e.curStats.show_effect].stop(e,!0,n),e.aplStats.show_on=n},getStyles:function(e,t){return t.reduce(function(t,n){return t[n]=e[n],t},{})},setStyles:function(e,t){Object.keys(t).forEach(function(n){e[n]=t[n]})}},captionLabel:{type:"label",argOptions:[{optionName:"text",type:"string"}],stats:{color:{},x:{},y:{}},textStyleProps:["fontFamily","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","kerning","letterSpacing","wordSpacing","textDecoration"],init:function(e,t){return"string"==typeof t.text&&(e.text=t.text.trim()),!!e.text&&("string"==typeof t.color&&(e.color=t.color.trim()),e.outlineColor="string"==typeof t.outlineColor?t.outlineColor.trim():"#fff",Array.isArray(t.offset)&&ee(t.offset[0])&&ee(t.offset[1])&&(e.offset={x:t.offset[0],y:t.offset[1]}),ee(t.lineOffset)&&(e.lineOffset=t.lineOffset),n.captionLabel.textStyleProps.forEach(function(n){null!=t[n]&&(e[n]=t[n])}),e.updateColor=function(t){n.captionLabel.updateColor(e,t)},e.updateSocketXY=function(t){var n,r,s,o,i=e.curStats,l=e.aplStats,a=t.curStats,u=a.position_socketXYSE[e.socketIndex];null!=u.x&&(e.offset?(i.x=u.x+e.offset.x,i.y=u.y+e.offset.y):(n=e.height/2,r=Math.max(a.attach_plugSideLenSE[e.socketIndex]||0,a.line_strokeWidth/2),s=a.position_socketXYSE[e.socketIndex?0:1],u.socketId===y||u.socketId===g?(i.x=u.socketId===y?u.x-n-e.width:u.x+n,i.y=s.y<u.y?u.y+r+n:u.y-r-n-e.height):(i.x=s.x<u.x?u.x+r+n:u.x-r-n-e.width,i.y=u.socketId===f?u.y-n-e.height:u.y+n)),Le(e,l,"x",o=i.x)&&(e.elmPosition.x.baseVal.getItem(0).value=o),Le(e,l,"y",o=i.y)&&(e.elmPosition.y.baseVal.getItem(0).value=o+e.height))},e.updatePath=function(t){var r,s,o=e.curStats,i=e.aplStats,l=t.pathList.animVal||t.pathList.baseVal;l&&(r=n.captionLabel.getMidPoint(l,e.lineOffset),o.x=r.x-e.width/2,o.y=r.y-e.height/2,Le(e,i,"x",s=o.x)&&(e.elmPosition.x.baseVal.getItem(0).value=s),Le(e,i,"y",s=o.y)&&(e.elmPosition.y.baseVal.getItem(0).value=s+e.height))},e.updateShow=function(t){n.captionLabel.updateShow(e,t)},Y&&(e.adjustEdge=function(t,r){var s=e.curStats;null!=s.x&&n.captionLabel.adjustEdge(r,{x:s.x,y:s.y,width:e.width,height:e.height},e.strokeWidth/2)}),!0)},updateColor:function(e,t){var n,r=e.aplStats;e.curStats.color=n=e.color||t.curStats.line_color,Le(e,r,"color",n)&&(e.styleFill.fill=n)},updateShow:function(e,t){var n=!0===t.isShown;n!==e.isShown&&(e.styleShow.visibility=n?"":"hidden",e.isShown=n)},adjustEdge:function(e,t,n){var r={x1:t.x-n,y1:t.y-n,x2:t.x+t.width+n,y2:t.y+t.height+n};r.x1<e.x1&&(e.x1=r.x1),r.y1<e.y1&&(e.y1=r.y1),r.x2>e.x2&&(e.x2=r.x2),r.y2>e.y2&&(e.y2=r.y2)},newText:function(e,t,n,r,s){var o,i,l,u,c,h;return(o=t.createElementNS(W,"text")).textContent=e,[o.x,o.y].forEach(function(e){var t=n.createSVGLength();t.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),e.baseVal.initialize(t)}),"boolean"!=typeof a&&(a="paintOrder"in o.style),s&&!a?(l=t.createElementNS(W,"defs"),o.id=r,l.appendChild(o),(c=(i=t.createElementNS(W,"g")).appendChild(t.createElementNS(W,"use"))).href.baseVal="#"+r,(u=i.appendChild(t.createElementNS(W,"use"))).href.baseVal="#"+r,(h=c.style).strokeLinejoin="round",{elmPosition:o,styleText:o.style,styleFill:u.style,styleStroke:h,styleShow:i.style,elmsAppend:[l,i]}):(h=o.style,s&&(h.strokeLinejoin="round",h.paintOrder="stroke"),{elmPosition:o,styleText:h,styleFill:h,styleStroke:s?h:null,styleShow:h,elmsAppend:[o]})},getMidPoint:function(e,t){var n,r,s,o=ke(e),i=o.segsLen,l=o.lenAll,a=-1;if((n=l/2+(t||0))<=0)return 2===(r=e[0]).length?be(r[0],r[1],0):Se(r[0],r[1],r[2],r[3],0);if(l<=n)return 2===(r=e[e.length-1]).length?be(r[0],r[1],1):Se(r[0],r[1],r[2],r[3],1);for(s=[];n>i[++a];)s.push(e[a]),n-=i[a];return 2===(r=e[a]).length?be(r[0],r[1],n/i[a]):Se(r[0],r[1],r[2],r[3],Ee(r[0],r[1],r[2],r[3],n))},initSvg:function(e,t){var r,s,o=n.captionLabel.newText(e.text,t.baseWindow.document,t.svg,p+"-captionLabel-"+e._id,e.outlineColor);["elmPosition","styleFill","styleShow","elmsAppend"].forEach(function(t){e[t]=o[t]}),e.isShown=!1,e.styleShow.visibility="hidden",n.captionLabel.textStyleProps.forEach(function(t){null!=e[t]&&(o.styleText[t]=e[t])}),o.elmsAppend.forEach(function(e){t.svg.appendChild(e)}),r=o.elmPosition.getBBox(),e.width=r.width,e.height=r.height,e.outlineColor&&(s=10<(s=r.height/9)?10:s<2?2:s,o.styleStroke.strokeWidth=s+"px",o.styleStroke.stroke=e.outlineColor),e.strokeWidth=s||0,Ve(e.aplStats,n.captionLabel.stats),e.updateColor(t),e.refSocketXY?e.updateSocketXY(t):e.updatePath(t),Y&&Be(t,{}),e.updateShow(t)},bind:function(e,t){var r=t.props;return e.color||Me(r,"cur_line_color",e.updateColor),(e.refSocketXY="startLabel"===t.optionName||"endLabel"===t.optionName)?(e.socketIndex="startLabel"===t.optionName?0:1,Me(r,"apl_position",e.updateSocketXY),e.offset||(Me(r,"cur_attach_plugSideLenSE",e.updateSocketXY),Me(r,"cur_line_strokeWidth",e.updateSocketXY))):Me(r,"apl_path",e.updatePath),Me(r,"svgShow",e.updateShow),Y&&Me(r,"new_edge4viewBox",e.adjustEdge),n.captionLabel.initSvg(e,r),!0},unbind:function(e,t){var r=t.props;e.elmsAppend&&(e.elmsAppend.forEach(function(e){r.svg.removeChild(e)}),e.elmPosition=e.styleFill=e.styleShow=e.elmsAppend=null),Ve(e.curStats,n.captionLabel.stats),Ve(e.aplStats,n.captionLabel.stats),e.color||Te(r,"cur_line_color",e.updateColor),e.refSocketXY?(Te(r,"apl_position",e.updateSocketXY),e.offset||(Te(r,"cur_attach_plugSideLenSE",e.updateSocketXY),Te(r,"cur_line_strokeWidth",e.updateSocketXY))):Te(r,"apl_path",e.updatePath),Te(r,"svgShow",e.updateShow),Y&&(Te(r,"new_edge4viewBox",e.adjustEdge),Be(r,{}))},removeOption:function(e,t){var n=t.props,r={};r[t.optionName]="",Ge(n,r)},remove:function(e){e.boundTargets.length&&(console.error("LeaderLineAttachment was not unbound by remove"),e.boundTargets.forEach(function(t){n.captionLabel.unbind(e,t)}))}},pathLabel:{type:"label",argOptions:[{optionName:"text",type:"string"}],stats:{color:{},startOffset:{},pathData:{}},init:function(e,t){return"string"==typeof t.text&&(e.text=t.text.trim()),!!e.text&&("string"==typeof t.color&&(e.color=t.color.trim()),e.outlineColor="string"==typeof t.outlineColor?t.outlineColor.trim():"#fff",ee(t.lineOffset)&&(e.lineOffset=t.lineOffset),n.captionLabel.textStyleProps.forEach(function(n){null!=t[n]&&(e[n]=t[n])}),e.updateColor=function(t){n.captionLabel.updateColor(e,t)},e.updatePath=function(t){var r,s=e.aplStats,o=t.pathList.animVal||t.pathList.baseVal;o&&(e.curStats.pathData=r=n.pathLabel.getOffsetPathData(o,t.curStats.line_strokeWidth/2+e.strokeWidth/2+e.height/4,1.25*e.height),Oe(r,s.pathData)&&(e.elmPath.setPathData(r),s.pathData=r,e.bBox=e.elmPosition.getBBox(),e.updateStartOffset(t)))},e.updateStartOffset=function(t){var n,r,s,o,i=e.curStats,l=e.aplStats,a=t.curStats;i.pathData&&(2!==e.semIndex||e.lineOffset)&&(n=i.pathData.reduce(function(e,t){var n,r=t.values;switch(t.type){case"M":o={x:r[0],y:r[1]};break;case"L":n={x:r[0],y:r[1]},o&&(e+=ve(o,n)),o=n;break;case"C":n={x:r[4],y:r[5]},o&&(e+=xe(o,{x:r[0],y:r[1]},{x:r[2],y:r[3]},n)),o=n}return e},0),s=0===e.semIndex?0:1===e.semIndex?n:n/2,2!==e.semIndex&&(r=Math.max(a.attach_plugBackLenSE[e.semIndex]||0,a.line_strokeWidth/2)+e.strokeWidth/2+e.height/4,s=(s+=0===e.semIndex?r:-r)<0?0:n<s?n:s),e.lineOffset&&(s=(s+=e.lineOffset)<0?0:n<s?n:s),i.startOffset=s,Le(e,l,"startOffset",s)&&(e.elmOffset.startOffset.baseVal.value=s))},e.updateShow=function(t){n.captionLabel.updateShow(e,t)},Y&&(e.adjustEdge=function(t,r){e.bBox&&n.captionLabel.adjustEdge(r,e.bBox,e.strokeWidth/2)}),!0)},getOffsetPathData:function(e,t,n){var r,s,o=3,i=[];function l(e,t){return Math.abs(e.x-t.x)<o&&Math.abs(e.y-t.y)<o}return e.forEach(function(e){var n,s,o,a,u,c,h,d,p,f,g,m,y,_,v,b,w,S,x,E,C;2===e.length?(S=e[0],x=e[1],E=t,C=Math.atan2(S.y-x.y,x.x-S.x)+.5*Math.PI,n=[{x:S.x+Math.cos(C)*E,y:S.y+Math.sin(C)*E*-1},{x:x.x+Math.cos(C)*E,y:x.y+Math.sin(C)*E*-1}],r?(o=r.points,0<=(a=Math.atan2(o[1].y-o[0].y,o[0].x-o[1].x)-Math.atan2(e[0].y-e[1].y,e[1].x-e[0].x))&&a<=Math.PI?s={type:"line",points:n,inside:!0}:(c=we(o[0],o[1],t),u=we(n[1],n[0],t),m=(p=c).x-(d=o[0]).x,w=((_=(g=n[1]).x-(f=u).x)*(d.y-f.y)-(v=g.y-f.y)*(d.x-f.x))/(-_*(y=p.y-d.y)+m*v),(h=0<=(b=(-y*(d.x-f.x)+m*(d.y-f.y))/(-_*y+m*v))&&b<=1&&0<=w&&w<=1?{x:d.x+w*m,y:d.y+w*y}:null)?s={type:"line",points:[o[1]=h,n[1]]}:(o[1]=l(u,c)?u:c,s={type:"line",points:[u,n[1]]}),r.len=ve(o[0],o[1]))):s={type:"line",points:n},s.len=ve(s.points[0],s.points[1]),i.push(r=s)):(i.push({type:"cubic",points:function(e,t,n,r,s,o){for(var i,l,a=xe(e,t,n,r)/16,u=1/(16<s?a*(s/16):a),c=[],h=0;l=(90-(i=Se(e,t,n,r,h)).angle)*(Math.PI/180),c.push({x:i.x+Math.cos(l)*s,y:i.y+Math.sin(l)*s*-1}),!(1<=h);)1<(h+=u)&&(h=1);return c}(e[0],e[1],e[2],e[3],t)}),r=null)}),r=null,i.forEach(function(e){var s;"line"===e.type?(e.inside&&(r.len>t?((s=r.points)[1]=we(s[0],s[1],-t),r.len=ve(s[0],s[1])):(r.points=null,r.len=0),e.len>t+n?((s=e.points)[0]=we(s[1],s[0],-(t+n)),e.len=ve(s[0],s[1])):(e.points=null,e.len=0)),r=e):r=null}),i.reduce(function(e,t){var n=t.points;return n&&(s&&l(n[0],s)||e.push({type:"M",values:[n[0].x,n[0].y]}),"line"===t.type?e.push({type:"L",values:[n[1].x,n[1].y]}):(n.shift(),n.forEach(function(t){e.push({type:"L",values:[t.x,t.y]})})),s=n[n.length-1]),e},[])},newText:function(e,t,n,r){var s,o,i,l,u,c,h,d,p,f;return(l=(i=t.createElementNS(W,"defs")).appendChild(t.createElementNS(W,"path"))).id=s=n+"-path",(c=(u=t.createElementNS(W,"text")).appendChild(t.createElementNS(W,"textPath"))).href.baseVal="#"+s,c.startOffset.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),c.textContent=e,"boolean"!=typeof a&&(a="paintOrder"in u.style),r&&!a?(u.id=o=n+"-text",i.appendChild(u),(p=(h=t.createElementNS(W,"g")).appendChild(t.createElementNS(W,"use"))).href.baseVal="#"+o,(d=h.appendChild(t.createElementNS(W,"use"))).href.baseVal="#"+o,(f=p.style).strokeLinejoin="round",{elmPosition:u,elmPath:l,elmOffset:c,styleText:u.style,styleFill:d.style,styleStroke:f,styleShow:h.style,elmsAppend:[i,h]}):(f=u.style,r&&(f.strokeLinejoin="round",f.paintOrder="stroke"),{elmPosition:u,elmPath:l,elmOffset:c,styleText:f,styleFill:f,styleStroke:r?f:null,styleShow:f,elmsAppend:[i,u]})},initSvg:function(e,t){var r,s,o=n.pathLabel.newText(e.text,t.baseWindow.document,p+"-pathLabel-"+e._id,e.outlineColor);["elmPosition","elmPath","elmOffset","styleFill","styleShow","elmsAppend"].forEach(function(t){e[t]=o[t]}),e.isShown=!1,e.styleShow.visibility="hidden",n.captionLabel.textStyleProps.forEach(function(t){null!=e[t]&&(o.styleText[t]=e[t])}),o.elmsAppend.forEach(function(e){t.svg.appendChild(e)}),o.elmPath.setPathData([{type:"M",values:[0,100]},{type:"h",values:[100]}]),r=o.elmPosition.getBBox(),o.styleText.textAnchor=["start","end","middle"][e.semIndex],2!==e.semIndex||e.lineOffset||o.elmOffset.startOffset.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PERCENTAGE,50),e.height=r.height,e.outlineColor&&(s=10<(s=r.height/9)?10:s<2?2:s,o.styleStroke.strokeWidth=s+"px",o.styleStroke.stroke=e.outlineColor),e.strokeWidth=s||0,Ve(e.aplStats,n.pathLabel.stats),e.updateColor(t),e.updatePath(t),e.updateStartOffset(t),Y&&Be(t,{}),e.updateShow(t)},bind:function(e,t){var r=t.props;return e.color||Me(r,"cur_line_color",e.updateColor),Me(r,"cur_line_strokeWidth",e.updatePath),Me(r,"apl_path",e.updatePath),e.semIndex="startLabel"===t.optionName?0:"endLabel"===t.optionName?1:2,(2!==e.semIndex||e.lineOffset)&&Me(r,"cur_attach_plugBackLenSE",e.updateStartOffset),Me(r,"svgShow",e.updateShow),Y&&Me(r,"new_edge4viewBox",e.adjustEdge),n.pathLabel.initSvg(e,r),!0},unbind:function(e,t){var r=t.props;e.elmsAppend&&(e.elmsAppend.forEach(function(e){r.svg.removeChild(e)}),e.elmPosition=e.elmPath=e.elmOffset=e.styleFill=e.styleShow=e.elmsAppend=null),Ve(e.curStats,n.pathLabel.stats),Ve(e.aplStats,n.pathLabel.stats),e.color||Te(r,"cur_line_color",e.updateColor),Te(r,"cur_line_strokeWidth",e.updatePath),Te(r,"apl_path",e.updatePath),(2!==e.semIndex||e.lineOffset)&&Te(r,"cur_attach_plugBackLenSE",e.updateStartOffset),Te(r,"svgShow",e.updateShow),Y&&(Te(r,"new_edge4viewBox",e.adjustEdge),Be(r,{}))},removeOption:function(e,t){var n=t.props,r={};r[t.optionName]="",Ge(n,r)},remove:function(e){e.boundTargets.length&&(console.error("LeaderLineAttachment was not unbound by remove"),e.boundTargets.forEach(function(t){n.pathLabel.unbind(e,t)}))}}},Object.keys(n).forEach(function(e){qe[e]=function(){return new r(n[e],Array.prototype.slice.call(arguments))}}),qe.positionByWindowResize=!0,window.addEventListener("resize",re.add(function(){qe.positionByWindowResize&&Object.keys(ae).forEach(function(e){Be(ae[e],{position:!0})})}),!1)}()},zUnb:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.r(t);let s=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function i(e){setTimeout(()=>{throw e})}const l={closed:!0,next(e){},error(e){if(o.useDeprecatedSynchronousErrorHandling)throw e;i(e)},complete(){}},a=Array.isArray||(e=>e&&"number"==typeof e.length);function u(e){return null!==e&&"object"==typeof e}function c(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}c.prototype=Object.create(Error.prototype);const h=c,d=(()=>{class e{constructor(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let e,t=!1;if(this.closed)return;let{_parent:n,_parents:s,_unsubscribe:o,_subscriptions:i}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let l=-1,c=s?s.length:0;for(;n;)n.remove(this),n=++l<c&&s[l]||null;if(r(o))try{o.call(this)}catch(d){t=!0,e=d instanceof h?p(d.errors):[d]}if(a(i))for(l=-1,c=i.length;++l<c;){const n=i[l];if(u(n))try{n.unsubscribe()}catch(d){t=!0,e=e||[],d instanceof h?e=e.concat(p(d.errors)):e.push(d)}}if(t)throw new h(e)}add(t){let n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;(n=new e)._subscriptions=[t]}break;default:if(!t)return e.EMPTY;throw new Error("unrecognized teardown "+t+" added to Subscription.")}if(n._addParent(this)){const e=this._subscriptions;e?e.push(n):this._subscriptions=[n]}return n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}_addParent(e){let{_parent:t,_parents:n}=this;return t!==e&&(t?n?-1===n.indexOf(e)&&(n.push(e),!0):(this._parents=[e],!0):(this._parent=e,!0))}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function p(e){return e.reduce((e,t)=>e.concat(t instanceof h?t.errors:t),[])}const f="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class g extends d{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!e){this.destination=l;break}if("object"==typeof e){e instanceof g?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[f](){return this}static create(e,t,n){const r=new g(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class m extends g{constructor(e,t,n,s){let o;super(),this._parentSubscriber=e;let i=this;r(t)?o=t:t&&(o=t.next,n=t.error,s=t.complete,t!==l&&(r((i=Object.create(t)).unsubscribe)&&this.add(i.unsubscribe.bind(i)),i.unsubscribe=this.unsubscribe.bind(this))),this._context=i,this._next=o,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=o;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):i(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;i(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;i(n)}}__tryOrSetError(e,t,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return o.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(i(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const y="function"==typeof Symbol&&Symbol.observable||"@@observable";function _(){}function v(...e){return b(e)}function b(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:_}const w=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,s=function(e,t,n){if(e){if(e instanceof g)return e;if(e[f])return e[f]()}return e||t||n?new g(e,t,n):new g(l)}(e,t,n);if(s.add(r?r.call(s,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),o.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){o.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof g?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=S(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(s){n(s),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[y](){return this}pipe(...e){return 0===e.length?this:b(e)(this)}toPromise(e){return new(e=S(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=(t=>new e(t)),e})();function S(e){if(e||(e=o.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function x(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}x.prototype=Object.create(Error.prototype);const E=x;class C extends d{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class k extends g{constructor(e){super(e),this.destination=e}}const O=(()=>{class e extends w{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new k(this)}lift(e){const t=new M(this,this);return t.operator=e,t}next(e){if(this.closed)throw new E;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;s<n;s++)r[s].next(e)}}error(e){if(this.closed)throw new E;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;s<n;s++)r[s].error(e);this.observers.length=0}complete(){if(this.closed)throw new E;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let r=0;r<t;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new E;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new E;return this.hasError?(e.error(this.thrownError),d.EMPTY):this.isStopped?(e.complete(),d.EMPTY):(this.observers.push(e),new C(this,e))}asObservable(){const e=new w;return e.source=this,e}}return e.create=((e,t)=>new M(e,t)),e})();class M extends O{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):d.EMPTY}}function T(e){return e&&"function"==typeof e.schedule}class I extends g{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const A=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()},P=e=>t=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,i),t);function N(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const R=N(),V=e=>t=>{const n=e[R]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t},L=e=>t=>{const n=e[y]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},D=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function U(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const F=e=>{if(e instanceof w)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[y])return L(e);if(D(e))return A(e);if(U(e))return P(e);if(e&&"function"==typeof e[R])return V(e);{const t=u(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function j(e,t,n,r,s=new I(e,n,r)){if(!s.closed)return F(t)(s)}class B extends g{notifyNext(e,t,n,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}function H(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new z(e,t))}}class z{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new $(e,this.project,this.thisArg))}}class $ extends g{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function W(e,t){return new w(t?n=>{const r=new d;let s=0;return r.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()})),r}:A(e))}function G(e,t){if(!t)return e instanceof w?e:new w(F(e));if(null!=e){if(function(e){return e&&"function"==typeof e[y]}(e))return function(e,t){return new w(t?n=>{const r=new d;return r.add(t.schedule(()=>{const s=e[y]();r.add(s.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r}:L(e))}(e,t);if(U(e))return function(e,t){return new w(t?n=>{const r=new d;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r}:P(e))}(e,t);if(D(e))return W(e,t);if(function(e){return e&&"function"==typeof e[R]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new w(t?n=>{const r=new d;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(t.schedule(()=>{s=e[R](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const o=s.next();e=o.value,t=o.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}))})),r}:V(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function q(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(q((n,r)=>G(e(n,r)).pipe(H((e,s)=>t(n,e,r,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new Z(e,n)))}class Z{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new Q(e,this.project,this.concurrent))}}class Q extends B{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)}_innerSub(e,t,n){const r=new I(this,void 0,void 0);this.destination.add(r),j(this,e,t,n,r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e,t,n,r,s){this.destination.next(t)}notifyComplete(e){const t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Y(e){return e}function K(e=Number.POSITIVE_INFINITY){return q(Y,e)}function X(){return function(e){return e.lift(new J(e))}}class J{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new ee(e,n),s=t.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class ee extends g{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}const te=class extends w{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new d).add(this.source.subscribe(new re(this.getSubject(),this))),e.closed?(this._connection=null,e=d.EMPTY):this._connection=e),e}refCount(){return X()(this)}}.prototype,ne={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:te._subscribe},_isComplete:{value:te._isComplete,writable:!0},getSubject:{value:te.getSubject},connect:{value:te.connect},refCount:{value:te.refCount}};class re extends k{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function se(){return new O}const oe="__parameters__";function ie(e,t,n){const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return r.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,r){const s=e.hasOwnProperty(oe)?e[oe]:Object.defineProperty(e,oe,{value:[]})[oe];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}const le=ie("Inject",e=>({token:e})),ae=ie("Optional"),ue=ie("Self"),ce=ie("SkipSelf");var he=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function de(e){for(let t in e)if(e[t]===de)return t;throw Error("Could not find renamed property on target object.")}function pe(e){return{providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function fe(e){return e&&e.hasOwnProperty(ge)?e[ge]:null}const ge=de({ngInjectableDef:de});function me(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(me).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const ye=de({__forward_ref__:de});function _e(e){return e.__forward_ref__=_e,e.toString=function(){return me(this())},e}function ve(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(ye)&&t.__forward_ref__===_e?t():e}function be(){const e="undefined"!=typeof globalThis&&globalThis,t="undefined"!=typeof window&&window,n="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,r="undefined"!=typeof global&&global;return e||r||t||n}const we=be();let Se,xe=void 0;function Ee(e){const t=xe;return xe=e,t}function Ce(e,t=he.Default){return(Se||function(e,t=he.Default){if(void 0===xe)throw new Error("inject() must be called from an injection context");return null===xe?function(e,t,n){const r=fe(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&he.Optional)return null;throw new Error(`Injector: NOT_FOUND [${me(e)}]`)}(e,0,t):xe.get(e,t&he.Optional?null:void 0,t)})(e,t)}class ke{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=pe({providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Oe="__source",Me=new Object,Te=new ke("INJECTOR",-1);class Ie{get(e,t=Me){if(t===Me){const t=new Error(`NullInjectorError: No provider for ${me(e)}!`);throw t.name="NullInjectorError",t}return t}}const Ae=(()=>{class e{static create(e,t){return Array.isArray(e)?new Be(e,t):new Be(e.providers,e.parent,e.name||null)}}return e.THROW_IF_NOT_FOUND=Me,e.NULL=new Ie,e.ngInjectableDef=pe({providedIn:"any",factory:()=>Ce(Te)}),e.__NG_ELEMENT_ID__=-1,e})(),Pe=function(e){return e},Ne=[],Re=Pe,Ve=function(){return Array.prototype.slice.call(arguments)},Le=de({provide:String,useValue:de}),De="ngTokenPath",Ue="ngTempTokenPath",Fe=/\n/gm,je="\u0275";class Be{constructor(e,t=Ae.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(Ae,{token:Ae,fn:Pe,deps:Ne,value:this,useNew:!1}),r.set(Te,{token:Te,fn:Pe,deps:Ne,value:this,useNew:!1}),function e(t,n){if(n)if((n=ve(n))instanceof Array)for(let r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw $e("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw $e("Unexpected provider",n);{let e=ve(n.provide);const r=function(e){const t=function(e){let t=Ne;const n=e.deps;if(n&&n.length){t=[];for(let e=0;e<n.length;e++){let r=6,s=ve(n[e]);if(s instanceof Array)for(let e=0,t=s;e<t.length;e++){const n=t[e];n instanceof ae||n==ae?r|=1:n instanceof ce||n==ce?r&=-3:n instanceof ue||n==ue?r&=-5:s=n instanceof le?n.token:ve(n)}t.push({token:s,options:r})}}else if(e.useExisting)t=[{token:ve(e.useExisting),options:6}];else if(!(n||Le in e))throw $e("'deps' required",e);return t}(e);let n=Pe,r=Ne,s=!1,o=ve(e.provide);if(Le in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)s=!0,n=ve(e.useClass);else{if("function"!=typeof o)throw $e("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);s=!0,n=o}return{deps:t,fn:n,useNew:s,value:r}}(n);if(!0===n.multi){let r=t.get(e);if(r){if(r.fn!==Ve)throw He(e)}else t.set(e,r={token:n.provide,deps:[],useNew:!1,fn:Ve,value:Ne});r.deps.push({token:e=n,options:6})}const s=t.get(e);if(s&&s.fn==Ve)throw He(e);t.set(e,r)}}}(r,e)}get(e,t,n=he.Default){const r=this._records.get(e);try{return function e(t,n,r,s,o,i){try{return function(t,n,r,s,o,i){let l;if(!n||i&he.SkipSelf)i&he.Self||(l=s.get(t,o,he.Default));else{if((l=n.value)==Re)throw Error(je+"Circular dependency");if(l===Ne){n.value=Re;let t=void 0,o=n.useNew,i=n.fn,a=n.deps,u=Ne;if(a.length){u=[];for(let t=0;t<a.length;t++){const n=a[t],o=n.options,i=2&o?r.get(n.token):void 0;u.push(e(n.token,i,r,i||4&o?s:Ae.NULL,1&o?null:Ae.THROW_IF_NOT_FOUND,he.Default))}}n.value=l=o?new i(...u):i.apply(t,u)}}return l}(t,n,r,s,o,i)}catch(l){throw l instanceof Error||(l=new Error(l)),(l[Ue]=l[Ue]||[]).unshift(t),n&&n.value==Re&&(n.value=Ne),l}}(e,r,this._records,this.parent,t,n)}catch(s){return function(e,t,n,r){const s=e[Ue];throw t[Oe]&&s.unshift(t[Oe]),e.message=ze("\n"+e.message,s,"StaticInjectorError",r),e[De]=s,e[Ue]=null,e}(s,e,0,this.source)}}toString(){const e=[];return this._records.forEach((t,n)=>e.push(me(n))),`StaticInjector[${e.join(", ")}]`}}function He(e){return $e("Cannot mix multi providers and regular providers",e)}function ze(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==je?e.substr(2):e;let s=me(t);if(t instanceof Array)s=t.map(me).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):me(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Fe,"\n  ")}`}function $e(e,t){return new Error(ze(e,t,"StaticInjectorError"))}const We="ngDebugContext",Ge="ngOriginalError",qe="ngErrorLogger",Ze=new ke("AnalyzeForEntryComponents"),Qe=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),Ye=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(we))();function Ke(e){return e[We]}function Xe(e){return e[Ge]}function Je(e,...t){e.error(...t)}class et{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[qe]||Je}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Ke(e)?Ke(e):this._findContext(Xe(e)):null}_findOriginalError(e){let t=Xe(e);for(;t&&Xe(t);)t=Xe(t);return t}}let tt=!0,nt=!1;function rt(){return nt=!0,tt}class st{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(r){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e="<body><remove></remove>"+e+"</body>";try{const n=(new window.DOMParser).parseFromString(e,"text/html").body;return n.removeChild(n.firstChild),n}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const n=t.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const ot=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,it=/^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 lt(e){return(e=String(e)).match(ot)||e.match(it)?e:(rt()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function at(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function ut(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const ct=at("area,br,col,hr,img,wbr"),ht=at("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),dt=at("rp,rt"),pt=ut(dt,ht),ft=ut(ct,ut(ht,at("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")),ut(dt,at("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")),pt),gt=at("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),mt=at("srcset"),yt=ut(gt,mt,at("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"),at("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")),_t=at("script,style,template");class vt{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!ft.hasOwnProperty(t))return this.sanitizedSomething=!0,!_t.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let s=0;s<n.length;s++){const e=n.item(s),t=e.name,o=t.toLowerCase();if(!yt.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let i=e.value;gt[o]&&(i=lt(i)),mt[o]&&(r=i,i=(r=String(r)).split(",").map(e=>lt(e.trim())).join(", ")),this.buf.push(" ",t,'="',St(i),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();ft.hasOwnProperty(t)&&!ct.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(St(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const bt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wt=/([^\#-~ |!])/g;function St(e){return e.replace(/&/g,"&amp;").replace(bt,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(wt,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let xt;function Et(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const Ct=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}();class kt{}const Ot=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Mt=/^url\(([^)]+)\)$/,Tt=/([A-Z])/g;function It(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function At(e){return!!e&&"function"==typeof e.then}function Pt(e){return!!e&&"function"==typeof e.subscribe}let Nt=null;function Rt(){if(!Nt){const e=we.Symbol;if(e&&e.iterator)Nt=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Nt=n)}}}return Nt}function Vt(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function Lt(e,t){const n=Ut(e),r=Ut(t);if(n&&r)return function(e,t,n){const r=e[Rt()](),s=t[Rt()]();for(;;){const e=r.next(),t=s.next();if(e.done&&t.done)return!0;if(e.done||t.done)return!1;if(!n(e.value,t.value))return!1}}(e,t,Lt);{const s=e&&("object"==typeof e||"function"==typeof e),o=t&&("object"==typeof t||"function"==typeof t);return!(n||!s||r||!o)||Vt(e,t)}}class Dt{constructor(e){this.wrapped=e}static wrap(e){return new Dt(e)}static unwrap(e){return Dt.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof Dt}}function Ut(e){return!!Ft(e)&&(Array.isArray(e)||!(e instanceof Map)&&Rt()in e)}function Ft(e){return null!==e&&("function"==typeof e||"object"==typeof e)}class jt{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}const Bt=new ke("The presence of this token marks an injector as being the root injector.");class Ht{}class zt{}function $t(e){const t=Error(`No component factory found for ${me(e)}. Did you add it to @NgModule.entryComponents?`);return t[Wt]=e,t}const Wt="ngComponent";class Gt{resolveComponentFactory(e){throw $t(e)}}const qt=(()=>{class e{}return e.NULL=new Gt,e})();class Zt{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r<e.length;r++){const t=e[r];this._factories.set(t.componentType,t)}}resolveComponentFactory(e){let t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw $t(e);return new Qt(t,this._ngModule)}}class Qt extends zt{constructor(e,t){super(),this.factory=e,this.ngModule=t,this.selector=e.selector,this.componentType=e.componentType,this.ngContentSelectors=e.ngContentSelectors,this.inputs=e.inputs,this.outputs=e.outputs}create(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)}}class Yt{}class Kt{}function Xt(...e){}const Jt=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=(()=>en(e)),e})(),en=Xt;class tn{}class nn{}const rn=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),sn=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>on()),e})(),on=Xt;class ln{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const an=new ln("8.0.3");class un{constructor(){}supports(e){return Ut(e)}create(e){return new hn(e)}}const cn=(e,t)=>t;class hn{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||cn}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,s=null;for(;t||n;){const o=!n||t&&t.currentIndex<gn(n,r,s)?t:n,i=gn(o,r,s),l=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{s||(s=[]);const e=i-r,t=l-r;if(e!=t){for(let n=0;n<e;n++){const r=n<s.length?s[n]:s[n]=0,o=r+n;t<=o&&o<e&&(s[n]=r+1)}s[o.previousIndex]=t-e}}i!==l&&e(o,i,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Ut(e))throw new Error(`Error trying to diff '${me(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,s=this._itHead,o=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)r=this._trackByFn(t,n=e[t]),null!==s&&Vt(s.trackById,r)?(o&&(s=this._verifyReinsertion(s,n,r,t)),Vt(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,t),o=!0),s=s._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Rt()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==s&&Vt(s.trackById,r)?(o&&(s=this._verifyReinsertion(s,e,r,t)),Vt(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),o=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Vt(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Vt(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):e=this._addAfter(new dn(t,n),s,r),e}_verifyReinsertion(e,t,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new fn),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new fn),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class dn{constructor(e,t){this.item=e,this.trackById=t,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 pn{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Vt(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class fn{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new pn,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function gn(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+t+s}class mn{constructor(){}supports(e){return e instanceof Map||Ft(e)}create(){return new yn}}class yn{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(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Ft(e)))throw new Error(`Error trying to diff '${me(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new _n(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Vt(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class _n{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}const vn=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ce,new ae]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.ngInjectableDef=pe({providedIn:"root",factory:()=>new e([new un])}),e})(),bn=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ce,new ae]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.ngInjectableDef=pe({providedIn:"root",factory:()=>new e([new mn])}),e})(),wn=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>Sn()),e})(),Sn=(...e)=>{},xn=[new mn],En=new vn([new un]),Cn=new bn(xn),kn=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>On(e,Jt)),e})(),On=Xt,Mn=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>Tn(e,Jt)),e})(),Tn=Xt;function In(e,t,n,r){let s=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(s+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return An(n,t),n}(s,e)}function An(e,t){e[We]=t,e[qe]=t.logError.bind(t)}function Pn(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Nn(e,t,n){const r=e.state,s=1792&r;return s===t?(e.state=-1793&r|n,e.initIndex=-1,!0):s===n}function Rn(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Vn(e,t){return e.nodes[t]}function Ln(e,t){return e.nodes[t]}function Dn(e,t){return e.nodes[t]}function Un(e,t){return e.nodes[t]}function Fn(e,t){return e.nodes[t]}const jn={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Bn=()=>{},Hn=new Map;function zn(e){let t=Hn.get(e);return t||(t=me(e)+"_"+Hn.size,Hn.set(e,t)),t}const $n="$$undefined",Wn="$$empty";function Gn(e){return{id:$n,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let qn=0;function Zn(e,t,n,r){return!(!(2&e.state)&&Vt(e.oldValues[t.bindingIndex+n],r))}function Qn(e,t,n,r){return!!Zn(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function Yn(e,t,n,r){const s=e.oldValues[t.bindingIndex+n];if(1&e.state||!Lt(s,r)){const o=t.bindings[n].name;throw In(jn.createDebugContext(e,t.nodeIndex),`${o}: ${s}`,`${o}: ${r}`,0!=(1&e.state))}}function Kn(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Xn(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function Jn(e,t,n,r){try{return Kn(33554432&e.def.nodes[t].flags?Ln(e,t).componentView:e),jn.handleEvent(e,t,n,r)}catch(s){e.root.errorHandler.handleError(s)}}function er(e){return e.parent?Ln(e.parent,e.parentNodeDef.nodeIndex):null}function tr(e){return e.parent?e.parentNodeDef.parent:null}function nr(e,t){switch(201347067&t.flags){case 1:return Ln(e,t.nodeIndex).renderElement;case 2:return Vn(e,t.nodeIndex).renderText}}function rr(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function sr(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function or(e){const t={};let n=0;const r={};return e&&e.forEach(([e,s])=>{"number"==typeof e?(t[e]=s,n|=function(e){return 1<<e%32}(e)):r[e]=s}),{matchedQueries:t,references:r,matchedQueryIds:n}}function ir(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,Oe,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:zn(n)}})}function lr(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Qe.Native?Ln(e,n.renderParent.nodeIndex).renderElement:void 0:t}const ar=new WeakMap;function ur(e){let t=ar.get(e);return t||((t=e(()=>Bn)).factory=e,ar.set(e,t)),t}function cr(e,t,n,r,s){3===t&&(n=e.renderer.parentNode(nr(e,e.def.lastRenderRootNode))),hr(e,t,0,e.def.nodes.length-1,n,r,s)}function hr(e,t,n,r,s,o,i){for(let l=n;l<=r;l++){const n=e.def.nodes[l];11&n.flags&&pr(e,n,t,s,o,i),l+=n.childCount}}function dr(e,t,n,r,s,o){let i=e;for(;i&&!rr(i);)i=i.parent;const l=i.parent,a=tr(i),u=a.nodeIndex+a.childCount;for(let c=a.nodeIndex+1;c<=u;c++){const e=l.def.nodes[c];e.ngContentIndex===t&&pr(l,e,n,r,s,o),c+=e.childCount}if(!l.parent){const i=e.root.projectableNodes[t];if(i)for(let t=0;t<i.length;t++)fr(e,i[t],n,r,s,o)}}function pr(e,t,n,r,s,o){if(8&t.flags)dr(e,t.ngContent.index,n,r,s,o);else{const i=nr(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&fr(e,i,n,r,s,o),32&t.bindingFlags&&fr(Ln(e,t.nodeIndex).componentView,i,n,r,s,o)):fr(e,i,n,r,s,o),16777216&t.flags){const i=Ln(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<i.length;e++)cr(i[e],n,r,s,o)}1&t.flags&&!t.element.name&&hr(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,s,o)}}function fr(e,t,n,r,s,o){const i=e.renderer;switch(n){case 1:i.appendChild(r,t);break;case 2:i.insertBefore(r,t,s);break;case 3:i.removeChild(r,t);break;case 0:o.push(t)}}const gr=/^:([^:]+):(.+)$/;function mr(e){if(":"===e[0]){const t=e.match(gr);return[t[1],t[2]]}return["",e]}function yr(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}const _r=new Object,vr=zn(Ae),br=zn(Te),wr=zn(Yt);function Sr(e,t,n,r){return n=ve(n),{index:-1,deps:ir(r,me(t)),flags:e,token:t,value:n}}function xr(e,t,n=Ae.THROW_IF_NOT_FOUND){const r=Ee(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);const i=t.tokenKey;switch(i){case vr:case br:case wr:return e}const l=e._def.providersByKey[i];let a;if(l){let t=e._providers[l.index];return void 0===t&&(t=e._providers[l.index]=Er(e,l)),t===_r?void 0:t}if((a=fe(t.token))&&(s=e,null!=(o=a).providedIn&&(function(e,t){return e._def.modules.indexOf(o.providedIn)>-1}(s)||"root"===o.providedIn&&s._def.isRoot))){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:a.factory,deps:[],index:n,token:t.token},e._providers[n]=_r,e._providers[n]=Er(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Ee(r)}var s,o}function Er(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(xr(e,n[0]));case 2:return new t(xr(e,n[0]),xr(e,n[1]));case 3:return new t(xr(e,n[0]),xr(e,n[1]),xr(e,n[2]));default:const s=new Array(r);for(let t=0;t<r;t++)s[t]=xr(e,n[t]);return new t(...s)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const r=n.length;switch(r){case 0:return t();case 1:return t(xr(e,n[0]));case 2:return t(xr(e,n[0]),xr(e,n[1]));case 3:return t(xr(e,n[0]),xr(e,n[1]),xr(e,n[2]));default:const s=Array(r);for(let t=0;t<r;t++)s[t]=xr(e,n[t]);return t(...s)}}(e,t.value,t.deps);break;case 2048:n=xr(e,t.deps[0]);break;case 256:n=t.value}return n===_r||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?_r:n}function Cr(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,Tr(n,t),jn.dirtyParentQueries(r),Or(r),r}function kr(e,t,n){const r=t?nr(t,t.def.lastRenderRootNode):e.renderElement,s=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);cr(n,2,s,o,void 0)}function Or(e){cr(e,3,null,null,void 0)}function Mr(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Tr(e,t){t>=e.length-1?e.pop():e.splice(t,1)}const Ir=new Object;function Ar(e,t,n,r,s,o){return new Pr(e,t,n,r,s,o)}class Pr extends zt{constructor(e,t,n,r,s,o){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=s,this.ngContentSelectors=o,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const s=ur(this.viewDefFactory),o=s.nodes[0].element.componentProvider.nodeIndex,i=jn.createRootView(e,t||[],n,s,r,Ir),l=Dn(i,o).instance;return n&&i.renderer.setAttribute(Ln(i,0).renderElement,"ng-version",an.full),new Nr(i,new Dr(i),l)}}class Nr extends Ht{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new Jt(Ln(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Br(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Rr(e,t,n){return new Vr(e,t,n)}class Vr{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new Jt(this._data.renderElement)}get injector(){return new Br(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=tr(e),e=e.parent;return e?new Br(e,t):new Br(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Cr(this._data,e);jn.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new Dr(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,s){const o=n||this.parentInjector;s||e instanceof Qt||(s=o.get(Yt));const i=e.create(o,r,void 0,s);return this.insert(i.hostView,t),i}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let s=t.viewContainer._embeddedViews;null==n&&(n=s.length),r.viewContainerParent=e,Mr(s,n,r),function(e,t){const n=er(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(4&n.flags)return;t.parent.def.nodeFlags|=4,n.flags|=4;let r=n.parent;for(;r;)r.childFlags|=4,r=r.parent}(0,t.parentNodeDef)}(t,r),jn.dirtyParentQueries(r),kr(t,n>0?s[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,r){const s=e.viewContainer._embeddedViews,o=s[n];Tr(s,n),null==r&&(r=s.length),Mr(s,r,o),jn.dirtyParentQueries(o),Or(o),kr(e,r>0?s[r-1]:null,o)}(this._data,0,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=Cr(this._data,e);t&&jn.destroyView(t)}detach(e){const t=Cr(this._data,e);return t?new Dr(t):null}}function Lr(e){return new Dr(e)}class Dr{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return cr(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){Kn(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{jn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){jn.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),jn.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Or(this._view),jn.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function Ur(e,t){return new Fr(e,t)}class Fr extends kn{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Dr(jn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new Jt(Ln(this._parentView,this._def.nodeIndex).renderElement)}}function jr(e,t){return new Br(e,t)}class Br{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Ae.THROW_IF_NOT_FOUND){return jn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:zn(e)},t)}}function Hr(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=Ln(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return Vn(e,n.nodeIndex).renderText;if(20240&n.flags)return Dn(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function zr(e){return new $r(e.renderer)}class $r{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,r]=mr(t),s=this.delegate.createElement(r,n);return e&&this.delegate.appendChild(e,s),s}createViewRoot(e){return e}createTemplateAnchor(e){const t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}createText(e,t){const n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}projectNodes(e,t){for(let n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])}attachViewAfter(e,t){const n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e);for(let s=0;s<t.length;s++)this.delegate.insertBefore(n,t[s],r)}detachView(e){for(let t=0;t<e.length;t++){const n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}}destroyView(e,t){for(let n=0;n<t.length;n++)this.delegate.destroyNode(t[n])}listen(e,t,n){return this.delegate.listen(e,t,n)}listenGlobal(e,t,n){return this.delegate.listen(e,t,n)}setElementProperty(e,t,n){this.delegate.setProperty(e,t,n)}setElementAttribute(e,t,n){const[r,s]=mr(t);null!=n?this.delegate.setAttribute(e,s,n,r):this.delegate.removeAttribute(e,s,r)}setBindingDebugInfo(e,t,n){}setElementClass(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)}setElementStyle(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)}invokeElementMethod(e,t,n){e[t].apply(e,n)}setText(e,t){this.delegate.setValue(e,t)}animate(){throw new Error("Renderer.animate is no longer supported!")}}function Wr(e,t,n,r){return new Gr(e,t,n,r)}class Gr{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=new Array(t.providers.length);for(let r=0;r<t.providers.length;r++){const s=t.providers[r];4096&s.flags||void 0===n[r]&&(n[r]=Er(e,s))}}(this)}get(e,t=Ae.THROW_IF_NOT_FOUND,n=he.Default){let r=0;return n&he.SkipSelf?r|=1:n&he.Self&&(r|=4),xr(this,{token:e,tokenKey:zn(e),flags:r},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(qt)}destroy(){if(this._destroyed)throw new Error(`The ng module ${me(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,r=new Set;for(let s=0;s<n.providers.length;s++)if(131072&n.providers[s].flags){const t=e._providers[s];if(t&&t!==_r){const e=t.ngOnDestroy;"function"!=typeof e||r.has(t)||(e.apply(t),r.add(t))}}}(this),this._destroyListeners.forEach(e=>e())}onDestroy(e){this._destroyListeners.push(e)}}const qr=zn(tn),Zr=zn(sn),Qr=zn(Jt),Yr=zn(Mn),Kr=zn(kn),Xr=zn(wn),Jr=zn(Ae),es=zn(Te);function ts(e,t,n,r,s,o,i,l){const a=[];if(i)for(let c in i){const[e,t]=i[c];a[e]={flags:8,name:c,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const u=[];if(l)for(let c in l)u.push({type:1,propName:c,target:null,eventName:l[c]});return rs(e,t|=16384,n,r,s,s,o,a,u)}function ns(e,t,n,r,s){return rs(-1,e,t,0,n,r,s)}function rs(e,t,n,r,s,o,i,l,a){const{matchedQueries:u,references:c,matchedQueryIds:h}=or(n);a||(a=[]),l||(l=[]),o=ve(o);const d=ir(i,me(s));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:h,references:c,ngContentIndex:-1,childCount:r,bindings:l,bindingFlags:yr(l),outputs:a,element:null,provider:{token:s,value:o,deps:d},text:null,query:null,ngContent:null}}function ss(e,t){return as(e,t)}function os(e,t){let n=e;for(;n.parent&&!rr(n);)n=n.parent;return us(n.parent,tr(n),!0,t.provider.value,t.provider.deps)}function is(e,t){const n=us(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;r<t.outputs.length;r++){const s=t.outputs[r],o=n[s.propName];if(!Pt(o))throw new Error(`@Output ${s.propName} not initialized in '${n.constructor.name}'.`);{const n=o.subscribe(ls(e,t.parent.nodeIndex,s.eventName));e.disposables[t.outputIndex+r]=n.unsubscribe.bind(n)}}return n}function ls(e,t,n){return r=>Jn(e,t,n,r)}function as(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return us(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,s){const o=s.length;switch(o){case 0:return r();case 1:return r(hs(e,t,n,s[0]));case 2:return r(hs(e,t,n,s[0]),hs(e,t,n,s[1]));case 3:return r(hs(e,t,n,s[0]),hs(e,t,n,s[1]),hs(e,t,n,s[2]));default:const i=Array(o);for(let r=0;r<o;r++)i[r]=hs(e,t,n,s[r]);return r(...i)}}(e,t.parent,n,r.value,r.deps);case 2048:return hs(e,t.parent,n,r.deps[0]);case 256:return r.value}}function us(e,t,n,r,s){const o=s.length;switch(o){case 0:return new r;case 1:return new r(hs(e,t,n,s[0]));case 2:return new r(hs(e,t,n,s[0]),hs(e,t,n,s[1]));case 3:return new r(hs(e,t,n,s[0]),hs(e,t,n,s[1]),hs(e,t,n,s[2]));default:const i=new Array(o);for(let r=0;r<o;r++)i[r]=hs(e,t,n,s[r]);return new r(...i)}}const cs={};function hs(e,t,n,r,s=Ae.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const o=e;2&r.flags&&(s=null);const i=r.tokenKey;i===Xr&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);let l=e;for(;l;){if(t)switch(i){case qr:return zr(ds(l,t,n));case Zr:return ds(l,t,n).renderer;case Qr:return new Jt(Ln(l,t.nodeIndex).renderElement);case Yr:return Ln(l,t.nodeIndex).viewContainer;case Kr:if(t.element.template)return Ln(l,t.nodeIndex).template;break;case Xr:return Lr(ds(l,t,n));case Jr:case es:return jr(l,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[i];if(e){let t=Dn(l,e.nodeIndex);return t||(t={instance:as(l,e)},l.nodes[e.nodeIndex]=t),t.instance}}n=rr(l),t=tr(l),l=l.parent,4&r.flags&&(l=null)}const a=o.root.injector.get(r.token,cs);return a!==cs||s===cs?a:o.root.ngModule.injector.get(r.token,s)}function ds(e,t,n){let r;if(n)r=Ln(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!rr(r);)r=r.parent;return r}function ps(e,t,n,r,s,o){if(32768&n.flags){const t=Ln(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[r].name]=s,524288&n.flags){o=o||{};const t=Dt.unwrap(e.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new jt(t,s,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=s,o}function fs(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let r=0;for(let s=0;s<n.length;s++){const o=n[s];let i=o.parent;for(!i&&o.flags&t&&ms(e,s,o.flags&t,r++),0==(o.childFlags&t)&&(s+=o.childCount);i&&1&i.flags&&s===i.nodeIndex+i.childCount;)i.directChildFlags&t&&(r=gs(e,i,t,r)),i=i.parent}}function gs(e,t,n,r){for(let s=t.nodeIndex+1;s<=t.nodeIndex+t.childCount;s++){const t=e.def.nodes[s];t.flags&n&&ms(e,s,t.flags&n,r++),s+=t.childCount}return r}function ms(e,t,n,r){const s=Dn(e,t);if(!s)return;const o=s.instance;o&&(jn.setCurrentNode(e,t),1048576&n&&Rn(e,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Rn(e,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}const ys=new ke("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ye});class _s extends O{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,o=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(o=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const i=super.subscribe(r,s,o);return e instanceof d&&e.add(i),i}}class vs{constructor(){this.dirty=!0,this._results=[],this.changes=new _s,this.length=0}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}[Rt()](){return this._results[Rt()]()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?(n===t&&(n=t.slice(0,r)),e(s,n)):n!==t&&n.push(s)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class bs{}const ws=new ke("Application Initializer"),Ss=(()=>(class{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();At(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}))(),xs=new ke("AppId");function Es(){return`${Cs()}${Cs()}${Cs()}`}function Cs(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ks=new ke("Platform Initializer"),Os=new ke("Platform ID"),Ms=new ke("appBootstrapListener"),Ts=(()=>(class{log(e){console.log(e)}warn(e){console.warn(e)}}))();function Is(){throw new Error("Runtime compiler is not loaded")}const As=Is,Ps=Is,Ns=Is,Rs=Is,Vs=(()=>(class{constructor(){this.compileModuleSync=As,this.compileModuleAsync=Ps,this.compileModuleAndAllComponentsSync=Ns,this.compileModuleAndAllComponentsAsync=Rs}clearCache(){}clearCacheFor(e){}getModuleId(e){}}))();class Ls{}let Ds,Us;function Fs(){const e=we.wtf;return!(!e||!(Ds=e.trace)||(Us=Ds.events,0))}const js=Fs(),Bs=js?function(e,t=null){return Us.createScope(e,t)}:(e,t)=>(function(e,t){return null}),Hs=js?function(e,t){return Ds.leaveScope(e,t),t}:(e,t)=>t,zs=(()=>Promise.resolve(0))();function $s(e){"undefined"==typeof Zone?zs.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ws{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _s(!1),this.onMicrotaskEmpty=new _s(!1),this.onStable=new _s(!1),this.onError=new _s(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var t;Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,s,o,i)=>{try{return Qs(t),e.invokeTask(r,s,o,i)}finally{Ys(t)}},onInvoke:(e,n,r,s,o,i,l)=>{try{return Qs(t),e.invoke(r,s,o,i,l)}finally{Ys(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t.hasPendingMicrotasks=s.microTask,Zs(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ws.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ws.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,qs,Gs,Gs);try{return s.runTask(o,t,n)}finally{s.cancelTask(o)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function Gs(){}const qs={};function Zs(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Qs(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ys(e){e._nesting--,Zs(e)}class Ks{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _s,this.onMicrotaskEmpty=new _s,this.onStable=new _s,this.onError=new _s}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}const Xs=(()=>(class{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:()=>{Ws.assertNotInAngularZone(),$s(()=>{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())$s(()=>{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(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.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,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}))(),Js=(()=>{class e{constructor(){this._applications=new Map,no.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}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,t=!0){return no.findTestabilityInTree(this,e,t)}}return e.ctorParameters=(()=>[]),e})();class eo{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let to,no=new eo,ro=function(e){return e instanceof Qt};const so=new ke("AllowMultipleToken");class oo{constructor(e,t){this.name=e,this.token=t}}function io(e,t,n=[]){const r=`Platform: ${t}`,s=new ke(r);return(t=[])=>{let o=lo();if(!o||o.injector.get(so,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0});!function(e){if(to&&!to.destroyed&&!to.injector.get(so,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");to=e.get(ao);const t=e.get(ks,null);t&&t.forEach(e=>e())}(Ae.create({providers:e,name:r}))}return function(e){const t=lo();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(s)}}function lo(){return to&&!to.destroyed?to:null}const ao=(()=>(class{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n="noop"===(s=t?t.ngZone:void 0)?new Ks:("zone.js"===s?void 0:s)||new Ws({enableLongStackTrace:rt()}),r=[{provide:Ws,useValue:n}];var s;return n.run(()=>{const t=Ae.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),o=s.injector.get(et,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>ho(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{o.handleError(e)}})),function(e,t,n){try{const s=n();return At(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(o,n,()=>{const e=s.injector.get(Ss);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=uo({},t);return function(e,t,n){return e.get(Ls).createCompiler([t]).compileModuleAsync(n)}(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(co);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${me(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}))();function uo(e,t){return Array.isArray(t)?t.reduce(uo,e):Object.assign({},e,t)}const co=(()=>{class e{constructor(e,t,n,r,s,o){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=rt(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new w(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),l=new w(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Ws.assertNotInAngularZone(),$s(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Ws.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return T(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof w?e[0]:K(t)(W(e,n))}(i,l.pipe(e=>X()(function(e,t){return function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,ne);return r.source=t,r.subjectFactory=n,r}}(se)(e))))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof zt?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=ro(n)?null:this._injector.get(Yt),s=n.create(Ae.NULL,[],t||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const o=s.injector.get(Xs,null);return o&&s.injector.get(Js).registerApplication(s.location.nativeElement,o),this._loadComponent(s),rt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const t=e._tickScope();try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,Hs(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;ho(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Ms,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),ho(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=Bs("ApplicationRef#tick()"),e})();function ho(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class po{}const fo={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},go=(()=>(class{constructor(e,t){this._compiler=e,this._config=t||fo}load(e){return this._compiler instanceof Vs?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n("zn8P")(t).then(e=>e[r]).then(e=>mo(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+s]).then(e=>mo(e,t,r))}}))();function mo(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class yo{constructor(e,t){this.name=e,this.callback=t}}class _o{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof vo&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class vo extends _o{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,r){t.childNodes.forEach(t=>{t instanceof vo&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,r){t instanceof vo&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof vo&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof vo)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}const bo=new Map,wo=function(e){return bo.get(e)||null};function So(e){bo.set(e.nativeNode,e)}const xo=io(null,"core",[{provide:Os,useValue:"unknown"},{provide:ao,deps:[Ae]},{provide:Js,deps:[]},{provide:Ts,deps:[]}]),Eo=new ke("LocaleId");function Co(){return En}function ko(){return Cn}function Oo(e){return e||"en-US"}function Mo(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}const To=(()=>(class{constructor(e){}}))();function Io(e,t,n,r,s,o){e|=1;const{matchedQueries:i,references:l,matchedQueryIds:a}=or(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:i,matchedQueryIds:a,references:l,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?ur(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:s||Bn},provider:null,text:null,query:null,ngContent:null}}function Ao(e,t,n,r,s,o,i=[],l,a,u,c,h){u||(u=Bn);const{matchedQueries:d,references:p,matchedQueryIds:f}=or(n);let g=null,m=null;o&&([g,m]=mr(o)),l=l||[];const y=new Array(l.length);for(let b=0;b<l.length;b++){const[e,t,n]=l[b],[r,s]=mr(t);let o=void 0,i=void 0;switch(15&e){case 4:i=n;break;case 1:case 8:o=n}y[b]={flags:e,ns:r,name:s,nonMinifiedName:s,securityContext:o,suffix:i}}a=a||[];const _=new Array(a.length);for(let b=0;b<a.length;b++){const[e,t]=a[b];_[b]={type:0,target:e,eventName:t,propName:null}}const v=(i=i||[]).map(([e,t])=>{const[n,r]=mr(e);return[n,r,t]});return h=function(e){if(e&&e.id===$n){const t=null!=e.encapsulation&&e.encapsulation!==Qe.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${qn++}`:Wn}return e&&e.id===Wn&&(e=null),e||null}(h),c&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:f,references:p,ngContentIndex:r,childCount:s,bindings:y,bindingFlags:yr(y),outputs:_,element:{ns:g,name:m,attrs:v,template:null,componentProvider:null,componentView:c||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:u||Bn},provider:null,text:null,query:null,ngContent:null}}function Po(e,t,n){const r=n.element,s=e.root.selectorOrNode,o=e.renderer;let i;if(e.parent||!s){i=r.name?o.createElement(r.name,r.ns):o.createComment("");const s=lr(e,t,n);s&&o.appendChild(s,i)}else i=o.selectRootElement(s,!!r.componentRendererType&&r.componentRendererType.encapsulation===Qe.ShadowDom);if(r.attrs)for(let l=0;l<r.attrs.length;l++){const[e,t,n]=r.attrs[l];o.setAttribute(i,t,n,e)}return i}function No(e,t,n,r){for(let i=0;i<n.outputs.length;i++){const l=n.outputs[i],a=Ro(e,n.nodeIndex,(o=l.eventName,(s=l.target)?`${s}:${o}`:o));let u=l.target,c=e;"component"===l.target&&(u=null,c=t);const h=c.renderer.listen(u||r,l.eventName,a);e.disposables[n.outputIndex+i]=h}var s,o}function Ro(e,t,n){return r=>Jn(e,t,n,r)}function Vo(e,t,n,r){if(!Qn(e,t,n,r))return!1;const s=t.bindings[n],o=Ln(e,t.nodeIndex),i=o.renderElement,l=s.name;switch(15&s.flags){case 1:!function(e,t,n,r,s,o){const i=t.securityContext;let l=i?e.root.sanitizer.sanitize(i,o):o;l=null!=l?l.toString():null;const a=e.renderer;null!=o?a.setAttribute(n,s,l,r):a.removeAttribute(n,s,r)}(e,s,i,s.ns,l,r);break;case 2:!function(e,t,n,r){const s=e.renderer;r?s.addClass(t,n):s.removeClass(t,n)}(e,i,l,r);break;case 4:!function(e,t,n,r,s){let o=e.root.sanitizer.sanitize(Ct.STYLE,s);if(null!=o){o=o.toString();const e=t.suffix;null!=e&&(o+=e)}else o=null;const i=e.renderer;null!=o?i.setStyle(n,r,o):i.removeStyle(n,r)}(e,s,i,l,r);break;case 8:!function(e,t,n,r,s){const o=t.securityContext;let i=o?e.root.sanitizer.sanitize(o,s):s;e.renderer.setProperty(n,r,i)}(33554432&t.flags&&32&s.flags?o.componentView:e,s,i,l,r)}return!0}function Lo(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&sr(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let s=0;s<=r;s++){const r=e.def.nodes[s];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&Fn(e,s).setDirty(),!(1&r.flags&&s+r.childCount<n.nodeIndex)&&67108864&r.childFlags&&536870912&r.childFlags||(s+=r.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const t=e.def.nodes[n];134217728&t.flags&&536870912&t.flags&&Fn(e,n).setDirty(),n+=t.childCount}}function Do(e,t){const n=Fn(e,t.nodeIndex);if(!n.dirty)return;let r,s=void 0;if(67108864&t.flags){const n=t.parent.parent;s=Uo(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),r=Dn(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(s=Uo(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(s);const o=t.query.bindings;let i=!1;for(let l=0;l<o.length;l++){const e=o[l];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,i=!0}r[e.propName]=t}i&&n.notifyOnChanges()}function Uo(e,t,n,r,s){for(let o=t;o<=n;o++){const t=e.def.nodes[o],n=t.matchedQueries[r.id];if(null!=n&&s.push(Fo(e,t,n)),1&t.flags&&t.element.template&&(t.element.template.nodeMatchedQueries&r.filterId)===r.filterId){const n=Ln(e,o);if((t.childMatchedQueries&r.filterId)===r.filterId&&(Uo(e,o+1,o+t.childCount,r,s),o+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const o=e[t],i=er(o);i&&i===n&&Uo(o,0,o.def.nodes.length-1,r,s)}}const i=n.template._projectedViews;if(i)for(let e=0;e<i.length;e++){const t=i[e];Uo(t,0,t.def.nodes.length-1,r,s)}}(t.childMatchedQueries&r.filterId)!==r.filterId&&(o+=t.childCount)}return s}function Fo(e,t,n){if(null!=n)switch(n){case 1:return Ln(e,t.nodeIndex).renderElement;case 0:return new Jt(Ln(e,t.nodeIndex).renderElement);case 2:return Ln(e,t.nodeIndex).template;case 3:return Ln(e,t.nodeIndex).viewContainer;case 4:return Dn(e,t.nodeIndex).instance}}function jo(e,t,n){const r=lr(e,t,n);r&&dr(e,n.ngContent.index,1,r,null,void 0)}function Bo(e,t,n){const r=new Array(n.length-1);for(let s=1;s<n.length;s++)r[s-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[s]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Ho(e,t,n){let r;const s=e.renderer;r=s.createText(n.text.prefix);const o=lr(e,t,n);return o&&s.appendChild(o,r),{renderText:r}}function zo(e,t){return(null!=e?e.toString():"")+t.suffix}function $o(e,t,n,r){let s=0,o=0,i=0,l=0,a=0,u=null,c=null,h=!1,d=!1,p=null;for(let f=0;f<t.length;f++){const e=t[f];if(e.nodeIndex=f,e.parent=u,e.bindingIndex=s,e.outputIndex=o,e.renderParent=c,i|=e.flags,a|=e.matchedQueryIds,e.element){const t=e.element;t.publicProviders=u?u.element.publicProviders:Object.create(null),t.allProviders=t.publicProviders,h=!1,d=!1,e.element.template&&(a|=e.element.template.nodeMatchedQueries)}if(Go(u,e,t.length),s+=e.bindings.length,o+=e.outputs.length,!c&&3&e.flags&&(p=e),20224&e.flags){h||(h=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);const t=0!=(32768&e.flags);0==(8192&e.flags)||t?u.element.publicProviders[zn(e.provider.token)]=e:(d||(d=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[zn(e.provider.token)]=e),t&&(u.element.componentProvider=e)}if(u?(u.childFlags|=e.flags,u.directChildFlags|=e.flags,u.childMatchedQueries|=e.matchedQueryIds,e.element&&e.element.template&&(u.childMatchedQueries|=e.element.template.nodeMatchedQueries)):l|=e.flags,e.childCount>0)u=e,Wo(e)||(c=e);else for(;u&&f===u.nodeIndex+u.childCount;){const e=u.parent;e&&(e.childFlags|=u.childFlags,e.childMatchedQueries|=u.childMatchedQueries),c=(u=e)&&Wo(u)?u.renderParent:u}}return{factory:null,nodeFlags:i,rootNodeFlags:l,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||Bn,updateRenderer:r||Bn,handleEvent:(e,n,r,s)=>t[n].element.handleEvent(e,r,s),bindingCount:s,outputCount:o,lastRenderRootNode:p}}function Wo(e){return 0!=(1&e.flags)&&null===e.element.name}function Go(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function qo(e,t,n,r){const s=Yo(e.root,e.renderer,e,t,n);return Ko(s,e.component,r),Xo(s),s}function Zo(e,t,n){const r=Yo(e,e.renderer,null,null,t);return Ko(r,n,n),Xo(r),r}function Qo(e,t,n,r){const s=t.element.componentRendererType;let o;return o=s?e.root.rendererFactory.createRenderer(r,s):e.root.renderer,Yo(e.root,o,e,t.element.componentProvider,n)}function Yo(e,t,n,r,s){const o=new Array(s.nodes.length),i=s.outputCount?new Array(s.outputCount):null;return{def:s,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(s.bindingCount),disposables:i,initIndex:-1}}function Ko(e,t,n){e.component=t,e.context=n}function Xo(e){let t;rr(e)&&(t=Ln(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let s=0;s<n.nodes.length;s++){const o=n.nodes[s];let i;switch(jn.setCurrentNode(e,s),201347067&o.flags){case 1:const n=Po(e,t,o);let l=void 0;if(33554432&o.flags){const t=ur(o.element.componentView);l=jn.createComponentView(e,o,t,n)}No(e,l,o,n),i={renderElement:n,componentView:l,viewContainer:null,template:o.element.template?Ur(e,o):void 0},16777216&o.flags&&(i.viewContainer=Rr(e,o,i));break;case 2:i=Ho(e,t,o);break;case 512:case 1024:case 2048:case 256:(i=r[s])||4096&o.flags||(i={instance:ss(e,o)});break;case 16:i={instance:os(e,o)};break;case 16384:(i=r[s])||(i={instance:is(e,o)}),32768&o.flags&&Ko(Ln(e,o.parent.nodeIndex).componentView,i.instance,i.instance);break;case 32:case 64:case 128:i={value:void 0};break;case 67108864:case 134217728:i=new vs;break;case 8:jo(e,t,o),i=void 0}r[s]=i}li(e,ii.CreateViewNodes),hi(e,201326592,268435456,0)}function Jo(e){ni(e),jn.updateDirectives(e,1),ai(e,ii.CheckNoChanges),jn.updateRenderer(e,1),li(e,ii.CheckNoChanges),e.state&=-97}function ei(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Nn(e,0,256),ni(e),jn.updateDirectives(e,0),ai(e,ii.CheckAndUpdate),hi(e,67108864,536870912,0);let t=Nn(e,256,512);fs(e,2097152|(t?1048576:0)),jn.updateRenderer(e,0),li(e,ii.CheckAndUpdate),hi(e,134217728,536870912,0),fs(e,8388608|((t=Nn(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Nn(e,768,1024)}function ti(e,t,n,r,s,o,i,l,a,u,c,h,d){return 0===n?function(e,t,n,r,s,o,i,l,a,u,c,h){switch(201347067&t.flags){case 1:return function(e,t,n,r,s,o,i,l,a,u,c,h){const d=t.bindings.length;let p=!1;return d>0&&Vo(e,t,0,n)&&(p=!0),d>1&&Vo(e,t,1,r)&&(p=!0),d>2&&Vo(e,t,2,s)&&(p=!0),d>3&&Vo(e,t,3,o)&&(p=!0),d>4&&Vo(e,t,4,i)&&(p=!0),d>5&&Vo(e,t,5,l)&&(p=!0),d>6&&Vo(e,t,6,a)&&(p=!0),d>7&&Vo(e,t,7,u)&&(p=!0),d>8&&Vo(e,t,8,c)&&(p=!0),d>9&&Vo(e,t,9,h)&&(p=!0),p}(e,t,n,r,s,o,i,l,a,u,c,h);case 2:return function(e,t,n,r,s,o,i,l,a,u,c,h){let d=!1;const p=t.bindings,f=p.length;if(f>0&&Qn(e,t,0,n)&&(d=!0),f>1&&Qn(e,t,1,r)&&(d=!0),f>2&&Qn(e,t,2,s)&&(d=!0),f>3&&Qn(e,t,3,o)&&(d=!0),f>4&&Qn(e,t,4,i)&&(d=!0),f>5&&Qn(e,t,5,l)&&(d=!0),f>6&&Qn(e,t,6,a)&&(d=!0),f>7&&Qn(e,t,7,u)&&(d=!0),f>8&&Qn(e,t,8,c)&&(d=!0),f>9&&Qn(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;f>0&&(d+=zo(n,p[0])),f>1&&(d+=zo(r,p[1])),f>2&&(d+=zo(s,p[2])),f>3&&(d+=zo(o,p[3])),f>4&&(d+=zo(i,p[4])),f>5&&(d+=zo(l,p[5])),f>6&&(d+=zo(a,p[6])),f>7&&(d+=zo(u,p[7])),f>8&&(d+=zo(c,p[8])),f>9&&(d+=zo(h,p[9]));const g=Vn(e,t.nodeIndex).renderText;e.renderer.setValue(g,d)}return d}(e,t,n,r,s,o,i,l,a,u,c,h);case 16384:return function(e,t,n,r,s,o,i,l,a,u,c,h){const d=Dn(e,t.nodeIndex),p=d.instance;let f=!1,g=void 0;const m=t.bindings.length;return m>0&&Zn(e,t,0,n)&&(f=!0,g=ps(e,d,t,0,n,g)),m>1&&Zn(e,t,1,r)&&(f=!0,g=ps(e,d,t,1,r,g)),m>2&&Zn(e,t,2,s)&&(f=!0,g=ps(e,d,t,2,s,g)),m>3&&Zn(e,t,3,o)&&(f=!0,g=ps(e,d,t,3,o,g)),m>4&&Zn(e,t,4,i)&&(f=!0,g=ps(e,d,t,4,i,g)),m>5&&Zn(e,t,5,l)&&(f=!0,g=ps(e,d,t,5,l,g)),m>6&&Zn(e,t,6,a)&&(f=!0,g=ps(e,d,t,6,a,g)),m>7&&Zn(e,t,7,u)&&(f=!0,g=ps(e,d,t,7,u,g)),m>8&&Zn(e,t,8,c)&&(f=!0,g=ps(e,d,t,8,c,g)),m>9&&Zn(e,t,9,h)&&(f=!0,g=ps(e,d,t,9,h,g)),g&&p.ngOnChanges(g),65536&t.flags&&Rn(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),f}(e,t,n,r,s,o,i,l,a,u,c,h);case 32:case 64:case 128:return function(e,t,n,r,s,o,i,l,a,u,c,h){const d=t.bindings;let p=!1;const f=d.length;if(f>0&&Qn(e,t,0,n)&&(p=!0),f>1&&Qn(e,t,1,r)&&(p=!0),f>2&&Qn(e,t,2,s)&&(p=!0),f>3&&Qn(e,t,3,o)&&(p=!0),f>4&&Qn(e,t,4,i)&&(p=!0),f>5&&Qn(e,t,5,l)&&(p=!0),f>6&&Qn(e,t,6,a)&&(p=!0),f>7&&Qn(e,t,7,u)&&(p=!0),f>8&&Qn(e,t,8,c)&&(p=!0),f>9&&Qn(e,t,9,h)&&(p=!0),p){const p=Un(e,t.nodeIndex);let g;switch(201347067&t.flags){case 32:g=new Array(d.length),f>0&&(g[0]=n),f>1&&(g[1]=r),f>2&&(g[2]=s),f>3&&(g[3]=o),f>4&&(g[4]=i),f>5&&(g[5]=l),f>6&&(g[6]=a),f>7&&(g[7]=u),f>8&&(g[8]=c),f>9&&(g[9]=h);break;case 64:g={},f>0&&(g[d[0].name]=n),f>1&&(g[d[1].name]=r),f>2&&(g[d[2].name]=s),f>3&&(g[d[3].name]=o),f>4&&(g[d[4].name]=i),f>5&&(g[d[5].name]=l),f>6&&(g[d[6].name]=a),f>7&&(g[d[7].name]=u),f>8&&(g[d[8].name]=c),f>9&&(g[d[9].name]=h);break;case 128:const e=n;switch(f){case 1:g=e.transform(n);break;case 2:g=e.transform(r);break;case 3:g=e.transform(r,s);break;case 4:g=e.transform(r,s,o);break;case 5:g=e.transform(r,s,o,i);break;case 6:g=e.transform(r,s,o,i,l);break;case 7:g=e.transform(r,s,o,i,l,a);break;case 8:g=e.transform(r,s,o,i,l,a,u);break;case 9:g=e.transform(r,s,o,i,l,a,u,c);break;case 10:g=e.transform(r,s,o,i,l,a,u,c,h)}}p.value=g}return p}(e,t,n,r,s,o,i,l,a,u,c,h);default:throw"unreachable"}}(e,t,r,s,o,i,l,a,u,c,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let s=0;s<n.length;s++)Vo(e,t,s,n[s])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){const r=t.bindings;let s=!1;for(let o=0;o<n.length;o++)Qn(e,t,o,n[o])&&(s=!0);if(s){let s="";for(let e=0;e<n.length;e++)s+=zo(n[e],r[e]);s=t.text.prefix+s;const o=Vn(e,t.nodeIndex).renderText;e.renderer.setValue(o,s)}return s}(e,t,n);case 16384:return function(e,t,n){const r=Dn(e,t.nodeIndex),s=r.instance;let o=!1,i=void 0;for(let l=0;l<n.length;l++)Zn(e,t,l,n[l])&&(o=!0,i=ps(e,r,t,l,n[l],i));return i&&s.ngOnChanges(i),65536&t.flags&&Rn(e,256,t.nodeIndex)&&s.ngOnInit(),262144&t.flags&&s.ngDoCheck(),o}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const r=t.bindings;let s=!1;for(let o=0;o<n.length;o++)Qn(e,t,o,n[o])&&(s=!0);if(s){const s=Un(e,t.nodeIndex);let o;switch(201347067&t.flags){case 32:o=n;break;case 64:o={};for(let t=0;t<n.length;t++)o[r[t].name]=n[t];break;case 128:const e=n[0],s=n.slice(1);o=e.transform(...s)}s.value=o}return s}(e,t,n);default:throw"unreachable"}}(e,t,r)}function ni(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const r=t.nodes[n];if(4&r.flags){const t=Ln(e,n).template._projectedViews;if(t)for(let n=0;n<t.length;n++){const r=t[n];r.state|=32,Xn(r,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function ri(e,t,n,r,s,o,i,l,a,u,c,h,d){return 0===n?function(e,t,n,r,s,o,i,l,a,u,c,h){const d=t.bindings.length;d>0&&Yn(e,t,0,n),d>1&&Yn(e,t,1,r),d>2&&Yn(e,t,2,s),d>3&&Yn(e,t,3,o),d>4&&Yn(e,t,4,i),d>5&&Yn(e,t,5,l),d>6&&Yn(e,t,6,a),d>7&&Yn(e,t,7,u),d>8&&Yn(e,t,8,c),d>9&&Yn(e,t,9,h)}(e,t,r,s,o,i,l,a,u,c,h,d):function(e,t,n){for(let r=0;r<n.length;r++)Yn(e,t,r,n[r])}(e,t,r),!1}function si(e,t){if(Fn(e,t.nodeIndex).dirty)throw In(jn.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function oi(e){if(!(128&e.state)){if(ai(e,ii.Destroy),li(e,ii.Destroy),fs(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(!(16&e.state))return;const t=er(e);if(t){const n=t.template._projectedViews;n&&(Tr(n,n.indexOf(e)),jn.dirtyParentQueries(e))}}(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const t=e.def.nodes[n];1&t.flags?e.renderer.destroyNode(Ln(e,n).renderElement):2&t.flags?e.renderer.destroyNode(Vn(e,n).renderText):(67108864&t.flags||134217728&t.flags)&&Fn(e,n).destroy()}}(e),rr(e)&&e.renderer.destroy(),e.state|=128}}const ii=function(){var e={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return e[e.CreateViewNodes]="CreateViewNodes",e[e.CheckNoChanges]="CheckNoChanges",e[e.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",e[e.Destroy]="Destroy",e}();function li(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];33554432&s.flags?ui(Ln(e,r).componentView,t):0==(33554432&s.childFlags)&&(r+=s.childCount)}}function ai(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];if(16777216&s.flags){const n=Ln(e,r).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)ui(n[e],t)}else 0==(16777216&s.childFlags)&&(r+=s.childCount)}}function ui(e,t){const n=e.state;switch(t){case ii.CheckNoChanges:0==(128&n)&&(12==(12&n)?Jo(e):64&n&&ci(e,ii.CheckNoChangesProjectedViews));break;case ii.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Jo(e):64&n&&ci(e,t));break;case ii.CheckAndUpdate:0==(128&n)&&(12==(12&n)?ei(e):64&n&&ci(e,ii.CheckAndUpdateProjectedViews));break;case ii.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?ei(e):64&n&&ci(e,t));break;case ii.Destroy:oi(e);break;case ii.CreateViewNodes:Xo(e)}}function ci(e,t){ai(e,t),li(e,t)}function hi(e,t,n,r){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const s=e.def.nodes.length;for(let o=0;o<s;o++){const s=e.def.nodes[o];if(s.flags&t&&s.flags&n)switch(jn.setCurrentNode(e,s.nodeIndex),r){case 0:Do(e,s);break;case 1:si(e,s)}s.childFlags&t&&s.childFlags&n||(o+=s.childCount)}}let di=!1;function pi(e,t,n,r,s,o){const i=s.injector.get(nn);return Zo(gi(e,s,i,t,n),r,o)}function fi(e,t,n,r,s,o){const i=s.injector.get(nn),l=gi(e,s,new qi(i),t,n),a=Ci(r);return Wi(Ai.create,Zo,null,[l,a,o])}function gi(e,t,n,r,s){const o=t.injector.get(kt),i=t.injector.get(et),l=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:s,sanitizer:o,rendererFactory:n,renderer:l,errorHandler:i}}function mi(e,t,n,r){const s=Ci(n);return Wi(Ai.create,qo,null,[e,t,s,r])}function yi(e,t,n,r){return n=wi.get(t.element.componentProvider.provider.token)||Ci(n),Wi(Ai.create,Qo,null,[e,t,n,r])}function _i(e,t,n,r){return Wr(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===vi.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(e=>{const r=vi.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{bi.forEach((r,s)=>{fe(s).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e);return t?(function(e){for(let t=0;t<e.providers.length;t++){const r=e.providers[t];n&&(r.flags|=4096);const s=vi.get(r.token);s&&(r.flags=-3841&r.flags|s.flags,r.deps=ir(s.deps),r.value=s.value)}if(bi.size>0){let t=new Set(e.modules);bi.forEach((r,s)=>{if(t.has(fe(s).providedIn)){let t={token:s,flags:r.flags|(n?4096:0),deps:ir(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[zn(s)]=t}})}}(e=e.factory(()=>Bn)),e):e}(r))}const vi=new Map,bi=new Map,wi=new Map;function Si(e){let t;vi.set(e.token,e),"function"==typeof e.token&&(t=fe(e.token))&&"function"==typeof t.providedIn&&bi.set(e.token,e)}function xi(e,t){const n=ur(t.viewDefFactory),r=ur(n.nodes[0].element.componentView);wi.set(e,r)}function Ei(){vi.clear(),bi.clear(),wi.clear()}function Ci(e){if(0===vi.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;r<e.nodes.length;r++){const s=e.nodes[r];1&s.flags&&(n=s),n&&3840&s.flags&&vi.has(s.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>Bn);for(let r=0;r<t.length;r++)n(e,t[r]);return e;function n(e,t){for(let n=t+1;n<e.nodes.length;n++){const t=e.nodes[n];if(1&t.flags)return;if(3840&t.flags){const e=t.provider,n=vi.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=ir(n.deps),e.value=n.value)}}}}function ki(e,t,n,r,s,o,i,l,a,u,c,h,d){const p=e.def.nodes[t];return ti(e,p,n,r,s,o,i,l,a,u,c,h,d),224&p.flags?Un(e,t).value:void 0}function Oi(e,t,n,r,s,o,i,l,a,u,c,h,d){const p=e.def.nodes[t];return ri(e,p,n,r,s,o,i,l,a,u,c,h,d),224&p.flags?Un(e,t).value:void 0}function Mi(e){return Wi(Ai.detectChanges,ei,null,[e])}function Ti(e){return Wi(Ai.checkNoChanges,Jo,null,[e])}function Ii(e){return Wi(Ai.destroy,oi,null,[e])}const Ai=function(){var e={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return e[e.create]="create",e[e.detectChanges]="detectChanges",e[e.checkNoChanges]="checkNoChanges",e[e.destroy]="destroy",e[e.handleEvent]="handleEvent",e}();let Pi,Ni,Ri;function Vi(e,t){Ni=e,Ri=t}function Li(e,t,n,r){return Vi(e,t),Wi(Ai.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function Di(e,t){if(128&e.state)throw Pn(Ai[Pi]);return Vi(e,Bi(e,0)),e.def.updateDirectives(function(e,n,r,...s){const o=e.def.nodes[n];return 0===t?Fi(e,o,r,s):ji(e,o,r,s),16384&o.flags&&Vi(e,Bi(e,n)),224&o.flags?Un(e,o.nodeIndex).value:void 0},e)}function Ui(e,t){if(128&e.state)throw Pn(Ai[Pi]);return Vi(e,Hi(e,0)),e.def.updateRenderer(function(e,n,r,...s){const o=e.def.nodes[n];return 0===t?Fi(e,o,r,s):ji(e,o,r,s),3&o.flags&&Vi(e,Hi(e,n)),224&o.flags?Un(e,o.nodeIndex).value:void 0},e)}function Fi(e,t,n,r){if(ti(e,t,n,...r)){const i=1===n?r[0]:r;if(16384&t.flags){const n={};for(let e=0;e<t.bindings.length;e++){const r=t.bindings[e],l=i[e];8&r.flags&&(n[(s=r.nonMinifiedName,o=void 0,o=s.replace(/[$@]/g,"_"),`ng-reflect-${s=o.replace(Tt,(...e)=>"-"+e[1].toLowerCase())}`)]=It(l))}const r=t.parent,l=Ln(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(l,t,r):e.renderer.removeAttribute(l,t)}else e.renderer.setValue(l,`bindings=${JSON.stringify(n,null,2)}`)}}var s,o}function ji(e,t,n,r){ri(e,t,n,...r)}function Bi(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(16384&t.flags&&t.bindings&&t.bindings.length)return n}return null}function Hi(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(3&t.flags&&t.bindings&&t.bindings.length)return n}return null}class zi{constructor(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];let n=this.nodeDef,r=e;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=tr(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return Ln(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return jr(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const e=[];if(this.elDef)for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e}get references(){const e={};if(this.elDef){$i(this.elView,this.elDef,e);for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&$i(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!rr(e);)e=e.parent;return e.parent?Ln(e.parent,tr(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?nr(this.view,this.nodeDef):nr(this.elView,this.elDef)}logError(e,...t){let n,r;2&this.nodeDef.flags?(n=this.view.def,r=this.nodeDef.nodeIndex):(n=this.elView.def,r=this.elDef.nodeIndex);const s=function(e,t){let n=-1;for(let r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(n,r);let o=-1;n.factory(()=>++o===s?e.error.bind(e,...t):Bn),o<s&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function $i(e,t,n){for(let r in t.references)n[r]=Fo(e,t,t.references[r])}function Wi(e,t,n,r){const s=Pi,o=Ni,i=Ri;try{Pi=e;const a=t.apply(n,r);return Ni=o,Ri=i,Pi=s,a}catch(l){if(Ke(l)||!Ni)throw l;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),An(e,t),e}(l,Gi())}}function Gi(){return Ni?new zi(Ni,Ri):null}class qi{constructor(e){this.delegate=e}createRenderer(e,t){return new Zi(this.delegate.createRenderer(e,t))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class Zi{constructor(e){this.delegate=e,this.debugContextFactory=Gi,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){!function(e){bo.delete(e.nativeNode)}(wo(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)}destroy(){this.delegate.destroy()}createElement(e,t){const n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){const t=new vo(n,null,r);t.name=e,So(t)}return n}createComment(e){const t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&So(new _o(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&So(new _o(t,null,n)),t}appendChild(e,t){const n=wo(e),r=wo(t);n&&r&&n instanceof vo&&n.addChild(r),this.delegate.appendChild(e,t)}insertBefore(e,t,n){const r=wo(e),s=wo(t),o=wo(n);r&&s&&r instanceof vo&&r.insertBefore(o,s),this.delegate.insertBefore(e,t,n)}removeChild(e,t){const n=wo(e),r=wo(t);n&&r&&n instanceof vo&&n.removeChild(r),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),r=Gi();return r&&So(new vo(n,null,r)),n}setAttribute(e,t,n,r){const s=wo(e);s&&s instanceof vo&&(s.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){const r=wo(e);r&&r instanceof vo&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=wo(e);n&&n instanceof vo&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=wo(e);n&&n instanceof vo&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,r){const s=wo(e);s&&s instanceof vo&&(s.styles[t]=n),this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){const r=wo(e);r&&r instanceof vo&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const r=wo(e);r&&r instanceof vo&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const r=wo(e);r&&r.listeners.push(new yo(t,n))}return this.delegate.listen(e,t,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setValue(e,t){return this.delegate.setValue(e,t)}}function Qi(e,t,n){return new Yi(e,t,n)}class Yi extends Kt{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){!function(){if(di)return;di=!0;const e=rt()?{setCurrentNode:Vi,createRootView:fi,createEmbeddedView:mi,createComponentView:yi,createNgModuleRef:_i,overrideProvider:Si,overrideComponentView:xi,clearOverrides:Ei,checkAndUpdateView:Mi,checkNoChangesView:Ti,destroyView:Ii,createDebugContext:(e,t)=>new zi(e,t),handleEvent:Li,updateDirectives:Di,updateRenderer:Ui}:{setCurrentNode:()=>{},createRootView:pi,createEmbeddedView:qo,createComponentView:Qo,createNgModuleRef:Wr,overrideProvider:Bn,overrideComponentView:Bn,clearOverrides:Bn,checkAndUpdateView:ei,checkNoChangesView:Jo,destroyView:oi,createDebugContext:(e,t)=>new zi(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?ki:Oi,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?ki:Oi,e)};jn.setCurrentNode=e.setCurrentNode,jn.createRootView=e.createRootView,jn.createEmbeddedView=e.createEmbeddedView,jn.createComponentView=e.createComponentView,jn.createNgModuleRef=e.createNgModuleRef,jn.overrideProvider=e.overrideProvider,jn.overrideComponentView=e.overrideComponentView,jn.clearOverrides=e.clearOverrides,jn.checkAndUpdateView=e.checkAndUpdateView,jn.checkNoChangesView=e.checkNoChangesView,jn.destroyView=e.destroyView,jn.resolveDep=hs,jn.createDebugContext=e.createDebugContext,jn.handleEvent=e.handleEvent,jn.updateDirectives=e.updateDirectives,jn.updateRenderer=e.updateRenderer,jn.dirtyParentQueries=Lo}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const s in e.providersByKey)r[s]=e.providersByKey[s];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(ur(this._ngModuleDefFactory));return jn.createNgModuleRef(this.moduleType,e||Ae.NULL,this._bootstrapComponents,t)}}class Ki{}class Xi{constructor(){this.title="user-registration-client"}}class Ji{}const el=new ke("Location Initialized");class tl{}const nl=new ke("appBaseHref"),rl=(()=>{class e{constructor(t,n){this._subject=new _s,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=e.stripTrailingSlash(sl(r)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+e.normalizeQueryParams(n))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,sl(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(t,n="",r=null){this._platformStrategy.pushState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+e.normalizeQueryParams(n)),r)}replaceState(t,n="",r=null){this._platformStrategy.replaceState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+e.normalizeQueryParams(n)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)})}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}static normalizeQueryParams(e){return e&&"?"!==e[0]?"?"+e:e}static joinWithSlash(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}static stripTrailingSlash(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}}return e})();function sl(e){return e.replace(/\/index.html$/,"")}const ol=(()=>(class extends tl{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=rl.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let s=this.prepareExternalUrl(n+rl.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){let s=this.prepareExternalUrl(n+rl.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}))(),il=(()=>(class extends tl{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)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=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return rl.joinWithSlash(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+rl.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const s=this.prepareExternalUrl(n+rl.normalizeQueryParams(r));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){const s=this.prepareExternalUrl(n+rl.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}))(),ll=void 0;var al=["en",[["a","p"],["AM","PM"],ll],[["AM","PM"],ll,ll],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ll,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ll,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ll,"{1} 'at' {0}",ll],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];const ul={},cl=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),hl=function(){var e={Format:0,Standalone:1};return e[e.Format]="Format",e[e.Standalone]="Standalone",e}(),dl=function(){var e={Narrow:0,Abbreviated:1,Wide:2,Short:3};return e[e.Narrow]="Narrow",e[e.Abbreviated]="Abbreviated",e[e.Wide]="Wide",e[e.Short]="Short",e}(),pl=function(){var e={Short:0,Medium:1,Long:2,Full:3};return e[e.Short]="Short",e[e.Medium]="Medium",e[e.Long]="Long",e[e.Full]="Full",e}(),fl=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function gl(e,t){return bl(Sl(e)[10],t)}function ml(e,t){return bl(Sl(e)[11],t)}function yl(e,t){return bl(Sl(e)[12],t)}function _l(e,t){const n=Sl(e),r=n[13][t];if(void 0===r){if(t===fl.CurrencyDecimal)return n[13][fl.Decimal];if(t===fl.CurrencyGroup)return n[13][fl.Group]}return r}function vl(e){if(!e[19])throw new Error(`Missing extra locale data for the locale "${e[0]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function bl(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function wl(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}function Sl(e){const t=e.toLowerCase().replace(/_/g,"-");let n=ul[t];if(n)return n;const r=t.split("-")[0];if(n=ul[r])return n;if("en"===r)return al;throw new Error(`Missing locale data for the locale "${e}".`)}const xl=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,El={},Cl=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,kl=function(){var e={Short:0,ShortGMT:1,Long:2,Extended:3};return e[e.Short]="Short",e[e.ShortGMT]="ShortGMT",e[e.Long]="Long",e[e.Extended]="Extended",e}(),Ol=function(){var e={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return e[e.FullYear]="FullYear",e[e.Month]="Month",e[e.Date]="Date",e[e.Hours]="Hours",e[e.Minutes]="Minutes",e[e.Seconds]="Seconds",e[e.FractionalSeconds]="FractionalSeconds",e[e.Day]="Day",e}(),Ml=function(){var e={DayPeriods:0,Days:1,Months:2,Eras:3};return e[e.DayPeriods]="DayPeriods",e[e.Days]="Days",e[e.Months]="Months",e[e.Eras]="Eras",e}();function Tl(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function Il(e,t,n="-",r,s){let o="";(e<0||s&&e<=0)&&(s?e=1-e:(e=-e,o=n));let i=String(e);for(;i.length<t;)i="0"+i;return r&&(i=i.substr(i.length-t)),o+i}function Al(e,t,n=0,r=!1,s=!1){return function(o,i){let l=function(e,t){switch(e){case Ol.FullYear:return t.getFullYear();case Ol.Month:return t.getMonth();case Ol.Date:return t.getDate();case Ol.Hours:return t.getHours();case Ol.Minutes:return t.getMinutes();case Ol.Seconds:return t.getSeconds();case Ol.FractionalSeconds:return t.getMilliseconds();case Ol.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,o);if((n>0||l>-n)&&(l+=n),e===Ol.Hours)0===l&&-12===n&&(l=12);else if(e===Ol.FractionalSeconds)return a=t,Il(l,3).substr(0,a);var a;const u=_l(i,fl.MinusSign);return Il(l,t,u,r,s)}}function Pl(e,t,n=hl.Format,r=!1){return function(s,o){return function(e,t,n,r,s,o){switch(n){case Ml.Months:return function(e,t,n){const r=Sl(e),s=bl([r[5],r[6]],t);return bl(s,n)}(t,s,r)[e.getMonth()];case Ml.Days:return function(e,t,n){const r=Sl(e),s=bl([r[3],r[4]],t);return bl(s,n)}(t,s,r)[e.getDay()];case Ml.DayPeriods:const i=e.getHours(),l=e.getMinutes();if(o){const e=function(e){const t=Sl(e);return vl(t),(t[19][2]||[]).map(e=>"string"==typeof e?wl(e):[wl(e[0]),wl(e[1])])}(t),n=function(e,t,n){const r=Sl(e);vl(r);const s=bl([r[19][0],r[19][1]],t)||[];return bl(s,n)||[]}(t,s,r);let o;if(e.forEach((e,t)=>{if(Array.isArray(e)){const{hours:r,minutes:s}=e[0],{hours:a,minutes:u}=e[1];i>=r&&l>=s&&(i<a||i===a&&l<u)&&(o=n[t])}else{const{hours:r,minutes:s}=e;r===i&&s===l&&(o=n[t])}}),o)return o}return function(e,t,n){const r=Sl(e),s=bl([r[1],r[2]],t);return bl(s,n)}(t,s,r)[i<12?0:1];case Ml.Eras:return function(e,t){return bl(Sl(e)[7],t)}(t,r)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(s,o,e,t,n,r)}}function Nl(e){return function(t,n,r){const s=-1*r,o=_l(n,fl.MinusSign),i=s>0?Math.floor(s/60):Math.ceil(s/60);switch(e){case kl.Short:return(s>=0?"+":"")+Il(i,2,o)+Il(Math.abs(s%60),2,o);case kl.ShortGMT:return"GMT"+(s>=0?"+":"")+Il(i,1,o);case kl.Long:return"GMT"+(s>=0?"+":"")+Il(i,2,o)+":"+Il(Math.abs(s%60),2,o);case kl.Extended:return 0===r?"Z":(s>=0?"+":"")+Il(i,2,o)+":"+Il(Math.abs(s%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}const Rl=0,Vl=4;function Ll(e,t=!1){return function(n,r){let s;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();s=1+Math.floor((t+e)/7)}else{const e=function(e){const t=new Date(e,Rl,1).getDay();return new Date(e,0,1+(t<=Vl?Vl:Vl+7)-t)}(n.getFullYear()),t=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(Vl-o.getDay()))).getTime()-e.getTime();s=1+Math.round(t/6048e5)}var o;return Il(s,e,_l(r,fl.MinusSign))}}const Dl={};function Ul(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Fl(e){return e instanceof Date&&!isNaN(e.valueOf())}const jl=new ke("UseV4Plurals");class Bl{}const Hl=(()=>(class extends Bl{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return Sl(e)[18]}(t||this.locale)(e)){case cl.Zero:return"zero";case cl.One:return"one";case cl.Two:return"two";case cl.Few:return"few";case cl.Many:return"many";default:return"other"}}}))();function zl(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,s]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}class $l{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}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}}const Wl=(()=>(class{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){rt()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new $l(null,this._ngForOf,-1,-1),r),s=new Gl(e,n);t.push(s)}else if(null==r)this._viewContainer.remove(n);else{const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const o=new Gl(e,s);t.push(o)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=r,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}))();class Gl{constructor(e,t){this.record=e,this.view=t}}const ql=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",r,s){if(null==t||""===t||t!=t)return null;try{return function(e,t,n,r){let s=function(e){if(Fl(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){const[t,n,r]=e.split("-").map(e=>+e);return new Date(t,n-1,r)}let n;if(n=e.match(xl))return function(e){const t=new Date(0);let n=0,r=0;const s=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),s.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const i=Number(e[4]||0)-n,l=Number(e[5]||0)-r,a=Number(e[6]||0),u=Math.round(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,i,l,a,u),t}(n)}const t=new Date(e);if(!Fl(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=function e(t,n){const r=function(e){return Sl(e)[0]}(t);if(El[r]=El[r]||{},El[r][n])return El[r][n];let s="";switch(n){case"shortDate":s=gl(t,pl.Short);break;case"mediumDate":s=gl(t,pl.Medium);break;case"longDate":s=gl(t,pl.Long);break;case"fullDate":s=gl(t,pl.Full);break;case"shortTime":s=ml(t,pl.Short);break;case"mediumTime":s=ml(t,pl.Medium);break;case"longTime":s=ml(t,pl.Long);break;case"fullTime":s=ml(t,pl.Full);break;case"short":const r=e(t,"shortTime"),o=e(t,"shortDate");s=Tl(yl(t,pl.Short),[r,o]);break;case"medium":const i=e(t,"mediumTime"),l=e(t,"mediumDate");s=Tl(yl(t,pl.Medium),[i,l]);break;case"long":const a=e(t,"longTime"),u=e(t,"longDate");s=Tl(yl(t,pl.Long),[a,u]);break;case"full":const c=e(t,"fullTime"),h=e(t,"fullDate");s=Tl(yl(t,pl.Full),[c,h])}return s&&(El[r][n]=s),s}(n,t)||t;let o,i=[];for(;t;){if(!(o=Cl.exec(t))){i.push(t);break}{const e=(i=i.concat(o.slice(1))).pop();if(!e)break;t=e}}let l=s.getTimezoneOffset();r&&(l=Ul(r,l),s=function(e,t,n){const r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(Ul(t,r)-r))}(s,r));let a="";return i.forEach(e=>{const t=function(e){if(Dl[e])return Dl[e];let t;switch(e){case"G":case"GG":case"GGG":t=Pl(Ml.Eras,dl.Abbreviated);break;case"GGGG":t=Pl(Ml.Eras,dl.Wide);break;case"GGGGG":t=Pl(Ml.Eras,dl.Narrow);break;case"y":t=Al(Ol.FullYear,1,0,!1,!0);break;case"yy":t=Al(Ol.FullYear,2,0,!0,!0);break;case"yyy":t=Al(Ol.FullYear,3,0,!1,!0);break;case"yyyy":t=Al(Ol.FullYear,4,0,!1,!0);break;case"M":case"L":t=Al(Ol.Month,1,1);break;case"MM":case"LL":t=Al(Ol.Month,2,1);break;case"MMM":t=Pl(Ml.Months,dl.Abbreviated);break;case"MMMM":t=Pl(Ml.Months,dl.Wide);break;case"MMMMM":t=Pl(Ml.Months,dl.Narrow);break;case"LLL":t=Pl(Ml.Months,dl.Abbreviated,hl.Standalone);break;case"LLLL":t=Pl(Ml.Months,dl.Wide,hl.Standalone);break;case"LLLLL":t=Pl(Ml.Months,dl.Narrow,hl.Standalone);break;case"w":t=Ll(1);break;case"ww":t=Ll(2);break;case"W":t=Ll(1,!0);break;case"d":t=Al(Ol.Date,1);break;case"dd":t=Al(Ol.Date,2);break;case"E":case"EE":case"EEE":t=Pl(Ml.Days,dl.Abbreviated);break;case"EEEE":t=Pl(Ml.Days,dl.Wide);break;case"EEEEE":t=Pl(Ml.Days,dl.Narrow);break;case"EEEEEE":t=Pl(Ml.Days,dl.Short);break;case"a":case"aa":case"aaa":t=Pl(Ml.DayPeriods,dl.Abbreviated);break;case"aaaa":t=Pl(Ml.DayPeriods,dl.Wide);break;case"aaaaa":t=Pl(Ml.DayPeriods,dl.Narrow);break;case"b":case"bb":case"bbb":t=Pl(Ml.DayPeriods,dl.Abbreviated,hl.Standalone,!0);break;case"bbbb":t=Pl(Ml.DayPeriods,dl.Wide,hl.Standalone,!0);break;case"bbbbb":t=Pl(Ml.DayPeriods,dl.Narrow,hl.Standalone,!0);break;case"B":case"BB":case"BBB":t=Pl(Ml.DayPeriods,dl.Abbreviated,hl.Format,!0);break;case"BBBB":t=Pl(Ml.DayPeriods,dl.Wide,hl.Format,!0);break;case"BBBBB":t=Pl(Ml.DayPeriods,dl.Narrow,hl.Format,!0);break;case"h":t=Al(Ol.Hours,1,-12);break;case"hh":t=Al(Ol.Hours,2,-12);break;case"H":t=Al(Ol.Hours,1);break;case"HH":t=Al(Ol.Hours,2);break;case"m":t=Al(Ol.Minutes,1);break;case"mm":t=Al(Ol.Minutes,2);break;case"s":t=Al(Ol.Seconds,1);break;case"ss":t=Al(Ol.Seconds,2);break;case"S":t=Al(Ol.FractionalSeconds,1);break;case"SS":t=Al(Ol.FractionalSeconds,2);break;case"SSS":t=Al(Ol.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Nl(kl.Short);break;case"ZZZZZ":t=Nl(kl.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Nl(kl.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Nl(kl.Long);break;default:return null}return Dl[e]=t,t}(e);a+=t?t(s,n,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),a}(t,n,s||this.locale,r)}catch(o){throw Error(`InvalidPipeArgument: '${o.message}' for pipe '${me(e)}'`)}}}return e})(),Zl=(()=>(class{}))(),Ql=new ke("DocumentToken"),Yl=(()=>{class e{}return e.ngInjectableDef=pe({providedIn:"root",factory:()=>new Kl(Ce(Ql),window,Ce(et))}),e})();class Kl{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=(()=>[0,0])}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const n=this.document.querySelector(`#${e}`);if(n)return void this.scrollToElement(n);const r=this.document.querySelector(`[name='${e}']`);if(r)return void this.scrollToElement(r)}catch(t){this.errorHandler.handleError(t)}}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}const Xl=new w(e=>e.complete());function Jl(e){return e?function(e){return new w(t=>e.schedule(()=>t.complete()))}(e):Xl}function ea(e){const t=new w(t=>{t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function ta(...e){let t=e[e.length-1];switch(T(t)?e.pop():t=void 0,e.length){case 0:return Jl(t);case 1:return t?W(e,t):ea(e[0]);default:return W(e,t)}}class na extends O{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new E;return this._value}next(e){super.next(this._value=e)}}function ra(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}ra.prototype=Object.create(Error.prototype);const sa=ra,oa={};class ia{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new la(e,this.resultSelector))}}class la extends B{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(oa),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++){const t=e[n];this.add(j(this,t,t,n))}}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n,r,s){const o=this.values,i=this.toRespond?o[n]===oa?--this.toRespond:this.toRespond:0;o[n]=t,0===i&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function aa(e){return new w(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?G(n):Jl()).subscribe(t)})}function ua(){return K(1)}function ca(e,t){return function(n){return n.lift(new ha(e,t))}}class ha{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new da(e,this.predicate,this.thisArg))}}class da extends g{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}function pa(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}pa.prototype=Object.create(Error.prototype);const fa=pa;function ga(e){return function(t){return 0===e?Jl():t.lift(new ma(e))}}class ma{constructor(e){if(this.total=e,this.total<0)throw new fa}call(e,t){return t.subscribe(new ya(e,this.total))}}class ya extends g{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<n;s++){const s=t++%n;e.next(r[s])}}e.complete()}}function _a(e,t,n){return function(r){return r.lift(new va(e,t,n))}}class va{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new ba(e,this.nextOrObserver,this.error,this.complete))}}class ba extends g{constructor(e,t,n,s){super(e),this._tapNext=_,this._tapError=_,this._tapComplete=_,this._tapError=n||_,this._tapComplete=s||_,r(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||_,this._tapError=t.error||_,this._tapComplete=t.complete||_)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}const wa=(e=function(){return new sa})=>_a({hasValue:!1,next(){this.hasValue=!0},complete(){if(!this.hasValue)throw e()}});function Sa(e=null){return t=>t.lift(new xa(e))}class xa{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new Ea(e,this.defaultValue))}}class Ea extends g{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Ca(e,t){const n=arguments.length>=2;return r=>r.pipe(e?ca((t,n)=>e(t,n,r)):Y,ga(1),n?Sa(t):wa(()=>new sa))}function ka(e){return function(t){const n=new Oa(e),r=t.lift(n);return n.caught=r}}class Oa{constructor(e){this.selector=e}call(e,t){return t.subscribe(new Ma(e,this.selector,this.caught))}}class Ma extends B{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const r=new I(this,void 0,void 0);this.add(r),j(this,n,void 0,void 0,r)}}}function Ta(e){return t=>0===e?Jl():t.lift(new Ia(e))}class Ia{constructor(e){if(this.total=e,this.total<0)throw new fa}call(e,t){return t.subscribe(new Aa(e,this.total))}}class Aa extends g{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function Pa(e,t){const n=arguments.length>=2;return r=>r.pipe(e?ca((t,n)=>e(t,n,r)):Y,Ta(1),n?Sa(t):wa(()=>new sa))}class Na{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new Ra(e,this.predicate,this.thisArg,this.source))}}class Ra extends g{constructor(e,t,n,r){super(e),this.predicate=t,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Va(e,t){return"function"==typeof t?n=>n.pipe(Va((n,r)=>G(e(n,r)).pipe(H((e,s)=>t(n,e,r,s))))):t=>t.lift(new La(e))}class La{constructor(e){this.project=e}call(e,t){return t.subscribe(new Da(e,this.project))}}class Da extends B{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)}_innerSub(e,t,n){const r=this.innerSubscription;r&&r.unsubscribe();const s=new I(this,void 0,void 0);this.destination.add(s),this.innerSubscription=j(this,e,t,n,s)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(e,t,n,r,s){this.destination.next(t)}}function Ua(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Fa(e,t,n))}}class Fa{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new ja(e,this.accumulator,this.seed,this.hasSeed))}}class ja extends g{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function Ba(e,t){return q(e,t,1)}class Ha{constructor(e){this.callback=e}call(e,t){return t.subscribe(new za(e,this.callback))}}class za extends g{constructor(e,t){super(e),this.add(new d(t))}}let $a=null;function Wa(){return $a}class Ga{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class qa extends Ga{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const t=this.createElement("div",document);if(null!=this.getStyle(t,"animationName"))this._animationPrefix="";else{const e=["Webkit","Moz","O","ms"];for(let n=0;n<e.length;n++)if(null!=this.getStyle(t,e[n]+"AnimationName")){this._animationPrefix="-"+e[n].toLowerCase()+"-";break}}const n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(n).forEach(e=>{null!=this.getStyle(t,e)&&(this._transitionEnd=n[e])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(e){return e.getDistributedNodes()}resolveAndSetHref(e,t,n){e.href=null==n?t:t+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}const Za={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Qa=3,Ya={"\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"},Ka={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"},Xa=(()=>{if(we.Node)return we.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class Ja extends qa{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new Ja,$a||($a=e)}hasProperty(e,t){return t in e}setProperty(e,t,n){e[t]=n}getProperty(e,t){return e[t]}invoke(e,t,n){e[t](...n)}logError(e){window.console&&(console.error?console.error(e):console.log(e))}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return Za}contains(e,t){return Xa.call(e,t)}querySelector(e,t){return e.querySelector(t)}querySelectorAll(e,t){return e.querySelectorAll(t)}on(e,t,n){e.addEventListener(t,n,!1)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}createMouseEvent(e){const t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}createEvent(e){const t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}preventDefault(e){e.preventDefault(),e.returnValue=!1}isPrevented(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}getInnerHTML(e){return e.innerHTML}getTemplateContent(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}getOuterHTML(e){return e.outerHTML}nodeName(e){return e.nodeName}nodeValue(e){return e.nodeValue}type(e){return e.type}content(e){return this.hasProperty(e,"content")?e.content:e}firstChild(e){return e.firstChild}nextSibling(e){return e.nextSibling}parentElement(e){return e.parentNode}childNodes(e){return e.childNodes}childNodesAsList(e){const t=e.childNodes,n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=t[r];return n}clearNodes(e){for(;e.firstChild;)e.removeChild(e.firstChild)}appendChild(e,t){e.appendChild(t)}removeChild(e,t){e.removeChild(t)}replaceChild(e,t,n){e.replaceChild(t,n)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}insertBefore(e,t,n){e.insertBefore(n,t)}insertAllBefore(e,t,n){n.forEach(n=>e.insertBefore(n,t))}insertAfter(e,t,n){e.insertBefore(n,t.nextSibling)}setInnerHTML(e,t){e.innerHTML=t}getText(e){return e.textContent}setText(e,t){e.textContent=t}getValue(e){return e.value}setValue(e,t){e.value=t}getChecked(e){return e.checked}setChecked(e,t){e.checked=t}createComment(e){return this.getDefaultDocument().createComment(e)}createTemplate(e){const t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createElementNS(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}createTextNode(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}createScriptTag(e,t,n){const r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r}createStyleElement(e,t){const n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}createShadowRoot(e){return e.createShadowRoot()}getShadowRoot(e){return e.shadowRoot}getHost(e){return e.host}clone(e){return e.cloneNode(!0)}getElementsByClassName(e,t){return e.getElementsByClassName(t)}getElementsByTagName(e,t){return e.getElementsByTagName(t)}classList(e){return Array.prototype.slice.call(e.classList,0)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}hasClass(e,t){return e.classList.contains(t)}setStyle(e,t,n){e.style[t]=n}removeStyle(e,t){e.style[t]=""}getStyle(e,t){return e.style[t]}hasStyle(e,t,n){const r=this.getStyle(e,t)||"";return n?r==n:r.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let r=0;r<n.length;r++){const e=n.item(r);t.set(e.name,e.value)}return t}hasAttribute(e,t){return e.hasAttribute(t)}hasAttributeNS(e,t,n){return e.hasAttributeNS(t,n)}getAttribute(e,t){return e.getAttribute(t)}getAttributeNS(e,t,n){return e.getAttributeNS(t,n)}setAttribute(e,t,n){e.setAttribute(t,n)}setAttributeNS(e,t,n,r){e.setAttributeNS(t,n,r)}removeAttribute(e,t){e.removeAttribute(t)}removeAttributeNS(e,t,n){e.removeAttributeNS(t,n)}templateAwareRoot(e){return this.isTemplateElement(e)?this.content(e):e}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}getBoundingClientRect(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}}getTitle(e){return e.title}setTitle(e,t){e.title=t||""}elementMatches(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))}isTemplateElement(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName}isTextNode(e){return e.nodeType===Node.TEXT_NODE}isCommentNode(e){return e.nodeType===Node.COMMENT_NODE}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}hasShadowRoot(e){return null!=e.shadowRoot&&e instanceof HTMLElement}isShadowRoot(e){return e instanceof DocumentFragment}importIntoDoc(e){return document.importNode(this.templateAwareRoot(e),!0)}adoptNode(e){return document.adoptNode(e)}getHref(e){return e.getAttribute("href")}getEventKey(e){let t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),e.location===Qa&&Ka.hasOwnProperty(t)&&(t=Ka[t]))}return Ya[t]||t}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=tu||(tu=document.querySelector("base"))?tu.getAttribute("href"):null;return null==t?null:(n=t,eu||(eu=document.createElement("a")),eu.setAttribute("href",n),"/"===eu.pathname.charAt(0)?eu.pathname:"/"+eu.pathname);var n}resetBaseElement(){tu=null}getUserAgent(){return window.navigator.userAgent}setData(e,t,n){this.setAttribute(e,"data-"+t,n)}getData(e,t){return this.getAttribute(e,"data-"+t)}getComputedStyle(e){return getComputedStyle(e)}supportsWebAnimation(){return"function"==typeof Element.prototype.animate}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return zl(document.cookie,e)}setCookie(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)}}let eu,tu=null;function nu(){return!!window.history.pushState}const ru=(()=>{class e extends Ji{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=Wa().getLocation(),this._history=Wa().getHistory()}getBaseHrefFromDOM(){return Wa().getBaseHref(this._doc)}onPopState(e){Wa().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){Wa().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}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,t,n){nu()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){nu()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.ctorParameters=(()=>[{type:void 0,decorators:[{type:le,args:[Ql]}]}]),e})(),su=new ke("TRANSITION_ID"),ou=[{provide:ws,useFactory:function(e,t,n){return()=>{n.get(Ss).donePromise.then(()=>{const n=Wa();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[su,Ql,Ae],multi:!0}];class iu{static init(){var e;e=new iu,no=e}addToWindow(e){we.getAngularTestability=((t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r}),we.getAllAngularTestabilities=(()=>e.getAllTestabilities()),we.getAllAngularRootElements=(()=>e.getAllRootElements()),we.frameworkStabilizers||(we.frameworkStabilizers=[]),we.frameworkStabilizers.push(e=>{const t=we.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?Wa().isShadowRoot(t)?this.findTestabilityInTree(e,Wa().getHost(t),!0):this.findTestabilityInTree(e,Wa().parentElement(t),!0):null}}function lu(e,t){"undefined"!=typeof COMPILED&&COMPILED||((we.ng=we.ng||{})[e]=t)}const au=(()=>({ApplicationRef:co,NgZone:Ws}))();function uu(e){return wo(e)}const cu=new ke("EventManagerPlugins"),hu=(()=>(class{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r<n.length;r++){const t=n[r];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}))();class du{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=Wa().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}const pu=(()=>(class{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}))(),fu=(()=>(class extends pu{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Wa().remove(e))}}))(),gu={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/"},mu=/%COMP%/g,yu="_nghost-%COMP%",_u="_ngcontent-%COMP%";function vu(e,t,n){for(let r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?vu(e,s,n):(s=s.replace(mu,e),n.push(s))}return n}function bu(e){return t=>{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}const wu=(()=>(class{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Su(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Qe.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Cu(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case Qe.Native:case Qe.ShadowDom:return new ku(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=vu(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}))();class Su{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(gu[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=`${r}:${t}`;const s=gu[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=gu[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&rn.DashCase?e.style.setProperty(t,n,r&rn.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&rn.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){Eu(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return Eu(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,bu(n)):this.eventManager.addEventListener(e,t,bu(n))}}const xu=(()=>"@".charCodeAt(0))();function Eu(e,t){if(e.charCodeAt(0)===xu)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class Cu extends Su{constructor(e,t,n,r){super(e),this.component=n;const s=vu(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr=_u.replace(mu,r+"-"+n.id),this.hostAttr=yu.replace(mu,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class ku extends Su{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===Qe.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=vu(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const e=document.createElement("style");e.textContent=s[o],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}const Ou=(()=>"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),Mu=Ou("addEventListener"),Tu=Ou("removeEventListener"),Iu={},Au="__zone_symbol__propagationStopped",Pu=(()=>{const e="undefined"!=typeof Zone&&Zone[Ou("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),Nu=function(e){return!!Pu&&Pu.hasOwnProperty(e)},Ru=function(e){const t=Iu[e.type];if(!t)return;const n=this[t];if(!n)return;const r=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}{const t=n.slice();for(let n=0;n<t.length&&!0!==e[Au];n++){const e=t[n];e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}}},Vu=(()=>(class extends du{constructor(e,t,n){super(e),this.ngZone=t,n&&function(e){return"server"===e}(n)||this.patchEvent()}patchEvent(){if("undefined"==typeof Event||!Event||!Event.prototype)return;if(Event.prototype.__zone_symbol__stopImmediatePropagation)return;const e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[Au]=!0),e&&e.apply(this,arguments)}}supports(e){return!0}addEventListener(e,t,n){let r=n;if(!e[Mu]||Ws.isInAngularZone()&&!Nu(t))e.addEventListener(t,r,!1);else{let n=Iu[t];n||(n=Iu[t]=Ou("ANGULAR"+t+"FALSE"));let s=e[n];const o=s&&s.length>0;s||(s=e[n]=[]);const i=Nu(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:i,handler:r});else{let e=!1;for(let t=0;t<s.length;t++)if(s[t].handler===r){e=!0;break}e||s.push({zone:i,handler:r})}o||e[Mu](t,Ru,!1)}return()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,n){let r=e[Tu];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);let s=Iu[t],o=s&&e[s];if(!o)return e.removeEventListener.apply(e,[t,n,!1]);let i=!1;for(let l=0;l<o.length;l++)if(o[l].handler===n){i=!0,o.splice(l,1);break}i?0===o.length&&r.apply(e,[t,Ru,!1]):e.removeEventListener.apply(e,[t,n,!1])}}))(),Lu={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Du=new ke("HammerGestureConfig"),Uu=new ke("HammerLoader"),Fu=(()=>(class{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}))(),ju=(()=>(class extends du{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r}supports(e){return!(!Lu.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${e}" event cannot be bound because Hammer.JS is not `+"loaded and no custom loader has been specified."),1))}addEventListener(e,t,n){const r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){let r=!1,s=()=>{r=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=(()=>{}));r||(s=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom `+"Hammer.JS loader failed."),s=(()=>{})}),()=>{s()}}return r.runOutsideAngular(()=>{const s=this._config.buildHammer(e),o=function(e){r.runGuarded(function(){n(e)})};return s.on(t,o),()=>{s.off(t,o),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}))(),Bu=["alt","control","meta","shift"],Hu={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},zu=(()=>{class e extends du{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const s=e.parseEventName(n),o=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wa().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=e._normalizeKey(n.pop());let o="";if(Bu.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=s,0!=n.length||0===s.length)return null;const i={};return i.domEventName=r,i.fullKey=o,i}static getEventFullKey(e){let t="",n=Wa().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Bu.forEach(r=>{r!=n&&(0,Hu[r])(e)&&(t+=r+".")}),t+=n}static eventCallback(t,n,r){return s=>{e.getEventFullKey(s)===t&&r.runGuarded(()=>n(s))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e})();class $u{}const Wu=(()=>(class extends $u{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case Ct.NONE:return t;case Ct.HTML:return t instanceof qu?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){let n=null;try{xt=xt||new st(e);let r=t?String(t):"";n=xt.getInertBodyElement(r);let s=5,o=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=o,o=n.innerHTML,n=xt.getInertBodyElement(r)}while(r!==o);const i=new vt,l=i.sanitizeChildren(Et(n)||n);return rt()&&i.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),l}finally{if(n){const e=Et(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(this._doc,String(t)));case Ct.STYLE:return t instanceof Zu?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";const t=e.match(Mt);return t&&lt(t[1])===t[1]||e.match(Ot)&&function(e){let t=!0,n=!0;for(let r=0;r<e.length;r++){const s=e.charAt(r);"'"===s&&n?t=!t:'"'===s&&t&&(n=!n)}return t&&n}(e)?e:(rt()&&console.warn(`WARNING: sanitizing unsafe style value ${e} (see http://g.co/ng/security#xss).`),"unsafe")}(t));case Ct.SCRIPT:if(t instanceof Qu)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case Ct.URL:return t instanceof Ku||t instanceof Yu?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),lt(String(t)));case Ct.RESOURCE_URL:if(t instanceof Ku)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}checkNotSafeValue(e,t){if(e instanceof Gu)throw new Error(`Required a safe ${t}, got a ${e.getTypeName()} `+"(see http://g.co/ng/security#xss)")}bypassSecurityTrustHtml(e){return new qu(e)}bypassSecurityTrustStyle(e){return new Zu(e)}bypassSecurityTrustScript(e){return new Qu(e)}bypassSecurityTrustUrl(e){return new Yu(e)}bypassSecurityTrustResourceUrl(e){return new Ku(e)}}))();class Gu{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class qu extends Gu{getTypeName(){return"HTML"}}class Zu extends Gu{getTypeName(){return"Style"}}class Qu extends Gu{getTypeName(){return"Script"}}class Yu extends Gu{getTypeName(){return"URL"}}class Ku extends Gu{getTypeName(){return"ResourceURL"}}const Xu=io(xo,"browser",[{provide:Os,useValue:"browser"},{provide:ks,useValue:function(){Ja.makeCurrent(),iu.init()},multi:!0},{provide:Ji,useClass:ru,deps:[Ql]},{provide:Ql,useFactory:function(){return document},deps:[]}]);function Ju(){return new et}const ec=(()=>{class e{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(t){return{ngModule:e,providers:[{provide:xs,useValue:t.appId},{provide:su,useExisting:xs},ou]}}}return e})();"undefined"!=typeof window&&window;class tc{constructor(e,t){this.id=e,this.url=t}}class nc extends tc{constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class rc extends tc{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class sc extends tc{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class oc extends tc{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ic extends tc{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lc extends tc{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ac extends tc{constructor(e,t,n,r,s){super(e,t),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class uc extends tc{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cc extends tc{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hc{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class dc{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class pc{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fc{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gc{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mc{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yc{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const _c=(()=>(class{}))(),vc="primary";class bc{constructor(e){this.params=e||{}}has(e){return this.params.hasOwnProperty(e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function wc(e){return new bc(e)}const Sc="ngNavigationCancelingError";function xc(e){const t=Error("NavigationCancelingError: "+e);return t[Sc]=!0,t}function Ec(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const s={};for(let o=0;o<r.length;o++){const t=r[o],n=e[o];if(t.startsWith(":"))s[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,r.length),posParams:s}}class Cc{constructor(e,t){this.routes=e,this.module=t}}function kc(e,t=""){for(let n=0;n<e.length;n++){const r=e[n];Oc(r,Mc(t,r))}}function Oc(e,t){if(!e)throw new Error(`\n      Invalid configuration of route '${t}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(e))throw new Error(`Invalid configuration of route '${t}': Array cannot be specified`);if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==vc)throw new Error(`Invalid configuration of route '${t}': a componentless route without children or loadChildren cannot have a named outlet set`);if(e.redirectTo&&e.children)throw new Error(`Invalid configuration of route '${t}': redirectTo and children cannot be used together`);if(e.redirectTo&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': redirectTo and loadChildren cannot be used together`);if(e.children&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': children and loadChildren cannot be used together`);if(e.redirectTo&&e.component)throw new Error(`Invalid configuration of route '${t}': redirectTo and component cannot be used together`);if(e.path&&e.matcher)throw new Error(`Invalid configuration of route '${t}': path and matcher cannot be used together`);if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error(`Invalid configuration of route '${t}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===e.path&&void 0===e.matcher)throw new Error(`Invalid configuration of route '${t}': routes must have either a path or a matcher specified`);if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error(`Invalid configuration of route '${t}': path cannot start with a slash`);if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error(`Invalid configuration of route '{path: "${t}", redirectTo: "${e.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error(`Invalid configuration of route '${t}': pathMatch can only be set to 'prefix' or 'full'`);e.children&&kc(e.children,t)}function Mc(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function Tc(e){const t=e.children&&e.children.map(Tc),n=t?Object.assign({},e,{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==vc&&(n.component=_c),n}function Ic(e,t){const n=Object.keys(e),r=Object.keys(t);if(!n||!r||n.length!=r.length)return!1;let s;for(let o=0;o<n.length;o++)if(e[s=n[o]]!==t[s])return!1;return!0}function Ac(e){return Array.prototype.concat.apply([],e)}function Pc(e){return e.length>0?e[e.length-1]:null}function Nc(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Rc(e){return Pt(e)?e:At(e)?G(Promise.resolve(e)):ta(e)}function Vc(e,t,n){return n?function(e,t){return Ic(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Fc(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,s){if(n.segments.length>s.length){return!!Fc(n.segments.slice(0,s.length),s)&&!r.hasChildren()}if(n.segments.length===s.length){if(!Fc(n.segments,s))return!1;for(const t in r.children){if(!n.children[t])return!1;if(!e(n.children[t],r.children[t]))return!1}return!0}{const e=s.slice(0,n.segments.length),o=s.slice(n.segments.length);return!!Fc(n.segments,e)&&!!n.children[vc]&&t(n.children[vc],r,o)}}(t,n,n.segments)}(e.root,t.root)}class Lc{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wc(this.queryParams)),this._queryParamMap}toString(){return zc.serialize(this)}}class Dc{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Nc(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return $c(this)}}class Uc{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=wc(this.parameters)),this._parameterMap}toString(){return Yc(this)}}function Fc(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function jc(e,t){let n=[];return Nc(e.children,(e,r)=>{r===vc&&(n=n.concat(t(e,r)))}),Nc(e.children,(e,r)=>{r!==vc&&(n=n.concat(t(e,r)))}),n}class Bc{}class Hc{parse(e){const t=new th(e);return new Lc(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`${`/${function e(t,n){if(!t.hasChildren())return $c(t);if(n){const n=t.children[vc]?e(t.children[vc],!1):"",r=[];return Nc(t.children,(t,n)=>{n!==vc&&r.push(`${n}:${e(t,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=jc(t,(n,r)=>r===vc?[e(t.children[vc],!1)]:[`${r}:${e(n,!1)}`]);return`${$c(t)}/(${n.join("//")})`}}(e.root,!0)}`}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Gc(t)}=${Gc(e)}`).join("&"):`${Gc(t)}=${Gc(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const zc=new Hc;function $c(e){return e.segments.map(e=>Yc(e)).join("/")}function Wc(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Gc(e){return Wc(e).replace(/%3B/gi,";")}function qc(e){return Wc(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zc(e){return decodeURIComponent(e)}function Qc(e){return Zc(e.replace(/\+/g,"%20"))}function Yc(e){return`${qc(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${qc(e)}=${qc(t[e])}`).join("")}`;var t}const Kc=/^[^\/()?;=#]+/;function Xc(e){const t=e.match(Kc);return t?t[0]:""}const Jc=/^[^=?&#]+/,eh=/^[^?&#]+/;class th{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Dc([],{}):new Dc([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[vc]=new Dc(e,t)),n}parseSegment(){const e=Xc(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Uc(Zc(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Xc(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Xc(this.remaining);e&&this.capture(n=e)}e[Zc(t)]=Zc(n)}parseQueryParam(e){const t=function(e){const t=e.match(Jc);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(eh);return t?t[0]:""}(this.remaining);e&&this.capture(n=e)}const r=Qc(t),s=Qc(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(e[r]=t=[t]),t.push(s)}else e[r]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Xc(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=vc);const o=this.parseChildren();t[s]=1===Object.keys(o).length?o[vc]:new Dc([],o),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class nh{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=rh(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=rh(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=sh(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return sh(e,this._root).map(e=>e.value)}}function rh(e,t){if(e===t.value)return t;for(const n of t.children){const t=rh(e,n);if(t)return t}return null}function sh(e,t){if(e===t.value)return[t];for(const n of t.children){const r=sh(e,n);if(r.length)return r.unshift(t),r}return[]}class oh{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function ih(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class lh extends nh{constructor(e,t){super(e),this.snapshot=t,ph(this,e)}toString(){return this.snapshot.toString()}}function ah(e,t){const n=function(e,t){const n=new hh([],{},{},"",{},vc,t,null,e.root,-1,{});return new dh("",new oh(n,[]))}(e,t),r=new na([new Uc("",{})]),s=new na({}),o=new na({}),i=new na({}),l=new na(""),a=new uh(r,s,i,l,o,vc,t,n.root);return a.snapshot=n.root,new lh(new oh(a,[]),n)}class uh{constructor(e,t,n,r,s,o,i,l){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=i,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(H(e=>wc(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(H(e=>wc(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ch(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>({params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class hh{constructor(e,t,n,r,s,o,i,l,a,u,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=i,this.routeConfig=l,this._urlSegment=a,this._lastPathIndex=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=wc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dh extends nh{constructor(e,t){super(t),this.url=e,ph(this,t)}toString(){return fh(this._root)}}function ph(e,t){t.value._routerState=e,t.children.forEach(t=>ph(e,t))}function fh(e){const t=e.children.length>0?` { ${e.children.map(fh).join(", ")} } `:"";return`${e.value}${t}`}function gh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ic(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Ic(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Ic(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Ic(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function mh(e,t){var n,r;return Ic(e.params,t.params)&&Fc(n=e.url,r=t.url)&&n.every((e,t)=>Ic(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||mh(e.parent,t.parent))}function yh(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function _h(e,t,n,r,s){let o={};return r&&Nc(r,(e,t)=>{o[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new Lc(n.root===e?t:function e(t,n,r){const s={};return Nc(t.children,(t,o)=>{s[o]=t===n?r:e(t,n,r)}),new Dc(t.segments,s)}(n.root,e,t),o,s)}class vh{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&yh(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(r&&r!==Pc(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class bh{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function wh(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[vc]:`${e}`}function Sh(e,t,n){if(e||(e=new Dc([],{})),0===e.segments.length&&e.hasChildren())return xh(e,t,n);const r=function(e,t,n){let r=0,s=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;s<e.segments.length;){if(r>=n.length)return o;const t=e.segments[s],i=wh(n[r]),l=r<n.length-1?n[r+1]:null;if(s>0&&void 0===i)break;if(i&&l&&"object"==typeof l&&void 0===l.outlets){if(!Oh(i,l,t))return o;r+=2}else{if(!Oh(i,{},t))return o;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(e,t,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const t=new Dc(e.segments.slice(0,r.pathIndex),{});return t.children[vc]=new Dc(e.segments.slice(r.pathIndex),e.children),xh(t,0,s)}return r.match&&0===s.length?new Dc(e.segments,{}):r.match&&!e.hasChildren()?Eh(e,t,n):r.match?xh(e,0,s):Eh(e,t,n)}function xh(e,t,n){if(0===n.length)return new Dc(e.segments,{});{const r=function(e){return"object"!=typeof e[0]?{[vc]:e}:void 0===e[0].outlets?{[vc]:e}:e[0].outlets}(n),s={};return Nc(r,(n,r)=>{null!==n&&(s[r]=Sh(e.children[r],t,n))}),Nc(e.children,(e,t)=>{void 0===r[t]&&(s[t]=e)}),new Dc(e.segments,s)}}function Eh(e,t,n){const r=e.segments.slice(0,t);let s=0;for(;s<n.length;){if("object"==typeof n[s]&&void 0!==n[s].outlets){const e=Ch(n[s].outlets);return new Dc(r,e)}if(0===s&&yh(n[0])){r.push(new Uc(e.segments[t].path,n[0])),s++;continue}const o=wh(n[s]),i=s<n.length-1?n[s+1]:null;o&&i&&yh(i)?(r.push(new Uc(o,kh(i))),s+=2):(r.push(new Uc(o,{})),s++)}return new Dc(r,{})}function Ch(e){const t={};return Nc(e,(e,n)=>{null!==e&&(t[n]=Eh(new Dc([],{}),0,e))}),t}function kh(e){const t={};return Nc(e,(e,n)=>t[n]=`${e}`),t}function Oh(e,t,n){return e==n.path&&Ic(t,n.parameters)}const Mh=(e,t,n)=>H(r=>(new Th(t,r.targetRouterState,r.currentRouterState,n).activate(e),r));class Th{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),gh(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=ih(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),Nc(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const r=ih(e),s=e.value.component?n.children:t;Nc(r,(e,t)=>this.deactivateRouteAndItsChildren(e,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const r=ih(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new mc(e.value.snapshot))}),e.children.length&&this.forwardEvent(new fc(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(gh(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),Ih(e.route)}else{const n=function(e){for(let t=r.snapshot.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(),s=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=s,t.outlet&&t.outlet.activateWith(r,s),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function Ih(e){gh(e.value),e.children.forEach(Ih)}function Ah(e){return"function"==typeof e}function Ph(e){return e instanceof Lc}class Nh{constructor(e){this.segmentGroup=e||null}}class Rh{constructor(e){this.urlTree=e}}function Vh(e){return new w(t=>t.error(new Nh(e)))}function Lh(e){return new w(t=>t.error(new Rh(e)))}function Dh(e){return new w(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Uh{constructor(e,t,n,r,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(Yt)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,vc).pipe(H(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(ka(e=>{if(e instanceof Rh)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Nh)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,vc).pipe(H(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(ka(e=>{if(e instanceof Nh)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new Dc([],{[vc]:e}):e;return new Lc(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(H(e=>new Dc([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return ta({});const n=[],r=[],s={};return Nc(e,(e,o)=>{const i=t(o,e).pipe(H(e=>s[o]=e));o===vc?n.push(i):r.push(i)}),ta.apply(null,n.concat(r)).pipe(ua(),Ca(),H(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(e,t,r,n))}expandSegment(e,t,n,r,s,o){return ta(...n).pipe(H(i=>this.expandSegmentAgainstRoute(e,t,n,i,r,s,o).pipe(ka(e=>{if(e instanceof Nh)return ta(null);throw e}))),ua(),Pa(e=>!!e),ka((e,n)=>{if(e instanceof sa||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,r,s))return ta(new Dc([],{}));throw new Nh(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,r,s,o,i){return Hh(r)!==o?Vh(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,s):i&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,o):Vh(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Lh(s):this.lineralizeSegments(n,s).pipe(q(n=>{const s=new Dc(n,{});return this.expandSegment(e,s,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,o){const{matched:i,consumedSegments:l,lastChild:a,positionalParamSegments:u}=Fh(t,r,s);if(!i)return Vh(t);const c=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?Lh(c):this.lineralizeSegments(r,c).pipe(q(r=>this.expandSegment(e,t,n,r.concat(s.slice(a)),o,!1)))}matchSegmentAgainstRoute(e,t,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(H(e=>(n._loadedConfig=e,new Dc(r,{})))):ta(new Dc(r,{}));const{matched:s,consumedSegments:o,lastChild:i}=Fh(t,n,r);if(!s)return Vh(t);const l=r.slice(i);return this.getChildConfig(e,n,r).pipe(q(e=>{const n=e.module,r=e.routes,{segmentGroup:s,slicedSegments:i}=function(e,t,n,r){return n.length>0&&function(e,t,n){return r.some(n=>Bh(e,t,n)&&Hh(n)!==vc)}(e,n)?{segmentGroup:jh(new Dc(t,function(e,t){const n={};n[vc]=t;for(const r of e)""===r.path&&Hh(r)!==vc&&(n[Hh(r)]=new Dc([],{}));return n}(r,new Dc(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return r.some(n=>Bh(e,t,n))}(e,n)?{segmentGroup:jh(new Dc(e.segments,function(e,t,n,r){const s={};for(const o of n)Bh(e,t,o)&&!r[Hh(o)]&&(s[Hh(o)]=new Dc([],{}));return Object.assign({},r,s)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,o,l,r);return 0===i.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe(H(e=>new Dc(o,e))):0===r.length&&0===i.length?ta(new Dc(o,{})):this.expandSegment(n,s,r,i,vc,!0).pipe(H(e=>new Dc(o.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?ta(new Cc(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?ta(t._loadedConfig):function(e,t,n){const r=t.canLoad;return r&&0!==r.length?G(r).pipe(H(r=>{const s=e.get(r);let o;if(function(e){return e&&Ah(e.canLoad)}(s))o=s.canLoad(t,n);else{if(!Ah(s))throw new Error("Invalid CanLoad guard");o=s(t,n)}return Rc(o)})).pipe(ua(),(s=(e=>!0===e),e=>e.lift(new Na(s,void 0,e)))):ta(!0);var s}(e.injector,t,n).pipe(q(n=>n?this.configLoader.load(e.injector,t).pipe(H(e=>(t._loadedConfig=e,e))):function(e){return new w(t=>t.error(xc(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):ta(new Cc([],e))}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return ta(n);if(r.numberOfChildren>1||!r.children[vc])return Dh(e.redirectTo);r=r.children[vc]}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const s=this.createSegmentGroup(e,t.root,n,r);return new Lc(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return Nc(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const s=e.substring(1);n[r]=t[s]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const s=this.createSegments(e,t.segments,n,r);let o={};return Nc(t.children,(t,s)=>{o[s]=this.createSegmentGroup(e,t,n,r)}),new Dc(s,o)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function Fh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(t.matcher||Ec)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function jh(e){if(1===e.numberOfChildren&&e.children[vc]){const t=e.children[vc];return new Dc(e.segments.concat(t.segments),t.children)}return e}function Bh(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Hh(e){return e.outlet||vc}class zh{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class $h{constructor(e,t){this.component=e,this.route=t}}function Wh(e,t,n){const r=e._root;return function e(t,n,r,s,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=ih(n);return t.children.forEach(t=>{!function(t,n,r,s,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,l=n?n.value:null,a=r?r.getContext(t.value.outlet):null;if(l&&i.routeConfig===l.routeConfig){const u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Fc(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Fc(e.url,t.url)||!Ic(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mh(e,t)||!Ic(e.queryParams,t.queryParams);case"paramsChange":default:return!mh(e,t)}}(l,i,i.routeConfig.runGuardsAndResolvers);if(u?o.canActivateChecks.push(new zh(s)):(i.data=l.data,i._resolvedData=l._resolvedData),e(t,n,i.component?a?a.children:null:r,s,o),u){o.canDeactivateChecks.push(new $h(a&&a.outlet&&a.outlet.component||null,l))}}else l&&qh(n,a,o),o.canActivateChecks.push(new zh(s)),e(t,null,i.component?a?a.children:null:r,s,o)}(t,i[t.value.outlet],r,s.concat([t.value]),o),delete i[t.value.outlet]}),Nc(i,(e,t)=>qh(e,r.getContext(t),o)),o}(r,t?t._root:null,n,[r.value])}function Gh(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function qh(e,t,n){const r=ih(e),s=e.value;Nc(r,(e,r)=>{qh(e,s.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new $h(s.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,s))}const Zh=Symbol("INITIAL_VALUE");function Qh(){return Va(e=>(function(...e){let t=null,n=null;return T(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&a(e[0])&&(e=e[0]),W(e,n).lift(new ia(t))})(...e.map(e=>e.pipe(Ta(1),function(...e){return t=>{let n=e[e.length-1];T(n)?e.pop():n=null;const r=e.length;return function(...e){return ua()(ta(...e))}(1!==r||n?r>0?W(e,n):Jl(n):ea(e[0]),t)}}(Zh)))).pipe(Ua((e,t)=>{let n=!1;return t.reduce((e,r,s)=>{if(e!==Zh)return e;if(r===Zh&&(n=!0),!n){if(!1===r)return r;if(s===t.length-1||Ph(r))return r}return e},e)},Zh),ca(e=>e!==Zh),H(e=>Ph(e)?e:!0===e),Ta(1)))}function Yh(e,t){return null!==e&&t&&t(new gc(e)),ta(!0)}function Kh(e,t){return null!==e&&t&&t(new pc(e)),ta(!0)}function Xh(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?ta(r.map(r=>aa(()=>{const s=Gh(r,t,n);let o;if(function(e){return e&&Ah(e.canActivate)}(s))o=Rc(s.canActivate(t,e));else{if(!Ah(s))throw new Error("Invalid CanActivate guard");o=Rc(s(t,e))}return o.pipe(Pa())}))).pipe(Qh()):ta(!0)}function Jh(e,t,n){const r=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(e=>(function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null})(e)).filter(e=>null!==e).map(t=>aa(()=>ta(t.guards.map(s=>{const o=Gh(s,t.node,n);let i;if(function(e){return e&&Ah(e.canActivateChild)}(o))i=Rc(o.canActivateChild(r,e));else{if(!Ah(o))throw new Error("Invalid CanActivateChild guard");i=Rc(o(r,e))}return i.pipe(Pa())})).pipe(Qh())));return ta(s).pipe(Qh())}class ed{}class td{constructor(e,t,n,r,s,o){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){try{const t=sd(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,vc),r=new hh([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},vc,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new oh(r,n),o=new dh(this.url,s);return this.inheritParamsAndData(o._root),ta(o)}catch(e){return new w(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=ch(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=jc(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};n.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),r=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${r}'.`)}t[e.value.outlet]=e.value})}(),n.sort((e,t)=>e.value.outlet===vc?-1:t.value.outlet===vc?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,r){for(const o of e)try{return this.processSegmentAgainstRoute(o,t,n,r)}catch(s){if(!(s instanceof ed))throw s}if(this.noLeftoversInUrl(t,n,r))return[];throw new ed}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo)throw new ed;if((e.outlet||vc)!==r)throw new ed;let s,o=[],i=[];if("**"===e.path){const o=n.length>0?Pc(n).parameters:{};s=new hh(n,o,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ld(e),r,e.component,e,nd(t),rd(t)+n.length,ad(e))}else{const l=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new ed;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(t.matcher||Ec)(n,e,t);if(!r)throw new ed;const s={};Nc(r.posParams,(e,t)=>{s[t]=e.path});const o=r.consumed.length>0?Object.assign({},s,r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(t,e,n);o=l.consumedSegments,i=n.slice(l.lastChild),s=new hh(o,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ld(e),r,e.component,e,nd(t),rd(t)+o.length,ad(e))}const l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:a,slicedSegments:u}=sd(t,o,i,l,this.relativeLinkResolution);if(0===u.length&&a.hasChildren()){const e=this.processChildren(l,a);return[new oh(s,e)]}if(0===l.length&&0===u.length)return[new oh(s,[])];const c=this.processSegment(l,a,u,vc);return[new oh(s,c)]}}function nd(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function rd(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function sd(e,t,n,r,s){if(n.length>0&&function(e,t,n){return r.some(n=>od(e,t,n)&&id(n)!==vc)}(e,n)){const s=new Dc(t,function(e,t,n,r){const s={};s[vc]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const o of n)if(""===o.path&&id(o)!==vc){const n=new Dc([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,s[id(o)]=n}return s}(e,t,r,new Dc(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return r.some(n=>od(e,t,n))}(e,n)){const o=new Dc(e.segments,function(e,t,n,r,s,o){const i={};for(const l of r)if(od(e,n,l)&&!s[id(l)]){const n=new Dc([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===o?e.segments.length:t.length,i[id(l)]=n}return Object.assign({},s,i)}(e,t,n,r,e.children,s));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}const o=new Dc(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}function od(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function id(e){return e.outlet||vc}function ld(e){return e.data||{}}function ad(e){return e.resolve||{}}function ud(e,t,n,r){const s=Gh(e,t,r);return Rc(s.resolve?s.resolve(t,n):s(t,n))}function cd(e){return function(t){return t.pipe(Va(t=>{const n=e(t);return n?G(n).pipe(H(()=>t)):G([t])}))}}class hd{}class dd{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}const pd=new ke("ROUTES");class fd{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(H(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new Cc(Ac(r.injector.get(pd)).map(Tc),r)}))}loadModuleFactory(e){return"string"==typeof e?G(this.loader.load(e)):Rc(e()).pipe(q(e=>e instanceof Kt?ta(e):G(this.compiler.compileModuleAsync(e))))}}class gd{}class md{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function yd(e){throw e}function _d(e,t,n){return t.parse("/")}function vd(e,t){return ta(null)}class bd{constructor(e,t,n,r,s,o,i,l){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new O,this.errorHandler=yd,this.malformedUriErrorHandler=_d,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:vd,afterPreactivation:vd},this.urlHandlingStrategy=new md,this.routeReuseStrategy=new dd,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(Yt),this.console=s.get(Ts);const a=s.get(Ws);this.isNgZoneEnabled=a instanceof Ws,this.resetConfig(l),this.currentUrlTree=new Lc(new Dc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new fd(o,i,e=>this.triggerEvent(new hc(e)),e=>this.triggerEvent(new dc(e))),this.routerState=ah(this.currentUrlTree,this.rootComponentType),this.transitions=new na({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(ca(e=>0!==e.id),H(e=>Object.assign({},e,{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Va(e=>{let n=!1,r=!1;return ta(e).pipe(_a(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign({},this.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Va(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return ta(e).pipe(Va(e=>{const n=this.transitions.getValue();return t.next(new nc(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?Xl:[e]}),Va(e=>Promise.resolve(e)),function(e,t,n,r){return function(s){return s.pipe(Va(s=>(function(e,t,n,r,o){return new Uh(e,t,n,s.extractedUrl,o).apply()})(e,t,n,0,r).pipe(H(e=>Object.assign({},s,{urlAfterRedirects:e})))))}}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),_a(e=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,s){return function(o){return o.pipe(q(o=>(function(e,t,n,r,s="emptyOnly",o="legacy"){return new td(e,t,n,r,s,o).recognize()})(e,t,o.urlAfterRedirects,n(o.urlAfterRedirects),r,s).pipe(H(e=>Object.assign({},o,{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),_a(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),_a(e=>{const n=new ic(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:o,extras:i}=e,l=new nc(n,this.serializeUrl(r),s,o);t.next(l);const a=ah(r,this.rootComponentType).snapshot;return ta(Object.assign({},e,{targetSnapshot:a,urlAfterRedirects:r,extras:Object.assign({},i,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Xl}),cd(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:i}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!i})}),_a(e=>{const t=new lc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),H(e=>Object.assign({},e,{guards:Wh(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(q(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:o,canDeactivateChecks:i}}=n;return 0===i.length&&0===o.length?ta(Object.assign({},n,{guardsResult:!0})):function(e,t,n,r){return G(i).pipe(q(e=>(function(e,t,n,r,s){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?ta(o.map(o=>{const i=Gh(o,t,s);let l;if(function(e){return e&&Ah(e.canDeactivate)}(i))l=Rc(i.canDeactivate(e,t,n,r));else{if(!Ah(i))throw new Error("Invalid CanDeactivate guard");l=Rc(i(e,t,n,r))}return l.pipe(Pa())})).pipe(Qh()):ta(!0)})(e.component,e.route,n,t,r)),Pa(e=>!0!==e,!0))}(0,r,s,e).pipe(q(n=>n&&function(e){return"boolean"==typeof n}()?function(e,t,n,r){return G(o).pipe(Ba(t=>G([Kh(t.route.parent,r),Yh(t.route,r),Jh(e,t.path,n),Xh(e,t.route,n)]).pipe(ua(),Pa(e=>!0!==e,!0))),Pa(e=>!0!==e,!0))}(r,0,e,t):ta(n)),H(e=>Object.assign({},n,{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),_a(e=>{if(Ph(e.guardsResult)){const t=xc(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),_a(e=>{const t=new ac(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),ca(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new sc(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),cd(e=>{if(e.guards.canActivateChecks.length)return ta(e).pipe(_a(e=>{const t=new uc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),function(e,t){return function(n){return n.pipe(q(n=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=n;return s.length?G(s).pipe(Ba(n=>(function(e,t,n,s){return function(e,t,n,r){const s=Object.keys(e);if(0===s.length)return ta({});if(1===s.length){const o=s[0];return ud(e[o],t,n,r).pipe(H(e=>({[o]:e})))}const o={};return G(s).pipe(q(s=>ud(e[s],t,n,r).pipe(H(e=>(o[s]=e,e))))).pipe(Ca(),H(()=>o))}(e._resolve,e,r,s).pipe(H(t=>(e._resolvedData=t,e.data=Object.assign({},e.data,ch(e,n).resolve),null)))})(n.route,0,e,t)),function(e,t){return arguments.length>=2?function(t){return v(Ua(e,void 0),ga(1),Sa(void 0))(t)}:function(t){return v(Ua((t,n,r)=>e(t)),ga(1))(t)}}((e,t)=>e),H(e=>n)):ta(n)}))}}(this.paramsInheritanceStrategy,this.ngModule.injector),_a(e=>{const t=new cc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),cd(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:i}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!i})}),H(e=>{const t=function(e,t,n){const r=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){const s=r.value;s._futureSnapshot=n.value;const o=function(t,n,r){return n.children.map(n=>{for(const s of r.children)if(t.shouldReuseRoute(s.value.snapshot,n.value))return e(t,n,s);return e(t,n)})}(t,n,r);return new oh(s,o)}{const r=t.retrieve(n.value);if(r){const e=r.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let r=0;r<t.children.length;++r)e(t.children[r],n.children[r])}(n,e),e}{const r=new uh(new na((s=n.value).url),new na(s.params),new na(s.queryParams),new na(s.fragment),new na(s.data),s.outlet,s.component,s),o=n.children.map(n=>e(t,n));return new oh(r,o)}}var s}(e,t._root,n?n._root:void 0);return new lh(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign({},e,{targetRouterState:t})}),_a(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),Mh(this.rootContexts,this.routeReuseStrategy,e=>this.triggerEvent(e)),_a({next(){n=!0},complete(){n=!0}}),function(e){return t=>t.lift(new Ha(e))}(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new sc(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),ka(n=>{if(r=!0,function(e){return n&&n[Sc]}()){const r=Ph(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const s=new sc(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(s),e.resolve(!1),r&&this.navigateByUrl(n.url)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new oc(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}return Xl}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign({},this.getTransition(),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{let t=this.parseUrl(e.url);const n="popstate"===e.type?"popstate":"hashchange",r=e.state&&e.state.navigationId?e.state:null;setTimeout(()=>{this.scheduleNavigation(t,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){kc(e),this.config=e.map(Tc),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:r,fragment:s,preserveQueryParams:o,queryParamsHandling:i,preserveFragment:l}=t;rt()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const a=n||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let c=null;if(i)switch(i){case"merge":c=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}else c=o?this.currentUrlTree.queryParams:r||null;return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,s){if(0===n.length)return _h(t.root,t.root,t,r,s);const o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new vh(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return Nc(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new vh(n,t,r)}(n);if(o.toRoot())return _h(t.root,new Dc([],{}),t,r,s);const i=function(e,n,r){if(e.isAbsolute)return new bh(t.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new bh(r.snapshot._urlSegment,!0,0);const s=yh(e.commands[0])?0:1;return function(t,n,o){let i=r.snapshot._urlSegment,l=r.snapshot._lastPathIndex+s,a=e.numberOfDoubleDots;for(;a>l;){if(a-=l,!(i=i.parent))throw new Error("Invalid number of '../'");l=i.segments.length}return new bh(i,!1,l-a)}()}(o,0,e),l=i.processChildren?xh(i.segmentGroup,i.index,o.commands):Sh(i.segmentGroup,i.index,o.commands);return _h(i.segmentGroup,l,t,r,s)}(a,this.currentUrlTree,e,c,u)}navigateByUrl(e,t={skipLocationChange:!1}){rt()&&this.isNgZoneEnabled&&!Ws.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=Ph(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(Ph(e))return Vc(this.currentUrlTree,e,t);const n=this.parseUrl(e);return Vc(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new rc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r){const s=this.getTransition();if(s&&"imperative"!==t&&"imperative"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"hashchange"==t&&"popstate"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"popstate"==t&&"hashchange"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);let o=null,i=null;const l=new Promise((e,t)=>{o=e,i=t}),a=++this.navigationId;return this.setTransition({id:a,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:o,reject:i,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,r){const s=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(s)||t?this.location.replaceState(s,"",Object.assign({},r,{navigationId:n})):this.location.go(s,"",Object.assign({},r,{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}class wd{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Sd,this.attachRef=null}}class Sd{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new wd,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}const xd=(()=>(class{constructor(e,t,n,r,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new _s,this.deactivateEvents=new _s,this.name=r||vc,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new Ed(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}))();class Ed{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===uh?this.route:e===Sd?this.childContexts:this.parent.get(e,t)}}class Cd{}class kd{preload(e,t){return t().pipe(ka(()=>ta(null)))}}class Od{preload(e,t){return ta(null)}}const Md=(()=>(class{constructor(e,t,n,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new fd(t,n,t=>e.triggerEvent(new hc(t)),t=>e.triggerEvent(new dc(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(ca(e=>e instanceof rc),Ba(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Yt);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return G(n).pipe(K(),H(e=>void 0))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(q(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}))();class Td{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof nc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof rc&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof yc&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new yc(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const Id=new ke("ROUTER_CONFIGURATION"),Ad=new ke("ROUTER_FORROOT_GUARD"),Pd=[rl,{provide:Bc,useClass:Hc},{provide:bd,useFactory:Fd,deps:[co,Bc,Sd,rl,Ae,bs,Vs,pd,Id,[gd,new ae],[hd,new ae]]},Sd,{provide:uh,useFactory:jd,deps:[bd]},{provide:bs,useClass:go},Md,Od,kd,{provide:Id,useValue:{enableTracing:!1}}];function Nd(){return new oo("Router",bd)}const Rd=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[Pd,Ud(t),{provide:Ad,useFactory:Dd,deps:[[bd,new ae,new ce]]},{provide:Id,useValue:n||{}},{provide:tl,useFactory:Ld,deps:[Ji,[new le(nl),new ae],Id]},{provide:Td,useFactory:Vd,deps:[bd,Yl,Id]},{provide:Cd,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Od},{provide:oo,multi:!0,useFactory:Nd},[Bd,{provide:ws,multi:!0,useFactory:Hd,deps:[Bd]},{provide:$d,useFactory:zd,deps:[Bd]},{provide:Ms,multi:!0,useExisting:$d}]]}}static forChild(t){return{ngModule:e,providers:[Ud(t)]}}}return e})();function Vd(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Td(e,t,n)}function Ld(e,t,n={}){return n.useHash?new ol(e,t):new il(e,t)}function Dd(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ud(e){return[{provide:Ze,multi:!0,useValue:e},{provide:pd,multi:!0,useValue:e}]}function Fd(e,t,n,r,s,o,i,l,a={},u,c){const h=new bd(null,t,n,r,s,o,i,Ac(l));if(u&&(h.urlHandlingStrategy=u),c&&(h.routeReuseStrategy=c),a.errorHandler&&(h.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(h.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const e=Wa();h.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return a.onSameUrlNavigation&&(h.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(h.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(h.relativeLinkResolution=a.relativeLinkResolution),h}function jd(e){return e.routerState.root}const Bd=(()=>(class{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new O}appInitializer(){return this.injector.get(el,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(bd),r=this.injector.get(Id);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=(()=>this.initNavigation?ta(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone)),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get(Id),n=this.injector.get(Md),r=this.injector.get(Td),s=this.injector.get(bd),o=this.injector.get(co);e===o.components[0]&&(this.isLegacyEnabled(t)?s.initialNavigation():this.isLegacyDisabled(t)&&s.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}isLegacyDisabled(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}))();function Hd(e){return e.appInitializer.bind(e)}function zd(e){return e.bootstrapListener.bind(e)}const $d=new ke("Router Initializer");var Wd=Gn({encapsulation:2,styles:[],data:{}});function Gd(e){return $o(0,[(e()(),Ao(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ts(1,212992,null,0,xd,[Sd,Mn,qt,[8,null],wn],null,null)],function(e,t){e(t,1,0)},null)}function qd(e){return $o(0,[(e()(),Ao(0,0,null,null,1,"ng-component",[],null,null,null,Gd,Wd)),ts(1,49152,null,0,_c,[],null,null)],null,null)}var Zd=Ar("ng-component",_c,qd,{},{},[]);class Qd extends B{constructor(e,t){super(e),this.sources=t,this.completed=0,this.haveValues=0;const n=t.length;this.values=new Array(n);for(let r=0;r<n;r++){const e=j(this,t[r],null,r);e&&this.add(e)}}notifyNext(e,t,n,r,s){this.values[n]=t,s._hasValue||(s._hasValue=!0,this.haveValues++)}notifyComplete(e){const{destination:t,haveValues:n,values:r}=this,s=r.length;e._hasValue?(this.completed++,this.completed===s&&(n===s&&t.next(r),t.complete())):t.complete()}}const Yd=new ke("NgValueAccessor"),Kd=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=(e=>{}),this.onTouched=(()=>{})}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))(),Xd=new ke("CompositionEventMode"),Jd=(()=>(class{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=(e=>{}),this.onTouched=(()=>{}),this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Wa()?Wa().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}))();class ep{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class tp extends ep{get formDirective(){return null}get path(){return null}}function np(){throw new Error("unimplemented")}class rp extends ep{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return np()}get asyncValidator(){return np()}}class sp{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}const op=(()=>(class extends sp{constructor(e){super(e)}}))(),ip=(()=>(class extends sp{constructor(e){super(e)}}))();function lp(e){return null==e||0===e.length}const ap=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/;class up{static min(e){return t=>{if(lp(t.value)||lp(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(lp(t.value)||lp(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return lp(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return lp(e.value)?null:ap.test(e.value)?null:{email:!0}}static minLength(e){return t=>{if(lp(t.value))return null;const n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}static maxLength(e){return t=>{const n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}static pattern(e){if(!e)return up.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(lp(e.value))return null;const r=e.value;return t.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(cp);return 0==t.length?null:function(e){return dp(function(e,n){return t.map(t=>t(e))}(e))}}static composeAsync(e){if(!e)return null;const t=e.filter(cp);return 0==t.length?null:function(e){return function e(...t){let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&a(t[0])&&(t=t[0]),0===t.length?Xl:n?e(t).pipe(H(e=>n(...e))):new w(e=>new Qd(e,t))}(function(e,n){return t.map(t=>t(e))}(e).map(hp)).pipe(H(dp))}}}function cp(e){return null!=e}function hp(e){const t=At(e)?G(e):e;if(!Pt(t))throw new Error("Expected validator to return Promise or Observable.");return t}function dp(e){const t=e.reduce((e,t)=>null!=t?Object.assign({},e,t):e,{});return 0===Object.keys(t).length?null:t}function pp(e){return e.validate?t=>e.validate(t):e}function fp(e){return e.validate?t=>e.validate(t):e}const gp=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=(e=>{}),this.onTouched=(()=>{})}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=(t=>{e(""==t?null:parseFloat(t))})}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))(),mp=(()=>(class{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}))(),yp=(()=>(class{constructor(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=(()=>{}),this.onTouched=(()=>{})}ngOnInit(){this._control=this._injector.get(rp),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=(()=>{e(this.value),this._registry.select(this)})}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')}}))(),_p={formControlName:'\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',formGroupName:'\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',formArrayName:'\n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });',ngModelGroup:'\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',ngModelWithFormGroup:'\n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  '};function vp(e,t){return[...t.path,e]}function bp(e,t){e||Sp(t,"Cannot find control with"),t.valueAccessor||Sp(t,"No value accessor for form control with"),e.validator=up.compose([e.validator,t.validator]),e.asyncValidator=up.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&wp(e,t)})}(e,t),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&wp(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function wp(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Sp(e,t){let n;throw n=e.path.length>1?`path: '${e.path.join(" -> ")}'`:e.path[0]?`name: '${e.path}'`:"unspecified name attribute",new Error(`${t} ${n}`)}function xp(e){return null!=e?up.compose(e.map(pp)):null}function Ep(e){return null!=e?up.composeAsync(e.map(fp)):null}const Cp=[Kd,(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=(e=>{}),this.onTouched=(()=>{})}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=(t=>{e(""==t?null:parseFloat(t))})}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))(),gp,(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=(e=>{}),this.onTouched=(()=>{}),this._compareWith=Vt}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=(t=>{this.value=this._getOptionValue(t),e(this.value)})}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}))(),(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=(e=>{}),this.onTouched=(()=>{}),this._compareWith=Vt}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=((e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)})}else t=((e,t)=>{e._setSelected(!1)});this._optionMap.forEach(t)}registerOnChange(e){this.onChange=(t=>{const n=[];if(t.hasOwnProperty("selectedOptions")){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const r=e.item(t),s=this._getOptionValue(r.value);n.push(s)}}else{const e=t.options;for(let t=0;t<e.length;t++){const r=e.item(t);if(r.selected){const e=this._getOptionValue(r.value);n.push(e)}}}this.value=n,e(n)})}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}))(),yp],kp="VALID",Op="INVALID",Mp="PENDING",Tp="DISABLED";function Ip(e){const t=Pp(e)?e.validators:e;return Array.isArray(t)?xp(t):t||null}function Ap(e,t){const n=Pp(t)?t.asyncValidators:e;return Array.isArray(n)?Ep(n):n||null}function Pp(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Np{constructor(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=(()=>{}),this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return this.status===kp}get invalid(){return this.status===Op}get pending(){return this.status==Mp}get disabled(){return this.status===Tp}get enabled(){return this.status!==Tp}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this.validator=Ip(e)}setAsyncValidators(e){this.asyncValidator=Ap(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Mp,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Tp,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=kp,this._forEachChild(t=>{t.enable(Object.assign({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==kp&&this.status!==Mp||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Tp:kp}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Mp;const t=hp(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>this.setErrors(t,{emitEvent:e}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce((e,t)=>e instanceof Vp?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Lp&&e.at(t)||null,e))}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new _s,this.statusChanges=new _s}_calculateStatus(){return this._allControlsDisabled()?Tp:this.errors?Op:this._anyControlsHaveStatus(Mp)?Mp:this._anyControlsHaveStatus(Op)?Op:kp}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Pp(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Rp extends Np{constructor(e=null,t,n){super(Ip(t),Ap(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=(()=>{})}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Vp extends Np{constructor(e,t,n){super(Ip(t),Ap(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof Rp?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){let t=!1;return this._forEachChild((n,r)=>{t=t||this.contains(r)&&e(n)}),t}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,r)=>{n=t(n,e,r)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Lp extends Np{constructor(e,t,n){super(Ip(t),Ap(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Rp?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const Dp=(()=>Promise.resolve(null))(),Up=(()=>(class extends tp{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new _s,this.form=new Vp({},xp(e),Ep(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Dp.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),bp(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Dp.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),function(t,n){const r=t.indexOf(e);r>-1&&t.splice(r,1)}(this._directives)})}addFormGroup(e){Dp.then(()=>{const t=this._findContainer(e.path),n=new Vp({});(function(e,t){null==e&&Sp(t,"Cannot find control with"),e.validator=up.compose([e.validator,t.validator]),e.asyncValidator=up.composeAsync([e.asyncValidator,t.asyncValidator])})(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Dp.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Dp.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}))();class Fp{static modelParentException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup's partner directive "formControlName" instead.  Example:\n\n      ${_p.formControlName}\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      ${_p.ngModelWithFormGroup}`)}static formGroupNameException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      ${_p.formGroupName}\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      ${_p.ngModelGroup}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      ${_p.formGroupName}\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      ${_p.ngModelGroup}`)}static ngFormWarning(){console.warn("\n    It looks like you're using 'ngForm'.\n\n    Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n    in Angular v9.\n\n    Use 'ng-form' instead.\n\n    Before:\n    <ngForm #myForm=\"ngForm\">\n\n    After:\n    <ng-form #myForm=\"ngForm\">\n    ")}}const jp=new ke("NgFormSelectorWarning");class Bp extends tp{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return vp(this.name,this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return xp(this._validators)}get asyncValidator(){return Ep(this._asyncValidators)}_checkParentType(){}}const Hp=(()=>{class e extends Bp{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){this._parent instanceof e||this._parent instanceof Up||Fp.modelGroupParentException()}}return e})(),zp=(()=>Promise.resolve(null))(),$p=(()=>(class extends rp{constructor(e,t,n,r){super(),this.control=new Rp,this._registered=!1,this.update=new _s,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||Sp(e,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,s=void 0;return t.forEach(t=>{t.constructor===Jd?n=t:function(e){return Cp.some(t=>e.constructor===t)}(t)?(r&&Sp(e,"More than one built-in value accessor matches form control with"),r=t):(s&&Sp(e,"More than one custom value accessor matches form control with"),s=t)}),s||r||n||(Sp(e,"No valid value accessor for form control with"),null)}(this,r)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Vt(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?vp(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return xp(this._rawValidators)}get asyncValidator(){return Ep(this._rawAsyncValidators)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){bp(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Hp)&&this._parent instanceof Bp?Fp.formGroupNameException():this._parent instanceof Hp||this._parent instanceof Up||Fp.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Fp.missingNameException()}_updateValue(e){zp.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;zp.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}))(),Wp=(()=>(class{}))(),Gp=(()=>(class{}))(),qp=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:jp,useValue:t.warnOnDeprecatedNgFormSelector}]}}}return e})();class Zp{}class Qp{}class Yp{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),r=n.toLowerCase(),s=e.slice(t+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Yp?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Yp;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Yp?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case"d":const s=e.value;if(s){let e=this.headers.get(t);if(!e)return;0===(e=e.filter(e=>-1===s.indexOf(e))).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class Kp{encodeKey(e){return Xp(e)}encodeValue(e){return Xp(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function Xp(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class Jp{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Kp,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.split("&").forEach(e=>{const r=e.indexOf("="),[s,o]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],i=n.get(s)||[];i.push(o),n.set(s,i)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).join("&")}clone(e){const t=new Jp({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat([e]),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function ef(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function tf(e){return"undefined"!=typeof Blob&&e instanceof Blob}function nf(e){return"undefined"!=typeof FormData&&e instanceof FormData}class rf{constructor(e,t,n,r){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new Yp),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":n<t.length-1?"&":"")+e}}else this.params=new Jp,this.urlWithParams=t}serializeBody(){return null===this.body?null:ef(this.body)||tf(this.body)||nf(this.body)||"string"==typeof this.body?this.body:this.body instanceof Jp?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body?null:nf(this.body)?null:tf(this.body)?this.body.type||null:ef(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Jp?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(e={}){const t=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,s=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,i=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let l=e.headers||this.headers,a=e.params||this.params;return void 0!==e.setHeaders&&(l=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),l)),e.setParams&&(a=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),a)),new rf(t,n,s,{params:a,headers:l,reportProgress:i,responseType:r,withCredentials:o})}}const sf=function(){var e={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return e[e.Sent]="Sent",e[e.UploadProgress]="UploadProgress",e[e.ResponseHeader]="ResponseHeader",e[e.DownloadProgress]="DownloadProgress",e[e.Response]="Response",e[e.User]="User",e}();class of{constructor(e,t=200,n="OK"){this.headers=e.headers||new Yp,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class lf extends of{constructor(e={}){super(e),this.type=sf.ResponseHeader}clone(e={}){return new lf({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class af extends of{constructor(e={}){super(e),this.type=sf.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new af({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class uf extends of{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function cf(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}const hf=(()=>(class{constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof rf)r=e;else{let s=void 0;s=n.headers instanceof Yp?n.headers:new Yp(n.headers);let o=void 0;n.params&&(o=n.params instanceof Jp?n.params:new Jp({fromObject:n.params})),r=new rf(e,t,void 0!==n.body?n.body:null,{headers:s,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=ta(r).pipe(Ba(e=>this.handler.handle(e)));if(e instanceof rf||"events"===n.observe)return s;const o=s.pipe(ca(e=>e instanceof af));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(H(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return o.pipe(H(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return o.pipe(H(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return o.pipe(H(e=>e.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new Jp).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,cf(n,t))}post(e,t,n={}){return this.request("POST",e,cf(n,t))}put(e,t,n={}){return this.request("PUT",e,cf(n,t))}}))();class df{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const pf=new ke("HTTP_INTERCEPTORS"),ff=(()=>(class{intercept(e,t){return t.handle(e)}}))(),gf=/^\)\]\}',?\n/;class mf{}const yf=(()=>(class{constructor(){}build(){return new XMLHttpRequest}}))(),_f=(()=>(class{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new w(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const r=e.serializeBody();let s=null;const o=()=>{if(null!==s)return s;const t=1223===n.status?204:n.status,r=n.statusText||"OK",o=new Yp(n.getAllResponseHeaders()),i=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return s=new lf({headers:o,status:t,statusText:r,url:i})},i=()=>{let{headers:r,status:s,statusText:i,url:l}=o(),a=null;204!==s&&(a=void 0===n.response?n.responseText:n.response),0===s&&(s=a?200:0);let u=s>=200&&s<300;if("json"===e.responseType&&"string"==typeof a){const e=a;a=a.replace(gf,"");try{a=""!==a?JSON.parse(a):null}catch(c){a=e,u&&(u=!1,a={error:c,text:a})}}u?(t.next(new af({body:a,headers:r,status:s,statusText:i,url:l||void 0})),t.complete()):t.error(new uf({error:a,headers:r,status:s,statusText:i,url:l||void 0}))},l=e=>{const{url:r}=o(),s=new uf({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});t.error(s)};let a=!1;const u=r=>{a||(t.next(o()),a=!0);let s={type:sf.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===e.responseType&&n.responseText&&(s.partialText=n.responseText),t.next(s)},c=e=>{let n={type:sf.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",i),n.addEventListener("error",l),e.reportProgress&&(n.addEventListener("progress",u),null!==r&&n.upload&&n.upload.addEventListener("progress",c)),n.send(r),t.next({type:sf.Sent}),()=>{n.removeEventListener("error",l),n.removeEventListener("load",i),e.reportProgress&&(n.removeEventListener("progress",u),null!==r&&n.upload&&n.upload.removeEventListener("progress",c)),n.abort()}})}}))(),vf=new ke("XSRF_COOKIE_NAME"),bf=new ke("XSRF_HEADER_NAME");class wf{}const Sf=(()=>(class{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=zl(e,this.cookieName),this.lastCookieString=e),this.lastToken}}))(),xf=(()=>(class{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}))(),Ef=(()=>(class{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(pf,[]);this.chain=e.reduceRight((e,t)=>new df(e,t),this.backend)}return this.chain.handle(e)}}))(),Cf=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:xf,useClass:ff}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:vf,useValue:t.cookieName}:[],t.headerName?{provide:bf,useValue:t.headerName}:[]]}}}return e})(),kf=(()=>(class{}))(),Of=(()=>{class e{constructor(e){this.http=e}doRegistration(){return this.http.get("http://localhost:9090/registerrmu1")}doRegistrationrmu2(){return this.http.get("http://localhost:9090/registerrmu2")}readtransformer1(){return this.http.get("http://localhost:9090/read/1")}readtransformer2(){return this.http.get("http://localhost:9090/read/2")}readtransformer3(){return this.http.get("http://localhost:9090/read/3")}readtransformer4(){return this.http.get("http://localhost:9090/read/4")}readhome1(){return this.http.get("http://localhost:9090/readhome/1")}readhome2(){return this.http.get("http://localhost:9090/readhome/2")}readhome3(){return this.http.get("http://localhost:9090/readhome/3")}readhome4(){return this.http.get("http://localhost:9090/readhome/4")}getUsers(){return this.http.get("http://localhost:9090/getAllUsers")}getUserByEmail(e){return this.http.get("http://localhost:9090//findUser/"+e)}deleteUser(e){return this.http.delete("http://localhost:9090/cancel/"+e)}}return e.ngInjectableDef=pe({factory:function(){return new e(Ce(hf))},token:e,providedIn:"root"}),e})();n("4t0b");class Mf extends d{constructor(e,t){super()}schedule(e,t=0){return this}}class Tf extends Mf{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r=void 0;try{this.work(e)}catch(s){n=!0,r=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}const If=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=(()=>Date.now()),e})();class Af extends If{constructor(e,t=If.now){super(e,()=>Af.delegate&&Af.delegate!==this?Af.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return Af.delegate&&Af.delegate!==this?Af.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}const Pf=new Af(Tf);function Nf(e=0,t=Pf){var n;return(a(n=e)||!(n-parseFloat(n)+1>=0)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=Pf),new w(n=>(n.add(t.schedule(Rf,e,{subscriber:n,counter:0,period:e})),n))}function Rf(e){const{subscriber:t,counter:n,period:r}=e;t.next(n),this.schedule({subscriber:t,counter:n+1,period:r},r)}class Vf{constructor(e,t){this.service=e,this.datePipe=t,this.rmu1bubble1=!0,this.rmu2bubble2=!0}ngOnInit(){this.toogleSwitch1=document.getElementById("switch-input1"),this.toogleSwitch2=document.getElementById("switch-input2"),this.registerNowrmu1(),this.loadDesign(),this.registerNowrmu2()}registerNowrmu1(){Nf(1e3).subscribe(e=>{this.service.doRegistration().subscribe(e=>{this.user=e,console.log(this.user),"ON"===this.user.switchs?(this.toogleSwitch1.setAttribute("checked","checked"),this.rmuLine1.dash={animation:!0}):(this.rmu1bubble1&&(this.rmu1bubble1=!1),this.rmuLine1.dash=!0,this.toogleSwitch1.removeAttribute("checked"))})})}registerNowrmu2(){Nf(1e3).subscribe(e=>{this.service.doRegistrationrmu2().subscribe(e=>{this.user1=e,console.log(this.user1),"ON"===this.user1.switchs?(this.rmu2bubble2=!0,this.closeLine.color="black",this.rmuLine2.dash={animation:!0},this.toogleSwitch2.setAttribute("checked","checked")):(this.rmu2bubble2&&(this.rmu2bubble2=!1,this.showbubble()),this.rmuLine2.dash=!0,this.toogleSwitch2.removeAttribute("checked"))})})}loadDesign(){var e=document.getElementById("powerstation"),t=document.getElementById("rmu1"),n=document.getElementById("rmu2"),r=document.getElementById("transformer-1"),s=document.getElementById("transformer-2"),o=document.getElementById("transformer-3"),i=document.getElementById("transformer-4"),l=document.getElementById("home-1"),a=document.getElementById("home-2"),u=document.getElementById("home-3"),c=document.getElementById("home-4"),h=document.getElementById("home-5"),d=document.getElementById("home-6"),p=document.getElementById("home-7"),f=document.getElementById("home-8");setTimeout(()=>{this.rmuLine1=new LeaderLine(e,t,{color:"black",size:2.5,path:"grid",endLabel:LeaderLine.pathLabel("line1"),startPlug:"arrow1",endPlug:"arrow",startSocket:"top",endSocket:"left",dash:{animation:!0}}),this.rmuLine2=new LeaderLine(e,n,{color:"black",size:2.5,path:"grid",endLabel:LeaderLine.pathLabel("line2"),startPlug:"arrow1",endPlug:"arrow",startSocket:"bottom",endSocket:"left",dash:{animation:!0}}),new LeaderLine(t,r,{endLabel:"line3",color:"black",size:2.5,path:"grid",startLabel:"RMU-1",startPlug:"arrow1",endPlug:"arrow",startSocket:"top",endSocket:"left"}),new LeaderLine(t,s,{color:"black",size:2.5,path:"grid",endLabel:LeaderLine.pathLabel("line4"),startPlug:"arrow1",endPlug:"arrow",startSocket:"bottom",endSocket:"left"}),new LeaderLine(n,o,{color:"black",size:2.5,path:"grid",endLabel:LeaderLine.pathLabel("line5"),startLabel:"RMU-2",startPlug:"arrow1",endPlug:"arrow",startSocket:"top",endSocket:"left"}),this.closeLine=new LeaderLine(n,i,{color:"black",size:2.5,path:"grid",endLabel:LeaderLine.pathLabel("line6"),startPlug:"arrow1",endPlug:"arrow",startSocket:"bottom",endSocket:"left"}),new LeaderLine(r,l,{color:"black",size:2.5,path:"grid",topLabel:"Transformer 1",startPlug:"arrow1",endPlug:"arrow",startSocket:"right",endSocket:"left"}),new LeaderLine(r,a,{color:"black",size:2.5,path:"grid",startPlug:"arrow1",endPlug:"arrow",startSocket:"right",endSocket:"left"}),new LeaderLine(s,u,{color:"black",size:2.5,path:"grid",startPlug:"arrow1",endPlug:"arrow",startSocket:"right",endSocket:"left"}),new LeaderLine(s,c,{color:"black",size:2.5,path:"grid",startPlug:"arrow1",endPlug:"arrow",startSocket:"right",endSocket:"left"}),new LeaderLine(o,h,{color:"black",size:2.5,path:"grid",startPlug:"arrow1",endPlug:"arrow",startSocket:"right",endSocket:"left"}),new LeaderLine(o,d,{color:"black",size:2.5,path:"grid",startPlug:"arrow1",endPlug:"arrow",startSocket:"right",endSocket:"left"}),new LeaderLine(i,p,{color:"black",size:2.5,path:"grid",startPlug:"arrow1",endPlug:"arrow",startSocket:"right",endSocket:"left"}),new LeaderLine(i,f,{color:"black",size:2.5,path:"grid",startPlug:"arrow1",endPlug:"arrow",startSocket:"right",endSocket:"left"})},100)}fadeLine(){this.closeLine.color="red",this.rmuLine2.dash=!0}showbubble(){var e=document.getElementById("bubble");e.style.animationName="expand-bounce",e.style.animationDuration="0.25s",setTimeout(()=>{e.style.animationName="shrink",e.style.animationDuration="0.1s"},1e4)}showbubble1(){var e=document.getElementById("bubble1");e.style.animationName="expand-bounce",e.style.animationDuration="0.25s",setTimeout(()=>{e.style.animationName="shrink",e.style.animationDuration="0.1s"},3e3)}transformmer1Clicked(){this.readtransformer1(),document.getElementById("power1").style.display="block",document.getElementById("transformer1").style.display="none",setTimeout(()=>{document.getElementById("power1").style.display="none",document.getElementById("transformer1").style.display="block"},12e5)}transformmer2Clicked(){this.readtransformer2(),document.getElementById("power2").style.display="block",document.getElementById("transformer2").style.display="none",setTimeout(()=>{document.getElementById("power2").style.display="none",document.getElementById("transformer2").style.display="block"},12e5)}transformmer3Clicked(){this.readtransformer3(),document.getElementById("power3").style.display="block",document.getElementById("transformer3").style.display="none",setTimeout(()=>{document.getElementById("power3").style.display="none",document.getElementById("transformer3").style.display="block"},12e5)}transformmer4Clicked(){this.readtransformer4(),document.getElementById("power4").style.display="block",document.getElementById("transformer4").style.display="none",setTimeout(()=>{document.getElementById("power4").style.display="none",document.getElementById("transformer4").style.display="block"},12e5)}readtransformer1(){this.service.readtransformer1().subscribe(e=>this.transformer1=e.toString())}readtransformer2(){this.service.readtransformer2().subscribe(e=>this.transformer2=e.toString())}readtransformer3(){this.service.readtransformer3().subscribe(e=>this.transformer3=e.toString())}readtransformer4(){this.service.readtransformer4().subscribe(e=>this.transformer4=e.toString())}home1Clicked(){this.service.readhome1().subscribe(e=>{this.home1=e.toString(),document.getElementById("result1").style.display="block",document.getElementById("home1").style.display="none",setTimeout(()=>{document.getElementById("result1").style.display="none",document.getElementById("home1").style.display="block"},12e5)})}home2Clicked(){this.service.readhome2().subscribe(e=>{this.home2=e.toString(),document.getElementById("result2").style.display="block",document.getElementById("home2").style.display="none",setTimeout(()=>{document.getElementById("result2").style.display="none",document.getElementById("home2").style.display="block"},12e5)})}home3Clicked(){this.service.readhome3().subscribe(e=>{this.home3=e.toString(),document.getElementById("result3").style.display="block",document.getElementById("home3").style.display="none",setTimeout(()=>{document.getElementById("result3").style.display="none",document.getElementById("home3").style.display="block"},12e5)})}home4Clicked(){this.service.readhome4().subscribe(e=>{this.home4=e.toString(),document.getElementById("result4").style.display="block",document.getElementById("home4").style.display="none",setTimeout(()=>{document.getElementById("result4").style.display="none",document.getElementById("home4").style.display="block"},12e5)})}}var Lf=Gn({encapsulation:0,styles:[['body[_ngcontent-%COMP%]{display:flex;align-items:center}fieldset[_ngcontent-%COMP%]{border:thin solid #ccc;border-radius:4px;background:#fbfbfb;height:580px;margin-top:8px}.firstBox[_ngcontent-%COMP%]{background-color:#d3d3d3;width:150px;border:5px solid orange;height:80px;text-align:center;margin-left:270px;box-shadow:4px 4px 5px}.secondBox[_ngcontent-%COMP%]{background-color:#d3d3d3;width:180px;border:5px solid #20b2aa;height:130px;text-align:center;margin:20px 10px 28px;box-shadow:4px 4px 5px}.thirdBox[_ngcontent-%COMP%]{background-color:#d3d3d3;width:150px;border:5px solid orange;height:80px;text-align:center;margin-left:270px;box-shadow:4px 4px 5px}.fourthBox[_ngcontent-%COMP%]{top:100px;position:absolute;background-color:#d3d3d3;width:130px;border:5px solid tomato;height:75px;text-align:center;margin-left:500px;box-shadow:4px 4px 5px}.fifthhBox[_ngcontent-%COMP%]{top:245px;position:absolute;background-color:#d3d3d3;width:130px;border:5px solid tomato;height:75px;text-align:center;margin-left:500px;box-shadow:4px 4px 5px}.sixBox[_ngcontent-%COMP%]{top:355px;position:absolute;background-color:#d3d3d3;width:130px;border:5px solid tomato;height:75px;text-align:center;margin-left:500px;box-shadow:4px 4px 5px}.sevenBox[_ngcontent-%COMP%]{top:510px;position:absolute;background-color:#d3d3d3;width:130px;border:5px solid tomato;height:75px;text-align:center;margin-left:500px}.homeOne[_ngcontent-%COMP%]{top:70px;position:absolute;text-align:center;margin-left:800px}.homeTwo[_ngcontent-%COMP%]{top:145px;position:absolute;text-align:center;margin-left:800px}.homeThree[_ngcontent-%COMP%]{top:210px;position:absolute;text-align:center;margin-left:800px}.homeFour[_ngcontent-%COMP%]{top:280px;position:absolute;text-align:center;margin-left:800px}.homeFive[_ngcontent-%COMP%]{top:335px;position:absolute;text-align:center;margin-left:800px}.homeSix[_ngcontent-%COMP%]{top:405px;position:absolute;text-align:center;margin-left:800px}.homeSeven[_ngcontent-%COMP%]{top:485px;position:absolute;text-align:center;margin-left:800px}.homeEight[_ngcontent-%COMP%]{top:540px;position:absolute;text-align:center;margin-left:800px}.holder[_ngcontent-%COMP%]{margin-top:100px;margin-left:80px}#powerstation[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{text-align:center;position:relative;top:40%;transform:translateY(-40%);-webkit-transform:translateY(-40%);-ms-transform:translateY(-40%)}.firstBox[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .thirdBox[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:left;position:relative;margin:1px!important}.fifthhBox[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .fourthBox[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .sevenBox[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .sixBox[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center;position:relative}.w3-jumbo[_ngcontent-%COMP%]{font-size:55px!important}#timestampfont[_ngcontent-%COMP%]{font-size:8px;font-weight:bolder}.closeline[_ngcontent-%COMP%]{top:550px;position:absolute;margin-left:340px;cursor:pointer;color:#f18383}.closeline[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:20px!important}.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;vertical-align:top;width:56px;height:20px;padding:3px;border-radius:18px;cursor:pointer}.switch-input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;opacity:0}.switch-label[_ngcontent-%COMP%]{position:relative;display:block;height:inherit;font-size:10px;text-transform:uppercase;background:#eceeef;border-radius:inherit;box-shadow:inset 0 1px 2px rgba(0,0,0,.12),inset 0 0 2px rgba(0,0,0,.15);transition:.15s ease-out;transition-property:opacity background}.switch-label[_ngcontent-%COMP%]:after, .switch-label[_ngcontent-%COMP%]:before{position:absolute;top:50%;margin-top:-.5em;line-height:1;transition:inherit}.switch-label[_ngcontent-%COMP%]:before{content:attr(data-off);right:8px;color:#aaa;text-shadow:0 1px rgba(255,255,255,.5)}.switch-label[_ngcontent-%COMP%]:after{content:attr(data-on);left:11px;color:#fff;text-shadow:0 1px rgba(0,0,0,.2);opacity:0}.switch-input[_ngcontent-%COMP%]:checked ~ .switch-label[_ngcontent-%COMP%]{background:#47a8d8;box-shadow:inset 0 1px 2px rgba(0,0,0,.15),inset 0 0 3px rgba(0,0,0,.2)}.switch-input[_ngcontent-%COMP%]:checked ~ .switch-label[_ngcontent-%COMP%]:before{opacity:0}.switch-input[_ngcontent-%COMP%]:checked ~ .switch-label[_ngcontent-%COMP%]:after{opacity:1}.switch-handle[_ngcontent-%COMP%]{position:absolute;top:4px;left:4px;width:18px;height:18px;background:#fff;border-radius:10px;box-shadow:1px 1px 5px rgba(0,0,0,.2);background-image:linear-gradient(to bottom,#fff 40%,#f0f0f0);transition:left .15s ease-out}.switch-handle[_ngcontent-%COMP%]:before{content:\'\';position:absolute;top:50%;left:50%;margin:-6px 0 0 -6px;width:12px;height:12px;background:#f9f9f9;border-radius:6px;box-shadow:inset 0 1px rgba(0,0,0,.02);background-image:linear-gradient(to bottom,#eee,#fff)}.switch-input[_ngcontent-%COMP%]:checked ~ .switch-handle[_ngcontent-%COMP%]{left:40px;box-shadow:-1px 1px 5px rgba(0,0,0,.2)}.switch-green[_ngcontent-%COMP%] > .switch-input[_ngcontent-%COMP%]:checked ~ .switch-label[_ngcontent-%COMP%]{background:#2c8e23}.animate[_ngcontent-%COMP%]{transition:all .1s;-webkit-transition:.1s}.action-button[_ngcontent-%COMP%]{position:relative;padding:1px 13px;border-radius:20px;font-size:11px;color:#fff;float:right;margin-right:8px;text-decoration:none;text-shadow:2px 2px 4px #000}.blue[_ngcontent-%COMP%]{background-color:#3498db;border-bottom:5px solid #2980b9;text-shadow:0 -2px #2980b9}.action-button[_ngcontent-%COMP%]:active{transform:translate(0,5px);-webkit-transform:translate(0,5px);border-bottom:1px solid}.title[_ngcontent-%COMP%]{font-weight:bolder;position:absolute!important;top:-25px!important;font-size:14px;text-align:center}.bubble[_ngcontent-%COMP%]{position:absolute;-webkit-transform-origin:0 100%;transform-origin:0 100%;text-align:center;background-color:#be0e0e;color:#fff;border-radius:10px;width:100px;padding:10px;left:584px;top:363px;z-index:10;-webkit-transform:scale(0);transform:scale(0);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.bubble[_ngcontent-%COMP%]::before{content:"";display:block;width:0;position:absolute;bottom:-25px;left:5px;border-style:solid;border-width:15px;border-color:#be0e0e transparent transparent #be0e0e;-webkit-transform:rotate(10deg);transform:rotate(10deg)}.bubble1[_ngcontent-%COMP%]{position:absolute;-webkit-transform-origin:0 100%;transform-origin:0 100%;text-align:center;background-color:#be0e0e;color:#fff;border-radius:10px;width:100px;padding:10px;left:584px;top:96px;z-index:10;-webkit-transform:scale(0);transform:scale(0);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.bubble1[_ngcontent-%COMP%]::before{content:"";display:block;width:0;position:absolute;bottom:-25px;left:5px;border-style:solid;border-width:15px;border-color:#be0e0e transparent transparent #be0e0e;-webkit-transform:rotate(10deg);transform:rotate(10deg)}@-webkit-keyframes expand-bounce{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.25);transform:scale(1.25)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes expand-bounce{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.25);transform:scale(1.25)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes shrink{0%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(0);transform:scale(0)}}@keyframes shrink{0%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(0);transform:scale(0)}}.home-button[_ngcontent-%COMP%]{bottom:3px!important;margin-left:2px!important;padding:2px 12px!important;background-color:#e67e22;border-bottom:5px solid #cd6509}.home-icon[_ngcontent-%COMP%]{float:left}.home-text[_ngcontent-%COMP%]{float:right;margin-top:2px}.home-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:2px}.disable-button[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}.power-text[_ngcontent-%COMP%]{margin-left:8px;float:left}.power-result[_ngcontent-%COMP%]{float:right}.power-result-align[_ngcontent-%COMP%]{margin-right:15px;pointer-events:none}.zone-text[_ngcontent-%COMP%]{margin-top:-100px;margin-left:-66px;position:absolute;display:inline-block;box-sizing:content-box;color:#4472c4;text-align:center;text-transform:normal;text-overflow:clip;white-space:pre;text-shadow:1px 0 0 #8faadc}.text-effect[_ngcontent-%COMP%]{box-sizing:content-box;margin:0 auto;border-radius:3px;color:rgb(41 31 195 / 1);font-weight:700;text-align:center;text-overflow:clip;letter-spacing:3px;text-shadow:1px 1px 0 #eee,2px 2px 0 #707070}.active-animatioon[_ngcontent-%COMP%]{background-image:linear-gradient(90deg,#22560d 50%,transparent 50%),linear-gradient(90deg,#22560d 50%,transparent 50%),linear-gradient(0deg,#22560d 50%,transparent 50%),linear-gradient(0deg,#22560d 50%,transparent 50%);background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;background-size:15px 2px,15px 2px,2px 15px,2px 15px;background-position:left top,right bottom,left bottom,right top;-webkit-animation:1s linear infinite border-dance;animation:1s linear infinite border-dance}@-webkit-keyframes border-dance{0%{background-position:left top,right bottom,left bottom,right top}100%{background-position:left 15px top,right 15px bottom,left bottom 15px,right top 15px}}@keyframes border-dance{0%{background-position:left top,right bottom,left bottom,right top}100%{background-position:left 15px top,right 15px bottom,left bottom 15px,right top 15px}}']],data:{}});function Df(e){return $o(0,[(e()(),Ao(0,0,null,null,0,"link",[["href","//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css"],["id","bootstrap-css"],["rel","stylesheet"]],null,null,null,null,null)),(e()(),Ao(1,0,null,null,0,"link",[["href","https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"],["rel","stylesheet"]],null,null,null,null,null)),(e()(),Ao(2,0,null,null,0,"link",[["href","https://www.w3schools.com/w3css/4/w3.css"],["rel","stylesheet"]],null,null,null,null,null)),(e()(),Ao(3,0,null,null,2,"div",[["style","text-align: center"]],null,null,null,null,null)),(e()(),Ao(4,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),Bo(5,null,["",""])),(e()(),Ao(6,0,null,null,192,"div",[["class","container h-100"]],null,null,null,null,null)),(e()(),Ao(7,0,null,null,191,"div",[["class","wrapper"]],null,null,null,null,null)),(e()(),Ao(8,0,null,null,190,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(e,t,n){var r=!0;return"submit"===t&&(r=!1!==Hr(e,10).onSubmit(n)&&r),"reset"===t&&(r=!1!==Hr(e,10).onReset()&&r),r},null,null)),ts(9,16384,null,0,Wp,[],null,null),ts(10,4210688,null,0,Up,[[8,null],[8,null]],null,null),ns(2048,null,tp,null,[Up]),ts(12,16384,null,0,ip,[[4,tp]],null,null),(e()(),Ao(13,0,null,null,185,"fieldset",[],null,null,null,null,null)),(e()(),Ao(14,0,null,null,2,"h2",[["style","text-align:center;"]],null,null,null,null,null)),(e()(),Ao(15,0,null,null,1,"span",[["class","text-effect active-animatioon"]],null,null,null,null,null)),(e()(),Bo(-1,null,["\u2003IoTElectricity (IoTE)\u2003"])),(e()(),Ao(17,0,null,null,181,"div",[["class","holder"]],null,null,null,null,null)),(e()(),Ao(18,0,null,null,1,"h4",[["class","zone-text"]],null,null,null,null,null)),(e()(),Bo(-1,null,["Chennai Zone, India."])),(e()(),Ao(20,0,null,null,17,"div",[["class","firstBox"],["id","rmu1"]],null,null,null,null,null)),(e()(),Ao(21,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),Ao(22,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(23,null,["Loc: ",""])),(e()(),Ao(24,0,null,null,6,"p",[],null,null,null,null,null)),(e()(),Ao(25,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Switch:"])),(e()(),Ao(27,0,null,null,3,"label",[["class","switch switch-green"]],null,null,null,null,null)),(e()(),Ao(28,0,null,null,0,"input",[["checked",""],["class","switch-input"],["id","switch-input1"],["type","checkbox"]],null,null,null,null,null)),(e()(),Ao(29,0,null,null,0,"span",[["class","switch-label"],["data-off","Off"],["data-on","On"]],null,null,null,null,null)),(e()(),Ao(30,0,null,null,0,"span",[["class","switch-handle"]],null,null,null,null,null)),(e()(),Ao(31,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),Ao(32,0,null,null,3,"small",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Time: "])),(e()(),Ao(34,0,null,null,1,"span",[["id","timestampfont"]],null,null,null,null,null)),(e()(),Bo(35,null,["",""])),(e()(),Ao(36,0,null,null,1,"div",[["class","bubble1"],["id","bubble1"]],null,null,null,null,null)),(e()(),Bo(-1,null,["Issue occured!!"])),(e()(),Ao(38,0,null,null,4,"div",[["class","secondBox"],["id","powerstation"]],null,null,null,null,null)),(e()(),Ao(39,0,null,null,3,"h4",[],null,null,null,null,null)),(e()(),Bo(-1,null,["POWER "])),(e()(),Ao(41,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Bo(-1,null,[" SUB-STATION"])),(e()(),Ao(43,0,null,null,17,"div",[["class","thirdBox"],["id","rmu2"]],null,null,null,null,null)),(e()(),Ao(44,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),Ao(45,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(46,null,["Loc: ",""])),(e()(),Ao(47,0,null,null,6,"p",[],null,null,null,null,null)),(e()(),Ao(48,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Switch:"])),(e()(),Ao(50,0,null,null,3,"label",[["class","switch switch-green"]],null,null,null,null,null)),(e()(),Ao(51,0,null,null,0,"input",[["checked",""],["class","switch-input"],["id","switch-input2"],["type","checkbox"]],null,null,null,null,null)),(e()(),Ao(52,0,null,null,0,"span",[["class","switch-label"],["data-off","Off"],["data-on","On"]],null,null,null,null,null)),(e()(),Ao(53,0,null,null,0,"span",[["class","switch-handle"]],null,null,null,null,null)),(e()(),Ao(54,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),Ao(55,0,null,null,3,"small",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Time: "])),(e()(),Ao(57,0,null,null,1,"span",[["id","timestampfont"]],null,null,null,null,null)),(e()(),Bo(58,null,["",""])),(e()(),Ao(59,0,null,null,1,"div",[["class","bubble"],["id","bubble"]],null,null,null,null,null)),(e()(),Bo(-1,null,["Issue occured!!"])),(e()(),Ao(61,0,null,null,14,"div",[["class","fourthBox"],["id","transformer-1"]],null,null,null,null,null)),(e()(),Ao(62,0,null,null,1,"p",[["class","title"]],null,null,null,null,null)),(e()(),Bo(-1,null,["Transformer 1"])),(e()(),Ao(64,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),Ao(65,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Loc:Guindy"])),(e()(),Ao(67,0,null,null,2,"p",[["class","power-text"]],null,null,null,null,null)),(e()(),Ao(68,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Power:"])),(e()(),Ao(70,0,null,null,5,"div",[["class","power-result"]],null,null,null,null,null)),(e()(),Ao(71,0,null,null,1,"span",[["class","action-button shadow animate blue"],["id","transformer1"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.transformmer1Clicked()&&r),r},null,null)),(e()(),Bo(-1,null,[" Read"])),(e()(),Ao(73,0,null,null,2,"p",[["class","power-result-align"],["id","power1"]],null,null,null,null,null)),(e()(),Ao(74,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(75,null,[""," kWh"])),(e()(),Ao(76,0,null,null,14,"div",[["class","fifthhBox"],["id","transformer-2"]],null,null,null,null,null)),(e()(),Ao(77,0,null,null,1,"p",[["class","title"]],null,null,null,null,null)),(e()(),Bo(-1,null,["Transformer 2"])),(e()(),Ao(79,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),Ao(80,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Loc:Velachery"])),(e()(),Ao(82,0,null,null,2,"p",[["class","power-text"]],null,null,null,null,null)),(e()(),Ao(83,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Power: "])),(e()(),Ao(85,0,null,null,5,"div",[["class","power-result"]],null,null,null,null,null)),(e()(),Ao(86,0,null,null,1,"span",[["class","action-button shadow animate blue"],["id","transformer2"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.transformmer2Clicked()&&r),r},null,null)),(e()(),Bo(-1,null,[" Read"])),(e()(),Ao(88,0,null,null,2,"p",[["class","power-result-align"],["id","power2"]],null,null,null,null,null)),(e()(),Ao(89,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(90,null,[""," kWh"])),(e()(),Ao(91,0,null,null,14,"div",[["class","sixBox"],["id","transformer-3"]],null,null,null,null,null)),(e()(),Ao(92,0,null,null,1,"p",[["class","title"]],null,null,null,null,null)),(e()(),Bo(-1,null,["Transformer 3"])),(e()(),Ao(94,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),Ao(95,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Loc:Tambaram"])),(e()(),Ao(97,0,null,null,2,"p",[["class","power-text"]],null,null,null,null,null)),(e()(),Ao(98,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Power: "])),(e()(),Ao(100,0,null,null,5,"div",[["class","power-result"]],null,null,null,null,null)),(e()(),Ao(101,0,null,null,1,"span",[["class","action-button shadow animate blue"],["id","transformer3"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.transformmer3Clicked()&&r),r},null,null)),(e()(),Bo(-1,null,[" Read"])),(e()(),Ao(103,0,null,null,2,"p",[["class","power-result-align"],["id","power3"]],null,null,null,null,null)),(e()(),Ao(104,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(105,null,[""," kWh"])),(e()(),Ao(106,0,null,null,14,"div",[["class","sevenBox"],["id","transformer-4"]],null,null,null,null,null)),(e()(),Ao(107,0,null,null,1,"p",[["class","title"]],null,null,null,null,null)),(e()(),Bo(-1,null,["Transformer 4"])),(e()(),Ao(109,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),Ao(110,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Loc:Perungudi"])),(e()(),Ao(112,0,null,null,2,"p",[["class","power-text"]],null,null,null,null,null)),(e()(),Ao(113,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Power: "])),(e()(),Ao(115,0,null,null,5,"div",[["class","power-result"]],null,null,null,null,null)),(e()(),Ao(116,0,null,null,1,"span",[["class","action-button shadow animate blue"],["id","transformer4"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.transformmer4Clicked()&&r),r},null,null)),(e()(),Bo(-1,null,[" Read"])),(e()(),Ao(118,0,null,null,2,"p",[["class","power-result-align"],["id","power4"]],null,null,null,null,null)),(e()(),Ao(119,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(120,null,[""," kWh"])),(e()(),Ao(121,0,null,null,1,"div",[["class","closeline"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.fadeLine()&&r),r},null,null)),(e()(),Ao(122,0,null,null,0,"i",[["class","fa fa-times"]],null,null,null,null,null)),(e()(),Ao(123,0,null,null,10,"div",[["class","homeOne"],["id","home-1"]],null,null,null,null,null)),(e()(),Ao(124,0,null,null,9,"div",[],null,null,null,null,null)),(e()(),Ao(125,0,null,null,0,"i",[["class","w3-jumbo fa fa-home home-icon"]],null,null,null,null,null)),(e()(),Ao(126,0,null,null,7,"span",[["class","home-text"]],null,null,null,null,null)),(e()(),Ao(127,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Home"])),(e()(),Ao(129,0,null,null,1,"span",[["class","action-button shadow animate blue home-button"],["id","home1"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.home1Clicked()&&r),r},null,null)),(e()(),Bo(-1,null,[" Read"])),(e()(),Ao(131,0,null,null,2,"span",[["class","home-result"],["id","result1"]],null,null,null,null,null)),(e()(),Ao(132,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(133,null,[""," kWh"])),(e()(),Ao(134,0,null,null,10,"div",[["class","homeTwo"],["id","home-2"]],null,null,null,null,null)),(e()(),Ao(135,0,null,null,9,"div",[],null,null,null,null,null)),(e()(),Ao(136,0,null,null,0,"i",[["class","w3-jumbo fa fa-home home-icon"]],null,null,null,null,null)),(e()(),Ao(137,0,null,null,7,"span",[["class","home-text"]],null,null,null,null,null)),(e()(),Ao(138,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Home"])),(e()(),Ao(140,0,null,null,1,"span",[["class","action-button shadow animate blue home-button"],["id","home2"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.home2Clicked()&&r),r},null,null)),(e()(),Bo(-1,null,[" Read"])),(e()(),Ao(142,0,null,null,2,"span",[["class","home-result"],["id","result2"]],null,null,null,null,null)),(e()(),Ao(143,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(144,null,[""," kWh"])),(e()(),Ao(145,0,null,null,10,"div",[["class","homeThree"],["id","home-3"]],null,null,null,null,null)),(e()(),Ao(146,0,null,null,9,"div",[],null,null,null,null,null)),(e()(),Ao(147,0,null,null,0,"i",[["class","w3-jumbo fa fa-home home-icon"]],null,null,null,null,null)),(e()(),Ao(148,0,null,null,7,"span",[["class","home-text"]],null,null,null,null,null)),(e()(),Ao(149,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Home"])),(e()(),Ao(151,0,null,null,1,"span",[["class","action-button shadow animate blue home-button"],["id","home3"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.home3Clicked()&&r),r},null,null)),(e()(),Bo(-1,null,[" Read"])),(e()(),Ao(153,0,null,null,2,"span",[["class","home-result"],["id","result3"]],null,null,null,null,null)),(e()(),Ao(154,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(155,null,[""," kWh"])),(e()(),Ao(156,0,null,null,10,"div",[["class","homeFour"],["id","home-4"]],null,null,null,null,null)),(e()(),Ao(157,0,null,null,9,"div",[],null,null,null,null,null)),(e()(),Ao(158,0,null,null,0,"i",[["class","w3-jumbo fa fa-home home-icon"]],null,null,null,null,null)),(e()(),Ao(159,0,null,null,7,"span",[["class","home-text"]],null,null,null,null,null)),(e()(),Ao(160,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Home"])),(e()(),Ao(162,0,null,null,1,"span",[["class","action-button shadow animate blue home-button"],["id","home4"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.home4Clicked()&&r),r},null,null)),(e()(),Bo(-1,null,[" Read"])),(e()(),Ao(164,0,null,null,2,"span",[["class","home-result"],["id","result4"]],null,null,null,null,null)),(e()(),Ao(165,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),Bo(166,null,[""," kWh"])),(e()(),Ao(167,0,null,null,7,"div",[["class","homeFive"],["id","home-5"]],null,null,null,null,null)),(e()(),Ao(168,0,null,null,6,"div",[],null,null,null,null,null)),(e()(),Ao(169,0,null,null,0,"i",[["class","w3-jumbo fa fa-home home-icon"]],null,null,null,null,null)),(e()(),Ao(170,0,null,null,4,"span",[["class","home-text"]],null,null,null,null,null)),(e()(),Ao(171,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Home"])),(e()(),Ao(173,0,null,null,1,"span",[["class","action-button shadow animate blue home-button disable-button"],["id","home5"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.home1Clicked()&&r),r},null,null)),(e()(),Bo(-1,null,[" Read"])),(e()(),Ao(175,0,null,null,7,"div",[["class","homeSix"],["id","home-6"]],null,null,null,null,null)),(e()(),Ao(176,0,null,null,6,"div",[],null,null,null,null,null)),(e()(),Ao(177,0,null,null,0,"i",[["class","w3-jumbo fa fa-home home-icon"]],null,null,null,null,null)),(e()(),Ao(178,0,null,null,4,"span",[["class","home-text"]],null,null,null,null,null)),(e()(),Ao(179,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Home"])),(e()(),Ao(181,0,null,null,1,"span",[["class","action-button shadow animate blue home-button disable-button"],["id","home6"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.home1Clicked()&&r),r},null,null)),(e()(),Bo(-1,null,[" Read"])),(e()(),Ao(183,0,null,null,7,"div",[["class","homeSeven"],["id","home-7"]],null,null,null,null,null)),(e()(),Ao(184,0,null,null,6,"div",[],null,null,null,null,null)),(e()(),Ao(185,0,null,null,0,"i",[["class","w3-jumbo fa fa-home home-icon"]],null,null,null,null,null)),(e()(),Ao(186,0,null,null,4,"span",[["class","home-text"]],null,null,null,null,null)),(e()(),Ao(187,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Home"])),(e()(),Ao(189,0,null,null,1,"span",[["class","action-button shadow animate blue home-button disable-button"],["id","home7"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.home1Clicked()&&r),r},null,null)),(e()(),Bo(-1,null,[" Read"])),(e()(),Ao(191,0,null,null,7,"div",[["class","homeEight"],["id","home-8"]],null,null,null,null,null)),(e()(),Ao(192,0,null,null,6,"div",[],null,null,null,null,null)),(e()(),Ao(193,0,null,null,0,"i",[["class","w3-jumbo fa fa-home home-icon"]],null,null,null,null,null)),(e()(),Ao(194,0,null,null,4,"span",[["class","home-text"]],null,null,null,null,null)),(e()(),Ao(195,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Home"])),(e()(),Ao(197,0,null,null,1,"span",[["class","action-button shadow animate blue home-button disable-button"],["id","home8"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.home1Clicked()&&r),r},null,null)),(e()(),Bo(-1,null,[" Read"]))],null,function(e,t){var n=t.component;e(t,5,0,n.message),e(t,8,0,Hr(t,12).ngClassUntouched,Hr(t,12).ngClassTouched,Hr(t,12).ngClassPristine,Hr(t,12).ngClassDirty,Hr(t,12).ngClassValid,Hr(t,12).ngClassInvalid,Hr(t,12).ngClassPending),e(t,23,0,n.user.location),e(t,35,0,n.user.timestamp),e(t,46,0,n.user1.location),e(t,58,0,n.user1.timestamp),e(t,75,0,n.transformer1),e(t,90,0,n.transformer2),e(t,105,0,n.transformer3),e(t,120,0,n.transformer4),e(t,133,0,n.home1),e(t,144,0,n.home2),e(t,155,0,n.home3),e(t,166,0,n.home4)})}function Uf(e){return $o(0,[(e()(),Ao(0,0,null,null,2,"app-registration",[],null,null,null,Df,Lf)),ns(512,null,ql,ql,[Eo]),ts(2,114688,null,0,Vf,[Of,ql],null,null)],function(e,t){e(t,2,0)},null)}var Ff=Ar("app-registration",Vf,Uf,{},{},[]);class jf{constructor(e){this.service=e}delteUser(e){this.service.deleteUser(e).subscribe(e=>this.users=e)}findUserByEmailId(){this.service.getUserByEmail(this.email).subscribe(e=>this.users=e)}ngOnInit(){this.service.getUsers().subscribe(e=>this.users=e)}}var Bf=Gn({encapsulation:0,styles:[[".custab[_ngcontent-%COMP%]{border:1px solid #ccc;padding:5px;margin:10% 0;box-shadow:3px 3px 2px #ccc;transition:.5s}.custab[_ngcontent-%COMP%]:hover{box-shadow:3px 3px 0 transparent;transition:.5s}#custom-search-input[_ngcontent-%COMP%]{margin:24px 0 0;padding:2px}.col-md-12[_ngcontent-%COMP%]{width:62%}#custom-search-input[_ngcontent-%COMP%]   .search-query[_ngcontent-%COMP%]{padding-right:3px;padding-right:4px\\9;padding-left:3px;padding-left:4px\\9;margin-bottom:0;border-radius:43px}#custom-search-input[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:0;background:0 0;padding:2px 5px;margin-top:2px;position:relative;left:-28px;margin-bottom:0;border-radius:3px;color:green}.search-query[_ngcontent-%COMP%]:focus + button[_ngcontent-%COMP%]{z-index:3}.input-group[_ngcontent-%COMP%]{position:relative;display:table;border-collapse:separate;padding-right:0;padding-left:183px}"]],data:{}});function Hf(e){return $o(0,[(e()(),Ao(0,0,null,null,14,"tr",[],null,null,null,null,null)),(e()(),Ao(1,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),Bo(2,null,["",""])),(e()(),Ao(3,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),Bo(4,null,["",""])),(e()(),Ao(5,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),Bo(6,null,["",""])),(e()(),Ao(7,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),Bo(8,null,["",""])),(e()(),Ao(9,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),Bo(10,null,["",""])),(e()(),Ao(11,0,null,null,3,"td",[["class","text-center"]],null,null,null,null,null)),(e()(),Ao(12,0,null,null,2,"button",[["class","btn btn-danger btn-xs"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.delteUser(e.context.$implicit.id)&&r),r},null,null)),(e()(),Ao(13,0,null,null,0,"span",[["class","glyphicon glyphicon-remove"]],null,null,null,null,null)),(e()(),Bo(-1,null,[" Delete"]))],null,function(e,t){e(t,2,0,t.context.$implicit.id),e(t,4,0,t.context.$implicit.name),e(t,6,0,t.context.$implicit.email),e(t,8,0,t.context.$implicit.experience),e(t,10,0,t.context.$implicit.domain)})}function zf(e){return $o(0,[(e()(),Ao(0,0,null,null,0,"link",[["href","//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"],["id","bootstrap-css"],["rel","stylesheet"]],null,null,null,null,null)),(e()(),Ao(1,0,null,null,12,"div",[["class","container"]],null,null,null,null,null)),(e()(),Ao(2,0,null,null,11,"div",[["class","row"]],null,null,null,null,null)),(e()(),Ao(3,0,null,null,10,"div",[["id","custom-search-input"]],null,null,null,null,null)),(e()(),Ao(4,0,null,null,9,"div",[["class","input-group col-md-12"],["style","text-align: center"]],null,null,null,null,null)),(e()(),Ao(5,0,null,null,5,"input",[["class","search-query form-control"],["name","email"],["placeholder","Search With Email Address"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var r=!0,s=e.component;return"input"===t&&(r=!1!==Hr(e,6)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==Hr(e,6).onTouched()&&r),"compositionstart"===t&&(r=!1!==Hr(e,6)._compositionStart()&&r),"compositionend"===t&&(r=!1!==Hr(e,6)._compositionEnd(n.target.value)&&r),"ngModelChange"===t&&(r=!1!==(s.email=n)&&r),r},null,null)),ts(6,16384,null,0,Jd,[sn,Jt,[2,Xd]],null,null),ns(1024,null,Yd,function(e){return[e]},[Jd]),ts(8,671744,null,0,$p,[[8,null],[8,null],[8,null],[6,Yd]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),ns(2048,null,rp,null,[$p]),ts(10,16384,null,0,op,[[4,rp]],null,null),(e()(),Ao(11,0,null,null,2,"span",[["class","input-group-btn"]],null,null,null,null,null)),(e()(),Ao(12,0,null,null,1,"button",[["class","btn btn-danger"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.findUserByEmailId()&&r),r},null,null)),(e()(),Ao(13,0,null,null,0,"span",[["class"," glyphicon glyphicon-search"]],null,null,null,null,null)),(e()(),Ao(14,0,null,null,20,"div",[["class","container"]],null,null,null,null,null)),(e()(),Ao(15,0,null,null,19,"div",[["class","container"]],null,null,null,null,null)),(e()(),Ao(16,0,null,null,18,"div",[["class","row col-md-6 col-md-offset-2 custyle"]],null,null,null,null,null)),(e()(),Ao(17,0,null,null,17,"table",[["class","table table-striped custab"]],null,null,null,null,null)),(e()(),Ao(18,0,null,null,13,"thead",[],null,null,null,null,null)),(e()(),Ao(19,0,null,null,12,"tr",[],null,null,null,null,null)),(e()(),Ao(20,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Id"])),(e()(),Ao(22,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Name"])),(e()(),Ao(24,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Email"])),(e()(),Ao(26,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Experience"])),(e()(),Ao(28,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Domain"])),(e()(),Ao(30,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Bo(-1,null,["Action"])),(e()(),Ao(32,0,null,null,2,"tbody",[],null,null,null,null,null)),(e()(),Io(16777216,null,null,1,null,Hf)),ts(34,278528,null,0,Wl,[Mn,kn,vn],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component;e(t,8,0,"email",n.email),e(t,34,0,n.users)},function(e,t){e(t,5,0,Hr(t,10).ngClassUntouched,Hr(t,10).ngClassTouched,Hr(t,10).ngClassPristine,Hr(t,10).ngClassDirty,Hr(t,10).ngClassValid,Hr(t,10).ngClassInvalid,Hr(t,10).ngClassPending)})}function $f(e){return $o(0,[(e()(),Ao(0,0,null,null,1,"app-serach-delete",[],null,null,null,zf,Bf)),ts(1,114688,null,0,jf,[Of],null,null)],function(e,t){e(t,1,0)},null)}var Wf=Ar("app-serach-delete",jf,$f,{},{},[]),Gf=Gn({encapsulation:2,styles:[],data:{}});function qf(e){return $o(0,[(e()(),Ao(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ts(1,212992,null,0,xd,[Sd,Mn,qt,[8,null],wn],null,null)],function(e,t){e(t,1,0)},null)}function Zf(e){return $o(0,[(e()(),Ao(0,0,null,null,1,"app-root",[],null,null,null,qf,Gf)),ts(1,49152,null,0,Xi,[],null,null)],null,null)}var Qf=Ar("app-root",Xi,Zf,{},{},[]);class Yf{}var Kf=Qi(Ki,[Xi],function(e){return function(e){const t={},n=[];let r=!1;for(let s=0;s<e.length;s++){const o=e[s];o.token===Bt&&!0===o.value&&(r=!0),1073741824&o.flags&&n.push(o.token),o.index=s,t[zn(o.token)]=o}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}([Sr(512,qt,Zt,[[8,[Zd,Ff,Wf,Qf]],[3,qt],Yt]),Sr(5120,Eo,Oo,[[3,Eo]]),Sr(4608,Bl,Hl,[Eo,[2,jl]]),Sr(5120,ys,Mo,[Ws]),Sr(5120,xs,Es,[]),Sr(5120,vn,Co,[]),Sr(5120,bn,ko,[]),Sr(4608,$u,Wu,[Ql]),Sr(6144,kt,null,[$u]),Sr(4608,Du,Fu,[]),Sr(5120,cu,function(e,t,n,r,s,o,i,l){return[new Vu(e,t,n),new zu(r),new ju(s,o,i,l)]},[Ql,Ws,Os,Ql,Ql,Du,Ts,[2,Uu]]),Sr(4608,hu,hu,[cu,Ws]),Sr(135680,fu,fu,[Ql]),Sr(4608,wu,wu,[hu,fu,xs]),Sr(6144,nn,null,[wu]),Sr(6144,pu,null,[fu]),Sr(4608,Xs,Xs,[Ws]),Sr(5120,uh,jd,[bd]),Sr(4608,Od,Od,[]),Sr(6144,Cd,null,[Od]),Sr(135680,Md,Md,[bd,bs,Vs,Ae,Cd]),Sr(4608,kd,kd,[]),Sr(5120,Td,Vd,[bd,Yl,Id]),Sr(5120,$d,zd,[Bd]),Sr(5120,Ms,function(e){return[e]},[$d]),Sr(4608,mp,mp,[]),Sr(4608,wf,Sf,[Ql,Os,vf]),Sr(4608,xf,xf,[wf,bf]),Sr(5120,pf,function(e){return[e]},[xf]),Sr(4608,yf,yf,[]),Sr(6144,mf,null,[yf]),Sr(4608,_f,_f,[mf]),Sr(6144,Qp,null,[_f]),Sr(4608,Zp,Ef,[Qp,Ae]),Sr(4608,hf,hf,[Zp]),Sr(4608,Of,Of,[hf]),Sr(1073742336,Zl,Zl,[]),Sr(1024,et,Ju,[]),Sr(1024,oo,function(){return[Nd()]},[]),Sr(512,Bd,Bd,[Ae]),Sr(1024,ws,function(e,t){return[(n=e,lu("probe",uu),lu("coreTokens",Object.assign({},au,(n||[]).reduce((e,t)=>(e[t.name]=t.token,e),{}))),()=>uu),Hd(t)];var n},[[2,oo],Bd]),Sr(512,Ss,Ss,[[2,ws]]),Sr(131584,co,co,[Ws,Ts,Ae,et,qt,Ss]),Sr(1073742336,To,To,[co]),Sr(1073742336,ec,ec,[[3,ec]]),Sr(1024,Ad,Dd,[[3,bd]]),Sr(512,Bc,Hc,[]),Sr(512,Sd,Sd,[]),Sr(256,Id,{},[]),Sr(1024,tl,Ld,[Ji,[2,nl],Id]),Sr(512,rl,rl,[tl,Ji]),Sr(512,Vs,Vs,[]),Sr(512,bs,go,[Vs,[2,po]]),Sr(1024,pd,function(){return[[{path:"",redirectTo:"register",pathMatch:"full"},{path:"register",component:Vf},{path:"search",component:jf}]]},[]),Sr(1024,bd,Fd,[co,Bc,Sd,rl,Ae,bs,Vs,pd,Id,[2,gd],[2,hd]]),Sr(1073742336,Rd,Rd,[[2,Ad],[2,bd]]),Sr(1073742336,Yf,Yf,[]),Sr(1073742336,Gp,Gp,[]),Sr(1073742336,qp,qp,[]),Sr(1073742336,Cf,Cf,[]),Sr(1073742336,kf,kf,[]),Sr(1073742336,Ki,Ki,[]),Sr(256,Bt,!0,[]),Sr(256,vf,"XSRF-TOKEN",[]),Sr(256,bf,"X-XSRF-TOKEN",[])])});(function(){if(nt)throw new Error("Cannot enable prod mode after platform setup.");tt=!1})(),Xu().bootstrapModuleFactory(Kf).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]);