diff --git a/Dockerfile b/Dockerfile index 118feb61..455d4dfd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,7 @@ RUN apt-get install -y vpcs ubridge ADD . /server WORKDIR /server -RUN pip3 install -r /server/requirements.txt +RUN pip3 install --no-cache-dir -r /server/requirements.txt EXPOSE 3080 diff --git a/gns3server/static/web-ui/26.30249f0e3aeb3f791226.js b/gns3server/static/web-ui/26.eace20bb0639f4909f27.js similarity index 100% rename from gns3server/static/web-ui/26.30249f0e3aeb3f791226.js rename to gns3server/static/web-ui/26.eace20bb0639f4909f27.js diff --git a/gns3server/static/web-ui/index.html b/gns3server/static/web-ui/index.html index 18243847..aa7e4920 100644 --- a/gns3server/static/web-ui/index.html +++ b/gns3server/static/web-ui/index.html @@ -31,7 +31,7 @@ } })(); - + @@ -46,6 +46,6 @@ gtag('config', 'G-5D6FZL9923'); - + \ No newline at end of file diff --git a/gns3server/static/web-ui/main.6d44bf65eea93810ba85.js b/gns3server/static/web-ui/main.6d44bf65eea93810ba85.js new file mode 100644 index 00000000..a717cbc6 --- /dev/null +++ b/gns3server/static/web-ui/main.6d44bf65eea93810ba85.js @@ -0,0 +1 @@ +(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{98255:function(ue){function q(f){return Promise.resolve().then(function(){var U=new Error("Cannot find module '"+f+"'");throw U.code="MODULE_NOT_FOUND",U})}q.keys=function(){return[]},q.resolve=q,q.id=98255,ue.exports=q},82908:function(ue){ue.exports=function(f,U){(null==U||U>f.length)&&(U=f.length);for(var B=0,V=new Array(U);B0&&oe[oe.length-1])&&(6===qe[0]||2===qe[0])){se=0;continue}if(3===qe[0]&&(!oe||qe[1]>oe[0]&&qe[1]1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:z,timings:K}}function P(K){var z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:K,options:z}}function D(K){return{type:6,styles:K,offset:null}}function M(K,z,J){return{type:0,name:K,styles:z,options:J}}function A(K){return{type:5,steps:K}}function _(K,z){var J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:K,animation:z,options:J}}function k(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:K}}function E(K,z){var J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:K,animation:z,options:J}}function S(K){Promise.resolve(null).then(K)}var O=function(){function K(){var z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,B.Z)(this,K),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=z+J}return(0,U.Z)(K,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(J){return J()}),this._onDoneFns=[])}},{key:"onStart",value:function(J){this._onStartFns.push(J)}},{key:"onDone",value:function(J){this._onDoneFns.push(J)}},{key:"onDestroy",value:function(J){this._onDestroyFns.push(J)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var J=this;S(function(){return J._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(J){return J()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(J){return J()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(J){this._position=this.totalTime?J*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(J){var ie="start"==J?this._onStartFns:this._onDoneFns;ie.forEach(function(te){return te()}),ie.length=0}}]),K}(),L=function(){function K(z){var J=this;(0,B.Z)(this,K),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=z;var ie=0,te=0,ae=0,se=this.players.length;0==se?S(function(){return J._onFinish()}):this.players.forEach(function(ce){ce.onDone(function(){++ie==se&&J._onFinish()}),ce.onDestroy(function(){++te==se&&J._onDestroy()}),ce.onStart(function(){++ae==se&&J._onStart()})}),this.totalTime=this.players.reduce(function(ce,le){return Math.max(ce,le.totalTime)},0)}return(0,U.Z)(K,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(J){return J()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(J){return J.init()})}},{key:"onStart",value:function(J){this._onStartFns.push(J)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(J){return J()}),this._onStartFns=[])}},{key:"onDone",value:function(J){this._onDoneFns.push(J)}},{key:"onDestroy",value:function(J){this._onDestroyFns.push(J)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(J){return J.play()})}},{key:"pause",value:function(){this.players.forEach(function(J){return J.pause()})}},{key:"restart",value:function(){this.players.forEach(function(J){return J.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(J){return J.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(J){return J.destroy()}),this._onDestroyFns.forEach(function(J){return J()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(J){return J.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(J){var ie=J*this.totalTime;this.players.forEach(function(te){var ae=te.totalTime?Math.min(1,ie/te.totalTime):1;te.setPosition(ae)})}},{key:"getPosition",value:function(){var J=this.players.reduce(function(ie,te){return null===ie||te.totalTime>ie.totalTime?te:ie},null);return null!=J?J.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(J){J.beforeDestroy&&J.beforeDestroy()})}},{key:"triggerCallback",value:function(J){var ie="start"==J?this._onStartFns:this._onDoneFns;ie.forEach(function(te){return te()}),ie.length=0}}]),K}(),j="!"},6517:function(ue,q,f){"use strict";f.d(q,{rt:function(){return rt},s1:function(){return xe},$s:function(){return qe},kH:function(){return cr},Em:function(){return Oe},tE:function(){return tr},qV:function(){return Nn},qm:function(){return Pe},Kd:function(){return Pn},X6:function(){return we},yG:function(){return ct}});var U=f(27235),B=f(20901),V=f(89200),Z=f(10509),T=f(97154),R=f(18967),C=f(14105),v=f(40098),P=f(65508),D=f(68707),M=f(5051),A=f(90838),_=f(43161),g=f(32819),k=f(59371),N=f(57263),E=f(58780),x=f(85639),S=f(48359),O=f(18756),L=f(76161),j=f(44213),K=f(78081),z=f(15427),J=f(96798);function se(he,Ie){return(he.getAttribute(Ie)||"").match(/\S+/g)||[]}var ce="cdk-describedby-message-container",le="cdk-describedby-message",oe="cdk-describedby-host",Ae=0,be=new Map,it=null,qe=function(){var he=function(){function Ie(Ne){(0,R.Z)(this,Ie),this._document=Ne}return(0,C.Z)(Ie,[{key:"describe",value:function(Le,ze,At){if(this._canBeDescribed(Le,ze)){var an=_t(ze,At);"string"!=typeof ze?(yt(ze),be.set(an,{messageElement:ze,referenceCount:0})):be.has(an)||this._createMessageElement(ze,At),this._isElementDescribedByMessage(Le,an)||this._addMessageReference(Le,an)}}},{key:"removeDescription",value:function(Le,ze,At){if(ze&&this._isElementNode(Le)){var an=_t(ze,At);if(this._isElementDescribedByMessage(Le,an)&&this._removeMessageReference(Le,an),"string"==typeof ze){var qn=be.get(an);qn&&0===qn.referenceCount&&this._deleteMessageElement(an)}it&&0===it.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var Le=this._document.querySelectorAll("[".concat(oe,"]")),ze=0;ze-1&&At!==Ne._activeItemIndex&&(Ne._activeItemIndex=At)}})}return(0,C.Z)(he,[{key:"skipPredicate",value:function(Ne){return this._skipPredicateFn=Ne,this}},{key:"withWrap",value:function(){var Ne=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=Ne,this}},{key:"withVerticalOrientation",value:function(){var Ne=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=Ne,this}},{key:"withHorizontalOrientation",value:function(Ne){return this._horizontal=Ne,this}},{key:"withAllowedModifierKeys",value:function(Ne){return this._allowedModifierKeys=Ne,this}},{key:"withTypeAhead",value:function(){var Ne=this,Le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,k.b)(function(ze){return Ne._pressedLetters.push(ze)}),(0,N.b)(Le),(0,E.h)(function(){return Ne._pressedLetters.length>0}),(0,x.U)(function(){return Ne._pressedLetters.join("")})).subscribe(function(ze){for(var At=Ne._getItemsArray(),an=1;an0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=Ne,this}},{key:"setActiveItem",value:function(Ne){var Le=this._activeItem;this.updateActiveItem(Ne),this._activeItem!==Le&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(Ne){var Le=this,ze=Ne.keyCode,an=["altKey","ctrlKey","metaKey","shiftKey"].every(function(qn){return!Ne[qn]||Le._allowedModifierKeys.indexOf(qn)>-1});switch(ze){case g.Mf:return void this.tabOut.next();case g.JH:if(this._vertical&&an){this.setNextItemActive();break}return;case g.LH:if(this._vertical&&an){this.setPreviousItemActive();break}return;case g.SV:if(this._horizontal&&an){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case g.oh:if(this._horizontal&&an){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case g.Sd:if(this._homeAndEnd&&an){this.setFirstItemActive();break}return;case g.uR:if(this._homeAndEnd&&an){this.setLastItemActive();break}return;default:return void((an||(0,g.Vb)(Ne,"shiftKey"))&&(Ne.key&&1===Ne.key.length?this._letterKeyStream.next(Ne.key.toLocaleUpperCase()):(ze>=g.A&&ze<=g.Z||ze>=g.xE&&ze<=g.aO)&&this._letterKeyStream.next(String.fromCharCode(ze))))}this._pressedLetters=[],Ne.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(Ne){var Le=this._getItemsArray(),ze="number"==typeof Ne?Ne:Le.indexOf(Ne),At=Le[ze];this._activeItem=null==At?null:At,this._activeItemIndex=ze}},{key:"_setActiveItemByDelta",value:function(Ne){this._wrap?this._setActiveInWrapMode(Ne):this._setActiveInDefaultMode(Ne)}},{key:"_setActiveInWrapMode",value:function(Ne){for(var Le=this._getItemsArray(),ze=1;ze<=Le.length;ze++){var At=(this._activeItemIndex+Ne*ze+Le.length)%Le.length;if(!this._skipPredicateFn(Le[At]))return void this.setActiveItem(At)}}},{key:"_setActiveInDefaultMode",value:function(Ne){this._setActiveItemByIndex(this._activeItemIndex+Ne,Ne)}},{key:"_setActiveItemByIndex",value:function(Ne,Le){var ze=this._getItemsArray();if(ze[Ne]){for(;this._skipPredicateFn(ze[Ne]);)if(!ze[Ne+=Le])return;this.setActiveItem(Ne)}}},{key:"_getItemsArray",value:function(){return this._items instanceof P.n_E?this._items.toArray():this._items}}]),he}(),xe=function(he){(0,Z.Z)(Ne,he);var Ie=(0,T.Z)(Ne);function Ne(){return(0,R.Z)(this,Ne),Ie.apply(this,arguments)}return(0,C.Z)(Ne,[{key:"setActiveItem",value:function(ze){this.activeItem&&this.activeItem.setInactiveStyles(),(0,B.Z)((0,V.Z)(Ne.prototype),"setActiveItem",this).call(this,ze),this.activeItem&&this.activeItem.setActiveStyles()}}]),Ne}(Ft),Oe=function(he){(0,Z.Z)(Ne,he);var Ie=(0,T.Z)(Ne);function Ne(){var Le;return(0,R.Z)(this,Ne),(Le=Ie.apply(this,arguments))._origin="program",Le}return(0,C.Z)(Ne,[{key:"setFocusOrigin",value:function(ze){return this._origin=ze,this}},{key:"setActiveItem",value:function(ze){(0,B.Z)((0,V.Z)(Ne.prototype),"setActiveItem",this).call(this,ze),this.activeItem&&this.activeItem.focus(this._origin)}}]),Ne}(Ft),dt=function(){var he=function(){function Ie(Ne){(0,R.Z)(this,Ie),this._platform=Ne}return(0,C.Z)(Ie,[{key:"isDisabled",value:function(Le){return Le.hasAttribute("disabled")}},{key:"isVisible",value:function(Le){return function(he){return!!(he.offsetWidth||he.offsetHeight||"function"==typeof he.getClientRects&&he.getClientRects().length)}(Le)&&"visible"===getComputedStyle(Le).visibility}},{key:"isTabbable",value:function(Le){if(!this._platform.isBrowser)return!1;var ze=function(he){try{return he.frameElement}catch(Ie){return null}}(function(he){return he.ownerDocument&&he.ownerDocument.defaultView||window}(Le));if(ze&&(-1===bt(ze)||!this.isVisible(ze)))return!1;var At=Le.nodeName.toLowerCase(),an=bt(Le);return Le.hasAttribute("contenteditable")?-1!==an:!("iframe"===At||"object"===At||this._platform.WEBKIT&&this._platform.IOS&&!function(he){var Ie=he.nodeName.toLowerCase(),Ne="input"===Ie&&he.type;return"text"===Ne||"password"===Ne||"select"===Ie||"textarea"===Ie}(Le))&&("audio"===At?!!Le.hasAttribute("controls")&&-1!==an:"video"===At?-1!==an&&(null!==an||this._platform.FIREFOX||Le.hasAttribute("controls")):Le.tabIndex>=0)}},{key:"isFocusable",value:function(Le,ze){return function(he){return!function(he){return function(he){return"input"==he.nodeName.toLowerCase()}(he)&&"hidden"==he.type}(he)&&(function(he){var Ie=he.nodeName.toLowerCase();return"input"===Ie||"select"===Ie||"button"===Ie||"textarea"===Ie}(he)||function(he){return function(he){return"a"==he.nodeName.toLowerCase()}(he)&&he.hasAttribute("href")}(he)||he.hasAttribute("contenteditable")||Vt(he))}(Le)&&!this.isDisabled(Le)&&((null==ze?void 0:ze.ignoreVisibility)||this.isVisible(Le))}}]),Ie}();return he.\u0275fac=function(Ne){return new(Ne||he)(P.LFG(z.t4))},he.\u0275prov=P.Yz7({factory:function(){return new he(P.LFG(z.t4))},token:he,providedIn:"root"}),he}();function Vt(he){if(!he.hasAttribute("tabindex")||void 0===he.tabIndex)return!1;var Ie=he.getAttribute("tabindex");return"-32768"!=Ie&&!(!Ie||isNaN(parseInt(Ie,10)))}function bt(he){if(!Vt(he))return null;var Ie=parseInt(he.getAttribute("tabindex")||"",10);return isNaN(Ie)?-1:Ie}var kn=function(){function he(Ie,Ne,Le,ze){var At=this,an=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,R.Z)(this,he),this._element=Ie,this._checker=Ne,this._ngZone=Le,this._document=ze,this._hasAttached=!1,this.startAnchorListener=function(){return At.focusLastTabbableElement()},this.endAnchorListener=function(){return At.focusFirstTabbableElement()},this._enabled=!0,an||this.attachAnchors()}return(0,C.Z)(he,[{key:"enabled",get:function(){return this._enabled},set:function(Ne){this._enabled=Ne,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ne,this._startAnchor),this._toggleAnchorTabIndex(Ne,this._endAnchor))}},{key:"destroy",value:function(){var Ne=this._startAnchor,Le=this._endAnchor;Ne&&(Ne.removeEventListener("focus",this.startAnchorListener),Ne.parentNode&&Ne.parentNode.removeChild(Ne)),Le&&(Le.removeEventListener("focus",this.endAnchorListener),Le.parentNode&&Le.parentNode.removeChild(Le)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var Ne=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){Ne._startAnchor||(Ne._startAnchor=Ne._createAnchor(),Ne._startAnchor.addEventListener("focus",Ne.startAnchorListener)),Ne._endAnchor||(Ne._endAnchor=Ne._createAnchor(),Ne._endAnchor.addEventListener("focus",Ne.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(Ne){var Le=this;return new Promise(function(ze){Le._executeOnStable(function(){return ze(Le.focusInitialElement(Ne))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(Ne){var Le=this;return new Promise(function(ze){Le._executeOnStable(function(){return ze(Le.focusFirstTabbableElement(Ne))})})}},{key:"focusLastTabbableElementWhenReady",value:function(Ne){var Le=this;return new Promise(function(ze){Le._executeOnStable(function(){return ze(Le.focusLastTabbableElement(Ne))})})}},{key:"_getRegionBoundary",value:function(Ne){for(var Le=this._element.querySelectorAll("[cdk-focus-region-".concat(Ne,"], ")+"[cdkFocusRegion".concat(Ne,"], ")+"[cdk-focus-".concat(Ne,"]")),ze=0;ze=0;ze--){var At=Le[ze].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Le[ze]):null;if(At)return At}return null}},{key:"_createAnchor",value:function(){var Ne=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ne),Ne.classList.add("cdk-visually-hidden"),Ne.classList.add("cdk-focus-trap-anchor"),Ne.setAttribute("aria-hidden","true"),Ne}},{key:"_toggleAnchorTabIndex",value:function(Ne,Le){Ne?Le.setAttribute("tabindex","0"):Le.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(Ne){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ne,this._startAnchor),this._toggleAnchorTabIndex(Ne,this._endAnchor))}},{key:"_executeOnStable",value:function(Ne){this._ngZone.isStable?Ne():this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(Ne)}}]),he}(),Nn=function(){var he=function(){function Ie(Ne,Le,ze){(0,R.Z)(this,Ie),this._checker=Ne,this._ngZone=Le,this._document=ze}return(0,C.Z)(Ie,[{key:"create",value:function(Le){var ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new kn(Le,this._checker,this._ngZone,this._document,ze)}}]),Ie}();return he.\u0275fac=function(Ne){return new(Ne||he)(P.LFG(dt),P.LFG(P.R0b),P.LFG(v.K0))},he.\u0275prov=P.Yz7({factory:function(){return new he(P.LFG(dt),P.LFG(P.R0b),P.LFG(v.K0))},token:he,providedIn:"root"}),he}();function we(he){return 0===he.offsetX&&0===he.offsetY}function ct(he){var Ie=he.touches&&he.touches[0]||he.changedTouches&&he.changedTouches[0];return!(!Ie||-1!==Ie.identifier||null!=Ie.radiusX&&1!==Ie.radiusX||null!=Ie.radiusY&&1!==Ie.radiusY)}"undefined"!=typeof Element&∈var ht=new P.OlP("cdk-input-modality-detector-options"),Jt={ignoreKeys:[g.zL,g.jx,g.b2,g.MW,g.JU]},Yt=(0,z.i$)({passive:!0,capture:!0}),nn=function(){var he=function(){function Ie(Ne,Le,ze,At){var an=this;(0,R.Z)(this,Ie),this._platform=Ne,this._mostRecentTarget=null,this._modality=new A.X(null),this._lastTouchMs=0,this._onKeydown=function(qn){var Nr,qr;(null===(qr=null===(Nr=an._options)||void 0===Nr?void 0:Nr.ignoreKeys)||void 0===qr?void 0:qr.some(function(br){return br===qn.keyCode}))||(an._modality.next("keyboard"),an._mostRecentTarget=(0,z.sA)(qn))},this._onMousedown=function(qn){Date.now()-an._lastTouchMs<650||(an._modality.next(we(qn)?"keyboard":"mouse"),an._mostRecentTarget=(0,z.sA)(qn))},this._onTouchstart=function(qn){ct(qn)?an._modality.next("keyboard"):(an._lastTouchMs=Date.now(),an._modality.next("touch"),an._mostRecentTarget=(0,z.sA)(qn))},this._options=Object.assign(Object.assign({},Jt),At),this.modalityDetected=this._modality.pipe((0,O.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,L.x)()),Ne.isBrowser&&Le.runOutsideAngular(function(){ze.addEventListener("keydown",an._onKeydown,Yt),ze.addEventListener("mousedown",an._onMousedown,Yt),ze.addEventListener("touchstart",an._onTouchstart,Yt)})}return(0,C.Z)(Ie,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Yt),document.removeEventListener("mousedown",this._onMousedown,Yt),document.removeEventListener("touchstart",this._onTouchstart,Yt))}}]),Ie}();return he.\u0275fac=function(Ne){return new(Ne||he)(P.LFG(z.t4),P.LFG(P.R0b),P.LFG(v.K0),P.LFG(ht,8))},he.\u0275prov=P.Yz7({factory:function(){return new he(P.LFG(z.t4),P.LFG(P.R0b),P.LFG(v.K0),P.LFG(ht,8))},token:he,providedIn:"root"}),he}(),cn=new P.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Tn=new P.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Pn=function(){var he=function(){function Ie(Ne,Le,ze,At){(0,R.Z)(this,Ie),this._ngZone=Le,this._defaultOptions=At,this._document=ze,this._liveElement=Ne||this._createLiveElement()}return(0,C.Z)(Ie,[{key:"announce",value:function(Le){for(var an,qn,ze=this,At=this._defaultOptions,Nr=arguments.length,qr=new Array(Nr>1?Nr-1:0),br=1;br1&&void 0!==arguments[1]&&arguments[1],At=(0,K.fI)(Le);if(!this._platform.isBrowser||1!==At.nodeType)return(0,_.of)(null);var an=(0,z.kV)(At)||this._getDocument(),qn=this._elementInfo.get(At);if(qn)return ze&&(qn.checkChildren=!0),qn.subject;var Nr={checkChildren:ze,subject:new D.xQ,rootNode:an};return this._elementInfo.set(At,Nr),this._registerGlobalListeners(Nr),Nr.subject}},{key:"stopMonitoring",value:function(Le){var ze=(0,K.fI)(Le),At=this._elementInfo.get(ze);At&&(At.subject.complete(),this._setClasses(ze),this._elementInfo.delete(ze),this._removeGlobalListeners(At))}},{key:"focusVia",value:function(Le,ze,At){var an=this,qn=(0,K.fI)(Le);qn===this._getDocument().activeElement?this._getClosestElementsInfo(qn).forEach(function(qr){var br=(0,U.Z)(qr,2);return an._originChanged(br[0],ze,br[1])}):(this._setOrigin(ze),"function"==typeof qn.focus&&qn.focus(At))}},{key:"ngOnDestroy",value:function(){var Le=this;this._elementInfo.forEach(function(ze,At){return Le.stopMonitoring(At)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(Le,ze,At){At?Le.classList.add(ze):Le.classList.remove(ze)}},{key:"_getFocusOrigin",value:function(Le){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Le)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(Le){return 1===this._detectionMode||!!(null==Le?void 0:Le.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(Le,ze){this._toggleClass(Le,"cdk-focused",!!ze),this._toggleClass(Le,"cdk-touch-focused","touch"===ze),this._toggleClass(Le,"cdk-keyboard-focused","keyboard"===ze),this._toggleClass(Le,"cdk-mouse-focused","mouse"===ze),this._toggleClass(Le,"cdk-program-focused","program"===ze)}},{key:"_setOrigin",value:function(Le){var ze=this,At=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){ze._origin=Le,ze._originFromTouchInteraction="touch"===Le&&At,0===ze._detectionMode&&(clearTimeout(ze._originTimeoutId),ze._originTimeoutId=setTimeout(function(){return ze._origin=null},ze._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(Le,ze){var At=this._elementInfo.get(ze),an=(0,z.sA)(Le);!At||!At.checkChildren&&ze!==an||this._originChanged(ze,this._getFocusOrigin(an),At)}},{key:"_onBlur",value:function(Le,ze){var At=this._elementInfo.get(ze);!At||At.checkChildren&&Le.relatedTarget instanceof Node&&ze.contains(Le.relatedTarget)||(this._setClasses(ze),this._emitOrigin(At.subject,null))}},{key:"_emitOrigin",value:function(Le,ze){this._ngZone.run(function(){return Le.next(ze)})}},{key:"_registerGlobalListeners",value:function(Le){var ze=this;if(this._platform.isBrowser){var At=Le.rootNode,an=this._rootNodeFocusListenerCount.get(At)||0;an||this._ngZone.runOutsideAngular(function(){At.addEventListener("focus",ze._rootNodeFocusAndBlurListener,Sn),At.addEventListener("blur",ze._rootNodeFocusAndBlurListener,Sn)}),this._rootNodeFocusListenerCount.set(At,an+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){ze._getWindow().addEventListener("focus",ze._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,j.R)(this._stopInputModalityDetector)).subscribe(function(qn){ze._setOrigin(qn,!0)}))}}},{key:"_removeGlobalListeners",value:function(Le){var ze=Le.rootNode;if(this._rootNodeFocusListenerCount.has(ze)){var At=this._rootNodeFocusListenerCount.get(ze);At>1?this._rootNodeFocusListenerCount.set(ze,At-1):(ze.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Sn),ze.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Sn),this._rootNodeFocusListenerCount.delete(ze))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(Le,ze,At){this._setClasses(Le,ze),this._emitOrigin(At.subject,ze),this._lastFocusOrigin=ze}},{key:"_getClosestElementsInfo",value:function(Le){var ze=[];return this._elementInfo.forEach(function(At,an){(an===Le||At.checkChildren&&an.contains(Le))&&ze.push([an,At])}),ze}}]),Ie}();return he.\u0275fac=function(Ne){return new(Ne||he)(P.LFG(P.R0b),P.LFG(z.t4),P.LFG(nn),P.LFG(v.K0,8),P.LFG(Cn,8))},he.\u0275prov=P.Yz7({factory:function(){return new he(P.LFG(P.R0b),P.LFG(z.t4),P.LFG(nn),P.LFG(v.K0,8),P.LFG(Cn,8))},token:he,providedIn:"root"}),he}(),cr=function(){var he=function(){function Ie(Ne,Le){(0,R.Z)(this,Ie),this._elementRef=Ne,this._focusMonitor=Le,this.cdkFocusChange=new P.vpe}return(0,C.Z)(Ie,[{key:"ngAfterViewInit",value:function(){var Le=this,ze=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ze,1===ze.nodeType&&ze.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(At){return Le.cdkFocusChange.emit(At)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),Ie}();return he.\u0275fac=function(Ne){return new(Ne||he)(P.Y36(P.SBq),P.Y36(tr))},he.\u0275dir=P.lG2({type:he,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),he}(),Ut="cdk-high-contrast-black-on-white",Rt="cdk-high-contrast-white-on-black",Lt="cdk-high-contrast-active",Pe=function(){var he=function(){function Ie(Ne,Le){(0,R.Z)(this,Ie),this._platform=Ne,this._document=Le}return(0,C.Z)(Ie,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var Le=this._document.createElement("div");Le.style.backgroundColor="rgb(1,2,3)",Le.style.position="absolute",this._document.body.appendChild(Le);var ze=this._document.defaultView||window,At=ze&&ze.getComputedStyle?ze.getComputedStyle(Le):null,an=(At&&At.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(Le),an){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var Le=this._document.body.classList;Le.remove(Lt),Le.remove(Ut),Le.remove(Rt),this._hasCheckedHighContrastMode=!0;var ze=this.getHighContrastMode();1===ze?(Le.add(Lt),Le.add(Ut)):2===ze&&(Le.add(Lt),Le.add(Rt))}}}]),Ie}();return he.\u0275fac=function(Ne){return new(Ne||he)(P.LFG(z.t4),P.LFG(v.K0))},he.\u0275prov=P.Yz7({factory:function(){return new he(P.LFG(z.t4),P.LFG(v.K0))},token:he,providedIn:"root"}),he}(),rt=function(){var he=function Ie(Ne){(0,R.Z)(this,Ie),Ne._applyBodyHighContrastModeCssClasses()};return he.\u0275fac=function(Ne){return new(Ne||he)(P.LFG(Pe))},he.\u0275mod=P.oAB({type:he}),he.\u0275inj=P.cJS({imports:[[z.ud,J.Q8]]}),he}()},8392:function(ue,q,f){"use strict";f.d(q,{vT:function(){return P},Is:function(){return C}});var U=f(18967),B=f(14105),V=f(65508),Z=f(40098),T=new V.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,V.f3M)(Z.K0)}}),C=function(){var D=function(){function M(A){if((0,U.Z)(this,M),this.value="ltr",this.change=new V.vpe,A){var k=(A.body?A.body.dir:null)||(A.documentElement?A.documentElement.dir:null);this.value="ltr"===k||"rtl"===k?k:"ltr"}}return(0,B.Z)(M,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),M}();return D.\u0275fac=function(A){return new(A||D)(V.LFG(T,8))},D.\u0275prov=V.Yz7({factory:function(){return new D(V.LFG(T,8))},token:D,providedIn:"root"}),D}(),P=function(){var D=function M(){(0,U.Z)(this,M)};return D.\u0275fac=function(A){return new(A||D)},D.\u0275mod=V.oAB({type:D}),D.\u0275inj=V.cJS({}),D}()},37429:function(ue,q,f){"use strict";f.d(q,{P3:function(){return A},o2:function(){return D},Ov:function(){return k},A8:function(){return E},yy:function(){return _},eX:function(){return g},k:function(){return x},Z9:function(){return M}});var U=f(36683),B=f(14105),V=f(10509),Z=f(97154),T=f(18967),R=f(17504),C=f(43161),v=f(68707),P=f(65508),D=function S(){(0,T.Z)(this,S)};function M(S){return S&&"function"==typeof S.connect}var A=function(S){(0,V.Z)(L,S);var O=(0,Z.Z)(L);function L(j){var K;return(0,T.Z)(this,L),(K=O.call(this))._data=j,K}return(0,B.Z)(L,[{key:"connect",value:function(){return(0,R.b)(this._data)?this._data:(0,C.of)(this._data)}},{key:"disconnect",value:function(){}}]),L}(D),_=function(){function S(){(0,T.Z)(this,S)}return(0,B.Z)(S,[{key:"applyChanges",value:function(L,j,K,z,J){L.forEachOperation(function(ie,te,ae){var se,ce;if(null==ie.previousIndex){var le=K(ie,te,ae);se=j.createEmbeddedView(le.templateRef,le.context,le.index),ce=1}else null==ae?(j.remove(te),ce=3):(se=j.get(te),j.move(se,ae),ce=2);J&&J({context:null==se?void 0:se.context,operation:ce,record:ie})})}},{key:"detach",value:function(){}}]),S}(),g=function(){function S(){(0,T.Z)(this,S),this.viewCacheSize=20,this._viewCache=[]}return(0,B.Z)(S,[{key:"applyChanges",value:function(L,j,K,z,J){var ie=this;L.forEachOperation(function(te,ae,se){var ce,le;null==te.previousIndex?le=(ce=ie._insertView(function(){return K(te,ae,se)},se,j,z(te)))?1:0:null==se?(ie._detachAndCacheView(ae,j),le=3):(ce=ie._moveView(ae,se,j,z(te)),le=2),J&&J({context:null==ce?void 0:ce.context,operation:le,record:te})})}},{key:"detach",value:function(){var j,L=(0,U.Z)(this._viewCache);try{for(L.s();!(j=L.n()).done;)j.value.destroy()}catch(z){L.e(z)}finally{L.f()}this._viewCache=[]}},{key:"_insertView",value:function(L,j,K,z){var J=this._insertViewFromCache(j,K);if(!J){var ie=L();return K.createEmbeddedView(ie.templateRef,ie.context,ie.index)}J.context.$implicit=z}},{key:"_detachAndCacheView",value:function(L,j){var K=j.detach(L);this._maybeCacheView(K,j)}},{key:"_moveView",value:function(L,j,K,z){var J=K.get(L);return K.move(J,j),J.context.$implicit=z,J}},{key:"_maybeCacheView",value:function(L,j){if(this._viewCache.length0&&void 0!==arguments[0]&&arguments[0],j=arguments.length>1?arguments[1]:void 0,K=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,T.Z)(this,S),this._multiple=L,this._emitChanges=K,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new v.xQ,j&&j.length&&(L?j.forEach(function(z){return O._markSelected(z)}):this._markSelected(j[0]),this._selectedToEmit.length=0)}return(0,B.Z)(S,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var L=this,j=arguments.length,K=new Array(j),z=0;z1?Gn-1:0),zn=1;znTe.height||ye.scrollWidth>Te.width}}]),ut}(),ie=function(){function ut(He,ve,ye,Te){var we=this;(0,C.Z)(this,ut),this._scrollDispatcher=He,this._ngZone=ve,this._viewportRuler=ye,this._config=Te,this._scrollSubscription=null,this._detach=function(){we.disable(),we._overlayRef.hasAttached()&&we._ngZone.run(function(){return we._overlayRef.detach()})}}return(0,v.Z)(ut,[{key:"attach",value:function(ve){this._overlayRef=ve}},{key:"enable",value:function(){var ve=this;if(!this._scrollSubscription){var ye=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ye.subscribe(function(){var Te=ve._viewportRuler.getViewportScrollPosition().top;Math.abs(Te-ve._initialScrollPosition)>ve._config.threshold?ve._detach():ve._overlayRef.updatePosition()})):this._scrollSubscription=ye.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),ut}(),te=function(){function ut(){(0,C.Z)(this,ut)}return(0,v.Z)(ut,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),ut}();function ae(ut,He){return He.some(function(ve){return ut.bottomve.bottom||ut.rightve.right})}function se(ut,He){return He.some(function(ve){return ut.topve.bottom||ut.leftve.right})}var ce=function(){function ut(He,ve,ye,Te){(0,C.Z)(this,ut),this._scrollDispatcher=He,this._viewportRuler=ve,this._ngZone=ye,this._config=Te,this._scrollSubscription=null}return(0,v.Z)(ut,[{key:"attach",value:function(ve){this._overlayRef=ve}},{key:"enable",value:function(){var ve=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(ve._overlayRef.updatePosition(),ve._config&&ve._config.autoClose){var Te=ve._overlayRef.overlayElement.getBoundingClientRect(),we=ve._viewportRuler.getViewportSize(),ct=we.width,ht=we.height;ae(Te,[{width:ct,height:ht,bottom:ht,right:ct,top:0,left:0}])&&(ve.disable(),ve._ngZone.run(function(){return ve._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),ut}(),le=function(){var ut=function He(ve,ye,Te,we){var ct=this;(0,C.Z)(this,He),this._scrollDispatcher=ve,this._viewportRuler=ye,this._ngZone=Te,this.noop=function(){return new te},this.close=function(ht){return new ie(ct._scrollDispatcher,ct._ngZone,ct._viewportRuler,ht)},this.block=function(){return new z(ct._viewportRuler,ct._document)},this.reposition=function(ht){return new ce(ct._scrollDispatcher,ct._viewportRuler,ct._ngZone,ht)},this._document=we};return ut.\u0275fac=function(ve){return new(ve||ut)(D.LFG(P.mF),D.LFG(P.rL),D.LFG(D.R0b),D.LFG(_.K0))},ut.\u0275prov=D.Yz7({factory:function(){return new ut(D.LFG(P.mF),D.LFG(P.rL),D.LFG(D.R0b),D.LFG(_.K0))},token:ut,providedIn:"root"}),ut}(),oe=function ut(He){if((0,C.Z)(this,ut),this.scrollStrategy=new te,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,He)for(var ye=0,Te=Object.keys(He);ye-1&&this._attachedOverlays.splice(Te,1),0===this._attachedOverlays.length&&this.detach()}}]),He}();return ut.\u0275fac=function(ve){return new(ve||ut)(D.LFG(_.K0))},ut.\u0275prov=D.Yz7({factory:function(){return new ut(D.LFG(_.K0))},token:ut,providedIn:"root"}),ut}(),Ft=function(){var ut=function(He){(0,T.Z)(ye,He);var ve=(0,R.Z)(ye);function ye(Te){var we;return(0,C.Z)(this,ye),(we=ve.call(this,Te))._keydownListener=function(ct){for(var ht=we._attachedOverlays,Jt=ht.length-1;Jt>-1;Jt--)if(ht[Jt]._keydownEvents.observers.length>0){ht[Jt]._keydownEvents.next(ct);break}},we}return(0,v.Z)(ye,[{key:"add",value:function(we){(0,V.Z)((0,Z.Z)(ye.prototype),"add",this).call(this,we),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),ye}(yt);return ut.\u0275fac=function(ve){return new(ve||ut)(D.LFG(_.K0))},ut.\u0275prov=D.Yz7({factory:function(){return new ut(D.LFG(_.K0))},token:ut,providedIn:"root"}),ut}(),xe=function(){var ut=function(He){(0,T.Z)(ye,He);var ve=(0,R.Z)(ye);function ye(Te,we){var ct;return(0,C.Z)(this,ye),(ct=ve.call(this,Te))._platform=we,ct._cursorStyleIsSet=!1,ct._clickListener=function(ht){for(var Jt=(0,M.sA)(ht),Kt=ct._attachedOverlays.slice(),Yt=Kt.length-1;Yt>-1;Yt--){var nn=Kt[Yt];if(!(nn._outsidePointerEvents.observers.length<1)&&nn.hasAttached()){if(nn.overlayElement.contains(Jt))break;nn._outsidePointerEvents.next(ht)}}},ct}return(0,v.Z)(ye,[{key:"add",value:function(we){if((0,V.Z)((0,Z.Z)(ye.prototype),"add",this).call(this,we),!this._isAttached){var ct=this._document.body;ct.addEventListener("click",this._clickListener,!0),ct.addEventListener("auxclick",this._clickListener,!0),ct.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=ct.style.cursor,ct.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var we=this._document.body;we.removeEventListener("click",this._clickListener,!0),we.removeEventListener("auxclick",this._clickListener,!0),we.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(we.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),ye}(yt);return ut.\u0275fac=function(ve){return new(ve||ut)(D.LFG(_.K0),D.LFG(M.t4))},ut.\u0275prov=D.Yz7({factory:function(){return new ut(D.LFG(_.K0),D.LFG(M.t4))},token:ut,providedIn:"root"}),ut}(),Oe=function(){var ut=function(){function He(ve,ye){(0,C.Z)(this,He),this._platform=ye,this._document=ve}return(0,v.Z)(He,[{key:"ngOnDestroy",value:function(){var ye=this._containerElement;ye&&ye.parentNode&&ye.parentNode.removeChild(ye)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var ye="cdk-overlay-container";if(this._platform.isBrowser||(0,M.Oy)())for(var Te=this._document.querySelectorAll(".".concat(ye,'[platform="server"], ')+".".concat(ye,'[platform="test"]')),we=0;weTn&&(Tn=Sn,yn=Cn)}}catch(tr){Pn.e(tr)}finally{Pn.f()}return this._isPushed=!1,void this._applyPosition(yn.position,yn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ct.position,ct.originPoint);this._applyPosition(ct.position,ct.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&xt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(dt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var ve=this._lastPosition||this._preferredPositions[0],ye=this._getOriginPoint(this._originRect,ve);this._applyPosition(ve,ye)}}},{key:"withScrollableContainers",value:function(ve){return this._scrollables=ve,this}},{key:"withPositions",value:function(ve){return this._preferredPositions=ve,-1===ve.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(ve){return this._viewportMargin=ve,this}},{key:"withFlexibleDimensions",value:function(){var ve=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=ve,this}},{key:"withGrowAfterOpen",value:function(){var ve=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=ve,this}},{key:"withPush",value:function(){var ve=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=ve,this}},{key:"withLockedPosition",value:function(){var ve=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=ve,this}},{key:"setOrigin",value:function(ve){return this._origin=ve,this}},{key:"withDefaultOffsetX",value:function(ve){return this._offsetX=ve,this}},{key:"withDefaultOffsetY",value:function(ve){return this._offsetY=ve,this}},{key:"withTransformOriginOn",value:function(ve){return this._transformOriginSelector=ve,this}},{key:"_getOriginPoint",value:function(ve,ye){var Te;if("center"==ye.originX)Te=ve.left+ve.width/2;else{var we=this._isRtl()?ve.right:ve.left,ct=this._isRtl()?ve.left:ve.right;Te="start"==ye.originX?we:ct}return{x:Te,y:"center"==ye.originY?ve.top+ve.height/2:"top"==ye.originY?ve.top:ve.bottom}}},{key:"_getOverlayPoint",value:function(ve,ye,Te){var we;return we="center"==Te.overlayX?-ye.width/2:"start"===Te.overlayX?this._isRtl()?-ye.width:0:this._isRtl()?0:-ye.width,{x:ve.x+we,y:ve.y+("center"==Te.overlayY?-ye.height/2:"top"==Te.overlayY?0:-ye.height)}}},{key:"_getOverlayFit",value:function(ve,ye,Te,we){var ct=Qt(ye),ht=ve.x,Jt=ve.y,Kt=this._getOffset(we,"x"),Yt=this._getOffset(we,"y");Kt&&(ht+=Kt),Yt&&(Jt+=Yt);var yn=0-Jt,Tn=Jt+ct.height-Te.height,Pn=this._subtractOverflows(ct.width,0-ht,ht+ct.width-Te.width),Yn=this._subtractOverflows(ct.height,yn,Tn),Cn=Pn*Yn;return{visibleArea:Cn,isCompletelyWithinViewport:ct.width*ct.height===Cn,fitsInViewportVertically:Yn===ct.height,fitsInViewportHorizontally:Pn==ct.width}}},{key:"_canFitWithFlexibleDimensions",value:function(ve,ye,Te){if(this._hasFlexibleDimensions){var we=Te.bottom-ye.y,ct=Te.right-ye.x,ht=vt(this._overlayRef.getConfig().minHeight),Jt=vt(this._overlayRef.getConfig().minWidth);return(ve.fitsInViewportVertically||null!=ht&&ht<=we)&&(ve.fitsInViewportHorizontally||null!=Jt&&Jt<=ct)}return!1}},{key:"_pushOverlayOnScreen",value:function(ve,ye,Te){if(this._previousPushAmount&&this._positionLocked)return{x:ve.x+this._previousPushAmount.x,y:ve.y+this._previousPushAmount.y};var nn,cn,we=Qt(ye),ct=this._viewportRect,ht=Math.max(ve.x+we.width-ct.width,0),Jt=Math.max(ve.y+we.height-ct.height,0),Kt=Math.max(ct.top-Te.top-ve.y,0),Yt=Math.max(ct.left-Te.left-ve.x,0);return this._previousPushAmount={x:nn=we.width<=ct.width?Yt||-ht:ve.xYt&&!this._isInitialRender&&!this._growAfterOpen&&(ht=ve.y-Yt/2)}if("end"===ye.overlayX&&!we||"start"===ye.overlayX&&we)Pn=Te.width-ve.x+this._viewportMargin,yn=ve.x-this._viewportMargin;else if("start"===ye.overlayX&&!we||"end"===ye.overlayX&&we)Tn=ve.x,yn=Te.right-ve.x;else{var Yn=Math.min(Te.right-ve.x+Te.left,ve.x),Cn=this._lastBoundingBoxSize.width;Tn=ve.x-Yn,(yn=2*Yn)>Cn&&!this._isInitialRender&&!this._growAfterOpen&&(Tn=ve.x-Cn/2)}return{top:ht,left:Tn,bottom:Jt,right:Pn,width:yn,height:ct}}},{key:"_setBoundingBoxStyles",value:function(ve,ye){var Te=this._calculateBoundingBoxRect(ve,ye);!this._isInitialRender&&!this._growAfterOpen&&(Te.height=Math.min(Te.height,this._lastBoundingBoxSize.height),Te.width=Math.min(Te.width,this._lastBoundingBoxSize.width));var we={};if(this._hasExactPosition())we.top=we.left="0",we.bottom=we.right=we.maxHeight=we.maxWidth="",we.width=we.height="100%";else{var ct=this._overlayRef.getConfig().maxHeight,ht=this._overlayRef.getConfig().maxWidth;we.height=(0,g.HM)(Te.height),we.top=(0,g.HM)(Te.top),we.bottom=(0,g.HM)(Te.bottom),we.width=(0,g.HM)(Te.width),we.left=(0,g.HM)(Te.left),we.right=(0,g.HM)(Te.right),we.alignItems="center"===ye.overlayX?"center":"end"===ye.overlayX?"flex-end":"flex-start",we.justifyContent="center"===ye.overlayY?"center":"bottom"===ye.overlayY?"flex-end":"flex-start",ct&&(we.maxHeight=(0,g.HM)(ct)),ht&&(we.maxWidth=(0,g.HM)(ht))}this._lastBoundingBoxSize=Te,xt(this._boundingBox.style,we)}},{key:"_resetBoundingBoxStyles",value:function(){xt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){xt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(ve,ye){var Te={},we=this._hasExactPosition(),ct=this._hasFlexibleDimensions,ht=this._overlayRef.getConfig();if(we){var Jt=this._viewportRuler.getViewportScrollPosition();xt(Te,this._getExactOverlayY(ye,ve,Jt)),xt(Te,this._getExactOverlayX(ye,ve,Jt))}else Te.position="static";var Kt="",Yt=this._getOffset(ye,"x"),nn=this._getOffset(ye,"y");Yt&&(Kt+="translateX(".concat(Yt,"px) ")),nn&&(Kt+="translateY(".concat(nn,"px)")),Te.transform=Kt.trim(),ht.maxHeight&&(we?Te.maxHeight=(0,g.HM)(ht.maxHeight):ct&&(Te.maxHeight="")),ht.maxWidth&&(we?Te.maxWidth=(0,g.HM)(ht.maxWidth):ct&&(Te.maxWidth="")),xt(this._pane.style,Te)}},{key:"_getExactOverlayY",value:function(ve,ye,Te){var we={top:"",bottom:""},ct=this._getOverlayPoint(ye,this._overlayRect,ve);this._isPushed&&(ct=this._pushOverlayOnScreen(ct,this._overlayRect,Te));var ht=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return ct.y-=ht,"bottom"===ve.overlayY?we.bottom="".concat(this._document.documentElement.clientHeight-(ct.y+this._overlayRect.height),"px"):we.top=(0,g.HM)(ct.y),we}},{key:"_getExactOverlayX",value:function(ve,ye,Te){var we={left:"",right:""},ct=this._getOverlayPoint(ye,this._overlayRect,ve);return this._isPushed&&(ct=this._pushOverlayOnScreen(ct,this._overlayRect,Te)),"right"==(this._isRtl()?"end"===ve.overlayX?"left":"right":"end"===ve.overlayX?"right":"left")?we.right="".concat(this._document.documentElement.clientWidth-(ct.x+this._overlayRect.width),"px"):we.left=(0,g.HM)(ct.x),we}},{key:"_getScrollVisibility",value:function(){var ve=this._getOriginRect(),ye=this._pane.getBoundingClientRect(),Te=this._scrollables.map(function(we){return we.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:se(ve,Te),isOriginOutsideView:ae(ve,Te),isOverlayClipped:se(ye,Te),isOverlayOutsideView:ae(ye,Te)}}},{key:"_subtractOverflows",value:function(ve){for(var ye=arguments.length,Te=new Array(ye>1?ye-1:0),we=1;we0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=ve,this._alignItems="flex-start",this}},{key:"left",value:function(){var ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=ve,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=ve,this._alignItems="flex-end",this}},{key:"right",value:function(){var ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=ve,this._justifyContent="flex-end",this}},{key:"width",value:function(){var ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:ve}):this._width=ve,this}},{key:"height",value:function(){var ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:ve}):this._height=ve,this}},{key:"centerHorizontally",value:function(){var ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(ve),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(ve),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var ve=this._overlayRef.overlayElement.style,ye=this._overlayRef.hostElement.style,Te=this._overlayRef.getConfig(),we=Te.width,ct=Te.height,ht=Te.maxWidth,Jt=Te.maxHeight,Kt=!("100%"!==we&&"100vw"!==we||ht&&"100%"!==ht&&"100vw"!==ht),Yt=!("100%"!==ct&&"100vh"!==ct||Jt&&"100%"!==Jt&&"100vh"!==Jt);ve.position=this._cssPosition,ve.marginLeft=Kt?"0":this._leftOffset,ve.marginTop=Yt?"0":this._topOffset,ve.marginBottom=this._bottomOffset,ve.marginRight=this._rightOffset,Kt?ye.justifyContent="flex-start":"center"===this._justifyContent?ye.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?ye.justifyContent="flex-end":"flex-end"===this._justifyContent&&(ye.justifyContent="flex-start"):ye.justifyContent=this._justifyContent,ye.alignItems=Yt?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var ve=this._overlayRef.overlayElement.style,ye=this._overlayRef.hostElement,Te=ye.style;ye.classList.remove(Ct),Te.justifyContent=Te.alignItems=ve.marginTop=ve.marginBottom=ve.marginLeft=ve.marginRight=ve.position="",this._overlayRef=null,this._isDisposed=!0}}}]),ut}(),bt=function(){var ut=function(){function He(ve,ye,Te,we){(0,C.Z)(this,He),this._viewportRuler=ve,this._document=ye,this._platform=Te,this._overlayContainer=we}return(0,v.Z)(He,[{key:"global",value:function(){return new Vt}},{key:"connectedTo",value:function(ye,Te,we){return new Ht(Te,we,ye,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(ye){return new Bt(ye,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),He}();return ut.\u0275fac=function(ve){return new(ve||ut)(D.LFG(P.rL),D.LFG(_.K0),D.LFG(M.t4),D.LFG(Oe))},ut.\u0275prov=D.Yz7({factory:function(){return new ut(D.LFG(P.rL),D.LFG(_.K0),D.LFG(M.t4),D.LFG(Oe))},token:ut,providedIn:"root"}),ut}(),en=0,Nt=function(){var ut=function(){function He(ve,ye,Te,we,ct,ht,Jt,Kt,Yt,nn,cn){(0,C.Z)(this,He),this.scrollStrategies=ve,this._overlayContainer=ye,this._componentFactoryResolver=Te,this._positionBuilder=we,this._keyboardDispatcher=ct,this._injector=ht,this._ngZone=Jt,this._document=Kt,this._directionality=Yt,this._location=nn,this._outsideClickDispatcher=cn}return(0,v.Z)(He,[{key:"create",value:function(ye){var Te=this._createHostElement(),we=this._createPaneElement(Te),ct=this._createPortalOutlet(we),ht=new oe(ye);return ht.direction=ht.direction||this._directionality.value,new je(ct,Te,we,ht,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(ye){var Te=this._document.createElement("div");return Te.id="cdk-overlay-".concat(en++),Te.classList.add("cdk-overlay-pane"),ye.appendChild(Te),Te}},{key:"_createHostElement",value:function(){var ye=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ye),ye}},{key:"_createPortalOutlet",value:function(ye){return this._appRef||(this._appRef=this._injector.get(D.z2F)),new k.u0(ye,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),He}();return ut.\u0275fac=function(ve){return new(ve||ut)(D.LFG(le),D.LFG(Oe),D.LFG(D._Vd),D.LFG(bt),D.LFG(Ft),D.LFG(D.zs3),D.LFG(D.R0b),D.LFG(_.K0),D.LFG(A.Is),D.LFG(_.Ye),D.LFG(xe))},ut.\u0275prov=D.Yz7({token:ut,factory:ut.\u0275fac}),ut}(),rn=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],kn=new D.OlP("cdk-connected-overlay-scroll-strategy"),Nn=function(){var ut=function He(ve){(0,C.Z)(this,He),this.elementRef=ve};return ut.\u0275fac=function(ve){return new(ve||ut)(D.Y36(D.SBq))},ut.\u0275dir=D.lG2({type:ut,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),ut}(),In=function(){var ut=function(){function He(ve,ye,Te,we,ct){(0,C.Z)(this,He),this._overlay=ve,this._dir=ct,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=E.w.EMPTY,this._attachSubscription=E.w.EMPTY,this._detachSubscription=E.w.EMPTY,this._positionSubscription=E.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new D.vpe,this.positionChange=new D.vpe,this.attach=new D.vpe,this.detach=new D.vpe,this.overlayKeydown=new D.vpe,this.overlayOutsideClick=new D.vpe,this._templatePortal=new k.UE(ye,Te),this._scrollStrategyFactory=we,this.scrollStrategy=this._scrollStrategyFactory()}return(0,v.Z)(He,[{key:"offsetX",get:function(){return this._offsetX},set:function(ye){this._offsetX=ye,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(ye){this._offsetY=ye,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(ye){this._hasBackdrop=(0,g.Ig)(ye)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(ye){this._lockPosition=(0,g.Ig)(ye)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(ye){this._flexibleDimensions=(0,g.Ig)(ye)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(ye){this._growAfterOpen=(0,g.Ig)(ye)}},{key:"push",get:function(){return this._push},set:function(ye){this._push=(0,g.Ig)(ye)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(ye){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ye.origin&&this.open&&this._position.apply()),ye.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var ye=this;(!this.positions||!this.positions.length)&&(this.positions=rn);var Te=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Te.attachments().subscribe(function(){return ye.attach.emit()}),this._detachSubscription=Te.detachments().subscribe(function(){return ye.detach.emit()}),Te.keydownEvents().subscribe(function(we){ye.overlayKeydown.next(we),we.keyCode===j.hY&&!ye.disableClose&&!(0,j.Vb)(we)&&(we.preventDefault(),ye._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(we){ye.overlayOutsideClick.next(we)})}},{key:"_buildConfig",value:function(){var ye=this._position=this.positionStrategy||this._createPositionStrategy(),Te=new oe({direction:this._dir,positionStrategy:ye,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Te.width=this.width),(this.height||0===this.height)&&(Te.height=this.height),(this.minWidth||0===this.minWidth)&&(Te.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Te.minHeight=this.minHeight),this.backdropClass&&(Te.backdropClass=this.backdropClass),this.panelClass&&(Te.panelClass=this.panelClass),Te}},{key:"_updatePositionStrategy",value:function(ye){var Te=this,we=this.positions.map(function(ct){return{originX:ct.originX,originY:ct.originY,overlayX:ct.overlayX,overlayY:ct.overlayY,offsetX:ct.offsetX||Te.offsetX,offsetY:ct.offsetY||Te.offsetY,panelClass:ct.panelClass||void 0}});return ye.setOrigin(this.origin.elementRef).withPositions(we).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var ye=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(ye),ye}},{key:"_attachOverlay",value:function(){var ye=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(Te){ye.backdropClick.emit(Te)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,L.o)(function(){return ye.positionChange.observers.length>0})).subscribe(function(Te){ye.positionChange.emit(Te),0===ye.positionChange.observers.length&&ye._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),He}();return ut.\u0275fac=function(ve){return new(ve||ut)(D.Y36(Nt),D.Y36(D.Rgc),D.Y36(D.s_b),D.Y36(kn),D.Y36(A.Is,8))},ut.\u0275dir=D.lG2({type:ut,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[D.TTD]}),ut}(),Rn={provide:kn,deps:[Nt],useFactory:function(ut){return function(){return ut.scrollStrategies.reposition()}}},wn=function(){var ut=function He(){(0,C.Z)(this,He)};return ut.\u0275fac=function(ve){return new(ve||ut)},ut.\u0275mod=D.oAB({type:ut}),ut.\u0275inj=D.cJS({providers:[Nt,Rn],imports:[[A.vT,k.eL,P.Cl],P.Cl]}),ut}()},15427:function(ue,q,f){"use strict";f.d(q,{t4:function(){return T},ud:function(){return R},sA:function(){return L},ht:function(){return O},kV:function(){return S},Oy:function(){return K},_i:function(){return N},qK:function(){return P},i$:function(){return A},Mq:function(){return k}});var Z,U=f(18967),B=f(65508),V=f(40098);try{Z="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(z){Z=!1}var C,D,_,g,E,T=function(){var z=function J(ie){(0,U.Z)(this,J),this._platformId=ie,this.isBrowser=this._platformId?(0,V.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Z)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return z.\u0275fac=function(ie){return new(ie||z)(B.LFG(B.Lbi))},z.\u0275prov=B.Yz7({factory:function(){return new z(B.LFG(B.Lbi))},token:z,providedIn:"root"}),z}(),R=function(){var z=function J(){(0,U.Z)(this,J)};return z.\u0275fac=function(ie){return new(ie||z)},z.\u0275mod=B.oAB({type:z}),z.\u0275inj=B.cJS({}),z}(),v=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function P(){if(C)return C;if("object"!=typeof document||!document)return C=new Set(v);var z=document.createElement("input");return C=new Set(v.filter(function(J){return z.setAttribute("type",J),z.type===J}))}function A(z){return function(){if(null==D&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return D=!0}}))}finally{D=D||!1}return D}()?z:!!z.capture}function k(){if(null==g){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return g=!1;if("scrollBehavior"in document.documentElement.style)g=!0;else{var z=Element.prototype.scrollTo;g=!!z&&!/\{\s*\[native code\]\s*\}/.test(z.toString())}}return g}function N(){if("object"!=typeof document||!document)return 0;if(null==_){var z=document.createElement("div"),J=z.style;z.dir="rtl",J.width="1px",J.overflow="auto",J.visibility="hidden",J.pointerEvents="none",J.position="absolute";var ie=document.createElement("div"),te=ie.style;te.width="2px",te.height="1px",z.appendChild(ie),document.body.appendChild(z),_=0,0===z.scrollLeft&&(z.scrollLeft=1,_=0===z.scrollLeft?1:2),z.parentNode.removeChild(z)}return _}function S(z){if(function(){if(null==E){var z="undefined"!=typeof document?document.head:null;E=!(!z||!z.createShadowRoot&&!z.attachShadow)}return E}()){var J=z.getRootNode?z.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&J instanceof ShadowRoot)return J}return null}function O(){for(var z="undefined"!=typeof document&&document?document.activeElement:null;z&&z.shadowRoot;){var J=z.shadowRoot.activeElement;if(J===z)break;z=J}return z}function L(z){return z.composedPath?z.composedPath()[0]:z.target}var j="undefined"!=typeof window?window:{};function K(){return void 0!==j.__karma__&&!!j.__karma__||void 0!==j.jasmine&&!!j.jasmine||void 0!==j.jest&&!!j.jest||void 0!==j.Mocha&&!!j.Mocha}},80785:function(ue,q,f){"use strict";f.d(q,{en:function(){return O},ig:function(){return z},Pl:function(){return ie},C5:function(){return E},u0:function(){return j},eL:function(){return ae},UE:function(){return x}});var U=f(88009),B=f(20901),V=f(89200),Z=f(10509),T=f(97154),R=f(18967),C=f(14105),v=f(65508),P=f(40098),N=function(){function ce(){(0,R.Z)(this,ce)}return(0,C.Z)(ce,[{key:"attach",value:function(oe){return this._attachedHost=oe,oe.attach(this)}},{key:"detach",value:function(){var oe=this._attachedHost;null!=oe&&(this._attachedHost=null,oe.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(oe){this._attachedHost=oe}}]),ce}(),E=function(ce){(0,Z.Z)(oe,ce);var le=(0,T.Z)(oe);function oe(Ae,be,it,qe){var _t;return(0,R.Z)(this,oe),(_t=le.call(this)).component=Ae,_t.viewContainerRef=be,_t.injector=it,_t.componentFactoryResolver=qe,_t}return oe}(N),x=function(ce){(0,Z.Z)(oe,ce);var le=(0,T.Z)(oe);function oe(Ae,be,it){var qe;return(0,R.Z)(this,oe),(qe=le.call(this)).templateRef=Ae,qe.viewContainerRef=be,qe.context=it,qe}return(0,C.Z)(oe,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(be){var it=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=it,(0,B.Z)((0,V.Z)(oe.prototype),"attach",this).call(this,be)}},{key:"detach",value:function(){return this.context=void 0,(0,B.Z)((0,V.Z)(oe.prototype),"detach",this).call(this)}}]),oe}(N),S=function(ce){(0,Z.Z)(oe,ce);var le=(0,T.Z)(oe);function oe(Ae){var be;return(0,R.Z)(this,oe),(be=le.call(this)).element=Ae instanceof v.SBq?Ae.nativeElement:Ae,be}return oe}(N),O=function(){function ce(){(0,R.Z)(this,ce),this._isDisposed=!1,this.attachDomPortal=null}return(0,C.Z)(ce,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(oe){return oe instanceof E?(this._attachedPortal=oe,this.attachComponentPortal(oe)):oe instanceof x?(this._attachedPortal=oe,this.attachTemplatePortal(oe)):this.attachDomPortal&&oe instanceof S?(this._attachedPortal=oe,this.attachDomPortal(oe)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(oe){this._disposeFn=oe}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),ce}(),j=function(ce){(0,Z.Z)(oe,ce);var le=(0,T.Z)(oe);function oe(Ae,be,it,qe,_t){var yt,Ft;return(0,R.Z)(this,oe),(Ft=le.call(this)).outletElement=Ae,Ft._componentFactoryResolver=be,Ft._appRef=it,Ft._defaultInjector=qe,Ft.attachDomPortal=function(xe){var Oe=xe.element,je=Ft._document.createComment("dom-portal");Oe.parentNode.insertBefore(je,Oe),Ft.outletElement.appendChild(Oe),Ft._attachedPortal=xe,(0,B.Z)((yt=(0,U.Z)(Ft),(0,V.Z)(oe.prototype)),"setDisposeFn",yt).call(yt,function(){je.parentNode&&je.parentNode.replaceChild(Oe,je)})},Ft._document=_t,Ft}return(0,C.Z)(oe,[{key:"attachComponentPortal",value:function(be){var yt,it=this,_t=(be.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(be.component);return be.viewContainerRef?(yt=be.viewContainerRef.createComponent(_t,be.viewContainerRef.length,be.injector||be.viewContainerRef.injector),this.setDisposeFn(function(){return yt.destroy()})):(yt=_t.create(be.injector||this._defaultInjector),this._appRef.attachView(yt.hostView),this.setDisposeFn(function(){it._appRef.detachView(yt.hostView),yt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(yt)),this._attachedPortal=be,yt}},{key:"attachTemplatePortal",value:function(be){var it=this,qe=be.viewContainerRef,_t=qe.createEmbeddedView(be.templateRef,be.context);return _t.rootNodes.forEach(function(yt){return it.outletElement.appendChild(yt)}),_t.detectChanges(),this.setDisposeFn(function(){var yt=qe.indexOf(_t);-1!==yt&&qe.remove(yt)}),this._attachedPortal=be,_t}},{key:"dispose",value:function(){(0,B.Z)((0,V.Z)(oe.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(be){return be.hostView.rootNodes[0]}}]),oe}(O),z=function(){var ce=function(le){(0,Z.Z)(Ae,le);var oe=(0,T.Z)(Ae);function Ae(be,it){return(0,R.Z)(this,Ae),oe.call(this,be,it)}return Ae}(x);return ce.\u0275fac=function(oe){return new(oe||ce)(v.Y36(v.Rgc),v.Y36(v.s_b))},ce.\u0275dir=v.lG2({type:ce,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[v.qOj]}),ce}(),ie=function(){var ce=function(le){(0,Z.Z)(Ae,le);var oe=(0,T.Z)(Ae);function Ae(be,it,qe){var _t,yt;return(0,R.Z)(this,Ae),(yt=oe.call(this))._componentFactoryResolver=be,yt._viewContainerRef=it,yt._isInitialized=!1,yt.attached=new v.vpe,yt.attachDomPortal=function(Ft){var xe=Ft.element,Oe=yt._document.createComment("dom-portal");Ft.setAttachedHost((0,U.Z)(yt)),xe.parentNode.insertBefore(Oe,xe),yt._getRootNode().appendChild(xe),yt._attachedPortal=Ft,(0,B.Z)((_t=(0,U.Z)(yt),(0,V.Z)(Ae.prototype)),"setDisposeFn",_t).call(_t,function(){Oe.parentNode&&Oe.parentNode.replaceChild(xe,Oe)})},yt._document=qe,yt}return(0,C.Z)(Ae,[{key:"portal",get:function(){return this._attachedPortal},set:function(it){this.hasAttached()&&!it&&!this._isInitialized||(this.hasAttached()&&(0,B.Z)((0,V.Z)(Ae.prototype),"detach",this).call(this),it&&(0,B.Z)((0,V.Z)(Ae.prototype),"attach",this).call(this,it),this._attachedPortal=it)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){(0,B.Z)((0,V.Z)(Ae.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(it){it.setAttachedHost(this);var qe=null!=it.viewContainerRef?it.viewContainerRef:this._viewContainerRef,yt=(it.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(it.component),Ft=qe.createComponent(yt,qe.length,it.injector||qe.injector);return qe!==this._viewContainerRef&&this._getRootNode().appendChild(Ft.hostView.rootNodes[0]),(0,B.Z)((0,V.Z)(Ae.prototype),"setDisposeFn",this).call(this,function(){return Ft.destroy()}),this._attachedPortal=it,this._attachedRef=Ft,this.attached.emit(Ft),Ft}},{key:"attachTemplatePortal",value:function(it){var qe=this;it.setAttachedHost(this);var _t=this._viewContainerRef.createEmbeddedView(it.templateRef,it.context);return(0,B.Z)((0,V.Z)(Ae.prototype),"setDisposeFn",this).call(this,function(){return qe._viewContainerRef.clear()}),this._attachedPortal=it,this._attachedRef=_t,this.attached.emit(_t),_t}},{key:"_getRootNode",value:function(){var it=this._viewContainerRef.element.nativeElement;return it.nodeType===it.ELEMENT_NODE?it:it.parentNode}}]),Ae}(O);return ce.\u0275fac=function(oe){return new(oe||ce)(v.Y36(v._Vd),v.Y36(v.s_b),v.Y36(P.K0))},ce.\u0275dir=v.lG2({type:ce,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[v.qOj]}),ce}(),ae=function(){var ce=function le(){(0,R.Z)(this,le)};return ce.\u0275fac=function(oe){return new(oe||ce)},ce.\u0275mod=v.oAB({type:ce}),ce.\u0275inj=v.cJS({}),ce}()},28722:function(ue,q,f){"use strict";f.d(q,{PQ:function(){return Ft},ZD:function(){return vt},mF:function(){return yt},Cl:function(){return Qt},rL:function(){return Oe}}),f(27235),f(36683),f(20901),f(89200),f(10509),f(97154);var C=f(18967),v=f(14105),P=f(78081),D=f(65508),M=f(68707),A=f(43161),_=f(89797),g=f(33090),O=(f(58172),f(8285),f(5051),f(17504),f(76161),f(54562)),L=f(58780),j=f(44213),te=(f(57682),f(4363),f(34487),f(61106),f(15427)),ae=f(40098),se=f(8392);f(37429);var yt=function(){var Ht=function(){function Ct(Vt,bt,en){(0,C.Z)(this,Ct),this._ngZone=Vt,this._platform=bt,this._scrolled=new M.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=en}return(0,v.Z)(Ct,[{key:"register",value:function(bt){var en=this;this.scrollContainers.has(bt)||this.scrollContainers.set(bt,bt.elementScrolled().subscribe(function(){return en._scrolled.next(bt)}))}},{key:"deregister",value:function(bt){var en=this.scrollContainers.get(bt);en&&(en.unsubscribe(),this.scrollContainers.delete(bt))}},{key:"scrolled",value:function(){var bt=this,en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new _.y(function(Nt){bt._globalSubscription||bt._addGlobalListener();var rn=en>0?bt._scrolled.pipe((0,O.e)(en)).subscribe(Nt):bt._scrolled.subscribe(Nt);return bt._scrolledCount++,function(){rn.unsubscribe(),bt._scrolledCount--,bt._scrolledCount||bt._removeGlobalListener()}}):(0,A.of)()}},{key:"ngOnDestroy",value:function(){var bt=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(en,Nt){return bt.deregister(Nt)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(bt,en){var Nt=this.getAncestorScrollContainers(bt);return this.scrolled(en).pipe((0,L.h)(function(rn){return!rn||Nt.indexOf(rn)>-1}))}},{key:"getAncestorScrollContainers",value:function(bt){var en=this,Nt=[];return this.scrollContainers.forEach(function(rn,kn){en._scrollableContainsElement(kn,bt)&&Nt.push(kn)}),Nt}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(bt,en){var Nt=(0,P.fI)(en),rn=bt.getElementRef().nativeElement;do{if(Nt==rn)return!0}while(Nt=Nt.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var bt=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var en=bt._getWindow();return(0,g.R)(en.document,"scroll").subscribe(function(){return bt._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),Ct}();return Ht.\u0275fac=function(Vt){return new(Vt||Ht)(D.LFG(D.R0b),D.LFG(te.t4),D.LFG(ae.K0,8))},Ht.\u0275prov=D.Yz7({factory:function(){return new Ht(D.LFG(D.R0b),D.LFG(te.t4),D.LFG(ae.K0,8))},token:Ht,providedIn:"root"}),Ht}(),Ft=function(){var Ht=function(){function Ct(Vt,bt,en,Nt){var rn=this;(0,C.Z)(this,Ct),this.elementRef=Vt,this.scrollDispatcher=bt,this.ngZone=en,this.dir=Nt,this._destroyed=new M.xQ,this._elementScrolled=new _.y(function(kn){return rn.ngZone.runOutsideAngular(function(){return(0,g.R)(rn.elementRef.nativeElement,"scroll").pipe((0,j.R)(rn._destroyed)).subscribe(kn)})})}return(0,v.Z)(Ct,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(bt){var en=this.elementRef.nativeElement,Nt=this.dir&&"rtl"==this.dir.value;null==bt.left&&(bt.left=Nt?bt.end:bt.start),null==bt.right&&(bt.right=Nt?bt.start:bt.end),null!=bt.bottom&&(bt.top=en.scrollHeight-en.clientHeight-bt.bottom),Nt&&0!=(0,te._i)()?(null!=bt.left&&(bt.right=en.scrollWidth-en.clientWidth-bt.left),2==(0,te._i)()?bt.left=bt.right:1==(0,te._i)()&&(bt.left=bt.right?-bt.right:bt.right)):null!=bt.right&&(bt.left=en.scrollWidth-en.clientWidth-bt.right),this._applyScrollToOptions(bt)}},{key:"_applyScrollToOptions",value:function(bt){var en=this.elementRef.nativeElement;(0,te.Mq)()?en.scrollTo(bt):(null!=bt.top&&(en.scrollTop=bt.top),null!=bt.left&&(en.scrollLeft=bt.left))}},{key:"measureScrollOffset",value:function(bt){var en="left",rn=this.elementRef.nativeElement;if("top"==bt)return rn.scrollTop;if("bottom"==bt)return rn.scrollHeight-rn.clientHeight-rn.scrollTop;var kn=this.dir&&"rtl"==this.dir.value;return"start"==bt?bt=kn?"right":en:"end"==bt&&(bt=kn?en:"right"),kn&&2==(0,te._i)()?bt==en?rn.scrollWidth-rn.clientWidth-rn.scrollLeft:rn.scrollLeft:kn&&1==(0,te._i)()?bt==en?rn.scrollLeft+rn.scrollWidth-rn.clientWidth:-rn.scrollLeft:bt==en?rn.scrollLeft:rn.scrollWidth-rn.clientWidth-rn.scrollLeft}}]),Ct}();return Ht.\u0275fac=function(Vt){return new(Vt||Ht)(D.Y36(D.SBq),D.Y36(yt),D.Y36(D.R0b),D.Y36(se.Is,8))},Ht.\u0275dir=D.lG2({type:Ht,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Ht}(),Oe=function(){var Ht=function(){function Ct(Vt,bt,en){var Nt=this;(0,C.Z)(this,Ct),this._platform=Vt,this._change=new M.xQ,this._changeListener=function(rn){Nt._change.next(rn)},this._document=en,bt.runOutsideAngular(function(){if(Vt.isBrowser){var rn=Nt._getWindow();rn.addEventListener("resize",Nt._changeListener),rn.addEventListener("orientationchange",Nt._changeListener)}Nt.change().subscribe(function(){return Nt._viewportSize=null})})}return(0,v.Z)(Ct,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var bt=this._getWindow();bt.removeEventListener("resize",this._changeListener),bt.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var bt={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),bt}},{key:"getViewportRect",value:function(){var bt=this.getViewportScrollPosition(),en=this.getViewportSize(),Nt=en.width,rn=en.height;return{top:bt.top,left:bt.left,bottom:bt.top+rn,right:bt.left+Nt,height:rn,width:Nt}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var bt=this._document,en=this._getWindow(),Nt=bt.documentElement,rn=Nt.getBoundingClientRect();return{top:-rn.top||bt.body.scrollTop||en.scrollY||Nt.scrollTop||0,left:-rn.left||bt.body.scrollLeft||en.scrollX||Nt.scrollLeft||0}}},{key:"change",value:function(){var bt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return bt>0?this._change.pipe((0,O.e)(bt)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var bt=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:bt.innerWidth,height:bt.innerHeight}:{width:0,height:0}}}]),Ct}();return Ht.\u0275fac=function(Vt){return new(Vt||Ht)(D.LFG(te.t4),D.LFG(D.R0b),D.LFG(ae.K0,8))},Ht.\u0275prov=D.Yz7({factory:function(){return new Ht(D.LFG(te.t4),D.LFG(D.R0b),D.LFG(ae.K0,8))},token:Ht,providedIn:"root"}),Ht}(),vt=function(){var Ht=function Ct(){(0,C.Z)(this,Ct)};return Ht.\u0275fac=function(Vt){return new(Vt||Ht)},Ht.\u0275mod=D.oAB({type:Ht}),Ht.\u0275inj=D.cJS({}),Ht}(),Qt=function(){var Ht=function Ct(){(0,C.Z)(this,Ct)};return Ht.\u0275fac=function(Vt){return new(Vt||Ht)},Ht.\u0275mod=D.oAB({type:Ht}),Ht.\u0275inj=D.cJS({imports:[[se.vT,te.ud,vt],se.vT,vt]}),Ht}()},78081:function(ue,q,f){"use strict";f.d(q,{t6:function(){return Z},Eq:function(){return T},Ig:function(){return B},HM:function(){return R},fI:function(){return C},su:function(){return V}});var U=f(65508);function B(P){return null!=P&&"false"!=="".concat(P)}function V(P){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Z(P)?Number(P):D}function Z(P){return!isNaN(parseFloat(P))&&!isNaN(Number(P))}function T(P){return Array.isArray(P)?P:[P]}function R(P){return null==P?"":"string"==typeof P?P:"".concat(P,"px")}function C(P){return P instanceof U.SBq?P.nativeElement:P}},40098:function(ue,q,f){"use strict";f.d(q,{mr:function(){return J},Ov:function(){return fo},ez:function(){return Ln},K0:function(){return _},Do:function(){return te},V_:function(){return N},Ye:function(){return ae},S$:function(){return K},mk:function(){return Xt},sg:function(){return jn},O5:function(){return bi},PC:function(){return ji},RF:function(){return Po},n9:function(){return Ko},ED:function(){return ko},tP:function(){return Yi},b0:function(){return ie},lw:function(){return g},EM:function(){return ja},JF:function(){return bl},NF:function(){return zi},w_:function(){return A},bD:function(){return Da},q:function(){return P},Mx:function(){return Gt},HT:function(){return M}});var U=f(36683),B=f(27235),V=f(10509),Z=f(97154),T=f(14105),R=f(18967),C=f(65508),v=null;function P(){return v}function M(pe){v||(v=pe)}var A=function pe(){(0,R.Z)(this,pe)},_=new C.OlP("DocumentToken"),g=function(){var pe=function(){function Fe(){(0,R.Z)(this,Fe)}return(0,T.Z)(Fe,[{key:"historyGo",value:function(We){throw new Error("Not implemented")}}]),Fe}();return pe.\u0275fac=function($e){return new($e||pe)},pe.\u0275prov=(0,C.Yz7)({factory:k,token:pe,providedIn:"platform"}),pe}();function k(){return(0,C.LFG)(E)}var N=new C.OlP("Location Initialized"),E=function(){var pe=function(Fe){(0,V.Z)(We,Fe);var $e=(0,Z.Z)(We);function We(re){var fe;return(0,R.Z)(this,We),(fe=$e.call(this))._doc=re,fe._init(),fe}return(0,T.Z)(We,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return P().getBaseHref(this._doc)}},{key:"onPopState",value:function(fe){var _e=P().getGlobalEventTarget(this._doc,"window");return _e.addEventListener("popstate",fe,!1),function(){return _e.removeEventListener("popstate",fe)}}},{key:"onHashChange",value:function(fe){var _e=P().getGlobalEventTarget(this._doc,"window");return _e.addEventListener("hashchange",fe,!1),function(){return _e.removeEventListener("hashchange",fe)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(fe){this.location.pathname=fe}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(fe,_e,Ce){x()?this._history.pushState(fe,_e,Ce):this.location.hash=Ce}},{key:"replaceState",value:function(fe,_e,Ce){x()?this._history.replaceState(fe,_e,Ce):this.location.hash=Ce}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var fe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(fe)}},{key:"getState",value:function(){return this._history.state}}]),We}(g);return pe.\u0275fac=function($e){return new($e||pe)(C.LFG(_))},pe.\u0275prov=(0,C.Yz7)({factory:S,token:pe,providedIn:"platform"}),pe}();function x(){return!!window.history.pushState}function S(){return new E((0,C.LFG)(_))}function O(pe,Fe){if(0==pe.length)return Fe;if(0==Fe.length)return pe;var $e=0;return pe.endsWith("/")&&$e++,Fe.startsWith("/")&&$e++,2==$e?pe+Fe.substring(1):1==$e?pe+Fe:pe+"/"+Fe}function L(pe){var Fe=pe.match(/#|\?|$/),$e=Fe&&Fe.index||pe.length;return pe.slice(0,$e-("/"===pe[$e-1]?1:0))+pe.slice($e)}function j(pe){return pe&&"?"!==pe[0]?"?"+pe:pe}var K=function(){var pe=function(){function Fe(){(0,R.Z)(this,Fe)}return(0,T.Z)(Fe,[{key:"historyGo",value:function(We){throw new Error("Not implemented")}}]),Fe}();return pe.\u0275fac=function($e){return new($e||pe)},pe.\u0275prov=(0,C.Yz7)({factory:z,token:pe,providedIn:"root"}),pe}();function z(pe){var Fe=(0,C.LFG)(_).location;return new ie((0,C.LFG)(g),Fe&&Fe.origin||"")}var J=new C.OlP("appBaseHref"),ie=function(){var pe=function(Fe){(0,V.Z)(We,Fe);var $e=(0,Z.Z)(We);function We(re,fe){var _e;if((0,R.Z)(this,We),(_e=$e.call(this))._platformLocation=re,_e._removeListenerFns=[],null==fe&&(fe=_e._platformLocation.getBaseHrefFromDOM()),null==fe)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return _e._baseHref=fe,_e}return(0,T.Z)(We,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(fe){this._removeListenerFns.push(this._platformLocation.onPopState(fe),this._platformLocation.onHashChange(fe))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(fe){return O(this._baseHref,fe)}},{key:"path",value:function(){var fe=arguments.length>0&&void 0!==arguments[0]&&arguments[0],_e=this._platformLocation.pathname+j(this._platformLocation.search),Ce=this._platformLocation.hash;return Ce&&fe?"".concat(_e).concat(Ce):_e}},{key:"pushState",value:function(fe,_e,Ce,Re){var Ge=this.prepareExternalUrl(Ce+j(Re));this._platformLocation.pushState(fe,_e,Ge)}},{key:"replaceState",value:function(fe,_e,Ce,Re){var Ge=this.prepareExternalUrl(Ce+j(Re));this._platformLocation.replaceState(fe,_e,Ge)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var _e,Ce,fe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(Ce=(_e=this._platformLocation).historyGo)||void 0===Ce||Ce.call(_e,fe)}}]),We}(K);return pe.\u0275fac=function($e){return new($e||pe)(C.LFG(g),C.LFG(J,8))},pe.\u0275prov=C.Yz7({token:pe,factory:pe.\u0275fac}),pe}(),te=function(){var pe=function(Fe){(0,V.Z)(We,Fe);var $e=(0,Z.Z)(We);function We(re,fe){var _e;return(0,R.Z)(this,We),(_e=$e.call(this))._platformLocation=re,_e._baseHref="",_e._removeListenerFns=[],null!=fe&&(_e._baseHref=fe),_e}return(0,T.Z)(We,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(fe){this._removeListenerFns.push(this._platformLocation.onPopState(fe),this._platformLocation.onHashChange(fe))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var _e=this._platformLocation.hash;return null==_e&&(_e="#"),_e.length>0?_e.substring(1):_e}},{key:"prepareExternalUrl",value:function(fe){var _e=O(this._baseHref,fe);return _e.length>0?"#"+_e:_e}},{key:"pushState",value:function(fe,_e,Ce,Re){var Ge=this.prepareExternalUrl(Ce+j(Re));0==Ge.length&&(Ge=this._platformLocation.pathname),this._platformLocation.pushState(fe,_e,Ge)}},{key:"replaceState",value:function(fe,_e,Ce,Re){var Ge=this.prepareExternalUrl(Ce+j(Re));0==Ge.length&&(Ge=this._platformLocation.pathname),this._platformLocation.replaceState(fe,_e,Ge)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var _e,Ce,fe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(Ce=(_e=this._platformLocation).historyGo)||void 0===Ce||Ce.call(_e,fe)}}]),We}(K);return pe.\u0275fac=function($e){return new($e||pe)(C.LFG(g),C.LFG(J,8))},pe.\u0275prov=C.Yz7({token:pe,factory:pe.\u0275fac}),pe}(),ae=function(){var pe=function(){function Fe($e,We){var re=this;(0,R.Z)(this,Fe),this._subject=new C.vpe,this._urlChangeListeners=[],this._platformStrategy=$e;var fe=this._platformStrategy.getBaseHref();this._platformLocation=We,this._baseHref=L(le(fe)),this._platformStrategy.onPopState(function(_e){re._subject.emit({url:re.path(!0),pop:!0,state:_e.state,type:_e.type})})}return(0,T.Z)(Fe,[{key:"path",value:function(){var We=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(We))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(We){var re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(We+j(re))}},{key:"normalize",value:function(We){return Fe.stripTrailingSlash(function(pe,Fe){return pe&&Fe.startsWith(pe)?Fe.substring(pe.length):Fe}(this._baseHref,le(We)))}},{key:"prepareExternalUrl",value:function(We){return We&&"/"!==We[0]&&(We="/"+We),this._platformStrategy.prepareExternalUrl(We)}},{key:"go",value:function(We){var re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",fe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(fe,"",We,re),this._notifyUrlChangeListeners(this.prepareExternalUrl(We+j(re)),fe)}},{key:"replaceState",value:function(We){var re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",fe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(fe,"",We,re),this._notifyUrlChangeListeners(this.prepareExternalUrl(We+j(re)),fe)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var re,fe,We=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(fe=(re=this._platformStrategy).historyGo)||void 0===fe||fe.call(re,We)}},{key:"onUrlChange",value:function(We){var re=this;this._urlChangeListeners.push(We),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(fe){re._notifyUrlChangeListeners(fe.url,fe.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var We=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",re=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(fe){return fe(We,re)})}},{key:"subscribe",value:function(We,re,fe){return this._subject.subscribe({next:We,error:re,complete:fe})}}]),Fe}();return pe.\u0275fac=function($e){return new($e||pe)(C.LFG(K),C.LFG(g))},pe.normalizeQueryParams=j,pe.joinWithSlash=O,pe.stripTrailingSlash=L,pe.\u0275prov=(0,C.Yz7)({factory:se,token:pe,providedIn:"root"}),pe}();function se(){return new ae((0,C.LFG)(K),(0,C.LFG)(g))}function le(pe){return pe.replace(/\/index.html$/,"")}var be=function(pe){return pe[pe.Zero=0]="Zero",pe[pe.One=1]="One",pe[pe.Two=2]="Two",pe[pe.Few=3]="Few",pe[pe.Many=4]="Many",pe[pe.Other=5]="Other",pe}({}),kn=C.kL8,Ot=function pe(){(0,R.Z)(this,pe)},Pt=function(){var pe=function(Fe){(0,V.Z)(We,Fe);var $e=(0,Z.Z)(We);function We(re){var fe;return(0,R.Z)(this,We),(fe=$e.call(this)).locale=re,fe}return(0,T.Z)(We,[{key:"getPluralCategory",value:function(fe,_e){switch(kn(_e||this.locale)(fe)){case be.Zero:return"zero";case be.One:return"one";case be.Two:return"two";case be.Few:return"few";case be.Many:return"many";default:return"other"}}}]),We}(Ot);return pe.\u0275fac=function($e){return new($e||pe)(C.LFG(C.soG))},pe.\u0275prov=C.Yz7({token:pe,factory:pe.\u0275fac}),pe}();function Gt(pe,Fe){Fe=encodeURIComponent(Fe);var We,$e=(0,U.Z)(pe.split(";"));try{for($e.s();!(We=$e.n()).done;){var re=We.value,fe=re.indexOf("="),_e=-1==fe?[re,""]:[re.slice(0,fe),re.slice(fe+1)],Ce=(0,B.Z)(_e,2),Ge=Ce[1];if(Ce[0].trim()===Fe)return decodeURIComponent(Ge)}}catch(St){$e.e(St)}finally{$e.f()}return null}var Xt=function(){var pe=function(){function Fe($e,We,re,fe){(0,R.Z)(this,Fe),this._iterableDiffers=$e,this._keyValueDiffers=We,this._ngEl=re,this._renderer=fe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return(0,T.Z)(Fe,[{key:"klass",set:function(We){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof We?We.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(We){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof We?We.split(/\s+/):We,this._rawClass&&((0,C.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var We=this._iterableDiffer.diff(this._rawClass);We&&this._applyIterableChanges(We)}else if(this._keyValueDiffer){var re=this._keyValueDiffer.diff(this._rawClass);re&&this._applyKeyValueChanges(re)}}},{key:"_applyKeyValueChanges",value:function(We){var re=this;We.forEachAddedItem(function(fe){return re._toggleClass(fe.key,fe.currentValue)}),We.forEachChangedItem(function(fe){return re._toggleClass(fe.key,fe.currentValue)}),We.forEachRemovedItem(function(fe){fe.previousValue&&re._toggleClass(fe.key,!1)})}},{key:"_applyIterableChanges",value:function(We){var re=this;We.forEachAddedItem(function(fe){if("string"!=typeof fe.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,C.AaK)(fe.item)));re._toggleClass(fe.item,!0)}),We.forEachRemovedItem(function(fe){return re._toggleClass(fe.item,!1)})}},{key:"_applyClasses",value:function(We){var re=this;We&&(Array.isArray(We)||We instanceof Set?We.forEach(function(fe){return re._toggleClass(fe,!0)}):Object.keys(We).forEach(function(fe){return re._toggleClass(fe,!!We[fe])}))}},{key:"_removeClasses",value:function(We){var re=this;We&&(Array.isArray(We)||We instanceof Set?We.forEach(function(fe){return re._toggleClass(fe,!1)}):Object.keys(We).forEach(function(fe){return re._toggleClass(fe,!1)}))}},{key:"_toggleClass",value:function(We,re){var fe=this;(We=We.trim())&&We.split(/\s+/g).forEach(function(_e){re?fe._renderer.addClass(fe._ngEl.nativeElement,_e):fe._renderer.removeClass(fe._ngEl.nativeElement,_e)})}}]),Fe}();return pe.\u0275fac=function($e){return new($e||pe)(C.Y36(C.ZZ4),C.Y36(C.aQg),C.Y36(C.SBq),C.Y36(C.Qsj))},pe.\u0275dir=C.lG2({type:pe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),pe}(),Gn=function(){function pe(Fe,$e,We,re){(0,R.Z)(this,pe),this.$implicit=Fe,this.ngForOf=$e,this.index=We,this.count=re}return(0,T.Z)(pe,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),pe}(),jn=function(){var pe=function(){function Fe($e,We,re){(0,R.Z)(this,Fe),this._viewContainer=$e,this._template=We,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return(0,T.Z)(Fe,[{key:"ngForOf",set:function(We){this._ngForOf=We,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(We){this._trackByFn=We}},{key:"ngForTemplate",set:function(We){We&&(this._template=We)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var We=this._ngForOf;if(!this._differ&&We)try{this._differ=this._differs.find(We).create(this.ngForTrackBy)}catch(fe){throw new Error("Cannot find a differ supporting object '".concat(We,"' of type '").concat(function(pe){return pe.name||typeof pe}(We),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var re=this._differ.diff(this._ngForOf);re&&this._applyChanges(re)}}},{key:"_applyChanges",value:function(We){var re=this,fe=[];We.forEachOperation(function(St,ft,gt){if(null==St.previousIndex){var Xr=re._viewContainer.createEmbeddedView(re._template,new Gn(null,re._ngForOf,-1,-1),null===gt?void 0:gt),jr=new zn(St,Xr);fe.push(jr)}else if(null==gt)re._viewContainer.remove(null===ft?void 0:ft);else if(null!==ft){var Pi=re._viewContainer.get(ft);re._viewContainer.move(Pi,gt);var ya=new zn(St,Pi);fe.push(ya)}});for(var _e=0;_e0){var ct=Te.slice(0,we),ht=ct.toLowerCase(),Jt=Te.slice(we+1).trim();ye.maybeSetNormalizedName(ct,ht),ye.headers.has(ht)?ye.headers.get(ht).push(Jt):ye.headers.set(ht,[Jt])}})}:function(){ye.headers=new Map,Object.keys(ve).forEach(function(Te){var we=ve[Te],ct=Te.toLowerCase();"string"==typeof we&&(we=[we]),we.length>0&&(ye.headers.set(ct,we),ye.maybeSetNormalizedName(Te,ct))})}:this.headers=new Map}return(0,T.Z)(He,[{key:"has",value:function(ye){return this.init(),this.headers.has(ye.toLowerCase())}},{key:"get",value:function(ye){this.init();var Te=this.headers.get(ye.toLowerCase());return Te&&Te.length>0?Te[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(ye){return this.init(),this.headers.get(ye.toLowerCase())||null}},{key:"append",value:function(ye,Te){return this.clone({name:ye,value:Te,op:"a"})}},{key:"set",value:function(ye,Te){return this.clone({name:ye,value:Te,op:"s"})}},{key:"delete",value:function(ye,Te){return this.clone({name:ye,value:Te,op:"d"})}},{key:"maybeSetNormalizedName",value:function(ye,Te){this.normalizedNames.has(Te)||this.normalizedNames.set(Te,ye)}},{key:"init",value:function(){var ye=this;this.lazyInit&&(this.lazyInit instanceof He?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(Te){return ye.applyUpdate(Te)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(ye){var Te=this;ye.init(),Array.from(ye.headers.keys()).forEach(function(we){Te.headers.set(we,ye.headers.get(we)),Te.normalizedNames.set(we,ye.normalizedNames.get(we))})}},{key:"clone",value:function(ye){var Te=new He;return Te.lazyInit=this.lazyInit&&this.lazyInit instanceof He?this.lazyInit:this,Te.lazyUpdate=(this.lazyUpdate||[]).concat([ye]),Te}},{key:"applyUpdate",value:function(ye){var Te=ye.name.toLowerCase();switch(ye.op){case"a":case"s":var we=ye.value;if("string"==typeof we&&(we=[we]),0===we.length)return;this.maybeSetNormalizedName(ye.name,Te);var ct=("a"===ye.op?this.headers.get(Te):void 0)||[];ct.push.apply(ct,(0,Z.Z)(we)),this.headers.set(Te,ct);break;case"d":var ht=ye.value;if(ht){var Jt=this.headers.get(Te);if(!Jt)return;0===(Jt=Jt.filter(function(Kt){return-1===ht.indexOf(Kt)})).length?(this.headers.delete(Te),this.normalizedNames.delete(Te)):this.headers.set(Te,Jt)}else this.headers.delete(Te),this.normalizedNames.delete(Te)}}},{key:"forEach",value:function(ye){var Te=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(we){return ye(Te.normalizedNames.get(we),Te.headers.get(we))})}}]),He}(),E=function(){function He(){(0,R.Z)(this,He)}return(0,T.Z)(He,[{key:"encodeKey",value:function(ye){return L(ye)}},{key:"encodeValue",value:function(ye){return L(ye)}},{key:"decodeKey",value:function(ye){return decodeURIComponent(ye)}},{key:"decodeValue",value:function(ye){return decodeURIComponent(ye)}}]),He}();function x(He,ve){var ye=new Map;return He.length>0&&He.replace(/^\?/,"").split("&").forEach(function(we){var ct=we.indexOf("="),ht=-1==ct?[ve.decodeKey(we),""]:[ve.decodeKey(we.slice(0,ct)),ve.decodeValue(we.slice(ct+1))],Jt=(0,V.Z)(ht,2),Kt=Jt[0],Yt=Jt[1],nn=ye.get(Kt)||[];nn.push(Yt),ye.set(Kt,nn)}),ye}var S=/%(\d[a-f0-9])/gi,O={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function L(He){return encodeURIComponent(He).replace(S,function(ve,ye){var Te;return null!==(Te=O[ye])&&void 0!==Te?Te:ve})}function j(He){return"".concat(He)}var K=function(){function He(){var ve=this,ye=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,R.Z)(this,He),this.updates=null,this.cloneFrom=null,this.encoder=ye.encoder||new E,ye.fromString){if(ye.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=x(ye.fromString,this.encoder)}else ye.fromObject?(this.map=new Map,Object.keys(ye.fromObject).forEach(function(Te){var we=ye.fromObject[Te];ve.map.set(Te,Array.isArray(we)?we:[we])})):this.map=null}return(0,T.Z)(He,[{key:"has",value:function(ye){return this.init(),this.map.has(ye)}},{key:"get",value:function(ye){this.init();var Te=this.map.get(ye);return Te?Te[0]:null}},{key:"getAll",value:function(ye){return this.init(),this.map.get(ye)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(ye,Te){return this.clone({param:ye,value:Te,op:"a"})}},{key:"appendAll",value:function(ye){var Te=[];return Object.keys(ye).forEach(function(we){var ct=ye[we];Array.isArray(ct)?ct.forEach(function(ht){Te.push({param:we,value:ht,op:"a"})}):Te.push({param:we,value:ct,op:"a"})}),this.clone(Te)}},{key:"set",value:function(ye,Te){return this.clone({param:ye,value:Te,op:"s"})}},{key:"delete",value:function(ye,Te){return this.clone({param:ye,value:Te,op:"d"})}},{key:"toString",value:function(){var ye=this;return this.init(),this.keys().map(function(Te){var we=ye.encoder.encodeKey(Te);return ye.map.get(Te).map(function(ct){return we+"="+ye.encoder.encodeValue(ct)}).join("&")}).filter(function(Te){return""!==Te}).join("&")}},{key:"clone",value:function(ye){var Te=new He({encoder:this.encoder});return Te.cloneFrom=this.cloneFrom||this,Te.updates=(this.updates||[]).concat(ye),Te}},{key:"init",value:function(){var ye=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(Te){return ye.map.set(Te,ye.cloneFrom.map.get(Te))}),this.updates.forEach(function(Te){switch(Te.op){case"a":case"s":var we=("a"===Te.op?ye.map.get(Te.param):void 0)||[];we.push(j(Te.value)),ye.map.set(Te.param,we);break;case"d":if(void 0===Te.value){ye.map.delete(Te.param);break}var ct=ye.map.get(Te.param)||[],ht=ct.indexOf(j(Te.value));-1!==ht&&ct.splice(ht,1),ct.length>0?ye.map.set(Te.param,ct):ye.map.delete(Te.param)}}),this.cloneFrom=this.updates=null)}}]),He}(),J=function(){function He(){(0,R.Z)(this,He),this.map=new Map}return(0,T.Z)(He,[{key:"set",value:function(ye,Te){return this.map.set(ye,Te),this}},{key:"get",value:function(ye){return this.map.has(ye)||this.map.set(ye,ye.defaultValue()),this.map.get(ye)}},{key:"delete",value:function(ye){return this.map.delete(ye),this}},{key:"keys",value:function(){return this.map.keys()}}]),He}();function te(He){return"undefined"!=typeof ArrayBuffer&&He instanceof ArrayBuffer}function ae(He){return"undefined"!=typeof Blob&&He instanceof Blob}function se(He){return"undefined"!=typeof FormData&&He instanceof FormData}var le=function(){function He(ve,ye,Te,we){var ct;if((0,R.Z)(this,He),this.url=ye,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ve.toUpperCase(),function(He){switch(He){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||we?(this.body=void 0!==Te?Te:null,ct=we):ct=Te,ct&&(this.reportProgress=!!ct.reportProgress,this.withCredentials=!!ct.withCredentials,ct.responseType&&(this.responseType=ct.responseType),ct.headers&&(this.headers=ct.headers),ct.context&&(this.context=ct.context),ct.params&&(this.params=ct.params)),this.headers||(this.headers=new N),this.context||(this.context=new J),this.params){var ht=this.params.toString();if(0===ht.length)this.urlWithParams=ye;else{var Jt=ye.indexOf("?");this.urlWithParams=ye+(-1===Jt?"?":Jt0&&void 0!==arguments[0]?arguments[0]:{},we=ye.method||this.method,ct=ye.url||this.url,ht=ye.responseType||this.responseType,Jt=void 0!==ye.body?ye.body:this.body,Kt=void 0!==ye.withCredentials?ye.withCredentials:this.withCredentials,Yt=void 0!==ye.reportProgress?ye.reportProgress:this.reportProgress,nn=ye.headers||this.headers,cn=ye.params||this.params,yn=null!==(Te=ye.context)&&void 0!==Te?Te:this.context;return void 0!==ye.setHeaders&&(nn=Object.keys(ye.setHeaders).reduce(function(Tn,Pn){return Tn.set(Pn,ye.setHeaders[Pn])},nn)),ye.setParams&&(cn=Object.keys(ye.setParams).reduce(function(Tn,Pn){return Tn.set(Pn,ye.setParams[Pn])},cn)),new He(we,ct,Jt,{params:cn,headers:nn,context:yn,reportProgress:Yt,responseType:ht,withCredentials:Kt})}}]),He}(),oe=function(He){return He[He.Sent=0]="Sent",He[He.UploadProgress=1]="UploadProgress",He[He.ResponseHeader=2]="ResponseHeader",He[He.DownloadProgress=3]="DownloadProgress",He[He.Response=4]="Response",He[He.User=5]="User",He}({}),Ae=function He(ve){var ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,Te=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";(0,R.Z)(this,He),this.headers=ve.headers||new N,this.status=void 0!==ve.status?ve.status:ye,this.statusText=ve.statusText||Te,this.url=ve.url||null,this.ok=this.status>=200&&this.status<300},be=function(He){(0,U.Z)(ye,He);var ve=(0,B.Z)(ye);function ye(){var Te,we=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,R.Z)(this,ye),(Te=ve.call(this,we)).type=oe.ResponseHeader,Te}return(0,T.Z)(ye,[{key:"clone",value:function(){var we=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new ye({headers:we.headers||this.headers,status:void 0!==we.status?we.status:this.status,statusText:we.statusText||this.statusText,url:we.url||this.url||void 0})}}]),ye}(Ae),it=function(He){(0,U.Z)(ye,He);var ve=(0,B.Z)(ye);function ye(){var Te,we=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,R.Z)(this,ye),(Te=ve.call(this,we)).type=oe.Response,Te.body=void 0!==we.body?we.body:null,Te}return(0,T.Z)(ye,[{key:"clone",value:function(){var we=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new ye({body:void 0!==we.body?we.body:this.body,headers:we.headers||this.headers,status:void 0!==we.status?we.status:this.status,statusText:we.statusText||this.statusText,url:we.url||this.url||void 0})}}]),ye}(Ae),qe=function(He){(0,U.Z)(ye,He);var ve=(0,B.Z)(ye);function ye(Te){var we;return(0,R.Z)(this,ye),(we=ve.call(this,Te,0,"Unknown Error")).name="HttpErrorResponse",we.ok=!1,we.message=we.status>=200&&we.status<300?"Http failure during parsing for ".concat(Te.url||"(unknown url)"):"Http failure response for ".concat(Te.url||"(unknown url)",": ").concat(Te.status," ").concat(Te.statusText),we.error=Te.error||null,we}return ye}(Ae);function _t(He,ve){return{body:ve,headers:He.headers,context:He.context,observe:He.observe,params:He.params,reportProgress:He.reportProgress,responseType:He.responseType,withCredentials:He.withCredentials}}var yt=function(){var He=function(){function ve(ye){(0,R.Z)(this,ve),this.handler=ye}return(0,T.Z)(ve,[{key:"request",value:function(Te,we){var Jt,ct=this,ht=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Te instanceof le)Jt=Te;else{var Kt=void 0;Kt=ht.headers instanceof N?ht.headers:new N(ht.headers);var Yt=void 0;ht.params&&(Yt=ht.params instanceof K?ht.params:new K({fromObject:ht.params})),Jt=new le(Te,we,void 0!==ht.body?ht.body:null,{headers:Kt,context:ht.context,params:Yt,reportProgress:ht.reportProgress,responseType:ht.responseType||"json",withCredentials:ht.withCredentials})}var nn=(0,P.of)(Jt).pipe((0,M.b)(function(yn){return ct.handler.handle(yn)}));if(Te instanceof le||"events"===ht.observe)return nn;var cn=nn.pipe((0,A.h)(function(yn){return yn instanceof it}));switch(ht.observe||"body"){case"body":switch(Jt.responseType){case"arraybuffer":return cn.pipe((0,_.U)(function(yn){if(null!==yn.body&&!(yn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return yn.body}));case"blob":return cn.pipe((0,_.U)(function(yn){if(null!==yn.body&&!(yn.body instanceof Blob))throw new Error("Response is not a Blob.");return yn.body}));case"text":return cn.pipe((0,_.U)(function(yn){if(null!==yn.body&&"string"!=typeof yn.body)throw new Error("Response is not a string.");return yn.body}));case"json":default:return cn.pipe((0,_.U)(function(yn){return yn.body}))}case"response":return cn;default:throw new Error("Unreachable: unhandled observe type ".concat(ht.observe,"}"))}}},{key:"delete",value:function(Te){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",Te,we)}},{key:"get",value:function(Te){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",Te,we)}},{key:"head",value:function(Te){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",Te,we)}},{key:"jsonp",value:function(Te,we){return this.request("JSONP",Te,{params:(new K).append(we,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(Te){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",Te,we)}},{key:"patch",value:function(Te,we){var ct=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",Te,_t(ct,we))}},{key:"post",value:function(Te,we){var ct=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",Te,_t(ct,we))}},{key:"put",value:function(Te,we){var ct=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",Te,_t(ct,we))}}]),ve}();return He.\u0275fac=function(ye){return new(ye||He)(v.LFG(g))},He.\u0275prov=v.Yz7({token:He,factory:He.\u0275fac}),He}(),Ft=function(){function He(ve,ye){(0,R.Z)(this,He),this.next=ve,this.interceptor=ye}return(0,T.Z)(He,[{key:"handle",value:function(ye){return this.interceptor.intercept(ye,this.next)}}]),He}(),xe=new v.OlP("HTTP_INTERCEPTORS"),Oe=function(){var He=function(){function ve(){(0,R.Z)(this,ve)}return(0,T.Z)(ve,[{key:"intercept",value:function(Te,we){return we.handle(Te)}}]),ve}();return He.\u0275fac=function(ye){return new(ye||He)},He.\u0275prov=v.Yz7({token:He,factory:He.\u0275fac}),He}(),Ht=/^\)\]\}',?\n/,Vt=function(){var He=function(){function ve(ye){(0,R.Z)(this,ve),this.xhrFactory=ye}return(0,T.Z)(ve,[{key:"handle",value:function(Te){var we=this;if("JSONP"===Te.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new D.y(function(ct){var ht=we.xhrFactory.build();if(ht.open(Te.method,Te.urlWithParams),Te.withCredentials&&(ht.withCredentials=!0),Te.headers.forEach(function(Sn,tr){return ht.setRequestHeader(Sn,tr.join(","))}),Te.headers.has("Accept")||ht.setRequestHeader("Accept","application/json, text/plain, */*"),!Te.headers.has("Content-Type")){var Jt=Te.detectContentTypeHeader();null!==Jt&&ht.setRequestHeader("Content-Type",Jt)}if(Te.responseType){var Kt=Te.responseType.toLowerCase();ht.responseType="json"!==Kt?Kt:"text"}var Yt=Te.serializeBody(),nn=null,cn=function(){if(null!==nn)return nn;var tr=1223===ht.status?204:ht.status,cr=ht.statusText||"OK",Ut=new N(ht.getAllResponseHeaders()),Rt=function(He){return"responseURL"in He&&He.responseURL?He.responseURL:/^X-Request-URL:/m.test(He.getAllResponseHeaders())?He.getResponseHeader("X-Request-URL"):null}(ht)||Te.url;return nn=new be({headers:Ut,status:tr,statusText:cr,url:Rt})},yn=function(){var tr=cn(),cr=tr.headers,Ut=tr.status,Rt=tr.statusText,Lt=tr.url,Pe=null;204!==Ut&&(Pe=void 0===ht.response?ht.responseText:ht.response),0===Ut&&(Ut=Pe?200:0);var rt=Ut>=200&&Ut<300;if("json"===Te.responseType&&"string"==typeof Pe){var he=Pe;Pe=Pe.replace(Ht,"");try{Pe=""!==Pe?JSON.parse(Pe):null}catch(Ie){Pe=he,rt&&(rt=!1,Pe={error:Ie,text:Pe})}}rt?(ct.next(new it({body:Pe,headers:cr,status:Ut,statusText:Rt,url:Lt||void 0})),ct.complete()):ct.error(new qe({error:Pe,headers:cr,status:Ut,statusText:Rt,url:Lt||void 0}))},Tn=function(tr){var cr=cn(),Rt=new qe({error:tr,status:ht.status||0,statusText:ht.statusText||"Unknown Error",url:cr.url||void 0});ct.error(Rt)},Pn=!1,Yn=function(tr){Pn||(ct.next(cn()),Pn=!0);var cr={type:oe.DownloadProgress,loaded:tr.loaded};tr.lengthComputable&&(cr.total=tr.total),"text"===Te.responseType&&!!ht.responseText&&(cr.partialText=ht.responseText),ct.next(cr)},Cn=function(tr){var cr={type:oe.UploadProgress,loaded:tr.loaded};tr.lengthComputable&&(cr.total=tr.total),ct.next(cr)};return ht.addEventListener("load",yn),ht.addEventListener("error",Tn),ht.addEventListener("timeout",Tn),ht.addEventListener("abort",Tn),Te.reportProgress&&(ht.addEventListener("progress",Yn),null!==Yt&&ht.upload&&ht.upload.addEventListener("progress",Cn)),ht.send(Yt),ct.next({type:oe.Sent}),function(){ht.removeEventListener("error",Tn),ht.removeEventListener("abort",Tn),ht.removeEventListener("load",yn),ht.removeEventListener("timeout",Tn),Te.reportProgress&&(ht.removeEventListener("progress",Yn),null!==Yt&&ht.upload&&ht.upload.removeEventListener("progress",Cn)),ht.readyState!==ht.DONE&&ht.abort()}})}}]),ve}();return He.\u0275fac=function(ye){return new(ye||He)(v.LFG(C.JF))},He.\u0275prov=v.Yz7({token:He,factory:He.\u0275fac}),He}(),bt=new v.OlP("XSRF_COOKIE_NAME"),en=new v.OlP("XSRF_HEADER_NAME"),Nt=function He(){(0,R.Z)(this,He)},rn=function(){var He=function(){function ve(ye,Te,we){(0,R.Z)(this,ve),this.doc=ye,this.platform=Te,this.cookieName=we,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return(0,T.Z)(ve,[{key:"getToken",value:function(){if("server"===this.platform)return null;var Te=this.doc.cookie||"";return Te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,C.Mx)(Te,this.cookieName),this.lastCookieString=Te),this.lastToken}}]),ve}();return He.\u0275fac=function(ye){return new(ye||He)(v.LFG(C.K0),v.LFG(v.Lbi),v.LFG(bt))},He.\u0275prov=v.Yz7({token:He,factory:He.\u0275fac}),He}(),kn=function(){var He=function(){function ve(ye,Te){(0,R.Z)(this,ve),this.tokenService=ye,this.headerName=Te}return(0,T.Z)(ve,[{key:"intercept",value:function(Te,we){var ct=Te.url.toLowerCase();if("GET"===Te.method||"HEAD"===Te.method||ct.startsWith("http://")||ct.startsWith("https://"))return we.handle(Te);var ht=this.tokenService.getToken();return null!==ht&&!Te.headers.has(this.headerName)&&(Te=Te.clone({headers:Te.headers.set(this.headerName,ht)})),we.handle(Te)}}]),ve}();return He.\u0275fac=function(ye){return new(ye||He)(v.LFG(Nt),v.LFG(en))},He.\u0275prov=v.Yz7({token:He,factory:He.\u0275fac}),He}(),Nn=function(){var He=function(){function ve(ye,Te){(0,R.Z)(this,ve),this.backend=ye,this.injector=Te,this.chain=null}return(0,T.Z)(ve,[{key:"handle",value:function(Te){if(null===this.chain){var we=this.injector.get(xe,[]);this.chain=we.reduceRight(function(ct,ht){return new Ft(ct,ht)},this.backend)}return this.chain.handle(Te)}}]),ve}();return He.\u0275fac=function(ye){return new(ye||He)(v.LFG(k),v.LFG(v.zs3))},He.\u0275prov=v.Yz7({token:He,factory:He.\u0275fac}),He}(),Rn=function(){var He=function(){function ve(){(0,R.Z)(this,ve)}return(0,T.Z)(ve,null,[{key:"disable",value:function(){return{ngModule:ve,providers:[{provide:kn,useClass:Oe}]}}},{key:"withOptions",value:function(){var Te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:ve,providers:[Te.cookieName?{provide:bt,useValue:Te.cookieName}:[],Te.headerName?{provide:en,useValue:Te.headerName}:[]]}}}]),ve}();return He.\u0275fac=function(ye){return new(ye||He)},He.\u0275mod=v.oAB({type:He}),He.\u0275inj=v.cJS({providers:[kn,{provide:xe,useExisting:kn,multi:!0},{provide:Nt,useClass:rn},{provide:bt,useValue:"XSRF-TOKEN"},{provide:en,useValue:"X-XSRF-TOKEN"}]}),He}(),wn=function(){var He=function ve(){(0,R.Z)(this,ve)};return He.\u0275fac=function(ye){return new(ye||He)},He.\u0275mod=v.oAB({type:He}),He.\u0275inj=v.cJS({providers:[yt,{provide:g,useClass:Nn},Vt,{provide:k,useExisting:Vt}],imports:[[Rn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),He}()},65508:function(ue,q,f){"use strict";f.d(q,{deG:function(){return hD},tb:function(){return cE},AFp:function(){return l_},ip1:function(){return qu},CZH:function(){return wf},hGG:function(){return DR},z2F:function(){return wm},sBO:function(){return WI},Sil:function(){return Mf},_Vd:function(){return Zg},EJc:function(){return ZC},SBq:function(){return fu},a5r:function(){return mR},qLn:function(){return Tc},vpe:function(){return vu},gxx:function(){return $p},tBr:function(){return yh},XFs:function(){return ht},OlP:function(){return Ro},zs3:function(){return Za},ZZ4:function(){return Lg},aQg:function(){return Fg},soG:function(){return ym},YKP:function(){return J0},v3s:function(){return EE},h0i:function(){return Bc},PXZ:function(){return WC},R0b:function(){return _u},FiY:function(){return Ru},Lbi:function(){return uE},g9A:function(){return Qd},n_E:function(){return Hc},Qsj:function(){return TB},FYo:function(){return G0},JOm:function(){return Eh},Tiy:function(){return ik},q3G:function(){return Os},tp0:function(){return Nu},EAV:function(){return hR},Rgc:function(){return tm},dDg:function(){return yE},DyG:function(){return ru},GfV:function(){return ok},s_b:function(){return vf},ifc:function(){return Cn},eFA:function(){return GC},G48:function(){return SE},Gpc:function(){return te},f3M:function(){return SD},X6Q:function(){return Sm},_c5:function(){return TR},VLi:function(){return oR},c2e:function(){return dE},zSh:function(){return Bh},wAp:function(){return Og},vHH:function(){return le},EiD:function(){return Sc},mCW:function(){return Fp},qzn:function(){return Al},JVY:function(){return MD},pB0:function(){return Wy},eBb:function(){return Hv},L6k:function(){return AD},LAX:function(){return Ch},cg1:function(){return Rw},Tjo:function(){return CR},kL8:function(){return KP},yhl:function(){return MT},dqk:function(){return Rt},sIi:function(){return Oc},CqO:function(){return m0},QGY:function(){return Fc},F4k:function(){return ew},RDi:function(){return Ce},AaK:function(){return z},z3N:function(){return su},qOj:function(){return Vh},TTD:function(){return ja},_Bn:function(){return PI},xp6:function(){return rO},uIk:function(){return Xb},Q2q:function(){return Sg},zWS:function(){return $b},Tol:function(){return x0},Gre:function(){return Aw},ekj:function(){return T0},Suo:function(){return Wk},Xpm:function(){return qr},lG2:function(){return wi},Yz7:function(){return In},cJS:function(){return Rn},oAB:function(){return yo},Yjl:function(){return ro},Y36:function(){return Wh},_UZ:function(){return $x},GkF:function(){return f0},BQk:function(){return Gh},ynx:function(){return Wd},qZA:function(){return p0},TgZ:function(){return wg},EpF:function(){return h0},n5z:function(){return mh},Ikx:function(){return Pw},LFG:function(){return Wo},$8M:function(){return Iy},NdJ:function(){return v0},CRH:function(){return Gk},kcU:function(){return Du},O4$:function(){return ch},oxw:function(){return Yh},ALo:function(){return Wi},lcZ:function(){return to},xi3:function(){return Kg},Hsn:function(){return ow},F$t:function(){return iw},Q6J:function(){return xg},s9C:function(){return g0},MGl:function(){return pf},hYB:function(){return Mg},DdM:function(){return k3},VKq:function(){return Lk},WLB:function(){return gC},iGM:function(){return zk},MAs:function(){return Zx},evT:function(){return Nd},Jf7:function(){return Il},CHM:function(){return Q},oJD:function(){return qp},Ckj:function(){return RD},LSH:function(){return eb},B6R:function(){return br},kYT:function(){return co},Akn:function(){return Nl},Udp:function(){return S0},WFA:function(){return kg},d8E:function(){return Iw},YNc:function(){return a0},W1O:function(){return n_},_uU:function(){return P0},Oqu:function(){return I0},hij:function(){return Dg},AsE:function(){return R0},lnq:function(){return N0},Gf:function(){return Sf}});var U=f(20901),B=f(89200),V=f(88009),Z=f(27235),C=(f(42515),f(99890),f(36683)),v=f(10629),P=f(99740),D=f(14105),M=f(18967),A=f(10509),_=f(97154),g=f(35470);function N(l){var c="function"==typeof Map?new Map:void 0;return(N=function(h){if(null===h||!function(l){return-1!==Function.toString.call(l).indexOf("[native code]")}(h))return h;if("function"!=typeof h)throw new TypeError("Super expression must either be null or a function");if(void 0!==c){if(c.has(h))return c.get(h);c.set(h,y)}function y(){return(0,P.Z)(h,arguments,(0,B.Z)(this).constructor)}return y.prototype=Object.create(h.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),(0,g.Z)(y,h)})(l)}var E=f(5051),x=f(68707),S=f(89797),O=f(55371),L=f(16338);function j(l){for(var c in l)if(l[c]===j)return c;throw Error("Could not find renamed property on target object.")}function K(l,c){for(var d in c)c.hasOwnProperty(d)&&!l.hasOwnProperty(d)&&(l[d]=c[d])}function z(l){if("string"==typeof l)return l;if(Array.isArray(l))return"["+l.map(z).join(", ")+"]";if(null==l)return""+l;if(l.overriddenName)return"".concat(l.overriddenName);if(l.name)return"".concat(l.name);var c=l.toString();if(null==c)return""+c;var d=c.indexOf("\n");return-1===d?c:c.substring(0,d)}function J(l,c){return null==l||""===l?null===c?"":c:null==c||""===c?l:l+" "+c}var ie=j({__forward_ref__:j});function te(l){return l.__forward_ref__=te,l.toString=function(){return z(this())},l}function ae(l){return se(l)?l():l}function se(l){return"function"==typeof l&&l.hasOwnProperty(ie)&&l.__forward_ref__===te}var le=function(l){(0,A.Z)(d,l);var c=(0,_.Z)(d);function d(h,y){var w;return(0,M.Z)(this,d),(w=c.call(this,function(l,c){var d=l?"NG0".concat(l,": "):"";return"".concat(d).concat(c)}(h,y))).code=h,w}return d}(N(Error));function be(l){return"string"==typeof l?l:null==l?"":String(l)}function it(l){return"function"==typeof l?l.name||l.toString():"object"==typeof l&&null!=l&&"function"==typeof l.type?l.type.name||l.type.toString():be(l)}function Ft(l,c){var d=c?" in ".concat(c):"";throw new le("201","No provider for ".concat(it(l)," found").concat(d))}function en(l,c){null==l&&function(l,c,d,h){throw new Error("ASSERTION ERROR: ".concat(l)+(null==h?"":" [Expected=> ".concat(d," ").concat(h," ").concat(c," <=Actual]")))}(c,l,null,"!=")}function In(l){return{token:l.token,providedIn:l.providedIn||null,factory:l.factory,value:void 0}}function Rn(l){return{providers:l.providers||[],imports:l.imports||[]}}function wn(l){return yr(l,ye)||yr(l,we)}function yr(l,c){return l.hasOwnProperty(c)?l[c]:null}function ve(l){return l&&(l.hasOwnProperty(Te)||l.hasOwnProperty(ct))?l[Te]:null}var Jt,ye=j({"\u0275prov":j}),Te=j({"\u0275inj":j}),we=j({ngInjectableDef:j}),ct=j({ngInjectorDef:j}),ht=function(l){return l[l.Default=0]="Default",l[l.Host=1]="Host",l[l.Self=2]="Self",l[l.SkipSelf=4]="SkipSelf",l[l.Optional=8]="Optional",l}({});function Kt(){return Jt}function Yt(l){var c=Jt;return Jt=l,c}function nn(l,c,d){var h=wn(l);return h&&"root"==h.providedIn?void 0===h.value?h.value=h.factory():h.value:d&ht.Optional?null:void 0!==c?c:void Ft(z(l),"Injector")}function yn(l){return{toString:l}.toString()}var Tn=function(l){return l[l.OnPush=0]="OnPush",l[l.Default=1]="Default",l}({}),Cn=function(l){return l[l.Emulated=0]="Emulated",l[l.None=2]="None",l[l.ShadowDom=3]="ShadowDom",l}({}),Sn="undefined"!=typeof globalThis&&globalThis,tr="undefined"!=typeof window&&window,cr="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ut="undefined"!=typeof global&&global,Rt=Sn||Ut||tr||cr,rt={},he=[],Ie=j({"\u0275cmp":j}),Ne=j({"\u0275dir":j}),Le=j({"\u0275pipe":j}),ze=j({"\u0275mod":j}),At=j({"\u0275loc":j}),an=j({"\u0275fac":j}),qn=j({__NG_ELEMENT_ID__:j}),Nr=0;function qr(l){return yn(function(){var d={},h={type:l.type,providersResolver:null,decls:l.decls,vars:l.vars,factory:null,template:l.template||null,consts:l.consts||null,ngContentSelectors:l.ngContentSelectors,hostBindings:l.hostBindings||null,hostVars:l.hostVars||0,hostAttrs:l.hostAttrs||null,contentQueries:l.contentQueries||null,declaredInputs:d,inputs:null,outputs:null,exportAs:l.exportAs||null,onPush:l.changeDetection===Tn.OnPush,directiveDefs:null,pipeDefs:null,selectors:l.selectors||he,viewQuery:l.viewQuery||null,features:l.features||null,data:l.data||{},encapsulation:l.encapsulation||Cn.Emulated,id:"c",styles:l.styles||he,_:null,setInput:null,schemas:l.schemas||null,tView:null},y=l.directives,w=l.features,H=l.pipes;return h.id+=Nr++,h.inputs=Qo(l.inputs,d),h.outputs=Qo(l.outputs),w&&w.forEach(function(W){return W(h)}),h.directiveDefs=y?function(){return("function"==typeof y?y():y).map(Qr)}:null,h.pipeDefs=H?function(){return("function"==typeof H?H():H).map(uo)}:null,h})}function br(l,c,d){var h=l.\u0275cmp;h.directiveDefs=function(){return c.map(Qr)},h.pipeDefs=function(){return d.map(uo)}}function Qr(l){return yi(l)||function(l){return l[Ne]||null}(l)}function uo(l){return function(l){return l[Le]||null}(l)}var Ni={};function yo(l){return yn(function(){var c={type:l.type,bootstrap:l.bootstrap||he,declarations:l.declarations||he,imports:l.imports||he,exports:l.exports||he,transitiveCompileScopes:null,schemas:l.schemas||null,id:l.id||null};return null!=l.id&&(Ni[l.id]=l.type),c})}function co(l,c){return yn(function(){var d=fi(l,!0);d.declarations=c.declarations||he,d.imports=c.imports||he,d.exports=c.exports||he})}function Qo(l,c){if(null==l)return rt;var d={};for(var h in l)if(l.hasOwnProperty(h)){var y=l[h],w=y;Array.isArray(y)&&(w=y[1],y=y[0]),d[y]=h,c&&(c[y]=w)}return d}var wi=qr;function ro(l){return{type:l.type,name:l.name,factory:null,pure:!1!==l.pure,onDestroy:l.type.prototype.ngOnDestroy||null}}function yi(l){return l[Ie]||null}function fi(l,c){var d=l[ze]||null;if(!d&&!0===c)throw new Error("Type ".concat(z(l)," does not have '\u0275mod' property."));return d}function fr(l){return Array.isArray(l)&&"object"==typeof l[1]}function fo(l){return Array.isArray(l)&&!0===l[1]}function ha(l){return 0!=(8&l.flags)}function Si(l){return 2==(2&l.flags)}function Co(l){return 1==(1&l.flags)}function Zi(l){return null!==l.template}function ma(l){return 0!=(512&l[2])}function Ka(l,c){return l.hasOwnProperty(an)?l[an]:null}var Ki=function(){function l(c,d,h){(0,M.Z)(this,l),this.previousValue=c,this.currentValue=d,this.firstChange=h}return(0,D.Z)(l,[{key:"isFirstChange",value:function(){return this.firstChange}}]),l}();function ja(){return _l}function _l(l){return l.type.prototype.ngOnChanges&&(l.setInput=eu),tn}function tn(){var l=bl(this),c=null==l?void 0:l.current;if(c){var d=l.previous;if(d===rt)l.previous=c;else for(var h in c)d[h]=c[h];l.current=null,this.ngOnChanges(c)}}function eu(l,c,d,h){var y=bl(l)||function(l,c){return l[yl]=c}(l,{previous:rt,current:null}),w=y.current||(y.current={}),H=y.previous,W=this.declaredInputs[d],X=H[W];w[W]=new Ki(X&&X.currentValue,c,H===rt),l[h]=c}ja.ngInherit=!0;var yl="__ngSimpleChanges__";function bl(l){return l[yl]||null}var re="http://www.w3.org/2000/svg",_e=void 0;function Ce(l){_e=l}function Re(){return void 0!==_e?_e:"undefined"!=typeof document?document:void 0}function St(l){return!!l.listen}var gt={createRenderer:function(c,d){return Re()}};function jr(l){for(;Array.isArray(l);)l=l[0];return l}function li(l,c){return jr(c[l])}function Ii(l,c){return jr(c[l.index])}function Oa(l,c){return l.data[c]}function Xa(l,c){return l[c]}function ba(l,c){var d=c[l];return fr(d)?d:d[0]}function Es(l){return 4==(4&l[2])}function Cp(l){return 128==(128&l[2])}function Js(l,c){return null==c?null:l[c]}function uc(l){l[18]=0}function Sl(l,c){l[5]+=c;for(var d=l,h=l[3];null!==h&&(1===c&&1===d[5]||-1===c&&0===d[5]);)h[5]+=c,d=h,h=h[3]}var Ar={lFrame:bn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function vd(){return Ar.bindingsEnabled}function Se(){return Ar.lFrame.lView}function ge(){return Ar.lFrame.tView}function Q(l){return Ar.lFrame.contextLView=l,l[8]}function ee(){for(var l=Ee();null!==l&&64===l.type;)l=l.parent;return l}function Ee(){return Ar.lFrame.currentTNode}function lt(l,c){var d=Ar.lFrame;d.currentTNode=l,d.isParent=c}function wt(){return Ar.lFrame.isParent}function Zt(){Ar.lFrame.isParent=!1}function An(){return Ar.isInCheckNoChangesMode}function Bn(l){Ar.isInCheckNoChangesMode=l}function Qn(){var l=Ar.lFrame,c=l.bindingRootIndex;return-1===c&&(c=l.bindingRootIndex=l.tView.bindingStartIndex),c}function hr(){return Ar.lFrame.bindingIndex}function Cr(){return Ar.lFrame.bindingIndex++}function Er(l){var c=Ar.lFrame,d=c.bindingIndex;return c.bindingIndex=c.bindingIndex+l,d}function oi(l,c){var d=Ar.lFrame;d.bindingIndex=d.bindingRootIndex=l,Be(c)}function Be(l){Ar.lFrame.currentDirectiveIndex=l}function Ye(l){var c=Ar.lFrame.currentDirectiveIndex;return-1===c?null:l[c]}function ke(){return Ar.lFrame.currentQueryIndex}function Ue(l){Ar.lFrame.currentQueryIndex=l}function Ze(l){var c=l[1];return 2===c.type?c.declTNode:1===c.type?l[6]:null}function nt(l,c,d){if(d&ht.SkipSelf){for(var h=c,y=l;!(null!==(h=h.parent)||d&ht.Host||null===(h=Ze(y))||(y=y[15],10&h.type)););if(null===h)return!1;c=h,l=y}var w=Ar.lFrame=sn();return w.currentTNode=c,w.lView=l,!0}function Tt(l){var c=sn(),d=l[1];Ar.lFrame=c,c.currentTNode=d.firstChild,c.lView=l,c.tView=d,c.contextLView=l,c.bindingIndex=d.bindingStartIndex,c.inI18n=!1}function sn(){var l=Ar.lFrame,c=null===l?null:l.child;return null===c?bn(l):c}function bn(l){var c={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:l,child:null,inI18n:!1};return null!==l&&(l.child=c),c}function xr(){var l=Ar.lFrame;return Ar.lFrame=l.parent,l.currentTNode=null,l.lView=null,l}var Ri=xr;function Xo(){var l=xr();l.isParent=!0,l.tView=null,l.selectedIndex=-1,l.contextLView=null,l.elementDepthCount=0,l.currentDirectiveIndex=-1,l.currentNamespace=null,l.bindingRootIndex=-1,l.bindingIndex=-1,l.currentQueryIndex=0}function Pa(l){return(Ar.lFrame.contextLView=function(l,c){for(;l>0;)c=c[15],l--;return c}(l,Ar.lFrame.contextLView))[8]}function Ao(){return Ar.lFrame.selectedIndex}function ms(l){Ar.lFrame.selectedIndex=l}function ho(){var l=Ar.lFrame;return Oa(l.tView,l.selectedIndex)}function ch(){Ar.lFrame.currentNamespace=re}function Du(){Ar.lFrame.currentNamespace=null}function jo(l,c){for(var d=c.directiveStart,h=c.directiveEnd;d=h)break}else c[X]<0&&(l[18]+=65536),(W>11>16&&(3&l[2])===c){l[2]+=2048;try{w.call(W)}finally{}}}else try{w.call(W)}finally{}}var Xi=function l(c,d,h){(0,M.Z)(this,l),this.factory=c,this.resolving=!1,this.canSeeViewProviders=d,this.injectImpl=h};function Ks(l,c,d){for(var h=St(l),y=0;yc){H=w-1;break}}}for(;w>16}(l),h=c;d>0;)h=h[15],d--;return h}var oT=!0;function Ay(l){var c=oT;return oT=l,c}var SF=0;function fh(l,c){var d=sT(l,c);if(-1!==d)return d;var h=c[1];h.firstCreatePass&&(l.injectorIndex=c.length,aT(h.data,l),aT(c,null),aT(h.blueprint,null));var y=Dy(l,c),w=l.injectorIndex;if(uD(y))for(var H=ph(y),W=Ap(y,c),X=W[1].data,me=0;me<8;me++)c[w+me]=W[H+me]|X[H+me];return c[w+8]=y,w}function aT(l,c){l.push(0,0,0,0,0,0,0,0,c)}function sT(l,c){return-1===l.injectorIndex||l.parent&&l.parent.injectorIndex===l.injectorIndex||null===c[l.injectorIndex+8]?-1:l.injectorIndex}function Dy(l,c){if(l.parent&&-1!==l.parent.injectorIndex)return l.parent.injectorIndex;for(var d=0,h=null,y=c;null!==y;){var w=y[1],H=w.type;if(null===(h=2===H?w.declTNode:1===H?y[6]:null))return-1;if(d++,y=y[15],-1!==h.injectorIndex)return h.injectorIndex|d<<16}return-1}function Ev(l,c,d){!function(l,c,d){var h;"string"==typeof d?h=d.charCodeAt(0)||0:d.hasOwnProperty(qn)&&(h=d[qn]),null==h&&(h=d[qn]=SF++);var y=255&h;c.data[l+(y>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:ht.Default,y=arguments.length>4?arguments[4]:void 0;if(null!==l){var w=Av(d);if("function"==typeof w){if(!nt(c,l,h))return h&ht.Host?lT(y,d,h):Oy(c,d,h,y);try{var H=w(h);if(null!=H||h&ht.Optional)return H;Ft(d)}finally{Ri()}}else if("number"==typeof w){var W=null,X=sT(l,c),me=-1,De=h&ht.Host?c[16][6]:null;for((-1===X||h&ht.SkipSelf)&&(-1!==(me=-1===X?Dy(l,c):c[X+8])&&pT(h,!1)?(W=c[1],X=ph(me),c=Ap(me,c)):X=-1);-1!==X;){var Xe=c[1];if(dT(w,X,Xe.data)){var Ke=cT(X,c,d,W,h,De);if(Ke!==uT)return Ke}-1!==(me=c[X+8])&&pT(h,c[1].data[X+8]===De)&&dT(w,X,c)?(W=Xe,X=ph(me),c=Ap(me,c)):X=-1}}}return Oy(c,d,h,y)}var uT={};function fD(){return new yd(ee(),Se())}function cT(l,c,d,h,y,w){var H=c[1],W=H.data[l+8],De=hh(W,H,d,null==h?Si(W)&&oT:h!=H&&0!=(3&W.type),y&ht.Host&&w===W);return null!==De?Pu(c,H,De,W):uT}function hh(l,c,d,h,y){for(var w=l.providerIndexes,H=c.data,W=1048575&w,X=l.directiveStart,De=w>>20,Ke=y?W+De:l.directiveEnd,mt=h?W:W+De;mt=X&&Mt.type===d)return mt}if(y){var zt=H[X];if(zt&&Zi(zt)&&zt.type===d)return X}return null}function Pu(l,c,d,h){var y=l[d],w=c.data;if(function(l){return l instanceof Xi}(y)){var H=y;H.resolving&&function(l,c){throw new le("200","Circular dependency in DI detected for ".concat(l).concat(""))}(it(w[d]));var W=Ay(H.canSeeViewProviders);H.resolving=!0;var X=H.injectImpl?Yt(H.injectImpl):null;nt(l,h,ht.Default);try{y=l[d]=H.factory(void 0,w,l,h),c.firstCreatePass&&d>=h.directiveStart&&function(l,c,d){var h=c.type.prototype,w=h.ngOnInit,H=h.ngDoCheck;if(h.ngOnChanges){var W=_l(c);(d.preOrderHooks||(d.preOrderHooks=[])).push(l,W),(d.preOrderCheckHooks||(d.preOrderCheckHooks=[])).push(l,W)}w&&(d.preOrderHooks||(d.preOrderHooks=[])).push(0-l,w),H&&((d.preOrderHooks||(d.preOrderHooks=[])).push(l,H),(d.preOrderCheckHooks||(d.preOrderCheckHooks=[])).push(l,H))}(d,w[d],c)}finally{null!==X&&Yt(X),Ay(W),H.resolving=!1,Ri()}}return y}function Av(l){if("string"==typeof l)return l.charCodeAt(0)||0;var c=l.hasOwnProperty(qn)?l[qn]:void 0;return"number"==typeof c?c>=0?255&c:fD:c}function dT(l,c,d){return!!(d[c+(l>>5)]&1<=l.length?l.push(d):l.splice(c,0,d)}function Td(l,c){return c>=l.length-1?l.pop():l.splice(c,1)[0]}function mc(l,c){for(var d=[],h=0;h=0?l[1|h]=d:function(l,c,d,h){var y=l.length;if(y==c)l.push(d,h);else if(1===y)l.push(h,l[0]),l[0]=d;else{for(y--,l.push(l[y-1],l[y]);y>c;)l[y]=l[y-2],y--;l[c]=d,l[c+1]=h}}(l,h=~h,c,d),h}function gh(l,c){var d=xd(l,c);if(d>=0)return l[1|d]}function xd(l,c){return function(l,c,d){for(var h=0,y=l.length>>d;y!==h;){var w=h+(y-h>>1),H=l[w<c?y=w:h=w+1}return~(y<1&&void 0!==arguments[1]?arguments[1]:ht.Default;if(void 0===Pp)throw new Error("inject() must be called from an injection context");return null===Pp?nn(l,void 0,c):Pp.get(l,c&ht.Optional?null:void 0,c)}function Wo(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ht.Default;return(Kt()||CD)(ae(l),c)}var SD=Wo;function Md(l){for(var c=[],d=0;d3&&void 0!==arguments[3]?arguments[3]:null;l=l&&"\n"===l.charAt(0)&&"\u0275"==l.charAt(1)?l.substr(2):l;var y=z(c);if(Array.isArray(c))y=c.map(z).join(" -> ");else if("object"==typeof c){var w=[];for(var H in c)if(c.hasOwnProperty(H)){var W=c[H];w.push(H+":"+("string"==typeof W?JSON.stringify(W):z(W)))}y="{".concat(w.join(", "),"}")}return"".concat(d).concat(h?"("+h+")":"","[").concat(y,"]: ").concat(l.replace(wl,"\n "))}("\n"+l.message,y,d,h),l.ngTokenPath=y,l[kd]=null,l}var vc,Od,yh=Ip(fc("Inject",function(c){return{token:c}}),-1),Ru=Ip(fc("Optional"),8),Nu=Ip(fc("SkipSelf"),4);function Ml(l){var c;return(null===(c=function(){if(void 0===vc&&(vc=null,Rt.trustedTypes))try{vc=Rt.trustedTypes.createPolicy("angular",{createHTML:function(c){return c},createScript:function(c){return c},createScriptURL:function(c){return c}})}catch(l){}return vc}())||void 0===c?void 0:c.createHTML(l))||l}function ou(l){var c;return(null===(c=function(){if(void 0===Od&&(Od=null,Rt.trustedTypes))try{Od=Rt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(c){return c},createScript:function(c){return c},createScriptURL:function(c){return c}})}catch(l){}return Od}())||void 0===c?void 0:c.createHTML(l))||l}var Xs=function(){function l(c){(0,M.Z)(this,l),this.changingThisBreaksApplicationSecurity=c}return(0,D.Z)(l,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),l}(),Zp=function(l){(0,A.Z)(d,l);var c=(0,_.Z)(d);function d(){return(0,M.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"HTML"}}]),d}(Xs),yc=function(l){(0,A.Z)(d,l);var c=(0,_.Z)(d);function d(){return(0,M.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"Style"}}]),d}(Xs),ET=function(l){(0,A.Z)(d,l);var c=(0,_.Z)(d);function d(){return(0,M.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"Script"}}]),d}(Xs),zy=function(l){(0,A.Z)(d,l);var c=(0,_.Z)(d);function d(){return(0,M.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"URL"}}]),d}(Xs),ED=function(l){(0,A.Z)(d,l);var c=(0,_.Z)(d);function d(){return(0,M.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),d}(Xs);function su(l){return l instanceof Xs?l.changingThisBreaksApplicationSecurity:l}function Al(l,c){var d=MT(l);if(null!=d&&d!==c){if("ResourceURL"===d&&"URL"===c)return!0;throw new Error("Required a safe ".concat(c,", got a ").concat(d," (see https://g.co/ng/security#xss)"))}return d===c}function MT(l){return l instanceof Xs&&l.getTypeName()||null}function MD(l){return new Zp(l)}function AD(l){return new yc(l)}function Hv(l){return new ET(l)}function Ch(l){return new zy(l)}function Wy(l){return new ED(l)}var DD=function(){function l(c){(0,M.Z)(this,l),this.inertDocumentHelper=c}return(0,D.Z)(l,[{key:"getInertBodyElement",value:function(d){d=""+d;try{var h=(new window.DOMParser).parseFromString(Ml(d),"text/html").body;return null===h?this.inertDocumentHelper.getInertBodyElement(d):(h.removeChild(h.firstChild),h)}catch(y){return null}}}]),l}(),Gy=function(){function l(c){if((0,M.Z)(this,l),this.defaultDoc=c,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var d=this.inertDocument.createElement("html");this.inertDocument.appendChild(d);var h=this.inertDocument.createElement("body");d.appendChild(h)}}return(0,D.Z)(l,[{key:"getInertBodyElement",value:function(d){var h=this.inertDocument.createElement("template");if("content"in h)return h.innerHTML=Ml(d),h;var y=this.inertDocument.createElement("body");return y.innerHTML=Ml(d),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}},{key:"stripCustomNsAttrs",value:function(d){for(var h=d.attributes,y=h.length-1;0"),!0}},{key:"endElement",value:function(d){var h=d.nodeName.toLowerCase();Vv.hasOwnProperty(h)&&!Qy.hasOwnProperty(h)&&(this.buf.push(""))}},{key:"chars",value:function(d){this.buf.push($y(d))}},{key:"checkClobberedElement",value:function(d,h){if(h&&(d.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(d.outerHTML));return h}}]),l}(),ID=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,PT=/([^\#-~ |!])/g;function $y(l){return l.replace(/&/g,"&").replace(ID,function(c){return"&#"+(1024*(c.charCodeAt(0)-55296)+(c.charCodeAt(1)-56320)+65536)+";"}).replace(PT,function(c){return"&#"+c.charCodeAt(0)+";"}).replace(//g,">")}function Sc(l,c){var d=null;try{Hp=Hp||function(l){var c=new Gy(l);return function(){try{return!!(new window.DOMParser).parseFromString(Ml(""),"text/html")}catch(l){return!1}}()?new DD(c):c}(l);var h=c?String(c):"";d=Hp.getInertBodyElement(h);var y=5,w=h;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,h=w,w=d.innerHTML,d=Hp.getInertBodyElement(h)}while(h!==w);return Ml((new Xy).sanitizeChildren(Vp(d)||d))}finally{if(d)for(var X=Vp(d)||d;X.firstChild;)X.removeChild(X.firstChild)}}function Vp(l){return"content"in l&&function(l){return l.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===l.nodeName}(l)?l.content:null}var Os=function(l){return l[l.NONE=0]="NONE",l[l.HTML=1]="HTML",l[l.STYLE=2]="STYLE",l[l.SCRIPT=3]="SCRIPT",l[l.URL=4]="URL",l[l.RESOURCE_URL=5]="RESOURCE_URL",l}({});function qp(l){var c=Ol();return c?ou(c.sanitize(Os.HTML,l)||""):Al(l,"HTML")?ou(su(l)):Sc(Re(),be(l))}function RD(l){var c=Ol();return c?c.sanitize(Os.STYLE,l)||"":Al(l,"Style")?su(l):be(l)}function eb(l){var c=Ol();return c?c.sanitize(Os.URL,l)||"":Al(l,"URL")?su(l):Fp(be(l))}function Ol(){var l=Se();return l&&l[12]}var NT="__ngContext__";function Wa(l,c){l[NT]=c}function nb(l){var c=function(l){return l[NT]||null}(l);return c?Array.isArray(c)?c:c.lView:null}function xh(l){return l.ngOriginalError}function wh(l){for(var c=arguments.length,d=new Array(c>1?c-1:0),h=1;h0&&(l[d-1][4]=h[4]);var w=Td(l,10+c);!function(l,c){Ph(l,c,c[11],2,null,null),c[0]=null,c[6]=null}(h[1],h);var H=w[19];null!==H&&H.detachView(w[1]),h[3]=null,h[4]=null,h[2]&=-129}return h}}function _b(l,c){if(!(256&c[2])){var d=c[11];St(d)&&d.destroyNode&&Ph(l,c,d,3,null,null),function(l){var c=l[13];if(!c)return yb(l[1],l);for(;c;){var d=null;if(fr(c))d=c[13];else{var h=c[10];h&&(d=h)}if(!d){for(;c&&!c[4]&&c!==l;)fr(c)&&yb(c[1],c),c=c[3];null===c&&(c=l),fr(c)&&yb(c[1],c),d=c&&c[4]}c=d}}(c)}}function yb(l,c){if(!(256&c[2])){c[2]&=-129,c[2]|=256,function(l,c){var d;if(null!=l&&null!=(d=l.destroyHooks))for(var h=0;h=0?h[y=me]():h[y=-me].unsubscribe(),w+=2}else{var De=h[y=d[w+1]];d[w].call(De)}if(null!==h){for(var Xe=y+1;Xew?"":y[Xe+1].toLowerCase();var mt=8&h?Ke:null;if(mt&&-1!==Bd(mt,me,0)||2&h&&me!==Ke){if(Ns(h))return!1;H=!0}}}}else{if(!H&&!Ns(h)&&!Ns(X))return!1;if(H&&Ns(X))continue;H=!1,h=X|1&h}}return Ns(h)||H}function Ns(l){return 0==(1&l)}function KD(l,c,d,h){if(null===c)return-1;var y=0;if(h||!d){for(var w=!1;y-1)for(d++;d2&&void 0!==arguments[2]&&arguments[2],h=0;h0?'="'+W+'"':"")+"]"}else 8&h?y+="."+H:4&h&&(y+=" "+H);else""!==y&&!Ns(H)&&(c+=Eb(w,y),y=""),h=H,w=w||!Ns(h);d++}return""!==y&&(c+=Eb(w,y)),c}var Ur={};function rO(l){iO(ge(),Se(),Ao()+l,An())}function iO(l,c,d,h){if(!h)if(3==(3&c[2])){var w=l.preOrderCheckHooks;null!==w&&Ou(c,w,d)}else{var H=l.preOrderHooks;null!==H&&dc(c,H,0,d)}ms(d)}function Mb(l,c){return l<<17|c<<2}function uu(l){return l>>17&32767}function Ab(l){return 2|l}function is(l){return(131068&l)>>2}function $T(l,c){return-131069&l|c<<2}function ex(l){return 1|l}function ox(l,c){var d=l.contentQueries;if(null!==d)for(var h=0;h20&&iO(l,c,20,An()),d(h,y)}finally{ms(w)}}function sx(l,c,d){if(ha(c))for(var y=c.directiveEnd,w=c.directiveStart;w2&&void 0!==arguments[2]?arguments[2]:Ii,h=c.localNames;if(null!==h)for(var y=c.index+1,w=0;w0;){var d=l[--c];if("number"==typeof d&&d<0)return d}return 0})(W)!=X&&W.push(X),W.push(h,y,H)}}function SO(l,c){null!==l.hostBindings&&l.hostBindings(1,c)}function xO(l,c){c.flags|=2,(l.components||(l.components=[])).push(c.index)}function YF(l,c,d){if(d){if(c.exportAs)for(var h=0;h0&&px(d)}}function px(l){for(var c=mb(l);null!==c;c=Qv(c))for(var d=10;d0&&px(h)}var H=l[1].components;if(null!==H)for(var W=0;W0&&px(X)}}function XF(l,c){var d=ba(c,l),h=d[1];(function(l,c){for(var d=c.length;d1&&void 0!==arguments[1]?arguments[1]:_h;if(h===_h){var y=new Error("NullInjectorError: No provider for ".concat(z(d),"!"));throw y.name="NullInjectorError",y}return h}}]),l}(),Bh=new Ro("Set Injector scope."),Hd={},zb={},pu=void 0;function Cx(){return void 0===pu&&(pu=new bx),pu}function Sx(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,h=arguments.length>3?arguments[3]:void 0;return new BO(l,d,c||Cx(),h)}var BO=function(){function l(c,d,h){var y=this,w=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,M.Z)(this,l),this.parent=h,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var H=[];d&&Ds(d,function(X){return y.processProvider(X,c,d)}),Ds([c],function(X){return y.processInjectorType(X,[],H)}),this.records.set($p,ef(void 0,this));var W=this.records.get(Bh);this.scope=null!=W?W.value:null,this.source=w||("object"==typeof c?null:z(c))}return(0,D.Z)(l,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(d){return d.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(d){var h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_h,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ht.Default;this.assertNotDestroyed();var w=Lv(this),H=Yt(void 0);try{if(!(y&ht.SkipSelf)){var W=this.records.get(d);if(void 0===W){var X=i5(d)&&wn(d);W=X&&this.injectableDefInScope(X)?ef(Wb(d),Hd):null,this.records.set(d,W)}if(null!=W)return this.hydrate(d,W)}var me=y&ht.Self?Cx():this.parent;return me.get(d,h=y&ht.Optional&&h===_h?null:h)}catch(Xe){if("NullInjectorError"===Xe.name){var De=Xe[kd]=Xe[kd]||[];if(De.unshift(z(d)),w)throw Xe;return ST(Xe,d,"R3InjectorError",this.source)}throw Xe}finally{Yt(H),Lv(w)}}},{key:"_resolveInjectorDefTypes",value:function(){var d=this;this.injectorDefTypes.forEach(function(h){return d.get(h)})}},{key:"toString",value:function(){var d=[];return this.records.forEach(function(y,w){return d.push(z(w))}),"R3Injector[".concat(d.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(d,h,y){var w=this;if(!(d=ae(d)))return!1;var H=ve(d),W=null==H&&d.ngModule||void 0,X=void 0===W?d:W,Xe=-1!==y.indexOf(X);if(void 0!==W&&(H=ve(W)),null==H)return!1;if(null!=H.imports&&!Xe){var Ke;y.push(X);try{Ds(H.imports,function(_n){w.processInjectorType(_n,h,y)&&(void 0===Ke&&(Ke=[]),Ke.push(_n))})}finally{}if(void 0!==Ke)for(var mt=function(Kn){var lr=Ke[Kn],Wr=lr.ngModule,Mi=lr.providers;Ds(Mi,function(go){return w.processProvider(go,Wr,Mi||he)})},Mt=0;Mt0){var d=mc(c,"?");throw new Error("Can't resolve all parameters for ".concat(z(l),": (").concat(d.join(", "),")."))}var h=function(l){var c=l&&(l[ye]||l[we]);if(c){var d=function(l){if(l.hasOwnProperty("name"))return l.name;var c=(""+l).match(/^function\s*([^\s(]+)/);return null===c?"":c[1]}(l);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(d,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(d,'" class.')),c}return null}(l);return null!==h?function(){return h.factory(l)}:function(){return new l}}(l);throw new Error("unreachable")}function Tx(l,c,d){var h=void 0;if(tf(l)){var y=ae(l);return Ka(y)||Wb(y)}if(gg(l))h=function(){return ae(l.useValue)};else if(function(l){return!(!l||!l.useFactory)}(l))h=function(){return l.useFactory.apply(l,(0,v.Z)(Md(l.deps||[])))};else if(function(l){return!(!l||!l.useExisting)}(l))h=function(){return Wo(ae(l.useExisting))};else{var w=ae(l&&(l.useClass||l.provide));if(!function(l){return!!l.deps}(l))return Ka(w)||Wb(w);h=function(){return(0,P.Z)(w,(0,v.Z)(Md(l.deps)))}}return h}function ef(l,c){var d=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:l,value:c,multi:d?[]:void 0}}function gg(l){return null!==l&&"object"==typeof l&&Zv in l}function tf(l){return"function"==typeof l}function i5(l){return"function"==typeof l||"object"==typeof l&&l instanceof Ro}var qO=function(l,c,d){return function(l){var y=Sx(l,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return y._resolveInjectorDefTypes(),y}({name:d},c,l,d)},Za=function(){var l=function(){function c(){(0,M.Z)(this,c)}return(0,D.Z)(c,null,[{key:"create",value:function(h,y){return Array.isArray(h)?qO(h,y,""):qO(h.providers,h.parent,h.name||"")}}]),c}();return l.THROW_IF_NOT_FOUND=_h,l.NULL=new bx,l.\u0275prov=In({token:l,providedIn:"any",factory:function(){return Wo($p)}}),l.__NG_ELEMENT_ID__=-1,l}();function tP(l,c){jo(nb(l)[1],ee())}function Vh(l){for(var c=function(l){return Object.getPrototypeOf(l.prototype).constructor}(l.type),d=!0,h=[l];c;){var y=void 0;if(Zi(l))y=c.\u0275cmp||c.\u0275dir;else{if(c.\u0275cmp)throw new Error("Directives cannot inherit Components");y=c.\u0275dir}if(y){if(d){h.push(y);var w=l;w.inputs=qh(l.inputs),w.declaredInputs=qh(l.declaredInputs),w.outputs=qh(l.outputs);var H=y.hostBindings;H&&rP(l,H);var W=y.viewQuery,X=y.contentQueries;if(W&&nP(l,W),X&&Qb(l,X),K(l.inputs,y.inputs),K(l.declaredInputs,y.declaredInputs),K(l.outputs,y.outputs),Zi(y)&&y.data.animation){var me=l.data;me.animation=(me.animation||[]).concat(y.data.animation)}}var De=y.features;if(De)for(var Xe=0;Xe=0;h--){var y=l[h];y.hostVars=c+=y.hostVars,y.hostAttrs=My(y.hostAttrs,d=My(d,y.hostAttrs))}}(h)}function qh(l){return l===rt?{}:l===he?[]:l}function nP(l,c){var d=l.viewQuery;l.viewQuery=d?function(h,y){c(h,y),d(h,y)}:c}function Qb(l,c){var d=l.contentQueries;l.contentQueries=d?function(h,y,w){c(h,y,w),d(h,y,w)}:c}function rP(l,c){var d=l.hostBindings;l.hostBindings=d?function(h,y){c(h,y),d(h,y)}:c}var bg=null;function nf(){if(!bg){var l=Rt.Symbol;if(l&&l.iterator)bg=l.iterator;else for(var c=Object.getOwnPropertyNames(Map.prototype),d=0;d1&&void 0!==arguments[1]?arguments[1]:ht.Default,d=Se();if(null===d)return Wo(l,c);var h=ee();return Mv(h,d,ae(l),c)}function xg(l,c,d){var h=Se();return sa(h,Cr(),c)&&Ls(ge(),ho(),h,l,c,h[11],d,!1),xg}function d0(l,c,d,h,y){var H=y?"class":"style";yx(l,d,c.inputs[H],H,h)}function wg(l,c,d,h){var y=Se(),w=ge(),H=20+l,W=y[11],X=y[H]=vb(W,c,Ar.lFrame.currentNamespace),me=w.firstCreatePass?function(l,c,d,h,y,w,H){var W=c.consts,me=Kp(c,l,2,y,Js(W,w));return hg(c,d,me,Js(W,H)),null!==me.attrs&&vg(me,me.attrs,!1),null!==me.mergedAttrs&&vg(me,me.mergedAttrs,!0),null!==c.queries&&c.queries.elementStart(c,me),me}(H,w,y,0,c,d,h):w.data[H];lt(me,!0);var De=me.mergedAttrs;null!==De&&Ks(W,X,De);var Xe=me.classes;null!==Xe&&wb(W,X,Xe);var Ke=me.styles;null!==Ke&&xb(W,X,Ke),64!=(64&me.flags)&&ng(w,y,X,me),0===Ar.lFrame.elementDepthCount&&Wa(X,y),Ar.lFrame.elementDepthCount++,Co(me)&&(Fh(w,y,me),sx(w,me,y)),null!==h&&Rl(y,me)}function p0(){var l=ee();wt()?Zt():lt(l=l.parent,!1);var c=l;Ar.lFrame.elementDepthCount--;var d=ge();d.firstCreatePass&&(jo(d,l),ha(l)&&d.queries.elementEnd(l)),null!=c.classesWithoutHost&&function(l){return 0!=(16&l.flags)}(c)&&d0(d,c,Se(),c.classesWithoutHost,!0),null!=c.stylesWithoutHost&&function(l){return 0!=(32&l.flags)}(c)&&d0(d,c,Se(),c.stylesWithoutHost,!1)}function $x(l,c,d,h){wg(l,c,d,h),p0()}function Wd(l,c,d){var h=Se(),y=ge(),w=l+20,H=y.firstCreatePass?function(l,c,d,h,y){var w=c.consts,H=Js(w,h),W=Kp(c,l,8,"ng-container",H);return null!==H&&vg(W,H,!0),hg(c,d,W,Js(w,y)),null!==c.queries&&c.queries.elementStart(c,W),W}(w,y,h,c,d):y.data[w];lt(H,!0);var W=h[w]=h[11].createComment("");ng(y,h,W,H),Wa(W,h),Co(H)&&(Fh(y,h,H),sx(y,H,h)),null!=d&&Rl(h,H)}function Gh(){var l=ee(),c=ge();wt()?Zt():lt(l=l.parent,!1),c.firstCreatePass&&(jo(c,l),ha(l)&&c.queries.elementEnd(l))}function f0(l,c,d){Wd(l,c,d),Gh()}function h0(){return Se()}function Fc(l){return!!l&&"function"==typeof l.then}function ew(l){return!!l&&"function"==typeof l.subscribe}var m0=ew;function v0(l,c,d,h){var y=Se(),w=ge(),H=ee();return tw(w,y,y[11],H,l,c,!!d,h),v0}function kg(l,c){var d=ee(),h=Se(),y=ge();return tw(y,h,gx(Ye(y.data),d,h),d,l,c,!1),kg}function tw(l,c,d,h,y,w,H,W){var X=Co(h),De=l.firstCreatePass&&NO(l),Xe=c[8],Ke=jb(c),mt=!0;if(3&h.type||W){var Mt=Ii(h,c),zt=W?W(Mt):Mt,hn=Ke.length,Fn=W?function(Qc){return W(jr(Qc[h.index]))}:h.index;if(St(d)){var _n=null;if(!W&&X&&(_n=function(l,c,d,h){var y=l.cleanup;if(null!=y)for(var w=0;wX?W[X]:null}"string"==typeof H&&(w+=2)}return null}(l,c,y,h.index)),null!==_n)(_n.__ngLastListenerFn__||_n).__ngNextListenerFn__=w,_n.__ngLastListenerFn__=w,mt=!1;else{w=Eg(h,c,Xe,w,!1);var lr=d.listen(zt,y,w);Ke.push(w,lr),De&&De.push(y,Fn,hn,hn+1)}}else w=Eg(h,c,Xe,w,!0),zt.addEventListener(y,w,H),Ke.push(w),De&&De.push(y,Fn,hn,H)}else w=Eg(h,c,Xe,w,!1);var Mi,Wr=h.outputs;if(mt&&null!==Wr&&(Mi=Wr[y])){var go=Mi.length;if(go)for(var ca=0;ca0&&void 0!==arguments[0]?arguments[0]:1;return Pa(l)}function rw(l,c){for(var d=null,h=function(l){var c=l.attrs;if(null!=c){var d=c.indexOf(5);if(0==(1&d))return c[d+1]}return null}(l),y=0;y1&&void 0!==arguments[1]?arguments[1]:0,d=arguments.length>2?arguments[2]:void 0,h=Se(),y=ge(),w=Kp(y,20+l,16,null,d||null);null===w.projection&&(w.projection=c),Zt(),64!=(64&w.flags)&&WD(y,h,w)}function g0(l,c,d){return pf(l,"",c,"",d),g0}function pf(l,c,d,h,y){var w=Se(),H=of(w,c,d,h);return H!==Ur&&Ls(ge(),ho(),w,l,H,w[11],y,!1),pf}function Mg(l,c,d,h,y,w,H){var W=Se(),X=af(W,c,d,h,y,w);return X!==Ur&&Ls(ge(),ho(),W,l,X,W[11],H,!1),Mg}function fw(l,c,d,h,y){for(var w=l[d+1],H=null===c,W=h?uu(w):is(w),X=!1;0!==W&&(!1===X||H);){var De=l[W+1];OP(l[W],c)&&(X=!0,l[W+1]=h?ex(De):Ab(De)),W=h?uu(De):is(De)}X&&(l[d+1]=h?Ab(w):ex(w))}function OP(l,c){return null===l||null==c||(Array.isArray(l)?l[1]:l)===c||!(!Array.isArray(l)||"string"!=typeof c)&&xd(l,c)>=0}var la={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function hw(l){return l.substring(la.key,la.keyEnd)}function mw(l){return l.substring(la.value,la.valueEnd)}function C0(l,c){var d=la.textEnd;return d===c?-1:(c=la.keyEnd=function(l,c,d){for(;c32;)c++;return c}(l,la.key=c,d),Gd(l,c,d))}function gw(l,c){var d=la.textEnd,h=la.key=Gd(l,c,d);return d===h?-1:(h=la.keyEnd=function(l,c,d){for(var h;c=65&&(-33&h)<=90||h>=48&&h<=57);)c++;return c}(l,h,d),h=yw(l,h,d),h=la.value=Gd(l,h,d),h=la.valueEnd=function(l,c,d){for(var h=-1,y=-1,w=-1,H=c,W=H;H32&&(W=H),w=y,y=h,h=-33&X}return W}(l,h,d),yw(l,h,d))}function _w(l){la.key=0,la.keyEnd=0,la.value=0,la.valueEnd=0,la.textEnd=l.length}function Gd(l,c,d){for(;c=0;d=gw(c,d))M0(l,hw(c),mw(c))}function x0(l){nl(es,Zl,l,!0)}function Zl(l,c){for(var d=function(l){return _w(l),C0(l,Gd(l,0,la.textEnd))}(c);d>=0;d=C0(c,d))es(l,hw(c),!0)}function tl(l,c,d,h){var y=Se(),w=ge(),H=Er(2);w.firstUpdatePass&&k0(w,l,H,h),c!==Ur&&sa(y,H,c)&&A0(w,w.data[Ao()],y,y[11],l,y[H+1]=function(l,c){return null==l||("string"==typeof c?l+=c:"object"==typeof l&&(l=z(su(l)))),l}(c,d),h,H)}function nl(l,c,d,h){var y=ge(),w=Er(2);y.firstUpdatePass&&k0(y,null,w,h);var H=Se();if(d!==Ur&&sa(H,w,d)){var W=y.data[Ao()];if(O0(W,h)&&!w0(y,w)){var me=h?W.classesWithoutHost:W.stylesWithoutHost;null!==me&&(d=J(me,d||"")),d0(y,W,H,d,h)}else!function(l,c,d,h,y,w,H,W){y===Ur&&(y=he);for(var X=0,me=0,De=0=l.expandoStartIndex}function k0(l,c,d,h){var y=l.data;if(null===y[d+1]){var w=y[Ao()],H=w0(l,d);O0(w,h)&&null===c&&!H&&(c=!1),c=function(l,c,d,h){var y=Ye(l),w=h?c.residualClasses:c.residualStyles;if(null===y)0===(h?c.classBindings:c.styleBindings)&&(d=Jh(d=E0(null,l,c,d,h),c.attrs,h),w=null);else{var W=c.directiveStylingLast;if(-1===W||l[W]!==y)if(d=E0(y,l,c,d,h),null===w){var me=function(l,c,d){var h=d?c.classBindings:c.styleBindings;if(0!==is(h))return l[uu(h)]}(l,c,h);void 0!==me&&Array.isArray(me)&&function(l,c,d,h){l[uu(d?c.classBindings:c.styleBindings)]=h}(l,c,h,me=Jh(me=E0(null,l,c,me[1],h),c.attrs,h))}else w=function(l,c,d){for(var h=void 0,y=c.directiveEnd,w=1+c.directiveStylingLast;w0)&&(me=!0):De=d,y)if(0!==X){var mt=uu(l[W+1]);l[h+1]=Mb(mt,W),0!==mt&&(l[mt+1]=$T(l[mt+1],h)),l[W+1]=function(l,c){return 131071&l|c<<17}(l[W+1],h)}else l[h+1]=Mb(W,0),0!==W&&(l[W+1]=$T(l[W+1],h)),W=h;else l[h+1]=Mb(X,0),0===W?W=h:l[X+1]=$T(l[X+1],h),X=h;me&&(l[h+1]=Ab(l[h+1])),fw(l,De,h,!0),fw(l,De,h,!1),function(l,c,d,h,y){var w=y?l.residualClasses:l.residualStyles;null!=w&&"string"==typeof c&&xd(w,c)>=0&&(d[h+1]=ex(d[h+1]))}(c,De,l,h,w),H=Mb(W,X),w?c.classBindings=H:c.styleBindings=H}(y,w,c,d,H,h)}}function E0(l,c,d,h,y){var w=null,H=d.directiveEnd,W=d.directiveStylingLast;for(-1===W?W=d.directiveStart:W++;W0;){var X=l[y],me=Array.isArray(X),De=me?X[1]:X,Xe=null===De,Ke=d[y+1];Ke===Ur&&(Ke=Xe?he:void 0);var mt=Xe?gh(Ke,h):De===h?Ke:void 0;if(me&&!Ag(mt)&&(mt=gh(X,h)),Ag(mt)&&(W=mt,H))return W;var Mt=l[y+1];y=H?uu(Mt):is(Mt)}if(null!==c){var zt=w?c.residualClasses:c.residualStyles;null!=zt&&(W=gh(zt,h))}return W}function Ag(l){return void 0!==l}function O0(l,c){return 0!=(l.flags&(c?16:32))}function P0(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",d=Se(),h=ge(),y=l+20,w=h.firstCreatePass?Kp(h,y,1,c,null):h.data[y],H=d[y]=Kv(d[11],c);ng(h,d,H,w),lt(w,!1)}function I0(l){return Dg("",l,""),I0}function Dg(l,c,d){var h=Se(),y=of(h,l,c,d);return y!==Ur&&du(h,Ao(),y),Dg}function R0(l,c,d,h,y){var w=Se(),H=af(w,l,c,d,h,y);return H!==Ur&&du(w,Ao(),H),R0}function N0(l,c,d,h,y,w,H){var W=Se(),X=sf(W,l,c,d,h,y,w,H);return X!==Ur&&du(W,Ao(),X),N0}function Aw(l,c,d){nl(es,Zl,of(Se(),l,c,d),!0)}function Pw(l,c,d){var h=Se();return sa(h,Cr(),c)&&Ls(ge(),ho(),h,l,c,h[11],d,!0),Pw}function Iw(l,c,d){var h=Se();if(sa(h,Cr(),c)){var w=ge(),H=ho();Ls(w,H,h,l,c,gx(Ye(w.data),H,h),d,!0)}return Iw}var hf=void 0,H5=["en",[["a","p"],["AM","PM"],hf],[["AM","PM"],hf,hf],[["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"]],hf,[["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"]],hf,[["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}",hf,"{1} 'at' {0}",hf],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(l){var c=Math.floor(Math.abs(l)),d=l.toString().replace(/^[^.]*\.?/,"").length;return 1===c&&0===d?1:5}],Qh={};function Rw(l){var c=function(l){return l.toLowerCase().replace(/_/g,"-")}(l),d=XP(c);if(d)return d;var h=c.split("-")[0];if(d=XP(h))return d;if("en"===h)return H5;throw new Error('Missing locale data for the locale "'.concat(l,'".'))}function KP(l){return Rw(l)[Og.PluralCase]}function XP(l){return l in Qh||(Qh[l]=Rt.ng&&Rt.ng.common&&Rt.ng.common.locales&&Rt.ng.common.locales[l]),Qh[l]}var Og=function(l){return l[l.LocaleId=0]="LocaleId",l[l.DayPeriodsFormat=1]="DayPeriodsFormat",l[l.DayPeriodsStandalone=2]="DayPeriodsStandalone",l[l.DaysFormat=3]="DaysFormat",l[l.DaysStandalone=4]="DaysStandalone",l[l.MonthsFormat=5]="MonthsFormat",l[l.MonthsStandalone=6]="MonthsStandalone",l[l.Eras=7]="Eras",l[l.FirstDayOfWeek=8]="FirstDayOfWeek",l[l.WeekendRange=9]="WeekendRange",l[l.DateFormat=10]="DateFormat",l[l.TimeFormat=11]="TimeFormat",l[l.DateTimeFormat=12]="DateTimeFormat",l[l.NumberSymbols=13]="NumberSymbols",l[l.NumberFormats=14]="NumberFormats",l[l.CurrencyCode=15]="CurrencyCode",l[l.CurrencySymbol=16]="CurrencySymbol",l[l.CurrencyName=17]="CurrencyName",l[l.Currencies=18]="Currencies",l[l.Directionality=19]="Directionality",l[l.PluralCase=20]="PluralCase",l[l.ExtraData=21]="ExtraData",l}({}),F0="en-US";function Nw(l){en(l,"Expected localeId to be defined"),"string"==typeof l&&l.toLowerCase().replace(/_/g,"-")}function OI(l,c,d){var h=ge();if(h.firstCreatePass){var y=Zi(l);Jw(d,h.data,h.blueprint,y,!0),Jw(c,h.data,h.blueprint,y,!1)}}function Jw(l,c,d,h,y){if(l=ae(l),Array.isArray(l))for(var w=0;w>20;if(tf(l)||!l.multi){var Mt=new Xi(me,y,Wh),zt=Xw(X,c,y?Xe:Xe+mt,Ke);-1===zt?(Ev(fh(De,W),H,X),Qw(H,l,c.length),c.push(X),De.directiveStart++,De.directiveEnd++,y&&(De.providerIndexes+=1048576),d.push(Mt),W.push(Mt)):(d[zt]=Mt,W[zt]=Mt)}else{var hn=Xw(X,c,Xe+mt,Ke),Fn=Xw(X,c,Xe,Xe+mt),Kn=Fn>=0&&d[Fn];if(y&&!Kn||!y&&!(hn>=0&&d[hn])){Ev(fh(De,W),H,X);var lr=function(l,c,d,h,y){var w=new Xi(l,d,Wh);return w.multi=[],w.index=c,w.componentProviders=0,Kw(w,y,h&&!d),w}(y?$w:z0,d.length,y,h,me);!y&&Kn&&(d[Fn].providerFactory=lr),Qw(H,l,c.length,0),c.push(X),De.directiveStart++,De.directiveEnd++,y&&(De.providerIndexes+=1048576),d.push(lr),W.push(lr)}else Qw(H,l,hn>-1?hn:Fn,Kw(d[y?Fn:hn],me,!y&&h));!y&&h&&Kn&&d[Fn].componentProviders++}}}function Qw(l,c,d,h){var y=tf(c);if(y||function(l){return!!l.useClass}(c)){var H=(c.useClass||c).prototype.ngOnDestroy;if(H){var W=l.destroyHooks||(l.destroyHooks=[]);if(!y&&c.multi){var X=W.indexOf(d);-1===X?W.push(d,[h,H]):W[X+1].push(h,H)}else W.push(d,H)}}}function Kw(l,c,d){return d&&l.componentProviders++,l.multi.push(c)-1}function Xw(l,c,d,h){for(var y=d;y1&&void 0!==arguments[1]?arguments[1]:[];return function(d){d.providersResolver=function(h,y){return OI(h,y?y(l):l,c)}}}var mB=function l(){(0,M.Z)(this,l)},tk=function l(){(0,M.Z)(this,l)},_B=function(){function l(){(0,M.Z)(this,l)}return(0,D.Z)(l,[{key:"resolveComponentFactory",value:function(d){throw function(l){var c=Error("No component factory found for ".concat(z(l),". Did you add it to @NgModule.entryComponents?"));return c.ngComponent=l,c}(d)}}]),l}(),Zg=function(){var l=function c(){(0,M.Z)(this,c)};return l.NULL=new _B,l}();function W0(){}function $h(l,c){return new fu(Ii(l,c))}var SB=function(){return $h(ee(),Se())},fu=function(){var l=function c(d){(0,M.Z)(this,c),this.nativeElement=d};return l.__NG_ELEMENT_ID__=SB,l}();function nk(l){return l instanceof fu?l.nativeElement:l}var G0=function l(){(0,M.Z)(this,l)},TB=function(){var l=function c(){(0,M.Z)(this,c)};return l.__NG_ELEMENT_ID__=function(){return rk()},l}(),rk=function(){var l=Se(),d=ba(ee().index,l);return function(l){return l[11]}(fr(d)?d:l)},ik=function(){var l=function c(){(0,M.Z)(this,c)};return l.\u0275prov=In({token:l,providedIn:"root",factory:function(){return null}}),l}(),ok=function l(c){(0,M.Z)(this,l),this.full=c,this.major=c.split(".")[0],this.minor=c.split(".")[1],this.patch=c.split(".").slice(2).join(".")},NI=new ok("12.2.8"),ak=function(){function l(){(0,M.Z)(this,l)}return(0,D.Z)(l,[{key:"supports",value:function(d){return Oc(d)}},{key:"create",value:function(d){return new kB(d)}}]),l}(),ZI=function(c,d){return d},kB=function(){function l(c){(0,M.Z)(this,l),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=c||ZI}return(0,D.Z)(l,[{key:"forEachItem",value:function(d){var h;for(h=this._itHead;null!==h;h=h._next)d(h)}},{key:"forEachOperation",value:function(d){for(var h=this._itHead,y=this._removalsHead,w=0,H=null;h||y;){var W=!y||h&&h.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==d;){var w=c[d.index];if(null!==w&&h.push(jr(w)),fo(w))for(var H=10;H-1&&(Mh(d,y),Td(h,y))}this._attachedToViewContainer=!1}_b(this._lView[1],this._lView)}},{key:"onDestroy",value:function(d){Bb(this._lView[1],this._lView,null,d)}},{key:"markForCheck",value:function(){fx(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){mx(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(l,c,d){Bn(!0);try{mx(l,c,d)}finally{Bn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function(l,c){Ph(l,c,c[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(d){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=d}}]),l}(),lk=function(l){(0,A.Z)(d,l);var c=(0,_.Z)(d);function d(h){var y;return(0,M.Z)(this,d),(y=c.call(this,h))._view=h,y}return(0,D.Z)(d,[{key:"detectChanges",value:function(){OO(this._view)}},{key:"checkNoChanges",value:function(){!function(l){Bn(!0);try{OO(l)}finally{Bn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),d}(Bg),zI=function(l){return function(l,c,d){if(Si(l)&&!d){var h=ba(l.index,c);return new Bg(h,h)}return 47&l.type?new Bg(c[16],c):null}(ee(),Se(),16==(16&l))},WI=function(){var l=function c(){(0,M.Z)(this,c)};return l.__NG_ELEMENT_ID__=zI,l}(),GI=[new sk],YI=new Lg([new ak]),PB=new Fg(GI),RB=function(){return Ug(ee(),Se())},tm=function(){var l=function c(){(0,M.Z)(this,c)};return l.__NG_ELEMENT_ID__=RB,l}(),ck=function(l){(0,A.Z)(d,l);var c=(0,_.Z)(d);function d(h,y,w){var H;return(0,M.Z)(this,d),(H=c.call(this))._declarationLView=h,H._declarationTContainer=y,H.elementRef=w,H}return(0,D.Z)(d,[{key:"createEmbeddedView",value:function(y){var w=this._declarationTContainer.tViews,H=Zh(this._declarationLView,w,y,16,null,w.declTNode,null,null,null,null);H[17]=this._declarationLView[this._declarationTContainer.index];var X=this._declarationLView[19];return null!==X&&(H[19]=X.createEmbeddedView(w)),Lh(w,H,y),new Bg(H)}}]),d}(tm);function Ug(l,c){return 4&l.type?new ck(c,l,$h(l,c)):null}var Bc=function l(){(0,M.Z)(this,l)},J0=function l(){(0,M.Z)(this,l)},dk=function(){return $I(ee(),Se())},vf=function(){var l=function c(){(0,M.Z)(this,c)};return l.__NG_ELEMENT_ID__=dk,l}(),fk=function(l){(0,A.Z)(d,l);var c=(0,_.Z)(d);function d(h,y,w){var H;return(0,M.Z)(this,d),(H=c.call(this))._lContainer=h,H._hostTNode=y,H._hostLView=w,H}return(0,D.Z)(d,[{key:"element",get:function(){return $h(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new yd(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var y=Dy(this._hostTNode,this._hostLView);if(uD(y)){var w=Ap(y,this._hostLView),H=ph(y);return new yd(w[1].data[H+8],w)}return new yd(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(y){var w=XI(this._lContainer);return null!==w&&w[y]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(y,w,H){var W=y.createEmbeddedView(w||{});return this.insert(W,H),W}},{key:"createComponent",value:function(y,w,H,W,X){var me=H||this.parentInjector;if(!X&&null==y.ngModule&&me){var De=me.get(Bc,null);De&&(X=De)}var Xe=y.create(me,W,void 0,X);return this.insert(Xe.hostView,w),Xe}},{key:"insert",value:function(y,w){var H=y._lView,W=H[1];if(function(l){return fo(l[3])}(H)){var X=this.indexOf(y);if(-1!==X)this.detach(X);else{var me=H[3],De=new fk(me,me[6],me[3]);De.detach(De.indexOf(y))}}var Xe=this._adjustIndex(w),Ke=this._lContainer;!function(l,c,d,h){var y=10+h,w=d.length;h>0&&(d[y-1][4]=c),h1&&void 0!==arguments[1]?arguments[1]:0;return null==y?this.length+w:y}}]),d}(vf);function XI(l){return l[8]}function hk(l){return l[8]||(l[8]=[])}function $I(l,c){var d,h=c[l.index];if(fo(h))d=h;else{var y;if(8&l.type)y=jr(h);else{var w=c[11];y=w.createComment("");var H=Ii(l,c);Ld(w,tg(w,H),y,function(l,c){return St(l)?l.nextSibling(c):c.nextSibling}(w,H),!1)}c[l.index]=d=Hb(h,c,y,l),Vb(c,d)}return new fk(d,l,c)}var Uu={},bf=function(l){(0,A.Z)(d,l);var c=(0,_.Z)(d);function d(h){var y;return(0,M.Z)(this,d),(y=c.call(this)).ngModule=h,y}return(0,D.Z)(d,[{key:"resolveComponentFactory",value:function(y){var w=yi(y);return new mC(w,this.ngModule)}}]),d}(Zg);function fC(l){var c=[];for(var d in l)l.hasOwnProperty(d)&&c.push({propName:l[d],templateName:d});return c}var S3=new Ro("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Na}}),mC=function(l){(0,A.Z)(d,l);var c=(0,_.Z)(d);function d(h,y){var w;return(0,M.Z)(this,d),(w=c.call(this)).componentDef=h,w.ngModule=y,w.componentType=h.type,w.selector=function(l){return l.map(tO).join(",")}(h.selectors),w.ngContentSelectors=h.ngContentSelectors?h.ngContentSelectors:[],w.isBoundToModule=!!y,w}return(0,D.Z)(d,[{key:"inputs",get:function(){return fC(this.componentDef.inputs)}},{key:"outputs",get:function(){return fC(this.componentDef.outputs)}},{key:"create",value:function(y,w,H,W){var _n,Kn,X=(W=W||this.ngModule)?function(l,c){return{get:function(h,y,w){var H=l.get(h,Uu,w);return H!==Uu||y===Uu?H:c.get(h,y,w)}}}(y,W.injector):y,me=X.get(G0,gt),De=X.get(ik,null),Xe=me.createRenderer(null,this.componentDef),Ke=this.componentDef.selectors[0][0]||"div",mt=H?function(l,c,d){if(St(l))return l.selectRootElement(c,d===Cn.ShadowDom);var y="string"==typeof c?l.querySelector(c):c;return y.textContent="",y}(Xe,H,this.componentDef.encapsulation):vb(me.createRenderer(null,this.componentDef),Ke,function(l){var c=l.toLowerCase();return"svg"===c?re:"math"===c?"http://www.w3.org/1998/MathML/":null}(Ke)),Mt=this.componentDef.onPush?576:528,zt=function(l,c){return{components:[],scheduler:l||Na,clean:RO,playerHandler:c||null,flags:0}}(),hn=pg(0,null,null,1,0,null,null,null,null,null),Fn=Zh(null,hn,zt,Mt,null,null,me,Xe,De,X);Tt(Fn);try{var lr=function(l,c,d,h,y,w){var H=d[1];d[20]=l;var X=Kp(H,20,2,"#host",null),me=X.mergedAttrs=c.hostAttrs;null!==me&&(vg(X,me,!0),null!==l&&(Ks(y,l,me),null!==X.classes&&wb(y,l,X.classes),null!==X.styles&&xb(y,l,X.styles)));var De=h.createRenderer(l,c),Xe=Zh(d,dg(c),null,c.onPush?64:16,d[20],X,h,De,w||null,null);return H.firstCreatePass&&(Ev(fh(X,d),H,c.type),xO(H,X),kO(X,d.length,1)),Vb(d,Xe),d[20]=Xe}(mt,this.componentDef,Fn,me,Xe);if(mt)if(H)Ks(Xe,mt,["ng-version",NI.full]);else{var Wr=function(l){for(var c=[],d=[],h=1,y=2;h0&&wb(Xe,mt,go.join(" "))}if(Kn=Oa(hn,20),void 0!==w)for(var ca=Kn.projection=[],da=0;da1&&void 0!==arguments[1]?arguments[1]:Za.THROW_IF_NOT_FOUND,H=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ht.Default;return y===Za||y===Bc||y===$p?this:this._r3Injector.get(y,w,H)}},{key:"destroy",value:function(){var y=this._r3Injector;!y.destroyed&&y.destroy(),this.destroyCbs.forEach(function(w){return w()}),this.destroyCbs=null}},{key:"onDestroy",value:function(y){this.destroyCbs.push(y)}}]),d}(Bc),Jg=function(l){(0,A.Z)(d,l);var c=(0,_.Z)(d);function d(h){var y;return(0,M.Z)(this,d),(y=c.call(this)).moduleType=h,null!==fi(h)&&function(l){var c=new Set;!function d(h){var y=fi(h,!0),w=y.id;null!==w&&(function(l,c,d){if(c&&c!==d)throw new Error("Duplicate module registered for ".concat(l," - ").concat(z(c)," vs ").concat(z(c.name)))}(w,Hu.get(w),h),Hu.set(w,h));var me,W=Rs(y.imports),X=(0,C.Z)(W);try{for(X.s();!(me=X.n()).done;){var De=me.value;c.has(De)||(c.add(De),d(De))}}catch(Xe){X.e(Xe)}finally{X.f()}}(l)}(h),y}return(0,D.Z)(d,[{key:"create",value:function(y){return new $B(this.moduleType,y)}}]),d}(J0);function k3(l,c,d){var h=Qn()+l,y=Se();return y[h]===Ur?Bu(y,h,d?c.call(d):c()):function(l,c){return l[c]}(y,h)}function Lk(l,c,d,h){return Uk(Se(),Qn(),l,c,d,h)}function gC(l,c,d,h,y){return M3(Se(),Qn(),l,c,d,h,y)}function Qg(l,c){var d=l[c];return d===Ur?void 0:d}function Uk(l,c,d,h,y,w){var H=c+d;return sa(l,H,y)?Bu(l,H+1,w?h.call(w,y):h(y)):Qg(l,H+1)}function M3(l,c,d,h,y,w,H){var W=c+d;return Pc(l,W,y,w)?Bu(l,W+2,H?h.call(H,y,w):h(y,w)):Qg(l,W+2)}function Wi(l,c){var h,d=ge(),y=l+20;d.firstCreatePass?(h=function(l,c){if(c)for(var d=c.length-1;d>=0;d--){var h=c[d];if(l===h.name)return h}throw new le("302","The pipe '".concat(l,"' could not be found!"))}(c,d.pipeRegistry),d.data[y]=h,h.onDestroy&&(d.destroyHooks||(d.destroyHooks=[])).push(y,h.onDestroy)):h=d.data[y];var w=h.factory||(h.factory=Ka(h.type)),H=Yt(Wh);try{var W=Ay(!1),X=w();return Ay(W),function(l,c,d,h){d>=l.data.length&&(l.data[d]=null,l.blueprint[d]=null),c[d]=h}(d,Se(),y,X),X}finally{Yt(H)}}function to(l,c,d){var h=l+20,y=Se(),w=Xa(y,h);return lm(y,sm(y,h)?Uk(y,Qn(),c,w.transform,d,w):w.transform(d))}function Kg(l,c,d,h){var y=l+20,w=Se(),H=Xa(w,y);return lm(w,sm(w,y)?M3(w,Qn(),c,H.transform,d,h,H):H.transform(d,h))}function sm(l,c){return l[1].data[c].pure}function lm(l,c){return Vd.isWrapped(c)&&(c=Vd.unwrap(c),l[hr()]=Ur),c}function Uc(l){return function(c){setTimeout(l,void 0,c)}}var vu=function(l){(0,A.Z)(d,l);var c=(0,_.Z)(d);function d(){var h,y=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,M.Z)(this,d),(h=c.call(this)).__isAsync=y,h}return(0,D.Z)(d,[{key:"emit",value:function(y){(0,U.Z)((0,B.Z)(d.prototype),"next",this).call(this,y)}},{key:"subscribe",value:function(y,w,H){var W,X,me,De=y,Xe=w||function(){return null},Ke=H;if(y&&"object"==typeof y){var mt=y;De=null===(W=mt.next)||void 0===W?void 0:W.bind(mt),Xe=null===(X=mt.error)||void 0===X?void 0:X.bind(mt),Ke=null===(me=mt.complete)||void 0===me?void 0:me.bind(mt)}this.__isAsync&&(Xe=Uc(Xe),De&&(De=Uc(De)),Ke&&(Ke=Uc(Ke)));var Mt=(0,U.Z)((0,B.Z)(d.prototype),"subscribe",this).call(this,{next:De,error:Xe,complete:Ke});return y instanceof E.w&&y.add(Mt),Mt}}]),d}(x.xQ);function Cf(){return this._results[nf()]()}var Hc=function(){function l(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,M.Z)(this,l),this._emitDistinctChangesOnly=c,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var d=nf(),h=l.prototype;h[d]||(h[d]=Cf)}return(0,D.Z)(l,[{key:"changes",get:function(){return this._changes||(this._changes=new vu)}},{key:"get",value:function(d){return this._results[d]}},{key:"map",value:function(d){return this._results.map(d)}},{key:"filter",value:function(d){return this._results.filter(d)}},{key:"find",value:function(d){return this._results.find(d)}},{key:"reduce",value:function(d,h){return this._results.reduce(d,h)}},{key:"forEach",value:function(d){this._results.forEach(d)}},{key:"some",value:function(d){return this._results.some(d)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(d,h){var y=this;y.dirty=!1;var w=As(d);(this._changesDetected=!function(l,c,d){if(l.length!==c.length)return!1;for(var h=0;h0&&void 0!==arguments[0]?arguments[0]:[];(0,M.Z)(this,l),this.queries=c}return(0,D.Z)(l,[{key:"createEmbeddedView",value:function(d){var h=d.queries;if(null!==h){for(var y=null!==d.contentQueries?d.contentQueries[0]:h.length,w=[],H=0;H2&&void 0!==arguments[2]?arguments[2]:null;(0,M.Z)(this,l),this.predicate=c,this.flags=d,this.read=h},Vk=function(){function l(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,M.Z)(this,l),this.queries=c}return(0,D.Z)(l,[{key:"elementStart",value:function(d,h){for(var y=0;y1&&void 0!==arguments[1]?arguments[1]:-1;(0,M.Z)(this,l),this.metadata=c,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=d}return(0,D.Z)(l,[{key:"elementStart",value:function(d,h){this.isApplyingToNode(h)&&this.matchTNode(d,h)}},{key:"elementEnd",value:function(d){this._declarationNodeIndex===d.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(d,h){this.elementStart(d,h)}},{key:"embeddedTView",value:function(d,h){return this.isApplyingToNode(d)?(this.crossesNgTemplate=!0,this.addMatch(-d.index,h),new l(this.metadata)):null}},{key:"isApplyingToNode",value:function(d){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var h=this._declarationNodeIndex,y=d.parent;null!==y&&8&y.type&&y.index!==h;)y=y.parent;return h===(null!==y?y.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(d,h){var y=this.metadata.predicate;if(Array.isArray(y))for(var w=0;w0)h.push(H[W/2]);else{for(var me=w[W+1],De=c[-X],Xe=10;Xe0&&(W=setTimeout(function(){H._callbacks=H._callbacks.filter(function(X){return X.timeoutId!==W}),h(H._didWork,H.getPendingTasks())},y)),this._callbacks.push({doneCb:h,timeoutId:W,updateCb:w})}},{key:"whenStable",value:function(h,y,w){if(w&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(h,y,w),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(h,y,w){return[]}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Wo(_u))},l.\u0275prov=In({token:l,factory:l.\u0275fac}),l}(),Df=function(){var l=function(){function c(){(0,M.Z)(this,c),this._applications=new Map,d_.addToWindow(this)}return(0,D.Z)(c,[{key:"registerApplication",value:function(h,y){this._applications.set(h,y)}},{key:"unregisterApplication",value:function(h){this._applications.delete(h)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(h){return this._applications.get(h)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(h){var y=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return d_.findTestabilityInTree(this,h,y)}}]),c}();return l.\u0275fac=function(d){return new(d||l)},l.\u0275prov=In({token:l,factory:l.\u0275fac}),l}();function oR(l){d_=l}var d_=new(function(){function l(){(0,M.Z)(this,l)}return(0,D.Z)(l,[{key:"addToWindow",value:function(d){}},{key:"findTestabilityInTree",value:function(d,h,y){return null}}]),l}()),bE=!0,CE=!1;function Sm(){return CE=!0,bE}function SE(){if(CE)throw new Error("Cannot enable prod mode after platform setup.");bE=!1}var Fl,aR=function(l,c,d){var h=new Jg(d);return Promise.resolve(h)},Tm=new Ro("AllowMultipleToken"),WC=function l(c,d){(0,M.Z)(this,l),this.name=c,this.token=d};function xm(l){if(Fl&&!Fl.destroyed&&!Fl.injector.get(Tm,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Fl=l.get(xE);var c=l.get(Qd,null);return c&&c.forEach(function(d){return d()}),Fl}function GC(l,c){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],h="Platform: ".concat(c),y=new Ro(h);return function(){var w=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],H=TE();if(!H||H.injector.get(Tm,!1))if(l)l(d.concat(w).concat({provide:y,useValue:!0}));else{var W=d.concat(w).concat({provide:y,useValue:!0},{provide:Bh,useValue:"platform"});xm(Za.create({providers:W,name:h}))}return dR(y)}}function dR(l){var c=TE();if(!c)throw new Error("No platform exists!");if(!c.injector.get(l,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return c}function TE(){return Fl&&!Fl.destroyed?Fl:null}var xE=function(){var l=function(){function c(d){(0,M.Z)(this,c),this._injector=d,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return(0,D.Z)(c,[{key:"bootstrapModuleFactory",value:function(h,y){var w=this,me=function(l,c){return"noop"===l?new jC:("zone.js"===l?void 0:l)||new _u({enableLongStackTrace:Sm(),shouldCoalesceEventChangeDetection:!!(null==c?void 0:c.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==c?void 0:c.ngZoneRunCoalescing)})}(y?y.ngZone:void 0,{ngZoneEventCoalescing:y&&y.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:y&&y.ngZoneRunCoalescing||!1}),De=[{provide:_u,useValue:me}];return me.run(function(){var Xe=Za.create({providers:De,parent:w.injector,name:h.moduleType.name}),Ke=h.create(Xe),mt=Ke.injector.get(Tc,null);if(!mt)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return me.runOutsideAngular(function(){var Mt=me.onError.subscribe({next:function(hn){mt.handleError(hn)}});Ke.onDestroy(function(){YC(w._modules,Ke),Mt.unsubscribe()})}),function(l,c,d){try{var h=((Mt=Ke.injector.get(wf)).runInitializers(),Mt.donePromise.then(function(){return Nw(Ke.injector.get(ym,F0)||F0),w._moduleDoBootstrap(Ke),Ke}));return Fc(h)?h.catch(function(y){throw c.runOutsideAngular(function(){return l.handleError(y)}),y}):h}catch(y){throw c.runOutsideAngular(function(){return l.handleError(y)}),y}var Mt}(mt,me)})}},{key:"bootstrapModule",value:function(h){var y=this,w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],H=wE({},w);return aR(0,0,h).then(function(W){return y.bootstrapModuleFactory(W,H)})}},{key:"_moduleDoBootstrap",value:function(h){var y=h.injector.get(wm);if(h._bootstrapComponents.length>0)h._bootstrapComponents.forEach(function(w){return y.bootstrap(w)});else{if(!h.instance.ngDoBootstrap)throw new Error("The module ".concat(z(h.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");h.instance.ngDoBootstrap(y)}this._modules.push(h)}},{key:"onDestroy",value:function(h){this._destroyListeners.push(h)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(h){return h.destroy()}),this._destroyListeners.forEach(function(h){return h()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Wo(Za))},l.\u0275prov=In({token:l,factory:l.\u0275fac}),l}();function wE(l,c){return Array.isArray(c)?c.reduce(wE,l):Object.assign(Object.assign({},l),c)}var wm=function(){var l=function(){function c(d,h,y,w,H){var W=this;(0,M.Z)(this,c),this._zone=d,this._injector=h,this._exceptionHandler=y,this._componentFactoryResolver=w,this._initStatus=H,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){W._zone.run(function(){W.tick()})}});var X=new S.y(function(De){W._stable=W._zone.isStable&&!W._zone.hasPendingMacrotasks&&!W._zone.hasPendingMicrotasks,W._zone.runOutsideAngular(function(){De.next(W._stable),De.complete()})}),me=new S.y(function(De){var Xe;W._zone.runOutsideAngular(function(){Xe=W._zone.onStable.subscribe(function(){_u.assertNotInAngularZone(),HC(function(){!W._stable&&!W._zone.hasPendingMacrotasks&&!W._zone.hasPendingMicrotasks&&(W._stable=!0,De.next(!0))})})});var Ke=W._zone.onUnstable.subscribe(function(){_u.assertInAngularZone(),W._stable&&(W._stable=!1,W._zone.runOutsideAngular(function(){De.next(!1)}))});return function(){Xe.unsubscribe(),Ke.unsubscribe()}});this.isStable=(0,O.T)(X,me.pipe((0,L.B)()))}return(0,D.Z)(c,[{key:"bootstrap",value:function(h,y){var H,w=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");H=h instanceof tk?h:this._componentFactoryResolver.resolveComponentFactory(h),this.componentTypes.push(H.componentType);var W=function(l){return l.isBoundToModule}(H)?void 0:this._injector.get(Bc),me=H.create(Za.NULL,[],y||H.selector,W),De=me.location.nativeElement,Xe=me.injector.get(yE,null),Ke=Xe&&me.injector.get(Df);return Xe&&Ke&&Ke.registerApplication(De,Xe),me.onDestroy(function(){w.detachView(me.hostView),YC(w.components,me),Ke&&Ke.unregisterApplication(De)}),this._loadComponent(me),me}},{key:"tick",value:function(){var h=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var w,y=(0,C.Z)(this._views);try{for(y.s();!(w=y.n()).done;)w.value.detectChanges()}catch(De){y.e(De)}finally{y.f()}}catch(De){this._zone.runOutsideAngular(function(){return h._exceptionHandler.handleError(De)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(h){var y=h;this._views.push(y),y.attachToAppRef(this)}},{key:"detachView",value:function(h){var y=h;YC(this._views,y),y.detachFromAppRef()}},{key:"_loadComponent",value:function(h){this.attachView(h.hostView),this.tick(),this.components.push(h),this._injector.get(cE,[]).concat(this._bootstrapListeners).forEach(function(w){return w(h)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(h){return h.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Wo(_u),Wo(Za),Wo(Tc),Wo(Zg),Wo(wf))},l.\u0275prov=In({token:l,factory:l.\u0275fac}),l}();function YC(l,c){var d=l.indexOf(c);d>-1&&l.splice(d,1)}var EE=function l(){(0,M.Z)(this,l)},XC=function l(){(0,M.Z)(this,l)},km={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},hR=function(){var l=function(){function c(d,h){(0,M.Z)(this,c),this._compiler=d,this._config=h||km}return(0,D.Z)(c,[{key:"load",value:function(h){return this.loadAndCompile(h)}},{key:"loadAndCompile",value:function(h){var y=this,w=h.split("#"),H=(0,Z.Z)(w,2),W=H[0],X=H[1];return void 0===X&&(X="default"),f(98255)(W).then(function(me){return me[X]}).then(function(me){return ME(me,W,X)}).then(function(me){return y._compiler.compileModuleAsync(me)})}},{key:"loadFactory",value:function(h){var y=h.split("#"),w=(0,Z.Z)(y,2),H=w[0],W=w[1],X="NgFactory";return void 0===W&&(W="default",X=""),f(98255)(this._config.factoryPathPrefix+H+this._config.factoryPathSuffix).then(function(me){return me[W+X]}).then(function(me){return ME(me,H,W)})}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Wo(Mf),Wo(XC,8))},l.\u0275prov=In({token:l,factory:l.\u0275fac}),l}();function ME(l,c,d){if(!l)throw new Error("Cannot find '".concat(d,"' in '").concat(c,"'"));return l}var mR=function(l){(0,A.Z)(d,l);var c=(0,_.Z)(d);function d(){return(0,M.Z)(this,d),c.apply(this,arguments)}return d}(function(l){(0,A.Z)(d,l);var c=(0,_.Z)(d);function d(){return(0,M.Z)(this,d),c.apply(this,arguments)}return d}(WI)),CR=function(l){return null},TR=GC(null,"core",[{provide:uE,useValue:"unknown"},{provide:xE,deps:[Za]},{provide:Df,deps:[]},{provide:dE,deps:[]}]),i1=[{provide:wm,useClass:wm,deps:[_u,Za,Tc,Zg,wf]},{provide:S3,deps:[_u],useFactory:function(l){var c=[];return l.onStable.subscribe(function(){for(;c.length;)c.pop()()}),function(d){c.push(d)}}},{provide:wf,useClass:wf,deps:[[new Ru,qu]]},{provide:Mf,useClass:Mf,deps:[]},_m,{provide:Lg,useFactory:function(){return YI},deps:[]},{provide:Fg,useFactory:function(){return PB},deps:[]},{provide:ym,useFactory:function(l){return Nw(l=l||"undefined"!=typeof $localize&&$localize.locale||F0),l},deps:[[new yh(ym),new Ru,new Nu]]},{provide:ZC,useValue:"USD"}],DR=function(){var l=function c(d){(0,M.Z)(this,c)};return l.\u0275fac=function(d){return new(d||l)(Wo(wm))},l.\u0275mod=yo({type:l}),l.\u0275inj=Rn({providers:i1}),l}()},19061:function(ue,q,f){"use strict";f.d(q,{Zs:function(){return Ui},Fj:function(){return L},qu:function(){return $e},NI:function(){return wi},u:function(){return ha},cw:function(){return ro},sg:function(){return Vo},u5:function(){return bl},Cf:function(){return z},JU:function(){return k},a5:function(){return kn},JJ:function(){return Rn},JL:function(){return wn},F:function(){return Uo},On:function(){return jn},wV:function(){return bi},UX:function(){return pe},kI:function(){return te},_Y:function(){return zn}});var U=f(88009),B=f(36683),V=f(10629),Z=f(10509),T=f(97154),R=f(18967),C=f(14105),v=f(65508),P=f(40098),D=f(61493),M=f(91925),A=f(85639),_=function(){var re=function(){function fe(_e,Ce){(0,R.Z)(this,fe),this._renderer=_e,this._elementRef=Ce,this.onChange=function(Re){},this.onTouched=function(){}}return(0,C.Z)(fe,[{key:"setProperty",value:function(Ce,Re){this._renderer.setProperty(this._elementRef.nativeElement,Ce,Re)}},{key:"registerOnTouched",value:function(Ce){this.onTouched=Ce}},{key:"registerOnChange",value:function(Ce){this.onChange=Ce}},{key:"setDisabledState",value:function(Ce){this.setProperty("disabled",Ce)}}]),fe}();return re.\u0275fac=function(_e){return new(_e||re)(v.Y36(v.Qsj),v.Y36(v.SBq))},re.\u0275dir=v.lG2({type:re}),re}(),g=function(){var re=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,T.Z)(Ce);function Ce(){return(0,R.Z)(this,Ce),_e.apply(this,arguments)}return Ce}(_);return re.\u0275fac=function(){var fe;return function(Ce){return(fe||(fe=v.n5z(re)))(Ce||re)}}(),re.\u0275dir=v.lG2({type:re,features:[v.qOj]}),re}(),k=new v.OlP("NgValueAccessor"),x={provide:k,useExisting:(0,v.Gpc)(function(){return L}),multi:!0},O=new v.OlP("CompositionEventMode"),L=function(){var re=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,T.Z)(Ce);function Ce(Re,Ge,St){var ft;return(0,R.Z)(this,Ce),(ft=_e.call(this,Re,Ge))._compositionMode=St,ft._composing=!1,null==ft._compositionMode&&(ft._compositionMode=!function(){var re=(0,P.q)()?(0,P.q)().getUserAgent():"";return/android (\d+)/.test(re.toLowerCase())}()),ft}return(0,C.Z)(Ce,[{key:"writeValue",value:function(Ge){this.setProperty("value",null==Ge?"":Ge)}},{key:"_handleInput",value:function(Ge){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ge)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(Ge){this._composing=!1,this._compositionMode&&this.onChange(Ge)}}]),Ce}(_);return re.\u0275fac=function(_e){return new(_e||re)(v.Y36(v.Qsj),v.Y36(v.SBq),v.Y36(O,8))},re.\u0275dir=v.lG2({type:re,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(_e,Ce){1&_e&&v.NdJ("input",function(Ge){return Ce._handleInput(Ge.target.value)})("blur",function(){return Ce.onTouched()})("compositionstart",function(){return Ce._compositionStart()})("compositionend",function(Ge){return Ce._compositionEnd(Ge.target.value)})},features:[v._Bn([x]),v.qOj]}),re}();function j(re){return null==re||0===re.length}function K(re){return null!=re&&"number"==typeof re.length}var z=new v.OlP("NgValidators"),J=new v.OlP("NgAsyncValidators"),ie=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,te=function(){function re(){(0,R.Z)(this,re)}return(0,C.Z)(re,null,[{key:"min",value:function(_e){return function(re){return function(fe){if(j(fe.value)||j(re))return null;var _e=parseFloat(fe.value);return!isNaN(_e)&&_ere?{max:{max:re,actual:fe.value}}:null}}(_e)}},{key:"required",value:function(_e){return ce(_e)}},{key:"requiredTrue",value:function(_e){return le(_e)}},{key:"email",value:function(_e){return function(re){return j(re.value)||ie.test(re.value)?null:{email:!0}}(_e)}},{key:"minLength",value:function(_e){return function(re){return function(fe){return j(fe.value)||!K(fe.value)?null:fe.value.lengthre?{maxlength:{requiredLength:re,actualLength:fe.value.length}}:null}}(_e)}},{key:"pattern",value:function(_e){return function(re){return re?("string"==typeof re?(_e="","^"!==re.charAt(0)&&(_e+="^"),_e+=re,"$"!==re.charAt(re.length-1)&&(_e+="$"),fe=new RegExp(_e)):(_e=re.toString(),fe=re),function(Ce){if(j(Ce.value))return null;var Re=Ce.value;return fe.test(Re)?null:{pattern:{requiredPattern:_e,actualValue:Re}}}):qe;var fe,_e}(_e)}},{key:"nullValidator",value:function(_e){return null}},{key:"compose",value:function(_e){return dt(_e)}},{key:"composeAsync",value:function(_e){return Bt(_e)}}]),re}();function ce(re){return j(re.value)?{required:!0}:null}function le(re){return!0===re.value?null:{required:!0}}function qe(re){return null}function _t(re){return null!=re}function yt(re){var fe=(0,v.QGY)(re)?(0,D.D)(re):re;return(0,v.CqO)(fe),fe}function Ft(re){var fe={};return re.forEach(function(_e){fe=null!=_e?Object.assign(Object.assign({},fe),_e):fe}),0===Object.keys(fe).length?null:fe}function xe(re,fe){return fe.map(function(_e){return _e(re)})}function je(re){return re.map(function(fe){return function(re){return!re.validate}(fe)?fe:function(_e){return fe.validate(_e)}})}function dt(re){if(!re)return null;var fe=re.filter(_t);return 0==fe.length?null:function(_e){return Ft(xe(_e,fe))}}function Qe(re){return null!=re?dt(je(re)):null}function Bt(re){if(!re)return null;var fe=re.filter(_t);return 0==fe.length?null:function(_e){var Ce=xe(_e,fe).map(yt);return(0,M.D)(Ce).pipe((0,A.U)(Ft))}}function xt(re){return null!=re?Bt(je(re)):null}function vt(re,fe){return null===re?[fe]:Array.isArray(re)?[].concat((0,V.Z)(re),[fe]):[re,fe]}function Qt(re){return re._rawValidators}function Ht(re){return re._rawAsyncValidators}function Ct(re){return re?Array.isArray(re)?re:[re]:[]}function Vt(re,fe){return Array.isArray(re)?re.includes(fe):re===fe}function bt(re,fe){var _e=Ct(fe);return Ct(re).forEach(function(Re){Vt(_e,Re)||_e.push(Re)}),_e}function en(re,fe){return Ct(fe).filter(function(_e){return!Vt(re,_e)})}var Nt=function(){var re=function(){function fe(){(0,R.Z)(this,fe),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return(0,C.Z)(fe,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(Ce){this._rawValidators=Ce||[],this._composedValidatorFn=Qe(this._rawValidators)}},{key:"_setAsyncValidators",value:function(Ce){this._rawAsyncValidators=Ce||[],this._composedAsyncValidatorFn=xt(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(Ce){this._onDestroyCallbacks.push(Ce)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(Ce){return Ce()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(Ce)}},{key:"hasError",value:function(Ce,Re){return!!this.control&&this.control.hasError(Ce,Re)}},{key:"getError",value:function(Ce,Re){return this.control?this.control.getError(Ce,Re):null}}]),fe}();return re.\u0275fac=function(_e){return new(_e||re)},re.\u0275dir=v.lG2({type:re}),re}(),rn=function(){var re=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,T.Z)(Ce);function Ce(){return(0,R.Z)(this,Ce),_e.apply(this,arguments)}return(0,C.Z)(Ce,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),Ce}(Nt);return re.\u0275fac=function(){var fe;return function(Ce){return(fe||(fe=v.n5z(re)))(Ce||re)}}(),re.\u0275dir=v.lG2({type:re,features:[v.qOj]}),re}(),kn=function(re){(0,Z.Z)(_e,re);var fe=(0,T.Z)(_e);function _e(){var Ce;return(0,R.Z)(this,_e),(Ce=fe.apply(this,arguments))._parent=null,Ce.name=null,Ce.valueAccessor=null,Ce}return _e}(Nt),Nn=function(){function re(fe){(0,R.Z)(this,re),this._cd=fe}return(0,C.Z)(re,[{key:"is",value:function(_e){var Ce,Re,Ge;return"submitted"===_e?!!(null===(Ce=this._cd)||void 0===Ce?void 0:Ce.submitted):!!(null===(Ge=null===(Re=this._cd)||void 0===Re?void 0:Re.control)||void 0===Ge?void 0:Ge[_e])}}]),re}(),Rn=function(){var re=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,T.Z)(Ce);function Ce(Re){return(0,R.Z)(this,Ce),_e.call(this,Re)}return Ce}(Nn);return re.\u0275fac=function(_e){return new(_e||re)(v.Y36(kn,2))},re.\u0275dir=v.lG2({type:re,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(_e,Ce){2&_e&&v.ekj("ng-untouched",Ce.is("untouched"))("ng-touched",Ce.is("touched"))("ng-pristine",Ce.is("pristine"))("ng-dirty",Ce.is("dirty"))("ng-valid",Ce.is("valid"))("ng-invalid",Ce.is("invalid"))("ng-pending",Ce.is("pending"))},features:[v.qOj]}),re}(),wn=function(){var re=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,T.Z)(Ce);function Ce(Re){return(0,R.Z)(this,Ce),_e.call(this,Re)}return Ce}(Nn);return re.\u0275fac=function(_e){return new(_e||re)(v.Y36(rn,10))},re.\u0275dir=v.lG2({type:re,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(_e,Ce){2&_e&&v.ekj("ng-untouched",Ce.is("untouched"))("ng-touched",Ce.is("touched"))("ng-pristine",Ce.is("pristine"))("ng-dirty",Ce.is("dirty"))("ng-valid",Ce.is("valid"))("ng-invalid",Ce.is("invalid"))("ng-pending",Ce.is("pending"))("ng-submitted",Ce.is("submitted"))},features:[v.qOj]}),re}();function nn(re,fe){return[].concat((0,V.Z)(fe.path),[re])}function cn(re,fe){Yn(re,fe),fe.valueAccessor.writeValue(re.value),function(re,fe){fe.valueAccessor.registerOnChange(function(_e){re._pendingValue=_e,re._pendingChange=!0,re._pendingDirty=!0,"change"===re.updateOn&&cr(re,fe)})}(re,fe),function(re,fe){var _e=function(Re,Ge){fe.valueAccessor.writeValue(Re),Ge&&fe.viewToModelUpdate(Re)};re.registerOnChange(_e),fe._registerOnDestroy(function(){re._unregisterOnChange(_e)})}(re,fe),function(re,fe){fe.valueAccessor.registerOnTouched(function(){re._pendingTouched=!0,"blur"===re.updateOn&&re._pendingChange&&cr(re,fe),"submit"!==re.updateOn&&re.markAsTouched()})}(re,fe),function(re,fe){if(fe.valueAccessor.setDisabledState){var _e=function(Re){fe.valueAccessor.setDisabledState(Re)};re.registerOnDisabledChange(_e),fe._registerOnDestroy(function(){re._unregisterOnDisabledChange(_e)})}}(re,fe)}function yn(re,fe){var Ce=function(){};fe.valueAccessor&&(fe.valueAccessor.registerOnChange(Ce),fe.valueAccessor.registerOnTouched(Ce)),Cn(re,fe),re&&(fe._invokeOnDestroyCallbacks(),re._registerOnCollectionChange(function(){}))}function Tn(re,fe){re.forEach(function(_e){_e.registerOnValidatorChange&&_e.registerOnValidatorChange(fe)})}function Yn(re,fe){var _e=Qt(re);null!==fe.validator?re.setValidators(vt(_e,fe.validator)):"function"==typeof _e&&re.setValidators([_e]);var Ce=Ht(re);null!==fe.asyncValidator?re.setAsyncValidators(vt(Ce,fe.asyncValidator)):"function"==typeof Ce&&re.setAsyncValidators([Ce]);var Re=function(){return re.updateValueAndValidity()};Tn(fe._rawValidators,Re),Tn(fe._rawAsyncValidators,Re)}function Cn(re,fe){var _e=!1;if(null!==re){if(null!==fe.validator){var Ce=Qt(re);if(Array.isArray(Ce)&&Ce.length>0){var Re=Ce.filter(function(gt){return gt!==fe.validator});Re.length!==Ce.length&&(_e=!0,re.setValidators(Re))}}if(null!==fe.asyncValidator){var Ge=Ht(re);if(Array.isArray(Ge)&&Ge.length>0){var St=Ge.filter(function(gt){return gt!==fe.asyncValidator});St.length!==Ge.length&&(_e=!0,re.setAsyncValidators(St))}}}var ft=function(){};return Tn(fe._rawValidators,ft),Tn(fe._rawAsyncValidators,ft),_e}function cr(re,fe){re._pendingDirty&&re.markAsDirty(),re.setValue(re._pendingValue,{emitModelToViewChange:!1}),fe.viewToModelUpdate(re._pendingValue),re._pendingChange=!1}function Rt(re,fe){Yn(re,fe)}function he(re,fe){if(!re.hasOwnProperty("model"))return!1;var _e=re.model;return!!_e.isFirstChange()||!Object.is(fe,_e.currentValue)}function Ne(re,fe){re._syncPendingControls(),fe.forEach(function(_e){var Ce=_e.control;"submit"===Ce.updateOn&&Ce._pendingChange&&(_e.viewToModelUpdate(Ce._pendingValue),Ce._pendingChange=!1)})}function Le(re,fe){if(!fe)return null;Array.isArray(fe);var _e=void 0,Ce=void 0,Re=void 0;return fe.forEach(function(Ge){Ge.constructor===L?_e=Ge:function(re){return Object.getPrototypeOf(re.constructor)===g}(Ge)?Ce=Ge:Re=Ge}),Re||Ce||_e||null}function ze(re,fe){var _e=re.indexOf(fe);_e>-1&&re.splice(_e,1)}var an="VALID",qn="INVALID",Nr="PENDING",qr="DISABLED";function Qr(re){return(co(re)?re.validators:re)||null}function uo(re){return Array.isArray(re)?Qe(re):re||null}function Ni(re,fe){return(co(fe)?fe.asyncValidators:re)||null}function yo(re){return Array.isArray(re)?xt(re):re||null}function co(re){return null!=re&&!Array.isArray(re)&&"object"==typeof re}var Qo=function(){function re(fe,_e){(0,R.Z)(this,re),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=fe,this._rawAsyncValidators=_e,this._composedValidatorFn=uo(this._rawValidators),this._composedAsyncValidatorFn=yo(this._rawAsyncValidators)}return(0,C.Z)(re,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(_e){this._rawValidators=this._composedValidatorFn=_e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(_e){this._rawAsyncValidators=this._composedAsyncValidatorFn=_e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===an}},{key:"invalid",get:function(){return this.status===qn}},{key:"pending",get:function(){return this.status==Nr}},{key:"disabled",get:function(){return this.status===qr}},{key:"enabled",get:function(){return this.status!==qr}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(_e){this._rawValidators=_e,this._composedValidatorFn=uo(_e)}},{key:"setAsyncValidators",value:function(_e){this._rawAsyncValidators=_e,this._composedAsyncValidatorFn=yo(_e)}},{key:"addValidators",value:function(_e){this.setValidators(bt(_e,this._rawValidators))}},{key:"addAsyncValidators",value:function(_e){this.setAsyncValidators(bt(_e,this._rawAsyncValidators))}},{key:"removeValidators",value:function(_e){this.setValidators(en(_e,this._rawValidators))}},{key:"removeAsyncValidators",value:function(_e){this.setAsyncValidators(en(_e,this._rawAsyncValidators))}},{key:"hasValidator",value:function(_e){return Vt(this._rawValidators,_e)}},{key:"hasAsyncValidator",value:function(_e){return Vt(this._rawAsyncValidators,_e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!_e.onlySelf&&this._parent.markAsTouched(_e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(_e){return _e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(Ce){Ce.markAsUntouched({onlySelf:!0})}),this._parent&&!_e.onlySelf&&this._parent._updateTouched(_e)}},{key:"markAsDirty",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!_e.onlySelf&&this._parent.markAsDirty(_e)}},{key:"markAsPristine",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(Ce){Ce.markAsPristine({onlySelf:!0})}),this._parent&&!_e.onlySelf&&this._parent._updatePristine(_e)}},{key:"markAsPending",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Nr,!1!==_e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!_e.onlySelf&&this._parent.markAsPending(_e)}},{key:"disable",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ce=this._parentMarkedDirty(_e.onlySelf);this.status=qr,this.errors=null,this._forEachChild(function(Re){Re.disable(Object.assign(Object.assign({},_e),{onlySelf:!0}))}),this._updateValue(),!1!==_e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},_e),{skipPristineCheck:Ce})),this._onDisabledChange.forEach(function(Re){return Re(!0)})}},{key:"enable",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ce=this._parentMarkedDirty(_e.onlySelf);this.status=an,this._forEachChild(function(Re){Re.enable(Object.assign(Object.assign({},_e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:_e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},_e),{skipPristineCheck:Ce})),this._onDisabledChange.forEach(function(Re){return Re(!1)})}},{key:"_updateAncestors",value:function(_e){this._parent&&!_e.onlySelf&&(this._parent.updateValueAndValidity(_e),_e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(_e){this._parent=_e}},{key:"updateValueAndValidity",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===an||this.status===Nr)&&this._runAsyncValidator(_e.emitEvent)),!1!==_e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!_e.onlySelf&&this._parent.updateValueAndValidity(_e)}},{key:"_updateTreeValidity",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(Ce){return Ce._updateTreeValidity(_e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:_e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?qr:an}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(_e){var Ce=this;if(this.asyncValidator){this.status=Nr,this._hasOwnPendingAsyncValidator=!0;var Re=yt(this.asyncValidator(this));this._asyncValidationSubscription=Re.subscribe(function(Ge){Ce._hasOwnPendingAsyncValidator=!1,Ce.setErrors(Ge,{emitEvent:_e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(_e){var Ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=_e,this._updateControlsErrors(!1!==Ce.emitEvent)}},{key:"get",value:function(_e){return function(re,fe,_e){if(null==fe||(Array.isArray(fe)||(fe=fe.split(".")),Array.isArray(fe)&&0===fe.length))return null;var Ce=re;return fe.forEach(function(Re){Ce=Ce instanceof ro?Ce.controls.hasOwnProperty(Re)?Ce.controls[Re]:null:Ce instanceof yi&&Ce.at(Re)||null}),Ce}(this,_e)}},{key:"getError",value:function(_e,Ce){var Re=Ce?this.get(Ce):this;return Re&&Re.errors?Re.errors[_e]:null}},{key:"hasError",value:function(_e,Ce){return!!this.getError(_e,Ce)}},{key:"root",get:function(){for(var _e=this;_e._parent;)_e=_e._parent;return _e}},{key:"_updateControlsErrors",value:function(_e){this.status=this._calculateStatus(),_e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(_e)}},{key:"_initObservables",value:function(){this.valueChanges=new v.vpe,this.statusChanges=new v.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?qr:this.errors?qn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Nr)?Nr:this._anyControlsHaveStatus(qn)?qn:an}},{key:"_anyControlsHaveStatus",value:function(_e){return this._anyControls(function(Ce){return Ce.status===_e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(_e){return _e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(_e){return _e.touched})}},{key:"_updatePristine",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!_e.onlySelf&&this._parent._updatePristine(_e)}},{key:"_updateTouched",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!_e.onlySelf&&this._parent._updateTouched(_e)}},{key:"_isBoxedValue",value:function(_e){return"object"==typeof _e&&null!==_e&&2===Object.keys(_e).length&&"value"in _e&&"disabled"in _e}},{key:"_registerOnCollectionChange",value:function(_e){this._onCollectionChange=_e}},{key:"_setUpdateStrategy",value:function(_e){co(_e)&&null!=_e.updateOn&&(this._updateOn=_e.updateOn)}},{key:"_parentMarkedDirty",value:function(_e){return!_e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),re}(),wi=function(re){(0,Z.Z)(_e,re);var fe=(0,T.Z)(_e);function _e(){var Ce,Re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,Ge=arguments.length>1?arguments[1]:void 0,St=arguments.length>2?arguments[2]:void 0;return(0,R.Z)(this,_e),(Ce=fe.call(this,Qr(Ge),Ni(St,Ge)))._onChange=[],Ce._applyFormState(Re),Ce._setUpdateStrategy(Ge),Ce._initObservables(),Ce.updateValueAndValidity({onlySelf:!0,emitEvent:!!Ce.asyncValidator}),Ce}return(0,C.Z)(_e,[{key:"setValue",value:function(Re){var Ge=this,St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=Re,this._onChange.length&&!1!==St.emitModelToViewChange&&this._onChange.forEach(function(ft){return ft(Ge.value,!1!==St.emitViewToModelChange)}),this.updateValueAndValidity(St)}},{key:"patchValue",value:function(Re){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(Re,Ge)}},{key:"reset",value:function(){var Re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(Re),this.markAsPristine(Ge),this.markAsUntouched(Ge),this.setValue(this.value,Ge),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(Re){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(Re){this._onChange.push(Re)}},{key:"_unregisterOnChange",value:function(Re){ze(this._onChange,Re)}},{key:"registerOnDisabledChange",value:function(Re){this._onDisabledChange.push(Re)}},{key:"_unregisterOnDisabledChange",value:function(Re){ze(this._onDisabledChange,Re)}},{key:"_forEachChild",value:function(Re){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(Re){this._isBoxedValue(Re)?(this.value=this._pendingValue=Re.value,Re.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Re}}]),_e}(Qo),ro=function(re){(0,Z.Z)(_e,re);var fe=(0,T.Z)(_e);function _e(Ce,Re,Ge){var St;return(0,R.Z)(this,_e),(St=fe.call(this,Qr(Re),Ni(Ge,Re))).controls=Ce,St._initObservables(),St._setUpdateStrategy(Re),St._setUpControls(),St.updateValueAndValidity({onlySelf:!0,emitEvent:!!St.asyncValidator}),St}return(0,C.Z)(_e,[{key:"registerControl",value:function(Re,Ge){return this.controls[Re]?this.controls[Re]:(this.controls[Re]=Ge,Ge.setParent(this),Ge._registerOnCollectionChange(this._onCollectionChange),Ge)}},{key:"addControl",value:function(Re,Ge){var St=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(Re,Ge),this.updateValueAndValidity({emitEvent:St.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(Re){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(function(){}),delete this.controls[Re],this.updateValueAndValidity({emitEvent:Ge.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(Re,Ge){var St=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(function(){}),delete this.controls[Re],Ge&&this.registerControl(Re,Ge),this.updateValueAndValidity({emitEvent:St.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(Re){return this.controls.hasOwnProperty(Re)&&this.controls[Re].enabled}},{key:"setValue",value:function(Re){var Ge=this,St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(Re),Object.keys(Re).forEach(function(ft){Ge._throwIfControlMissing(ft),Ge.controls[ft].setValue(Re[ft],{onlySelf:!0,emitEvent:St.emitEvent})}),this.updateValueAndValidity(St)}},{key:"patchValue",value:function(Re){var Ge=this,St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Re&&(Object.keys(Re).forEach(function(ft){Ge.controls[ft]&&Ge.controls[ft].patchValue(Re[ft],{onlySelf:!0,emitEvent:St.emitEvent})}),this.updateValueAndValidity(St))}},{key:"reset",value:function(){var Re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(St,ft){St.reset(Re[ft],{onlySelf:!0,emitEvent:Ge.emitEvent})}),this._updatePristine(Ge),this._updateTouched(Ge),this.updateValueAndValidity(Ge)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(Re,Ge,St){return Re[St]=Ge instanceof wi?Ge.value:Ge.getRawValue(),Re})}},{key:"_syncPendingControls",value:function(){var Re=this._reduceChildren(!1,function(Ge,St){return!!St._syncPendingControls()||Ge});return Re&&this.updateValueAndValidity({onlySelf:!0}),Re}},{key:"_throwIfControlMissing",value:function(Re){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[Re])throw new Error("Cannot find form control with name: ".concat(Re,"."))}},{key:"_forEachChild",value:function(Re){var Ge=this;Object.keys(this.controls).forEach(function(St){var ft=Ge.controls[St];ft&&Re(ft,St)})}},{key:"_setUpControls",value:function(){var Re=this;this._forEachChild(function(Ge){Ge.setParent(Re),Ge._registerOnCollectionChange(Re._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(Re){for(var Ge=0,St=Object.keys(this.controls);Ge0||this.disabled}},{key:"_checkAllValuesPresent",value:function(Re){this._forEachChild(function(Ge,St){if(void 0===Re[St])throw new Error("Must supply a value for form control with name: '".concat(St,"'."))})}}]),_e}(Qo),yi=function(re){(0,Z.Z)(_e,re);var fe=(0,T.Z)(_e);function _e(Ce,Re,Ge){var St;return(0,R.Z)(this,_e),(St=fe.call(this,Qr(Re),Ni(Ge,Re))).controls=Ce,St._initObservables(),St._setUpdateStrategy(Re),St._setUpControls(),St.updateValueAndValidity({onlySelf:!0,emitEvent:!!St.asyncValidator}),St}return(0,C.Z)(_e,[{key:"at",value:function(Re){return this.controls[Re]}},{key:"push",value:function(Re){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(Re),this._registerControl(Re),this.updateValueAndValidity({emitEvent:Ge.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(Re,Ge){var St=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(Re,0,Ge),this._registerControl(Ge),this.updateValueAndValidity({emitEvent:St.emitEvent})}},{key:"removeAt",value:function(Re){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(function(){}),this.controls.splice(Re,1),this.updateValueAndValidity({emitEvent:Ge.emitEvent})}},{key:"setControl",value:function(Re,Ge){var St=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(function(){}),this.controls.splice(Re,1),Ge&&(this.controls.splice(Re,0,Ge),this._registerControl(Ge)),this.updateValueAndValidity({emitEvent:St.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(Re){var Ge=this,St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(Re),Re.forEach(function(ft,gt){Ge._throwIfControlMissing(gt),Ge.at(gt).setValue(ft,{onlySelf:!0,emitEvent:St.emitEvent})}),this.updateValueAndValidity(St)}},{key:"patchValue",value:function(Re){var Ge=this,St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Re&&(Re.forEach(function(ft,gt){Ge.at(gt)&&Ge.at(gt).patchValue(ft,{onlySelf:!0,emitEvent:St.emitEvent})}),this.updateValueAndValidity(St))}},{key:"reset",value:function(){var Re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(St,ft){St.reset(Re[ft],{onlySelf:!0,emitEvent:Ge.emitEvent})}),this._updatePristine(Ge),this._updateTouched(Ge),this.updateValueAndValidity(Ge)}},{key:"getRawValue",value:function(){return this.controls.map(function(Re){return Re instanceof wi?Re.value:Re.getRawValue()})}},{key:"clear",value:function(){var Re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(Ge){return Ge._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Re.emitEvent}))}},{key:"_syncPendingControls",value:function(){var Re=this.controls.reduce(function(Ge,St){return!!St._syncPendingControls()||Ge},!1);return Re&&this.updateValueAndValidity({onlySelf:!0}),Re}},{key:"_throwIfControlMissing",value:function(Re){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(Re))throw new Error("Cannot find form control at index ".concat(Re))}},{key:"_forEachChild",value:function(Re){this.controls.forEach(function(Ge,St){Re(Ge,St)})}},{key:"_updateValue",value:function(){var Re=this;this.value=this.controls.filter(function(Ge){return Ge.enabled||Re.disabled}).map(function(Ge){return Ge.value})}},{key:"_anyControls",value:function(Re){return this.controls.some(function(Ge){return Ge.enabled&&Re(Ge)})}},{key:"_setUpControls",value:function(){var Re=this;this._forEachChild(function(Ge){return Re._registerControl(Ge)})}},{key:"_checkAllValuesPresent",value:function(Re){this._forEachChild(function(Ge,St){if(void 0===Re[St])throw new Error("Must supply a value for form control at index: ".concat(St,"."))})}},{key:"_allControlsDisabled",value:function(){var Ge,Re=(0,B.Z)(this.controls);try{for(Re.s();!(Ge=Re.n()).done;)if(Ge.value.enabled)return!1}catch(ft){Re.e(ft)}finally{Re.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(Re){Re.setParent(this),Re._registerOnCollectionChange(this._onCollectionChange)}}]),_e}(Qo),Gi={provide:rn,useExisting:(0,v.Gpc)(function(){return Uo})},fi=function(){return Promise.resolve(null)}(),Uo=function(){var re=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,T.Z)(Ce);function Ce(Re,Ge){var St;return(0,R.Z)(this,Ce),(St=_e.call(this)).submitted=!1,St._directives=[],St.ngSubmit=new v.vpe,St.form=new ro({},Qe(Re),xt(Ge)),St}return(0,C.Z)(Ce,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(Ge){var St=this;fi.then(function(){var ft=St._findContainer(Ge.path);Ge.control=ft.registerControl(Ge.name,Ge.control),cn(Ge.control,Ge),Ge.control.updateValueAndValidity({emitEvent:!1}),St._directives.push(Ge)})}},{key:"getControl",value:function(Ge){return this.form.get(Ge.path)}},{key:"removeControl",value:function(Ge){var St=this;fi.then(function(){var ft=St._findContainer(Ge.path);ft&&ft.removeControl(Ge.name),ze(St._directives,Ge)})}},{key:"addFormGroup",value:function(Ge){var St=this;fi.then(function(){var ft=St._findContainer(Ge.path),gt=new ro({});Rt(gt,Ge),ft.registerControl(Ge.name,gt),gt.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(Ge){var St=this;fi.then(function(){var ft=St._findContainer(Ge.path);ft&&ft.removeControl(Ge.name)})}},{key:"getFormGroup",value:function(Ge){return this.form.get(Ge.path)}},{key:"updateModel",value:function(Ge,St){var ft=this;fi.then(function(){ft.form.get(Ge.path).setValue(St)})}},{key:"setValue",value:function(Ge){this.control.setValue(Ge)}},{key:"onSubmit",value:function(Ge){return this.submitted=!0,Ne(this.form,this._directives),this.ngSubmit.emit(Ge),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var Ge=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(Ge),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(Ge){return Ge.pop(),Ge.length?this.form.get(Ge):this.form}}]),Ce}(rn);return re.\u0275fac=function(_e){return new(_e||re)(v.Y36(z,10),v.Y36(J,10))},re.\u0275dir=v.lG2({type:re,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(_e,Ce){1&_e&&v.NdJ("submit",function(Ge){return Ce.onSubmit(Ge)})("reset",function(){return Ce.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[v._Bn([Gi]),v.qOj]}),re}(),Xt={provide:kn,useExisting:(0,v.Gpc)(function(){return jn})},Gn=function(){return Promise.resolve(null)}(),jn=function(){var re=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,T.Z)(Ce);function Ce(Re,Ge,St,ft){var gt;return(0,R.Z)(this,Ce),(gt=_e.call(this)).control=new wi,gt._registered=!1,gt.update=new v.vpe,gt._parent=Re,gt._setValidators(Ge),gt._setAsyncValidators(St),gt.valueAccessor=Le((0,U.Z)(gt),ft),gt}return(0,C.Z)(Ce,[{key:"ngOnChanges",value:function(Ge){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in Ge&&this._updateDisabled(Ge),he(Ge,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?nn(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(Ge){this.viewModel=Ge,this.update.emit(Ge)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){cn(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(Ge){var St=this;Gn.then(function(){St.control.setValue(Ge,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(Ge){var St=this,ft=Ge.isDisabled.currentValue,gt=""===ft||ft&&"false"!==ft;Gn.then(function(){gt&&!St.control.disabled?St.control.disable():!gt&&St.control.disabled&&St.control.enable()})}}]),Ce}(kn);return re.\u0275fac=function(_e){return new(_e||re)(v.Y36(rn,9),v.Y36(z,10),v.Y36(J,10),v.Y36(k,10))},re.\u0275dir=v.lG2({type:re,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[v._Bn([Xt]),v.qOj,v.TTD]}),re}(),zn=function(){var re=function fe(){(0,R.Z)(this,fe)};return re.\u0275fac=function(_e){return new(_e||re)},re.\u0275dir=v.lG2({type:re,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),re}(),si={provide:k,useExisting:(0,v.Gpc)(function(){return bi}),multi:!0},bi=function(){var re=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,T.Z)(Ce);function Ce(){return(0,R.Z)(this,Ce),_e.apply(this,arguments)}return(0,C.Z)(Ce,[{key:"writeValue",value:function(Ge){this.setProperty("value",null==Ge?"":Ge)}},{key:"registerOnChange",value:function(Ge){this.onChange=function(St){Ge(""==St?null:parseFloat(St))}}}]),Ce}(g);return re.\u0275fac=function(){var fe;return function(Ce){return(fe||(fe=v.n5z(re)))(Ce||re)}}(),re.\u0275dir=v.lG2({type:re,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(_e,Ce){1&_e&&v.NdJ("input",function(Ge){return Ce.onChange(Ge.target.value)})("blur",function(){return Ce.onTouched()})},features:[v._Bn([si]),v.qOj]}),re}(),Fi=function(){var re=function fe(){(0,R.Z)(this,fe)};return re.\u0275fac=function(_e){return new(_e||re)},re.\u0275mod=v.oAB({type:re}),re.\u0275inj=v.cJS({}),re}(),Ho=new v.OlP("NgModelWithFormControlWarning"),Yi={provide:rn,useExisting:(0,v.Gpc)(function(){return Vo})},Vo=function(){var re=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,T.Z)(Ce);function Ce(Re,Ge){var St;return(0,R.Z)(this,Ce),(St=_e.call(this)).validators=Re,St.asyncValidators=Ge,St.submitted=!1,St._onCollectionChange=function(){return St._updateDomValue()},St.directives=[],St.form=null,St.ngSubmit=new v.vpe,St._setValidators(Re),St._setAsyncValidators(Ge),St}return(0,C.Z)(Ce,[{key:"ngOnChanges",value:function(Ge){this._checkFormPresent(),Ge.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(Cn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(Ge){var St=this.form.get(Ge.path);return cn(St,Ge),St.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ge),St}},{key:"getControl",value:function(Ge){return this.form.get(Ge.path)}},{key:"removeControl",value:function(Ge){yn(Ge.control||null,Ge),ze(this.directives,Ge)}},{key:"addFormGroup",value:function(Ge){this._setUpFormContainer(Ge)}},{key:"removeFormGroup",value:function(Ge){this._cleanUpFormContainer(Ge)}},{key:"getFormGroup",value:function(Ge){return this.form.get(Ge.path)}},{key:"addFormArray",value:function(Ge){this._setUpFormContainer(Ge)}},{key:"removeFormArray",value:function(Ge){this._cleanUpFormContainer(Ge)}},{key:"getFormArray",value:function(Ge){return this.form.get(Ge.path)}},{key:"updateModel",value:function(Ge,St){this.form.get(Ge.path).setValue(St)}},{key:"onSubmit",value:function(Ge){return this.submitted=!0,Ne(this.form,this.directives),this.ngSubmit.emit(Ge),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var Ge=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(Ge),this.submitted=!1}},{key:"_updateDomValue",value:function(){var Ge=this;this.directives.forEach(function(St){var ft=St.control,gt=Ge.form.get(St.path);ft!==gt&&(yn(ft||null,St),gt instanceof wi&&(cn(gt,St),St.control=gt))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(Ge){var St=this.form.get(Ge.path);Rt(St,Ge),St.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(Ge){if(this.form){var St=this.form.get(Ge.path);St&&function(re,fe){return Cn(re,fe)}(St,Ge)&&St.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Yn(this.form,this),this._oldForm&&Cn(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),Ce}(rn);return re.\u0275fac=function(_e){return new(_e||re)(v.Y36(z,10),v.Y36(J,10))},re.\u0275dir=v.lG2({type:re,selectors:[["","formGroup",""]],hostBindings:function(_e,Ce){1&_e&&v.NdJ("submit",function(Ge){return Ce.onSubmit(Ge)})("reset",function(){return Ce.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[v._Bn([Yi]),v.qOj,v.TTD]}),re}(),fo={provide:kn,useExisting:(0,v.Gpc)(function(){return ha})},ha=function(){var re=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,T.Z)(Ce);function Ce(Re,Ge,St,ft,gt){var Xr;return(0,R.Z)(this,Ce),(Xr=_e.call(this))._ngModelWarningConfig=gt,Xr._added=!1,Xr.update=new v.vpe,Xr._ngModelWarningSent=!1,Xr._parent=Re,Xr._setValidators(Ge),Xr._setAsyncValidators(St),Xr.valueAccessor=Le((0,U.Z)(Xr),ft),Xr}return(0,C.Z)(Ce,[{key:"isDisabled",set:function(Ge){}},{key:"ngOnChanges",value:function(Ge){this._added||this._setUpControl(),he(Ge,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(Ge){this.viewModel=Ge,this.update.emit(Ge)}},{key:"path",get:function(){return nn(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),Ce}(kn);return re.\u0275fac=function(_e){return new(_e||re)(v.Y36(rn,13),v.Y36(z,10),v.Y36(J,10),v.Y36(k,10),v.Y36(Ho,8))},re.\u0275dir=v.lG2({type:re,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[v._Bn([fo]),v.qOj,v.TTD]}),re._ngModelWarningSentOnce=!1,re}(),_r={provide:z,useExisting:(0,v.Gpc)(function(){return Da}),multi:!0},Ln={provide:z,useExisting:(0,v.Gpc)(function(){return Ui}),multi:!0},Da=function(){var re=function(){function fe(){(0,R.Z)(this,fe),this._required=!1}return(0,C.Z)(fe,[{key:"required",get:function(){return this._required},set:function(Ce){this._required=null!=Ce&&!1!==Ce&&"false"!=="".concat(Ce),this._onChange&&this._onChange()}},{key:"validate",value:function(Ce){return this.required?ce(Ce):null}},{key:"registerOnValidatorChange",value:function(Ce){this._onChange=Ce}}]),fe}();return re.\u0275fac=function(_e){return new(_e||re)},re.\u0275dir=v.lG2({type:re,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(_e,Ce){2&_e&&v.uIk("required",Ce.required?"":null)},inputs:{required:"required"},features:[v._Bn([_r])]}),re}(),Ui=function(){var re=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,T.Z)(Ce);function Ce(){return(0,R.Z)(this,Ce),_e.apply(this,arguments)}return(0,C.Z)(Ce,[{key:"validate",value:function(Ge){return this.required?le(Ge):null}}]),Ce}(Da);return re.\u0275fac=function(){var fe;return function(Ce){return(fe||(fe=v.n5z(re)))(Ce||re)}}(),re.\u0275dir=v.lG2({type:re,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(_e,Ce){2&_e&&v.uIk("required",Ce.required?"":null)},features:[v._Bn([Ln]),v.qOj]}),re}(),yl=function(){var re=function fe(){(0,R.Z)(this,fe)};return re.\u0275fac=function(_e){return new(_e||re)},re.\u0275mod=v.oAB({type:re}),re.\u0275inj=v.cJS({imports:[[Fi]]}),re}(),bl=function(){var re=function fe(){(0,R.Z)(this,fe)};return re.\u0275fac=function(_e){return new(_e||re)},re.\u0275mod=v.oAB({type:re}),re.\u0275inj=v.cJS({imports:[yl]}),re}(),pe=function(){var re=function(){function fe(){(0,R.Z)(this,fe)}return(0,C.Z)(fe,null,[{key:"withConfig",value:function(Ce){return{ngModule:fe,providers:[{provide:Ho,useValue:Ce.warnOnNgModelWithFormControl}]}}}]),fe}();return re.\u0275fac=function(_e){return new(_e||re)},re.\u0275mod=v.oAB({type:re}),re.\u0275inj=v.cJS({imports:[yl]}),re}();function Fe(re){return void 0!==re.asyncValidators||void 0!==re.validators||void 0!==re.updateOn}var $e=function(){var re=function(){function fe(){(0,R.Z)(this,fe)}return(0,C.Z)(fe,[{key:"group",value:function(Ce){var Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Ge=this._reduceControls(Ce),St=null,ft=null,gt=void 0;return null!=Re&&(Fe(Re)?(St=null!=Re.validators?Re.validators:null,ft=null!=Re.asyncValidators?Re.asyncValidators:null,gt=null!=Re.updateOn?Re.updateOn:void 0):(St=null!=Re.validator?Re.validator:null,ft=null!=Re.asyncValidator?Re.asyncValidator:null)),new ro(Ge,{asyncValidators:ft,updateOn:gt,validators:St})}},{key:"control",value:function(Ce,Re,Ge){return new wi(Ce,Re,Ge)}},{key:"array",value:function(Ce,Re,Ge){var St=this,ft=Ce.map(function(gt){return St._createControl(gt)});return new yi(ft,Re,Ge)}},{key:"_reduceControls",value:function(Ce){var Re=this,Ge={};return Object.keys(Ce).forEach(function(St){Ge[St]=Re._createControl(Ce[St])}),Ge}},{key:"_createControl",value:function(Ce){return Ce instanceof wi||Ce instanceof ro||Ce instanceof yi?Ce:Array.isArray(Ce)?this.control(Ce[0],Ce.length>1?Ce[1]:null,Ce.length>2?Ce[2]:null):this.control(Ce)}}]),fe}();return re.\u0275fac=function(_e){return new(_e||re)},re.\u0275prov=(0,v.Yz7)({factory:function(){return new re},token:re,providedIn:pe}),re}()},59412:function(ue,q,f){"use strict";f.d(q,{yN:function(){return ie},mZ:function(){return te},rD:function(){return rn},K7:function(){return Pn},HF:function(){return nn},Y2:function(){return ct},BQ:function(){return le},X2:function(){return kn},uc:function(){return $n},Nv:function(){return Yn},ey:function(){return cr},Ng:function(){return Lt},nP:function(){return Kt},us:function(){return Yt},wG:function(){return ht},si:function(){return Jt},IR:function(){return ye},CB:function(){return Ut},jH:function(){return Rt},pj:function(){return Ae},Kr:function(){return be},Id:function(){return oe},FD:function(){return qe},dB:function(){return _t},sb:function(){return it},E0:function(){return Nn}}),f(88009),f(20901),f(89200);var Z=f(10509),T=f(97154),R=f(14105),C=f(18967),v=f(65508),P=f(6517),D=f(8392),M=new v.GfV("12.2.8"),A=f(40098),_=f(15427),g=f(78081),k=f(68707),N=f(89797),E=f(57682),x=f(38480),S=f(32819),O=["*",[["mat-option"],["ng-container"]]],L=["*","mat-option, ng-container"];function j(Pe,rt){if(1&Pe&&v._UZ(0,"mat-pseudo-checkbox",4),2&Pe){var he=v.oxw();v.Q6J("state",he.selected?"checked":"unchecked")("disabled",he.disabled)}}function K(Pe,rt){if(1&Pe&&(v.TgZ(0,"span",5),v._uU(1),v.qZA()),2&Pe){var he=v.oxw();v.xp6(1),v.hij("(",he.group.label,")")}}var z=["*"],ie=function(){var Pe=function rt(){(0,C.Z)(this,rt)};return Pe.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Pe.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Pe.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Pe.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Pe}(),te=function(){var Pe=function rt(){(0,C.Z)(this,rt)};return Pe.COMPLEX="375ms",Pe.ENTERING="225ms",Pe.EXITING="195ms",Pe}(),ae=new v.GfV("12.2.8"),ce=new v.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),le=function(){var Pe=function(){function rt(he,Ie,Ne){(0,C.Z)(this,rt),this._hasDoneGlobalChecks=!1,this._document=Ne,he._applyBodyHighContrastModeCssClasses(),this._sanityChecks=Ie,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return(0,R.Z)(rt,[{key:"_checkIsEnabled",value:function(Ie){return!(!(0,v.X6Q)()||(0,_.Oy)())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Ie])}},{key:"_checkDoctypeIsDefined",value:function(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checkIsEnabled("theme")&&this._document.body&&"function"==typeof getComputedStyle){var Ie=this._document.createElement("div");Ie.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(Ie);var Ne=getComputedStyle(Ie);Ne&&"none"!==Ne.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(Ie)}}},{key:"_checkCdkVersionMatch",value:function(){this._checkIsEnabled("version")&&ae.full!==M.full&&console.warn("The Angular Material version ("+ae.full+") does not match the Angular CDK version ("+M.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),rt}();return Pe.\u0275fac=function(he){return new(he||Pe)(v.LFG(P.qm),v.LFG(ce,8),v.LFG(A.K0))},Pe.\u0275mod=v.oAB({type:Pe}),Pe.\u0275inj=v.cJS({imports:[[D.vT],D.vT]}),Pe}();function oe(Pe){return function(rt){(0,Z.Z)(Ie,rt);var he=(0,T.Z)(Ie);function Ie(){var Ne;(0,C.Z)(this,Ie);for(var Le=arguments.length,ze=new Array(Le),At=0;At1&&void 0!==arguments[1]?arguments[1]:0;return function(he){(0,Z.Z)(Ne,he);var Ie=(0,T.Z)(Ne);function Ne(){var Le;(0,C.Z)(this,Ne);for(var ze=arguments.length,At=new Array(ze),an=0;an2&&void 0!==arguments[2]?arguments[2]:"mat";Pe.changes.pipe((0,E.O)(Pe)).subscribe(function(Ie){var Ne=Ie.length;In(rt,"".concat(he,"-2-line"),!1),In(rt,"".concat(he,"-3-line"),!1),In(rt,"".concat(he,"-multi-line"),!1),2===Ne||3===Ne?In(rt,"".concat(he,"-").concat(Ne,"-line"),!0):Ne>3&&In(rt,"".concat(he,"-multi-line"),!0)})}function In(Pe,rt,he){var Ie=Pe.nativeElement.classList;he?Ie.add(rt):Ie.remove(rt)}var $n=function(){var Pe=function rt(){(0,C.Z)(this,rt)};return Pe.\u0275fac=function(he){return new(he||Pe)},Pe.\u0275mod=v.oAB({type:Pe}),Pe.\u0275inj=v.cJS({imports:[[le],le]}),Pe}(),Rn=function(){function Pe(rt,he,Ie){(0,C.Z)(this,Pe),this._renderer=rt,this.element=he,this.config=Ie,this.state=3}return(0,R.Z)(Pe,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),Pe}(),wn={enterDuration:225,exitDuration:150},ut=(0,_.i$)({passive:!0}),He=["mousedown","touchstart"],ve=["mouseup","mouseleave","touchend","touchcancel"],ye=function(){function Pe(rt,he,Ie,Ne){(0,C.Z)(this,Pe),this._target=rt,this._ngZone=he,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,Ne.isBrowser&&(this._containerElement=(0,g.fI)(Ie))}return(0,R.Z)(Pe,[{key:"fadeInRipple",value:function(he,Ie){var Ne=this,Le=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ze=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),At=Object.assign(Object.assign({},wn),Le.animation);Le.centered&&(he=ze.left+ze.width/2,Ie=ze.top+ze.height/2);var an=Le.radius||we(he,Ie,ze),qn=he-ze.left,Nr=Ie-ze.top,qr=At.enterDuration,br=document.createElement("div");br.classList.add("mat-ripple-element"),br.style.left="".concat(qn-an,"px"),br.style.top="".concat(Nr-an,"px"),br.style.height="".concat(2*an,"px"),br.style.width="".concat(2*an,"px"),null!=Le.color&&(br.style.backgroundColor=Le.color),br.style.transitionDuration="".concat(qr,"ms"),this._containerElement.appendChild(br),Te(br),br.style.transform="scale(1)";var Qr=new Rn(this,br,Le);return Qr.state=0,this._activeRipples.add(Qr),Le.persistent||(this._mostRecentTransientRipple=Qr),this._runTimeoutOutsideZone(function(){var uo=Qr===Ne._mostRecentTransientRipple;Qr.state=1,!Le.persistent&&(!uo||!Ne._isPointerDown)&&Qr.fadeOut()},qr),Qr}},{key:"fadeOutRipple",value:function(he){var Ie=this._activeRipples.delete(he);if(he===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),Ie){var Ne=he.element,Le=Object.assign(Object.assign({},wn),he.config.animation);Ne.style.transitionDuration="".concat(Le.exitDuration,"ms"),Ne.style.opacity="0",he.state=2,this._runTimeoutOutsideZone(function(){he.state=3,Ne.parentNode.removeChild(Ne)},Le.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(he){return he.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(he){he.config.persistent||he.fadeOut()})}},{key:"setupTriggerEvents",value:function(he){var Ie=(0,g.fI)(he);!Ie||Ie===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ie,this._registerEvents(He))}},{key:"handleEvent",value:function(he){"mousedown"===he.type?this._onMousedown(he):"touchstart"===he.type?this._onTouchStart(he):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ve),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(he){var Ie=(0,P.X6)(he),Ne=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(he,Ie)})}},{key:"_registerEvents",value:function(he){var Ie=this;this._ngZone.runOutsideAngular(function(){he.forEach(function(Ne){Ie._triggerElement.addEventListener(Ne,Ie,ut)})})}},{key:"_removeTriggerEvents",value:function(){var he=this;this._triggerElement&&(He.forEach(function(Ie){he._triggerElement.removeEventListener(Ie,he,ut)}),this._pointerUpEventsRegistered&&ve.forEach(function(Ie){he._triggerElement.removeEventListener(Ie,he,ut)}))}}]),Pe}();function Te(Pe){window.getComputedStyle(Pe).getPropertyValue("opacity")}function we(Pe,rt,he){var Ie=Math.max(Math.abs(Pe-he.left),Math.abs(Pe-he.right)),Ne=Math.max(Math.abs(rt-he.top),Math.abs(rt-he.bottom));return Math.sqrt(Ie*Ie+Ne*Ne)}var ct=new v.OlP("mat-ripple-global-options"),ht=function(){var Pe=function(){function rt(he,Ie,Ne,Le,ze){(0,C.Z)(this,rt),this._elementRef=he,this._animationMode=ze,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Le||{},this._rippleRenderer=new ye(this,Ie,he,Ne)}return(0,R.Z)(rt,[{key:"disabled",get:function(){return this._disabled},set:function(Ie){Ie&&this.fadeOutAllNonPersistent(),this._disabled=Ie,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(Ie){this._trigger=Ie,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(Ie){var Ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,Le=arguments.length>2?arguments[2]:void 0;return"number"==typeof Ie?this._rippleRenderer.fadeInRipple(Ie,Ne,Object.assign(Object.assign({},this.rippleConfig),Le)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Ie))}}]),rt}();return Pe.\u0275fac=function(he){return new(he||Pe)(v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(_.t4),v.Y36(ct,8),v.Y36(x.Qb,8))},Pe.\u0275dir=v.lG2({type:Pe,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(he,Ie){2&he&&v.ekj("mat-ripple-unbounded",Ie.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),Pe}(),Jt=function(){var Pe=function rt(){(0,C.Z)(this,rt)};return Pe.\u0275fac=function(he){return new(he||Pe)},Pe.\u0275mod=v.oAB({type:Pe}),Pe.\u0275inj=v.cJS({imports:[[le,_.ud],le]}),Pe}(),Kt=function(){var Pe=function rt(he){(0,C.Z)(this,rt),this._animationMode=he,this.state="unchecked",this.disabled=!1};return Pe.\u0275fac=function(he){return new(he||Pe)(v.Y36(x.Qb,8))},Pe.\u0275cmp=v.Xpm({type:Pe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(he,Ie){2&he&&v.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Ie.state)("mat-pseudo-checkbox-checked","checked"===Ie.state)("mat-pseudo-checkbox-disabled",Ie.disabled)("_mat-animation-noopable","NoopAnimations"===Ie._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(he,Ie){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Pe}(),Yt=function(){var Pe=function rt(){(0,C.Z)(this,rt)};return Pe.\u0275fac=function(he){return new(he||Pe)},Pe.\u0275mod=v.oAB({type:Pe}),Pe.\u0275inj=v.cJS({imports:[[le]]}),Pe}(),nn=new v.OlP("MAT_OPTION_PARENT_COMPONENT"),cn=oe(function(){return function Pe(){(0,C.Z)(this,Pe)}}()),yn=0,Tn=function(){var Pe=function(rt){(0,Z.Z)(Ie,rt);var he=(0,T.Z)(Ie);function Ie(Ne){var Le,ze;return(0,C.Z)(this,Ie),(Le=he.call(this))._labelId="mat-optgroup-label-".concat(yn++),Le._inert=null!==(ze=null==Ne?void 0:Ne.inertGroups)&&void 0!==ze&&ze,Le}return Ie}(cn);return Pe.\u0275fac=function(he){return new(he||Pe)(v.Y36(nn,8))},Pe.\u0275dir=v.lG2({type:Pe,inputs:{label:"label"},features:[v.qOj]}),Pe}(),Pn=new v.OlP("MatOptgroup"),Yn=function(){var Pe=function(rt){(0,Z.Z)(Ie,rt);var he=(0,T.Z)(Ie);function Ie(){return(0,C.Z)(this,Ie),he.apply(this,arguments)}return Ie}(Tn);return Pe.\u0275fac=function(){var rt;return function(Ie){return(rt||(rt=v.n5z(Pe)))(Ie||Pe)}}(),Pe.\u0275cmp=v.Xpm({type:Pe,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(he,Ie){2&he&&(v.uIk("role",Ie._inert?null:"group")("aria-disabled",Ie._inert?null:Ie.disabled.toString())("aria-labelledby",Ie._inert?null:Ie._labelId),v.ekj("mat-optgroup-disabled",Ie.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[v._Bn([{provide:Pn,useExisting:Pe}]),v.qOj],ngContentSelectors:L,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(he,Ie){1&he&&(v.F$t(O),v.TgZ(0,"span",0),v._uU(1),v.Hsn(2),v.qZA(),v.Hsn(3,1)),2&he&&(v.Q6J("id",Ie._labelId),v.xp6(1),v.hij("",Ie.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Pe}(),Cn=0,Sn=function Pe(rt){var he=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,C.Z)(this,Pe),this.source=rt,this.isUserInput=he},tr=function(){var Pe=function(){function rt(he,Ie,Ne,Le){(0,C.Z)(this,rt),this._element=he,this._changeDetectorRef=Ie,this._parent=Ne,this.group=Le,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(Cn++),this.onSelectionChange=new v.vpe,this._stateChanges=new k.xQ}return(0,R.Z)(rt,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(Ie){this._disabled=(0,g.Ig)(Ie)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(Ie,Ne){var Le=this._getHostElement();"function"==typeof Le.focus&&Le.focus(Ne)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(Ie){(Ie.keyCode===S.K5||Ie.keyCode===S.L_)&&!(0,S.Vb)(Ie)&&(this._selectViaInteraction(),Ie.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var Ie=this.viewValue;Ie!==this._mostRecentViewValue&&(this._mostRecentViewValue=Ie,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var Ie=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new Sn(this,Ie))}}]),rt}();return Pe.\u0275fac=function(he){return new(he||Pe)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(void 0),v.Y36(Tn))},Pe.\u0275dir=v.lG2({type:Pe,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),Pe}(),cr=function(){var Pe=function(rt){(0,Z.Z)(Ie,rt);var he=(0,T.Z)(Ie);function Ie(Ne,Le,ze,At){return(0,C.Z)(this,Ie),he.call(this,Ne,Le,ze,At)}return Ie}(tr);return Pe.\u0275fac=function(he){return new(he||Pe)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(nn,8),v.Y36(Pn,8))},Pe.\u0275cmp=v.Xpm({type:Pe,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(he,Ie){1&he&&v.NdJ("click",function(){return Ie._selectViaInteraction()})("keydown",function(Le){return Ie._handleKeydown(Le)}),2&he&&(v.Ikx("id",Ie.id),v.uIk("tabindex",Ie._getTabIndex())("aria-selected",Ie._getAriaSelected())("aria-disabled",Ie.disabled.toString()),v.ekj("mat-selected",Ie.selected)("mat-option-multiple",Ie.multiple)("mat-active",Ie.active)("mat-option-disabled",Ie.disabled))},exportAs:["matOption"],features:[v.qOj],ngContentSelectors:z,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(he,Ie){1&he&&(v.F$t(),v.YNc(0,j,1,2,"mat-pseudo-checkbox",0),v.TgZ(1,"span",1),v.Hsn(2),v.qZA(),v.YNc(3,K,2,1,"span",2),v._UZ(4,"div",3)),2&he&&(v.Q6J("ngIf",Ie.multiple),v.xp6(3),v.Q6J("ngIf",Ie.group&&Ie.group._inert),v.xp6(1),v.Q6J("matRippleTrigger",Ie._getHostElement())("matRippleDisabled",Ie.disabled||Ie.disableRipple))},directives:[A.O5,ht,Kt],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Pe}();function Ut(Pe,rt,he){if(he.length){for(var Ie=rt.toArray(),Ne=he.toArray(),Le=0,ze=0;zehe+Ie?Math.max(0,Pe-Ie+rt):he}var Lt=function(){var Pe=function rt(){(0,C.Z)(this,rt)};return Pe.\u0275fac=function(he){return new(he||Pe)},Pe.\u0275mod=v.oAB({type:Pe}),Pe.\u0275inj=v.cJS({imports:[[Jt,A.ez,le,Yt]]}),Pe}()},93386:function(ue,q,f){"use strict";f.d(q,{d:function(){return R},t:function(){return C}});var U=f(18967),B=f(14105),V=f(78081),Z=f(59412),T=f(65508),R=function(){var v=function(){function P(){(0,U.Z)(this,P),this._vertical=!1,this._inset=!1}return(0,B.Z)(P,[{key:"vertical",get:function(){return this._vertical},set:function(M){this._vertical=(0,V.Ig)(M)}},{key:"inset",get:function(){return this._inset},set:function(M){this._inset=(0,V.Ig)(M)}}]),P}();return v.\u0275fac=function(D){return new(D||v)},v.\u0275cmp=T.Xpm({type:v,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(D,M){2&D&&(T.uIk("aria-orientation",M.vertical?"vertical":"horizontal"),T.ekj("mat-divider-vertical",M.vertical)("mat-divider-horizontal",!M.vertical)("mat-divider-inset",M.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(D,M){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),v}(),C=function(){var v=function P(){(0,U.Z)(this,P)};return v.\u0275fac=function(D){return new(D||v)},v.\u0275mod=T.oAB({type:v}),v.\u0275inj=T.cJS({imports:[[Z.BQ],Z.BQ]}),v}()},36410:function(ue,q,f){"use strict";f.d(q,{G_:function(){return Rn},TO:function(){return xe},KE:function(){return wn},Eo:function(){return je},lN:function(){return yr},hX:function(){return Ht},R9:function(){return Nt}});var U=f(10629),B=f(14105),V=f(10509),Z=f(97154),T=f(18967),R=f(96798),C=f(40098),v=f(65508),P=f(59412),D=f(78081),M=f(68707),A=f(55371),_=f(33090),g=f(57682),k=f(44213),N=f(48359),E=f(739),x=f(38480),S=f(8392),O=f(15427),L=["underline"],j=["connectionContainer"],K=["inputContainer"],z=["label"];function J(ut,He){1&ut&&(v.ynx(0),v.TgZ(1,"div",14),v._UZ(2,"div",15),v._UZ(3,"div",16),v._UZ(4,"div",17),v.qZA(),v.TgZ(5,"div",18),v._UZ(6,"div",15),v._UZ(7,"div",16),v._UZ(8,"div",17),v.qZA(),v.BQk())}function ie(ut,He){1&ut&&(v.TgZ(0,"div",19),v.Hsn(1,1),v.qZA())}function te(ut,He){if(1&ut&&(v.ynx(0),v.Hsn(1,2),v.TgZ(2,"span"),v._uU(3),v.qZA(),v.BQk()),2&ut){var ve=v.oxw(2);v.xp6(3),v.Oqu(ve._control.placeholder)}}function ae(ut,He){1&ut&&v.Hsn(0,3,["*ngSwitchCase","true"])}function se(ut,He){1&ut&&(v.TgZ(0,"span",23),v._uU(1," *"),v.qZA())}function ce(ut,He){if(1&ut){var ve=v.EpF();v.TgZ(0,"label",20,21),v.NdJ("cdkObserveContent",function(){return v.CHM(ve),v.oxw().updateOutlineGap()}),v.YNc(2,te,4,1,"ng-container",12),v.YNc(3,ae,1,0,"ng-content",12),v.YNc(4,se,2,0,"span",22),v.qZA()}if(2&ut){var ye=v.oxw();v.ekj("mat-empty",ye._control.empty&&!ye._shouldAlwaysFloat())("mat-form-field-empty",ye._control.empty&&!ye._shouldAlwaysFloat())("mat-accent","accent"==ye.color)("mat-warn","warn"==ye.color),v.Q6J("cdkObserveContentDisabled","outline"!=ye.appearance)("id",ye._labelId)("ngSwitch",ye._hasLabel()),v.uIk("for",ye._control.id)("aria-owns",ye._control.id),v.xp6(2),v.Q6J("ngSwitchCase",!1),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngIf",!ye.hideRequiredMarker&&ye._control.required&&!ye._control.disabled)}}function le(ut,He){1&ut&&(v.TgZ(0,"div",24),v.Hsn(1,4),v.qZA())}function oe(ut,He){if(1&ut&&(v.TgZ(0,"div",25,26),v._UZ(2,"span",27),v.qZA()),2&ut){var ve=v.oxw();v.xp6(2),v.ekj("mat-accent","accent"==ve.color)("mat-warn","warn"==ve.color)}}function Ae(ut,He){if(1&ut&&(v.TgZ(0,"div"),v.Hsn(1,5),v.qZA()),2&ut){var ve=v.oxw();v.Q6J("@transitionMessages",ve._subscriptAnimationState)}}function be(ut,He){if(1&ut&&(v.TgZ(0,"div",31),v._uU(1),v.qZA()),2&ut){var ve=v.oxw(2);v.Q6J("id",ve._hintLabelId),v.xp6(1),v.Oqu(ve.hintLabel)}}function it(ut,He){if(1&ut&&(v.TgZ(0,"div",28),v.YNc(1,be,2,2,"div",29),v.Hsn(2,6),v._UZ(3,"div",30),v.Hsn(4,7),v.qZA()),2&ut){var ve=v.oxw();v.Q6J("@transitionMessages",ve._subscriptAnimationState),v.xp6(1),v.Q6J("ngIf",ve.hintLabel)}}var qe=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],_t=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],yt=0,Ft=new v.OlP("MatError"),xe=function(){var ut=function He(ve,ye){(0,T.Z)(this,He),this.id="mat-error-".concat(yt++),ve||ye.nativeElement.setAttribute("aria-live","polite")};return ut.\u0275fac=function(ve){return new(ve||ut)(v.$8M("aria-live"),v.Y36(v.SBq))},ut.\u0275dir=v.lG2({type:ut,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(ve,ye){2&ve&&v.uIk("id",ye.id)},inputs:{id:"id"},features:[v._Bn([{provide:Ft,useExisting:ut}])]}),ut}(),Oe={transitionMessages:(0,E.X$)("transitionMessages",[(0,E.SB)("enter",(0,E.oB)({opacity:1,transform:"translateY(0%)"})),(0,E.eR)("void => enter",[(0,E.oB)({opacity:0,transform:"translateY(-5px)"}),(0,E.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},je=function(){var ut=function He(){(0,T.Z)(this,He)};return ut.\u0275fac=function(ve){return new(ve||ut)},ut.\u0275dir=v.lG2({type:ut}),ut}(),vt=new v.OlP("MatHint"),Ht=function(){var ut=function He(){(0,T.Z)(this,He)};return ut.\u0275fac=function(ve){return new(ve||ut)},ut.\u0275dir=v.lG2({type:ut,selectors:[["mat-label"]]}),ut}(),Ct=function(){var ut=function He(){(0,T.Z)(this,He)};return ut.\u0275fac=function(ve){return new(ve||ut)},ut.\u0275dir=v.lG2({type:ut,selectors:[["mat-placeholder"]]}),ut}(),Vt=new v.OlP("MatPrefix"),en=new v.OlP("MatSuffix"),Nt=function(){var ut=function He(){(0,T.Z)(this,He)};return ut.\u0275fac=function(ve){return new(ve||ut)},ut.\u0275dir=v.lG2({type:ut,selectors:[["","matSuffix",""]],features:[v._Bn([{provide:en,useExisting:ut}])]}),ut}(),rn=0,In=(0,P.pj)(function(){return function ut(He){(0,T.Z)(this,ut),this._elementRef=He}}(),"primary"),$n=new v.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Rn=new v.OlP("MatFormField"),wn=function(){var ut=function(He){(0,V.Z)(ye,He);var ve=(0,Z.Z)(ye);function ye(Te,we,ct,ht,Jt,Kt,Yt,nn){var cn;return(0,T.Z)(this,ye),(cn=ve.call(this,Te))._changeDetectorRef=we,cn._dir=ht,cn._defaults=Jt,cn._platform=Kt,cn._ngZone=Yt,cn._outlineGapCalculationNeededImmediately=!1,cn._outlineGapCalculationNeededOnStable=!1,cn._destroyed=new M.xQ,cn._showAlwaysAnimate=!1,cn._subscriptAnimationState="",cn._hintLabel="",cn._hintLabelId="mat-hint-".concat(rn++),cn._labelId="mat-form-field-label-".concat(rn++),cn.floatLabel=cn._getDefaultFloatLabelState(),cn._animationsEnabled="NoopAnimations"!==nn,cn.appearance=Jt&&Jt.appearance?Jt.appearance:"legacy",cn._hideRequiredMarker=!(!Jt||null==Jt.hideRequiredMarker)&&Jt.hideRequiredMarker,cn}return(0,B.Z)(ye,[{key:"appearance",get:function(){return this._appearance},set:function(we){var ct=this._appearance;this._appearance=we||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&ct!==we&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(we){this._hideRequiredMarker=(0,D.Ig)(we)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(we){this._hintLabel=we,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(we){we!==this._floatLabel&&(this._floatLabel=we||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(we){this._explicitFormFieldControl=we}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var we=this;this._validateControlChild();var ct=this._control;ct.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(ct.controlType)),ct.stateChanges.pipe((0,g.O)(null)).subscribe(function(){we._validatePlaceholders(),we._syncDescribedByIds(),we._changeDetectorRef.markForCheck()}),ct.ngControl&&ct.ngControl.valueChanges&&ct.ngControl.valueChanges.pipe((0,k.R)(this._destroyed)).subscribe(function(){return we._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){we._ngZone.onStable.pipe((0,k.R)(we._destroyed)).subscribe(function(){we._outlineGapCalculationNeededOnStable&&we.updateOutlineGap()})}),(0,A.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){we._outlineGapCalculationNeededOnStable=!0,we._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,g.O)(null)).subscribe(function(){we._processHints(),we._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,g.O)(null)).subscribe(function(){we._syncDescribedByIds(),we._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,k.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?we._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return we.updateOutlineGap()})}):we.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(we){var ct=this._control?this._control.ngControl:null;return ct&&ct[we]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var we=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,_.R)(this._label.nativeElement,"transitionend").pipe((0,N.q)(1)).subscribe(function(){we._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var we=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&we.push.apply(we,(0,U.Z)(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var ct=this._hintChildren?this._hintChildren.find(function(Jt){return"start"===Jt.align}):null,ht=this._hintChildren?this._hintChildren.find(function(Jt){return"end"===Jt.align}):null;ct?we.push(ct.id):this._hintLabel&&we.push(this._hintLabelId),ht&&we.push(ht.id)}else this._errorChildren&&we.push.apply(we,(0,U.Z)(this._errorChildren.map(function(Jt){return Jt.id})));this._control.setDescribedByIds(we)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var we=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&we&&we.children.length&&we.textContent.trim()&&this._platform.isBrowser){if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);var ct=0,ht=0,Jt=this._connectionContainerRef.nativeElement,Kt=Jt.querySelectorAll(".mat-form-field-outline-start"),Yt=Jt.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var nn=Jt.getBoundingClientRect();if(0===nn.width&&0===nn.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var cn=this._getStartEnd(nn),yn=we.children,Tn=this._getStartEnd(yn[0].getBoundingClientRect()),Pn=0,Yn=0;Yn0?.75*Pn+10:0}for(var Cn=0;Cn void",(0,se.IO)("@transformPanel",[(0,se.pV)()],{optional:!0}))]),transformPanel:(0,se.X$)("transformPanel",[(0,se.SB)("void",(0,se.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,se.SB)("showing",(0,se.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,se.SB)("showing-multiple",(0,se.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,se.eR)("void => *",(0,se.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,se.eR)("* => void",(0,se.jt)("100ms 25ms linear",(0,se.oB)({opacity:0})))])},Bt=0,bt=new M.OlP("mat-select-scroll-strategy"),Nt=new M.OlP("MAT_SELECT_CONFIG"),rn={provide:bt,deps:[P.aV],useFactory:function(ut){return function(){return ut.scrollStrategies.reposition()}}},kn=function ut(He,ve){(0,v.Z)(this,ut),this.source=He,this.value=ve},Nn=(0,A.Kr)((0,A.sb)((0,A.Id)((0,A.FD)(function(){return function ut(He,ve,ye,Te,we){(0,v.Z)(this,ut),this._elementRef=He,this._defaultErrorStateMatcher=ve,this._parentForm=ye,this._parentFormGroup=Te,this.ngControl=we}}())))),In=new M.OlP("MatSelectTrigger"),Rn=function(){var ut=function(He){(0,R.Z)(ye,He);var ve=(0,C.Z)(ye);function ye(Te,we,ct,ht,Jt,Kt,Yt,nn,cn,yn,Tn,Pn,Yn,Cn){var Sn,tr,cr,Ut;return(0,v.Z)(this,ye),(Sn=ve.call(this,Jt,ht,Yt,nn,yn))._viewportRuler=Te,Sn._changeDetectorRef=we,Sn._ngZone=ct,Sn._dir=Kt,Sn._parentFormField=cn,Sn._liveAnnouncer=Yn,Sn._defaultOptions=Cn,Sn._panelOpen=!1,Sn._compareWith=function(Rt,Lt){return Rt===Lt},Sn._uid="mat-select-".concat(Bt++),Sn._triggerAriaLabelledBy=null,Sn._destroy=new S.xQ,Sn._onChange=function(){},Sn._onTouched=function(){},Sn._valueId="mat-select-value-".concat(Bt++),Sn._panelDoneAnimatingStream=new S.xQ,Sn._overlayPanelClass=(null===(tr=Sn._defaultOptions)||void 0===tr?void 0:tr.overlayPanelClass)||"",Sn._focused=!1,Sn.controlType="mat-select",Sn._required=!1,Sn._multiple=!1,Sn._disableOptionCentering=null!==(Ut=null===(cr=Sn._defaultOptions)||void 0===cr?void 0:cr.disableOptionCentering)&&void 0!==Ut&&Ut,Sn.ariaLabel="",Sn.optionSelectionChanges=(0,O.P)(function(){var Rt=Sn.options;return Rt?Rt.changes.pipe((0,j.O)(Rt),(0,K.w)(function(){return L.T.apply(void 0,(0,V.Z)(Rt.map(function(Lt){return Lt.onSelectionChange})))})):Sn._ngZone.onStable.pipe((0,z.q)(1),(0,K.w)(function(){return Sn.optionSelectionChanges}))}),Sn.openedChange=new M.vpe,Sn._openedStream=Sn.openedChange.pipe((0,J.h)(function(Rt){return Rt}),(0,ie.U)(function(){})),Sn._closedStream=Sn.openedChange.pipe((0,J.h)(function(Rt){return!Rt}),(0,ie.U)(function(){})),Sn.selectionChange=new M.vpe,Sn.valueChange=new M.vpe,Sn.ngControl&&(Sn.ngControl.valueAccessor=(0,T.Z)(Sn)),null!=(null==Cn?void 0:Cn.typeaheadDebounceInterval)&&(Sn._typeaheadDebounceInterval=Cn.typeaheadDebounceInterval),Sn._scrollStrategyFactory=Pn,Sn._scrollStrategy=Sn._scrollStrategyFactory(),Sn.tabIndex=parseInt(Tn)||0,Sn.id=Sn.id,Sn}return(0,Z.Z)(ye,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(we){this._placeholder=we,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(we){this._required=(0,N.Ig)(we),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(we){this._multiple=(0,N.Ig)(we)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(we){this._disableOptionCentering=(0,N.Ig)(we)}},{key:"compareWith",get:function(){return this._compareWith},set:function(we){this._compareWith=we,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(we){(we!==this._value||this._multiple&&Array.isArray(we))&&(this.options&&this._setSelectionByValue(we),this._value=we)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(we){this._typeaheadDebounceInterval=(0,N.su)(we)}},{key:"id",get:function(){return this._id},set:function(we){this._id=we||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var we=this;this._selectionModel=new E.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,te.x)(),(0,ae.R)(this._destroy)).subscribe(function(){return we._panelDoneAnimating(we.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var we=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,ae.R)(this._destroy)).subscribe(function(ct){ct.added.forEach(function(ht){return ht.select()}),ct.removed.forEach(function(ht){return ht.deselect()})}),this.options.changes.pipe((0,j.O)(null),(0,ae.R)(this._destroy)).subscribe(function(){we._resetOptions(),we._initializeSelection()})}},{key:"ngDoCheck",value:function(){var we=this._getTriggerAriaLabelledby();if(we!==this._triggerAriaLabelledBy){var ct=this._elementRef.nativeElement;this._triggerAriaLabelledBy=we,we?ct.setAttribute("aria-labelledby",we):ct.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(we){we.disabled&&this.stateChanges.next(),we.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(we){this.value=we}},{key:"registerOnChange",value:function(we){this._onChange=we}},{key:"registerOnTouched",value:function(we){this._onTouched=we}},{key:"setDisabledState",value:function(we){this.disabled=we,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){var we,ct;return this.multiple?(null===(we=this._selectionModel)||void 0===we?void 0:we.selected)||[]:null===(ct=this._selectionModel)||void 0===ct?void 0:ct.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var we=this._selectionModel.selected.map(function(ct){return ct.viewValue});return this._isRtl()&&we.reverse(),we.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(we){this.disabled||(this.panelOpen?this._handleOpenKeydown(we):this._handleClosedKeydown(we))}},{key:"_handleClosedKeydown",value:function(we){var ct=we.keyCode,ht=ct===x.JH||ct===x.LH||ct===x.oh||ct===x.SV,Jt=ct===x.K5||ct===x.L_,Kt=this._keyManager;if(!Kt.isTyping()&&Jt&&!(0,x.Vb)(we)||(this.multiple||we.altKey)&&ht)we.preventDefault(),this.open();else if(!this.multiple){var Yt=this.selected;Kt.onKeydown(we);var nn=this.selected;nn&&Yt!==nn&&this._liveAnnouncer.announce(nn.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(we){var ct=this._keyManager,ht=we.keyCode,Jt=ht===x.JH||ht===x.LH,Kt=ct.isTyping();if(Jt&&we.altKey)we.preventDefault(),this.close();else if(Kt||ht!==x.K5&&ht!==x.L_||!ct.activeItem||(0,x.Vb)(we))if(!Kt&&this._multiple&&ht===x.A&&we.ctrlKey){we.preventDefault();var Yt=this.options.some(function(cn){return!cn.disabled&&!cn.selected});this.options.forEach(function(cn){cn.disabled||(Yt?cn.select():cn.deselect())})}else{var nn=ct.activeItemIndex;ct.onKeydown(we),this._multiple&&Jt&&we.shiftKey&&ct.activeItem&&ct.activeItemIndex!==nn&&ct.activeItem._selectViaInteraction()}else we.preventDefault(),ct.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var we=this;this._overlayDir.positionChange.pipe((0,z.q)(1)).subscribe(function(){we._changeDetectorRef.detectChanges(),we._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var we=this;Promise.resolve().then(function(){we._setSelectionByValue(we.ngControl?we.ngControl.value:we._value),we.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(we){var ct=this;if(this._selectionModel.selected.forEach(function(Jt){return Jt.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&we)Array.isArray(we),we.forEach(function(Jt){return ct._selectValue(Jt)}),this._sortValues();else{var ht=this._selectValue(we);ht?this._keyManager.updateActiveItem(ht):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(we){var ct=this,ht=this.options.find(function(Jt){if(ct._selectionModel.isSelected(Jt))return!1;try{return null!=Jt.value&&ct._compareWith(Jt.value,we)}catch(Kt){return!1}});return ht&&this._selectionModel.select(ht),ht}},{key:"_initKeyManager",value:function(){var we=this;this._keyManager=new k.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,ae.R)(this._destroy)).subscribe(function(){we.panelOpen&&(!we.multiple&&we._keyManager.activeItem&&we._keyManager.activeItem._selectViaInteraction(),we.focus(),we.close())}),this._keyManager.change.pipe((0,ae.R)(this._destroy)).subscribe(function(){we._panelOpen&&we.panel?we._scrollOptionIntoView(we._keyManager.activeItemIndex||0):!we._panelOpen&&!we.multiple&&we._keyManager.activeItem&&we._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var we=this,ct=(0,L.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ae.R)(ct)).subscribe(function(ht){we._onSelect(ht.source,ht.isUserInput),ht.isUserInput&&!we.multiple&&we._panelOpen&&(we.close(),we.focus())}),L.T.apply(void 0,(0,V.Z)(this.options.map(function(ht){return ht._stateChanges}))).pipe((0,ae.R)(ct)).subscribe(function(){we._changeDetectorRef.markForCheck(),we.stateChanges.next()})}},{key:"_onSelect",value:function(we,ct){var ht=this._selectionModel.isSelected(we);null!=we.value||this._multiple?(ht!==we.selected&&(we.selected?this._selectionModel.select(we):this._selectionModel.deselect(we)),ct&&this._keyManager.setActiveItem(we),this.multiple&&(this._sortValues(),ct&&this.focus())):(we.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(we.value)),ht!==this._selectionModel.isSelected(we)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var we=this;if(this.multiple){var ct=this.options.toArray();this._selectionModel.sort(function(ht,Jt){return we.sortComparator?we.sortComparator(ht,Jt,ct):ct.indexOf(ht)-ct.indexOf(Jt)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(we){var ct;ct=this.multiple?this.selected.map(function(ht){return ht.value}):this.selected?this.selected.value:we,this._value=ct,this.valueChange.emit(ct),this._onChange(ct),this.selectionChange.emit(this._getChangeEvent(ct)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var we;return!this._panelOpen&&!this.disabled&&(null===(we=this.options)||void 0===we?void 0:we.length)>0}},{key:"focus",value:function(we){this._elementRef.nativeElement.focus(we)}},{key:"_getPanelAriaLabelledby",value:function(){var we;if(this.ariaLabel)return null;var ct=null===(we=this._parentFormField)||void 0===we?void 0:we.getLabelId();return this.ariaLabelledby?(ct?ct+" ":"")+this.ariaLabelledby:ct}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var we;if(this.ariaLabel)return null;var ct=null===(we=this._parentFormField)||void 0===we?void 0:we.getLabelId(),ht=(ct?ct+" ":"")+this._valueId;return this.ariaLabelledby&&(ht+=" "+this.ariaLabelledby),ht}},{key:"_panelDoneAnimating",value:function(we){this.openedChange.emit(we)}},{key:"setDescribedByIds",value:function(we){this._ariaDescribedby=we.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),ye}(Nn);return ut.\u0275fac=function(ve){return new(ve||ut)(M.Y36(g.rL),M.Y36(M.sBO),M.Y36(M.R0b),M.Y36(A.rD),M.Y36(M.SBq),M.Y36(ce.Is,8),M.Y36(le.F,8),M.Y36(le.sg,8),M.Y36(_.G_,8),M.Y36(le.a5,10),M.$8M("tabindex"),M.Y36(bt),M.Y36(k.Kd),M.Y36(Nt,8))},ut.\u0275dir=M.lG2({type:ut,viewQuery:function(ve,ye){var Te;1&ve&&(M.Gf(oe,5),M.Gf(Ae,5),M.Gf(P.pI,5)),2&ve&&(M.iGM(Te=M.CRH())&&(ye.trigger=Te.first),M.iGM(Te=M.CRH())&&(ye.panel=Te.first),M.iGM(Te=M.CRH())&&(ye._overlayDir=Te.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[M.qOj,M.TTD]}),ut}(),wn=function(){var ut=function(He){(0,R.Z)(ye,He);var ve=(0,C.Z)(ye);function ye(){var Te;return(0,v.Z)(this,ye),(Te=ve.apply(this,arguments))._scrollTop=0,Te._triggerFontSize=0,Te._transformOrigin="top",Te._offsetY=0,Te._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],Te}return(0,Z.Z)(ye,[{key:"_calculateOverlayScroll",value:function(we,ct,ht){var Jt=this._getItemHeight();return Math.min(Math.max(0,Jt*we-ct+Jt/2),ht)}},{key:"ngOnInit",value:function(){var we=this;(0,U.Z)((0,B.Z)(ye.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,ae.R)(this._destroy)).subscribe(function(){we.panelOpen&&(we._triggerRect=we.trigger.nativeElement.getBoundingClientRect(),we._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var we=this;(0,U.Z)((0,B.Z)(ye.prototype),"_canOpen",this).call(this)&&((0,U.Z)((0,B.Z)(ye.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,z.q)(1)).subscribe(function(){we._triggerFontSize&&we._overlayDir.overlayRef&&we._overlayDir.overlayRef.overlayElement&&(we._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(we._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(we){var ct=(0,A.CB)(we,this.options,this.optionGroups),ht=this._getItemHeight();this.panel.nativeElement.scrollTop=0===we&&1===ct?0:(0,A.jH)((we+ct)*ht,ht,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(we){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),(0,U.Z)((0,B.Z)(ye.prototype),"_panelDoneAnimating",this).call(this,we)}},{key:"_getChangeEvent",value:function(we){return new kn(this,we)}},{key:"_calculateOverlayOffsetX",value:function(){var Kt,we=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),ct=this._viewportRuler.getViewportSize(),ht=this._isRtl(),Jt=this.multiple?56:32;if(this.multiple)Kt=40;else if(this.disableOptionCentering)Kt=16;else{var Yt=this._selectionModel.selected[0]||this.options.first;Kt=Yt&&Yt.group?32:16}ht||(Kt*=-1);var nn=0-(we.left+Kt-(ht?Jt:0)),cn=we.right+Kt-ct.width+(ht?0:Jt);nn>0?Kt+=nn+8:cn>0&&(Kt-=cn+8),this._overlayDir.offsetX=Math.round(Kt),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(we,ct,ht){var nn,Jt=this._getItemHeight(),Kt=(Jt-this._triggerRect.height)/2,Yt=Math.floor(256/Jt);return this.disableOptionCentering?0:(nn=0===this._scrollTop?we*Jt:this._scrollTop===ht?(we-(this._getItemCount()-Yt))*Jt+(Jt-(this._getItemCount()*Jt-256)%Jt):ct-Jt/2,Math.round(-1*nn-Kt))}},{key:"_checkOverlayWithinViewport",value:function(we){var ct=this._getItemHeight(),ht=this._viewportRuler.getViewportSize(),Jt=this._triggerRect.top-8,Kt=ht.height-this._triggerRect.bottom-8,Yt=Math.abs(this._offsetY),cn=Math.min(this._getItemCount()*ct,256)-Yt-this._triggerRect.height;cn>Kt?this._adjustPanelUp(cn,Kt):Yt>Jt?this._adjustPanelDown(Yt,Jt,we):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(we,ct){var ht=Math.round(we-ct);this._scrollTop-=ht,this._offsetY-=ht,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(we,ct,ht){var Jt=Math.round(we-ct);if(this._scrollTop+=Jt,this._offsetY+=Jt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=ht)return this._scrollTop=ht,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var Yt,we=this._getItemHeight(),ct=this._getItemCount(),ht=Math.min(ct*we,256),Kt=ct*we-ht;Yt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),Yt+=(0,A.CB)(Yt,this.options,this.optionGroups);var nn=ht/2;this._scrollTop=this._calculateOverlayScroll(Yt,nn,Kt),this._offsetY=this._calculateOverlayOffsetY(Yt,nn,Kt),this._checkOverlayWithinViewport(Kt)}},{key:"_getOriginBasedOnOption",value:function(){var we=this._getItemHeight(),ct=(we-this._triggerRect.height)/2,ht=Math.abs(this._offsetY)-ct+we/2;return"50% ".concat(ht,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),ye}(Rn);return ut.\u0275fac=function(){var He;return function(ye){return(He||(He=M.n5z(ut)))(ye||ut)}}(),ut.\u0275cmp=M.Xpm({type:ut,selectors:[["mat-select"]],contentQueries:function(ve,ye,Te){var we;1&ve&&(M.Suo(Te,In,5),M.Suo(Te,A.ey,5),M.Suo(Te,A.K7,5)),2&ve&&(M.iGM(we=M.CRH())&&(ye.customTrigger=we.first),M.iGM(we=M.CRH())&&(ye.options=we),M.iGM(we=M.CRH())&&(ye.optionGroups=we))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(ve,ye){1&ve&&M.NdJ("keydown",function(we){return ye._handleKeydown(we)})("focus",function(){return ye._onFocus()})("blur",function(){return ye._onBlur()}),2&ve&&(M.uIk("id",ye.id)("tabindex",ye.tabIndex)("aria-controls",ye.panelOpen?ye.id+"-panel":null)("aria-expanded",ye.panelOpen)("aria-label",ye.ariaLabel||null)("aria-required",ye.required.toString())("aria-disabled",ye.disabled.toString())("aria-invalid",ye.errorState)("aria-describedby",ye._ariaDescribedby||null)("aria-activedescendant",ye._getAriaActiveDescendant()),M.ekj("mat-select-disabled",ye.disabled)("mat-select-invalid",ye.errorState)("mat-select-required",ye.required)("mat-select-empty",ye.empty)("mat-select-multiple",ye.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[M._Bn([{provide:_.Eo,useExisting:ut},{provide:A.HF,useExisting:ut}]),M.qOj],ngContentSelectors:xe,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(ve,ye){if(1&ve&&(M.F$t(Ft),M.TgZ(0,"div",0,1),M.NdJ("click",function(){return ye.toggle()}),M.TgZ(3,"div",2),M.YNc(4,be,2,1,"span",3),M.YNc(5,_t,3,2,"span",4),M.qZA(),M.TgZ(6,"div",5),M._UZ(7,"div",6),M.qZA(),M.qZA(),M.YNc(8,yt,4,14,"ng-template",7),M.NdJ("backdropClick",function(){return ye.close()})("attach",function(){return ye._onAttached()})("detach",function(){return ye.close()})),2&ve){var Te=M.MAs(1);M.uIk("aria-owns",ye.panelOpen?ye.id+"-panel":null),M.xp6(3),M.Q6J("ngSwitch",ye.empty),M.uIk("id",ye._valueId),M.xp6(1),M.Q6J("ngSwitchCase",!0),M.xp6(1),M.Q6J("ngSwitchCase",!1),M.xp6(3),M.Q6J("cdkConnectedOverlayPanelClass",ye._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",ye._scrollStrategy)("cdkConnectedOverlayOrigin",Te)("cdkConnectedOverlayOpen",ye.panelOpen)("cdkConnectedOverlayPositions",ye._positions)("cdkConnectedOverlayMinWidth",null==ye._triggerRect?null:ye._triggerRect.width)("cdkConnectedOverlayOffsetY",ye._offsetY)}},directives:[P.xu,D.RF,D.n9,P.pI,D.ED,D.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[Oe.transformPanelWrap,Oe.transformPanel]},changeDetection:0}),ut}(),yr=function(){var ut=function He(){(0,v.Z)(this,He)};return ut.\u0275fac=function(ve){return new(ve||ut)},ut.\u0275mod=M.oAB({type:ut}),ut.\u0275inj=M.cJS({providers:[rn],imports:[[D.ez,P.U8,A.Ng,A.BQ],g.ZD,_.lN,A.Ng,A.BQ]}),ut}()},88802:function(ue,q,f){"use strict";f.d(q,{uX:function(){return In},SP:function(){return we},uD:function(){return rn},Nh:function(){return cr}}),f(88009);var B=f(10629),V=f(20901),Z=f(89200),T=f(10509),R=f(97154),C=f(18967),v=f(14105),P=f(6517),D=f(96798),M=f(80785),A=f(40098),_=f(65508),g=f(59412),k=f(38480),N=f(68707),E=f(5051),x=f(55371),S=f(33090),O=f(43161),L=f(5041),j=f(739),K=f(57682),z=f(76161),J=f(44213),ie=f(78081),te=f(15427),ae=f(32819),se=f(8392),ce=f(28722);function le(Ut,Rt){1&Ut&&_.Hsn(0)}var oe=["*"];function Ae(Ut,Rt){}var be=function(Rt){return{animationDuration:Rt}},it=function(Rt,Lt){return{value:Rt,params:Lt}},qe=["tabBodyWrapper"],_t=["tabHeader"];function yt(Ut,Rt){}function Ft(Ut,Rt){if(1&Ut&&_.YNc(0,yt,0,0,"ng-template",9),2&Ut){var Lt=_.oxw().$implicit;_.Q6J("cdkPortalOutlet",Lt.templateLabel)}}function xe(Ut,Rt){if(1&Ut&&_._uU(0),2&Ut){var Lt=_.oxw().$implicit;_.Oqu(Lt.textLabel)}}function Oe(Ut,Rt){if(1&Ut){var Lt=_.EpF();_.TgZ(0,"div",6),_.NdJ("click",function(){var Ne=_.CHM(Lt),Le=Ne.$implicit,ze=Ne.index,At=_.oxw(),an=_.MAs(1);return At._handleClick(Le,an,ze)})("cdkFocusChange",function(Ne){var ze=_.CHM(Lt).index;return _.oxw()._tabFocusChanged(Ne,ze)}),_.TgZ(1,"div",7),_.YNc(2,Ft,1,1,"ng-template",8),_.YNc(3,xe,1,1,"ng-template",8),_.qZA(),_.qZA()}if(2&Ut){var Pe=Rt.$implicit,rt=Rt.index,he=_.oxw();_.ekj("mat-tab-label-active",he.selectedIndex==rt),_.Q6J("id",he._getTabLabelId(rt))("disabled",Pe.disabled)("matRippleDisabled",Pe.disabled||he.disableRipple),_.uIk("tabIndex",he._getTabIndex(Pe,rt))("aria-posinset",rt+1)("aria-setsize",he._tabs.length)("aria-controls",he._getTabContentId(rt))("aria-selected",he.selectedIndex==rt)("aria-label",Pe.ariaLabel||null)("aria-labelledby",!Pe.ariaLabel&&Pe.ariaLabelledby?Pe.ariaLabelledby:null),_.xp6(2),_.Q6J("ngIf",Pe.templateLabel),_.xp6(1),_.Q6J("ngIf",!Pe.templateLabel)}}function je(Ut,Rt){if(1&Ut){var Lt=_.EpF();_.TgZ(0,"mat-tab-body",10),_.NdJ("_onCentered",function(){return _.CHM(Lt),_.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(Ne){return _.CHM(Lt),_.oxw()._setTabBodyWrapperHeight(Ne)}),_.qZA()}if(2&Ut){var Pe=Rt.$implicit,rt=Rt.index,he=_.oxw();_.ekj("mat-tab-body-active",he.selectedIndex===rt),_.Q6J("id",he._getTabContentId(rt))("content",Pe.content)("position",Pe.position)("origin",Pe.origin)("animationDuration",he.animationDuration),_.uIk("tabindex",null!=he.contentTabIndex&&he.selectedIndex===rt?he.contentTabIndex:null)("aria-labelledby",he._getTabLabelId(rt))}}var dt=["tabListContainer"],Qe=["tabList"],Bt=["nextPaginator"],xt=["previousPaginator"],Qt=new _.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(Lt){return{left:Lt?(Lt.offsetLeft||0)+"px":"0",width:Lt?(Lt.offsetWidth||0)+"px":"0"}}}}),Ct=function(){var Ut=function(){function Rt(Lt,Pe,rt,he){(0,C.Z)(this,Rt),this._elementRef=Lt,this._ngZone=Pe,this._inkBarPositioner=rt,this._animationMode=he}return(0,v.Z)(Rt,[{key:"alignToElement",value:function(Pe){var rt=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return rt._setStyles(Pe)})}):this._setStyles(Pe)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(Pe){var rt=this._inkBarPositioner(Pe),he=this._elementRef.nativeElement;he.style.left=rt.left,he.style.width=rt.width}}]),Rt}();return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(_.Y36(_.SBq),_.Y36(_.R0b),_.Y36(Qt),_.Y36(k.Qb,8))},Ut.\u0275dir=_.lG2({type:Ut,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Lt,Pe){2&Lt&&_.ekj("_mat-animation-noopable","NoopAnimations"===Pe._animationMode)}}),Ut}(),Vt=new _.OlP("MatTabContent"),en=new _.OlP("MatTabLabel"),Nt=new _.OlP("MAT_TAB"),rn=function(){var Ut=function(Rt){(0,T.Z)(Pe,Rt);var Lt=(0,R.Z)(Pe);function Pe(rt,he,Ie){var Ne;return(0,C.Z)(this,Pe),(Ne=Lt.call(this,rt,he))._closestTab=Ie,Ne}return Pe}(M.ig);return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(_.Y36(_.Rgc),_.Y36(_.s_b),_.Y36(Nt,8))},Ut.\u0275dir=_.lG2({type:Ut,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[_._Bn([{provide:en,useExisting:Ut}]),_.qOj]}),Ut}(),kn=(0,g.Id)(function(){return function Ut(){(0,C.Z)(this,Ut)}}()),Nn=new _.OlP("MAT_TAB_GROUP"),In=function(){var Ut=function(Rt){(0,T.Z)(Pe,Rt);var Lt=(0,R.Z)(Pe);function Pe(rt,he){var Ie;return(0,C.Z)(this,Pe),(Ie=Lt.call(this))._viewContainerRef=rt,Ie._closestTabGroup=he,Ie.textLabel="",Ie._contentPortal=null,Ie._stateChanges=new N.xQ,Ie.position=null,Ie.origin=null,Ie.isActive=!1,Ie}return(0,v.Z)(Pe,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(he){this._setTemplateLabelInput(he)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(he){(he.hasOwnProperty("textLabel")||he.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new M.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(he){he&&he._closestTab===this&&(this._templateLabel=he)}}]),Pe}(kn);return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(_.Y36(_.s_b),_.Y36(Nn,8))},Ut.\u0275cmp=_.Xpm({type:Ut,selectors:[["mat-tab"]],contentQueries:function(Lt,Pe,rt){var he;1&Lt&&(_.Suo(rt,en,5),_.Suo(rt,Vt,7,_.Rgc)),2&Lt&&(_.iGM(he=_.CRH())&&(Pe.templateLabel=he.first),_.iGM(he=_.CRH())&&(Pe._explicitContent=he.first))},viewQuery:function(Lt,Pe){var rt;1&Lt&&_.Gf(_.Rgc,7),2&Lt&&_.iGM(rt=_.CRH())&&(Pe._implicitContent=rt.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[_._Bn([{provide:Nt,useExisting:Ut}]),_.qOj,_.TTD],ngContentSelectors:oe,decls:1,vars:0,template:function(Lt,Pe){1&Lt&&(_.F$t(),_.YNc(0,le,1,0,"ng-template"))},encapsulation:2}),Ut}(),$n={translateTab:(0,j.X$)("translateTab",[(0,j.SB)("center, void, left-origin-center, right-origin-center",(0,j.oB)({transform:"none"})),(0,j.SB)("left",(0,j.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,j.SB)("right",(0,j.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,j.eR)("* => left, * => right, left => center, right => center",(0,j.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,j.eR)("void => left-origin-center",[(0,j.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,j.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,j.eR)("void => right-origin-center",[(0,j.oB)({transform:"translate3d(100%, 0, 0)"}),(0,j.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Rn=function(){var Ut=function(Rt){(0,T.Z)(Pe,Rt);var Lt=(0,R.Z)(Pe);function Pe(rt,he,Ie,Ne){var Le;return(0,C.Z)(this,Pe),(Le=Lt.call(this,rt,he,Ne))._host=Ie,Le._centeringSub=E.w.EMPTY,Le._leavingSub=E.w.EMPTY,Le}return(0,v.Z)(Pe,[{key:"ngOnInit",value:function(){var he=this;(0,V.Z)((0,Z.Z)(Pe.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,K.O)(this._host._isCenterPosition(this._host._position))).subscribe(function(Ie){Ie&&!he.hasAttached()&&he.attach(he._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){he.detach()})}},{key:"ngOnDestroy",value:function(){(0,V.Z)((0,Z.Z)(Pe.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),Pe}(M.Pl);return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(_.Y36(_._Vd),_.Y36(_.s_b),_.Y36((0,_.Gpc)(function(){return yr})),_.Y36(A.K0))},Ut.\u0275dir=_.lG2({type:Ut,selectors:[["","matTabBodyHost",""]],features:[_.qOj]}),Ut}(),wn=function(){var Ut=function(){function Rt(Lt,Pe,rt){var he=this;(0,C.Z)(this,Rt),this._elementRef=Lt,this._dir=Pe,this._dirChangeSubscription=E.w.EMPTY,this._translateTabComplete=new N.xQ,this._onCentering=new _.vpe,this._beforeCentering=new _.vpe,this._afterLeavingCenter=new _.vpe,this._onCentered=new _.vpe(!0),this.animationDuration="500ms",Pe&&(this._dirChangeSubscription=Pe.change.subscribe(function(Ie){he._computePositionAnimationState(Ie),rt.markForCheck()})),this._translateTabComplete.pipe((0,z.x)(function(Ie,Ne){return Ie.fromState===Ne.fromState&&Ie.toState===Ne.toState})).subscribe(function(Ie){he._isCenterPosition(Ie.toState)&&he._isCenterPosition(he._position)&&he._onCentered.emit(),he._isCenterPosition(Ie.fromState)&&!he._isCenterPosition(he._position)&&he._afterLeavingCenter.emit()})}return(0,v.Z)(Rt,[{key:"position",set:function(Pe){this._positionIndex=Pe,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(Pe){var rt=this._isCenterPosition(Pe.toState);this._beforeCentering.emit(rt),rt&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(Pe){return"center"==Pe||"left-origin-center"==Pe||"right-origin-center"==Pe}},{key:"_computePositionAnimationState",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==Pe?"left":"right":this._positionIndex>0?"ltr"==Pe?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(Pe){var rt=this._getLayoutDirection();return"ltr"==rt&&Pe<=0||"rtl"==rt&&Pe>0?"left-origin-center":"right-origin-center"}}]),Rt}();return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(_.Y36(_.SBq),_.Y36(se.Is,8),_.Y36(_.sBO))},Ut.\u0275dir=_.lG2({type:Ut,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ut}(),yr=function(){var Ut=function(Rt){(0,T.Z)(Pe,Rt);var Lt=(0,R.Z)(Pe);function Pe(rt,he,Ie){return(0,C.Z)(this,Pe),Lt.call(this,rt,he,Ie)}return Pe}(wn);return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(_.Y36(_.SBq),_.Y36(se.Is,8),_.Y36(_.sBO))},Ut.\u0275cmp=_.Xpm({type:Ut,selectors:[["mat-tab-body"]],viewQuery:function(Lt,Pe){var rt;1&Lt&&_.Gf(M.Pl,5),2&Lt&&_.iGM(rt=_.CRH())&&(Pe._portalHost=rt.first)},hostAttrs:[1,"mat-tab-body"],features:[_.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Lt,Pe){1&Lt&&(_.TgZ(0,"div",0,1),_.NdJ("@translateTab.start",function(he){return Pe._onTranslateTabStarted(he)})("@translateTab.done",function(he){return Pe._translateTabComplete.next(he)}),_.YNc(2,Ae,0,0,"ng-template",2),_.qZA()),2&Lt&&_.Q6J("@translateTab",_.WLB(3,it,Pe._position,_.VKq(1,be,Pe.animationDuration)))},directives:[Rn],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[$n.translateTab]}}),Ut}(),ut=new _.OlP("MAT_TABS_CONFIG"),He=0,ve=function Ut(){(0,C.Z)(this,Ut)},ye=(0,g.pj)((0,g.Kr)(function(){return function Ut(Rt){(0,C.Z)(this,Ut),this._elementRef=Rt}}()),"primary"),Te=function(){var Ut=function(Rt){(0,T.Z)(Pe,Rt);var Lt=(0,R.Z)(Pe);function Pe(rt,he,Ie,Ne){var Le,ze;return(0,C.Z)(this,Pe),(Le=Lt.call(this,rt))._changeDetectorRef=he,Le._animationMode=Ne,Le._tabs=new _.n_E,Le._indexToSelect=0,Le._tabBodyWrapperHeight=0,Le._tabsSubscription=E.w.EMPTY,Le._tabLabelSubscription=E.w.EMPTY,Le._selectedIndex=null,Le.headerPosition="above",Le.selectedIndexChange=new _.vpe,Le.focusChange=new _.vpe,Le.animationDone=new _.vpe,Le.selectedTabChange=new _.vpe(!0),Le._groupId=He++,Le.animationDuration=Ie&&Ie.animationDuration?Ie.animationDuration:"500ms",Le.disablePagination=!(!Ie||null==Ie.disablePagination)&&Ie.disablePagination,Le.dynamicHeight=!(!Ie||null==Ie.dynamicHeight)&&Ie.dynamicHeight,Le.contentTabIndex=null!==(ze=null==Ie?void 0:Ie.contentTabIndex)&&void 0!==ze?ze:null,Le}return(0,v.Z)(Pe,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(he){this._dynamicHeight=(0,ie.Ig)(he)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(he){this._indexToSelect=(0,ie.su)(he,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(he){this._animationDuration=/^\d+$/.test(he)?he+"ms":he}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(he){this._contentTabIndex=(0,ie.su)(he,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(he){var Ie=this._elementRef.nativeElement;Ie.classList.remove("mat-background-".concat(this.backgroundColor)),he&&Ie.classList.add("mat-background-".concat(he)),this._backgroundColor=he}},{key:"ngAfterContentChecked",value:function(){var he=this,Ie=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Ie){var Ne=null==this._selectedIndex;if(!Ne){this.selectedTabChange.emit(this._createChangeEvent(Ie));var Le=this._tabBodyWrapper.nativeElement;Le.style.minHeight=Le.clientHeight+"px"}Promise.resolve().then(function(){he._tabs.forEach(function(ze,At){return ze.isActive=At===Ie}),Ne||(he.selectedIndexChange.emit(Ie),he._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(ze,At){ze.position=At-Ie,null!=he._selectedIndex&&0==ze.position&&!ze.origin&&(ze.origin=Ie-he._selectedIndex)}),this._selectedIndex!==Ie&&(this._selectedIndex=Ie,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var he=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(he._clampTabIndex(he._indexToSelect)===he._selectedIndex)for(var Ne=he._tabs.toArray(),Le=0;Le.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),Ut}(),ct=(0,g.Id)(function(){return function Ut(){(0,C.Z)(this,Ut)}}()),ht=function(){var Ut=function(Rt){(0,T.Z)(Pe,Rt);var Lt=(0,R.Z)(Pe);function Pe(rt){var he;return(0,C.Z)(this,Pe),(he=Lt.call(this)).elementRef=rt,he}return(0,v.Z)(Pe,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),Pe}(ct);return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(_.Y36(_.SBq))},Ut.\u0275dir=_.lG2({type:Ut,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Lt,Pe){2&Lt&&(_.uIk("aria-disabled",!!Pe.disabled),_.ekj("mat-tab-disabled",Pe.disabled))},inputs:{disabled:"disabled"},features:[_.qOj]}),Ut}(),Jt=(0,te.i$)({passive:!0}),cn=function(){var Ut=function(){function Rt(Lt,Pe,rt,he,Ie,Ne,Le){var ze=this;(0,C.Z)(this,Rt),this._elementRef=Lt,this._changeDetectorRef=Pe,this._viewportRuler=rt,this._dir=he,this._ngZone=Ie,this._platform=Ne,this._animationMode=Le,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new N.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new N.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new _.vpe,this.indexFocused=new _.vpe,Ie.runOutsideAngular(function(){(0,S.R)(Lt.nativeElement,"mouseleave").pipe((0,J.R)(ze._destroyed)).subscribe(function(){ze._stopInterval()})})}return(0,v.Z)(Rt,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(Pe){Pe=(0,ie.su)(Pe),this._selectedIndex!=Pe&&(this._selectedIndexChanged=!0,this._selectedIndex=Pe,this._keyManager&&this._keyManager.updateActiveItem(Pe))}},{key:"ngAfterViewInit",value:function(){var Pe=this;(0,S.R)(this._previousPaginator.nativeElement,"touchstart",Jt).pipe((0,J.R)(this._destroyed)).subscribe(function(){Pe._handlePaginatorPress("before")}),(0,S.R)(this._nextPaginator.nativeElement,"touchstart",Jt).pipe((0,J.R)(this._destroyed)).subscribe(function(){Pe._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var Pe=this,rt=this._dir?this._dir.change:(0,O.of)("ltr"),he=this._viewportRuler.change(150),Ie=function(){Pe.updatePagination(),Pe._alignInkBarToSelectedTab()};this._keyManager=new P.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(Ie):Ie(),(0,x.T)(rt,he,this._items.changes).pipe((0,J.R)(this._destroyed)).subscribe(function(){Pe._ngZone.run(function(){return Promise.resolve().then(Ie)}),Pe._keyManager.withHorizontalOrientation(Pe._getLayoutDirection())}),this._keyManager.change.pipe((0,J.R)(this._destroyed)).subscribe(function(Ne){Pe.indexFocused.emit(Ne),Pe._setTabFocus(Ne)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(Pe){if(!(0,ae.Vb)(Pe))switch(Pe.keyCode){case ae.K5:case ae.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Pe));break;default:this._keyManager.onKeydown(Pe)}}},{key:"_onContentChanges",value:function(){var Pe=this,rt=this._elementRef.nativeElement.textContent;rt!==this._currentTextContent&&(this._currentTextContent=rt||"",this._ngZone.run(function(){Pe.updatePagination(),Pe._alignInkBarToSelectedTab(),Pe._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(Pe){!this._isValidIndex(Pe)||this.focusIndex===Pe||!this._keyManager||this._keyManager.setActiveItem(Pe)}},{key:"_isValidIndex",value:function(Pe){if(!this._items)return!0;var rt=this._items?this._items.toArray()[Pe]:null;return!!rt&&!rt.disabled}},{key:"_setTabFocus",value:function(Pe){if(this._showPaginationControls&&this._scrollToLabel(Pe),this._items&&this._items.length){this._items.toArray()[Pe].focus();var rt=this._tabListContainer.nativeElement,he=this._getLayoutDirection();rt.scrollLeft="ltr"==he?0:rt.scrollWidth-rt.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var Pe=this.scrollDistance,rt="ltr"===this._getLayoutDirection()?-Pe:Pe;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(rt),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(Pe){this._scrollTo(Pe)}},{key:"_scrollHeader",value:function(Pe){return this._scrollTo(this._scrollDistance+("before"==Pe?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(Pe){this._stopInterval(),this._scrollHeader(Pe)}},{key:"_scrollToLabel",value:function(Pe){if(!this.disablePagination){var rt=this._items?this._items.toArray()[Pe]:null;if(rt){var ze,At,he=this._tabListContainer.nativeElement.offsetWidth,Ie=rt.elementRef.nativeElement,Ne=Ie.offsetLeft,Le=Ie.offsetWidth;"ltr"==this._getLayoutDirection()?At=(ze=Ne)+Le:ze=(At=this._tabList.nativeElement.offsetWidth-Ne)-Le;var an=this.scrollDistance,qn=this.scrollDistance+he;zeqn&&(this.scrollDistance+=At-qn+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var Pe=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Pe||(this.scrollDistance=0),Pe!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Pe}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var Pe=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,rt=Pe?Pe.elementRef.nativeElement:null;rt?this._inkBar.alignToElement(rt):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(Pe,rt){var he=this;rt&&null!=rt.button&&0!==rt.button||(this._stopInterval(),(0,L.H)(650,100).pipe((0,J.R)((0,x.T)(this._stopScrolling,this._destroyed))).subscribe(function(){var Ie=he._scrollHeader(Pe),Le=Ie.distance;(0===Le||Le>=Ie.maxScrollDistance)&&he._stopInterval()}))}},{key:"_scrollTo",value:function(Pe){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var rt=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(rt,Pe)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:rt,distance:this._scrollDistance}}}]),Rt}();return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(ce.rL),_.Y36(se.Is,8),_.Y36(_.R0b),_.Y36(te.t4),_.Y36(k.Qb,8))},Ut.\u0275dir=_.lG2({type:Ut,inputs:{disablePagination:"disablePagination"}}),Ut}(),yn=function(){var Ut=function(Rt){(0,T.Z)(Pe,Rt);var Lt=(0,R.Z)(Pe);function Pe(rt,he,Ie,Ne,Le,ze,At){var an;return(0,C.Z)(this,Pe),(an=Lt.call(this,rt,he,Ie,Ne,Le,ze,At))._disableRipple=!1,an}return(0,v.Z)(Pe,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(he){this._disableRipple=(0,ie.Ig)(he)}},{key:"_itemSelected",value:function(he){he.preventDefault()}}]),Pe}(cn);return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(ce.rL),_.Y36(se.Is,8),_.Y36(_.R0b),_.Y36(te.t4),_.Y36(k.Qb,8))},Ut.\u0275dir=_.lG2({type:Ut,inputs:{disableRipple:"disableRipple"},features:[_.qOj]}),Ut}(),Tn=function(){var Ut=function(Rt){(0,T.Z)(Pe,Rt);var Lt=(0,R.Z)(Pe);function Pe(rt,he,Ie,Ne,Le,ze,At){return(0,C.Z)(this,Pe),Lt.call(this,rt,he,Ie,Ne,Le,ze,At)}return Pe}(yn);return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(ce.rL),_.Y36(se.Is,8),_.Y36(_.R0b),_.Y36(te.t4),_.Y36(k.Qb,8))},Ut.\u0275cmp=_.Xpm({type:Ut,selectors:[["mat-tab-header"]],contentQueries:function(Lt,Pe,rt){var he;1&Lt&&_.Suo(rt,ht,4),2&Lt&&_.iGM(he=_.CRH())&&(Pe._items=he)},viewQuery:function(Lt,Pe){var rt;1&Lt&&(_.Gf(Ct,7),_.Gf(dt,7),_.Gf(Qe,7),_.Gf(Bt,5),_.Gf(xt,5)),2&Lt&&(_.iGM(rt=_.CRH())&&(Pe._inkBar=rt.first),_.iGM(rt=_.CRH())&&(Pe._tabListContainer=rt.first),_.iGM(rt=_.CRH())&&(Pe._tabList=rt.first),_.iGM(rt=_.CRH())&&(Pe._nextPaginator=rt.first),_.iGM(rt=_.CRH())&&(Pe._previousPaginator=rt.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Lt,Pe){2&Lt&&_.ekj("mat-tab-header-pagination-controls-enabled",Pe._showPaginationControls)("mat-tab-header-rtl","rtl"==Pe._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[_.qOj],ngContentSelectors:oe,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Lt,Pe){1&Lt&&(_.F$t(),_.TgZ(0,"div",0,1),_.NdJ("click",function(){return Pe._handlePaginatorClick("before")})("mousedown",function(he){return Pe._handlePaginatorPress("before",he)})("touchend",function(){return Pe._stopInterval()}),_._UZ(2,"div",2),_.qZA(),_.TgZ(3,"div",3,4),_.NdJ("keydown",function(he){return Pe._handleKeydown(he)}),_.TgZ(5,"div",5,6),_.NdJ("cdkObserveContent",function(){return Pe._onContentChanges()}),_.TgZ(7,"div",7),_.Hsn(8),_.qZA(),_._UZ(9,"mat-ink-bar"),_.qZA(),_.qZA(),_.TgZ(10,"div",8,9),_.NdJ("mousedown",function(he){return Pe._handlePaginatorPress("after",he)})("click",function(){return Pe._handlePaginatorClick("after")})("touchend",function(){return Pe._stopInterval()}),_._UZ(12,"div",2),_.qZA()),2&Lt&&(_.ekj("mat-tab-header-pagination-disabled",Pe._disableScrollBefore),_.Q6J("matRippleDisabled",Pe._disableScrollBefore||Pe.disableRipple),_.xp6(5),_.ekj("_mat-animation-noopable","NoopAnimations"===Pe._animationMode),_.xp6(5),_.ekj("mat-tab-header-pagination-disabled",Pe._disableScrollAfter),_.Q6J("matRippleDisabled",Pe._disableScrollAfter||Pe.disableRipple))},directives:[g.wG,D.wD,Ct],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),Ut}(),cr=function(){var Ut=function Rt(){(0,C.Z)(this,Rt)};return Ut.\u0275fac=function(Lt){return new(Lt||Ut)},Ut.\u0275mod=_.oAB({type:Ut}),Ut.\u0275inj=_.cJS({imports:[[A.ez,g.BQ,M.eL,g.si,D.Q8,P.rt],g.BQ]}),Ut}()},38480:function(ue,q,f){"use strict";f.d(q,{Qb:function(){return md},PW:function(){return tu}});var U=f(27235),B=f(18967),V=f(14105),Z=f(10509),T=f(97154),R=f(65508),C=f(29176),v=f(739),P=f(20901),D=f(89200),M=f(36683),A=f(10629);function _(){return"undefined"!=typeof window&&void 0!==window.document}function g(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function k(Se){switch(Se.length){case 0:return new v.ZN;case 1:return Se[0];default:return new v.ZE(Se)}}function N(Se,ge,Q,ee){var Ee=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},Ve=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},lt=[],wt=[],Zt=-1,$t=null;if(ee.forEach(function(An){var Bn=An.offset,Qn=Bn==Zt,hr=Qn&&$t||{};Object.keys(An).forEach(function(Ir){var Cr=Ir,Er=An[Ir];if("offset"!==Ir)switch(Cr=ge.normalizePropertyName(Cr,lt),Er){case v.k1:Er=Ee[Ir];break;case v.l3:Er=Ve[Ir];break;default:Er=ge.normalizeStyleValue(Ir,Cr,Er,lt)}hr[Cr]=Er}),Qn||wt.push(hr),$t=hr,Zt=Bn}),lt.length){var un="\n - ";throw new Error("Unable to animate due to the following errors:".concat(un).concat(lt.join(un)))}return wt}function E(Se,ge,Q,ee){switch(ge){case"start":Se.onStart(function(){return ee(Q&&x(Q,"start",Se))});break;case"done":Se.onDone(function(){return ee(Q&&x(Q,"done",Se))});break;case"destroy":Se.onDestroy(function(){return ee(Q&&x(Q,"destroy",Se))})}}function x(Se,ge,Q){var ee=Q.totalTime,Ve=S(Se.element,Se.triggerName,Se.fromState,Se.toState,ge||Se.phaseName,null==ee?Se.totalTime:ee,!!Q.disabled),lt=Se._data;return null!=lt&&(Ve._data=lt),Ve}function S(Se,ge,Q,ee){var Ee=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",Ve=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,lt=arguments.length>6?arguments[6]:void 0;return{element:Se,triggerName:ge,fromState:Q,toState:ee,phaseName:Ee,totalTime:Ve,disabled:!!lt}}function O(Se,ge,Q){var ee;return Se instanceof Map?(ee=Se.get(ge))||Se.set(ge,ee=Q):(ee=Se[ge])||(ee=Se[ge]=Q),ee}function L(Se){var ge=Se.indexOf(":");return[Se.substring(1,ge),Se.substr(ge+1)]}var j=function(ge,Q){return!1},z=function(ge,Q){return!1},ie=function(ge,Q,ee){return[]},ae=g();(ae||"undefined"!=typeof Element)&&(j=_()?function(ge,Q){for(;Q&&Q!==document.documentElement;){if(Q===ge)return!0;Q=Q.parentNode||Q.host}return!1}:function(ge,Q){return ge.contains(Q)},z=function(){if(ae||Element.prototype.matches)return function(Q,ee){return Q.matches(ee)};var Se=Element.prototype,ge=Se.matchesSelector||Se.mozMatchesSelector||Se.msMatchesSelector||Se.oMatchesSelector||Se.webkitMatchesSelector;return ge?function(Q,ee){return ge.apply(Q,[ee])}:z}(),ie=function(ge,Q,ee){var Ee=[];if(ee)for(var Ve=ge.querySelectorAll(Q),lt=0;lt1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(Se).forEach(function(Q){ge[Q]=Se[Q]}),ge}function Nn(Se,ge){var Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ge)for(var ee in Se)Q[ee]=Se[ee];else rn(Se,Q);return Q}function In(Se,ge,Q){return Q?ge+":"+Q+";":""}function $n(Se){for(var ge="",Q=0;Q *";case":leave":return"* => void";case":increment":return function(Q,ee){return parseFloat(ee)>parseFloat(Q)};case":decrement":return function(Q,ee){return parseFloat(ee) *"}}(Se,Q);if("function"==typeof ee)return void ge.push(ee);Se=ee}var Ee=Se.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Ee||Ee.length<4)return Q.push('The provided transition expression "'.concat(Se,'" is not supported')),ge;var Ve=Ee[1],lt=Ee[2],wt=Ee[3];ge.push(Sn(Ve,wt)),"<"==lt[0]&&!("*"==Ve&&"*"==wt)&&ge.push(Sn(wt,Ve))}(ee,Q,ge)}):Q.push(Se),Q}var Yn=new Set(["true","1"]),Cn=new Set(["false","0"]);function Sn(Se,ge){var Q=Yn.has(Se)||Cn.has(Se),ee=Yn.has(ge)||Cn.has(ge);return function(Ee,Ve){var lt="*"==Se||Se==Ee,wt="*"==ge||ge==Ve;return!lt&&Q&&"boolean"==typeof Ee&&(lt=Ee?Yn.has(Se):Cn.has(Se)),!wt&&ee&&"boolean"==typeof Ve&&(wt=Ve?Yn.has(ge):Cn.has(ge)),lt&&wt}}var cr=new RegExp("s*".concat(":self","s*,?"),"g");function Ut(Se,ge,Q){return new Lt(Se).build(ge,Q)}var Lt=function(){function Se(ge){(0,B.Z)(this,Se),this._driver=ge}return(0,V.Z)(Se,[{key:"build",value:function(Q,ee){var Ee=new he(ee);return this._resetContextStyleTimingState(Ee),Yt(this,yr(Q),Ee)}},{key:"_resetContextStyleTimingState",value:function(Q){Q.currentQuerySelector="",Q.collectedStyles={},Q.collectedStyles[""]={},Q.currentTime=0}},{key:"visitTrigger",value:function(Q,ee){var Ee=this,Ve=ee.queryCount=0,lt=ee.depCount=0,wt=[],Zt=[];return"@"==Q.name.charAt(0)&&ee.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),Q.definitions.forEach(function($t){if(Ee._resetContextStyleTimingState(ee),0==$t.type){var un=$t,An=un.name;An.toString().split(/\s*,\s*/).forEach(function(Qn){un.name=Qn,wt.push(Ee.visitState(un,ee))}),un.name=An}else if(1==$t.type){var Bn=Ee.visitTransition($t,ee);Ve+=Bn.queryCount,lt+=Bn.depCount,Zt.push(Bn)}else ee.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:Q.name,states:wt,transitions:Zt,queryCount:Ve,depCount:lt,options:null}}},{key:"visitState",value:function(Q,ee){var Ee=this.visitStyle(Q.styles,ee),Ve=Q.options&&Q.options.params||null;if(Ee.containsDynamicStyles){var lt=new Set,wt=Ve||{};if(Ee.styles.forEach(function($t){if(Ne($t)){var un=$t;Object.keys(un).forEach(function(An){ve(un[An]).forEach(function(Bn){wt.hasOwnProperty(Bn)||lt.add(Bn)})})}}),lt.size){var Zt=Te(lt.values());ee.errors.push('state("'.concat(Q.name,'", ...) must define default values for all the following style substitutions: ').concat(Zt.join(", ")))}}return{type:0,name:Q.name,style:Ee,options:Ve?{params:Ve}:null}}},{key:"visitTransition",value:function(Q,ee){ee.queryCount=0,ee.depCount=0;var Ee=Yt(this,yr(Q.animation),ee);return{type:1,matchers:yn(Q.expr,ee.errors),animation:Ee,queryCount:ee.queryCount,depCount:ee.depCount,options:ze(Q.options)}}},{key:"visitSequence",value:function(Q,ee){var Ee=this;return{type:2,steps:Q.steps.map(function(Ve){return Yt(Ee,Ve,ee)}),options:ze(Q.options)}}},{key:"visitGroup",value:function(Q,ee){var Ee=this,Ve=ee.currentTime,lt=0,wt=Q.steps.map(function(Zt){ee.currentTime=Ve;var $t=Yt(Ee,Zt,ee);return lt=Math.max(lt,ee.currentTime),$t});return ee.currentTime=lt,{type:3,steps:wt,options:ze(Q.options)}}},{key:"visitAnimate",value:function(Q,ee){var Ee=function(Se,ge){var Q=null;if(Se.hasOwnProperty("duration"))Q=Se;else if("number"==typeof Se)return At(en(Se,ge).duration,0,"");var Ee=Se;if(Ee.split(/\s+/).some(function(wt){return"{"==wt.charAt(0)&&"{"==wt.charAt(1)})){var lt=At(0,0,"");return lt.dynamic=!0,lt.strValue=Ee,lt}return At((Q=Q||en(Ee,ge)).duration,Q.delay,Q.easing)}(Q.timings,ee.errors);ee.currentAnimateTimings=Ee;var Ve,lt=Q.styles?Q.styles:(0,v.oB)({});if(5==lt.type)Ve=this.visitKeyframes(lt,ee);else{var wt=Q.styles,Zt=!1;if(!wt){Zt=!0;var $t={};Ee.easing&&($t.easing=Ee.easing),wt=(0,v.oB)($t)}ee.currentTime+=Ee.duration+Ee.delay;var un=this.visitStyle(wt,ee);un.isEmptyStep=Zt,Ve=un}return ee.currentAnimateTimings=null,{type:4,timings:Ee,style:Ve,options:null}}},{key:"visitStyle",value:function(Q,ee){var Ee=this._makeStyleAst(Q,ee);return this._validateStyleAst(Ee,ee),Ee}},{key:"_makeStyleAst",value:function(Q,ee){var Ee=[];Array.isArray(Q.styles)?Q.styles.forEach(function(wt){"string"==typeof wt?wt==v.l3?Ee.push(wt):ee.errors.push("The provided style string value ".concat(wt," is not allowed.")):Ee.push(wt)}):Ee.push(Q.styles);var Ve=!1,lt=null;return Ee.forEach(function(wt){if(Ne(wt)){var Zt=wt,$t=Zt.easing;if($t&&(lt=$t,delete Zt.easing),!Ve)for(var un in Zt)if(Zt[un].toString().indexOf("{{")>=0){Ve=!0;break}}}),{type:6,styles:Ee,easing:lt,offset:Q.offset,containsDynamicStyles:Ve,options:null}}},{key:"_validateStyleAst",value:function(Q,ee){var Ee=this,Ve=ee.currentAnimateTimings,lt=ee.currentTime,wt=ee.currentTime;Ve&&wt>0&&(wt-=Ve.duration+Ve.delay),Q.styles.forEach(function(Zt){"string"!=typeof Zt&&Object.keys(Zt).forEach(function($t){if(Ee._driver.validateStyleProperty($t)){var un=ee.collectedStyles[ee.currentQuerySelector],An=un[$t],Bn=!0;An&&(wt!=lt&&wt>=An.startTime&<<=An.endTime&&(ee.errors.push('The CSS property "'.concat($t,'" that exists between the times of "').concat(An.startTime,'ms" and "').concat(An.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(wt,'ms" and "').concat(lt,'ms"')),Bn=!1),wt=An.startTime),Bn&&(un[$t]={startTime:wt,endTime:lt}),ee.options&&function(Se,ge,Q){var ee=ge.params||{},Ee=ve(Se);Ee.length&&Ee.forEach(function(Ve){ee.hasOwnProperty(Ve)||Q.push("Unable to resolve the local animation param ".concat(Ve," in the given list of values"))})}(Zt[$t],ee.options,ee.errors)}else ee.errors.push('The provided animation property "'.concat($t,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(Q,ee){var Ee=this,Ve={type:5,styles:[],options:null};if(!ee.currentAnimateTimings)return ee.errors.push("keyframes() must be placed inside of a call to animate()"),Ve;var wt=0,Zt=[],$t=!1,un=!1,An=0,Bn=Q.steps.map(function(hi){var oi=Ee._makeStyleAst(hi,ee),Mo=null!=oi.offset?oi.offset:function(Se){if("string"==typeof Se)return null;var ge=null;if(Array.isArray(Se))Se.forEach(function(ee){if(Ne(ee)&&ee.hasOwnProperty("offset")){var Ee=ee;ge=parseFloat(Ee.offset),delete Ee.offset}});else if(Ne(Se)&&Se.hasOwnProperty("offset")){var Q=Se;ge=parseFloat(Q.offset),delete Q.offset}return ge}(oi.styles),Be=0;return null!=Mo&&(wt++,Be=oi.offset=Mo),un=un||Be<0||Be>1,$t=$t||Be0&&wt0?oi==Ir?1:hr*oi:Zt[oi],Be=Mo*ui;ee.currentTime=Cr+Er.delay+Be,Er.duration=Be,Ee._validateStyleAst(hi,ee),hi.offset=Mo,Ve.styles.push(hi)}),Ve}},{key:"visitReference",value:function(Q,ee){return{type:8,animation:Yt(this,yr(Q.animation),ee),options:ze(Q.options)}}},{key:"visitAnimateChild",value:function(Q,ee){return ee.depCount++,{type:9,options:ze(Q.options)}}},{key:"visitAnimateRef",value:function(Q,ee){return{type:10,animation:this.visitReference(Q.animation,ee),options:ze(Q.options)}}},{key:"visitQuery",value:function(Q,ee){var Ee=ee.currentQuerySelector,Ve=Q.options||{};ee.queryCount++,ee.currentQuery=Q;var lt=function(Se){var ge=!!Se.split(/\s*,\s*/).find(function(Q){return":self"==Q});return ge&&(Se=Se.replace(cr,"")),[Se=Se.replace(/@\*/g,Qt).replace(/@\w+/g,function(Q){return Qt+"-"+Q.substr(1)}).replace(/:animating/g,Ct),ge]}(Q.selector),wt=(0,U.Z)(lt,2),Zt=wt[0],$t=wt[1];ee.currentQuerySelector=Ee.length?Ee+" "+Zt:Zt,O(ee.collectedStyles,ee.currentQuerySelector,{});var un=Yt(this,yr(Q.animation),ee);return ee.currentQuery=null,ee.currentQuerySelector=Ee,{type:11,selector:Zt,limit:Ve.limit||0,optional:!!Ve.optional,includeSelf:$t,animation:un,originalSelector:Q.selector,options:ze(Q.options)}}},{key:"visitStagger",value:function(Q,ee){ee.currentQuery||ee.errors.push("stagger() can only be used inside of query()");var Ee="full"===Q.timings?{duration:0,delay:0,easing:"full"}:en(Q.timings,ee.errors,!0);return{type:12,animation:Yt(this,yr(Q.animation),ee),timings:Ee,options:null}}}]),Se}(),he=function Se(ge){(0,B.Z)(this,Se),this.errors=ge,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function Ne(Se){return!Array.isArray(Se)&&"object"==typeof Se}function ze(Se){return Se?(Se=rn(Se)).params&&(Se.params=function(Se){return Se?rn(Se):null}(Se.params)):Se={},Se}function At(Se,ge,Q){return{duration:Se,delay:ge,easing:Q}}function an(Se,ge,Q,ee,Ee,Ve){var lt=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,wt=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:Se,keyframes:ge,preStyleProps:Q,postStyleProps:ee,duration:Ee,delay:Ve,totalTime:Ee+Ve,easing:lt,subTimeline:wt}}var qn=function(){function Se(){(0,B.Z)(this,Se),this._map=new Map}return(0,V.Z)(Se,[{key:"consume",value:function(Q){var ee=this._map.get(Q);return ee?this._map.delete(Q):ee=[],ee}},{key:"append",value:function(Q,ee){var Ee,Ve=this._map.get(Q);Ve||this._map.set(Q,Ve=[]),(Ee=Ve).push.apply(Ee,(0,A.Z)(ee))}},{key:"has",value:function(Q){return this._map.has(Q)}},{key:"clear",value:function(){this._map.clear()}}]),Se}(),br=new RegExp(":enter","g"),uo=new RegExp(":leave","g");function Ni(Se,ge,Q,ee,Ee){var Ve=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},lt=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},wt=arguments.length>7?arguments[7]:void 0,Zt=arguments.length>8?arguments[8]:void 0,$t=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new yo).buildKeyframes(Se,ge,Q,ee,Ee,Ve,lt,wt,Zt,$t)}var yo=function(){function Se(){(0,B.Z)(this,Se)}return(0,V.Z)(Se,[{key:"buildKeyframes",value:function(Q,ee,Ee,Ve,lt,wt,Zt,$t,un){var An=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];un=un||new qn;var Bn=new Qo(Q,ee,un,Ve,lt,An,[]);Bn.options=$t,Bn.currentTimeline.setStyles([wt],null,Bn.errors,$t),Yt(this,Ee,Bn);var Qn=Bn.timelines.filter(function(Ir){return Ir.containsAnimation()});if(Qn.length&&Object.keys(Zt).length){var hr=Qn[Qn.length-1];hr.allowOnlyTimelineStyles()||hr.setStyles([Zt],null,Bn.errors,$t)}return Qn.length?Qn.map(function(Ir){return Ir.buildKeyframes()}):[an(ee,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(Q,ee){}},{key:"visitState",value:function(Q,ee){}},{key:"visitTransition",value:function(Q,ee){}},{key:"visitAnimateChild",value:function(Q,ee){var Ee=ee.subInstructions.consume(ee.element);if(Ee){var Ve=ee.createSubContext(Q.options),lt=ee.currentTimeline.currentTime,wt=this._visitSubInstructions(Ee,Ve,Ve.options);lt!=wt&&ee.transformIntoNewTimeline(wt)}ee.previousNode=Q}},{key:"visitAnimateRef",value:function(Q,ee){var Ee=ee.createSubContext(Q.options);Ee.transformIntoNewTimeline(),this.visitReference(Q.animation,Ee),ee.transformIntoNewTimeline(Ee.currentTimeline.currentTime),ee.previousNode=Q}},{key:"_visitSubInstructions",value:function(Q,ee,Ee){var lt=ee.currentTimeline.currentTime,wt=null!=Ee.duration?Vt(Ee.duration):null,Zt=null!=Ee.delay?Vt(Ee.delay):null;return 0!==wt&&Q.forEach(function($t){var un=ee.appendInstructionToTimeline($t,wt,Zt);lt=Math.max(lt,un.duration+un.delay)}),lt}},{key:"visitReference",value:function(Q,ee){ee.updateOptions(Q.options,!0),Yt(this,Q.animation,ee),ee.previousNode=Q}},{key:"visitSequence",value:function(Q,ee){var Ee=this,Ve=ee.subContextCount,lt=ee,wt=Q.options;if(wt&&(wt.params||wt.delay)&&((lt=ee.createSubContext(wt)).transformIntoNewTimeline(),null!=wt.delay)){6==lt.previousNode.type&&(lt.currentTimeline.snapshotCurrentStyles(),lt.previousNode=co);var Zt=Vt(wt.delay);lt.delayNextStep(Zt)}Q.steps.length&&(Q.steps.forEach(function($t){return Yt(Ee,$t,lt)}),lt.currentTimeline.applyStylesToKeyframe(),lt.subContextCount>Ve&<.transformIntoNewTimeline()),ee.previousNode=Q}},{key:"visitGroup",value:function(Q,ee){var Ee=this,Ve=[],lt=ee.currentTimeline.currentTime,wt=Q.options&&Q.options.delay?Vt(Q.options.delay):0;Q.steps.forEach(function(Zt){var $t=ee.createSubContext(Q.options);wt&&$t.delayNextStep(wt),Yt(Ee,Zt,$t),lt=Math.max(lt,$t.currentTimeline.currentTime),Ve.push($t.currentTimeline)}),Ve.forEach(function(Zt){return ee.currentTimeline.mergeTimelineCollectedStyles(Zt)}),ee.transformIntoNewTimeline(lt),ee.previousNode=Q}},{key:"_visitTiming",value:function(Q,ee){if(Q.dynamic){var Ee=Q.strValue;return en(ee.params?ye(Ee,ee.params,ee.errors):Ee,ee.errors)}return{duration:Q.duration,delay:Q.delay,easing:Q.easing}}},{key:"visitAnimate",value:function(Q,ee){var Ee=ee.currentAnimateTimings=this._visitTiming(Q.timings,ee),Ve=ee.currentTimeline;Ee.delay&&(ee.incrementTime(Ee.delay),Ve.snapshotCurrentStyles());var lt=Q.style;5==lt.type?this.visitKeyframes(lt,ee):(ee.incrementTime(Ee.duration),this.visitStyle(lt,ee),Ve.applyStylesToKeyframe()),ee.currentAnimateTimings=null,ee.previousNode=Q}},{key:"visitStyle",value:function(Q,ee){var Ee=ee.currentTimeline,Ve=ee.currentAnimateTimings;!Ve&&Ee.getCurrentStyleProperties().length&&Ee.forwardFrame();var lt=Ve&&Ve.easing||Q.easing;Q.isEmptyStep?Ee.applyEmptyStep(lt):Ee.setStyles(Q.styles,lt,ee.errors,ee.options),ee.previousNode=Q}},{key:"visitKeyframes",value:function(Q,ee){var Ee=ee.currentAnimateTimings,Ve=ee.currentTimeline.duration,lt=Ee.duration,Zt=ee.createSubContext().currentTimeline;Zt.easing=Ee.easing,Q.styles.forEach(function($t){Zt.forwardTime(($t.offset||0)*lt),Zt.setStyles($t.styles,$t.easing,ee.errors,ee.options),Zt.applyStylesToKeyframe()}),ee.currentTimeline.mergeTimelineCollectedStyles(Zt),ee.transformIntoNewTimeline(Ve+lt),ee.previousNode=Q}},{key:"visitQuery",value:function(Q,ee){var Ee=this,Ve=ee.currentTimeline.currentTime,lt=Q.options||{},wt=lt.delay?Vt(lt.delay):0;wt&&(6===ee.previousNode.type||0==Ve&&ee.currentTimeline.getCurrentStyleProperties().length)&&(ee.currentTimeline.snapshotCurrentStyles(),ee.previousNode=co);var Zt=Ve,$t=ee.invokeQuery(Q.selector,Q.originalSelector,Q.limit,Q.includeSelf,!!lt.optional,ee.errors);ee.currentQueryTotal=$t.length;var un=null;$t.forEach(function(An,Bn){ee.currentQueryIndex=Bn;var Qn=ee.createSubContext(Q.options,An);wt&&Qn.delayNextStep(wt),An===ee.element&&(un=Qn.currentTimeline),Yt(Ee,Q.animation,Qn),Qn.currentTimeline.applyStylesToKeyframe(),Zt=Math.max(Zt,Qn.currentTimeline.currentTime)}),ee.currentQueryIndex=0,ee.currentQueryTotal=0,ee.transformIntoNewTimeline(Zt),un&&(ee.currentTimeline.mergeTimelineCollectedStyles(un),ee.currentTimeline.snapshotCurrentStyles()),ee.previousNode=Q}},{key:"visitStagger",value:function(Q,ee){var Ee=ee.parentContext,Ve=ee.currentTimeline,lt=Q.timings,wt=Math.abs(lt.duration),Zt=wt*(ee.currentQueryTotal-1),$t=wt*ee.currentQueryIndex;switch(lt.duration<0?"reverse":lt.easing){case"reverse":$t=Zt-$t;break;case"full":$t=Ee.currentStaggerTime}var An=ee.currentTimeline;$t&&An.delayNextStep($t);var Bn=An.currentTime;Yt(this,Q.animation,ee),ee.previousNode=Q,Ee.currentStaggerTime=Ve.currentTime-Bn+(Ve.startTime-Ee.currentTimeline.startTime)}}]),Se}(),co={},Qo=function(){function Se(ge,Q,ee,Ee,Ve,lt,wt,Zt){(0,B.Z)(this,Se),this._driver=ge,this.element=Q,this.subInstructions=ee,this._enterClassName=Ee,this._leaveClassName=Ve,this.errors=lt,this.timelines=wt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=co,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Zt||new wi(this._driver,Q,0),wt.push(this.currentTimeline)}return(0,V.Z)(Se,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(Q,ee){var Ee=this;if(Q){var Ve=Q,lt=this.options;null!=Ve.duration&&(lt.duration=Vt(Ve.duration)),null!=Ve.delay&&(lt.delay=Vt(Ve.delay));var wt=Ve.params;if(wt){var Zt=lt.params;Zt||(Zt=this.options.params={}),Object.keys(wt).forEach(function($t){(!ee||!Zt.hasOwnProperty($t))&&(Zt[$t]=ye(wt[$t],Zt,Ee.errors))})}}}},{key:"_copyOptions",value:function(){var Q={};if(this.options){var ee=this.options.params;if(ee){var Ee=Q.params={};Object.keys(ee).forEach(function(Ve){Ee[Ve]=ee[Ve]})}}return Q}},{key:"createSubContext",value:function(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,ee=arguments.length>1?arguments[1]:void 0,Ee=arguments.length>2?arguments[2]:void 0,Ve=ee||this.element,lt=new Se(this._driver,Ve,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Ve,Ee||0));return lt.previousNode=this.previousNode,lt.currentAnimateTimings=this.currentAnimateTimings,lt.options=this._copyOptions(),lt.updateOptions(Q),lt.currentQueryIndex=this.currentQueryIndex,lt.currentQueryTotal=this.currentQueryTotal,lt.parentContext=this,this.subContextCount++,lt}},{key:"transformIntoNewTimeline",value:function(Q){return this.previousNode=co,this.currentTimeline=this.currentTimeline.fork(this.element,Q),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(Q,ee,Ee){var Ve={duration:null!=ee?ee:Q.duration,delay:this.currentTimeline.currentTime+(null!=Ee?Ee:0)+Q.delay,easing:""},lt=new ro(this._driver,Q.element,Q.keyframes,Q.preStyleProps,Q.postStyleProps,Ve,Q.stretchStartingKeyframe);return this.timelines.push(lt),Ve}},{key:"incrementTime",value:function(Q){this.currentTimeline.forwardTime(this.currentTimeline.duration+Q)}},{key:"delayNextStep",value:function(Q){Q>0&&this.currentTimeline.delayNextStep(Q)}},{key:"invokeQuery",value:function(Q,ee,Ee,Ve,lt,wt){var Zt=[];if(Ve&&Zt.push(this.element),Q.length>0){Q=(Q=Q.replace(br,"."+this._enterClassName)).replace(uo,"."+this._leaveClassName);var un=this._driver.query(this.element,Q,1!=Ee);0!==Ee&&(un=Ee<0?un.slice(un.length+Ee,un.length):un.slice(0,Ee)),Zt.push.apply(Zt,(0,A.Z)(un))}return!lt&&0==Zt.length&&wt.push('`query("'.concat(ee,'")` returned zero elements. (Use `query("').concat(ee,'", { optional: true })` if you wish to allow this.)')),Zt}}]),Se}(),wi=function(){function Se(ge,Q,ee,Ee){(0,B.Z)(this,Se),this._driver=ge,this.element=Q,this.startTime=ee,this._elementTimelineStylesLookup=Ee,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(Q),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(Q,this._localTimelineStyles)),this._loadKeyframe()}return(0,V.Z)(Se,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(Q){var ee=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||ee?(this.forwardTime(this.currentTime+Q),ee&&this.snapshotCurrentStyles()):this.startTime+=Q}},{key:"fork",value:function(Q,ee){return this.applyStylesToKeyframe(),new Se(this._driver,Q,ee||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(Q){this.applyStylesToKeyframe(),this.duration=Q,this._loadKeyframe()}},{key:"_updateStyle",value:function(Q,ee){this._localTimelineStyles[Q]=ee,this._globalTimelineStyles[Q]=ee,this._styleSummary[Q]={time:this.currentTime,value:ee}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(Q){var ee=this;Q&&(this._previousKeyframe.easing=Q),Object.keys(this._globalTimelineStyles).forEach(function(Ee){ee._backFill[Ee]=ee._globalTimelineStyles[Ee]||v.l3,ee._currentKeyframe[Ee]=v.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(Q,ee,Ee,Ve){var lt=this;ee&&(this._previousKeyframe.easing=ee);var wt=Ve&&Ve.params||{},Zt=function(Se,ge){var ee,Q={};return Se.forEach(function(Ee){"*"===Ee?(ee=ee||Object.keys(ge)).forEach(function(Ve){Q[Ve]=v.l3}):Nn(Ee,!1,Q)}),Q}(Q,this._globalTimelineStyles);Object.keys(Zt).forEach(function($t){var un=ye(Zt[$t],wt,Ee);lt._pendingStyles[$t]=un,lt._localTimelineStyles.hasOwnProperty($t)||(lt._backFill[$t]=lt._globalTimelineStyles.hasOwnProperty($t)?lt._globalTimelineStyles[$t]:v.l3),lt._updateStyle($t,un)})}},{key:"applyStylesToKeyframe",value:function(){var Q=this,ee=this._pendingStyles,Ee=Object.keys(ee);0!=Ee.length&&(this._pendingStyles={},Ee.forEach(function(Ve){Q._currentKeyframe[Ve]=ee[Ve]}),Object.keys(this._localTimelineStyles).forEach(function(Ve){Q._currentKeyframe.hasOwnProperty(Ve)||(Q._currentKeyframe[Ve]=Q._localTimelineStyles[Ve])}))}},{key:"snapshotCurrentStyles",value:function(){var Q=this;Object.keys(this._localTimelineStyles).forEach(function(ee){var Ee=Q._localTimelineStyles[ee];Q._pendingStyles[ee]=Ee,Q._updateStyle(ee,Ee)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var Q=[];for(var ee in this._currentKeyframe)Q.push(ee);return Q}},{key:"mergeTimelineCollectedStyles",value:function(Q){var ee=this;Object.keys(Q._styleSummary).forEach(function(Ee){var Ve=ee._styleSummary[Ee],lt=Q._styleSummary[Ee];(!Ve||lt.time>Ve.time)&&ee._updateStyle(Ee,lt.value)})}},{key:"buildKeyframes",value:function(){var Q=this;this.applyStylesToKeyframe();var ee=new Set,Ee=new Set,Ve=1===this._keyframes.size&&0===this.duration,lt=[];this._keyframes.forEach(function(An,Bn){var Qn=Nn(An,!0);Object.keys(Qn).forEach(function(hr){var Ir=Qn[hr];Ir==v.k1?ee.add(hr):Ir==v.l3&&Ee.add(hr)}),Ve||(Qn.offset=Bn/Q.duration),lt.push(Qn)});var wt=ee.size?Te(ee.values()):[],Zt=Ee.size?Te(Ee.values()):[];if(Ve){var $t=lt[0],un=rn($t);$t.offset=0,un.offset=1,lt=[$t,un]}return an(this.element,lt,wt,Zt,this.duration,this.startTime,this.easing,!1)}}]),Se}(),ro=function(Se){(0,Z.Z)(Q,Se);var ge=(0,T.Z)(Q);function Q(ee,Ee,Ve,lt,wt,Zt){var $t,un=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,B.Z)(this,Q),($t=ge.call(this,ee,Ee,Zt.delay)).keyframes=Ve,$t.preStyleProps=lt,$t.postStyleProps=wt,$t._stretchStartingKeyframe=un,$t.timings={duration:Zt.duration,delay:Zt.delay,easing:Zt.easing},$t}return(0,V.Z)(Q,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var Ee=this.keyframes,Ve=this.timings,lt=Ve.delay,wt=Ve.duration,Zt=Ve.easing;if(this._stretchStartingKeyframe&<){var $t=[],un=wt+lt,An=lt/un,Bn=Nn(Ee[0],!1);Bn.offset=0,$t.push(Bn);var Qn=Nn(Ee[0],!1);Qn.offset=yi(An),$t.push(Qn);for(var hr=Ee.length-1,Ir=1;Ir<=hr;Ir++){var Cr=Nn(Ee[Ir],!1);Cr.offset=yi((lt+Cr.offset*wt)/un),$t.push(Cr)}wt=un,lt=0,Zt="",Ee=$t}return an(this.element,Ee,this.preStyleProps,this.postStyleProps,wt,lt,Zt,!0)}}]),Q}(wi);function yi(Se){var ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,Q=Math.pow(10,ge-1);return Math.round(Se*Q)/Q}var fi=function Se(){(0,B.Z)(this,Se)},ki=function(Se){(0,Z.Z)(Q,Se);var ge=(0,T.Z)(Q);function Q(){return(0,B.Z)(this,Q),ge.apply(this,arguments)}return(0,V.Z)(Q,[{key:"normalizePropertyName",value:function(Ee,Ve){return ct(Ee)}},{key:"normalizeStyleValue",value:function(Ee,Ve,lt,wt){var Zt="",$t=lt.toString().trim();if(Ot[Ve]&&0!==lt&&"0"!==lt)if("number"==typeof lt)Zt="px";else{var un=lt.match(/^[+-]?[\d\.]+([a-z]*)$/);un&&0==un[1].length&&wt.push("Please provide a CSS unit value for ".concat(Ee,":").concat(lt))}return $t+Zt}}]),Q}(fi),Ot=function(){return Se="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),ge={},Se.forEach(function(Q){return ge[Q]=!0}),ge;var Se,ge}();function Pt(Se,ge,Q,ee,Ee,Ve,lt,wt,Zt,$t,un,An,Bn){return{type:0,element:Se,triggerName:ge,isRemovalTransition:Ee,fromState:Q,fromStyles:Ve,toState:ee,toStyles:lt,timelines:wt,queriedElements:Zt,preStyleProps:$t,postStyleProps:un,totalTime:An,errors:Bn}}var qt={},Gt=function(){function Se(ge,Q,ee){(0,B.Z)(this,Se),this._triggerName=ge,this.ast=Q,this._stateStyles=ee}return(0,V.Z)(Se,[{key:"match",value:function(Q,ee,Ee,Ve){return function(Se,ge,Q,ee,Ee){return Se.some(function(Ve){return Ve(ge,Q,ee,Ee)})}(this.ast.matchers,Q,ee,Ee,Ve)}},{key:"buildStyles",value:function(Q,ee,Ee){var Ve=this._stateStyles["*"],lt=this._stateStyles[Q],wt=Ve?Ve.buildStyles(ee,Ee):{};return lt?lt.buildStyles(ee,Ee):wt}},{key:"build",value:function(Q,ee,Ee,Ve,lt,wt,Zt,$t,un,An){var Bn=[],Qn=this.ast.options&&this.ast.options.params||qt,Ir=this.buildStyles(Ee,Zt&&Zt.params||qt,Bn),Cr=$t&&$t.params||qt,Er=this.buildStyles(Ve,Cr,Bn),ui=new Set,hi=new Map,oi=new Map,Mo="void"===Ve,Be={params:Object.assign(Object.assign({},Qn),Cr)},Ye=An?[]:Ni(Q,ee,this.ast.animation,lt,wt,Ir,Er,Be,un,Bn),ke=0;if(Ye.forEach(function(Ze){ke=Math.max(Ze.duration+Ze.delay,ke)}),Bn.length)return Pt(ee,this._triggerName,Ee,Ve,Mo,Ir,Er,[],[],hi,oi,ke,Bn);Ye.forEach(function(Ze){var nt=Ze.element,Tt=O(hi,nt,{});Ze.preStyleProps.forEach(function(bn){return Tt[bn]=!0});var sn=O(oi,nt,{});Ze.postStyleProps.forEach(function(bn){return sn[bn]=!0}),nt!==ee&&ui.add(nt)});var Ue=Te(ui.values());return Pt(ee,this._triggerName,Ee,Ve,Mo,Ir,Er,Ye,Ue,hi,oi,ke)}}]),Se}(),gn=function(){function Se(ge,Q,ee){(0,B.Z)(this,Se),this.styles=ge,this.defaultParams=Q,this.normalizer=ee}return(0,V.Z)(Se,[{key:"buildStyles",value:function(Q,ee){var Ee=this,Ve={},lt=rn(this.defaultParams);return Object.keys(Q).forEach(function(wt){var Zt=Q[wt];null!=Zt&&(lt[wt]=Zt)}),this.styles.styles.forEach(function(wt){if("string"!=typeof wt){var Zt=wt;Object.keys(Zt).forEach(function($t){var un=Zt[$t];un.length>1&&(un=ye(un,lt,ee));var An=Ee.normalizer.normalizePropertyName($t,ee);un=Ee.normalizer.normalizeStyleValue($t,An,un,ee),Ve[An]=un})}}),Ve}}]),Se}(),jn=function(){function Se(ge,Q,ee){var Ee=this;(0,B.Z)(this,Se),this.name=ge,this.ast=Q,this._normalizer=ee,this.transitionFactories=[],this.states={},Q.states.forEach(function(Ve){Ee.states[Ve.name]=new gn(Ve.style,Ve.options&&Ve.options.params||{},ee)}),si(this.states,"true","1"),si(this.states,"false","0"),Q.transitions.forEach(function(Ve){Ee.transitionFactories.push(new Gt(ge,Ve,Ee.states))}),this.fallbackTransition=function(Se,ge,Q){return new Gt(Se,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(lt,wt){return!0}],options:null,queryCount:0,depCount:0},ge)}(ge,this.states)}return(0,V.Z)(Se,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(Q,ee,Ee,Ve){return this.transitionFactories.find(function(wt){return wt.match(Q,ee,Ee,Ve)})||null}},{key:"matchStyles",value:function(Q,ee,Ee){return this.fallbackTransition.buildStyles(Q,ee,Ee)}}]),Se}();function si(Se,ge,Q){Se.hasOwnProperty(ge)?Se.hasOwnProperty(Q)||(Se[Q]=Se[ge]):Se.hasOwnProperty(Q)&&(Se[ge]=Se[Q])}var bi=new qn,io=function(){function Se(ge,Q,ee){(0,B.Z)(this,Se),this.bodyNode=ge,this._driver=Q,this._normalizer=ee,this._animations={},this._playersById={},this.players=[]}return(0,V.Z)(Se,[{key:"register",value:function(Q,ee){var Ee=[],Ve=Ut(this._driver,ee,Ee);if(Ee.length)throw new Error("Unable to build the animation due to the following errors: ".concat(Ee.join("\n")));this._animations[Q]=Ve}},{key:"_buildPlayer",value:function(Q,ee,Ee){var Ve=Q.element,lt=N(this._driver,this._normalizer,Ve,Q.keyframes,ee,Ee);return this._driver.animate(Ve,lt,Q.duration,Q.delay,Q.easing,[],!0)}},{key:"create",value:function(Q,ee){var Zt,Ee=this,Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},lt=[],wt=this._animations[Q],$t=new Map;if(wt?(Zt=Ni(this._driver,ee,wt,dt,Qe,{},{},Ve,bi,lt)).forEach(function(Bn){var Qn=O($t,Bn.element,{});Bn.postStyleProps.forEach(function(hr){return Qn[hr]=null})}):(lt.push("The requested animation doesn't exist or has already been destroyed"),Zt=[]),lt.length)throw new Error("Unable to create the animation due to the following errors: ".concat(lt.join("\n")));$t.forEach(function(Bn,Qn){Object.keys(Bn).forEach(function(hr){Bn[hr]=Ee._driver.computeStyle(Qn,hr,v.l3)})});var un=Zt.map(function(Bn){var Qn=$t.get(Bn.element);return Ee._buildPlayer(Bn,{},Qn)}),An=k(un);return this._playersById[Q]=An,An.onDestroy(function(){return Ee.destroy(Q)}),this.players.push(An),An}},{key:"destroy",value:function(Q){var ee=this._getPlayer(Q);ee.destroy(),delete this._playersById[Q];var Ee=this.players.indexOf(ee);Ee>=0&&this.players.splice(Ee,1)}},{key:"_getPlayer",value:function(Q){var ee=this._playersById[Q];if(!ee)throw new Error("Unable to find the timeline player referenced by ".concat(Q));return ee}},{key:"listen",value:function(Q,ee,Ee,Ve){var lt=S(ee,"","","");return E(this._getPlayer(Q),Ee,lt,Ve),function(){}}},{key:"command",value:function(Q,ee,Ee,Ve){if("register"!=Ee)if("create"!=Ee){var wt=this._getPlayer(Q);switch(Ee){case"play":wt.play();break;case"pause":wt.pause();break;case"reset":wt.reset();break;case"restart":wt.restart();break;case"finish":wt.finish();break;case"init":wt.init();break;case"setPosition":wt.setPosition(parseFloat(Ve[0]));break;case"destroy":this.destroy(Q)}}else this.create(Q,ee,Ve[0]||{});else this.register(Q,Ve[0])}}]),Se}(),bo="ng-animate-queued",Po="ng-animate-disabled",Ko=".ng-animate-disabled",ko="ng-star-inserted",Ho=[],oo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ji={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Yi="__ng_removed",Vo=function(){function Se(ge){var Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,B.Z)(this,Se),this.namespaceId=Q;var ee=ge&&ge.hasOwnProperty("value"),Ee=ee?ge.value:ge;if(this.value=ha(Ee),ee){var Ve=rn(ge);delete Ve.value,this.options=Ve}else this.options={};this.options.params||(this.options.params={})}return(0,V.Z)(Se,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(Q){var ee=Q.params;if(ee){var Ee=this.options.params;Object.keys(ee).forEach(function(Ve){null==Ee[Ve]&&(Ee[Ve]=ee[Ve])})}}}]),Se}(),Ci="void",Ji=new Vo(Ci),fn=function(){function Se(ge,Q,ee){(0,B.Z)(this,Se),this.id=ge,this.hostElement=Q,this._engine=ee,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+ge,So(Q,this._hostClassName)}return(0,V.Z)(Se,[{key:"listen",value:function(Q,ee,Ee,Ve){var lt=this;if(!this._triggers.hasOwnProperty(ee))throw new Error('Unable to listen on the animation trigger event "'.concat(Ee,'" because the animation trigger "').concat(ee,"\" doesn't exist!"));if(null==Ee||0==Ee.length)throw new Error('Unable to listen on the animation trigger "'.concat(ee,'" because the provided event is undefined!'));if(!function(Se){return"start"==Se||"done"==Se}(Ee))throw new Error('The provided animation trigger event "'.concat(Ee,'" for the animation trigger "').concat(ee,'" is not supported!'));var wt=O(this._elementListeners,Q,[]),Zt={name:ee,phase:Ee,callback:Ve};wt.push(Zt);var $t=O(this._engine.statesByElement,Q,{});return $t.hasOwnProperty(ee)||(So(Q,vt),So(Q,vt+"-"+ee),$t[ee]=Ji),function(){lt._engine.afterFlush(function(){var un=wt.indexOf(Zt);un>=0&&wt.splice(un,1),lt._triggers[ee]||delete $t[ee]})}}},{key:"register",value:function(Q,ee){return!this._triggers[Q]&&(this._triggers[Q]=ee,!0)}},{key:"_getTrigger",value:function(Q){var ee=this._triggers[Q];if(!ee)throw new Error('The provided animation trigger "'.concat(Q,'" has not been registered!'));return ee}},{key:"trigger",value:function(Q,ee,Ee){var Ve=this,lt=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],wt=this._getTrigger(ee),Zt=new fr(this.id,ee,Q),$t=this._engine.statesByElement.get(Q);$t||(So(Q,vt),So(Q,vt+"-"+ee),this._engine.statesByElement.set(Q,$t={}));var un=$t[ee],An=new Vo(Ee,this.id),Bn=Ee&&Ee.hasOwnProperty("value");!Bn&&un&&An.absorbOptions(un.options),$t[ee]=An,un||(un=Ji);var Qn=An.value===Ci;if(Qn||un.value!==An.value){var Er=O(this._engine.playersByElement,Q,[]);Er.forEach(function(oi){oi.namespaceId==Ve.id&&oi.triggerName==ee&&oi.queued&&oi.destroy()});var ui=wt.matchTransition(un.value,An.value,Q,An.params),hi=!1;if(!ui){if(!lt)return;ui=wt.fallbackTransition,hi=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:Q,triggerName:ee,transition:ui,fromState:un,toState:An,player:Zt,isFallbackTransition:hi}),hi||(So(Q,bo),Zt.onStart(function(){va(Q,bo)})),Zt.onDone(function(){var oi=Ve.players.indexOf(Zt);oi>=0&&Ve.players.splice(oi,1);var Mo=Ve._engine.playersByElement.get(Q);if(Mo){var Be=Mo.indexOf(Zt);Be>=0&&Mo.splice(Be,1)}}),this.players.push(Zt),Er.push(Zt),Zt}if(!Bi(un.params,An.params)){var hr=[],Ir=wt.matchStyles(un.value,un.params,hr),Cr=wt.matchStyles(An.value,An.params,hr);hr.length?this._engine.reportError(hr):this._engine.afterFlush(function(){wn(Q,Ir),Rn(Q,Cr)})}}},{key:"deregister",value:function(Q){var ee=this;delete this._triggers[Q],this._engine.statesByElement.forEach(function(Ee,Ve){delete Ee[Q]}),this._elementListeners.forEach(function(Ee,Ve){ee._elementListeners.set(Ve,Ee.filter(function(lt){return lt.name!=Q}))})}},{key:"clearElementCache",value:function(Q){this._engine.statesByElement.delete(Q),this._elementListeners.delete(Q);var ee=this._engine.playersByElement.get(Q);ee&&(ee.forEach(function(Ee){return Ee.destroy()}),this._engine.playersByElement.delete(Q))}},{key:"_signalRemovalForInnerTriggers",value:function(Q,ee){var Ee=this,Ve=this._engine.driver.query(Q,Qt,!0);Ve.forEach(function(lt){if(!lt[Yi]){var wt=Ee._engine.fetchNamespacesByElement(lt);wt.size?wt.forEach(function(Zt){return Zt.triggerLeaveAnimation(lt,ee,!1,!0)}):Ee.clearElementCache(lt)}}),this._engine.afterFlushAnimationsDone(function(){return Ve.forEach(function(lt){return Ee.clearElementCache(lt)})})}},{key:"triggerLeaveAnimation",value:function(Q,ee,Ee,Ve){var lt=this,wt=this._engine.statesByElement.get(Q);if(wt){var Zt=[];if(Object.keys(wt).forEach(function($t){if(lt._triggers[$t]){var un=lt.trigger(Q,$t,Ci,Ve);un&&Zt.push(un)}}),Zt.length)return this._engine.markElementAsRemoved(this.id,Q,!0,ee),Ee&&k(Zt).onDone(function(){return lt._engine.processLeaveNode(Q)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(Q){var ee=this,Ee=this._elementListeners.get(Q),Ve=this._engine.statesByElement.get(Q);if(Ee&&Ve){var lt=new Set;Ee.forEach(function(wt){var Zt=wt.name;if(!lt.has(Zt)){lt.add(Zt);var un=ee._triggers[Zt].fallbackTransition,An=Ve[Zt]||Ji,Bn=new Vo(Ci),Qn=new fr(ee.id,Zt,Q);ee._engine.totalQueuedPlayers++,ee._queue.push({element:Q,triggerName:Zt,transition:un,fromState:An,toState:Bn,player:Qn,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(Q,ee){var Ee=this,Ve=this._engine;if(Q.childElementCount&&this._signalRemovalForInnerTriggers(Q,ee),!this.triggerLeaveAnimation(Q,ee,!0)){var lt=!1;if(Ve.totalAnimations){var wt=Ve.players.length?Ve.playersByQueriedElement.get(Q):[];if(wt&&wt.length)lt=!0;else for(var Zt=Q;Zt=Zt.parentNode;)if(Ve.statesByElement.get(Zt)){lt=!0;break}}if(this.prepareLeaveAnimationListeners(Q),lt)Ve.markElementAsRemoved(this.id,Q,!1,ee);else{var un=Q[Yi];(!un||un===oo)&&(Ve.afterFlush(function(){return Ee.clearElementCache(Q)}),Ve.destroyInnerAnimations(Q),Ve._onRemovalComplete(Q,ee))}}}},{key:"insertNode",value:function(Q,ee){So(Q,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(Q){var ee=this,Ee=[];return this._queue.forEach(function(Ve){var lt=Ve.player;if(!lt.destroyed){var wt=Ve.element,Zt=ee._elementListeners.get(wt);Zt&&Zt.forEach(function($t){if($t.name==Ve.triggerName){var un=S(wt,Ve.triggerName,Ve.fromState.value,Ve.toState.value);un._data=Q,E(Ve.player,$t.phase,un,$t.callback)}}),lt.markedForDestroy?ee._engine.afterFlush(function(){lt.destroy()}):Ee.push(Ve)}}),this._queue=[],Ee.sort(function(Ve,lt){var wt=Ve.transition.ast.depCount,Zt=lt.transition.ast.depCount;return 0==wt||0==Zt?wt-Zt:ee._engine.driver.containsElement(Ve.element,lt.element)?1:-1})}},{key:"destroy",value:function(Q){this.players.forEach(function(ee){return ee.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,Q)}},{key:"elementContainsData",value:function(Q){var ee=!1;return this._elementListeners.has(Q)&&(ee=!0),!!this._queue.find(function(Ee){return Ee.element===Q})||ee}}]),Se}(),vn=function(){function Se(ge,Q,ee){(0,B.Z)(this,Se),this.bodyNode=ge,this.driver=Q,this._normalizer=ee,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(Ee,Ve){}}return(0,V.Z)(Se,[{key:"_onRemovalComplete",value:function(Q,ee){this.onRemovalComplete(Q,ee)}},{key:"queuedPlayers",get:function(){var Q=[];return this._namespaceList.forEach(function(ee){ee.players.forEach(function(Ee){Ee.queued&&Q.push(Ee)})}),Q}},{key:"createNamespace",value:function(Q,ee){var Ee=new fn(Q,ee,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,ee)?this._balanceNamespaceList(Ee,ee):(this.newHostElements.set(ee,Ee),this.collectEnterElement(ee)),this._namespaceLookup[Q]=Ee}},{key:"_balanceNamespaceList",value:function(Q,ee){var Ee=this._namespaceList.length-1;if(Ee>=0){for(var Ve=!1,lt=Ee;lt>=0;lt--)if(this.driver.containsElement(this._namespaceList[lt].hostElement,ee)){this._namespaceList.splice(lt+1,0,Q),Ve=!0;break}Ve||this._namespaceList.splice(0,0,Q)}else this._namespaceList.push(Q);return this.namespacesByHostElement.set(ee,Q),Q}},{key:"register",value:function(Q,ee){var Ee=this._namespaceLookup[Q];return Ee||(Ee=this.createNamespace(Q,ee)),Ee}},{key:"registerTrigger",value:function(Q,ee,Ee){var Ve=this._namespaceLookup[Q];Ve&&Ve.register(ee,Ee)&&this.totalAnimations++}},{key:"destroy",value:function(Q,ee){var Ee=this;if(Q){var Ve=this._fetchNamespace(Q);this.afterFlush(function(){Ee.namespacesByHostElement.delete(Ve.hostElement),delete Ee._namespaceLookup[Q];var lt=Ee._namespaceList.indexOf(Ve);lt>=0&&Ee._namespaceList.splice(lt,1)}),this.afterFlushAnimationsDone(function(){return Ve.destroy(ee)})}}},{key:"_fetchNamespace",value:function(Q){return this._namespaceLookup[Q]}},{key:"fetchNamespacesByElement",value:function(Q){var ee=new Set,Ee=this.statesByElement.get(Q);if(Ee)for(var Ve=Object.keys(Ee),lt=0;lt=0&&this.collectedLeaveElements.splice(wt,1)}if(Q){var Zt=this._fetchNamespace(Q);Zt&&Zt.insertNode(ee,Ee)}Ve&&this.collectEnterElement(ee)}}},{key:"collectEnterElement",value:function(Q){this.collectedEnterElements.push(Q)}},{key:"markElementAsDisabled",value:function(Q,ee){ee?this.disabledNodes.has(Q)||(this.disabledNodes.add(Q),So(Q,Po)):this.disabledNodes.has(Q)&&(this.disabledNodes.delete(Q),va(Q,Po))}},{key:"removeNode",value:function(Q,ee,Ee,Ve){if(Si(ee)){var lt=Q?this._fetchNamespace(Q):null;if(lt?lt.removeNode(ee,Ve):this.markElementAsRemoved(Q,ee,!1,Ve),Ee){var wt=this.namespacesByHostElement.get(ee);wt&&wt.id!==Q&&wt.removeNode(ee,Ve)}}else this._onRemovalComplete(ee,Ve)}},{key:"markElementAsRemoved",value:function(Q,ee,Ee,Ve){this.collectedLeaveElements.push(ee),ee[Yi]={namespaceId:Q,setForRemoval:Ve,hasAnimation:Ee,removedBeforeQueried:!1}}},{key:"listen",value:function(Q,ee,Ee,Ve,lt){return Si(ee)?this._fetchNamespace(Q).listen(ee,Ee,Ve,lt):function(){}}},{key:"_buildInstruction",value:function(Q,ee,Ee,Ve,lt){return Q.transition.build(this.driver,Q.element,Q.fromState.value,Q.toState.value,Ee,Ve,Q.fromState.options,Q.toState.options,ee,lt)}},{key:"destroyInnerAnimations",value:function(Q){var ee=this,Ee=this.driver.query(Q,Qt,!0);Ee.forEach(function(Ve){return ee.destroyActiveAnimationsForElement(Ve)}),0!=this.playersByQueriedElement.size&&(Ee=this.driver.query(Q,Ct,!0)).forEach(function(Ve){return ee.finishActiveQueriedAnimationOnElement(Ve)})}},{key:"destroyActiveAnimationsForElement",value:function(Q){var ee=this.playersByElement.get(Q);ee&&ee.forEach(function(Ee){Ee.queued?Ee.markedForDestroy=!0:Ee.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(Q){var ee=this.playersByQueriedElement.get(Q);ee&&ee.forEach(function(Ee){return Ee.finish()})}},{key:"whenRenderingDone",value:function(){var Q=this;return new Promise(function(ee){if(Q.players.length)return k(Q.players).onDone(function(){return ee()});ee()})}},{key:"processLeaveNode",value:function(Q){var ee=this,Ee=Q[Yi];if(Ee&&Ee.setForRemoval){if(Q[Yi]=oo,Ee.namespaceId){this.destroyInnerAnimations(Q);var Ve=this._fetchNamespace(Ee.namespaceId);Ve&&Ve.clearElementCache(Q)}this._onRemovalComplete(Q,Ee.setForRemoval)}this.driver.matchesElement(Q,Ko)&&this.markElementAsDisabled(Q,!1),this.driver.query(Q,Ko,!0).forEach(function(lt){ee.markElementAsDisabled(lt,!1)})}},{key:"flush",value:function(){var Q=this,ee=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,Ee=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(Bn,Qn){return Q._balanceNamespaceList(Bn,Qn)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var Ve=0;Ve=0;Tt--)this._namespaceList[Tt].drainQueuedTransitions(ee).forEach(function(nr){var Rr=nr.player,Mr=nr.element;if(Ze.push(Rr),Ee.collectedEnterElements.length){var Xi=Mr[Yi];if(Xi&&Xi.setForMove)return void Rr.destroy()}var $a=!Qn||!Ee.driver.containsElement(Qn,Mr),pc=ke.get(Mr),nu=Cr.get(Mr),$o=Ee._buildInstruction(nr,Ve,nu,pc,$a);if($o.errors&&$o.errors.length)nt.push($o);else{if($a)return Rr.onStart(function(){return wn(Mr,$o.fromStyles)}),Rr.onDestroy(function(){return Rn(Mr,$o.toStyles)}),void lt.push(Rr);if(nr.isFallbackTransition)return Rr.onStart(function(){return wn(Mr,$o.fromStyles)}),Rr.onDestroy(function(){return Rn(Mr,$o.toStyles)}),void lt.push(Rr);$o.timelines.forEach(function(Ms){return Ms.stretchStartingKeyframe=!0}),Ve.append(Mr,$o.timelines),Zt.push({instruction:$o,player:Rr,element:Mr}),$o.queriedElements.forEach(function(Ms){return O($t,Ms,[]).push(Rr)}),$o.preStyleProps.forEach(function(Ms,_d){var kv=Object.keys(Ms);if(kv.length){var Ks=un.get(_d);Ks||un.set(_d,Ks=new Set),kv.forEach(function(Mp){return Ks.add(Mp)})}}),$o.postStyleProps.forEach(function(Ms,_d){var kv=Object.keys(Ms),Ks=An.get(_d);Ks||An.set(_d,Ks=new Set),kv.forEach(function(Mp){return Ks.add(Mp)})})}});if(nt.length){var bn=[];nt.forEach(function(nr){bn.push("@".concat(nr.triggerName," has failed due to:\n")),nr.errors.forEach(function(Rr){return bn.push("- ".concat(Rr,"\n"))})}),Ze.forEach(function(nr){return nr.destroy()}),this.reportError(bn)}var xr=new Map,Ri=new Map;Zt.forEach(function(nr){var Rr=nr.element;Ve.has(Rr)&&(Ri.set(Rr,Rr),Ee._beforeAnimationBuild(nr.player.namespaceId,nr.instruction,xr))}),lt.forEach(function(nr){var Rr=nr.element;Ee._getPreviousPlayers(Rr,!1,nr.namespaceId,nr.triggerName,null).forEach(function(Xi){O(xr,Rr,[]).push(Xi),Xi.destroy()})});var Xo=ui.filter(function(nr){return ga(nr,un,An)}),Pa=new Map;ma(Pa,this.driver,oi,An,v.l3).forEach(function(nr){ga(nr,un,An)&&Xo.push(nr)});var Ao=new Map;Ir.forEach(function(nr,Rr){ma(Ao,Ee.driver,new Set(nr),un,v.k1)}),Xo.forEach(function(nr){var Rr=Pa.get(nr),Mr=Ao.get(nr);Pa.set(nr,Object.assign(Object.assign({},Rr),Mr))});var ms=[],ho=[],ch={};Zt.forEach(function(nr){var Rr=nr.element,Mr=nr.player,Xi=nr.instruction;if(Ve.has(Rr)){if(Bn.has(Rr))return Mr.onDestroy(function(){return Rn(Rr,Xi.toStyles)}),Mr.disabled=!0,Mr.overrideTotalTime(Xi.totalTime),void lt.push(Mr);var $a=ch;if(Ri.size>1){for(var pc=Rr,nu=[];pc=pc.parentNode;){var $o=Ri.get(pc);if($o){$a=$o;break}nu.push(pc)}nu.forEach(function(_d){return Ri.set(_d,$a)})}var Ep=Ee._buildAnimation(Mr.namespaceId,Xi,xr,wt,Ao,Pa);if(Mr.setRealPlayer(Ep),$a===ch)ms.push(Mr);else{var Ms=Ee.playersByElement.get($a);Ms&&Ms.length&&(Mr.parentPlayer=k(Ms)),lt.push(Mr)}}else wn(Rr,Xi.fromStyles),Mr.onDestroy(function(){return Rn(Rr,Xi.toStyles)}),ho.push(Mr),Bn.has(Rr)&<.push(Mr)}),ho.forEach(function(nr){var Rr=wt.get(nr.element);if(Rr&&Rr.length){var Mr=k(Rr);nr.setRealPlayer(Mr)}}),lt.forEach(function(nr){nr.parentPlayer?nr.syncPlayerEvents(nr.parentPlayer):nr.destroy()});for(var kp=0;kp0?this.driver.animate(Q.element,ee,Q.duration,Q.delay,Q.easing,Ee):new v.ZN(Q.duration,Q.delay)}}]),Se}(),fr=function(){function Se(ge,Q,ee){(0,B.Z)(this,Se),this.namespaceId=ge,this.triggerName=Q,this.element=ee,this._player=new v.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return(0,V.Z)(Se,[{key:"setRealPlayer",value:function(Q){var ee=this;this._containsRealPlayer||(this._player=Q,Object.keys(this._queuedCallbacks).forEach(function(Ee){ee._queuedCallbacks[Ee].forEach(function(Ve){return E(Q,Ee,void 0,Ve)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(Q.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(Q){this.totalTime=Q}},{key:"syncPlayerEvents",value:function(Q){var ee=this,Ee=this._player;Ee.triggerCallback&&Q.onStart(function(){return Ee.triggerCallback("start")}),Q.onDone(function(){return ee.finish()}),Q.onDestroy(function(){return ee.destroy()})}},{key:"_queueEvent",value:function(Q,ee){O(this._queuedCallbacks,Q,[]).push(ee)}},{key:"onDone",value:function(Q){this.queued&&this._queueEvent("done",Q),this._player.onDone(Q)}},{key:"onStart",value:function(Q){this.queued&&this._queueEvent("start",Q),this._player.onStart(Q)}},{key:"onDestroy",value:function(Q){this.queued&&this._queueEvent("destroy",Q),this._player.onDestroy(Q)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(Q){this.queued||this._player.setPosition(Q)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(Q){var ee=this._player;ee.triggerCallback&&ee.triggerCallback(Q)}}]),Se}();function ha(Se){return null!=Se?Se:null}function Si(Se){return Se&&1===Se.nodeType}function Zi(Se,ge){var Q=Se.style.display;return Se.style.display=null!=ge?ge:"none",Q}function ma(Se,ge,Q,ee,Ee){var Ve=[];Q.forEach(function(Zt){return Ve.push(Zi(Zt))});var lt=[];ee.forEach(function(Zt,$t){var un={};Zt.forEach(function(An){var Bn=un[An]=ge.computeStyle($t,An,Ee);(!Bn||0==Bn.length)&&($t[Yi]=ji,lt.push($t))}),Se.set($t,un)});var wt=0;return Q.forEach(function(Zt){return Zi(Zt,Ve[wt++])}),lt}function Eo(Se,ge){var Q=new Map;if(Se.forEach(function(wt){return Q.set(wt,[])}),0==ge.length)return Q;var Ee=new Set(ge),Ve=new Map;function lt(wt){if(!wt)return 1;var Zt=Ve.get(wt);if(Zt)return Zt;var $t=wt.parentNode;return Zt=Q.has($t)?$t:Ee.has($t)?1:lt($t),Ve.set(wt,Zt),Zt}return ge.forEach(function(wt){var Zt=lt(wt);1!==Zt&&Q.get(Zt).push(wt)}),Q}var Io="$$classes";function So(Se,ge){if(Se.classList)Se.classList.add(ge);else{var Q=Se[Io];Q||(Q=Se[Io]={}),Q[ge]=!0}}function va(Se,ge){if(Se.classList)Se.classList.remove(ge);else{var Q=Se[Io];Q&&delete Q[ge]}}function Ma(Se,ge,Q){k(Q).onDone(function(){return Se.processLeaveNode(ge)})}function To(Se,ge){for(var Q=0;Q0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(Q)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),Se}();function _a(Se,ge){var Q=null,ee=null;return Array.isArray(ge)&&ge.length?(Q=_r(ge[0]),ge.length>1&&(ee=_r(ge[ge.length-1]))):ge&&(Q=_r(ge)),Q||ee?new Aa(Se,Q,ee):null}var Aa=function(){var Se=function(){function ge(Q,ee,Ee){(0,B.Z)(this,ge),this._element=Q,this._startStyles=ee,this._endStyles=Ee,this._state=0;var Ve=ge.initialStylesByElement.get(Q);Ve||ge.initialStylesByElement.set(Q,Ve={}),this._initialStyles=Ve}return(0,V.Z)(ge,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Rn(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Rn(this._element,this._initialStyles),this._endStyles&&(Rn(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(ge.initialStylesByElement.delete(this._element),this._startStyles&&(wn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wn(this._element,this._endStyles),this._endStyles=null),Rn(this._element,this._initialStyles),this._state=3)}}]),ge}();return Se.initialStylesByElement=new WeakMap,Se}();function _r(Se){for(var ge=null,Q=Object.keys(Se),ee=0;ee=this._delay&&Ee>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),_l(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(Se,ge){var ee=eu(Se,"").split(","),Ee=ja(ee,ge);Ee>=0&&(ee.splice(Ee,1),tn(Se,"",ee.join(",")))}(this._element,this._name))}}]),Se}();function qa(Se,ge,Q){tn(Se,"PlayState",Q,Ki(Se,ge))}function Ki(Se,ge){var Q=eu(Se,"");return Q.indexOf(",")>0?ja(Q.split(","),ge):ja([Q],ge)}function ja(Se,ge){for(var Q=0;Q=0)return Q;return-1}function _l(Se,ge,Q){Q?Se.removeEventListener(Va,ge):Se.addEventListener(Va,ge)}function tn(Se,ge,Q,ee){var Ee=Ui+ge;if(null!=ee){var Ve=Se.style[Ee];if(Ve.length){var lt=Ve.split(",");lt[ee]=Q,Q=lt.join(",")}}Se.style[Ee]=Q}function eu(Se,ge){return Se.style[Ui+ge]||""}var Fe=function(){function Se(ge,Q,ee,Ee,Ve,lt,wt,Zt){(0,B.Z)(this,Se),this.element=ge,this.keyframes=Q,this.animationName=ee,this._duration=Ee,this._delay=Ve,this._finalStyles=wt,this._specialStyles=Zt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=lt||"linear",this.totalTime=Ee+Ve,this._buildStyler()}return(0,V.Z)(Se,[{key:"onStart",value:function(Q){this._onStartFns.push(Q)}},{key:"onDone",value:function(Q){this._onDoneFns.push(Q)}},{key:"onDestroy",value:function(Q){this._onDestroyFns.push(Q)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(Q){return Q()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(Q){return Q()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(Q){this._styler.setPosition(Q)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var Q=this;this._styler=new zi(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return Q.finish()})}},{key:"triggerCallback",value:function(Q){var ee="start"==Q?this._onStartFns:this._onDoneFns;ee.forEach(function(Ee){return Ee()}),ee.length=0}},{key:"beforeDestroy",value:function(){var Q=this;this.init();var ee={};if(this.hasStarted()){var Ee=this._state>=3;Object.keys(this._finalStyles).forEach(function(Ve){"offset"!=Ve&&(ee[Ve]=Ee?Q._finalStyles[Ve]:nn(Q.element,Ve))})}this.currentSnapshot=ee}}]),Se}(),$e=function(Se){(0,Z.Z)(Q,Se);var ge=(0,T.Z)(Q);function Q(ee,Ee){var Ve;return(0,B.Z)(this,Q),(Ve=ge.call(this)).element=ee,Ve._startingStyles={},Ve.__initialized=!1,Ve._styles=_t(Ee),Ve}return(0,V.Z)(Q,[{key:"init",value:function(){var Ee=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(Ve){Ee._startingStyles[Ve]=Ee.element.style[Ve]}),(0,P.Z)((0,D.Z)(Q.prototype),"init",this).call(this))}},{key:"play",value:function(){var Ee=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(Ve){return Ee.element.style.setProperty(Ve,Ee._styles[Ve])}),(0,P.Z)((0,D.Z)(Q.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var Ee=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(Ve){var lt=Ee._startingStyles[Ve];lt?Ee.element.style.setProperty(Ve,lt):Ee.element.style.removeProperty(Ve)}),this._startingStyles=null,(0,P.Z)((0,D.Z)(Q.prototype),"destroy",this).call(this))}}]),Q}(v.ZN),We="gen_css_kf_",fe=function(){function Se(){(0,B.Z)(this,Se),this._count=0}return(0,V.Z)(Se,[{key:"validateStyleProperty",value:function(Q){return oe(Q)}},{key:"matchesElement",value:function(Q,ee){return be(Q,ee)}},{key:"containsElement",value:function(Q,ee){return it(Q,ee)}},{key:"query",value:function(Q,ee,Ee){return qe(Q,ee,Ee)}},{key:"computeStyle",value:function(Q,ee,Ee){return window.getComputedStyle(Q)[ee]}},{key:"buildKeyframeElement",value:function(Q,ee,Ee){Ee=Ee.map(function(Zt){return _t(Zt)});var Ve="@keyframes ".concat(ee," {\n"),lt="";Ee.forEach(function(Zt){lt=" ";var $t=parseFloat(Zt.offset);Ve+="".concat(lt).concat(100*$t,"% {\n"),lt+=" ",Object.keys(Zt).forEach(function(un){var An=Zt[un];switch(un){case"offset":return;case"easing":return void(An&&(Ve+="".concat(lt,"animation-timing-function: ").concat(An,";\n")));default:return void(Ve+="".concat(lt).concat(un,": ").concat(An,";\n"))}}),Ve+="".concat(lt,"}\n")}),Ve+="}\n";var wt=document.createElement("style");return wt.textContent=Ve,wt}},{key:"animate",value:function(Q,ee,Ee,Ve,lt){var wt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],$t=wt.filter(function(Er){return Er instanceof Fe}),un={};Jt(Ee,Ve)&&$t.forEach(function(Er){var ui=Er.currentSnapshot;Object.keys(ui).forEach(function(hi){return un[hi]=ui[hi]})});var An=Ce(ee=Kt(Q,ee,un));if(0==Ee)return new $e(Q,An);var Bn="".concat(We).concat(this._count++),Qn=this.buildKeyframeElement(Q,Bn,ee),hr=_e(Q);hr.appendChild(Qn);var Ir=_a(Q,ee),Cr=new Fe(Q,ee,Bn,Ee,Ve,lt,An,Ir);return Cr.onDestroy(function(){return Re(Qn)}),Cr}}]),Se}();function _e(Se){var ge,Q=null===(ge=Se.getRootNode)||void 0===ge?void 0:ge.call(Se);return"undefined"!=typeof ShadowRoot&&Q instanceof ShadowRoot?Q:document.head}function Ce(Se){var ge={};return Se&&(Array.isArray(Se)?Se:[Se]).forEach(function(ee){Object.keys(ee).forEach(function(Ee){"offset"==Ee||"easing"==Ee||(ge[Ee]=ee[Ee])})}),ge}function Re(Se){Se.parentNode.removeChild(Se)}var ft=function(){function Se(ge,Q,ee,Ee){(0,B.Z)(this,Se),this.element=ge,this.keyframes=Q,this.options=ee,this._specialStyles=Ee,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=ee.duration,this._delay=ee.delay||0,this.time=this._duration+this._delay}return(0,V.Z)(Se,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var Q=this;if(!this._initialized){this._initialized=!0;var ee=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,ee,this.options),this._finalKeyframe=ee.length?ee[ee.length-1]:{},this.domPlayer.addEventListener("finish",function(){return Q._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(Q,ee,Ee){return Q.animate(ee,Ee)}},{key:"onStart",value:function(Q){this._onStartFns.push(Q)}},{key:"onDone",value:function(Q){this._onDoneFns.push(Q)}},{key:"onDestroy",value:function(Q){this._onDestroyFns.push(Q)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(Q){return Q()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(Q){return Q()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(Q){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=Q*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var Q=this,ee={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(Ee){"offset"!=Ee&&(ee[Ee]=Q._finished?Q._finalKeyframe[Ee]:nn(Q.element,Ee))}),this.currentSnapshot=ee}},{key:"triggerCallback",value:function(Q){var ee="start"==Q?this._onStartFns:this._onDoneFns;ee.forEach(function(Ee){return Ee()}),ee.length=0}}]),Se}(),gt=function(){function Se(){(0,B.Z)(this,Se),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(jr().toString()),this._cssKeyframesDriver=new fe}return(0,V.Z)(Se,[{key:"validateStyleProperty",value:function(Q){return oe(Q)}},{key:"matchesElement",value:function(Q,ee){return be(Q,ee)}},{key:"containsElement",value:function(Q,ee){return it(Q,ee)}},{key:"query",value:function(Q,ee,Ee){return qe(Q,ee,Ee)}},{key:"computeStyle",value:function(Q,ee,Ee){return window.getComputedStyle(Q)[ee]}},{key:"overrideWebAnimationsSupport",value:function(Q){this._isNativeImpl=Q}},{key:"animate",value:function(Q,ee,Ee,Ve,lt){var wt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],Zt=arguments.length>6?arguments[6]:void 0,$t=!Zt&&!this._isNativeImpl;if($t)return this._cssKeyframesDriver.animate(Q,ee,Ee,Ve,lt,wt);var un=0==Ve?"both":"forwards",An={duration:Ee,delay:Ve,fill:un};lt&&(An.easing=lt);var Bn={},Qn=wt.filter(function(Ir){return Ir instanceof ft});Jt(Ee,Ve)&&Qn.forEach(function(Ir){var Cr=Ir.currentSnapshot;Object.keys(Cr).forEach(function(Er){return Bn[Er]=Cr[Er]})});var hr=_a(Q,ee=Kt(Q,ee=ee.map(function(Ir){return Nn(Ir,!1)}),Bn));return new ft(Q,ee,An,hr)}}]),Se}();function jr(){return _()&&Element.prototype.animate||{}}var Pi=f(40098),ya=function(){var Se=function(ge){(0,Z.Z)(ee,ge);var Q=(0,T.Z)(ee);function ee(Ee,Ve){var lt;return(0,B.Z)(this,ee),(lt=Q.call(this))._nextAnimationId=0,lt._renderer=Ee.createRenderer(Ve.body,{id:"0",encapsulation:R.ifc.None,styles:[],data:{animation:[]}}),lt}return(0,V.Z)(ee,[{key:"build",value:function(Ve){var lt=this._nextAnimationId.toString();this._nextAnimationId++;var wt=Array.isArray(Ve)?(0,v.vP)(Ve):Ve;return Cl(this._renderer,null,lt,"register",[wt]),new li(lt,this._renderer)}}]),ee}(v._j);return Se.\u0275fac=function(Q){return new(Q||Se)(R.LFG(R.FYo),R.LFG(Pi.K0))},Se.\u0275prov=R.Yz7({token:Se,factory:Se.\u0275fac}),Se}(),li=function(Se){(0,Z.Z)(Q,Se);var ge=(0,T.Z)(Q);function Q(ee,Ee){var Ve;return(0,B.Z)(this,Q),(Ve=ge.call(this))._id=ee,Ve._renderer=Ee,Ve}return(0,V.Z)(Q,[{key:"create",value:function(Ee,Ve){return new Ii(this._id,Ee,Ve||{},this._renderer)}}]),Q}(v.LC),Ii=function(){function Se(ge,Q,ee,Ee){(0,B.Z)(this,Se),this.id=ge,this.element=Q,this._renderer=Ee,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",ee)}return(0,V.Z)(Se,[{key:"_listen",value:function(Q,ee){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(Q),ee)}},{key:"_command",value:function(Q){for(var ee=arguments.length,Ee=new Array(ee>1?ee-1:0),Ve=1;Ve=0&&ee3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(Q,ee,Ee),this.engine.onInsert(this.namespaceId,ee,Q,Ve)}},{key:"removeChild",value:function(Q,ee,Ee){this.engine.onRemove(this.namespaceId,ee,this.delegate,Ee)}},{key:"selectRootElement",value:function(Q,ee){return this.delegate.selectRootElement(Q,ee)}},{key:"parentNode",value:function(Q){return this.delegate.parentNode(Q)}},{key:"nextSibling",value:function(Q){return this.delegate.nextSibling(Q)}},{key:"setAttribute",value:function(Q,ee,Ee,Ve){this.delegate.setAttribute(Q,ee,Ee,Ve)}},{key:"removeAttribute",value:function(Q,ee,Ee){this.delegate.removeAttribute(Q,ee,Ee)}},{key:"addClass",value:function(Q,ee){this.delegate.addClass(Q,ee)}},{key:"removeClass",value:function(Q,ee){this.delegate.removeClass(Q,ee)}},{key:"setStyle",value:function(Q,ee,Ee,Ve){this.delegate.setStyle(Q,ee,Ee,Ve)}},{key:"removeStyle",value:function(Q,ee,Ee){this.delegate.removeStyle(Q,ee,Ee)}},{key:"setProperty",value:function(Q,ee,Ee){"@"==ee.charAt(0)&&ee==Xa?this.disableAnimations(Q,!!Ee):this.delegate.setProperty(Q,ee,Ee)}},{key:"setValue",value:function(Q,ee){this.delegate.setValue(Q,ee)}},{key:"listen",value:function(Q,ee,Ee){return this.delegate.listen(Q,ee,Ee)}},{key:"disableAnimations",value:function(Q,ee){this.engine.disableAnimations(Q,ee)}}]),Se}(),Cp=function(Se){(0,Z.Z)(Q,Se);var ge=(0,T.Z)(Q);function Q(ee,Ee,Ve,lt){var wt;return(0,B.Z)(this,Q),(wt=ge.call(this,Ee,Ve,lt)).factory=ee,wt.namespaceId=Ee,wt}return(0,V.Z)(Q,[{key:"setProperty",value:function(Ee,Ve,lt){"@"==Ve.charAt(0)?"."==Ve.charAt(1)&&Ve==Xa?this.disableAnimations(Ee,lt=void 0===lt||!!lt):this.engine.process(this.namespaceId,Ee,Ve.substr(1),lt):this.delegate.setProperty(Ee,Ve,lt)}},{key:"listen",value:function(Ee,Ve,lt){var wt=this;if("@"==Ve.charAt(0)){var Zt=function(Se){switch(Se){case"body":return document.body;case"document":return document;case"window":return window;default:return Se}}(Ee),$t=Ve.substr(1),un="";if("@"!=$t.charAt(0)){var An=function(Se){var ge=Se.indexOf(".");return[Se.substring(0,ge),Se.substr(ge+1)]}($t),Bn=(0,U.Z)(An,2);$t=Bn[0],un=Bn[1]}return this.engine.listen(this.namespaceId,Zt,$t,un,function(Qn){wt.factory.scheduleListenerCallback(Qn._data||-1,lt,Qn)})}return this.delegate.listen(Ee,Ve,lt)}}]),Q}(Es),uc=function(){var Se=function(ge){(0,Z.Z)(ee,ge);var Q=(0,T.Z)(ee);function ee(Ee,Ve,lt){return(0,B.Z)(this,ee),Q.call(this,Ee.body,Ve,lt)}return(0,V.Z)(ee,[{key:"ngOnDestroy",value:function(){this.flush()}}]),ee}(Qi);return Se.\u0275fac=function(Q){return new(Q||Se)(R.LFG(Pi.K0),R.LFG(Ft),R.LFG(fi))},Se.\u0275prov=R.Yz7({token:Se,factory:Se.\u0275fac}),Se}(),md=new R.OlP("AnimationModuleType"),xp=[{provide:v._j,useClass:ya},{provide:fi,useFactory:function(){return new ki}},{provide:Qi,useClass:uc},{provide:R.FYo,useFactory:function(Se,ge,Q){return new ba(Se,ge,Q)},deps:[C.se,Qi,R.R0b]}],wp=[{provide:Ft,useFactory:function(){return"function"==typeof jr()?new gt:new fe}},{provide:md,useValue:"BrowserAnimations"}].concat(xp),vd=[{provide:Ft,useClass:yt},{provide:md,useValue:"NoopAnimations"}].concat(xp),tu=function(){var Se=function(){function ge(){(0,B.Z)(this,ge)}return(0,V.Z)(ge,null,[{key:"withConfig",value:function(ee){return{ngModule:ge,providers:ee.disableAnimations?vd:wp}}}]),ge}();return Se.\u0275fac=function(Q){return new(Q||Se)},Se.\u0275mod=R.oAB({type:Se}),Se.\u0275inj=R.cJS({providers:wp,imports:[C.b2]}),Se}()},29176:function(ue,q,f){"use strict";f.d(q,{b2:function(){return ze},H7:function(){return Cn},Dx:function(){return qr},HJ:function(){return co},q6:function(){return Ne},se:function(){return bt}});var _,U=f(20901),B=f(89200),V=f(14105),Z=f(18967),T=f(10509),R=f(97154),C=f(40098),v=f(65508),D=function(Ot){(0,T.Z)(Pt,Ot);var jt=(0,R.Z)(Pt);function Pt(){return(0,Z.Z)(this,Pt),jt.apply(this,arguments)}return(0,V.Z)(Pt,[{key:"onAndCancel",value:function(Gt,Xt,gn){return Gt.addEventListener(Xt,gn,!1),function(){Gt.removeEventListener(Xt,gn,!1)}}},{key:"dispatchEvent",value:function(Gt,Xt){Gt.dispatchEvent(Xt)}},{key:"remove",value:function(Gt){Gt.parentNode&&Gt.parentNode.removeChild(Gt)}},{key:"createElement",value:function(Gt,Xt){return(Xt=Xt||this.getDefaultDocument()).createElement(Gt)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(Gt){return Gt.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(Gt){return Gt instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(Gt,Xt){return"window"===Xt?window:"document"===Xt?Gt:"body"===Xt?Gt.body:null}},{key:"getBaseHref",value:function(Gt){var Xt=(M=M||document.querySelector("base"))?M.getAttribute("href"):null;return null==Xt?null:function(Ot){(_=_||document.createElement("a")).setAttribute("href",Ot);var jt=_.pathname;return"/"===jt.charAt(0)?jt:"/".concat(jt)}(Xt)}},{key:"resetBaseElement",value:function(){M=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(Gt){return(0,C.Mx)(document.cookie,Gt)}}],[{key:"makeCurrent",value:function(){(0,C.HT)(new Pt)}}]),Pt}(function(Ot){(0,T.Z)(Pt,Ot);var jt=(0,R.Z)(Pt);function Pt(){var qt;return(0,Z.Z)(this,Pt),(qt=jt.apply(this,arguments)).supportsDOMEvents=!0,qt}return Pt}(C.w_)),M=null,k=new v.OlP("TRANSITION_ID"),E=[{provide:v.ip1,useFactory:function(Ot,jt,Pt){return function(){Pt.get(v.CZH).donePromise.then(function(){for(var qt=(0,C.q)(),Gt=jt.querySelectorAll('style[ng-transition="'.concat(Ot,'"]')),Xt=0;Xt1&&void 0!==arguments[1])||arguments[1],gn=Pt.findTestabilityInTree(Gt,Xt);if(null==gn)throw new Error("Could not find testability for element.");return gn},v.dqk.getAllAngularTestabilities=function(){return Pt.getAllTestabilities()},v.dqk.getAllAngularRootElements=function(){return Pt.getAllRootElements()},v.dqk.frameworkStabilizers||(v.dqk.frameworkStabilizers=[]),v.dqk.frameworkStabilizers.push(function(Xt){var gn=v.dqk.getAllAngularTestabilities(),Gn=gn.length,jn=!1,zn=function(bi){jn=jn||bi,0==--Gn&&Xt(jn)};gn.forEach(function(si){si.whenStable(zn)})})}},{key:"findTestabilityInTree",value:function(Pt,qt,Gt){if(null==qt)return null;var Xt=Pt.getTestability(qt);return null!=Xt?Xt:Gt?(0,C.q)().isShadowRoot(qt)?this.findTestabilityInTree(Pt,qt.host,!0):this.findTestabilityInTree(Pt,qt.parentElement,!0):null}}],[{key:"init",value:function(){(0,v.VLi)(new Ot)}}]),Ot}(),S=function(){var Ot=function(){function jt(){(0,Z.Z)(this,jt)}return(0,V.Z)(jt,[{key:"build",value:function(){return new XMLHttpRequest}}]),jt}();return Ot.\u0275fac=function(Pt){return new(Pt||Ot)},Ot.\u0275prov=v.Yz7({token:Ot,factory:Ot.\u0275fac}),Ot}();var it=new v.OlP("EventManagerPlugins"),qe=function(){var Ot=function(){function jt(Pt,qt){var Gt=this;(0,Z.Z)(this,jt),this._zone=qt,this._eventNameToPlugin=new Map,Pt.forEach(function(Xt){return Xt.manager=Gt}),this._plugins=Pt.slice().reverse()}return(0,V.Z)(jt,[{key:"addEventListener",value:function(qt,Gt,Xt){return this._findPluginFor(Gt).addEventListener(qt,Gt,Xt)}},{key:"addGlobalEventListener",value:function(qt,Gt,Xt){return this._findPluginFor(Gt).addGlobalEventListener(qt,Gt,Xt)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(qt){var Gt=this._eventNameToPlugin.get(qt);if(Gt)return Gt;for(var Xt=this._plugins,gn=0;gn-1&&(gn.splice(io,1),zn+=bi+".")}),zn+=jn,0!=gn.length||0===jn.length)return null;var si={};return si.domEventName=Gn,si.fullKey=zn,si}},{key:"getEventFullKey",value:function(Xt){var gn="",Gn=function(Ot){var jt=Ot.key;if(null==jt){if(null==(jt=Ot.keyIdentifier))return"Unidentified";jt.startsWith("U+")&&(jt=String.fromCharCode(parseInt(jt.substring(2),16)),3===Ot.location&&Kt.hasOwnProperty(jt)&&(jt=Kt[jt]))}return Jt[jt]||jt}(Xt);return" "===(Gn=Gn.toLowerCase())?Gn="space":"."===Gn&&(Gn="dot"),ct.forEach(function(jn){jn!=Gn&&(0,Tn[jn])(Xt)&&(gn+=jn+".")}),gn+=Gn}},{key:"eventCallback",value:function(Xt,gn,Gn){return function(jn){qt.getEventFullKey(jn)===Xt&&Gn.runGuarded(function(){return gn(jn)})}}},{key:"_normalizeKey",value:function(Xt){switch(Xt){case"esc":return"escape";default:return Xt}}}]),qt}(_t);return Ot.\u0275fac=function(Pt){return new(Pt||Ot)(v.LFG(C.K0))},Ot.\u0275prov=v.Yz7({token:Ot,factory:Ot.\u0275fac}),Ot}(),Cn=function(){var Ot=function jt(){(0,Z.Z)(this,jt)};return Ot.\u0275fac=function(Pt){return new(Pt||Ot)},Ot.\u0275prov=(0,v.Yz7)({factory:function(){return(0,v.LFG)(tr)},token:Ot,providedIn:"root"}),Ot}(),tr=function(){var Ot=function(jt){(0,T.Z)(qt,jt);var Pt=(0,R.Z)(qt);function qt(Gt){var Xt;return(0,Z.Z)(this,qt),(Xt=Pt.call(this))._doc=Gt,Xt}return(0,V.Z)(qt,[{key:"sanitize",value:function(Xt,gn){if(null==gn)return null;switch(Xt){case v.q3G.NONE:return gn;case v.q3G.HTML:return(0,v.qzn)(gn,"HTML")?(0,v.z3N)(gn):(0,v.EiD)(this._doc,String(gn)).toString();case v.q3G.STYLE:return(0,v.qzn)(gn,"Style")?(0,v.z3N)(gn):gn;case v.q3G.SCRIPT:if((0,v.qzn)(gn,"Script"))return(0,v.z3N)(gn);throw new Error("unsafe value used in a script context");case v.q3G.URL:return(0,v.yhl)(gn),(0,v.qzn)(gn,"URL")?(0,v.z3N)(gn):(0,v.mCW)(String(gn));case v.q3G.RESOURCE_URL:if((0,v.qzn)(gn,"ResourceURL"))return(0,v.z3N)(gn);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(Xt," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(Xt){return(0,v.JVY)(Xt)}},{key:"bypassSecurityTrustStyle",value:function(Xt){return(0,v.L6k)(Xt)}},{key:"bypassSecurityTrustScript",value:function(Xt){return(0,v.eBb)(Xt)}},{key:"bypassSecurityTrustUrl",value:function(Xt){return(0,v.LAX)(Xt)}},{key:"bypassSecurityTrustResourceUrl",value:function(Xt){return(0,v.pB0)(Xt)}}]),qt}(Cn);return Ot.\u0275fac=function(Pt){return new(Pt||Ot)(v.LFG(C.K0))},Ot.\u0275prov=(0,v.Yz7)({factory:function(){return function(Ot){return new tr(Ot.get(C.K0))}((0,v.LFG)(v.gxx))},token:Ot,providedIn:"root"}),Ot}(),Ne=(0,v.eFA)(v._c5,"browser",[{provide:v.Lbi,useValue:C.bD},{provide:v.g9A,useValue:function(){D.makeCurrent(),x.init()},multi:!0},{provide:C.K0,useFactory:function(){return(0,v.RDi)(document),document},deps:[]}]),Le=[[],{provide:v.zSh,useValue:"root"},{provide:v.qLn,useFactory:function(){return new v.qLn},deps:[]},{provide:it,useClass:$n,multi:!0,deps:[C.K0,v.R0b,v.Lbi]},{provide:it,useClass:Pn,multi:!0,deps:[C.K0]},[],{provide:bt,useClass:bt,deps:[qe,Ft,v.AFp]},{provide:v.FYo,useExisting:bt},{provide:yt,useExisting:Ft},{provide:Ft,useClass:Ft,deps:[C.K0]},{provide:v.dDg,useClass:v.dDg,deps:[v.R0b]},{provide:qe,useClass:qe,deps:[it,v.R0b]},{provide:C.JF,useClass:S,deps:[]},[]],ze=function(){var Ot=function(){function jt(Pt){if((0,Z.Z)(this,jt),Pt)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return(0,V.Z)(jt,null,[{key:"withServerTransition",value:function(qt){return{ngModule:jt,providers:[{provide:v.AFp,useValue:qt.appId},{provide:k,useExisting:v.AFp},E]}}}]),jt}();return Ot.\u0275fac=function(Pt){return new(Pt||Ot)(v.LFG(Ot,12))},Ot.\u0275mod=v.oAB({type:Ot}),Ot.\u0275inj=v.cJS({providers:Le,imports:[C.ez,v.hGG]}),Ot}();function Nr(){return new qr((0,v.LFG)(C.K0))}var qr=function(){var Ot=function(){function jt(Pt){(0,Z.Z)(this,jt),this._doc=Pt}return(0,V.Z)(jt,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(qt){this._doc.title=qt||""}}]),jt}();return Ot.\u0275fac=function(Pt){return new(Pt||Ot)(v.LFG(C.K0))},Ot.\u0275prov=(0,v.Yz7)({factory:Nr,token:Ot,providedIn:"root"}),Ot}(),br="undefined"!=typeof window&&window||{},Qr=function Ot(jt,Pt){(0,Z.Z)(this,Ot),this.msPerTick=jt,this.numTicks=Pt},uo=function(){function Ot(jt){(0,Z.Z)(this,Ot),this.appRef=jt.injector.get(v.z2F)}return(0,V.Z)(Ot,[{key:"timeChangeDetection",value:function(Pt){var qt=Pt&&Pt.record,Gt="Change Detection",Xt=null!=br.console.profile;qt&&Xt&&br.console.profile(Gt);for(var gn=Ni(),Gn=0;Gn<5||Ni()-gn<500;)this.appRef.tick(),Gn++;var jn=Ni();qt&&Xt&&br.console.profileEnd(Gt);var zn=(jn-gn)/Gn;return br.console.log("ran ".concat(Gn," change detection cycles")),br.console.log("".concat(zn.toFixed(2)," ms per check")),new Qr(zn,Gn)}}]),Ot}();function Ni(){return br.performance&&br.performance.now?br.performance.now():(new Date).getTime()}function co(Ot){return function(Ot,jt){"undefined"!=typeof COMPILED&&COMPILED||((v.dqk.ng=v.dqk.ng||{})[Ot]=jt)}("profiler",new uo(Ot)),Ot}},82605:function(ue,q,f){"use strict";f.d(q,{Rf:function(){return V},DM:function(){return Z},en:function(){return T},jH:function(){return R},Cf:function(){return C},Db:function(){return v},EG:function(){return P},l4:function(){return D},JY:function(){return g}});var U=f(4839),B={};function V(){return(0,U.KV)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:B}function Z(){var E=V(),x=E.crypto||E.msCrypto;if(void 0!==x&&x.getRandomValues){var S=new Uint16Array(8);x.getRandomValues(S),S[3]=4095&S[3]|16384,S[4]=16383&S[4]|32768;var O=function(j){for(var K=j.toString(16);K.length<4;)K="0"+K;return K};return O(S[0])+O(S[1])+O(S[2])+O(S[3])+O(S[4])+O(S[5])+O(S[6])+O(S[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(L){var j=16*Math.random()|0;return("x"===L?j:3&j|8).toString(16)})}function T(E){if(!E)return{};var x=E.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);return x?{host:x[4],path:x[5],protocol:x[2],relative:x[5]+(x[6]||"")+(x[8]||"")}:{}}function R(E){if(E.message)return E.message;if(E.exception&&E.exception.values&&E.exception.values[0]){var x=E.exception.values[0];return x.type&&x.value?x.type+": "+x.value:x.type||x.value||E.event_id||""}return E.event_id||""}function C(E){var x=V();if(!("console"in x))return E();var O=x.console,L={};["debug","info","warn","error","log","assert"].forEach(function(K){K in x.console&&O[K].__sentry_original__&&(L[K]=O[K],O[K]=O[K].__sentry_original__)});var j=E();return Object.keys(L).forEach(function(K){O[K]=L[K]}),j}function v(E,x,S){E.exception=E.exception||{},E.exception.values=E.exception.values||[],E.exception.values[0]=E.exception.values[0]||{},E.exception.values[0].value=E.exception.values[0].value||x||"",E.exception.values[0].type=E.exception.values[0].type||S||"Error"}function P(E,x){void 0===x&&(x={});try{E.exception.values[0].mechanism=E.exception.values[0].mechanism||{},Object.keys(x).forEach(function(S){E.exception.values[0].mechanism[S]=x[S]})}catch(S){}}function D(){var E=V();try{return E.document.location.href}catch(x){return""}}function g(E,x){if(!x)return 6e4;var S=parseInt(""+x,10);if(!isNaN(S))return 1e3*S;var O=Date.parse(""+x);return isNaN(O)?6e4:O-E}},4839:function(ue,q,f){"use strict";function U(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function B(Z,T){return Z.require(T)}f.d(q,{KV:function(){return U},l$:function(){return B}}),ue=f.hmd(ue)},46354:function(ue,q,f){"use strict";f.d(q,{yW:function(){return v},ph:function(){return P}});var U=f(82605),B=f(4839);ue=f.hmd(ue);var V={nowSeconds:function(){return Date.now()/1e3}},R=(0,B.KV)()?function(){try{return(0,B.l$)(ue,"perf_hooks").performance}catch(k){return}}():function(){var g=(0,U.Rf)().performance;if(g&&g.now)return{now:function(){return g.now()},timeOrigin:Date.now()-g.now()}}(),C=void 0===R?V:{nowSeconds:function(){return(R.timeOrigin+R.now())/1e3}},v=V.nowSeconds.bind(V),P=C.nowSeconds.bind(C);!function(){var g=(0,U.Rf)().performance;if(g&&g.now){var k=36e5,N=g.now(),E=Date.now(),x=g.timeOrigin?Math.abs(g.timeOrigin+N-E):k,S=x0||navigator.msMaxTouchPoints>0);function K(dt,Qe){var Bt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,xt=Math.abs(dt-Qe);return xt=Bt.top&&Qe<=Bt.bottom}function te(dt){var Qe=dt.clientX,Bt=dt.rect;return Qe>=Bt.left&&Qe<=Bt.right}function ae(dt){var Qe=dt.clientX,Bt=dt.clientY,vt=dt.allowedEdges,Qt=dt.cursorPrecision,Ht=dt.elm.nativeElement.getBoundingClientRect(),Ct={};return vt.left&&K(Qe,Ht.left,Qt)&&ie({clientY:Bt,rect:Ht})&&(Ct.left=!0),vt.right&&K(Qe,Ht.right,Qt)&&ie({clientY:Bt,rect:Ht})&&(Ct.right=!0),vt.top&&K(Bt,Ht.top,Qt)&&te({clientX:Qe,rect:Ht})&&(Ct.top=!0),vt.bottom&&K(Bt,Ht.bottom,Qt)&&te({clientX:Qe,rect:Ht})&&(Ct.bottom=!0),Ct}var se=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function ce(dt,Qe){return dt.left&&dt.top?Qe.topLeft:dt.right&&dt.top?Qe.topRight:dt.left&&dt.bottom?Qe.bottomLeft:dt.right&&dt.bottom?Qe.bottomRight:dt.left||dt.right?Qe.leftOrRight:dt.top||dt.bottom?Qe.topOrBottom:""}function le(dt){var Bt=dt.initialRectangle,xt=dt.newRectangle,vt={};return Object.keys(dt.edges).forEach(function(Qt){vt[Qt]=(xt[Qt]||0)-(Bt[Qt]||0)}),vt}var oe="resize-active",Ft=function(){var dt=function(){function Qe(Bt,xt,vt,Qt){(0,B.Z)(this,Qe),this.platformId=Bt,this.renderer=xt,this.elm=vt,this.zone=Qt,this.resizeEdges={},this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=se,this.resizeCursorPrecision=3,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new T.vpe,this.resizing=new T.vpe,this.resizeEnd=new T.vpe,this.mouseup=new R.xQ,this.mousedown=new R.xQ,this.mousemove=new R.xQ,this.destroy$=new R.xQ,this.resizeEdges$=new R.xQ,this.pointerEventListeners=xe.getInstance(xt,Qt)}return(0,V.Z)(Qe,[{key:"ngOnInit",value:function(){var Ct,xt=this,vt=(0,C.T)(this.pointerEventListeners.pointerDown,this.mousedown),Qt=(0,C.T)(this.pointerEventListeners.pointerMove,this.mousemove).pipe((0,M.b)(function(Nt){var rn=Nt.event;if(Ct)try{rn.preventDefault()}catch(kn){}}),(0,A.B)()),Ht=(0,C.T)(this.pointerEventListeners.pointerUp,this.mouseup),Vt=function(){Ct&&Ct.clonedNode&&(xt.elm.nativeElement.parentElement.removeChild(Ct.clonedNode),xt.renderer.setStyle(xt.elm.nativeElement,"visibility","inherit"))},bt=function(){return Object.assign({},se,xt.resizeCursors)};this.resizeEdges$.pipe((0,_.O)(this.resizeEdges),(0,g.U)(function(){return xt.resizeEdges&&Object.keys(xt.resizeEdges).some(function(Nt){return!!xt.resizeEdges[Nt]})}),(0,k.w)(function(Nt){return Nt?Qt:v.E}),(0,N.e)(this.mouseMoveThrottleMS),(0,E.R)(this.destroy$)).subscribe(function(Nt){var Nn=ae({clientX:Nt.clientX,clientY:Nt.clientY,elm:xt.elm,allowedEdges:xt.resizeEdges,cursorPrecision:xt.resizeCursorPrecision}),In=bt();if(!Ct){var $n=ce(Nn,In);xt.renderer.setStyle(xt.elm.nativeElement,"cursor",$n)}xt.setElementClass(xt.elm,"resize-left-hover",!0===Nn.left),xt.setElementClass(xt.elm,"resize-right-hover",!0===Nn.right),xt.setElementClass(xt.elm,"resize-top-hover",!0===Nn.top),xt.setElementClass(xt.elm,"resize-bottom-hover",!0===Nn.bottom)}),vt.pipe((0,x.zg)(function(Nt){function rn(In){return{clientX:In.clientX-Nt.clientX,clientY:In.clientY-Nt.clientY}}var kn=function(){var $n={x:1,y:1};return Ct&&(xt.resizeSnapGrid.left&&Ct.edges.left?$n.x=+xt.resizeSnapGrid.left:xt.resizeSnapGrid.right&&Ct.edges.right&&($n.x=+xt.resizeSnapGrid.right),xt.resizeSnapGrid.top&&Ct.edges.top?$n.y=+xt.resizeSnapGrid.top:xt.resizeSnapGrid.bottom&&Ct.edges.bottom&&($n.y=+xt.resizeSnapGrid.bottom)),$n};function Nn(In,$n){return{x:Math.ceil(In.clientX/$n.x),y:Math.ceil(In.clientY/$n.y)}}return(0,C.T)(Qt.pipe((0,S.q)(1)).pipe((0,g.U)(function(In){return[,In]})),Qt.pipe((0,O.G)())).pipe((0,g.U)(function(In){var $n=(0,U.Z)(In,2),Rn=$n[0],wn=$n[1];return[Rn&&rn(Rn),rn(wn)]})).pipe((0,L.h)(function(In){var $n=(0,U.Z)(In,2),Rn=$n[0],wn=$n[1];if(!Rn)return!0;var yr=kn(),ut=Nn(Rn,yr),He=Nn(wn,yr);return ut.x!==He.x||ut.y!==He.y})).pipe((0,g.U)(function(In){var Rn=(0,U.Z)(In,2)[1],wn=kn();return{clientX:Math.round(Rn.clientX/wn.x)*wn.x,clientY:Math.round(Rn.clientY/wn.y)*wn.y}})).pipe((0,E.R)((0,C.T)(Ht,vt)))})).pipe((0,L.h)(function(){return!!Ct})).pipe((0,g.U)(function(Nt){return z(Ct.startingRect,Ct.edges,Nt.clientX,Nt.clientY)})).pipe((0,L.h)(function(Nt){return xt.allowNegativeResizes||!!(Nt.height&&Nt.width&&Nt.height>0&&Nt.width>0)})).pipe((0,L.h)(function(Nt){return!xt.validateResize||xt.validateResize({rectangle:Nt,edges:le({edges:Ct.edges,initialRectangle:Ct.startingRect,newRectangle:Nt})})}),(0,E.R)(this.destroy$)).subscribe(function(Nt){Ct&&Ct.clonedNode&&(xt.renderer.setStyle(Ct.clonedNode,"height","".concat(Nt.height,"px")),xt.renderer.setStyle(Ct.clonedNode,"width","".concat(Nt.width,"px")),xt.renderer.setStyle(Ct.clonedNode,"top","".concat(Nt.top,"px")),xt.renderer.setStyle(Ct.clonedNode,"left","".concat(Nt.left,"px"))),xt.resizing.observers.length>0&&xt.zone.run(function(){xt.resizing.emit({edges:le({edges:Ct.edges,initialRectangle:Ct.startingRect,newRectangle:Nt}),rectangle:Nt})}),Ct.currentRect=Nt}),vt.pipe((0,g.U)(function(Nt){return Nt.edges||ae({clientX:Nt.clientX,clientY:Nt.clientY,elm:xt.elm,allowedEdges:xt.resizeEdges,cursorPrecision:xt.resizeCursorPrecision})})).pipe((0,L.h)(function(Nt){return Object.keys(Nt).length>0}),(0,E.R)(this.destroy$)).subscribe(function(Nt){Ct&&Vt();var rn=function(dt,Qe){var Bt=0,xt=0,vt=dt.nativeElement.style,Ht=["transform","-ms-transform","-moz-transform","-o-transform"].map(function(Vt){return vt[Vt]}).find(function(Vt){return!!Vt});if(Ht&&Ht.includes("translate")&&(Bt=Ht.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),xt=Ht.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===Qe)return{height:dt.nativeElement.offsetHeight,width:dt.nativeElement.offsetWidth,top:dt.nativeElement.offsetTop-xt,bottom:dt.nativeElement.offsetHeight+dt.nativeElement.offsetTop-xt,left:dt.nativeElement.offsetLeft-Bt,right:dt.nativeElement.offsetWidth+dt.nativeElement.offsetLeft-Bt};var Ct=dt.nativeElement.getBoundingClientRect();return{height:Ct.height,width:Ct.width,top:Ct.top-xt,bottom:Ct.bottom-xt,left:Ct.left-Bt,right:Ct.right-Bt,scrollTop:dt.nativeElement.scrollTop,scrollLeft:dt.nativeElement.scrollLeft}}(xt.elm,xt.ghostElementPositioning);Ct={edges:Nt,startingRect:rn,currentRect:rn};var kn=bt(),Nn=ce(Ct.edges,kn);xt.renderer.setStyle(document.body,"cursor",Nn),xt.setElementClass(xt.elm,oe,!0),xt.enableGhostResize&&(Ct.clonedNode=xt.elm.nativeElement.cloneNode(!0),xt.elm.nativeElement.parentElement.appendChild(Ct.clonedNode),xt.renderer.setStyle(xt.elm.nativeElement,"visibility","hidden"),xt.renderer.setStyle(Ct.clonedNode,"position",xt.ghostElementPositioning),xt.renderer.setStyle(Ct.clonedNode,"left","".concat(Ct.startingRect.left,"px")),xt.renderer.setStyle(Ct.clonedNode,"top","".concat(Ct.startingRect.top,"px")),xt.renderer.setStyle(Ct.clonedNode,"height","".concat(Ct.startingRect.height,"px")),xt.renderer.setStyle(Ct.clonedNode,"width","".concat(Ct.startingRect.width,"px")),xt.renderer.setStyle(Ct.clonedNode,"cursor",ce(Ct.edges,kn)),xt.renderer.addClass(Ct.clonedNode,"resize-ghost-element"),Ct.clonedNode.scrollTop=Ct.startingRect.scrollTop,Ct.clonedNode.scrollLeft=Ct.startingRect.scrollLeft),xt.resizeStart.observers.length>0&&xt.zone.run(function(){xt.resizeStart.emit({edges:le({edges:Nt,initialRectangle:rn,newRectangle:rn}),rectangle:z(rn,{},0,0)})})}),Ht.pipe((0,E.R)(this.destroy$)).subscribe(function(){Ct&&(xt.renderer.removeClass(xt.elm.nativeElement,oe),xt.renderer.setStyle(document.body,"cursor",""),xt.renderer.setStyle(xt.elm.nativeElement,"cursor",""),xt.resizeEnd.observers.length>0&&xt.zone.run(function(){xt.resizeEnd.emit({edges:le({edges:Ct.edges,initialRectangle:Ct.startingRect,newRectangle:Ct.currentRect}),rectangle:Ct.currentRect})}),Vt(),Ct=null)})}},{key:"ngOnChanges",value:function(xt){xt.resizeEdges&&this.resizeEdges$.next(this.resizeEdges)}},{key:"ngOnDestroy",value:function(){(0,Z.NF)(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.resizeEdges$.complete(),this.destroy$.next()}},{key:"setElementClass",value:function(xt,vt,Qt){Qt?this.renderer.addClass(xt.nativeElement,vt):this.renderer.removeClass(xt.nativeElement,vt)}}]),Qe}();return dt.\u0275fac=function(Bt){return new(Bt||dt)(T.Y36(T.Lbi),T.Y36(T.Qsj),T.Y36(T.SBq),T.Y36(T.R0b))},dt.\u0275dir=T.lG2({type:dt,selectors:[["","mwlResizable",""]],inputs:{resizeEdges:"resizeEdges",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",resizeCursorPrecision:"resizeCursorPrecision",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS",validateResize:"validateResize"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},exportAs:["mwlResizable"],features:[T.TTD]}),dt}(),xe=function(){function dt(Qe,Bt){(0,B.Z)(this,dt),this.pointerDown=new P.y(function(xt){var vt,Qt;return Bt.runOutsideAngular(function(){vt=Qe.listen("document","mousedown",function(Ht){xt.next({clientX:Ht.clientX,clientY:Ht.clientY,event:Ht})}),j&&(Qt=Qe.listen("document","touchstart",function(Ht){xt.next({clientX:Ht.touches[0].clientX,clientY:Ht.touches[0].clientY,event:Ht})}))}),function(){vt(),j&&Qt()}}).pipe((0,A.B)()),this.pointerMove=new P.y(function(xt){var vt,Qt;return Bt.runOutsideAngular(function(){vt=Qe.listen("document","mousemove",function(Ht){xt.next({clientX:Ht.clientX,clientY:Ht.clientY,event:Ht})}),j&&(Qt=Qe.listen("document","touchmove",function(Ht){xt.next({clientX:Ht.targetTouches[0].clientX,clientY:Ht.targetTouches[0].clientY,event:Ht})}))}),function(){vt(),j&&Qt()}}).pipe((0,A.B)()),this.pointerUp=new P.y(function(xt){var vt,Qt,Ht;return Bt.runOutsideAngular(function(){vt=Qe.listen("document","mouseup",function(Ct){xt.next({clientX:Ct.clientX,clientY:Ct.clientY,event:Ct})}),j&&(Qt=Qe.listen("document","touchend",function(Ct){xt.next({clientX:Ct.changedTouches[0].clientX,clientY:Ct.changedTouches[0].clientY,event:Ct})}),Ht=Qe.listen("document","touchcancel",function(Ct){xt.next({clientX:Ct.changedTouches[0].clientX,clientY:Ct.changedTouches[0].clientY,event:Ct})}))}),function(){vt(),j&&(Qt(),Ht())}}).pipe((0,A.B)())}return(0,V.Z)(dt,null,[{key:"getInstance",value:function(Bt,xt){return dt.instance||(dt.instance=new dt(Bt,xt)),dt.instance}}]),dt}(),je=function(){var dt=function Qe(){(0,B.Z)(this,Qe)};return dt.\u0275fac=function(Bt){return new(Bt||dt)},dt.\u0275mod=T.oAB({type:dt}),dt.\u0275inj=T.cJS({}),dt}()},57695:function(ue,q,f){var U=f(94518),B=f(23050),V=f(99262),Z=f(44900),T=/^\s*\|\s*/;function C(D,M){var A={};for(var _ in D)A[_]=D[_].syntax||D[_];for(var g in M)g in D?M[g].syntax?A[g]=T.test(M[g].syntax)?A[g]+" "+M[g].syntax.trim():M[g].syntax:delete A[g]:M[g].syntax&&(A[g]=M[g].syntax.replace(T,""));return A}function v(D){var M={};for(var A in D)M[A]=D[A].syntax;return M}ue.exports={types:C(V,Z.syntaxes),atrules:function(D,M){var A={};for(var _ in D){var g=M[_]&&M[_].descriptors||null;A[_]={prelude:_ in M&&"prelude"in M[_]?M[_].prelude:D[_].prelude||null,descriptors:D[_].descriptors?C(D[_].descriptors,g||{}):g&&v(g)}}for(var k in M)hasOwnProperty.call(D,k)||(A[k]={prelude:M[k].prelude||null,descriptors:M[k].descriptors&&v(M[k].descriptors)});return A}(function(D){var M=Object.create(null);for(var A in D){var _=D[A],g=null;if(_.descriptors)for(var k in g=Object.create(null),_.descriptors)g[k]=_.descriptors[k].syntax;M[A.substr(1)]={prelude:_.syntax.trim().match(/^@\S+\s+([^;\{]*)/)[1].trim()||null,descriptors:g}}return M}(U),Z.atrules),properties:C(B,Z.properties)}},63335:function(ue){function q(Z){return{prev:null,next:null,data:Z}}function f(Z,T,R){var C;return null!==B?(C=B,B=B.cursor,C.prev=T,C.next=R,C.cursor=Z.cursor):C={prev:T,next:R,cursor:Z.cursor},Z.cursor=C,C}function U(Z){var T=Z.cursor;Z.cursor=T.cursor,T.prev=null,T.next=null,T.cursor=B,B=T}var B=null,V=function(){this.cursor=null,this.head=null,this.tail=null};V.createItem=q,V.prototype.createItem=q,V.prototype.updateCursors=function(Z,T,R,C){for(var v=this.cursor;null!==v;)v.prev===Z&&(v.prev=T),v.next===R&&(v.next=C),v=v.cursor},V.prototype.getSize=function(){for(var Z=0,T=this.head;T;)Z++,T=T.next;return Z},V.prototype.fromArray=function(Z){var T=null;this.head=null;for(var R=0;R0?B(P.charCodeAt(0)):0;N100&&(N=A-60+3,A=58);for(var E=_;E<=g;E++)E>=0&&E0&&D[E].length>N?"\u2026":"")+D[E].substr(N,98)+(D[E].length>N+100-1?"\u2026":""));return[P(_,M),new Array(A+k+2).join("-")+"^",P(M,g)].filter(Boolean).join("\n")}ue.exports=function(v,P,D,M,A){var _=U("SyntaxError",v);return _.source=P,_.offset=D,_.line=M,_.column=A,_.sourceFragment=function(g){return T(_,isNaN(g)?0:g)},Object.defineProperty(_,"formattedMessage",{get:function(){return"Parse error: "+_.message+"\n"+T(_,2)}}),_.parseError={offset:D,line:M,column:A},_}},13146:function(ue,q,f){var U=f(97077),B=U.TYPE,V=U.NAME,T=f(74586).cmpStr,R=B.EOF,C=B.WhiteSpace,v=B.Comment,P=16777215,D=24,M=function(){this.offsetAndType=null,this.balance=null,this.reset()};M.prototype={reset:function(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset},lookupType:function(_){return(_+=this.tokenIndex)>D:R},lookupOffset:function(_){return(_+=this.tokenIndex)0?_>D,this.source,E)){case 1:break e;case 2:k++;break e;default:this.balance[N]===k&&(k=N),E=this.offsetAndType[k]&P}return k-this.tokenIndex},isBalanceEdge:function(_){return this.balance[this.tokenIndex]<_},isDelim:function(_,g){return g?this.lookupType(g)===B.Delim&&this.source.charCodeAt(this.lookupOffset(g))===_:this.tokenType===B.Delim&&this.source.charCodeAt(this.tokenStart)===_},getTokenValue:function(){return this.source.substring(this.tokenStart,this.tokenEnd)},getTokenLength:function(){return this.tokenEnd-this.tokenStart},substrToCursor:function(_){return this.source.substring(_,this.tokenStart)},skipWS:function(){for(var _=this.tokenIndex,g=0;_>D===C;_++,g++);g>0&&this.skip(g)},skipSC:function(){for(;this.tokenType===C||this.tokenType===v;)this.next()},skip:function(_){var g=this.tokenIndex+_;g>D,this.tokenEnd=g&P):(this.tokenIndex=this.tokenCount,this.next())},next:function(){var _=this.tokenIndex+1;_>D,this.tokenEnd=_&P):(this.tokenIndex=this.tokenCount,this.eof=!0,this.tokenType=R,this.tokenStart=this.tokenEnd=this.source.length)},forEachToken:function(_){for(var g=0,k=this.firstCharOffset;g>D,N,x,g)}},dump:function(){var _=this,g=new Array(this.tokenCount);return this.forEachToken(function(k,N,E,x){g[x]={idx:x,type:V[k],chunk:_.source.substring(N,E),balance:_.balance[x]}}),g}},ue.exports=M},62146:function(ue){var f="undefined"!=typeof Uint32Array?Uint32Array:Array;ue.exports=function(B,V){return null===B||B.length";break;case"Property":v="<'"+Z.name+"'>";break;case"Keyword":v=Z.name;break;case"AtKeyword":v="@"+Z.name;break;case"Function":v=Z.name+"(";break;case"String":case"Token":v=Z.value;break;case"Comma":v=",";break;default:throw new Error("Unknown node type `"+Z.type+"`")}return T(v,Z)}ue.exports=function(Z,T){var R=q,C=!1,v=!1;return"function"==typeof T?R=T:T&&(C=Boolean(T.forceBraces),v=Boolean(T.compact),"function"==typeof T.decorate&&(R=T.decorate)),V(Z,R,C,v)}},37149:function(ue,q,f){ue.exports={SyntaxError:f(6063),parse:f(11261),generate:f(58298),walk:f(37363)}},11261:function(ue,q,f){var U=f(57674),K=123,te=function(vt){for(var Qt="function"==typeof Uint32Array?new Uint32Array(128):new Array(128),Ht=0;Ht<128;Ht++)Qt[Ht]=vt(String.fromCharCode(Ht))?1:0;return Qt}(function(vt){return/[a-zA-Z0-9\-]/.test(vt)}),ae={" ":1,"&&":2,"||":3,"|":4};function ce(vt){return vt.substringToPos(vt.findWsEnd(vt.pos))}function le(vt){for(var Qt=vt.pos;Qt=128||0===te[Ht])break}return vt.pos===Qt&&vt.error("Expect a keyword"),vt.substringToPos(Qt)}function oe(vt){for(var Qt=vt.pos;Qt57)break}return vt.pos===Qt&&vt.error("Expect a number"),vt.substringToPos(Qt)}function Ae(vt){var Qt=vt.str.indexOf("'",vt.pos+1);return-1===Qt&&(vt.pos=vt.str.length,vt.error("Expect an apostrophe")),vt.substringToPos(Qt+1)}function be(vt){var Qt,Ht=null;return vt.eat(K),Qt=oe(vt),44===vt.charCode()?(vt.pos++,125!==vt.charCode()&&(Ht=oe(vt))):Ht=Qt,vt.eat(125),{min:Number(Qt),max:Ht?Number(Ht):0}}function qe(vt,Qt){var Ht=function(vt){var Qt=null,Ht=!1;switch(vt.charCode()){case 42:vt.pos++,Qt={min:0,max:0};break;case 43:vt.pos++,Qt={min:1,max:0};break;case 63:vt.pos++,Qt={min:0,max:1};break;case 35:vt.pos++,Ht=!0,Qt=vt.charCode()===K?be(vt):{min:1,max:0};break;case K:Qt=be(vt);break;default:return null}return{type:"Multiplier",comma:Ht,min:Qt.min,max:Qt.max,term:null}}(vt);return null!==Ht?(Ht.term=Qt,Ht):Qt}function _t(vt){var Qt=vt.peek();return""===Qt?null:{type:"Token",value:Qt}}function je(vt,Qt){function Ht(Nt,rn){return{type:"Group",terms:Nt,combinator:rn,disallowEmpty:!1,explicit:!1}}for(Qt=Object.keys(Qt).sort(function(Nt,rn){return ae[Nt]-ae[rn]});Qt.length>0;){for(var Ct=Qt.shift(),Vt=0,bt=0;Vt1&&(vt.splice(bt,Vt-bt,Ht(vt.slice(bt,Vt),Ct)),Vt=bt+1),bt=-1))}-1!==bt&&Qt.length&&vt.splice(bt,Vt-bt,Ht(vt.slice(bt,Vt),Ct))}return Ct}function dt(vt){for(var Ct,Qt=[],Ht={},Vt=null,bt=vt.pos;Ct=Bt(vt);)"Spaces"!==Ct.type&&("Combinator"===Ct.type?((null===Vt||"Combinator"===Vt.type)&&(vt.pos=bt,vt.error("Unexpected combinator")),Ht[Ct.value]=!0):null!==Vt&&"Combinator"!==Vt.type&&(Ht[" "]=!0,Qt.push({type:"Combinator",value:" "})),Qt.push(Ct),Vt=Ct,bt=vt.pos);return null!==Vt&&"Combinator"===Vt.type&&(vt.pos-=bt,vt.error("Unexpected combinator")),{type:"Group",terms:Qt,combinator:je(Qt,Ht)||" ",disallowEmpty:!1,explicit:!1}}function Bt(vt){var Qt=vt.charCode();if(Qt<128&&1===te[Qt])return function(vt){var Qt;return Qt=le(vt),40===vt.charCode()?(vt.pos++,{type:"Function",name:Qt}):qe(vt,{type:"Keyword",name:Qt})}(vt);switch(Qt){case 93:break;case 91:return qe(vt,function(vt){var Qt;return vt.eat(91),Qt=dt(vt),vt.eat(93),Qt.explicit=!0,33===vt.charCode()&&(vt.pos++,Qt.disallowEmpty=!0),Qt}(vt));case 60:return 39===vt.nextCharCode()?function(vt){var Qt;return vt.eat(60),vt.eat(39),Qt=le(vt),vt.eat(39),vt.eat(62),qe(vt,{type:"Property",name:Qt})}(vt):function(vt){var Qt,Ht=null;return vt.eat(60),Qt=le(vt),40===vt.charCode()&&41===vt.nextCharCode()&&(vt.pos+=2,Qt+="()"),91===vt.charCodeAt(vt.findWsEnd(vt.pos))&&(ce(vt),Ht=function(vt){var Qt=null,Ht=null,Ct=1;return vt.eat(91),45===vt.charCode()&&(vt.peek(),Ct=-1),-1==Ct&&8734===vt.charCode()?vt.peek():Qt=Ct*Number(oe(vt)),ce(vt),vt.eat(44),ce(vt),8734===vt.charCode()?vt.peek():(Ct=1,45===vt.charCode()&&(vt.peek(),Ct=-1),Ht=Ct*Number(oe(vt))),vt.eat(93),null===Qt&&null===Ht?null:{type:"Range",min:Qt,max:Ht}}(vt)),vt.eat(62),qe(vt,{type:"Type",name:Qt,opts:Ht})}(vt);case 124:return{type:"Combinator",value:vt.substringToPos(124===vt.nextCharCode()?vt.pos+2:vt.pos+1)};case 38:return vt.pos++,vt.eat(38),{type:"Combinator",value:"&&"};case 44:return vt.pos++,{type:"Comma"};case 39:return qe(vt,{type:"String",value:Ae(vt)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:ce(vt)};case 64:return(Qt=vt.nextCharCode())<128&&1===te[Qt]?(vt.pos++,{type:"AtKeyword",name:le(vt)}):_t(vt);case 42:case 43:case 63:case 35:case 33:break;case K:if((Qt=vt.nextCharCode())<48||Qt>57)return _t(vt);break;default:return _t(vt)}}function xt(vt){var Qt=new U(vt),Ht=dt(Qt);return Qt.pos!==vt.length&&Qt.error("Unexpected input"),1===Ht.terms.length&&"Group"===Ht.terms[0].type&&(Ht=Ht.terms[0]),Ht}xt("[a&&#|<'c'>*||e() f{2} /,(% g#{1,2} h{2,})]!"),ue.exports=xt},57674:function(ue,q,f){var U=f(6063),C=function(P){this.str=P,this.pos=0};C.prototype={charCodeAt:function(P){return P");function E(K,z,J){var ie={};for(var te in K)K[te].syntax&&(ie[te]=J?K[te].syntax:C(K[te].syntax,{compact:z}));return ie}function x(K,z,J){for(var ie={},te=0,ae=Object.entries(K);te3&&void 0!==arguments[3]?arguments[3]:null,ae={type:J,name:ie},se={type:J,name:ie,parent:te,syntax:null,match:null};return"function"==typeof z?se.match=D(z,ae):("string"==typeof z?Object.defineProperty(se,"syntax",{get:function(){return Object.defineProperty(se,"syntax",{value:R(z)}),se.syntax}}):se.syntax=z,Object.defineProperty(se,"match",{get:function(){return Object.defineProperty(se,"match",{value:D(se.syntax,ae)}),se.match}})),se},addAtrule_:function(z,J){var ie=this;!J||(this.atrules[z]={type:"Atrule",name:z,prelude:J.prelude?this.createDescriptor(J.prelude,"AtrulePrelude",z):null,descriptors:J.descriptors?Object.keys(J.descriptors).reduce(function(te,ae){return te[ae]=ie.createDescriptor(J.descriptors[ae],"AtruleDescriptor",ae,z),te},{}):null})},addProperty_:function(z,J){!J||(this.properties[z]=this.createDescriptor(J,"Property",z))},addType_:function(z,J){!J||(this.types[z]=this.createDescriptor(J,"Type",z),J===T["-ms-legacy-expression"]&&(this.valueCommonSyntax=N))},checkAtruleName:function(z){if(!this.getAtrule(z))return new B("Unknown at-rule","@"+z)},checkAtrulePrelude:function(z,J){var ie=this.checkAtruleName(z);if(ie)return ie;var te=this.getAtrule(z);return!te.prelude&&J?new SyntaxError("At-rule `@"+z+"` should not contain a prelude"):te.prelude&&!J?new SyntaxError("At-rule `@"+z+"` should contain a prelude"):void 0},checkAtruleDescriptorName:function(z,J){var ie=this.checkAtruleName(z);if(ie)return ie;var te=this.getAtrule(z),ae=Z.keyword(J);return te.descriptors?te.descriptors[ae.name]||te.descriptors[ae.basename]?void 0:new B("Unknown at-rule descriptor",J):new SyntaxError("At-rule `@"+z+"` has no known descriptors")},checkPropertyName:function(z){return Z.property(z).custom?new Error("Lexer matching doesn't applicable for custom properties"):this.getProperty(z)?void 0:new B("Unknown property",z)},matchAtrulePrelude:function(z,J){var ie=this.checkAtrulePrelude(z,J);return ie?O(null,ie):J?L(this,this.getAtrule(z).prelude,J,!1):O(null,null)},matchAtruleDescriptor:function(z,J,ie){var te=this.checkAtruleDescriptorName(z,J);if(te)return O(null,te);var ae=this.getAtrule(z),se=Z.keyword(J);return L(this,ae.descriptors[se.name]||ae.descriptors[se.basename],ie,!1)},matchDeclaration:function(z){return"Declaration"!==z.type?O(null,new Error("Not a Declaration node")):this.matchProperty(z.property,z.value)},matchProperty:function(z,J){var ie=this.checkPropertyName(z);return ie?O(null,ie):L(this,this.getProperty(z),J,!0)},matchType:function(z,J){var ie=this.getType(z);return ie?L(this,ie,J,!1):O(null,new B("Unknown type",z))},match:function(z,J){return"string"==typeof z||z&&z.type?(("string"==typeof z||!z.match)&&(z=this.createDescriptor(z,"Type","anonymous")),L(this,z,J,!1)):O(null,new B("Bad syntax"))},findValueFragments:function(z,J,ie,te){return _.matchFragments(this,J,this.matchProperty(z,J),ie,te)},findDeclarationValueFragments:function(z,J,ie){return _.matchFragments(this,z.value,this.matchDeclaration(z),J,ie)},findAllFragments:function(z,J,ie){var te=[];return this.syntax.walk(z,{visit:"Declaration",enter:function(ae){te.push.apply(te,this.findDeclarationValueFragments(ae,J,ie))}.bind(this)}),te},getAtrule:function(z){var J=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ie=Z.keyword(z),te=ie.vendor&&J?this.atrules[ie.name]||this.atrules[ie.basename]:this.atrules[ie.name];return te||null},getAtrulePrelude:function(z){var J=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ie=this.getAtrule(z,J);return ie&&ie.prelude||null},getAtruleDescriptor:function(z,J){return this.atrules.hasOwnProperty(z)&&this.atrules.declarators&&this.atrules[z].declarators[J]||null},getProperty:function(z){var J=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ie=Z.property(z),te=ie.vendor&&J?this.properties[ie.name]||this.properties[ie.basename]:this.properties[ie.name];return te||null},getType:function(z){return this.types.hasOwnProperty(z)?this.types[z]:null},validate:function(){function z(ae,se,ce,le){if(ce.hasOwnProperty(se))return ce[se];ce[se]=!1,null!==le.syntax&&v(le.syntax,function(oe){if("Type"===oe.type||"Property"===oe.type){var Ae="Type"===oe.type?ae.types:ae.properties,be="Type"===oe.type?J:ie;(!Ae.hasOwnProperty(oe.name)||z(ae,oe.name,be,Ae[oe.name]))&&(ce[se]=!0)}},this)}var J={},ie={};for(var te in this.types)z(this,te,J,this.types[te]);for(var te in this.properties)z(this,te,ie,this.properties[te]);return J=Object.keys(J).filter(function(ae){return J[ae]}),ie=Object.keys(ie).filter(function(ae){return ie[ae]}),J.length||ie.length?{types:J,properties:ie}:null},dump:function(z,J){return{generic:this.generic,types:E(this.types,!J,z),properties:E(this.properties,!J,z),atrules:x(this.atrules,!J,z)}},toString:function(){return JSON.stringify(this.dump())}},ue.exports=j},40533:function(ue,q,f){var U=f(92455),B=f(58298),V={offset:0,line:1,column:1};function T(P,D){var M=P&&P.loc&&P.loc[D];return M?"line"in M?R(M):M:null}function R(P,D){var g={offset:P.offset,line:P.line,column:P.column};if(D){var k=D.split(/\n|\r\n?|\f/);g.offset+=D.length,g.line+=k.length-1,g.column=1===k.length?g.column+D.length:k.pop().length+1}return g}ue.exports={SyntaxReferenceError:function(D,M){var A=U("SyntaxReferenceError",D+(M?" `"+M+"`":""));return A.reference=M,A},SyntaxMatchError:function(D,M,A,_){var g=U("SyntaxMatchError",D),k=function(P,D){for(var S,O,M=P.tokens,A=P.longestMatch,_=A1?(S=T(g||D,"end")||R(V,x),O=R(S)):(S=T(g,"start")||R(T(D,"start")||V,x.slice(0,k)),O=T(g,"end")||R(S,x.substr(k,N))),{css:x,mismatchOffset:k,mismatchLength:N,start:S,end:O}}(_,A),N=k.css,E=k.mismatchOffset,x=k.mismatchLength,S=k.start,O=k.end;return g.rawMessage=D,g.syntax=M?B(M):"",g.css=N,g.mismatchOffset=E,g.mismatchLength=x,g.message=D+"\n syntax: "+g.syntax+"\n value: "+(N||"")+"\n --------"+new Array(g.mismatchOffset+1).join("-")+"^",Object.assign(g,S),g.loc={source:A&&A.loc&&A.loc.source||"",start:S,end:O},g}}},25533:function(ue,q,f){var U=f(97555).isDigit,B=f(97555).cmpChar,V=f(97555).TYPE,Z=V.Delim,T=V.WhiteSpace,R=V.Comment,C=V.Ident,v=V.Number,P=V.Dimension,M=45,_=!0;function k(S,O){return null!==S&&S.type===Z&&S.value.charCodeAt(0)===O}function N(S,O,L){for(;null!==S&&(S.type===T||S.type===R);)S=L(++O);return O}function E(S,O,L,j){if(!S)return 0;var K=S.value.charCodeAt(O);if(43===K||K===M){if(L)return 0;O++}for(;O0?6:0;if(!U(L)||++O>6)return 0}return O}function k(N,E,x){if(!N)return 0;for(;A(x(E),63);){if(++N>6)return 0;E++}return E}ue.exports=function(E,x){var S=0;if(null===E||E.type!==Z||!B(E.value,0,117)||null===(E=x(++S)))return 0;if(A(E,43))return null===(E=x(++S))?0:E.type===Z?k(g(E,0,!0),++S,x):A(E,63)?k(1,++S,x):0;if(E.type===R){if(!_(E,43))return 0;var O=g(E,1,!0);return 0===O?0:null===(E=x(++S))?S:E.type===C||E.type===R?_(E,45)&&g(E,1,!1)?S+1:0:k(O,S,x)}return E.type===C&&_(E,43)?k(g(E,1,!0),++S,x):0}},71473:function(ue,q,f){var U=f(97555),B=U.isIdentifierStart,V=U.isHexDigit,Z=U.isDigit,T=U.cmpStr,R=U.consumeNumber,C=U.TYPE,v=f(25533),P=f(70156),D=["unset","initial","inherit"],M=["calc(","-moz-calc(","-webkit-calc("];function O(xe,Oe){return Oexe.max)return!0}return!1}function J(xe,Oe){var je=xe.index,dt=0;do{if(dt++,xe.balance<=je)break}while(xe=Oe(dt));return dt}function ie(xe){return function(Oe,je,dt){return null===Oe?0:Oe.type===C.Function&&j(Oe.value,M)?J(Oe,je):xe(Oe,je,dt)}}function te(xe){return function(Oe){return null===Oe||Oe.type!==xe?0:1}}function it(xe){return function(Oe,je,dt){if(null===Oe||Oe.type!==C.Dimension)return 0;var Qe=R(Oe.value,0);if(null!==xe){var Bt=Oe.value.indexOf("\\",Qe),xt=-1!==Bt&&K(Oe.value,Bt)?Oe.value.substring(Qe,Bt):Oe.value.substr(Qe);if(!1===xe.hasOwnProperty(xt.toLowerCase()))return 0}return z(dt,Oe.value,Qe)?0:1}}function _t(xe){return"function"!=typeof xe&&(xe=function(){return 0}),function(Oe,je,dt){return null!==Oe&&Oe.type===C.Number&&0===Number(Oe.value)?1:xe(Oe,je,dt)}}ue.exports={"ident-token":te(C.Ident),"function-token":te(C.Function),"at-keyword-token":te(C.AtKeyword),"hash-token":te(C.Hash),"string-token":te(C.String),"bad-string-token":te(C.BadString),"url-token":te(C.Url),"bad-url-token":te(C.BadUrl),"delim-token":te(C.Delim),"number-token":te(C.Number),"percentage-token":te(C.Percentage),"dimension-token":te(C.Dimension),"whitespace-token":te(C.WhiteSpace),"CDO-token":te(C.CDO),"CDC-token":te(C.CDC),"colon-token":te(C.Colon),"semicolon-token":te(C.Semicolon),"comma-token":te(C.Comma),"[-token":te(C.LeftSquareBracket),"]-token":te(C.RightSquareBracket),"(-token":te(C.LeftParenthesis),")-token":te(C.RightParenthesis),"{-token":te(C.LeftCurlyBracket),"}-token":te(C.RightCurlyBracket),string:te(C.String),ident:te(C.Ident),"custom-ident":function(xe){if(null===xe||xe.type!==C.Ident)return 0;var Oe=xe.value.toLowerCase();return j(Oe,D)||L(Oe,"default")?0:1},"custom-property-name":function(xe){return null===xe||xe.type!==C.Ident||45!==O(xe.value,0)||45!==O(xe.value,1)?0:1},"hex-color":function(xe){if(null===xe||xe.type!==C.Hash)return 0;var Oe=xe.value.length;if(4!==Oe&&5!==Oe&&7!==Oe&&9!==Oe)return 0;for(var je=1;jexe.index||xe.balancexe.index||xe.balance2&&40===_.charCodeAt(_.length-2)&&41===_.charCodeAt(_.length-1)}function P(_){return"Keyword"===_.type||"AtKeyword"===_.type||"Function"===_.type||"Type"===_.type&&v(_.name)}function D(_,g,k){switch(_){case" ":for(var N=B,E=g.length-1;E>=0;E--)N=C(x=g[E],N,V);return N;case"|":N=V;var S=null;for(E=g.length-1;E>=0;E--){if(P(x=g[E])&&(null===S&&E>0&&P(g[E-1])&&(N=C({type:"Enum",map:S=Object.create(null)},B,N)),null!==S)){var O=(v(x.name)?x.name.slice(0,-1):x.name).toLowerCase();if(!(O in S)){S[O]=x;continue}}S=null,N=C(x,B,N)}return N;case"&&":if(g.length>5)return{type:"MatchOnce",terms:g,all:!0};for(N=V,E=g.length-1;E>=0;E--){var x=g[E];L=g.length>1?D(_,g.filter(function(z){return z!==x}),!1):B,N=C(x,L,N)}return N;case"||":if(g.length>5)return{type:"MatchOnce",terms:g,all:!1};for(N=k?B:V,E=g.length-1;E>=0;E--){var L;x=g[E],L=g.length>1?D(_,g.filter(function(J){return J!==x}),!0):B,N=C(x,L,N)}return N}}function A(_){if("function"==typeof _)return{type:"Generic",fn:_};switch(_.type){case"Group":var g=D(_.combinator,_.terms.map(A),!1);return _.disallowEmpty&&(g=C(g,Z,V)),g;case"Multiplier":return function(_){var g=B,k=A(_.term);if(0===_.max)k=C(k,Z,V),(g=C(k,null,V)).then=C(B,B,g),_.comma&&(g.then.else=C({type:"Comma",syntax:_},g,V));else for(var N=_.min||1;N<=_.max;N++)_.comma&&g!==B&&(g=C({type:"Comma",syntax:_},g,V)),g=C(k,C(B,B,g),V);if(0===_.min)g=C(B,B,g);else for(N=0;N<_.min-1;N++)_.comma&&g!==B&&(g=C({type:"Comma",syntax:_},g,V)),g=C(k,g,V);return g}(_);case"Type":case"Property":return{type:_.type,name:_.name,syntax:_};case"Keyword":return{type:_.type,name:_.name.toLowerCase(),syntax:_};case"AtKeyword":return{type:_.type,name:"@"+_.name.toLowerCase(),syntax:_};case"Function":return{type:_.type,name:_.name.toLowerCase()+"(",syntax:_};case"String":return 3===_.value.length?{type:"Token",value:_.value.charAt(1),syntax:_}:{type:_.type,value:_.value.substr(1,_.value.length-2).replace(/\\'/g,"'"),syntax:_};case"Token":return{type:_.type,value:_.value,syntax:_};case"Comma":return{type:_.type,syntax:_};default:throw new Error("Unknown node type:",_.type)}}ue.exports={MATCH:B,MISMATCH:V,DISALLOW_EMPTY:Z,buildMatchGraph:function(g,k){return"string"==typeof g&&(g=U(g)),{type:"MatchGraph",match:A(g),syntax:k||null,source:g}}}},77569:function(ue,q,f){var U=Object.prototype.hasOwnProperty,B=f(60997),V=B.MATCH,Z=B.MISMATCH,T=B.DISALLOW_EMPTY,R=f(97077).TYPE,M="Match",k=0;function N(z){for(var J=null,ie=null,te=z;null!==te;)ie=te.prev,te.prev=J,J=te,te=ie;return J}function E(z,J){if(z.length!==J.length)return!1;for(var ie=0;ie=65&&te<=90&&(te|=32),te!==J.charCodeAt(ie))return!1}return!0}function S(z){return null===z||z.type===R.Comma||z.type===R.Function||z.type===R.LeftParenthesis||z.type===R.LeftSquareBracket||z.type===R.LeftCurlyBracket||function(z){return z.type===R.Delim&&"?"!==z.value}(z)}function O(z){return null===z||z.type===R.RightParenthesis||z.type===R.RightSquareBracket||z.type===R.RightCurlyBracket||z.type===R.Delim}function L(z,J,ie){function te(){do{je++,Oe=jedt&&(dt=je)}function be(){Qe=2===Qe.type?Qe.prev:{type:3,syntax:it.syntax,token:Qe.token,prev:Qe},it=it.prev}var it=null,qe=null,_t=null,yt=null,Ft=0,xe=null,Oe=null,je=-1,dt=0,Qe={type:0,syntax:null,token:null,prev:null};for(te();null===xe&&++Ft<15e3;)switch(J.type){case"Match":if(null===qe){if(null!==Oe&&(je!==z.length-1||"\\0"!==Oe.value&&"\\9"!==Oe.value)){J=Z;break}xe=M;break}if((J=qe.nextState)===T){if(qe.matchStack===Qe){J=Z;break}J=V}for(;qe.syntaxStack!==it;)be();qe=qe.prev;break;case"Mismatch":if(null!==yt&&!1!==yt)(null===_t||je>_t.tokenIndex)&&(_t=yt,yt=!1);else if(null===_t){xe="Mismatch";break}J=_t.nextState,qe=_t.thenStack,it=_t.syntaxStack,Qe=_t.matchStack,Oe=(je=_t.tokenIndex)je){for(;je":"<'"+J.name+"'>"));if(!1!==yt&&null!==Oe&&"Type"===J.type&&("custom-ident"===J.name&&Oe.type===R.Ident||"length"===J.name&&"0"===Oe.value)){null===yt&&(yt=se(J,_t)),J=Z;break}it={syntax:J.syntax,opts:J.syntax.opts||null!==it&&it.opts||null,prev:it},Qe={type:2,syntax:J.syntax,token:Qe.token,prev:Qe},J=Ct.match;break;case"Keyword":var bt=J.name;if(null!==Oe){var en=Oe.value;if(-1!==en.indexOf("\\")&&(en=en.replace(/\\[09].*$/,"")),E(en,bt)){oe(),J=V;break}}J=Z;break;case"AtKeyword":case"Function":if(null!==Oe&&E(Oe.value,J.name)){oe(),J=V;break}J=Z;break;case"Token":if(null!==Oe&&Oe.value===J.value){oe(),J=V;break}J=Z;break;case"Comma":null!==Oe&&Oe.type===R.Comma?S(Qe.token)?J=Z:(oe(),J=O(Oe)?Z:V):J=S(Qe.token)||O(Oe)?V:Z;break;case"String":var Nt="";for(Qt=je;Qt=0}function Z(C){return Boolean(C)&&V(C.offset)&&V(C.line)&&V(C.column)}function T(C,v){return function(D,M){if(!D||D.constructor!==Object)return M(D,"Type of node should be an Object");for(var A in D){var _=!0;if(!1!==B.call(D,A)){if("type"===A)D.type!==C&&M(D,"Wrong node type `"+D.type+"`, expected `"+C+"`");else if("loc"===A){if(null===D.loc)continue;if(D.loc&&D.loc.constructor===Object)if("string"!=typeof D.loc.source)A+=".source";else if(Z(D.loc.start)){if(Z(D.loc.end))continue;A+=".end"}else A+=".start";_=!1}else if(v.hasOwnProperty(A)){var g=0;for(_=!1;!_&&g");else{if(!Array.isArray(N))throw new Error("Wrong value `"+N+"` in `"+C+"."+A+"` structure definition");_.push("List")}}M[A]=_.join(" | ")}return{docs:M,check:T(C,D)}}ue.exports={getStructureFromConfig:function(v){var P={};if(v.node)for(var D in v.node)if(B.call(v.node,D)){var M=v.node[D];if(!M.structure)throw new Error("Missed `structure` field in `"+D+"` node type definition");P[D]=R(D,M)}return P}}},24988:function(ue){function q(Z){function T(v){return null!==v&&("Type"===v.type||"Property"===v.type||"Keyword"===v.type)}var C=null;return null!==this.matched&&function R(v){if(Array.isArray(v.match)){for(var P=0;P",needPositions:!1,onParseError:M,onParseErrorThrow:!1,parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:D,createList:function(){return new Z},createSingleNodeList:function(le){return(new Z).appendData(le)},getFirstListNode:function(le){return le&&le.first()},getLastListNode:function(le){return le.last()},parseWithFallback:function(le,oe){var Ae=this.scanner.tokenIndex;try{return le.call(this)}catch(it){if(this.onParseErrorThrow)throw it;var be=oe.call(this,Ae);return this.onParseErrorThrow=!0,this.onParseError(it,be),this.onParseErrorThrow=!1,be}},lookupNonWSType:function(le){do{var oe=this.scanner.lookupType(le++);if(oe!==g)return oe}while(0!==oe);return 0},eat:function(le){if(this.scanner.tokenType!==le){var oe=this.scanner.tokenStart,Ae=_[le]+" is expected";switch(le){case N:this.scanner.tokenType===E||this.scanner.tokenType===x?(oe=this.scanner.tokenEnd-1,Ae="Identifier is expected but function found"):Ae="Identifier is expected";break;case S:this.scanner.isDelim(35)&&(this.scanner.next(),oe++,Ae="Name is expected");break;case O:this.scanner.tokenType===L&&(oe=this.scanner.tokenEnd,Ae="Percent sign is expected");break;default:this.scanner.source.charCodeAt(this.scanner.tokenStart)===le&&(oe+=1)}this.error(Ae,oe)}this.scanner.next()},consume:function(le){var oe=this.scanner.getTokenValue();return this.eat(le),oe},consumeFunctionName:function(){var le=this.scanner.source.substring(this.scanner.tokenStart,this.scanner.tokenEnd-1);return this.eat(E),le},getLocation:function(le,oe){return this.needPositions?this.locationMap.getLocationRange(le,oe,this.filename):null},getLocationFromList:function(le){if(this.needPositions){var oe=this.getFirstListNode(le),Ae=this.getLastListNode(le);return this.locationMap.getLocationRange(null!==oe?oe.loc.start.offset-this.locationMap.startOffset:this.scanner.tokenStart,null!==Ae?Ae.loc.end.offset-this.locationMap.startOffset:this.scanner.tokenStart,this.filename)}return null},error:function(le,oe){var Ae=this.locationMap.getLocation(void 0!==oe&&oe",ae.needPositions=Boolean(le.positions),ae.onParseError="function"==typeof le.onParseError?le.onParseError:M,ae.onParseErrorThrow=!1,ae.parseAtrulePrelude=!("parseAtrulePrelude"in le)||Boolean(le.parseAtrulePrelude),ae.parseRulePrelude=!("parseRulePrelude"in le)||Boolean(le.parseRulePrelude),ae.parseValue=!("parseValue"in le)||Boolean(le.parseValue),ae.parseCustomProperty="parseCustomProperty"in le&&Boolean(le.parseCustomProperty),!ae.context.hasOwnProperty(oe))throw new Error("Unknown context `"+oe+"`");return"function"==typeof Ae&&ae.scanner.forEachToken(function(it,qe,_t){if(it===k){var yt=ae.getLocation(qe,_t),Ft=P(ce,_t-2,_t,"*/")?ce.slice(qe+2,_t-2):ce.slice(qe+2,_t);Ae(Ft,yt)}}),be=ae.context[oe].call(ae,le),ae.scanner.eof||ae.error(),be}}},15785:function(ue,q,f){var U=f(97555).TYPE,B=U.WhiteSpace,V=U.Comment;ue.exports=function(T){var R=this.createList(),C=null,v={recognizer:T,space:null,ignoreWS:!1,ignoreWSAfter:!1};for(this.scanner.skipSC();!this.scanner.eof;){switch(this.scanner.tokenType){case V:this.scanner.next();continue;case B:v.ignoreWS?this.scanner.next():v.space=this.WhiteSpace();continue}if(void 0===(C=T.getNode.call(this,v)))break;null!==v.space&&(R.push(v.space),v.space=null),R.push(C),v.ignoreWSAfter?(v.ignoreWSAfter=!1,v.ignoreWS=!0):v.ignoreWS=!1}return R}},71713:function(ue){ue.exports={parse:{prelude:null,block:function(){return this.Block(!0)}}}},88208:function(ue,q,f){var U=f(97555).TYPE,B=U.String,V=U.Ident,Z=U.Url,T=U.Function,R=U.LeftParenthesis;ue.exports={parse:{prelude:function(){var v=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case B:v.push(this.String());break;case Z:case T:v.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===V||this.lookupNonWSType(0)===R)&&(v.push(this.WhiteSpace()),v.push(this.MediaQueryList())),v},block:null}}},55682:function(ue,q,f){ue.exports={"font-face":f(71713),import:f(88208),media:f(81706),page:f(93949),supports:f(46928)}},81706:function(ue){ue.exports={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}}},93949:function(ue){ue.exports={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}}},46928:function(ue,q,f){var U=f(97555).TYPE,B=U.WhiteSpace,V=U.Comment,Z=U.Ident,T=U.Function,R=U.Colon,C=U.LeftParenthesis;function v(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function P(){return this.scanner.skipSC(),this.scanner.tokenType===Z&&this.lookupNonWSType(1)===R?this.createSingleNodeList(this.Declaration()):D.call(this)}function D(){var _,M=this.createList(),A=null;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case B:A=this.WhiteSpace();continue;case V:this.scanner.next();continue;case T:_=this.Function(v,this.scope.AtrulePrelude);break;case Z:_=this.Identifier();break;case C:_=this.Parentheses(P,this.scope.AtrulePrelude);break;default:break e}null!==A&&(M.push(A),A=null),M.push(_)}return M}ue.exports={parse:{prelude:function(){var A=D.call(this);return null===this.getFirstListNode(A)&&this.error("Condition is expected"),A},block:function(){return this.Block(!1)}}}},53901:function(ue,q,f){var U=f(57695);ue.exports={generic:!0,types:U.types,atrules:U.atrules,properties:U.properties,node:f(5678)}},15249:function(ue,q,f){var U=f(6326).default,B=Object.prototype.hasOwnProperty,V={generic:!0,types:P,atrules:{prelude:D,descriptors:D},properties:P,parseContext:function(A,_){return Object.assign(A,_)},scope:function C(A,_){for(var g in _)B.call(_,g)&&(Z(A[g])?C(A[g],T(_[g])):A[g]=T(_[g]));return A},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function Z(A){return A&&A.constructor===Object}function T(A){return Z(A)?Object.assign({},A):A}function v(A,_){return"string"==typeof _&&/^\s*\|/.test(_)?"string"==typeof A?A+_:_.replace(/^\s*\|\s*/,""):_||null}function P(A,_){if("string"==typeof _)return v(A,_);var g=Object.assign({},A);for(var k in _)B.call(_,k)&&(g[k]=v(B.call(A,k)?A[k]:void 0,_[k]));return g}function D(A,_){var g=P(A,_);return!Z(g)||Object.keys(g).length?g:null}function M(A,_,g){for(var k in g)if(!1!==B.call(g,k))if(!0===g[k])k in _&&B.call(_,k)&&(A[k]=T(_[k]));else if(g[k])if("function"==typeof g[k]){var N=g[k];A[k]=N({},A[k]),A[k]=N(A[k]||{},_[k])}else if(Z(g[k])){var E={};for(var x in A[k])E[x]=M({},A[k][x],g[k]);for(var S in _[k])E[S]=M(E[S]||{},_[k][S],g[k]);A[k]=E}else if(Array.isArray(g[k])){for(var O={},L=g[k].reduce(function(ae,se){return ae[se]=!0,ae},{}),j=0,K=Object.entries(A[k]||{});j0&&this.scanner.skip(x),0===S&&(O=this.scanner.source.charCodeAt(this.scanner.tokenStart))!==P&&O!==D&&this.error("Number sign is expected"),k.call(this,0!==S),S===D?"-"+this.consume(C):this.consume(C)}ue.exports={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var S=this.scanner.tokenStart,O=null,L=null;if(this.scanner.tokenType===C)k.call(this,!1),L=this.consume(C);else if(this.scanner.tokenType===R&&U(this.scanner.source,this.scanner.tokenStart,D))switch(O="-1",N.call(this,1,M),this.scanner.getTokenLength()){case 2:this.scanner.next(),L=E.call(this);break;case 3:N.call(this,2,D),this.scanner.next(),this.scanner.skipSC(),k.call(this,A),L="-"+this.consume(C);break;default:N.call(this,2,D),g.call(this,3,A),this.scanner.next(),L=this.scanner.substrToCursor(S+2)}else if(this.scanner.tokenType===R||this.scanner.isDelim(P)&&this.scanner.lookupType(1)===R){var j=0;switch(O="1",this.scanner.isDelim(P)&&(j=1,this.scanner.next()),N.call(this,0,M),this.scanner.getTokenLength()){case 1:this.scanner.next(),L=E.call(this);break;case 2:N.call(this,1,D),this.scanner.next(),this.scanner.skipSC(),k.call(this,A),L="-"+this.consume(C);break;default:N.call(this,1,D),g.call(this,2,A),this.scanner.next(),L=this.scanner.substrToCursor(S+j+1)}}else if(this.scanner.tokenType===v){for(var K=this.scanner.source.charCodeAt(this.scanner.tokenStart),z=this.scanner.tokenStart+(j=K===P||K===D);z=2&&42===this.scanner.source.charCodeAt(C-2)&&47===this.scanner.source.charCodeAt(C-1)&&(C-=2),{type:"Comment",loc:this.getLocation(R,this.scanner.tokenStart),value:this.scanner.source.substring(R+2,C)}},generate:function(R){this.chunk("/*"),this.chunk(R.value),this.chunk("*/")}}},7217:function(ue,q,f){var U=f(50643).isCustomProperty,B=f(97555).TYPE,V=f(89604).mode,Z=B.Ident,T=B.Hash,R=B.Colon,C=B.Semicolon,v=B.Delim,P=B.WhiteSpace;function E(j){return this.Raw(j,V.exclamationMarkOrSemicolon,!0)}function x(j){return this.Raw(j,V.exclamationMarkOrSemicolon,!1)}function S(){var j=this.scanner.tokenIndex,K=this.Value();return"Raw"!==K.type&&!1===this.scanner.eof&&this.scanner.tokenType!==C&&!1===this.scanner.isDelim(33)&&!1===this.scanner.isBalanceEdge(j)&&this.error(),K}function O(){var j=this.scanner.tokenStart;if(this.scanner.tokenType===v)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.scanner.next();break;case 47:this.scanner.next(),this.scanner.isDelim(47)&&this.scanner.next()}return this.eat(this.scanner.tokenType===T?T:Z),this.scanner.substrToCursor(j)}function L(){this.eat(v),this.scanner.skipSC();var j=this.consume(Z);return"important"===j||j}ue.exports={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var ce,K=this.scanner.tokenStart,z=this.scanner.tokenIndex,J=O.call(this),ie=U(J),te=ie?this.parseCustomProperty:this.parseValue,ae=ie?x:E,se=!1;this.scanner.skipSC(),this.eat(R);var le=this.scanner.tokenIndex;if(ie||this.scanner.skipSC(),ce=te?this.parseWithFallback(S,ae):ae.call(this,this.scanner.tokenIndex),ie&&"Value"===ce.type&&ce.children.isEmpty())for(var oe=le-this.scanner.tokenIndex;oe<=0;oe++)if(this.scanner.lookupType(oe)===P){ce.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.scanner.isDelim(33)&&(se=L.call(this),this.scanner.skipSC()),!1===this.scanner.eof&&this.scanner.tokenType!==C&&!1===this.scanner.isBalanceEdge(z)&&this.error(),{type:"Declaration",loc:this.getLocation(K,this.scanner.tokenStart),important:se,property:J,value:ce}},generate:function(K){this.chunk(K.property),this.chunk(":"),this.node(K.value),K.important&&this.chunk(!0===K.important?"!important":"!"+K.important)},walkContext:"declaration"}},69013:function(ue,q,f){var U=f(97555).TYPE,B=f(89604).mode,V=U.WhiteSpace,Z=U.Comment,T=U.Semicolon;function R(C){return this.Raw(C,B.semicolonIncluded,!0)}ue.exports={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var v=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case V:case Z:case T:this.scanner.next();break;default:v.push(this.parseWithFallback(this.Declaration,R))}return{type:"DeclarationList",loc:this.getLocationFromList(v),children:v}},generate:function(v){this.children(v,function(P){"Declaration"===P.type&&this.chunk(";")})}}},68241:function(ue,q,f){var U=f(74586).consumeNumber,V=f(97555).TYPE.Dimension;ue.exports={name:"Dimension",structure:{value:String,unit:String},parse:function(){var T=this.scanner.tokenStart,R=U(this.scanner.source,T);return this.eat(V),{type:"Dimension",loc:this.getLocation(T,this.scanner.tokenStart),value:this.scanner.source.substring(T,R),unit:this.scanner.source.substring(R,this.scanner.tokenStart)}},generate:function(T){this.chunk(T.value),this.chunk(T.unit)}}},60298:function(ue,q,f){var B=f(97555).TYPE.RightParenthesis;ue.exports={name:"Function",structure:{name:String,children:[[]]},parse:function(Z,T){var P,R=this.scanner.tokenStart,C=this.consumeFunctionName(),v=C.toLowerCase();return P=T.hasOwnProperty(v)?T[v].call(this,T):Z.call(this,T),this.scanner.eof||this.eat(B),{type:"Function",loc:this.getLocation(R,this.scanner.tokenStart),name:C,children:P}},generate:function(Z){this.chunk(Z.name),this.chunk("("),this.children(Z),this.chunk(")")},walkContext:"function"}},50759:function(ue,q,f){var B=f(97555).TYPE.Hash;ue.exports={name:"Hash",structure:{value:String},parse:function(){var Z=this.scanner.tokenStart;return this.eat(B),{type:"Hash",loc:this.getLocation(Z,this.scanner.tokenStart),value:this.scanner.substrToCursor(Z+1)}},generate:function(Z){this.chunk("#"),this.chunk(Z.value)}}},37701:function(ue,q,f){var B=f(97555).TYPE.Hash;ue.exports={name:"IdSelector",structure:{name:String},parse:function(){var Z=this.scanner.tokenStart;return this.eat(B),{type:"IdSelector",loc:this.getLocation(Z,this.scanner.tokenStart),name:this.scanner.substrToCursor(Z+1)}},generate:function(Z){this.chunk("#"),this.chunk(Z.name)}}},71392:function(ue,q,f){var B=f(97555).TYPE.Ident;ue.exports={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(B)}},generate:function(Z){this.chunk(Z.name)}}},94179:function(ue,q,f){var U=f(97555).TYPE,B=U.Ident,V=U.Number,Z=U.Dimension,T=U.LeftParenthesis,R=U.RightParenthesis,C=U.Colon,v=U.Delim;ue.exports={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var M,D=this.scanner.tokenStart,A=null;if(this.eat(T),this.scanner.skipSC(),M=this.consume(B),this.scanner.skipSC(),this.scanner.tokenType!==R){switch(this.eat(C),this.scanner.skipSC(),this.scanner.tokenType){case V:A=this.lookupNonWSType(1)===v?this.Ratio():this.Number();break;case Z:A=this.Dimension();break;case B:A=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(R),{type:"MediaFeature",loc:this.getLocation(D,this.scanner.tokenStart),name:M,value:A}},generate:function(D){this.chunk("("),this.chunk(D.name),null!==D.value&&(this.chunk(":"),this.node(D.value)),this.chunk(")")}}},32107:function(ue,q,f){var U=f(97555).TYPE,B=U.WhiteSpace,V=U.Comment,Z=U.Ident,T=U.LeftParenthesis;ue.exports={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var C=this.createList(),v=null,P=null;e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case V:this.scanner.next();continue;case B:P=this.WhiteSpace();continue;case Z:v=this.Identifier();break;case T:v=this.MediaFeature();break;default:break e}null!==P&&(C.push(P),P=null),C.push(v)}return null===v&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(C),children:C}},generate:function(C){this.children(C)}}},54459:function(ue,q,f){var U=f(97555).TYPE.Comma;ue.exports={name:"MediaQueryList",structure:{children:[["MediaQuery"]]},parse:function(V){var Z=this.createList();for(this.scanner.skipSC();!this.scanner.eof&&(Z.push(this.MediaQuery(V)),this.scanner.tokenType===U);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(Z),children:Z}},generate:function(V){this.children(V,function(){this.chunk(",")})}}},61123:function(ue){ue.exports={name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(f){this.scanner.skipSC();var Z,U=this.scanner.tokenStart,B=U,V=null;return Z=this.scanner.lookupValue(0,"odd")||this.scanner.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),this.scanner.skipSC(),f&&this.scanner.lookupValue(0,"of")?(this.scanner.next(),V=this.SelectorList(),this.needPositions&&(B=this.getLastListNode(V.children).loc.end.offset)):this.needPositions&&(B=Z.loc.end.offset),{type:"Nth",loc:this.getLocation(U,B),nth:Z,selector:V}},generate:function(f){this.node(f.nth),null!==f.selector&&(this.chunk(" of "),this.node(f.selector))}}},63902:function(ue,q,f){var U=f(97555).TYPE.Number;ue.exports={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(U)}},generate:function(V){this.chunk(V.value)}}},7249:function(ue){ue.exports={name:"Operator",structure:{value:String},parse:function(){var f=this.scanner.tokenStart;return this.scanner.next(),{type:"Operator",loc:this.getLocation(f,this.scanner.tokenStart),value:this.scanner.substrToCursor(f)}},generate:function(f){this.chunk(f.value)}}},34875:function(ue,q,f){var U=f(97555).TYPE,B=U.LeftParenthesis,V=U.RightParenthesis;ue.exports={name:"Parentheses",structure:{children:[[]]},parse:function(T,R){var v,C=this.scanner.tokenStart;return this.eat(B),v=T.call(this,R),this.scanner.eof||this.eat(V),{type:"Parentheses",loc:this.getLocation(C,this.scanner.tokenStart),children:v}},generate:function(T){this.chunk("("),this.children(T),this.chunk(")")}}},62173:function(ue,q,f){var U=f(74586).consumeNumber,V=f(97555).TYPE.Percentage;ue.exports={name:"Percentage",structure:{value:String},parse:function(){var T=this.scanner.tokenStart,R=U(this.scanner.source,T);return this.eat(V),{type:"Percentage",loc:this.getLocation(T,this.scanner.tokenStart),value:this.scanner.source.substring(T,R)}},generate:function(T){this.chunk(T.value),this.chunk("%")}}},38887:function(ue,q,f){var U=f(97555).TYPE,B=U.Ident,V=U.Function,Z=U.Colon,T=U.RightParenthesis;ue.exports={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var P,D,C=this.scanner.tokenStart,v=null;return this.eat(Z),this.scanner.tokenType===V?(D=(P=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(D)?(this.scanner.skipSC(),v=this.pseudo[D].call(this),this.scanner.skipSC()):(v=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(T)):P=this.consume(B),{type:"PseudoClassSelector",loc:this.getLocation(C,this.scanner.tokenStart),name:P,children:v}},generate:function(C){this.chunk(":"),this.chunk(C.name),null!==C.children&&(this.chunk("("),this.children(C),this.chunk(")"))},walkContext:"function"}},78076:function(ue,q,f){var U=f(97555).TYPE,B=U.Ident,V=U.Function,Z=U.Colon,T=U.RightParenthesis;ue.exports={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var P,D,C=this.scanner.tokenStart,v=null;return this.eat(Z),this.eat(Z),this.scanner.tokenType===V?(D=(P=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(D)?(this.scanner.skipSC(),v=this.pseudo[D].call(this),this.scanner.skipSC()):(v=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(T)):P=this.consume(B),{type:"PseudoElementSelector",loc:this.getLocation(C,this.scanner.tokenStart),name:P,children:v}},generate:function(C){this.chunk("::"),this.chunk(C.name),null!==C.children&&(this.chunk("("),this.children(C),this.chunk(")"))},walkContext:"function"}},15482:function(ue,q,f){var U=f(97555).isDigit,B=f(97555).TYPE,V=B.Number,Z=B.Delim;function C(){this.scanner.skipWS();for(var v=this.consume(V),P=0;P0&&this.scanner.lookupType(-1)===V?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function P(){return 0}ue.exports={name:"Raw",structure:{value:String},parse:function(k,N,E){var S,x=this.scanner.getTokenStart(k);return this.scanner.skip(this.scanner.getRawLength(k,N||P)),S=E&&this.scanner.tokenStart>x?v.call(this):this.scanner.tokenStart,{type:"Raw",loc:this.getLocation(x,S),value:this.scanner.source.substring(x,S)}},generate:function(k){this.chunk(k.value)},mode:{default:P,leftCurlyBracket:function(g){return g===T?1:0},leftCurlyBracketOrSemicolon:function(g){return g===T||g===Z?1:0},exclamationMarkOrSemicolon:function(g,k,N){return g===R&&33===k.charCodeAt(N)||g===Z?1:0},semicolonIncluded:function(g){return g===Z?2:0}}}},56064:function(ue,q,f){var U=f(97555).TYPE,B=f(89604).mode,V=U.LeftCurlyBracket;function Z(R){return this.Raw(R,B.leftCurlyBracket,!0)}function T(){var R=this.SelectorList();return"Raw"!==R.type&&!1===this.scanner.eof&&this.scanner.tokenType!==V&&this.error(),R}ue.exports={name:"Rule",structure:{prelude:["SelectorList","Raw"],block:["Block"]},parse:function(){var P,D,C=this.scanner.tokenIndex,v=this.scanner.tokenStart;return P=this.parseRulePrelude?this.parseWithFallback(T,Z):Z.call(this,C),D=this.Block(!0),{type:"Rule",loc:this.getLocation(v,this.scanner.tokenStart),prelude:P,block:D}},generate:function(C){this.node(C.prelude),this.node(C.block)},walkContext:"rule"}},43042:function(ue){ue.exports={name:"Selector",structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]},parse:function(){var f=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(f)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(f),children:f}},generate:function(f){this.children(f)}}},38444:function(ue,q,f){var B=f(97555).TYPE.Comma;ue.exports={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var Z=this.createList();!this.scanner.eof&&(Z.push(this.Selector()),this.scanner.tokenType===B);)this.scanner.next();return{type:"SelectorList",loc:this.getLocationFromList(Z),children:Z}},generate:function(Z){this.children(Z,function(){this.chunk(",")})},walkContext:"selector"}},12565:function(ue,q,f){var U=f(97555).TYPE.String;ue.exports={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(U)}},generate:function(V){this.chunk(V.value)}}},91348:function(ue,q,f){var U=f(97555).TYPE,B=U.WhiteSpace,V=U.Comment,Z=U.AtKeyword,T=U.CDO,R=U.CDC;function v(P){return this.Raw(P,null,!1)}ue.exports={name:"StyleSheet",structure:{children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},parse:function(){for(var A,D=this.scanner.tokenStart,M=this.createList();!this.scanner.eof;){switch(this.scanner.tokenType){case B:this.scanner.next();continue;case V:if(33!==this.scanner.source.charCodeAt(this.scanner.tokenStart+2)){this.scanner.next();continue}A=this.Comment();break;case T:A=this.CDO();break;case R:A=this.CDC();break;case Z:A=this.parseWithFallback(this.Atrule,v);break;default:A=this.parseWithFallback(this.Rule,v)}M.push(A)}return{type:"StyleSheet",loc:this.getLocation(D,this.scanner.tokenStart),children:M}},generate:function(D){this.children(D)},walkContext:"stylesheet"}},16983:function(ue,q,f){var B=f(97555).TYPE.Ident;function T(){this.scanner.tokenType!==B&&!1===this.scanner.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.scanner.next()}ue.exports={name:"TypeSelector",structure:{name:String},parse:function(){var C=this.scanner.tokenStart;return this.scanner.isDelim(124)?(this.scanner.next(),T.call(this)):(T.call(this),this.scanner.isDelim(124)&&(this.scanner.next(),T.call(this))),{type:"TypeSelector",loc:this.getLocation(C,this.scanner.tokenStart),name:this.scanner.substrToCursor(C)}},generate:function(C){this.chunk(C.name)}}},95616:function(ue,q,f){var U=f(97555).isHexDigit,B=f(97555).cmpChar,V=f(97555).TYPE,Z=f(97555).NAME,T=V.Ident,R=V.Number,C=V.Dimension;function A(N,E){for(var x=this.scanner.tokenStart+N,S=0;x6&&this.error("Too many hex digits",x)}return this.scanner.next(),S}function _(N){for(var E=0;this.scanner.isDelim(63);)++E>N&&this.error("Too many question marks"),this.scanner.next()}function g(N){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==N&&this.error(Z[N]+" is expected")}function k(){var N=0;return this.scanner.isDelim(43)?(this.scanner.next(),this.scanner.tokenType===T?void((N=A.call(this,0,!0))>0&&_.call(this,6-N)):this.scanner.isDelim(63)?(this.scanner.next(),void _.call(this,5)):void this.error("Hex digit or question mark is expected")):this.scanner.tokenType===R?(g.call(this,43),N=A.call(this,1,!0),this.scanner.isDelim(63)?void _.call(this,6-N):this.scanner.tokenType===C||this.scanner.tokenType===R?(g.call(this,45),void A.call(this,1,!1)):void 0):this.scanner.tokenType===C?(g.call(this,43),void((N=A.call(this,1,!0))>0&&_.call(this,6-N))):void this.error()}ue.exports={name:"UnicodeRange",structure:{value:String},parse:function(){var E=this.scanner.tokenStart;return B(this.scanner.source,E,117)||this.error("U is expected"),B(this.scanner.source,E+1,43)||this.error("Plus sign is expected"),this.scanner.next(),k.call(this),{type:"UnicodeRange",loc:this.getLocation(E,this.scanner.tokenStart),value:this.scanner.substrToCursor(E)}},generate:function(E){this.chunk(E.value)}}},72796:function(ue,q,f){var U=f(97555).isWhiteSpace,B=f(97555).cmpStr,V=f(97555).TYPE,Z=V.Function,T=V.Url,R=V.RightParenthesis;ue.exports={name:"Url",structure:{value:["String","Raw"]},parse:function(){var P,v=this.scanner.tokenStart;switch(this.scanner.tokenType){case T:for(var D=v+4,M=this.scanner.tokenEnd-1;D=48&&x<=57}function B(x){return x>=65&&x<=90}function V(x){return x>=97&&x<=122}function Z(x){return B(x)||V(x)}function T(x){return x>=128}function R(x){return Z(x)||T(x)||95===x}function v(x){return x>=0&&x<=8||11===x||x>=14&&x<=31||127===x}function P(x){return 10===x||13===x||12===x}function D(x){return P(x)||32===x||9===x}function M(x,S){return!(92!==x||P(S)||0===S)}var k=new Array(128);E.Eof=128,E.WhiteSpace=130,E.Digit=131,E.NameStart=132,E.NonPrintable=133;for(var N=0;N=65&&x<=70||x>=97&&x<=102},isUppercaseLetter:B,isLowercaseLetter:V,isLetter:Z,isNonAscii:T,isNameStart:R,isName:function(x){return R(x)||f(x)||45===x},isNonPrintable:v,isNewline:P,isWhiteSpace:D,isValidEscape:M,isIdentifierStart:function(x,S,O){return 45===x?R(S)||45===S||M(S,O):!!R(x)||92===x&&M(x,S)},isNumberStart:function(x,S,O){return 43===x||45===x?f(S)?2:46===S&&f(O)?3:0:46===x?f(S)?2:0:f(x)?1:0},isBOM:function(x){return 65279===x||65534===x?1:0},charCodeCategory:E}},97077:function(ue){var q={EOF:0,Ident:1,Function:2,AtKeyword:3,Hash:4,String:5,BadString:6,Url:7,BadUrl:8,Delim:9,Number:10,Percentage:11,Dimension:12,WhiteSpace:13,CDO:14,CDC:15,Colon:16,Semicolon:17,Comma:18,LeftSquareBracket:19,RightSquareBracket:20,LeftParenthesis:21,RightParenthesis:22,LeftCurlyBracket:23,RightCurlyBracket:24,Comment:25},f=Object.keys(q).reduce(function(U,B){return U[q[B]]=B,U},{});ue.exports={TYPE:q,NAME:f}},97555:function(ue,q,f){var U=f(13146),B=f(62146),V=f(97077),Z=V.TYPE,T=f(88312),R=T.isNewline,C=T.isName,v=T.isValidEscape,P=T.isNumberStart,D=T.isIdentifierStart,M=T.charCodeCategory,A=T.isBOM,_=f(74586),g=_.cmpStr,k=_.getNewlineLength,N=_.findWhiteSpaceEnd,E=_.consumeEscaped,x=_.consumeName,S=_.consumeNumber,O=_.consumeBadUrlRemnants,L=16777215,j=24;function K(z,J){function ie(je){return je=z.length?void(qe>j,Ae[be]=Ft,Ae[Ft++]=be;FtS.length)return!1;for(var K=O;K=0&&R(S.charCodeAt(O));O--);return O+1},findWhiteSpaceEnd:function(S,O){for(;O=2&&45===C.charCodeAt(v)&&45===C.charCodeAt(v+1)}function Z(C,v){if(C.length-(v=v||0)>=3&&45===C.charCodeAt(v)&&45!==C.charCodeAt(v+1)){var P=C.indexOf("-",v+2);if(-1!==P)return C.substring(v,P+1)}return""}ue.exports={keyword:function(C){if(q.call(f,C))return f[C];var v=C.toLowerCase();if(q.call(f,v))return f[C]=f[v];var P=V(v,0),D=P?"":Z(v,0);return f[C]=Object.freeze({basename:v.substr(D.length),name:v,vendor:D,prefix:D,custom:P})},property:function(C){if(q.call(U,C))return U[C];var v=C,P=C[0];"/"===P?P="/"===C[1]?"//":"/":"_"!==P&&"*"!==P&&"$"!==P&&"#"!==P&&"+"!==P&&"&"!==P&&(P="");var D=V(v,P.length);if(!D&&(v=v.toLowerCase(),q.call(U,v)))return U[C]=U[v];var M=D?"":Z(v,P.length),A=v.substr(0,P.length+M.length);return U[C]=Object.freeze({basename:v.substr(A.length),name:v.substr(P.length),hack:P,vendor:M,prefix:A,custom:D})},isCustomProperty:V,vendorPrefix:Z}},24523:function(ue){var q=Object.prototype.hasOwnProperty,f=function(){};function U(C){return"function"==typeof C?C:f}function B(C,v){return function(P,D,M){P.type===v&&C.call(this,P,D,M)}}function V(C,v){var P=v.structure,D=[];for(var M in P)if(!1!==q.call(P,M)){var A=P[M],_={name:M,type:!1,nullable:!1};Array.isArray(P[M])||(A=[P[M]]);for(var g=0;g":".","?":"/","|":"\\"},v={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},D=1;D<20;++D)T[111+D]="f"+D;for(D=0;D<=9;++D)T[D+96]=D.toString();K.prototype.bind=function(z,J,ie){return this._bindMultiple.call(this,z=z instanceof Array?z:[z],J,ie),this},K.prototype.unbind=function(z,J){return this.bind.call(this,z,function(){},J)},K.prototype.trigger=function(z,J){return this._directMap[z+":"+J]&&this._directMap[z+":"+J]({},z),this},K.prototype.reset=function(){var z=this;return z._callbacks={},z._directMap={},z},K.prototype.stopCallback=function(z,J){if((" "+J.className+" ").indexOf(" mousetrap ")>-1||j(J,this.target))return!1;if("composedPath"in z&&"function"==typeof z.composedPath){var te=z.composedPath()[0];te!==z.target&&(J=te)}return"INPUT"==J.tagName||"SELECT"==J.tagName||"TEXTAREA"==J.tagName||J.isContentEditable},K.prototype.handleKey=function(){var z=this;return z._handleKey.apply(z,arguments)},K.addKeycodes=function(z){for(var J in z)z.hasOwnProperty(J)&&(T[J]=z[J]);P=null},K.init=function(){var z=K(V);for(var J in z)"_"!==J.charAt(0)&&(K[J]=function(ie){return function(){return z[ie].apply(z,arguments)}}(J))},K.init(),B.Mousetrap=K,ue.exports&&(ue.exports=K),void 0!==(U=function(){return K}.call(q,f,q,ue))&&(ue.exports=U)}function M(z,J,ie){z.addEventListener?z.addEventListener(J,ie,!1):z.attachEvent("on"+J,ie)}function A(z){if("keypress"==z.type){var J=String.fromCharCode(z.which);return z.shiftKey||(J=J.toLowerCase()),J}return T[z.which]?T[z.which]:R[z.which]?R[z.which]:String.fromCharCode(z.which).toLowerCase()}function _(z,J){return z.sort().join(",")===J.sort().join(",")}function E(z){return"shift"==z||"ctrl"==z||"alt"==z||"meta"==z}function S(z,J,ie){return ie||(ie=function(){if(!P)for(var z in P={},T)z>95&&z<112||T.hasOwnProperty(z)&&(P[T[z]]=z);return P}()[z]?"keydown":"keypress"),"keypress"==ie&&J.length&&(ie="keydown"),ie}function L(z,J){var ie,te,ae,se=[];for(ie=function(z){return"+"===z?["+"]:(z=z.replace(/\+{2}/g,"+plus")).split("+")}(z),ae=0;ae1?function(yt,Ft,xe,Oe){function je(vt){return function(){ce=vt,++ie[yt],clearTimeout(te),te=setTimeout(le,1e3)}}function dt(vt){Ae(xe,vt,yt),"keyup"!==Oe&&(ae=A(vt)),setTimeout(le,10)}ie[yt]=0;for(var Qe=0;Qe=0;--qe){var _t=this.tryEntries[qe],yt=_t.completion;if("root"===_t.tryLoc)return it("end");if(_t.tryLoc<=this.prev){var Ft=B.call(_t,"catchLoc"),xe=B.call(_t,"finallyLoc");if(Ft&&xe){if(this.prev<_t.catchLoc)return it(_t.catchLoc,!0);if(this.prev<_t.finallyLoc)return it(_t.finallyLoc)}else if(Ft){if(this.prev<_t.catchLoc)return it(_t.catchLoc,!0)}else{if(!xe)throw new Error("try statement without catch or finally");if(this.prev<_t.finallyLoc)return it(_t.finallyLoc)}}}},abrupt:function(Ae,be){for(var it=this.tryEntries.length-1;it>=0;--it){var qe=this.tryEntries[it];if(qe.tryLoc<=this.prev&&B.call(qe,"finallyLoc")&&this.prev=0;--be){var it=this.tryEntries[be];if(it.finallyLoc===Ae)return this.complete(it.completion,it.afterLoc),ae(it),k}},catch:function(Ae){for(var be=this.tryEntries.length-1;be>=0;--be){var it=this.tryEntries[be];if(it.tryLoc===Ae){var qe=it.completion;if("throw"===qe.type){var _t=qe.arg;ae(it)}return _t}}throw new Error("illegal catch attempt")},delegateYield:function(Ae,be,it){return this.delegate={iterator:ce(Ae),resultName:be,nextLoc:it},"next"===this.method&&(this.arg=V),k}},f}(ue.exports);try{regeneratorRuntime=q}catch(f){Function("r","regeneratorRuntime = r")(q)}},56938:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);q.Observable=U.Observable,q.Subject=U.Subject;var B=f(37294);q.AnonymousSubject=B.AnonymousSubject;var V=f(37294);q.config=V.config,f(26598),f(87663),f(95351),f(66981),f(31881),f(36800),f(52413),f(86376),f(41029),f(30918),f(79817),f(29023),f(48668),f(61975),f(92442),f(42697),f(63990),f(86230),f(61201),f(32171),f(40439),f(69079),f(9222),f(52357),f(36294),f(12782),f(94618),f(93231),f(96547),f(62374),f(35595),f(57540),f(97010),f(56518),f(59982),f(70198),f(3943),f(95297),f(53842),f(46085),f(46753),f(12452),f(51341),f(41575),f(42657),f(17109),f(89716),f(71255),f(75197),f(70992),f(3106),f(54506),f(16161),f(11405),f(37132),f(45396),f(41154),f(96986),f(67259),f(89015),f(57301),f(4993),f(77490),f(4533),f(42215),f(95564),f(61431),f(68663),f(63566),f(62729),f(48483),f(32979),f(78104),f(64259),f(30336),f(46315),f(60771),f(92700),f(43545),f(89242),f(70177),f(43800),f(33434),f(37179),f(97810),f(27430),f(44633),f(37953),f(58435),f(14234),f(98741),f(43263),f(57180),f(87700),f(34860),f(67751),f(63733),f(38596),f(20038),f(58186),f(77538),f(33866),f(1676),f(3018),f(58003),f(77394),f(92947),f(27971),f(33934),f(43126),f(6320),f(96813),f(20425),f(70140),f(32035),f(49421),f(9693),f(87276),f(63934),f(17360),f(37222),f(55214),f(22854),f(65259),f(84715),f(27798),f(98441),f(56238),f(42145);var Z=f(94117);q.Subscription=Z.Subscription,q.ReplaySubject=Z.ReplaySubject,q.BehaviorSubject=Z.BehaviorSubject,q.Notification=Z.Notification,q.EmptyError=Z.EmptyError,q.ArgumentOutOfRangeError=Z.ArgumentOutOfRangeError,q.ObjectUnsubscribedError=Z.ObjectUnsubscribedError,q.UnsubscriptionError=Z.UnsubscriptionError,q.pipe=Z.pipe;var T=f(53520);q.TestScheduler=T.TestScheduler;var R=f(94117);q.Subscriber=R.Subscriber,q.AsyncSubject=R.AsyncSubject,q.ConnectableObservable=R.ConnectableObservable,q.TimeoutError=R.TimeoutError,q.VirtualTimeScheduler=R.VirtualTimeScheduler;var C=f(55905);q.AjaxResponse=C.AjaxResponse,q.AjaxError=C.AjaxError,q.AjaxTimeoutError=C.AjaxTimeoutError;var v=f(94117),P=f(37294),D=f(37294);q.TimeInterval=D.TimeInterval,q.Timestamp=D.Timestamp;var M=f(73033);q.operators=M,q.Scheduler={asap:v.asapScheduler,queue:v.queueScheduler,animationFrame:v.animationFrameScheduler,async:v.asyncScheduler},q.Symbol={rxSubscriber:P.rxSubscriber,observable:P.observable,iterator:P.iterator}},26598:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.bindCallback=U.bindCallback},87663:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.bindNodeCallback=U.bindNodeCallback},95351:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.combineLatest=U.combineLatest},66981:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.concat=U.concat},31881:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.defer=U.defer},12782:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(55905);U.Observable.ajax=B.ajax},94618:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(4194);U.Observable.webSocket=B.webSocket},36800:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.empty=U.empty},52413:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.forkJoin=U.forkJoin},86376:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.from=U.from},41029:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.fromEvent=U.fromEvent},30918:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.fromEventPattern=U.fromEventPattern},79817:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.fromPromise=U.from},29023:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.generate=U.generate},48668:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.if=U.iif},61975:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.interval=U.interval},92442:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.merge=U.merge},63990:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);function B(){return U.NEVER}q.staticNever=B,U.Observable.never=B},86230:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.of=U.of},61201:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.onErrorResumeNext=U.onErrorResumeNext},32171:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.pairs=U.pairs},42697:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.race=U.race},40439:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.range=U.range},9222:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.throw=U.throwError,U.Observable.throwError=U.throwError},52357:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.timer=U.timer},69079:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.using=U.using},36294:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.zip=U.zip},77490:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(20325);U.Observable.prototype.audit=B.audit},4533:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(55702);U.Observable.prototype.auditTime=B.auditTime},93231:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(19931);U.Observable.prototype.buffer=B.buffer},96547:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(38173);U.Observable.prototype.bufferCount=B.bufferCount},62374:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(93690);U.Observable.prototype.bufferTime=B.bufferTime},35595:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(79681);U.Observable.prototype.bufferToggle=B.bufferToggle},57540:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(75311);U.Observable.prototype.bufferWhen=B.bufferWhen},97010:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(26306);U.Observable.prototype.catch=B._catch,U.Observable.prototype._catch=B._catch},56518:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(15869);U.Observable.prototype.combineAll=B.combineAll},59982:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(23265);U.Observable.prototype.combineLatest=B.combineLatest},70198:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(31179);U.Observable.prototype.concat=B.concat},3943:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(16148);U.Observable.prototype.concatAll=B.concatAll},95297:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(28552);U.Observable.prototype.concatMap=B.concatMap},53842:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(91798);U.Observable.prototype.concatMapTo=B.concatMapTo},46085:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(93653);U.Observable.prototype.count=B.count},12452:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(36477);U.Observable.prototype.debounce=B.debounce},51341:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(61529);U.Observable.prototype.debounceTime=B.debounceTime},41575:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(64502);U.Observable.prototype.defaultIfEmpty=B.defaultIfEmpty},42657:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(33674);U.Observable.prototype.delay=B.delay},17109:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(49477);U.Observable.prototype.delayWhen=B.delayWhen},46753:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(21941);U.Observable.prototype.dematerialize=B.dematerialize},89716:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(18053);U.Observable.prototype.distinct=B.distinct},71255:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(13598);U.Observable.prototype.distinctUntilChanged=B.distinctUntilChanged},75197:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(94936);U.Observable.prototype.distinctUntilKeyChanged=B.distinctUntilKeyChanged},70992:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(21790);U.Observable.prototype.do=B._do,U.Observable.prototype._do=B._do},11405:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(2538);U.Observable.prototype.elementAt=B.elementAt},61431:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(58136);U.Observable.prototype.every=B.every},3106:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(26734);U.Observable.prototype.exhaust=B.exhaust},54506:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(2084);U.Observable.prototype.exhaustMap=B.exhaustMap},16161:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(2945);U.Observable.prototype.expand=B.expand},37132:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(3704);U.Observable.prototype.filter=B.filter},45396:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(58870);U.Observable.prototype.finally=B._finally,U.Observable.prototype._finally=B._finally},41154:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(16201);U.Observable.prototype.find=B.find},96986:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(95148);U.Observable.prototype.findIndex=B.findIndex},67259:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(96050);U.Observable.prototype.first=B.first},89015:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(16309);U.Observable.prototype.groupBy=B.groupBy},57301:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(3640);U.Observable.prototype.ignoreElements=B.ignoreElements},4993:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(87486);U.Observable.prototype.isEmpty=B.isEmpty},42215:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(30274);U.Observable.prototype.last=B.last},95564:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(11668);U.Observable.prototype.let=B.letProto,U.Observable.prototype.letBind=B.letProto},68663:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(23307);U.Observable.prototype.map=B.map},63566:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(3498);U.Observable.prototype.mapTo=B.mapTo},62729:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(70845);U.Observable.prototype.materialize=B.materialize},48483:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(96415);U.Observable.prototype.max=B.max},32979:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(33836);U.Observable.prototype.merge=B.merge},78104:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(58610);U.Observable.prototype.mergeAll=B.mergeAll},64259:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(36098);U.Observable.prototype.mergeMap=B.mergeMap,U.Observable.prototype.flatMap=B.mergeMap},30336:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(53033);U.Observable.prototype.flatMapTo=B.mergeMapTo,U.Observable.prototype.mergeMapTo=B.mergeMapTo},46315:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(11444);U.Observable.prototype.mergeScan=B.mergeScan},60771:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(6626);U.Observable.prototype.min=B.min},92700:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(4291);U.Observable.prototype.multicast=B.multicast},43545:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(37675);U.Observable.prototype.observeOn=B.observeOn},89242:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(92878);U.Observable.prototype.onErrorResumeNext=B.onErrorResumeNext},70177:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(94401);U.Observable.prototype.pairwise=B.pairwise},43800:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(93110);U.Observable.prototype.partition=B.partition},33434:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(53937);U.Observable.prototype.pluck=B.pluck},37179:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(81e3);U.Observable.prototype.publish=B.publish},97810:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(78665);U.Observable.prototype.publishBehavior=B.publishBehavior},44633:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(34696);U.Observable.prototype.publishLast=B.publishLast},27430:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(35543);U.Observable.prototype.publishReplay=B.publishReplay},37953:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(33963);U.Observable.prototype.race=B.race},58435:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(99216);U.Observable.prototype.reduce=B.reduce},14234:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(19613);U.Observable.prototype.repeat=B.repeat},98741:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(72798);U.Observable.prototype.repeatWhen=B.repeatWhen},43263:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(59813);U.Observable.prototype.retry=B.retry},57180:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(5419);U.Observable.prototype.retryWhen=B.retryWhen},87700:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(58693);U.Observable.prototype.sample=B.sample},34860:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(86803);U.Observable.prototype.sampleTime=B.sampleTime},67751:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(65036);U.Observable.prototype.scan=B.scan},63733:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(12201);U.Observable.prototype.sequenceEqual=B.sequenceEqual},38596:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(86892);U.Observable.prototype.share=B.share},20038:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(9050);U.Observable.prototype.shareReplay=B.shareReplay},58186:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(13533);U.Observable.prototype.single=B.single},77538:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(65846);U.Observable.prototype.skip=B.skip},33866:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(90955);U.Observable.prototype.skipLast=B.skipLast},1676:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(75479);U.Observable.prototype.skipUntil=B.skipUntil},3018:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(76841);U.Observable.prototype.skipWhile=B.skipWhile},58003:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(66560);U.Observable.prototype.startWith=B.startWith},77394:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(92265);U.Observable.prototype.subscribeOn=B.subscribeOn},92947:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(41428);U.Observable.prototype.switch=B._switch,U.Observable.prototype._switch=B._switch},27971:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(5193);U.Observable.prototype.switchMap=B.switchMap},33934:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(34022);U.Observable.prototype.switchMapTo=B.switchMapTo},43126:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(204);U.Observable.prototype.take=B.take},6320:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(62299);U.Observable.prototype.takeLast=B.takeLast},96813:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(93542);U.Observable.prototype.takeUntil=B.takeUntil},20425:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(79214);U.Observable.prototype.takeWhile=B.takeWhile},70140:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(35922);U.Observable.prototype.throttle=B.throttle},32035:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(41941);U.Observable.prototype.throttleTime=B.throttleTime},49421:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(99194);U.Observable.prototype.timeInterval=B.timeInterval},9693:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(53358);U.Observable.prototype.timeout=B.timeout},87276:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(41237);U.Observable.prototype.timeoutWith=B.timeoutWith},63934:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(84485);U.Observable.prototype.timestamp=B.timestamp},17360:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(23552);U.Observable.prototype.toArray=B.toArray},37222:function(){},55214:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(13977);U.Observable.prototype.window=B.window},22854:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(54052);U.Observable.prototype.windowCount=B.windowCount},65259:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(17884);U.Observable.prototype.windowTime=B.windowTime},84715:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(18835);U.Observable.prototype.windowToggle=B.windowToggle},27798:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(84220);U.Observable.prototype.windowWhen=B.windowWhen},98441:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(41603);U.Observable.prototype.withLatestFrom=B.withLatestFrom},56238:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(83313);U.Observable.prototype.zip=B.zipProto},42145:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(80396);U.Observable.prototype.zipAll=B.zipAll},20325:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.audit=function(V){return U.audit(V)(this)}},55702:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.auditTime=function(Z,T){return void 0===T&&(T=U.asyncScheduler),B.auditTime(Z,T)(this)}},19931:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.buffer=function(V){return U.buffer(V)(this)}},38173:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.bufferCount=function(V,Z){return void 0===Z&&(Z=null),U.bufferCount(V,Z)(this)}},93690:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(37294),V=f(73033);q.bufferTime=function(T){var R=arguments.length,C=U.asyncScheduler;B.isScheduler(arguments[arguments.length-1])&&(C=arguments[arguments.length-1],R--);var v=null;R>=2&&(v=arguments[1]);var P=Number.POSITIVE_INFINITY;return R>=3&&(P=arguments[2]),V.bufferTime(T,v,P,C)(this)}},79681:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.bufferToggle=function(V,Z){return U.bufferToggle(V,Z)(this)}},75311:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.bufferWhen=function(V){return U.bufferWhen(V)(this)}},26306:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q._catch=function(V){return U.catchError(V)(this)}},15869:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.combineAll=function(V){return U.combineAll(V)(this)}},23265:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(37294);q.combineLatest=function(){for(var Z=[],T=0;T=2?U.reduce(V,Z)(this):U.reduce(V)(this)}},19613:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.repeat=function(V){return void 0===V&&(V=-1),U.repeat(V)(this)}},72798:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.repeatWhen=function(V){return U.repeatWhen(V)(this)}},59813:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.retry=function(V){return void 0===V&&(V=-1),U.retry(V)(this)}},5419:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.retryWhen=function(V){return U.retryWhen(V)(this)}},58693:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.sample=function(V){return U.sample(V)(this)}},86803:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.sampleTime=function(Z,T){return void 0===T&&(T=U.asyncScheduler),B.sampleTime(Z,T)(this)}},65036:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.scan=function(V,Z){return arguments.length>=2?U.scan(V,Z)(this):U.scan(V)(this)}},12201:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.sequenceEqual=function(V,Z){return U.sequenceEqual(V,Z)(this)}},86892:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.share=function(){return U.share()(this)}},9050:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.shareReplay=function(V,Z,T){return V&&"object"==typeof V?U.shareReplay(V)(this):U.shareReplay(V,Z,T)(this)}},13533:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.single=function(V){return U.single(V)(this)}},65846:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.skip=function(V){return U.skip(V)(this)}},90955:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.skipLast=function(V){return U.skipLast(V)(this)}},75479:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.skipUntil=function(V){return U.skipUntil(V)(this)}},76841:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.skipWhile=function(V){return U.skipWhile(V)(this)}},66560:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.startWith=function(){for(var V=[],Z=0;Z1&&void 0!==arguments[1]?arguments[1]:dt.E,nn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:dt.E;return(0,je.P)(function(){return Kt()?Yt:nn})}var bt=f(57434),en=f(55371),Nt=new U.y(S.Z);function rn(){return Nt}var kn=f(43161);function Nn(){for(var Kt=arguments.length,Yt=new Array(Kt),nn=0;nn0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,L=arguments.length>2?arguments[2]:void 0;return(0,U.Z)(this,E),(x=N.call(this)).scheduler=L,x._events=[],x._infiniteTimeWindow=!1,x._bufferSize=S<1?1:S,x._windowTime=O<1?1:O,O===Number.POSITIVE_INFINITY?(x._infiniteTimeWindow=!0,x.next=x.nextInfiniteTimeWindow):x.next=x.nextTimeWindow,x}return(0,B.Z)(E,[{key:"nextInfiniteTimeWindow",value:function(S){if(!this.isStopped){var O=this._events;O.push(S),O.length>this._bufferSize&&O.shift()}(0,V.Z)((0,Z.Z)(E.prototype),"next",this).call(this,S)}},{key:"nextTimeWindow",value:function(S){this.isStopped||(this._events.push(new g(this._getNow(),S)),this._trimBufferThenGetEvents()),(0,V.Z)((0,Z.Z)(E.prototype),"next",this).call(this,S)}},{key:"_subscribe",value:function(S){var z,O=this._infiniteTimeWindow,L=O?this._events:this._trimBufferThenGetEvents(),j=this.scheduler,K=L.length;if(this.closed)throw new M.N;if(this.isStopped||this.hasError?z=P.w.EMPTY:(this.observers.push(S),z=new A.W(this,S)),j&&S.add(S=new D.ht(S,j)),O)for(var J=0;JO&&(z=Math.max(z,K-O)),z>0&&j.splice(0,z),j}}]),E}(C.xQ),g=function k(N,E){(0,U.Z)(this,k),this.time=N,this.value=E}},67801:function(ue,q,f){"use strict";f.d(q,{b:function(){return V}});var U=f(18967),B=f(14105),V=function(){var Z=function(){function T(R){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T.now;(0,U.Z)(this,T),this.SchedulerAction=R,this.now=C}return(0,B.Z)(T,[{key:"schedule",value:function(C){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,P=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,C).schedule(P,v)}}]),T}();return Z.now=function(){return Date.now()},Z}()},68707:function(ue,q,f){"use strict";f.d(q,{Yc:function(){return _},xQ:function(){return g},ug:function(){return k}});var U=f(14105),B=f(20901),V=f(89200),Z=f(18967),T=f(10509),R=f(97154),C=f(89797),v=f(39874),P=f(5051),D=f(1696),M=f(18480),A=f(79542),_=function(N){(0,T.Z)(x,N);var E=(0,R.Z)(x);function x(S){var O;return(0,Z.Z)(this,x),(O=E.call(this,S)).destination=S,O}return x}(v.L),g=function(){var N=function(E){(0,T.Z)(S,E);var x=(0,R.Z)(S);function S(){var O;return(0,Z.Z)(this,S),(O=x.call(this)).observers=[],O.closed=!1,O.isStopped=!1,O.hasError=!1,O.thrownError=null,O}return(0,U.Z)(S,[{key:A.b,value:function(){return new _(this)}},{key:"lift",value:function(L){var j=new k(this,this);return j.operator=L,j}},{key:"next",value:function(L){if(this.closed)throw new D.N;if(!this.isStopped)for(var j=this.observers,K=j.length,z=j.slice(),J=0;J1&&void 0!==arguments[1]?arguments[1]:0,k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.e;return(0,U.Z)(this,M),(_=D.call(this)).source=A,_.delayTime=g,_.scheduler=k,(!(0,C.k)(g)||g<0)&&(_.delayTime=0),(!k||"function"!=typeof k.schedule)&&(_.scheduler=R.e),_}return(0,B.Z)(M,[{key:"_subscribe",value:function(_){return this.scheduler.schedule(M.dispatch,this.delayTime,{source:this.source,subscriber:_})}}],[{key:"create",value:function(_){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.e;return new M(_,g,k)}},{key:"dispatch",value:function(_){return this.add(_.source.subscribe(_.subscriber))}}]),M}(T.y)},81370:function(ue,q,f){"use strict";f.d(q,{aj:function(){return M},Ms:function(){return A}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(91299),R=f(78985),C=f(7283),v=f(61454),P=f(80503),D={};function M(){for(var g=arguments.length,k=new Array(g),N=0;N1&&void 0!==arguments[1]?arguments[1]:null;return new O({method:"GET",url:se,headers:ce})}function g(se,ce,le){return new O({method:"POST",url:se,body:ce,headers:le})}function k(se,ce){return new O({method:"DELETE",url:se,headers:ce})}function N(se,ce,le){return new O({method:"PUT",url:se,body:ce,headers:le})}function E(se,ce,le){return new O({method:"PATCH",url:se,body:ce,headers:le})}var x=(0,f(85639).U)(function(se,ce){return se.response});function S(se,ce){return x(new O({method:"GET",url:se,responseType:"json",headers:ce}))}var O=function(){var se=function(ce){(0,T.Z)(oe,ce);var le=(0,R.Z)(oe);function oe(Ae){var be;(0,V.Z)(this,oe),be=le.call(this);var it={async:!0,createXHR:function(){return this.crossDomain?function(){if(C.J.XMLHttpRequest)return new C.J.XMLHttpRequest;if(C.J.XDomainRequest)return new C.J.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(C.J.XMLHttpRequest)return new C.J.XMLHttpRequest;var se;try{for(var ce=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],le=0;le<3;le++)try{if(new C.J.ActiveXObject(se=ce[le]))break}catch(oe){}return new C.J.ActiveXObject(se)}catch(oe){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof Ae)it.url=Ae;else for(var qe in Ae)Ae.hasOwnProperty(qe)&&(it[qe]=Ae[qe]);return be.request=it,be}return(0,Z.Z)(oe,[{key:"_subscribe",value:function(be){return new L(be,this.request)}}]),oe}(v.y);return se.create=function(){var ce=function(oe){return new se(oe)};return ce.get=_,ce.post=g,ce.delete=k,ce.put=N,ce.patch=E,ce.getJSON=S,ce}(),se}(),L=function(se){(0,T.Z)(le,se);var ce=(0,R.Z)(le);function le(oe,Ae){var be;(0,V.Z)(this,le),(be=ce.call(this,oe)).request=Ae,be.done=!1;var it=Ae.headers=Ae.headers||{};return!Ae.crossDomain&&!be.getHeader(it,"X-Requested-With")&&(it["X-Requested-With"]="XMLHttpRequest"),!be.getHeader(it,"Content-Type")&&!(C.J.FormData&&Ae.body instanceof C.J.FormData)&&void 0!==Ae.body&&(it["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),Ae.body=be.serializeBody(Ae.body,be.getHeader(Ae.headers,"Content-Type")),be.send(),be}return(0,Z.Z)(le,[{key:"next",value:function(Ae){this.done=!0;var _t,be=this.xhr,it=this.request,qe=this.destination;try{_t=new j(Ae,be,it)}catch(yt){return qe.error(yt)}qe.next(_t)}},{key:"send",value:function(){var Ae=this.request,be=this.request,it=be.user,qe=be.method,_t=be.url,yt=be.async,Ft=be.password,xe=be.headers,Oe=be.body;try{var je=this.xhr=Ae.createXHR();this.setupEvents(je,Ae),it?je.open(qe,_t,yt,it,Ft):je.open(qe,_t,yt),yt&&(je.timeout=Ae.timeout,je.responseType=Ae.responseType),"withCredentials"in je&&(je.withCredentials=!!Ae.withCredentials),this.setHeaders(je,xe),Oe?je.send(Oe):je.send()}catch(dt){this.error(dt)}}},{key:"serializeBody",value:function(Ae,be){if(!Ae||"string"==typeof Ae)return Ae;if(C.J.FormData&&Ae instanceof C.J.FormData)return Ae;if(be){var it=be.indexOf(";");-1!==it&&(be=be.substring(0,it))}switch(be){case"application/x-www-form-urlencoded":return Object.keys(Ae).map(function(qe){return"".concat(encodeURIComponent(qe),"=").concat(encodeURIComponent(Ae[qe]))}).join("&");case"application/json":return JSON.stringify(Ae);default:return Ae}}},{key:"setHeaders",value:function(Ae,be){for(var it in be)be.hasOwnProperty(it)&&Ae.setRequestHeader(it,be[it])}},{key:"getHeader",value:function(Ae,be){for(var it in Ae)if(it.toLowerCase()===be.toLowerCase())return Ae[it]}},{key:"setupEvents",value:function(Ae,be){var _t,yt,it=be.progressSubscriber;function qe(Oe){var Bt,je=qe.subscriber,dt=qe.progressSubscriber,Qe=qe.request;dt&&dt.error(Oe);try{Bt=new ae(this,Qe)}catch(xt){Bt=xt}je.error(Bt)}(Ae.ontimeout=qe,qe.request=be,qe.subscriber=this,qe.progressSubscriber=it,Ae.upload&&"withCredentials"in Ae)&&(it&&(_t=function(je){_t.progressSubscriber.next(je)},C.J.XDomainRequest?Ae.onprogress=_t:Ae.upload.onprogress=_t,_t.progressSubscriber=it),Ae.onerror=yt=function(je){var vt,Qe=yt.progressSubscriber,Bt=yt.subscriber,xt=yt.request;Qe&&Qe.error(je);try{vt=new z("ajax error",this,xt)}catch(Qt){vt=Qt}Bt.error(vt)},yt.request=be,yt.subscriber=this,yt.progressSubscriber=it);function Ft(Oe){}function xe(Oe){var je=xe.subscriber,dt=xe.progressSubscriber,Qe=xe.request;if(4===this.readyState){var Bt=1223===this.status?204:this.status;if(0===Bt&&(Bt=("text"===this.responseType?this.response||this.responseText:this.response)?200:0),Bt<400)dt&&dt.complete(),je.next(Oe),je.complete();else{var vt;dt&&dt.error(Oe);try{vt=new z("ajax error "+Bt,this,Qe)}catch(Qt){vt=Qt}je.error(vt)}}}Ae.onreadystatechange=Ft,Ft.subscriber=this,Ft.progressSubscriber=it,Ft.request=be,Ae.onload=xe,xe.subscriber=this,xe.progressSubscriber=it,xe.request=be}},{key:"unsubscribe",value:function(){var be=this.xhr;!this.done&&be&&4!==be.readyState&&"function"==typeof be.abort&&be.abort(),(0,U.Z)((0,B.Z)(le.prototype),"unsubscribe",this).call(this)}}]),le}(P.L),j=function se(ce,le,oe){(0,V.Z)(this,se),this.originalEvent=ce,this.xhr=le,this.request=oe,this.status=le.status,this.responseType=le.responseType||oe.responseType,this.response=ie(this.responseType,le)},z=function(){function se(ce,le,oe){return Error.call(this),this.message=ce,this.name="AjaxError",this.xhr=le,this.request=oe,this.status=le.status,this.responseType=le.responseType||oe.responseType,this.response=ie(this.responseType,le),this}return se.prototype=Object.create(Error.prototype),se}();function ie(se,ce){switch(se){case"json":return function(se){return"response"in se?se.responseType?se.response:JSON.parse(se.response||se.responseText||"null"):JSON.parse(se.responseText||"null")}(ce);case"xml":return ce.responseXML;case"text":default:return"response"in ce?ce.response:ce.responseText}}var ae=function(se,ce){return z.call(this,"ajax timeout",se,ce),this.name="AjaxTimeoutError",this}},46095:function(ue,q,f){"use strict";f.d(q,{p:function(){return g}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),T=f(10509),R=f(97154),C=f(68707),v=f(39874),P=f(89797),D=f(5051),M=f(82667),A={url:"",deserializer:function(N){return JSON.parse(N.data)},serializer:function(N){return JSON.stringify(N)}},g=function(k){(0,T.Z)(E,k);var N=(0,R.Z)(E);function E(x,S){var O;if((0,U.Z)(this,E),O=N.call(this),x instanceof P.y)O.destination=S,O.source=x;else{var L=O._config=Object.assign({},A);if(O._output=new C.xQ,"string"==typeof x)L.url=x;else for(var j in x)x.hasOwnProperty(j)&&(L[j]=x[j]);if(!L.WebSocketCtor&&WebSocket)L.WebSocketCtor=WebSocket;else if(!L.WebSocketCtor)throw new Error("no WebSocket constructor can be found");O.destination=new M.t}return O}return(0,B.Z)(E,[{key:"lift",value:function(S){var O=new E(this._config,this.destination);return O.operator=S,O.source=this,O}},{key:"_resetState",value:function(){this._socket=null,this.source||(this.destination=new M.t),this._output=new C.xQ}},{key:"multiplex",value:function(S,O,L){var j=this;return new P.y(function(K){try{j.next(S())}catch(J){K.error(J)}var z=j.subscribe(function(J){try{L(J)&&K.next(J)}catch(ie){K.error(ie)}},function(J){return K.error(J)},function(){return K.complete()});return function(){try{j.next(O())}catch(J){K.error(J)}z.unsubscribe()}})}},{key:"_connectSocket",value:function(){var S=this,O=this._config,L=O.WebSocketCtor,j=O.protocol,K=O.url,z=O.binaryType,J=this._output,ie=null;try{ie=j?new L(K,j):new L(K),this._socket=ie,z&&(this._socket.binaryType=z)}catch(ae){return void J.error(ae)}var te=new D.w(function(){S._socket=null,ie&&1===ie.readyState&&ie.close()});ie.onopen=function(ae){if(!S._socket)return ie.close(),void S._resetState();var ce=S._config.openObserver;ce&&ce.next(ae);var le=S.destination;S.destination=v.L.create(function(oe){if(1===ie.readyState)try{ie.send((0,S._config.serializer)(oe))}catch(be){S.destination.error(be)}},function(oe){var Ae=S._config.closingObserver;Ae&&Ae.next(void 0),oe&&oe.code?ie.close(oe.code,oe.reason):J.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),S._resetState()},function(){var oe=S._config.closingObserver;oe&&oe.next(void 0),ie.close(),S._resetState()}),le&&le instanceof M.t&&te.add(le.subscribe(S.destination))},ie.onerror=function(ae){S._resetState(),J.error(ae)},ie.onclose=function(ae){S._resetState();var se=S._config.closeObserver;se&&se.next(ae),ae.wasClean?J.complete():J.error(ae)},ie.onmessage=function(ae){try{J.next((0,S._config.deserializer)(ae))}catch(ce){J.error(ce)}}}},{key:"_subscribe",value:function(S){var O=this,L=this.source;return L?L.subscribe(S):(this._socket||this._connectSocket(),this._output.subscribe(S),S.add(function(){var j=O._socket;0===O._output.observers.length&&(j&&1===j.readyState&&j.close(),O._resetState())}),S)}},{key:"unsubscribe",value:function(){var S=this._socket;S&&1===S.readyState&&S.close(),this._resetState(),(0,V.Z)((0,Z.Z)(E.prototype),"unsubscribe",this).call(this)}}]),E}(C.ug)},30437:function(ue,q,f){"use strict";f.d(q,{h:function(){return B}});var U=f(51361),B=function(){return U.i6.create}()},99298:function(ue,q,f){"use strict";f.d(q,{j:function(){return B}});var U=f(46095);function B(V){return new U.p(V)}},93487:function(ue,q,f){"use strict";f.d(q,{E:function(){return B},c:function(){return V}});var U=f(89797),B=new U.y(function(T){return T.complete()});function V(T){return T?function(T){return new U.y(function(R){return T.schedule(function(){return R.complete()})})}(T):B}},91925:function(ue,q,f){"use strict";f.d(q,{D:function(){return C}});var U=f(10629),B=f(89797),V=f(78985),Z=f(85639),T=f(64902),R=f(61493);function C(){for(var P=arguments.length,D=new Array(P),M=0;M1?Array.prototype.slice.call(arguments):x)},N,g)})}function v(A,_,g,k,N){var E;if(function(A){return A&&"function"==typeof A.addEventListener&&"function"==typeof A.removeEventListener}(A)){var x=A;A.addEventListener(_,g,N),E=function(){return x.removeEventListener(_,g,N)}}else if(function(A){return A&&"function"==typeof A.on&&"function"==typeof A.off}(A)){var S=A;A.on(_,g),E=function(){return S.off(_,g)}}else if(function(A){return A&&"function"==typeof A.addListener&&"function"==typeof A.removeListener}(A)){var O=A;A.addListener(_,g),E=function(){return O.removeListener(_,g)}}else{if(!A||!A.length)throw new TypeError("Invalid event target");for(var L=0,j=A.length;L0&&void 0!==arguments[0]?arguments[0]:0,C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B.P;return(!(0,V.k)(R)||R<0)&&(R=0),(!C||"function"!=typeof C.schedule)&&(C=B.P),new U.y(function(v){return v.add(C.schedule(T,R,{subscriber:v,counter:0,period:R})),v})}function T(R){var C=R.subscriber,v=R.counter,P=R.period;C.next(v),this.schedule({subscriber:C,counter:v+1,period:P},P)}},55371:function(ue,q,f){"use strict";f.d(q,{T:function(){return T}});var U=f(89797),B=f(91299),V=f(65890),Z=f(80503);function T(){for(var R=Number.POSITIVE_INFINITY,C=null,v=arguments.length,P=new Array(v),D=0;D1&&"number"==typeof P[P.length-1]&&(R=P.pop())):"number"==typeof M&&(R=P.pop()),null===C&&1===P.length&&P[0]instanceof U.y?P[0]:(0,V.J)(R)((0,Z.n)(P,C))}},43161:function(ue,q,f){"use strict";f.d(q,{of:function(){return Z}});var U=f(91299),B=f(80503),V=f(55835);function Z(){for(var T=arguments.length,R=new Array(T),C=0;C0&&void 0!==arguments[0]?arguments[0]:0,T=arguments.length>1?arguments[1]:void 0,R=arguments.length>2?arguments[2]:void 0;return new U.y(function(C){void 0===T&&(T=Z,Z=0);var v=0,P=Z;if(R)return R.schedule(V,0,{index:v,count:T,start:Z,subscriber:C});for(;;){if(v++>=T){C.complete();break}if(C.next(P++),C.closed)break}})}function V(Z){var T=Z.start,R=Z.index,v=Z.subscriber;R>=Z.count?v.complete():(v.next(T),!v.closed&&(Z.index=R+1,Z.start=T+1,this.schedule(Z)))}},11363:function(ue,q,f){"use strict";f.d(q,{_:function(){return B}});var U=f(89797);function B(Z,T){return new U.y(T?function(R){return T.schedule(V,0,{error:Z,subscriber:R})}:function(R){return R.error(Z)})}function V(Z){Z.subscriber.error(Z.error)}},5041:function(ue,q,f){"use strict";f.d(q,{H:function(){return T}});var U=f(89797),B=f(46813),V=f(11705),Z=f(91299);function T(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,v=arguments.length>1?arguments[1]:void 0,P=arguments.length>2?arguments[2]:void 0,D=-1;return(0,V.k)(v)?D=Number(v)<1?1:Number(v):(0,Z.K)(v)&&(P=v),(0,Z.K)(P)||(P=B.P),new U.y(function(M){var A=(0,V.k)(C)?C:+C-P.now();return P.schedule(R,A,{index:0,period:D,subscriber:M})})}function R(C){var v=C.index,P=C.period,D=C.subscriber;if(D.next(v),!D.closed){if(-1===P)return D.complete();C.index=v+1,this.schedule(C,P)}}},43008:function(ue,q,f){"use strict";f.d(q,{$R:function(){return D},mx:function(){return M}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(80503),R=f(78985),C=f(39874),v=f(81695),P=f(32124);function D(){for(var N=arguments.length,E=new Array(N),x=0;x2&&void 0!==arguments[2]||Object.create(null),(0,V.Z)(this,x),(L=E.call(this,S)).resultSelector=O,L.iterators=[],L.active=0,L.resultSelector="function"==typeof O?O:void 0,L}return(0,Z.Z)(x,[{key:"_next",value:function(O){var L=this.iterators;(0,R.k)(O)?L.push(new g(O)):L.push("function"==typeof O[v.hZ]?new _(O[v.hZ]()):new k(this.destination,this,O))}},{key:"_complete",value:function(){var O=this.iterators,L=O.length;if(this.unsubscribe(),0!==L){this.active=L;for(var j=0;jthis.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}]),N}(),k=function(N){(0,U.Z)(x,N);var E=(0,B.Z)(x);function x(S,O,L){var j;return(0,V.Z)(this,x),(j=E.call(this,S)).parent=O,j.observable=L,j.stillUnsubscribed=!0,j.buffer=[],j.isComplete=!1,j}return(0,Z.Z)(x,[{key:v.hZ,value:function(){return this}},{key:"next",value:function(){var O=this.buffer;return 0===O.length&&this.isComplete?{value:null,done:!0}:{value:O.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(O){this.buffer.push(O),this.parent.checkIterators()}},{key:"subscribe",value:function(){return(0,P.ft)(this.observable,new P.IY(this))}}]),x}(P.Ds)},67494:function(ue,q,f){"use strict";f.d(q,{U:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(32124);function R(P){return function(M){return M.lift(new C(P))}}var C=function(){function P(D){(0,V.Z)(this,P),this.durationSelector=D}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.durationSelector))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,_){var g;return(0,V.Z)(this,M),(g=D.call(this,A)).durationSelector=_,g.hasValue=!1,g}return(0,Z.Z)(M,[{key:"_next",value:function(_){if(this.value=_,this.hasValue=!0,!this.throttled){var g;try{g=(0,this.durationSelector)(_)}catch(E){return this.destination.error(E)}var N=(0,T.ft)(g,new T.IY(this));!N||N.closed?this.clearThrottle():this.add(this.throttled=N)}}},{key:"clearThrottle",value:function(){var _=this.value,g=this.hasValue,k=this.throttled;k&&(this.remove(k),this.throttled=void 0,k.unsubscribe()),g&&(this.value=void 0,this.hasValue=!1,this.destination.next(_))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),M}(T.Ds)},54562:function(ue,q,f){"use strict";f.d(q,{e:function(){return Z}});var U=f(46813),B=f(67494),V=f(5041);function Z(T){var R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.P;return(0,B.U)(function(){return(0,V.H)(T,R)})}},13426:function(ue,q,f){"use strict";f.d(q,{K:function(){return v}});var U=f(20901),B=f(89200),V=f(10509),Z=f(97154),T=f(18967),R=f(14105),C=f(32124);function v(M){return function(_){var g=new P(M),k=_.lift(g);return g.caught=k}}var P=function(){function M(A){(0,T.Z)(this,M),this.selector=A}return(0,R.Z)(M,[{key:"call",value:function(_,g){return g.subscribe(new D(_,this.selector,this.caught))}}]),M}(),D=function(M){(0,V.Z)(_,M);var A=(0,Z.Z)(_);function _(g,k,N){var E;return(0,T.Z)(this,_),(E=A.call(this,g)).selector=k,E.caught=N,E}return(0,R.Z)(_,[{key:"error",value:function(k){if(!this.isStopped){var N;try{N=this.selector(k,this.caught)}catch(S){return void(0,U.Z)((0,B.Z)(_.prototype),"error",this).call(this,S)}this._unsubscribeAndRecycle();var E=new C.IY(this);this.add(E);var x=(0,C.ft)(N,E);x!==E&&this.add(x)}}}]),_}(C.Ds)},95416:function(ue,q,f){"use strict";f.d(q,{u:function(){return B}});var U=f(65890);function B(){return(0,U.J)(1)}},38575:function(ue,q,f){"use strict";f.d(q,{b:function(){return B}});var U=f(35135);function B(V,Z){return(0,U.zg)(V,Z,1)}},75398:function(ue,q,f){"use strict";f.d(q,{Q:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function R(P){return function(D){return D.lift(new C(P,D))}}var C=function(){function P(D,M){(0,V.Z)(this,P),this.predicate=D,this.source=M}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.predicate,this.source))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,_,g){var k;return(0,V.Z)(this,M),(k=D.call(this,A)).predicate=_,k.source=g,k.count=0,k.index=0,k}return(0,Z.Z)(M,[{key:"_next",value:function(_){this.predicate?this._tryPredicate(_):this.count++}},{key:"_tryPredicate",value:function(_){var g;try{g=this.predicate(_,this.index++,this.source)}catch(k){return void this.destination.error(k)}g&&this.count++}},{key:"_complete",value:function(){this.destination.next(this.count),this.destination.complete()}}]),M}(T.L)},57263:function(ue,q,f){"use strict";f.d(q,{b:function(){return C}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874),R=f(46813);function C(M){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.P;return function(_){return _.lift(new v(M,A))}}var v=function(){function M(A,_){(0,V.Z)(this,M),this.dueTime=A,this.scheduler=_}return(0,Z.Z)(M,[{key:"call",value:function(_,g){return g.subscribe(new P(_,this.dueTime,this.scheduler))}}]),M}(),P=function(M){(0,U.Z)(_,M);var A=(0,B.Z)(_);function _(g,k,N){var E;return(0,V.Z)(this,_),(E=A.call(this,g)).dueTime=k,E.scheduler=N,E.debouncedSubscription=null,E.lastValue=null,E.hasValue=!1,E}return(0,Z.Z)(_,[{key:"_next",value:function(k){this.clearDebounce(),this.lastValue=k,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(D,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var k=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(k)}}},{key:"clearDebounce",value:function(){var k=this.debouncedSubscription;null!==k&&(this.remove(k),k.unsubscribe(),this.debouncedSubscription=null)}}]),_}(T.L);function D(M){M.debouncedNext()}},34235:function(ue,q,f){"use strict";f.d(q,{d:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function R(){var P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(D){return D.lift(new C(P))}}var C=function(){function P(D){(0,V.Z)(this,P),this.defaultValue=D}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.defaultValue))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,_){var g;return(0,V.Z)(this,M),(g=D.call(this,A)).defaultValue=_,g.isEmpty=!0,g}return(0,Z.Z)(M,[{key:"_next",value:function(_){this.isEmpty=!1,this.destination.next(_)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),M}(T.L)},86004:function(ue,q,f){"use strict";f.d(q,{g:function(){return P}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(46813),R=f(88972),C=f(39874),v=f(80286);function P(_){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T.P,k=(0,R.J)(_),N=k?+_-g.now():Math.abs(_);return function(E){return E.lift(new D(N,g))}}var D=function(){function _(g,k){(0,V.Z)(this,_),this.delay=g,this.scheduler=k}return(0,Z.Z)(_,[{key:"call",value:function(k,N){return N.subscribe(new M(k,this.delay,this.scheduler))}}]),_}(),M=function(_){(0,U.Z)(k,_);var g=(0,B.Z)(k);function k(N,E,x){var S;return(0,V.Z)(this,k),(S=g.call(this,N)).delay=E,S.scheduler=x,S.queue=[],S.active=!1,S.errored=!1,S}return(0,Z.Z)(k,[{key:"_schedule",value:function(E){this.active=!0,this.destination.add(E.schedule(k.dispatch,this.delay,{source:this,destination:this.destination,scheduler:E}))}},{key:"scheduleNotification",value:function(E){if(!0!==this.errored){var x=this.scheduler,S=new A(x.now()+this.delay,E);this.queue.push(S),!1===this.active&&this._schedule(x)}}},{key:"_next",value:function(E){this.scheduleNotification(v.P.createNext(E))}},{key:"_error",value:function(E){this.errored=!0,this.queue=[],this.destination.error(E),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(v.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(E){for(var x=E.source,S=x.queue,O=E.scheduler,L=E.destination;S.length>0&&S[0].time-O.now()<=0;)S.shift().notification.observe(L);if(S.length>0){var j=Math.max(0,S[0].time-O.now());this.schedule(E,j)}else this.unsubscribe(),x.active=!1}}]),k}(C.L),A=function _(g,k){(0,V.Z)(this,_),this.time=g,this.notification=k}},76161:function(ue,q,f){"use strict";f.d(q,{x:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function R(P,D){return function(M){return M.lift(new C(P,D))}}var C=function(){function P(D,M){(0,V.Z)(this,P),this.compare=D,this.keySelector=M}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.compare,this.keySelector))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,_,g){var k;return(0,V.Z)(this,M),(k=D.call(this,A)).keySelector=g,k.hasKey=!1,"function"==typeof _&&(k.compare=_),k}return(0,Z.Z)(M,[{key:"compare",value:function(_,g){return _===g}},{key:"_next",value:function(_){var g;try{var k=this.keySelector;g=k?k(_):_}catch(x){return this.destination.error(x)}var N=!1;if(this.hasKey)try{N=(0,this.compare)(this.key,g)}catch(x){return this.destination.error(x)}else this.hasKey=!0;N||(this.key=g,this.destination.next(_))}}]),M}(T.L)},58780:function(ue,q,f){"use strict";f.d(q,{h:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function R(P,D){return function(A){return A.lift(new C(P,D))}}var C=function(){function P(D,M){(0,V.Z)(this,P),this.predicate=D,this.thisArg=M}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.predicate,this.thisArg))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,_,g){var k;return(0,V.Z)(this,M),(k=D.call(this,A)).predicate=_,k.thisArg=g,k.count=0,k}return(0,Z.Z)(M,[{key:"_next",value:function(_){var g;try{g=this.predicate.call(this.thisArg,_,this.count++)}catch(k){return void this.destination.error(k)}g&&this.destination.next(_)}}]),M}(T.L)},59803:function(ue,q,f){"use strict";f.d(q,{x:function(){return C}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874),R=f(5051);function C(D){return function(M){return M.lift(new v(D))}}var v=function(){function D(M){(0,V.Z)(this,D),this.callback=M}return(0,Z.Z)(D,[{key:"call",value:function(A,_){return _.subscribe(new P(A,this.callback))}}]),D}(),P=function(D){(0,U.Z)(A,D);var M=(0,B.Z)(A);function A(_,g){var k;return(0,V.Z)(this,A),(k=M.call(this,_)).add(new R.w(g)),k}return A}(T.L)},64233:function(ue,q,f){"use strict";f.d(q,{P:function(){return C}});var U=f(64646),B=f(58780),V=f(48359),Z=f(34235),T=f(88942),R=f(57070);function C(v,P){var D=arguments.length>=2;return function(M){return M.pipe(v?(0,B.h)(function(A,_){return v(A,_,M)}):R.y,(0,V.q)(1),D?(0,Z.d)(P):(0,T.T)(function(){return new U.K}))}}},86072:function(ue,q,f){"use strict";f.d(q,{v:function(){return M},T:function(){return k}});var U=f(20901),B=f(89200),V=f(10509),Z=f(97154),T=f(18967),R=f(14105),C=f(39874),v=f(5051),P=f(89797),D=f(68707);function M(E,x,S,O){return function(L){return L.lift(new A(E,x,S,O))}}var A=function(){function E(x,S,O,L){(0,T.Z)(this,E),this.keySelector=x,this.elementSelector=S,this.durationSelector=O,this.subjectSelector=L}return(0,R.Z)(E,[{key:"call",value:function(S,O){return O.subscribe(new _(S,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),E}(),_=function(E){(0,V.Z)(S,E);var x=(0,Z.Z)(S);function S(O,L,j,K,z){var J;return(0,T.Z)(this,S),(J=x.call(this,O)).keySelector=L,J.elementSelector=j,J.durationSelector=K,J.subjectSelector=z,J.groups=null,J.attemptedToUnsubscribe=!1,J.count=0,J}return(0,R.Z)(S,[{key:"_next",value:function(L){var j;try{j=this.keySelector(L)}catch(K){return void this.error(K)}this._group(L,j)}},{key:"_group",value:function(L,j){var K=this.groups;K||(K=this.groups=new Map);var J,z=K.get(j);if(this.elementSelector)try{J=this.elementSelector(L)}catch(ae){this.error(ae)}else J=L;if(!z){z=this.subjectSelector?this.subjectSelector():new D.xQ,K.set(j,z);var ie=new k(j,z,this);if(this.destination.next(ie),this.durationSelector){var te;try{te=this.durationSelector(new k(j,z))}catch(ae){return void this.error(ae)}this.add(te.subscribe(new g(j,z,this)))}}z.closed||z.next(J)}},{key:"_error",value:function(L){var j=this.groups;j&&(j.forEach(function(K,z){K.error(L)}),j.clear()),this.destination.error(L)}},{key:"_complete",value:function(){var L=this.groups;L&&(L.forEach(function(j,K){j.complete()}),L.clear()),this.destination.complete()}},{key:"removeGroup",value:function(L){this.groups.delete(L)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&(0,U.Z)((0,B.Z)(S.prototype),"unsubscribe",this).call(this))}}]),S}(C.L),g=function(E){(0,V.Z)(S,E);var x=(0,Z.Z)(S);function S(O,L,j){var K;return(0,T.Z)(this,S),(K=x.call(this,L)).key=O,K.group=L,K.parent=j,K}return(0,R.Z)(S,[{key:"_next",value:function(L){this.complete()}},{key:"_unsubscribe",value:function(){var L=this.parent,j=this.key;this.key=this.parent=null,L&&L.removeGroup(j)}}]),S}(C.L),k=function(E){(0,V.Z)(S,E);var x=(0,Z.Z)(S);function S(O,L,j){var K;return(0,T.Z)(this,S),(K=x.call(this)).key=O,K.groupSubject=L,K.refCountSubscription=j,K}return(0,R.Z)(S,[{key:"_subscribe",value:function(L){var j=new v.w,K=this.refCountSubscription,z=this.groupSubject;return K&&!K.closed&&j.add(new N(K)),j.add(z.subscribe(L)),j}}]),S}(P.y),N=function(E){(0,V.Z)(S,E);var x=(0,Z.Z)(S);function S(O){var L;return(0,T.Z)(this,S),(L=x.call(this)).parent=O,O.count++,L}return(0,R.Z)(S,[{key:"unsubscribe",value:function(){var L=this.parent;!L.closed&&!this.closed&&((0,U.Z)((0,B.Z)(S.prototype),"unsubscribe",this).call(this),L.count-=1,0===L.count&&L.attemptedToUnsubscribe&&L.unsubscribe())}}]),S}(v.w)},99583:function(ue,q,f){"use strict";f.d(q,{Z:function(){return C}});var U=f(64646),B=f(58780),V=f(64397),Z=f(88942),T=f(34235),R=f(57070);function C(v,P){var D=arguments.length>=2;return function(M){return M.pipe(v?(0,B.h)(function(A,_){return v(A,_,M)}):R.y,(0,V.h)(1),D?(0,T.d)(P):(0,Z.T)(function(){return new U.K}))}}},85639:function(ue,q,f){"use strict";f.d(q,{U:function(){return C}});var U=f(88009),B=f(10509),V=f(97154),Z=f(18967),T=f(14105),R=f(39874);function C(D,M){return function(_){if("function"!=typeof D)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return _.lift(new v(D,M))}}var v=function(){function D(M,A){(0,Z.Z)(this,D),this.project=M,this.thisArg=A}return(0,T.Z)(D,[{key:"call",value:function(A,_){return _.subscribe(new P(A,this.project,this.thisArg))}}]),D}(),P=function(D){(0,B.Z)(A,D);var M=(0,V.Z)(A);function A(_,g,k){var N;return(0,Z.Z)(this,A),(N=M.call(this,_)).project=g,N.count=0,N.thisArg=k||(0,U.Z)(N),N}return(0,T.Z)(A,[{key:"_next",value:function(g){var k;try{k=this.project.call(this.thisArg,g,this.count++)}catch(N){return void this.destination.error(N)}this.destination.next(k)}}]),A}(R.L)},12698:function(ue,q,f){"use strict";f.d(q,{h:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function R(P){return function(D){return D.lift(new C(P))}}var C=function(){function P(D){(0,V.Z)(this,P),this.value=D}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.value))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,_){var g;return(0,V.Z)(this,M),(g=D.call(this,A)).value=_,g}return(0,Z.Z)(M,[{key:"_next",value:function(_){this.destination.next(this.value)}}]),M}(T.L)},65890:function(ue,q,f){"use strict";f.d(q,{J:function(){return V}});var U=f(35135),B=f(57070);function V(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,U.zg)(B.y,Z)}},35135:function(ue,q,f){"use strict";f.d(q,{zg:function(){return v},VS:function(){return M}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(85639),R=f(61493),C=f(32124);function v(A,_){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof _?function(k){return k.pipe(v(function(N,E){return(0,R.D)(A(N,E)).pipe((0,T.U)(function(x,S){return _(N,x,E,S)}))},g))}:("number"==typeof _&&(g=_),function(k){return k.lift(new P(A,g))})}var P=function(){function A(_){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,V.Z)(this,A),this.project=_,this.concurrent=g}return(0,Z.Z)(A,[{key:"call",value:function(g,k){return k.subscribe(new D(g,this.project,this.concurrent))}}]),A}(),D=function(A){(0,U.Z)(g,A);var _=(0,B.Z)(g);function g(k,N){var E,x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return(0,V.Z)(this,g),(E=_.call(this,k)).project=N,E.concurrent=x,E.hasCompleted=!1,E.buffer=[],E.active=0,E.index=0,E}return(0,Z.Z)(g,[{key:"_next",value:function(N){this.active0?this._next(N.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),g}(C.Ds),M=v},4981:function(ue,q,f){"use strict";f.d(q,{O:function(){return Z}});var U=f(18967),B=f(14105),V=f(39887);function Z(R,C){return function(P){var D;if(D="function"==typeof R?R:function(){return R},"function"==typeof C)return P.lift(new T(D,C));var M=Object.create(P,V.N);return M.source=P,M.subjectFactory=D,M}}var T=function(){function R(C,v){(0,U.Z)(this,R),this.subjectFactory=C,this.selector=v}return(0,B.Z)(R,[{key:"call",value:function(v,P){var D=this.selector,M=this.subjectFactory(),A=D(M).subscribe(v);return A.add(P.subscribe(M)),A}}]),R}()},25110:function(ue,q,f){"use strict";f.d(q,{QV:function(){return C},ht:function(){return P}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874),R=f(80286);function C(M){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(g){return g.lift(new v(M,A))}}var v=function(){function M(A){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,V.Z)(this,M),this.scheduler=A,this.delay=_}return(0,Z.Z)(M,[{key:"call",value:function(_,g){return g.subscribe(new P(_,this.scheduler,this.delay))}}]),M}(),P=function(M){(0,U.Z)(_,M);var A=(0,B.Z)(_);function _(g,k){var N,E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,V.Z)(this,_),(N=A.call(this,g)).scheduler=k,N.delay=E,N}return(0,Z.Z)(_,[{key:"scheduleMessage",value:function(k){this.destination.add(this.scheduler.schedule(_.dispatch,this.delay,new D(k,this.destination)))}},{key:"_next",value:function(k){this.scheduleMessage(R.P.createNext(k))}},{key:"_error",value:function(k){this.scheduleMessage(R.P.createError(k)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(R.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(k){k.notification.observe(k.destination),this.unsubscribe()}}]),_}(T.L),D=function M(A,_){(0,V.Z)(this,M),this.notification=A,this.destination=_}},4363:function(ue,q,f){"use strict";f.d(q,{G:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function R(){return function(P){return P.lift(new C)}}var C=function(){function P(){(0,V.Z)(this,P)}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A){var _;return(0,V.Z)(this,M),(_=D.call(this,A)).hasPrev=!1,_}return(0,Z.Z)(M,[{key:"_next",value:function(_){var g;this.hasPrev?g=[this.prev,_]:this.hasPrev=!0,this.prev=_,g&&this.destination.next(g)}}]),M}(T.L)},26575:function(ue,q,f){"use strict";f.d(q,{x:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function R(){return function(D){return D.lift(new C(D))}}var C=function(){function P(D){(0,V.Z)(this,P),this.connectable=D}return(0,Z.Z)(P,[{key:"call",value:function(M,A){var _=this.connectable;_._refCount++;var g=new v(M,_),k=A.subscribe(g);return g.closed||(g.connection=_.connect()),k}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,_){var g;return(0,V.Z)(this,M),(g=D.call(this,A)).connectable=_,g}return(0,Z.Z)(M,[{key:"_unsubscribe",value:function(){var _=this.connectable;if(_){this.connectable=null;var g=_._refCount;if(g<=0)this.connection=null;else if(_._refCount=g-1,g>1)this.connection=null;else{var k=this.connection,N=_._connection;this.connection=null,N&&(!k||N===k)&&N.unsubscribe()}}else this.connection=null}}]),M}(T.L)},31927:function(ue,q,f){"use strict";f.d(q,{R:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function R(P,D){var M=!1;return arguments.length>=2&&(M=!0),function(_){return _.lift(new C(P,D,M))}}var C=function(){function P(D,M){var A=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,V.Z)(this,P),this.accumulator=D,this.seed=M,this.hasSeed=A}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.accumulator,this.seed,this.hasSeed))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,_,g,k){var N;return(0,V.Z)(this,M),(N=D.call(this,A)).accumulator=_,N._seed=g,N.hasSeed=k,N.index=0,N}return(0,Z.Z)(M,[{key:"seed",get:function(){return this._seed},set:function(_){this.hasSeed=!0,this._seed=_}},{key:"_next",value:function(_){if(this.hasSeed)return this._tryNext(_);this.seed=_,this.destination.next(_)}},{key:"_tryNext",value:function(_){var k,g=this.index++;try{k=this.accumulator(this.seed,_,g)}catch(N){this.destination.error(N)}this.seed=k,this.destination.next(k)}}]),M}(T.L)},16338:function(ue,q,f){"use strict";f.d(q,{B:function(){return T}});var U=f(4981),B=f(26575),V=f(68707);function Z(){return new V.xQ}function T(){return function(R){return(0,B.x)()((0,U.O)(Z)(R))}}},61106:function(ue,q,f){"use strict";f.d(q,{d:function(){return B}});var U=f(82667);function B(Z,T,R){var C;return C=Z&&"object"==typeof Z?Z:{bufferSize:Z,windowTime:T,refCount:!1,scheduler:R},function(v){return v.lift(function(Z){var M,_,T=Z.bufferSize,R=void 0===T?Number.POSITIVE_INFINITY:T,C=Z.windowTime,v=void 0===C?Number.POSITIVE_INFINITY:C,P=Z.refCount,D=Z.scheduler,A=0,g=!1,k=!1;return function(E){var x;A++,!M||g?(g=!1,M=new U.t(R,v,D),x=M.subscribe(this),_=E.subscribe({next:function(O){M.next(O)},error:function(O){g=!0,M.error(O)},complete:function(){k=!0,_=void 0,M.complete()}}),k&&(_=void 0)):x=M.subscribe(this),this.add(function(){A--,x.unsubscribe(),x=void 0,_&&!k&&P&&0===A&&(_.unsubscribe(),_=void 0,M=void 0)})}}(C))}}},18756:function(ue,q,f){"use strict";f.d(q,{T:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function R(P){return function(D){return D.lift(new C(P))}}var C=function(){function P(D){(0,V.Z)(this,P),this.total=D}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.total))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,_){var g;return(0,V.Z)(this,M),(g=D.call(this,A)).total=_,g.count=0,g}return(0,Z.Z)(M,[{key:"_next",value:function(_){++this.count>this.total&&this.destination.next(_)}}]),M}(T.L)},57682:function(ue,q,f){"use strict";f.d(q,{O:function(){return V}});var U=f(60131),B=f(91299);function V(){for(var Z=arguments.length,T=new Array(Z),R=0;R0)for(var E=this.count>=this.total?this.total:this.count,x=this.ring,S=0;S1&&void 0!==arguments[1]&&arguments[1];return function(M){return M.lift(new C(P,D))}}var C=function(){function P(D,M){(0,V.Z)(this,P),this.predicate=D,this.inclusive=M}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.predicate,this.inclusive))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,_,g){var k;return(0,V.Z)(this,M),(k=D.call(this,A)).predicate=_,k.inclusive=g,k.index=0,k}return(0,Z.Z)(M,[{key:"_next",value:function(_){var k,g=this.destination;try{k=this.predicate(_,this.index++)}catch(N){return void g.error(N)}this.nextOrComplete(_,k)}},{key:"nextOrComplete",value:function(_,g){var k=this.destination;Boolean(g)?k.next(_):(this.inclusive&&k.next(_),k.complete())}}]),M}(T.L)},59371:function(ue,q,f){"use strict";f.d(q,{b:function(){return P}});var U=f(88009),B=f(10509),V=f(97154),Z=f(18967),T=f(14105),R=f(39874),C=f(66029),v=f(20684);function P(A,_,g){return function(N){return N.lift(new D(A,_,g))}}var D=function(){function A(_,g,k){(0,Z.Z)(this,A),this.nextOrObserver=_,this.error=g,this.complete=k}return(0,T.Z)(A,[{key:"call",value:function(g,k){return k.subscribe(new M(g,this.nextOrObserver,this.error,this.complete))}}]),A}(),M=function(A){(0,B.Z)(g,A);var _=(0,V.Z)(g);function g(k,N,E,x){var S;return(0,Z.Z)(this,g),(S=_.call(this,k))._tapNext=C.Z,S._tapError=C.Z,S._tapComplete=C.Z,S._tapError=E||C.Z,S._tapComplete=x||C.Z,(0,v.m)(N)?(S._context=(0,U.Z)(S),S._tapNext=N):N&&(S._context=N,S._tapNext=N.next||C.Z,S._tapError=N.error||C.Z,S._tapComplete=N.complete||C.Z),S}return(0,T.Z)(g,[{key:"_next",value:function(N){try{this._tapNext.call(this._context,N)}catch(E){return void this.destination.error(E)}this.destination.next(N)}},{key:"_error",value:function(N){try{this._tapError.call(this._context,N)}catch(E){return void this.destination.error(E)}this.destination.error(N)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(N){return void this.destination.error(N)}return this.destination.complete()}}]),g}(R.L)},243:function(ue,q,f){"use strict";f.d(q,{d:function(){return R},P:function(){return C}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(32124),R={leading:!0,trailing:!1};function C(D){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R;return function(A){return A.lift(new v(D,!!M.leading,!!M.trailing))}}var v=function(){function D(M,A,_){(0,V.Z)(this,D),this.durationSelector=M,this.leading=A,this.trailing=_}return(0,Z.Z)(D,[{key:"call",value:function(A,_){return _.subscribe(new P(A,this.durationSelector,this.leading,this.trailing))}}]),D}(),P=function(D){(0,U.Z)(A,D);var M=(0,B.Z)(A);function A(_,g,k,N){var E;return(0,V.Z)(this,A),(E=M.call(this,_)).destination=_,E.durationSelector=g,E._leading=k,E._trailing=N,E._hasValue=!1,E}return(0,Z.Z)(A,[{key:"_next",value:function(g){this._hasValue=!0,this._sendValue=g,this._throttled||(this._leading?this.send():this.throttle(g))}},{key:"send",value:function(){var k=this._sendValue;this._hasValue&&(this.destination.next(k),this.throttle(k)),this._hasValue=!1,this._sendValue=void 0}},{key:"throttle",value:function(g){var k=this.tryDurationSelector(g);k&&this.add(this._throttled=(0,T.ft)(k,new T.IY(this)))}},{key:"tryDurationSelector",value:function(g){try{return this.durationSelector(g)}catch(k){return this.destination.error(k),null}}},{key:"throttlingDone",value:function(){var g=this._throttled,k=this._trailing;g&&g.unsubscribe(),this._throttled=void 0,k&&this.send()}},{key:"notifyNext",value:function(){this.throttlingDone()}},{key:"notifyComplete",value:function(){this.throttlingDone()}}]),A}(T.Ds)},88942:function(ue,q,f){"use strict";f.d(q,{T:function(){return C}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(64646),R=f(39874);function C(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D;return function(A){return A.lift(new v(M))}}var v=function(){function M(A){(0,V.Z)(this,M),this.errorFactory=A}return(0,Z.Z)(M,[{key:"call",value:function(_,g){return g.subscribe(new P(_,this.errorFactory))}}]),M}(),P=function(M){(0,U.Z)(_,M);var A=(0,B.Z)(_);function _(g,k){var N;return(0,V.Z)(this,_),(N=A.call(this,g)).errorFactory=k,N.hasValue=!1,N}return(0,Z.Z)(_,[{key:"_next",value:function(k){this.hasValue=!0,this.destination.next(k)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var k;try{k=this.errorFactory()}catch(N){k=N}this.destination.error(k)}}]),_}(R.L);function D(){return new T.K}},73445:function(ue,q,f){"use strict";f.d(q,{J:function(){return R},R:function(){return C}});var U=f(18967),B=f(46813),V=f(31927),Z=f(4499),T=f(85639);function R(){var v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B.P;return function(P){return(0,Z.P)(function(){return P.pipe((0,V.R)(function(D,M){var A=D.current;return{value:M,current:v.now(),last:A}},{current:v.now(),value:void 0,last:void 0}),(0,T.U)(function(D){return new C(D.value,D.current-D.last)}))})}}var C=function v(P,D){(0,U.Z)(this,v),this.value=P,this.interval=D}},63706:function(ue,q,f){"use strict";f.d(q,{A:function(){return Z},E:function(){return T}});var U=f(18967),B=f(46813),V=f(85639);function Z(){var R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B.P;return(0,V.U)(function(C){return new T(C,R.now())})}var T=function R(C,v){(0,U.Z)(this,R),this.value=C,this.timestamp=v}},55835:function(ue,q,f){"use strict";f.d(q,{r:function(){return V}});var U=f(89797),B=f(5051);function V(Z,T){return new U.y(function(R){var C=new B.w,v=0;return C.add(T.schedule(function(){v!==Z.length?(R.next(Z[v++]),R.closed||C.add(this.schedule())):R.complete()})),C})}},60612:function(ue,q,f){"use strict";f.d(q,{Q:function(){return Z}});var U=f(89797),B=f(5051),V=f(81695);function Z(T,R){if(!T)throw new Error("Iterable cannot be null");return new U.y(function(C){var P,v=new B.w;return v.add(function(){P&&"function"==typeof P.return&&P.return()}),v.add(R.schedule(function(){P=T[V.hZ](),v.add(R.schedule(function(){if(!C.closed){var D,M;try{var A=P.next();D=A.value,M=A.done}catch(_){return void C.error(_)}M?C.complete():(C.next(D),this.schedule())}}))})),v})}},10498:function(ue,q,f){"use strict";f.d(q,{c:function(){return V}});var U=f(89797),B=f(5051);function V(Z,T){return new U.y(function(R){var C=new B.w;return C.add(T.schedule(function(){return Z.then(function(v){C.add(T.schedule(function(){R.next(v),C.add(T.schedule(function(){return R.complete()}))}))},function(v){C.add(T.schedule(function(){return R.error(v)}))})})),C})}},77493:function(ue,q,f){"use strict";f.d(q,{x:function(){return A}});var U=f(89797),B=f(5051),V=f(57694),T=f(10498),R=f(55835),C=f(60612),v=f(19104),P=f(36514),D=f(30621),M=f(2762);function A(_,g){if(null!=_){if((0,v.c)(_))return function(_,g){return new U.y(function(k){var N=new B.w;return N.add(g.schedule(function(){var E=_[V.L]();N.add(E.subscribe({next:function(S){N.add(g.schedule(function(){return k.next(S)}))},error:function(S){N.add(g.schedule(function(){return k.error(S)}))},complete:function(){N.add(g.schedule(function(){return k.complete()}))}}))})),N})}(_,g);if((0,P.t)(_))return(0,T.c)(_,g);if((0,D.z)(_))return(0,R.r)(_,g);if((0,M.T)(_)||"string"==typeof _)return(0,C.Q)(_,g)}throw new TypeError((null!==_&&typeof _||_)+" is not observable")}},4065:function(ue,q,f){"use strict";f.d(q,{o:function(){return C}});var U=f(18967),B=f(14105),V=f(10509),Z=f(97154),C=function(v){(0,V.Z)(D,v);var P=(0,Z.Z)(D);function D(M,A){var _;return(0,U.Z)(this,D),(_=P.call(this,M,A)).scheduler=M,_.work=A,_.pending=!1,_}return(0,B.Z)(D,[{key:"schedule",value:function(A){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=A;var g=this.id,k=this.scheduler;return null!=g&&(this.id=this.recycleAsyncId(k,g,_)),this.pending=!0,this.delay=_,this.id=this.id||this.requestAsyncId(k,this.id,_),this}},{key:"requestAsyncId",value:function(A,_){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(A.flush.bind(A,this),g)}},{key:"recycleAsyncId",value:function(A,_){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==g&&this.delay===g&&!1===this.pending)return _;clearInterval(_)}},{key:"execute",value:function(A,_){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var g=this._execute(A,_);if(g)return g;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(A,_){var g=!1,k=void 0;try{this.work(A)}catch(N){g=!0,k=!!N&&N||new Error(N)}if(g)return this.unsubscribe(),k}},{key:"_unsubscribe",value:function(){var A=this.id,_=this.scheduler,g=_.actions,k=g.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==k&&g.splice(k,1),null!=A&&(this.id=this.recycleAsyncId(_,A,null)),this.delay=null}}]),D}(function(v){(0,V.Z)(D,v);var P=(0,Z.Z)(D);function D(M,A){return(0,U.Z)(this,D),P.call(this)}return(0,B.Z)(D,[{key:"schedule",value:function(A){return this}}]),D}(f(5051).w))},81572:function(ue,q,f){"use strict";f.d(q,{v:function(){return P}});var U=f(18967),B=f(14105),V=f(88009),Z=f(20901),T=f(89200),R=f(10509),C=f(97154),v=f(67801),P=function(D){(0,R.Z)(A,D);var M=(0,C.Z)(A);function A(_){var g,k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.b.now;return(0,U.Z)(this,A),(g=M.call(this,_,function(){return A.delegate&&A.delegate!==(0,V.Z)(g)?A.delegate.now():k()})).actions=[],g.active=!1,g.scheduled=void 0,g}return(0,B.Z)(A,[{key:"schedule",value:function(g){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,N=arguments.length>2?arguments[2]:void 0;return A.delegate&&A.delegate!==this?A.delegate.schedule(g,k,N):(0,Z.Z)((0,T.Z)(A.prototype),"schedule",this).call(this,g,k,N)}},{key:"flush",value:function(g){var k=this.actions;if(this.active)k.push(g);else{var N;this.active=!0;do{if(N=g.execute(g.state,g.delay))break}while(g=k.shift());if(this.active=!1,N){for(;g=k.shift();)g.unsubscribe();throw N}}}}]),A}(v.b)},2296:function(ue,q,f){"use strict";f.d(q,{y:function(){return P},h:function(){return D}});var U=f(20901),B=f(89200),V=f(18967),Z=f(14105),T=f(10509),R=f(97154),C=f(4065),v=f(81572),P=function(){var M=function(A){(0,T.Z)(g,A);var _=(0,R.Z)(g);function g(){var k,N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return(0,V.Z)(this,g),(k=_.call(this,N,function(){return k.frame})).maxFrames=E,k.frame=0,k.index=-1,k}return(0,Z.Z)(g,[{key:"flush",value:function(){for(var x,S,N=this.actions,E=this.maxFrames;(S=N[0])&&S.delay<=E&&(N.shift(),this.frame=S.delay,!(x=S.execute(S.state,S.delay))););if(x){for(;S=N.shift();)S.unsubscribe();throw x}}}]),g}(v.v);return M.frameTimeFactor=10,M}(),D=function(M){(0,T.Z)(_,M);var A=(0,R.Z)(_);function _(g,k){var N,E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.index+=1;return(0,V.Z)(this,_),(N=A.call(this,g,k)).scheduler=g,N.work=k,N.index=E,N.active=!0,N.index=g.index=E,N}return(0,Z.Z)(_,[{key:"schedule",value:function(k){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return(0,U.Z)((0,B.Z)(_.prototype),"schedule",this).call(this,k,N);this.active=!1;var E=new _(this.scheduler,this.work);return this.add(E),E.schedule(k,N)}},{key:"requestAsyncId",value:function(k,N){var E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=k.frame+E;var x=k.actions;return x.push(this),x.sort(_.sortActions),!0}},{key:"recycleAsyncId",value:function(k,N){}},{key:"_execute",value:function(k,N){if(!0===this.active)return(0,U.Z)((0,B.Z)(_.prototype),"_execute",this).call(this,k,N)}}],[{key:"sortActions",value:function(k,N){return k.delay===N.delay?k.index===N.index?0:k.index>N.index?1:-1:k.delay>N.delay?1:-1}}]),_}(C.o)},58172:function(ue,q,f){"use strict";f.d(q,{r:function(){return A},Z:function(){return M}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),T=f(10509),R=f(97154),v=function(_){(0,T.Z)(k,_);var g=(0,R.Z)(k);function k(N,E){var x;return(0,U.Z)(this,k),(x=g.call(this,N,E)).scheduler=N,x.work=E,x}return(0,B.Z)(k,[{key:"requestAsyncId",value:function(E,x){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==S&&S>0?(0,V.Z)((0,Z.Z)(k.prototype),"requestAsyncId",this).call(this,E,x,S):(E.actions.push(this),E.scheduled||(E.scheduled=requestAnimationFrame(function(){return E.flush(null)})))}},{key:"recycleAsyncId",value:function(E,x){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==S&&S>0||null===S&&this.delay>0)return(0,V.Z)((0,Z.Z)(k.prototype),"recycleAsyncId",this).call(this,E,x,S);0===E.actions.length&&(cancelAnimationFrame(x),E.scheduled=void 0)}}]),k}(f(4065).o),M=new(function(_){(0,T.Z)(k,_);var g=(0,R.Z)(k);function k(){return(0,U.Z)(this,k),g.apply(this,arguments)}return(0,B.Z)(k,[{key:"flush",value:function(E){this.active=!0,this.scheduled=void 0;var S,x=this.actions,O=-1,L=x.length;E=E||x.shift();do{if(S=E.execute(E.state,E.delay))break}while(++O2&&void 0!==arguments[2]?arguments[2]:0;return null!==O&&O>0?(0,V.Z)((0,Z.Z)(N.prototype),"requestAsyncId",this).call(this,x,S,O):(x.actions.push(this),x.scheduled||(x.scheduled=C.H.setImmediate(x.flush.bind(x,null))))}},{key:"recycleAsyncId",value:function(x,S){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==O&&O>0||null===O&&this.delay>0)return(0,V.Z)((0,Z.Z)(N.prototype),"recycleAsyncId",this).call(this,x,S,O);0===x.actions.length&&(C.H.clearImmediate(S),x.scheduled=void 0)}}]),N}(f(4065).o),A=new(function(g){(0,T.Z)(N,g);var k=(0,R.Z)(N);function N(){return(0,U.Z)(this,N),k.apply(this,arguments)}return(0,B.Z)(N,[{key:"flush",value:function(x){this.active=!0,this.scheduled=void 0;var O,S=this.actions,L=-1,j=S.length;x=x||S.shift();do{if(O=x.execute(x.state,x.delay))break}while(++L1&&void 0!==arguments[1]?arguments[1]:0;return x>0?(0,V.Z)((0,Z.Z)(k.prototype),"schedule",this).call(this,E,x):(this.delay=x,this.state=E,this.scheduler.flush(this),this)}},{key:"execute",value:function(E,x){return x>0||this.closed?(0,V.Z)((0,Z.Z)(k.prototype),"execute",this).call(this,E,x):this._execute(E,x)}},{key:"requestAsyncId",value:function(E,x){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==S&&S>0||null===S&&this.delay>0?(0,V.Z)((0,Z.Z)(k.prototype),"requestAsyncId",this).call(this,E,x,S):E.flush(this)}}]),k}(f(4065).o),M=new(function(_){(0,T.Z)(k,_);var g=(0,R.Z)(k);function k(){return(0,U.Z)(this,k),g.apply(this,arguments)}return k}(f(81572).v))(v),A=M},81695:function(ue,q,f){"use strict";function U(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}f.d(q,{hZ:function(){return B}});var B=U()},57694:function(ue,q,f){"use strict";f.d(q,{L:function(){return U}});var U=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},79542:function(ue,q,f){"use strict";f.d(q,{b:function(){return U}});var U=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},9855:function(ue,q,f){"use strict";f.d(q,{W:function(){return B}});var B=function(){function V(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return V.prototype=Object.create(Error.prototype),V}()},64646:function(ue,q,f){"use strict";f.d(q,{K:function(){return B}});var B=function(){function V(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return V.prototype=Object.create(Error.prototype),V}()},96421:function(ue,q,f){"use strict";f.d(q,{H:function(){return T}});var U=1,B=function(){return Promise.resolve()}(),V={};function Z(C){return C in V&&(delete V[C],!0)}var T={setImmediate:function(v){var P=U++;return V[P]=!0,B.then(function(){return Z(P)&&v()}),P},clearImmediate:function(v){Z(v)}}},1696:function(ue,q,f){"use strict";f.d(q,{N:function(){return B}});var B=function(){function V(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return V.prototype=Object.create(Error.prototype),V}()},98691:function(ue,q,f){"use strict";f.d(q,{W:function(){return B}});var B=function(){function V(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return V.prototype=Object.create(Error.prototype),V}()},66351:function(ue,q,f){"use strict";f.d(q,{B:function(){return B}});var B=function(){function V(Z){return Error.call(this),this.message=Z?"".concat(Z.length," errors occurred during unsubscription:\n").concat(Z.map(function(T,R){return"".concat(R+1,") ").concat(T.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=Z,this}return V.prototype=Object.create(Error.prototype),V}()},2808:function(ue,q,f){"use strict";function U(B,V){for(var Z=0,T=V.length;Z=0}},64902:function(ue,q,f){"use strict";function U(B){return null!==B&&"object"==typeof B}f.d(q,{K:function(){return U}})},17504:function(ue,q,f){"use strict";f.d(q,{b:function(){return B}});var U=f(89797);function B(V){return!!V&&(V instanceof U.y||"function"==typeof V.lift&&"function"==typeof V.subscribe)}},36514:function(ue,q,f){"use strict";function U(B){return!!B&&"function"!=typeof B.subscribe&&"function"==typeof B.then}f.d(q,{t:function(){return U}})},91299:function(ue,q,f){"use strict";function U(B){return B&&"function"==typeof B.schedule}f.d(q,{K:function(){return U}})},66029:function(ue,q,f){"use strict";function U(){}f.d(q,{Z:function(){return U}})},59849:function(ue,q,f){"use strict";function U(B,V){function Z(){return!Z.pred.apply(Z.thisArg,arguments)}return Z.pred=B,Z.thisArg=V,Z}f.d(q,{f:function(){return U}})},96194:function(ue,q,f){"use strict";f.d(q,{z:function(){return B},U:function(){return V}});var U=f(57070);function B(){for(var Z=arguments.length,T=new Array(Z),R=0;R4&&void 0!==arguments[4]?arguments[4]:new U.d(T,C,v);if(!P.closed)return R instanceof V.y?R.subscribe(P):(0,B.s)(R)(P)}},3410:function(ue,q,f){"use strict";f.d(q,{Y:function(){return Z}});var U=f(39874),B=f(79542),V=f(88944);function Z(T,R,C){if(T){if(T instanceof U.L)return T;if(T[B.b])return T[B.b]()}return T||R||C?new U.L(T,R,C):new U.L(V.c)}},73033:function(ue,q,f){"use strict";f.r(q),f.d(q,{audit:function(){return U.U},auditTime:function(){return B.e},buffer:function(){return P},bufferCount:function(){return k},bufferTime:function(){return L},bufferToggle:function(){return le},bufferWhen:function(){return be},catchError:function(){return _t.K},combineAll:function(){return Ft},combineLatest:function(){return Qe},concat:function(){return xt},concatAll:function(){return vt.u},concatMap:function(){return Qt.b},concatMapTo:function(){return Ht},count:function(){return Ct.Q},debounce:function(){return Vt},debounceTime:function(){return Nt.b},defaultIfEmpty:function(){return rn.d},delay:function(){return kn.g},delayWhen:function(){return In},dematerialize:function(){return ut},distinct:function(){return ye},distinctUntilChanged:function(){return ct.x},distinctUntilKeyChanged:function(){return ht},elementAt:function(){return cn},endWith:function(){return Tn},every:function(){return Pn},exhaust:function(){return Sn},exhaustMap:function(){return Rt},expand:function(){return rt},filter:function(){return Kt.h},finalize:function(){return Ne.x},find:function(){return Le},findIndex:function(){return an},first:function(){return qn.P},flatMap:function(){return qt.VS},groupBy:function(){return Nr.v},ignoreElements:function(){return qr},isEmpty:function(){return uo},last:function(){return co.Z},map:function(){return Ut.U},mapTo:function(){return Qo.h},materialize:function(){return ro},max:function(){return Wn},merge:function(){return jt},mergeAll:function(){return Pt.J},mergeMap:function(){return qt.zg},mergeMapTo:function(){return Gt},mergeScan:function(){return Xt},min:function(){return jn},multicast:function(){return zn.O},observeOn:function(){return si.QV},onErrorResumeNext:function(){return bi},pairwise:function(){return Po.G},partition:function(){return ko},pluck:function(){return ii},publish:function(){return ji},publishBehavior:function(){return Vo},publishLast:function(){return Ji},publishReplay:function(){return vn},race:function(){return fo},reduce:function(){return ki},refCount:function(){return Bi.x},repeat:function(){return Si},repeatWhen:function(){return ma},retry:function(){return hs},retryWhen:function(){return Ma},sample:function(){return ga},sampleTime:function(){return Aa},scan:function(){return po.R},sequenceEqual:function(){return Ui},share:function(){return qa.B},shareReplay:function(){return Au.d},single:function(){return Ki},skip:function(){return tn.T},skipLast:function(){return eu},skipUntil:function(){return pe},skipWhile:function(){return We},startWith:function(){return _e.O},subscribeOn:function(){return Re},switchAll:function(){return gt},switchMap:function(){return St.w},switchMapTo:function(){return Xr},take:function(){return nn.q},takeLast:function(){return fi.h},takeUntil:function(){return jr.R},takeWhile:function(){return Pi.o},tap:function(){return ya.b},throttle:function(){return li.P},throttleTime:function(){return Ii},throwIfEmpty:function(){return Yt.T},timeInterval:function(){return ba.J},timeout:function(){return Ar},timeoutWith:function(){return Sp},timestamp:function(){return Tp.A},toArray:function(){return xp},window:function(){return wp},windowCount:function(){return wv},windowTime:function(){return ee},windowToggle:function(){return un},windowWhen:function(){return Qn},withLatestFrom:function(){return Cr},zip:function(){return oi},zipAll:function(){return Mo}});var U=f(67494),B=f(54562),V=f(88009),Z=f(10509),T=f(97154),R=f(18967),C=f(14105),v=f(32124);function P(Be){return function(ke){return ke.lift(new D(Be))}}var D=function(){function Be(Ye){(0,R.Z)(this,Be),this.closingNotifier=Ye}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new M(ke,this.closingNotifier))}}]),Be}(),M=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze){var nt;return(0,R.Z)(this,ke),(nt=Ye.call(this,Ue)).buffer=[],nt.add((0,v.ft)(Ze,new v.IY((0,V.Z)(nt)))),nt}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){this.buffer.push(Ze)}},{key:"notifyNext",value:function(){var Ze=this.buffer;this.buffer=[],this.destination.next(Ze)}}]),ke}(v.Ds),A=f(20901),_=f(89200),g=f(39874);function k(Be){var Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(Ue){return Ue.lift(new N(Be,Ye))}}var N=function(){function Be(Ye,ke){(0,R.Z)(this,Be),this.bufferSize=Ye,this.startBufferEvery=ke,this.subscriberClass=ke&&Ye!==ke?x:E}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new this.subscriberClass(ke,this.bufferSize,this.startBufferEvery))}}]),Be}(),E=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze){var nt;return(0,R.Z)(this,ke),(nt=Ye.call(this,Ue)).bufferSize=Ze,nt.buffer=[],nt}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){var nt=this.buffer;nt.push(Ze),nt.length==this.bufferSize&&(this.destination.next(nt),this.buffer=[])}},{key:"_complete",value:function(){var Ze=this.buffer;Ze.length>0&&this.destination.next(Ze),(0,A.Z)((0,_.Z)(ke.prototype),"_complete",this).call(this)}}]),ke}(g.L),x=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt){var Tt;return(0,R.Z)(this,ke),(Tt=Ye.call(this,Ue)).bufferSize=Ze,Tt.startBufferEvery=nt,Tt.buffers=[],Tt.count=0,Tt}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){var nt=this.bufferSize,Tt=this.startBufferEvery,sn=this.buffers,bn=this.count;this.count++,bn%Tt==0&&sn.push([]);for(var xr=sn.length;xr--;){var Ri=sn[xr];Ri.push(Ze),Ri.length===nt&&(sn.splice(xr,1),this.destination.next(Ri))}}},{key:"_complete",value:function(){for(var Ze=this.buffers,nt=this.destination;Ze.length>0;){var Tt=Ze.shift();Tt.length>0&&nt.next(Tt)}(0,A.Z)((0,_.Z)(ke.prototype),"_complete",this).call(this)}}]),ke}(g.L),S=f(46813),O=f(91299);function L(Be){var Ye=arguments.length,ke=S.P;(0,O.K)(arguments[arguments.length-1])&&(ke=arguments[arguments.length-1],Ye--);var Ue=null;Ye>=2&&(Ue=arguments[1]);var Ze=Number.POSITIVE_INFINITY;return Ye>=3&&(Ze=arguments[2]),function(Tt){return Tt.lift(new j(Be,Ue,Ze,ke))}}var j=function(){function Be(Ye,ke,Ue,Ze){(0,R.Z)(this,Be),this.bufferTimeSpan=Ye,this.bufferCreationInterval=ke,this.maxBufferSize=Ue,this.scheduler=Ze}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new z(ke,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}]),Be}(),K=function Be(){(0,R.Z)(this,Be),this.buffer=[]},z=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt,Tt,sn){var bn;(0,R.Z)(this,ke),(bn=Ye.call(this,Ue)).bufferTimeSpan=Ze,bn.bufferCreationInterval=nt,bn.maxBufferSize=Tt,bn.scheduler=sn,bn.contexts=[];var xr=bn.openContext();if(bn.timespanOnly=null==nt||nt<0,bn.timespanOnly){var Ri={subscriber:(0,V.Z)(bn),context:xr,bufferTimeSpan:Ze};bn.add(xr.closeAction=sn.schedule(J,Ze,Ri))}else{var Xo={subscriber:(0,V.Z)(bn),context:xr},Pa={bufferTimeSpan:Ze,bufferCreationInterval:nt,subscriber:(0,V.Z)(bn),scheduler:sn};bn.add(xr.closeAction=sn.schedule(te,Ze,Xo)),bn.add(sn.schedule(ie,nt,Pa))}return bn}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){for(var sn,nt=this.contexts,Tt=nt.length,bn=0;bn0;){var Tt=Ze.shift();nt.next(Tt.buffer)}(0,A.Z)((0,_.Z)(ke.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.contexts=null}},{key:"onBufferFull",value:function(Ze){this.closeContext(Ze);var nt=Ze.closeAction;if(nt.unsubscribe(),this.remove(nt),!this.closed&&this.timespanOnly){Ze=this.openContext();var Tt=this.bufferTimeSpan;this.add(Ze.closeAction=this.scheduler.schedule(J,Tt,{subscriber:this,context:Ze,bufferTimeSpan:Tt}))}}},{key:"openContext",value:function(){var Ze=new K;return this.contexts.push(Ze),Ze}},{key:"closeContext",value:function(Ze){this.destination.next(Ze.buffer);var nt=this.contexts;(nt?nt.indexOf(Ze):-1)>=0&&nt.splice(nt.indexOf(Ze),1)}}]),ke}(g.L);function J(Be){var Ye=Be.subscriber,ke=Be.context;ke&&Ye.closeContext(ke),Ye.closed||(Be.context=Ye.openContext(),Be.context.closeAction=this.schedule(Be,Be.bufferTimeSpan))}function ie(Be){var Ye=Be.bufferCreationInterval,ke=Be.bufferTimeSpan,Ue=Be.subscriber,Ze=Be.scheduler,nt=Ue.openContext();Ue.closed||(Ue.add(nt.closeAction=Ze.schedule(te,ke,{subscriber:Ue,context:nt})),this.schedule(Be,Ye))}function te(Be){Be.subscriber.closeContext(Be.context)}var ae=f(5051),se=f(61454),ce=f(7283);function le(Be,Ye){return function(Ue){return Ue.lift(new oe(Be,Ye))}}var oe=function(){function Be(Ye,ke){(0,R.Z)(this,Be),this.openings=Ye,this.closingSelector=ke}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new Ae(ke,this.openings,this.closingSelector))}}]),Be}(),Ae=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt){var Tt;return(0,R.Z)(this,ke),(Tt=Ye.call(this,Ue)).closingSelector=nt,Tt.contexts=[],Tt.add((0,se.D)((0,V.Z)(Tt),Ze)),Tt}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){for(var nt=this.contexts,Tt=nt.length,sn=0;sn0;){var Tt=nt.shift();Tt.subscription.unsubscribe(),Tt.buffer=null,Tt.subscription=null}this.contexts=null,(0,A.Z)((0,_.Z)(ke.prototype),"_error",this).call(this,Ze)}},{key:"_complete",value:function(){for(var Ze=this.contexts;Ze.length>0;){var nt=Ze.shift();this.destination.next(nt.buffer),nt.subscription.unsubscribe(),nt.buffer=null,nt.subscription=null}this.contexts=null,(0,A.Z)((0,_.Z)(ke.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(Ze,nt){Ze?this.closeBuffer(Ze):this.openBuffer(nt)}},{key:"notifyComplete",value:function(Ze){this.closeBuffer(Ze.context)}},{key:"openBuffer",value:function(Ze){try{var Tt=this.closingSelector.call(this,Ze);Tt&&this.trySubscribe(Tt)}catch(sn){this._error(sn)}}},{key:"closeBuffer",value:function(Ze){var nt=this.contexts;if(nt&&Ze){var sn=Ze.subscription;this.destination.next(Ze.buffer),nt.splice(nt.indexOf(Ze),1),this.remove(sn),sn.unsubscribe()}}},{key:"trySubscribe",value:function(Ze){var nt=this.contexts,sn=new ae.w,bn={buffer:[],subscription:sn};nt.push(bn);var xr=(0,se.D)(this,Ze,bn);!xr||xr.closed?this.closeBuffer(bn):(xr.context=bn,this.add(xr),sn.add(xr))}}]),ke}(ce.L);function be(Be){return function(Ye){return Ye.lift(new it(Be))}}var it=function(){function Be(Ye){(0,R.Z)(this,Be),this.closingSelector=Ye}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new qe(ke,this.closingSelector))}}]),Be}(),qe=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze){var nt;return(0,R.Z)(this,ke),(nt=Ye.call(this,Ue)).closingSelector=Ze,nt.subscribing=!1,nt.openBuffer(),nt}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){this.buffer.push(Ze)}},{key:"_complete",value:function(){var Ze=this.buffer;Ze&&this.destination.next(Ze),(0,A.Z)((0,_.Z)(ke.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.buffer=void 0,this.subscribing=!1}},{key:"notifyNext",value:function(){this.openBuffer()}},{key:"notifyComplete",value:function(){this.subscribing?this.complete():this.openBuffer()}},{key:"openBuffer",value:function(){var Tt,Ze=this.closingSubscription;Ze&&(this.remove(Ze),Ze.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{Tt=(0,this.closingSelector)()}catch(bn){return this.error(bn)}Ze=new ae.w,this.closingSubscription=Ze,this.add(Ze),this.subscribing=!0,Ze.add((0,v.ft)(Tt,new v.IY(this))),this.subscribing=!1}}]),ke}(v.Ds),_t=f(13426),yt=f(81370);function Ft(Be){return function(Ye){return Ye.lift(new yt.Ms(Be))}}var xe=f(10629),Oe=f(78985),je=f(61493);function Qe(){for(var Be=arguments.length,Ye=new Array(Be),ke=0;ke=2;return function(Ue){return Ue.pipe((0,Kt.h)(function(Ze,nt){return nt===Be}),(0,nn.q)(1),ke?(0,rn.d)(Ye):(0,Yt.T)(function(){return new Jt.W}))}}var yn=f(43161);function Tn(){for(var Be=arguments.length,Ye=new Array(Be),ke=0;ke1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,ke=arguments.length>2?arguments[2]:void 0;return Ye=(Ye||0)<1?Number.POSITIVE_INFINITY:Ye,function(Ue){return Ue.lift(new he(Be,Ye,ke))}}var he=function(){function Be(Ye,ke,Ue){(0,R.Z)(this,Be),this.project=Ye,this.concurrent=ke,this.scheduler=Ue}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new Ie(ke,this.project,this.concurrent,this.scheduler))}}]),Be}(),Ie=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt,Tt){var sn;return(0,R.Z)(this,ke),(sn=Ye.call(this,Ue)).project=Ze,sn.concurrent=nt,sn.scheduler=Tt,sn.index=0,sn.active=0,sn.hasCompleted=!1,nt0&&this._next(Ze.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}],[{key:"dispatch",value:function(Ze){Ze.subscriber.subscribeToProjection(Ze.result,Ze.value,Ze.index)}}]),ke}(v.Ds),Ne=f(59803);function Le(Be,Ye){if("function"!=typeof Be)throw new TypeError("predicate is not a function");return function(ke){return ke.lift(new ze(Be,ke,!1,Ye))}}var ze=function(){function Be(Ye,ke,Ue,Ze){(0,R.Z)(this,Be),this.predicate=Ye,this.source=ke,this.yieldIndex=Ue,this.thisArg=Ze}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new At(ke,this.predicate,this.source,this.yieldIndex,this.thisArg))}}]),Be}(),At=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt,Tt,sn){var bn;return(0,R.Z)(this,ke),(bn=Ye.call(this,Ue)).predicate=Ze,bn.source=nt,bn.yieldIndex=Tt,bn.thisArg=sn,bn.index=0,bn}return(0,C.Z)(ke,[{key:"notifyComplete",value:function(Ze){var nt=this.destination;nt.next(Ze),nt.complete(),this.unsubscribe()}},{key:"_next",value:function(Ze){var nt=this.predicate,Tt=this.thisArg,sn=this.index++;try{nt.call(Tt||this,Ze,sn,this.source)&&this.notifyComplete(this.yieldIndex?sn:Ze)}catch(xr){this.destination.error(xr)}}},{key:"_complete",value:function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}]),ke}(g.L);function an(Be,Ye){return function(ke){return ke.lift(new ze(Be,ke,!0,Ye))}}var qn=f(64233),Nr=f(86072);function qr(){return function(Ye){return Ye.lift(new br)}}var br=function(){function Be(){(0,R.Z)(this,Be)}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new Qr(ke))}}]),Be}(),Qr=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(){return(0,R.Z)(this,ke),Ye.apply(this,arguments)}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){}}]),ke}(g.L);function uo(){return function(Be){return Be.lift(new Ni)}}var Ni=function(){function Be(){(0,R.Z)(this,Be)}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new yo(ke))}}]),Be}(),yo=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue){return(0,R.Z)(this,ke),Ye.call(this,Ue)}return(0,C.Z)(ke,[{key:"notifyComplete",value:function(Ze){var nt=this.destination;nt.next(Ze),nt.complete()}},{key:"_next",value:function(Ze){this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),ke}(g.L),co=f(99583),Qo=f(12698),wi=f(80286);function ro(){return function(Ye){return Ye.lift(new yi)}}var yi=function(){function Be(){(0,R.Z)(this,Be)}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new Gi(ke))}}]),Be}(),Gi=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue){return(0,R.Z)(this,ke),Ye.call(this,Ue)}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){this.destination.next(wi.P.createNext(Ze))}},{key:"_error",value:function(Ze){var nt=this.destination;nt.next(wi.P.createError(Ze)),nt.complete()}},{key:"_complete",value:function(){var Ze=this.destination;Ze.next(wi.P.createComplete()),Ze.complete()}}]),ke}(g.L),po=f(31927),fi=f(64397),Uo=f(96194);function ki(Be,Ye){return arguments.length>=2?function(Ue){return(0,Uo.z)((0,po.R)(Be,Ye),(0,fi.h)(1),(0,rn.d)(Ye))(Ue)}:function(Ue){return(0,Uo.z)((0,po.R)(function(Ze,nt,Tt){return Be(Ze,nt,Tt+1)}),(0,fi.h)(1))(Ue)}}function Wn(Be){return ki("function"==typeof Be?function(ke,Ue){return Be(ke,Ue)>0?ke:Ue}:function(ke,Ue){return ke>Ue?ke:Ue})}var Ot=f(55371);function jt(){for(var Be=arguments.length,Ye=new Array(Be),ke=0;ke2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof Ye?(0,qt.zg)(function(){return Be},Ye,ke):("number"==typeof Ye&&(ke=Ye),(0,qt.zg)(function(){return Be},ke))}function Xt(Be,Ye){var ke=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return function(Ue){return Ue.lift(new gn(Be,Ye,ke))}}var gn=function(){function Be(Ye,ke,Ue){(0,R.Z)(this,Be),this.accumulator=Ye,this.seed=ke,this.concurrent=Ue}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new Gn(ke,this.accumulator,this.seed,this.concurrent))}}]),Be}(),Gn=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt,Tt){var sn;return(0,R.Z)(this,ke),(sn=Ye.call(this,Ue)).accumulator=Ze,sn.acc=nt,sn.concurrent=Tt,sn.hasValue=!1,sn.hasCompleted=!1,sn.buffer=[],sn.active=0,sn.index=0,sn}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){if(this.active0?this._next(Ze.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}]),ke}(v.Ds);function jn(Be){return ki("function"==typeof Be?function(ke,Ue){return Be(ke,Ue)<0?ke:Ue}:function(ke,Ue){return ke0&&void 0!==arguments[0]?arguments[0]:-1;return function(Ye){return 0===Be?(0,ha.c)():Ye.lift(new Co(Be<0?-1:Be-1,Ye))}}var Co=function(){function Be(Ye,ke){(0,R.Z)(this,Be),this.count=Ye,this.source=ke}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new Zi(ke,this.count,this.source))}}]),Be}(),Zi=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt){var Tt;return(0,R.Z)(this,ke),(Tt=Ye.call(this,Ue)).count=Ze,Tt.source=nt,Tt}return(0,C.Z)(ke,[{key:"complete",value:function(){if(!this.isStopped){var Ze=this.source,nt=this.count;if(0===nt)return(0,A.Z)((0,_.Z)(ke.prototype),"complete",this).call(this);nt>-1&&(this.count=nt-1),Ze.subscribe(this._unsubscribeAndRecycle())}}}]),ke}(g.L);function ma(Be){return function(Ye){return Ye.lift(new Eo(Be))}}var Eo=function(){function Be(Ye){(0,R.Z)(this,Be),this.notifier=Ye}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new Io(ke,this.notifier,Ue))}}]),Be}(),Io=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt){var Tt;return(0,R.Z)(this,ke),(Tt=Ye.call(this,Ue)).notifier=Ze,Tt.source=nt,Tt.sourceIsBeingSubscribedTo=!0,Tt}return(0,C.Z)(ke,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return(0,A.Z)((0,_.Z)(ke.prototype),"complete",this).call(this)}},{key:"complete",value:function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return(0,A.Z)((0,_.Z)(ke.prototype),"complete",this).call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}},{key:"_unsubscribe",value:function(){var Ze=this.notifications,nt=this.retriesSubscription;Ze&&(Ze.unsubscribe(),this.notifications=void 0),nt&&(nt.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"_unsubscribeAndRecycle",value:function(){var Ze=this._unsubscribe;return this._unsubscribe=null,(0,A.Z)((0,_.Z)(ke.prototype),"_unsubscribeAndRecycle",this).call(this),this._unsubscribe=Ze,this}},{key:"subscribeToRetries",value:function(){var Ze;this.notifications=new oo.xQ;try{Ze=(0,this.notifier)(this.notifications)}catch(Tt){return(0,A.Z)((0,_.Z)(ke.prototype),"complete",this).call(this)}this.retries=Ze,this.retriesSubscription=(0,v.ft)(Ze,new v.IY(this))}}]),ke}(v.Ds);function hs(){var Be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(Ye){return Ye.lift(new So(Be,Ye))}}var So=function(){function Be(Ye,ke){(0,R.Z)(this,Be),this.count=Ye,this.source=ke}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new va(ke,this.count,this.source))}}]),Be}(),va=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt){var Tt;return(0,R.Z)(this,ke),(Tt=Ye.call(this,Ue)).count=Ze,Tt.source=nt,Tt}return(0,C.Z)(ke,[{key:"error",value:function(Ze){if(!this.isStopped){var nt=this.source,Tt=this.count;if(0===Tt)return(0,A.Z)((0,_.Z)(ke.prototype),"error",this).call(this,Ze);Tt>-1&&(this.count=Tt-1),nt.subscribe(this._unsubscribeAndRecycle())}}}]),ke}(g.L);function Ma(Be){return function(Ye){return Ye.lift(new qo(Be,Ye))}}var qo=function(){function Be(Ye,ke){(0,R.Z)(this,Be),this.notifier=Ye,this.source=ke}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new To(ke,this.notifier,this.source))}}]),Be}(),To=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt){var Tt;return(0,R.Z)(this,ke),(Tt=Ye.call(this,Ue)).notifier=Ze,Tt.source=nt,Tt}return(0,C.Z)(ke,[{key:"error",value:function(Ze){if(!this.isStopped){var nt=this.errors,Tt=this.retries,sn=this.retriesSubscription;if(Tt)this.errors=void 0,this.retriesSubscription=void 0;else{nt=new oo.xQ;try{Tt=(0,this.notifier)(nt)}catch(xr){return(0,A.Z)((0,_.Z)(ke.prototype),"error",this).call(this,xr)}sn=(0,v.ft)(Tt,new v.IY(this))}this._unsubscribeAndRecycle(),this.errors=nt,this.retries=Tt,this.retriesSubscription=sn,nt.next(Ze)}}},{key:"_unsubscribe",value:function(){var Ze=this.errors,nt=this.retriesSubscription;Ze&&(Ze.unsubscribe(),this.errors=void 0),nt&&(nt.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"notifyNext",value:function(){var Ze=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=Ze,this.source.subscribe(this)}}]),ke}(v.Ds),Bi=f(26575);function ga(Be){return function(Ye){return Ye.lift(new Qi(Be))}}var Qi=function(){function Be(Ye){(0,R.Z)(this,Be),this.notifier=Ye}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){var Ze=new _a(ke),nt=Ue.subscribe(Ze);return nt.add((0,v.ft)(this.notifier,new v.IY(Ze))),nt}}]),Be}(),_a=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(){var Ue;return(0,R.Z)(this,ke),(Ue=Ye.apply(this,arguments)).hasValue=!1,Ue}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){this.value=Ze,this.hasValue=!0}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}]),ke}(v.Ds);function Aa(Be){var Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.P;return function(ke){return ke.lift(new _r(Be,Ye))}}var _r=function(){function Be(Ye,ke){(0,R.Z)(this,Be),this.period=Ye,this.scheduler=ke}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new Ln(ke,this.period,this.scheduler))}}]),Be}(),Ln=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt){var Tt;return(0,R.Z)(this,ke),(Tt=Ye.call(this,Ue)).period=Ze,Tt.scheduler=nt,Tt.hasValue=!1,Tt.add(nt.schedule(Da,Ze,{subscriber:(0,V.Z)(Tt),period:Ze})),Tt}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){this.lastValue=Ze,this.hasValue=!0}},{key:"notifyNext",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}]),ke}(g.L);function Da(Be){var ke=Be.period;Be.subscriber.notifyNext(),this.schedule(Be,ke)}function Ui(Be,Ye){return function(ke){return ke.lift(new Va(Be,Ye))}}var Va=function(){function Be(Ye,ke){(0,R.Z)(this,Be),this.compareTo=Ye,this.comparator=ke}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new ar(ke,this.compareTo,this.comparator))}}]),Be}(),ar=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt){var Tt;return(0,R.Z)(this,ke),(Tt=Ye.call(this,Ue)).compareTo=Ze,Tt.comparator=nt,Tt._a=[],Tt._b=[],Tt._oneComplete=!1,Tt.destination.add(Ze.subscribe(new zi(Ue,(0,V.Z)(Tt)))),Tt}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(Ze),this.checkValues())}},{key:"_complete",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}},{key:"checkValues",value:function(){for(var Ze=this._a,nt=this._b,Tt=this.comparator;Ze.length>0&&nt.length>0;){var sn=Ze.shift(),bn=nt.shift(),xr=!1;try{xr=Tt?Tt(sn,bn):sn===bn}catch(Ri){this.destination.error(Ri)}xr||this.emit(!1)}}},{key:"emit",value:function(Ze){var nt=this.destination;nt.next(Ze),nt.complete()}},{key:"nextB",value:function(Ze){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(Ze),this.checkValues())}},{key:"completeB",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}]),ke}(g.L),zi=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze){var nt;return(0,R.Z)(this,ke),(nt=Ye.call(this,Ue)).parent=Ze,nt}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){this.parent.nextB(Ze)}},{key:"_error",value:function(Ze){this.parent.error(Ze),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.completeB(),this.unsubscribe()}}]),ke}(g.L),qa=f(16338),Au=f(61106),Ka=f(64646);function Ki(Be){return function(Ye){return Ye.lift(new ja(Be,Ye))}}var ja=function(){function Be(Ye,ke){(0,R.Z)(this,Be),this.predicate=Ye,this.source=ke}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new _l(ke,this.predicate,this.source))}}]),Be}(),_l=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt){var Tt;return(0,R.Z)(this,ke),(Tt=Ye.call(this,Ue)).predicate=Ze,Tt.source=nt,Tt.seenValue=!1,Tt.index=0,Tt}return(0,C.Z)(ke,[{key:"applySingleValue",value:function(Ze){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=Ze)}},{key:"_next",value:function(Ze){var nt=this.index++;this.predicate?this.tryNext(Ze,nt):this.applySingleValue(Ze)}},{key:"tryNext",value:function(Ze,nt){try{this.predicate(Ze,nt,this.source)&&this.applySingleValue(Ze)}catch(Tt){this.destination.error(Tt)}}},{key:"_complete",value:function(){var Ze=this.destination;this.index>0?(Ze.next(this.seenValue?this.singleValue:void 0),Ze.complete()):Ze.error(new Ka.K)}}]),ke}(g.L),tn=f(18756);function eu(Be){return function(Ye){return Ye.lift(new yl(Be))}}var yl=function(){function Be(Ye){if((0,R.Z)(this,Be),this._skipCount=Ye,this._skipCount<0)throw new Jt.W}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(0===this._skipCount?new g.L(ke):new bl(ke,this._skipCount))}}]),Be}(),bl=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze){var nt;return(0,R.Z)(this,ke),(nt=Ye.call(this,Ue))._skipCount=Ze,nt._count=0,nt._ring=new Array(Ze),nt}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){var nt=this._skipCount,Tt=this._count++;if(Tt1&&void 0!==arguments[1]?arguments[1]:0;return function(Ue){return Ue.lift(new Ge(Be,Ye))}}var Ge=function(){function Be(Ye,ke){(0,R.Z)(this,Be),this.scheduler=Ye,this.delay=ke}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return new Ce.e(Ue,this.delay,this.scheduler).subscribe(ke)}}]),Be}(),St=f(34487),ft=f(57070);function gt(){return(0,St.w)(ft.y)}function Xr(Be,Ye){return Ye?(0,St.w)(function(){return Be},Ye):(0,St.w)(function(){return Be})}var jr=f(44213),Pi=f(49196),ya=f(59371),li=f(243);function Ii(Be){var Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.P,ke=arguments.length>2&&void 0!==arguments[2]?arguments[2]:li.d;return function(Ue){return Ue.lift(new Cl(Be,Ye,ke.leading,ke.trailing))}}var Cl=function(){function Be(Ye,ke,Ue,Ze){(0,R.Z)(this,Be),this.duration=Ye,this.scheduler=ke,this.leading=Ue,this.trailing=Ze}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new Oa(ke,this.duration,this.scheduler,this.leading,this.trailing))}}]),Be}(),Oa=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt,Tt,sn){var bn;return(0,R.Z)(this,ke),(bn=Ye.call(this,Ue)).duration=Ze,bn.scheduler=nt,bn.leading=Tt,bn.trailing=sn,bn._hasTrailingValue=!1,bn._trailingValue=null,bn}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){this.throttled?this.trailing&&(this._trailingValue=Ze,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Xa,this.duration,{subscriber:this})),this.leading?this.destination.next(Ze):this.trailing&&(this._trailingValue=Ze,this._hasTrailingValue=!0))}},{key:"_complete",value:function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}},{key:"clearThrottle",value:function(){var Ze=this.throttled;Ze&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),Ze.unsubscribe(),this.remove(Ze),this.throttled=null)}}]),ke}(g.L);function Xa(Be){Be.subscriber.clearThrottle()}var ba=f(73445),Es=f(98691),Cp=f(88972);function Sp(Be,Ye){var ke=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S.P;return function(Ue){var Ze=(0,Cp.J)(Be),nt=Ze?+Be-ke.now():Math.abs(Be);return Ue.lift(new Js(nt,Ze,Ye,ke))}}var Js=function(){function Be(Ye,ke,Ue,Ze){(0,R.Z)(this,Be),this.waitFor=Ye,this.absoluteTimeout=ke,this.withObservable=Ue,this.scheduler=Ze}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new uc(ke,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),Be}(),uc=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt,Tt,sn){var bn;return(0,R.Z)(this,ke),(bn=Ye.call(this,Ue)).absoluteTimeout=Ze,bn.waitFor=nt,bn.withObservable=Tt,bn.scheduler=sn,bn.scheduleTimeout(),bn}return(0,C.Z)(ke,[{key:"scheduleTimeout",value:function(){var Ze=this.action;Ze?this.action=Ze.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(ke.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(Ze){this.absoluteTimeout||this.scheduleTimeout(),(0,A.Z)((0,_.Z)(ke.prototype),"_next",this).call(this,Ze)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(Ze){var nt=Ze.withObservable;Ze._unsubscribeAndRecycle(),Ze.add((0,v.ft)(nt,new v.IY(Ze)))}}]),ke}(v.Ds),Sl=f(11363);function Ar(Be){var Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.P;return Sp(Be,(0,Sl._)(new Es.W),Ye)}var Tp=f(63706);function md(Be,Ye,ke){return 0===ke?[Ye]:(Be.push(Ye),Be)}function xp(){return ki(md,[])}function wp(Be){return function(ke){return ke.lift(new vd(Be))}}var vd=function(){function Be(Ye){(0,R.Z)(this,Be),this.windowBoundaries=Ye}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){var Ze=new tu(ke),nt=Ue.subscribe(Ze);return nt.closed||Ze.add((0,v.ft)(this.windowBoundaries,new v.IY(Ze))),nt}}]),Be}(),tu=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue){var Ze;return(0,R.Z)(this,ke),(Ze=Ye.call(this,Ue)).window=new oo.xQ,Ue.next(Ze.window),Ze}return(0,C.Z)(ke,[{key:"notifyNext",value:function(){this.openWindow()}},{key:"notifyError",value:function(Ze){this._error(Ze)}},{key:"notifyComplete",value:function(){this._complete()}},{key:"_next",value:function(Ze){this.window.next(Ze)}},{key:"_error",value:function(Ze){this.window.error(Ze),this.destination.error(Ze)}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete()}},{key:"_unsubscribe",value:function(){this.window=null}},{key:"openWindow",value:function(){var Ze=this.window;Ze&&Ze.complete();var nt=this.destination,Tt=this.window=new oo.xQ;nt.next(Tt)}}]),ke}(v.Ds);function wv(Be){var Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(Ue){return Ue.lift(new Se(Be,Ye))}}var Se=function(){function Be(Ye,ke){(0,R.Z)(this,Be),this.windowSize=Ye,this.startWindowEvery=ke}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new ge(ke,this.windowSize,this.startWindowEvery))}}]),Be}(),ge=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt){var Tt;return(0,R.Z)(this,ke),(Tt=Ye.call(this,Ue)).destination=Ue,Tt.windowSize=Ze,Tt.startWindowEvery=nt,Tt.windows=[new oo.xQ],Tt.count=0,Ue.next(Tt.windows[0]),Tt}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){for(var nt=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,Tt=this.destination,sn=this.windowSize,bn=this.windows,xr=bn.length,Ri=0;Ri=0&&Xo%nt==0&&!this.closed&&bn.shift().complete(),++this.count%nt==0&&!this.closed){var Pa=new oo.xQ;bn.push(Pa),Tt.next(Pa)}}},{key:"_error",value:function(Ze){var nt=this.windows;if(nt)for(;nt.length>0&&!this.closed;)nt.shift().error(Ze);this.destination.error(Ze)}},{key:"_complete",value:function(){var Ze=this.windows;if(Ze)for(;Ze.length>0&&!this.closed;)Ze.shift().complete();this.destination.complete()}},{key:"_unsubscribe",value:function(){this.count=0,this.windows=null}}]),ke}(g.L),Q=f(11705);function ee(Be){var Ye=S.P,ke=null,Ue=Number.POSITIVE_INFINITY;return(0,O.K)(arguments[3])&&(Ye=arguments[3]),(0,O.K)(arguments[2])?Ye=arguments[2]:(0,Q.k)(arguments[2])&&(Ue=Number(arguments[2])),(0,O.K)(arguments[1])?Ye=arguments[1]:(0,Q.k)(arguments[1])&&(ke=Number(arguments[1])),function(nt){return nt.lift(new Ee(Be,ke,Ue,Ye))}}var Ee=function(){function Be(Ye,ke,Ue,Ze){(0,R.Z)(this,Be),this.windowTimeSpan=Ye,this.windowCreationInterval=ke,this.maxWindowSize=Ue,this.scheduler=Ze}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new lt(ke,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}]),Be}(),Ve=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(){var Ue;return(0,R.Z)(this,ke),(Ue=Ye.apply(this,arguments))._numberOfNextedValues=0,Ue}return(0,C.Z)(ke,[{key:"next",value:function(Ze){this._numberOfNextedValues++,(0,A.Z)((0,_.Z)(ke.prototype),"next",this).call(this,Ze)}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}]),ke}(oo.xQ),lt=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt,Tt,sn){var bn;(0,R.Z)(this,ke),(bn=Ye.call(this,Ue)).destination=Ue,bn.windowTimeSpan=Ze,bn.windowCreationInterval=nt,bn.maxWindowSize=Tt,bn.scheduler=sn,bn.windows=[];var xr=bn.openWindow();if(null!==nt&&nt>=0){var Ri={subscriber:(0,V.Z)(bn),window:xr,context:null},Xo={windowTimeSpan:Ze,windowCreationInterval:nt,subscriber:(0,V.Z)(bn),scheduler:sn};bn.add(sn.schedule($t,Ze,Ri)),bn.add(sn.schedule(Zt,nt,Xo))}else{var Pa={subscriber:(0,V.Z)(bn),window:xr,windowTimeSpan:Ze};bn.add(sn.schedule(wt,Ze,Pa))}return bn}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){for(var nt=this.windows,Tt=nt.length,sn=0;sn=this.maxWindowSize&&this.closeWindow(bn))}}},{key:"_error",value:function(Ze){for(var nt=this.windows;nt.length>0;)nt.shift().error(Ze);this.destination.error(Ze)}},{key:"_complete",value:function(){for(var Ze=this.windows;Ze.length>0;){var nt=Ze.shift();nt.closed||nt.complete()}this.destination.complete()}},{key:"openWindow",value:function(){var Ze=new Ve;return this.windows.push(Ze),this.destination.next(Ze),Ze}},{key:"closeWindow",value:function(Ze){Ze.complete();var nt=this.windows;nt.splice(nt.indexOf(Ze),1)}}]),ke}(g.L);function wt(Be){var Ye=Be.subscriber,ke=Be.windowTimeSpan,Ue=Be.window;Ue&&Ye.closeWindow(Ue),Be.window=Ye.openWindow(),this.schedule(Be,ke)}function Zt(Be){var Ye=Be.windowTimeSpan,ke=Be.subscriber,Ue=Be.scheduler,Ze=Be.windowCreationInterval,nt=ke.openWindow(),sn={action:this,subscription:null};sn.subscription=Ue.schedule($t,Ye,{subscriber:ke,window:nt,context:sn}),this.add(sn.subscription),this.schedule(Be,Ze)}function $t(Be){var Ye=Be.subscriber,ke=Be.window,Ue=Be.context;Ue&&Ue.action&&Ue.subscription&&Ue.action.remove(Ue.subscription),Ye.closeWindow(ke)}function un(Be,Ye){return function(ke){return ke.lift(new An(Be,Ye))}}var An=function(){function Be(Ye,ke){(0,R.Z)(this,Be),this.openings=Ye,this.closingSelector=ke}return(0,C.Z)(Be,[{key:"call",value:function(ke,Ue){return Ue.subscribe(new Bn(ke,this.openings,this.closingSelector))}}]),Be}(),Bn=function(Be){(0,Z.Z)(ke,Be);var Ye=(0,T.Z)(ke);function ke(Ue,Ze,nt){var Tt;return(0,R.Z)(this,ke),(Tt=Ye.call(this,Ue)).openings=Ze,Tt.closingSelector=nt,Tt.contexts=[],Tt.add(Tt.openSubscription=(0,se.D)((0,V.Z)(Tt),Ze,Ze)),Tt}return(0,C.Z)(ke,[{key:"_next",value:function(Ze){var nt=this.contexts;if(nt)for(var Tt=nt.length,sn=0;sn0&&void 0!==arguments[0]?arguments[0]:null;Ze&&(this.remove(Ze),Ze.unsubscribe());var nt=this.window;nt&&nt.complete();var sn,Tt=this.window=new oo.xQ;this.destination.next(Tt);try{var bn=this.closingSelector;sn=bn()}catch(xr){return this.destination.error(xr),void this.window.error(xr)}this.add(this.closingNotification=(0,se.D)(this,sn))}}]),ke}(ce.L);function Cr(){for(var Be=arguments.length,Ye=new Array(Be),ke=0;ke0){var bn=sn.indexOf(Tt);-1!==bn&&sn.splice(bn,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(Ze){if(0===this.toRespond.length){var nt=[Ze].concat((0,xe.Z)(this.values));this.project?this._tryProject(nt):this.destination.next(nt)}}},{key:"_tryProject",value:function(Ze){var nt;try{nt=this.project.apply(this,Ze)}catch(Tt){return void this.destination.error(Tt)}this.destination.next(nt)}}]),ke}(ce.L),hi=f(43008);function oi(){for(var Be=arguments.length,Ye=new Array(Be),ke=0;ke1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,U.Z)(this,O),this.subscribedFrame=L,this.unsubscribedFrame=j},_=(f(2808),function(O){(0,T.Z)(j,O);var L=(0,R.Z)(j);function j(K,z){var J;return(0,U.Z)(this,j),(J=L.call(this,function(ie){var te=this,ae=te.logSubscribedFrame(),se=new P.w;return se.add(new P.w(function(){te.logUnsubscribedFrame(ae)})),te.scheduleMessages(ie),se})).messages=K,J.subscriptions=[],J.scheduler=z,J}return(0,B.Z)(j,[{key:"scheduleMessages",value:function(z){for(var J=this.messages.length,ie=0;ie1&&void 0!==arguments[1]?arguments[1]:null,te=[],ae={actual:te,ready:!1},se=j.parseMarblesAsSubscriptions(ie,this.runMode),ce=se.subscribedFrame===Number.POSITIVE_INFINITY?0:se.subscribedFrame,le=se.unsubscribedFrame;this.schedule(function(){oe=z.subscribe(function(be){var it=be;be instanceof C.y&&(it=J.materializeInnerObservable(it,J.frame)),te.push({frame:J.frame,notification:v.P.createNext(it)})},function(be){te.push({frame:J.frame,notification:v.P.createError(be)})},function(){te.push({frame:J.frame,notification:v.P.createComplete()})})},ce),le!==Number.POSITIVE_INFINITY&&this.schedule(function(){return oe.unsubscribe()},le),this.flushTests.push(ae);var Ae=this.runMode;return{toBe:function(it,qe,_t){ae.ready=!0,ae.expected=j.parseMarbles(it,qe,_t,!0,Ae)}}}},{key:"expectSubscriptions",value:function(z){var J={actual:z,ready:!1};this.flushTests.push(J);var ie=this.runMode;return{toBe:function(ae){var se="string"==typeof ae?[ae]:ae;J.ready=!0,J.expected=se.map(function(ce){return j.parseMarblesAsSubscriptions(ce,ie)})}}}},{key:"flush",value:function(){for(var z=this,J=this.hotObservables;J.length>0;)J.shift().setup();(0,V.Z)((0,Z.Z)(j.prototype),"flush",this).call(this),this.flushTests=this.flushTests.filter(function(ie){return!ie.ready||(z.assertDeepEqual(ie.actual,ie.expected),!1)})}},{key:"run",value:function(z){var J=j.frameTimeFactor,ie=this.maxFrames;j.frameTimeFactor=1,this.maxFrames=Number.POSITIVE_INFINITY,this.runMode=!0,E.v.delegate=this;var te={cold:this.createColdObservable.bind(this),hot:this.createHotObservable.bind(this),flush:this.flush.bind(this),expectObservable:this.expectObservable.bind(this),expectSubscriptions:this.expectSubscriptions.bind(this)};try{var ae=z(te);return this.flush(),ae}finally{j.frameTimeFactor=J,this.maxFrames=ie,this.runMode=!1,E.v.delegate=void 0}}}],[{key:"parseMarblesAsSubscriptions",value:function(z){var J=this,ie=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof z)return new D(Number.POSITIVE_INFINITY);for(var te=z.length,ae=-1,se=Number.POSITIVE_INFINITY,ce=Number.POSITIVE_INFINITY,le=0,oe=0;oe-1?ae:le,be(1);break;case"!":if(ce!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");ce=ae>-1?ae:le;break;default:if(ie&&it.match(/^[0-9]$/)&&(0===oe||" "===z[oe-1])){var qe=z.slice(oe),_t=qe.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(_t){oe+=_t[0].length-1;var yt=parseFloat(_t[1]),Ft=_t[2],xe=void 0;switch(Ft){case"ms":xe=yt;break;case"s":xe=1e3*yt;break;case"m":xe=1e3*yt*60}be(xe/this.frameTimeFactor);break}}throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+it+"'.")}le=Ae}return ce<0?new D(se):new D(se,ce)}},{key:"parseMarbles",value:function(z,J,ie){var te=this,ae=arguments.length>3&&void 0!==arguments[3]&&arguments[3],se=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(-1!==z.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var ce=z.length,le=[],oe=se?z.replace(/^[ ]+/,"").indexOf("^"):z.indexOf("^"),Ae=-1===oe?0:oe*-this.frameTimeFactor,be="object"!=typeof J?function(xt){return xt}:function(xt){return ae&&J[xt]instanceof _?J[xt].messages:J[xt]},it=-1,qe=0;qe-1?it:Ae,notification:Ft}),Ae=_t}return le}}]),j}(N.y)},4194:function(ue,q,f){"use strict";f.r(q),f.d(q,{webSocket:function(){return U.j},WebSocketSubject:function(){return B.p}});var U=f(99298),B=f(46095)},26918:function(ue,q,f){"use strict";f(68663)},56205:function(ue,q){"use strict";var U;!function(){var B=q||{};void 0!==(U=function(){return B}.apply(q,[]))&&(ue.exports=U),B.default=B;var V="http://www.w3.org/2000/xmlns/",T="http://www.w3.org/2000/svg",C=/url\(["']?(.+?)["']?\)/,v={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},P=function(se){return se instanceof HTMLElement||se instanceof SVGElement},D=function(se){if(!P(se))throw new Error("an HTMLElement or SVGElement is required; got "+se)},M=function(se){return new Promise(function(ce,le){P(se)?ce(se):le(new Error("an HTMLElement or SVGElement is required; got "+se))})},_=function(se){var ce=Object.keys(v).filter(function(le){return se.indexOf("."+le)>0}).map(function(le){return v[le]});return ce?ce[0]:(console.error("Unknown font format for "+se+". Fonts may not be working correctly."),"application/octet-stream")},k=function(se,ce,le){var oe=se.viewBox&&se.viewBox.baseVal&&se.viewBox.baseVal[le]||null!==ce.getAttribute(le)&&!ce.getAttribute(le).match(/%$/)&&parseInt(ce.getAttribute(le))||se.getBoundingClientRect()[le]||parseInt(ce.style[le])||parseInt(window.getComputedStyle(se).getPropertyValue(le));return null==oe||isNaN(parseFloat(oe))?0:oe},x=function(se){for(var ce=window.atob(se.split(",")[1]),le=se.split(",")[0].split(":")[1].split(";")[0],oe=new ArrayBuffer(ce.length),Ae=new Uint8Array(oe),be=0;be *")).forEach(function(Vt){Vt.setAttributeNS(V,"xmlns","svg"===Vt.tagName?T:"http://www.w3.org/1999/xhtml")}),!dt)return ie(ae,se).then(function(Vt){var bt=document.createElement("style");bt.setAttribute("type","text/css"),bt.innerHTML="";var en=document.createElement("defs");en.appendChild(bt),Qe.insertBefore(en,Qe.firstChild);var Nt=document.createElement("div");Nt.appendChild(Qe);var rn=Nt.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if("function"!=typeof ce)return{src:rn,width:xt,height:vt};ce(rn,xt,vt)});var Ht=document.createElement("div");Ht.appendChild(Qe);var Ct=Ht.innerHTML;if("function"!=typeof ce)return{src:Ct,width:xt,height:vt};ce(Ct,xt,vt)})},B.svgAsDataUri=function(ae,se,ce){return D(ae),B.prepareSvg(ae,se).then(function(le){var Ae=le.width,be=le.height,it="data:image/svg+xml;base64,"+window.btoa(function(se){return decodeURIComponent(encodeURIComponent(se).replace(/%([0-9A-F]{2})/g,function(ce,le){var oe=String.fromCharCode("0x"+le);return"%"===oe?"%25":oe}))}(']>'+le.src));return"function"==typeof ce&&ce(it,Ae,be),it})},B.svgAsPngUri=function(ae,se,ce){D(ae);var le=se||{},oe=le.encoderType,Ae=void 0===oe?"image/png":oe,be=le.encoderOptions,it=void 0===be?.8:be,qe=le.canvg,_t=function(Ft){var xe=Ft.src,Oe=Ft.width,je=Ft.height,dt=document.createElement("canvas"),Qe=dt.getContext("2d"),Bt=window.devicePixelRatio||1;dt.width=Oe*Bt,dt.height=je*Bt,dt.style.width=dt.width+"px",dt.style.height=dt.height+"px",Qe.setTransform(Bt,0,0,Bt,0,0),qe?qe(dt,xe):Qe.drawImage(xe,0,0);var xt=void 0;try{xt=dt.toDataURL(Ae,it)}catch(vt){if("undefined"!=typeof SecurityError&&vt instanceof SecurityError||"SecurityError"===vt.name)return void console.error("Rendered SVG images cannot be downloaded in this browser.");throw vt}return"function"==typeof ce&&ce(xt,dt.width,dt.height),Promise.resolve(xt)};return qe?B.prepareSvg(ae,se).then(_t):B.svgAsDataUri(ae,se).then(function(yt){return new Promise(function(Ft,xe){var Oe=new Image;Oe.onload=function(){return Ft(_t({src:Oe,width:Oe.width,height:Oe.height}))},Oe.onerror=function(){xe("There was an error loading the data URI as an image on the following SVG\n"+window.atob(yt.slice(26))+"Open the following link to see browser's diagnosis\n"+yt)},Oe.src=yt})})},B.download=function(ae,se,ce){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(x(se),ae);else{var le=document.createElement("a");if("download"in le){le.download=ae,le.style.display="none",document.body.appendChild(le);try{var oe=x(se),Ae=URL.createObjectURL(oe);le.href=Ae,le.onclick=function(){return requestAnimationFrame(function(){return URL.revokeObjectURL(Ae)})}}catch(be){console.error(be),console.warn("Error while getting object URL. Falling back to string URL."),le.href=se}le.click(),document.body.removeChild(le)}else ce&&ce.popup&&(ce.popup.document.title=ae,ce.popup.location.replace(se))}},B.saveSvg=function(ae,se,ce){var le=te();return M(ae).then(function(oe){return B.svgAsDataUri(oe,ce||{})}).then(function(oe){return B.download(se,oe,le)})},B.saveSvgAsPng=function(ae,se,ce){var le=te();return M(ae).then(function(oe){return B.svgAsPngUri(oe,ce||{})}).then(function(oe){return B.download(se,oe,le)})}}()},5042:function(ue,q,f){var U=f(25523),B=Object.prototype.hasOwnProperty,V="undefined"!=typeof Map;function Z(){this._array=[],this._set=V?new Map:Object.create(null)}Z.fromArray=function(R,C){for(var v=new Z,P=0,D=R.length;P=0)return C}else{var v=U.toSetString(R);if(B.call(this._set,v))return this._set[v]}throw new Error('"'+R+'" is not in the set.')},Z.prototype.at=function(R){if(R>=0&&R>>=5)>0&&(M|=32),D+=U.encode(M)}while(A>0);return D},q.decode=function(P,D,M){var k,N,A=P.length,_=0,g=0;do{if(D>=A)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(N=U.decode(P.charCodeAt(D++))))throw new Error("Invalid base64 digit: "+P.charAt(D-1));k=!!(32&N),_+=(N&=31)<>1;return 1==(1&v)?-D:D}(_),M.rest=D}},7698:function(ue,q){var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");q.encode=function(U){if(0<=U&&UR||C==R&&T.generatedColumn>=Z.generatedColumn||U.compareByGeneratedPositionsInflated(Z,T)<=0}(this._last,T)?(this._sorted=!1,this._array.push(T)):(this._last=T,this._array.push(T))},V.prototype.toArray=function(){return this._sorted||(this._array.sort(U.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},q.H=V},30673:function(ue,q,f){var U=f(78619),B=f(25523),V=f(5042).I,Z=f(66306).H;function T(R){R||(R={}),this._file=B.getArg(R,"file",null),this._sourceRoot=B.getArg(R,"sourceRoot",null),this._skipValidation=B.getArg(R,"skipValidation",!1),this._sources=new V,this._names=new V,this._mappings=new Z,this._sourcesContents=null}T.prototype._version=3,T.fromSourceMap=function(C){var v=C.sourceRoot,P=new T({file:C.file,sourceRoot:v});return C.eachMapping(function(D){var M={generated:{line:D.generatedLine,column:D.generatedColumn}};null!=D.source&&(M.source=D.source,null!=v&&(M.source=B.relative(v,M.source)),M.original={line:D.originalLine,column:D.originalColumn},null!=D.name&&(M.name=D.name)),P.addMapping(M)}),C.sources.forEach(function(D){var M=D;null!==v&&(M=B.relative(v,D)),P._sources.has(M)||P._sources.add(M);var A=C.sourceContentFor(D);null!=A&&P.setSourceContent(D,A)}),P},T.prototype.addMapping=function(C){var v=B.getArg(C,"generated"),P=B.getArg(C,"original",null),D=B.getArg(C,"source",null),M=B.getArg(C,"name",null);this._skipValidation||this._validateMapping(v,P,D,M),null!=D&&(D=String(D),this._sources.has(D)||this._sources.add(D)),null!=M&&(M=String(M),this._names.has(M)||this._names.add(M)),this._mappings.add({generatedLine:v.line,generatedColumn:v.column,originalLine:null!=P&&P.line,originalColumn:null!=P&&P.column,source:D,name:M})},T.prototype.setSourceContent=function(C,v){var P=C;null!=this._sourceRoot&&(P=B.relative(this._sourceRoot,P)),null!=v?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[B.toSetString(P)]=v):this._sourcesContents&&(delete this._sourcesContents[B.toSetString(P)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},T.prototype.applySourceMap=function(C,v,P){var D=v;if(null==v){if(null==C.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');D=C.file}var M=this._sourceRoot;null!=M&&(D=B.relative(M,D));var A=new V,_=new V;this._mappings.unsortedForEach(function(g){if(g.source===D&&null!=g.originalLine){var k=C.originalPositionFor({line:g.originalLine,column:g.originalColumn});null!=k.source&&(g.source=k.source,null!=P&&(g.source=B.join(P,g.source)),null!=M&&(g.source=B.relative(M,g.source)),g.originalLine=k.line,g.originalColumn=k.column,null!=k.name&&(g.name=k.name))}var N=g.source;null!=N&&!A.has(N)&&A.add(N);var E=g.name;null!=E&&!_.has(E)&&_.add(E)},this),this._sources=A,this._names=_,C.sources.forEach(function(g){var k=C.sourceContentFor(g);null!=k&&(null!=P&&(g=B.join(P,g)),null!=M&&(g=B.relative(M,g)),this.setSourceContent(g,k))},this)},T.prototype._validateMapping=function(C,v,P,D){if(v&&"number"!=typeof v.line&&"number"!=typeof v.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(C&&"line"in C&&"column"in C&&C.line>0&&C.column>=0)||v||P||D){if(C&&"line"in C&&"column"in C&&v&&"line"in v&&"column"in v&&C.line>0&&C.column>=0&&v.line>0&&v.column>=0&&P)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:C,source:P,original:v,name:D}))}},T.prototype._serializeMappings=function(){for(var g,k,N,E,C=0,v=1,P=0,D=0,M=0,A=0,_="",x=this._mappings.toArray(),S=0,O=x.length;S0){if(!B.compareByGeneratedPositionsInflated(k,x[S-1]))continue;g+=","}g+=U.encode(k.generatedColumn-C),C=k.generatedColumn,null!=k.source&&(E=this._sources.indexOf(k.source),g+=U.encode(E-A),A=E,g+=U.encode(k.originalLine-1-D),D=k.originalLine-1,g+=U.encode(k.originalColumn-P),P=k.originalColumn,null!=k.name&&(N=this._names.indexOf(k.name),g+=U.encode(N-M),M=N)),_+=g}return _},T.prototype._generateSourcesContent=function(C,v){return C.map(function(P){if(!this._sourcesContents)return null;null!=v&&(P=B.relative(v,P));var D=B.toSetString(P);return Object.prototype.hasOwnProperty.call(this._sourcesContents,D)?this._sourcesContents[D]:null},this)},T.prototype.toJSON=function(){var C={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(C.file=this._file),null!=this._sourceRoot&&(C.sourceRoot=this._sourceRoot),this._sourcesContents&&(C.sourcesContent=this._generateSourcesContent(C.sources,C.sourceRoot)),C},T.prototype.toString=function(){return JSON.stringify(this.toJSON())},q.h=T},25523:function(ue,q){q.getArg=function(S,O,L){if(O in S)return S[O];if(3===arguments.length)return L;throw new Error('"'+O+'" is a required argument.')};var U=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,B=/^data:.+\,.+$/;function V(S){var O=S.match(U);return O?{scheme:O[1],auth:O[2],host:O[3],port:O[4],path:O[5]}:null}function Z(S){var O="";return S.scheme&&(O+=S.scheme+":"),O+="//",S.auth&&(O+=S.auth+"@"),S.host&&(O+=S.host),S.port&&(O+=":"+S.port),S.path&&(O+=S.path),O}function T(S){var O=S,L=V(S);if(L){if(!L.path)return S;O=L.path}for(var z,j=q.isAbsolute(O),K=O.split(/\/+/),J=0,ie=K.length-1;ie>=0;ie--)"."===(z=K[ie])?K.splice(ie,1):".."===z?J++:J>0&&(""===z?(K.splice(ie+1,J),J=0):(K.splice(ie,2),J--));return""===(O=K.join("/"))&&(O=j?"/":"."),L?(L.path=O,Z(L)):O}function R(S,O){""===S&&(S="."),""===O&&(O=".");var L=V(O),j=V(S);if(j&&(S=j.path||"/"),L&&!L.scheme)return j&&(L.scheme=j.scheme),Z(L);if(L||O.match(B))return O;if(j&&!j.host&&!j.path)return j.host=O,Z(j);var K="/"===O.charAt(0)?O:T(S.replace(/\/+$/,"")+"/"+O);return j?(j.path=K,Z(j)):K}q.urlParse=V,q.urlGenerate=Z,q.normalize=T,q.join=R,q.isAbsolute=function(S){return"/"===S.charAt(0)||U.test(S)},q.relative=function(S,O){""===S&&(S="."),S=S.replace(/\/$/,"");for(var L=0;0!==O.indexOf(S+"/");){var j=S.lastIndexOf("/");if(j<0||(S=S.slice(0,j)).match(/^([^\/]+:\/)?\/*$/))return O;++L}return Array(L+1).join("../")+O.substr(S.length+1)};var v=!("__proto__"in Object.create(null));function P(S){return S}function A(S){if(!S)return!1;var O=S.length;if(O<9||95!==S.charCodeAt(O-1)||95!==S.charCodeAt(O-2)||111!==S.charCodeAt(O-3)||116!==S.charCodeAt(O-4)||111!==S.charCodeAt(O-5)||114!==S.charCodeAt(O-6)||112!==S.charCodeAt(O-7)||95!==S.charCodeAt(O-8)||95!==S.charCodeAt(O-9))return!1;for(var L=O-10;L>=0;L--)if(36!==S.charCodeAt(L))return!1;return!0}function k(S,O){return S===O?0:null===S?1:null===O?-1:S>O?1:-1}q.toSetString=v?P:function(S){return A(S)?"$"+S:S},q.fromSetString=v?P:function(S){return A(S)?S.slice(1):S},q.compareByOriginalPositions=function(S,O,L){var j=k(S.source,O.source);return 0!==j||0!=(j=S.originalLine-O.originalLine)||0!=(j=S.originalColumn-O.originalColumn)||L||0!=(j=S.generatedColumn-O.generatedColumn)||0!=(j=S.generatedLine-O.generatedLine)?j:k(S.name,O.name)},q.compareByGeneratedPositionsDeflated=function(S,O,L){var j=S.generatedLine-O.generatedLine;return 0!==j||0!=(j=S.generatedColumn-O.generatedColumn)||L||0!==(j=k(S.source,O.source))||0!=(j=S.originalLine-O.originalLine)||0!=(j=S.originalColumn-O.originalColumn)?j:k(S.name,O.name)},q.compareByGeneratedPositionsInflated=function(S,O){var L=S.generatedLine-O.generatedLine;return 0!==L||0!=(L=S.generatedColumn-O.generatedColumn)||0!==(L=k(S.source,O.source))||0!=(L=S.originalLine-O.originalLine)||0!=(L=S.originalColumn-O.originalColumn)?L:k(S.name,O.name)},q.parseSourceMapInput=function(S){return JSON.parse(S.replace(/^\)]}'[^\n]*\n/,""))},q.computeSourceURL=function(S,O,L){if(O=O||"",S&&("/"!==S[S.length-1]&&"/"!==O[0]&&(S+="/"),O=S+O),L){var j=V(L);if(!j)throw new Error("sourceMapURL could not be parsed");if(j.path){var K=j.path.lastIndexOf("/");K>=0&&(j.path=j.path.substring(0,K+1))}O=R(Z(j),O)}return T(O)}},52402:function(ue){ue.exports=function(q){"use strict";var U=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function V(N,E){var x=N[0],S=N[1],O=N[2],L=N[3];S=((S+=((O=((O+=((L=((L+=((x=((x+=(S&O|~S&L)+E[0]-680876936|0)<<7|x>>>25)+S|0)&S|~x&O)+E[1]-389564586|0)<<12|L>>>20)+x|0)&x|~L&S)+E[2]+606105819|0)<<17|O>>>15)+L|0)&L|~O&x)+E[3]-1044525330|0)<<22|S>>>10)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S&O|~S&L)+E[4]-176418897|0)<<7|x>>>25)+S|0)&S|~x&O)+E[5]+1200080426|0)<<12|L>>>20)+x|0)&x|~L&S)+E[6]-1473231341|0)<<17|O>>>15)+L|0)&L|~O&x)+E[7]-45705983|0)<<22|S>>>10)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S&O|~S&L)+E[8]+1770035416|0)<<7|x>>>25)+S|0)&S|~x&O)+E[9]-1958414417|0)<<12|L>>>20)+x|0)&x|~L&S)+E[10]-42063|0)<<17|O>>>15)+L|0)&L|~O&x)+E[11]-1990404162|0)<<22|S>>>10)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S&O|~S&L)+E[12]+1804603682|0)<<7|x>>>25)+S|0)&S|~x&O)+E[13]-40341101|0)<<12|L>>>20)+x|0)&x|~L&S)+E[14]-1502002290|0)<<17|O>>>15)+L|0)&L|~O&x)+E[15]+1236535329|0)<<22|S>>>10)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S&L|O&~L)+E[1]-165796510|0)<<5|x>>>27)+S|0)&O|S&~O)+E[6]-1069501632|0)<<9|L>>>23)+x|0)&S|x&~S)+E[11]+643717713|0)<<14|O>>>18)+L|0)&x|L&~x)+E[0]-373897302|0)<<20|S>>>12)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S&L|O&~L)+E[5]-701558691|0)<<5|x>>>27)+S|0)&O|S&~O)+E[10]+38016083|0)<<9|L>>>23)+x|0)&S|x&~S)+E[15]-660478335|0)<<14|O>>>18)+L|0)&x|L&~x)+E[4]-405537848|0)<<20|S>>>12)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S&L|O&~L)+E[9]+568446438|0)<<5|x>>>27)+S|0)&O|S&~O)+E[14]-1019803690|0)<<9|L>>>23)+x|0)&S|x&~S)+E[3]-187363961|0)<<14|O>>>18)+L|0)&x|L&~x)+E[8]+1163531501|0)<<20|S>>>12)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S&L|O&~L)+E[13]-1444681467|0)<<5|x>>>27)+S|0)&O|S&~O)+E[2]-51403784|0)<<9|L>>>23)+x|0)&S|x&~S)+E[7]+1735328473|0)<<14|O>>>18)+L|0)&x|L&~x)+E[12]-1926607734|0)<<20|S>>>12)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S^O^L)+E[5]-378558|0)<<4|x>>>28)+S|0)^S^O)+E[8]-2022574463|0)<<11|L>>>21)+x|0)^x^S)+E[11]+1839030562|0)<<16|O>>>16)+L|0)^L^x)+E[14]-35309556|0)<<23|S>>>9)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S^O^L)+E[1]-1530992060|0)<<4|x>>>28)+S|0)^S^O)+E[4]+1272893353|0)<<11|L>>>21)+x|0)^x^S)+E[7]-155497632|0)<<16|O>>>16)+L|0)^L^x)+E[10]-1094730640|0)<<23|S>>>9)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S^O^L)+E[13]+681279174|0)<<4|x>>>28)+S|0)^S^O)+E[0]-358537222|0)<<11|L>>>21)+x|0)^x^S)+E[3]-722521979|0)<<16|O>>>16)+L|0)^L^x)+E[6]+76029189|0)<<23|S>>>9)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S^O^L)+E[9]-640364487|0)<<4|x>>>28)+S|0)^S^O)+E[12]-421815835|0)<<11|L>>>21)+x|0)^x^S)+E[15]+530742520|0)<<16|O>>>16)+L|0)^L^x)+E[2]-995338651|0)<<23|S>>>9)+O|0,S=((S+=((L=((L+=(S^((x=((x+=(O^(S|~L))+E[0]-198630844|0)<<6|x>>>26)+S|0)|~O))+E[7]+1126891415|0)<<10|L>>>22)+x|0)^((O=((O+=(x^(L|~S))+E[14]-1416354905|0)<<15|O>>>17)+L|0)|~x))+E[5]-57434055|0)<<21|S>>>11)+O|0,S=((S+=((L=((L+=(S^((x=((x+=(O^(S|~L))+E[12]+1700485571|0)<<6|x>>>26)+S|0)|~O))+E[3]-1894986606|0)<<10|L>>>22)+x|0)^((O=((O+=(x^(L|~S))+E[10]-1051523|0)<<15|O>>>17)+L|0)|~x))+E[1]-2054922799|0)<<21|S>>>11)+O|0,S=((S+=((L=((L+=(S^((x=((x+=(O^(S|~L))+E[8]+1873313359|0)<<6|x>>>26)+S|0)|~O))+E[15]-30611744|0)<<10|L>>>22)+x|0)^((O=((O+=(x^(L|~S))+E[6]-1560198380|0)<<15|O>>>17)+L|0)|~x))+E[13]+1309151649|0)<<21|S>>>11)+O|0,S=((S+=((L=((L+=(S^((x=((x+=(O^(S|~L))+E[4]-145523070|0)<<6|x>>>26)+S|0)|~O))+E[11]-1120210379|0)<<10|L>>>22)+x|0)^((O=((O+=(x^(L|~S))+E[2]+718787259|0)<<15|O>>>17)+L|0)|~x))+E[9]-343485551|0)<<21|S>>>11)+O|0,N[0]=x+N[0]|0,N[1]=S+N[1]|0,N[2]=O+N[2]|0,N[3]=L+N[3]|0}function Z(N){var x,E=[];for(x=0;x<64;x+=4)E[x>>2]=N.charCodeAt(x)+(N.charCodeAt(x+1)<<8)+(N.charCodeAt(x+2)<<16)+(N.charCodeAt(x+3)<<24);return E}function T(N){var x,E=[];for(x=0;x<64;x+=4)E[x>>2]=N[x]+(N[x+1]<<8)+(N[x+2]<<16)+(N[x+3]<<24);return E}function R(N){var S,O,L,j,K,z,E=N.length,x=[1732584193,-271733879,-1732584194,271733878];for(S=64;S<=E;S+=64)V(x,Z(N.substring(S-64,S)));for(O=(N=N.substring(S-64)).length,L=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],S=0;S>2]|=N.charCodeAt(S)<<(S%4<<3);if(L[S>>2]|=128<<(S%4<<3),S>55)for(V(x,L),S=0;S<16;S+=1)L[S]=0;return j=(j=8*E).toString(16).match(/(.*?)(.{0,8})$/),K=parseInt(j[2],16),z=parseInt(j[1],16)||0,L[14]=K,L[15]=z,V(x,L),x}function v(N){var x,E="";for(x=0;x<4;x+=1)E+=U[N>>8*x+4&15]+U[N>>8*x&15];return E}function P(N){var E;for(E=0;EL?new ArrayBuffer(0):(j=L-O,K=new ArrayBuffer(j),z=new Uint8Array(K),J=new Uint8Array(this,O,j),z.set(J),K)}}(),k.prototype.append=function(N){return this.appendBinary(D(N)),this},k.prototype.appendBinary=function(N){this._buff+=N,this._length+=N.length;var x,E=this._buff.length;for(x=64;x<=E;x+=64)V(this._hash,Z(this._buff.substring(x-64,x)));return this._buff=this._buff.substring(x-64),this},k.prototype.end=function(N){var S,L,E=this._buff,x=E.length,O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(S=0;S>2]|=E.charCodeAt(S)<<(S%4<<3);return this._finish(O,x),L=P(this._hash),N&&(L=g(L)),this.reset(),L},k.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},k.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},k.prototype.setState=function(N){return this._buff=N.buff,this._length=N.length,this._hash=N.hash,this},k.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},k.prototype._finish=function(N,E){var S,O,L,x=E;if(N[x>>2]|=128<<(x%4<<3),x>55)for(V(this._hash,N),x=0;x<16;x+=1)N[x]=0;S=(S=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),O=parseInt(S[2],16),L=parseInt(S[1],16)||0,N[14]=O,N[15]=L,V(this._hash,N)},k.hash=function(N,E){return k.hashBinary(D(N),E)},k.hashBinary=function(N,E){var S=P(R(N));return E?g(S):S},(k.ArrayBuffer=function(){this.reset()}).prototype.append=function(N){var S,E=function(N,E,x){var S=new Uint8Array(N.byteLength+E.byteLength);return S.set(new Uint8Array(N)),S.set(new Uint8Array(E),N.byteLength),x?S:S.buffer}(this._buff.buffer,N,!0),x=E.length;for(this._length+=N.byteLength,S=64;S<=x;S+=64)V(this._hash,T(E.subarray(S-64,S)));return this._buff=S-64>2]|=E[O]<<(O%4<<3);return this._finish(S,x),L=P(this._hash),N&&(L=g(L)),this.reset(),L},k.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},k.ArrayBuffer.prototype.getState=function(){var N=k.prototype.getState.call(this);return N.buff=function(N){return String.fromCharCode.apply(null,new Uint8Array(N))}(N.buff),N},k.ArrayBuffer.prototype.setState=function(N){return N.buff=function(N,E){var L,x=N.length,S=new ArrayBuffer(x),O=new Uint8Array(S);for(L=0;L>2]|=N[S]<<(S%4<<3);if(L[S>>2]|=128<<(S%4<<3),S>55)for(V(x,L),S=0;S<16;S+=1)L[S]=0;return j=(j=8*E).toString(16).match(/(.*?)(.{0,8})$/),K=parseInt(j[2],16),z=parseInt(j[1],16)||0,L[14]=K,L[15]=z,V(x,L),x}(new Uint8Array(N)));return E?g(S):S},k}()},49940:function(ue,q,f){var U=f(33499),B=f(54968),V=B;V.v1=U,V.v4=B,ue.exports=V},83702:function(ue){for(var q=[],f=0;f<256;++f)q[f]=(f+256).toString(16).substr(1);ue.exports=function(B,V){var Z=V||0;return[q[B[Z++]],q[B[Z++]],q[B[Z++]],q[B[Z++]],"-",q[B[Z++]],q[B[Z++]],"-",q[B[Z++]],q[B[Z++]],"-",q[B[Z++]],q[B[Z++]],"-",q[B[Z++]],q[B[Z++]],q[B[Z++]],q[B[Z++]],q[B[Z++]],q[B[Z++]]].join("")}},1942:function(ue){var q="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(q){var f=new Uint8Array(16);ue.exports=function(){return q(f),f}}else{var U=new Array(16);ue.exports=function(){for(var Z,V=0;V<16;V++)0==(3&V)&&(Z=4294967296*Math.random()),U[V]=Z>>>((3&V)<<3)&255;return U}}},33499:function(ue,q,f){var V,Z,U=f(1942),B=f(83702),T=0,R=0;ue.exports=function(v,P,D){var M=P&&D||0,A=P||[],_=(v=v||{}).node||V,g=void 0!==v.clockseq?v.clockseq:Z;if(null==_||null==g){var k=U();null==_&&(_=V=[1|k[0],k[1],k[2],k[3],k[4],k[5]]),null==g&&(g=Z=16383&(k[6]<<8|k[7]))}var N=void 0!==v.msecs?v.msecs:(new Date).getTime(),E=void 0!==v.nsecs?v.nsecs:R+1,x=N-T+(E-R)/1e4;if(x<0&&void 0===v.clockseq&&(g=g+1&16383),(x<0||N>T)&&void 0===v.nsecs&&(E=0),E>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");T=N,R=E,Z=g;var S=(1e4*(268435455&(N+=122192928e5))+E)%4294967296;A[M++]=S>>>24&255,A[M++]=S>>>16&255,A[M++]=S>>>8&255,A[M++]=255&S;var O=N/4294967296*1e4&268435455;A[M++]=O>>>8&255,A[M++]=255&O,A[M++]=O>>>24&15|16,A[M++]=O>>>16&255,A[M++]=g>>>8|128,A[M++]=255&g;for(var L=0;L<6;++L)A[M+L]=_[L];return P||B(A)}},54968:function(ue,q,f){var U=f(1942),B=f(83702);ue.exports=function(Z,T,R){var C=T&&R||0;"string"==typeof Z&&(T="binary"===Z?new Array(16):null,Z=null);var v=(Z=Z||{}).random||(Z.rng||U)();if(v[6]=15&v[6]|64,v[8]=63&v[8]|128,T)for(var P=0;P<16;++P)T[C+P]=v[P];return T||B(v)}},3397:function(ue){window,ue.exports=function(q){var f={};function U(B){if(f[B])return f[B].exports;var V=f[B]={i:B,l:!1,exports:{}};return q[B].call(V.exports,V,V.exports,U),V.l=!0,V.exports}return U.m=q,U.c=f,U.d=function(B,V,Z){U.o(B,V)||Object.defineProperty(B,V,{enumerable:!0,get:Z})},U.r=function(B){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(B,"__esModule",{value:!0})},U.t=function(B,V){if(1&V&&(B=U(B)),8&V||4&V&&"object"==typeof B&&B&&B.__esModule)return B;var Z=Object.create(null);if(U.r(Z),Object.defineProperty(Z,"default",{enumerable:!0,value:B}),2&V&&"string"!=typeof B)for(var T in B)U.d(Z,T,function(R){return B[R]}.bind(null,T));return Z},U.n=function(B){var V=B&&B.__esModule?function(){return B.default}:function(){return B};return U.d(V,"a",V),V},U.o=function(B,V){return Object.prototype.hasOwnProperty.call(B,V)},U.p="",U(U.s=0)}([function(q,f,U){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.AttachAddon=void 0;var B=function(){function Z(T,R){this._disposables=[],this._socket=T,this._socket.binaryType="arraybuffer",this._bidirectional=!R||!1!==R.bidirectional}return Z.prototype.activate=function(T){var R=this;this._disposables.push(V(this._socket,"message",function(C){var v=C.data;T.write("string"==typeof v?v:new Uint8Array(v))})),this._bidirectional&&(this._disposables.push(T.onData(function(C){return R._sendData(C)})),this._disposables.push(T.onBinary(function(C){return R._sendBinary(C)}))),this._disposables.push(V(this._socket,"close",function(){return R.dispose()})),this._disposables.push(V(this._socket,"error",function(){return R.dispose()}))},Z.prototype.dispose=function(){this._disposables.forEach(function(T){return T.dispose()})},Z.prototype._sendData=function(T){1===this._socket.readyState&&this._socket.send(T)},Z.prototype._sendBinary=function(T){if(1===this._socket.readyState){for(var R=new Uint8Array(T.length),C=0;CS;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},x.prototype._createAccessibilityTreeNode=function(){var S=document.createElement("div");return S.setAttribute("role","listitem"),S.tabIndex=-1,this._refreshRowDimensions(S),S},x.prototype._onTab=function(S){for(var O=0;O0?this._charsToConsume.shift()!==S&&(this._charsToAnnounce+=S):this._charsToAnnounce+=S,"\n"===S&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=P.tooMuchOutput)),D.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){O._accessibilityTreeRoot.appendChild(O._liveRegion)},0))},x.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,D.isMac&&k.removeElementFromParent(this._liveRegion)},x.prototype._onKey=function(S){this._clearLiveRegion(),this._charsToConsume.push(S)},x.prototype._refreshRows=function(S,O){this._renderRowsDebouncer.refresh(S,O,this._terminal.rows)},x.prototype._renderRows=function(S,O){for(var L=this._terminal.buffer,j=L.lines.length.toString(),K=S;K<=O;K++){var z=L.translateBufferLineToString(L.ydisp+K,!0),J=(L.ydisp+K+1).toString(),ie=this._rowElements[K];ie&&(0===z.length?ie.innerText="\xa0":ie.textContent=z,ie.setAttribute("aria-posinset",J),ie.setAttribute("aria-setsize",j))}this._announceCharacters()},x.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var S=0;S>>0},(C=T.color||(T.color={})).blend=function(A,_){var g=(255&_.rgba)/255;if(1===g)return{css:_.css,rgba:_.rgba};var N=_.rgba>>16&255,E=_.rgba>>8&255,x=A.rgba>>24&255,S=A.rgba>>16&255,O=A.rgba>>8&255,L=x+Math.round(((_.rgba>>24&255)-x)*g),j=S+Math.round((N-S)*g),K=O+Math.round((E-O)*g);return{css:R.toCss(L,j,K),rgba:R.toRgba(L,j,K)}},C.isOpaque=function(A){return 255==(255&A.rgba)},C.ensureContrastRatio=function(A,_,g){var k=P.ensureContrastRatio(A.rgba,_.rgba,g);if(k)return P.toColor(k>>24&255,k>>16&255,k>>8&255)},C.opaque=function(A){var _=(255|A.rgba)>>>0,g=P.toChannels(_);return{css:R.toCss(g[0],g[1],g[2]),rgba:_}},C.opacity=function(A,_){var g=Math.round(255*_),k=P.toChannels(A.rgba),N=k[0],E=k[1],x=k[2];return{css:R.toCss(N,E,x,g),rgba:R.toRgba(N,E,x,g)}},(T.css||(T.css={})).toColor=function(A){switch(A.length){case 7:return{css:A,rgba:(parseInt(A.slice(1),16)<<8|255)>>>0};case 9:return{css:A,rgba:parseInt(A.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(A){function _(g,k,N){var E=g/255,x=k/255,S=N/255;return.2126*(E<=.03928?E/12.92:Math.pow((E+.055)/1.055,2.4))+.7152*(x<=.03928?x/12.92:Math.pow((x+.055)/1.055,2.4))+.0722*(S<=.03928?S/12.92:Math.pow((S+.055)/1.055,2.4))}A.relativeLuminance=function(g){return _(g>>16&255,g>>8&255,255&g)},A.relativeLuminance2=_}(v=T.rgb||(T.rgb={})),function(A){function _(k,N,E){for(var x=k>>24&255,S=k>>16&255,O=k>>8&255,L=N>>24&255,j=N>>16&255,K=N>>8&255,z=M(v.relativeLuminance2(L,K,j),v.relativeLuminance2(x,S,O));z0||j>0||K>0);)L-=Math.max(0,Math.ceil(.1*L)),j-=Math.max(0,Math.ceil(.1*j)),K-=Math.max(0,Math.ceil(.1*K)),z=M(v.relativeLuminance2(L,K,j),v.relativeLuminance2(x,S,O));return(L<<24|j<<16|K<<8|255)>>>0}function g(k,N,E){for(var x=k>>24&255,S=k>>16&255,O=k>>8&255,L=N>>24&255,j=N>>16&255,K=N>>8&255,z=M(v.relativeLuminance2(L,K,j),v.relativeLuminance2(x,S,O));z>>0}A.ensureContrastRatio=function(k,N,E){var x=v.relativeLuminance(k>>8),S=v.relativeLuminance(N>>8);if(M(x,S)>24&255,k>>16&255,k>>8&255,255&k]},A.toColor=function(k,N,E){return{css:R.toCss(k,N,E),rgba:R.toRgba(k,N,E)}}}(P=T.rgba||(T.rgba={})),T.toPaddedHex=D,T.contrastRatio=M},7239:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.ColorContrastCache=void 0;var R=function(){function C(){this._color={},this._rgba={}}return C.prototype.clear=function(){this._color={},this._rgba={}},C.prototype.setCss=function(v,P,D){this._rgba[v]||(this._rgba[v]={}),this._rgba[v][P]=D},C.prototype.getCss=function(v,P){return this._rgba[v]?this._rgba[v][P]:void 0},C.prototype.setColor=function(v,P,D){this._color[v]||(this._color[v]={}),this._color[v][P]=D},C.prototype.getColor=function(v,P){return this._color[v]?this._color[v][P]:void 0},C}();T.ColorContrastCache=R},5680:function(Z,T,R){Object.defineProperty(T,"__esModule",{value:!0}),T.ColorManager=T.DEFAULT_ANSI_COLORS=void 0;var C=R(4774),v=R(7239),P=C.css.toColor("#ffffff"),D=C.css.toColor("#000000"),M=C.css.toColor("#ffffff"),A=C.css.toColor("#000000"),_={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};T.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var k=[C.css.toColor("#2e3436"),C.css.toColor("#cc0000"),C.css.toColor("#4e9a06"),C.css.toColor("#c4a000"),C.css.toColor("#3465a4"),C.css.toColor("#75507b"),C.css.toColor("#06989a"),C.css.toColor("#d3d7cf"),C.css.toColor("#555753"),C.css.toColor("#ef2929"),C.css.toColor("#8ae234"),C.css.toColor("#fce94f"),C.css.toColor("#729fcf"),C.css.toColor("#ad7fa8"),C.css.toColor("#34e2e2"),C.css.toColor("#eeeeec")],N=[0,95,135,175,215,255],E=0;E<216;E++){var x=N[E/36%6|0],S=N[E/6%6|0],O=N[E%6];k.push({css:C.channels.toCss(x,S,O),rgba:C.channels.toRgba(x,S,O)})}for(E=0;E<24;E++){var L=8+10*E;k.push({css:C.channels.toCss(L,L,L),rgba:C.channels.toRgba(L,L,L)})}return k}());var g=function(){function k(N,E){this.allowTransparency=E;var x=N.createElement("canvas");x.width=1,x.height=1;var S=x.getContext("2d");if(!S)throw new Error("Could not get rendering context");this._ctx=S,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new v.ColorContrastCache,this.colors={foreground:P,background:D,cursor:M,cursorAccent:A,selectionTransparent:_,selectionOpaque:C.color.blend(D,_),ansi:T.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return k.prototype.onOptionsChange=function(N){"minimumContrastRatio"===N&&this._contrastCache.clear()},k.prototype.setTheme=function(N){void 0===N&&(N={}),this.colors.foreground=this._parseColor(N.foreground,P),this.colors.background=this._parseColor(N.background,D),this.colors.cursor=this._parseColor(N.cursor,M,!0),this.colors.cursorAccent=this._parseColor(N.cursorAccent,A,!0),this.colors.selectionTransparent=this._parseColor(N.selection,_,!0),this.colors.selectionOpaque=C.color.blend(this.colors.background,this.colors.selectionTransparent),C.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=C.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(N.black,T.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(N.red,T.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(N.green,T.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(N.yellow,T.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(N.blue,T.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(N.magenta,T.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(N.cyan,T.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(N.white,T.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(N.brightBlack,T.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(N.brightRed,T.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(N.brightGreen,T.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(N.brightYellow,T.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(N.brightBlue,T.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(N.brightMagenta,T.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(N.brightCyan,T.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(N.brightWhite,T.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},k.prototype._parseColor=function(N,E,x){if(void 0===x&&(x=this.allowTransparency),void 0===N)return E;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=N,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+N+" is invalid using fallback "+E.css),E;this._ctx.fillRect(0,0,1,1);var S=this._ctx.getImageData(0,0,1,1).data;if(255!==S[3]){if(!x)return console.warn("Color: "+N+" is using transparency, but allowTransparency is false. Using fallback "+E.css+"."),E;var O=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(ie){return Number(ie)}),L=O[0],j=O[1],K=O[2],J=Math.round(255*O[3]);return{rgba:C.channels.toRgba(L,j,K,J),css:N}}return{css:this._ctx.fillStyle,rgba:C.channels.toRgba(S[0],S[1],S[2],S[3])}},k}();T.ColorManager=g},9631:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.removeElementFromParent=void 0,T.removeElementFromParent=function(){for(var R,C=[],v=0;v=0;O--)(E=_[O])&&(S=(x<3?E(S):x>3?E(g,k,S):E(g,k))||S);return x>3&&S&&Object.defineProperty(g,k,S),S},v=this&&this.__param||function(_,g){return function(k,N){g(k,N,_)}};Object.defineProperty(T,"__esModule",{value:!0}),T.MouseZone=T.Linkifier=void 0;var P=R(8460),D=R(2585),M=function(){function _(g,k,N){this._bufferService=g,this._logService=k,this._unicodeService=N,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new P.EventEmitter,this._onHideLinkUnderline=new P.EventEmitter,this._onLinkTooltip=new P.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(_.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),_.prototype.attachToDom=function(g,k){this._element=g,this._mouseZoneManager=k},_.prototype.linkifyRows=function(g,k){var N=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=g,this._rowsToLinkify.end=k):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,g),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,k)),this._mouseZoneManager.clearAll(g,k),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return N._linkifyRows()},_._timeBeforeLatency))},_.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var g=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var k=g.ydisp+this._rowsToLinkify.start;if(!(k>=g.lines.length)){for(var N=g.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,E=Math.ceil(2e3/this._bufferService.cols),x=this._bufferService.buffer.iterator(!1,k,N,E,E);x.hasNext();)for(var S=x.next(),O=0;O=0;k--)if(g.priority<=this._linkMatchers[k].priority)return void this._linkMatchers.splice(k+1,0,g);this._linkMatchers.splice(0,0,g)}else this._linkMatchers.push(g)},_.prototype.deregisterLinkMatcher=function(g){for(var k=0;k>9&511:void 0;N.validationCallback?N.validationCallback(z,function(se){x._rowsTimeoutId||se&&x._addLink(J[1],J[0]-x._bufferService.buffer.ydisp,z,N,ae)}):j._addLink(J[1],J[0]-j._bufferService.buffer.ydisp,z,N,ae)},j=this;null!==(E=S.exec(k))&&"break"!==L(););},_.prototype._addLink=function(g,k,N,E,x){var S=this;if(this._mouseZoneManager&&this._element){var O=this._unicodeService.getStringCellWidth(N),L=g%this._bufferService.cols,j=k+Math.floor(g/this._bufferService.cols),K=(L+O)%this._bufferService.cols,z=j+Math.floor((L+O)/this._bufferService.cols);0===K&&(K=this._bufferService.cols,z--),this._mouseZoneManager.add(new A(L+1,j+1,K+1,z+1,function(J){if(E.handler)return E.handler(J,N);var ie=window.open();ie?(ie.opener=null,ie.location.href=N):console.warn("Opening link blocked as opener could not be cleared")},function(){S._onShowLinkUnderline.fire(S._createLinkHoverEvent(L,j,K,z,x)),S._element.classList.add("xterm-cursor-pointer")},function(J){S._onLinkTooltip.fire(S._createLinkHoverEvent(L,j,K,z,x)),E.hoverTooltipCallback&&E.hoverTooltipCallback(J,N,{start:{x:L,y:j},end:{x:K,y:z}})},function(){S._onHideLinkUnderline.fire(S._createLinkHoverEvent(L,j,K,z,x)),S._element.classList.remove("xterm-cursor-pointer"),E.hoverLeaveCallback&&E.hoverLeaveCallback()},function(J){return!E.willLinkActivate||E.willLinkActivate(J,N)}))}},_.prototype._createLinkHoverEvent=function(g,k,N,E,x){return{x1:g,y1:k,x2:N,y2:E,cols:this._bufferService.cols,fg:x}},_._timeBeforeLatency=200,_=C([v(0,D.IBufferService),v(1,D.ILogService),v(2,D.IUnicodeService)],_)}();T.Linkifier=M;var A=function(g,k,N,E,x,S,O,L,j){this.x1=g,this.y1=k,this.x2=N,this.y2=E,this.clickCallback=x,this.hoverCallback=S,this.tooltipCallback=O,this.leaveCallback=L,this.willLinkActivate=j};T.MouseZone=A},6465:function(Z,T,R){var C,v=this&&this.__extends||(C=function(E,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var L in O)Object.prototype.hasOwnProperty.call(O,L)&&(S[L]=O[L])})(E,x)},function(N,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function x(){this.constructor=N}C(N,E),N.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),P=this&&this.__decorate||function(N,E,x,S){var O,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(N,E,x,S);else for(var K=N.length-1;K>=0;K--)(O=N[K])&&(j=(L<3?O(j):L>3?O(E,x,j):O(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(N,E){return function(x,S){E(x,S,N)}};Object.defineProperty(T,"__esModule",{value:!0}),T.Linkifier2=void 0;var M=R(2585),A=R(8460),_=R(844),g=R(3656),k=function(N){function E(x){var S=N.call(this)||this;return S._bufferService=x,S._linkProviders=[],S._linkCacheDisposables=[],S._isMouseOut=!0,S._activeLine=-1,S._onShowLinkUnderline=S.register(new A.EventEmitter),S._onHideLinkUnderline=S.register(new A.EventEmitter),S.register(_.getDisposeArrayDisposable(S._linkCacheDisposables)),S}return v(E,N),Object.defineProperty(E.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),E.prototype.registerLinkProvider=function(x){var S=this;return this._linkProviders.push(x),{dispose:function(){var L=S._linkProviders.indexOf(x);-1!==L&&S._linkProviders.splice(L,1)}}},E.prototype.attachToDom=function(x,S,O){var L=this;this._element=x,this._mouseService=S,this._renderService=O,this.register(g.addDisposableDomListener(this._element,"mouseleave",function(){L._isMouseOut=!0,L._clearCurrentLink()})),this.register(g.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(g.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},E.prototype._onMouseMove=function(x){if(this._lastMouseEvent=x,this._element&&this._mouseService){var S=this._positionFromMouseEvent(x,this._element,this._mouseService);if(S){this._isMouseOut=!1;for(var O=x.composedPath(),L=0;Lx?this._bufferService.cols:z.link.range.end.x,te=z.link.range.start.y=x&&this._currentLink.link.range.end.y<=S)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,_.disposeArray(this._linkCacheDisposables))},E.prototype._handleNewLink=function(x){var S=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var O=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);O&&this._linkAtPosition(x.link,O)&&(this._currentLink=x,this._currentLink.state={decorations:{underline:void 0===x.link.decorations||x.link.decorations.underline,pointerCursor:void 0===x.link.decorations||x.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,x.link,this._lastMouseEvent),x.link.decorations={},Object.defineProperties(x.link.decorations,{pointerCursor:{get:function(){var j,K;return null===(K=null===(j=S._currentLink)||void 0===j?void 0:j.state)||void 0===K?void 0:K.decorations.pointerCursor},set:function(j){var K,z;(null===(K=S._currentLink)||void 0===K?void 0:K.state)&&S._currentLink.state.decorations.pointerCursor!==j&&(S._currentLink.state.decorations.pointerCursor=j,S._currentLink.state.isHovered&&(null===(z=S._element)||void 0===z||z.classList.toggle("xterm-cursor-pointer",j)))}},underline:{get:function(){var j,K;return null===(K=null===(j=S._currentLink)||void 0===j?void 0:j.state)||void 0===K?void 0:K.decorations.underline},set:function(j){var K,z,J;(null===(K=S._currentLink)||void 0===K?void 0:K.state)&&(null===(J=null===(z=S._currentLink)||void 0===z?void 0:z.state)||void 0===J?void 0:J.decorations.underline)!==j&&(S._currentLink.state.decorations.underline=j,S._currentLink.state.isHovered&&S._fireUnderlineEvent(x.link,j))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(L){S._clearCurrentLink(0===L.start?0:L.start+1+S._bufferService.buffer.ydisp,L.end+1+S._bufferService.buffer.ydisp)})))}},E.prototype._linkHover=function(x,S,O){var L;(null===(L=this._currentLink)||void 0===L?void 0:L.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(S,!0),this._currentLink.state.decorations.pointerCursor&&x.classList.add("xterm-cursor-pointer")),S.hover&&S.hover(O,S.text)},E.prototype._fireUnderlineEvent=function(x,S){var O=x.range,L=this._bufferService.buffer.ydisp,j=this._createLinkUnderlineEvent(O.start.x-1,O.start.y-L-1,O.end.x,O.end.y-L-1,void 0);(S?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(j)},E.prototype._linkLeave=function(x,S,O){var L;(null===(L=this._currentLink)||void 0===L?void 0:L.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(S,!1),this._currentLink.state.decorations.pointerCursor&&x.classList.remove("xterm-cursor-pointer")),S.leave&&S.leave(O,S.text)},E.prototype._linkAtPosition=function(x,S){var L=x.range.start.yS.y;return(x.range.start.y===x.range.end.y&&x.range.start.x<=S.x&&x.range.end.x>=S.x||L&&x.range.end.x>=S.x||j&&x.range.start.x<=S.x||L&&j)&&x.range.start.y<=S.y&&x.range.end.y>=S.y},E.prototype._positionFromMouseEvent=function(x,S,O){var L=O.getCoords(x,S,this._bufferService.cols,this._bufferService.rows);if(L)return{x:L[0],y:L[1]+this._bufferService.buffer.ydisp}},E.prototype._createLinkUnderlineEvent=function(x,S,O,L,j){return{x1:x,y1:S,x2:O,y2:L,cols:this._bufferService.cols,fg:j}},P([D(0,M.IBufferService)],E)}(_.Disposable);T.Linkifier2=k},9042:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.tooMuchOutput=T.promptLabel=void 0,T.promptLabel="Terminal input",T.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(Z,T,R){var C,v=this&&this.__extends||(C=function(E,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var L in O)Object.prototype.hasOwnProperty.call(O,L)&&(S[L]=O[L])})(E,x)},function(N,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function x(){this.constructor=N}C(N,E),N.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),P=this&&this.__decorate||function(N,E,x,S){var O,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(N,E,x,S);else for(var K=N.length-1;K>=0;K--)(O=N[K])&&(j=(L<3?O(j):L>3?O(E,x,j):O(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(N,E){return function(x,S){E(x,S,N)}};Object.defineProperty(T,"__esModule",{value:!0}),T.MouseZoneManager=void 0;var M=R(844),A=R(3656),_=R(4725),g=R(2585),k=function(N){function E(x,S,O,L,j,K){var z=N.call(this)||this;return z._element=x,z._screenElement=S,z._bufferService=O,z._mouseService=L,z._selectionService=j,z._optionsService=K,z._zones=[],z._areZonesActive=!1,z._lastHoverCoords=[void 0,void 0],z._initialSelectionLength=0,z.register(A.addDisposableDomListener(z._element,"mousedown",function(J){return z._onMouseDown(J)})),z._mouseMoveListener=function(J){return z._onMouseMove(J)},z._mouseLeaveListener=function(J){return z._onMouseLeave(J)},z._clickListener=function(J){return z._onClick(J)},z}return v(E,N),E.prototype.dispose=function(){N.prototype.dispose.call(this),this._deactivate()},E.prototype.add=function(x){this._zones.push(x),1===this._zones.length&&this._activate()},E.prototype.clearAll=function(x,S){if(0!==this._zones.length){x&&S||(x=0,S=this._bufferService.rows-1);for(var O=0;Ox&&L.y1<=S+1||L.y2>x&&L.y2<=S+1||L.y1S+1)&&(this._currentZone&&this._currentZone===L&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(O--,1))}0===this._zones.length&&this._deactivate()}},E.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},E.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},E.prototype._onMouseMove=function(x){this._lastHoverCoords[0]===x.pageX&&this._lastHoverCoords[1]===x.pageY||(this._onHover(x),this._lastHoverCoords=[x.pageX,x.pageY])},E.prototype._onHover=function(x){var S=this,O=this._findZoneEventAt(x);O!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),O&&(this._currentZone=O,O.hoverCallback&&O.hoverCallback(x),this._tooltipTimeout=window.setTimeout(function(){return S._onTooltip(x)},this._optionsService.options.linkTooltipHoverDuration)))},E.prototype._onTooltip=function(x){this._tooltipTimeout=void 0;var S=this._findZoneEventAt(x);null==S||S.tooltipCallback(x)},E.prototype._onMouseDown=function(x){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var S=this._findZoneEventAt(x);(null==S?void 0:S.willLinkActivate(x))&&(x.preventDefault(),x.stopImmediatePropagation())}},E.prototype._onMouseLeave=function(x){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},E.prototype._onClick=function(x){var S=this._findZoneEventAt(x),O=this._getSelectionLength();S&&O===this._initialSelectionLength&&(S.clickCallback(x),x.preventDefault(),x.stopImmediatePropagation())},E.prototype._getSelectionLength=function(){var x=this._selectionService.selectionText;return x?x.length:0},E.prototype._findZoneEventAt=function(x){var S=this._mouseService.getCoords(x,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(S)for(var O=S[0],L=S[1],j=0;j=K.x1&&O=K.x1||L===K.y2&&OK.y1&&L4)&&je.coreMouseService.triggerMouseEvent({col:en.x-33,row:en.y-33,button:Vt,action:bt,ctrl:Ct.ctrlKey,alt:Ct.altKey,shift:Ct.shiftKey})}var Bt={mouseup:null,wheel:null,mousedrag:null,mousemove:null},xt=function(Vt){return Qe(Vt),Vt.buttons||(Oe._document.removeEventListener("mouseup",Bt.mouseup),Bt.mousedrag&&Oe._document.removeEventListener("mousemove",Bt.mousedrag)),Oe.cancel(Vt)},vt=function(Vt){return Qe(Vt),Vt.preventDefault(),Oe.cancel(Vt)},Qt=function(Vt){Vt.buttons&&Qe(Vt)},Ht=function(Vt){Vt.buttons||Qe(Vt)};this.register(this.coreMouseService.onProtocolChange(function(Ct){Ct?("debug"===Oe.optionsService.options.logLevel&&Oe._logService.debug("Binding to mouse events:",Oe.coreMouseService.explainEvents(Ct)),Oe.element.classList.add("enable-mouse-events"),Oe._selectionService.disable()):(Oe._logService.debug("Unbinding from mouse events."),Oe.element.classList.remove("enable-mouse-events"),Oe._selectionService.enable()),8&Ct?Bt.mousemove||(dt.addEventListener("mousemove",Ht),Bt.mousemove=Ht):(dt.removeEventListener("mousemove",Bt.mousemove),Bt.mousemove=null),16&Ct?Bt.wheel||(dt.addEventListener("wheel",vt,{passive:!1}),Bt.wheel=vt):(dt.removeEventListener("wheel",Bt.wheel),Bt.wheel=null),2&Ct?Bt.mouseup||(Bt.mouseup=xt):(Oe._document.removeEventListener("mouseup",Bt.mouseup),Bt.mouseup=null),4&Ct?Bt.mousedrag||(Bt.mousedrag=Qt):(Oe._document.removeEventListener("mousemove",Bt.mousedrag),Bt.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register(x.addDisposableDomListener(dt,"mousedown",function(Ct){if(Ct.preventDefault(),Oe.focus(),Oe.coreMouseService.areMouseEventsActive&&!Oe._selectionService.shouldForceSelection(Ct))return Qe(Ct),Bt.mouseup&&Oe._document.addEventListener("mouseup",Bt.mouseup),Bt.mousedrag&&Oe._document.addEventListener("mousemove",Bt.mousedrag),Oe.cancel(Ct)})),this.register(x.addDisposableDomListener(dt,"wheel",function(Ct){if(!Bt.wheel&&!Oe.buffer.hasScrollback){var Vt=Oe.viewport.getLinesScrolled(Ct);if(0===Vt)return;for(var bt=A.C0.ESC+(Oe.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Ct.deltaY<0?"A":"B"),en="",Nt=0;Nt47)},xe.prototype._keyUp=function(Oe){var je;this._customKeyEventHandler&&!1===this._customKeyEventHandler(Oe)||(16===(je=Oe).keyCode||17===je.keyCode||18===je.keyCode||this.focus(),this.updateCursorStyle(Oe),this._keyPressHandled=!1)},xe.prototype._keyPress=function(Oe){var je;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&!1===this._customKeyEventHandler(Oe))return!1;if(this.cancel(Oe),Oe.charCode)je=Oe.charCode;else if(null==Oe.which)je=Oe.keyCode;else{if(0===Oe.which||0===Oe.charCode)return!1;je=Oe.which}return!(!je||(Oe.altKey||Oe.ctrlKey||Oe.metaKey)&&!this._isThirdLevelShift(this.browser,Oe)||(je=String.fromCharCode(je),this._onKey.fire({key:je,domEvent:Oe}),this._showCursor(),this.coreService.triggerDataEvent(je,!0),this._keyPressHandled=!0,0))},xe.prototype._inputEvent=function(Oe){return!(!Oe.data||"insertText"!==Oe.inputType||this.optionsService.options.screenReaderMode||this._keyPressHandled||(this.coreService.triggerDataEvent(Oe.data,!0),this.cancel(Oe),0))},xe.prototype.bell=function(){var Oe;this._soundBell()&&(null===(Oe=this._soundService)||void 0===Oe||Oe.playBellSound()),this._onBell.fire()},xe.prototype.resize=function(Oe,je){Oe!==this.cols||je!==this.rows?Ft.prototype.resize.call(this,Oe,je):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},xe.prototype._afterResize=function(Oe,je){var dt,Qe;null===(dt=this._charSizeService)||void 0===dt||dt.measure(),null===(Qe=this.viewport)||void 0===Qe||Qe.syncScrollArea(!0)},xe.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var Oe=1;Oe=this._debounceThresholdMS)this._lastRefreshMs=A,this._innerRefresh();else if(!this._additionalRefreshRequested){var g=this._debounceThresholdMS-(A-this._lastRefreshMs);this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){M._lastRefreshMs=Date.now(),M._innerRefresh(),M._additionalRefreshRequested=!1,M._refreshTimeoutID=void 0},g)}},C.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var v=Math.max(this._rowStart,0),P=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(v,P)}},C}();T.TimeBasedDebouncer=R},1680:function(Z,T,R){var C,v=this&&this.__extends||(C=function(E,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var L in O)Object.prototype.hasOwnProperty.call(O,L)&&(S[L]=O[L])})(E,x)},function(N,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function x(){this.constructor=N}C(N,E),N.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),P=this&&this.__decorate||function(N,E,x,S){var O,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(N,E,x,S);else for(var K=N.length-1;K>=0;K--)(O=N[K])&&(j=(L<3?O(j):L>3?O(E,x,j):O(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(N,E){return function(x,S){E(x,S,N)}};Object.defineProperty(T,"__esModule",{value:!0}),T.Viewport=void 0;var M=R(844),A=R(3656),_=R(4725),g=R(2585),k=function(N){function E(x,S,O,L,j,K,z){var J=N.call(this)||this;return J._scrollLines=x,J._viewportElement=S,J._scrollArea=O,J._bufferService=L,J._optionsService=j,J._charSizeService=K,J._renderService=z,J.scrollBarWidth=0,J._currentRowHeight=0,J._currentScaledCellHeight=0,J._lastRecordedBufferLength=0,J._lastRecordedViewportHeight=0,J._lastRecordedBufferHeight=0,J._lastTouchY=0,J._lastScrollTop=0,J._lastHadScrollBar=!1,J._wheelPartialScroll=0,J._refreshAnimationFrame=null,J._ignoreNextScrollEvent=!1,J.scrollBarWidth=J._viewportElement.offsetWidth-J._scrollArea.offsetWidth||15,J._lastHadScrollBar=!0,J.register(A.addDisposableDomListener(J._viewportElement,"scroll",J._onScroll.bind(J))),J._activeBuffer=J._bufferService.buffer,J.register(J._bufferService.buffers.onBufferActivate(function(ie){return J._activeBuffer=ie.activeBuffer})),J._renderDimensions=J._renderService.dimensions,J.register(J._renderService.onDimensionsChange(function(ie){return J._renderDimensions=ie})),setTimeout(function(){return J.syncScrollArea()},0),J}return v(E,N),E.prototype.onThemeChange=function(x){this._viewportElement.style.backgroundColor=x.background.css},E.prototype._refresh=function(x){var S=this;if(x)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return S._innerRefresh()}))},E.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var x=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==x&&(this._lastRecordedBufferHeight=x,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var S=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==S&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=S),this.scrollBarWidth=0===this._optionsService.options.scrollback?0:this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this._lastHadScrollBar=this.scrollBarWidth>0,this._viewportElement.style.width=(this._renderService.dimensions.actualCellWidth*this._bufferService.cols+this.scrollBarWidth).toString()+"px",this._refreshAnimationFrame=null},E.prototype.syncScrollArea=function(x){if(void 0===x&&(x=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(x);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight?this._lastHadScrollBar!==this._optionsService.options.scrollback>0&&this._refresh(x):this._refresh(x)},E.prototype._onScroll=function(x){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var S=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(S)}},E.prototype._bubbleScroll=function(x,S){return!(S<0&&0!==this._viewportElement.scrollTop||S>0&&this._viewportElement.scrollTop+this._lastRecordedViewportHeight0?1:-1),this._wheelPartialScroll%=1):x.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(S*=this._bufferService.rows),S},E.prototype._applyScrollModifier=function(x,S){var O=this._optionsService.options.fastScrollModifier;return"alt"===O&&S.altKey||"ctrl"===O&&S.ctrlKey||"shift"===O&&S.shiftKey?x*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:x*this._optionsService.options.scrollSensitivity},E.prototype.onTouchStart=function(x){this._lastTouchY=x.touches[0].pageY},E.prototype.onTouchMove=function(x){var S=this._lastTouchY-x.touches[0].pageY;return this._lastTouchY=x.touches[0].pageY,0!==S&&(this._viewportElement.scrollTop+=S,this._bubbleScroll(x,S))},P([D(3,g.IBufferService),D(4,g.IOptionsService),D(5,_.ICharSizeService),D(6,_.IRenderService)],E)}(M.Disposable);T.Viewport=k},2950:function(Z,T,R){var C=this&&this.__decorate||function(A,_,g,k){var N,E=arguments.length,x=E<3?_:null===k?k=Object.getOwnPropertyDescriptor(_,g):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)x=Reflect.decorate(A,_,g,k);else for(var S=A.length-1;S>=0;S--)(N=A[S])&&(x=(E<3?N(x):E>3?N(_,g,x):N(_,g))||x);return E>3&&x&&Object.defineProperty(_,g,x),x},v=this&&this.__param||function(A,_){return function(g,k){_(g,k,A)}};Object.defineProperty(T,"__esModule",{value:!0}),T.CompositionHelper=void 0;var P=R(4725),D=R(2585),M=function(){function A(_,g,k,N,E,x){this._textarea=_,this._compositionView=g,this._bufferService=k,this._optionsService=N,this._coreService=E,this._renderService=x,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(A.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),A.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},A.prototype.compositionupdate=function(_){var g=this;this._compositionView.textContent=_.data,this.updateCompositionElements(),setTimeout(function(){g._compositionPosition.end=g._textarea.value.length},0)},A.prototype.compositionend=function(){this._finalizeComposition(!0)},A.prototype.keydown=function(_){if(this._isComposing||this._isSendingComposition){if(229===_.keyCode||16===_.keyCode||17===_.keyCode||18===_.keyCode)return!1;this._finalizeComposition(!1)}return 229!==_.keyCode||(this._handleAnyTextareaChanges(),!1)},A.prototype._finalizeComposition=function(_){var g=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,_){var k={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var E;g._isSendingComposition&&(g._isSendingComposition=!1,k.start+=g._dataAlreadySent.length,(E=g._isComposing?g._textarea.value.substring(k.start,k.end):g._textarea.value.substring(k.start)).length>0&&g._coreService.triggerDataEvent(E,!0))},0)}else{this._isSendingComposition=!1;var N=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(N,!0)}},A.prototype._handleAnyTextareaChanges=function(){var _=this,g=this._textarea.value;setTimeout(function(){if(!_._isComposing){var k=_._textarea.value.replace(g,"");k.length>0&&(_._dataAlreadySent=k,_._coreService.triggerDataEvent(k,!0))}},0)},A.prototype.updateCompositionElements=function(_){var g=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var k=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),N=this._renderService.dimensions.actualCellHeight,E=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,x=k*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=x+"px",this._compositionView.style.top=E+"px",this._compositionView.style.height=N+"px",this._compositionView.style.lineHeight=N+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var S=this._compositionView.getBoundingClientRect();this._textarea.style.left=x+"px",this._textarea.style.top=E+"px",this._textarea.style.width=Math.max(S.width,1)+"px",this._textarea.style.height=Math.max(S.height,1)+"px",this._textarea.style.lineHeight=S.height+"px"}_||setTimeout(function(){return g.updateCompositionElements(!0)},0)}},C([v(2,D.IBufferService),v(3,D.IOptionsService),v(4,D.ICoreService),v(5,P.IRenderService)],A)}();T.CompositionHelper=M},9806:function(Z,T){function R(C,v){var P=v.getBoundingClientRect();return[C.clientX-P.left,C.clientY-P.top]}Object.defineProperty(T,"__esModule",{value:!0}),T.getRawByteCoords=T.getCoords=T.getCoordsRelativeToElement=void 0,T.getCoordsRelativeToElement=R,T.getCoords=function(C,v,P,D,M,A,_,g){if(M){var k=R(C,v);if(k)return k[0]=Math.ceil((k[0]+(g?A/2:0))/A),k[1]=Math.ceil(k[1]/_),k[0]=Math.min(Math.max(k[0],1),P+(g?1:0)),k[1]=Math.min(Math.max(k[1],1),D),k}},T.getRawByteCoords=function(C){if(C)return{x:C[0]+32,y:C[1]+32}}},9504:function(Z,T,R){Object.defineProperty(T,"__esModule",{value:!0}),T.moveToCellSequence=void 0;var C=R(2584);function v(g,k,N,E){var x=g-P(N,g),S=k-P(N,k);return _(Math.abs(x-S)-function(O,L,j){for(var K=0,z=O-P(j,O),J=L-P(j,L),ie=0;ie=0&&kk?"A":"B"}function M(g,k,N,E,x,S){for(var O=g,L=k,j="";O!==N||L!==E;)O+=x?1:-1,x&&O>S.cols-1?(j+=S.buffer.translateBufferLineToString(L,!1,g,O),O=0,g=0,L++):!x&&O<0&&(j+=S.buffer.translateBufferLineToString(L,!1,0,g+1),g=O=S.cols-1,L--);return j+S.buffer.translateBufferLineToString(L,!1,g,O)}function A(g,k){return C.C0.ESC+(k?"O":"[")+g}function _(g,k){g=Math.floor(g);for(var N="",E=0;E0?J-P(ie,J):K;var le,oe,Ae,be,it,_t,se=J,ce=(le=j,oe=K,_t=v(Ae=z,be=J,it=ie,te).length>0?be-P(it,be):oe,le=Ae&&_tg?"D":"C",_(Math.abs(S-g),A(x,E));x=O>k?"D":"C";var L=Math.abs(O-k);return _(function(j,K){return K.cols-j}(O>k?g:S,N)+(L-1)*N.cols+1+((O>k?S:g)-1),A(x,E))}},1546:function(Z,T,R){Object.defineProperty(T,"__esModule",{value:!0}),T.BaseRenderLayer=void 0;var C=R(643),v=R(8803),P=R(1420),D=R(3734),M=R(1752),A=R(4774),_=R(9631),g=R(8978),k=function(){function N(E,x,S,O,L,j,K,z){this._container=E,this._alpha=O,this._colors=L,this._rendererId=j,this._bufferService=K,this._optionsService=z,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+x+"-layer"),this._canvas.style.zIndex=S.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return N.prototype.dispose=function(){var E;_.removeElementFromParent(this._canvas),null===(E=this._charAtlas)||void 0===E||E.dispose()},N.prototype._initCanvas=function(){this._ctx=M.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},N.prototype.onOptionsChanged=function(){},N.prototype.onBlur=function(){},N.prototype.onFocus=function(){},N.prototype.onCursorMove=function(){},N.prototype.onGridChanged=function(E,x){},N.prototype.onSelectionChanged=function(E,x,S){void 0===S&&(S=!1)},N.prototype.setColors=function(E){this._refreshCharAtlas(E)},N.prototype._setTransparency=function(E){if(E!==this._alpha){var x=this._canvas;this._alpha=E,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,x),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},N.prototype._refreshCharAtlas=function(E){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=P.acquireCharAtlas(this._optionsService.options,this._rendererId,E,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},N.prototype.resize=function(E){this._scaledCellWidth=E.scaledCellWidth,this._scaledCellHeight=E.scaledCellHeight,this._scaledCharWidth=E.scaledCharWidth,this._scaledCharHeight=E.scaledCharHeight,this._scaledCharLeft=E.scaledCharLeft,this._scaledCharTop=E.scaledCharTop,this._canvas.width=E.scaledCanvasWidth,this._canvas.height=E.scaledCanvasHeight,this._canvas.style.width=E.canvasWidth+"px",this._canvas.style.height=E.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},N.prototype._fillCells=function(E,x,S,O){this._ctx.fillRect(E*this._scaledCellWidth,x*this._scaledCellHeight,S*this._scaledCellWidth,O*this._scaledCellHeight)},N.prototype._fillMiddleLineAtCells=function(E,x,S){void 0===S&&(S=1);var O=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(E*this._scaledCellWidth,(x+1)*this._scaledCellHeight-O-window.devicePixelRatio,S*this._scaledCellWidth,window.devicePixelRatio)},N.prototype._fillBottomLineAtCells=function(E,x,S){void 0===S&&(S=1),this._ctx.fillRect(E*this._scaledCellWidth,(x+1)*this._scaledCellHeight-window.devicePixelRatio-1,S*this._scaledCellWidth,window.devicePixelRatio)},N.prototype._fillLeftLineAtCell=function(E,x,S){this._ctx.fillRect(E*this._scaledCellWidth,x*this._scaledCellHeight,window.devicePixelRatio*S,this._scaledCellHeight)},N.prototype._strokeRectAtCell=function(E,x,S,O){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(E*this._scaledCellWidth+window.devicePixelRatio/2,x*this._scaledCellHeight+window.devicePixelRatio/2,S*this._scaledCellWidth-window.devicePixelRatio,O*this._scaledCellHeight-window.devicePixelRatio)},N.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},N.prototype._clearCells=function(E,x,S,O){this._alpha?this._ctx.clearRect(E*this._scaledCellWidth,x*this._scaledCellHeight,S*this._scaledCellWidth,O*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(E*this._scaledCellWidth,x*this._scaledCellHeight,S*this._scaledCellWidth,O*this._scaledCellHeight))},N.prototype._fillCharTrueColor=function(E,x,S){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="ideographic",this._clipRow(S);var O=!1;!1!==this._optionsService.options.customGlyphs&&(O=g.tryDrawCustomChar(this._ctx,E.getChars(),x*this._scaledCellWidth,S*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),O||this._ctx.fillText(E.getChars(),x*this._scaledCellWidth+this._scaledCharLeft,S*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},N.prototype._drawChars=function(E,x,S){var O,L,j=this._getContrastColor(E);j||E.isFgRGB()||E.isBgRGB()?this._drawUncachedChars(E,x,S,j):(E.isInverse()?(O=E.isBgDefault()?v.INVERTED_DEFAULT_COLOR:E.getBgColor(),L=E.isFgDefault()?v.INVERTED_DEFAULT_COLOR:E.getFgColor()):(L=E.isBgDefault()?C.DEFAULT_COLOR:E.getBgColor(),O=E.isFgDefault()?C.DEFAULT_COLOR:E.getFgColor()),O+=this._optionsService.options.drawBoldTextInBrightColors&&E.isBold()&&O<8?8:0,this._currentGlyphIdentifier.chars=E.getChars()||C.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=E.getCode()||C.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=L,this._currentGlyphIdentifier.fg=O,this._currentGlyphIdentifier.bold=!!E.isBold(),this._currentGlyphIdentifier.dim=!!E.isDim(),this._currentGlyphIdentifier.italic=!!E.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,x*this._scaledCellWidth+this._scaledCharLeft,S*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(E,x,S))},N.prototype._drawUncachedChars=function(E,x,S,O){if(this._ctx.save(),this._ctx.font=this._getFont(!!E.isBold(),!!E.isItalic()),this._ctx.textBaseline="ideographic",E.isInverse())if(O)this._ctx.fillStyle=O.css;else if(E.isBgDefault())this._ctx.fillStyle=A.color.opaque(this._colors.background).css;else if(E.isBgRGB())this._ctx.fillStyle="rgb("+D.AttributeData.toColorRGB(E.getBgColor()).join(",")+")";else{var L=E.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&E.isBold()&&L<8&&(L+=8),this._ctx.fillStyle=this._colors.ansi[L].css}else if(O)this._ctx.fillStyle=O.css;else if(E.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(E.isFgRGB())this._ctx.fillStyle="rgb("+D.AttributeData.toColorRGB(E.getFgColor()).join(",")+")";else{var j=E.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&E.isBold()&&j<8&&(j+=8),this._ctx.fillStyle=this._colors.ansi[j].css}this._clipRow(S),E.isDim()&&(this._ctx.globalAlpha=v.DIM_OPACITY);var K=!1;!1!==this._optionsService.options.customGlyphs&&(K=g.tryDrawCustomChar(this._ctx,E.getChars(),x*this._scaledCellWidth,S*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),K||this._ctx.fillText(E.getChars(),x*this._scaledCellWidth+this._scaledCharLeft,S*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},N.prototype._clipRow=function(E){this._ctx.beginPath(),this._ctx.rect(0,E*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},N.prototype._getFont=function(E,x){return(x?"italic":"")+" "+(E?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},N.prototype._getContrastColor=function(E){if(1!==this._optionsService.options.minimumContrastRatio){var x=this._colors.contrastCache.getColor(E.bg,E.fg);if(void 0!==x)return x||void 0;var S=E.getFgColor(),O=E.getFgColorMode(),L=E.getBgColor(),j=E.getBgColorMode(),K=!!E.isInverse(),z=!!E.isInverse();if(K){var J=S;S=L,L=J;var ie=O;O=j,j=ie}var te=this._resolveBackgroundRgba(j,L,K),ae=this._resolveForegroundRgba(O,S,K,z),se=A.rgba.ensureContrastRatio(te,ae,this._optionsService.options.minimumContrastRatio);if(se){var ce={css:A.channels.toCss(se>>24&255,se>>16&255,se>>8&255),rgba:se};return this._colors.contrastCache.setColor(E.bg,E.fg,ce),ce}this._colors.contrastCache.setColor(E.bg,E.fg,null)}},N.prototype._resolveBackgroundRgba=function(E,x,S){switch(E){case 16777216:case 33554432:return this._colors.ansi[x].rgba;case 50331648:return x<<8;case 0:default:return S?this._colors.foreground.rgba:this._colors.background.rgba}},N.prototype._resolveForegroundRgba=function(E,x,S,O){switch(E){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&O&&x<8&&(x+=8),this._colors.ansi[x].rgba;case 50331648:return x<<8;case 0:default:return S?this._colors.background.rgba:this._colors.foreground.rgba}},N}();T.BaseRenderLayer=k},2512:function(Z,T,R){var C,v=this&&this.__extends||(C=function(S,O){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,j){L.__proto__=j}||function(L,j){for(var K in j)Object.prototype.hasOwnProperty.call(j,K)&&(L[K]=j[K])})(S,O)},function(x,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function O(){this.constructor=x}C(x,S),x.prototype=null===S?Object.create(S):(O.prototype=S.prototype,new O)}),P=this&&this.__decorate||function(x,S,O,L){var j,K=arguments.length,z=K<3?S:null===L?L=Object.getOwnPropertyDescriptor(S,O):L;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(x,S,O,L);else for(var J=x.length-1;J>=0;J--)(j=x[J])&&(z=(K<3?j(z):K>3?j(S,O,z):j(S,O))||z);return K>3&&z&&Object.defineProperty(S,O,z),z},D=this&&this.__param||function(x,S){return function(O,L){S(O,L,x)}};Object.defineProperty(T,"__esModule",{value:!0}),T.CursorRenderLayer=void 0;var M=R(1546),A=R(511),_=R(2585),g=R(4725),k=600,N=function(x){function S(O,L,j,K,z,J,ie,te,ae){var se=x.call(this,O,"cursor",L,!0,j,K,J,ie)||this;return se._onRequestRedraw=z,se._coreService=te,se._coreBrowserService=ae,se._cell=new A.CellData,se._state={x:0,y:0,isFocused:!1,style:"",width:0},se._cursorRenderers={bar:se._renderBarCursor.bind(se),block:se._renderBlockCursor.bind(se),underline:se._renderUnderlineCursor.bind(se)},se}return v(S,x),S.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),x.prototype.dispose.call(this)},S.prototype.resize=function(O){x.prototype.resize.call(this,O),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},S.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},S.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onOptionsChanged=function(){var O,L=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new E(this._coreBrowserService.isFocused,function(){L._render(!0)})):(null===(O=this._cursorBlinkStateManager)||void 0===O||O.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},S.prototype.onGridChanged=function(O,L){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},S.prototype._render=function(O){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var L=this._bufferService.buffer.ybase+this._bufferService.buffer.y,j=L-this._bufferService.buffer.ydisp;if(j<0||j>=this._bufferService.rows)this._clearCursor();else{var K=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(L).loadCell(K,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var z=this._optionsService.options.cursorStyle;return z&&"block"!==z?this._cursorRenderers[z](K,j,this._cell):this._renderBlurCursor(K,j,this._cell),this._ctx.restore(),this._state.x=K,this._state.y=j,this._state.isFocused=!1,this._state.style=z,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===K&&this._state.y===j&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](K,j,this._cell),this._ctx.restore(),this._state.x=K,this._state.y=j,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},S.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},S.prototype._renderBarCursor=function(O,L,j){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(O,L,this._optionsService.options.cursorWidth),this._ctx.restore()},S.prototype._renderBlockCursor=function(O,L,j){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(O,L,j.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(j,O,L),this._ctx.restore()},S.prototype._renderUnderlineCursor=function(O,L,j){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(O,L),this._ctx.restore()},S.prototype._renderBlurCursor=function(O,L,j){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(O,L,j.getWidth(),1),this._ctx.restore()},P([D(5,_.IBufferService),D(6,_.IOptionsService),D(7,_.ICoreService),D(8,g.ICoreBrowserService)],S)}(M.BaseRenderLayer);T.CursorRenderLayer=N;var E=function(){function x(S,O){this._renderCallback=O,this.isCursorVisible=!0,S&&this._restartInterval()}return Object.defineProperty(x.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},x.prototype.restartBlinkAnimation=function(){var S=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){S._renderCallback(),S._animationFrame=void 0})))},x.prototype._restartInterval=function(S){var O=this;void 0===S&&(S=k),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(O._animationTimeRestarted){var L=k-(Date.now()-O._animationTimeRestarted);if(O._animationTimeRestarted=void 0,L>0)return void O._restartInterval(L)}O.isCursorVisible=!1,O._animationFrame=window.requestAnimationFrame(function(){O._renderCallback(),O._animationFrame=void 0}),O._blinkInterval=window.setInterval(function(){if(O._animationTimeRestarted){var j=k-(Date.now()-O._animationTimeRestarted);return O._animationTimeRestarted=void 0,void O._restartInterval(j)}O.isCursorVisible=!O.isCursorVisible,O._animationFrame=window.requestAnimationFrame(function(){O._renderCallback(),O._animationFrame=void 0})},k)},S)},x.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},x.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},x}()},8978:function(Z,T,R){var C,v,P,D,M,A,_,g,k,N,E,x,S,O,L,j,K,z,J,ie,te,ae,se,ce,le,oe,Ae,be,it,qe,_t,yt,Ft,xe,Oe,je,dt,Qe,Bt,xt,vt,Qt,Ht,Ct,Vt,bt,en,Nt,rn,kn,Nn,In,$n,Rn,wn,yr,ut,He,ve,ye,Te,we,ct,ht,Jt,Kt,Yt,nn,cn,yn,Tn,Pn,Yn,Cn,Sn,tr,cr,Ut,Rt,Lt,Pe,rt,he,Ie,Ne,Le,ze,At,an,qn,Nr,qr,br,Qr,uo,Ni,yo,co,Qo,wi,ro,yi,Gi,po,fi,Uo,ki,Wn,Ot,jt,Pt,qt,Gt,Xt,gn,Gn,jn,zn,si,bi,io,bo,Fi,Po,Ko,ko,ii,Ho;Object.defineProperty(T,"__esModule",{value:!0}),T.tryDrawCustomChar=T.boxDrawingDefinitions=T.blockElementDefinitions=void 0;var oo=R(1752);T.blockElementDefinitions={"\u2580":[{x:0,y:0,w:8,h:4}],"\u2581":[{x:0,y:7,w:8,h:1}],"\u2582":[{x:0,y:6,w:8,h:2}],"\u2583":[{x:0,y:5,w:8,h:3}],"\u2584":[{x:0,y:4,w:8,h:4}],"\u2585":[{x:0,y:3,w:8,h:5}],"\u2586":[{x:0,y:2,w:8,h:6}],"\u2587":[{x:0,y:1,w:8,h:7}],"\u2588":[{x:0,y:0,w:8,h:8}],"\u2589":[{x:0,y:0,w:7,h:8}],"\u258a":[{x:0,y:0,w:6,h:8}],"\u258b":[{x:0,y:0,w:5,h:8}],"\u258c":[{x:0,y:0,w:4,h:8}],"\u258d":[{x:0,y:0,w:3,h:8}],"\u258e":[{x:0,y:0,w:2,h:8}],"\u258f":[{x:0,y:0,w:1,h:8}],"\u2590":[{x:4,y:0,w:4,h:8}],"\u2594":[{x:0,y:0,w:9,h:1}],"\u2595":[{x:7,y:0,w:1,h:8}],"\u2596":[{x:0,y:4,w:4,h:4}],"\u2597":[{x:4,y:4,w:4,h:4}],"\u2598":[{x:0,y:0,w:4,h:4}],"\u2599":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u259a":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"\u259b":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"\u259c":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"\u259d":[{x:4,y:0,w:4,h:4}],"\u259e":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"\u259f":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\ud83e\udf70":[{x:1,y:0,w:1,h:8}],"\ud83e\udf71":[{x:2,y:0,w:1,h:8}],"\ud83e\udf72":[{x:3,y:0,w:1,h:8}],"\ud83e\udf73":[{x:4,y:0,w:1,h:8}],"\ud83e\udf74":[{x:5,y:0,w:1,h:8}],"\ud83e\udf75":[{x:6,y:0,w:1,h:8}],"\ud83e\udf76":[{x:0,y:1,w:8,h:1}],"\ud83e\udf77":[{x:0,y:2,w:8,h:1}],"\ud83e\udf78":[{x:0,y:3,w:8,h:1}],"\ud83e\udf79":[{x:0,y:4,w:8,h:1}],"\ud83e\udf7a":[{x:0,y:5,w:8,h:1}],"\ud83e\udf7b":[{x:0,y:6,w:8,h:1}],"\ud83e\udf7c":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\ud83e\udf7d":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\ud83e\udf7e":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\ud83e\udf7f":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\ud83e\udf80":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"\ud83e\udf81":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"\ud83e\udf82":[{x:0,y:0,w:8,h:2}],"\ud83e\udf83":[{x:0,y:0,w:8,h:3}],"\ud83e\udf84":[{x:0,y:0,w:8,h:5}],"\ud83e\udf85":[{x:0,y:0,w:8,h:6}],"\ud83e\udf86":[{x:0,y:0,w:8,h:7}],"\ud83e\udf87":[{x:6,y:0,w:2,h:8}],"\ud83e\udf88":[{x:5,y:0,w:3,h:8}],"\ud83e\udf89":[{x:3,y:0,w:5,h:8}],"\ud83e\udf8a":[{x:2,y:0,w:6,h:8}],"\ud83e\udf8b":[{x:1,y:0,w:7,h:8}],"\ud83e\udf95":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"\ud83e\udf96":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"\ud83e\udf97":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var ji={"\u2591":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"\u2592":[[1,0],[0,0],[0,1],[0,0]],"\u2593":[[0,1],[1,1],[1,0],[1,1]]};T.boxDrawingDefinitions={"\u2500":(C={},C[1]="M0,.5 L1,.5",C),"\u2501":(v={},v[3]="M0,.5 L1,.5",v),"\u2502":(P={},P[1]="M.5,0 L.5,1",P),"\u2503":(D={},D[3]="M.5,0 L.5,1",D),"\u250c":(M={},M[1]="M0.5,1 L.5,.5 L1,.5",M),"\u250f":(A={},A[3]="M0.5,1 L.5,.5 L1,.5",A),"\u2510":(_={},_[1]="M0,.5 L.5,.5 L.5,1",_),"\u2513":(g={},g[3]="M0,.5 L.5,.5 L.5,1",g),"\u2514":(k={},k[1]="M.5,0 L.5,.5 L1,.5",k),"\u2517":(N={},N[3]="M.5,0 L.5,.5 L1,.5",N),"\u2518":(E={},E[1]="M.5,0 L.5,.5 L0,.5",E),"\u251b":(x={},x[3]="M.5,0 L.5,.5 L0,.5",x),"\u251c":(S={},S[1]="M.5,0 L.5,1 M.5,.5 L1,.5",S),"\u2523":(O={},O[3]="M.5,0 L.5,1 M.5,.5 L1,.5",O),"\u2524":(L={},L[1]="M.5,0 L.5,1 M.5,.5 L0,.5",L),"\u252b":(j={},j[3]="M.5,0 L.5,1 M.5,.5 L0,.5",j),"\u252c":(K={},K[1]="M0,.5 L1,.5 M.5,.5 L.5,1",K),"\u2533":(z={},z[3]="M0,.5 L1,.5 M.5,.5 L.5,1",z),"\u2534":(J={},J[1]="M0,.5 L1,.5 M.5,.5 L.5,0",J),"\u253b":(ie={},ie[3]="M0,.5 L1,.5 M.5,.5 L.5,0",ie),"\u253c":(te={},te[1]="M0,.5 L1,.5 M.5,0 L.5,1",te),"\u254b":(ae={},ae[3]="M0,.5 L1,.5 M.5,0 L.5,1",ae),"\u2574":(se={},se[1]="M.5,.5 L0,.5",se),"\u2578":(ce={},ce[3]="M.5,.5 L0,.5",ce),"\u2575":(le={},le[1]="M.5,.5 L.5,0",le),"\u2579":(oe={},oe[3]="M.5,.5 L.5,0",oe),"\u2576":(Ae={},Ae[1]="M.5,.5 L1,.5",Ae),"\u257a":(be={},be[3]="M.5,.5 L1,.5",be),"\u2577":(it={},it[1]="M.5,.5 L.5,1",it),"\u257b":(qe={},qe[3]="M.5,.5 L.5,1",qe),"\u2550":(_t={},_t[1]=function(fn,vn){return"M0,"+(.5-vn)+" L1,"+(.5-vn)+" M0,"+(.5+vn)+" L1,"+(.5+vn)},_t),"\u2551":(yt={},yt[1]=function(fn,vn){return"M"+(.5-fn)+",0 L"+(.5-fn)+",1 M"+(.5+fn)+",0 L"+(.5+fn)+",1"},yt),"\u2552":(Ft={},Ft[1]=function(fn,vn){return"M.5,1 L.5,"+(.5-vn)+" L1,"+(.5-vn)+" M.5,"+(.5+vn)+" L1,"+(.5+vn)},Ft),"\u2553":(xe={},xe[1]=function(fn,vn){return"M"+(.5-fn)+",1 L"+(.5-fn)+",.5 L1,.5 M"+(.5+fn)+",.5 L"+(.5+fn)+",1"},xe),"\u2554":(Oe={},Oe[1]=function(fn,vn){return"M1,"+(.5-vn)+" L"+(.5-fn)+","+(.5-vn)+" L"+(.5-fn)+",1 M1,"+(.5+vn)+" L"+(.5+fn)+","+(.5+vn)+" L"+(.5+fn)+",1"},Oe),"\u2555":(je={},je[1]=function(fn,vn){return"M0,"+(.5-vn)+" L.5,"+(.5-vn)+" L.5,1 M0,"+(.5+vn)+" L.5,"+(.5+vn)},je),"\u2556":(dt={},dt[1]=function(fn,vn){return"M"+(.5+fn)+",1 L"+(.5+fn)+",.5 L0,.5 M"+(.5-fn)+",.5 L"+(.5-fn)+",1"},dt),"\u2557":(Qe={},Qe[1]=function(fn,vn){return"M0,"+(.5+vn)+" L"+(.5-fn)+","+(.5+vn)+" L"+(.5-fn)+",1 M0,"+(.5-vn)+" L"+(.5+fn)+","+(.5-vn)+" L"+(.5+fn)+",1"},Qe),"\u2558":(Bt={},Bt[1]=function(fn,vn){return"M.5,0 L.5,"+(.5+vn)+" L1,"+(.5+vn)+" M.5,"+(.5-vn)+" L1,"+(.5-vn)},Bt),"\u2559":(xt={},xt[1]=function(fn,vn){return"M1,.5 L"+(.5-fn)+",.5 L"+(.5-fn)+",0 M"+(.5+fn)+",.5 L"+(.5+fn)+",0"},xt),"\u255a":(vt={},vt[1]=function(fn,vn){return"M1,"+(.5-vn)+" L"+(.5+fn)+","+(.5-vn)+" L"+(.5+fn)+",0 M1,"+(.5+vn)+" L"+(.5-fn)+","+(.5+vn)+" L"+(.5-fn)+",0"},vt),"\u255b":(Qt={},Qt[1]=function(fn,vn){return"M0,"+(.5+vn)+" L.5,"+(.5+vn)+" L.5,0 M0,"+(.5-vn)+" L.5,"+(.5-vn)},Qt),"\u255c":(Ht={},Ht[1]=function(fn,vn){return"M0,.5 L"+(.5+fn)+",.5 L"+(.5+fn)+",0 M"+(.5-fn)+",.5 L"+(.5-fn)+",0"},Ht),"\u255d":(Ct={},Ct[1]=function(fn,vn){return"M0,"+(.5-vn)+" L"+(.5-fn)+","+(.5-vn)+" L"+(.5-fn)+",0 M0,"+(.5+vn)+" L"+(.5+fn)+","+(.5+vn)+" L"+(.5+fn)+",0"},Ct),"\u255e":(Vt={},Vt[1]=function(fn,vn){return"M.5,0 L.5,1 M.5,"+(.5-vn)+" L1,"+(.5-vn)+" M.5,"+(.5+vn)+" L1,"+(.5+vn)},Vt),"\u255f":(bt={},bt[1]=function(fn,vn){return"M"+(.5-fn)+",0 L"+(.5-fn)+",1 M"+(.5+fn)+",0 L"+(.5+fn)+",1 M"+(.5+fn)+",.5 L1,.5"},bt),"\u2560":(en={},en[1]=function(fn,vn){return"M"+(.5-fn)+",0 L"+(.5-fn)+",1 M1,"+(.5+vn)+" L"+(.5+fn)+","+(.5+vn)+" L"+(.5+fn)+",1 M1,"+(.5-vn)+" L"+(.5+fn)+","+(.5-vn)+" L"+(.5+fn)+",0"},en),"\u2561":(Nt={},Nt[1]=function(fn,vn){return"M.5,0 L.5,1 M0,"+(.5-vn)+" L.5,"+(.5-vn)+" M0,"+(.5+vn)+" L.5,"+(.5+vn)},Nt),"\u2562":(rn={},rn[1]=function(fn,vn){return"M0,.5 L"+(.5-fn)+",.5 M"+(.5-fn)+",0 L"+(.5-fn)+",1 M"+(.5+fn)+",0 L"+(.5+fn)+",1"},rn),"\u2563":(kn={},kn[1]=function(fn,vn){return"M"+(.5+fn)+",0 L"+(.5+fn)+",1 M0,"+(.5+vn)+" L"+(.5-fn)+","+(.5+vn)+" L"+(.5-fn)+",1 M0,"+(.5-vn)+" L"+(.5-fn)+","+(.5-vn)+" L"+(.5-fn)+",0"},kn),"\u2564":(Nn={},Nn[1]=function(fn,vn){return"M0,"+(.5-vn)+" L1,"+(.5-vn)+" M0,"+(.5+vn)+" L1,"+(.5+vn)+" M.5,"+(.5+vn)+" L.5,1"},Nn),"\u2565":(In={},In[1]=function(fn,vn){return"M0,.5 L1,.5 M"+(.5-fn)+",.5 L"+(.5-fn)+",1 M"+(.5+fn)+",.5 L"+(.5+fn)+",1"},In),"\u2566":($n={},$n[1]=function(fn,vn){return"M0,"+(.5-vn)+" L1,"+(.5-vn)+" M0,"+(.5+vn)+" L"+(.5-fn)+","+(.5+vn)+" L"+(.5-fn)+",1 M1,"+(.5+vn)+" L"+(.5+fn)+","+(.5+vn)+" L"+(.5+fn)+",1"},$n),"\u2567":(Rn={},Rn[1]=function(fn,vn){return"M.5,0 L.5,"+(.5-vn)+" M0,"+(.5-vn)+" L1,"+(.5-vn)+" M0,"+(.5+vn)+" L1,"+(.5+vn)},Rn),"\u2568":(wn={},wn[1]=function(fn,vn){return"M0,.5 L1,.5 M"+(.5-fn)+",.5 L"+(.5-fn)+",0 M"+(.5+fn)+",.5 L"+(.5+fn)+",0"},wn),"\u2569":(yr={},yr[1]=function(fn,vn){return"M0,"+(.5+vn)+" L1,"+(.5+vn)+" M0,"+(.5-vn)+" L"+(.5-fn)+","+(.5-vn)+" L"+(.5-fn)+",0 M1,"+(.5-vn)+" L"+(.5+fn)+","+(.5-vn)+" L"+(.5+fn)+",0"},yr),"\u256a":(ut={},ut[1]=function(fn,vn){return"M.5,0 L.5,1 M0,"+(.5-vn)+" L1,"+(.5-vn)+" M0,"+(.5+vn)+" L1,"+(.5+vn)},ut),"\u256b":(He={},He[1]=function(fn,vn){return"M0,.5 L1,.5 M"+(.5-fn)+",0 L"+(.5-fn)+",1 M"+(.5+fn)+",0 L"+(.5+fn)+",1"},He),"\u256c":(ve={},ve[1]=function(fn,vn){return"M0,"+(.5+vn)+" L"+(.5-fn)+","+(.5+vn)+" L"+(.5-fn)+",1 M1,"+(.5+vn)+" L"+(.5+fn)+","+(.5+vn)+" L"+(.5+fn)+",1 M0,"+(.5-vn)+" L"+(.5-fn)+","+(.5-vn)+" L"+(.5-fn)+",0 M1,"+(.5-vn)+" L"+(.5+fn)+","+(.5-vn)+" L"+(.5+fn)+",0"},ve),"\u2571":(ye={},ye[1]="M1,0 L0,1",ye),"\u2572":(Te={},Te[1]="M0,0 L1,1",Te),"\u2573":(we={},we[1]="M1,0 L0,1 M0,0 L1,1",we),"\u257c":(ct={},ct[1]="M.5,.5 L0,.5",ct[3]="M.5,.5 L1,.5",ct),"\u257d":(ht={},ht[1]="M.5,.5 L.5,0",ht[3]="M.5,.5 L.5,1",ht),"\u257e":(Jt={},Jt[1]="M.5,.5 L1,.5",Jt[3]="M.5,.5 L0,.5",Jt),"\u257f":(Kt={},Kt[1]="M.5,.5 L.5,1",Kt[3]="M.5,.5 L.5,0",Kt),"\u250d":(Yt={},Yt[1]="M.5,.5 L.5,1",Yt[3]="M.5,.5 L1,.5",Yt),"\u250e":(nn={},nn[1]="M.5,.5 L1,.5",nn[3]="M.5,.5 L.5,1",nn),"\u2511":(cn={},cn[1]="M.5,.5 L.5,1",cn[3]="M.5,.5 L0,.5",cn),"\u2512":(yn={},yn[1]="M.5,.5 L0,.5",yn[3]="M.5,.5 L.5,1",yn),"\u2515":(Tn={},Tn[1]="M.5,.5 L.5,0",Tn[3]="M.5,.5 L1,.5",Tn),"\u2516":(Pn={},Pn[1]="M.5,.5 L1,.5",Pn[3]="M.5,.5 L.5,0",Pn),"\u2519":(Yn={},Yn[1]="M.5,.5 L.5,0",Yn[3]="M.5,.5 L0,.5",Yn),"\u251a":(Cn={},Cn[1]="M.5,.5 L0,.5",Cn[3]="M.5,.5 L.5,0",Cn),"\u251d":(Sn={},Sn[1]="M.5,0 L.5,1",Sn[3]="M.5,.5 L1,.5",Sn),"\u251e":(tr={},tr[1]="M0.5,1 L.5,.5 L1,.5",tr[3]="M.5,.5 L.5,0",tr),"\u251f":(cr={},cr[1]="M.5,0 L.5,.5 L1,.5",cr[3]="M.5,.5 L.5,1",cr),"\u2520":(Ut={},Ut[1]="M.5,.5 L1,.5",Ut[3]="M.5,0 L.5,1",Ut),"\u2521":(Rt={},Rt[1]="M.5,.5 L.5,1",Rt[3]="M.5,0 L.5,.5 L1,.5",Rt),"\u2522":(Lt={},Lt[1]="M.5,.5 L.5,0",Lt[3]="M0.5,1 L.5,.5 L1,.5",Lt),"\u2525":(Pe={},Pe[1]="M.5,0 L.5,1",Pe[3]="M.5,.5 L0,.5",Pe),"\u2526":(rt={},rt[1]="M0,.5 L.5,.5 L.5,1",rt[3]="M.5,.5 L.5,0",rt),"\u2527":(he={},he[1]="M.5,0 L.5,.5 L0,.5",he[3]="M.5,.5 L.5,1",he),"\u2528":(Ie={},Ie[1]="M.5,.5 L0,.5",Ie[3]="M.5,0 L.5,1",Ie),"\u2529":(Ne={},Ne[1]="M.5,.5 L.5,1",Ne[3]="M.5,0 L.5,.5 L0,.5",Ne),"\u252a":(Le={},Le[1]="M.5,.5 L.5,0",Le[3]="M0,.5 L.5,.5 L.5,1",Le),"\u252d":(ze={},ze[1]="M0.5,1 L.5,.5 L1,.5",ze[3]="M.5,.5 L0,.5",ze),"\u252e":(At={},At[1]="M0,.5 L.5,.5 L.5,1",At[3]="M.5,.5 L1,.5",At),"\u252f":(an={},an[1]="M.5,.5 L.5,1",an[3]="M0,.5 L1,.5",an),"\u2530":(qn={},qn[1]="M0,.5 L1,.5",qn[3]="M.5,.5 L.5,1",qn),"\u2531":(Nr={},Nr[1]="M.5,.5 L1,.5",Nr[3]="M0,.5 L.5,.5 L.5,1",Nr),"\u2532":(qr={},qr[1]="M.5,.5 L0,.5",qr[3]="M0.5,1 L.5,.5 L1,.5",qr),"\u2535":(br={},br[1]="M.5,0 L.5,.5 L1,.5",br[3]="M.5,.5 L0,.5",br),"\u2536":(Qr={},Qr[1]="M.5,0 L.5,.5 L0,.5",Qr[3]="M.5,.5 L1,.5",Qr),"\u2537":(uo={},uo[1]="M.5,.5 L.5,0",uo[3]="M0,.5 L1,.5",uo),"\u2538":(Ni={},Ni[1]="M0,.5 L1,.5",Ni[3]="M.5,.5 L.5,0",Ni),"\u2539":(yo={},yo[1]="M.5,.5 L1,.5",yo[3]="M.5,0 L.5,.5 L0,.5",yo),"\u253a":(co={},co[1]="M.5,.5 L0,.5",co[3]="M.5,0 L.5,.5 L1,.5",co),"\u253d":(Qo={},Qo[1]="M.5,0 L.5,1 M.5,.5 L1,.5",Qo[3]="M.5,.5 L0,.5",Qo),"\u253e":(wi={},wi[1]="M.5,0 L.5,1 M.5,.5 L0,.5",wi[3]="M.5,.5 L1,.5",wi),"\u253f":(ro={},ro[1]="M.5,0 L.5,1",ro[3]="M0,.5 L1,.5",ro),"\u2540":(yi={},yi[1]="M0,.5 L1,.5 M.5,.5 L.5,1",yi[3]="M.5,.5 L.5,0",yi),"\u2541":(Gi={},Gi[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Gi[3]="M.5,.5 L.5,1",Gi),"\u2542":(po={},po[1]="M0,.5 L1,.5",po[3]="M.5,0 L.5,1",po),"\u2543":(fi={},fi[1]="M0.5,1 L.5,.5 L1,.5",fi[3]="M.5,0 L.5,.5 L0,.5",fi),"\u2544":(Uo={},Uo[1]="M0,.5 L.5,.5 L.5,1",Uo[3]="M.5,0 L.5,.5 L1,.5",Uo),"\u2545":(ki={},ki[1]="M.5,0 L.5,.5 L1,.5",ki[3]="M0,.5 L.5,.5 L.5,1",ki),"\u2546":(Wn={},Wn[1]="M.5,0 L.5,.5 L0,.5",Wn[3]="M0.5,1 L.5,.5 L1,.5",Wn),"\u2547":(Ot={},Ot[1]="M.5,.5 L.5,1",Ot[3]="M.5,.5 L.5,0 M0,.5 L1,.5",Ot),"\u2548":(jt={},jt[1]="M.5,.5 L.5,0",jt[3]="M0,.5 L1,.5 M.5,.5 L.5,1",jt),"\u2549":(Pt={},Pt[1]="M.5,.5 L1,.5",Pt[3]="M.5,0 L.5,1 M.5,.5 L0,.5",Pt),"\u254a":(qt={},qt[1]="M.5,.5 L0,.5",qt[3]="M.5,0 L.5,1 M.5,.5 L1,.5",qt),"\u254c":(Gt={},Gt[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Gt),"\u254d":(Xt={},Xt[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Xt),"\u2504":(gn={},gn[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",gn),"\u2505":(Gn={},Gn[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Gn),"\u2508":(jn={},jn[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",jn),"\u2509":(zn={},zn[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",zn),"\u254e":(si={},si[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",si),"\u254f":(bi={},bi[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",bi),"\u2506":(io={},io[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",io),"\u2507":(bo={},bo[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",bo),"\u250a":(Fi={},Fi[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Fi),"\u250b":(Po={},Po[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Po),"\u256d":(Ko={},Ko[1]="C.5,1,.5,.5,1,.5",Ko),"\u256e":(ko={},ko[1]="C.5,1,.5,.5,0,.5",ko),"\u256f":(ii={},ii[1]="C.5,0,.5,.5,0,.5",ii),"\u2570":(Ho={},Ho[1]="C.5,0,.5,.5,1,.5",Ho)},T.tryDrawCustomChar=function(fn,vn,fr,fo,ha,Si){var Co=T.blockElementDefinitions[vn];if(Co)return function(Eo,Io,hs,So,va,Ma){for(var qo=0;qo7&&parseInt(Bi.substr(7,2),16)||1;else{if(!Bi.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+Bi+'" when drawing pattern glyph');Da=(qo=Bi.substring(5,Bi.length-1).split(",").map(function(Au){return parseFloat(Au)}))[0],Ui=qo[1],Va=qo[2],ar=qo[3]}for(var zi=0;zi<_a;zi++)for(var qa=0;qa=0;K--)(O=N[K])&&(j=(L<3?O(j):L>3?O(E,x,j):O(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(N,E){return function(x,S){E(x,S,N)}};Object.defineProperty(T,"__esModule",{value:!0}),T.LinkRenderLayer=void 0;var M=R(1546),A=R(8803),_=R(2040),g=R(2585),k=function(N){function E(x,S,O,L,j,K,z,J){var ie=N.call(this,x,"link",S,!0,O,L,z,J)||this;return j.onShowLinkUnderline(function(te){return ie._onShowLinkUnderline(te)}),j.onHideLinkUnderline(function(te){return ie._onHideLinkUnderline(te)}),K.onShowLinkUnderline(function(te){return ie._onShowLinkUnderline(te)}),K.onHideLinkUnderline(function(te){return ie._onHideLinkUnderline(te)}),ie}return v(E,N),E.prototype.resize=function(x){N.prototype.resize.call(this,x),this._state=void 0},E.prototype.reset=function(){this._clearCurrentLink()},E.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var x=this._state.y2-this._state.y1-1;x>0&&this._clearCells(0,this._state.y1+1,this._state.cols,x),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},E.prototype._onShowLinkUnderline=function(x){if(this._ctx.fillStyle=x.fg===A.INVERTED_DEFAULT_COLOR?this._colors.background.css:x.fg&&_.is256Color(x.fg)?this._colors.ansi[x.fg].css:this._colors.foreground.css,x.y1===x.y2)this._fillBottomLineAtCells(x.x1,x.y1,x.x2-x.x1);else{this._fillBottomLineAtCells(x.x1,x.y1,x.cols-x.x1);for(var S=x.y1+1;S=0;se--)(ie=j[se])&&(ae=(te<3?ie(ae):te>3?ie(K,z,ae):ie(K,z))||ae);return te>3&&ae&&Object.defineProperty(K,z,ae),ae},D=this&&this.__param||function(j,K){return function(z,J){K(z,J,j)}};Object.defineProperty(T,"__esModule",{value:!0}),T.Renderer=void 0;var M=R(9596),A=R(4149),_=R(2512),g=R(5098),k=R(844),N=R(4725),E=R(2585),x=R(1420),S=R(8460),O=1,L=function(j){function K(z,J,ie,te,ae,se,ce,le){var oe=j.call(this)||this;return oe._colors=z,oe._screenElement=J,oe._bufferService=se,oe._charSizeService=ce,oe._optionsService=le,oe._id=O++,oe._onRequestRedraw=new S.EventEmitter,oe._renderLayers=[ae.createInstance(M.TextRenderLayer,oe._screenElement,0,oe._colors,oe._optionsService.options.allowTransparency,oe._id),ae.createInstance(A.SelectionRenderLayer,oe._screenElement,1,oe._colors,oe._id),ae.createInstance(g.LinkRenderLayer,oe._screenElement,2,oe._colors,oe._id,ie,te),ae.createInstance(_.CursorRenderLayer,oe._screenElement,3,oe._colors,oe._id,oe._onRequestRedraw)],oe.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},oe._devicePixelRatio=window.devicePixelRatio,oe._updateDimensions(),oe.onOptionsChanged(),oe}return v(K,j),Object.defineProperty(K.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),K.prototype.dispose=function(){for(var z=0,J=this._renderLayers;z=0;L--)(x=g[L])&&(O=(S<3?x(O):S>3?x(k,N,O):x(k,N))||O);return S>3&&O&&Object.defineProperty(k,N,O),O},D=this&&this.__param||function(g,k){return function(N,E){k(N,E,g)}};Object.defineProperty(T,"__esModule",{value:!0}),T.SelectionRenderLayer=void 0;var M=R(1546),A=R(2585),_=function(g){function k(N,E,x,S,O,L){var j=g.call(this,N,"selection",E,!0,x,S,O,L)||this;return j._clearState(),j}return v(k,g),k.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},k.prototype.resize=function(N){g.prototype.resize.call(this,N),this._clearState()},k.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},k.prototype.onSelectionChanged=function(N,E,x){if(this._didStateChange(N,E,x,this._bufferService.buffer.ydisp))if(this._clearAll(),N&&E){var S=N[1]-this._bufferService.buffer.ydisp,O=E[1]-this._bufferService.buffer.ydisp,L=Math.max(S,0),j=Math.min(O,this._bufferService.rows-1);if(L>=this._bufferService.rows||j<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,x){var K=N[0];this._fillCells(K,L,E[0]-K,j-L+1)}else{this._fillCells(K=S===L?N[0]:0,L,(L===O?E[0]:this._bufferService.cols)-K,1);var te=Math.max(j-L-1,0);this._fillCells(0,L+1,this._bufferService.cols,te),L!==j&&this._fillCells(0,j,O===j?E[0]:this._bufferService.cols,1)}this._state.start=[N[0],N[1]],this._state.end=[E[0],E[1]],this._state.columnSelectMode=x,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},k.prototype._didStateChange=function(N,E,x,S){return!this._areCoordinatesEqual(N,this._state.start)||!this._areCoordinatesEqual(E,this._state.end)||x!==this._state.columnSelectMode||S!==this._state.ydisp},k.prototype._areCoordinatesEqual=function(N,E){return!(!N||!E)&&N[0]===E[0]&&N[1]===E[1]},P([D(4,A.IBufferService),D(5,A.IOptionsService)],k)}(M.BaseRenderLayer);T.SelectionRenderLayer=_},9596:function(Z,T,R){var C,v=this&&this.__extends||(C=function(L,j){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,z){K.__proto__=z}||function(K,z){for(var J in z)Object.prototype.hasOwnProperty.call(z,J)&&(K[J]=z[J])})(L,j)},function(O,L){if("function"!=typeof L&&null!==L)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function j(){this.constructor=O}C(O,L),O.prototype=null===L?Object.create(L):(j.prototype=L.prototype,new j)}),P=this&&this.__decorate||function(O,L,j,K){var z,J=arguments.length,ie=J<3?L:null===K?K=Object.getOwnPropertyDescriptor(L,j):K;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ie=Reflect.decorate(O,L,j,K);else for(var te=O.length-1;te>=0;te--)(z=O[te])&&(ie=(J<3?z(ie):J>3?z(L,j,ie):z(L,j))||ie);return J>3&&ie&&Object.defineProperty(L,j,ie),ie},D=this&&this.__param||function(O,L){return function(j,K){L(j,K,O)}};Object.defineProperty(T,"__esModule",{value:!0}),T.TextRenderLayer=void 0;var M=R(3700),A=R(1546),_=R(3734),g=R(643),k=R(511),N=R(2585),E=R(4725),x=R(4269),S=function(O){function L(j,K,z,J,ie,te,ae,se){var ce=O.call(this,j,"text",K,J,z,ie,te,ae)||this;return ce._characterJoinerService=se,ce._characterWidth=0,ce._characterFont="",ce._characterOverlapCache={},ce._workCell=new k.CellData,ce._state=new M.GridCache,ce}return v(L,O),L.prototype.resize=function(j){O.prototype.resize.call(this,j);var K=this._getFont(!1,!1);this._characterWidth===j.scaledCharWidth&&this._characterFont===K||(this._characterWidth=j.scaledCharWidth,this._characterFont=K,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},L.prototype.reset=function(){this._state.clear(),this._clearAll()},L.prototype._forEachCell=function(j,K,z){for(var J=j;J<=K;J++)for(var ie=J+this._bufferService.buffer.ydisp,te=this._bufferService.buffer.lines.get(ie),ae=this._characterJoinerService.getJoinedCharacters(ie),se=0;se0&&se===ae[0][0]){le=!0;var Ae=ae.shift();ce=new x.JoinedCellData(this._workCell,te.translateToString(!0,Ae[0],Ae[1]),Ae[1]-Ae[0]),oe=Ae[1]-1}!le&&this._isOverlapping(ce)&&oethis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[K]=z,z},P([D(5,N.IBufferService),D(6,N.IOptionsService),D(7,E.ICharacterJoinerService)],L)}(A.BaseRenderLayer);T.TextRenderLayer=S},9616:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.BaseCharAtlas=void 0;var R=function(){function C(){this._didWarmUp=!1}return C.prototype.dispose=function(){},C.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},C.prototype._doWarmUp=function(){},C.prototype.beginFrame=function(){},C}();T.BaseCharAtlas=R},1420:function(Z,T,R){Object.defineProperty(T,"__esModule",{value:!0}),T.removeTerminalFromCache=T.acquireCharAtlas=void 0;var C=R(2040),v=R(1906),P=[];T.acquireCharAtlas=function(D,M,A,_,g){for(var k=C.generateConfig(_,g,D,A),N=0;N=0){if(C.configEquals(x.config,k))return x.atlas;1===x.ownedBy.length?(x.atlas.dispose(),P.splice(N,1)):x.ownedBy.splice(E,1);break}}for(N=0;N>>24,J=j.rgba>>>16&255,ie=j.rgba>>>8&255,te=0;te=this.capacity)this._unlinkNode(D=this._head),delete this._map[D.key],D.key=v,D.value=P,this._map[v]=D;else{var M=this._nodePool;M.length>0?((D=M.pop()).key=v,D.value=P):D={prev:null,next:null,key:v,value:P},this._map[v]=D,this.size++}this._appendNode(D)},C}();T.LRUMap=R},1296:function(Z,T,R){var C,v=this&&this.__extends||(C=function(ie,te){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,se){ae.__proto__=se}||function(ae,se){for(var ce in se)Object.prototype.hasOwnProperty.call(se,ce)&&(ae[ce]=se[ce])})(ie,te)},function(J,ie){if("function"!=typeof ie&&null!==ie)throw new TypeError("Class extends value "+String(ie)+" is not a constructor or null");function te(){this.constructor=J}C(J,ie),J.prototype=null===ie?Object.create(ie):(te.prototype=ie.prototype,new te)}),P=this&&this.__decorate||function(J,ie,te,ae){var se,ce=arguments.length,le=ce<3?ie:null===ae?ae=Object.getOwnPropertyDescriptor(ie,te):ae;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)le=Reflect.decorate(J,ie,te,ae);else for(var oe=J.length-1;oe>=0;oe--)(se=J[oe])&&(le=(ce<3?se(le):ce>3?se(ie,te,le):se(ie,te))||le);return ce>3&&le&&Object.defineProperty(ie,te,le),le},D=this&&this.__param||function(J,ie){return function(te,ae){ie(te,ae,J)}};Object.defineProperty(T,"__esModule",{value:!0}),T.DomRenderer=void 0;var M=R(3787),A=R(8803),_=R(844),g=R(4725),k=R(2585),N=R(8460),E=R(4774),x=R(9631),S="xterm-dom-renderer-owner-",O="xterm-fg-",L="xterm-bg-",j="xterm-focus",K=1,z=function(J){function ie(te,ae,se,ce,le,oe,Ae,be,it,qe){var _t=J.call(this)||this;return _t._colors=te,_t._element=ae,_t._screenElement=se,_t._viewportElement=ce,_t._linkifier=le,_t._linkifier2=oe,_t._charSizeService=be,_t._optionsService=it,_t._bufferService=qe,_t._terminalClass=K++,_t._rowElements=[],_t._rowContainer=document.createElement("div"),_t._rowContainer.classList.add("xterm-rows"),_t._rowContainer.style.lineHeight="normal",_t._rowContainer.setAttribute("aria-hidden","true"),_t._refreshRowElements(_t._bufferService.cols,_t._bufferService.rows),_t._selectionContainer=document.createElement("div"),_t._selectionContainer.classList.add("xterm-selection"),_t._selectionContainer.setAttribute("aria-hidden","true"),_t.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},_t._updateDimensions(),_t._injectCss(),_t._rowFactory=Ae.createInstance(M.DomRendererRowFactory,document,_t._colors),_t._element.classList.add(S+_t._terminalClass),_t._screenElement.appendChild(_t._rowContainer),_t._screenElement.appendChild(_t._selectionContainer),_t._linkifier.onShowLinkUnderline(function(yt){return _t._onLinkHover(yt)}),_t._linkifier.onHideLinkUnderline(function(yt){return _t._onLinkLeave(yt)}),_t._linkifier2.onShowLinkUnderline(function(yt){return _t._onLinkHover(yt)}),_t._linkifier2.onHideLinkUnderline(function(yt){return _t._onLinkLeave(yt)}),_t}return v(ie,J),Object.defineProperty(ie.prototype,"onRequestRedraw",{get:function(){return(new N.EventEmitter).event},enumerable:!1,configurable:!0}),ie.prototype.dispose=function(){this._element.classList.remove(S+this._terminalClass),x.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),J.prototype.dispose.call(this)},ie.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var te=0,ae=this._rowElements;teae;)this._rowContainer.removeChild(this._rowElements.pop())},ie.prototype.onResize=function(te,ae){this._refreshRowElements(te,ae),this._updateDimensions()},ie.prototype.onCharSizeChanged=function(){this._updateDimensions()},ie.prototype.onBlur=function(){this._rowContainer.classList.remove(j)},ie.prototype.onFocus=function(){this._rowContainer.classList.add(j)},ie.prototype.onSelectionChanged=function(te,ae,se){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(te&&ae){var ce=te[1]-this._bufferService.buffer.ydisp,le=ae[1]-this._bufferService.buffer.ydisp,oe=Math.max(ce,0),Ae=Math.min(le,this._bufferService.rows-1);if(!(oe>=this._bufferService.rows||Ae<0)){var be=document.createDocumentFragment();se?be.appendChild(this._createSelectionElement(oe,te[0],ae[0],Ae-oe+1)):(be.appendChild(this._createSelectionElement(oe,ce===oe?te[0]:0,oe===le?ae[0]:this._bufferService.cols)),be.appendChild(this._createSelectionElement(oe+1,0,this._bufferService.cols,Ae-oe-1)),oe!==Ae&&be.appendChild(this._createSelectionElement(Ae,0,le===Ae?ae[0]:this._bufferService.cols))),this._selectionContainer.appendChild(be)}}},ie.prototype._createSelectionElement=function(te,ae,se,ce){void 0===ce&&(ce=1);var le=document.createElement("div");return le.style.height=ce*this.dimensions.actualCellHeight+"px",le.style.top=te*this.dimensions.actualCellHeight+"px",le.style.left=ae*this.dimensions.actualCellWidth+"px",le.style.width=this.dimensions.actualCellWidth*(se-ae)+"px",le},ie.prototype.onCursorMove=function(){},ie.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},ie.prototype.clear=function(){for(var te=0,ae=this._rowElements;te=le&&(te=0,se++)}},P([D(6,k.IInstantiationService),D(7,g.ICharSizeService),D(8,k.IOptionsService),D(9,k.IBufferService)],ie)}(_.Disposable);T.DomRenderer=z},3787:function(Z,T,R){var C=this&&this.__decorate||function(x,S,O,L){var j,K=arguments.length,z=K<3?S:null===L?L=Object.getOwnPropertyDescriptor(S,O):L;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(x,S,O,L);else for(var J=x.length-1;J>=0;J--)(j=x[J])&&(z=(K<3?j(z):K>3?j(S,O,z):j(S,O))||z);return K>3&&z&&Object.defineProperty(S,O,z),z},v=this&&this.__param||function(x,S){return function(O,L){S(O,L,x)}};Object.defineProperty(T,"__esModule",{value:!0}),T.DomRendererRowFactory=T.CURSOR_STYLE_UNDERLINE_CLASS=T.CURSOR_STYLE_BAR_CLASS=T.CURSOR_STYLE_BLOCK_CLASS=T.CURSOR_BLINK_CLASS=T.CURSOR_CLASS=T.STRIKETHROUGH_CLASS=T.UNDERLINE_CLASS=T.ITALIC_CLASS=T.DIM_CLASS=T.BOLD_CLASS=void 0;var P=R(8803),D=R(643),M=R(511),A=R(2585),_=R(4774),g=R(4725),k=R(4269);T.BOLD_CLASS="xterm-bold",T.DIM_CLASS="xterm-dim",T.ITALIC_CLASS="xterm-italic",T.UNDERLINE_CLASS="xterm-underline",T.STRIKETHROUGH_CLASS="xterm-strikethrough",T.CURSOR_CLASS="xterm-cursor",T.CURSOR_BLINK_CLASS="xterm-cursor-blink",T.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",T.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",T.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var N=function(){function x(S,O,L,j){this._document=S,this._colors=O,this._characterJoinerService=L,this._optionsService=j,this._workCell=new M.CellData}return x.prototype.setColors=function(S){this._colors=S},x.prototype.createRow=function(S,O,L,j,K,z,J,ie){for(var te=this._document.createDocumentFragment(),ae=this._characterJoinerService.getJoinedCharacters(O),se=0,ce=Math.min(S.length,ie)-1;ce>=0;ce--)if(S.loadCell(ce,this._workCell).getCode()!==D.NULL_CELL_CODE||L&&ce===K){se=ce+1;break}for(ce=0;ce0&&ce===ae[0][0]){oe=!0;var it=ae.shift();be=new k.JoinedCellData(this._workCell,S.translateToString(!0,it[0],it[1]),it[1]-it[0]),Ae=it[1]-1,le=be.getWidth()}var qe=this._document.createElement("span");if(le>1&&(qe.style.width=J*le+"px"),oe&&(qe.style.display="inline",K>=ce&&K<=Ae&&(K=ce)),L&&ce===K)switch(qe.classList.add(T.CURSOR_CLASS),z&&qe.classList.add(T.CURSOR_BLINK_CLASS),j){case"bar":qe.classList.add(T.CURSOR_STYLE_BAR_CLASS);break;case"underline":qe.classList.add(T.CURSOR_STYLE_UNDERLINE_CLASS);break;default:qe.classList.add(T.CURSOR_STYLE_BLOCK_CLASS)}be.isBold()&&qe.classList.add(T.BOLD_CLASS),be.isItalic()&&qe.classList.add(T.ITALIC_CLASS),be.isDim()&&qe.classList.add(T.DIM_CLASS),be.isUnderline()&&qe.classList.add(T.UNDERLINE_CLASS),qe.textContent=be.isInvisible()?D.WHITESPACE_CELL_CHAR:be.getChars()||D.WHITESPACE_CELL_CHAR,be.isStrikethrough()&&qe.classList.add(T.STRIKETHROUGH_CLASS);var _t=be.getFgColor(),yt=be.getFgColorMode(),Ft=be.getBgColor(),xe=be.getBgColorMode(),Oe=!!be.isInverse();if(Oe){var je=_t;_t=Ft,Ft=je;var dt=yt;yt=xe,xe=dt}switch(yt){case 16777216:case 33554432:be.isBold()&&_t<8&&this._optionsService.options.drawBoldTextInBrightColors&&(_t+=8),this._applyMinimumContrast(qe,this._colors.background,this._colors.ansi[_t])||qe.classList.add("xterm-fg-"+_t);break;case 50331648:var Qe=_.rgba.toColor(_t>>16&255,_t>>8&255,255&_t);this._applyMinimumContrast(qe,this._colors.background,Qe)||this._addStyle(qe,"color:#"+E(_t.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(qe,this._colors.background,this._colors.foreground)||Oe&&qe.classList.add("xterm-fg-"+P.INVERTED_DEFAULT_COLOR)}switch(xe){case 16777216:case 33554432:qe.classList.add("xterm-bg-"+Ft);break;case 50331648:this._addStyle(qe,"background-color:#"+E(Ft.toString(16),"0",6));break;case 0:default:Oe&&qe.classList.add("xterm-bg-"+P.INVERTED_DEFAULT_COLOR)}te.appendChild(qe),ce=Ae}}return te},x.prototype._applyMinimumContrast=function(S,O,L){if(1===this._optionsService.options.minimumContrastRatio)return!1;var j=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===j&&(j=_.color.ensureContrastRatio(O,L,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=j?j:null)),!!j&&(this._addStyle(S,"color:"+j.css),!0)},x.prototype._addStyle=function(S,O){S.setAttribute("style",""+(S.getAttribute("style")||"")+O+";")},C([v(2,g.ICharacterJoinerService),v(3,A.IOptionsService)],x)}();function E(x,S,O){for(;x.lengththis._bufferService.cols?[P%this._bufferService.cols,this.selectionStart[1]+Math.floor(P/this._bufferService.cols)]:[P,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),C.prototype.areSelectionValuesReversed=function(){var v=this.selectionStart,P=this.selectionEnd;return!(!v||!P)&&(v[1]>P[1]||v[1]===P[1]&&v[0]>P[0])},C.prototype.onTrim=function(v){return this.selectionStart&&(this.selectionStart[1]-=v),this.selectionEnd&&(this.selectionEnd[1]-=v),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},C}();T.SelectionModel=R},428:function(Z,T,R){var C=this&&this.__decorate||function(_,g,k,N){var E,x=arguments.length,S=x<3?g:null===N?N=Object.getOwnPropertyDescriptor(g,k):N;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(_,g,k,N);else for(var O=_.length-1;O>=0;O--)(E=_[O])&&(S=(x<3?E(S):x>3?E(g,k,S):E(g,k))||S);return x>3&&S&&Object.defineProperty(g,k,S),S},v=this&&this.__param||function(_,g){return function(k,N){g(k,N,_)}};Object.defineProperty(T,"__esModule",{value:!0}),T.CharSizeService=void 0;var P=R(2585),D=R(8460),M=function(){function _(g,k,N){this._optionsService=N,this.width=0,this.height=0,this._onCharSizeChange=new D.EventEmitter,this._measureStrategy=new A(g,k,this._optionsService)}return Object.defineProperty(_.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),_.prototype.measure=function(){var g=this._measureStrategy.measure();g.width===this.width&&g.height===this.height||(this.width=g.width,this.height=g.height,this._onCharSizeChange.fire())},C([v(2,P.IOptionsService)],_)}();T.CharSizeService=M;var A=function(){function _(g,k,N){this._document=g,this._parentElement=k,this._optionsService=N,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return _.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var g=this._measureElement.getBoundingClientRect();return 0!==g.width&&0!==g.height&&(this._result.width=g.width,this._result.height=Math.ceil(g.height)),this._result},_}()},4269:function(Z,T,R){var C,v=this&&this.__extends||(C=function(x,S){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,L){O.__proto__=L}||function(O,L){for(var j in L)Object.prototype.hasOwnProperty.call(L,j)&&(O[j]=L[j])})(x,S)},function(E,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function S(){this.constructor=E}C(E,x),E.prototype=null===x?Object.create(x):(S.prototype=x.prototype,new S)}),P=this&&this.__decorate||function(E,x,S,O){var L,j=arguments.length,K=j<3?x:null===O?O=Object.getOwnPropertyDescriptor(x,S):O;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)K=Reflect.decorate(E,x,S,O);else for(var z=E.length-1;z>=0;z--)(L=E[z])&&(K=(j<3?L(K):j>3?L(x,S,K):L(x,S))||K);return j>3&&K&&Object.defineProperty(x,S,K),K},D=this&&this.__param||function(E,x){return function(S,O){x(S,O,E)}};Object.defineProperty(T,"__esModule",{value:!0}),T.CharacterJoinerService=T.JoinedCellData=void 0;var M=R(3734),A=R(643),_=R(511),g=R(2585),k=function(E){function x(S,O,L){var j=E.call(this)||this;return j.content=0,j.combinedData="",j.fg=S.fg,j.bg=S.bg,j.combinedData=O,j._width=L,j}return v(x,E),x.prototype.isCombined=function(){return 2097152},x.prototype.getWidth=function(){return this._width},x.prototype.getChars=function(){return this.combinedData},x.prototype.getCode=function(){return 2097151},x.prototype.setFromCharData=function(S){throw new Error("not implemented")},x.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},x}(M.AttributeData);T.JoinedCellData=k;var N=function(){function E(x){this._bufferService=x,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new _.CellData}return E.prototype.register=function(x){var S={id:this._nextCharacterJoinerId++,handler:x};return this._characterJoiners.push(S),S.id},E.prototype.deregister=function(x){for(var S=0;S1)for(var ae=this._getJoinedRanges(L,z,K,S,j),se=0;se1)for(ae=this._getJoinedRanges(L,z,K,S,j),se=0;se=0;S--)(N=A[S])&&(x=(E<3?N(x):E>3?N(_,g,x):N(_,g))||x);return E>3&&x&&Object.defineProperty(_,g,x),x},v=this&&this.__param||function(A,_){return function(g,k){_(g,k,A)}};Object.defineProperty(T,"__esModule",{value:!0}),T.MouseService=void 0;var P=R(4725),D=R(9806),M=function(){function A(_,g){this._renderService=_,this._charSizeService=g}return A.prototype.getCoords=function(_,g,k,N,E){return D.getCoords(_,g,k,N,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,E)},A.prototype.getRawByteCoords=function(_,g,k,N){var E=this.getCoords(_,g,k,N);return D.getRawByteCoords(E)},C([v(0,P.IRenderService),v(1,P.ICharSizeService)],A)}();T.MouseService=M},3230:function(Z,T,R){var C,v=this&&this.__extends||(C=function(O,L){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,K){j.__proto__=K}||function(j,K){for(var z in K)Object.prototype.hasOwnProperty.call(K,z)&&(j[z]=K[z])})(O,L)},function(S,O){if("function"!=typeof O&&null!==O)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");function L(){this.constructor=S}C(S,O),S.prototype=null===O?Object.create(O):(L.prototype=O.prototype,new L)}),P=this&&this.__decorate||function(S,O,L,j){var K,z=arguments.length,J=z<3?O:null===j?j=Object.getOwnPropertyDescriptor(O,L):j;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)J=Reflect.decorate(S,O,L,j);else for(var ie=S.length-1;ie>=0;ie--)(K=S[ie])&&(J=(z<3?K(J):z>3?K(O,L,J):K(O,L))||J);return z>3&&J&&Object.defineProperty(O,L,J),J},D=this&&this.__param||function(S,O){return function(L,j){O(L,j,S)}};Object.defineProperty(T,"__esModule",{value:!0}),T.RenderService=void 0;var M=R(6193),A=R(8460),_=R(844),g=R(5596),k=R(3656),N=R(2585),E=R(4725),x=function(S){function O(L,j,K,z,J,ie){var te=S.call(this)||this;if(te._renderer=L,te._rowCount=j,te._charSizeService=J,te._isPaused=!1,te._needsFullRefresh=!1,te._isNextRenderRedrawOnly=!0,te._needsSelectionRefresh=!1,te._canvasWidth=0,te._canvasHeight=0,te._selectionState={start:void 0,end:void 0,columnSelectMode:!1},te._onDimensionsChange=new A.EventEmitter,te._onRender=new A.EventEmitter,te._onRefreshRequest=new A.EventEmitter,te.register({dispose:function(){return te._renderer.dispose()}}),te._renderDebouncer=new M.RenderDebouncer(function(se,ce){return te._renderRows(se,ce)}),te.register(te._renderDebouncer),te._screenDprMonitor=new g.ScreenDprMonitor,te._screenDprMonitor.setListener(function(){return te.onDevicePixelRatioChange()}),te.register(te._screenDprMonitor),te.register(ie.onResize(function(se){return te._fullRefresh()})),te.register(z.onOptionChange(function(){return te._renderer.onOptionsChanged()})),te.register(te._charSizeService.onCharSizeChange(function(){return te.onCharSizeChanged()})),te._renderer.onRequestRedraw(function(se){return te.refreshRows(se.start,se.end,!0)}),te.register(k.addDisposableDomListener(window,"resize",function(){return te.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var ae=new IntersectionObserver(function(se){return te._onIntersectionChange(se[se.length-1])},{threshold:0});ae.observe(K),te.register({dispose:function(){return ae.disconnect()}})}return te}return v(O,S),Object.defineProperty(O.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),O.prototype._onIntersectionChange=function(L){this._isPaused=void 0===L.isIntersecting?0===L.intersectionRatio:!L.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},O.prototype.refreshRows=function(L,j,K){void 0===K&&(K=!1),this._isPaused?this._needsFullRefresh=!0:(K||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(L,j,this._rowCount))},O.prototype._renderRows=function(L,j){this._renderer.renderRows(L,j),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:L,end:j}),this._isNextRenderRedrawOnly=!0},O.prototype.resize=function(L,j){this._rowCount=j,this._fireOnCanvasResize()},O.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},O.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},O.prototype.dispose=function(){S.prototype.dispose.call(this)},O.prototype.setRenderer=function(L){var j=this;this._renderer.dispose(),this._renderer=L,this._renderer.onRequestRedraw(function(K){return j.refreshRows(K.start,K.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},O.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},O.prototype.setColors=function(L){this._renderer.setColors(L),this._fullRefresh()},O.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},O.prototype.onResize=function(L,j){this._renderer.onResize(L,j),this._fullRefresh()},O.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},O.prototype.onBlur=function(){this._renderer.onBlur()},O.prototype.onFocus=function(){this._renderer.onFocus()},O.prototype.onSelectionChanged=function(L,j,K){this._selectionState.start=L,this._selectionState.end=j,this._selectionState.columnSelectMode=K,this._renderer.onSelectionChanged(L,j,K)},O.prototype.onCursorMove=function(){this._renderer.onCursorMove()},O.prototype.clear=function(){this._renderer.clear()},P([D(3,N.IOptionsService),D(4,E.ICharSizeService),D(5,N.IBufferService)],O)}(_.Disposable);T.RenderService=x},9312:function(Z,T,R){var C,v=this&&this.__extends||(C=function(J,ie){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,ae){te.__proto__=ae}||function(te,ae){for(var se in ae)Object.prototype.hasOwnProperty.call(ae,se)&&(te[se]=ae[se])})(J,ie)},function(z,J){if("function"!=typeof J&&null!==J)throw new TypeError("Class extends value "+String(J)+" is not a constructor or null");function ie(){this.constructor=z}C(z,J),z.prototype=null===J?Object.create(J):(ie.prototype=J.prototype,new ie)}),P=this&&this.__decorate||function(z,J,ie,te){var ae,se=arguments.length,ce=se<3?J:null===te?te=Object.getOwnPropertyDescriptor(J,ie):te;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ce=Reflect.decorate(z,J,ie,te);else for(var le=z.length-1;le>=0;le--)(ae=z[le])&&(ce=(se<3?ae(ce):se>3?ae(J,ie,ce):ae(J,ie))||ce);return se>3&&ce&&Object.defineProperty(J,ie,ce),ce},D=this&&this.__param||function(z,J){return function(ie,te){J(ie,te,z)}};Object.defineProperty(T,"__esModule",{value:!0}),T.SelectionService=void 0;var M=R(6114),A=R(456),_=R(511),g=R(8460),k=R(4725),N=R(2585),E=R(9806),x=R(9504),S=R(844),O=R(4841),L=String.fromCharCode(160),j=new RegExp(L,"g"),K=function(z){function J(ie,te,ae,se,ce,le,oe,Ae){var be=z.call(this)||this;return be._element=ie,be._screenElement=te,be._linkifier=ae,be._bufferService=se,be._coreService=ce,be._mouseService=le,be._optionsService=oe,be._renderService=Ae,be._dragScrollAmount=0,be._enabled=!0,be._workCell=new _.CellData,be._mouseDownTimeStamp=0,be._oldHasSelection=!1,be._oldSelectionStart=void 0,be._oldSelectionEnd=void 0,be._onLinuxMouseSelection=be.register(new g.EventEmitter),be._onRedrawRequest=be.register(new g.EventEmitter),be._onSelectionChange=be.register(new g.EventEmitter),be._onRequestScrollLines=be.register(new g.EventEmitter),be._mouseMoveListener=function(it){return be._onMouseMove(it)},be._mouseUpListener=function(it){return be._onMouseUp(it)},be._coreService.onUserInput(function(){be.hasSelection&&be.clearSelection()}),be._trimListener=be._bufferService.buffer.lines.onTrim(function(it){return be._onTrim(it)}),be.register(be._bufferService.buffers.onBufferActivate(function(it){return be._onBufferActivate(it)})),be.enable(),be._model=new A.SelectionModel(be._bufferService),be._activeSelectionMode=0,be}return v(J,z),Object.defineProperty(J.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),J.prototype.dispose=function(){this._removeMouseDownListeners()},J.prototype.reset=function(){this.clearSelection()},J.prototype.disable=function(){this.clearSelection(),this._enabled=!1},J.prototype.enable=function(){this._enabled=!0},Object.defineProperty(J.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"hasSelection",{get:function(){var te=this._model.finalSelectionStart,ae=this._model.finalSelectionEnd;return!(!te||!ae||te[0]===ae[0]&&te[1]===ae[1])},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"selectionText",{get:function(){var te=this._model.finalSelectionStart,ae=this._model.finalSelectionEnd;if(!te||!ae)return"";var se=this._bufferService.buffer,ce=[];if(3===this._activeSelectionMode){if(te[0]===ae[0])return"";for(var le=te[1];le<=ae[1];le++){var oe=se.translateBufferLineToString(le,!0,te[0],ae[0]);ce.push(oe)}}else{for(ce.push(se.translateBufferLineToString(te[1],!0,te[0],te[1]===ae[1]?ae[0]:void 0)),le=te[1]+1;le<=ae[1]-1;le++){var be=se.lines.get(le);oe=se.translateBufferLineToString(le,!0),be&&be.isWrapped?ce[ce.length-1]+=oe:ce.push(oe)}te[1]!==ae[1]&&(be=se.lines.get(ae[1]),oe=se.translateBufferLineToString(ae[1],!0,0,ae[0]),be&&be.isWrapped?ce[ce.length-1]+=oe:ce.push(oe))}return ce.map(function(it){return it.replace(j," ")}).join(M.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),J.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},J.prototype.refresh=function(ie){var te=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return te._refresh()})),M.isLinux&&ie&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},J.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},J.prototype._isClickInSelection=function(ie){var te=this._getMouseBufferCoords(ie),ae=this._model.finalSelectionStart,se=this._model.finalSelectionEnd;return!!(ae&&se&&te)&&this._areCoordsInSelection(te,ae,se)},J.prototype._areCoordsInSelection=function(ie,te,ae){return ie[1]>te[1]&&ie[1]=te[0]&&ie[0]=te[0]},J.prototype._selectWordAtCursor=function(ie,te){var ae,se,ce=null===(se=null===(ae=this._linkifier.currentLink)||void 0===ae?void 0:ae.link)||void 0===se?void 0:se.range;if(ce)return this._model.selectionStart=[ce.start.x-1,ce.start.y-1],this._model.selectionStartLength=O.getRangeLength(ce,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var le=this._getMouseBufferCoords(ie);return!!le&&(this._selectWordAt(le,te),this._model.selectionEnd=void 0,!0)},J.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},J.prototype.selectLines=function(ie,te){this._model.clearSelection(),ie=Math.max(ie,0),te=Math.min(te,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,ie],this._model.selectionEnd=[this._bufferService.cols,te],this.refresh(),this._onSelectionChange.fire()},J.prototype._onTrim=function(ie){this._model.onTrim(ie)&&this.refresh()},J.prototype._getMouseBufferCoords=function(ie){var te=this._mouseService.getCoords(ie,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(te)return te[0]--,te[1]--,te[1]+=this._bufferService.buffer.ydisp,te},J.prototype._getMouseEventScrollAmount=function(ie){var te=E.getCoordsRelativeToElement(ie,this._screenElement)[1],ae=this._renderService.dimensions.canvasHeight;return te>=0&&te<=ae?0:(te>ae&&(te-=ae),te=Math.min(Math.max(te,-50),50),(te/=50)/Math.abs(te)+Math.round(14*te))},J.prototype.shouldForceSelection=function(ie){return M.isMac?ie.altKey&&this._optionsService.options.macOptionClickForcesSelection:ie.shiftKey},J.prototype.onMouseDown=function(ie){if(this._mouseDownTimeStamp=ie.timeStamp,(2!==ie.button||!this.hasSelection)&&0===ie.button){if(!this._enabled){if(!this.shouldForceSelection(ie))return;ie.stopPropagation()}ie.preventDefault(),this._dragScrollAmount=0,this._enabled&&ie.shiftKey?this._onIncrementalClick(ie):1===ie.detail?this._onSingleClick(ie):2===ie.detail?this._onDoubleClick(ie):3===ie.detail&&this._onTripleClick(ie),this._addMouseDownListeners(),this.refresh(!0)}},J.prototype._addMouseDownListeners=function(){var ie=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return ie._dragScroll()},50)},J.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},J.prototype._onIncrementalClick=function(ie){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(ie))},J.prototype._onSingleClick=function(ie){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(ie)?3:0,this._model.selectionStart=this._getMouseBufferCoords(ie),this._model.selectionStart){this._model.selectionEnd=void 0;var te=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);te&&te.length!==this._model.selectionStart[0]&&0===te.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},J.prototype._onDoubleClick=function(ie){this._selectWordAtCursor(ie,!0)&&(this._activeSelectionMode=1)},J.prototype._onTripleClick=function(ie){var te=this._getMouseBufferCoords(ie);te&&(this._activeSelectionMode=2,this._selectLineAt(te[1]))},J.prototype.shouldColumnSelect=function(ie){return ie.altKey&&!(M.isMac&&this._optionsService.options.macOptionClickForcesSelection)},J.prototype._onMouseMove=function(ie){if(ie.stopImmediatePropagation(),this._model.selectionStart){var te=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(ie),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[0]=this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var ae=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(ie.ydisp+this._bufferService.rows,ie.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=ie.ydisp),this.refresh()}},J.prototype._onMouseUp=function(ie){var te=ie.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&te<500&&ie.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var ae=this._mouseService.getCoords(ie,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(ae&&void 0!==ae[0]&&void 0!==ae[1]){var se=x.moveToCellSequence(ae[0]-1,ae[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(se,!0)}}}else this._fireEventIfSelectionChanged()},J.prototype._fireEventIfSelectionChanged=function(){var ie=this._model.finalSelectionStart,te=this._model.finalSelectionEnd,ae=!(!ie||!te||ie[0]===te[0]&&ie[1]===te[1]);ae?ie&&te&&(this._oldSelectionStart&&this._oldSelectionEnd&&ie[0]===this._oldSelectionStart[0]&&ie[1]===this._oldSelectionStart[1]&&te[0]===this._oldSelectionEnd[0]&&te[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(ie,te,ae)):this._oldHasSelection&&this._fireOnSelectionChange(ie,te,ae)},J.prototype._fireOnSelectionChange=function(ie,te,ae){this._oldSelectionStart=ie,this._oldSelectionEnd=te,this._oldHasSelection=ae,this._onSelectionChange.fire()},J.prototype._onBufferActivate=function(ie){var te=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=ie.activeBuffer.lines.onTrim(function(ae){return te._onTrim(ae)})},J.prototype._convertViewportColToCharacterIndex=function(ie,te){for(var ae=te[0],se=0;te[0]>=se;se++){var ce=ie.loadCell(se,this._workCell).getChars().length;0===this._workCell.getWidth()?ae--:ce>1&&te[0]!==se&&(ae+=ce-1)}return ae},J.prototype.setSelection=function(ie,te,ae){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[ie,te],this._model.selectionStartLength=ae,this.refresh()},J.prototype.rightClickSelect=function(ie){this._isClickInSelection(ie)||(this._selectWordAtCursor(ie,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},J.prototype._getWordAt=function(ie,te,ae,se){if(void 0===ae&&(ae=!0),void 0===se&&(se=!0),!(ie[0]>=this._bufferService.cols)){var ce=this._bufferService.buffer,le=ce.lines.get(ie[1]);if(le){var oe=ce.translateBufferLineToString(ie[1],!1),Ae=this._convertViewportColToCharacterIndex(le,ie),be=Ae,it=ie[0]-Ae,qe=0,_t=0,yt=0,Ft=0;if(" "===oe.charAt(Ae)){for(;Ae>0&&" "===oe.charAt(Ae-1);)Ae--;for(;be1&&(Ft+=je-1,be+=je-1);xe>0&&Ae>0&&!this._isCharWordSeparator(le.loadCell(xe-1,this._workCell));){le.loadCell(xe-1,this._workCell);var dt=this._workCell.getChars().length;0===this._workCell.getWidth()?(qe++,xe--):dt>1&&(yt+=dt-1,Ae-=dt-1),Ae--,xe--}for(;Oe1&&(Ft+=Qe-1,be+=Qe-1),be++,Oe++}}be++;var Bt=Ae+it-qe+yt,xt=Math.min(this._bufferService.cols,be-Ae+qe+_t-yt-Ft);if(te||""!==oe.slice(Ae,be).trim()){if(ae&&0===Bt&&32!==le.getCodePoint(0)){var vt=ce.lines.get(ie[1]-1);if(vt&&le.isWrapped&&32!==vt.getCodePoint(this._bufferService.cols-1)){var Qt=this._getWordAt([this._bufferService.cols-1,ie[1]-1],!1,!0,!1);if(Qt){var Ht=this._bufferService.cols-Qt.start;Bt-=Ht,xt+=Ht}}}if(se&&Bt+xt===this._bufferService.cols&&32!==le.getCodePoint(this._bufferService.cols-1)){var Ct=ce.lines.get(ie[1]+1);if(Ct&&Ct.isWrapped&&32!==Ct.getCodePoint(0)){var Vt=this._getWordAt([0,ie[1]+1],!1,!1,!0);Vt&&(xt+=Vt.length)}}return{start:Bt,length:xt}}}}},J.prototype._selectWordAt=function(ie,te){var ae=this._getWordAt(ie,te);if(ae){for(;ae.start<0;)ae.start+=this._bufferService.cols,ie[1]--;this._model.selectionStart=[ae.start,ie[1]],this._model.selectionStartLength=ae.length}},J.prototype._selectToWordAt=function(ie){var te=this._getWordAt(ie,!0);if(te){for(var ae=ie[1];te.start<0;)te.start+=this._bufferService.cols,ae--;if(!this._model.areSelectionValuesReversed())for(;te.start+te.length>this._bufferService.cols;)te.length-=this._bufferService.cols,ae++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?te.start:te.start+te.length,ae]}},J.prototype._isCharWordSeparator=function(ie){return 0!==ie.getWidth()&&this._optionsService.options.wordSeparator.indexOf(ie.getChars())>=0},J.prototype._selectLineAt=function(ie){var te=this._bufferService.buffer.getWrappedRangeForLine(ie);this._model.selectionStart=[0,te.first],this._model.selectionEnd=[this._bufferService.cols,te.last],this._model.selectionStartLength=0},P([D(3,N.IBufferService),D(4,N.ICoreService),D(5,k.IMouseService),D(6,N.IOptionsService),D(7,k.IRenderService)],J)}(S.Disposable);T.SelectionService=K},4725:function(Z,T,R){Object.defineProperty(T,"__esModule",{value:!0}),T.ICharacterJoinerService=T.ISoundService=T.ISelectionService=T.IRenderService=T.IMouseService=T.ICoreBrowserService=T.ICharSizeService=void 0;var C=R(8343);T.ICharSizeService=C.createDecorator("CharSizeService"),T.ICoreBrowserService=C.createDecorator("CoreBrowserService"),T.IMouseService=C.createDecorator("MouseService"),T.IRenderService=C.createDecorator("RenderService"),T.ISelectionService=C.createDecorator("SelectionService"),T.ISoundService=C.createDecorator("SoundService"),T.ICharacterJoinerService=C.createDecorator("CharacterJoinerService")},357:function(Z,T,R){var C=this&&this.__decorate||function(M,A,_,g){var k,N=arguments.length,E=N<3?A:null===g?g=Object.getOwnPropertyDescriptor(A,_):g;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(M,A,_,g);else for(var x=M.length-1;x>=0;x--)(k=M[x])&&(E=(N<3?k(E):N>3?k(A,_,E):k(A,_))||E);return N>3&&E&&Object.defineProperty(A,_,E),E},v=this&&this.__param||function(M,A){return function(_,g){A(_,g,M)}};Object.defineProperty(T,"__esModule",{value:!0}),T.SoundService=void 0;var P=R(2585),D=function(){function M(A){this._optionsService=A}return Object.defineProperty(M,"audioContext",{get:function(){if(!M._audioContext){var _=window.AudioContext||window.webkitAudioContext;if(!_)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;M._audioContext=new _}return M._audioContext},enumerable:!1,configurable:!0}),M.prototype.playBellSound=function(){var A=M.audioContext;if(A){var _=A.createBufferSource();A.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(g){_.buffer=g,_.connect(A.destination),_.start(0)})}},M.prototype._base64ToArrayBuffer=function(A){for(var _=window.atob(A),g=_.length,k=new Uint8Array(g),N=0;Nthis._length)for(var A=this._length;A=D;g--)this._array[this._getCyclicIndex(g+A.length)]=this._array[this._getCyclicIndex(g)];for(g=0;gthis._maxLength){var k=this._length+A.length-this._maxLength;this._startIndex+=k,this._length=this._maxLength,this.onTrimEmitter.fire(k)}else this._length+=A.length},P.prototype.trimStart=function(D){D>this._length&&(D=this._length),this._startIndex+=D,this._length-=D,this.onTrimEmitter.fire(D)},P.prototype.shiftElements=function(D,M,A){if(!(M<=0)){if(D<0||D>=this._length)throw new Error("start argument out of range");if(D+A<0)throw new Error("Cannot shift elements in list beyond index 0");if(A>0){for(var _=M-1;_>=0;_--)this.set(D+_+A,this.get(D+_));var g=D+M+A-this._length;if(g>0)for(this._length+=g;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(_=0;_24)return ce.setWinLines||!1;switch(se){case 1:return!!ce.restoreWin;case 2:return!!ce.minimizeWin;case 3:return!!ce.setWinPosition;case 4:return!!ce.setWinSizePixels;case 5:return!!ce.raiseWin;case 6:return!!ce.lowerWin;case 7:return!!ce.refreshWin;case 8:return!!ce.setWinSizeChars;case 9:return!!ce.maximizeWin;case 10:return!!ce.fullscreenWin;case 11:return!!ce.getWinState;case 13:return!!ce.getWinPosition;case 14:return!!ce.getWinSizePixels;case 15:return!!ce.getScreenSizePixels;case 16:return!!ce.getCellSizePixels;case 18:return!!ce.getWinSizeChars;case 19:return!!ce.getScreenSizeChars;case 20:return!!ce.getIconTitle;case 21:return!!ce.getWinTitle;case 22:return!!ce.pushTitle;case 23:return!!ce.popTitle;case 24:return!!ce.setWinLines}return!1}(se=P=T.WindowsOptionsReportType||(T.WindowsOptionsReportType={}))[se.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",se[se.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS";var te=function(){function se(ce,le,oe,Ae){this._bufferService=ce,this._coreService=le,this._logService=oe,this._optionsService=Ae,this._data=new Uint32Array(0)}return se.prototype.hook=function(ce){this._data=new Uint32Array(0)},se.prototype.put=function(ce,le,oe){this._data=g.concat(this._data,ce.subarray(le,oe))},se.prototype.unhook=function(ce){if(!ce)return this._data=new Uint32Array(0),!0;var le=k.utf32ToString(this._data);switch(this._data=new Uint32Array(0),le){case'"q':this._coreService.triggerDataEvent(D.C0.ESC+'P1$r0"q'+D.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(D.C0.ESC+'P1$r61;1"p'+D.C0.ESC+"\\");break;case"r":this._coreService.triggerDataEvent(D.C0.ESC+"P1$r"+(this._bufferService.buffer.scrollTop+1)+";"+(this._bufferService.buffer.scrollBottom+1)+"r"+D.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(D.C0.ESC+"P1$r0m"+D.C0.ESC+"\\");break;case" q":var Ae={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];this._coreService.triggerDataEvent(D.C0.ESC+"P1$r"+(Ae-=this._optionsService.options.cursorBlink?1:0)+" q"+D.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",le),this._coreService.triggerDataEvent(D.C0.ESC+"P0$r"+D.C0.ESC+"\\")}return!0},se}(),ae=function(se){function ce(le,oe,Ae,be,it,qe,_t,yt,Ft){void 0===Ft&&(Ft=new A.EscapeSequenceParser);var xe=se.call(this)||this;xe._bufferService=le,xe._charsetService=oe,xe._coreService=Ae,xe._dirtyRowService=be,xe._logService=it,xe._optionsService=qe,xe._coreMouseService=_t,xe._unicodeService=yt,xe._parser=Ft,xe._parseBuffer=new Uint32Array(4096),xe._stringDecoder=new k.StringToUtf32,xe._utf8Decoder=new k.Utf8ToUtf32,xe._workCell=new S.CellData,xe._windowTitle="",xe._iconName="",xe._windowTitleStack=[],xe._iconNameStack=[],xe._curAttrData=N.DEFAULT_ATTR_DATA.clone(),xe._eraseAttrDataInternal=N.DEFAULT_ATTR_DATA.clone(),xe._onRequestBell=new E.EventEmitter,xe._onRequestRefreshRows=new E.EventEmitter,xe._onRequestReset=new E.EventEmitter,xe._onRequestSyncScrollBar=new E.EventEmitter,xe._onRequestWindowsOptionsReport=new E.EventEmitter,xe._onA11yChar=new E.EventEmitter,xe._onA11yTab=new E.EventEmitter,xe._onCursorMove=new E.EventEmitter,xe._onLineFeed=new E.EventEmitter,xe._onScroll=new E.EventEmitter,xe._onTitleChange=new E.EventEmitter,xe._onAnsiColorChange=new E.EventEmitter,xe._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},xe.register(xe._parser),xe._activeBuffer=xe._bufferService.buffer,xe.register(xe._bufferService.buffers.onBufferActivate(function(Qe){return xe._activeBuffer=Qe.activeBuffer})),xe._parser.setCsiHandlerFallback(function(Qe,Bt){xe._logService.debug("Unknown CSI code: ",{identifier:xe._parser.identToString(Qe),params:Bt.toArray()})}),xe._parser.setEscHandlerFallback(function(Qe){xe._logService.debug("Unknown ESC code: ",{identifier:xe._parser.identToString(Qe)})}),xe._parser.setExecuteHandlerFallback(function(Qe){xe._logService.debug("Unknown EXECUTE code: ",{code:Qe})}),xe._parser.setOscHandlerFallback(function(Qe,Bt,xt){xe._logService.debug("Unknown OSC code: ",{identifier:Qe,action:Bt,data:xt})}),xe._parser.setDcsHandlerFallback(function(Qe,Bt,xt){"HOOK"===Bt&&(xt=xt.toArray()),xe._logService.debug("Unknown DCS code: ",{identifier:xe._parser.identToString(Qe),action:Bt,payload:xt})}),xe._parser.setPrintHandler(function(Qe,Bt,xt){return xe.print(Qe,Bt,xt)}),xe._parser.registerCsiHandler({final:"@"},function(Qe){return xe.insertChars(Qe)}),xe._parser.registerCsiHandler({intermediates:" ",final:"@"},function(Qe){return xe.scrollLeft(Qe)}),xe._parser.registerCsiHandler({final:"A"},function(Qe){return xe.cursorUp(Qe)}),xe._parser.registerCsiHandler({intermediates:" ",final:"A"},function(Qe){return xe.scrollRight(Qe)}),xe._parser.registerCsiHandler({final:"B"},function(Qe){return xe.cursorDown(Qe)}),xe._parser.registerCsiHandler({final:"C"},function(Qe){return xe.cursorForward(Qe)}),xe._parser.registerCsiHandler({final:"D"},function(Qe){return xe.cursorBackward(Qe)}),xe._parser.registerCsiHandler({final:"E"},function(Qe){return xe.cursorNextLine(Qe)}),xe._parser.registerCsiHandler({final:"F"},function(Qe){return xe.cursorPrecedingLine(Qe)}),xe._parser.registerCsiHandler({final:"G"},function(Qe){return xe.cursorCharAbsolute(Qe)}),xe._parser.registerCsiHandler({final:"H"},function(Qe){return xe.cursorPosition(Qe)}),xe._parser.registerCsiHandler({final:"I"},function(Qe){return xe.cursorForwardTab(Qe)}),xe._parser.registerCsiHandler({final:"J"},function(Qe){return xe.eraseInDisplay(Qe)}),xe._parser.registerCsiHandler({prefix:"?",final:"J"},function(Qe){return xe.eraseInDisplay(Qe)}),xe._parser.registerCsiHandler({final:"K"},function(Qe){return xe.eraseInLine(Qe)}),xe._parser.registerCsiHandler({prefix:"?",final:"K"},function(Qe){return xe.eraseInLine(Qe)}),xe._parser.registerCsiHandler({final:"L"},function(Qe){return xe.insertLines(Qe)}),xe._parser.registerCsiHandler({final:"M"},function(Qe){return xe.deleteLines(Qe)}),xe._parser.registerCsiHandler({final:"P"},function(Qe){return xe.deleteChars(Qe)}),xe._parser.registerCsiHandler({final:"S"},function(Qe){return xe.scrollUp(Qe)}),xe._parser.registerCsiHandler({final:"T"},function(Qe){return xe.scrollDown(Qe)}),xe._parser.registerCsiHandler({final:"X"},function(Qe){return xe.eraseChars(Qe)}),xe._parser.registerCsiHandler({final:"Z"},function(Qe){return xe.cursorBackwardTab(Qe)}),xe._parser.registerCsiHandler({final:"`"},function(Qe){return xe.charPosAbsolute(Qe)}),xe._parser.registerCsiHandler({final:"a"},function(Qe){return xe.hPositionRelative(Qe)}),xe._parser.registerCsiHandler({final:"b"},function(Qe){return xe.repeatPrecedingCharacter(Qe)}),xe._parser.registerCsiHandler({final:"c"},function(Qe){return xe.sendDeviceAttributesPrimary(Qe)}),xe._parser.registerCsiHandler({prefix:">",final:"c"},function(Qe){return xe.sendDeviceAttributesSecondary(Qe)}),xe._parser.registerCsiHandler({final:"d"},function(Qe){return xe.linePosAbsolute(Qe)}),xe._parser.registerCsiHandler({final:"e"},function(Qe){return xe.vPositionRelative(Qe)}),xe._parser.registerCsiHandler({final:"f"},function(Qe){return xe.hVPosition(Qe)}),xe._parser.registerCsiHandler({final:"g"},function(Qe){return xe.tabClear(Qe)}),xe._parser.registerCsiHandler({final:"h"},function(Qe){return xe.setMode(Qe)}),xe._parser.registerCsiHandler({prefix:"?",final:"h"},function(Qe){return xe.setModePrivate(Qe)}),xe._parser.registerCsiHandler({final:"l"},function(Qe){return xe.resetMode(Qe)}),xe._parser.registerCsiHandler({prefix:"?",final:"l"},function(Qe){return xe.resetModePrivate(Qe)}),xe._parser.registerCsiHandler({final:"m"},function(Qe){return xe.charAttributes(Qe)}),xe._parser.registerCsiHandler({final:"n"},function(Qe){return xe.deviceStatus(Qe)}),xe._parser.registerCsiHandler({prefix:"?",final:"n"},function(Qe){return xe.deviceStatusPrivate(Qe)}),xe._parser.registerCsiHandler({intermediates:"!",final:"p"},function(Qe){return xe.softReset(Qe)}),xe._parser.registerCsiHandler({intermediates:" ",final:"q"},function(Qe){return xe.setCursorStyle(Qe)}),xe._parser.registerCsiHandler({final:"r"},function(Qe){return xe.setScrollRegion(Qe)}),xe._parser.registerCsiHandler({final:"s"},function(Qe){return xe.saveCursor(Qe)}),xe._parser.registerCsiHandler({final:"t"},function(Qe){return xe.windowOptions(Qe)}),xe._parser.registerCsiHandler({final:"u"},function(Qe){return xe.restoreCursor(Qe)}),xe._parser.registerCsiHandler({intermediates:"'",final:"}"},function(Qe){return xe.insertColumns(Qe)}),xe._parser.registerCsiHandler({intermediates:"'",final:"~"},function(Qe){return xe.deleteColumns(Qe)}),xe._parser.setExecuteHandler(D.C0.BEL,function(){return xe.bell()}),xe._parser.setExecuteHandler(D.C0.LF,function(){return xe.lineFeed()}),xe._parser.setExecuteHandler(D.C0.VT,function(){return xe.lineFeed()}),xe._parser.setExecuteHandler(D.C0.FF,function(){return xe.lineFeed()}),xe._parser.setExecuteHandler(D.C0.CR,function(){return xe.carriageReturn()}),xe._parser.setExecuteHandler(D.C0.BS,function(){return xe.backspace()}),xe._parser.setExecuteHandler(D.C0.HT,function(){return xe.tab()}),xe._parser.setExecuteHandler(D.C0.SO,function(){return xe.shiftOut()}),xe._parser.setExecuteHandler(D.C0.SI,function(){return xe.shiftIn()}),xe._parser.setExecuteHandler(D.C1.IND,function(){return xe.index()}),xe._parser.setExecuteHandler(D.C1.NEL,function(){return xe.nextLine()}),xe._parser.setExecuteHandler(D.C1.HTS,function(){return xe.tabSet()}),xe._parser.registerOscHandler(0,new j.OscHandler(function(Qe){return xe.setTitle(Qe),xe.setIconName(Qe),!0})),xe._parser.registerOscHandler(1,new j.OscHandler(function(Qe){return xe.setIconName(Qe)})),xe._parser.registerOscHandler(2,new j.OscHandler(function(Qe){return xe.setTitle(Qe)})),xe._parser.registerOscHandler(4,new j.OscHandler(function(Qe){return xe.setAnsiColor(Qe)})),xe._parser.registerEscHandler({final:"7"},function(){return xe.saveCursor()}),xe._parser.registerEscHandler({final:"8"},function(){return xe.restoreCursor()}),xe._parser.registerEscHandler({final:"D"},function(){return xe.index()}),xe._parser.registerEscHandler({final:"E"},function(){return xe.nextLine()}),xe._parser.registerEscHandler({final:"H"},function(){return xe.tabSet()}),xe._parser.registerEscHandler({final:"M"},function(){return xe.reverseIndex()}),xe._parser.registerEscHandler({final:"="},function(){return xe.keypadApplicationMode()}),xe._parser.registerEscHandler({final:">"},function(){return xe.keypadNumericMode()}),xe._parser.registerEscHandler({final:"c"},function(){return xe.fullReset()}),xe._parser.registerEscHandler({final:"n"},function(){return xe.setgLevel(2)}),xe._parser.registerEscHandler({final:"o"},function(){return xe.setgLevel(3)}),xe._parser.registerEscHandler({final:"|"},function(){return xe.setgLevel(3)}),xe._parser.registerEscHandler({final:"}"},function(){return xe.setgLevel(2)}),xe._parser.registerEscHandler({final:"~"},function(){return xe.setgLevel(1)}),xe._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return xe.selectDefaultCharset()}),xe._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return xe.selectDefaultCharset()});var Oe=function(Bt){je._parser.registerEscHandler({intermediates:"(",final:Bt},function(){return xe.selectCharset("("+Bt)}),je._parser.registerEscHandler({intermediates:")",final:Bt},function(){return xe.selectCharset(")"+Bt)}),je._parser.registerEscHandler({intermediates:"*",final:Bt},function(){return xe.selectCharset("*"+Bt)}),je._parser.registerEscHandler({intermediates:"+",final:Bt},function(){return xe.selectCharset("+"+Bt)}),je._parser.registerEscHandler({intermediates:"-",final:Bt},function(){return xe.selectCharset("-"+Bt)}),je._parser.registerEscHandler({intermediates:".",final:Bt},function(){return xe.selectCharset("."+Bt)}),je._parser.registerEscHandler({intermediates:"/",final:Bt},function(){return xe.selectCharset("/"+Bt)})},je=this;for(var dt in M.CHARSETS)Oe(dt);return xe._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return xe.screenAlignmentPattern()}),xe._parser.setErrorHandler(function(Qe){return xe._logService.error("Parsing error: ",Qe),Qe}),xe._parser.registerDcsHandler({intermediates:"$",final:"q"},new te(xe._bufferService,xe._coreService,xe._logService,xe._optionsService)),xe}return v(ce,se),Object.defineProperty(ce.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onAnsiColorChange",{get:function(){return this._onAnsiColorChange.event},enumerable:!1,configurable:!0}),ce.prototype.dispose=function(){se.prototype.dispose.call(this)},ce.prototype._preserveStack=function(le,oe,Ae,be){this._parseStack.paused=!0,this._parseStack.cursorStartX=le,this._parseStack.cursorStartY=oe,this._parseStack.decodedLength=Ae,this._parseStack.position=be},ce.prototype._logSlowResolvingAsync=function(le){this._logService.logLevel<=L.LogLevelEnum.WARN&&Promise.race([le,new Promise(function(oe,Ae){return setTimeout(function(){return Ae("#SLOW_TIMEOUT")},5e3)})]).catch(function(oe){if("#SLOW_TIMEOUT"!==oe)throw oe;console.warn("async parser handler taking longer than 5000 ms")})},ce.prototype.parse=function(le,oe){var Ae,be=this._activeBuffer.x,it=this._activeBuffer.y,qe=0,_t=this._parseStack.paused;if(_t){if(Ae=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,oe))return this._logSlowResolvingAsync(Ae),Ae;be=this._parseStack.cursorStartX,it=this._parseStack.cursorStartY,this._parseStack.paused=!1,le.length>J&&(qe=this._parseStack.position+J)}if(this._logService.debug("parsing data",le),this._parseBuffer.lengthJ)for(var yt=qe;yt0&&2===je.getWidth(this._activeBuffer.x-1)&&je.setCellFromCodePoint(this._activeBuffer.x-1,0,1,Oe.fg,Oe.bg,Oe.extended);for(var dt=oe;dt=yt)if(Ft){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),je=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=yt-1,2===it)continue;if(xe&&(je.insertCells(this._activeBuffer.x,it,this._activeBuffer.getNullCell(Oe),Oe),2===je.getWidth(yt-1)&&je.setCellFromCodePoint(yt-1,x.NULL_CELL_CODE,x.NULL_CELL_WIDTH,Oe.fg,Oe.bg,Oe.extended)),je.setCellFromCodePoint(this._activeBuffer.x++,be,it,Oe.fg,Oe.bg,Oe.extended),it>0)for(;--it;)je.setCellFromCodePoint(this._activeBuffer.x++,0,0,Oe.fg,Oe.bg,Oe.extended)}else je.getWidth(this._activeBuffer.x-1)?je.addCodepointToCell(this._activeBuffer.x-1,be):je.addCodepointToCell(this._activeBuffer.x-2,be)}Ae-oe>0&&(je.loadCell(this._activeBuffer.x-1,this._workCell),this._parser.precedingCodepoint=2===this._workCell.getWidth()||this._workCell.getCode()>65535?0:this._workCell.isCombined()?this._workCell.getChars().charCodeAt(0):this._workCell.content),this._activeBuffer.x0&&0===je.getWidth(this._activeBuffer.x)&&!je.hasContent(this._activeBuffer.x)&&je.setCellFromCodePoint(this._activeBuffer.x,0,1,Oe.fg,Oe.bg,Oe.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},ce.prototype.registerCsiHandler=function(le,oe){var Ae=this;return this._parser.registerCsiHandler(le,"t"!==le.final||le.prefix||le.intermediates?oe:function(be){return!ie(be.params[0],Ae._optionsService.options.windowOptions)||oe(be)})},ce.prototype.registerDcsHandler=function(le,oe){return this._parser.registerDcsHandler(le,new K.DcsHandler(oe))},ce.prototype.registerEscHandler=function(le,oe){return this._parser.registerEscHandler(le,oe)},ce.prototype.registerOscHandler=function(le,oe){return this._parser.registerOscHandler(le,new j.OscHandler(oe))},ce.prototype.bell=function(){return this._onRequestBell.fire(),!0},ce.prototype.lineFeed=function(){return this._dirtyRowService.markDirty(this._activeBuffer.y),this._optionsService.options.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowService.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0},ce.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},ce.prototype.backspace=function(){var le;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(le=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===le?void 0:le.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var oe=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);oe.hasWidth(this._activeBuffer.x)&&!oe.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},ce.prototype.tab=function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var le=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-le),!0},ce.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},ce.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},ce.prototype._restrictCursor=function(le){void 0===le&&(le=this._bufferService.cols-1),this._activeBuffer.x=Math.min(le,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowService.markDirty(this._activeBuffer.y)},ce.prototype._setCursor=function(le,oe){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=le,this._activeBuffer.y=this._activeBuffer.scrollTop+oe):(this._activeBuffer.x=le,this._activeBuffer.y=oe),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},ce.prototype._moveCursor=function(le,oe){this._restrictCursor(),this._setCursor(this._activeBuffer.x+le,this._activeBuffer.y+oe)},ce.prototype.cursorUp=function(le){var oe=this._activeBuffer.y-this._activeBuffer.scrollTop;return this._moveCursor(0,oe>=0?-Math.min(oe,le.params[0]||1):-(le.params[0]||1)),!0},ce.prototype.cursorDown=function(le){var oe=this._activeBuffer.scrollBottom-this._activeBuffer.y;return this._moveCursor(0,oe>=0?Math.min(oe,le.params[0]||1):le.params[0]||1),!0},ce.prototype.cursorForward=function(le){return this._moveCursor(le.params[0]||1,0),!0},ce.prototype.cursorBackward=function(le){return this._moveCursor(-(le.params[0]||1),0),!0},ce.prototype.cursorNextLine=function(le){return this.cursorDown(le),this._activeBuffer.x=0,!0},ce.prototype.cursorPrecedingLine=function(le){return this.cursorUp(le),this._activeBuffer.x=0,!0},ce.prototype.cursorCharAbsolute=function(le){return this._setCursor((le.params[0]||1)-1,this._activeBuffer.y),!0},ce.prototype.cursorPosition=function(le){return this._setCursor(le.length>=2?(le.params[1]||1)-1:0,(le.params[0]||1)-1),!0},ce.prototype.charPosAbsolute=function(le){return this._setCursor((le.params[0]||1)-1,this._activeBuffer.y),!0},ce.prototype.hPositionRelative=function(le){return this._moveCursor(le.params[0]||1,0),!0},ce.prototype.linePosAbsolute=function(le){return this._setCursor(this._activeBuffer.x,(le.params[0]||1)-1),!0},ce.prototype.vPositionRelative=function(le){return this._moveCursor(0,le.params[0]||1),!0},ce.prototype.hVPosition=function(le){return this.cursorPosition(le),!0},ce.prototype.tabClear=function(le){var oe=le.params[0];return 0===oe?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===oe&&(this._activeBuffer.tabs={}),!0},ce.prototype.cursorForwardTab=function(le){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var oe=le.params[0]||1;oe--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},ce.prototype.cursorBackwardTab=function(le){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var oe=le.params[0]||1;oe--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},ce.prototype._eraseInBufferLine=function(le,oe,Ae,be){void 0===be&&(be=!1);var it=this._activeBuffer.lines.get(this._activeBuffer.ybase+le);it.replaceCells(oe,Ae,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),be&&(it.isWrapped=!1)},ce.prototype._resetBufferLine=function(le){var oe=this._activeBuffer.lines.get(this._activeBuffer.ybase+le);oe.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),oe.isWrapped=!1},ce.prototype.eraseInDisplay=function(le){var oe;switch(this._restrictCursor(this._bufferService.cols),le.params[0]){case 0:for(this._dirtyRowService.markDirty(oe=this._activeBuffer.y),this._eraseInBufferLine(oe++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);oe=this._bufferService.cols&&(this._activeBuffer.lines.get(oe+1).isWrapped=!1);oe--;)this._resetBufferLine(oe);this._dirtyRowService.markDirty(0);break;case 2:for(this._dirtyRowService.markDirty((oe=this._bufferService.rows)-1);oe--;)this._resetBufferLine(oe);this._dirtyRowService.markDirty(0);break;case 3:var Ae=this._activeBuffer.lines.length-this._bufferService.rows;Ae>0&&(this._activeBuffer.lines.trimStart(Ae),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-Ae,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-Ae,0),this._onScroll.fire(0))}return!0},ce.prototype.eraseInLine=function(le){switch(this._restrictCursor(this._bufferService.cols),le.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols)}return this._dirtyRowService.markDirty(this._activeBuffer.y),!0},ce.prototype.insertLines=function(le){this._restrictCursor();var oe=le.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(D.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(D.C0.ESC+"[?6c")),!0},ce.prototype.sendDeviceAttributesSecondary=function(le){return le.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(D.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(D.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(le.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(D.C0.ESC+"[>83;40003;0c")),!0},ce.prototype._is=function(le){return 0===(this._optionsService.options.termName+"").indexOf(le)},ce.prototype.setMode=function(le){for(var oe=0;oe=2||2===be[1]&&qe+it>=5)break;be[1]&&(it=1)}while(++qe+oe5)&&(le=1),oe.extended.underlineStyle=le,oe.fg|=268435456,0===le&&(oe.fg&=-268435457),oe.updateExtended()},ce.prototype.charAttributes=function(le){if(1===le.length&&0===le.params[0])return this._curAttrData.fg=N.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=N.DEFAULT_ATTR_DATA.bg,!0;for(var oe,Ae=le.length,be=this._curAttrData,it=0;it=30&&oe<=37?(be.fg&=-50331904,be.fg|=16777216|oe-30):oe>=40&&oe<=47?(be.bg&=-50331904,be.bg|=16777216|oe-40):oe>=90&&oe<=97?(be.fg&=-50331904,be.fg|=16777224|oe-90):oe>=100&&oe<=107?(be.bg&=-50331904,be.bg|=16777224|oe-100):0===oe?(be.fg=N.DEFAULT_ATTR_DATA.fg,be.bg=N.DEFAULT_ATTR_DATA.bg):1===oe?be.fg|=134217728:3===oe?be.bg|=67108864:4===oe?(be.fg|=268435456,this._processUnderline(le.hasSubParams(it)?le.getSubParams(it)[0]:1,be)):5===oe?be.fg|=536870912:7===oe?be.fg|=67108864:8===oe?be.fg|=1073741824:9===oe?be.fg|=2147483648:2===oe?be.bg|=134217728:21===oe?this._processUnderline(2,be):22===oe?(be.fg&=-134217729,be.bg&=-134217729):23===oe?be.bg&=-67108865:24===oe?be.fg&=-268435457:25===oe?be.fg&=-536870913:27===oe?be.fg&=-67108865:28===oe?be.fg&=-1073741825:29===oe?be.fg&=2147483647:39===oe?(be.fg&=-67108864,be.fg|=16777215&N.DEFAULT_ATTR_DATA.fg):49===oe?(be.bg&=-67108864,be.bg|=16777215&N.DEFAULT_ATTR_DATA.bg):38===oe||48===oe||58===oe?it+=this._extractColor(le,it,be):59===oe?(be.extended=be.extended.clone(),be.extended.underlineColor=-1,be.updateExtended()):100===oe?(be.fg&=-67108864,be.fg|=16777215&N.DEFAULT_ATTR_DATA.fg,be.bg&=-67108864,be.bg|=16777215&N.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",oe);return!0},ce.prototype.deviceStatus=function(le){switch(le.params[0]){case 5:this._coreService.triggerDataEvent(D.C0.ESC+"[0n");break;case 6:this._coreService.triggerDataEvent(D.C0.ESC+"["+(this._activeBuffer.y+1)+";"+(this._activeBuffer.x+1)+"R")}return!0},ce.prototype.deviceStatusPrivate=function(le){switch(le.params[0]){case 6:this._coreService.triggerDataEvent(D.C0.ESC+"[?"+(this._activeBuffer.y+1)+";"+(this._activeBuffer.x+1)+"R")}return!0},ce.prototype.softReset=function(le){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=N.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0},ce.prototype.setCursorStyle=function(le){var oe=le.params[0]||1;switch(oe){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}return this._optionsService.options.cursorBlink=oe%2==1,!0},ce.prototype.setScrollRegion=function(le){var oe,Ae=le.params[0]||1;return(le.length<2||(oe=le.params[1])>this._bufferService.rows||0===oe)&&(oe=this._bufferService.rows),oe>Ae&&(this._activeBuffer.scrollTop=Ae-1,this._activeBuffer.scrollBottom=oe-1,this._setCursor(0,0)),!0},ce.prototype.windowOptions=function(le){if(!ie(le.params[0],this._optionsService.options.windowOptions))return!0;var oe=le.length>1?le.params[1]:0;switch(le.params[0]){case 14:2!==oe&&this._onRequestWindowsOptionsReport.fire(P.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(P.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(D.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==oe&&2!==oe||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==oe&&1!==oe||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==oe&&2!==oe||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==oe&&1!==oe||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},ce.prototype.saveCursor=function(le){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0},ce.prototype.restoreCursor=function(le){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0},ce.prototype.setTitle=function(le){return this._windowTitle=le,this._onTitleChange.fire(le),!0},ce.prototype.setIconName=function(le){return this._iconName=le,!0},ce.prototype._parseAnsiColorChange=function(le){for(var oe,Ae={colors:[]},be=/(\d+);rgb:([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})/gi;null!==(oe=be.exec(le));)Ae.colors.push({colorIndex:parseInt(oe[1]),red:parseInt(oe[2],16),green:parseInt(oe[3],16),blue:parseInt(oe[4],16)});return 0===Ae.colors.length?null:Ae},ce.prototype.setAnsiColor=function(le){var oe=this._parseAnsiColorChange(le);return oe?this._onAnsiColorChange.fire(oe):this._logService.warn("Expected format ;rgb:// but got data: "+le),!0},ce.prototype.nextLine=function(){return this._activeBuffer.x=0,this.index(),!0},ce.prototype.keypadApplicationMode=function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0},ce.prototype.keypadNumericMode=function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0},ce.prototype.selectDefaultCharset=function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,M.DEFAULT_CHARSET),!0},ce.prototype.selectCharset=function(le){return 2!==le.length?(this.selectDefaultCharset(),!0):("/"===le[0]||this._charsetService.setgCharset(z[le[0]],M.CHARSETS[le[1]]||M.DEFAULT_CHARSET),!0)},ce.prototype.index=function(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0},ce.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},ce.prototype.reverseIndex=function(){return this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop?(this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)):(this._activeBuffer.y--,this._restrictCursor()),!0},ce.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},ce.prototype.reset=function(){this._curAttrData=N.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=N.DEFAULT_ATTR_DATA.clone()},ce.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},ce.prototype.setgLevel=function(le){return this._charsetService.setgLevel(le),!0},ce.prototype.screenAlignmentPattern=function(){var le=new S.CellData;le.content=1<<22|"E".charCodeAt(0),le.fg=this._curAttrData.fg,le.bg=this._curAttrData.bg,this._setCursor(0,0);for(var oe=0;oe=0},8273:function(Z,T){function R(C,v,P,D){if(void 0===P&&(P=0),void 0===D&&(D=C.length),P>=C.length)return C;D=D>=C.length?C.length:(C.length+D)%C.length;for(var M=P=(C.length+P)%C.length;M>>16&255,P>>>8&255,255&P]},v.fromColorRGB=function(P){return(255&P[0])<<16|(255&P[1])<<8|255&P[2]},v.prototype.clone=function(){var P=new v;return P.fg=this.fg,P.bg=this.bg,P.extended=this.extended.clone(),P},v.prototype.isInverse=function(){return 67108864&this.fg},v.prototype.isBold=function(){return 134217728&this.fg},v.prototype.isUnderline=function(){return 268435456&this.fg},v.prototype.isBlink=function(){return 536870912&this.fg},v.prototype.isInvisible=function(){return 1073741824&this.fg},v.prototype.isItalic=function(){return 67108864&this.bg},v.prototype.isDim=function(){return 134217728&this.bg},v.prototype.isStrikethrough=function(){return 2147483648&this.fg},v.prototype.getFgColorMode=function(){return 50331648&this.fg},v.prototype.getBgColorMode=function(){return 50331648&this.bg},v.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},v.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},v.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},v.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},v.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},v.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},v.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},v.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},v.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},v.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},v.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},v.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},v.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},v.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()},v.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},v.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()},v.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},v}();T.AttributeData=R;var C=function(){function v(P,D){void 0===P&&(P=0),void 0===D&&(D=-1),this.underlineStyle=P,this.underlineColor=D}return v.prototype.clone=function(){return new v(this.underlineStyle,this.underlineColor)},v.prototype.isEmpty=function(){return 0===this.underlineStyle},v}();T.ExtendedAttrs=C},9092:function(Z,T,R){Object.defineProperty(T,"__esModule",{value:!0}),T.BufferStringIterator=T.Buffer=T.MAX_BUFFER_SIZE=void 0;var C=R(6349),v=R(8437),P=R(511),D=R(643),M=R(4634),A=R(4863),_=R(7116),g=R(3734);T.MAX_BUFFER_SIZE=4294967295;var k=function(){function E(x,S,O){this._hasScrollback=x,this._optionsService=S,this._bufferService=O,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=v.DEFAULT_ATTR_DATA.clone(),this.savedCharset=_.DEFAULT_CHARSET,this.markers=[],this._nullCell=P.CellData.fromCharData([0,D.NULL_CELL_CHAR,D.NULL_CELL_WIDTH,D.NULL_CELL_CODE]),this._whitespaceCell=P.CellData.fromCharData([0,D.WHITESPACE_CELL_CHAR,D.WHITESPACE_CELL_WIDTH,D.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new C.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return E.prototype.getNullCell=function(x){return x?(this._nullCell.fg=x.fg,this._nullCell.bg=x.bg,this._nullCell.extended=x.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new g.ExtendedAttrs),this._nullCell},E.prototype.getWhitespaceCell=function(x){return x?(this._whitespaceCell.fg=x.fg,this._whitespaceCell.bg=x.bg,this._whitespaceCell.extended=x.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new g.ExtendedAttrs),this._whitespaceCell},E.prototype.getBlankLine=function(x,S){return new v.BufferLine(this._bufferService.cols,this.getNullCell(x),S)},Object.defineProperty(E.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isCursorInViewport",{get:function(){var S=this.ybase+this.y-this.ydisp;return S>=0&&ST.MAX_BUFFER_SIZE?T.MAX_BUFFER_SIZE:S},E.prototype.fillViewportRows=function(x){if(0===this.lines.length){void 0===x&&(x=v.DEFAULT_ATTR_DATA);for(var S=this._rows;S--;)this.lines.push(this.getBlankLine(x))}},E.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new C.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},E.prototype.resize=function(x,S){var O=this.getNullCell(v.DEFAULT_ATTR_DATA),L=this._getCorrectBufferLength(S);if(L>this.lines.maxLength&&(this.lines.maxLength=L),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+K+1?(this.ybase--,K++,this.ydisp>0&&this.ydisp--):this.lines.push(new v.BufferLine(x,O)));else for(z=this._rows;z>S;z--)this.lines.length>S+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(L0&&(this.lines.trimStart(J),this.ybase=Math.max(this.ybase-J,0),this.ydisp=Math.max(this.ydisp-J,0),this.savedY=Math.max(this.savedY-J,0)),this.lines.maxLength=L}this.x=Math.min(this.x,x-1),this.y=Math.min(this.y,S-1),K&&(this.y+=K),this.savedX=Math.min(this.savedX,x-1),this.scrollTop=0}if(this.scrollBottom=S-1,this._isReflowEnabled&&(this._reflow(x,S),this._cols>x))for(j=0;jthis._cols?this._reflowLarger(x,S):this._reflowSmaller(x,S))},E.prototype._reflowLarger=function(x,S){var O=M.reflowLargerGetLinesToRemove(this.lines,this._cols,x,this.ybase+this.y,this.getNullCell(v.DEFAULT_ATTR_DATA));if(O.length>0){var L=M.reflowLargerCreateNewLayout(this.lines,O);M.reflowLargerApplyNewLayout(this.lines,L.layout),this._reflowLargerAdjustViewport(x,S,L.countRemoved)}},E.prototype._reflowLargerAdjustViewport=function(x,S,O){for(var L=this.getNullCell(v.DEFAULT_ATTR_DATA),j=O;j-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length=0;K--){var z=this.lines.get(K);if(!(!z||!z.isWrapped&&z.getTrimmedLength()<=x)){for(var J=[z];z.isWrapped&&K>0;)z=this.lines.get(--K),J.unshift(z);var ie=this.ybase+this.y;if(!(ie>=K&&ie0&&(L.push({start:K+J.length+j,newLines:le}),j+=le.length),J.push.apply(J,le);var be=se.length-1,it=se[be];0===it&&(it=se[--be]);for(var qe=J.length-ce-1,_t=ae;qe>=0;){var yt=Math.min(_t,it);if(J[be].copyCellsFrom(J[qe],_t-yt,it-yt,yt,!0),0==(it-=yt)&&(it=se[--be]),0==(_t-=yt)){qe--;var Ft=Math.max(qe,0);_t=M.getWrappedLineTrimmedLength(J,Ft,this._cols)}}for(oe=0;oe0;)0===this.ybase?this.y0){var Oe=[],je=[];for(oe=0;oe=0;oe--)if(xt&&xt.start>Qe+vt){for(var Qt=xt.newLines.length-1;Qt>=0;Qt--)this.lines.set(oe--,xt.newLines[Qt]);oe++,Oe.push({index:Qe+1,amount:xt.newLines.length}),vt+=xt.newLines.length,xt=L[++Bt]}else this.lines.set(oe,je[Qe--]);var Ht=0;for(oe=Oe.length-1;oe>=0;oe--)Oe[oe].index+=Ht,this.lines.onInsertEmitter.fire(Oe[oe]),Ht+=Oe[oe].amount;var Ct=Math.max(0,dt+j-this.lines.maxLength);Ct>0&&this.lines.onTrimEmitter.fire(Ct)}},E.prototype.stringIndexToBufferIndex=function(x,S,O){for(void 0===O&&(O=!1);S;){var L=this.lines.get(x);if(!L)return[-1,-1];for(var j=O?L.getTrimmedLength():L.length,K=0;K0&&this.lines.get(S).isWrapped;)S--;for(;O+10;);return x>=this._cols?this._cols-1:x<0?0:x},E.prototype.nextStop=function(x){for(null==x&&(x=this.x);!this.tabs[++x]&&x=this._cols?this._cols-1:x<0?0:x},E.prototype.addMarker=function(x){var S=this,O=new A.Marker(x);return this.markers.push(O),O.register(this.lines.onTrim(function(L){O.line-=L,O.line<0&&O.dispose()})),O.register(this.lines.onInsert(function(L){O.line>=L.index&&(O.line+=L.amount)})),O.register(this.lines.onDelete(function(L){O.line>=L.index&&O.lineL.index&&(O.line-=L.amount)})),O.register(O.onDispose(function(){return S._removeMarker(O)})),O},E.prototype._removeMarker=function(x){this.markers.splice(this.markers.indexOf(x),1)},E.prototype.iterator=function(x,S,O,L,j){return new N(this,x,S,O,L,j)},E}();T.Buffer=k;var N=function(){function E(x,S,O,L,j,K){void 0===O&&(O=0),void 0===L&&(L=x.lines.length),void 0===j&&(j=0),void 0===K&&(K=0),this._buffer=x,this._trimRight=S,this._startIndex=O,this._endIndex=L,this._startOverscan=j,this._endOverscan=K,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return E.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(x.last=this._endIndex+this._endOverscan),x.first=Math.max(x.first,0),x.last=Math.min(x.last,this._buffer.lines.length);for(var S="",O=x.first;O<=x.last;++O)S+=this._buffer.translateBufferLineToString(O,this._trimRight);return this._current=x.last+1,{range:x,content:S}},E}();T.BufferStringIterator=N},8437:function(Z,T,R){Object.defineProperty(T,"__esModule",{value:!0}),T.BufferLine=T.DEFAULT_ATTR_DATA=void 0;var C=R(482),v=R(643),P=R(511),D=R(3734);T.DEFAULT_ATTR_DATA=Object.freeze(new D.AttributeData);var M=function(){function A(_,g,k){void 0===k&&(k=!1),this.isWrapped=k,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*_);for(var N=g||P.CellData.fromCharData([0,v.NULL_CELL_CHAR,v.NULL_CELL_WIDTH,v.NULL_CELL_CODE]),E=0;E<_;++E)this.setCell(E,N);this.length=_}return A.prototype.get=function(_){var g=this._data[3*_+0],k=2097151&g;return[this._data[3*_+1],2097152&g?this._combined[_]:k?C.stringFromCodePoint(k):"",g>>22,2097152&g?this._combined[_].charCodeAt(this._combined[_].length-1):k]},A.prototype.set=function(_,g){this._data[3*_+1]=g[v.CHAR_DATA_ATTR_INDEX],g[v.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[_]=g[1],this._data[3*_+0]=2097152|_|g[v.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*_+0]=g[v.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|g[v.CHAR_DATA_WIDTH_INDEX]<<22},A.prototype.getWidth=function(_){return this._data[3*_+0]>>22},A.prototype.hasWidth=function(_){return 12582912&this._data[3*_+0]},A.prototype.getFg=function(_){return this._data[3*_+1]},A.prototype.getBg=function(_){return this._data[3*_+2]},A.prototype.hasContent=function(_){return 4194303&this._data[3*_+0]},A.prototype.getCodePoint=function(_){var g=this._data[3*_+0];return 2097152&g?this._combined[_].charCodeAt(this._combined[_].length-1):2097151&g},A.prototype.isCombined=function(_){return 2097152&this._data[3*_+0]},A.prototype.getString=function(_){var g=this._data[3*_+0];return 2097152&g?this._combined[_]:2097151&g?C.stringFromCodePoint(2097151&g):""},A.prototype.loadCell=function(_,g){var k=3*_;return g.content=this._data[k+0],g.fg=this._data[k+1],g.bg=this._data[k+2],2097152&g.content&&(g.combinedData=this._combined[_]),268435456&g.bg&&(g.extended=this._extendedAttrs[_]),g},A.prototype.setCell=function(_,g){2097152&g.content&&(this._combined[_]=g.combinedData),268435456&g.bg&&(this._extendedAttrs[_]=g.extended),this._data[3*_+0]=g.content,this._data[3*_+1]=g.fg,this._data[3*_+2]=g.bg},A.prototype.setCellFromCodePoint=function(_,g,k,N,E,x){268435456&E&&(this._extendedAttrs[_]=x),this._data[3*_+0]=g|k<<22,this._data[3*_+1]=N,this._data[3*_+2]=E},A.prototype.addCodepointToCell=function(_,g){var k=this._data[3*_+0];2097152&k?this._combined[_]+=C.stringFromCodePoint(g):(2097151&k?(this._combined[_]=C.stringFromCodePoint(2097151&k)+C.stringFromCodePoint(g),k&=-2097152,k|=2097152):k=g|1<<22,this._data[3*_+0]=k)},A.prototype.insertCells=function(_,g,k,N){if((_%=this.length)&&2===this.getWidth(_-1)&&this.setCellFromCodePoint(_-1,0,1,(null==N?void 0:N.fg)||0,(null==N?void 0:N.bg)||0,(null==N?void 0:N.extended)||new D.ExtendedAttrs),g=0;--x)this.setCell(_+g+x,this.loadCell(_+x,E));for(x=0;xthis.length){var k=new Uint32Array(3*_);this.length&&k.set(3*_=_&&delete this._combined[x]}}else this._data=new Uint32Array(0),this._combined={};this.length=_}},A.prototype.fill=function(_){this._combined={},this._extendedAttrs={};for(var g=0;g=0;--_)if(4194303&this._data[3*_+0])return _+(this._data[3*_+0]>>22);return 0},A.prototype.copyCellsFrom=function(_,g,k,N,E){var x=_._data;if(E)for(var S=N-1;S>=0;S--)for(var O=0;O<3;O++)this._data[3*(k+S)+O]=x[3*(g+S)+O];else for(S=0;S=g&&(this._combined[j-g+k]=_._combined[j])}},A.prototype.translateToString=function(_,g,k){void 0===_&&(_=!1),void 0===g&&(g=0),void 0===k&&(k=this.length),_&&(k=Math.min(k,this.getTrimmedLength()));for(var N="";g>22||1}return N},A}();T.BufferLine=M},4841:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.getRangeLength=void 0,T.getRangeLength=function(R,C){if(R.start.y>R.end.y)throw new Error("Buffer range end ("+R.end.x+", "+R.end.y+") cannot be before start ("+R.start.x+", "+R.start.y+")");return C*(R.end.y-R.start.y)+(R.end.x-R.start.x+1)}},4634:function(Z,T){function R(C,v,P){if(v===C.length-1)return C[v].getTrimmedLength();var D=!C[v].hasContent(P-1)&&1===C[v].getWidth(P-1),M=2===C[v+1].getWidth(0);return D&&M?P-1:P}Object.defineProperty(T,"__esModule",{value:!0}),T.getWrappedLineTrimmedLength=T.reflowSmallerGetNewLineLengths=T.reflowLargerApplyNewLayout=T.reflowLargerCreateNewLayout=T.reflowLargerGetLinesToRemove=void 0,T.reflowLargerGetLinesToRemove=function(C,v,P,D,M){for(var A=[],_=0;_=_&&D0&&(ie>E||0===N[ie].getTrimmedLength());ie--)J++;J>0&&(A.push(_+N.length-J),A.push(J)),_+=N.length-1}}}return A},T.reflowLargerCreateNewLayout=function(C,v){for(var P=[],D=0,M=v[D],A=0,_=0;_k&&(A-=k,_++);var N=2===C[_].getWidth(A-1);N&&A--;var E=N?P-1:P;D.push(E),g+=E}return D},T.getWrappedLineTrimmedLength=R},5295:function(Z,T,R){var C,v=this&&this.__extends||(C=function(_,g){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,N){k.__proto__=N}||function(k,N){for(var E in N)Object.prototype.hasOwnProperty.call(N,E)&&(k[E]=N[E])})(_,g)},function(A,_){if("function"!=typeof _&&null!==_)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function g(){this.constructor=A}C(A,_),A.prototype=null===_?Object.create(_):(g.prototype=_.prototype,new g)});Object.defineProperty(T,"__esModule",{value:!0}),T.BufferSet=void 0;var P=R(9092),D=R(8460),M=function(A){function _(g,k){var N=A.call(this)||this;return N._optionsService=g,N._bufferService=k,N._onBufferActivate=N.register(new D.EventEmitter),N.reset(),N}return v(_,A),Object.defineProperty(_.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),_.prototype.reset=function(){this._normal=new P.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new P.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()},Object.defineProperty(_.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),_.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},_.prototype.activateAltBuffer=function(g){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(g),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},_.prototype.resize=function(g,k){this._normal.resize(g,k),this._alt.resize(g,k)},_.prototype.setupTabStops=function(g){this._normal.setupTabStops(g),this._alt.setupTabStops(g)},_}(R(844).Disposable);T.BufferSet=M},511:function(Z,T,R){var C,v=this&&this.__extends||(C=function(g,k){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,E){N.__proto__=E}||function(N,E){for(var x in E)Object.prototype.hasOwnProperty.call(E,x)&&(N[x]=E[x])})(g,k)},function(_,g){if("function"!=typeof g&&null!==g)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function k(){this.constructor=_}C(_,g),_.prototype=null===g?Object.create(g):(k.prototype=g.prototype,new k)});Object.defineProperty(T,"__esModule",{value:!0}),T.CellData=void 0;var P=R(482),D=R(643),M=R(3734),A=function(_){function g(){var k=null!==_&&_.apply(this,arguments)||this;return k.content=0,k.fg=0,k.bg=0,k.extended=new M.ExtendedAttrs,k.combinedData="",k}return v(g,_),g.fromCharData=function(k){var N=new g;return N.setFromCharData(k),N},g.prototype.isCombined=function(){return 2097152&this.content},g.prototype.getWidth=function(){return this.content>>22},g.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?P.stringFromCodePoint(2097151&this.content):""},g.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},g.prototype.setFromCharData=function(k){this.fg=k[D.CHAR_DATA_ATTR_INDEX],this.bg=0;var N=!1;if(k[D.CHAR_DATA_CHAR_INDEX].length>2)N=!0;else if(2===k[D.CHAR_DATA_CHAR_INDEX].length){var E=k[D.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=E&&E<=56319){var x=k[D.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=x&&x<=57343?this.content=1024*(E-55296)+x-56320+65536|k[D.CHAR_DATA_WIDTH_INDEX]<<22:N=!0}else N=!0}else this.content=k[D.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|k[D.CHAR_DATA_WIDTH_INDEX]<<22;N&&(this.combinedData=k[D.CHAR_DATA_CHAR_INDEX],this.content=2097152|k[D.CHAR_DATA_WIDTH_INDEX]<<22)},g.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},g}(M.AttributeData);T.CellData=A},643:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.WHITESPACE_CELL_CODE=T.WHITESPACE_CELL_WIDTH=T.WHITESPACE_CELL_CHAR=T.NULL_CELL_CODE=T.NULL_CELL_WIDTH=T.NULL_CELL_CHAR=T.CHAR_DATA_CODE_INDEX=T.CHAR_DATA_WIDTH_INDEX=T.CHAR_DATA_CHAR_INDEX=T.CHAR_DATA_ATTR_INDEX=T.DEFAULT_ATTR=T.DEFAULT_COLOR=void 0,T.DEFAULT_COLOR=256,T.DEFAULT_ATTR=256|T.DEFAULT_COLOR<<9,T.CHAR_DATA_ATTR_INDEX=0,T.CHAR_DATA_CHAR_INDEX=1,T.CHAR_DATA_WIDTH_INDEX=2,T.CHAR_DATA_CODE_INDEX=3,T.NULL_CELL_CHAR="",T.NULL_CELL_WIDTH=1,T.NULL_CELL_CODE=0,T.WHITESPACE_CELL_CHAR=" ",T.WHITESPACE_CELL_WIDTH=1,T.WHITESPACE_CELL_CODE=32},4863:function(Z,T,R){var C,v=this&&this.__extends||(C=function(A,_){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,k){g.__proto__=k}||function(g,k){for(var N in k)Object.prototype.hasOwnProperty.call(k,N)&&(g[N]=k[N])})(A,_)},function(M,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function _(){this.constructor=M}C(M,A),M.prototype=null===A?Object.create(A):(_.prototype=A.prototype,new _)});Object.defineProperty(T,"__esModule",{value:!0}),T.Marker=void 0;var P=R(8460),D=function(M){function A(_){var g=M.call(this)||this;return g.line=_,g._id=A._nextId++,g.isDisposed=!1,g._onDispose=new P.EventEmitter,g}return v(A,M),Object.defineProperty(A.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),A.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),M.prototype.dispose.call(this))},A._nextId=1,A}(R(844).Disposable);T.Marker=D},7116:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.DEFAULT_CHARSET=T.CHARSETS=void 0,T.CHARSETS={},T.DEFAULT_CHARSET=T.CHARSETS.B,T.CHARSETS[0]={"`":"\u25c6",a:"\u2592",b:"\u2409",c:"\u240c",d:"\u240d",e:"\u240a",f:"\xb0",g:"\xb1",h:"\u2424",i:"\u240b",j:"\u2518",k:"\u2510",l:"\u250c",m:"\u2514",n:"\u253c",o:"\u23ba",p:"\u23bb",q:"\u2500",r:"\u23bc",s:"\u23bd",t:"\u251c",u:"\u2524",v:"\u2534",w:"\u252c",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03c0","|":"\u2260","}":"\xa3","~":"\xb7"},T.CHARSETS.A={"#":"\xa3"},T.CHARSETS.B=void 0,T.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},T.CHARSETS.C=T.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},T.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},T.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},T.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},T.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},T.CHARSETS.E=T.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},T.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},T.CHARSETS.H=T.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},T.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},2584:function(Z,T){var R,C;Object.defineProperty(T,"__esModule",{value:!0}),T.C1=T.C0=void 0,(C=T.C0||(T.C0={})).NUL="\0",C.SOH="\x01",C.STX="\x02",C.ETX="\x03",C.EOT="\x04",C.ENQ="\x05",C.ACK="\x06",C.BEL="\x07",C.BS="\b",C.HT="\t",C.LF="\n",C.VT="\v",C.FF="\f",C.CR="\r",C.SO="\x0e",C.SI="\x0f",C.DLE="\x10",C.DC1="\x11",C.DC2="\x12",C.DC3="\x13",C.DC4="\x14",C.NAK="\x15",C.SYN="\x16",C.ETB="\x17",C.CAN="\x18",C.EM="\x19",C.SUB="\x1a",C.ESC="\x1b",C.FS="\x1c",C.GS="\x1d",C.RS="\x1e",C.US="\x1f",C.SP=" ",C.DEL="\x7f",(R=T.C1||(T.C1={})).PAD="\x80",R.HOP="\x81",R.BPH="\x82",R.NBH="\x83",R.IND="\x84",R.NEL="\x85",R.SSA="\x86",R.ESA="\x87",R.HTS="\x88",R.HTJ="\x89",R.VTS="\x8a",R.PLD="\x8b",R.PLU="\x8c",R.RI="\x8d",R.SS2="\x8e",R.SS3="\x8f",R.DCS="\x90",R.PU1="\x91",R.PU2="\x92",R.STS="\x93",R.CCH="\x94",R.MW="\x95",R.SPA="\x96",R.EPA="\x97",R.SOS="\x98",R.SGCI="\x99",R.SCI="\x9a",R.CSI="\x9b",R.ST="\x9c",R.OSC="\x9d",R.PM="\x9e",R.APC="\x9f"},7399:function(Z,T,R){Object.defineProperty(T,"__esModule",{value:!0}),T.evaluateKeyboardEvent=void 0;var C=R(2584),v={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};T.evaluateKeyboardEvent=function(P,D,M,A){var _={type:0,cancel:!1,key:void 0},g=(P.shiftKey?1:0)|(P.altKey?2:0)|(P.ctrlKey?4:0)|(P.metaKey?8:0);switch(P.keyCode){case 0:"UIKeyInputUpArrow"===P.key?_.key=D?C.C0.ESC+"OA":C.C0.ESC+"[A":"UIKeyInputLeftArrow"===P.key?_.key=D?C.C0.ESC+"OD":C.C0.ESC+"[D":"UIKeyInputRightArrow"===P.key?_.key=D?C.C0.ESC+"OC":C.C0.ESC+"[C":"UIKeyInputDownArrow"===P.key&&(_.key=D?C.C0.ESC+"OB":C.C0.ESC+"[B");break;case 8:if(P.shiftKey){_.key=C.C0.BS;break}if(P.altKey){_.key=C.C0.ESC+C.C0.DEL;break}_.key=C.C0.DEL;break;case 9:if(P.shiftKey){_.key=C.C0.ESC+"[Z";break}_.key=C.C0.HT,_.cancel=!0;break;case 13:_.key=P.altKey?C.C0.ESC+C.C0.CR:C.C0.CR,_.cancel=!0;break;case 27:_.key=C.C0.ESC,P.altKey&&(_.key=C.C0.ESC+C.C0.ESC),_.cancel=!0;break;case 37:if(P.metaKey)break;g?(_.key=C.C0.ESC+"[1;"+(g+1)+"D",_.key===C.C0.ESC+"[1;3D"&&(_.key=C.C0.ESC+(M?"b":"[1;5D"))):_.key=D?C.C0.ESC+"OD":C.C0.ESC+"[D";break;case 39:if(P.metaKey)break;g?(_.key=C.C0.ESC+"[1;"+(g+1)+"C",_.key===C.C0.ESC+"[1;3C"&&(_.key=C.C0.ESC+(M?"f":"[1;5C"))):_.key=D?C.C0.ESC+"OC":C.C0.ESC+"[C";break;case 38:if(P.metaKey)break;g?(_.key=C.C0.ESC+"[1;"+(g+1)+"A",M||_.key!==C.C0.ESC+"[1;3A"||(_.key=C.C0.ESC+"[1;5A")):_.key=D?C.C0.ESC+"OA":C.C0.ESC+"[A";break;case 40:if(P.metaKey)break;g?(_.key=C.C0.ESC+"[1;"+(g+1)+"B",M||_.key!==C.C0.ESC+"[1;3B"||(_.key=C.C0.ESC+"[1;5B")):_.key=D?C.C0.ESC+"OB":C.C0.ESC+"[B";break;case 45:P.shiftKey||P.ctrlKey||(_.key=C.C0.ESC+"[2~");break;case 46:_.key=g?C.C0.ESC+"[3;"+(g+1)+"~":C.C0.ESC+"[3~";break;case 36:_.key=g?C.C0.ESC+"[1;"+(g+1)+"H":D?C.C0.ESC+"OH":C.C0.ESC+"[H";break;case 35:_.key=g?C.C0.ESC+"[1;"+(g+1)+"F":D?C.C0.ESC+"OF":C.C0.ESC+"[F";break;case 33:P.shiftKey?_.type=2:_.key=C.C0.ESC+"[5~";break;case 34:P.shiftKey?_.type=3:_.key=C.C0.ESC+"[6~";break;case 112:_.key=g?C.C0.ESC+"[1;"+(g+1)+"P":C.C0.ESC+"OP";break;case 113:_.key=g?C.C0.ESC+"[1;"+(g+1)+"Q":C.C0.ESC+"OQ";break;case 114:_.key=g?C.C0.ESC+"[1;"+(g+1)+"R":C.C0.ESC+"OR";break;case 115:_.key=g?C.C0.ESC+"[1;"+(g+1)+"S":C.C0.ESC+"OS";break;case 116:_.key=g?C.C0.ESC+"[15;"+(g+1)+"~":C.C0.ESC+"[15~";break;case 117:_.key=g?C.C0.ESC+"[17;"+(g+1)+"~":C.C0.ESC+"[17~";break;case 118:_.key=g?C.C0.ESC+"[18;"+(g+1)+"~":C.C0.ESC+"[18~";break;case 119:_.key=g?C.C0.ESC+"[19;"+(g+1)+"~":C.C0.ESC+"[19~";break;case 120:_.key=g?C.C0.ESC+"[20;"+(g+1)+"~":C.C0.ESC+"[20~";break;case 121:_.key=g?C.C0.ESC+"[21;"+(g+1)+"~":C.C0.ESC+"[21~";break;case 122:_.key=g?C.C0.ESC+"[23;"+(g+1)+"~":C.C0.ESC+"[23~";break;case 123:_.key=g?C.C0.ESC+"[24;"+(g+1)+"~":C.C0.ESC+"[24~";break;default:if(!P.ctrlKey||P.shiftKey||P.altKey||P.metaKey)if(M&&!A||!P.altKey||P.metaKey)!M||P.altKey||P.ctrlKey||P.shiftKey||!P.metaKey?P.key&&!P.ctrlKey&&!P.altKey&&!P.metaKey&&P.keyCode>=48&&1===P.key.length?_.key=P.key:P.key&&P.ctrlKey&&"_"===P.key&&(_.key=C.C0.US):65===P.keyCode&&(_.type=1);else{var k=v[P.keyCode],N=k&&k[P.shiftKey?1:0];N?_.key=C.C0.ESC+N:P.keyCode>=65&&P.keyCode<=90&&(_.key=C.C0.ESC+String.fromCharCode(P.ctrlKey?P.keyCode-64:P.keyCode+32))}else P.keyCode>=65&&P.keyCode<=90?_.key=String.fromCharCode(P.keyCode-64):32===P.keyCode?_.key=C.C0.NUL:P.keyCode>=51&&P.keyCode<=55?_.key=String.fromCharCode(P.keyCode-51+27):56===P.keyCode?_.key=C.C0.DEL:219===P.keyCode?_.key=C.C0.ESC:220===P.keyCode?_.key=C.C0.FS:221===P.keyCode&&(_.key=C.C0.GS)}return _}},482:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.Utf8ToUtf32=T.StringToUtf32=T.utf32ToString=T.stringFromCodePoint=void 0,T.stringFromCodePoint=function(v){return v>65535?(v-=65536,String.fromCharCode(55296+(v>>10))+String.fromCharCode(v%1024+56320)):String.fromCharCode(v)},T.utf32ToString=function(v,P,D){void 0===P&&(P=0),void 0===D&&(D=v.length);for(var M="",A=P;A65535?(_-=65536,M+=String.fromCharCode(55296+(_>>10))+String.fromCharCode(_%1024+56320)):M+=String.fromCharCode(_)}return M};var R=function(){function v(){this._interim=0}return v.prototype.clear=function(){this._interim=0},v.prototype.decode=function(P,D){var M=P.length;if(!M)return 0;var A=0,_=0;this._interim&&(56320<=(N=P.charCodeAt(_++))&&N<=57343?D[A++]=1024*(this._interim-55296)+N-56320+65536:(D[A++]=this._interim,D[A++]=N),this._interim=0);for(var g=_;g=M)return this._interim=k,A;var N;56320<=(N=P.charCodeAt(g))&&N<=57343?D[A++]=1024*(k-55296)+N-56320+65536:(D[A++]=k,D[A++]=N)}else 65279!==k&&(D[A++]=k)}return A},v}();T.StringToUtf32=R;var C=function(){function v(){this.interim=new Uint8Array(3)}return v.prototype.clear=function(){this.interim.fill(0)},v.prototype.decode=function(P,D){var M=P.length;if(!M)return 0;var A,_,g,k,N=0,E=0,x=0;if(this.interim[0]){var S=!1,O=this.interim[0];O&=192==(224&O)?31:224==(240&O)?15:7;for(var L=0,j=void 0;(j=63&this.interim[++L])&&L<4;)O<<=6,O|=j;for(var K=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,z=K-L;x=M)return 0;if(128!=(192&(j=P[x++]))){x--,S=!0;break}this.interim[L++]=j,O<<=6,O|=63&j}S||(2===K?O<128?x--:D[N++]=O:3===K?O<2048||O>=55296&&O<=57343||65279===O||(D[N++]=O):O<65536||O>1114111||(D[N++]=O)),this.interim.fill(0)}for(var J=M-4,ie=x;ie=M)return this.interim[0]=A,N;if(128!=(192&(_=P[ie++]))){ie--;continue}if((E=(31&A)<<6|63&_)<128){ie--;continue}D[N++]=E}else if(224==(240&A)){if(ie>=M)return this.interim[0]=A,N;if(128!=(192&(_=P[ie++]))){ie--;continue}if(ie>=M)return this.interim[0]=A,this.interim[1]=_,N;if(128!=(192&(g=P[ie++]))){ie--;continue}if((E=(15&A)<<12|(63&_)<<6|63&g)<2048||E>=55296&&E<=57343||65279===E)continue;D[N++]=E}else if(240==(248&A)){if(ie>=M)return this.interim[0]=A,N;if(128!=(192&(_=P[ie++]))){ie--;continue}if(ie>=M)return this.interim[0]=A,this.interim[1]=_,N;if(128!=(192&(g=P[ie++]))){ie--;continue}if(ie>=M)return this.interim[0]=A,this.interim[1]=_,this.interim[2]=g,N;if(128!=(192&(k=P[ie++]))){ie--;continue}if((E=(7&A)<<18|(63&_)<<12|(63&g)<<6|63&k)<65536||E>1114111)continue;D[N++]=E}}return N},v}();T.Utf8ToUtf32=C},225:function(Z,T,R){Object.defineProperty(T,"__esModule",{value:!0}),T.UnicodeV6=void 0;var C,v=R(8273),P=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],D=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],M=function(){function A(){if(this.version="6",!C){C=new Uint8Array(65536),v.fill(C,1),C[0]=0,v.fill(C,0,1,32),v.fill(C,0,127,160),v.fill(C,2,4352,4448),C[9001]=2,C[9002]=2,v.fill(C,2,11904,42192),C[12351]=1,v.fill(C,2,44032,55204),v.fill(C,2,63744,64256),v.fill(C,2,65040,65050),v.fill(C,2,65072,65136),v.fill(C,2,65280,65377),v.fill(C,2,65504,65511);for(var _=0;_k[x][1])return!1;for(;x>=E;)if(g>k[N=E+x>>1][1])E=N+1;else{if(!(g=131072&&_<=196605||_>=196608&&_<=262141?2:1},A}();T.UnicodeV6=M},5981:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.WriteBuffer=void 0;var R="undefined"==typeof queueMicrotask?function(v){Promise.resolve().then(v)}:queueMicrotask,C=function(){function v(P){this._action=P,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0}return v.prototype.writeSync=function(P,D){if(void 0!==D&&this._syncCalls>D)this._syncCalls=0;else if(this._pendingData+=P.length,this._writeBuffer.push(P),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var M;for(this._isSyncWriting=!0;M=this._writeBuffer.shift();){this._action(M);var A=this._callbacks.shift();A&&A()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},v.prototype.write=function(P,D){var M=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return M._innerWrite()})),this._pendingData+=P.length,this._writeBuffer.push(P),this._callbacks.push(D)},v.prototype._innerWrite=function(P,D){var M=this;void 0===P&&(P=0),void 0===D&&(D=!0);for(var A=P||Date.now();this._writeBuffer.length>this._bufferOffset;){var _=this._writeBuffer[this._bufferOffset],g=this._action(_,D);if(g)return void g.catch(function(N){return R(function(){throw N}),Promise.resolve(!1)}).then(function(N){return Date.now()-A>=12?setTimeout(function(){return M._innerWrite(0,N)}):M._innerWrite(A,N)});var k=this._callbacks[this._bufferOffset];if(k&&k(),this._bufferOffset++,this._pendingData-=_.length,Date.now()-A>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return M._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0)},v}();T.WriteBuffer=C},5770:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.PAYLOAD_LIMIT=void 0,T.PAYLOAD_LIMIT=1e7},6351:function(Z,T,R){Object.defineProperty(T,"__esModule",{value:!0}),T.DcsHandler=T.DcsParser=void 0;var C=R(482),v=R(8742),P=R(5770),D=[],M=function(){function g(){this._handlers=Object.create(null),this._active=D,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return g.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=D},g.prototype.registerHandler=function(k,N){void 0===this._handlers[k]&&(this._handlers[k]=[]);var E=this._handlers[k];return E.push(N),{dispose:function(){var S=E.indexOf(N);-1!==S&&E.splice(S,1)}}},g.prototype.clearHandler=function(k){this._handlers[k]&&delete this._handlers[k]},g.prototype.setHandlerFallback=function(k){this._handlerFb=k},g.prototype.reset=function(){if(this._active.length)for(var k=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;k>=0;--k)this._active[k].unhook(!1);this._stack.paused=!1,this._active=D,this._ident=0},g.prototype.hook=function(k,N){if(this.reset(),this._ident=k,this._active=this._handlers[k]||D,this._active.length)for(var E=this._active.length-1;E>=0;E--)this._active[E].hook(N);else this._handlerFb(this._ident,"HOOK",N)},g.prototype.put=function(k,N,E){if(this._active.length)for(var x=this._active.length-1;x>=0;x--)this._active[x].put(k,N,E);else this._handlerFb(this._ident,"PUT",C.utf32ToString(k,N,E))},g.prototype.unhook=function(k,N){if(void 0===N&&(N=!0),this._active.length){var E=!1,x=this._active.length-1,S=!1;if(this._stack.paused&&(x=this._stack.loopPosition-1,E=N,S=this._stack.fallThrough,this._stack.paused=!1),!S&&!1===E){for(;x>=0&&!0!==(E=this._active[x].unhook(k));x--)if(E instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=x,this._stack.fallThrough=!1,E;x--}for(;x>=0;x--)if((E=this._active[x].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=x,this._stack.fallThrough=!0,E}else this._handlerFb(this._ident,"UNHOOK",k);this._active=D,this._ident=0},g}();T.DcsParser=M;var A=new v.Params;A.addParam(0);var _=function(){function g(k){this._handler=k,this._data="",this._params=A,this._hitLimit=!1}return g.prototype.hook=function(k){this._params=k.length>1||k.params[0]?k.clone():A,this._data="",this._hitLimit=!1},g.prototype.put=function(k,N,E){this._hitLimit||(this._data+=C.utf32ToString(k,N,E),this._data.length>P.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},g.prototype.unhook=function(k){var N=this,E=!1;if(this._hitLimit)E=!1;else if(k&&(E=this._handler(this._data,this._params))instanceof Promise)return E.then(function(x){return N._params=A,N._data="",N._hitLimit=!1,x});return this._params=A,this._data="",this._hitLimit=!1,E},g}();T.DcsHandler=_},2015:function(Z,T,R){var C,v=this&&this.__extends||(C=function(x,S){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,L){O.__proto__=L}||function(O,L){for(var j in L)Object.prototype.hasOwnProperty.call(L,j)&&(O[j]=L[j])})(x,S)},function(E,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function S(){this.constructor=E}C(E,x),E.prototype=null===x?Object.create(x):(S.prototype=x.prototype,new S)});Object.defineProperty(T,"__esModule",{value:!0}),T.EscapeSequenceParser=T.VT500_TRANSITION_TABLE=T.TransitionTable=void 0;var P=R(844),D=R(8273),M=R(8742),A=R(6242),_=R(6351),g=function(){function E(x){this.table=new Uint8Array(x)}return E.prototype.setDefault=function(x,S){D.fill(this.table,x<<4|S)},E.prototype.add=function(x,S,O,L){this.table[S<<8|x]=O<<4|L},E.prototype.addMany=function(x,S,O,L){for(var j=0;j1)throw new Error("only one byte as prefix supported");if((L=S.prefix.charCodeAt(0))&&60>L||L>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(S.intermediates){if(S.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var j=0;jK||K>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");L<<=8,L|=K}}if(1!==S.final.length)throw new Error("final must be a single byte");var z=S.final.charCodeAt(0);if(O[0]>z||z>O[1])throw new Error("final must be in range "+O[0]+" .. "+O[1]);return(L<<=8)|z},x.prototype.identToString=function(S){for(var O=[];S;)O.push(String.fromCharCode(255&S)),S>>=8;return O.reverse().join("")},x.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},x.prototype.setPrintHandler=function(S){this._printHandler=S},x.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},x.prototype.registerEscHandler=function(S,O){var L=this._identifier(S,[48,126]);void 0===this._escHandlers[L]&&(this._escHandlers[L]=[]);var j=this._escHandlers[L];return j.push(O),{dispose:function(){var z=j.indexOf(O);-1!==z&&j.splice(z,1)}}},x.prototype.clearEscHandler=function(S){this._escHandlers[this._identifier(S,[48,126])]&&delete this._escHandlers[this._identifier(S,[48,126])]},x.prototype.setEscHandlerFallback=function(S){this._escHandlerFb=S},x.prototype.setExecuteHandler=function(S,O){this._executeHandlers[S.charCodeAt(0)]=O},x.prototype.clearExecuteHandler=function(S){this._executeHandlers[S.charCodeAt(0)]&&delete this._executeHandlers[S.charCodeAt(0)]},x.prototype.setExecuteHandlerFallback=function(S){this._executeHandlerFb=S},x.prototype.registerCsiHandler=function(S,O){var L=this._identifier(S);void 0===this._csiHandlers[L]&&(this._csiHandlers[L]=[]);var j=this._csiHandlers[L];return j.push(O),{dispose:function(){var z=j.indexOf(O);-1!==z&&j.splice(z,1)}}},x.prototype.clearCsiHandler=function(S){this._csiHandlers[this._identifier(S)]&&delete this._csiHandlers[this._identifier(S)]},x.prototype.setCsiHandlerFallback=function(S){this._csiHandlerFb=S},x.prototype.registerDcsHandler=function(S,O){return this._dcsParser.registerHandler(this._identifier(S),O)},x.prototype.clearDcsHandler=function(S){this._dcsParser.clearHandler(this._identifier(S))},x.prototype.setDcsHandlerFallback=function(S){this._dcsParser.setHandlerFallback(S)},x.prototype.registerOscHandler=function(S,O){return this._oscParser.registerHandler(S,O)},x.prototype.clearOscHandler=function(S){this._oscParser.clearHandler(S)},x.prototype.setOscHandlerFallback=function(S){this._oscParser.setHandlerFallback(S)},x.prototype.setErrorHandler=function(S){this._errorHandler=S},x.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},x.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])},x.prototype._preserveStack=function(S,O,L,j,K){this._parseStack.state=S,this._parseStack.handlers=O,this._parseStack.handlerPos=L,this._parseStack.transition=j,this._parseStack.chunkPos=K},x.prototype.parse=function(S,O,L){var j,K=0,z=0,J=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,J=this._parseStack.chunkPos+1;else{if(void 0===L||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var ie=this._parseStack.handlers,te=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===L&&te>-1)for(;te>=0&&!0!==(j=ie[te](this._params));te--)if(j instanceof Promise)return this._parseStack.handlerPos=te,j;this._parseStack.handlers=[];break;case 4:if(!1===L&&te>-1)for(;te>=0&&!0!==(j=ie[te]());te--)if(j instanceof Promise)return this._parseStack.handlerPos=te,j;this._parseStack.handlers=[];break;case 6:if(j=this._dcsParser.unhook(24!==(K=S[this._parseStack.chunkPos])&&26!==K,L))return j;27===K&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(j=this._oscParser.end(24!==(K=S[this._parseStack.chunkPos])&&26!==K,L))return j;27===K&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,J=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var ae=J;ae>4){case 2:for(var se=ae+1;;++se){if(se>=O||(K=S[se])<32||K>126&&K=O||(K=S[se])<32||K>126&&K=O||(K=S[se])<32||K>126&&K=O||(K=S[se])<32||K>126&&K=0&&!0!==(j=ie[ce](this._params));ce--)if(j instanceof Promise)return this._preserveStack(3,ie,ce,z,ae),j;ce<0&&this._csiHandlerFb(this._collect<<8|K,this._params),this.precedingCodepoint=0;break;case 8:do{switch(K){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(K-48)}}while(++ae47&&K<60);ae--;break;case 9:this._collect<<=8,this._collect|=K;break;case 10:for(var le=this._escHandlers[this._collect<<8|K],oe=le?le.length-1:-1;oe>=0&&!0!==(j=le[oe]());oe--)if(j instanceof Promise)return this._preserveStack(4,le,oe,z,ae),j;oe<0&&this._escHandlerFb(this._collect<<8|K),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|K,this._params);break;case 13:for(var Ae=ae+1;;++Ae)if(Ae>=O||24===(K=S[Ae])||26===K||27===K||K>127&&K=O||(K=S[be])<32||K>127&&K=0;--_)this._active[_].end(!1);this._stack.paused=!1,this._active=P,this._id=-1,this._state=0},A.prototype._start=function(){if(this._active=this._handlers[this._id]||P,this._active.length)for(var _=this._active.length-1;_>=0;_--)this._active[_].start();else this._handlerFb(this._id,"START")},A.prototype._put=function(_,g,k){if(this._active.length)for(var N=this._active.length-1;N>=0;N--)this._active[N].put(_,g,k);else this._handlerFb(this._id,"PUT",v.utf32ToString(_,g,k))},A.prototype.start=function(){this.reset(),this._state=1},A.prototype.put=function(_,g,k){if(3!==this._state){if(1===this._state)for(;g0&&this._put(_,g,k)}},A.prototype.end=function(_,g){if(void 0===g&&(g=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var k=!1,N=this._active.length-1,E=!1;if(this._stack.paused&&(N=this._stack.loopPosition-1,k=g,E=this._stack.fallThrough,this._stack.paused=!1),!E&&!1===k){for(;N>=0&&!0!==(k=this._active[N].end(_));N--)if(k instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=N,this._stack.fallThrough=!1,k;N--}for(;N>=0;N--)if((k=this._active[N].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=N,this._stack.fallThrough=!0,k}else this._handlerFb(this._id,"END",_);this._active=P,this._id=-1,this._state=0}},A}();T.OscParser=D;var M=function(){function A(_){this._handler=_,this._data="",this._hitLimit=!1}return A.prototype.start=function(){this._data="",this._hitLimit=!1},A.prototype.put=function(_,g,k){this._hitLimit||(this._data+=v.utf32ToString(_,g,k),this._data.length>C.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},A.prototype.end=function(_){var g=this,k=!1;if(this._hitLimit)k=!1;else if(_&&(k=this._handler(this._data))instanceof Promise)return k.then(function(N){return g._data="",g._hitLimit=!1,N});return this._data="",this._hitLimit=!1,k},A}();T.OscHandler=M},8742:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.Params=void 0;var R=2147483647,C=function(){function v(P,D){if(void 0===P&&(P=32),void 0===D&&(D=32),this.maxLength=P,this.maxSubParamsLength=D,D>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(P),this.length=0,this._subParams=new Int32Array(D),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(P),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return v.fromArray=function(P){var D=new v;if(!P.length)return D;for(var M=P[0]instanceof Array?1:0;M>8,A=255&this._subParamsIdx[D];A-M>0&&P.push(Array.prototype.slice.call(this._subParams,M,A))}return P},v.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},v.prototype.addParam=function(P){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(P<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=P>R?R:P}},v.prototype.addSubParam=function(P){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(P<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=P>R?R:P,this._subParamsIdx[this.length-1]++}},v.prototype.hasSubParams=function(P){return(255&this._subParamsIdx[P])-(this._subParamsIdx[P]>>8)>0},v.prototype.getSubParams=function(P){var D=this._subParamsIdx[P]>>8,M=255&this._subParamsIdx[P];return M-D>0?this._subParams.subarray(D,M):null},v.prototype.getSubParamsAll=function(){for(var P={},D=0;D>8,A=255&this._subParamsIdx[D];A-M>0&&(P[D]=this._subParams.slice(M,A))}return P},v.prototype.addDigit=function(P){var D;if(!(this._rejectDigits||!(D=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var M=this._digitIsSub?this._subParams:this.params,A=M[D-1];M[D-1]=~A?Math.min(10*A+P,R):P}},v}();T.Params=C},5741:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.AddonManager=void 0;var R=function(){function C(){this._addons=[]}return C.prototype.dispose=function(){for(var v=this._addons.length-1;v>=0;v--)this._addons[v].instance.dispose()},C.prototype.loadAddon=function(v,P){var D=this,M={instance:P,dispose:P.dispose,isDisposed:!1};this._addons.push(M),P.dispose=function(){return D._wrappedAddonDispose(M)},P.activate(v)},C.prototype._wrappedAddonDispose=function(v){if(!v.isDisposed){for(var P=-1,D=0;D=this._line.length))return M?(this._line.loadCell(D,M),M):this._line.loadCell(D,new C.CellData)},P.prototype.translateToString=function(D,M,A){return this._line.translateToString(D,M,A)},P}();T.BufferLineApiView=v},8285:function(Z,T,R){Object.defineProperty(T,"__esModule",{value:!0}),T.BufferNamespaceApi=void 0;var C=R(8771),v=R(8460),P=function(){function D(M){var A=this;this._core=M,this._onBufferChange=new v.EventEmitter,this._normal=new C.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new C.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return A._onBufferChange.fire(A.active)})}return Object.defineProperty(D.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"active",{get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),D}();T.BufferNamespaceApi=P},7975:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.ParserApi=void 0;var R=function(){function C(v){this._core=v}return C.prototype.registerCsiHandler=function(v,P){return this._core.registerCsiHandler(v,function(D){return P(D.toArray())})},C.prototype.addCsiHandler=function(v,P){return this.registerCsiHandler(v,P)},C.prototype.registerDcsHandler=function(v,P){return this._core.registerDcsHandler(v,function(D,M){return P(D,M.toArray())})},C.prototype.addDcsHandler=function(v,P){return this.registerDcsHandler(v,P)},C.prototype.registerEscHandler=function(v,P){return this._core.registerEscHandler(v,P)},C.prototype.addEscHandler=function(v,P){return this.registerEscHandler(v,P)},C.prototype.registerOscHandler=function(v,P){return this._core.registerOscHandler(v,P)},C.prototype.addOscHandler=function(v,P){return this.registerOscHandler(v,P)},C}();T.ParserApi=R},7090:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.UnicodeApi=void 0;var R=function(){function C(v){this._core=v}return C.prototype.register=function(v){this._core.unicodeService.register(v)},Object.defineProperty(C.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(P){this._core.unicodeService.activeVersion=P},enumerable:!1,configurable:!0}),C}();T.UnicodeApi=R},744:function(Z,T,R){var C,v=this&&this.__extends||(C=function(E,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var L in O)Object.prototype.hasOwnProperty.call(O,L)&&(S[L]=O[L])})(E,x)},function(N,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function x(){this.constructor=N}C(N,E),N.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),P=this&&this.__decorate||function(N,E,x,S){var O,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(N,E,x,S);else for(var K=N.length-1;K>=0;K--)(O=N[K])&&(j=(L<3?O(j):L>3?O(E,x,j):O(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(N,E){return function(x,S){E(x,S,N)}};Object.defineProperty(T,"__esModule",{value:!0}),T.BufferService=T.MINIMUM_ROWS=T.MINIMUM_COLS=void 0;var M=R(2585),A=R(5295),_=R(8460),g=R(844);T.MINIMUM_COLS=2,T.MINIMUM_ROWS=1;var k=function(N){function E(x){var S=N.call(this)||this;return S._optionsService=x,S.isUserScrolling=!1,S._onResize=new _.EventEmitter,S._onScroll=new _.EventEmitter,S.cols=Math.max(x.options.cols||0,T.MINIMUM_COLS),S.rows=Math.max(x.options.rows||0,T.MINIMUM_ROWS),S.buffers=new A.BufferSet(x,S),S}return v(E,N),Object.defineProperty(E.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){N.prototype.dispose.call(this),this.buffers.dispose()},E.prototype.resize=function(x,S){this.cols=x,this.rows=S,this.buffers.resize(x,S),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:x,rows:S})},E.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},E.prototype.scroll=function(x,S){void 0===S&&(S=!1);var O,L=this.buffer;(O=this._cachedBlankLine)&&O.length===this.cols&&O.getFg(0)===x.fg&&O.getBg(0)===x.bg||(O=L.getBlankLine(x,S),this._cachedBlankLine=O),O.isWrapped=S;var j=L.ybase+L.scrollTop,K=L.ybase+L.scrollBottom;if(0===L.scrollTop){var z=L.lines.isFull;K===L.lines.length-1?z?L.lines.recycle().copyFrom(O):L.lines.push(O.clone()):L.lines.splice(K+1,0,O.clone()),z?this.isUserScrolling&&(L.ydisp=Math.max(L.ydisp-1,0)):(L.ybase++,this.isUserScrolling||L.ydisp++)}else L.lines.shiftElements(j+1,K-j+1-1,-1),L.lines.set(K,O.clone());this.isUserScrolling||(L.ydisp=L.ybase),this._onScroll.fire(L.ydisp)},E.prototype.scrollLines=function(x,S,O){var L=this.buffer;if(x<0){if(0===L.ydisp)return;this.isUserScrolling=!0}else x+L.ydisp>=L.ybase&&(this.isUserScrolling=!1);var j=L.ydisp;L.ydisp=Math.max(Math.min(L.ydisp+x,L.ybase),0),j!==L.ydisp&&(S||this._onScroll.fire(L.ydisp))},E.prototype.scrollPages=function(x){this.scrollLines(x*(this.rows-1))},E.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},E.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},E.prototype.scrollToLine=function(x){var S=x-this.buffer.ydisp;0!==S&&this.scrollLines(S)},P([D(0,M.IOptionsService)],E)}(g.Disposable);T.BufferService=k},7994:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.CharsetService=void 0;var R=function(){function C(){this.glevel=0,this._charsets=[]}return C.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},C.prototype.setgLevel=function(v){this.glevel=v,this.charset=this._charsets[v]},C.prototype.setgCharset=function(v,P){this._charsets[v]=P,this.glevel===v&&(this.charset=P)},C}();T.CharsetService=R},1753:function(Z,T,R){var C=this&&this.__decorate||function(N,E,x,S){var O,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(N,E,x,S);else for(var K=N.length-1;K>=0;K--)(O=N[K])&&(j=(L<3?O(j):L>3?O(E,x,j):O(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},v=this&&this.__param||function(N,E){return function(x,S){E(x,S,N)}};Object.defineProperty(T,"__esModule",{value:!0}),T.CoreMouseService=void 0;var P=R(2585),D=R(8460),M={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(E){return 4!==E.button&&1===E.action&&(E.ctrl=!1,E.alt=!1,E.shift=!1,!0)}},VT200:{events:19,restrict:function(E){return 32!==E.action}},DRAG:{events:23,restrict:function(E){return 32!==E.action||3!==E.button}},ANY:{events:31,restrict:function(E){return!0}}};function A(N,E){var x=(N.ctrl?16:0)|(N.shift?4:0)|(N.alt?8:0);return 4===N.button?(x|=64,x|=N.action):(x|=3&N.button,4&N.button&&(x|=64),8&N.button&&(x|=128),32===N.action?x|=32:0!==N.action||E||(x|=3)),x}var _=String.fromCharCode,g={DEFAULT:function(E){var x=[A(E,!1)+32,E.col+32,E.row+32];return x[0]>255||x[1]>255||x[2]>255?"":"\x1b[M"+_(x[0])+_(x[1])+_(x[2])},SGR:function(E){var x=0===E.action&&4!==E.button?"m":"M";return"\x1b[<"+A(E,!0)+";"+E.col+";"+E.row+x}},k=function(){function N(E,x){this._bufferService=E,this._coreService=x,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new D.EventEmitter,this._lastEvent=null;for(var S=0,O=Object.keys(M);S=this._bufferService.cols||E.row<0||E.row>=this._bufferService.rows||4===E.button&&32===E.action||3===E.button&&32!==E.action||4!==E.button&&(2===E.action||3===E.action)||(E.col++,E.row++,32===E.action&&this._lastEvent&&this._compareEvents(this._lastEvent,E))||!this._protocols[this._activeProtocol].restrict(E))return!1;var x=this._encodings[this._activeEncoding](E);return x&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(x):this._coreService.triggerDataEvent(x,!0)),this._lastEvent=E,!0},N.prototype.explainEvents=function(E){return{down:!!(1&E),up:!!(2&E),drag:!!(4&E),move:!!(8&E),wheel:!!(16&E)}},N.prototype._compareEvents=function(E,x){return E.col===x.col&&E.row===x.row&&E.button===x.button&&E.action===x.action&&E.ctrl===x.ctrl&&E.alt===x.alt&&E.shift===x.shift},C([v(0,P.IBufferService),v(1,P.ICoreService)],N)}();T.CoreMouseService=k},6975:function(Z,T,R){var C,v=this&&this.__extends||(C=function(S,O){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,j){L.__proto__=j}||function(L,j){for(var K in j)Object.prototype.hasOwnProperty.call(j,K)&&(L[K]=j[K])})(S,O)},function(x,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function O(){this.constructor=x}C(x,S),x.prototype=null===S?Object.create(S):(O.prototype=S.prototype,new O)}),P=this&&this.__decorate||function(x,S,O,L){var j,K=arguments.length,z=K<3?S:null===L?L=Object.getOwnPropertyDescriptor(S,O):L;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(x,S,O,L);else for(var J=x.length-1;J>=0;J--)(j=x[J])&&(z=(K<3?j(z):K>3?j(S,O,z):j(S,O))||z);return K>3&&z&&Object.defineProperty(S,O,z),z},D=this&&this.__param||function(x,S){return function(O,L){S(O,L,x)}};Object.defineProperty(T,"__esModule",{value:!0}),T.CoreService=void 0;var M=R(2585),A=R(8460),_=R(1439),g=R(844),k=Object.freeze({insertMode:!1}),N=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),E=function(x){function S(O,L,j,K){var z=x.call(this)||this;return z._bufferService=L,z._logService=j,z._optionsService=K,z.isCursorInitialized=!1,z.isCursorHidden=!1,z._onData=z.register(new A.EventEmitter),z._onUserInput=z.register(new A.EventEmitter),z._onBinary=z.register(new A.EventEmitter),z._scrollToBottom=O,z.register({dispose:function(){return z._scrollToBottom=void 0}}),z.modes=_.clone(k),z.decPrivateModes=_.clone(N),z}return v(S,x),Object.defineProperty(S.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),S.prototype.reset=function(){this.modes=_.clone(k),this.decPrivateModes=_.clone(N)},S.prototype.triggerDataEvent=function(O,L){if(void 0===L&&(L=!1),!this._optionsService.options.disableStdin){var j=this._bufferService.buffer;j.ybase!==j.ydisp&&this._scrollToBottom(),L&&this._onUserInput.fire(),this._logService.debug('sending data "'+O+'"',function(){return O.split("").map(function(K){return K.charCodeAt(0)})}),this._onData.fire(O)}},S.prototype.triggerBinaryEvent=function(O){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+O+'"',function(){return O.split("").map(function(L){return L.charCodeAt(0)})}),this._onBinary.fire(O))},P([D(1,M.IBufferService),D(2,M.ILogService),D(3,M.IOptionsService)],S)}(g.Disposable);T.CoreService=E},3730:function(Z,T,R){var C=this&&this.__decorate||function(M,A,_,g){var k,N=arguments.length,E=N<3?A:null===g?g=Object.getOwnPropertyDescriptor(A,_):g;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(M,A,_,g);else for(var x=M.length-1;x>=0;x--)(k=M[x])&&(E=(N<3?k(E):N>3?k(A,_,E):k(A,_))||E);return N>3&&E&&Object.defineProperty(A,_,E),E},v=this&&this.__param||function(M,A){return function(_,g){A(_,g,M)}};Object.defineProperty(T,"__esModule",{value:!0}),T.DirtyRowService=void 0;var P=R(2585),D=function(){function M(A){this._bufferService=A,this.clearRange()}return Object.defineProperty(M.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),M.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},M.prototype.markDirty=function(A){Athis._end&&(this._end=A)},M.prototype.markRangeDirty=function(A,_){if(A>_){var g=A;A=_,_=g}Athis._end&&(this._end=_)},M.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},C([v(0,P.IBufferService)],M)}();T.DirtyRowService=D},4348:function(Z,T,R){var C=this&&this.__spreadArray||function(A,_){for(var g=0,k=_.length,N=A.length;g0?N[0].index:g.length;if(g.length!==j)throw new Error("[createInstance] First service dependency of "+_.name+" at position "+(j+1)+" conflicts with "+g.length+" static arguments");return new(_.bind.apply(_,C([void 0],C(C([],g),E))))},A}();T.InstantiationService=M},7866:function(Z,T,R){var C=this&&this.__decorate||function(_,g,k,N){var E,x=arguments.length,S=x<3?g:null===N?N=Object.getOwnPropertyDescriptor(g,k):N;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(_,g,k,N);else for(var O=_.length-1;O>=0;O--)(E=_[O])&&(S=(x<3?E(S):x>3?E(g,k,S):E(g,k))||S);return x>3&&S&&Object.defineProperty(g,k,S),S},v=this&&this.__param||function(_,g){return function(k,N){g(k,N,_)}},P=this&&this.__spreadArray||function(_,g){for(var k=0,N=g.length,E=_.length;k=_)return A+this.wcwidth(k);var N=M.charCodeAt(g);56320<=N&&N<=57343?k=1024*(k-55296)+N-56320+65536:A+=this.wcwidth(N)}A+=this.wcwidth(k)}return A},D}();T.UnicodeService=P}},f={};function U(V){var Z=f[V];if(void 0!==Z)return Z.exports;var T=f[V]={exports:{}};return q[V].call(T.exports,T,T.exports,U),T.exports}var B={};return function(){var V=B;Object.defineProperty(V,"__esModule",{value:!0}),V.Terminal=void 0;var Z=U(3236),T=U(9042),R=U(7975),C=U(7090),v=U(5741),P=U(8285),D=function(){function M(A){this._core=new Z.Terminal(A),this._addonManager=new v.AddonManager}return M.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(M.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new R.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"unicode",{get:function(){return this._checkProposedApi(),new C.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new P.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"modes",{get:function(){var _=this._core.coreService.decPrivateModes,g="none";switch(this._core.coreMouseService.activeProtocol){case"X10":g="x10";break;case"VT200":g="vt200";break;case"DRAG":g="drag";break;case"ANY":g="any"}return{applicationCursorKeysMode:_.applicationCursorKeys,applicationKeypadMode:_.applicationKeypad,bracketedPasteMode:_.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:g,originMode:_.origin,reverseWraparoundMode:_.reverseWraparound,sendFocusMode:_.sendFocus,wraparoundMode:_.wraparound}},enumerable:!1,configurable:!0}),M.prototype.blur=function(){this._core.blur()},M.prototype.focus=function(){this._core.focus()},M.prototype.resize=function(A,_){this._verifyIntegers(A,_),this._core.resize(A,_)},M.prototype.open=function(A){this._core.open(A)},M.prototype.attachCustomKeyEventHandler=function(A){this._core.attachCustomKeyEventHandler(A)},M.prototype.registerLinkMatcher=function(A,_,g){return this._checkProposedApi(),this._core.registerLinkMatcher(A,_,g)},M.prototype.deregisterLinkMatcher=function(A){this._checkProposedApi(),this._core.deregisterLinkMatcher(A)},M.prototype.registerLinkProvider=function(A){return this._checkProposedApi(),this._core.registerLinkProvider(A)},M.prototype.registerCharacterJoiner=function(A){return this._checkProposedApi(),this._core.registerCharacterJoiner(A)},M.prototype.deregisterCharacterJoiner=function(A){this._checkProposedApi(),this._core.deregisterCharacterJoiner(A)},M.prototype.registerMarker=function(A){return this._checkProposedApi(),this._verifyIntegers(A),this._core.addMarker(A)},M.prototype.addMarker=function(A){return this.registerMarker(A)},M.prototype.hasSelection=function(){return this._core.hasSelection()},M.prototype.select=function(A,_,g){this._verifyIntegers(A,_,g),this._core.select(A,_,g)},M.prototype.getSelection=function(){return this._core.getSelection()},M.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},M.prototype.clearSelection=function(){this._core.clearSelection()},M.prototype.selectAll=function(){this._core.selectAll()},M.prototype.selectLines=function(A,_){this._verifyIntegers(A,_),this._core.selectLines(A,_)},M.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},M.prototype.scrollLines=function(A){this._verifyIntegers(A),this._core.scrollLines(A)},M.prototype.scrollPages=function(A){this._verifyIntegers(A),this._core.scrollPages(A)},M.prototype.scrollToTop=function(){this._core.scrollToTop()},M.prototype.scrollToBottom=function(){this._core.scrollToBottom()},M.prototype.scrollToLine=function(A){this._verifyIntegers(A),this._core.scrollToLine(A)},M.prototype.clear=function(){this._core.clear()},M.prototype.write=function(A,_){this._core.write(A,_)},M.prototype.writeUtf8=function(A,_){this._core.write(A,_)},M.prototype.writeln=function(A,_){this._core.write(A),this._core.write("\r\n",_)},M.prototype.paste=function(A){this._core.paste(A)},M.prototype.getOption=function(A){return this._core.optionsService.getOption(A)},M.prototype.setOption=function(A,_){this._core.optionsService.setOption(A,_)},M.prototype.refresh=function(A,_){this._verifyIntegers(A,_),this._core.refresh(A,_)},M.prototype.reset=function(){this._core.reset()},M.prototype.loadAddon=function(A){return this._addonManager.loadAddon(this,A)},Object.defineProperty(M,"strings",{get:function(){return T},enumerable:!1,configurable:!0}),M.prototype._verifyIntegers=function(){for(var A=[],_=0;_=0?this.update(T):(this.data.push(T),this.dataChange.next(this.data))},Z.prototype.set=function(T){var R=this;T.forEach(function(v){var P=R.findIndex(v);if(P>=0){var D=Object.assign(R.data[P],v);R.data[P]=D}else R.data.push(v)}),this.data.filter(function(v){return 0===T.filter(function(P){return R.getItemKey(P)===R.getItemKey(v)}).length}).forEach(function(v){return R.remove(v)}),this.dataChange.next(this.data)},Z.prototype.get=function(T){var R=this,C=this.data.findIndex(function(v){return R.getItemKey(v)===T});if(C>=0)return this.data[C]},Z.prototype.update=function(T){var R=this.findIndex(T);if(R>=0){var C=Object.assign(this.data[R],T);this.data[R]=C,this.dataChange.next(this.data),this.itemUpdated.next(C)}},Z.prototype.remove=function(T){var R=this.findIndex(T);R>=0&&(this.data.splice(R,1),this.dataChange.next(this.data))},Object.defineProperty(Z.prototype,"changes",{get:function(){return this.dataChange},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"itemChanged",{get:function(){return this.itemUpdated},enumerable:!1,configurable:!0}),Z.prototype.clear=function(){this.data=[],this.dataChange.next(this.data)},Z.prototype.findIndex=function(T){var R=this;return this.data.findIndex(function(C){return R.getItemKey(C)===R.getItemKey(T)})},Z}()},3941:function(ue,q,f){"use strict";f.d(q,{F:function(){return Z}});var U=f(61855),B=f(18419),V=f(65508),Z=function(T){function R(){return null!==T&&T.apply(this,arguments)||this}return(0,U.ZT)(R,T),R.prototype.getItemKey=function(C){return C.link_id},R.\u0275fac=function(){var C;return function(P){return(C||(C=V.n5z(R)))(P||R)}}(),R.\u0275prov=V.Yz7({token:R,factory:R.\u0275fac}),R}(B.o)},96852:function(ue,q,f){"use strict";f.d(q,{G:function(){return Z}});var U=f(61855),B=f(18419),V=f(65508),Z=function(T){function R(){return null!==T&&T.apply(this,arguments)||this}return(0,U.ZT)(R,T),R.prototype.getItemKey=function(C){return C.node_id},R.\u0275fac=function(){var C;return function(P){return(C||(C=V.n5z(R)))(P||R)}}(),R.\u0275prov=V.Yz7({token:R,factory:R.\u0275fac}),R}(B.o)},36889:function(ue,q,f){"use strict";f.d(q,{X:function(){return V}});var U=f(65508),B=f(96153),V=function(){function Z(T){this.httpServer=T}return Z.prototype.getComputes=function(T){return this.httpServer.get(T,"/computes")},Z.prototype.getUploadPath=function(T,R,C){return T.protocol+"//"+T.host+":"+T.port+"/v2/"+R+"/images/"+C},Z.prototype.getStatistics=function(T){return this.httpServer.get(T,"/statistics")},Z.\u0275fac=function(R){return new(R||Z)(U.LFG(B.wh))},Z.\u0275prov=U.Yz7({token:Z,factory:Z.\u0275fac}),Z}()},96153:function(ue,q,f){"use strict";f.d(q,{gc:function(){return C},wh:function(){return v}});var U=f(61855),B=f(65508),V=f(11363),Z=f(13426),T=f(75472),R=function(P){function D(M){return P.call(this,M)||this}return(0,U.ZT)(D,P),D.fromError=function(M,A){var _=new D(M);return _.originalError=A,_},D}(Error),C=function(){function P(){}return P.prototype.handleError=function(D){var M=D;return"HttpErrorResponse"===D.name&&0===D.status&&(M=R.fromError("Server is unreachable",D)),(0,V._)(M)},P.\u0275prov=B.Yz7({token:P,factory:P.\u0275fac=function(M){return new(M||P)}}),P}(),v=function(){function P(D,M){this.http=D,this.errorHandler=M,this.requestsNotificationEmitter=new B.vpe}return P.prototype.get=function(D,M,A){A=this.getJsonOptions(A);var _=this.getOptionsForServer(D,M,A);return this.requestsNotificationEmitter.emit("GET "+_.url),this.http.get(_.url,_.options).pipe((0,Z.K)(this.errorHandler.handleError))},P.prototype.getText=function(D,M,A){A=this.getTextOptions(A);var _=this.getOptionsForServer(D,M,A);return this.requestsNotificationEmitter.emit("GET "+_.url),this.http.get(_.url,_.options).pipe((0,Z.K)(this.errorHandler.handleError))},P.prototype.post=function(D,M,A,_){_=this.getJsonOptions(_);var g=this.getOptionsForServer(D,M,_);return this.requestsNotificationEmitter.emit("POST "+g.url),this.http.post(g.url,A,g.options).pipe((0,Z.K)(this.errorHandler.handleError))},P.prototype.put=function(D,M,A,_){_=this.getJsonOptions(_);var g=this.getOptionsForServer(D,M,_);return this.requestsNotificationEmitter.emit("PUT "+g.url),this.http.put(g.url,A,g.options).pipe((0,Z.K)(this.errorHandler.handleError))},P.prototype.delete=function(D,M,A){A=this.getJsonOptions(A);var _=this.getOptionsForServer(D,M,A);return this.requestsNotificationEmitter.emit("DELETE "+_.url),this.http.delete(_.url,_.options).pipe((0,Z.K)(this.errorHandler.handleError))},P.prototype.patch=function(D,M,A,_){_=this.getJsonOptions(_);var g=this.getOptionsForServer(D,M,_);return this.http.patch(g.url,A,g.options).pipe((0,Z.K)(this.errorHandler.handleError))},P.prototype.head=function(D,M,A){A=this.getJsonOptions(A);var _=this.getOptionsForServer(D,M,A);return this.http.head(_.url,_.options).pipe((0,Z.K)(this.errorHandler.handleError))},P.prototype.options=function(D,M,A){A=this.getJsonOptions(A);var _=this.getOptionsForServer(D,M,A);return this.http.options(_.url,_.options).pipe((0,Z.K)(this.errorHandler.handleError))},P.prototype.getJsonOptions=function(D){return D||{responseType:"json"}},P.prototype.getTextOptions=function(D){return D||{responseType:"text"}},P.prototype.getOptionsForServer=function(D,M,A){if(D.host&&D.port?(D.protocol||(D.protocol=location.protocol),M=D.protocol+"//"+D.host+":"+D.port+"/v2"+M):M="/v2"+M,A.headers||(A.headers={}),"basic"===D.authorization){var _=btoa(D.login+":"+D.password);A.headers.Authorization="Basic "+_}return{url:M,options:A}},P.\u0275fac=function(M){return new(M||P)(B.LFG(T.eN),B.LFG(C))},P.\u0275prov=B.Yz7({token:P,factory:P.\u0275fac}),P}()},14200:function(ue,q,f){"use strict";f.d(q,{Y:function(){return R}});var U=f(68707),B=f(65508),V=f(96153),Z=f(10503),T=f(2094),R=function(){function C(v,P,D){this.httpServer=v,this.settingsService=P,this.recentlyOpenedProjectService=D,this.projectListSubject=new U.xQ}return C.prototype.projectListUpdated=function(){this.projectListSubject.next(!0)},C.prototype.get=function(v,P){return this.httpServer.get(v,"/projects/"+P)},C.prototype.open=function(v,P){return this.httpServer.post(v,"/projects/"+P+"/open",{})},C.prototype.close=function(v,P){return this.recentlyOpenedProjectService.removeData(),this.httpServer.post(v,"/projects/"+P+"/close",{})},C.prototype.list=function(v){return this.httpServer.get(v,"/projects")},C.prototype.nodes=function(v,P){return this.httpServer.get(v,"/projects/"+P+"/nodes")},C.prototype.links=function(v,P){return this.httpServer.get(v,"/projects/"+P+"/links")},C.prototype.drawings=function(v,P){return this.httpServer.get(v,"/projects/"+P+"/drawings")},C.prototype.add=function(v,P,D){return this.httpServer.post(v,"/projects",{name:P,project_id:D})},C.prototype.update=function(v,P){return this.httpServer.put(v,"/projects/"+P.project_id,{auto_close:P.auto_close,auto_open:P.auto_open,auto_start:P.auto_start,drawing_grid_size:P.drawing_grid_size,grid_size:P.grid_size,name:P.name,scene_width:P.scene_width,scene_height:P.scene_height,show_interface_labels:P.show_interface_labels})},C.prototype.delete=function(v,P){return this.httpServer.delete(v,"/projects/"+P)},C.prototype.getUploadPath=function(v,P,D){return v.protocol+"//"+v.host+":"+v.port+"/v2/projects/"+P+"/import?name="+D},C.prototype.getExportPath=function(v,P){return v.protocol+"//"+v.host+":"+v.port+"/v2/projects/"+P.project_id+"/export"},C.prototype.export=function(v,P){return this.httpServer.get(v,"/projects/"+P+"/export")},C.prototype.getStatistics=function(v,P){return this.httpServer.get(v,"/projects/"+P+"/stats")},C.prototype.duplicate=function(v,P,D){return this.httpServer.post(v,"/projects/"+P+"/duplicate",{name:D})},C.prototype.isReadOnly=function(v){return!!v.readonly&&v.readonly},C.\u0275fac=function(P){return new(P||C)(B.LFG(V.wh),B.LFG(Z.g),B.LFG(T.p))},C.\u0275prov=B.Yz7({token:C,factory:C.\u0275fac}),C}()},2094:function(ue,q,f){"use strict";f.d(q,{p:function(){return B}});var U=f(65508),B=function(){function V(){}return V.prototype.setServerId=function(Z){this.serverId=Z},V.prototype.setProjectId=function(Z){this.projectId=Z},V.prototype.setServerIdProjectList=function(Z){this.serverIdProjectList=Z},V.prototype.getServerId=function(){return this.serverId},V.prototype.getProjectId=function(){return this.projectId},V.prototype.getServerIdProjectList=function(){return this.serverIdProjectList},V.prototype.removeData=function(){this.serverId="",this.projectId=""},V.\u0275prov=U.Yz7({token:V,factory:V.\u0275fac=function(T){return new(T||V)}}),V}()},10503:function(ue,q,f){"use strict";f.d(q,{g:function(){return B}});var U=f(65508),B=function(){function V(){this.settings={crash_reports:!0,console_command:void 0,anonymous_statistics:!0},this.reportsSettings="crash_reports",this.consoleSettings="console_command",this.statisticsSettings="statistics_command",this.getItem(this.reportsSettings)&&(this.settings.crash_reports="true"===this.getItem(this.reportsSettings)),this.getItem(this.consoleSettings)&&(this.settings.console_command=this.getItem(this.consoleSettings)),this.getItem(this.statisticsSettings)&&(this.settings.anonymous_statistics="true"===this.getItem(this.statisticsSettings))}return V.prototype.setReportsSettings=function(Z){this.settings.crash_reports=Z,this.removeItem(this.reportsSettings),this.setItem(this.reportsSettings,Z?"true":"false")},V.prototype.setStatisticsSettings=function(Z){this.settings.anonymous_statistics=Z,this.removeItem(this.statisticsSettings),this.setItem(this.statisticsSettings,Z?"true":"false")},V.prototype.getReportsSettings=function(){return"true"===this.getItem(this.reportsSettings)},V.prototype.getStatisticsSettings=function(){return"true"===this.getItem(this.statisticsSettings)},V.prototype.setConsoleSettings=function(Z){this.settings.console_command=Z,this.removeItem(this.consoleSettings),this.setItem(this.consoleSettings,Z)},V.prototype.getConsoleSettings=function(){return this.getItem(this.consoleSettings)},V.prototype.removeItem=function(Z){localStorage.removeItem(Z)},V.prototype.setItem=function(Z,T){localStorage.setItem(Z,T)},V.prototype.getItem=function(Z){return localStorage.getItem(Z)},V.prototype.getAll=function(){return this.settings},V.prototype.setAll=function(Z){this.settings=Z,this.setConsoleSettings(Z.console_command),this.setReportsSettings(Z.crash_reports),this.setStatisticsSettings(Z.anonymous_statistics)},V.\u0275prov=U.Yz7({token:V,factory:V.\u0275fac=function(T){return new(T||V)},providedIn:"root"}),V}()},15132:function(ue,q,f){"use strict";f.d(q,{f:function(){return V}});var U=f(65508),B=f(90838),V=function(){function Z(){this._darkMode$=new B.X(!1),this.darkMode$=this._darkMode$.asObservable(),this.themeChanged=new U.vpe,this.savedTheme="dark",localStorage.getItem("theme")||localStorage.setItem("theme","dark"),this.savedTheme=localStorage.getItem("theme")}return Z.prototype.getActualTheme=function(){return this.savedTheme},Z.prototype.setDarkMode=function(T){T?(this.savedTheme="dark",this.themeChanged.emit("dark-theme"),localStorage.setItem("theme","dark")):(this.savedTheme="light",this.themeChanged.emit("light-theme"),localStorage.setItem("theme","light"))},Z.\u0275prov=U.Yz7({token:Z,factory:Z.\u0275fac=function(R){return new(R||Z)},providedIn:"root"}),Z}()},55699:function(ue,q,f){"use strict";var U={};f.r(U),f.d(U,{active:function(){return sY},arc:function(){return Ate},area:function(){return sH},areaRadial:function(){return dH},ascending:function(){return kf},axisBottom:function(){return YC},axisLeft:function(){return kE},axisRight:function(){return wm},axisTop:function(){return wE},bisect:function(){return Ef},bisectLeft:function(){return tR},bisectRight:function(){return eR},bisector:function(){return mE},brush:function(){return gY},brushSelection:function(){return hY},brushX:function(){return mY},brushY:function(){return vY},chord:function(){return yY},clientPoint:function(){return C_},cluster:function(){return PK},color:function(){return Gc},contourDensity:function(){return WY},contours:function(){return y8},create:function(){return VE},creator:function(){return h_},cross:function(){return nR},csvFormat:function(){return tJ},csvFormatRows:function(){return nJ},csvParse:function(){return $Y},csvParseRows:function(){return eJ},cubehelix:function(){return De},curveBasis:function(){return Yte},curveBasisClosed:function(){return Jte},curveBasisOpen:function(){return Qte},curveBundle:function(){return Kte},curveCardinal:function(){return Xte},curveCardinalClosed:function(){return $te},curveCardinalOpen:function(){return ene},curveCatmullRom:function(){return tne},curveCatmullRomClosed:function(){return nne},curveCatmullRomOpen:function(){return rne},curveLinear:function(){return DA},curveLinearClosed:function(){return ine},curveMonotoneX:function(){return one},curveMonotoneY:function(){return ane},curveNatural:function(){return sne},curveStep:function(){return lne},curveStepAfter:function(){return cne},curveStepBefore:function(){return une},customEvent:function(){return Om},descending:function(){return v4},deviation:function(){return Mf},dispatch:function(){return Kd},drag:function(){return Uf},dragDisable:function(){return T_},dragEnable:function(){return Ul},dsvFormat:function(){return ON},easeBack:function(){return A8},easeBackIn:function(){return MJ},easeBackInOut:function(){return A8},easeBackOut:function(){return AJ},easeBounce:function(){return M1},easeBounceIn:function(){return kJ},easeBounceInOut:function(){return EJ},easeBounceOut:function(){return M1},easeCircle:function(){return M8},easeCircleIn:function(){return vJ},easeCircleInOut:function(){return M8},easeCircleOut:function(){return gJ},easeCubic:function(){return mN},easeCubicIn:function(){return nY},easeCubicInOut:function(){return mN},easeCubicOut:function(){return rY},easeElastic:function(){return D8},easeElasticIn:function(){return DJ},easeElasticInOut:function(){return OJ},easeElasticOut:function(){return D8},easeExp:function(){return E8},easeExpIn:function(){return hJ},easeExpInOut:function(){return E8},easeExpOut:function(){return mJ},easeLinear:function(){return sJ},easePoly:function(){return T8},easePolyIn:function(){return cJ},easePolyInOut:function(){return T8},easePolyOut:function(){return dJ},easeQuad:function(){return S8},easeQuadIn:function(){return lJ},easeQuadInOut:function(){return S8},easeQuadOut:function(){return uJ},easeSin:function(){return k8},easeSinIn:function(){return pJ},easeSinInOut:function(){return k8},easeSinOut:function(){return fJ},entries:function(){return RY},event:function(){return En},extent:function(){return UC},forceCenter:function(){return PJ},forceCollide:function(){return KJ},forceLink:function(){return $J},forceManyBody:function(){return oQ},forceRadial:function(){return aQ},forceSimulation:function(){return iQ},forceX:function(){return sQ},forceY:function(){return lQ},format:function(){return EM},formatDefaultLocale:function(){return U8},formatLocale:function(){return B8},formatPrefix:function(){return BN},formatSpecifier:function(){return A1},geoAlbers:function(){return nU},geoAlbersUsa:function(){return pK},geoArea:function(){return gQ},geoAzimuthalEqualArea:function(){return fK},geoAzimuthalEqualAreaRaw:function(){return T6},geoAzimuthalEquidistant:function(){return hK},geoAzimuthalEquidistantRaw:function(){return x6},geoBounds:function(){return CQ},geoCentroid:function(){return EQ},geoCircle:function(){return MQ},geoClipAntimeridian:function(){return n6},geoClipCircle:function(){return x7},geoClipExtent:function(){return NQ},geoClipRectangle:function(){return QM},geoConicConformal:function(){return vK},geoConicConformalRaw:function(){return oU},geoConicEqualArea:function(){return sA},geoConicEqualAreaRaw:function(){return tU},geoConicEquidistant:function(){return _K},geoConicEquidistantRaw:function(){return aU},geoContains:function(){return VQ},geoDistance:function(){return N1},geoEquirectangular:function(){return gK},geoEquirectangularRaw:function(){return j1},geoGnomonic:function(){return yK},geoGnomonicRaw:function(){return w6},geoGraticule:function(){return R7},geoGraticule10:function(){return qQ},geoIdentity:function(){return bK},geoInterpolate:function(){return jQ},geoLength:function(){return w7},geoMercator:function(){return mK},geoMercatorRaw:function(){return q1},geoNaturalEarth1:function(){return CK},geoNaturalEarth1Raw:function(){return k6},geoOrthographic:function(){return SK},geoOrthographicRaw:function(){return E6},geoPath:function(){return nK},geoProjection:function(){return sp},geoProjectionMutator:function(){return C6},geoRotation:function(){return v7},geoStereographic:function(){return TK},geoStereographicRaw:function(){return M6},geoStream:function(){return Ju},geoTransform:function(){return rK},geoTransverseMercator:function(){return xK},geoTransverseMercatorRaw:function(){return A6},hcl:function(){return g1},hierarchy:function(){return D6},histogram:function(){return yE},hsl:function(){return h1},interpolate:function(){return Lf},interpolateArray:function(){return da},interpolateBasis:function(){return mt},interpolateBasisClosed:function(){return Mt},interpolateBlues:function(){return Wee},interpolateBrBG:function(){return wee},interpolateBuGn:function(){return Ree},interpolateBuPu:function(){return Nee},interpolateCool:function(){return ete},interpolateCubehelix:function(){return rG},interpolateCubehelixDefault:function(){return Xee},interpolateCubehelixLong:function(){return oM},interpolateDate:function(){return Vl},interpolateGnBu:function(){return Zee},interpolateGreens:function(){return Gee},interpolateGreys:function(){return Yee},interpolateHcl:function(){return tG},interpolateHclLong:function(){return nG},interpolateHsl:function(){return XW},interpolateHslLong:function(){return $W},interpolateInferno:function(){return ite},interpolateLab:function(){return eG},interpolateMagma:function(){return rte},interpolateNumber:function(){return ia},interpolateObject:function(){return Jc},interpolateOrRd:function(){return Lee},interpolateOranges:function(){return Kee},interpolatePRGn:function(){return kee},interpolatePiYG:function(){return Eee},interpolatePlasma:function(){return ote},interpolatePuBu:function(){return Bee},interpolatePuBuGn:function(){return Fee},interpolatePuOr:function(){return Mee},interpolatePuRd:function(){return Uee},interpolatePurples:function(){return Jee},interpolateRainbow:function(){return tte},interpolateRdBu:function(){return Aee},interpolateRdGy:function(){return Dee},interpolateRdPu:function(){return Hee},interpolateRdYlBu:function(){return Oee},interpolateRdYlGn:function(){return Pee},interpolateReds:function(){return Qee},interpolateRgb:function(){return Wr},interpolateRgbBasis:function(){return go},interpolateRgbBasisClosed:function(){return ca},interpolateRound:function(){return $E},interpolateSpectral:function(){return Iee},interpolateString:function(){return Zf},interpolateTransformCss:function(){return H4},interpolateTransformSvg:function(){return V4},interpolateViridis:function(){return nte},interpolateWarm:function(){return $ee},interpolateYlGn:function(){return qee},interpolateYlGnBu:function(){return Vee},interpolateYlOrBr:function(){return jee},interpolateYlOrRd:function(){return zee},interpolateZoom:function(){return z4},interrupt:function(){return Bm},interval:function(){return bne},isoFormat:function(){return see},isoParse:function(){return cee},keys:function(){return PY},lab:function(){return m1},line:function(){return OA},lineRadial:function(){return cH},linkHorizontal:function(){return Fte},linkRadial:function(){return Ute},linkVertical:function(){return Bte},local:function(){return y_},map:function(){return Bf},matcher:function(){return OE},max:function(){return d_},mean:function(){return bE},median:function(){return CE},merge:function(){return Sm},min:function(){return SE},mouse:function(){return al},namespace:function(){return km},namespaces:function(){return XC},nest:function(){return MY},now:function(){return A_},pack:function(){return rX},packEnclose:function(){return lU},packSiblings:function(){return eX},pairs:function(){return m4},partition:function(){return iX},path:function(){return Yu},permute:function(){return Fl},pie:function(){return Pte},pointRadial:function(){return lS},polygonArea:function(){return yX},polygonCentroid:function(){return bX},polygonContains:function(){return xX},polygonHull:function(){return TX},polygonLength:function(){return wX},precisionFixed:function(){return H8},precisionPrefix:function(){return V8},precisionRound:function(){return q8},quadtree:function(){return xM},quantile:function(){return Df},quantize:function(){return iG},radialArea:function(){return dH},radialLine:function(){return cH},randomBates:function(){return MX},randomExponential:function(){return AX},randomIrwinHall:function(){return wU},randomLogNormal:function(){return EX},randomNormal:function(){return xU},randomUniform:function(){return kX},range:function(){return Hs},rgb:function(){return Rf},ribbon:function(){return EY},scaleBand:function(){return F6},scaleIdentity:function(){return OU},scaleImplicit:function(){return Z6},scaleLinear:function(){return DU},scaleLog:function(){return ZU},scaleOrdinal:function(){return L6},scalePoint:function(){return DX},scalePow:function(){return H6},scaleQuantile:function(){return LU},scaleQuantize:function(){return FU},scaleSequential:function(){return D9},scaleSqrt:function(){return BX},scaleThreshold:function(){return BU},scaleTime:function(){return hee},scaleUtc:function(){return mee},scan:function(){return aR},schemeAccent:function(){return gee},schemeBlues:function(){return X9},schemeBrBG:function(){return O9},schemeBuGn:function(){return U9},schemeBuPu:function(){return H9},schemeCategory10:function(){return vee},schemeDark2:function(){return _ee},schemeGnBu:function(){return V9},schemeGreens:function(){return $9},schemeGreys:function(){return eH},schemeOrRd:function(){return q9},schemeOranges:function(){return rH},schemePRGn:function(){return P9},schemePaired:function(){return yee},schemePastel1:function(){return bee},schemePastel2:function(){return Cee},schemePiYG:function(){return I9},schemePuBu:function(){return z9},schemePuBuGn:function(){return j9},schemePuOr:function(){return R9},schemePuRd:function(){return W9},schemePurples:function(){return tH},schemeRdBu:function(){return N9},schemeRdGy:function(){return Z9},schemeRdPu:function(){return G9},schemeRdYlBu:function(){return L9},schemeRdYlGn:function(){return F9},schemeReds:function(){return nH},schemeSet1:function(){return See},schemeSet2:function(){return Tee},schemeSet3:function(){return xee},schemeSpectral:function(){return B9},schemeYlGn:function(){return J9},schemeYlGnBu:function(){return Y9},schemeYlOrBr:function(){return Q9},schemeYlOrRd:function(){return K9},select:function(){return Kr},selectAll:function(){return QR},selection:function(){return Vs},selector:function(){return $C},selectorAll:function(){return AE},set:function(){return OY},shuffle:function(){return g4},stack:function(){return pne},stackOffsetDiverging:function(){return hne},stackOffsetExpand:function(){return fne},stackOffsetNone:function(){return Y_},stackOffsetSilhouette:function(){return mne},stackOffsetWiggle:function(){return vne},stackOrderAscending:function(){return RH},stackOrderDescending:function(){return gne},stackOrderInsideOut:function(){return _ne},stackOrderNone:function(){return J_},stackOrderReverse:function(){return yne},stratify:function(){return lX},style:function(){return $d},sum:function(){return sR},symbol:function(){return Gte},symbolCircle:function(){return nZ},symbolCross:function(){return pH},symbolDiamond:function(){return hH},symbolSquare:function(){return gH},symbolStar:function(){return vH},symbolTriangle:function(){return _H},symbolWye:function(){return yH},symbols:function(){return Wte},thresholdFreedmanDiaconis:function(){return iR},thresholdScott:function(){return oR},thresholdSturges:function(){return jC},tickIncrement:function(){return Af},tickStep:function(){return jc},ticks:function(){return Cm},timeDay:function(){return SA},timeDays:function(){return VX},timeFormat:function(){return W6},timeFormatDefaultLocale:function(){return E9},timeFormatLocale:function(){return m9},timeFriday:function(){return XU},timeFridays:function(){return GX},timeHour:function(){return YU},timeHours:function(){return HX},timeInterval:function(){return Ha},timeMillisecond:function(){return _A},timeMilliseconds:function(){return UU},timeMinute:function(){return WU},timeMinutes:function(){return UX},timeMonday:function(){return J1},timeMondays:function(){return qX},timeMonth:function(){return n9},timeMonths:function(){return JX},timeParse:function(){return k9},timeSaturday:function(){return $U},timeSaturdays:function(){return YX},timeSecond:function(){return CA},timeSeconds:function(){return jU},timeSunday:function(){return Y1},timeSundays:function(){return e9},timeThursday:function(){return Q1},timeThursdays:function(){return WX},timeTuesday:function(){return QU},timeTuesdays:function(){return jX},timeWednesday:function(){return KU},timeWednesdays:function(){return zX},timeWeek:function(){return Y1},timeWeeks:function(){return e9},timeYear:function(){return Qm},timeYears:function(){return QX},timeout:function(){return uN},timer:function(){return uM},timerFlush:function(){return K4},touch:function(){return S_},touches:function(){return qE},transition:function(){return fM},transpose:function(){return lR},tree:function(){return hX},treemap:function(){return mX},treemapBinary:function(){return vX},treemapDice:function(){return W1},treemapResquarify:function(){return _X},treemapSlice:function(){return hA},treemapSliceDice:function(){return gX},treemapSquarify:function(){return SU},tsvFormat:function(){return oJ},tsvFormatRows:function(){return aJ},tsvParse:function(){return rJ},tsvParseRows:function(){return iJ},utcDay:function(){return TA},utcDays:function(){return $X},utcFormat:function(){return wA},utcFriday:function(){return c9},utcFridays:function(){return i$},utcHour:function(){return a9},utcHours:function(){return XX},utcMillisecond:function(){return _A},utcMilliseconds:function(){return UU},utcMinute:function(){return i9},utcMinutes:function(){return KX},utcMonday:function(){return X1},utcMondays:function(){return e$},utcMonth:function(){return h9},utcMonths:function(){return a$},utcParse:function(){return G6},utcSaturday:function(){return d9},utcSaturdays:function(){return o$},utcSecond:function(){return CA},utcSeconds:function(){return jU},utcSunday:function(){return K1},utcSundays:function(){return p9},utcThursday:function(){return $1},utcThursdays:function(){return r$},utcTuesday:function(){return l9},utcTuesdays:function(){return t$},utcWednesday:function(){return u9},utcWednesdays:function(){return n$},utcWeek:function(){return K1},utcWeeks:function(){return p9},utcYear:function(){return Xm},utcYears:function(){return s$},values:function(){return IY},variance:function(){return gE},voronoi:function(){return Bne},window:function(){return i1},zip:function(){return cR},zoom:function(){return WH},zoomIdentity:function(){return UA},zoomTransform:function(){return jH}});var x,B=f(29176),V=f(42515),C=(f(70455),f(99890),f(99740),f(27235)),v=f(36683),P=f(20901),D=f(89200),M=f(10509),A=f(97154),_=f(10629),g=f(18967),k=f(14105);f(26552);"undefined"!=typeof window&&window,"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self;"undefined"!=typeof global&&global,"_nghost-".concat("%COMP%"),"_ngcontent-".concat("%COMP%");var Ub=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff";"[^".concat(Ub,"]"),"[".concat(Ub,"]{2,}"),(0,V.Z)(x={},4,4),(0,V.Z)(x,1,1),(0,V.Z)(x,2,2),(0,V.Z)(x,0,0),(0,V.Z)(x,3,3),Object.keys({useClass:null}),Object.keys({useFactory:null}),Object.keys({useValue:null}),Object.keys({useExisting:null});var e=f(65508),Et=f(40098),Sa=f(28722),$r=f(15427),Dn=f(78081),Ti=f(6517),On=f(68707),as=f(5051),KB=f(57434),m3=f(58172),ta=f(89797),vo=f(55371),Fr=f(44213),na=f(57682),wr=f(85639),$i=f(48359),La=f(59371),Us=f(34487),Fa=f(8392);function oC(n,r,t){for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];o?n.setProperty(i,o,(null==t?void 0:t.has(i))?"important":""):n.removeProperty(i)}return n}function om(n,r){var t=r?"":"none";oC(n.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function aC(n,r,t){oC(n.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},t)}function Wg(n,r){return r&&"none"!=r?n+" "+r:n}function xk(n){var r=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*r}function sC(n,r){return n.getPropertyValue(r).split(",").map(function(i){return i.trim()})}function lC(n){var r=n.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}function Gg(n,r,t){return t>=n.top&&t<=n.bottom&&r>=n.left&&r<=n.right}function am(n,r,t){n.top+=r,n.bottom=n.top+n.height,n.left+=t,n.right=n.left+n.width}function wk(n,r,t,i){var b=n.width*r,I=n.height*r;return i>n.top-I&&in.left-b&&t=u._config.dragStartThreshold){var G=Date.now()>=u._dragStartTime+u._getDragStartDelay(p),Y=u._dropContainer;if(!G)return void u._endDragSequence(p);(!Y||!Y.isDragging()&&!Y.isReceiving())&&(p.preventDefault(),u._hasStartedDragging=!0,u._ngZone.run(function(){return u._startDragSequence(p)}))}},this._pointerUp=function(p){u._endDragSequence(p)},this.withRootElement(r).withParent(t.parentDragRef||null),this._parentPositions=new g3(i,a),s.registerDragItem(this)}return(0,k.Z)(n,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var i=(0,Dn.Ig)(t);i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(function(o){return om(o,i)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(t){var i=this;this._handles=t.map(function(a){return(0,Dn.fI)(a)}),this._handles.forEach(function(a){return om(a,i.disabled)}),this._toggleNativeDragInteractions();var o=new Set;return this._disabledHandles.forEach(function(a){i._handles.indexOf(a)>-1&&o.add(a)}),this._disabledHandles=o,this}},{key:"withPreviewTemplate",value:function(t){return this._previewTemplate=t,this}},{key:"withPlaceholderTemplate",value:function(t){return this._placeholderTemplate=t,this}},{key:"withRootElement",value:function(t){var i=this,o=(0,Dn.fI)(t);return o!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){o.addEventListener("mousedown",i._pointerDown,Ak),o.addEventListener("touchstart",i._pointerDown,Mk)}),this._initialTransform=void 0,this._rootElement=o),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(t){var i=this;return this._boundaryElement=t?(0,Dn.fI)(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return i._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(t){return this._parentDragRef=t,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&Uu(this._rootElement),Uu(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),om(t,!0))}},{key:"enableHandle",value:function(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),om(t,this.disabled))}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"_withDropContainer",value:function(t){this._dropContainer=t}},{key:"getFreeDragPosition",value:function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}},{key:"setFreeDragPosition",value:function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}},{key:"withPreviewContainer",value:function(t){return this._previewContainer=t,this}},{key:"_sortFromLastPointerPosition",value:function(){var t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&Uu(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&Uu(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(t){var i=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){i._cleanupDragArtifacts(t),i._cleanupCachedDimensions(),i._dragDropRegistry.stopDragging(i)});else{this._passiveTransform.x=this._activeTransform.x;var o=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){i.ended.next({source:i,distance:i._getDragDistance(o),dropPoint:o})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(t){ra(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var i=this._dropContainer;if(i){var o=this._rootElement,a=o.parentNode,s=this._placeholder=this._createPlaceholderElement(),u=this._anchor=this._anchor||this._document.createComment(""),p=this._getShadowRoot();a.insertBefore(u,o),this._initialTransform=o.style.transform||"",this._preview=this._createPreviewElement(),aC(o,!1,cC),this._document.body.appendChild(a.replaceChild(s,o)),this._getPreviewInsertionPoint(a,p).appendChild(this._preview),this.started.next({source:this}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(t,i){var o=this;this._parentDragRef&&i.stopPropagation();var a=this.isDragging(),s=ra(i),u=!s&&0!==i.button,p=this._rootElement,m=(0,$r.sA)(i),b=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),I=s?(0,Ti.yG)(i):(0,Ti.X6)(i);if(m&&m.draggable&&"mousedown"===i.type&&i.preventDefault(),!(a||u||b||I)){this._handles.length&&(this._rootElementTapHighlight=p.style.webkitTapHighlightColor||"",p.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(Y){return o._updateOnScroll(Y)}),this._boundaryElement&&(this._boundaryRect=lC(this._boundaryElement));var F=this._previewTemplate;this._pickupPositionInElement=F&&F.template&&!F.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,i);var G=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(i);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:G.x,y:G.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,i)}}},{key:"_cleanupDragArtifacts",value:function(t){var i=this;aC(this._rootElement,!0,cC),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var o=i._dropContainer,a=o.getItemIndex(i),s=i._getPointerPositionOnPage(t),u=i._getDragDistance(s),p=o._isOverContainer(s.x,s.y);i.ended.next({source:i,distance:u,dropPoint:s}),i.dropped.next({item:i,currentIndex:a,previousIndex:i._initialIndex,container:o,previousContainer:i._initialContainer,isPointerOverContainer:p,distance:u,dropPoint:s}),o.drop(i,a,i._initialIndex,i._initialContainer,p,u,s),i._dropContainer=i._initialContainer})}},{key:"_updateActiveDropContainer",value:function(t,i){var o=this,a=t.x,s=t.y,u=i.x,p=i.y,m=this._initialContainer._getSiblingContainerFromPosition(this,a,s);!m&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,s)&&(m=this._initialContainer),m&&m!==this._dropContainer&&this._ngZone.run(function(){o.exited.next({item:o,container:o._dropContainer}),o._dropContainer.exit(o),o._dropContainer=m,o._dropContainer.enter(o,a,s,m===o._initialContainer&&m.sortingDisabled?o._initialIndex:void 0),o.entered.next({item:o,container:m,currentIndex:m.getItemIndex(o)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(u,p),this._dropContainer._sortItem(this,a,s,this._pointerDirectionDelta),this._applyPreviewTransform(a-this._pickupPositionInElement.x,s-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var a,t=this._previewTemplate,i=this.previewClass,o=t?t.template:null;if(o&&t){var s=t.matchSize?this._rootElement.getBoundingClientRect():null,u=t.viewContainer.createEmbeddedView(o,t.context);u.detectChanges(),a=dC(u,this._document),this._previewRef=u,t.matchSize?il(a,s):a.style.transform=yf(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var p=this._rootElement;il(a=_3(p),p.getBoundingClientRect()),this._initialTransform&&(a.style.transform=this._initialTransform)}return oC(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},cC),om(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach(function(m){return a.classList.add(m)}):a.classList.add(i)),a}},{key:"_animatePreviewToPlaceholder",value:function(){var t=this;if(!this._hasMoved)return Promise.resolve();var i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);var o=function(n){var r=getComputedStyle(n),t=sC(r,"transition-property"),i=t.find(function(u){return"transform"===u||"all"===u});if(!i)return 0;var o=t.indexOf(i),a=sC(r,"transition-duration"),s=sC(r,"transition-delay");return xk(a[o])+xk(s[o])}(this._preview);return 0===o?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(a){var s=function p(m){(!m||(0,$r.sA)(m)===t._preview&&"transform"===m.propertyName)&&(t._preview.removeEventListener("transitionend",p),a(),clearTimeout(u))},u=setTimeout(s,1.5*o);t._preview.addEventListener("transitionend",s)})})}},{key:"_createPlaceholderElement",value:function(){var o,t=this._placeholderTemplate,i=t?t.template:null;return i?(this._placeholderRef=t.viewContainer.createEmbeddedView(i,t.context),this._placeholderRef.detectChanges(),o=dC(this._placeholderRef,this._document)):o=_3(this._rootElement),o.classList.add("cdk-drag-placeholder"),o}},{key:"_getPointerPositionInElement",value:function(t,i){var o=this._rootElement.getBoundingClientRect(),a=t===this._rootElement?null:t,s=a?a.getBoundingClientRect():o,u=ra(i)?i.targetTouches[0]:i,p=this._getViewportScrollPosition();return{x:s.left-o.left+(u.pageX-s.left-p.left),y:s.top-o.top+(u.pageY-s.top-p.top)}}},{key:"_getPointerPositionOnPage",value:function(t){var i=this._getViewportScrollPosition(),o=ra(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,a=o.pageX-i.left,s=o.pageY-i.top;if(this._ownerSVGElement){var u=this._ownerSVGElement.getScreenCTM();if(u){var p=this._ownerSVGElement.createSVGPoint();return p.x=a,p.y=s,p.matrixTransform(u.inverse())}}return{x:a,y:s}}},{key:"_getConstrainedPointerPosition",value:function(t){var i=this._dropContainer?this._dropContainer.lockAxis:null,o=this.constrainPosition?this.constrainPosition(t,this):t,a=o.x,s=o.y;if("x"===this.lockAxis||"x"===i?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===i)&&(a=this._pickupPositionOnPage.x),this._boundaryRect){var u=this._pickupPositionInElement,p=u.x,m=u.y,b=this._boundaryRect,I=this._previewRect,F=b.top+m,G=b.bottom-(I.height-m);a=Ok(a,b.left+p,b.right-(I.width-p)),s=Ok(s,F,G)}return{x:a,y:s}}},{key:"_updatePointerDirectionDelta",value:function(t){var i=t.x,o=t.y,a=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,u=Math.abs(i-s.x),p=Math.abs(o-s.y);return u>this._config.pointerDirectionChangeThreshold&&(a.x=i>s.x?1:-1,s.x=i),p>this._config.pointerDirectionChangeThreshold&&(a.y=o>s.y?1:-1,s.y=o),a}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,om(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,Ak),t.removeEventListener("touchstart",this._pointerDown,Mk)}},{key:"_applyRootElementTransform",value:function(t,i){var o=yf(t,i);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform&&"none"!=this._rootElement.style.transform?this._rootElement.style.transform:""),this._rootElement.style.transform=Wg(o,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(t,i){var o,a=(null===(o=this._previewTemplate)||void 0===o?void 0:o.template)?void 0:this._initialTransform,s=yf(t,i);this._preview.style.transform=Wg(s,a)}},{key:"_getDragDistance",value:function(t){var i=this._pickupPositionOnPage;return i?{x:t.x-i.x,y:t.y-i.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var t=this._passiveTransform,i=t.x,o=t.y;if(!(0===i&&0===o||this.isDragging())&&this._boundaryElement){var a=this._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(!(0===a.width&&0===a.height||0===s.width&&0===s.height)){var u=a.left-s.left,p=s.right-a.right,m=a.top-s.top,b=s.bottom-a.bottom;a.width>s.width?(u>0&&(i+=u),p>0&&(i-=p)):i=0,a.height>s.height?(m>0&&(o+=m),b>0&&(o-=b)):o=0,(i!==this._passiveTransform.x||o!==this._passiveTransform.y)&&this.setFreeDragPosition({y:o,x:i})}}}},{key:"_getDragStartDelay",value:function(t){var i=this.dragStartDelay;return"number"==typeof i?i:ra(t)?i.touch:i?i.mouse:0}},{key:"_updateOnScroll",value:function(t){var i=this._parentPositions.handleScroll(t);if(i){var o=(0,$r.sA)(t);this._boundaryRect&&(o===this._document||o!==this._boundaryElement&&o.contains(this._boundaryElement))&&am(this._boundaryRect,i.top,i.left),this._pickupPositionOnPage.x+=i.left,this._pickupPositionOnPage.y+=i.top,this._dropContainer||(this._activeTransform.x-=i.left,this._activeTransform.y-=i.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,$r.kV)(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(t,i){var o=this._previewContainer||"global";if("parent"===o)return t;if("global"===o){var a=this._document;return i||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return(0,Dn.fI)(o)}}]),n}();function yf(n,r){return"translate3d(".concat(Math.round(n),"px, ").concat(Math.round(r),"px, 0)")}function Ok(n,r,t){return Math.max(r,Math.min(t,n))}function Uu(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function ra(n){return"t"===n.type[0]}function dC(n,r){var t=n.rootNodes;if(1===t.length&&t[0].nodeType===r.ELEMENT_NODE)return t[0];var i=r.createElement("div");return t.forEach(function(o){return i.appendChild(o)}),i}function il(n,r){n.style.width="".concat(r.width,"px"),n.style.height="".concat(r.height,"px"),n.style.transform=yf(r.left,r.top)}function bf(n,r){return Math.max(0,Math.min(r,n))}var S3=function(){function n(r,t,i,o,a){var s=this;(0,g.Z)(this,n),this._dragDropRegistry=t,this._ngZone=o,this._viewportRuler=a,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new On.xQ,this.entered=new On.xQ,this.exited=new On.xQ,this.dropped=new On.xQ,this.sorted=new On.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=as.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new On.xQ,this._cachedShadowRoot=null,this._startScrollInterval=function(){s._stopScrolling(),(0,KB.F)(0,m3.Z).pipe((0,Fr.R)(s._stopScrollTimers)).subscribe(function(){var u=s._scrollNode,p=s.autoScrollStep;1===s._verticalScrollDirection?mC(u,-p):2===s._verticalScrollDirection&&mC(u,p),1===s._horizontalScrollDirection?Ik(u,-p):2===s._horizontalScrollDirection&&Ik(u,p)})},this.element=(0,Dn.fI)(r),this._document=i,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new g3(i,a)}return(0,k.Z)(n,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(t,i,o,a){var s;this._draggingStarted(),null==a?-1===(s=this.sortingDisabled?this._draggables.indexOf(t):-1)&&(s=this._getItemIndexFromPointerPosition(t,i,o)):s=a;var u=this._activeDraggables,p=u.indexOf(t),m=t.getPlaceholderElement(),b=u[s];if(b===t&&(b=u[s+1]),p>-1&&u.splice(p,1),b&&!this._dragDropRegistry.isDragging(b)){var I=b.getRootElement();I.parentElement.insertBefore(m,I),u.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(i,o)){var F=u[0].getRootElement();F.parentNode.insertBefore(m,F),u.unshift(t)}else(0,Dn.fI)(this.element).appendChild(m),u.push(t);m.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}},{key:"exit",value:function(t){this._reset(),this.exited.next({item:t,container:this})}},{key:"drop",value:function(t,i,o,a,s,u,p){this._reset(),this.dropped.next({item:t,currentIndex:i,previousIndex:o,container:this,previousContainer:a,isPointerOverContainer:s,distance:u,dropPoint:p})}},{key:"withItems",value:function(t){var i=this,o=this._draggables;return this._draggables=t,t.forEach(function(s){return s._withDropContainer(i)}),this.isDragging()&&(o.filter(function(s){return s.isDragging()}).every(function(s){return-1===t.indexOf(s)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"connectedTo",value:function(t){return this._siblings=t.slice(),this}},{key:"withOrientation",value:function(t){return this._orientation=t,this}},{key:"withScrollableParents",value:function(t){var i=(0,Dn.fI)(this.element);return this._scrollableElements=-1===t.indexOf(i)?[i].concat((0,_.Z)(t)):t.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(t){return this._isDragging?hC("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(o){return o.drag===t}):this._draggables.indexOf(t)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(t,i,o,a){if(!this.sortingDisabled&&this._clientRect&&wk(this._clientRect,.05,i,o)){var s=this._itemPositions,u=this._getItemIndexFromPointerPosition(t,i,o,a);if(!(-1===u&&s.length>0)){var p="horizontal"===this._orientation,m=hC(s,function(Me){return Me.drag===t}),b=s[u],F=b.clientRect,G=m>u?1:-1,Y=this._getItemOffsetPx(s[m].clientRect,F,G),$=this._getSiblingOffsetPx(m,s,G),de=s.slice();(function(n,r,t){var i=bf(r,n.length-1),o=bf(t,n.length-1);if(i!==o){for(var a=n[i],s=o0&&(s=1):n.scrollHeight-p>n.clientHeight&&(s=2)}if(a){var m=n.scrollLeft;1===a?m>0&&(u=1):n.scrollWidth-m>n.clientWidth&&(u=2)}return[s,u]}(G,F.clientRect,t,i),$=(0,C.Z)(Y,2);u=$[1],((s=$[0])||u)&&(a=G)}}),!s&&!u){var p=this._viewportRuler.getViewportSize(),m=p.width,b=p.height,I={width:m,height:b,top:0,right:m,bottom:b,left:0};s=T3(I,i),u=Rk(I,t),a=window}a&&(s!==this._verticalScrollDirection||u!==this._horizontalScrollDirection||a!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=u,this._scrollNode=a,(s||u)&&a?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var t=(0,Dn.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var t=(0,Dn.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}},{key:"_cacheItemPositions",value:function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(i){var o=i.getVisibleElement();return{drag:i,offset:0,initialTransform:o.style.transform||"",clientRect:lC(o)}}).sort(function(i,o){return t?i.clientRect.left-o.clientRect.left:i.clientRect.top-o.clientRect.top})}},{key:"_reset",value:function(){var t=this;this._isDragging=!1;var i=(0,Dn.fI)(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(o){var a,s=o.getRootElement();if(s){var u=null===(a=t._itemPositions.find(function(p){return p.drag===o}))||void 0===a?void 0:a.initialTransform;s.style.transform=u||""}}),this._siblings.forEach(function(o){return o._stopReceiving(t)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(t,i,o){var a="horizontal"===this._orientation,s=i[t].clientRect,u=i[t+-1*o],p=s[a?"width":"height"]*o;if(u){var m=a?"left":"top",b=a?"right":"bottom";-1===o?p-=u.clientRect[m]-s[b]:p+=s[m]-u.clientRect[b]}return p}},{key:"_getItemOffsetPx",value:function(t,i,o){var a="horizontal"===this._orientation,s=a?i.left-t.left:i.top-t.top;return-1===o&&(s+=a?i.width-t.width:i.height-t.height),s}},{key:"_shouldEnterAsFirstChild",value:function(t,i){if(!this._activeDraggables.length)return!1;var o=this._itemPositions,a="horizontal"===this._orientation;if(o[0].drag!==this._activeDraggables[0]){var u=o[o.length-1].clientRect;return a?t>=u.right:i>=u.bottom}var p=o[0].clientRect;return a?t<=p.left:i<=p.top}},{key:"_getItemIndexFromPointerPosition",value:function(t,i,o,a){var s=this,u="horizontal"===this._orientation,p=hC(this._itemPositions,function(m,b,I){var F=m.drag,G=m.clientRect;return F===t?I.length<2:(!a||F!==s._previousSwap.drag||!s._previousSwap.overlaps||(u?a.x:a.y)!==s._previousSwap.delta)&&(u?i>=Math.floor(G.left)&&i=Math.floor(G.top)&&o-1})&&(a.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var t=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(i){if(t.isDragging()){var o=t._parentPositions.handleScroll(i);o&&(t._itemPositions.forEach(function(a){am(a.clientRect,o.top,o.left)}),t._itemPositions.forEach(function(a){var s=a.drag;t._dragDropRegistry.isDragging(s)&&s._sortFromLastPointerPosition()}))}else t.isReceiving()&&t._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var t=(0,$r.kV)((0,Dn.fI)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var t=this,i=this._activeDraggables.filter(function(o){return o.isDragging()});this._siblings.forEach(function(o){return o._startReceiving(t,i)})}}]),n}();function hC(n,r){for(var t=0;t=t-a&&r<=t+a?1:r>=i-a&&r<=i+a?2:0}function Rk(n,r){var t=n.left,i=n.right,a=.05*n.width;return r>=t-a&&r<=t+a?1:r>=i-a&&r<=i+a?2:0}var Hu=(0,$r.i$)({passive:!1,capture:!0}),w3=function(){var n=function(){function r(t,i){var o=this;(0,g.Z)(this,r),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(a){return a.isDragging()},this.pointerMove=new On.xQ,this.pointerUp=new On.xQ,this.scroll=new On.xQ,this._preventDefaultWhileDragging=function(a){o._activeDragInstances.length>0&&a.preventDefault()},this._persistentTouchmoveListener=function(a){o._activeDragInstances.length>0&&(o._activeDragInstances.some(o._draggingPredicate)&&a.preventDefault(),o.pointerMove.next(a))},this._document=i}return(0,k.Z)(r,[{key:"registerDropContainer",value:function(i){this._dropInstances.has(i)||this._dropInstances.add(i)}},{key:"registerDragItem",value:function(i){var o=this;this._dragInstances.add(i),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){o._document.addEventListener("touchmove",o._persistentTouchmoveListener,Hu)})}},{key:"removeDropContainer",value:function(i){this._dropInstances.delete(i)}},{key:"removeDragItem",value:function(i){this._dragInstances.delete(i),this.stopDragging(i),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Hu)}},{key:"startDragging",value:function(i,o){var a=this;if(!(this._activeDragInstances.indexOf(i)>-1)&&(this._activeDragInstances.push(i),1===this._activeDragInstances.length)){var s=o.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:function(p){return a.pointerUp.next(p)},options:!0}).set("scroll",{handler:function(p){return a.scroll.next(p)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Hu}),s||this._globalListeners.set("mousemove",{handler:function(p){return a.pointerMove.next(p)},options:Hu}),this._ngZone.runOutsideAngular(function(){a._globalListeners.forEach(function(u,p){a._document.addEventListener(p,u.handler,u.options)})})}}},{key:"stopDragging",value:function(i){var o=this._activeDragInstances.indexOf(i);o>-1&&(this._activeDragInstances.splice(o,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(i){return this._activeDragInstances.indexOf(i)>-1}},{key:"scrolled",value:function(i){var o=this,a=[this.scroll];return i&&i!==this._document&&a.push(new ta.y(function(s){return o._ngZone.runOutsideAngular(function(){var p=function(b){o._activeDragInstances.length&&s.next(b)};return i.addEventListener("scroll",p,!0),function(){i.removeEventListener("scroll",p,!0)}})})),vo.T.apply(void 0,a)}},{key:"ngOnDestroy",value:function(){var i=this;this._dragInstances.forEach(function(o){return i.removeDragItem(o)}),this._dropInstances.forEach(function(o){return i.removeDropContainer(o)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var i=this;this._globalListeners.forEach(function(o,a){i._document.removeEventListener(a,o.handler,o.options)}),this._globalListeners.clear()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.R0b),e.LFG(Et.K0))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(e.R0b),e.LFG(Et.K0))},token:n,providedIn:"root"}),n}(),Nk={dragStartThreshold:5,pointerDirectionChangeThreshold:5},vC=function(){var n=function(){function r(t,i,o,a){(0,g.Z)(this,r),this._document=t,this._ngZone=i,this._viewportRuler=o,this._dragDropRegistry=a}return(0,k.Z)(r,[{key:"createDrag",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nk;return new Dk(i,o,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(i){return new S3(i,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(Et.K0),e.LFG(e.R0b),e.LFG(Sa.rL),e.LFG(w3))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(Et.K0),e.LFG(e.R0b),e.LFG(Sa.rL),e.LFG(w3))},token:n,providedIn:"root"}),n}(),Hk=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[vC],imports:[Sa.ZD]}),n}(),eo=f(93889),Wi=f(37429),ss=f(61493),to=f(90838),Kg=f(17504),rr=f(43161),A3=[[["caption"]],[["colgroup"],["col"]]],D3=["caption","colgroup, col"];function bC(n){return function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){var o;(0,g.Z)(this,i);for(var a=arguments.length,s=new Array(a),u=0;u4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],u=arguments.length>6?arguments[6]:void 0;(0,g.Z)(this,n),this._isNativeHtmlTable=r,this._stickCellCss=t,this.direction=i,this._coalescedStyleScheduler=o,this._isBrowser=a,this._needsPositionStickyOnElement=s,this._positionListener=u,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(t,"-border-elem-top"),bottom:"".concat(t,"-border-elem-bottom"),left:"".concat(t,"-border-elem-left"),right:"".concat(t,"-border-elem-right")}}return(0,k.Z)(n,[{key:"clearStickyPositioning",value:function(t,i){var u,o=this,a=[],s=(0,v.Z)(t);try{for(s.s();!(u=s.n()).done;){var p=u.value;if(p.nodeType===p.ELEMENT_NODE){a.push(p);for(var m=0;m3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(i.some(function(Y){return Y})||o.some(function(Y){return Y}))){var u=t[0],p=u.children.length,m=this._getCellWidths(u,s),b=this._getStickyStartColumnPositions(m,i),I=this._getStickyEndColumnPositions(m,o),F=i.lastIndexOf(!0),G=o.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var st,Y="rtl"===a.direction,$=Y?"right":"left",de=Y?"left":"right",Me=(0,v.Z)(t);try{for(Me.s();!(st=Me.n()).done;)for(var tt=st.value,at=0;at1&&void 0!==arguments[1])||arguments[1];if(!i&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var o=[],a=t.children,s=0;s0;s--)i[s]&&(o[s]=a,a+=t[s]);return o}}]),n}(),kC=new e.OlP("CDK_SPL"),xf=function(){var n=function r(t,i){(0,g.Z)(this,r),this.viewContainer=t,this.elementRef=i};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","rowOutlet",""]]}),n}(),dm=function(){var n=function r(t,i){(0,g.Z)(this,r),this.viewContainer=t,this.elementRef=i};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n}(),pm=function(){var n=function r(t,i){(0,g.Z)(this,r),this.viewContainer=t,this.elementRef=i};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n}(),Yd=function(){var n=function r(t,i){(0,g.Z)(this,r),this.viewContainer=t,this.elementRef=i};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n}(),fm=function(){var n=function(){function r(t,i,o,a,s,u,p,m,b,I,F){(0,g.Z)(this,r),this._differs=t,this._changeDetectorRef=i,this._elementRef=o,this._dir=s,this._platform=p,this._viewRepeater=m,this._coalescedStyleScheduler=b,this._viewportRuler=I,this._stickyPositioningListener=F,this._onDestroy=new On.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new to.X({start:0,end:Number.MAX_VALUE}),a||this._elementRef.nativeElement.setAttribute("role","table"),this._document=u,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return(0,k.Z)(r,[{key:"trackBy",get:function(){return this._trackByFn},set:function(i){this._trackByFn=i}},{key:"dataSource",get:function(){return this._dataSource},set:function(i){this._dataSource!==i&&this._switchDataSource(i)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(i){this._multiTemplateDataRows=(0,Dn.Ig)(i),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(i){this._fixedLayout=(0,Dn.Ig)(i),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var i=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(o,a){return i.trackBy?i.trackBy(a.dataIndex,a.data):a}),this._viewportRuler.change().pipe((0,Fr.R)(this._onDestroy)).subscribe(function(){i._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var o=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||o,this._forceRecalculateCellWidths=o,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,Wi.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var i=this;this._renderRows=this._getAllRenderRows();var o=this._dataDiffer.diff(this._renderRows);if(!o)return this._updateNoDataRow(),void this.contentChanged.next();var a=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(o,a,function(s,u,p){return i._getEmbeddedViewArgs(s.item,p)},function(s){return s.item.data},function(s){1===s.operation&&s.context&&i._renderCellTemplateForItem(s.record.item.rowDef,s.context)}),this._updateRowIndexContext(),o.forEachIdentityChange(function(s){a.get(s.currentIndex).context.$implicit=s.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(i){this._customColumnDefs.add(i)}},{key:"removeColumnDef",value:function(i){this._customColumnDefs.delete(i)}},{key:"addRowDef",value:function(i){this._customRowDefs.add(i)}},{key:"removeRowDef",value:function(i){this._customRowDefs.delete(i)}},{key:"addHeaderRowDef",value:function(i){this._customHeaderRowDefs.add(i),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(i){this._customHeaderRowDefs.delete(i),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(i){this._customFooterRowDefs.add(i),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(i){this._customFooterRowDefs.delete(i),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(i){this._customNoDataRow=i}},{key:"updateStickyHeaderRowStyles",value:function(){var i=this._getRenderedRows(this._headerRowOutlet),a=this._elementRef.nativeElement.querySelector("thead");a&&(a.style.display=i.length?"":"none");var s=this._headerRowDefs.map(function(u){return u.sticky});this._stickyStyler.clearStickyPositioning(i,["top"]),this._stickyStyler.stickRows(i,s,"top"),this._headerRowDefs.forEach(function(u){return u.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var i=this._getRenderedRows(this._footerRowOutlet),a=this._elementRef.nativeElement.querySelector("tfoot");a&&(a.style.display=i.length?"":"none");var s=this._footerRowDefs.map(function(u){return u.sticky});this._stickyStyler.clearStickyPositioning(i,["bottom"]),this._stickyStyler.stickRows(i,s,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,s),this._footerRowDefs.forEach(function(u){return u.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var i=this,o=this._getRenderedRows(this._headerRowOutlet),a=this._getRenderedRows(this._rowOutlet),s=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat((0,_.Z)(o),(0,_.Z)(a),(0,_.Z)(s)),["left","right"]),this._stickyColumnStylesNeedReset=!1),o.forEach(function(u,p){i._addStickyColumnStyles([u],i._headerRowDefs[p])}),this._rowDefs.forEach(function(u){for(var p=[],m=0;m0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(o,a){return i._renderRow(i._headerRowOutlet,o,a)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var i=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(o,a){return i._renderRow(i._footerRowOutlet,o,a)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(i,o){var a=this,s=Array.from(o.columns||[]).map(function(m){return a._columnDefsByName.get(m)}),u=s.map(function(m){return m.sticky}),p=s.map(function(m){return m.stickyEnd});this._stickyStyler.updateStickyColumns(i,u,p,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(i){for(var o=[],a=0;a3&&void 0!==arguments[3]?arguments[3]:{},u=i.viewContainer.createEmbeddedView(o.template,s,a);return this._renderCellTemplateForItem(o,s),u}},{key:"_renderCellTemplateForItem",value:function(i,o){var s,a=(0,v.Z)(this._getCellTemplates(i));try{for(a.s();!(s=a.n()).done;)gu.mostRecentCellOutlet&&gu.mostRecentCellOutlet._viewContainer.createEmbeddedView(s.value,o)}catch(p){a.e(p)}finally{a.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var i=this._rowOutlet.viewContainer,o=0,a=i.length;o0;)t[i]=r[i+1];return W3(n,t=t.map(RC))}function Y3(n){for(var r=arguments,t=[],i=arguments.length-1;i-- >0;)t[i]=r[i+1];return t.map(RC).reduce(function(o,a){var s=z3(n,a);return-1!==s?o.concat(n.splice(s,1)):o},[])}function RC(n,r){if("string"==typeof n)try{return document.querySelector(n)}catch(t){throw t}if(!j3(n)&&!r)throw new TypeError(n+" is not a DOM element.");return n}function Q3(n){if(n===window)return function(){var n={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},n);var r={};return Object.defineProperties(r,n),r}();try{var r=n.getBoundingClientRect();return void 0===r.x&&(r.x=r.left,r.y=r.top),r}catch(t){throw new TypeError("Can't call getBoundingClientRect on "+n)}}var r,lE=void 0;"function"!=typeof Object.create?(r=function(){},lE=function(t,i){if(t!==Object(t)&&null!==t)throw TypeError("Argument must be an object, or null");r.prototype=t||{};var o=new r;return r.prototype=null,void 0!==i&&Object.defineProperties(o,i),null===t&&(o.__proto__=null),o}):lE=Object.create;var X3=lE,qu=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function l_(n,r){r=r||{};for(var t=X3(n),i=0;iot.right-t.margin.right?Math.ceil(Math.min(1,(s.x-ot.right)/t.margin.right+1)*t.maxSpeed.right):0,mn=s.yot.bottom-t.margin.bottom?Math.ceil(Math.min(1,(s.y-ot.bottom)/t.margin.bottom+1)*t.maxSpeed.bottom):0,t.syncMove()&&p.dispatch(Wt,{pageX:s.pageX+Dt,pageY:s.pageY+mn,clientX:s.x+Dt,clientY:s.y+mn}),setTimeout(function(){mn&&function(Wt,ot){Wt===window?window.scrollTo(Wt.pageXOffset,Wt.pageYOffset+ot):Wt.scrollTop+=ot}(Wt,mn),Dt&&function(Wt,ot){Wt===window?window.scrollTo(Wt.pageXOffset+ot,Wt.pageYOffset):Wt.scrollLeft+=ot}(Wt,Dt)})}window.addEventListener("mousedown",$,!1),window.addEventListener("touchstart",$,!1),window.addEventListener("mouseup",de,!1),window.addEventListener("touchend",de,!1),window.addEventListener("pointerup",de,!1),window.addEventListener("mousemove",pt,!1),window.addEventListener("touchmove",pt,!1),window.addEventListener("mouseleave",st,!1),window.addEventListener("scroll",Y,!0)}function $3(n,r,t){return t?n.y>t.top&&n.yt.left&&n.xt.top&&n.yt.left&&n.x0})}));return b.complete(),de})).subscribe(function($){var de=$.x,Me=$.y,st=$.dragCancelled;i.scroller.destroy(),i.zone.run(function(){i.dragEnd.next({x:de,y:Me,dragCancelled:st})}),function(n,r,t){t&&t.split(" ").forEach(function(i){return n.removeClass(r.nativeElement,i)})}(i.renderer,i.element,i.dragActiveClass),m.complete()}),(0,vo.T)(I,Y).pipe((0,$i.q)(1)).subscribe(function(){requestAnimationFrame(function(){i.document.head.removeChild(s)})}),F}),(0,gm.B)());(0,vo.T)(o.pipe((0,$i.q)(1),(0,wr.U)(function(a){return[,a]})),o.pipe((0,V3.G)())).pipe((0,vi.h)(function(a){var s=(0,C.Z)(a,2),u=s[0],p=s[1];return!u||u.x!==p.x||u.y!==p.y}),(0,wr.U)(function(a){return(0,C.Z)(a,2)[1]})).subscribe(function(a){var s=a.x,u=a.y,p=a.currentDrag$,m=a.clientX,b=a.clientY,I=a.transformX,F=a.transformY,G=a.target;i.zone.run(function(){i.dragging.next({x:s,y:u})}),requestAnimationFrame(function(){if(i.ghostElement){var Y="translate3d(".concat(I,"px, ").concat(F,"px, 0px)");i.setElementStyles(i.ghostElement,{transform:Y,"-webkit-transform":Y,"-ms-transform":Y,"-moz-transform":Y,"-o-transform":Y})}}),p.next({clientX:m,clientY:b,dropData:i.dropData,target:G})})}},{key:"ngOnChanges",value:function(i){i.dragAxis&&this.checkEventListeners()}},{key:"ngOnDestroy",value:function(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}},{key:"checkEventListeners",value:function(){var i=this,o=this.canDrag(),a=Object.keys(this.eventListenerSubscriptions).length>0;o&&!a?this.zone.runOutsideAngular(function(){i.eventListenerSubscriptions.mousedown=i.renderer.listen(i.element.nativeElement,"mousedown",function(s){i.onMouseDown(s)}),i.eventListenerSubscriptions.mouseup=i.renderer.listen("document","mouseup",function(s){i.onMouseUp(s)}),i.eventListenerSubscriptions.touchstart=i.renderer.listen(i.element.nativeElement,"touchstart",function(s){i.onTouchStart(s)}),i.eventListenerSubscriptions.touchend=i.renderer.listen("document","touchend",function(s){i.onTouchEnd(s)}),i.eventListenerSubscriptions.touchcancel=i.renderer.listen("document","touchcancel",function(s){i.onTouchEnd(s)}),i.eventListenerSubscriptions.mouseenter=i.renderer.listen(i.element.nativeElement,"mouseenter",function(){i.onMouseEnter()}),i.eventListenerSubscriptions.mouseleave=i.renderer.listen(i.element.nativeElement,"mouseleave",function(){i.onMouseLeave()})}):!o&&a&&this.unsubscribeEventListeners()}},{key:"onMouseDown",value:function(i){var o=this;0===i.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",function(a){o.pointerMove$.next({event:a,clientX:a.clientX,clientY:a.clientY})})),this.pointerDown$.next({event:i,clientX:i.clientX,clientY:i.clientY}))}},{key:"onMouseUp",value:function(i){0===i.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:i,clientX:i.clientX,clientY:i.clientY}))}},{key:"onTouchStart",value:function(i){var a,s,u,o=this;if(this.touchStartLongPress&&(this.timeLongPress.timerBegin=Date.now(),s=!1,u=this.hasScrollbar(),a=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){var p=(0,hm.R)(this.document,"contextmenu").subscribe(function(b){b.preventDefault()}),m=(0,hm.R)(this.document,"touchmove",{passive:!1}).subscribe(function(b){o.touchStartLongPress&&!s&&u&&(s=o.shouldBeginDrag(i,b,a)),(!o.touchStartLongPress||!u||s)&&(b.preventDefault(),o.pointerMove$.next({event:b,clientX:b.targetTouches[0].clientX,clientY:b.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=function(){p.unsubscribe(),m.unsubscribe()}}this.pointerDown$.next({event:i,clientX:i.touches[0].clientX,clientY:i.touches[0].clientY})}},{key:"onTouchEnd",value:function(i){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,this.touchStartLongPress&&this.enableScroll()),this.pointerUp$.next({event:i,clientX:i.changedTouches[0].clientX,clientY:i.changedTouches[0].clientY})}},{key:"onMouseEnter",value:function(){this.setCursor(this.dragCursor)}},{key:"onMouseLeave",value:function(){this.setCursor("")}},{key:"canDrag",value:function(){return this.dragAxis.x||this.dragAxis.y}},{key:"setCursor",value:function(i){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",i)}},{key:"unsubscribeEventListeners",value:function(){var i=this;Object.keys(this.eventListenerSubscriptions).forEach(function(o){i.eventListenerSubscriptions[o](),delete i.eventListenerSubscriptions[o]})}},{key:"setElementStyles",value:function(i,o){var a=this;Object.keys(o).forEach(function(s){a.renderer.setStyle(i,s,o[s])})}},{key:"getScrollElement",value:function(){return this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.body}},{key:"getScrollPosition",value:function(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||this.document.documentElement.scrollTop,left:window.pageXOffset||this.document.documentElement.scrollLeft}}},{key:"shouldBeginDrag",value:function(i,o,a){var s=this.getScrollPosition(),u_top=Math.abs(s.top-a.top),u_left=Math.abs(s.left-a.left),p=Math.abs(o.targetTouches[0].clientX-i.touches[0].clientX)-u_left,m=Math.abs(o.targetTouches[0].clientY-i.touches[0].clientY)-u_top,I=this.touchStartLongPress;return(p+m>I.delta||u_top>0||u_left>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=I.delay&&(this.disableScroll(),!0)}},{key:"enableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow",""),this.renderer.setStyle(this.document.body,"overflow","")}},{key:"disableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow","hidden"),this.renderer.setStyle(this.document.body,"overflow","hidden")}},{key:"hasScrollbar",value:function(){var i=this.getScrollElement();return i.scrollWidth>i.clientWidth||i.scrollHeight>i.clientHeight}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ym),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(ZC,8),e.Y36(Et.K0))},n.\u0275dir=e.lG2({type:n,selectors:[["","mwlDraggable",""]],inputs:{dragAxis:"dragAxis",dragSnapGrid:"dragSnapGrid",ghostDragEnabled:"ghostDragEnabled",showOriginalElementWhileDragging:"showOriginalElementWhileDragging",dragCursor:"dragCursor",autoScroll:"autoScroll",dropData:"dropData",validateDrag:"validateDrag",dragActiveClass:"dragActiveClass",ghostElementAppendTo:"ghostElementAppendTo",ghostElementTemplate:"ghostElementTemplate",touchStartLongPress:"touchStartLongPress"},outputs:{dragPointerDown:"dragPointerDown",dragStart:"dragStart",ghostElementCreated:"ghostElementCreated",dragging:"dragging",dragEnd:"dragEnd"},features:[e.TTD]}),n}(),u_=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n}(),hE=f(39095);function kf(n,r){return nr?1:n>=r?0:NaN}function mE(n){return 1===n.length&&(n=function(n){return function(r,t){return kf(n(r),t)}}(n)),{left:function(t,i,o,a){for(null==o&&(o=0),null==a&&(a=t.length);o>>1;n(t[s],i)<0?o=s+1:a=s}return o},right:function(t,i,o,a){for(null==o&&(o=0),null==a&&(a=t.length);o>>1;n(t[s],i)>0?a=s:o=s+1}return o}}}var vE=mE(kf),eR=vE.right,tR=vE.left,Ef=eR;function m4(n,r){null==r&&(r=BC);for(var t=0,i=n.length-1,o=n[0],a=new Array(i<0?0:i);tn?1:r>=n?0:NaN}function qc(n){return null===n?NaN:+n}function gE(n,r){var s,u,t=n.length,i=0,o=-1,a=0,p=0;if(null==r)for(;++o1)return p/(i-1)}function Mf(n,r){var t=gE(n,r);return t&&Math.sqrt(t)}function UC(n,r){var o,a,s,t=n.length,i=-1;if(null==r){for(;++i=o)for(a=s=o;++io&&(a=o),s=o)for(a=s=o;++io&&(a=o),s0)return[n];if((i=r0)for(n=Math.ceil(n/u),r=Math.floor(r/u),s=new Array(a=Math.ceil(r-n+1));++o=0?(a>=bm?10:a>=VC?5:a>=qC?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=bm?10:a>=VC?5:a>=qC?2:1)}function jc(n,r,t){var i=Math.abs(r-n)/Math.max(0,t),o=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),a=i/o;return a>=bm?o*=10:a>=VC?o*=5:a>=qC&&(o*=2),rI;)F.pop(),--G;var $,Y=new Array(G+1);for(a=0;a<=G;++a)($=Y[a]=[]).x0=a>0?F[a-1]:b,$.x1=a=1)return+t(n[i-1],i-1,n);var i,o=(i-1)*r,a=Math.floor(o),s=+t(n[a],a,n);return s+(+t(n[a+1],a+1,n)-s)*(o-a)}}function iR(n,r,t){return n=HC.call(n,qc).sort(kf),Math.ceil((t-r)/(2*(Df(n,.75)-Df(n,.25))*Math.pow(n.length,-1/3)))}function oR(n,r,t){return Math.ceil((t-r)/(3.5*Mf(n)*Math.pow(n.length,-1/3)))}function d_(n,r){var o,a,t=n.length,i=-1;if(null==r){for(;++i=o)for(a=o;++ia&&(a=o)}else for(;++i=o)for(a=o;++ia&&(a=o);return a}function bE(n,r){var a,t=n.length,i=t,o=-1,s=0;if(null==r)for(;++o=0;)for(t=(s=n[r]).length;--t>=0;)a[--o]=s[t];return a}function SE(n,r){var o,a,t=n.length,i=-1;if(null==r){for(;++i=o)for(a=o;++io&&(a=o)}else for(;++i=o)for(a=o;++io&&(a=o);return a}function Fl(n,r){for(var t=r.length,i=new Array(t);t--;)i[t]=n[r[t]];return i}function aR(n,r){if(t=n.length){var t,a,i=0,o=0,s=n[o];for(null==r&&(r=kf);++i=0&&(i=t.slice(o+1),t=t.slice(0,o)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}})}function C4(n,r){for(var o,t=0,i=n.length;t0)for(var a,s,i=new Array(a),o=0;o=0&&"xmlns"!==(r=n.slice(0,t))&&(n=n.slice(t+1)),XC.hasOwnProperty(r)?{space:XC[r],local:n}:n}function hR(n){return function(){var r=this.ownerDocument,t=this.namespaceURI;return t===KC&&r.documentElement.namespaceURI===KC?r.createElement(n):r.createElementNS(t,n)}}function ME(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function h_(n){var r=km(n);return(r.local?ME:hR)(r)}function mR(){}function $C(n){return null==n?mR:function(){return this.querySelector(n)}}function e1(){return[]}function AE(n){return null==n?e1:function(){return this.querySelectorAll(n)}}var DE=function(r){return function(){return this.matches(r)}};if("undefined"!=typeof document){var Em=document.documentElement;if(!Em.matches){var t1=Em.webkitMatchesSelector||Em.msMatchesSelector||Em.mozMatchesSelector||Em.oMatchesSelector;DE=function(r){return function(){return t1.call(this,r)}}}}var OE=DE;function _R(n){return new Array(n.length)}function Mm(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function T4(n,r,t,i,o,a){for(var u,s=0,p=r.length,m=a.length;sr?1:n>=r?0:NaN}function SR(n){return function(){this.removeAttribute(n)}}function TR(n){return function(){this.removeAttributeNS(n.space,n.local)}}function xR(n,r){return function(){this.setAttribute(n,r)}}function wR(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function kR(n,r){return function(){var t=r.apply(this,arguments);null==t?this.removeAttribute(n):this.setAttribute(n,t)}}function ER(n,r){return function(){var t=r.apply(this,arguments);null==t?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,t)}}function i1(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function AR(n){return function(){this.style.removeProperty(n)}}function DR(n,r,t){return function(){this.style.setProperty(n,r,t)}}function O4(n,r,t){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,t)}}function $d(n,r){return n.style.getPropertyValue(r)||i1(n).getComputedStyle(n,null).getPropertyValue(r)}function OR(n){return function(){delete this[n]}}function PR(n,r){return function(){this[n]=r}}function IR(n,r){return function(){var t=r.apply(this,arguments);null==t?delete this[n]:this[n]=t}}function ol(n){return n.trim().split(/^|\s+/)}function o1(n){return n.classList||new IE(n)}function IE(n){this._node=n,this._names=ol(n.getAttribute("class")||"")}function RE(n,r){for(var t=o1(n),i=-1,o=r.length;++i=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var s1={},En=null;function u1(n,r,t){return n=Dm(n,r,t),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function Dm(n,r,t){return function(i){var o=En;En=i;try{n.call(this,this.__data__,r,t)}finally{En=o}}}function g_(n){return n.trim().split(/^|\s+/).map(function(r){var t="",i=r.indexOf(".");return i>=0&&(t=r.slice(i+1),r=r.slice(0,i)),{type:r,name:t}})}function UE(n){return function(){var r=this.__on;if(r){for(var a,t=0,i=-1,o=r.length;t=tt&&(tt=st+1);!(pt=de[tt])&&++tt=0;)(s=i[o])&&(a&&a!==s.nextSibling&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function(n){function r(I,F){return I&&F?n(I.__data__,F.__data__):!I-!F}n||(n=bR);for(var t=this._groups,i=t.length,o=new Array(i),a=0;a1?this.each((null==r?AR:"function"==typeof r?O4:DR)(n,r,null==t?"":t)):$d(this.node(),n)},property:function(n,r){return arguments.length>1?this.each((null==r?OR:"function"==typeof r?IR:PR)(n,r)):this.node()[n]},classed:function(n,r){var t=ol(n+"");if(arguments.length<2){for(var i=o1(this.node()),o=-1,a=t.length;++o>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):(r=KR.exec(n))?zE(parseInt(r[1],16)):(r=XR.exec(n))?new Ta(r[1],r[2],r[3],1):(r=$R.exec(n))?new Ta(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=ju.exec(n))?WE(r[1],r[2],r[3],r[4]):(r=Nm.exec(n))?WE(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=If.exec(n))?p1(r[1],r[2]/100,r[3]/100,1):(r=x_.exec(n))?p1(r[1],r[2]/100,r[3]/100,r[4]):np.hasOwnProperty(n)?zE(np[n]):"transparent"===n?new Ta(NaN,NaN,NaN,0):null}function zE(n){return new Ta(n>>16&255,n>>8&255,255&n,1)}function WE(n,r,t,i){return i<=0&&(n=r=t=NaN),new Ta(n,r,t,i)}function w_(n){return n instanceof zc||(n=Gc(n)),n?new Ta((n=n.rgb()).r,n.g,n.b,n.opacity):new Ta}function Rf(n,r,t,i){return 1===arguments.length?w_(n):new Ta(n,r,t,null==i?1:i)}function Ta(n,r,t,i){this.r=+n,this.g=+r,this.b=+t,this.opacity=+i}function p1(n,r,t,i){return i<=0?n=r=t=NaN:t<=0||t>=1?n=r=NaN:r<=0&&(n=NaN),new zu(n,r,t,i)}function f1(n){if(n instanceof zu)return new zu(n.h,n.s,n.l,n.opacity);if(n instanceof zc||(n=Gc(n)),!n)return new zu;if(n instanceof zu)return n;var r=(n=n.rgb()).r/255,t=n.g/255,i=n.b/255,o=Math.min(r,t,i),a=Math.max(r,t,i),s=NaN,u=a-o,p=(a+o)/2;return u?(s=r===a?(t-i)/u+6*(t0&&p<1?0:s,new zu(s,u,p,n.opacity)}function h1(n,r,t,i){return 1===arguments.length?f1(n):new zu(n,r,t,null==i?1:i)}function zu(n,r,t,i){this.h=+n,this.s=+r,this.l=+t,this.opacity=+i}function GE(n,r,t){return 255*(n<60?r+(t-r)*n/60:n<180?t:n<240?r+(t-r)*(240-n)/60:r)}yu(zc,Gc,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),yu(Ta,Rf,ep(zc,{brighter:function(r){return r=null==r?Pf:Math.pow(Pf,r),new Ta(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Ta(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===r?")":", "+r+")")}})),yu(zu,h1,ep(zc,{brighter:function(r){return r=null==r?Pf:Math.pow(Pf,r),new zu(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new zu(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),t=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*t,a=2*i-o;return new Ta(GE(r>=240?r-240:r+120,a,o),GE(r,a,o),GE(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Yc=Math.PI/180,YE=180/Math.PI,rN=4/29,Zm=6/29,iN=3*Zm*Zm;function JE(n){if(n instanceof Wu)return new Wu(n.l,n.a,n.b,n.opacity);if(n instanceof l){if(isNaN(n.h))return new Wu(n.l,0,0,n.opacity);var r=n.h*Yc;return new Wu(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}n instanceof Ta||(n=w_(n));var s,u,t=XE(n.r),i=XE(n.g),o=XE(n.b),a=QE((.2225045*t+.7168786*i+.0606169*o)/1);return t===i&&i===o?s=u=a:(s=QE((.4360747*t+.3850649*i+.1430804*o)/.96422),u=QE((.0139322*t+.0971045*i+.7141733*o)/.82521)),new Wu(116*a-16,500*(s-a),200*(a-u),n.opacity)}function m1(n,r,t,i){return 1===arguments.length?JE(n):new Wu(n,r,t,null==i?1:i)}function Wu(n,r,t,i){this.l=+n,this.a=+r,this.b=+t,this.opacity=+i}function QE(n){return n>.008856451679035631?Math.pow(n,1/3):n/iN+rN}function v1(n){return n>Zm?n*n*n:iN*(n-rN)}function KE(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function XE(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function U4(n){if(n instanceof l)return new l(n.h,n.c,n.l,n.opacity);if(n instanceof Wu||(n=JE(n)),0===n.a&&0===n.b)return new l(NaN,0,n.l,n.opacity);var r=Math.atan2(n.b,n.a)*YE;return new l(r<0?r+360:r,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function g1(n,r,t,i){return 1===arguments.length?U4(n):new l(n,r,t,null==i?1:i)}function l(n,r,t,i){this.h=+n,this.c=+r,this.l=+t,this.opacity=+i}yu(Wu,m1,ep(zc,{brighter:function(r){return new Wu(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new Wu(this.l-18*(null==r?1:r),this.a,this.b,this.opacity)},rgb:function(){var r=(this.l+16)/116,t=isNaN(this.a)?r:r+this.a/500,i=isNaN(this.b)?r:r-this.b/200;return new Ta(KE(3.1338561*(t=.96422*v1(t))-1.6168667*(r=1*v1(r))-.4906146*(i=.82521*v1(i))),KE(-.9787684*t+1.9161415*r+.033454*i),KE(.0719453*t-.2289914*r+1.4052427*i),this.opacity)}})),yu(l,g1,ep(zc,{brighter:function(r){return new l(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new l(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return JE(this).rgb()}}));var c=-.14861,d=1.78277,h=-.29227,y=-.90649,w=1.97294,H=w*y,W=w*d,X=d*h-y*c;function me(n){if(n instanceof Xe)return new Xe(n.h,n.s,n.l,n.opacity);n instanceof Ta||(n=w_(n));var t=n.g/255,i=n.b/255,o=(X*i+H*(n.r/255)-W*t)/(X+H-W),a=i-o,s=(w*(t-o)-h*a)/y,u=Math.sqrt(s*s+a*a)/(w*o*(1-o)),p=u?Math.atan2(s,a)*YE-120:NaN;return new Xe(p<0?p+360:p,u,o,n.opacity)}function De(n,r,t,i){return 1===arguments.length?me(n):new Xe(n,r,t,null==i?1:i)}function Xe(n,r,t,i){this.h=+n,this.s=+r,this.l=+t,this.opacity=+i}function Ke(n,r,t,i,o){var a=n*n,s=a*n;return((1-3*n+3*a-s)*r+(4-6*a+3*s)*t+(1+3*n+3*a-3*s)*i+s*o)/6}function mt(n){var r=n.length-1;return function(t){var i=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),o=n[i],a=n[i+1];return Ke((t-i/r)*r,i>0?n[i-1]:2*o-a,o,a,i180||t<-180?t-360*Math.round(t/360):t):zt(isNaN(n)?r:n)}function lr(n,r){var t=r-n;return t?hn(n,t):zt(isNaN(n)?r:n)}yu(Xe,De,ep(zc,{brighter:function(r){return r=null==r?Pf:Math.pow(Pf,r),new Xe(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Xe(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*Yc,t=+this.l,i=isNaN(this.s)?0:this.s*t*(1-t),o=Math.cos(r),a=Math.sin(r);return new Ta(255*(t+i*(c*o+d*a)),255*(t+i*(h*o+y*a)),255*(t+i*(w*o)),this.opacity)}}));var Wr=function n(r){var t=function(n){return 1==(n=+n)?lr:function(r,t){return t-r?function(n,r,t){return n=Math.pow(n,t),r=Math.pow(r,t)-n,t=1/t,function(i){return Math.pow(n+i*r,t)}}(r,t,n):zt(isNaN(r)?t:r)}}(r);function i(o,a){var s=t((o=Rf(o)).r,(a=Rf(a)).r),u=t(o.g,a.g),p=t(o.b,a.b),m=lr(o.opacity,a.opacity);return function(b){return o.r=s(b),o.g=u(b),o.b=p(b),o.opacity=m(b),o+""}}return i.gamma=n,i}(1);function Mi(n){return function(r){var s,u,t=r.length,i=new Array(t),o=new Array(t),a=new Array(t);for(s=0;st&&(a=r.slice(t,a),u[s]?u[s]+=a:u[++s]=a),(i=i[0])===(o=o[0])?u[s]?u[s]+=o:u[++s]=o:(u[++s]=null,p.push({i:s,x:ia(i,o)})),t=ql.lastIndex;return t180?b+=360:b-m>180&&(m+=360),F.push({i:I.push(o(I)+"rotate(",null,i)-2,x:ia(m,b)})):b&&I.push(o(I)+"rotate("+b+i)}(m.rotate,b.rotate,I,F),function(m,b,I,F){m!==b?F.push({i:I.push(o(I)+"skewX(",null,i)-2,x:ia(m,b)}):b&&I.push(o(I)+"skewX("+b+i)}(m.skewX,b.skewX,I,F),function(m,b,I,F,G,Y){if(m!==I||b!==F){var $=G.push(o(G)+"scale(",null,",",null,")");Y.push({i:$-4,x:ia(m,I)},{i:$-2,x:ia(b,F)})}else(1!==I||1!==F)&&G.push(o(G)+"scale("+I+","+F+")")}(m.scaleX,m.scaleY,b.scaleX,b.scaleY,I,F),m=b=null,function(G){for(var de,Y=-1,$=F.length;++Y<$;)I[(de=F[Y]).i]=de.x(G);return I.join("")}}}var H4=iM(function(n){return"none"===n?_1:(Ff||(Ff=document.createElement("DIV"),y1=document.documentElement,nM=document.defaultView),Ff.style.transform=n,n=nM.getComputedStyle(y1.appendChild(Ff),null).getPropertyValue("transform"),y1.removeChild(Ff),tM(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),V4=iM(function(n){return null!=n&&(E_||(E_=document.createElementNS("http://www.w3.org/2000/svg","g")),E_.setAttribute("transform",n),n=E_.transform.baseVal.consolidate())?tM((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):_1},", ",")",")"),b1=Math.SQRT2;function j4(n){return((n=Math.exp(n))+1/n)/2}function z4(n,r){var I,F,t=n[0],i=n[1],o=n[2],u=r[2],p=r[0]-t,m=r[1]-i,b=p*p+m*m;if(b<1e-12)F=Math.log(u/o)/b1,I=function(tt){return[t+tt*p,i+tt*m,o*Math.exp(b1*tt*F)]};else{var G=Math.sqrt(b),Y=(u*u-o*o+4*b)/(2*o*2*G),$=(u*u-o*o-4*b)/(2*u*2*G),de=Math.log(Math.sqrt(Y*Y+1)-Y),Me=Math.log(Math.sqrt($*$+1)-$);F=(Me-de)/b1,I=function(tt){var at=tt*F,pt=j4(de),Je=o/(2*G)*(pt*function(n){return((n=Math.exp(2*n))-1)/(n+1)}(b1*at+de)-function(n){return((n=Math.exp(n))-1/n)/2}(de));return[t+Je*p,i+Je*m,o*pt/j4(b1*at+de)]}}return I.duration=1e3*F,I}function W4(n){return function(r,t){var i=n((r=h1(r)).h,(t=h1(t)).h),o=lr(r.s,t.s),a=lr(r.l,t.l),s=lr(r.opacity,t.opacity);return function(u){return r.h=i(u),r.s=o(u),r.l=a(u),r.opacity=s(u),r+""}}}var XW=W4(_n),$W=W4(lr);function eG(n,r){var t=lr((n=m1(n)).l,(r=m1(r)).l),i=lr(n.a,r.a),o=lr(n.b,r.b),a=lr(n.opacity,r.opacity);return function(s){return n.l=t(s),n.a=i(s),n.b=o(s),n.opacity=a(s),n+""}}function G4(n){return function(r,t){var i=n((r=g1(r)).h,(t=g1(t)).h),o=lr(r.c,t.c),a=lr(r.l,t.l),s=lr(r.opacity,t.opacity);return function(u){return r.h=i(u),r.c=o(u),r.l=a(u),r.opacity=s(u),r+""}}}var tG=G4(_n),nG=G4(lr);function Y4(n){return function r(t){function i(o,a){var s=n((o=De(o)).h,(a=De(a)).h),u=lr(o.s,a.s),p=lr(o.l,a.l),m=lr(o.opacity,a.opacity);return function(b){return o.h=s(b),o.s=u(b),o.l=p(Math.pow(b,t)),o.opacity=m(b),o+""}}return t=+t,i.gamma=r,i}(1)}var rG=Y4(_n),oM=Y4(lr);function iG(n,r){for(var t=new Array(r),i=0;i=0&&n._call.call(null,r),n=n._next;--M_}function X4(){Lm=(sM=x1.now())+lM,M_=C1=0;try{K4()}finally{M_=0,function(){for(var n,t,r=aM,i=1/0;r;)r._call?(i>r._time&&(i=r._time),n=r,r=r._next):(t=r._next,r._next=null,r=n?n._next=t:aM=t);T1=n,lN(i)}(),Lm=0}}function aG(){var n=x1.now(),r=n-sM;r>1e3&&(lM-=r,sM=n)}function lN(n){M_||(C1&&(C1=clearTimeout(C1)),n-Lm>24?(n<1/0&&(C1=setTimeout(X4,n-x1.now()-lM)),S1&&(S1=clearInterval(S1))):(S1||(sM=x1.now(),S1=setInterval(aG,1e3)),M_=1,Q4(X4)))}function uN(n,r,t){var i=new w1;return i.restart(function(o){i.stop(),n(o+r)},r=null==r?0:+r,t),i}w1.prototype=uM.prototype={constructor:w1,restart:function(r,t,i){if("function"!=typeof r)throw new TypeError("callback is not a function");i=(null==i?A_():+i)+(null==t?0:+t),!this._next&&T1!==this&&(T1?T1._next=this:aM=this,T1=this),this._call=r,this._time=i,lN()},stop:function(){this._call&&(this._call=null,this._time=1/0,lN())}};var lG=Kd("start","end","interrupt"),uG=[];function pM(n,r,t,i,o,a){var s=n.__transition;if(s){if(t in s)return}else n.__transition={};!function(n,r,t){var o,i=n.__transition;function s(m){var b,I,F,G;if(1!==t.state)return p();for(b in i)if((G=i[b]).name===t.name){if(3===G.state)return uN(s);4===G.state?(G.state=6,G.timer.stop(),G.on.call("interrupt",n,n.__data__,G.index,G.group),delete i[b]):+b0)throw new Error("too late; already scheduled");return t}function Fm(n,r){var t=Gu(n,r);if(t.state>2)throw new Error("too late; already started");return t}function Gu(n,r){var t=n.__transition;if(!t||!(t=t[r]))throw new Error("transition not found");return t}function Bm(n,r){var i,o,s,t=n.__transition,a=!0;if(t){for(s in r=null==r?null:r+"",t)(i=t[s]).name===r?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),o&&i.on.call("interrupt",n,n.__data__,i.index,i.group),delete t[s]):a=!1;a&&delete n.__transition}}function pG(n,r){var t,i;return function(){var o=Fm(this,n),a=o.tween;if(a!==t)for(var s=0,u=(i=t=a).length;s=0&&(r=r.slice(0,t)),!r||"start"===r})}(r)?fN:Fm;return function(){var s=a(this,n),u=s.on;u!==i&&(o=(i=u).copy()).on(r,t),s.on=o}}var VG=Vs.prototype.constructor;function JG(n,r,t){function i(){var o=this,a=r.apply(o,arguments);return a&&function(s){o.style.setProperty(n,a(s),t)}}return i._value=r,i}var tY=0;function Kc(n,r,t,i){this._groups=n,this._parents=r,this._name=t,this._id=i}function fM(n){return Vs().transition(n)}function n8(){return++tY}var D_=Vs.prototype;function nY(n){return n*n*n}function rY(n){return--n*n*n+1}function mN(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}Kc.prototype=fM.prototype={constructor:Kc,select:function(n){var r=this._name,t=this._id;"function"!=typeof n&&(n=$C(n));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s1&&i.name===r)return new Kc([[n]],aY,r,+o);return null}function r8(n){return function(){return n}}function lY(n,r,t){this.target=n,this.type=r,this.selection=t}function i8(){En.stopImmediatePropagation()}function hM(){En.preventDefault(),En.stopImmediatePropagation()}var o8={name:"drag"},gN={name:"space"},O_={name:"handle"},P_={name:"center"},mM={name:"x",handles:["e","w"].map(k1),input:function(r,t){return r&&[[r[0],t[0][1]],[r[1],t[1][1]]]},output:function(r){return r&&[r[0][0],r[1][0]]}},vM={name:"y",handles:["n","s"].map(k1),input:function(r,t){return r&&[[t[0][0],r[0]],[t[1][0],r[1]]]},output:function(r){return r&&[r[0][1],r[1][1]]}},uY={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(k1),input:function(r){return r},output:function(r){return r}},rp={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},a8={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},s8={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},cY={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},dY={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function k1(n){return{type:n}}function pY(){return!En.button}function fY(){var n=this.ownerSVGElement||this;return[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function _N(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function yN(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function hY(n){var r=n.__brush;return r?r.dim.output(r.selection):null}function mY(){return bN(mM)}function vY(){return bN(vM)}function gY(){return bN(uY)}function bN(n){var a,r=fY,t=pY,i=Kd(s,"start","brush","end"),o=6;function s(F){var G=F.property("__brush",I).selectAll(".overlay").data([k1("overlay")]);G.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",rp.overlay).merge(G).each(function(){var $=_N(this).extent;Kr(this).attr("x",$[0][0]).attr("y",$[0][1]).attr("width",$[1][0]-$[0][0]).attr("height",$[1][1]-$[0][1])}),F.selectAll(".selection").data([k1("selection")]).enter().append("rect").attr("class","selection").attr("cursor",rp.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var Y=F.selectAll(".handle").data(n.handles,function($){return $.type});Y.exit().remove(),Y.enter().append("rect").attr("class",function($){return"handle handle--"+$.type}).attr("cursor",function($){return rp[$.type]}),F.each(u).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",b)}function u(){var F=Kr(this),G=_N(this).selection;G?(F.selectAll(".selection").style("display",null).attr("x",G[0][0]).attr("y",G[0][1]).attr("width",G[1][0]-G[0][0]).attr("height",G[1][1]-G[0][1]),F.selectAll(".handle").style("display",null).attr("x",function(Y){return"e"===Y.type[Y.type.length-1]?G[1][0]-o/2:G[0][0]-o/2}).attr("y",function(Y){return"s"===Y.type[0]?G[1][1]-o/2:G[0][1]-o/2}).attr("width",function(Y){return"n"===Y.type||"s"===Y.type?G[1][0]-G[0][0]+o:o}).attr("height",function(Y){return"e"===Y.type||"w"===Y.type?G[1][1]-G[0][1]+o:o})):F.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function p(F,G){return F.__brush.emitter||new m(F,G)}function m(F,G){this.that=F,this.args=G,this.state=F.__brush,this.active=0}function b(){if(En.touches){if(En.changedTouches.lengthMath.abs(Oi[1]-ai[1])?ir=!0:zr=!0),ai=Oi,er=!0,hM(),or()}function or(){var Oi;switch(xn=ai[0]-Jr[0],Zn=ai[1]-Jr[1],Y){case gN:case o8:$&&(xn=Math.max(at-pt,Math.min(pn-Wt,xn)),Je=pt+xn,ot=Wt+xn),de&&(Zn=Math.max(et-It,Math.min(Dt-mn,Zn)),kt=It+Zn,dn=mn+Zn);break;case O_:$<0?(xn=Math.max(at-pt,Math.min(pn-pt,xn)),Je=pt+xn,ot=Wt):$>0&&(xn=Math.max(at-Wt,Math.min(pn-Wt,xn)),Je=pt,ot=Wt+xn),de<0?(Zn=Math.max(et-It,Math.min(Dt-It,Zn)),kt=It+Zn,dn=mn):de>0&&(Zn=Math.max(et-mn,Math.min(Dt-mn,Zn)),kt=It,dn=mn+Zn);break;case P_:$&&(Je=Math.max(at,Math.min(pn,pt-xn*$)),ot=Math.max(at,Math.min(pn,Wt+xn*$))),de&&(kt=Math.max(et,Math.min(Dt,It-Zn*de)),dn=Math.max(et,Math.min(Dt,mn+Zn*de)))}ot0&&(pt=Je-xn),de<0?mn=dn-Zn:de>0&&(It=kt-Zn),Y=gN,Bo.attr("cursor",rp.selection),or());break;default:return}hM()}function xi(){switch(En.keyCode){case 16:vr&&(zr=ir=vr=!1,or());break;case 18:Y===P_&&($<0?Wt=ot:$>0&&(pt=Je),de<0?mn=dn:de>0&&(It=kt),Y=O_,or());break;case 32:Y===gN&&(En.altKey?($&&(Wt=ot-xn*$,pt=Je+xn*$),de&&(mn=dn-Zn*de,It=kt+Zn*de),Y=P_):($<0?Wt=ot:$>0&&(pt=Je),de<0?mn=dn:de>0&&(It=kt),Y=O_),Bo.attr("cursor",rp[G]),or());break;default:return}hM()}}function I(){var F=this.__brush||{selection:null};return F.extent=r.apply(this,arguments),F.dim=n,F}return s.move=function(F,G){F.selection?F.on("start.brush",function(){p(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){p(this,arguments).end()}).tween("brush",function(){var Y=this,$=Y.__brush,de=p(Y,arguments),Me=$.selection,st=n.input("function"==typeof G?G.apply(this,arguments):G,$.extent),tt=Lf(Me,st);function at(pt){$.selection=1===pt&&yN(st)?null:tt(pt),u.call(Y),de.brush()}return Me&&st?at:at(1)}):F.each(function(){var Y=this,$=arguments,de=Y.__brush,Me=n.input("function"==typeof G?G.apply(Y,$):G,de.extent),st=p(Y,$).beforestart();Bm(Y),de.selection=null==Me||yN(Me)?null:Me,u.call(Y),st.start().brush().end()})},m.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(G){Om(new lY(s,G,n.output(this.state.selection)),i.apply,i,[G,this.that,this.args])}},s.extent=function(F){return arguments.length?(r="function"==typeof F?F:r8([[+F[0][0],+F[0][1]],[+F[1][0],+F[1][1]]]),s):r},s.filter=function(F){return arguments.length?(t="function"==typeof F?F:r8(!!F),s):t},s.handleSize=function(F){return arguments.length?(o=+F,s):o},s.on=function(){var F=i.on.apply(i,arguments);return F===i?s:F},s}var l8=Math.cos,u8=Math.sin,c8=Math.PI,gM=c8/2,d8=2*c8,p8=Math.max;function _Y(n){return function(r,t){return n(r.source.value+r.target.value,t.source.value+t.target.value)}}function yY(){var n=0,r=null,t=null,i=null;function o(a){var G,Y,$,de,Me,st,s=a.length,u=[],p=Hs(s),m=[],b=[],I=b.groups=new Array(s),F=new Array(s*s);for(G=0,Me=-1;++MeUm)if(Math.abs(I*p-m*b)>Um&&a){var G=i-s,Y=o-u,$=p*p+m*m,de=G*G+Y*Y,Me=Math.sqrt($),st=Math.sqrt(F),tt=a*Math.tan((SN-Math.acos(($+F-de)/(2*Me*st)))/2),at=tt/st,pt=tt/Me;Math.abs(at-1)>Um&&(this._+="L"+(r+at*b)+","+(t+at*I)),this._+="A"+a+","+a+",0,0,"+ +(I*G>b*Y)+","+(this._x1=r+pt*p)+","+(this._y1=t+pt*m)}else this._+="L"+(this._x1=r)+","+(this._y1=t)},arc:function(r,t,i,o,a,s){r=+r,t=+t,s=!!s;var u=(i=+i)*Math.cos(o),p=i*Math.sin(o),m=r+u,b=t+p,I=1^s,F=s?o-a:a-o;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+m+","+b:(Math.abs(this._x1-m)>Um||Math.abs(this._y1-b)>Um)&&(this._+="L"+m+","+b),i&&(F<0&&(F=F%TN+TN),F>CY?this._+="A"+i+","+i+",0,1,"+I+","+(r-u)+","+(t-p)+"A"+i+","+i+",0,1,"+I+","+(this._x1=m)+","+(this._y1=b):F>Um&&(this._+="A"+i+","+i+",0,"+ +(F>=SN)+","+I+","+(this._x1=r+i*Math.cos(a))+","+(this._y1=t+i*Math.sin(a))))},rect:function(r,t,i,o){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+t)+"h"+ +i+"v"+ +o+"h"+-i+"Z"},toString:function(){return this._}};var Yu=f8;function SY(n){return n.source}function TY(n){return n.target}function xY(n){return n.radius}function wY(n){return n.startAngle}function kY(n){return n.endAngle}function EY(){var n=SY,r=TY,t=xY,i=wY,o=kY,a=null;function s(){var u,p=bY.call(arguments),m=n.apply(this,p),b=r.apply(this,p),I=+t.apply(this,(p[0]=m,p)),F=i.apply(this,p)-gM,G=o.apply(this,p)-gM,Y=I*l8(F),$=I*u8(F),de=+t.apply(this,(p[0]=b,p)),Me=i.apply(this,p)-gM,st=o.apply(this,p)-gM;if(a||(a=u=Yu()),a.moveTo(Y,$),a.arc(0,0,I,F,G),(F!==Me||G!==st)&&(a.quadraticCurveTo(0,0,de*l8(Me),de*u8(Me)),a.arc(0,0,de,Me,st)),a.quadraticCurveTo(0,0,Y,$),a.closePath(),u)return a=null,u+""||null}return s.radius=function(u){return arguments.length?(t="function"==typeof u?u:CN(+u),s):t},s.startAngle=function(u){return arguments.length?(i="function"==typeof u?u:CN(+u),s):i},s.endAngle=function(u){return arguments.length?(o="function"==typeof u?u:CN(+u),s):o},s.source=function(u){return arguments.length?(n=u,s):n},s.target=function(u){return arguments.length?(r=u,s):r},s.context=function(u){return arguments.length?(a=null==u?null:u,s):a},s}var Cu="$";function _M(){}function h8(n,r){var t=new _M;if(n instanceof _M)n.each(function(u,p){t.set(p,u)});else if(Array.isArray(n)){var a,i=-1,o=n.length;if(null==r)for(;++i=n.length)return null!=t&&u.sort(t),null!=i?i(u):u;for(var Y,$,Me,I=-1,F=u.length,G=n[p++],de=Bf(),st=m();++In.length)return u;var m,b=r[p-1];return null!=i&&p>=n.length?m=u.entries():(m=[],u.each(function(I,F){m.push({key:F,values:s(I,p)})})),null!=b?m.sort(function(I,F){return b(I.key,F.key)}):m}return o={object:function(p){return a(p,0,AY,DY)},map:function(p){return a(p,0,m8,v8)},entries:function(p){return s(a(p,0,m8,v8),0)},key:function(p){return n.push(p),o},sortKeys:function(p){return r[n.length-1]=p,o},sortValues:function(p){return t=p,o},rollup:function(p){return i=p,o}}}function AY(){return{}}function DY(n,r,t){n[r]=t}function m8(){return Bf()}function v8(n,r,t){n.set(r,t)}function yM(){}var Hm=Bf.prototype;function g8(n,r){var t=new yM;if(n instanceof yM)n.each(function(a){t.add(a)});else if(n){var i=-1,o=n.length;if(null==r)for(;++ii!=G>i&&t<(F-m)*(i-b)/(G-b)+m&&(o=-o)}return o}function UY(n,r,t){var i;return function(n,r,t){return(r[0]-n[0])*(t[1]-n[1])==(t[0]-n[0])*(r[1]-n[1])}(n,r,t)&&function(n,r,t){return n<=r&&r<=t||t<=r&&r<=n}(n[i=+(n[0]===r[0])],t[i],r[i])}function qY(){}var ip=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function y8(){var n=1,r=1,t=jC,i=p;function o(m){var b=t(m);if(Array.isArray(b))b=b.slice().sort(ZY);else{var I=UC(m),F=I[0],G=I[1];b=jc(F,G,b),b=Hs(Math.floor(F/b)*b,Math.floor(G/b)*b,b)}return b.map(function(Y){return a(m,Y)})}function a(m,b){var I=[],F=[];return function(m,b,I){var Y,$,Me,st,tt,F=new Array,G=new Array;for(Y=$=-1,ip[(Me=m[0]>=b)<<1].forEach(at);++Y=b)<<1].forEach(at);for(ip[Me<<0].forEach(at);++$=b)<<1|(st=m[$*n]>=b)<<2].forEach(at);++Y=b)<<1|(st=m[$*n+Y+1]>=b)<<2|tt<<3].forEach(at);ip[Me|st<<3].forEach(at)}for(Y=-1,ip[(st=m[$*n]>=b)<<2].forEach(at);++Y=b)<<2|tt<<3].forEach(at);function at(pt){var pn,Wt,Je=[pt[0][0]+Y,pt[0][1]+$],et=[pt[1][0]+Y,pt[1][1]+$],It=u(Je),kt=u(et);(pn=G[It])?(Wt=F[kt])?(delete G[pn.end],delete F[Wt.start],pn===Wt?(pn.ring.push(et),I(pn.ring)):F[pn.start]=G[Wt.end]={start:pn.start,end:Wt.end,ring:pn.ring.concat(Wt.ring)}):(delete G[pn.end],pn.ring.push(et),G[pn.end=kt]=pn):(pn=F[kt])?(Wt=G[It])?(delete F[pn.start],delete G[Wt.end],pn===Wt?(pn.ring.push(et),I(pn.ring)):F[Wt.start]=G[pn.end]={start:Wt.start,end:pn.end,ring:Wt.ring.concat(pn.ring)}):(delete F[pn.start],pn.ring.unshift(Je),F[pn.start=It]=pn):F[It]=G[kt]={start:It,end:kt,ring:[Je,et]}}ip[st<<3].forEach(at)}(m,b,function(G){i(G,m,b),function(n){for(var r=0,t=n.length,i=n[t-1][1]*n[0][0]-n[t-1][0]*n[0][1];++r0?I.push([G]):F.push(G)}),F.forEach(function(G){for(var de,Y=0,$=I.length;Y<$;++Y)if(-1!==FY((de=I[Y])[0],G))return void de.push(G)}),{type:"MultiPolygon",value:b,coordinates:I}}function u(m){return 2*m[0]+m[1]*(n+1)*4}function p(m,b,I){m.forEach(function(F){var Me,G=F[0],Y=F[1],$=0|G,de=0|Y,st=b[de*n+$];G>0&&G0&&Y0&&I>0))throw new Error("invalid size");return n=b,r=I,o},o.thresholds=function(m){return arguments.length?(t="function"==typeof m?m:Array.isArray(m)?Vm(_8.call(m)):Vm(m),o):t},o.smooth=function(m){return arguments.length?(i=m?p:qY,o):i===p},o}function wN(n,r,t){for(var i=n.width,o=n.height,a=1+(t<<1),s=0;s=t&&(u>=a&&(p-=n.data[u-a+s*i]),r.data[u-t+s*i]=p/Math.min(u+1,i-1+a-u,a))}function kN(n,r,t){for(var i=n.width,o=n.height,a=1+(t<<1),s=0;s=t&&(u>=a&&(p-=n.data[s+(u-a)*i]),r.data[s+(u-t)*i]=p/Math.min(u+1,o-1+a-u,a))}function jY(n){return n[0]}function zY(n){return n[1]}function WY(){var n=jY,r=zY,t=960,i=500,o=20,a=2,s=3*o,u=t+2*s>>a,p=i+2*s>>a,m=Vm(20);function b(de){var Me=new Float32Array(u*p),st=new Float32Array(u*p);de.forEach(function(pt,Je,et){var It=n(pt,Je,et)+s>>a,kt=r(pt,Je,et)+s>>a;It>=0&&It=0&&kt>a),kN({width:u,height:p,data:st},{width:u,height:p,data:Me},o>>a),wN({width:u,height:p,data:Me},{width:u,height:p,data:st},o>>a),kN({width:u,height:p,data:st},{width:u,height:p,data:Me},o>>a),wN({width:u,height:p,data:Me},{width:u,height:p,data:st},o>>a),kN({width:u,height:p,data:st},{width:u,height:p,data:Me},o>>a);var tt=m(Me);if(!Array.isArray(tt)){var at=d_(Me);tt=jc(0,at,tt),(tt=Hs(0,Math.floor(at/tt)*tt,tt)).shift()}return y8().thresholds(tt).size([u,p])(Me).map(I)}function I(de){return de.value*=Math.pow(2,-2*a),de.coordinates.forEach(F),de}function F(de){de.forEach(G)}function G(de){de.forEach(Y)}function Y(de){de[0]=de[0]*Math.pow(2,a)-s,de[1]=de[1]*Math.pow(2,a)-s}function $(){return u=t+2*(s=3*o)>>a,p=i+2*s>>a,b}return b.x=function(de){return arguments.length?(n="function"==typeof de?de:Vm(+de),b):n},b.y=function(de){return arguments.length?(r="function"==typeof de?de:Vm(+de),b):r},b.size=function(de){if(!arguments.length)return[t,i];var Me=Math.ceil(de[0]),st=Math.ceil(de[1]);if(!(Me>=0||Me>=0))throw new Error("invalid size");return t=Me,i=st,$()},b.cellSize=function(de){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(de)/Math.LN2),$()},b.thresholds=function(de){return arguments.length?(m="function"==typeof de?de:Array.isArray(de)?Vm(_8.call(de)):Vm(de),b):m},b.bandwidth=function(de){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((de=+de)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*de*de+1)-1)/2),$()},b}function bM(n){return function(){return n}}function EN(n,r,t,i,o,a,s,u,p,m){this.target=n,this.type=r,this.subject=t,this.identifier=i,this.active=o,this.x=a,this.y=s,this.dx=u,this.dy=p,this._=m}function GY(){return!En.ctrlKey&&!En.button}function YY(){return this.parentNode}function JY(n){return null==n?{x:En.x,y:En.y}:n}function QY(){return navigator.maxTouchPoints||"ontouchstart"in this}function Uf(){var u,p,m,b,n=GY,r=YY,t=JY,i=QY,o={},a=Kd("start","drag","end"),s=0,I=0;function F(at){at.on("mousedown.drag",G).filter(i).on("touchstart.drag",de).on("touchmove.drag",Me).on("touchend.drag touchcancel.drag",st).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function G(){if(!b&&n.apply(this,arguments)){var at=tt("mouse",r.apply(this,arguments),al,this,arguments);!at||(Kr(En.view).on("mousemove.drag",Y,!0).on("mouseup.drag",$,!0),T_(En.view),d1(),m=!1,u=En.clientX,p=En.clientY,at("start"))}}function Y(){if(Of(),!m){var at=En.clientX-u,pt=En.clientY-p;m=at*at+pt*pt>I}o.mouse("drag")}function $(){Kr(En.view).on("mousemove.drag mouseup.drag",null),Ul(En.view,m),Of(),o.mouse("end")}function de(){if(n.apply(this,arguments)){var et,It,at=En.changedTouches,pt=r.apply(this,arguments),Je=at.length;for(et=0;et=F?de=!0:10===(Je=m.charCodeAt(G++))?Me=!0:13===Je&&(Me=!0,10===m.charCodeAt(G)&&++G),m.slice(pt+1,at-1).replace(/""/g,'"')}for(;G=(I=(u+m)/2))?u=I:m=I,(de=t>=(F=(p+b)/2))?p=F:b=F,o=a,!(a=a[Me=de<<1|$]))return o[Me]=s,n;if(G=+n._x.call(null,a.data),Y=+n._y.call(null,a.data),r===G&&t===Y)return s.next=a,o?o[Me]=s:n._root=s,n;do{o=o?o[Me]=new Array(4):n._root=new Array(4),($=r>=(I=(u+m)/2))?u=I:m=I,(de=t>=(F=(p+b)/2))?p=F:b=F}while((Me=de<<1|$)==(st=(Y>=F)<<1|G>=I));return o[st]=a,o[Me]=s,n}function qs(n,r,t,i,o){this.node=n,this.x0=r,this.y0=t,this.x1=i,this.y1=o}function zJ(n){return n[0]}function GJ(n){return n[1]}function xM(n,r,t){var i=new LN(null==r?zJ:r,null==t?GJ:t,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function LN(n,r,t,i,o,a){this._x=n,this._y=r,this._x0=t,this._y0=i,this._x1=o,this._y1=a,this._root=void 0}function P8(n){for(var r={data:n.data},t=r;n=n.next;)t=t.next={data:n.data};return r}var js=xM.prototype=LN.prototype;function JJ(n){return n.x+n.vx}function QJ(n){return n.y+n.vy}function KJ(n){var r,t,i=1,o=1;function a(){for(var p,b,I,F,G,Y,$,m=r.length,de=0;deF+kt||ptG+kt||JeI.index){var pn=F-et.x-et.vx,Wt=G-et.y-et.vy,ot=pn*pn+Wt*Wt;otp.r&&(p.r=p[m].r)}function u(){if(r){var p,b,m=r.length;for(t=new Array(m),p=0;pb&&(b=o),aI&&(I=a));if(p>b||m>I)return this;for(this.cover(p,m).cover(b,I),t=0;tn||n>=o||i>r||r>=a;)switch(m=(rb||(u=Y.y0)>I||(p=Y.x1)=Me)<<1|n>=de)&&(Y=F[F.length-1],F[F.length-1]=F[F.length-1-$],F[F.length-1-$]=Y)}else{var st=n-+this._x.call(null,G.data),tt=r-+this._y.call(null,G.data),at=st*st+tt*tt;if(at=(F=(s+p)/2))?s=F:p=F,($=I>=(G=(u+m)/2))?u=G:m=G,r=t,!(t=t[de=$<<1|Y]))return this;if(!t.length)break;(r[de+1&3]||r[de+2&3]||r[de+3&3])&&(i=r,Me=de)}for(;t.data!==n;)if(o=t,!(t=t.next))return this;return(a=t.next)&&delete t.next,o?(a?o.next=a:delete o.next,this):r?(a?r[de]=a:delete r[de],(t=r[0]||r[1]||r[2]||r[3])&&t===(r[3]||r[2]||r[1]||r[0])&&!t.length&&(i?i[Me]=t:this._root=t),this):(this._root=a,this)},js.removeAll=function(n){for(var r=0,t=n.length;r1?(null==de?u.remove($):u.set($,G(de)),r):u.get($)},find:function($,de,Me){var at,pt,Je,et,It,st=0,tt=n.length;for(null==Me?Me=1/0:Me*=Me,st=0;st1?(m.on($,de),r):m.on($)}}}function oQ(){var n,r,t,o,i=Ba(-30),a=1,s=1/0,u=.81;function p(F){var G,Y=n.length,$=xM(n,eQ,tQ).visitAfter(b);for(t=F,G=0;G=s)){(F.data!==r||F.next)&&(0===de&&(tt+=(de=Vf())*de),0===Me&&(tt+=(Me=Vf())*Me),tt1?i[0]+i.slice(2):i,+n.slice(t+1)]}function R_(n){return(n=wM(Math.abs(n)))?n[1]:NaN}function N8(n,r){var t=wM(n,r);if(!t)return n+"";var i=t[0],o=t[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}var Z8={"":function(n,r){e:for(var a,t=(n=n.toPrecision(r)).length,i=1,o=-1;i0&&(o=0)}return o>0?n.slice(0,o)+n.slice(a+1):n},"%":function(r,t){return(100*r).toFixed(t)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function(r){return Math.round(r).toString(10)},e:function(r,t){return r.toExponential(t)},f:function(r,t){return r.toFixed(t)},g:function(r,t){return r.toPrecision(t)},o:function(r){return Math.round(r).toString(8)},p:function(r,t){return N8(100*r,t)},r:N8,s:function(n,r){var t=wM(n,r);if(!t)return n+"";var i=t[0],o=t[1],a=o-(R8=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+wM(n,Math.max(0,r+a-1))[0]},X:function(r){return Math.round(r).toString(16).toUpperCase()},x:function(r){return Math.round(r).toString(16)}},fQ=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function A1(n){return new FN(n)}function FN(n){if(!(r=fQ.exec(n)))throw new Error("invalid format: "+n);var r,t=r[1]||" ",i=r[2]||">",o=r[3]||"-",a=r[4]||"",s=!!r[5],u=r[6]&&+r[6],p=!!r[7],m=r[8]&&+r[8].slice(1),b=r[9]||"";"n"===b?(p=!0,b="g"):Z8[b]||(b=""),(s||"0"===t&&"="===i)&&(s=!0,t="0",i="="),this.fill=t,this.align=i,this.sign=o,this.symbol=a,this.zero=s,this.width=u,this.comma=p,this.precision=m,this.type=b}function L8(n){return n}A1.prototype=FN.prototype,FN.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var kM,EM,BN,F8=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function B8(n){var r=n.grouping&&n.thousands?function(n,r){return function(t,i){for(var o=t.length,a=[],s=0,u=n[0],p=0;o>0&&u>0&&(p+u+1>i&&(u=Math.max(1,i-p)),a.push(t.substring(o-=u,o+u)),!((p+=u+1)>i));)u=n[s=(s+1)%n.length];return a.reverse().join(r)}}(n.grouping,n.thousands):L8,t=n.currency,i=n.decimal,o=n.numerals?function(n){return function(r){return r.replace(/[0-9]/g,function(t){return n[+t]})}}(n.numerals):L8,a=n.percent||"%";function s(p){var m=(p=A1(p)).fill,b=p.align,I=p.sign,F=p.symbol,G=p.zero,Y=p.width,$=p.comma,de=p.precision,Me=p.type,st="$"===F?t[0]:"#"===F&&/[boxX]/.test(Me)?"0"+Me.toLowerCase():"",tt="$"===F?t[1]:/[%p]/.test(Me)?a:"",at=Z8[Me],pt=!Me||/[defgprs%]/.test(Me);function Je(et){var pn,Wt,ot,It=st,kt=tt;if("c"===Me)kt=at(et)+kt,et="";else{var Dt=(et=+et)<0;if(et=at(Math.abs(et),de),Dt&&0==+et&&(Dt=!1),It=(Dt?"("===I?I:"-":"-"===I||"("===I?"":I)+It,kt=("s"===Me?F8[8+R8/3]:"")+kt+(Dt&&"("===I?")":""),pt)for(pn=-1,Wt=et.length;++pn(ot=et.charCodeAt(pn))||ot>57){kt=(46===ot?i+et.slice(pn+1):et.slice(pn))+kt,et=et.slice(0,pn);break}}$&&!G&&(et=r(et,1/0));var mn=It.length+et.length+kt.length,dn=mn>1)+It+et+kt+dn.slice(mn);break;default:et=dn+It+et+kt}return o(et)}return de=null==de?Me?6:12:/[gprs]/.test(Me)?Math.max(1,Math.min(21,de)):Math.max(0,Math.min(20,de)),Je.toString=function(){return p+""},Je}return{format:s,formatPrefix:function(p,m){var b=s(((p=A1(p)).type="f",p)),I=3*Math.max(-8,Math.min(8,Math.floor(R_(m)/3))),F=Math.pow(10,-I),G=F8[8+I/3];return function(Y){return b(F*Y)+G}}}}function U8(n){return kM=B8(n),EM=kM.format,BN=kM.formatPrefix,kM}function H8(n){return Math.max(0,-R_(Math.abs(n)))}function V8(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(R_(r)/3)))-R_(Math.abs(n)))}function q8(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,R_(r)-R_(n))+1}function qf(){return new MM}function MM(){this.reset()}U8({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),MM.prototype={constructor:MM,reset:function(){this.s=this.t=0},add:function(r){j8(AM,r,this.t),j8(this,AM.s,this.s),this.s?this.t+=AM.t:this.s=AM.t},valueOf:function(){return this.s}};var AM=new MM;function j8(n,r,t){var i=n.s=r+t,o=i-r;n.t=r-(i-o)+(t-o)}var Sr=1e-6,Ai=Math.PI,oa=Ai/2,DM=Ai/4,sl=2*Ai,xo=180/Ai,Or=Ai/180,Vi=Math.abs,N_=Math.atan,zs=Math.atan2,Tr=Math.cos,OM=Math.ceil,W8=Math.exp,PM=(Math,Math.log),UN=Math.pow,dr=Math.sin,D1=Math.sign||function(n){return n>0?1:n<0?-1:0},Ua=Math.sqrt,HN=Math.tan;function G8(n){return n>1?0:n<-1?Ai:Math.acos(n)}function jl(n){return n>1?oa:n<-1?-oa:Math.asin(n)}function Y8(n){return(n=dr(n/2))*n}function Go(){}function IM(n,r){n&&Q8.hasOwnProperty(n.type)&&Q8[n.type](n,r)}var J8={Feature:function(r,t){IM(r.geometry,t)},FeatureCollection:function(r,t){for(var i=r.features,o=-1,a=i.length;++o=0?1:-1,o=i*t,a=Tr(r=(r*=Or)/2+DM),s=dr(r),u=zN*s,p=jN*a+u*Tr(o),m=u*i*dr(o);RM.add(zs(m,p)),qN=n,jN=a,zN=s}function gQ(n){return NM.reset(),Ju(n,Xc),2*NM}function ZM(n){return[zs(n[1],n[0]),jl(n[2])]}function qm(n){var r=n[0],t=n[1],i=Tr(t);return[i*Tr(r),i*dr(r),dr(t)]}function LM(n,r){return n[0]*r[0]+n[1]*r[1]+n[2]*r[2]}function Z_(n,r){return[n[1]*r[2]-n[2]*r[1],n[2]*r[0]-n[0]*r[2],n[0]*r[1]-n[1]*r[0]]}function WN(n,r){n[0]+=r[0],n[1]+=r[1],n[2]+=r[2]}function FM(n,r){return[n[0]*r,n[1]*r,n[2]*r]}function BM(n){var r=Ua(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=r,n[1]/=r,n[2]/=r}var aa,zl,pa,Su,jm,t7,n7,L_,jf,op,O1=qf(),ap={point:GN,lineStart:i7,lineEnd:o7,polygonStart:function(){ap.point=a7,ap.lineStart=_Q,ap.lineEnd=yQ,O1.reset(),Xc.polygonStart()},polygonEnd:function(){Xc.polygonEnd(),ap.point=GN,ap.lineStart=i7,ap.lineEnd=o7,RM<0?(aa=-(pa=180),zl=-(Su=90)):O1>Sr?Su=90:O1<-Sr&&(zl=-90),op[0]=aa,op[1]=pa}};function GN(n,r){jf.push(op=[aa=n,pa=n]),rSu&&(Su=r)}function r7(n,r){var t=qm([n*Or,r*Or]);if(L_){var i=Z_(L_,t),a=Z_([i[1],-i[0],0],i);BM(a),a=ZM(a);var m,s=n-jm,u=s>0?1:-1,p=a[0]*xo*u,b=Vi(s)>180;b^(u*jmSu&&(Su=m):b^(u*jm<(p=(p+360)%360-180)&&pSu&&(Su=r)),b?nWl(aa,pa)&&(pa=n):Wl(n,pa)>Wl(aa,pa)&&(aa=n):pa>=aa?(npa&&(pa=n)):n>jm?Wl(aa,n)>Wl(aa,pa)&&(pa=n):Wl(n,pa)>Wl(aa,pa)&&(aa=n)}else jf.push(op=[aa=n,pa=n]);rSu&&(Su=r),L_=t,jm=n}function i7(){ap.point=r7}function o7(){op[0]=aa,op[1]=pa,ap.point=GN,L_=null}function a7(n,r){if(L_){var t=n-jm;O1.add(Vi(t)>180?t+(t>0?360:-360):t)}else t7=n,n7=r;Xc.point(n,r),r7(n,r)}function _Q(){Xc.lineStart()}function yQ(){a7(t7,n7),Xc.lineEnd(),Vi(O1)>Sr&&(aa=-(pa=180)),op[0]=aa,op[1]=pa,L_=null}function Wl(n,r){return(r-=n)<0?r+360:r}function bQ(n,r){return n[0]-r[0]}function s7(n,r){return n[0]<=n[1]?n[0]<=r&&r<=n[1]:rWl(i[0],i[1])&&(i[1]=o[1]),Wl(o[0],i[1])>Wl(i[0],i[1])&&(i[0]=o[0])):a.push(i=o);for(s=-1/0,r=0,i=a[t=a.length-1];r<=t;i=o,++r)(u=Wl(i[1],(o=a[r])[0]))>s&&(s=u,aa=o[0],pa=i[1])}return jf=op=null,aa===1/0||zl===1/0?[[NaN,NaN],[NaN,NaN]]:[[aa,zl],[pa,Su]]}var P1,UM,HM,VM,qM,jM,zM,WM,YN,JN,QN,l7,u7,Ws,Gs,Ys,Qu={sphere:Go,point:KN,lineStart:c7,lineEnd:d7,polygonStart:function(){Qu.lineStart=xQ,Qu.lineEnd=wQ},polygonEnd:function(){Qu.lineStart=c7,Qu.lineEnd=d7}};function KN(n,r){n*=Or;var t=Tr(r*=Or);I1(t*Tr(n),t*dr(n),dr(r))}function I1(n,r,t){++P1,HM+=(n-HM)/P1,VM+=(r-VM)/P1,qM+=(t-qM)/P1}function c7(){Qu.point=SQ}function SQ(n,r){n*=Or;var t=Tr(r*=Or);Ws=t*Tr(n),Gs=t*dr(n),Ys=dr(r),Qu.point=TQ,I1(Ws,Gs,Ys)}function TQ(n,r){n*=Or;var t=Tr(r*=Or),i=t*Tr(n),o=t*dr(n),a=dr(r),s=zs(Ua((s=Gs*a-Ys*o)*s+(s=Ys*i-Ws*a)*s+(s=Ws*o-Gs*i)*s),Ws*i+Gs*o+Ys*a);UM+=s,jM+=s*(Ws+(Ws=i)),zM+=s*(Gs+(Gs=o)),WM+=s*(Ys+(Ys=a)),I1(Ws,Gs,Ys)}function d7(){Qu.point=KN}function xQ(){Qu.point=kQ}function wQ(){p7(l7,u7),Qu.point=KN}function kQ(n,r){l7=n,u7=r,n*=Or,r*=Or,Qu.point=p7;var t=Tr(r);Ws=t*Tr(n),Gs=t*dr(n),Ys=dr(r),I1(Ws,Gs,Ys)}function p7(n,r){n*=Or;var t=Tr(r*=Or),i=t*Tr(n),o=t*dr(n),a=dr(r),s=Gs*a-Ys*o,u=Ys*i-Ws*a,p=Ws*o-Gs*i,m=Ua(s*s+u*u+p*p),b=jl(m),I=m&&-b/m;YN+=I*s,JN+=I*u,QN+=I*p,UM+=b,jM+=b*(Ws+(Ws=i)),zM+=b*(Gs+(Gs=o)),WM+=b*(Ys+(Ys=a)),I1(Ws,Gs,Ys)}function EQ(n){P1=UM=HM=VM=qM=jM=zM=WM=YN=JN=QN=0,Ju(n,Qu);var r=YN,t=JN,i=QN,o=r*r+t*t+i*i;return o<1e-12&&(r=jM,t=zM,i=WM,UMAi?n-sl:n<-Ai?n+sl:n,r]}function e6(n,r,t){return(n%=sl)?r||t?XN(h7(n),m7(r,t)):h7(n):r||t?m7(r,t):$N}function f7(n){return function(r,t){return[(r+=n)>Ai?r-sl:r<-Ai?r+sl:r,t]}}function h7(n){var r=f7(n);return r.invert=f7(-n),r}function m7(n,r){var t=Tr(n),i=dr(n),o=Tr(r),a=dr(r);function s(u,p){var m=Tr(p),b=Tr(u)*m,I=dr(u)*m,F=dr(p),G=F*t+b*i;return[zs(I*o-G*a,b*t-F*i),jl(G*o+I*a)]}return s.invert=function(u,p){var m=Tr(p),b=Tr(u)*m,I=dr(u)*m,F=dr(p),G=F*o-I*a;return[zs(I*o+F*a,b*t+G*i),jl(G*t-b*i)]},s}function v7(n){function r(t){return(t=n(t[0]*Or,t[1]*Or))[0]*=xo,t[1]*=xo,t}return n=e6(n[0]*Or,n[1]*Or,n.length>2?n[2]*Or:0),r.invert=function(t){return(t=n.invert(t[0]*Or,t[1]*Or))[0]*=xo,t[1]*=xo,t},r}function g7(n,r,t,i,o,a){if(t){var s=Tr(r),u=dr(r),p=i*t;null==o?(o=r+i*sl,a=r-p/2):(o=_7(s,o),a=_7(s,a),(i>0?oa)&&(o+=i*sl));for(var m,b=o;i>0?b>a:b1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],r=null,i}}}function GM(n,r){return Vi(n[0]-r[0])=0;--u)o.point((I=b[u])[0],I[1]);else i(F.x,F.p.x,-1,o);F=F.p}b=(F=F.o).z,G=!G}while(!F.v);o.lineEnd()}}}function C7(n){if(r=n.length){for(var r,o,t=0,i=n[0];++t=0?1:-1,kt=It*et,pn=kt>Ai,Wt=$*pt;if(t6.add(zs(Wt*It*dr(kt),de*Je+Wt*Tr(kt))),s+=pn?et+It*sl:et,pn^G>=t^tt>=t){var ot=Z_(qm(F),qm(st));BM(ot);var Dt=Z_(a,ot);BM(Dt);var mn=(pn^et>=0?-1:1)*jl(Dt[2]);(i>mn||i===mn&&(ot[0]||ot[1]))&&(u+=pn^et>=0?1:-1)}}return(s<-Sr||s0){for(p||(o.polygonStart(),p=!0),o.lineStart(),Je=0;Je1&&2&at&&pt.push(pt.pop().concat(pt.shift())),b.push(pt.filter(AQ))}}return F}}function AQ(n){return n.length>1}function DQ(n,r){return((n=n.x)[0]<0?n[1]-oa-Sr:oa-n[1])-((r=r.x)[0]<0?r[1]-oa-Sr:oa-r[1])}var n6=T7(function(){return!0},function(n){var o,r=NaN,t=NaN,i=NaN;return{lineStart:function(){n.lineStart(),o=1},point:function(s,u){var p=s>0?Ai:-Ai,m=Vi(s-r);Vi(m-Ai)0?oa:-oa),n.point(i,t),n.lineEnd(),n.lineStart(),n.point(p,t),n.point(s,t),o=0):i!==p&&m>=Ai&&(Vi(r-i)Sr?N_((dr(r)*(a=Tr(i))*dr(t)-dr(i)*(o=Tr(r))*dr(n))/(o*a*s)):(r+i)/2}(r,t,s,u),n.point(i,t),n.lineEnd(),n.lineStart(),n.point(p,t),o=0),n.point(r=s,t=u),i=p},lineEnd:function(){n.lineEnd(),r=t=NaN},clean:function(){return 2-o}}},function(n,r,t,i){var o;if(null==n)i.point(-Ai,o=t*oa),i.point(0,o),i.point(Ai,o),i.point(Ai,0),i.point(Ai,-o),i.point(0,-o),i.point(-Ai,-o),i.point(-Ai,0),i.point(-Ai,o);else if(Vi(n[0]-r[0])>Sr){var a=n[0]0,o=Vi(r)>Sr;function s(b,I){return Tr(b)*Tr(I)>r}function p(b,I,F){var $=[1,0,0],de=Z_(qm(b),qm(I)),Me=LM(de,de),st=de[0],tt=Me-st*st;if(!tt)return!F&&b;var at=r*Me/tt,pt=-r*st/tt,Je=Z_($,de),et=FM($,at);WN(et,FM(de,pt));var kt=Je,pn=LM(et,kt),Wt=LM(kt,kt),ot=pn*pn-Wt*(LM(et,et)-1);if(!(ot<0)){var Dt=Ua(ot),mn=FM(kt,(-pn-Dt)/Wt);if(WN(mn,et),mn=ZM(mn),!F)return mn;var vr,dn=b[0],xn=I[0],Zn=b[1],er=I[1];xn0^mn[1]<(Vi(mn[0]-dn)Ai^(dn<=mn[0]&&mn[0]<=xn)){var ai=FM(kt,(-pn+Dt)/Wt);return WN(ai,et),[mn,ZM(ai)]}}}function m(b,I){var F=i?n:Ai-n,G=0;return b<-F?G|=1:b>F&&(G|=2),I<-F?G|=4:I>F&&(G|=8),G}return T7(s,function(b){var I,F,G,Y,$;return{lineStart:function(){Y=G=!1,$=1},point:function(Me,st){var at,tt=[Me,st],pt=s(Me,st),Je=i?pt?0:m(Me,st):pt?m(Me+(Me<0?Ai:-Ai),st):0;if(!I&&(Y=G=pt)&&b.lineStart(),pt!==G&&(!(at=p(I,tt))||GM(I,at)||GM(tt,at))&&(tt[0]+=Sr,tt[1]+=Sr,pt=s(tt[0],tt[1])),pt!==G)$=0,pt?(b.lineStart(),at=p(tt,I),b.point(at[0],at[1])):(at=p(I,tt),b.point(at[0],at[1]),b.lineEnd()),I=at;else if(o&&I&&i^pt){var et;!(Je&F)&&(et=p(tt,I,!0))&&($=0,i?(b.lineStart(),b.point(et[0][0],et[0][1]),b.point(et[1][0],et[1][1]),b.lineEnd()):(b.point(et[1][0],et[1][1]),b.lineEnd(),b.lineStart(),b.point(et[0][0],et[0][1])))}pt&&(!I||!GM(I,tt))&&b.point(tt[0],tt[1]),I=tt,G=pt,F=Je},lineEnd:function(){G&&b.lineEnd(),I=null},clean:function(){return $|(Y&&G)<<1}}},function(b,I,F,G){g7(G,n,t,F,b,I)},i?[0,-n]:[-Ai,n-Ai])}var R1=1e9,JM=-R1;function QM(n,r,t,i){function o(m,b){return n<=m&&m<=t&&r<=b&&b<=i}function a(m,b,I,F){var G=0,Y=0;if(null==m||(G=s(m,I))!==(Y=s(b,I))||p(m,b)<0^I>0)do{F.point(0===G||3===G?n:t,G>1?i:r)}while((G=(G+I+4)%4)!==Y);else F.point(b[0],b[1])}function s(m,b){return Vi(m[0]-n)0?0:3:Vi(m[0]-t)0?2:1:Vi(m[1]-r)0?1:0:b>0?3:2}function u(m,b){return p(m.x,b.x)}function p(m,b){var I=s(m,1),F=s(b,1);return I!==F?I-F:0===I?b[1]-m[1]:1===I?m[0]-b[0]:2===I?m[1]-b[1]:b[0]-m[0]}return function(m){var F,G,Y,$,de,Me,st,tt,at,pt,Je,b=m,I=y7(),et={point:It,lineStart:function(){et.point=mn,G&&G.push(Y=[]),pt=!0,at=!1,st=tt=NaN},lineEnd:function(){F&&(mn($,de),Me&&at&&I.rejoin(),F.push(I.result())),et.point=It,at&&b.lineEnd()},polygonStart:function(){b=I,F=[],G=[],Je=!0},polygonEnd:function(){var dn=function(){for(var dn=0,xn=0,Zn=G.length;xni&&(gr-Jr)*(i-ai)>(Li-ai)*(n-Jr)&&++dn:Li<=i&&(gr-Jr)*(i-ai)<(Li-ai)*(n-Jr)&&--dn;return dn}(),xn=Je&&dn,Zn=(F=Sm(F)).length;(xn||Zn)&&(m.polygonStart(),xn&&(m.lineStart(),a(null,null,1,m),m.lineEnd()),Zn&&b7(F,u,dn,a,m),m.polygonEnd()),b=m,F=G=Y=null}};function It(dn,xn){o(dn,xn)&&b.point(dn,xn)}function mn(dn,xn){var Zn=o(dn,xn);if(G&&Y.push([dn,xn]),pt)$=dn,de=xn,Me=Zn,pt=!1,Zn&&(b.lineStart(),b.point(dn,xn));else if(Zn&&at)b.point(dn,xn);else{var er=[st=Math.max(JM,Math.min(R1,st)),tt=Math.max(JM,Math.min(R1,tt))],vr=[dn=Math.max(JM,Math.min(R1,dn)),xn=Math.max(JM,Math.min(R1,xn))];!function(n,r,t,i,o,a){var Y,s=n[0],u=n[1],b=0,I=1,F=r[0]-s,G=r[1]-u;if(Y=t-s,F||!(Y>0)){if(Y/=F,F<0){if(Y0){if(Y>I)return;Y>b&&(b=Y)}if(Y=o-s,F||!(Y<0)){if(Y/=F,F<0){if(Y>I)return;Y>b&&(b=Y)}else if(F>0){if(Y0)){if(Y/=G,G<0){if(Y0){if(Y>I)return;Y>b&&(b=Y)}if(Y=a-u,G||!(Y<0)){if(Y/=G,G<0){if(Y>I)return;Y>b&&(b=Y)}else if(G>0){if(Y0&&(n[0]=s+b*F,n[1]=u+b*G),I<1&&(r[0]=s+I*F,r[1]=u+I*G),!0}}}}}(er,vr,n,r,t,i)?Zn&&(b.lineStart(),b.point(dn,xn),Je=!1):(at||(b.lineStart(),b.point(er[0],er[1])),b.point(vr[0],vr[1]),Zn||b.lineEnd(),Je=!1)}st=dn,tt=xn,at=Zn}return et}}function NQ(){var o,a,s,n=0,r=0,t=960,i=500;return s={stream:function(p){return o&&a===p?o:o=QM(n,r,t,i)(a=p)},extent:function(p){return arguments.length?(n=+p[0][0],r=+p[0][1],t=+p[1][0],i=+p[1][1],o=a=null,s):[[n,r],[t,i]]}}}var i6,KM,XM,r6=qf(),B_={sphere:Go,point:Go,lineStart:function(){B_.point=FQ,B_.lineEnd=LQ},lineEnd:Go,polygonStart:Go,polygonEnd:Go};function LQ(){B_.point=B_.lineEnd=Go}function FQ(n,r){i6=n*=Or,KM=dr(r*=Or),XM=Tr(r),B_.point=BQ}function BQ(n,r){n*=Or;var t=dr(r*=Or),i=Tr(r),o=Vi(n-i6),a=Tr(o),u=i*dr(o),p=XM*t-KM*i*a,m=KM*t+XM*i*a;r6.add(zs(Ua(u*u+p*p),m)),i6=n,KM=t,XM=i}function w7(n){return r6.reset(),Ju(n,B_),+r6}var o6=[null,null],UQ={type:"LineString",coordinates:o6};function N1(n,r){return o6[0]=n,o6[1]=r,w7(UQ)}var k7={Feature:function(r,t){return $M(r.geometry,t)},FeatureCollection:function(r,t){for(var i=r.features,o=-1,a=i.length;++oSr}).map(F)).concat(Hs(OM(a/m)*m,o,m).filter(function(tt){return Vi(tt%I)>Sr}).map(G))}return Me.lines=function(){return st().map(function(tt){return{type:"LineString",coordinates:tt}})},Me.outline=function(){return{type:"Polygon",coordinates:[Y(i).concat($(s).slice(1),Y(t).reverse().slice(1),$(u).reverse().slice(1))]}},Me.extent=function(tt){return arguments.length?Me.extentMajor(tt).extentMinor(tt):Me.extentMinor()},Me.extentMajor=function(tt){return arguments.length?(u=+tt[0][1],s=+tt[1][1],(i=+tt[0][0])>(t=+tt[1][0])&&(tt=i,i=t,t=tt),u>s&&(tt=u,u=s,s=tt),Me.precision(de)):[[i,u],[t,s]]},Me.extentMinor=function(tt){return arguments.length?(a=+tt[0][1],o=+tt[1][1],(r=+tt[0][0])>(n=+tt[1][0])&&(tt=r,r=n,n=tt),a>o&&(tt=a,a=o,o=tt),Me.precision(de)):[[r,a],[n,o]]},Me.step=function(tt){return arguments.length?Me.stepMajor(tt).stepMinor(tt):Me.stepMinor()},Me.stepMajor=function(tt){return arguments.length?(b=+tt[0],I=+tt[1],Me):[b,I]},Me.stepMinor=function(tt){return arguments.length?(p=+tt[0],m=+tt[1],Me):[p,m]},Me.precision=function(tt){return arguments.length?(de=+tt,F=P7(a,o,90),G=I7(r,n,de),Y=P7(u,s,90),$=I7(i,t,de),Me):de},Me.extentMajor([[-180,-90+Sr],[180,90-Sr]]).extentMinor([[-180,-80-Sr],[180,80+Sr]])}function qQ(){return R7()()}function jQ(n,r){var t=n[0]*Or,i=n[1]*Or,o=r[0]*Or,a=r[1]*Or,s=Tr(i),u=dr(i),p=Tr(a),m=dr(a),b=s*Tr(t),I=s*dr(t),F=p*Tr(o),G=p*dr(o),Y=2*jl(Ua(Y8(a-i)+s*p*Y8(o-t))),$=dr(Y),de=Y?function(Me){var st=dr(Me*=Y)/$,tt=dr(Y-Me)/$,at=tt*b+st*F,pt=tt*I+st*G,Je=tt*u+st*m;return[zs(pt,at)*xo,zs(Je,Ua(at*at+pt*pt))*xo]}:function(){return[t*xo,i*xo]};return de.distance=Y,de}function zm(n){return n}var N7,Z7,l6,u6,a6=qf(),s6=qf(),zf={point:Go,lineStart:Go,lineEnd:Go,polygonStart:function(){zf.lineStart=zQ,zf.lineEnd=GQ},polygonEnd:function(){zf.lineStart=zf.lineEnd=zf.point=Go,a6.add(Vi(s6)),s6.reset()},result:function(){var r=a6/2;return a6.reset(),r}};function zQ(){zf.point=WQ}function WQ(n,r){zf.point=L7,N7=l6=n,Z7=u6=r}function L7(n,r){s6.add(u6*n-l6*r),l6=n,u6=r}function GQ(){L7(N7,Z7)}var B7,U7,$c,ed,F7=zf,U_=1/0,eA=U_,Z1=-U_,tA=Z1,nA={point:function(n,r){nZ1&&(Z1=n),rtA&&(tA=r)},lineStart:Go,lineEnd:Go,polygonStart:Go,polygonEnd:Go,result:function(){var r=[[U_,eA],[Z1,tA]];return Z1=tA=-(eA=U_=1/0),r}},c6=0,d6=0,L1=0,rA=0,iA=0,H_=0,p6=0,f6=0,F1=0,Ku={point:Wm,lineStart:H7,lineEnd:V7,polygonStart:function(){Ku.lineStart=XQ,Ku.lineEnd=$Q},polygonEnd:function(){Ku.point=Wm,Ku.lineStart=H7,Ku.lineEnd=V7},result:function(){var r=F1?[p6/F1,f6/F1]:H_?[rA/H_,iA/H_]:L1?[c6/L1,d6/L1]:[NaN,NaN];return c6=d6=L1=rA=iA=H_=p6=f6=F1=0,r}};function Wm(n,r){c6+=n,d6+=r,++L1}function H7(){Ku.point=QQ}function QQ(n,r){Ku.point=KQ,Wm($c=n,ed=r)}function KQ(n,r){var t=n-$c,i=r-ed,o=Ua(t*t+i*i);rA+=o*($c+n)/2,iA+=o*(ed+r)/2,H_+=o,Wm($c=n,ed=r)}function V7(){Ku.point=Wm}function XQ(){Ku.point=eK}function $Q(){q7(B7,U7)}function eK(n,r){Ku.point=q7,Wm(B7=$c=n,U7=ed=r)}function q7(n,r){var t=n-$c,i=r-ed,o=Ua(t*t+i*i);rA+=o*($c+n)/2,iA+=o*(ed+r)/2,H_+=o,p6+=(o=ed*n-$c*r)*($c+n),f6+=o*(ed+r),F1+=3*o,Wm($c=n,ed=r)}var j7=Ku;function z7(n){this._context=n}z7.prototype={_radius:4.5,pointRadius:function(r){return this._radius=r,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(r,t){switch(this._point){case 0:this._context.moveTo(r,t),this._point=1;break;case 1:this._context.lineTo(r,t);break;default:this._context.moveTo(r+this._radius,t),this._context.arc(r,t,this._radius,0,sl)}},result:Go};var m6,W7,G7,B1,U1,h6=qf(),oA={point:Go,lineStart:function(){oA.point=tK},lineEnd:function(){m6&&Y7(W7,G7),oA.point=Go},polygonStart:function(){m6=!0},polygonEnd:function(){m6=null},result:function(){var r=+h6;return h6.reset(),r}};function tK(n,r){oA.point=Y7,W7=B1=n,G7=U1=r}function Y7(n,r){h6.add(Ua((B1-=n)*B1+(U1-=r)*U1)),B1=n,U1=r}var J7=oA;function Q7(){this._string=[]}function K7(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function nK(n,r){var i,o,t=4.5;function a(s){return s&&("function"==typeof t&&o.pointRadius(+t.apply(this,arguments)),Ju(s,i(o))),o.result()}return a.area=function(s){return Ju(s,i(F7)),F7.result()},a.measure=function(s){return Ju(s,i(J7)),J7.result()},a.bounds=function(s){return Ju(s,i(nA)),nA.result()},a.centroid=function(s){return Ju(s,i(j7)),j7.result()},a.projection=function(s){return arguments.length?(i=null==s?(n=null,zm):(n=s).stream,a):n},a.context=function(s){return arguments.length?(o=null==s?(r=null,new Q7):new z7(r=s),"function"!=typeof t&&o.pointRadius(t),a):r},a.pointRadius=function(s){return arguments.length?(t="function"==typeof s?s:(o.pointRadius(+s),+s),a):t},a.projection(n).context(r)}function rK(n){return{stream:H1(n)}}function H1(n){return function(r){var t=new v6;for(var i in n)t[i]=n[i];return t.stream=r,t}}function v6(){}function g6(n,r,t){var i=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),null!=i&&n.clipExtent(null),Ju(t,n.stream(nA)),r(nA.result()),null!=i&&n.clipExtent(i),n}function aA(n,r,t){return g6(n,function(i){var o=r[1][0]-r[0][0],a=r[1][1]-r[0][1],s=Math.min(o/(i[1][0]-i[0][0]),a/(i[1][1]-i[0][1])),u=+r[0][0]+(o-s*(i[1][0]+i[0][0]))/2,p=+r[0][1]+(a-s*(i[1][1]+i[0][1]))/2;n.scale(150*s).translate([u,p])},t)}function _6(n,r,t){return aA(n,[[0,0],r],t)}function y6(n,r,t){return g6(n,function(i){var o=+r,a=o/(i[1][0]-i[0][0]),s=(o-a*(i[1][0]+i[0][0]))/2,u=-a*i[0][1];n.scale(150*a).translate([s,u])},t)}function b6(n,r,t){return g6(n,function(i){var o=+r,a=o/(i[1][1]-i[0][1]),s=-a*i[0][0],u=(o-a*(i[1][1]+i[0][1]))/2;n.scale(150*a).translate([s,u])},t)}Q7.prototype={_radius:4.5,_circle:K7(4.5),pointRadius:function(r){return(r=+r)!==this._radius&&(this._radius=r,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(r,t){switch(this._point){case 0:this._string.push("M",r,",",t),this._point=1;break;case 1:this._string.push("L",r,",",t);break;default:null==this._circle&&(this._circle=K7(this._radius)),this._string.push("M",r,",",t,this._circle)}},result:function(){if(this._string.length){var r=this._string.join("");return this._string=[],r}return null}},v6.prototype={constructor:v6,point:function(r,t){this.stream.point(r,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var iK=Tr(30*Or);function $7(n,r){return+r?function(n,r){function t(i,o,a,s,u,p,m,b,I,F,G,Y,$,de){var Me=m-i,st=b-o,tt=Me*Me+st*st;if(tt>4*r&&$--){var at=s+F,pt=u+G,Je=p+Y,et=Ua(at*at+pt*pt+Je*Je),It=jl(Je/=et),kt=Vi(Vi(Je)-1)r||Vi((Me*Dt+st*mn)/tt-.5)>.3||s*F+u*G+p*Y2?Dt[2]%360*Or:0,Wt()):[u*xo,p*xo,m*xo]},kt.angle=function(Dt){return arguments.length?(I=Dt%360*Or,Wt()):I*xo},kt.precision=function(Dt){return arguments.length?(at=$7(pt,tt=Dt*Dt),ot()):Ua(tt)},kt.fitExtent=function(Dt,mn){return aA(kt,Dt,mn)},kt.fitSize=function(Dt,mn){return _6(kt,Dt,mn)},kt.fitWidth=function(Dt,mn){return y6(kt,Dt,mn)},kt.fitHeight=function(Dt,mn){return b6(kt,Dt,mn)},function(){return r=n.apply(this,arguments),kt.invert=r.invert&&pn,Wt()}}function S6(n){var r=0,t=Ai/3,i=C6(n),o=i(r,t);return o.parallels=function(a){return arguments.length?i(r=a[0]*Or,t=a[1]*Or):[r*xo,t*xo]},o}function tU(n,r){var t=dr(n),i=(t+dr(r))/2;if(Vi(i)=.12&&de<.234&&$>=-.425&&$<-.214?o:de>=.166&&de<.234&&$>=-.214&&$<-.115?s:t).invert(F)},b.stream=function(F){return n&&r===F?n:n=function(n){var r=n.length;return{point:function(i,o){for(var a=-1;++a0?u<-oa+Sr&&(u=-oa+Sr):u>oa-Sr&&(u=oa-Sr);var p=o/UN(lA(u),i);return[p*dr(i*s),o-p*Tr(i*s)]}return a.invert=function(s,u){var p=o-u,m=D1(i)*Ua(s*s+p*p);return[zs(s,Vi(p))/i*D1(p),2*N_(UN(o/m,1/i))-oa]},a}function vK(){return S6(oU).scale(109.5).parallels([30,30])}function j1(n,r){return[n,r]}function gK(){return sp(j1).scale(152.63)}function aU(n,r){var t=Tr(n),i=n===r?dr(n):(t-Tr(r))/(r-n),o=t/i+n;if(Vi(i)2?i[2]+90:90]):[(i=t())[0],i[1],i[2]-90]},t([0,0,90]).scale(159.155)}function wK(n,r){return n.parent===r.parent?1:2}function EK(n,r){return n+r.x}function AK(n,r){return Math.max(n,r.y)}function PK(){var n=wK,r=1,t=1,i=!1;function o(a){var s,u=0;a.eachAfter(function(F){var G=F.children;G?(F.x=function(n){return n.reduce(EK,0)/n.length}(G),F.y=function(n){return 1+n.reduce(AK,0)}(G)):(F.x=s?u+=n(F,s):0,F.y=0,s=F)});var p=function(n){for(var r;r=n.children;)n=r[0];return n}(a),m=function(n){for(var r;r=n.children;)n=r[r.length-1];return n}(a),b=p.x-n(p,m)/2,I=m.x+n(m,p)/2;return a.eachAfter(i?function(F){F.x=(F.x-a.x)*r,F.y=(a.y-F.y)*t}:function(F){F.x=(F.x-b)/(I-b)*r,F.y=(1-(a.y?F.y/a.y:1))*t})}return o.separation=function(a){return arguments.length?(n=a,o):n},o.size=function(a){return arguments.length?(i=!1,r=+a[0],t=+a[1],o):i?null:[r,t]},o.nodeSize=function(a){return arguments.length?(i=!0,r=+a[0],t=+a[1],o):i?[r,t]:null},o}function IK(n){var r=0,t=n.children,i=t&&t.length;if(i)for(;--i>=0;)r+=t[i].value;else r=1;n.value=r}function D6(n,r){var o,s,u,p,m,t=new V_(n),i=+n.value&&(t.value=n.value),a=[t];for(null==r&&(r=GK);o=a.pop();)if(i&&(o.value=+o.data.value),(u=r(o.data))&&(m=u.length))for(o.children=new Array(m),p=m-1;p>=0;--p)a.push(s=o.children[p]=new V_(u[p])),s.parent=o,s.depth=o.depth+1;return t.eachBefore(sU)}function GK(n){return n.children}function YK(n){n.data=n.data.data}function sU(n){var r=0;do{n.height=r}while((n=n.parent)&&n.height<++r)}function V_(n){this.data=n,this.depth=this.height=0,this.parent=null}x6.invert=V1(function(n){return n}),q1.invert=function(n,r){return[n,2*N_(W8(r))-oa]},j1.invert=j1,w6.invert=V1(N_),k6.invert=function(n,r){var o,t=r,i=25;do{var a=t*t,s=a*a;t-=o=(t*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-r)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(Vi(o)>Sr&&--i>0);return[n/(.8707+(a=t*t)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),t]},E6.invert=V1(jl),M6.invert=V1(function(n){return 2*N_(n)}),A6.invert=function(n,r){return[-r,2*N_(W8(n))-oa]},V_.prototype=D6.prototype={constructor:V_,count:function(){return this.eachAfter(IK)},each:function(n){var t,o,a,s,r=this,i=[r];do{for(t=i.reverse(),i=[];r=t.pop();)if(n(r),o=r.children)for(a=0,s=o.length;a=0;--o)t.push(i[o]);return this},sum:function(n){return this.eachAfter(function(r){for(var t=+n(r.data)||0,i=r.children,o=i&&i.length;--o>=0;)t+=i[o].value;r.value=t})},sort:function(n){return this.eachBefore(function(r){r.children&&r.children.sort(n)})},path:function(n){for(var r=this,t=function(n,r){if(n===r)return n;var t=n.ancestors(),i=r.ancestors(),o=null;for(n=t.pop(),r=i.pop();n===r;)o=n,n=t.pop(),r=i.pop();return o}(r,n),i=[r];r!==t;)i.push(r=r.parent);for(var o=i.length;n!==t;)i.splice(o,0,n),n=n.parent;return i},ancestors:function(){for(var n=this,r=[n];n=n.parent;)r.push(n);return r},descendants:function(){var n=[];return this.each(function(r){n.push(r)}),n},leaves:function(){var n=[];return this.eachBefore(function(r){r.children||n.push(r)}),n},links:function(){var n=this,r=[];return n.each(function(t){t!==n&&r.push({source:t.parent,target:t})}),r},copy:function(){return D6(this).eachBefore(YK)}};var JK=Array.prototype.slice;function lU(n){for(var o,a,r=0,t=(n=function(n){for(var t,i,r=n.length;r;)i=Math.random()*r--|0,t=n[r],n[r]=n[i],n[i]=t;return n}(JK.call(n))).length,i=[];r0&&t*t>i*i+o*o}function O6(n,r){for(var t=0;t(p*=p)?(o=(m+p-a)/(2*m),u=Math.sqrt(Math.max(0,p/m-o*o)),t.x=n.x-o*i-u*s,t.y=n.y-o*s+u*i):(o=(m+a-p)/(2*m),u=Math.sqrt(Math.max(0,a/m-o*o)),t.x=r.x+o*i-u*s,t.y=r.y+o*s+u*i)):(t.x=r.x+t.r,t.y=r.y)}function pU(n,r){var t=n.r+r.r-1e-6,i=r.x-n.x,o=r.y-n.y;return t>0&&t*t>i*i+o*o}function fU(n){var r=n._,t=n.next._,i=r.r+t.r,o=(r.x*t.r+t.x*r.r)/i,a=(r.y*t.r+t.y*r.r)/i;return o*o+a*a}function dA(n){this._=n,this.next=null,this.previous=null}function hU(n){if(!(o=n.length))return 0;var r,t,i,o,a,s,u,p,m,b,I;if((r=n[0]).x=0,r.y=0,!(o>1))return r.r;if(r.x=-(t=n[1]).r,t.x=r.r,t.y=0,!(o>2))return r.r+t.r;dU(t,r,i=n[2]),r=new dA(r),t=new dA(t),i=new dA(i),r.next=i.previous=t,t.next=r.previous=i,i.next=t.previous=r;e:for(u=3;u0)throw new Error("cycle");return u}return t.id=function(i){return arguments.length?(n=pA(i),t):n},t.parentId=function(i){return arguments.length?(r=pA(i),t):r},t}function uX(n,r){return n.parent===r.parent?1:2}function I6(n){var r=n.children;return r?r[0]:n.t}function R6(n){var r=n.children;return r?r[r.length-1]:n.t}function cX(n,r,t){var i=t/(r.i-n.i);r.c-=i,r.s+=t,n.c+=i,r.z+=t,r.m+=t}function pX(n,r,t){return n.a.parent===r.parent?n.a:t}function fA(n,r){this._=n,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=r}function hX(){var n=uX,r=1,t=1,i=null;function o(m){var b=function(n){for(var t,o,a,s,u,r=new fA(n,0),i=[r];t=i.pop();)if(a=t._.children)for(t.children=new Array(u=a.length),s=u-1;s>=0;--s)i.push(o=t.children[s]=new fA(a[s],s)),o.parent=t;return(r.parent=new fA(null,0)).children=[r],r}(m);if(b.eachAfter(a),b.parent.m=-b.z,b.eachBefore(s),i)m.eachBefore(p);else{var I=m,F=m,G=m;m.eachBefore(function(st){st.xF.x&&(F=st),st.depth>G.depth&&(G=st)});var Y=I===F?1:n(I,F)/2,$=Y-I.x,de=r/(F.x+Y+$),Me=t/(G.depth||1);m.eachBefore(function(st){st.x=(st.x+$)*de,st.y=st.depth*Me})}return m}function a(m){var b=m.children,I=m.parent.children,F=m.i?I[m.i-1]:null;if(b){!function(n){for(var a,r=0,t=0,i=n.children,o=i.length;--o>=0;)(a=i[o]).z+=r,a.m+=r,r+=a.s+(t+=a.c)}(m);var G=(b[0].z+b[b.length-1].z)/2;F?(m.z=F.z+n(m._,F._),m.m=m.z-G):m.z=G}else F&&(m.z=F.z+n(m._,F._));m.parent.A=function(m,b,I){if(b){for(var at,F=m,G=m,Y=b,$=F.parent.children[0],de=F.m,Me=G.m,st=Y.m,tt=$.m;Y=R6(Y),F=I6(F),Y&&F;)$=I6($),(G=R6(G)).a=m,(at=Y.z+st-F.z-de+n(Y._,F._))>0&&(cX(pX(Y,m,I),m,at),de+=at,Me+=at),st+=Y.m,de+=F.m,tt+=$.m,Me+=G.m;Y&&!R6(G)&&(G.t=Y,G.m+=st-Me),F&&!I6($)&&($.t=F,$.m+=de-tt,I=m)}return I}(m,F,m.parent.A||I[0])}function s(m){m._.x=m.z+m.parent.m,m.m+=m.parent.m}function p(m){m.x*=r,m.y=m.depth*t}return o.separation=function(m){return arguments.length?(n=m,o):n},o.size=function(m){return arguments.length?(i=!1,r=+m[0],t=+m[1],o):i?null:[r,t]},o.nodeSize=function(m){return arguments.length?(i=!0,r=+m[0],t=+m[1],o):i?[r,t]:null},o}function hA(n,r,t,i,o){for(var s,a=n.children,u=-1,p=a.length,m=n.value&&(o-t)/n.value;++ust&&(st=m),Je=de*de*pt,(tt=Math.max(st/Je,Je/Me))>at){de-=m;break}at=tt}s.push(p={value:de,dice:G1?i:1)},t}(bU);function mX(){var n=SU,r=!1,t=1,i=1,o=[0],a=Gm,s=Gm,u=Gm,p=Gm,m=Gm;function b(F){return F.x0=F.y0=0,F.x1=t,F.y1=i,F.eachBefore(I),o=[0],r&&F.eachBefore(gU),F}function I(F){var G=o[F.depth],Y=F.x0+G,$=F.y0+G,de=F.x1-G,Me=F.y1-G;de=F-1){var st=a[I];return st.x0=Y,st.y0=$,st.x1=de,void(st.y1=Me)}for(var tt=m[I],at=G/2+tt,pt=I+1,Je=F-1;pt>>1;m[et]Me-$){var pn=(Y*kt+de*It)/G;b(I,pt,It,Y,$,pn,Me),b(pt,F,kt,pn,$,de,Me)}else{var Wt=($*kt+Me*It)/G;b(I,pt,It,Y,$,de,Wt),b(pt,F,kt,Y,Wt,de,Me)}}(0,u,n.value,r,t,i,o)}function gX(n,r,t,i,o){(1&n.depth?hA:W1)(n,r,t,i,o)}var _X=function n(r){function t(i,o,a,s,u){if((p=i._squarify)&&p.ratio===r)for(var p,m,b,I,G,F=-1,Y=p.length,$=i.value;++F1?i:1)},t}(bU);function yX(n){for(var i,r=-1,t=n.length,o=n[t-1],a=0;++r1&&CX(n[t[i-2]],n[t[i-1]],n[o])<=0;)--i;t[i++]=o}return t.slice(0,i)}function TX(n){if((t=n.length)<3)return null;var r,t,i=new Array(t),o=new Array(t);for(r=0;r=0;--r)m.push(n[i[a[r]][2]]);for(r=+u;ra!=u>a&&o<(s-p)*(a-m)/(u-m)+p&&(b=!b),s=p,u=m;return b}function wX(n){for(var o,a,r=-1,t=n.length,i=n[t-1],s=i[0],u=i[1],p=0;++r1);return i+o*u*Math.sqrt(-2*Math.log(s)/s)}}return t.source=n,t}(j_),EX=function n(r){function t(){var i=xU.source(r).apply(this,arguments);return function(){return Math.exp(i())}}return t.source=n,t}(j_),wU=function n(r){function t(i){return function(){for(var o=0,a=0;a2?RX:IX,u=p=null,b}function b(I){return(u||(u=s(t,i,a?function(n){return function(r,t){var i=n(r=+r,t=+t);return function(o){return o<=r?0:o>=t?1:i(o)}}}(n):n,o)))(+I)}return b.invert=function(I){return(p||(p=s(i,t,U6,a?function(n){return function(r,t){var i=n(r=+r,t=+t);return function(o){return o<=0?r:o>=1?t:i(o)}}}(r):r)))(+I)},b.domain=function(I){return arguments.length?(t=N6.call(I,MU),m()):t.slice()},b.range=function(I){return arguments.length?(i=Wf.call(I),m()):i.slice()},b.rangeRound=function(I){return i=Wf.call(I),o=$E,m()},b.clamp=function(I){return arguments.length?(a=!!I,m()):a},b.interpolate=function(I){return arguments.length?(o=I,m()):o},m()}function G1(n){var r=n.domain;return n.ticks=function(t){var i=r();return Cm(i[0],i[i.length-1],null==t?10:t)},n.tickFormat=function(t,i){return function(n,r,t){var s,i=n[0],o=n[n.length-1],a=jc(i,o,null==r?10:r);switch((t=A1(null==t?",f":t)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(o));return null==t.precision&&!isNaN(s=V8(a,u))&&(t.precision=s),BN(t,u);case"":case"e":case"g":case"p":case"r":null==t.precision&&!isNaN(s=q8(a,Math.max(Math.abs(i),Math.abs(o))))&&(t.precision=s-("e"===t.type));break;case"f":case"%":null==t.precision&&!isNaN(s=H8(a))&&(t.precision=s-2*("%"===t.type))}return EM(t)}(r(),t,i)},n.nice=function(t){null==t&&(t=10);var p,i=r(),o=0,a=i.length-1,s=i[o],u=i[a];return u0?p=Af(s=Math.floor(s/p)*p,u=Math.ceil(u/p)*p,t):p<0&&(p=Af(s=Math.ceil(s*p)/p,u=Math.floor(u*p)/p,t)),p>0?(i[o]=Math.floor(s/p)*p,i[a]=Math.ceil(u/p)*p,r(i)):p<0&&(i[o]=Math.ceil(s*p)/p,i[a]=Math.floor(u*p)/p,r(i)),n},n}function DU(){var n=vA(U6,ia);return n.copy=function(){return mA(n,DU())},G1(n)}function OU(){var n=[0,1];function r(t){return+t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(n=N6.call(t,MU),r):n.slice()},r.copy=function(){return OU().domain(n)},G1(r)}function PU(n,r){var s,t=0,i=(n=n.slice()).length-1,o=n[t],a=n[i];return a0){for(;Im)break;Me.push($)}}else for(;I=1;--Y)if(!(($=G*Y)m)break;Me.push($)}}else Me=Cm(I,F,Math.min(F-I,de)).map(o);return b?Me.reverse():Me},n.tickFormat=function(s,u){if(null==u&&(u=10===t?".0e":","),"function"!=typeof u&&(u=EM(u)),s===1/0)return u;null==s&&(s=10);var p=Math.max(1,t*s/n.ticks().length);return function(m){var b=m/o(Math.round(i(m)));return b*t0?t[s-1]:n[0],s=t?[i[t-1],r]:[i[p-1],i[p]]},a.copy=function(){return FU().domain([n,r]).range(o)},G1(a)}function BU(){var n=[.5],r=[0,1],t=1;function i(o){if(o<=o)return r[Ef(n,o,0,t)]}return i.domain=function(o){return arguments.length?(n=Wf.call(o),t=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(o){return arguments.length?(r=Wf.call(o),t=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(o){var a=r.indexOf(o);return[n[a-1],n[a]]},i.copy=function(){return BU().domain(n).range(r)},i}var V6=new Date,q6=new Date;function Ha(n,r,t,i){function o(a){return n(a=new Date(+a)),a}return o.floor=o,o.ceil=function(a){return n(a=new Date(a-1)),r(a,1),n(a),a},o.round=function(a){var s=o(a),u=o.ceil(a);return a-s0))return p;do{p.push(m=new Date(+a)),r(a,u),n(a)}while(m=s)for(;n(s),!a(s);)s.setTime(s-1)},function(s,u){if(s>=s)if(u<0)for(;++u<=0;)for(;r(s,-1),!a(s););else for(;--u>=0;)for(;r(s,1),!a(s););})},t&&(o.count=function(a,s){return V6.setTime(+a),q6.setTime(+s),n(V6),n(q6),Math.floor(t(V6,q6))},o.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?o.filter(i?function(s){return i(s)%a==0}:function(s){return o.count(0,s)%a==0}):o:null}),o}var gA=Ha(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});gA.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Ha(function(r){r.setTime(Math.floor(r/n)*n)},function(r,t){r.setTime(+r+t*n)},function(r,t){return(t-r)/n}):gA:null};var _A=gA,UU=gA.range,Ym=6e4,bA=36e5,VU=6048e5,qU=Ha(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+1e3*r)},function(n,r){return(r-n)/1e3},function(n){return n.getUTCSeconds()}),CA=qU,jU=qU.range,zU=Ha(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,r){n.setTime(+n+r*Ym)},function(n,r){return(r-n)/Ym},function(n){return n.getMinutes()}),WU=zU,UX=zU.range,GU=Ha(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*Ym)},function(n,r){n.setTime(+n+r*bA)},function(n,r){return(r-n)/bA},function(n){return n.getHours()}),YU=GU,HX=GU.range,JU=Ha(function(n){n.setHours(0,0,0,0)},function(n,r){n.setDate(n.getDate()+r)},function(n,r){return(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*Ym)/864e5},function(n){return n.getDate()-1}),SA=JU,VX=JU.range;function Jm(n){return Ha(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,t){r.setDate(r.getDate()+7*t)},function(r,t){return(t-r-(t.getTimezoneOffset()-r.getTimezoneOffset())*Ym)/VU})}var Y1=Jm(0),J1=Jm(1),QU=Jm(2),KU=Jm(3),Q1=Jm(4),XU=Jm(5),$U=Jm(6),e9=Y1.range,qX=J1.range,jX=QU.range,zX=KU.range,WX=Q1.range,GX=XU.range,YX=$U.range,t9=Ha(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}),n9=t9,JX=t9.range,j6=Ha(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});j6.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Ha(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,t){r.setFullYear(r.getFullYear()+t*n)}):null};var Qm=j6,QX=j6.range,r9=Ha(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*Ym)},function(n,r){return(r-n)/Ym},function(n){return n.getUTCMinutes()}),i9=r9,KX=r9.range,o9=Ha(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*bA)},function(n,r){return(r-n)/bA},function(n){return n.getUTCHours()}),a9=o9,XX=o9.range,s9=Ha(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/864e5},function(n){return n.getUTCDate()-1}),TA=s9,$X=s9.range;function Km(n){return Ha(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,t){r.setUTCDate(r.getUTCDate()+7*t)},function(r,t){return(t-r)/VU})}var K1=Km(0),X1=Km(1),l9=Km(2),u9=Km(3),$1=Km(4),c9=Km(5),d9=Km(6),p9=K1.range,e$=X1.range,t$=l9.range,n$=u9.range,r$=$1.range,i$=c9.range,o$=d9.range,f9=Ha(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}),h9=f9,a$=f9.range,z6=Ha(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});z6.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Ha(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,t){r.setUTCFullYear(r.getUTCFullYear()+t*n)}):null};var Xm=z6,s$=z6.range;function l$(n){if(0<=n.y&&n.y<100){var r=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return r.setFullYear(n.y),r}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function xA(n){if(0<=n.y&&n.y<100){var r=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return r.setUTCFullYear(n.y),r}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function eS(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}function m9(n){var r=n.dateTime,t=n.date,i=n.time,o=n.periods,a=n.days,s=n.shortDays,u=n.months,p=n.shortMonths,m=tS(o),b=nS(o),I=tS(a),F=nS(a),G=tS(s),Y=nS(s),$=tS(u),de=nS(u),Me=tS(p),st=nS(p),tt={a:function(mr){return s[mr.getDay()]},A:function(mr){return a[mr.getDay()]},b:function(mr){return p[mr.getMonth()]},B:function(mr){return u[mr.getMonth()]},c:null,d:y9,e:y9,f:P$,H:A$,I:D$,j:O$,L:b9,m:I$,M:R$,p:function(mr){return o[+(mr.getHours()>=12)]},Q:x9,s:w9,S:N$,u:Z$,U:L$,V:F$,w:B$,W:U$,x:null,X:null,y:H$,Y:V$,Z:q$,"%":T9},at={a:function(mr){return s[mr.getUTCDay()]},A:function(mr){return a[mr.getUTCDay()]},b:function(mr){return p[mr.getUTCMonth()]},B:function(mr){return u[mr.getUTCMonth()]},c:null,d:C9,e:C9,f:G$,H:j$,I:z$,j:W$,L:S9,m:Y$,M:J$,p:function(mr){return o[+(mr.getUTCHours()>=12)]},Q:x9,s:w9,S:Q$,u:K$,U:X$,V:$$,w:eee,W:tee,x:null,X:null,y:nee,Y:ree,Z:iee,"%":T9},pt={a:function(mr,pr,or){var Vn=G.exec(pr.slice(or));return Vn?(mr.w=Y[Vn[0].toLowerCase()],or+Vn[0].length):-1},A:function(mr,pr,or){var Vn=I.exec(pr.slice(or));return Vn?(mr.w=F[Vn[0].toLowerCase()],or+Vn[0].length):-1},b:function(mr,pr,or){var Vn=Me.exec(pr.slice(or));return Vn?(mr.m=st[Vn[0].toLowerCase()],or+Vn[0].length):-1},B:function(mr,pr,or){var Vn=$.exec(pr.slice(or));return Vn?(mr.m=de[Vn[0].toLowerCase()],or+Vn[0].length):-1},c:function(mr,pr,or){return It(mr,r,pr,or)},d:g9,e:g9,f:w$,H:_9,I:_9,j:C$,L:x$,m:b$,M:S$,p:function(mr,pr,or){var Vn=m.exec(pr.slice(or));return Vn?(mr.p=b[Vn[0].toLowerCase()],or+Vn[0].length):-1},Q:E$,s:M$,S:T$,u:f$,U:h$,V:m$,w:p$,W:v$,x:function(mr,pr,or){return It(mr,t,pr,or)},X:function(mr,pr,or){return It(mr,i,pr,or)},y:_$,Y:g$,Z:y$,"%":k$};function Je(mr,pr){return function(or){var fs,gl,lc,Vn=[],Jo=-1,xi=0,Oi=mr.length;for(or instanceof Date||(or=new Date(+or));++Jo53)return null;"w"in Vn||(Vn.w=1),"Z"in Vn?(Oi=(xi=xA(eS(Vn.y))).getUTCDay(),xi=Oi>4||0===Oi?X1.ceil(xi):X1(xi),xi=TA.offset(xi,7*(Vn.V-1)),Vn.y=xi.getUTCFullYear(),Vn.m=xi.getUTCMonth(),Vn.d=xi.getUTCDate()+(Vn.w+6)%7):(Oi=(xi=pr(eS(Vn.y))).getDay(),xi=Oi>4||0===Oi?J1.ceil(xi):J1(xi),xi=SA.offset(xi,7*(Vn.V-1)),Vn.y=xi.getFullYear(),Vn.m=xi.getMonth(),Vn.d=xi.getDate()+(Vn.w+6)%7)}else("W"in Vn||"U"in Vn)&&("w"in Vn||(Vn.w="u"in Vn?Vn.u%7:"W"in Vn?1:0),Oi="Z"in Vn?xA(eS(Vn.y)).getUTCDay():pr(eS(Vn.y)).getDay(),Vn.m=0,Vn.d="W"in Vn?(Vn.w+6)%7+7*Vn.W-(Oi+5)%7:Vn.w+7*Vn.U-(Oi+6)%7);return"Z"in Vn?(Vn.H+=Vn.Z/100|0,Vn.M+=Vn.Z%100,xA(Vn)):pr(Vn)}}function It(mr,pr,or,Vn){for(var fs,gl,Jo=0,xi=pr.length,Oi=or.length;Jo=Oi)return-1;if(37===(fs=pr.charCodeAt(Jo++))){if(fs=pr.charAt(Jo++),!(gl=pt[fs in v9?pr.charAt(Jo++):fs])||(Vn=gl(mr,or,Vn))<0)return-1}else if(fs!=or.charCodeAt(Vn++))return-1}return Vn}return tt.x=Je(t,tt),tt.X=Je(i,tt),tt.c=Je(r,tt),at.x=Je(t,at),at.X=Je(i,at),at.c=Je(r,at),{format:function(pr){var or=Je(pr+="",tt);return or.toString=function(){return pr},or},parse:function(pr){var or=et(pr+="",l$);return or.toString=function(){return pr},or},utcFormat:function(pr){var or=Je(pr+="",at);return or.toString=function(){return pr},or},utcParse:function(pr){var or=et(pr,xA);return or.toString=function(){return pr},or}}}var W_,W6,k9,wA,G6,v9={"-":"",_:" ",0:"0"},us=/^\s*\d+/,u$=/^%/,c$=/[\\^$*+?|[\]().{}]/g;function so(n,r,t){var i=n<0?"-":"",o=(i?-n:n)+"",a=o.length;return i+(a68?1900:2e3),t+i[0].length):-1}function y$(n,r,t){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(t,t+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),t+i[0].length):-1}function b$(n,r,t){var i=us.exec(r.slice(t,t+2));return i?(n.m=i[0]-1,t+i[0].length):-1}function g9(n,r,t){var i=us.exec(r.slice(t,t+2));return i?(n.d=+i[0],t+i[0].length):-1}function C$(n,r,t){var i=us.exec(r.slice(t,t+3));return i?(n.m=0,n.d=+i[0],t+i[0].length):-1}function _9(n,r,t){var i=us.exec(r.slice(t,t+2));return i?(n.H=+i[0],t+i[0].length):-1}function S$(n,r,t){var i=us.exec(r.slice(t,t+2));return i?(n.M=+i[0],t+i[0].length):-1}function T$(n,r,t){var i=us.exec(r.slice(t,t+2));return i?(n.S=+i[0],t+i[0].length):-1}function x$(n,r,t){var i=us.exec(r.slice(t,t+3));return i?(n.L=+i[0],t+i[0].length):-1}function w$(n,r,t){var i=us.exec(r.slice(t,t+6));return i?(n.L=Math.floor(i[0]/1e3),t+i[0].length):-1}function k$(n,r,t){var i=u$.exec(r.slice(t,t+1));return i?t+i[0].length:-1}function E$(n,r,t){var i=us.exec(r.slice(t));return i?(n.Q=+i[0],t+i[0].length):-1}function M$(n,r,t){var i=us.exec(r.slice(t));return i?(n.Q=1e3*+i[0],t+i[0].length):-1}function y9(n,r){return so(n.getDate(),r,2)}function A$(n,r){return so(n.getHours(),r,2)}function D$(n,r){return so(n.getHours()%12||12,r,2)}function O$(n,r){return so(1+SA.count(Qm(n),n),r,3)}function b9(n,r){return so(n.getMilliseconds(),r,3)}function P$(n,r){return b9(n,r)+"000"}function I$(n,r){return so(n.getMonth()+1,r,2)}function R$(n,r){return so(n.getMinutes(),r,2)}function N$(n,r){return so(n.getSeconds(),r,2)}function Z$(n){var r=n.getDay();return 0===r?7:r}function L$(n,r){return so(Y1.count(Qm(n),n),r,2)}function F$(n,r){var t=n.getDay();return n=t>=4||0===t?Q1(n):Q1.ceil(n),so(Q1.count(Qm(n),n)+(4===Qm(n).getDay()),r,2)}function B$(n){return n.getDay()}function U$(n,r){return so(J1.count(Qm(n),n),r,2)}function H$(n,r){return so(n.getFullYear()%100,r,2)}function V$(n,r){return so(n.getFullYear()%1e4,r,4)}function q$(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+so(r/60|0,"0",2)+so(r%60,"0",2)}function C9(n,r){return so(n.getUTCDate(),r,2)}function j$(n,r){return so(n.getUTCHours(),r,2)}function z$(n,r){return so(n.getUTCHours()%12||12,r,2)}function W$(n,r){return so(1+TA.count(Xm(n),n),r,3)}function S9(n,r){return so(n.getUTCMilliseconds(),r,3)}function G$(n,r){return S9(n,r)+"000"}function Y$(n,r){return so(n.getUTCMonth()+1,r,2)}function J$(n,r){return so(n.getUTCMinutes(),r,2)}function Q$(n,r){return so(n.getUTCSeconds(),r,2)}function K$(n){var r=n.getUTCDay();return 0===r?7:r}function X$(n,r){return so(K1.count(Xm(n),n),r,2)}function $$(n,r){var t=n.getUTCDay();return n=t>=4||0===t?$1(n):$1.ceil(n),so($1.count(Xm(n),n)+(4===Xm(n).getUTCDay()),r,2)}function eee(n){return n.getUTCDay()}function tee(n,r){return so(X1.count(Xm(n),n),r,2)}function nee(n,r){return so(n.getUTCFullYear()%100,r,2)}function ree(n,r){return so(n.getUTCFullYear()%1e4,r,4)}function iee(){return"+0000"}function T9(){return"%"}function x9(n){return+n}function w9(n){return Math.floor(+n/1e3)}function E9(n){return W_=m9(n),W6=W_.format,k9=W_.parse,wA=W_.utcFormat,G6=W_.utcParse,W_}E9({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var M9="%Y-%m-%dT%H:%M:%S.%LZ",see=Date.prototype.toISOString?function(n){return n.toISOString()}:wA(M9),cee=+new Date("2000-01-01T00:00:00.000Z")?function(n){var r=new Date(n);return isNaN(r)?null:r}:G6(M9),iS=6e4,oS=60*iS,aS=24*oS,A9=30*aS,Y6=365*aS;function pee(n){return new Date(n)}function fee(n){return n instanceof Date?+n:+new Date(+n)}function J6(n,r,t,i,o,a,s,u,p){var m=vA(U6,ia),b=m.invert,I=m.domain,F=p(".%L"),G=p(":%S"),Y=p("%I:%M"),$=p("%I %p"),de=p("%a %d"),Me=p("%b %d"),st=p("%B"),tt=p("%Y"),at=[[s,1,1e3],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,iS],[a,5,5*iS],[a,15,15*iS],[a,30,30*iS],[o,1,oS],[o,3,3*oS],[o,6,6*oS],[o,12,12*oS],[i,1,aS],[i,2,2*aS],[t,1,6048e5],[r,1,A9],[r,3,3*A9],[n,1,Y6]];function pt(et){return(s(et)1)&&(n-=Math.floor(n));var r=Math.abs(n-.5);return kA.h=360*n-100,kA.s=1.5-1.5*r,kA.l=.8-.9*r,kA+""}function EA(n){var r=n.length;return function(t){return n[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}var nte=EA(ri("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),rte=EA(ri("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ite=EA(ri("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ote=EA(ri("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function ate(n,r){return n.each(function(){var t=r.apply(this,arguments),i=Kr(this);for(var o in t)i.attr(o,t[o])})}function ste(n,r){for(var t in r)n.attr(t,r[t]);return n}function ute(n,r,t){return n.each(function(){var i=r.apply(this,arguments),o=Kr(this);for(var a in i)o.style(a,i[a],t)})}function cte(n,r,t){for(var i in r)n.style(i,r[i],t);return n}function pte(n,r){return n.each(function(){var t=r.apply(this,arguments),i=Kr(this);for(var o in t)i.property(o,t[o])})}function fte(n,r){for(var t in r)n.property(t,r[t]);return n}function mte(n,r){return n.each(function(){var t=r.apply(this,arguments),i=Kr(this).transition(n);for(var o in t)i.attr(o,t[o])})}function vte(n,r){for(var t in r)n.attr(t,r[t]);return n}function _te(n,r,t){return n.each(function(){var i=r.apply(this,arguments),o=Kr(this).transition(n);for(var a in i)o.style(a,i[a],t)})}function yte(n,r,t){for(var i in r)n.style(i,r[i],t);return n}function ci(n){return function(){return n}}Vs.prototype.attrs=function(n){return("function"==typeof n?ate:ste)(this,n)},Vs.prototype.styles=function(n,r){return("function"==typeof n?ute:cte)(this,n,null==r?"":r)},Vs.prototype.properties=function(n){return("function"==typeof n?pte:fte)(this,n)},fM.prototype.attrs=function(n){return("function"==typeof n?mte:vte)(this,n)},fM.prototype.styles=function(n,r){return("function"==typeof n?_te:yte)(this,n,null==r?"":r)};var iH=Math.abs,ys=Math.atan2,$m=Math.cos,Cte=Math.max,Q6=Math.min,td=Math.sin,G_=Math.sqrt,cs=1e-12,ev=Math.PI,MA=ev/2,lp=2*ev;function Ste(n){return n>1?0:n<-1?ev:Math.acos(n)}function oH(n){return n>=1?MA:n<=-1?-MA:Math.asin(n)}function Tte(n){return n.innerRadius}function xte(n){return n.outerRadius}function wte(n){return n.startAngle}function kte(n){return n.endAngle}function Ete(n){return n&&n.padAngle}function Mte(n,r,t,i,o,a,s,u){var p=t-n,m=i-r,b=s-o,I=u-a,F=I*p-b*m;if(!(F*Fmn*mn+dn*dn&&(It=pn,kt=Wt),{cx:It,cy:kt,x01:-b,y01:-I,x11:It*(o/pt-1),y11:kt*(o/pt-1)}}function Ate(){var n=Tte,r=xte,t=ci(0),i=null,o=wte,a=kte,s=Ete,u=null;function p(){var m,b,I=+n.apply(this,arguments),F=+r.apply(this,arguments),G=o.apply(this,arguments)-MA,Y=a.apply(this,arguments)-MA,$=iH(Y-G),de=Y>G;if(u||(u=m=Yu()),Fcs)if($>lp-cs)u.moveTo(F*$m(G),F*td(G)),u.arc(0,0,F,G,Y,!de),I>cs&&(u.moveTo(I*$m(Y),I*td(Y)),u.arc(0,0,I,Y,G,de));else{var ot,Dt,Me=G,st=Y,tt=G,at=Y,pt=$,Je=$,et=s.apply(this,arguments)/2,It=et>cs&&(i?+i.apply(this,arguments):G_(I*I+F*F)),kt=Q6(iH(F-I)/2,+t.apply(this,arguments)),pn=kt,Wt=kt;if(It>cs){var mn=oH(It/I*td(et)),dn=oH(It/F*td(et));(pt-=2*mn)>cs?(tt+=mn*=de?1:-1,at-=mn):(pt=0,tt=at=(G+Y)/2),(Je-=2*dn)>cs?(Me+=dn*=de?1:-1,st-=dn):(Je=0,Me=st=(G+Y)/2)}var xn=F*$m(Me),Zn=F*td(Me),er=I*$m(at),vr=I*td(at);if(kt>cs){var gr,zr=F*$m(st),ir=F*td(st),Jr=I*$m(tt),ai=I*td(tt);if($<=lp-cs&&(gr=Mte(xn,Zn,Jr,ai,zr,ir,er,vr))){var Li=xn-gr[0],Bo=Zn-gr[1],mr=zr-gr[0],pr=ir-gr[1],or=1/td(Ste((Li*mr+Bo*pr)/(G_(Li*Li+Bo*Bo)*G_(mr*mr+pr*pr)))/2),Vn=G_(gr[0]*gr[0]+gr[1]*gr[1]);pn=Q6(kt,(I-Vn)/(or-1)),Wt=Q6(kt,(F-Vn)/(or+1))}}Je>cs?Wt>cs?(ot=AA(Jr,ai,xn,Zn,F,Wt,de),Dt=AA(zr,ir,er,vr,F,Wt,de),u.moveTo(ot.cx+ot.x01,ot.cy+ot.y01),Wtcs&&pt>cs?pn>cs?(ot=AA(er,vr,zr,ir,I,-pn,de),Dt=AA(xn,Zn,Jr,ai,I,-pn,de),u.lineTo(ot.cx+ot.x01,ot.cy+ot.y01),pn=F;--G)u.point(st[G],tt[G]);u.lineEnd(),u.areaEnd()}de&&(st[I]=+n($,I,b),tt[I]=+t($,I,b),u.point(r?+r($,I,b):st[I],i?+i($,I,b):tt[I]))}if(Me)return u=null,Me+""||null}function m(){return OA().defined(o).curve(s).context(a)}return p.x=function(b){return arguments.length?(n="function"==typeof b?b:ci(+b),r=null,p):n},p.x0=function(b){return arguments.length?(n="function"==typeof b?b:ci(+b),p):n},p.x1=function(b){return arguments.length?(r=null==b?null:"function"==typeof b?b:ci(+b),p):r},p.y=function(b){return arguments.length?(t="function"==typeof b?b:ci(+b),i=null,p):t},p.y0=function(b){return arguments.length?(t="function"==typeof b?b:ci(+b),p):t},p.y1=function(b){return arguments.length?(i=null==b?null:"function"==typeof b?b:ci(+b),p):i},p.lineX0=p.lineY0=function(){return m().x(n).y(t)},p.lineY1=function(){return m().x(n).y(i)},p.lineX1=function(){return m().x(r).y(t)},p.defined=function(b){return arguments.length?(o="function"==typeof b?b:ci(!!b),p):o},p.curve=function(b){return arguments.length?(s=b,null!=a&&(u=s(a)),p):s},p.context=function(b){return arguments.length?(null==b?a=u=null:u=s(a=b),p):a},p}function Dte(n,r){return rn?1:r>=n?0:NaN}function Ote(n){return n}function Pte(){var n=Ote,r=Dte,t=null,i=ci(0),o=ci(lp),a=ci(0);function s(u){var p,b,I,Me,at,m=u.length,F=0,G=new Array(m),Y=new Array(m),$=+i.apply(this,arguments),de=Math.min(lp,Math.max(-lp,o.apply(this,arguments)-$)),st=Math.min(Math.abs(de)/m,a.apply(this,arguments)),tt=st*(de<0?-1:1);for(p=0;p0&&(F+=at);for(null!=r?G.sort(function(pt,Je){return r(Y[pt],Y[Je])}):null!=t&&G.sort(function(pt,Je){return t(u[pt],u[Je])}),p=0,I=F?(de-m*tt)/F:0;p0?at*I:0)+tt,padAngle:st};return Y}return s.value=function(u){return arguments.length?(n="function"==typeof u?u:ci(+u),s):n},s.sortValues=function(u){return arguments.length?(r=u,t=null,s):r},s.sort=function(u){return arguments.length?(t=u,r=null,s):t},s.startAngle=function(u){return arguments.length?(i="function"==typeof u?u:ci(+u),s):i},s.endAngle=function(u){return arguments.length?(o="function"==typeof u?u:ci(+u),s):o},s.padAngle=function(u){return arguments.length?(a="function"==typeof u?u:ci(+u),s):a},s}aH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;default:this._context.lineTo(r,t)}}};var lH=$6(DA);function uH(n){this._curve=n}function $6(n){function r(t){return new uH(n(t))}return r._curve=n,r}function sS(n){var r=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(t){return arguments.length?r($6(t)):r()._curve},n}function cH(){return sS(OA().curve(lH))}function dH(){var n=sH().curve(lH),r=n.curve,t=n.lineX0,i=n.lineX1,o=n.lineY0,a=n.lineY1;return n.angle=n.x,delete n.x,n.startAngle=n.x0,delete n.x0,n.endAngle=n.x1,delete n.x1,n.radius=n.y,delete n.y,n.innerRadius=n.y0,delete n.y0,n.outerRadius=n.y1,delete n.y1,n.lineStartAngle=function(){return sS(t())},delete n.lineX0,n.lineEndAngle=function(){return sS(i())},delete n.lineX1,n.lineInnerRadius=function(){return sS(o())},delete n.lineY0,n.lineOuterRadius=function(){return sS(a())},delete n.lineY1,n.curve=function(s){return arguments.length?r($6(s)):r()._curve},n}function lS(n,r){return[(r=+r)*Math.cos(n-=Math.PI/2),r*Math.sin(n)]}uH.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(r,t){this._curve.point(t*Math.sin(r),t*-Math.cos(r))}};var eZ=Array.prototype.slice;function Ite(n){return n.source}function Rte(n){return n.target}function tZ(n){var r=Ite,t=Rte,i=K6,o=X6,a=null;function s(){var u,p=eZ.call(arguments),m=r.apply(this,p),b=t.apply(this,p);if(a||(a=u=Yu()),n(a,+i.apply(this,(p[0]=m,p)),+o.apply(this,p),+i.apply(this,(p[0]=b,p)),+o.apply(this,p)),u)return a=null,u+""||null}return s.source=function(u){return arguments.length?(r=u,s):r},s.target=function(u){return arguments.length?(t=u,s):t},s.x=function(u){return arguments.length?(i="function"==typeof u?u:ci(+u),s):i},s.y=function(u){return arguments.length?(o="function"==typeof u?u:ci(+u),s):o},s.context=function(u){return arguments.length?(a=null==u?null:u,s):a},s}function Nte(n,r,t,i,o){n.moveTo(r,t),n.bezierCurveTo(r=(r+i)/2,t,r,o,i,o)}function Zte(n,r,t,i,o){n.moveTo(r,t),n.bezierCurveTo(r,t=(t+o)/2,i,t,i,o)}function Lte(n,r,t,i,o){var a=lS(r,t),s=lS(r,t=(t+o)/2),u=lS(i,t),p=lS(i,o);n.moveTo(a[0],a[1]),n.bezierCurveTo(s[0],s[1],u[0],u[1],p[0],p[1])}function Fte(){return tZ(Nte)}function Bte(){return tZ(Zte)}function Ute(){var n=tZ(Lte);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}var nZ={draw:function(r,t){var i=Math.sqrt(t/ev);r.moveTo(i,0),r.arc(0,0,i,0,lp)}},pH={draw:function(r,t){var i=Math.sqrt(t/5)/2;r.moveTo(-3*i,-i),r.lineTo(-i,-i),r.lineTo(-i,-3*i),r.lineTo(i,-3*i),r.lineTo(i,-i),r.lineTo(3*i,-i),r.lineTo(3*i,i),r.lineTo(i,i),r.lineTo(i,3*i),r.lineTo(-i,3*i),r.lineTo(-i,i),r.lineTo(-3*i,i),r.closePath()}},fH=Math.sqrt(1/3),Hte=2*fH,hH={draw:function(r,t){var i=Math.sqrt(t/Hte),o=i*fH;r.moveTo(0,-i),r.lineTo(o,0),r.lineTo(0,i),r.lineTo(-o,0),r.closePath()}},mH=Math.sin(ev/10)/Math.sin(7*ev/10),qte=Math.sin(lp/10)*mH,jte=-Math.cos(lp/10)*mH,vH={draw:function(r,t){var i=Math.sqrt(.8908130915292852*t),o=qte*i,a=jte*i;r.moveTo(0,-i),r.lineTo(o,a);for(var s=1;s<5;++s){var u=lp*s/5,p=Math.cos(u),m=Math.sin(u);r.lineTo(m*i,-p*i),r.lineTo(p*o-m*a,m*o+p*a)}r.closePath()}},gH={draw:function(r,t){var i=Math.sqrt(t),o=-i/2;r.rect(o,o,i,i)}},rZ=Math.sqrt(3),_H={draw:function(r,t){var i=-Math.sqrt(t/(3*rZ));r.moveTo(0,2*i),r.lineTo(-rZ*i,-i),r.lineTo(rZ*i,-i),r.closePath()}},Tu=-.5,xu=Math.sqrt(3)/2,iZ=1/Math.sqrt(12),zte=3*(iZ/2+1),yH={draw:function(r,t){var i=Math.sqrt(t/zte),o=i/2,a=i*iZ,s=o,u=i*iZ+i,p=-s,m=u;r.moveTo(o,a),r.lineTo(s,u),r.lineTo(p,m),r.lineTo(Tu*o-xu*a,xu*o+Tu*a),r.lineTo(Tu*s-xu*u,xu*s+Tu*u),r.lineTo(Tu*p-xu*m,xu*p+Tu*m),r.lineTo(Tu*o+xu*a,Tu*a-xu*o),r.lineTo(Tu*s+xu*u,Tu*u-xu*s),r.lineTo(Tu*p+xu*m,Tu*m-xu*p),r.closePath()}},Wte=[nZ,pH,hH,gH,vH,_H,yH];function Gte(){var n=ci(nZ),r=ci(64),t=null;function i(){var o;if(t||(t=o=Yu()),n.apply(this,arguments).draw(t,+r.apply(this,arguments)),o)return t=null,o+""||null}return i.type=function(o){return arguments.length?(n="function"==typeof o?o:ci(o),i):n},i.size=function(o){return arguments.length?(r="function"==typeof o?o:ci(+o),i):r},i.context=function(o){return arguments.length?(t=null==o?null:o,i):t},i}function Gf(){}function PA(n,r,t){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+r)/6,(n._y0+4*n._y1+t)/6)}function IA(n){this._context=n}function Yte(n){return new IA(n)}function bH(n){this._context=n}function Jte(n){return new bH(n)}function CH(n){this._context=n}function Qte(n){return new CH(n)}function SH(n,r){this._basis=new IA(n),this._beta=r}IA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:PA(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:PA(this,r,t)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}},bH.prototype={areaStart:Gf,areaEnd:Gf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._x2=r,this._y2=t;break;case 1:this._point=2,this._x3=r,this._y3=t;break;case 2:this._point=3,this._x4=r,this._y4=t,this._context.moveTo((this._x0+4*this._x1+r)/6,(this._y0+4*this._y1+t)/6);break;default:PA(this,r,t)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}},CH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+r)/6,o=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(i,o):this._context.moveTo(i,o);break;case 3:this._point=4;default:PA(this,r,t)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}},SH.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var r=this._x,t=this._y,i=r.length-1;if(i>0)for(var m,o=r[0],a=t[0],s=r[i]-o,u=t[i]-a,p=-1;++p<=i;)this._basis.point(this._beta*r[p]+(1-this._beta)*(o+(m=p/i)*s),this._beta*t[p]+(1-this._beta)*(a+m*u));this._x=this._y=null,this._basis.lineEnd()},point:function(r,t){this._x.push(+r),this._y.push(+t)}};var Kte=function n(r){function t(i){return 1===r?new IA(i):new SH(i,r)}return t.beta=function(i){return n(+i)},t}(.85);function RA(n,r,t){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-r),n._y2+n._k*(n._y1-t),n._x2,n._y2)}function oZ(n,r){this._context=n,this._k=(1-r)/6}oZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:RA(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2,this._x1=r,this._y1=t;break;case 2:this._point=3;default:RA(this,r,t)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Xte=function n(r){function t(i){return new oZ(i,r)}return t.tension=function(i){return n(+i)},t}(0);function aZ(n,r){this._context=n,this._k=(1-r)/6}aZ.prototype={areaStart:Gf,areaEnd:Gf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._x3=r,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=t);break;case 2:this._point=3,this._x5=r,this._y5=t;break;default:RA(this,r,t)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var $te=function n(r){function t(i){return new aZ(i,r)}return t.tension=function(i){return n(+i)},t}(0);function sZ(n,r){this._context=n,this._k=(1-r)/6}sZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:RA(this,r,t)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ene=function n(r){function t(i){return new sZ(i,r)}return t.tension=function(i){return n(+i)},t}(0);function lZ(n,r,t){var i=n._x1,o=n._y1,a=n._x2,s=n._y2;if(n._l01_a>cs){var u=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,p=3*n._l01_a*(n._l01_a+n._l12_a);i=(i*u-n._x0*n._l12_2a+n._x2*n._l01_2a)/p,o=(o*u-n._y0*n._l12_2a+n._y2*n._l01_2a)/p}if(n._l23_a>cs){var m=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,b=3*n._l23_a*(n._l23_a+n._l12_a);a=(a*m+n._x1*n._l23_2a-r*n._l12_2a)/b,s=(s*m+n._y1*n._l23_2a-t*n._l12_2a)/b}n._context.bezierCurveTo(i,o,a,s,n._x2,n._y2)}function TH(n,r){this._context=n,this._alpha=r}TH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){if(r=+r,t=+t,this._point){var i=this._x2-r,o=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;break;case 2:this._point=3;default:lZ(this,r,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var tne=function n(r){function t(i){return r?new TH(i,r):new oZ(i,0)}return t.alpha=function(i){return n(+i)},t}(.5);function xH(n,r){this._context=n,this._alpha=r}xH.prototype={areaStart:Gf,areaEnd:Gf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(r,t){if(r=+r,t=+t,this._point){var i=this._x2-r,o=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=r,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=t);break;case 2:this._point=3,this._x5=r,this._y5=t;break;default:lZ(this,r,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var nne=function n(r){function t(i){return r?new xH(i,r):new aZ(i,0)}return t.alpha=function(i){return n(+i)},t}(.5);function wH(n,r){this._context=n,this._alpha=r}wH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){if(r=+r,t=+t,this._point){var i=this._x2-r,o=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:lZ(this,r,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var rne=function n(r){function t(i){return r?new wH(i,r):new sZ(i,0)}return t.alpha=function(i){return n(+i)},t}(.5);function kH(n){this._context=n}function ine(n){return new kH(n)}function EH(n){return n<0?-1:1}function MH(n,r,t){var i=n._x1-n._x0,o=r-n._x1,a=(n._y1-n._y0)/(i||o<0&&-0),s=(t-n._y1)/(o||i<0&&-0),u=(a*o+s*i)/(i+o);return(EH(a)+EH(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(u))||0}function AH(n,r){var t=n._x1-n._x0;return t?(3*(n._y1-n._y0)/t-r)/2:r}function uZ(n,r,t){var i=n._x0,a=n._x1,s=n._y1,u=(a-i)/3;n._context.bezierCurveTo(i+u,n._y0+u*r,a-u,s-u*t,a,s)}function NA(n){this._context=n}function DH(n){this._context=new OH(n)}function OH(n){this._context=n}function one(n){return new NA(n)}function ane(n){return new DH(n)}function PH(n){this._context=n}function IH(n){var r,i,t=n.length-1,o=new Array(t),a=new Array(t),s=new Array(t);for(o[0]=0,a[0]=2,s[0]=n[0]+2*n[1],r=1;r=0;--r)o[r]=(s[r]-o[r+1])/a[r];for(a[t-1]=(n[t]+o[t-1])/2,r=0;r1)for(var i,o,s,t=1,a=n[r[0]],u=a.length;t=0;)t[r]=r;return t}function dne(n,r){return n[r]}function pne(){var n=ci([]),r=J_,t=Y_,i=dne;function o(a){var u,I,s=n.apply(this,arguments),p=a.length,m=s.length,b=new Array(m);for(u=0;u0){for(var t,i,s,o=0,a=n[0].length;o1)for(var t,o,a,s,u,p,i=0,m=n[r[0]].length;i=0?(o[0]=s,o[1]=s+=a):a<0?(o[1]=u,o[0]=u+=a):o[0]=s}function mne(n,r){if((o=n.length)>0){for(var o,t=0,i=n[r[0]],a=i.length;t0&&(a=(o=n[r[0]]).length)>0){for(var o,a,s,t=0,i=1;i=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(r,t);else{var i=this._x*(1-this._t)+r*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,t)}}this._x=r,this._y=t}},cZ.prototype={constructor:cZ,insert:function(r,t){var i,o,a;if(r){if(t.P=r,t.N=r.N,r.N&&(r.N.P=t),r.N=t,r.R){for(r=r.R;r.L;)r=r.L;r.L=t}else r.R=t;i=r}else this._?(r=LH(this._),t.P=null,t.N=r,r.P=r.L=t,i=r):(t.P=t.N=null,this._=t,i=null);for(t.L=t.R=null,t.U=i,t.C=!0,r=t;i&&i.C;)i===(o=i.U).L?(a=o.R)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.R&&(uS(this,i),i=(r=i).U),i.C=!1,o.C=!0,cS(this,o)):(a=o.L)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.L&&(cS(this,i),i=(r=i).U),i.C=!1,o.C=!0,uS(this,o)),i=r.U;this._.C=!1},remove:function(r){r.N&&(r.N.P=r.P),r.P&&(r.P.N=r.N),r.N=r.P=null;var i,s,u,t=r.U,o=r.L,a=r.R;if(s=o?a?LH(a):o:a,t?t.L===r?t.L=s:t.R=s:this._=s,o&&a?(u=s.C,s.C=r.C,s.L=o,o.U=s,s!==a?(t=s.U,s.U=r.U,t.L=r=s.R,s.R=a,a.U=s):(s.U=t,t=s,r=s.R)):(u=r.C,r=s),r&&(r.U=t),!u){if(r&&r.C)return void(r.C=!1);do{if(r===this._)break;if(r===t.L){if((i=t.R).C&&(i.C=!1,t.C=!0,uS(this,t),i=t.R),i.L&&i.L.C||i.R&&i.R.C){(!i.R||!i.R.C)&&(i.L.C=!1,i.C=!0,cS(this,i),i=t.R),i.C=t.C,t.C=i.R.C=!1,uS(this,t),r=this._;break}}else if((i=t.L).C&&(i.C=!1,t.C=!0,cS(this,t),i=t.L),i.L&&i.L.C||i.R&&i.R.C){(!i.L||!i.L.C)&&(i.R.C=!1,i.C=!0,uS(this,i),i=t.L),i.C=t.C,t.C=i.L.C=!1,cS(this,t),r=this._;break}i.C=!0,r=t,t=t.U}while(!r.C);r&&(r.C=!1)}}};var FH=cZ;function dS(n,r,t,i){var o=[null,null],a=bs.push(o)-1;return o.left=n,o.right=r,t&&FA(o,n,r,t),i&&FA(o,r,n,i),Gl[n.index].halfedges.push(a),Gl[r.index].halfedges.push(a),o}function pS(n,r,t){var i=[r,t];return i.left=n,i}function FA(n,r,t,i){n[0]||n[1]?n.left===t?n[1]=i:n[0]=i:(n[0]=i,n.left=r,n.right=t)}function Tne(n,r,t,i,o){var $,a=n[0],s=n[1],u=a[0],p=a[1],I=0,F=1,G=s[0]-u,Y=s[1]-p;if($=r-u,G||!($>0)){if($/=G,G<0){if($0){if($>F)return;$>I&&(I=$)}if($=i-u,G||!($<0)){if($/=G,G<0){if($>F)return;$>I&&(I=$)}else if(G>0){if($0)){if($/=Y,Y<0){if($0){if($>F)return;$>I&&(I=$)}if($=o-p,Y||!($<0)){if($/=Y,Y<0){if($>F)return;$>I&&(I=$)}else if(Y>0){if($0)&&!(F<1)||(I>0&&(n[0]=[u+I*G,p+I*Y]),F<1&&(n[1]=[u+F*G,p+F*Y])),!0}}}}}function xne(n,r,t,i,o){var a=n[1];if(a)return!0;var $,de,s=n[0],u=n.left,p=n.right,m=u[0],b=u[1],I=p[0],F=p[1],G=(m+I)/2;if(F===b){if(G=i)return;if(m>I){if(s){if(s[1]>=o)return}else s=[G,t];a=[G,o]}else{if(s){if(s[1]1)if(m>I){if(s){if(s[1]>=o)return}else s=[(t-de)/$,t];a=[(o-de)/$,o]}else{if(s){if(s[1]=i)return}else s=[r,$*r+de];a=[i,$*i+de]}else{if(s){if(s[0]=-Zne)){var G=p*p+m*m,Y=b*b+I*I,$=(I*G-m*Y)/F,de=(p*Y-b*G)/F,Me=UH.pop()||new One;Me.arc=n,Me.site=o,Me.x=$+s,Me.y=(Me.cy=de+u)+Math.sqrt($*$+de*de),n.circle=Me;for(var st=null,tt=fS._;tt;)if(Me.ylo)u=u.L;else{if(!((s=r-Nne(u,t))>lo)){a>-lo?(i=u.P,o=u):s>-lo?(i=u,o=u.N):i=o=u;break}if(!u.R){i=u;break}u=u.R}!function(n){Gl[n.index]={site:n,halfedges:[]}}(n);var p=VH(n);if(X_.insert(i,p),i||o){if(i===o)return K_(i),o=VH(i.site),X_.insert(p,o),p.edge=o.edge=dS(i.site,p.site),Q_(i),void Q_(o);if(!o)return void(p.edge=dS(i.site,p.site));K_(i),K_(o);var m=i.site,b=m[0],I=m[1],F=n[0]-b,G=n[1]-I,Y=o.site,$=Y[0]-b,de=Y[1]-I,Me=2*(F*de-G*$),st=F*F+G*G,tt=$*$+de*de,at=[(de*st-G*tt)/Me+b,(F*tt-$*st)/Me+I];FA(o.edge,m,Y,at),p.edge=dS(m,n,null,at),o.edge=dS(n,Y,null,at),Q_(i),Q_(o)}}function qH(n,r){var t=n.site,i=t[0],o=t[1],a=o-r;if(!a)return i;var s=n.P;if(!s)return-1/0;var u=(t=s.site)[0],p=t[1],m=p-r;if(!m)return u;var b=u-i,I=1/a-1/m,F=b/m;return I?(-F+Math.sqrt(F*F-2*I*(b*b/(-2*m)-p+m/2+o-a/2)))/I+i:(i+u)/2}function Nne(n,r){var t=n.N;if(t)return qH(t,r);var i=n.site;return i[1]===r?i[0]:1/0}var X_,Gl,fS,bs,lo=1e-6,Zne=1e-12;function Lne(n,r,t){return(n[0]-t[0])*(r[1]-n[1])-(n[0]-r[0])*(t[1]-n[1])}function Fne(n,r){return r[1]-n[1]||r[0]-n[0]}function fZ(n,r){var i,o,a,t=n.sort(Fne).pop();for(bs=[],Gl=new Array(n.length),X_=new FH,fS=new FH;;)if(a=dZ,t&&(!a||t[1]lo||Math.abs(a[0][1]-a[1][1])>lo)||delete bs[o]})(s,u,p,m),function(n,r,t,i){var a,s,u,p,m,b,I,F,G,Y,$,de,o=Gl.length,Me=!0;for(a=0;alo||Math.abs(de-G)>lo)&&(m.splice(p,0,bs.push(pS(u,Y,Math.abs($-n)lo?[n,Math.abs(F-n)lo?[Math.abs(G-i)lo?[t,Math.abs(F-t)lo?[Math.abs(G-r)=u)return null;var m=r-p.site[0],b=t-p.site[1],I=m*m+b*b;do{p=o.cells[a=s],s=null,p.halfedges.forEach(function(F){var G=o.edges[F],Y=G.left;if(Y!==p.site&&Y||(Y=G.right)){var $=r-Y[0],de=t-Y[1],Me=$*$+de*de;Mei?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function WH(){var b,I,n=Hne,r=Vne,t=zne,i=qne,o=jne,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],u=250,p=z4,m=Kd("start","zoom","end"),F=500,Y=0;function $(ot){ot.property("__zoom",zH).on("wheel.zoom",Je).on("mousedown.zoom",et).on("dblclick.zoom",It).filter(o).on("touchstart.zoom",kt).on("touchmove.zoom",pn).on("touchend.zoom touchcancel.zoom",Wt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function de(ot,Dt){return(Dt=Math.max(a[0],Math.min(a[1],Dt)))===ot.k?ot:new up(Dt,ot.x,ot.y)}function Me(ot,Dt,mn){var dn=Dt[0]-mn[0]*ot.k,xn=Dt[1]-mn[1]*ot.k;return dn===ot.x&&xn===ot.y?ot:new up(ot.k,dn,xn)}function st(ot){return[(+ot[0][0]+ +ot[1][0])/2,(+ot[0][1]+ +ot[1][1])/2]}function tt(ot,Dt,mn){ot.on("start.zoom",function(){at(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){at(this,arguments).end()}).tween("zoom",function(){var dn=this,xn=arguments,Zn=at(dn,xn),er=r.apply(dn,xn),vr=mn||st(er),zr=Math.max(er[1][0]-er[0][0],er[1][1]-er[0][1]),ir=dn.__zoom,Jr="function"==typeof Dt?Dt.apply(dn,xn):Dt,ai=p(ir.invert(vr).concat(zr/ir.k),Jr.invert(vr).concat(zr/Jr.k));return function(gr){if(1===gr)gr=Jr;else{var Li=ai(gr),Bo=zr/Li[2];gr=new up(Bo,vr[0]-Li[0]*Bo,vr[1]-Li[1]*Bo)}Zn.zoom(null,gr)}})}function at(ot,Dt,mn){return!mn&&ot.__zooming||new pt(ot,Dt)}function pt(ot,Dt){this.that=ot,this.args=Dt,this.active=0,this.extent=r.apply(ot,Dt),this.taps=0}function Je(){if(n.apply(this,arguments)){var ot=at(this,arguments),Dt=this.__zoom,mn=Math.max(a[0],Math.min(a[1],Dt.k*Math.pow(2,i.apply(this,arguments)))),dn=al(this);Dt.k!==mn&&(ot.wheel?((ot.mouse[0][0]!==dn[0]||ot.mouse[0][1]!==dn[1])&&(ot.mouse[1]=Dt.invert(ot.mouse[0]=dn)),clearTimeout(ot.wheel)):(ot.mouse=[dn,Dt.invert(dn)],Bm(this),ot.start()),hS(),ot.wheel=setTimeout(xn,150),ot.zoom("mouse",t(Me(de(Dt,mn),ot.mouse[0],ot.mouse[1]),ot.extent,s)))}function xn(){ot.wheel=null,ot.end()}}function et(){if(!I&&n.apply(this,arguments)){var ot=at(this,arguments,!0),Dt=Kr(En.view).on("mousemove.zoom",Zn,!0).on("mouseup.zoom",er,!0),mn=al(this),dn=En.clientX,xn=En.clientY;T_(En.view),hZ(),ot.mouse=[mn,this.__zoom.invert(mn)],Bm(this),ot.start()}function Zn(){if(hS(),!ot.moved){var vr=En.clientX-dn,zr=En.clientY-xn;ot.moved=vr*vr+zr*zr>Y}ot.zoom("mouse",t(Me(ot.that.__zoom,ot.mouse[0]=al(ot.that),ot.mouse[1]),ot.extent,s))}function er(){Dt.on("mousemove.zoom mouseup.zoom",null),Ul(En.view,ot.moved),hS(),ot.end()}}function It(){if(n.apply(this,arguments)){var ot=this.__zoom,Dt=al(this),mn=ot.invert(Dt),dn=ot.k*(En.shiftKey?.5:2),xn=t(Me(de(ot,dn),Dt,mn),r.apply(this,arguments),s);hS(),u>0?Kr(this).transition().duration(u).call(tt,xn,Dt):Kr(this).call($.transform,xn)}}function kt(){if(n.apply(this,arguments)){var dn,xn,Zn,er,ot=En.touches,Dt=ot.length,mn=at(this,arguments,En.changedTouches.length===Dt);for(hZ(),xn=0;xn0?a.animate(a._lastPercent,a.options.percent):a.draw(a.options.percent),a._lastPercent=a.options.percent)):(a.options.animation&&a.options.animationDuration>0?a.animate(a._lastPercent,a.options.percent):a.draw(a.options.percent),a._lastPercent=a.options.percent)},this.polarToCartesian=function(s,u,p,m){var b=m*Math.PI/180;return{x:s+Math.sin(b)*p,y:u-Math.cos(b)*p}},this.draw=function(s){var u=(s=void 0===s?a.options.percent:Math.abs(s))>100?100:s,p=2*a.options.radius+2*a.options.outerStrokeWidth;a.options.showBackground&&(p+=2*a.options.backgroundStrokeWidth+a.max(0,2*a.options.backgroundPadding));var F,G,m={x:p/2,y:p/2},b={x:m.x,y:m.y-a.options.radius},I=a.polarToCartesian(m.x,m.y,a.options.radius,360*(a.options.clockwise?u:100-u)/100);if(100===u&&(I.x=I.x+(a.options.clockwise?-.01:.01)),u>50){var $=(0,C.Z)(a.options.clockwise?[1,1]:[1,0],2);F=$[0],G=$[1]}else{var Me=(0,C.Z)(a.options.clockwise?[0,1]:[0,0],2);F=Me[0],G=Me[1]}var st=a.options.animateTitle?s:a.options.percent,tt=st>a.options.maxPercent?"".concat(a.options.maxPercent.toFixed(a.options.toFixed),"+"):st.toFixed(a.options.toFixed),at=a.options.animateSubtitle?s:a.options.percent,pt={x:m.x,y:m.y,textAnchor:"middle",color:a.options.titleColor,fontSize:a.options.titleFontSize,fontWeight:a.options.titleFontWeight,texts:[],tspans:[]};if(void 0!==a.options.titleFormat&&"Function"===a.options.titleFormat.constructor.name){var Je=a.options.titleFormat(st);Je instanceof Array?pt.texts=(0,_.Z)(Je):pt.texts.push(Je.toString())}else"auto"===a.options.title?pt.texts.push(tt):a.options.title instanceof Array?pt.texts=(0,_.Z)(a.options.title):pt.texts.push(a.options.title.toString());var et={x:m.x,y:m.y,textAnchor:"middle",color:a.options.subtitleColor,fontSize:a.options.subtitleFontSize,fontWeight:a.options.subtitleFontWeight,texts:[],tspans:[]};if(void 0!==a.options.subtitleFormat&&"Function"===a.options.subtitleFormat.constructor.name){var It=a.options.subtitleFormat(at);It instanceof Array?et.texts=(0,_.Z)(It):et.texts.push(It.toString())}else a.options.subtitle instanceof Array?et.texts=(0,_.Z)(a.options.subtitle):et.texts.push(a.options.subtitle.toString());var kt={text:"".concat(a.options.units),fontSize:a.options.unitsFontSize,fontWeight:a.options.unitsFontWeight,color:a.options.unitsColor},pn=0,Wt=1;if(a.options.showTitle&&(pn+=pt.texts.length),a.options.showSubtitle&&(pn+=et.texts.length),a.options.showTitle){var Dt,ot=(0,v.Z)(pt.texts);try{for(ot.s();!(Dt=ot.n()).done;)pt.tspans.push({span:Dt.value,dy:a.getRelativeY(Wt,pn)}),Wt++}catch(er){ot.e(er)}finally{ot.f()}}if(a.options.showSubtitle){var xn,dn=(0,v.Z)(et.texts);try{for(dn.s();!(xn=dn.n()).done;)et.tspans.push({span:xn.value,dy:a.getRelativeY(Wt,pn)}),Wt++}catch(er){dn.e(er)}finally{dn.f()}}null===a._gradientUUID&&(a._gradientUUID=a.uuid()),a.svg={viewBox:"0 0 ".concat(p," ").concat(p),width:a.options.responsive?"100%":p,height:a.options.responsive?"100%":p,backgroundCircle:{cx:m.x,cy:m.y,r:a.options.radius+a.options.outerStrokeWidth/2+a.options.backgroundPadding,fill:a.options.backgroundColor,fillOpacity:a.options.backgroundOpacity,stroke:a.options.backgroundStroke,strokeWidth:a.options.backgroundStrokeWidth},path:{d:"M ".concat(b.x," ").concat(b.y,"\n A ").concat(a.options.radius," ").concat(a.options.radius," 0 ").concat(F," ").concat(G," ").concat(I.x," ").concat(I.y),stroke:a.options.outerStrokeColor,strokeWidth:a.options.outerStrokeWidth,strokeLinecap:a.options.outerStrokeLinecap,fill:"none"},circle:{cx:m.x,cy:m.y,r:a.options.radius-a.options.space-a.options.outerStrokeWidth/2-a.options.innerStrokeWidth/2,fill:"none",stroke:a.options.innerStrokeColor,strokeWidth:a.options.innerStrokeWidth},title:pt,units:kt,subtitle:et,image:{x:m.x-a.options.imageWidth/2,y:m.y-a.options.imageHeight/2,src:a.options.imageSrc,width:a.options.imageWidth,height:a.options.imageHeight},outerLinearGradient:{id:"outer-linear-"+a._gradientUUID,colorStop1:a.options.outerStrokeColor,colorStop2:"transparent"===a.options.outerStrokeGradientStopColor?"#FFF":a.options.outerStrokeGradientStopColor},radialGradient:{id:"radial-"+a._gradientUUID,colorStop1:a.options.backgroundColor,colorStop2:"transparent"===a.options.backgroundGradientStopColor?"#FFF":a.options.backgroundGradientStopColor}}},this.getAnimationParameters=function(s,u){var m,b,I,F=a.options.startFromZero||s<0?0:s,G=u<0?0:a.min(u,a.options.maxPercent),Y=Math.abs(Math.round(G-F));return Y>=100?(m=100,b=a.options.animateTitle||a.options.animateSubtitle?Math.round(Y/m):1):(m=Y,b=1),(I=Math.round(a.options.animationDuration/m))<10&&(m=a.options.animationDuration/(I=10),b=!a.options.animateTitle&&!a.options.animateSubtitle&&Y>100?Math.round(100/m):Math.round(Y/m)),b<1&&(b=1),{times:m,step:b,interval:I}},this.animate=function(s,u){a._timerSubscription&&!a._timerSubscription.closed&&a._timerSubscription.unsubscribe();var p=a.options.startFromZero?0:s,m=u,b=a.getAnimationParameters(p,m),I=b.step,F=b.interval,G=p;a._timerSubscription=p=100?(a.draw(m),a._timerSubscription.unsubscribe()):a.draw(G):(a.draw(m),a._timerSubscription.unsubscribe())}):(0,mS.H)(0,F).subscribe(function(){(G-=I)>=m?!a.options.animateTitle&&!a.options.animateSubtitle&&m>=100?(a.draw(m),a._timerSubscription.unsubscribe()):a.draw(G):(a.draw(m),a._timerSubscription.unsubscribe())})},this.emitClickEvent=function(s){a.options.renderOnClick&&a.animate(0,a.options.percent),a.onClick.emit(s)},this.applyOptions=function(){for(var s=0,u=Object.keys(a.options);s0?+a.options.percent:0,a.options.maxPercent=Math.abs(+a.options.maxPercent),a.options.animationDuration=Math.abs(a.options.animationDuration),a.options.outerStrokeWidth=Math.abs(+a.options.outerStrokeWidth),a.options.innerStrokeWidth=Math.abs(+a.options.innerStrokeWidth),a.options.backgroundPadding=+a.options.backgroundPadding},this.getRelativeY=function(s,u){return(1*(s-u/2)-.18).toFixed(2)+"em"},this.min=function(s,u){return su?s:u},this.uuid=function(){var s=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(p){var m=(s+16*Math.random())%16|0;return s=Math.floor(s/16),("x"==p?m:3&m|8).toString(16)})},this.findSvgElement=function(){if(null===this.svgElement){var s=this.elRef.nativeElement.getElementsByTagName("svg");s.length>0&&(this.svgElement=s[0])}},this.checkViewport=function(){a.findSvgElement();var s=a.isInViewport;a.isInViewport=a.isElementInViewport(a.svgElement),s!==a.isInViewport&&a.onViewportChanged.emit({oldValue:s,newValue:a.isInViewport})},this.onScroll=function(s){a.checkViewport()},this.loadEventsForLazyMode=function(){if(a.options.lazy){a.document.addEventListener("scroll",a.onScroll,!0),a.window.addEventListener("resize",a.onScroll,!0),null===a._viewportChangedSubscriber&&(a._viewportChangedSubscriber=a.onViewportChanged.subscribe(function(u){u.newValue&&a.render()}));var s=(0,mS.H)(0,50).subscribe(function(){null===a.svgElement?a.checkViewport():s.unsubscribe()})}},this.unloadEventsForLazyMode=function(){a.document.removeEventListener("scroll",a.onScroll,!0),a.window.removeEventListener("resize",a.onScroll,!0),null!==a._viewportChangedSubscriber&&(a._viewportChangedSubscriber.unsubscribe(),a._viewportChangedSubscriber=null)},this.document=o,this.window=this.document.defaultView,Object.assign(this.options,t),Object.assign(this.defaultOptions,t)}return(0,k.Z)(r,[{key:"isDrawing",value:function(){return this._timerSubscription&&!this._timerSubscription.closed}},{key:"isElementInViewport",value:function(i){if(null==i)return!1;var s,o=i.getBoundingClientRect(),a=i.parentNode;do{if(s=a.getBoundingClientRect(),o.top>=s.bottom||o.bottom<=s.top||o.left>=s.right||o.right<=s.left)return!1;a=a.parentNode}while(a!=this.document.body);return!(o.top>=(this.window.innerHeight||this.document.documentElement.clientHeight)||o.bottom<=0||o.left>=(this.window.innerWidth||this.document.documentElement.clientWidth)||o.right<=0)}},{key:"ngOnInit",value:function(){this.loadEventsForLazyMode()}},{key:"ngOnDestroy",value:function(){this.unloadEventsForLazyMode()}},{key:"ngOnChanges",value:function(i){this.render(),"lazy"in i&&(i.lazy.currentValue?this.loadEventsForLazyMode():this.unloadEventsForLazyMode())}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(HA),e.Y36(e.SBq),e.Y36(Et.K0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["circle-progress"]],inputs:{name:"name",class:"class",backgroundGradient:"backgroundGradient",backgroundColor:"backgroundColor",backgroundGradientStopColor:"backgroundGradientStopColor",backgroundOpacity:"backgroundOpacity",backgroundStroke:"backgroundStroke",backgroundStrokeWidth:"backgroundStrokeWidth",backgroundPadding:"backgroundPadding",radius:"radius",space:"space",percent:"percent",toFixed:"toFixed",maxPercent:"maxPercent",renderOnClick:"renderOnClick",units:"units",unitsFontSize:"unitsFontSize",unitsFontWeight:"unitsFontWeight",unitsColor:"unitsColor",outerStrokeGradient:"outerStrokeGradient",outerStrokeWidth:"outerStrokeWidth",outerStrokeColor:"outerStrokeColor",outerStrokeGradientStopColor:"outerStrokeGradientStopColor",outerStrokeLinecap:"outerStrokeLinecap",innerStrokeColor:"innerStrokeColor",innerStrokeWidth:"innerStrokeWidth",titleFormat:"titleFormat",title:"title",titleColor:"titleColor",titleFontSize:"titleFontSize",titleFontWeight:"titleFontWeight",subtitleFormat:"subtitleFormat",subtitle:"subtitle",subtitleColor:"subtitleColor",subtitleFontSize:"subtitleFontSize",subtitleFontWeight:"subtitleFontWeight",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",animation:"animation",animateTitle:"animateTitle",animateSubtitle:"animateSubtitle",animationDuration:"animationDuration",showTitle:"showTitle",showSubtitle:"showSubtitle",showUnits:"showUnits",showImage:"showImage",showBackground:"showBackground",showInnerStroke:"showInnerStroke",clockwise:"clockwise",responsive:"responsive",startFromZero:"startFromZero",showZeroOuterStroke:"showZeroOuterStroke",lazy:"lazy",templateOptions:["options","templateOptions"]},outputs:{onClick:"onClick"},features:[e.TTD],decls:1,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click"],[4,"ngIf"],["alignment-baseline","baseline",4,"ngIf"],["preserveAspectRatio","none",4,"ngIf"],["offset","5%"],["offset","95%"],["alignment-baseline","baseline"],[4,"ngFor","ngForOf"],["preserveAspectRatio","none"]],template:function(t,i){1&t&&e.YNc(0,ure,9,11,"svg",0),2&t&&e.Q6J("ngIf",i.svg)},directives:[Et.O5,Et.sg],encapsulation:2}),n}(),dre=function(){var n=function(){function r(){(0,g.Z)(this,r)}return(0,k.Z)(r,null,[{key:"forRoot",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[{provide:HA,useValue:i}]}}}]),r}();return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Et.ez]]}),n}(),mZ=function(){function n(r){(0,g.Z)(this,n),this.rawFile=r;var i=function(n){return!(!n||!(n.nodeName||n.prop&&n.attr&&n.find))}(r)?r.value:r;this["_createFrom"+("string"==typeof i?"FakePath":"Object")](i)}return(0,k.Z)(n,[{key:"_createFromFakePath",value:function(t){this.lastModifiedDate=void 0,this.size=void 0,this.type="like/"+t.slice(t.lastIndexOf(".")+1).toLowerCase(),this.name=t.slice(t.lastIndexOf("/")+t.lastIndexOf("\\")+2)}},{key:"_createFromObject",value:function(t){this.size=t.size,this.type=t.type,this.name=t.name}}]),n}(),fre=function(){function n(r,t,i){(0,g.Z)(this,n),this.url="/",this.headers=[],this.withCredentials=!0,this.formData=[],this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.index=void 0,this.uploader=r,this.some=t,this.options=i,this.file=new mZ(t),this._file=t,r.options&&(this.method=r.options.method||"POST",this.alias=r.options.itemAlias||"file"),this.url=r.options.url}return(0,k.Z)(n,[{key:"upload",value:function(){try{this.uploader.uploadItem(this)}catch(t){this.uploader._onCompleteItem(this,"",0,{}),this.uploader._onErrorItem(this,"",0,{})}}},{key:"cancel",value:function(){this.uploader.cancelItem(this)}},{key:"remove",value:function(){this.uploader.removeFromQueue(this)}},{key:"onBeforeUpload",value:function(){}},{key:"onBuildForm",value:function(t){return{form:t}}},{key:"onProgress",value:function(t){return{progress:t}}},{key:"onSuccess",value:function(t,i,o){return{response:t,status:i,headers:o}}},{key:"onError",value:function(t,i,o){return{response:t,status:i,headers:o}}},{key:"onCancel",value:function(t,i,o){return{response:t,status:i,headers:o}}},{key:"onComplete",value:function(t,i,o){return{response:t,status:i,headers:o}}},{key:"_onBeforeUpload",value:function(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()}},{key:"_onBuildForm",value:function(t){this.onBuildForm(t)}},{key:"_onProgress",value:function(t){this.progress=t,this.onProgress(t)}},{key:"_onSuccess",value:function(t,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=void 0,this.onSuccess(t,i,o)}},{key:"_onError",value:function(t,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=void 0,this.onError(t,i,o)}},{key:"_onCancel",value:function(t,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=void 0,this.onCancel(t,i,o)}},{key:"_onComplete",value:function(t,i,o){this.onComplete(t,i,o),this.uploader.options.removeAfterUpload&&this.remove()}},{key:"_prepareToUploading",value:function(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0}}]),n}(),hre=function(){var n=function(){function r(){(0,g.Z)(this,r)}return(0,k.Z)(r,null,[{key:"getMimeClass",value:function(i){var o="application";return-1!==this.mime_psd.indexOf(i.type)||i.type.match("image.*")?o="image":i.type.match("video.*")?o="video":i.type.match("audio.*")?o="audio":"application/pdf"===i.type?o="pdf":-1!==this.mime_compress.indexOf(i.type)?o="compress":-1!==this.mime_doc.indexOf(i.type)?o="doc":-1!==this.mime_xsl.indexOf(i.type)?o="xls":-1!==this.mime_ppt.indexOf(i.type)&&(o="ppt"),"application"===o&&(o=this.fileTypeDetection(i.name)),o}},{key:"fileTypeDetection",value:function(i){var o={jpg:"image",jpeg:"image",tif:"image",psd:"image",bmp:"image",png:"image",nef:"image",tiff:"image",cr2:"image",dwg:"image",cdr:"image",ai:"image",indd:"image",pin:"image",cdp:"image",skp:"image",stp:"image","3dm":"image",mp3:"audio",wav:"audio",wma:"audio",mod:"audio",m4a:"audio",compress:"compress",zip:"compress",rar:"compress","7z":"compress",lz:"compress",z01:"compress",bz2:"compress",gz:"compress",pdf:"pdf",xls:"xls",xlsx:"xls",ods:"xls",mp4:"video",avi:"video",wmv:"video",mpg:"video",mts:"video",flv:"video","3gp":"video",vob:"video",m4v:"video",mpeg:"video",m2ts:"video",mov:"video",doc:"doc",docx:"doc",eps:"doc",txt:"doc",odt:"doc",rtf:"doc",ppt:"ppt",pptx:"ppt",pps:"ppt",ppsx:"ppt",odp:"ppt"},a=i.split(".");if(a.length<2)return"application";var s=a[a.length-1].toLowerCase();return void 0===o[s]?"application":o[s]}}]),r}();return n.mime_doc=["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"],n.mime_xsl=["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],n.mime_ppt=["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],n.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],n.mime_compress=["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream","application/x-zip-compressed","application/zip-compressed","application/x-7z-compressed","application/gzip","application/x-bzip2"],n}(),tv=function(){function n(r){(0,g.Z)(this,n),this.isUploading=!1,this.queue=[],this.progress=0,this._nextIndex=0,this.options={autoUpload:!1,isHTML5:!0,filters:[],removeAfterUpload:!1,disableMultipart:!1,formatDataFunction:function(i){return i._file},formatDataFunctionIsAsync:!1},this.setOptions(r),this.response=new e.vpe}return(0,k.Z)(n,[{key:"setOptions",value:function(t){this.options=Object.assign(this.options,t),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload,this.options.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&this.options.filters.unshift({name:"fileSize",fn:this._fileSizeFilter}),this.options.allowedFileType&&this.options.filters.unshift({name:"fileType",fn:this._fileTypeFilter}),this.options.allowedMimeType&&this.options.filters.unshift({name:"mimeType",fn:this._mimeTypeFilter});for(var i=0;ithis.options.maxFileSize)}},{key:"_fileTypeFilter",value:function(t){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(hre.getMimeClass(t)))}},{key:"_onErrorItem",value:function(t,i,o,a){t._onError(i,o,a),this.onErrorItem(t,i,o,a)}},{key:"_onCompleteItem",value:function(t,i,o,a){t._onComplete(i,o,a),this.onCompleteItem(t,i,o,a);var s=this.getReadyItems()[0];this.isUploading=!1,s?s.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())}},{key:"_headersGetter",value:function(t){return function(i){return i?t[i.toLowerCase()]||void 0:t}}},{key:"_xhrTransport",value:function(t){var s,i=this,o=this,a=t._xhr=new XMLHttpRequest;if(this._onBeforeUploadItem(t),"number"!=typeof t._file.size)throw new TypeError("The file specified is no longer valid");if(this.options.disableMultipart)s=this.options.formatDataFunction(t);else{s=new FormData,this._onBuildItemForm(t,s);var u=function(){return s.append(t.alias,t._file,t.file.name)};this.options.parametersBeforeFiles||u(),void 0!==this.options.additionalParameter&&Object.keys(this.options.additionalParameter).forEach(function(Y){var $=i.options.additionalParameter[Y];"string"==typeof $&&$.indexOf("{{file_name}}")>=0&&($=$.replace("{{file_name}}",t.file.name)),s.append(Y,$)}),this.options.parametersBeforeFiles&&u()}if(a.upload.onprogress=function(Y){var $=Math.round(Y.lengthComputable?100*Y.loaded/Y.total:0);i._onProgressItem(t,$)},a.onload=function(){var Y=i._parseHeaders(a.getAllResponseHeaders()),$=i._transformResponse(a.response,Y),de=i._isSuccessCode(a.status)?"Success":"Error";i["_on"+de+"Item"](t,$,a.status,Y),i._onCompleteItem(t,$,a.status,Y)},a.onerror=function(){var Y=i._parseHeaders(a.getAllResponseHeaders()),$=i._transformResponse(a.response,Y);i._onErrorItem(t,$,a.status,Y),i._onCompleteItem(t,$,a.status,Y)},a.onabort=function(){var Y=i._parseHeaders(a.getAllResponseHeaders()),$=i._transformResponse(a.response,Y);i._onCancelItem(t,$,a.status,Y),i._onCompleteItem(t,$,a.status,Y)},a.open(t.method,t.url,!0),a.withCredentials=t.withCredentials,this.options.headers){var m,p=(0,v.Z)(this.options.headers);try{for(p.s();!(m=p.n()).done;){var b=m.value;a.setRequestHeader(b.name,b.value)}}catch(Y){p.e(Y)}finally{p.f()}}if(t.headers.length){var F,I=(0,v.Z)(t.headers);try{for(I.s();!(F=I.n()).done;){var G=F.value;a.setRequestHeader(G.name,G.value)}}catch(Y){I.e(Y)}finally{I.f()}}this.authToken&&a.setRequestHeader(this.authTokenHeader,this.authToken),a.onreadystatechange=function(){a.readyState==XMLHttpRequest.DONE&&o.response.emit(a.responseText)},this.options.formatDataFunctionIsAsync?s.then(function(Y){return a.send(JSON.stringify(Y))}):a.send(s),this._render()}},{key:"_getTotalProgress",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.options.removeAfterUpload)return t;var i=this.getNotUploadedItems().length,o=i?this.queue.length-i:this.queue.length,a=100/this.queue.length,s=t*a/100;return Math.round(o*a+s)}},{key:"_getFilters",value:function(t){if(!t)return this.options.filters;if(Array.isArray(t))return t;if("string"==typeof t){var i=t.match(/[^\s,]+/g);return this.options.filters.filter(function(o){return-1!==i.indexOf(o.name)})}return this.options.filters}},{key:"_render",value:function(){}},{key:"_queueLimitFilter",value:function(){return void 0===this.options.queueLimit||this.queue.length=200&&t<300||304===t}},{key:"_transformResponse",value:function(t,i){return t}},{key:"_parseHeaders",value:function(t){var o,a,s,i={};return t&&t.split("\n").map(function(u){s=u.indexOf(":"),o=u.slice(0,s).trim().toLowerCase(),a=u.slice(s+1).trim(),o&&(i[o]=i[o]?i[o]+", "+a:a)}),i}},{key:"_onWhenAddingFileFailed",value:function(t,i,o){this.onWhenAddingFileFailed(t,i,o)}},{key:"_onAfterAddingFile",value:function(t){this.onAfterAddingFile(t)}},{key:"_onAfterAddingAll",value:function(t){this.onAfterAddingAll(t)}},{key:"_onBeforeUploadItem",value:function(t){t._onBeforeUpload(),this.onBeforeUploadItem(t)}},{key:"_onBuildItemForm",value:function(t,i){t._onBuildForm(i),this.onBuildItemForm(t,i)}},{key:"_onProgressItem",value:function(t,i){var o=this._getTotalProgress(i);this.progress=o,t._onProgress(i),this.onProgressItem(t,i),this.onProgressAll(o),this._render()}},{key:"_onSuccessItem",value:function(t,i,o,a){t._onSuccess(i,o,a),this.onSuccessItem(t,i,o,a)}},{key:"_onCancelItem",value:function(t,i,o,a){t._onCancel(i,o,a),this.onCancelItem(t,i,o,a)}}]),n}(),vS=function(){var n=function(){function r(t){(0,g.Z)(this,r),this.onFileSelected=new e.vpe,this.element=t}return(0,k.Z)(r,[{key:"getOptions",value:function(){return this.uploader.options}},{key:"getFilters",value:function(){return{}}},{key:"isEmptyAfterSelection",value:function(){return!!this.element.nativeElement.attributes.multiple}},{key:"onChange",value:function(){var i=this.element.nativeElement.files,o=this.getOptions(),a=this.getFilters();this.uploader.addToQueue(i,o,a),this.onFileSelected.emit(i),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","ng2FileSelect",""]],hostBindings:function(t,i){1&t&&e.NdJ("change",function(){return i.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}}),n}(),vre=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Et.ez]]}),n}(),vZ=function(){function n(){}return Object.defineProperty(n.prototype,"child_process",{get:function(){return this._child_process||(this._child_process=window.require?window.require("child_process"):null),this._child_process},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isElectronApp",{get:function(){return!!window.navigator.userAgent.match(/Electron/)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"childProcess",{get:function(){return this.child_process?this.child_process:null},enumerable:!0,configurable:!0}),n}(),gre=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i])},function(r,t){function i(){this.constructor=r}n(r,t),r.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),_re=function(n){function r(){return n.call(this)||this}return gre(r,n),r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=e.Yz7({token:r,factory:function(i){return r.\u0275fac(i)}}),r}(vZ),yre=function(){function n(){}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[{provide:vZ,useClass:_re}]}),n}(),ds=function(){function n(){(0,g.Z)(this,n)}return(0,k.Z)(n,[{key:"electron",get:function(){return this._electron?this._electron:window&&window.require?(this._electron=window.require("electron"),this._electron):null}},{key:"isElectronApp",get:function(){return!!window.navigator.userAgent.match(/Electron/)}},{key:"isMacOS",get:function(){return this.isElectronApp&&"darwin"===process.platform}},{key:"isWindows",get:function(){return this.isElectronApp&&"win32"===process.platform}},{key:"isLinux",get:function(){return this.isElectronApp&&"linux"===process.platform}},{key:"isX86",get:function(){return this.isElectronApp&&"ia32"===process.arch}},{key:"isX64",get:function(){return this.isElectronApp&&"x64"===process.arch}},{key:"isArm",get:function(){return this.isElectronApp&&"arm"===process.arch}},{key:"desktopCapturer",get:function(){return this.electron?this.electron.desktopCapturer:null}},{key:"ipcRenderer",get:function(){return this.electron?this.electron.ipcRenderer:null}},{key:"remote",get:function(){return this.electron?this.electron.remote:null}},{key:"webFrame",get:function(){return this.electron?this.electron.webFrame:null}},{key:"clipboard",get:function(){return this.electron?this.electron.clipboard:null}},{key:"crashReporter",get:function(){return this.electron?this.electron.crashReporter:null}},{key:"process",get:function(){return this.remote?this.remote.process:null}},{key:"nativeImage",get:function(){return this.electron?this.electron.nativeImage:null}},{key:"screen",get:function(){return this.electron?this.remote.screen:null}},{key:"shell",get:function(){return this.electron?this.electron.shell:null}}]),n}(),bre=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.call(this)}return i}(ds);return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Cre=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[{provide:ds,useClass:bre}]}),n}(),gS=f(88009),Sre=f(64646),GH=f(60131),gZ=f(4499),nv=f(93487),Tre=f(39887),YH=f(31927),Yf=f(13426),_S=f(38575),xre=f(99583),$_=f(64233),wre=f(26575),JH=f(59803),_Z=f(65890),cp=function n(r,t){(0,g.Z)(this,n),this.id=r,this.url=t},VA=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,g.Z)(this,t),(a=r.call(this,i,o)).navigationTrigger=s,a.restoredState=u,a}return(0,k.Z)(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(cp),rv=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o,a){var s;return(0,g.Z)(this,t),(s=r.call(this,i,o)).urlAfterRedirects=a,s}return(0,k.Z)(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(cp),yZ=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o,a){var s;return(0,g.Z)(this,t),(s=r.call(this,i,o)).reason=a,s}return(0,k.Z)(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(cp),QH=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o,a){var s;return(0,g.Z)(this,t),(s=r.call(this,i,o)).error=a,s}return(0,k.Z)(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(cp),kre=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o,a,s){var u;return(0,g.Z)(this,t),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u}return(0,k.Z)(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(cp),Ere=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o,a,s){var u;return(0,g.Z)(this,t),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u}return(0,k.Z)(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(cp),Mre=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o,a,s,u){var p;return(0,g.Z)(this,t),(p=r.call(this,i,o)).urlAfterRedirects=a,p.state=s,p.shouldActivate=u,p}return(0,k.Z)(t,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),t}(cp),Are=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o,a,s){var u;return(0,g.Z)(this,t),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u}return(0,k.Z)(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(cp),Dre=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o,a,s){var u;return(0,g.Z)(this,t),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u}return(0,k.Z)(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(cp),KH=function(){function n(r){(0,g.Z)(this,n),this.route=r}return(0,k.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),n}(),XH=function(){function n(r){(0,g.Z)(this,n),this.route=r}return(0,k.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),n}(),Ore=function(){function n(r){(0,g.Z)(this,n),this.snapshot=r}return(0,k.Z)(n,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),n}(),Pre=function(){function n(r){(0,g.Z)(this,n),this.snapshot=r}return(0,k.Z)(n,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),n}(),Ire=function(){function n(r){(0,g.Z)(this,n),this.snapshot=r}return(0,k.Z)(n,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),n}(),Rre=function(){function n(r){(0,g.Z)(this,n),this.snapshot=r}return(0,k.Z)(n,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),n}(),$H=function(){function n(r,t,i){(0,g.Z)(this,n),this.routerEvent=r,this.position=t,this.anchor=i}return(0,k.Z)(n,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),n}(),di="primary",Nre=function(){function n(r){(0,g.Z)(this,n),this.params=r||{}}return(0,k.Z)(n,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var i=this.params[t];return Array.isArray(i)?i[0]:i}return null}},{key:"getAll",value:function(t){if(this.has(t)){var i=this.params[t];return Array.isArray(i)?i:[i]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),n}();function ey(n){return new Nre(n)}var eV="ngNavigationCancelingError";function bZ(n){var r=Error("NavigationCancelingError: "+n);return r[eV]=!0,r}function Lre(n,r,t){var i=t.path.split("/");if(i.length>n.length||"full"===t.pathMatch&&(r.hasChildren()||i.length0?n[n.length-1]:null}function ps(n,r){for(var t in n)n.hasOwnProperty(t)&&r(n[t],t)}function rd(n){return(0,e.CqO)(n)?n:(0,e.QGY)(n)?(0,ss.D)(Promise.resolve(n)):(0,rr.of)(n)}var Ure={exact:function aV(n,r,t){if(!ov(n.segments,r.segments)||!qA(n.segments,r.segments,t)||n.numberOfChildren!==r.numberOfChildren)return!1;for(var i in r.children)if(!n.children[i]||!aV(n.children[i],r.children[i],t))return!1;return!0},subset:sV},iV={exact:function(n,r){return nd(n,r)},subset:function(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(function(t){return tV(n[t],r[t])})},ignored:function(){return!0}};function oV(n,r,t){return Ure[t.paths](n.root,r.root,t.matrixParams)&&iV[t.queryParams](n.queryParams,r.queryParams)&&!("exact"===t.fragment&&n.fragment!==r.fragment)}function sV(n,r,t){return lV(n,r,r.segments,t)}function lV(n,r,t,i){if(n.segments.length>t.length){var o=n.segments.slice(0,t.length);return!(!ov(o,t)||r.hasChildren()||!qA(o,t,i))}if(n.segments.length===t.length){if(!ov(n.segments,t)||!qA(n.segments,t,i))return!1;for(var a in r.children)if(!n.children[a]||!sV(n.children[a],r.children[a],i))return!1;return!0}var s=t.slice(0,n.segments.length),u=t.slice(n.segments.length);return!!(ov(n.segments,s)&&qA(n.segments,s,i)&&n.children[di])&&lV(n.children[di],r,u,i)}function qA(n,r,t){return r.every(function(i,o){return iV[t](n[o].parameters,i.parameters)})}var iv=function(){function n(r,t,i){(0,g.Z)(this,n),this.root=r,this.queryParams=t,this.fragment=i}return(0,k.Z)(n,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ey(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return zre.serialize(this)}}]),n}(),gi=function(){function n(r,t){var i=this;(0,g.Z)(this,n),this.segments=r,this.children=t,this.parent=null,ps(t,function(o,a){return o.parent=i})}return(0,k.Z)(n,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return jA(this)}}]),n}(),yS=function(){function n(r,t){(0,g.Z)(this,n),this.path=r,this.parameters=t}return(0,k.Z)(n,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=ey(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return pV(this)}}]),n}();function ov(n,r){return n.length===r.length&&n.every(function(t,i){return t.path===r[i].path})}var CZ=function n(){(0,g.Z)(this,n)},uV=function(){function n(){(0,g.Z)(this,n)}return(0,k.Z)(n,[{key:"parse",value:function(t){var i=new eie(t);return new iv(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}},{key:"serialize",value:function(t){var i="/".concat(bS(t.root,!0)),o=function(n){var r=Object.keys(n).map(function(t){var i=n[t];return Array.isArray(i)?i.map(function(o){return"".concat(zA(t),"=").concat(zA(o))}).join("&"):"".concat(zA(t),"=").concat(zA(i))}).filter(function(t){return!!t});return r.length?"?".concat(r.join("&")):""}(t.queryParams),a="string"==typeof t.fragment?"#".concat(function(n){return encodeURI(n)}(t.fragment)):"";return"".concat(i).concat(o).concat(a)}}]),n}(),zre=new uV;function jA(n){return n.segments.map(function(r){return pV(r)}).join("/")}function bS(n,r){if(!n.hasChildren())return jA(n);if(r){var t=n.children[di]?bS(n.children[di],!1):"",i=[];return ps(n.children,function(a,s){s!==di&&i.push("".concat(s,":").concat(bS(a,!1)))}),i.length>0?"".concat(t,"(").concat(i.join("//"),")"):t}var o=function(n,r){var t=[];return ps(n.children,function(i,o){o===di&&(t=t.concat(r(i,o)))}),ps(n.children,function(i,o){o!==di&&(t=t.concat(r(i,o)))}),t}(n,function(a,s){return s===di?[bS(n.children[di],!1)]:["".concat(s,":").concat(bS(a,!1))]});return 1===Object.keys(n.children).length&&null!=n.children[di]?"".concat(jA(n),"/").concat(o[0]):"".concat(jA(n),"/(").concat(o.join("//"),")")}function cV(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function zA(n){return cV(n).replace(/%3B/gi,";")}function SZ(n){return cV(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function WA(n){return decodeURIComponent(n)}function dV(n){return WA(n.replace(/\+/g,"%20"))}function pV(n){return"".concat(SZ(n.path)).concat(function(n){return Object.keys(n).map(function(r){return";".concat(SZ(r),"=").concat(SZ(n[r]))}).join("")}(n.parameters))}var Jre=/^[^\/()?;=#]+/;function GA(n){var r=n.match(Jre);return r?r[0]:""}var Qre=/^[^=?&#]+/,Xre=/^[^?&#]+/,eie=function(){function n(r){(0,g.Z)(this,n),this.url=r,this.remaining=r}return(0,k.Z)(n,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gi([],{}):new gi([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));var o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(o[di]=new gi(t,i)),o}},{key:"parseSegment",value:function(){var t=GA(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new yS(WA(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var i=GA(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=GA(this.remaining);a&&this.capture(o=a)}t[WA(i)]=WA(o)}}},{key:"parseQueryParam",value:function(t){var i=function(n){var r=n.match(Qre);return r?r[0]:""}(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=function(n){var r=n.match(Xre);return r?r[0]:""}(this.remaining);a&&this.capture(o=a)}var s=dV(i),u=dV(o);if(t.hasOwnProperty(s)){var p=t[s];Array.isArray(p)||(t[s]=p=[p]),p.push(u)}else t[s]=u}}},{key:"parseParens",value:function(t){var i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var o=GA(this.remaining),a=this.remaining[o.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error("Cannot parse url '".concat(this.url,"'"));var s=void 0;o.indexOf(":")>-1?(s=o.substr(0,o.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=di);var u=this.parseChildren();i[s]=1===Object.keys(u).length?u[di]:new gi([],u),this.consumeOptional("//")}return i}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),n}(),fV=function(){function n(r){(0,g.Z)(this,n),this._root=r}return(0,k.Z)(n,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}},{key:"children",value:function(t){var i=TZ(t,this._root);return i?i.children.map(function(o){return o.value}):[]}},{key:"firstChild",value:function(t){var i=TZ(t,this._root);return i&&i.children.length>0?i.children[0].value:null}},{key:"siblings",value:function(t){var i=xZ(t,this._root);return i.length<2?[]:i[i.length-2].children.map(function(a){return a.value}).filter(function(a){return a!==t})}},{key:"pathFromRoot",value:function(t){return xZ(t,this._root).map(function(i){return i.value})}}]),n}();function TZ(n,r){if(n===r.value)return r;var i,t=(0,v.Z)(r.children);try{for(t.s();!(i=t.n()).done;){var a=TZ(n,i.value);if(a)return a}}catch(s){t.e(s)}finally{t.f()}return null}function xZ(n,r){if(n===r.value)return[r];var i,t=(0,v.Z)(r.children);try{for(t.s();!(i=t.n()).done;){var a=xZ(n,i.value);if(a.length)return a.unshift(r),a}}catch(s){t.e(s)}finally{t.f()}return[]}var dp=function(){function n(r,t){(0,g.Z)(this,n),this.value=r,this.children=t}return(0,k.Z)(n,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),n}();function CS(n){var r={};return n&&n.children.forEach(function(t){return r[t.value.outlet]=t}),r}var hV=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o){var a;return(0,g.Z)(this,t),(a=r.call(this,i)).snapshot=o,wZ((0,gS.Z)(a),i),a}return(0,k.Z)(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(fV);function mV(n,r){var t=function(n,r){var s=new YA([],{},{},"",{},di,r,null,n.root,-1,{});return new gV("",new dp(s,[]))}(n,r),i=new to.X([new yS("",{})]),o=new to.X({}),a=new to.X({}),s=new to.X({}),u=new to.X(""),p=new Pr(i,o,s,u,a,di,r,t.root);return p.snapshot=t.root,new hV(new dp(p,[]),t)}var Pr=function(){function n(r,t,i,o,a,s,u,p){(0,g.Z)(this,n),this.url=r,this.params=t,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=u,this._futureSnapshot=p}return(0,k.Z)(n,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,wr.U)(function(t){return ey(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,wr.U)(function(t){return ey(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),n}();function vV(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=n.pathFromRoot,i=0;if("always"!==r)for(i=t.length-1;i>=1;){var o=t[i],a=t[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(a.component)break;i--}}return nie(t.slice(i))}function nie(n){return n.reduce(function(r,t){return{params:Object.assign(Object.assign({},r.params),t.params),data:Object.assign(Object.assign({},r.data),t.data),resolve:Object.assign(Object.assign({},r.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var YA=function(){function n(r,t,i,o,a,s,u,p,m,b,I){(0,g.Z)(this,n),this.url=r,this.params=t,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=u,this.routeConfig=p,this._urlSegment=m,this._lastPathIndex=b,this._resolve=I}return(0,k.Z)(n,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=ey(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ey(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(o){return o.toString()}).join("/"),i=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(i,"')")}}]),n}(),gV=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o){var a;return(0,g.Z)(this,t),(a=r.call(this,o)).url=i,wZ((0,gS.Z)(a),o),a}return(0,k.Z)(t,[{key:"toString",value:function(){return _V(this._root)}}]),t}(fV);function wZ(n,r){r.value._routerState=n,r.children.forEach(function(t){return wZ(n,t)})}function _V(n){var r=n.children.length>0?" { ".concat(n.children.map(_V).join(", ")," } "):"";return"".concat(n.value).concat(r)}function kZ(n){if(n.snapshot){var r=n.snapshot,t=n._futureSnapshot;n.snapshot=t,nd(r.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),r.fragment!==t.fragment&&n.fragment.next(t.fragment),nd(r.params,t.params)||n.params.next(t.params),function(n,r){if(n.length!==r.length)return!1;for(var t=0;to;){if(a-=o,!(i=i.parent))throw new Error("Invalid number of '../'");o=i.segments.length}return new AZ(i,!1,o-a)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+a,n.numberOfDoubleDots)}(a,r,n),u=s.processChildren?KA(s.segmentGroup,s.index,a.commands):SV(s.segmentGroup,s.index,a.commands);return MZ(s.segmentGroup,u,r,i,o)}function QA(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function SS(n){return"object"==typeof n&&null!=n&&n.outlets}function MZ(n,r,t,i,o){var a={};return i&&ps(i,function(s,u){a[u]=Array.isArray(s)?s.map(function(p){return"".concat(p)}):"".concat(s)}),new iv(t.root===n?r:bV(t.root,n,r),a,o)}function bV(n,r,t){var i={};return ps(n.children,function(o,a){i[a]=o===r?t:bV(o,r,t)}),new gi(n.segments,i)}var CV=function(){function n(r,t,i){if((0,g.Z)(this,n),this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=i,r&&i.length>0&&QA(i[0]))throw new Error("Root segment cannot have matrix parameters");var o=i.find(SS);if(o&&o!==rV(i))throw new Error("{outlets:{}} has to be the last command")}return(0,k.Z)(n,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),n}(),AZ=function n(r,t,i){(0,g.Z)(this,n),this.segmentGroup=r,this.processChildren=t,this.index=i};function SV(n,r,t){if(n||(n=new gi([],{})),0===n.segments.length&&n.hasChildren())return KA(n,r,t);var i=function(n,r,t){for(var i=0,o=r,a={match:!1,pathIndex:0,commandIndex:0};o=t.length)return a;var s=n.segments[o],u=t[i];if(SS(u))break;var p="".concat(u),m=i0&&void 0===p)break;if(p&&m&&"object"==typeof m&&void 0===m.outlets){if(!xV(p,m,s))return a;i+=2}else{if(!xV(p,{},s))return a;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(n,r,t),o=t.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",t=0;t0)?Object.assign({},AV):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var a=(r.matcher||Lre)(t,n,r);if(!a)return Object.assign({},AV);var s={};ps(a.posParams,function(p,m){s[m]=p.path});var u=a.consumed.length>0?Object.assign(Object.assign({},s),a.consumed[a.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:a.consumed,lastChild:a.consumed.length,parameters:u,positionalParamSegments:null!==(i=a.posParams)&&void 0!==i?i:{}}}function $A(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&wie(n,t,i)){var a=new gi(r,xie(n,r,i,new gi(t,n.children)));return a._sourceSegment=n,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===t.length&&kie(n,t,i)){var s=new gi(n.segments,Tie(n,r,t,i,n.children,o));return s._sourceSegment=n,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:t}}var u=new gi(n.segments,n.children);return u._sourceSegment=n,u._segmentIndexShift=r.length,{segmentGroup:u,slicedSegments:t}}function Tie(n,r,t,i,o,a){var p,s={},u=(0,v.Z)(i);try{for(u.s();!(p=u.n()).done;){var m=p.value;if(e2(n,t,m)&&!o[wu(m)]){var b=new gi([],{});b._sourceSegment=n,b._segmentIndexShift="legacy"===a?n.segments.length:r.length,s[wu(m)]=b}}}catch(I){u.e(I)}finally{u.f()}return Object.assign(Object.assign({},o),s)}function xie(n,r,t,i){var o={};o[di]=i,i._sourceSegment=n,i._segmentIndexShift=r.length;var s,a=(0,v.Z)(t);try{for(a.s();!(s=a.n()).done;){var u=s.value;if(""===u.path&&wu(u)!==di){var p=new gi([],{});p._sourceSegment=n,p._segmentIndexShift=r.length,o[wu(u)]=p}}}catch(m){a.e(m)}finally{a.f()}return o}function wie(n,r,t){return t.some(function(i){return e2(n,r,i)&&wu(i)!==di})}function kie(n,r,t){return t.some(function(i){return e2(n,r,i)})}function e2(n,r,t){return(!(n.hasChildren()||r.length>0)||"full"!==t.pathMatch)&&""===t.path}function DV(n,r,t,i){return!!(wu(n)===i||i!==di&&e2(r,t,n))&&("**"===n.path||XA(r,n,t).matched)}function OV(n,r,t){return 0===r.length&&!n.children[t]}var wS=function n(r){(0,g.Z)(this,n),this.segmentGroup=r||null},PV=function n(r){(0,g.Z)(this,n),this.urlTree=r};function t2(n){return new ta.y(function(r){return r.error(new wS(n))})}function IV(n){return new ta.y(function(r){return r.error(new PV(n))})}function Eie(n){return new ta.y(function(r){return r.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(n,"'")))})}var Die=function(){function n(r,t,i,o,a){(0,g.Z)(this,n),this.configLoader=t,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=r.get(e.h0i)}return(0,k.Z)(n,[{key:"apply",value:function(){var t=this,i=$A(this.urlTree.root,[],[],this.config).segmentGroup,o=new gi(i.segments,i.children);return this.expandSegmentGroup(this.ngModule,this.config,o,di).pipe((0,wr.U)(function(u){return t.createUrlTree(IZ(u),t.urlTree.queryParams,t.urlTree.fragment)})).pipe((0,Yf.K)(function(u){if(u instanceof PV)return t.allowRedirects=!1,t.match(u.urlTree);throw u instanceof wS?t.noMatchError(u):u}))}},{key:"match",value:function(t){var i=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,di).pipe((0,wr.U)(function(s){return i.createUrlTree(IZ(s),t.queryParams,t.fragment)})).pipe((0,Yf.K)(function(s){throw s instanceof wS?i.noMatchError(s):s}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,i,o){var a=t.segments.length>0?new gi([],(0,V.Z)({},di,t)):t;return new iv(a,i,o)}},{key:"expandSegmentGroup",value:function(t,i,o,a){return 0===o.segments.length&&o.hasChildren()?this.expandChildren(t,i,o).pipe((0,wr.U)(function(s){return new gi([],s)})):this.expandSegment(t,o,i,o.segments,a,!0)}},{key:"expandChildren",value:function(t,i,o){for(var a=this,s=[],u=0,p=Object.keys(o.children);u1||!a.children[di])return Eie(t.redirectTo);a=a.children[di]}}},{key:"applyRedirectCommands",value:function(t,i,o){return this.applyRedirectCreatreUrlTree(i,this.urlSerializer.parse(i),t,o)}},{key:"applyRedirectCreatreUrlTree",value:function(t,i,o,a){var s=this.createSegmentGroup(t,i.root,o,a);return new iv(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}},{key:"createQueryParams",value:function(t,i){var o={};return ps(t,function(a,s){if("string"==typeof a&&a.startsWith(":")){var p=a.substring(1);o[s]=i[p]}else o[s]=a}),o}},{key:"createSegmentGroup",value:function(t,i,o,a){var s=this,u=this.createSegments(t,i.segments,o,a),p={};return ps(i.children,function(m,b){p[b]=s.createSegmentGroup(t,m,o,a)}),new gi(u,p)}},{key:"createSegments",value:function(t,i,o,a){var s=this;return i.map(function(u){return u.path.startsWith(":")?s.findPosParam(t,u,a):s.findOrReturn(u,o)})}},{key:"findPosParam",value:function(t,i,o){var a=o[i.path.substring(1)];if(!a)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(i.path,"'."));return a}},{key:"findOrReturn",value:function(t,i){var s,o=0,a=(0,v.Z)(i);try{for(a.s();!(s=a.n()).done;){var u=s.value;if(u.path===t.path)return i.splice(o),u;o++}}catch(p){a.e(p)}finally{a.f()}return t}}]),n}();function IZ(n){for(var r={},t=0,i=Object.keys(n.children);t0||s.hasChildren())&&(r[o]=s)}return function(n){if(1===n.numberOfChildren&&n.children[di]){var r=n.children[di];return new gi(n.segments.concat(r.segments),r.children)}return n}(new gi(n.segments,r))}var RV=function n(r){(0,g.Z)(this,n),this.path=r,this.route=this.path[this.path.length-1]},n2=function n(r,t){(0,g.Z)(this,n),this.component=r,this.route=t};function Iie(n,r,t){var i=n._root;return kS(i,r?r._root:null,t,[i.value])}function r2(n,r,t){var i=function(n){if(!n)return null;for(var r=n.parent;r;r=r.parent){var t=r.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(r);return(i?i.module.injector:t).get(n)}function kS(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=CS(r);return n.children.forEach(function(s){Zie(s,a[s.value.outlet],t,i.concat([s.value]),o),delete a[s.value.outlet]}),ps(a,function(s,u){return ES(s,t.getContext(u),o)}),o}function Zie(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=n.value,s=r?r.value:null,u=t?t.getContext(n.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var p=Lie(s,a,a.routeConfig.runGuardsAndResolvers);p?o.canActivateChecks.push(new RV(i)):(a.data=s.data,a._resolvedData=s._resolvedData),kS(n,r,a.component?u?u.children:null:t,i,o),p&&u&&u.outlet&&u.outlet.isActivated&&o.canDeactivateChecks.push(new n2(u.outlet.component,s))}else s&&ES(r,u,o),o.canActivateChecks.push(new RV(i)),kS(n,null,a.component?u?u.children:null:t,i,o);return o}function Lie(n,r,t){if("function"==typeof t)return t(n,r);switch(t){case"pathParamsChange":return!ov(n.url,r.url);case"pathParamsOrQueryParamsChange":return!ov(n.url,r.url)||!nd(n.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!EZ(n,r)||!nd(n.queryParams,r.queryParams);case"paramsChange":default:return!EZ(n,r)}}function ES(n,r,t){var i=CS(n),o=n.value;ps(i,function(a,s){ES(a,o.component?r?r.children.getContext(s):null:r,t)}),t.canDeactivateChecks.push(new n2(o.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,o))}var Wie=function n(){(0,g.Z)(this,n)};function NV(n){return new ta.y(function(r){return r.error(n)})}var Yie=function(){function n(r,t,i,o,a,s){(0,g.Z)(this,n),this.rootComponentType=r,this.config=t,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=s}return(0,k.Z)(n,[{key:"recognize",value:function(){var t=$A(this.urlTree.root,[],[],this.config.filter(function(u){return void 0===u.redirectTo}),this.relativeLinkResolution).segmentGroup,i=this.processSegmentGroup(this.config,t,di);if(null===i)return null;var o=new YA([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},di,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new dp(o,i),s=new gV(this.url,a);return this.inheritParamsAndData(s._root),s}},{key:"inheritParamsAndData",value:function(t){var i=this,o=t.value,a=vV(o,this.paramsInheritanceStrategy);o.params=Object.freeze(a.params),o.data=Object.freeze(a.data),t.children.forEach(function(s){return i.inheritParamsAndData(s)})}},{key:"processSegmentGroup",value:function(t,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,i):this.processSegment(t,i,i.segments,o)}},{key:"processChildren",value:function(t,i){for(var o=[],a=0,s=Object.keys(i.children);a0?rV(o).parameters:{};s=new YA(o,m,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,BV(t),wu(t),t.component,t,LV(i),FV(i)+o.length,UV(t))}else{var b=XA(i,t,o);if(!b.matched)return null;u=b.consumedSegments,p=o.slice(b.lastChild),s=new YA(u,b.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,BV(t),wu(t),t.component,t,LV(i),FV(i)+u.length,UV(t))}var I=function(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(t),F=$A(i,u,p,I.filter(function(st){return void 0===st.redirectTo}),this.relativeLinkResolution),G=F.segmentGroup,Y=F.slicedSegments;if(0===Y.length&&G.hasChildren()){var $=this.processChildren(I,G);return null===$?null:[new dp(s,$)]}if(0===I.length&&0===Y.length)return[new dp(s,[])];var de=wu(t)===a,Me=this.processSegment(I,G,Y,de?di:a);return null===Me?null:[new dp(s,Me)]}}]),n}();function ZV(n){var o,r=[],t=new Set,i=(0,v.Z)(n);try{var a=function(){var F=o.value;if(!function(n){var r=n.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(F))return r.push(F),"continue";var Y,G=r.find(function($){return F.value.routeConfig===$.value.routeConfig});void 0!==G?((Y=G.children).push.apply(Y,(0,_.Z)(F.children)),t.add(G)):r.push(F)};for(i.s();!(o=i.n()).done;)a()}catch(I){i.e(I)}finally{i.f()}var p,u=(0,v.Z)(t);try{for(u.s();!(p=u.n()).done;){var m=p.value,b=ZV(m.children);r.push(new dp(m.value,b))}}catch(I){u.e(I)}finally{u.f()}return r.filter(function(I){return!t.has(I)})}function LV(n){for(var r=n;r._sourceSegment;)r=r._sourceSegment;return r}function FV(n){for(var r=n,t=r._segmentIndexShift?r._segmentIndexShift:0;r._sourceSegment;)t+=(r=r._sourceSegment)._segmentIndexShift?r._segmentIndexShift:0;return t-1}function BV(n){return n.data||{}}function UV(n){return n.resolve||{}}function RZ(n){return(0,Us.w)(function(r){var t=n(r);return t?(0,ss.D)(t).pipe((0,wr.U)(function(){return r})):(0,rr.of)(r)})}var ooe=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(){return(0,g.Z)(this,t),r.apply(this,arguments)}return t}(function(){function n(){(0,g.Z)(this,n)}return(0,k.Z)(n,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,i){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,i){return t.routeConfig===i.routeConfig}}]),n}()),NZ=new e.OlP("ROUTES"),HV=function(){function n(r,t,i,o){(0,g.Z)(this,n),this.loader=r,this.compiler=t,this.onLoadStartListener=i,this.onLoadEndListener=o}return(0,k.Z)(n,[{key:"load",value:function(t,i){var o=this;if(i._loader$)return i._loader$;this.onLoadStartListener&&this.onLoadStartListener(i);var s=this.loadModuleFactory(i.loadChildren).pipe((0,wr.U)(function(u){o.onLoadEndListener&&o.onLoadEndListener(i);var p=u.create(t);return new OZ(nV(p.injector.get(NZ,void 0,e.XFs.Self|e.XFs.Optional)).map(PZ),p)}),(0,Yf.K)(function(u){throw i._loader$=void 0,u}));return i._loader$=new Tre.c(s,function(){return new On.xQ}).pipe((0,wre.x)()),i._loader$}},{key:"loadModuleFactory",value:function(t){var i=this;return"string"==typeof t?(0,ss.D)(this.loader.load(t)):rd(t()).pipe((0,ua.zg)(function(o){return o instanceof e.YKP?(0,rr.of)(o):(0,ss.D)(i.compiler.compileModuleAsync(o))}))}}]),n}(),aoe=function n(){(0,g.Z)(this,n),this.outlet=null,this.route=null,this.resolver=null,this.children=new ty,this.attachRef=null},ty=function(){function n(){(0,g.Z)(this,n),this.contexts=new Map}return(0,k.Z)(n,[{key:"onChildOutletCreated",value:function(t,i){var o=this.getOrCreateContext(t);o.outlet=i,this.contexts.set(t,o)}},{key:"onChildOutletDestroyed",value:function(t){var i=this.getContext(t);i&&(i.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var i=this.getContext(t);return i||(i=new aoe,this.contexts.set(t,i)),i}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),n}(),loe=function(){function n(){(0,g.Z)(this,n)}return(0,k.Z)(n,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,i){return t}}]),n}();function uoe(n){throw n}function coe(n,r,t){return r.parse("/")}function VV(n,r){return(0,rr.of)(null)}var doe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},poe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},kr=function(){var n=function(){function r(t,i,o,a,s,u,p,m){var b=this;(0,g.Z)(this,r),this.rootComponentType=t,this.urlSerializer=i,this.rootContexts=o,this.location=a,this.config=m,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new On.xQ,this.errorHandler=uoe,this.malformedUriErrorHandler=coe,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:VV,afterPreactivation:VV},this.urlHandlingStrategy=new loe,this.routeReuseStrategy=new ooe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(e.h0i),this.console=s.get(e.c2e);var G=s.get(e.R0b);this.isNgZoneEnabled=G instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(m),this.currentUrlTree=new iv(new gi([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new HV(u,p,function($){return b.triggerEvent(new KH($))},function($){return b.triggerEvent(new XH($))}),this.routerState=mV(this.currentUrlTree,this.rootComponentType),this.transitions=new to.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return(0,k.Z)(r,[{key:"browserPageId",get:function(){var i;return null===(i=this.location.getState())||void 0===i?void 0:i.\u0275routerPageId}},{key:"setupNavigations",value:function(i){var o=this,a=this.events;return i.pipe((0,vi.h)(function(s){return 0!==s.id}),(0,wr.U)(function(s){return Object.assign(Object.assign({},s),{extractedUrl:o.urlHandlingStrategy.extract(s.rawUrl)})}),(0,Us.w)(function(s){var u=!1,p=!1;return(0,rr.of)(s).pipe((0,La.b)(function(m){o.currentNavigation={id:m.id,initialUrl:m.currentRawUrl,extractedUrl:m.extractedUrl,trigger:m.source,extras:m.extras,previousNavigation:o.lastSuccessfulNavigation?Object.assign(Object.assign({},o.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Us.w)(function(m){var b=o.browserUrlTree.toString(),I=!o.navigated||m.extractedUrl.toString()!==b||b!==o.currentUrlTree.toString();if(("reload"===o.onSameUrlNavigation||I)&&o.urlHandlingStrategy.shouldProcessUrl(m.rawUrl))return o2(m.source)&&(o.browserUrlTree=m.extractedUrl),(0,rr.of)(m).pipe((0,Us.w)(function(pt){var Je=o.transitions.getValue();return a.next(new VA(pt.id,o.serializeUrl(pt.extractedUrl),pt.source,pt.restoredState)),Je!==o.transitions.getValue()?nv.E:Promise.resolve(pt)}),function(n,r,t,i){return(0,Us.w)(function(o){return function(n,r,t,i,o){return new Die(n,r,t,i,o).apply()}(n,r,t,o.extractedUrl,i).pipe((0,wr.U)(function(a){return Object.assign(Object.assign({},o),{urlAfterRedirects:a})}))})}(o.ngModule.injector,o.configLoader,o.urlSerializer,o.config),(0,La.b)(function(pt){o.currentNavigation=Object.assign(Object.assign({},o.currentNavigation),{finalUrl:pt.urlAfterRedirects})}),function(n,r,t,i,o){return(0,ua.zg)(function(a){return function(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var s=new Yie(n,r,t,i,o,a).recognize();return null===s?NV(new Wie):(0,rr.of)(s)}catch(u){return NV(u)}}(n,r,a.urlAfterRedirects,t(a.urlAfterRedirects),i,o).pipe((0,wr.U)(function(s){return Object.assign(Object.assign({},a),{targetSnapshot:s})}))})}(o.rootComponentType,o.config,function(pt){return o.serializeUrl(pt)},o.paramsInheritanceStrategy,o.relativeLinkResolution),(0,La.b)(function(pt){"eager"===o.urlUpdateStrategy&&(pt.extras.skipLocationChange||o.setBrowserUrl(pt.urlAfterRedirects,pt),o.browserUrlTree=pt.urlAfterRedirects);var Je=new kre(pt.id,o.serializeUrl(pt.extractedUrl),o.serializeUrl(pt.urlAfterRedirects),pt.targetSnapshot);a.next(Je)}));if(I&&o.rawUrlTree&&o.urlHandlingStrategy.shouldProcessUrl(o.rawUrlTree)){var $=m.extractedUrl,de=m.source,Me=m.restoredState,st=m.extras,tt=new VA(m.id,o.serializeUrl($),de,Me);a.next(tt);var at=mV($,o.rootComponentType).snapshot;return(0,rr.of)(Object.assign(Object.assign({},m),{targetSnapshot:at,urlAfterRedirects:$,extras:Object.assign(Object.assign({},st),{skipLocationChange:!1,replaceUrl:!1})}))}return o.rawUrlTree=m.rawUrl,o.browserUrlTree=m.urlAfterRedirects,m.resolve(null),nv.E}),RZ(function(m){var Y=m.extras;return o.hooks.beforePreactivation(m.targetSnapshot,{navigationId:m.id,appliedUrlTree:m.extractedUrl,rawUrlTree:m.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),(0,La.b)(function(m){var b=new Ere(m.id,o.serializeUrl(m.extractedUrl),o.serializeUrl(m.urlAfterRedirects),m.targetSnapshot);o.triggerEvent(b)}),(0,wr.U)(function(m){return Object.assign(Object.assign({},m),{guards:Iie(m.targetSnapshot,m.currentSnapshot,o.rootContexts)})}),function(n,r){return(0,ua.zg)(function(t){var i=t.targetSnapshot,o=t.currentSnapshot,a=t.guards,s=a.canActivateChecks,u=a.canDeactivateChecks;return 0===u.length&&0===s.length?(0,rr.of)(Object.assign(Object.assign({},t),{guardsResult:!0})):function(n,r,t,i){return(0,ss.D)(n).pipe((0,ua.zg)(function(o){return function(n,r,t,i,o){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return(0,rr.of)(!0);var s=a.map(function(u){var m,p=r2(u,r,o);if(function(n){return n&&Jf(n.canDeactivate)}(p))m=rd(p.canDeactivate(n,r,t,i));else{if(!Jf(p))throw new Error("Invalid CanDeactivate guard");m=rd(p(n,r,t,i))}return m.pipe((0,$_.P)())});return(0,rr.of)(s).pipe(xS())}(o.component,o.route,t,r,i)}),(0,$_.P)(function(o){return!0!==o},!0))}(u,i,o,n).pipe((0,ua.zg)(function(p){return p&&function(n){return"boolean"==typeof n}(p)?function(n,r,t,i){return(0,ss.D)(r).pipe((0,_S.b)(function(o){return(0,GH.z)(function(n,r){return null!==n&&r&&r(new Ore(n)),(0,rr.of)(!0)}(o.route.parent,i),function(n,r){return null!==n&&r&&r(new Ire(n)),(0,rr.of)(!0)}(o.route,i),function(n,r,t){var i=r[r.length-1],a=r.slice(0,r.length-1).reverse().map(function(s){return function(n){var r=n.routeConfig?n.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:n,guards:r}:null}(s)}).filter(function(s){return null!==s}).map(function(s){return(0,gZ.P)(function(){var u=s.guards.map(function(p){var b,m=r2(p,s.node,t);if(function(n){return n&&Jf(n.canActivateChild)}(m))b=rd(m.canActivateChild(i,n));else{if(!Jf(m))throw new Error("Invalid CanActivateChild guard");b=rd(m(i,n))}return b.pipe((0,$_.P)())});return(0,rr.of)(u).pipe(xS())})});return(0,rr.of)(a).pipe(xS())}(n,o.path,t),function(n,r,t){var i=r.routeConfig?r.routeConfig.canActivate:null;if(!i||0===i.length)return(0,rr.of)(!0);var o=i.map(function(a){return(0,gZ.P)(function(){var u,s=r2(a,r,t);if(function(n){return n&&Jf(n.canActivate)}(s))u=rd(s.canActivate(r,n));else{if(!Jf(s))throw new Error("Invalid CanActivate guard");u=rd(s(r,n))}return u.pipe((0,$_.P)())})});return(0,rr.of)(o).pipe(xS())}(n,o.route,t))}),(0,$_.P)(function(o){return!0!==o},!0))}(i,s,n,r):(0,rr.of)(p)}),(0,wr.U)(function(p){return Object.assign(Object.assign({},t),{guardsResult:p})}))})}(o.ngModule.injector,function(m){return o.triggerEvent(m)}),(0,La.b)(function(m){if(av(m.guardsResult)){var b=bZ('Redirecting to "'.concat(o.serializeUrl(m.guardsResult),'"'));throw b.url=m.guardsResult,b}var I=new Mre(m.id,o.serializeUrl(m.extractedUrl),o.serializeUrl(m.urlAfterRedirects),m.targetSnapshot,!!m.guardsResult);o.triggerEvent(I)}),(0,vi.h)(function(m){return!!m.guardsResult||(o.restoreHistory(m),o.cancelNavigationTransition(m,""),!1)}),RZ(function(m){if(m.guards.canActivateChecks.length)return(0,rr.of)(m).pipe((0,La.b)(function(b){var I=new Are(b.id,o.serializeUrl(b.extractedUrl),o.serializeUrl(b.urlAfterRedirects),b.targetSnapshot);o.triggerEvent(I)}),(0,Us.w)(function(b){var I=!1;return(0,rr.of)(b).pipe(function(n,r){return(0,ua.zg)(function(t){var i=t.targetSnapshot,o=t.guards.canActivateChecks;if(!o.length)return(0,rr.of)(t);var a=0;return(0,ss.D)(o).pipe((0,_S.b)(function(s){return function(n,r,t,i){return function(n,r,t,i){var o=Object.keys(n);if(0===o.length)return(0,rr.of)({});var a={};return(0,ss.D)(o).pipe((0,ua.zg)(function(s){return function(n,r,t,i){var o=r2(n,r,i);return rd(o.resolve?o.resolve(r,t):o(r,t))}(n[s],r,t,i).pipe((0,La.b)(function(u){a[s]=u}))}),(0,aE.h)(1),(0,ua.zg)(function(){return Object.keys(a).length===o.length?(0,rr.of)(a):nv.E}))}(n._resolve,n,r,i).pipe((0,wr.U)(function(a){return n._resolvedData=a,n.data=Object.assign(Object.assign({},n.data),vV(n,t).resolve),null}))}(s.route,i,n,r)}),(0,La.b)(function(){return a++}),(0,aE.h)(1),(0,ua.zg)(function(s){return a===o.length?(0,rr.of)(t):nv.E}))})}(o.paramsInheritanceStrategy,o.ngModule.injector),(0,La.b)({next:function(){return I=!0},complete:function(){I||(o.restoreHistory(b),o.cancelNavigationTransition(b,"At least one route resolver didn't emit any value."))}}))}),(0,La.b)(function(b){var I=new Dre(b.id,o.serializeUrl(b.extractedUrl),o.serializeUrl(b.urlAfterRedirects),b.targetSnapshot);o.triggerEvent(I)}))}),RZ(function(m){var Y=m.extras;return o.hooks.afterPreactivation(m.targetSnapshot,{navigationId:m.id,appliedUrlTree:m.extractedUrl,rawUrlTree:m.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),(0,wr.U)(function(m){var b=function(n,r,t){var i=JA(n,r._root,t?t._root:void 0);return new hV(i,r)}(o.routeReuseStrategy,m.targetSnapshot,m.currentRouterState);return Object.assign(Object.assign({},m),{targetRouterState:b})}),(0,La.b)(function(m){o.currentUrlTree=m.urlAfterRedirects,o.rawUrlTree=o.urlHandlingStrategy.merge(m.urlAfterRedirects,m.rawUrl),o.routerState=m.targetRouterState,"deferred"===o.urlUpdateStrategy&&(m.extras.skipLocationChange||o.setBrowserUrl(o.rawUrlTree,m),o.browserUrlTree=m.urlAfterRedirects)}),function(r,t,i){return(0,wr.U)(function(o){return new hie(t,o.targetRouterState,o.currentRouterState,i).activate(r),o})}(o.rootContexts,o.routeReuseStrategy,function(m){return o.triggerEvent(m)}),(0,La.b)({next:function(){u=!0},complete:function(){u=!0}}),(0,JH.x)(function(){if(!u&&!p){var m="Navigation ID ".concat(s.id," is not equal to the current navigation id ").concat(o.navigationId);"replace"===o.canceledNavigationResolution&&o.restoreHistory(s),o.cancelNavigationTransition(s,m)}o.currentNavigation=null}),(0,Yf.K)(function(m){if(p=!0,function(n){return n&&n[eV]}(m)){var b=av(m.url);b||(o.navigated=!0,o.restoreHistory(s,!0));var I=new yZ(s.id,o.serializeUrl(s.extractedUrl),m.message);a.next(I),b?setTimeout(function(){var G=o.urlHandlingStrategy.merge(m.url,o.rawUrlTree),Y={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===o.urlUpdateStrategy||o2(s.source)};o.scheduleNavigation(G,"imperative",null,Y,{resolve:s.resolve,reject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{o.restoreHistory(s,!0);var F=new QH(s.id,o.serializeUrl(s.extractedUrl),m);a.next(F);try{s.resolve(o.errorHandler(m))}catch(G){s.reject(G)}}return nv.E}))}))}},{key:"resetRootComponentType",value:function(i){this.rootComponentType=i,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var i=this.transitions.value;return i.urlAfterRedirects=this.browserUrlTree,i}},{key:"setTransition",value:function(i){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),i))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var i=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(o){var a=i.extractLocationChangeInfoFromEvent(o);i.shouldScheduleNavigation(i.lastLocationChangeInfo,a)&&setTimeout(function(){var s=a.source,u=a.state,p=a.urlTree,m={replaceUrl:!0};if(u){var b=Object.assign({},u);delete b.navigationId,delete b.\u0275routerPageId,0!==Object.keys(b).length&&(m.state=b)}i.scheduleNavigation(p,s,u,m)},0),i.lastLocationChangeInfo=a}))}},{key:"extractLocationChangeInfoFromEvent",value:function(i){var o;return{source:"popstate"===i.type?"popstate":"hashchange",urlTree:this.parseUrl(i.url),state:(null===(o=i.state)||void 0===o?void 0:o.navigationId)?i.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(i,o){if(!i)return!0;var a=o.urlTree.toString()===i.urlTree.toString();return!(o.transitionId===i.transitionId&&a&&("hashchange"===o.source&&"popstate"===i.source||"popstate"===o.source&&"hashchange"===i.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(i){this.events.next(i)}},{key:"resetConfig",value:function(i){EV(i),this.config=i.map(PZ),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.relativeTo,s=o.queryParams,u=o.fragment,p=o.queryParamsHandling,m=o.preserveFragment,b=a||this.routerState.root,I=m?this.currentUrlTree.fragment:u,F=null;switch(p){case"merge":F=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":F=this.currentUrlTree.queryParams;break;default:F=s||null}return null!==F&&(F=this.removeEmptyProps(F)),aie(b,this.currentUrlTree,i,F,null!=I?I:null)}},{key:"navigateByUrl",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},a=av(i)?i:this.parseUrl(i),s=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,o)}},{key:"navigate",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return foe(i),this.navigateByUrl(this.createUrlTree(i,o),o)}},{key:"serializeUrl",value:function(i){return this.urlSerializer.serialize(i)}},{key:"parseUrl",value:function(i){var o;try{o=this.urlSerializer.parse(i)}catch(a){o=this.malformedUriErrorHandler(a,this.urlSerializer,i)}return o}},{key:"isActive",value:function(i,o){var a;if(a=!0===o?Object.assign({},doe):!1===o?Object.assign({},poe):o,av(i))return oV(this.currentUrlTree,i,a);var s=this.parseUrl(i);return oV(this.currentUrlTree,s,a)}},{key:"removeEmptyProps",value:function(i){return Object.keys(i).reduce(function(o,a){var s=i[a];return null!=s&&(o[a]=s),o},{})}},{key:"processNavigations",value:function(){var i=this;this.navigations.subscribe(function(o){i.navigated=!0,i.lastSuccessfulId=o.id,i.currentPageId=o.targetPageId,i.events.next(new rv(o.id,i.serializeUrl(o.extractedUrl),i.serializeUrl(i.currentUrlTree))),i.lastSuccessfulNavigation=i.currentNavigation,o.resolve(!0)},function(o){i.console.warn("Unhandled Navigation Error: ".concat(o))})}},{key:"scheduleNavigation",value:function(i,o,a,s,u){var p,m;if(this.disposed)return Promise.resolve(!1);var $,de,Me,b=this.getTransition(),I=o2(o)&&b&&!o2(b.source),Y=(this.lastSuccessfulId===b.id||this.currentNavigation?b.rawUrl:b.urlAfterRedirects).toString()===i.toString();if(I&&Y)return Promise.resolve(!0);u?($=u.resolve,de=u.reject,Me=u.promise):Me=new Promise(function(pt,Je){$=pt,de=Je});var tt,st=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),tt=a&&a.\u0275routerPageId?a.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(p=this.browserPageId)&&void 0!==p?p:0:(null!==(m=this.browserPageId)&&void 0!==m?m:0)+1):tt=0,this.setTransition({id:st,targetPageId:tt,source:o,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:i,extras:s,resolve:$,reject:de,promise:Me,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Me.catch(function(pt){return Promise.reject(pt)})}},{key:"setBrowserUrl",value:function(i,o){var a=this.urlSerializer.serialize(i),s=Object.assign(Object.assign({},o.extras.state),this.generateNgRouterState(o.id,o.targetPageId));this.location.isCurrentPathEqualTo(a)||o.extras.replaceUrl?this.location.replaceState(a,"",s):this.location.go(a,"",s)}},{key:"restoreHistory",value:function(i){var a,s,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var u=this.currentPageId-i.targetPageId,p="popstate"===i.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl);p&&0!==u?this.location.historyGo(u):this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===u&&(this.resetState(i),this.browserUrlTree=i.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(o&&this.resetState(i),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(i){this.routerState=i.currentRouterState,this.currentUrlTree=i.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(i,o){var a=new yZ(i.id,this.serializeUrl(i.extractedUrl),o);this.triggerEvent(a),i.resolve(!1)}},{key:"generateNgRouterState",value:function(i,o){return"computed"===this.canceledNavigationResolution?{navigationId:i,"\u0275routerPageId":o}:{navigationId:i}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.DyG),e.LFG(CZ),e.LFG(ty),e.LFG(Et.Ye),e.LFG(e.zs3),e.LFG(e.v3s),e.LFG(e.Sil),e.LFG(void 0))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function foe(n){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};(0,g.Z)(this,r),this.router=t,this.viewportScroller=i,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}return(0,k.Z)(r,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var i=this;return this.router.events.subscribe(function(o){o instanceof VA?(i.store[i.lastId]=i.viewportScroller.getScrollPosition(),i.lastSource=o.navigationTrigger,i.restoredId=o.restoredState?o.restoredState.navigationId:0):o instanceof rv&&(i.lastId=o.id,i.scheduleScrollEvent(o,i.router.parseUrl(o.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var i=this;return this.router.events.subscribe(function(o){o instanceof $H&&(o.position?"top"===i.options.scrollPositionRestoration?i.viewportScroller.scrollToPosition([0,0]):"enabled"===i.options.scrollPositionRestoration&&i.viewportScroller.scrollToPosition(o.position):o.anchor&&"enabled"===i.options.anchorScrolling?i.viewportScroller.scrollToAnchor(o.anchor):"disabled"!==i.options.scrollPositionRestoration&&i.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(i,o){this.router.triggerEvent(new $H(i,"popstate"===this.lastSource?this.store[this.restoredId]:null,o))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(kr),e.LFG(Et.EM),e.LFG(void 0))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),sv=new e.OlP("ROUTER_CONFIGURATION"),WV=new e.OlP("ROUTER_FORROOT_GUARD"),yoe=[Et.Ye,{provide:CZ,useClass:uV},{provide:kr,useFactory:function(n,r,t,i,o,a,s){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},p=arguments.length>8?arguments[8]:void 0,m=arguments.length>9?arguments[9]:void 0,b=new kr(null,n,r,t,i,o,a,nV(s));return p&&(b.urlHandlingStrategy=p),m&&(b.routeReuseStrategy=m),woe(u,b),u.enableTracing&&b.events.subscribe(function(I){var F,G;null===(F=console.group)||void 0===F||F.call(console,"Router Event: ".concat(I.constructor.name)),console.log(I.toString()),console.log(I),null===(G=console.groupEnd)||void 0===G||G.call(console)}),b},deps:[CZ,ty,Et.Ye,e.zs3,e.v3s,e.Sil,NZ,sv,[function n(){(0,g.Z)(this,n)},new e.FiY],[function n(){(0,g.Z)(this,n)},new e.FiY]]},ty,{provide:Pr,useFactory:function(n){return n.routerState.root},deps:[kr]},{provide:e.v3s,useClass:e.EAV},zV,jV,goe,{provide:sv,useValue:{enableTracing:!1}}];function boe(){return new e.PXZ("Router",kr)}var GV=function(){var n=function(){function r(t,i){(0,g.Z)(this,r)}return(0,k.Z)(r,null,[{key:"forRoot",value:function(i,o){return{ngModule:r,providers:[yoe,YV(i),{provide:WV,useFactory:Toe,deps:[[kr,new e.FiY,new e.tp0]]},{provide:sv,useValue:o||{}},{provide:Et.S$,useFactory:Soe,deps:[Et.lw,[new e.tBr(Et.mr),new e.FiY],sv]},{provide:ZZ,useFactory:Coe,deps:[kr,Et.EM,sv]},{provide:qV,useExisting:o&&o.preloadingStrategy?o.preloadingStrategy:jV},{provide:e.PXZ,multi:!0,useFactory:boe},[LZ,{provide:e.ip1,multi:!0,useFactory:Eoe,deps:[LZ]},{provide:JV,useFactory:Moe,deps:[LZ]},{provide:e.tb,multi:!0,useExisting:JV}]]}}},{key:"forChild",value:function(i){return{ngModule:r,providers:[YV(i)]}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(WV,8),e.LFG(kr,8))},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n}();function Coe(n,r,t){return t.scrollOffset&&r.setOffset(t.scrollOffset),new ZZ(n,r,t)}function Soe(n,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new Et.Do(n,r):new Et.b0(n,r)}function Toe(n){return"guarded"}function YV(n){return[{provide:e.deG,multi:!0,useValue:n},{provide:NZ,multi:!0,useValue:n}]}function woe(n,r){n.errorHandler&&(r.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(r.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(r.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(r.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(r.urlUpdateStrategy=n.urlUpdateStrategy)}var LZ=function(){var n=function(){function r(t){(0,g.Z)(this,r),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new On.xQ}return(0,k.Z)(r,[{key:"appInitializer",value:function(){var i=this;return this.injector.get(Et.V_,Promise.resolve(null)).then(function(){if(i.destroyed)return Promise.resolve(!0);var a=null,s=new Promise(function(m){return a=m}),u=i.injector.get(kr),p=i.injector.get(sv);return"disabled"===p.initialNavigation?(u.setUpLocationChangeListener(),a(!0)):"enabled"===p.initialNavigation||"enabledBlocking"===p.initialNavigation?(u.hooks.afterPreactivation=function(){return i.initNavigation?(0,rr.of)(null):(i.initNavigation=!0,a(!0),i.resultOfPreactivationDone)},u.initialNavigation()):a(!0),s})}},{key:"bootstrapListener",value:function(i){var o=this.injector.get(sv),a=this.injector.get(zV),s=this.injector.get(ZZ),u=this.injector.get(kr),p=this.injector.get(e.z2F);i===p.components[0]&&(("enabledNonBlocking"===o.initialNavigation||void 0===o.initialNavigation)&&u.initialNavigation(),a.setUpPreloading(),s.init(),u.resetRootComponentType(p.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.zs3))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function Eoe(n){return n.appInitializer.bind(n)}function Moe(n){return n.bootstrapListener.bind(n)}var JV=new e.OlP("Router Initializer"),s2=function(){return function(){}}(),Yo=f(96153),Hr=function(){function n(r){this.httpServer=r,this.serverIds=[],this.serviceInitialized=new On.xQ,this.serverIds=this.getServerIds(),this.isServiceInitialized=!0,this.serviceInitialized.next(this.isServiceInitialized)}return n.prototype.getServerIds=function(){var r=localStorage.getItem("serverIds");return(null==r?void 0:r.length)>0?r.split(","):[]},n.prototype.updateServerIds=function(){localStorage.removeItem("serverIds"),localStorage.setItem("serverIds",this.serverIds.toString())},n.prototype.get=function(r){var t=JSON.parse(localStorage.getItem("server-"+r));return new Promise(function(o){o(t)})},n.prototype.create=function(r){return r.id=this.serverIds.length+1,localStorage.setItem("server-"+r.id,JSON.stringify(r)),this.serverIds.push("server-"+r.id),this.updateServerIds(),new Promise(function(i){i(r)})},n.prototype.update=function(r){return localStorage.removeItem("server-"+r.id),localStorage.setItem("server-"+r.id,JSON.stringify(r)),new Promise(function(i){i(r)})},n.prototype.findAll=function(){var r=this;return new Promise(function(i){var o=[];r.serverIds.forEach(function(a){var s=JSON.parse(localStorage.getItem(a));o.push(s)}),i(o)})},n.prototype.delete=function(r){return localStorage.removeItem("server-"+r.id),this.serverIds=this.serverIds.filter(function(i){return i!=="server-"+r.id}),this.updateServerIds(),new Promise(function(i){i(r.id)})},n.prototype.getServerUrl=function(r){return r.protocol+"//"+r.host+":"+r.port+"/"},n.prototype.checkServerVersion=function(r){return this.httpServer.get(r,"/version")},n.prototype.getLocalServer=function(r,t){var i=this;return new Promise(function(a,s){i.findAll().then(function(u){var p=u.find(function(b){return"bundled"===b.location});if(p)p.host=r,p.port=t,p.protocol=location.protocol,i.update(p).then(function(b){a(b)},s);else{var m=new s2;m.name="local",m.host=r,m.port=t,m.location="bundled",m.protocol=location.protocol,i.create(m).then(function(b){a(b)},s)}},s)})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Yo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),MS=function(){return function(r,t,i){void 0===i&&(i=!1),this.visible=r,this.error=t,this.clear=i}}(),Qf=function(){function n(){this.state=new to.X(new MS(!1))}return n.prototype.setError=function(r){this.state.next(new MS(!1,r.error))},n.prototype.clear=function(){this.state.next(new MS(!1,null,!0))},n.prototype.activate=function(){this.state.next(new MS(!0))},n.prototype.deactivate=function(){this.state.next(new MS(!1))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function Doe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}function Ooe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw();e.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}function Poe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}function Ioe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw();e.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}var QV=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",Noe=(0,ln.pj)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}(),"primary"),KV=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),Foe=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p){var m;(0,g.Z)(this,i),(m=t.call(this,o))._document=s,m._diameter=100,m._value=0,m._fallbackAnimation=!1,m.mode="determinate";var b=i._diameters;return m._spinnerAnimationLabel=m._getSpinnerAnimationLabel(),b.has(s.head)||b.set(s.head,new Set([100])),m._fallbackAnimation=a.EDGE||a.TRIDENT,m._noopAnimations="NoopAnimations"===u&&!!p&&!p._forceAnimations,p&&(p.diameter&&(m.diameter=p.diameter),p.strokeWidth&&(m.strokeWidth=p.strokeWidth)),m}return(0,k.Z)(i,[{key:"diameter",get:function(){return this._diameter},set:function(a){this._diameter=(0,Dn.su)(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(a){this._strokeWidth=(0,Dn.su)(a)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(a){this._value=Math.max(0,Math.min(100,(0,Dn.su)(a)))}},{key:"ngOnInit",value:function(){var a=this._elementRef.nativeElement;this._styleRoot=(0,$r.kV)(a)||this._document.head,this._attachStyleNode();var s="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");a.classList.add(s)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var a=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(a," ").concat(a)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var a=this._styleRoot,s=this._diameter,u=i._diameters,p=u.get(a);if(!p||!p.has(s)){var m=this._document.createElement("style");m.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),m.textContent=this._getAnimationText(),a.appendChild(m),p||(p=new Set,u.set(a,p)),p.add(s)}}},{key:"_getAnimationText",value:function(){var a=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*a)).replace(/END_VALUE/g,"".concat(.2*a)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),i}(Noe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36($r.t4),e.Y36(Et.K0,8),e.Y36(_s.Qb,8),e.Y36(KV))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,i){2&t&&(e.uIk("aria-valuemin","determinate"===i.mode?0:null)("aria-valuemax","determinate"===i.mode?100:null)("aria-valuenow","determinate"===i.mode?i.value:null)("mode",i.mode),e.Udp("width",i.diameter,"px")("height",i.diameter,"px"),e.ekj("_mat-animation-noopable",i._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,i){1&t&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,Doe,1,9,"circle",1),e.YNc(2,Ooe,1,7,"circle",2),e.qZA()),2&t&&(e.Udp("width",i.diameter,"px")("height",i.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===i.mode),e.uIk("viewBox",i._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[Et.RF,Et.n9],styles:[QV],encapsulation:2,changeDetection:0}),n._diameters=new WeakMap,n}(),XV=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p){var m;return(0,g.Z)(this,i),(m=t.call(this,o,a,s,u,p)).mode="indeterminate",m}return i}(Foe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36($r.t4),e.Y36(Et.K0,8),e.Y36(_s.Qb,8),e.Y36(KV))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,i){2&t&&(e.Udp("width",i.diameter,"px")("height",i.diameter,"px"),e.ekj("_mat-animation-noopable",i._noopAnimations))},inputs:{color:"color"},features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,i){1&t&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,Poe,1,9,"circle",1),e.YNc(2,Ioe,1,7,"circle",2),e.qZA()),2&t&&(e.Udp("width",i.diameter,"px")("height",i.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===i.mode),e.uIk("viewBox",i._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[Et.RF,Et.n9],styles:[QV],encapsulation:2,changeDetection:0}),n}(),Boe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[ln.BQ,Et.ez],ln.BQ]}),n}(),Uoe=f(11363),BZ=f(91925),Hoe=["*"];function $V(n){return Error('Unable to find icon with the name "'.concat(n,'"'))}function eq(n){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(n,'".'))}function tq(n){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(n,'".'))}var lv=function n(r,t,i){(0,g.Z)(this,n),this.url=r,this.svgText=t,this.options=i},AS=function(){var n=function(){function r(t,i,o,a){(0,g.Z)(this,r),this._httpClient=t,this._sanitizer=i,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=o}return(0,k.Z)(r,[{key:"addSvgIcon",value:function(i,o,a){return this.addSvgIconInNamespace("",i,o,a)}},{key:"addSvgIconLiteral",value:function(i,o,a){return this.addSvgIconLiteralInNamespace("",i,o,a)}},{key:"addSvgIconInNamespace",value:function(i,o,a,s){return this._addSvgIconConfig(i,o,new lv(a,null,s))}},{key:"addSvgIconResolver",value:function(i){return this._resolvers.push(i),this}},{key:"addSvgIconLiteralInNamespace",value:function(i,o,a,s){var u=this._sanitizer.sanitize(e.q3G.HTML,a);if(!u)throw tq(a);return this._addSvgIconConfig(i,o,new lv("",u,s))}},{key:"addSvgIconSet",value:function(i,o){return this.addSvgIconSetInNamespace("",i,o)}},{key:"addSvgIconSetLiteral",value:function(i,o){return this.addSvgIconSetLiteralInNamespace("",i,o)}},{key:"addSvgIconSetInNamespace",value:function(i,o,a){return this._addSvgIconSetConfig(i,new lv(o,null,a))}},{key:"addSvgIconSetLiteralInNamespace",value:function(i,o,a){var s=this._sanitizer.sanitize(e.q3G.HTML,o);if(!s)throw tq(o);return this._addSvgIconSetConfig(i,new lv("",s,a))}},{key:"registerFontClassAlias",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return this._fontCssClassesByAlias.set(i,o),this}},{key:"classNameForFontAlias",value:function(i){return this._fontCssClassesByAlias.get(i)||i}},{key:"setDefaultFontSetClass",value:function(i){return this._defaultFontSetClass=i,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(i){var o=this,a=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,i);if(!a)throw eq(i);var s=this._cachedIconsByUrl.get(a);return s?(0,rr.of)(l2(s)):this._loadSvgIconFromConfig(new lv(i,null)).pipe((0,La.b)(function(u){return o._cachedIconsByUrl.set(a,u)}),(0,wr.U)(function(u){return l2(u)}))}},{key:"getNamedSvgIcon",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=nq(o,i),s=this._svgIconConfigs.get(a);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(o,i))return this._svgIconConfigs.set(a,s),this._getSvgFromConfig(s);var u=this._iconSetConfigs.get(o);return u?this._getSvgFromIconSetConfigs(i,u):(0,Uoe._)($V(a))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(i){return i.svgText?(0,rr.of)(l2(this._svgElementFromConfig(i))):this._loadSvgIconFromConfig(i).pipe((0,wr.U)(function(o){return l2(o)}))}},{key:"_getSvgFromIconSetConfigs",value:function(i,o){var a=this,s=this._extractIconWithNameFromAnySet(i,o);if(s)return(0,rr.of)(s);var u=o.filter(function(p){return!p.svgText}).map(function(p){return a._loadSvgIconSetFromConfig(p).pipe((0,Yf.K)(function(m){var b=a._sanitizer.sanitize(e.q3G.RESOURCE_URL,p.url),I="Loading icon set URL: ".concat(b," failed: ").concat(m.message);return a._errorHandler.handleError(new Error(I)),(0,rr.of)(null)}))});return(0,BZ.D)(u).pipe((0,wr.U)(function(){var p=a._extractIconWithNameFromAnySet(i,o);if(!p)throw $V(i);return p}))}},{key:"_extractIconWithNameFromAnySet",value:function(i,o){for(var a=o.length-1;a>=0;a--){var s=o[a];if(s.svgText&&s.svgText.indexOf(i)>-1){var u=this._svgElementFromConfig(s),p=this._extractSvgIconFromSet(u,i,s.options);if(p)return p}}return null}},{key:"_loadSvgIconFromConfig",value:function(i){var o=this;return this._fetchIcon(i).pipe((0,La.b)(function(a){return i.svgText=a}),(0,wr.U)(function(){return o._svgElementFromConfig(i)}))}},{key:"_loadSvgIconSetFromConfig",value:function(i){return i.svgText?(0,rr.of)(null):this._fetchIcon(i).pipe((0,La.b)(function(o){return i.svgText=o}))}},{key:"_extractSvgIconFromSet",value:function(i,o,a){var s=i.querySelector('[id="'.concat(o,'"]'));if(!s)return null;var u=s.cloneNode(!0);if(u.removeAttribute("id"),"svg"===u.nodeName.toLowerCase())return this._setSvgAttributes(u,a);if("symbol"===u.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(u),a);var p=this._svgElementFromString("");return p.appendChild(u),this._setSvgAttributes(p,a)}},{key:"_svgElementFromString",value:function(i){var o=this._document.createElement("DIV");o.innerHTML=i;var a=o.querySelector("svg");if(!a)throw Error(" tag not found");return a}},{key:"_toSvgElement",value:function(i){for(var o=this._svgElementFromString(""),a=i.attributes,s=0;s*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",Xoe=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],$oe=(0,ln.pj)((0,ln.Id)((0,ln.Kr)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}()))),Mn=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s){var u;(0,g.Z)(this,i),(u=t.call(this,o))._focusMonitor=a,u._animationMode=s,u.isRoundButton=u._hasHostAttributes("mat-fab","mat-mini-fab"),u.isIconButton=u._hasHostAttributes("mat-icon-button");var m,p=(0,v.Z)(Xoe);try{for(p.s();!(m=p.n()).done;){var b=m.value;u._hasHostAttributes(b)&&u._getHostElement().classList.add(b)}}catch(I){p.e(I)}finally{p.f()}return o.nativeElement.classList.add("mat-button-base"),u.isRoundButton&&(u.color="accent"),u}return(0,k.Z)(i,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(a,s){a?this._focusMonitor.focusVia(this._getHostElement(),a,s):this._getHostElement().focus(s)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var a=this,s=arguments.length,u=new Array(s),p=0;p visible",(0,on.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,on.F4)([(0,on.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,on.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,on.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,on.eR)("* => hidden",(0,on.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,on.oB)({opacity:0})))])},cq="tooltip-panel",dq=(0,$r.i$)({passive:!0}),pq=new e.OlP("mat-tooltip-scroll-strategy"),lae={provide:pq,deps:[eo.aV],useFactory:function(n){return function(){return n.scrollStrategies.reposition({scrollThrottle:20})}}},uae=new e.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),dae=function(){var n=function(){function r(t,i,o,a,s,u,p,m,b,I,F,G){var Y=this;(0,g.Z)(this,r),this._overlay=t,this._elementRef=i,this._scrollDispatcher=o,this._viewContainerRef=a,this._ngZone=s,this._platform=u,this._ariaDescriber=p,this._focusMonitor=m,this._dir=I,this._defaultOptions=F,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new On.xQ,this._handleKeydown=function($){Y._isTooltipVisible()&&$.keyCode===Gr.hY&&!(0,Gr.Vb)($)&&($.preventDefault(),$.stopPropagation(),Y._ngZone.run(function(){return Y.hide(0)}))},this._scrollStrategy=b,this._document=G,F&&(F.position&&(this.position=F.position),F.touchGestures&&(this.touchGestures=F.touchGestures)),I.change.pipe((0,Fr.R)(this._destroyed)).subscribe(function(){Y._overlayRef&&Y._updatePosition(Y._overlayRef)}),s.runOutsideAngular(function(){i.nativeElement.addEventListener("keydown",Y._handleKeydown)})}return(0,k.Z)(r,[{key:"position",get:function(){return this._position},set:function(i){var o;i!==this._position&&(this._position=i,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(o=this._tooltipInstance)||void 0===o||o.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(i){this._disabled=(0,Dn.Ig)(i),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(i){var o=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=i?String(i).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){o._ariaDescriber.describe(o._elementRef.nativeElement,o.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(i){this._tooltipClass=i,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var i=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,Fr.R)(this._destroyed)).subscribe(function(o){o?"keyboard"===o&&i._ngZone.run(function(){return i.show()}):i._ngZone.run(function(){return i.hide(0)})})}},{key:"ngOnDestroy",value:function(){var i=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),i.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(o){var a=(0,C.Z)(o,2);i.removeEventListener(a[0],a[1],dq)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(i,this.message,"tooltip"),this._focusMonitor.stopMonitoring(i)}},{key:"show",value:function(){var i=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var a=this._createOverlay();this._detach(),this._portal=this._portal||new qi.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=a.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,Fr.R)(this._destroyed)).subscribe(function(){return i._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(o)}}},{key:"hide",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(i)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var i=this;if(this._overlayRef)return this._overlayRef;var o=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),a=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(o);return a.positionChanges.pipe((0,Fr.R)(this._destroyed)).subscribe(function(s){i._updateCurrentPositionClass(s.connectionPair),i._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&i._tooltipInstance.isVisible()&&i._ngZone.run(function(){return i.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:a,panelClass:"".concat(this._cssClassPrefix,"-").concat(cq),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Fr.R)(this._destroyed)).subscribe(function(){return i._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,Fr.R)(this._destroyed)).subscribe(function(){var s;return null===(s=i._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(i){var o=i.getConfig().positionStrategy,a=this._getOrigin(),s=this._getOverlayPosition();o.withPositions([this._addOffset(Object.assign(Object.assign({},a.main),s.main)),this._addOffset(Object.assign(Object.assign({},a.fallback),s.fallback))])}},{key:"_addOffset",value:function(i){return i}},{key:"_getOrigin",value:function(){var a,i=!this._dir||"ltr"==this._dir.value,o=this.position;"above"==o||"below"==o?a={originX:"center",originY:"above"==o?"top":"bottom"}:"before"==o||"left"==o&&i||"right"==o&&!i?a={originX:"start",originY:"center"}:("after"==o||"right"==o&&i||"left"==o&&!i)&&(a={originX:"end",originY:"center"});var s=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:s.x,originY:s.y}}}},{key:"_getOverlayPosition",value:function(){var a,i=!this._dir||"ltr"==this._dir.value,o=this.position;"above"==o?a={overlayX:"center",overlayY:"bottom"}:"below"==o?a={overlayX:"center",overlayY:"top"}:"before"==o||"left"==o&&i||"right"==o&&!i?a={overlayX:"end",overlayY:"center"}:("after"==o||"right"==o&&i||"left"==o&&!i)&&(a={overlayX:"start",overlayY:"center"});var s=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:s.x,overlayY:s.y}}}},{key:"_updateTooltipMessage",value:function(){var i=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,$i.q)(1),(0,Fr.R)(this._destroyed)).subscribe(function(){i._tooltipInstance&&i._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(i){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=i,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(i,o){return"above"===this.position||"below"===this.position?"top"===o?o="bottom":"bottom"===o&&(o="top"):"end"===i?i="start":"start"===i&&(i="end"),{x:i,y:o}}},{key:"_updateCurrentPositionClass",value:function(i){var u,o=i.overlayY,a=i.originX;if((u="center"===o?this._dir&&"rtl"===this._dir.value?"end"===a?"left":"right":"start"===a?"left":"right":"bottom"===o&&"top"===i.originY?"above":"below")!==this._currentPosition){var p=this._overlayRef;if(p){var m="".concat(this._cssClassPrefix,"-").concat(cq,"-");p.removePanelClass(m+this._currentPosition),p.addPanelClass(m+u)}this._currentPosition=u}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var i=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){i._setupPointerExitEventsIfNeeded(),i.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){i._setupPointerExitEventsIfNeeded(),clearTimeout(i._touchstartTimeout),i._touchstartTimeout=setTimeout(function(){return i.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var o,i=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var a=[];if(this._platformSupportsMouseEvents())a.push(["mouseleave",function(){return i.hide()}],["wheel",function(u){return i._wheelListener(u)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var s=function(){clearTimeout(i._touchstartTimeout),i.hide(i._defaultOptions.touchendHideDelay)};a.push(["touchend",s],["touchcancel",s])}this._addListeners(a),(o=this._passiveListeners).push.apply(o,a)}}},{key:"_addListeners",value:function(i){var o=this;i.forEach(function(a){var s=(0,C.Z)(a,2);o._elementRef.nativeElement.addEventListener(s[0],s[1],dq)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(i){if(this._isTooltipVisible()){var o=this._document.elementFromPoint(i.clientX,i.clientY),a=this._elementRef.nativeElement;o!==a&&!a.contains(o)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var i=this.touchGestures;if("off"!==i){var o=this._elementRef.nativeElement,a=o.style;("on"===i||"INPUT"!==o.nodeName&&"TEXTAREA"!==o.nodeName)&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),("on"===i||!o.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(eo.aV),e.Y36(e.SBq),e.Y36(Sa.mF),e.Y36(e.s_b),e.Y36(e.R0b),e.Y36($r.t4),e.Y36(Ti.$s),e.Y36(Ti.tE),e.Y36(void 0),e.Y36(Fa.Is),e.Y36(void 0),e.Y36(Et.K0))},n.\u0275dir=e.lG2({type:n,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n}(),Ja=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p,m,b,I,F,G,Y,$){var de;return(0,g.Z)(this,i),(de=t.call(this,o,a,s,u,p,m,b,I,F,G,Y,$))._tooltipComponent=fae,de}return i}(dae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(eo.aV),e.Y36(e.SBq),e.Y36(Sa.mF),e.Y36(e.s_b),e.Y36(e.R0b),e.Y36($r.t4),e.Y36(Ti.$s),e.Y36(Ti.tE),e.Y36(pq),e.Y36(Fa.Is,8),e.Y36(uae,8),e.Y36(Et.K0))},n.\u0275dir=e.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[e.qOj]}),n}(),pae=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new On.xQ}return(0,k.Z)(r,[{key:"show",value:function(i){var o=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){o._visibility="visible",o._showTimeoutId=void 0,o._onShow(),o._markForCheck()},i)}},{key:"hide",value:function(i){var o=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){o._visibility="hidden",o._hideTimeoutId=void 0,o._markForCheck()},i)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(i){var o=i.toState;"hidden"===o&&!this.isVisible()&&this._onHide.next(),("visible"===o||"hidden"===o)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.sBO))},n.\u0275dir=e.lG2({type:n}),n}(),fae=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a){var s;return(0,g.Z)(this,i),(s=t.call(this,o))._breakpointObserver=a,s._isHandset=s._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),s}return i}(pae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.sBO),e.Y36(c2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,i){2&t&&e.Udp("zoom","visible"===i._visibility?1:null)},features:[e.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,i){var o;1&t&&(e.TgZ(0,"div",0),e.NdJ("@state.start",function(){return i._animationStart()})("@state.done",function(s){return i._animationDone(s)}),e.ALo(1,"async"),e._uU(2),e.qZA()),2&t&&(e.ekj("mat-tooltip-handset",null==(o=e.lcZ(1,5,i._isHandset))?null:o.matches),e.Q6J("ngClass",i.tooltipClass)("@state",i._visibility),e.xp6(2),e.Oqu(i.message))},directives:[Et.mk],pipes:[Et.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[iae.tooltipState]},changeDetection:0}),n}(),fq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[lae],imports:[[Ti.rt,Et.ez,eo.U8,ln.BQ],ln.BQ,Sa.ZD]}),n}();function hae(n,r){1&n&&(e.TgZ(0,"div",4),e._UZ(1,"mat-spinner",5),e.qZA())}function mae(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"div",7),e.TgZ(2,"mat-icon"),e._uU(3,"error_outline"),e.qZA(),e.qZA(),e.TgZ(4,"div"),e._uU(5),e.qZA(),e.TgZ(6,"div"),e.TgZ(7,"button",8),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).refresh()}),e.TgZ(8,"mat-icon"),e._uU(9,"refresh"),e.qZA(),e.qZA(),e.TgZ(10,"button",9),e.TgZ(11,"mat-icon"),e._uU(12,"home"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(5),e.hij("Error occurred: ",i.error.message,"")}}function vae(n,r){if(1&n&&(e.TgZ(0,"div",1),e.YNc(1,hae,2,0,"div",2),e.YNc(2,mae,13,1,"div",3),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.visible&&!t.error),e.xp6(1),e.Q6J("ngIf",t.error)}}var HZ=function(){function n(r,t){this.progressService=r,this.router=t,this.visible=!1}return n.prototype.ngOnInit=function(){var r=this;this.progressService.state.subscribe(function(t){r.visible=t.visible,t.error&&!r.error&&(r.error=t.error),t.clear&&(r.error=null)}),this.routerSubscription=this.router.events.subscribe(function(){r.progressService.clear()})},n.prototype.refresh=function(){this.router.navigateByUrl(this.router.url)},n.prototype.ngOnDestroy=function(){this.routerSubscription.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Qf),e.Y36(kr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-progress"]],decls:1,vars:1,consts:[["class","overlay",4,"ngIf"],[1,"overlay"],["class","loading-spinner",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"loading-spinner"],["color","primary"],[1,"error-state"],[1,"error-icon"],["mat-button","","matTooltip","Refresh page","matTooltipClass","custom-tooltip",3,"click"],["mat-button","","routerLink","/","matTooltip","Go to home","matTooltipClass","custom-tooltip"]],template:function(t,i){1&t&&e.YNc(0,vae,3,2,"div",0),2&t&&e.Q6J("ngIf",i.visible||i.error)},directives:[Et.O5,XV,sr,Mn,Ja,fa],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.502);z-index:2000}.loading-spinner[_ngcontent-%COMP%], .error-state[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.error-state[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:center}.error-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px}"]}),n}(),gae=function(){function n(r,t,i,o){this.router=r,this.serverService=t,this.progressService=i,this.document=o}return n.prototype.ngOnInit=function(){var r=this;this.progressService.activate(),setTimeout(function(){var t;t=parseInt(r.document.location.port,10)?parseInt(r.document.location.port,10):"https:"==r.document.location.protocol?443:80,r.serverService.getLocalServer(r.document.location.hostname,t).then(function(i){r.progressService.deactivate(),r.router.navigate(["/server",i.id,"projects"])})},100)},n.\u0275fac=function(t){return new(t||n)(e.Y36(kr),e.Y36(Hr),e.Y36(Qf),e.Y36(Et.K0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-bundled-server-finder"]],decls:1,vars:0,template:function(t,i){1&t&&e._UZ(0,"app-progress")},directives:[HZ],styles:[""]}),n}(),Jn=f(61855),d2=function(){function n(){this.dataChange=new to.X([])}return Object.defineProperty(n.prototype,"data",{get:function(){return this.dataChange.value},enumerable:!1,configurable:!0}),n.prototype.addServer=function(r){var t=this.data.slice();t.push(r),this.dataChange.next(t)},n.prototype.addServers=function(r){this.dataChange.next(r)},n.prototype.remove=function(r){var t=this.data.indexOf(r);t>=0&&(this.data.splice(t,1),this.dataChange.next(this.data.slice()))},n.prototype.find=function(r){return this.data.find(function(t){return t.name===r})},n.prototype.findIndex=function(r){return this.data.findIndex(function(t){return t.name===r})},n.prototype.update=function(r){var t=this.findIndex(r.name);t>=0&&(this.data[t]=r,this.dataChange.next(this.data.slice()))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function _ae(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"button",2),e.NdJ("click",function(){return e.CHM(t),e.oxw().action()}),e._uU(2),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Oqu(i.data.action)}}function yae(n,r){}var hq=new e.OlP("MatSnackBarData"),p2=function n(){(0,g.Z)(this,n),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},bae=Math.pow(2,31)-1,VZ=function(){function n(r,t){var i=this;(0,g.Z)(this,n),this._overlayRef=t,this._afterDismissed=new On.xQ,this._afterOpened=new On.xQ,this._onAction=new On.xQ,this._dismissedByAction=!1,this.containerInstance=r,this.onAction().subscribe(function(){return i.dismiss()}),r._onExit.subscribe(function(){return i._finishDismiss()})}return(0,k.Z)(n,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var i=this;this._durationTimeoutId=setTimeout(function(){return i.dismiss()},Math.min(t,bae))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),n}(),Cae=function(){var n=function(){function r(t,i){(0,g.Z)(this,r),this.snackBarRef=t,this.data=i}return(0,k.Z)(r,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(VZ),e.Y36(hq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA(),e.YNc(2,_ae,3,1,"div",0)),2&t&&(e.xp6(1),e.Oqu(i.data.message),e.xp6(1),e.Q6J("ngIf",i.hasAction))},directives:[Et.O5,Mn],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),n}(),Sae={snackBarState:(0,on.X$)("state",[(0,on.SB)("void, hidden",(0,on.oB)({transform:"scale(0.8)",opacity:0})),(0,on.SB)("visible",(0,on.oB)({transform:"scale(1)",opacity:1})),(0,on.eR)("* => visible",(0,on.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,on.eR)("* => void, * => hidden",(0,on.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,on.oB)({opacity:0})))])},Tae=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p){var m;return(0,g.Z)(this,i),(m=t.call(this))._ngZone=o,m._elementRef=a,m._changeDetectorRef=s,m._platform=u,m.snackBarConfig=p,m._announceDelay=150,m._destroyed=!1,m._onAnnounce=new On.xQ,m._onExit=new On.xQ,m._onEnter=new On.xQ,m._animationState="void",m.attachDomPortal=function(b){return m._assertNotAttached(),m._applySnackBarClasses(),m._portalOutlet.attachDomPortal(b)},m._live="assertive"!==p.politeness||p.announcementMessage?"off"===p.politeness?"off":"polite":"assertive",m._platform.FIREFOX&&("polite"===m._live&&(m._role="status"),"assertive"===m._live&&(m._role="alert")),m}return(0,k.Z)(i,[{key:"attachComponentPortal",value:function(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(a)}},{key:"onAnimationEnd",value:function(a){var u=a.toState;if(("void"===u&&"void"!==a.fromState||"hidden"===u)&&this._completeExit(),"visible"===u){var p=this._onEnter;this._ngZone.run(function(){p.next(),p.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var a=this;this._ngZone.onMicrotaskEmpty.pipe((0,$i.q)(1)).subscribe(function(){a._onExit.next(),a._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var a=this._elementRef.nativeElement,s=this.snackBarConfig.panelClass;s&&(Array.isArray(s)?s.forEach(function(u){return a.classList.add(u)}):a.classList.add(s)),"center"===this.snackBarConfig.horizontalPosition&&a.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&a.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){var s=a._elementRef.nativeElement.querySelector("[aria-hidden]"),u=a._elementRef.nativeElement.querySelector("[aria-live]");if(s&&u){var p=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&s.contains(document.activeElement)&&(p=document.activeElement),s.removeAttribute("aria-hidden"),u.appendChild(s),null==p||p.focus(),a._onAnnounce.next(),a._onAnnounce.complete()}},a._announceDelay)})}}]),i}(qi.en);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36($r.t4),e.Y36(p2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["snack-bar-container"]],viewQuery:function(t,i){var o;1&t&&e.Gf(qi.Pl,7),2&t&&e.iGM(o=e.CRH())&&(i._portalOutlet=o.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,i){1&t&&e.WFA("@state.done",function(a){return i.onAnimationEnd(a)}),2&t&&e.d8E("@state",i._animationState)},features:[e.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.YNc(1,yae,0,0,"ng-template",1),e.qZA(),e._UZ(2,"div")),2&t&&(e.xp6(2),e.uIk("aria-live",i._live)("role",i._role))},directives:[qi.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[Sae.snackBarState]}}),n}(),mq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[eo.U8,qi.eL,Et.ez,u2,ln.BQ],ln.BQ]}),n}(),vq=new e.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new p2}}),wae=function(){var n=function(){function r(t,i,o,a,s,u){(0,g.Z)(this,r),this._overlay=t,this._live=i,this._injector=o,this._breakpointObserver=a,this._parentSnackBar=s,this._defaultConfig=u,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=Cae,this.snackBarContainerComponent=Tae,this.handsetCssClass="mat-snack-bar-handset"}return(0,k.Z)(r,[{key:"_openedSnackBarRef",get:function(){var i=this._parentSnackBar;return i?i._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(i){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=i:this._snackBarRefAtThisLevel=i}},{key:"openFromComponent",value:function(i,o){return this._attach(i,o)}},{key:"openFromTemplate",value:function(i,o){return this._attach(i,o)}},{key:"open",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,s=Object.assign(Object.assign({},this._defaultConfig),a);return s.data={message:i,action:o},s.announcementMessage===i&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(i,o){var s=e.zs3.create({parent:o&&o.viewContainerRef&&o.viewContainerRef.injector||this._injector,providers:[{provide:p2,useValue:o}]}),u=new qi.C5(this.snackBarContainerComponent,o.viewContainerRef,s),p=i.attach(u);return p.instance.snackBarConfig=o,p.instance}},{key:"_attach",value:function(i,o){var a=this,s=Object.assign(Object.assign(Object.assign({},new p2),this._defaultConfig),o),u=this._createOverlay(s),p=this._attachSnackBarContainer(u,s),m=new VZ(p,u);if(i instanceof e.Rgc){var b=new qi.UE(i,null,{$implicit:s.data,snackBarRef:m});m.instance=p.attachTemplatePortal(b)}else{var I=this._createInjector(s,m),F=new qi.C5(i,void 0,I),G=p.attachComponentPortal(F);m.instance=G.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe((0,Fr.R)(u.detachments())).subscribe(function(Y){var $=u.overlayElement.classList;Y.matches?$.add(a.handsetCssClass):$.remove(a.handsetCssClass)}),s.announcementMessage&&p._onAnnounce.subscribe(function(){a._live.announce(s.announcementMessage,s.politeness)}),this._animateSnackBar(m,s),this._openedSnackBarRef=m,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(i,o){var a=this;i.afterDismissed().subscribe(function(){a._openedSnackBarRef==i&&(a._openedSnackBarRef=null),o.announcementMessage&&a._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){i.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):i.containerInstance.enter(),o.duration&&o.duration>0&&i.afterOpened().subscribe(function(){return i._dismissAfter(o.duration)})}},{key:"_createOverlay",value:function(i){var o=new eo.X_;o.direction=i.direction;var a=this._overlay.position().global(),s="rtl"===i.direction,u="left"===i.horizontalPosition||"start"===i.horizontalPosition&&!s||"end"===i.horizontalPosition&&s,p=!u&&"center"!==i.horizontalPosition;return u?a.left("0"):p?a.right("0"):a.centerHorizontally(),"top"===i.verticalPosition?a.top("0"):a.bottom("0"),o.positionStrategy=a,this._overlay.create(o)}},{key:"_createInjector",value:function(i,o){return e.zs3.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:VZ,useValue:o},{provide:hq,useValue:i.data}]})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(eo.aV),e.LFG(Ti.Kd),e.LFG(e.zs3),e.LFG(c2),e.LFG(n,12),e.LFG(vq))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(eo.aV),e.LFG(Ti.Kd),e.LFG(e.gxx),e.LFG(c2),e.LFG(n,12),e.LFG(vq))},token:n,providedIn:mq}),n}(),Xn=function(){function n(r,t){this.snackbar=r,this.zone=t,this.snackBarConfigForSuccess={duration:4e3,panelClass:["snackabar-success"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForWarning={duration:4e3,panelClass:["snackabar-warning"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForError={duration:1e4,panelClass:["snackabar-error"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"}}return n.prototype.error=function(r){var t=this;this.zone.run(function(){t.snackbar.open(r,"Close",t.snackBarConfigForError)})},n.prototype.warning=function(r){var t=this;this.zone.run(function(){t.snackbar.open(r,"Close",t.snackBarConfigForWarning)})},n.prototype.success=function(r){var t=this;this.zone.run(function(){t.snackbar.open(r,"Close",t.snackBarConfigForSuccess)})},n.\u0275fac=function(t){return new(t||n)(e.LFG(wae),e.LFG(e.R0b))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),kae=["*",[["mat-card-footer"]]],Eae=["*","mat-card-footer"],qZ=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n}(),gq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),n}(),_q=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),n}(),Pae=function(){var n=function r(){(0,g.Z)(this,r),this.align="start"};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("mat-card-actions-align-end","end"===i.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),n}(),_i=function(){var n=function r(t){(0,g.Z)(this,r),this._animationMode=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(_s.Qb,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:Eae,decls:2,vars:0,template:function(t,i){1&t&&(e.F$t(kae),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),n}(),Iae=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[ln.BQ],ln.BQ]}),n}(),Un=f(36410),yq=(f(54562),(0,$r.i$)({passive:!0})),bq=function(){var n=function(){function r(t,i){(0,g.Z)(this,r),this._platform=t,this._ngZone=i,this._monitoredElements=new Map}return(0,k.Z)(r,[{key:"monitor",value:function(i){var o=this;if(!this._platform.isBrowser)return nv.E;var a=(0,Dn.fI)(i),s=this._monitoredElements.get(a);if(s)return s.subject;var u=new On.xQ,p="cdk-text-field-autofilled",m=function(I){"cdk-text-field-autofill-start"!==I.animationName||a.classList.contains(p)?"cdk-text-field-autofill-end"===I.animationName&&a.classList.contains(p)&&(a.classList.remove(p),o._ngZone.run(function(){return u.next({target:I.target,isAutofilled:!1})})):(a.classList.add(p),o._ngZone.run(function(){return u.next({target:I.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){a.addEventListener("animationstart",m,yq),a.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(a,{subject:u,unlisten:function(){a.removeEventListener("animationstart",m,yq)}}),u}},{key:"stopMonitoring",value:function(i){var o=(0,Dn.fI)(i),a=this._monitoredElements.get(o);a&&(a.unlisten(),a.subject.complete(),o.classList.remove("cdk-text-field-autofill-monitored"),o.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(o))}},{key:"ngOnDestroy",value:function(){var i=this;this._monitoredElements.forEach(function(o,a){return i.stopMonitoring(a)})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG($r.t4),e.LFG(e.R0b))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG($r.t4),e.LFG(e.R0b))},token:n,providedIn:"root"}),n}(),Cq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[$r.ud]]}),n}(),Zae=new e.OlP("MAT_INPUT_VALUE_ACCESSOR"),Lae=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Fae=0,Bae=(0,ln.FD)(function(){return function n(r,t,i,o){(0,g.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=t,this._parentFormGroup=i,this.ngControl=o}}()),ur=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p,m,b,I,F,G){var Y;(0,g.Z)(this,i),(Y=t.call(this,m,u,p,s))._elementRef=o,Y._platform=a,Y._autofillMonitor=I,Y._formField=G,Y._uid="mat-input-".concat(Fae++),Y.focused=!1,Y.stateChanges=new On.xQ,Y.controlType="mat-input",Y.autofilled=!1,Y._disabled=!1,Y._required=!1,Y._type="text",Y._readonly=!1,Y._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(Me){return(0,$r.qK)().has(Me)});var $=Y._elementRef.nativeElement,de=$.nodeName.toLowerCase();return Y._inputValueAccessor=b||$,Y._previousNativeValue=Y.value,Y.id=Y.id,a.IOS&&F.runOutsideAngular(function(){o.nativeElement.addEventListener("keyup",function(Me){var st=Me.target;!st.value&&0===st.selectionStart&&0===st.selectionEnd&&(st.setSelectionRange(1,1),st.setSelectionRange(0,0))})}),Y._isServer=!Y._platform.isBrowser,Y._isNativeSelect="select"===de,Y._isTextarea="textarea"===de,Y._isInFormField=!!G,Y._isNativeSelect&&(Y.controlType=$.multiple?"mat-native-select-multiple":"mat-native-select"),Y}return(0,k.Z)(i,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(a){this._disabled=(0,Dn.Ig)(a),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(a){this._id=a||this._uid}},{key:"required",get:function(){return this._required},set:function(a){this._required=(0,Dn.Ig)(a)}},{key:"type",get:function(){return this._type},set:function(a){this._type=a||"text",this._validateType(),!this._isTextarea&&(0,$r.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(a){a!==this.value&&(this._inputValueAccessor.value=a,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(a){this._readonly=(0,Dn.Ig)(a)}},{key:"ngAfterViewInit",value:function(){var a=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(s){a.autofilled=s.isAutofilled,a.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(a){this._elementRef.nativeElement.focus(a)}},{key:"_focusChanged",value:function(a){a!==this.focused&&(this.focused=a,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var a,s,u=(null===(s=null===(a=this._formField)||void 0===a?void 0:a._hideControlPlaceholder)||void 0===s?void 0:s.call(a))?null:this.placeholder;if(u!==this._previousPlaceholder){var p=this._elementRef.nativeElement;this._previousPlaceholder=u,u?p.setAttribute("placeholder",u):p.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var a=this._elementRef.nativeElement.value;this._previousNativeValue!==a&&(this._previousNativeValue=a,this.stateChanges.next())}},{key:"_validateType",value:function(){Lae.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var a=this._elementRef.nativeElement.validity;return a&&a.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var a=this._elementRef.nativeElement,s=a.options[0];return this.focused||a.multiple||!this.empty||!!(a.selectedIndex>-1&&s&&s.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(a){a.length?this._elementRef.nativeElement.setAttribute("aria-describedby",a.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),i}(Bae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36($r.t4),e.Y36(ne.a5,10),e.Y36(ne.F,8),e.Y36(ne.sg,8),e.Y36(ln.rD),e.Y36(Zae,10),e.Y36(bq),e.Y36(e.R0b),e.Y36(Un.G_,8))},n.\u0275dir=e.lG2({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,i){1&t&&e.NdJ("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&t&&(e.Ikx("disabled",i.disabled)("required",i.required),e.uIk("id",i.id)("data-placeholder",i.placeholder)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),e.ekj("mat-input-server",i._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[e._Bn([{provide:Un.Eo,useExisting:n}]),e.qOj,e.TTD]}),n}(),Uae=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[ln.rD],imports:[[Cq,Un.lN,ln.BQ],Cq,Un.lN]}),n}(),pi=f(73044);function Hae(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"You must enter a value"),e.qZA())}function Vae(n,r){if(1&n&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function qae(n,r){if(1&n&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function jae(n,r){if(1&n&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function zae(n,r){if(1&n&&(e.TgZ(0,"mat-form-field"),e.TgZ(1,"mat-select",15),e.YNc(2,jae,2,2,"mat-option",10),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.authorizations)}}function Wae(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",16),e.qZA())}function Gae(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",17),e.qZA())}var Yae=function(){function n(r,t,i,o,a){this.serverService=r,this.serverDatabase=t,this.route=i,this.router=o,this.toasterService=a,this.serverOptionsVisibility=!1,this.authorizations=[{key:"none",name:"No authorization"},{key:"basic",name:"Basic authorization"}],this.protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}],this.locations=[{key:"local",name:"Local"},{key:"remote",name:"Remote"}],this.serverForm=new ne.cw({name:new ne.NI("",[ne.kI.required]),location:new ne.NI(""),protocol:new ne.NI("http:"),authorization:new ne.NI("none"),login:new ne.NI(""),password:new ne.NI("")})}return n.prototype.ngOnInit=function(){return(0,Jn.mG)(this,void 0,void 0,function(){var r=this;return(0,Jn.Jh)(this,function(t){return this.serverService.isServiceInitialized&&this.getServers(),this.serverService.serviceInitialized.subscribe(function(i){return(0,Jn.mG)(r,void 0,void 0,function(){return(0,Jn.Jh)(this,function(o){return i&&this.getServers(),[2]})})}),[2]})})},n.prototype.getServers=function(){return(0,Jn.mG)(this,void 0,void 0,function(){var r,t,i=this;return(0,Jn.Jh)(this,function(o){switch(o.label){case 0:return this.serverIp=this.route.snapshot.paramMap.get("server_ip"),this.serverPort=+this.route.snapshot.paramMap.get("server_port"),this.projectId=this.route.snapshot.paramMap.get("project_id"),[4,this.serverService.findAll()];case 1:return r=o.sent(),(t=r.filter(function(a){return a.host===i.serverIp&&a.port===i.serverPort})[0])?this.router.navigate(["/server",t.id,"project",this.projectId]):this.serverOptionsVisibility=!0,[2]}})})},n.prototype.createServer=function(){var r=this;if(this.serverForm.get("name").hasError||this.serverForm.get("location").hasError||this.serverForm.get("protocol").hasError)if("basic"!==this.serverForm.get("authorization").value||this.serverForm.get("login").value||this.serverForm.get("password").value){var t=new s2;t.host=this.serverIp,t.port=this.serverPort,t.name=this.serverForm.get("name").value,t.location=this.serverForm.get("location").value,t.protocol=this.serverForm.get("protocol").value,t.authorization=this.serverForm.get("authorization").value,t.login=this.serverForm.get("login").value,t.password=this.serverForm.get("password").value,this.serverService.create(t).then(function(i){r.router.navigate(["/server",i.id,"project",r.projectId])})}else this.toasterService.error("Please use correct values");else this.toasterService.error("Please use correct values")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Hr),e.Y36(d2),e.Y36(Pr),e.Y36(kr),e.Y36(Xn))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-direct-link"]],decls:23,vars:8,consts:[[1,"content",3,"hidden"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],["matInput","","tabindex","1","formControlName","name","placeholder","Name"],[4,"ngIf"],["placeholder","Location","formControlName","location"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Protocol","formControlName","protocol"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Authorization","formControlName","authorization"],["matInput","","tabindex","1","formControlName","login","placeholder","Login"],["matInput","","type","password","tabindex","1","formControlName","password","placeholder","Password"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Add new server"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"form",6),e.TgZ(8,"mat-form-field"),e._UZ(9,"input",7),e.YNc(10,Hae,2,0,"mat-error",8),e.qZA(),e.TgZ(11,"mat-form-field"),e.TgZ(12,"mat-select",9),e.YNc(13,Vae,2,2,"mat-option",10),e.qZA(),e.qZA(),e.TgZ(14,"mat-form-field"),e.TgZ(15,"mat-select",11),e.YNc(16,qae,2,2,"mat-option",10),e.qZA(),e.qZA(),e.YNc(17,zae,3,1,"mat-form-field",8),e.YNc(18,Wae,2,0,"mat-form-field",8),e.YNc(19,Gae,2,0,"mat-form-field",8),e.qZA(),e.qZA(),e.TgZ(20,"div",12),e.TgZ(21,"button",13),e.NdJ("click",function(){return i.createServer()}),e._uU(22,"Add server"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.Q6J("hidden",!i.serverOptionsVisibility),e.xp6(7),e.Q6J("formGroup",i.serverForm),e.xp6(3),e.Q6J("ngIf",i.serverForm.get("name").hasError("required")),e.xp6(3),e.Q6J("ngForOf",i.locations),e.xp6(3),e.Q6J("ngForOf",i.protocols),e.xp6(1),e.Q6J("ngIf","remote"===i.serverForm.get("location").value),e.xp6(1),e.Q6J("ngIf","basic"===i.serverForm.get("authorization").value),e.xp6(1),e.Q6J("ngIf","basic"===i.serverForm.get("authorization").value))},directives:[_i,ne._Y,ne.JL,ne.sg,Un.KE,ur,ne.Fj,ne.JJ,ne.u,Et.O5,pi.gD,Et.sg,Mn,Un.TO,ln.ey],styles:["mat-form-field{width:100%}\n"],encapsulation:2}),n}(),Jae=0,jZ=new e.OlP("CdkAccordion"),Qae=function(){var n=function(){function r(){(0,g.Z)(this,r),this._stateChanges=new On.xQ,this._openCloseAllActions=new On.xQ,this.id="cdk-accordion-".concat(Jae++),this._multi=!1}return(0,k.Z)(r,[{key:"multi",get:function(){return this._multi},set:function(i){this._multi=(0,Dn.Ig)(i)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(i){this._stateChanges.next(i)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),r}();return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:jZ,useExisting:n}]),e.TTD]}),n}(),Kae=0,$ae=function(){var n=function(){function r(t,i,o){var a=this;(0,g.Z)(this,r),this.accordion=t,this._changeDetectorRef=i,this._expansionDispatcher=o,this._openCloseAllSubscription=as.w.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-".concat(Kae++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=o.listen(function(s,u){a.accordion&&!a.accordion.multi&&a.accordion.id===u&&a.id!==s&&(a.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return(0,k.Z)(r,[{key:"expanded",get:function(){return this._expanded},set:function(i){i=(0,Dn.Ig)(i),this._expanded!==i&&(this._expanded=i,this.expandedChange.emit(i),i?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(i){this._disabled=(0,Dn.Ig)(i)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var i=this;return this.accordion._openCloseAllActions.subscribe(function(o){i.disabled||(i.expanded=o)})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(jZ,12),e.Y36(e.sBO),e.Y36(Wi.A8))},n.\u0275dir=e.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:jZ,useValue:void 0}])]}),n}(),ese=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n}(),tse=["body"];function nse(n,r){}var rse=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],ise=["mat-expansion-panel-header","*","mat-action-row"];function ose(n,r){if(1&n&&e._UZ(0,"span",2),2&n){var t=e.oxw();e.Q6J("@indicatorRotate",t._getExpandedState())}}var ase=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],sse=["mat-panel-title","mat-panel-description","*"],zZ=new e.OlP("MAT_ACCORDION"),Sq="225ms cubic-bezier(0.4,0.0,0.2,1)",Tq={indicatorRotate:(0,on.X$)("indicatorRotate",[(0,on.SB)("collapsed, void",(0,on.oB)({transform:"rotate(0deg)"})),(0,on.SB)("expanded",(0,on.oB)({transform:"rotate(180deg)"})),(0,on.eR)("expanded <=> collapsed, void => collapsed",(0,on.jt)(Sq))]),bodyExpansion:(0,on.X$)("bodyExpansion",[(0,on.SB)("collapsed, void",(0,on.oB)({height:"0px",visibility:"hidden"})),(0,on.SB)("expanded",(0,on.oB)({height:"*",visibility:"visible"})),(0,on.eR)("expanded <=> collapsed, void => collapsed",(0,on.jt)(Sq))])},lse=function(){var n=function r(t){(0,g.Z)(this,r),this._template=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n}(),use=0,xq=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Xu=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p,m,b){var I;return(0,g.Z)(this,i),(I=t.call(this,o,a,s))._viewContainerRef=u,I._animationMode=m,I._hideToggle=!1,I.afterExpand=new e.vpe,I.afterCollapse=new e.vpe,I._inputChanges=new On.xQ,I._headerId="mat-expansion-panel-header-".concat(use++),I._bodyAnimationDone=new On.xQ,I.accordion=o,I._document=p,I._bodyAnimationDone.pipe((0,mm.x)(function(F,G){return F.fromState===G.fromState&&F.toState===G.toState})).subscribe(function(F){"void"!==F.fromState&&("expanded"===F.toState?I.afterExpand.emit():"collapsed"===F.toState&&I.afterCollapse.emit())}),b&&(I.hideToggle=b.hideToggle),I}return(0,k.Z)(i,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(a){this._hideToggle=(0,Dn.Ig)(a)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(a){this._togglePosition=a}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var a=this;this._lazyContent&&this.opened.pipe((0,na.O)(null),(0,vi.h)(function(){return a.expanded&&!a._portal}),(0,$i.q)(1)).subscribe(function(){a._portal=new qi.UE(a._lazyContent._template,a._viewContainerRef)})}},{key:"ngOnChanges",value:function(a){this._inputChanges.next(a)}},{key:"ngOnDestroy",value:function(){(0,P.Z)((0,D.Z)(i.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var a=this._document.activeElement,s=this._body.nativeElement;return a===s||s.contains(a)}return!1}}]),i}($ae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(zZ,12),e.Y36(e.sBO),e.Y36(Wi.A8),e.Y36(e.s_b),e.Y36(Et.K0),e.Y36(_s.Qb,8),e.Y36(xq,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,lse,5),2&t&&e.iGM(a=e.CRH())&&(i._lazyContent=a.first)},viewQuery:function(t,i){var o;1&t&&e.Gf(tse,5),2&t&&e.iGM(o=e.CRH())&&(i._body=o.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,i){2&t&&e.ekj("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:zZ,useValue:void 0}]),e.qOj,e.TTD],ngContentSelectors:ise,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,i){1&t&&(e.F$t(rse),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(a){return i._bodyAnimationDone.next(a)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,nse,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("@bodyExpansion",i._getExpandedState())("id",i.id),e.uIk("aria-labelledby",i._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",i._portal))},directives:[qi.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Tq.bodyExpansion]},changeDetection:0}),n}(),pse=(0,ln.sb)(function n(){(0,g.Z)(this,n)}),$u=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p,m,b){var I;(0,g.Z)(this,i),(I=t.call(this)).panel=o,I._element=a,I._focusMonitor=s,I._changeDetectorRef=u,I._animationMode=m,I._parentChangeSubscription=as.w.EMPTY;var F=o.accordion?o.accordion._stateChanges.pipe((0,vi.h)(function(G){return!(!G.hideToggle&&!G.togglePosition)})):nv.E;return I.tabIndex=parseInt(b||"")||0,I._parentChangeSubscription=(0,vo.T)(o.opened,o.closed,F,o._inputChanges.pipe((0,vi.h)(function(G){return!!(G.hideToggle||G.disabled||G.togglePosition)}))).subscribe(function(){return I._changeDetectorRef.markForCheck()}),o.closed.pipe((0,vi.h)(function(){return o._containsFocus()})).subscribe(function(){return s.focusVia(a,"program")}),p&&(I.expandedHeight=p.expandedHeight,I.collapsedHeight=p.collapsedHeight),I}return(0,k.Z)(i,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var a=this._isExpanded();return a&&this.expandedHeight?this.expandedHeight:!a&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(a){switch(a.keyCode){case Gr.L_:case Gr.K5:(0,Gr.Vb)(a)||(a.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(a))}}},{key:"focus",value:function(a,s){a?this._focusMonitor.focusVia(this._element,a,s):this._element.nativeElement.focus(s)}},{key:"ngAfterViewInit",value:function(){var a=this;this._focusMonitor.monitor(this._element).subscribe(function(s){s&&a.panel.accordion&&a.panel.accordion._handleHeaderFocus(a)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),i}(pse);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Xu,1),e.Y36(e.SBq),e.Y36(Ti.tE),e.Y36(e.sBO),e.Y36(xq,8),e.Y36(_s.Qb,8),e.$8M("tabindex"))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,i){1&t&&e.NdJ("click",function(){return i._toggle()})("keydown",function(a){return i._keydown(a)}),2&t&&(e.uIk("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),e.Udp("height",i._getHeaderHeight()),e.ekj("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:sse,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,i){1&t&&(e.F$t(ase),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,ose,1,1,"span",1)),2&t&&(e.xp6(4),e.Q6J("ngIf",i._showToggle()))},directives:[Et.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[Tq.indicatorRotate]},changeDetection:0}),n}(),fse=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),n}(),id=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n}(),od=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){var o;return(0,g.Z)(this,i),(o=t.apply(this,arguments))._ownHeaders=new e.n_E,o._hideToggle=!1,o.displayMode="default",o.togglePosition="after",o}return(0,k.Z)(i,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(a){this._hideToggle=(0,Dn.Ig)(a)}},{key:"ngAfterContentInit",value:function(){var a=this;this._headers.changes.pipe((0,na.O)(this._headers)).subscribe(function(s){a._ownHeaders.reset(s.filter(function(u){return u.panel.accordion===a})),a._ownHeaders.notifyOnChanges()}),this._keyManager=new Ti.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(a){this._keyManager.onKeydown(a)}},{key:"_handleHeaderFocus",value:function(a){this._keyManager.updateActiveItem(a)}},{key:"ngOnDestroy",value:function(){(0,P.Z)((0,D.Z)(i.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),i}(Qae);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,$u,5),2&t&&e.iGM(a=e.CRH())&&(i._headers=a)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("mat-accordion-multi",i.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[e._Bn([{provide:zZ,useExisting:n}]),e.qOj]}),n}(),hse=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Et.ez,ln.BQ,ese,qi.eL]]}),n}(),wq=f(93386),WZ=["*"],GZ='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n',mse=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],vse=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],kq=(0,ln.Id)((0,ln.Kr)(function(){return function n(){(0,g.Z)(this,n)}}())),Cse=(0,ln.Kr)(function(){return function n(){(0,g.Z)(this,n)}}()),Eq=new e.OlP("MatList"),Mq=new e.OlP("MatNavList"),ku=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){var o;return(0,g.Z)(this,i),(o=t.apply(this,arguments))._stateChanges=new On.xQ,o}return(0,k.Z)(i,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(kq);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[e._Bn([{provide:Mq,useExisting:n}]),e.qOj,e.TTD],ngContentSelectors:WZ,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[GZ],encapsulation:2,changeDetection:0}),n}(),YZ=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o){var a;return(0,g.Z)(this,i),(a=t.call(this))._elementRef=o,a._stateChanges=new On.xQ,"action-list"===a._getListType()&&o.nativeElement.classList.add("mat-action-list"),a}return(0,k.Z)(i,[{key:"_getListType",value:function(){var a=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===a?"list":"mat-action-list"===a?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(kq);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[e._Bn([{provide:Eq,useExisting:n}]),e.qOj,e.TTD],ngContentSelectors:WZ,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[GZ],encapsulation:2,changeDetection:0}),n}(),Aq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n}(),Dq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n}(),Cs=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u){var p;(0,g.Z)(this,i),(p=t.call(this))._element=o,p._isInteractiveList=!1,p._destroyed=new On.xQ,p._disabled=!1,p._isInteractiveList=!!(s||u&&"action-list"===u._getListType()),p._list=s||u;var m=p._getHostElement();return"button"===m.nodeName.toLowerCase()&&!m.hasAttribute("type")&&m.setAttribute("type","button"),p._list&&p._list._stateChanges.pipe((0,Fr.R)(p._destroyed)).subscribe(function(){a.markForCheck()}),p}return(0,k.Z)(i,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(a){this._disabled=(0,Dn.Ig)(a)}},{key:"ngAfterContentInit",value:function(){(0,ln.E0)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}]),i}(Cse);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Mq,8),e.Y36(Eq,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,Aq,5),e.Suo(o,Dq,5),e.Suo(o,ln.X2,5)),2&t&&(e.iGM(a=e.CRH())&&(i._avatar=a.first),e.iGM(a=e.CRH())&&(i._icon=a.first),e.iGM(a=e.CRH())&&(i._lines=a))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,i){2&t&&e.ekj("mat-list-item-disabled",i.disabled)("mat-list-item-avatar",i._avatar||i._icon)("mat-list-item-with-avatar",i._avatar||i._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[e.qOj],ngContentSelectors:vse,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,i){1&t&&(e.F$t(mse),e.TgZ(0,"div",0),e._UZ(1,"div",1),e.Hsn(2),e.TgZ(3,"div",2),e.Hsn(4,1),e.qZA(),e.Hsn(5,2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()))},directives:[ln.wG],encapsulation:2,changeDetection:0}),n}(),Ese=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[ln.uc,ln.si,ln.BQ,ln.us,Et.ez],ln.uc,ln.BQ,ln.us,wq.t]}),n}(),Mse=function(){function n(r){this.httpClient=r,this.thirdpartylicenses="",this.releasenotes=""}return n.prototype.ngOnInit=function(){var r=this;this.httpClient.get(window.location.href+"/3rdpartylicenses.txt",{responseType:"text"}).subscribe(function(t){r.thirdpartylicenses=t.replace(new RegExp("\n","g"),"
")},function(t){404===t.status&&(r.thirdpartylicenses="File not found")}),this.httpClient.get("ReleaseNotes.txt",{responseType:"text"}).subscribe(function(t){r.releasenotes=t.replace(new RegExp("\n","g"),"
")})},n.prototype.goToDocumentation=function(){window.location.href="https://docs.gns3.com/docs/"},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vc.eN))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-help"]],decls:38,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"innerHTML"],["mat-button","","color","primary",1,"full-width",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"h1"),e._uU(3,"Help"),e.qZA(),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"div",3),e.TgZ(6,"mat-accordion"),e.TgZ(7,"mat-expansion-panel"),e.TgZ(8,"mat-expansion-panel-header"),e.TgZ(9,"mat-panel-title"),e._uU(10," Useful shortcuts "),e.qZA(),e.qZA(),e.TgZ(11,"mat-list"),e.TgZ(12,"mat-list-item"),e._uU(13," ctrl + + to zoom in "),e.qZA(),e.TgZ(14,"mat-list-item"),e._uU(15," ctrl + - to zoom out "),e.qZA(),e.TgZ(16,"mat-list-item"),e._uU(17," ctrl + 0 to reset zoom "),e.qZA(),e.TgZ(18,"mat-list-item"),e._uU(19," ctrl + h to hide toolbar "),e.qZA(),e.TgZ(20,"mat-list-item"),e._uU(21," ctrl + a to select all items on map "),e.qZA(),e.TgZ(22,"mat-list-item"),e._uU(23," ctrl + shift + a to deselect all items on map "),e.qZA(),e.TgZ(24,"mat-list-item"),e._uU(25," ctrl + shift + s to go to preferences "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"mat-expansion-panel"),e.TgZ(27,"mat-expansion-panel-header"),e.TgZ(28,"mat-panel-title"),e._uU(29," Third party components "),e.qZA(),e.qZA(),e._UZ(30,"div",4),e.qZA(),e.TgZ(31,"mat-expansion-panel"),e.TgZ(32,"mat-expansion-panel-header"),e.TgZ(33,"mat-panel-title"),e._uU(34," Release notes "),e.qZA(),e.qZA(),e._UZ(35,"div",4),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"button",5),e.NdJ("click",function(){return i.goToDocumentation()}),e._uU(37,"Go to documentation"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(30),e.Q6J("innerHTML",i.thirdpartylicenses,e.oJD),e.xp6(5),e.Q6J("innerHTML",i.releasenotes,e.oJD))},directives:[od,Xu,$u,id,YZ,Cs,Mn],styles:[".full-width[_ngcontent-%COMP%]{width:100%;margin-top:20px}"]}),n}(),Pq=function(){function n(r){this.electronService=r}return n.prototype.isWindows=function(){return"win32"===this.electronService.process.platform},n.prototype.isLinux=function(){return"linux"===this.electronService.process.platform},n.prototype.isDarwin=function(){return"darwin"===this.electronService.process.platform},n.\u0275fac=function(t){return new(t||n)(e.LFG(ds))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Iq=function(){function n(r){this.platformService=r}return n.prototype.get=function(){return this.platformService.isWindows()?this.getForWindows():this.platformService.isDarwin()?this.getForDarwin():this.getForLinux()},n.prototype.getForWindows=function(){var r=[{name:"Wireshark",locations:["C:\\Program Files\\Wireshark\\Wireshark.exe"],type:"web",resource:"https://1.na.dl.wireshark.org/win64/all-versions/Wireshark-win64-2.6.3.exe",binary:"Wireshark.exe",sudo:!0,installation_arguments:[],installed:!1,installer:!0}];return r},n.prototype.getForLinux=function(){return[]},n.prototype.getForDarwin=function(){return[]},n.\u0275fac=function(t){return new(t||n)(e.LFG(Pq))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Rq=function(){function n(r,t){this.electronService=r,this.externalSoftwareDefinition=t}return n.prototype.list=function(){var r=this.externalSoftwareDefinition.get(),t=this.electronService.remote.require("./installed-software.js").getInstalledSoftware(r);return r.map(function(i){return i.installed=t[i.name].length>0,i})},n.\u0275fac=function(t){return new(t||n)(e.LFG(ds),e.LFG(Iq))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Ase=[[["caption"]],[["colgroup"],["col"]]],Dse=["caption","colgroup, col"],Yl=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){var o;return(0,g.Z)(this,i),(o=t.apply(this,arguments)).stickyCssClass="mat-table-sticky",o.needsPositionStickyOnElement=!1,o}return i}(fm);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:Wi.k,useClass:Wi.yy},{provide:fm,useExisting:n},{provide:Uc,useExisting:n},{provide:TC,useClass:jk},{provide:kC,useValue:null}]),e.qOj],ngContentSelectors:Dse,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){1&t&&(e.F$t(Ase),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[dm,xf,Yd,pm],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),n}(),ll=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(Cf);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:Cf,useExisting:n}]),e.qOj]}),n}(),ul=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(Hc);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:Hc,useExisting:n}]),e.qOj]}),n}(),cl=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return(0,k.Z)(i,[{key:"name",get:function(){return this._name},set:function(a){this._setNameInput(a)}},{key:"_updateColumnCssClassName",value:function(){(0,P.Z)((0,D.Z)(i.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),i}(Vu);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:Vu,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),e.qOj]}),n}(),dl=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}($g);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),n}(),pl=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(SC);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),n}(),Jl=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(Sf);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:Sf,useExisting:n}]),e.qOj]}),n}(),Ql=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(cm);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:cm,useExisting:n}]),e.qOj]}),n}(),Kl=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(wC);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:wC,useExisting:n}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&e.GkF(0,0)},directives:[gu],encapsulation:2}),n}(),Xl=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(n_);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:n_,useExisting:n}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&e.GkF(0,0)},directives:[gu],encapsulation:2}),n}(),Use=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[AC,ln.BQ],ln.BQ]}),n}(),Hse=9007199254740991,Nq=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(){return(0,g.Z)(this,t),r.apply(this,arguments)}return t}(function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(){var i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,g.Z)(this,t),(i=r.call(this))._renderData=new to.X([]),i._filter=new to.X(""),i._internalPageChanges=new On.xQ,i._renderChangesSubscription=null,i.sortingDataAccessor=function(a,s){var u=a[s];if((0,Dn.t6)(u)){var p=Number(u);return pF?$=1:I0)){var u=Math.ceil(s.length/s.pageSize)-1||0,p=Math.min(s.pageIndex,u);p!==s.pageIndex&&(s.pageIndex=p,a._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var o;null===(o=this._renderChangesSubscription)||void 0===o||o.unsubscribe(),this._renderChangesSubscription=null}}]),t}(Wi.o2)),Eu=f(15132),qse=function(n,r){return{hidden:n,lightTheme:r}},jse=/(.*)<\/a>(.*)\s*