/* Minification failed. Returning unminified contents.
(1,1): run-time error CSS1019: Unexpected token, found '('
(1,29): run-time error CSS1031: Expected selector, found '='
(1,29): run-time error CSS1025: Expected comma or open brace, found '='
 */
(self.webpackChunkangularApp=self.webpackChunkangularApp||[]).push([["vendor"],{2578:function(Dt,ve){var _,g;void 0!==(g="function"==typeof(_=function(){"use strict";function V(S,I,B){var G=new XMLHttpRequest;G.open("GET",S),G.responseType="blob",G.onload=function(){C(G.response,I,B)},G.onerror=function(){console.error("could not download file")},G.send()}function U(S){var I=new XMLHttpRequest;I.open("HEAD",S,!1);try{I.send()}catch{}return 200<=I.status&&299>=I.status}function H(S){try{S.dispatchEvent(new MouseEvent("click"))}catch{var I=document.createEvent("MouseEvents");I.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),S.dispatchEvent(I)}}var P="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,b=P.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),C=P.saveAs||("object"!=typeof window||window!==P?function(){}:"download"in HTMLAnchorElement.prototype&&!b?function(S,I,B){var G=P.URL||P.webkitURL,x=document.createElement("a");x.download=I=I||S.name||"download",x.rel="noopener","string"==typeof S?(x.href=S,x.origin===location.origin?H(x):U(x.href)?V(S,I,B):H(x,x.target="_blank")):(x.href=G.createObjectURL(S),setTimeout(function(){G.revokeObjectURL(x.href)},4e4),setTimeout(function(){H(x)},0))}:"msSaveOrOpenBlob"in navigator?function(S,I,B){if(I=I||S.name||"download","string"!=typeof S)navigator.msSaveOrOpenBlob(function R(S,I){return typeof I>"u"?I={autoBom:!1}:"object"!=typeof I&&(console.warn("Deprecated: Expected third argument to be a object"),I={autoBom:!I}),I.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(S.type)?new Blob(["\ufeff",S],{type:S.type}):S}(S,B),I);else if(U(S))V(S,I,B);else{var G=document.createElement("a");G.href=S,G.target="_blank",setTimeout(function(){H(G)})}}:function(S,I,B,G){if((G=G||open("","_blank"))&&(G.document.title=G.document.body.innerText="downloading..."),"string"==typeof S)return V(S,I,B);var x="application/octet-stream"===S.type,m=/constructor/i.test(P.HTMLElement)||P.safari,k=/CriOS\/[\d]+/.test(navigator.userAgent);if((k||x&&m||b)&&typeof FileReader<"u"){var D=new FileReader;D.onloadend=function(){var ie=D.result;ie=k?ie:ie.replace(/^data:[^;]*;/,"data:attachment/file;"),G?G.location.href=ie:location=ie,G=null},D.readAsDataURL(S)}else{var K=P.URL||P.webkitURL,de=K.createObjectURL(S);G?G.location=de:location.href=de,G=null,setTimeout(function(){K.revokeObjectURL(de)},4e4)}});P.saveAs=C.saveAs=C,Dt.exports=C})?_.apply(ve,[]):_)&&(Dt.exports=g)},7436:function(Dt){typeof self<"u"&&self,Dt.exports=function(ve){var _={};function r(g){if(_[g])return _[g].exports;var R=_[g]={i:g,l:!1,exports:{}};return ve[g].call(R.exports,R,R.exports,r),R.l=!0,R.exports}return r.m=ve,r.c=_,r.d=function(g,R,V){r.o(g,R)||Object.defineProperty(g,R,{configurable:!1,enumerable:!0,get:V})},r.n=function(g){var R=g&&g.__esModule?function(){return g.default}:function(){return g};return r.d(R,"a",R),R},r.o=function(g,R){return Object.prototype.hasOwnProperty.call(g,R)},r.p="",r(r.s=109)}([function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=r(17),R=r(18),V=r(19),U=r(45),H=r(46),P=r(47),b=r(48),C=r(49),S=r(12),I=r(32),B=r(33),G=r(31),x=r(1);_.default={Scope:x.Scope,create:x.create,find:x.find,query:x.query,register:x.register,Container:g.default,Format:R.default,Leaf:V.default,Embed:b.default,Scroll:U.default,Block:P.default,Inline:H.default,Text:C.default,Attributor:{Attribute:S.default,Class:I.default,Style:B.default,Store:G.default}}},function(ve,_,r){"use strict";var G,g=this&&this.__extends||(G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,m){x.__proto__=m}||function(x,m){for(var k in m)m.hasOwnProperty(k)&&(x[k]=m[k])},function(x,m){function k(){this.constructor=x}G(x,m),x.prototype=null===m?Object.create(m):(k.prototype=m.prototype,new k)});Object.defineProperty(_,"__esModule",{value:!0});var R=function(G){function x(m){var k=this;return(k=G.call(this,m="[Parchment] "+m)||this).message=m,k.name=k.constructor.name,k}return g(x,G),x}(Error);_.ParchmentError=R;var b,V={},U={},H={},P={};function I(G,x){var m;if(void 0===x&&(x=b.ANY),"string"==typeof G)m=P[G]||V[G];else if(G instanceof Text||G.nodeType===Node.TEXT_NODE)m=P.text;else if("number"==typeof G)G&b.LEVEL&b.BLOCK?m=P.block:G&b.LEVEL&b.INLINE&&(m=P.inline);else if(G instanceof HTMLElement){var k=(G.getAttribute("class")||"").split(/\s+/);for(var D in k)if(m=U[k[D]])break;m=m||H[G.tagName]}return null==m?null:x&b.LEVEL&m.scope&&x&b.TYPE&m.scope?m:null}_.DATA_KEY="__blot",function(G){G[G.TYPE=3]="TYPE",G[G.LEVEL=12]="LEVEL",G[G.ATTRIBUTE=13]="ATTRIBUTE",G[G.BLOT=14]="BLOT",G[G.INLINE=7]="INLINE",G[G.BLOCK=11]="BLOCK",G[G.BLOCK_BLOT=10]="BLOCK_BLOT",G[G.INLINE_BLOT=6]="INLINE_BLOT",G[G.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",G[G.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",G[G.ANY=15]="ANY"}(b=_.Scope||(_.Scope={})),_.create=function C(G,x){var m=I(G);if(null==m)throw new R("Unable to create "+G+" blot");var k=m,D=G instanceof Node||G.nodeType===Node.TEXT_NODE?G:k.create(x);return new k(D,x)},_.find=function S(G,x){return void 0===x&&(x=!1),null==G?null:null!=G[_.DATA_KEY]?G[_.DATA_KEY].blot:x?S(G.parentNode,x):null},_.query=I,_.register=function B(){for(var G=[],x=0;x<arguments.length;x++)G[x]=arguments[x];if(G.length>1)return G.map(function(D){return B(D)});var m=G[0];if("string"!=typeof m.blotName&&"string"!=typeof m.attrName)throw new R("Invalid definition");if("abstract"===m.blotName)throw new R("Cannot register abstract class");return P[m.blotName||m.attrName]=m,"string"==typeof m.keyName?V[m.keyName]=m:(null!=m.className&&(U[m.className]=m),null!=m.tagName&&(m.tagName=Array.isArray(m.tagName)?m.tagName.map(function(D){return D.toUpperCase()}):m.tagName.toUpperCase(),(Array.isArray(m.tagName)?m.tagName:[m.tagName]).forEach(function(D){(null==H[D]||null==m.className)&&(H[D]=m)}))),m}},function(ve,_,r){var g=r(51),R=r(11),V=r(3),U=r(20),P=function(b){this.ops=Array.isArray(b)?b:null!=b&&Array.isArray(b.ops)?b.ops:[]};P.prototype.insert=function(b,C){var S={};return 0===b.length?this:(S.insert=b,null!=C&&"object"==typeof C&&Object.keys(C).length>0&&(S.attributes=C),this.push(S))},P.prototype.delete=function(b){return b<=0?this:this.push({delete:b})},P.prototype.retain=function(b,C){if(b<=0)return this;var S={retain:b};return null!=C&&"object"==typeof C&&Object.keys(C).length>0&&(S.attributes=C),this.push(S)},P.prototype.push=function(b){var C=this.ops.length,S=this.ops[C-1];if(b=V(!0,{},b),"object"==typeof S){if("number"==typeof b.delete&&"number"==typeof S.delete)return this.ops[C-1]={delete:S.delete+b.delete},this;if("number"==typeof S.delete&&null!=b.insert&&"object"!=typeof(S=this.ops[(C-=1)-1]))return this.ops.unshift(b),this;if(R(b.attributes,S.attributes)){if("string"==typeof b.insert&&"string"==typeof S.insert)return this.ops[C-1]={insert:S.insert+b.insert},"object"==typeof b.attributes&&(this.ops[C-1].attributes=b.attributes),this;if("number"==typeof b.retain&&"number"==typeof S.retain)return this.ops[C-1]={retain:S.retain+b.retain},"object"==typeof b.attributes&&(this.ops[C-1].attributes=b.attributes),this}}return C===this.ops.length?this.ops.push(b):this.ops.splice(C,0,b),this},P.prototype.chop=function(){var b=this.ops[this.ops.length-1];return b&&b.retain&&!b.attributes&&this.ops.pop(),this},P.prototype.filter=function(b){return this.ops.filter(b)},P.prototype.forEach=function(b){this.ops.forEach(b)},P.prototype.map=function(b){return this.ops.map(b)},P.prototype.partition=function(b){var C=[],S=[];return this.forEach(function(I){(b(I)?C:S).push(I)}),[C,S]},P.prototype.reduce=function(b,C){return this.ops.reduce(b,C)},P.prototype.changeLength=function(){return this.reduce(function(b,C){return C.insert?b+U.length(C):C.delete?b-C.delete:b},0)},P.prototype.length=function(){return this.reduce(function(b,C){return b+U.length(C)},0)},P.prototype.slice=function(b,C){b=b||0,"number"!=typeof C&&(C=1/0);for(var S=[],I=U.iterator(this.ops),B=0;B<C&&I.hasNext();){var G;B<b?G=I.next(b-B):(G=I.next(C-B),S.push(G)),B+=U.length(G)}return new P(S)},P.prototype.compose=function(b){var C=U.iterator(this.ops),S=U.iterator(b.ops),I=[],B=S.peek();if(null!=B&&"number"==typeof B.retain&&null==B.attributes){for(var G=B.retain;"insert"===C.peekType()&&C.peekLength()<=G;)G-=C.peekLength(),I.push(C.next());B.retain-G>0&&S.next(B.retain-G)}for(var x=new P(I);C.hasNext()||S.hasNext();)if("insert"===S.peekType())x.push(S.next());else if("delete"===C.peekType())x.push(C.next());else{var m=Math.min(C.peekLength(),S.peekLength()),k=C.next(m),D=S.next(m);if("number"==typeof D.retain){var K={};"number"==typeof k.retain?K.retain=m:K.insert=k.insert;var de=U.attributes.compose(k.attributes,D.attributes,"number"==typeof k.retain);if(de&&(K.attributes=de),x.push(K),!S.hasNext()&&R(x.ops[x.ops.length-1],K)){var ie=new P(C.rest());return x.concat(ie).chop()}}else"number"==typeof D.delete&&"number"==typeof k.retain&&x.push(D)}return x.chop()},P.prototype.concat=function(b){var C=new P(this.ops.slice());return b.ops.length>0&&(C.push(b.ops[0]),C.ops=C.ops.concat(b.ops.slice(1))),C},P.prototype.diff=function(b,C){if(this.ops===b.ops)return new P;var S=[this,b].map(function(m){return m.map(function(k){if(null!=k.insert)return"string"==typeof k.insert?k.insert:"\0";throw new Error("diff() called "+(m===b?"on":"with")+" non-document")}).join("")}),I=new P,B=g(S[0],S[1],C),G=U.iterator(this.ops),x=U.iterator(b.ops);return B.forEach(function(m){for(var k=m[1].length;k>0;){var D=0;switch(m[0]){case g.INSERT:D=Math.min(x.peekLength(),k),I.push(x.next(D));break;case g.DELETE:D=Math.min(k,G.peekLength()),G.next(D),I.delete(D);break;case g.EQUAL:D=Math.min(G.peekLength(),x.peekLength(),k);var K=G.next(D),de=x.next(D);R(K.insert,de.insert)?I.retain(D,U.attributes.diff(K.attributes,de.attributes)):I.push(de).delete(D)}k-=D}}),I.chop()},P.prototype.eachLine=function(b,C){C=C||"\n";for(var S=U.iterator(this.ops),I=new P,B=0;S.hasNext();){if("insert"!==S.peekType())return;var G=S.peek(),x=U.length(G)-S.peekLength(),m="string"==typeof G.insert?G.insert.indexOf(C,x)-x:-1;if(m<0)I.push(S.next());else if(m>0)I.push(S.next(m));else{if(!1===b(I,S.next(1).attributes||{},B))return;B+=1,I=new P}}I.length()>0&&b(I,{},B)},P.prototype.transform=function(b,C){if(C=!!C,"number"==typeof b)return this.transformPosition(b,C);for(var S=U.iterator(this.ops),I=U.iterator(b.ops),B=new P;S.hasNext()||I.hasNext();)if("insert"!==S.peekType()||!C&&"insert"===I.peekType())if("insert"===I.peekType())B.push(I.next());else{var G=Math.min(S.peekLength(),I.peekLength()),x=S.next(G),m=I.next(G);if(x.delete)continue;m.delete?B.push(m):B.retain(G,U.attributes.transform(x.attributes,m.attributes,C))}else B.retain(U.length(S.next()));return B.chop()},P.prototype.transformPosition=function(b,C){C=!!C;for(var S=U.iterator(this.ops),I=0;S.hasNext()&&I<=b;){var B=S.peekLength(),G=S.peekType();S.next(),"delete"!==G?("insert"===G&&(I<b||!C)&&(b+=B),I+=B):b-=Math.min(B,b-I)}return b},ve.exports=P},function(ve,_){"use strict";var r=Object.prototype.hasOwnProperty,g=Object.prototype.toString,R=Object.defineProperty,V=Object.getOwnPropertyDescriptor,U=function(S){return"function"==typeof Array.isArray?Array.isArray(S):"[object Array]"===g.call(S)},H=function(S){if(!S||"[object Object]"!==g.call(S))return!1;var G,I=r.call(S,"constructor"),B=S.constructor&&S.constructor.prototype&&r.call(S.constructor.prototype,"isPrototypeOf");if(S.constructor&&!I&&!B)return!1;for(G in S);return typeof G>"u"||r.call(S,G)},P=function(S,I){R&&"__proto__"===I.name?R(S,I.name,{enumerable:!0,configurable:!0,value:I.newValue,writable:!0}):S[I.name]=I.newValue},b=function(S,I){if("__proto__"===I){if(!r.call(S,I))return;if(V)return V(S,I).value}return S[I]};ve.exports=function C(){var S,I,B,G,x,m,k=arguments[0],D=1,K=arguments.length,de=!1;for("boolean"==typeof k&&(de=k,k=arguments[1]||{},D=2),(null==k||"object"!=typeof k&&"function"!=typeof k)&&(k={});D<K;++D)if(null!=(S=arguments[D]))for(I in S)B=b(k,I),k!==(G=b(S,I))&&(de&&G&&(H(G)||(x=U(G)))?(x?(x=!1,m=B&&U(B)?B:[]):m=B&&H(B)?B:{},P(k,{name:I,newValue:C(de,m,G)})):typeof G<"u"&&P(k,{name:I,newValue:G}));return k}},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.BlockEmbed=_.bubbleFormats=void 0;var g=function(){function W(Y,q){for(var ee=0;ee<q.length;ee++){var Q=q[ee];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(Y,Q.key,Q)}}return function(Y,q,ee){return q&&W(Y.prototype,q),ee&&W(Y,ee),Y}}(),R=function W(Y,q,ee){null===Y&&(Y=Function.prototype);var Q=Object.getOwnPropertyDescriptor(Y,q);if(void 0===Q){var be=Object.getPrototypeOf(Y);return null===be?void 0:W(be,q,ee)}if("value"in Q)return Q.value;var we=Q.get;return void 0===we?void 0:we.call(ee)},U=k(r(3)),P=k(r(2)),C=k(r(0)),I=k(r(16)),G=k(r(6)),m=k(r(7));function k(W){return W&&W.__esModule?W:{default:W}}function D(W,Y){if(!(W instanceof Y))throw new TypeError("Cannot call a class as a function")}function K(W,Y){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Y||"object"!=typeof Y&&"function"!=typeof Y?W:Y}function de(W,Y){if("function"!=typeof Y&&null!==Y)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);W.prototype=Object.create(Y&&Y.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(W,Y):W.__proto__=Y)}var te=function(W){function Y(){return D(this,Y),K(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return de(Y,W),g(Y,[{key:"attach",value:function(){R(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"attach",this).call(this),this.attributes=new C.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new P.default).insert(this.value(),(0,U.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(ee,Q){var be=C.default.query(ee,C.default.Scope.BLOCK_ATTRIBUTE);null!=be&&this.attributes.attribute(be,Q)}},{key:"formatAt",value:function(ee,Q,be,we){this.format(be,we)}},{key:"insertAt",value:function(ee,Q,be){if("string"==typeof Q&&Q.endsWith("\n")){var we=C.default.create(se.blotName);this.parent.insertBefore(we,0===ee?this:this.next),we.insertAt(0,Q.slice(0,-1))}else R(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"insertAt",this).call(this,ee,Q,be)}}]),Y}(C.default.Embed);te.scope=C.default.Scope.BLOCK_BLOT;var se=function(W){function Y(q){D(this,Y);var ee=K(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,q));return ee.cache={},ee}return de(Y,W),g(Y,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(C.default.Leaf).reduce(function(ee,Q){return 0===Q.length()?ee:ee.insert(Q.value(),z(Q))},new P.default).insert("\n",z(this))),this.cache.delta}},{key:"deleteAt",value:function(ee,Q){R(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"deleteAt",this).call(this,ee,Q),this.cache={}}},{key:"formatAt",value:function(ee,Q,be,we){Q<=0||(C.default.query(be,C.default.Scope.BLOCK)?ee+Q===this.length()&&this.format(be,we):R(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"formatAt",this).call(this,ee,Math.min(Q,this.length()-ee-1),be,we),this.cache={})}},{key:"insertAt",value:function(ee,Q,be){if(null!=be)return R(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"insertAt",this).call(this,ee,Q,be);if(0!==Q.length){var we=Q.split("\n"),Ze=we.shift();Ze.length>0&&(ee<this.length()-1||null==this.children.tail?R(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"insertAt",this).call(this,Math.min(ee,this.length()-1),Ze):this.children.tail.insertAt(this.children.tail.length(),Ze),this.cache={});var Ue=this;we.reduce(function(Le,_e){return(Ue=Ue.split(Le,!0)).insertAt(0,_e),_e.length},ee+Ze.length)}}},{key:"insertBefore",value:function(ee,Q){var be=this.children.head;R(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"insertBefore",this).call(this,ee,Q),be instanceof I.default&&be.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=R(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(ee,Q){R(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"moveChildren",this).call(this,ee,Q),this.cache={}}},{key:"optimize",value:function(ee){R(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"optimize",this).call(this,ee),this.cache={}}},{key:"path",value:function(ee){return R(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"path",this).call(this,ee,!0)}},{key:"removeChild",value:function(ee){R(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"removeChild",this).call(this,ee),this.cache={}}},{key:"split",value:function(ee){var Q=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Q&&(0===ee||ee>=this.length()-1)){var be=this.clone();return 0===ee?(this.parent.insertBefore(be,this),this):(this.parent.insertBefore(be,this.next),be)}var we=R(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"split",this).call(this,ee,Q);return this.cache={},we}}]),Y}(C.default.Block);function z(W){var Y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==W||("function"==typeof W.formats&&(Y=(0,U.default)(Y,W.formats())),null==W.parent||"scroll"==W.parent.blotName||W.parent.statics.scope!==W.statics.scope)?Y:z(W.parent,Y)}se.blotName="block",se.tagName="P",se.defaultChild="break",se.allowedChildren=[G.default,C.default.Embed,m.default],_.bubbleFormats=z,_.BlockEmbed=te,_.default=se},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.overload=_.expandConfig=void 0;var g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ue){return typeof Ue}:function(Ue){return Ue&&"function"==typeof Symbol&&Ue.constructor===Symbol&&Ue!==Symbol.prototype?"symbol":typeof Ue},R=function(){return function(Le,_e){if(Array.isArray(Le))return Le;if(Symbol.iterator in Object(Le))return function Ue(Le,_e){var Re=[],ae=!0,oe=!1,ge=void 0;try{for(var Ae,pe=Le[Symbol.iterator]();!(ae=(Ae=pe.next()).done)&&(Re.push(Ae.value),!_e||Re.length!==_e);ae=!0);}catch(Pe){oe=!0,ge=Pe}finally{try{!ae&&pe.return&&pe.return()}finally{if(oe)throw ge}}return Re}(Le,_e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),V=function(){function Ue(Le,_e){for(var Re=0;Re<_e.length;Re++){var ae=_e[Re];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(Le,ae.key,ae)}}return function(Le,_e,Re){return _e&&Ue(Le.prototype,_e),Re&&Ue(Le,Re),Le}}();r(50);var H=z(r(2)),b=z(r(14)),S=z(r(8)),B=z(r(9)),x=z(r(0)),m=r(15),k=z(m),K=z(r(3)),ie=z(r(10)),se=z(r(34));function z(Ue){return Ue&&Ue.__esModule?Ue:{default:Ue}}function W(Ue,Le,_e){return Le in Ue?Object.defineProperty(Ue,Le,{value:_e,enumerable:!0,configurable:!0,writable:!0}):Ue[Le]=_e,Ue}var q=(0,ie.default)("quill"),ee=function(){function Ue(Le){var _e=this,Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function Y(Ue,Le){if(!(Ue instanceof Le))throw new TypeError("Cannot call a class as a function")}(this,Ue),this.options=Q(Le,Re),this.container=this.options.container,null==this.container)return q.error("Invalid Quill container",Le);this.options.debug&&Ue.debug(this.options.debug);var ae=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new S.default,this.scroll=x.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new b.default(this.scroll),this.selection=new k.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(S.default.events.EDITOR_CHANGE,function(ge){ge===S.default.events.TEXT_CHANGE&&_e.root.classList.toggle("ql-blank",_e.editor.isBlank())}),this.emitter.on(S.default.events.SCROLL_UPDATE,function(ge,pe){var Ae=_e.selection.lastRange,Pe=Ae&&0===Ae.length?Ae.index:void 0;be.call(_e,function(){return _e.editor.update(null,pe,Pe)},ge)});var oe=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+ae+"<p><br></p></div>");this.setContents(oe),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return V(Ue,null,[{key:"debug",value:function(_e){!0===_e&&(_e="log"),ie.default.level(_e)}},{key:"find",value:function(_e){return _e.__quill||x.default.find(_e)}},{key:"import",value:function(_e){return null==this.imports[_e]&&q.error("Cannot import "+_e+". Are you sure it was registered?"),this.imports[_e]}},{key:"register",value:function(_e,Re){var ae=this,oe=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof _e){var ge=_e.attrName||_e.blotName;"string"==typeof ge?this.register("formats/"+ge,_e,Re):Object.keys(_e).forEach(function(pe){ae.register(pe,_e[pe],Re)})}else null!=this.imports[_e]&&!oe&&q.warn("Overwriting "+_e+" with",Re),this.imports[_e]=Re,(_e.startsWith("blots/")||_e.startsWith("formats/"))&&"abstract"!==Re.blotName?x.default.register(Re):_e.startsWith("modules")&&"function"==typeof Re.register&&Re.register()}}]),V(Ue,[{key:"addContainer",value:function(_e){var Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof _e){var ae=_e;(_e=document.createElement("div")).classList.add(ae)}return this.container.insertBefore(_e,Re),_e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(_e,Re,ae){var oe=this,ge=we(_e,Re,ae),pe=R(ge,4);return be.call(this,function(){return oe.editor.deleteText(_e,Re)},ae=pe[3],_e=pe[0],-1*(Re=pe[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var _e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(_e),this.container.classList.toggle("ql-disabled",!_e)}},{key:"focus",value:function(){var _e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=_e,this.scrollIntoView()}},{key:"format",value:function(_e,Re){var ae=this;return be.call(this,function(){var ge=ae.getSelection(!0),pe=new H.default;if(null==ge)return pe;if(x.default.query(_e,x.default.Scope.BLOCK))pe=ae.editor.formatLine(ge.index,ge.length,W({},_e,Re));else{if(0===ge.length)return ae.selection.format(_e,Re),pe;pe=ae.editor.formatText(ge.index,ge.length,W({},_e,Re))}return ae.setSelection(ge,S.default.sources.SILENT),pe},arguments.length>2&&void 0!==arguments[2]?arguments[2]:S.default.sources.API)}},{key:"formatLine",value:function(_e,Re,ae,oe,ge){var Ae,pe=this,Pe=we(_e,Re,ae,oe,ge),We=R(Pe,4);return Re=We[1],Ae=We[2],be.call(this,function(){return pe.editor.formatLine(_e,Re,Ae)},ge=We[3],_e=We[0],0)}},{key:"formatText",value:function(_e,Re,ae,oe,ge){var Ae,pe=this,Pe=we(_e,Re,ae,oe,ge),We=R(Pe,4);return Re=We[1],Ae=We[2],be.call(this,function(){return pe.editor.formatText(_e,Re,Ae)},ge=We[3],_e=We[0],0)}},{key:"getBounds",value:function(_e){var ae;ae="number"==typeof _e?this.selection.getBounds(_e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(_e.index,_e.length);var oe=this.container.getBoundingClientRect();return{bottom:ae.bottom-oe.top,height:ae.height,left:ae.left-oe.left,right:ae.right-oe.left,top:ae.top-oe.top,width:ae.width}}},{key:"getContents",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-_e,ae=we(_e,Re),oe=R(ae,2);return this.editor.getContents(_e=oe[0],Re=oe[1])}},{key:"getFormat",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof _e?this.editor.getFormat(_e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(_e.index,_e.length)}},{key:"getIndex",value:function(_e){return _e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(_e){return this.scroll.leaf(_e)}},{key:"getLine",value:function(_e){return this.scroll.line(_e)}},{key:"getLines",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof _e?this.scroll.lines(_e.index,_e.length):this.scroll.lines(_e,Re)}},{key:"getModule",value:function(_e){return this.theme.modules[_e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-_e,ae=we(_e,Re),oe=R(ae,2);return this.editor.getText(_e=oe[0],Re=oe[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(_e,Re,ae){var oe=this;return be.call(this,function(){return oe.editor.insertEmbed(_e,Re,ae)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ue.sources.API,_e)}},{key:"insertText",value:function(_e,Re,ae,oe,ge){var Ae,pe=this,Pe=we(_e,0,ae,oe,ge),We=R(Pe,4);return Ae=We[2],be.call(this,function(){return pe.editor.insertText(_e,Re,Ae)},ge=We[3],_e=We[0],Re.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(_e,Re,ae){this.clipboard.dangerouslyPasteHTML(_e,Re,ae)}},{key:"removeFormat",value:function(_e,Re,ae){var oe=this,ge=we(_e,Re,ae),pe=R(ge,4);return Re=pe[1],be.call(this,function(){return oe.editor.removeFormat(_e,Re)},ae=pe[3],_e=pe[0])}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(_e){var Re=this;return be.call(this,function(){_e=new H.default(_e);var oe=Re.getLength(),ge=Re.editor.deleteText(0,oe),pe=Re.editor.applyDelta(_e),Ae=pe.ops[pe.ops.length-1];return null!=Ae&&"string"==typeof Ae.insert&&"\n"===Ae.insert[Ae.insert.length-1]&&(Re.editor.deleteText(Re.getLength()-1,1),pe.delete(1)),ge.compose(pe)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.default.sources.API)}},{key:"setSelection",value:function(_e,Re,ae){if(null==_e)this.selection.setRange(null,Re||Ue.sources.API);else{var oe=we(_e,Re,ae),ge=R(oe,4);ae=ge[3],this.selection.setRange(new m.Range(_e=ge[0],Re=ge[1]),ae),ae!==S.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(_e){var Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.default.sources.API,ae=(new H.default).insert(_e);return this.setContents(ae,Re)}},{key:"update",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S.default.sources.USER,Re=this.scroll.update(_e);return this.selection.update(_e),Re}},{key:"updateContents",value:function(_e){var Re=this,ae=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.default.sources.API;return be.call(this,function(){return _e=new H.default(_e),Re.editor.applyDelta(_e,ae)},ae,!0)}}]),Ue}();function Q(Ue,Le){if((Le=(0,K.default)(!0,{container:Ue,modules:{clipboard:!0,keyboard:!0,history:!0}},Le)).theme&&Le.theme!==ee.DEFAULTS.theme){if(Le.theme=ee.import("themes/"+Le.theme),null==Le.theme)throw new Error("Invalid theme "+Le.theme+". Did you register it?")}else Le.theme=se.default;var _e=(0,K.default)(!0,{},Le.theme.DEFAULTS);[_e,Le].forEach(function(oe){oe.modules=oe.modules||{},Object.keys(oe.modules).forEach(function(ge){!0===oe.modules[ge]&&(oe.modules[ge]={})})});var ae=Object.keys(_e.modules).concat(Object.keys(Le.modules)).reduce(function(oe,ge){var pe=ee.import("modules/"+ge);return null==pe?q.error("Cannot load "+ge+" module. Are you sure you registered it?"):oe[ge]=pe.DEFAULTS||{},oe},{});return null!=Le.modules&&Le.modules.toolbar&&Le.modules.toolbar.constructor!==Object&&(Le.modules.toolbar={container:Le.modules.toolbar}),Le=(0,K.default)(!0,{},ee.DEFAULTS,{modules:ae},_e,Le),["bounds","container","scrollingContainer"].forEach(function(oe){"string"==typeof Le[oe]&&(Le[oe]=document.querySelector(Le[oe]))}),Le.modules=Object.keys(Le.modules).reduce(function(oe,ge){return Le.modules[ge]&&(oe[ge]=Le.modules[ge]),oe},{}),Le}function be(Ue,Le,_e,Re){if(this.options.strict&&!this.isEnabled()&&Le===S.default.sources.USER)return new H.default;var ae=null==_e?null:this.getSelection(),oe=this.editor.delta,ge=Ue();if(null!=ae&&(!0===_e&&(_e=ae.index),null==Re?ae=Ze(ae,ge,Le):0!==Re&&(ae=Ze(ae,_e,Re,Le)),this.setSelection(ae,S.default.sources.SILENT)),ge.length()>0){var pe,Pe,Ae=[S.default.events.TEXT_CHANGE,ge,oe,Le];(pe=this.emitter).emit.apply(pe,[S.default.events.EDITOR_CHANGE].concat(Ae)),Le!==S.default.sources.SILENT&&(Pe=this.emitter).emit.apply(Pe,Ae)}return ge}function we(Ue,Le,_e,Re,ae){var oe={};return"number"==typeof Ue.index&&"number"==typeof Ue.length?"number"!=typeof Le?(ae=Re,Re=_e,_e=Le,Le=Ue.length,Ue=Ue.index):(Le=Ue.length,Ue=Ue.index):"number"!=typeof Le&&(ae=Re,Re=_e,_e=Le,Le=0),"object"===(typeof _e>"u"?"undefined":g(_e))?(oe=_e,ae=Re):"string"==typeof _e&&(null!=Re?oe[_e]=Re:ae=_e),[Ue,Le,oe,ae=ae||S.default.sources.API]}function Ze(Ue,Le,_e,Re){if(null==Ue)return null;var ae=void 0,oe=void 0;if(Le instanceof H.default){var ge=[Ue.index,Ue.index+Ue.length].map(function(We){return Le.transformPosition(We,Re!==S.default.sources.USER)}),pe=R(ge,2);ae=pe[0],oe=pe[1]}else{var Ae=[Ue.index,Ue.index+Ue.length].map(function(We){return We<Le||We===Le&&Re===S.default.sources.USER?We:_e>=0?We+_e:Math.max(Le,We+_e)}),Pe=R(Ae,2);ae=Pe[0],oe=Pe[1]}return new m.Range(ae,oe-ae)}ee.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},ee.events=S.default.events,ee.sources=S.default.sources,ee.version="1.3.7",ee.imports={delta:H.default,parchment:x.default,"core/module":B.default,"core/theme":se.default},_.expandConfig=Q,_.overload=we,_.default=ee},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=function(){function G(x,m){for(var k=0;k<m.length;k++){var D=m[k];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(x,D.key,D)}}return function(x,m,k){return m&&G(x.prototype,m),k&&G(x,k),x}}(),R=function G(x,m,k){null===x&&(x=Function.prototype);var D=Object.getOwnPropertyDescriptor(x,m);if(void 0===D){var K=Object.getPrototypeOf(x);return null===K?void 0:G(K,m,k)}if("value"in D)return D.value;var de=D.get;return void 0===de?void 0:de.call(k)},U=b(r(7)),P=b(r(0));function b(G){return G&&G.__esModule?G:{default:G}}var B=function(G){function x(){return function C(G,x){if(!(G instanceof x))throw new TypeError("Cannot call a class as a function")}(this,x),function S(G,x){if(!G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||"object"!=typeof x&&"function"!=typeof x?G:x}(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return function I(G,x){if("function"!=typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);G.prototype=Object.create(x&&x.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(G,x):G.__proto__=x)}(x,G),g(x,[{key:"formatAt",value:function(k,D,K,de){if(x.compare(this.statics.blotName,K)<0&&P.default.query(K,P.default.Scope.BLOT)){var ie=this.isolate(k,D);de&&ie.wrap(K,de)}else R(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"formatAt",this).call(this,k,D,K,de)}},{key:"optimize",value:function(k){if(R(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,k),this.parent instanceof x&&x.compare(this.statics.blotName,this.parent.statics.blotName)>0){var D=this.parent.isolate(this.offset(),this.length());this.moveChildren(D),D.wrap(this)}}}],[{key:"compare",value:function(k,D){var K=x.order.indexOf(k),de=x.order.indexOf(D);return K>=0||de>=0?K-de:k===D?0:k<D?-1:1}}]),x}(P.default.Inline);B.allowedChildren=[B,P.default.Embed,U.default],B.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],_.default=B},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var b=function(C){function S(){return function U(C,S){if(!(C instanceof S))throw new TypeError("Cannot call a class as a function")}(this,S),function H(C,S){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!S||"object"!=typeof S&&"function"!=typeof S?C:S}(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return function P(C,S){if("function"!=typeof S&&null!==S)throw new TypeError("Super expression must either be null or a function, not "+typeof S);C.prototype=Object.create(S&&S.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(C,S):C.__proto__=S)}(S,C),S}(function V(C){return C&&C.__esModule?C:{default:C}}(r(0)).default.Text);_.default=b},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=function(){function m(k,D){for(var K=0;K<D.length;K++){var de=D[K];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(k,de.key,de)}}return function(k,D,K){return D&&m(k.prototype,D),K&&m(k,K),k}}(),R=function m(k,D,K){null===k&&(k=Function.prototype);var de=Object.getOwnPropertyDescriptor(k,D);if(void 0===de){var ie=Object.getPrototypeOf(k);return null===ie?void 0:m(ie,D,K)}if("value"in de)return de.value;var te=de.get;return void 0===te?void 0:te.call(K)},U=b(r(54));function b(m){return m&&m.__esModule?m:{default:m}}var B=(0,b(r(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(m){document.addEventListener(m,function(){for(var k=arguments.length,D=Array(k),K=0;K<k;K++)D[K]=arguments[K];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(de){var ie;de.__quill&&de.__quill.emitter&&(ie=de.__quill.emitter).handleDOM.apply(ie,D)})})});var x=function(m){function k(){!function C(m,k){if(!(m instanceof k))throw new TypeError("Cannot call a class as a function")}(this,k);var D=function S(m,k){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!k||"object"!=typeof k&&"function"!=typeof k?m:k}(this,(k.__proto__||Object.getPrototypeOf(k)).call(this));return D.listeners={},D.on("error",B.error),D}return function I(m,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function, not "+typeof k);m.prototype=Object.create(k&&k.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(m,k):m.__proto__=k)}(k,m),g(k,[{key:"emit",value:function(){B.log.apply(B,arguments),R(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(K){for(var de=arguments.length,ie=Array(de>1?de-1:0),te=1;te<de;te++)ie[te-1]=arguments[te];(this.listeners[K.type]||[]).forEach(function(se){var z=se.node,W=se.handler;(K.target===z||z.contains(K.target))&&W.apply(void 0,[K].concat(ie))})}},{key:"listenDOM",value:function(K,de,ie){this.listeners[K]||(this.listeners[K]=[]),this.listeners[K].push({node:de,handler:ie})}}]),k}(U.default);x.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},x.sources={API:"api",SILENT:"silent",USER:"user"},_.default=x},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var R=function V(U){var H=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function g(V,U){if(!(V instanceof U))throw new TypeError("Cannot call a class as a function")})(this,V),this.quill=U,this.options=H};R.DEFAULTS={},_.default=R},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=["error","warn","log","info"],R="warn";function V(H){if(g.indexOf(H)<=g.indexOf(R)){for(var P,b=arguments.length,C=Array(b>1?b-1:0),S=1;S<b;S++)C[S-1]=arguments[S];(P=console)[H].apply(P,C)}}function U(H){return g.reduce(function(P,b){return P[b]=V.bind(console,b,H),P},{})}V.level=U.level=function(H){R=H},_.default=U},function(ve,_,r){var g=Array.prototype.slice,R=r(52),V=r(53),U=ve.exports=function(C,S,I){return I||(I={}),C===S||(C instanceof Date&&S instanceof Date?C.getTime()===S.getTime():!C||!S||"object"!=typeof C&&"object"!=typeof S?I.strict?C===S:C==S:function b(C,S,I){var B,G;if(H(C)||H(S)||C.prototype!==S.prototype)return!1;if(V(C))return!!V(S)&&(C=g.call(C),S=g.call(S),U(C,S,I));if(P(C)){if(!P(S)||C.length!==S.length)return!1;for(B=0;B<C.length;B++)if(C[B]!==S[B])return!1;return!0}try{var x=R(C),m=R(S)}catch{return!1}if(x.length!=m.length)return!1;for(x.sort(),m.sort(),B=x.length-1;B>=0;B--)if(x[B]!=m[B])return!1;for(B=x.length-1;B>=0;B--)if(!U(C[G=x[B]],S[G],I))return!1;return typeof C==typeof S}(C,S,I))};function H(C){return null==C}function P(C){return!(!C||"object"!=typeof C||"number"!=typeof C.length||"function"!=typeof C.copy||"function"!=typeof C.slice||C.length>0&&"number"!=typeof C[0])}},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=r(1),R=function(){function V(U,H,P){void 0===P&&(P={}),this.attrName=U,this.keyName=H,this.scope=null!=P.scope?P.scope&g.Scope.LEVEL|g.Scope.TYPE&g.Scope.ATTRIBUTE:g.Scope.ATTRIBUTE,null!=P.whitelist&&(this.whitelist=P.whitelist)}return V.keys=function(U){return[].map.call(U.attributes,function(H){return H.name})},V.prototype.add=function(U,H){return!!this.canAdd(U,H)&&(U.setAttribute(this.keyName,H),!0)},V.prototype.canAdd=function(U,H){return null!=g.query(U,g.Scope.BLOT&(this.scope|g.Scope.TYPE))&&(null==this.whitelist||("string"==typeof H?this.whitelist.indexOf(H.replace(/["']/g,""))>-1:this.whitelist.indexOf(H)>-1))},V.prototype.remove=function(U){U.removeAttribute(this.keyName)},V.prototype.value=function(U){var H=U.getAttribute(this.keyName);return this.canAdd(U,H)&&H?H:""},V}();_.default=R},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.Code=void 0;var g=function(){return function(se,z){if(Array.isArray(se))return se;if(Symbol.iterator in Object(se))return function te(se,z){var W=[],Y=!0,q=!1,ee=void 0;try{for(var be,Q=se[Symbol.iterator]();!(Y=(be=Q.next()).done)&&(W.push(be.value),!z||W.length!==z);Y=!0);}catch(we){q=!0,ee=we}finally{try{!Y&&Q.return&&Q.return()}finally{if(q)throw ee}}return W}(se,z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),R=function(){function te(se,z){for(var W=0;W<z.length;W++){var Y=z[W];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(se,Y.key,Y)}}return function(se,z,W){return z&&te(se.prototype,z),W&&te(se,W),se}}(),V=function te(se,z,W){null===se&&(se=Function.prototype);var Y=Object.getOwnPropertyDescriptor(se,z);if(void 0===Y){var q=Object.getPrototypeOf(se);return null===q?void 0:te(q,z,W)}if("value"in Y)return Y.value;var ee=Y.get;return void 0===ee?void 0:ee.call(W)},H=m(r(2)),b=m(r(0)),S=m(r(4)),B=m(r(6)),x=m(r(7));function m(te){return te&&te.__esModule?te:{default:te}}function k(te,se){if(!(te instanceof se))throw new TypeError("Cannot call a class as a function")}function D(te,se){if(!te)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!se||"object"!=typeof se&&"function"!=typeof se?te:se}function K(te,se){if("function"!=typeof se&&null!==se)throw new TypeError("Super expression must either be null or a function, not "+typeof se);te.prototype=Object.create(se&&se.prototype,{constructor:{value:te,enumerable:!1,writable:!0,configurable:!0}}),se&&(Object.setPrototypeOf?Object.setPrototypeOf(te,se):te.__proto__=se)}var de=function(te){function se(){return k(this,se),D(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return K(se,te),se}(B.default);de.blotName="code",de.tagName="CODE";var ie=function(te){function se(){return k(this,se),D(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return K(se,te),R(se,[{key:"delta",value:function(){var W=this,Y=this.domNode.textContent;return Y.endsWith("\n")&&(Y=Y.slice(0,-1)),Y.split("\n").reduce(function(q,ee){return q.insert(ee).insert("\n",W.formats())},new H.default)}},{key:"format",value:function(W,Y){if(W!==this.statics.blotName||!Y){var q=this.descendant(x.default,this.length()-1),Q=g(q,1)[0];Q?.deleteAt(Q.length()-1,1),V(se.prototype.__proto__||Object.getPrototypeOf(se.prototype),"format",this).call(this,W,Y)}}},{key:"formatAt",value:function(W,Y,q,ee){if(0!==Y&&null!=b.default.query(q,b.default.Scope.BLOCK)&&(q!==this.statics.blotName||ee!==this.statics.formats(this.domNode))){var Q=this.newlineIndex(W);if(!(Q<0||Q>=W+Y)){var be=this.newlineIndex(W,!0)+1,we=Q-be+1,Ze=this.isolate(be,we),Ue=Ze.next;Ze.format(q,ee),Ue instanceof se&&Ue.formatAt(0,W-be+Y-we,q,ee)}}}},{key:"insertAt",value:function(W,Y,q){if(null==q){var ee=this.descendant(x.default,W),Q=g(ee,2);Q[0].insertAt(Q[1],Y)}}},{key:"length",value:function(){var W=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?W:W+1}},{key:"newlineIndex",value:function(W){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,W).lastIndexOf("\n");var q=this.domNode.textContent.slice(W).indexOf("\n");return q>-1?W+q:-1}},{key:"optimize",value:function(W){this.domNode.textContent.endsWith("\n")||this.appendChild(b.default.create("text","\n")),V(se.prototype.__proto__||Object.getPrototypeOf(se.prototype),"optimize",this).call(this,W);var Y=this.next;null!=Y&&Y.prev===this&&Y.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===Y.statics.formats(Y.domNode)&&(Y.optimize(W),Y.moveChildren(this),Y.remove())}},{key:"replace",value:function(W){V(se.prototype.__proto__||Object.getPrototypeOf(se.prototype),"replace",this).call(this,W),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(Y){var q=b.default.find(Y);null==q?Y.parentNode.removeChild(Y):q instanceof b.default.Embed?q.remove():q.unwrap()})}}],[{key:"create",value:function(W){var Y=V(se.__proto__||Object.getPrototypeOf(se),"create",this).call(this,W);return Y.setAttribute("spellcheck",!1),Y}},{key:"formats",value:function(){return!0}}]),se}(S.default);ie.blotName="code-block",ie.tagName="PRE",ie.TAB="  ",_.Code=de,_.default=ie},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ue){return typeof Ue}:function(Ue){return Ue&&"function"==typeof Symbol&&Ue.constructor===Symbol&&Ue!==Symbol.prototype?"symbol":typeof Ue},R=function(){return function(Le,_e){if(Array.isArray(Le))return Le;if(Symbol.iterator in Object(Le))return function Ue(Le,_e){var Re=[],ae=!0,oe=!1,ge=void 0;try{for(var Ae,pe=Le[Symbol.iterator]();!(ae=(Ae=pe.next()).done)&&(Re.push(Ae.value),!_e||Re.length!==_e);ae=!0);}catch(Pe){oe=!0,ge=Pe}finally{try{!ae&&pe.return&&pe.return()}finally{if(oe)throw ge}}return Re}(Le,_e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),V=function(){function Ue(Le,_e){for(var Re=0;Re<_e.length;Re++){var ae=_e[Re];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(Le,ae.key,ae)}}return function(Le,_e,Re){return _e&&Ue(Le.prototype,_e),Re&&Ue(Le,Re),Le}}(),H=Y(r(2)),b=Y(r(20)),S=Y(r(0)),B=Y(r(13)),x=Y(r(24)),m=r(4),k=Y(m),K=Y(r(16)),ie=Y(r(21)),se=Y(r(11)),W=Y(r(3));function Y(Ue){return Ue&&Ue.__esModule?Ue:{default:Ue}}var Q=/^[ -~]*$/,be=function(){function Ue(Le){(function ee(Ue,Le){if(!(Ue instanceof Le))throw new TypeError("Cannot call a class as a function")})(this,Ue),this.scroll=Le,this.delta=this.getDelta()}return V(Ue,[{key:"applyDelta",value:function(_e){var Re=this,ae=!1;this.scroll.update();var oe=this.scroll.length();return this.scroll.batchStart(),(_e=function Ze(Ue){return Ue.reduce(function(Le,_e){if(1===_e.insert){var Re=(0,ie.default)(_e.attributes);return delete Re.image,Le.insert({image:_e.attributes.image},Re)}if(null!=_e.attributes&&(!0===_e.attributes.list||!0===_e.attributes.bullet)&&((_e=(0,ie.default)(_e)).attributes.list?_e.attributes.list="ordered":(_e.attributes.list="bullet",delete _e.attributes.bullet)),"string"==typeof _e.insert){var ae=_e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return Le.insert(ae,_e.attributes)}return Le.push(_e)},new H.default)}(_e)).reduce(function(ge,pe){var Ae=pe.retain||pe.delete||pe.insert.length||1,Pe=pe.attributes||{};if(null!=pe.insert){if("string"==typeof pe.insert){var We=pe.insert;We.endsWith("\n")&&ae&&(ae=!1,We=We.slice(0,-1)),ge>=oe&&!We.endsWith("\n")&&(ae=!0),Re.scroll.insertAt(ge,We);var Ge=Re.scroll.line(ge),ut=R(Ge,2),Fe=ut[0],tt=ut[1],st=(0,W.default)({},(0,m.bubbleFormats)(Fe));if(Fe instanceof k.default){var ct=Fe.descendant(S.default.Leaf,tt),St=R(ct,1);st=(0,W.default)(st,(0,m.bubbleFormats)(St[0]))}Pe=b.default.attributes.diff(st,Pe)||{}}else if("object"===g(pe.insert)){var it=Object.keys(pe.insert)[0];if(null==it)return ge;Re.scroll.insertAt(ge,it,pe.insert[it])}oe+=Ae}return Object.keys(Pe).forEach(function(Xe){Re.scroll.formatAt(ge,Ae,Xe,Pe[Xe])}),ge+Ae},0),_e.reduce(function(ge,pe){return"number"==typeof pe.delete?(Re.scroll.deleteAt(ge,pe.delete),ge):ge+(pe.retain||pe.insert.length||1)},0),this.scroll.batchEnd(),this.update(_e)}},{key:"deleteText",value:function(_e,Re){return this.scroll.deleteAt(_e,Re),this.update((new H.default).retain(_e).delete(Re))}},{key:"formatLine",value:function(_e,Re){var ae=this,oe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(oe).forEach(function(ge){if(null==ae.scroll.whitelist||ae.scroll.whitelist[ge]){var pe=ae.scroll.lines(_e,Math.max(Re,1)),Ae=Re;pe.forEach(function(Pe){var We=Pe.length();if(Pe instanceof B.default){var Ge=_e-Pe.offset(ae.scroll),ut=Pe.newlineIndex(Ge+Ae)-Ge+1;Pe.formatAt(Ge,ut,ge,oe[ge])}else Pe.format(ge,oe[ge]);Ae-=We})}}),this.scroll.optimize(),this.update((new H.default).retain(_e).retain(Re,(0,ie.default)(oe)))}},{key:"formatText",value:function(_e,Re){var ae=this,oe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(oe).forEach(function(ge){ae.scroll.formatAt(_e,Re,ge,oe[ge])}),this.update((new H.default).retain(_e).retain(Re,(0,ie.default)(oe)))}},{key:"getContents",value:function(_e,Re){return this.delta.slice(_e,_e+Re)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(_e,Re){return _e.concat(Re.delta())},new H.default)}},{key:"getFormat",value:function(_e){var Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ae=[],oe=[];0===Re?this.scroll.path(_e).forEach(function(pe){var Pe=R(pe,1)[0];Pe instanceof k.default?ae.push(Pe):Pe instanceof S.default.Leaf&&oe.push(Pe)}):(ae=this.scroll.lines(_e,Re),oe=this.scroll.descendants(S.default.Leaf,_e,Re));var ge=[ae,oe].map(function(pe){if(0===pe.length)return{};for(var Ae=(0,m.bubbleFormats)(pe.shift());Object.keys(Ae).length>0;){var Pe=pe.shift();if(null==Pe)return Ae;Ae=we((0,m.bubbleFormats)(Pe),Ae)}return Ae});return W.default.apply(W.default,ge)}},{key:"getText",value:function(_e,Re){return this.getContents(_e,Re).filter(function(ae){return"string"==typeof ae.insert}).map(function(ae){return ae.insert}).join("")}},{key:"insertEmbed",value:function(_e,Re,ae){return this.scroll.insertAt(_e,Re,ae),this.update((new H.default).retain(_e).insert(function q(Ue,Le,_e){return Le in Ue?Object.defineProperty(Ue,Le,{value:_e,enumerable:!0,configurable:!0,writable:!0}):Ue[Le]=_e,Ue}({},Re,ae)))}},{key:"insertText",value:function(_e,Re){var ae=this,oe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Re=Re.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(_e,Re),Object.keys(oe).forEach(function(ge){ae.scroll.formatAt(_e,Re.length,ge,oe[ge])}),this.update((new H.default).retain(_e).insert(Re,(0,ie.default)(oe)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var _e=this.scroll.children.head;return!(_e.statics.blotName!==k.default.blotName||_e.children.length>1)&&_e.children.head instanceof K.default}},{key:"removeFormat",value:function(_e,Re){var ae=this.getText(_e,Re),oe=this.scroll.line(_e+Re),ge=R(oe,2),pe=ge[0],Ae=ge[1],Pe=0,We=new H.default;null!=pe&&(Pe=pe instanceof B.default?pe.newlineIndex(Ae)-Ae+1:pe.length()-Ae,We=pe.delta().slice(Ae,Ae+Pe-1).insert("\n"));var ut=this.getContents(_e,Re+Pe).diff((new H.default).insert(ae).concat(We)),Fe=(new H.default).retain(_e).concat(ut);return this.applyDelta(Fe)}},{key:"update",value:function(_e){var Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],ae=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,oe=this.delta;if(1===Re.length&&"characterData"===Re[0].type&&Re[0].target.data.match(Q)&&S.default.find(Re[0].target)){var ge=S.default.find(Re[0].target),pe=(0,m.bubbleFormats)(ge),Ae=ge.offset(this.scroll),Pe=Re[0].oldValue.replace(x.default.CONTENTS,""),We=(new H.default).insert(Pe),Ge=(new H.default).insert(ge.value());_e=(new H.default).retain(Ae).concat(We.diff(Ge,ae)).reduce(function(Fe,tt){return tt.insert?Fe.insert(tt.insert,pe):Fe.push(tt)},new H.default),this.delta=oe.compose(_e)}else this.delta=this.getDelta(),(!_e||!(0,se.default)(oe.compose(_e),this.delta))&&(_e=oe.diff(this.delta,ae));return _e}}]),Ue}();function we(Ue,Le){return Object.keys(Le).reduce(function(_e,Re){return null==Ue[Re]||(Le[Re]===Ue[Re]?_e[Re]=Le[Re]:Array.isArray(Le[Re])?Le[Re].indexOf(Ue[Re])<0&&(_e[Re]=Le[Re].concat([Ue[Re]])):_e[Re]=[Le[Re],Ue[Re]]),_e},{})}_.default=be},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.Range=void 0;var g=function(){return function(se,z){if(Array.isArray(se))return se;if(Symbol.iterator in Object(se))return function te(se,z){var W=[],Y=!0,q=!1,ee=void 0;try{for(var be,Q=se[Symbol.iterator]();!(Y=(be=Q.next()).done)&&(W.push(be.value),!z||W.length!==z);Y=!0);}catch(we){q=!0,ee=we}finally{try{!Y&&Q.return&&Q.return()}finally{if(q)throw ee}}return W}(se,z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),R=function(){function te(se,z){for(var W=0;W<z.length;W++){var Y=z[W];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(se,Y.key,Y)}}return function(se,z,W){return z&&te(se.prototype,z),W&&te(se,W),se}}(),U=x(r(0)),P=x(r(21)),C=x(r(11)),I=x(r(8));function x(te){return te&&te.__esModule?te:{default:te}}function m(te){if(Array.isArray(te)){for(var se=0,z=Array(te.length);se<te.length;se++)z[se]=te[se];return z}return Array.from(te)}function k(te,se){if(!(te instanceof se))throw new TypeError("Cannot call a class as a function")}var D=(0,x(r(10)).default)("quill:selection"),K=function te(se){var z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;k(this,te),this.index=se,this.length=z},de=function(){function te(se,z){var W=this;k(this,te),this.emitter=z,this.scroll=se,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=U.default.create("cursor",this),this.lastRange=this.savedRange=new K(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){W.mouseDown||setTimeout(W.update.bind(W,I.default.sources.USER),1)}),this.emitter.on(I.default.events.EDITOR_CHANGE,function(Y,q){Y===I.default.events.TEXT_CHANGE&&q.length()>0&&W.update(I.default.sources.SILENT)}),this.emitter.on(I.default.events.SCROLL_BEFORE_UPDATE,function(){if(W.hasFocus()){var Y=W.getNativeRange();null!=Y&&Y.start.node!==W.cursor.textNode&&W.emitter.once(I.default.events.SCROLL_UPDATE,function(){try{W.setNativeRange(Y.start.node,Y.start.offset,Y.end.node,Y.end.offset)}catch{}})}}),this.emitter.on(I.default.events.SCROLL_OPTIMIZE,function(Y,q){if(q.range){var ee=q.range;W.setNativeRange(ee.startNode,ee.startOffset,ee.endNode,ee.endOffset)}}),this.update(I.default.sources.SILENT)}return R(te,[{key:"handleComposition",value:function(){var z=this;this.root.addEventListener("compositionstart",function(){z.composing=!0}),this.root.addEventListener("compositionend",function(){if(z.composing=!1,z.cursor.parent){var W=z.cursor.restore();if(!W)return;setTimeout(function(){z.setNativeRange(W.startNode,W.startOffset,W.endNode,W.endOffset)},1)}})}},{key:"handleDragging",value:function(){var z=this;this.emitter.listenDOM("mousedown",document.body,function(){z.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){z.mouseDown=!1,z.update(I.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(z,W){if(null==this.scroll.whitelist||this.scroll.whitelist[z]){this.scroll.update();var Y=this.getNativeRange();if(null!=Y&&Y.native.collapsed&&!U.default.query(z,U.default.Scope.BLOCK)){if(Y.start.node!==this.cursor.textNode){var q=U.default.find(Y.start.node,!1);if(null==q)return;if(q instanceof U.default.Leaf){var ee=q.split(Y.start.offset);q.parent.insertBefore(this.cursor,ee)}else q.insertBefore(this.cursor,Y.start.node);this.cursor.attach()}this.cursor.format(z,W),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(z){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,Y=this.scroll.length();z=Math.min(z,Y-1),W=Math.min(z+W,Y-1)-z;var q=void 0,ee=this.scroll.leaf(z),Q=g(ee,2),be=Q[0],we=Q[1];if(null==be)return null;var Ze=be.position(we,!0),Ue=g(Ze,2);q=Ue[0],we=Ue[1];var Le=document.createRange();if(W>0){Le.setStart(q,we);var _e=this.scroll.leaf(z+W),Re=g(_e,2);if(null==(be=Re[0]))return null;var ae=be.position(we=Re[1],!0),oe=g(ae,2);return Le.setEnd(q=oe[0],we=oe[1]),Le.getBoundingClientRect()}var ge="left",pe=void 0;return q instanceof Text?(we<q.data.length?(Le.setStart(q,we),Le.setEnd(q,we+1)):(Le.setStart(q,we-1),Le.setEnd(q,we),ge="right"),pe=Le.getBoundingClientRect()):(pe=be.domNode.getBoundingClientRect(),we>0&&(ge="right")),{bottom:pe.top+pe.height,height:pe.height,left:pe[ge],right:pe[ge],top:pe.top,width:0}}},{key:"getNativeRange",value:function(){var z=document.getSelection();if(null==z||z.rangeCount<=0)return null;var W=z.getRangeAt(0);if(null==W)return null;var Y=this.normalizeNative(W);return D.info("getNativeRange",Y),Y}},{key:"getRange",value:function(){var z=this.getNativeRange();return null==z?[null,null]:[this.normalizedToRange(z),z]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(z){var W=this,Y=[[z.start.node,z.start.offset]];z.native.collapsed||Y.push([z.end.node,z.end.offset]);var q=Y.map(function(be){var we=g(be,2),Ze=we[0],Ue=we[1],Le=U.default.find(Ze,!0),_e=Le.offset(W.scroll);return 0===Ue?_e:Le instanceof U.default.Container?_e+Le.length():_e+Le.index(Ze,Ue)}),ee=Math.min(Math.max.apply(Math,m(q)),this.scroll.length()-1),Q=Math.min.apply(Math,[ee].concat(m(q)));return new K(Q,ee-Q)}},{key:"normalizeNative",value:function(z){if(!ie(this.root,z.startContainer)||!z.collapsed&&!ie(this.root,z.endContainer))return null;var W={start:{node:z.startContainer,offset:z.startOffset},end:{node:z.endContainer,offset:z.endOffset},native:z};return[W.start,W.end].forEach(function(Y){for(var q=Y.node,ee=Y.offset;!(q instanceof Text)&&q.childNodes.length>0;)if(q.childNodes.length>ee)q=q.childNodes[ee],ee=0;else{if(q.childNodes.length!==ee)break;ee=(q=q.lastChild)instanceof Text?q.data.length:q.childNodes.length+1}Y.node=q,Y.offset=ee}),W}},{key:"rangeToNative",value:function(z){var W=this,Y=z.collapsed?[z.index]:[z.index,z.index+z.length],q=[],ee=this.scroll.length();return Y.forEach(function(Q,be){Q=Math.min(ee-1,Q);var Ze=W.scroll.leaf(Q),Ue=g(Ze,2),_e=Ue[1],Re=Ue[0].position(_e,0!==be),ae=g(Re,2);q.push(ae[0],_e=ae[1])}),q.length<2&&(q=q.concat(q)),q}},{key:"scrollIntoView",value:function(z){var W=this.lastRange;if(null!=W){var Y=this.getBounds(W.index,W.length);if(null!=Y){var q=this.scroll.length()-1,ee=this.scroll.line(Math.min(W.index,q)),be=g(ee,1)[0],we=be;if(W.length>0){var Ze=this.scroll.line(Math.min(W.index+W.length,q));we=g(Ze,1)[0]}if(null!=be&&null!=we){var Le=z.getBoundingClientRect();Y.top<Le.top?z.scrollTop-=Le.top-Y.top:Y.bottom>Le.bottom&&(z.scrollTop+=Y.bottom-Le.bottom)}}}}},{key:"setNativeRange",value:function(z,W){var Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z,q=arguments.length>3&&void 0!==arguments[3]?arguments[3]:W,ee=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(D.info("setNativeRange",z,W,Y,q),null==z||null!=this.root.parentNode&&null!=z.parentNode&&null!=Y.parentNode){var Q=document.getSelection();if(null!=Q)if(null!=z){this.hasFocus()||this.root.focus();var be=(this.getNativeRange()||{}).native;if(null==be||ee||z!==be.startContainer||W!==be.startOffset||Y!==be.endContainer||q!==be.endOffset){"BR"==z.tagName&&(W=[].indexOf.call(z.parentNode.childNodes,z),z=z.parentNode),"BR"==Y.tagName&&(q=[].indexOf.call(Y.parentNode.childNodes,Y),Y=Y.parentNode);var we=document.createRange();we.setStart(z,W),we.setEnd(Y,q),Q.removeAllRanges(),Q.addRange(we)}}else Q.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(z){var W=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I.default.sources.API;if("string"==typeof W&&(Y=W,W=!1),D.info("setRange",z),null!=z){var q=this.rangeToNative(z);this.setNativeRange.apply(this,m(q).concat([W]))}else this.setNativeRange(null);this.update(Y)}},{key:"update",value:function(){var z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I.default.sources.USER,W=this.lastRange,Y=this.getRange(),q=g(Y,2),Q=q[1];if(this.lastRange=q[0],null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,C.default)(W,this.lastRange)){var be;!this.composing&&null!=Q&&Q.native.collapsed&&Q.start.node!==this.cursor.textNode&&this.cursor.restore();var Ze,we=[I.default.events.SELECTION_CHANGE,(0,P.default)(this.lastRange),(0,P.default)(W),z];(be=this.emitter).emit.apply(be,[I.default.events.EDITOR_CHANGE].concat(we)),z!==I.default.sources.SILENT&&(Ze=this.emitter).emit.apply(Ze,we)}}}]),te}();function ie(te,se){return se instanceof Text&&(se=se.parentNode),te.contains(se)}_.Range=K,_.default=de},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=function(){function I(B,G){for(var x=0;x<G.length;x++){var m=G[x];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(B,m.key,m)}}return function(B,G,x){return G&&I(B.prototype,G),x&&I(B,x),B}}(),R=function I(B,G,x){null===B&&(B=Function.prototype);var m=Object.getOwnPropertyDescriptor(B,G);if(void 0===m){var k=Object.getPrototypeOf(B);return null===k?void 0:I(k,G,x)}if("value"in m)return m.value;var D=m.get;return void 0===D?void 0:D.call(x)};var S=function(I){function B(){return function P(I,B){if(!(I instanceof B))throw new TypeError("Cannot call a class as a function")}(this,B),function b(I,B){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!B||"object"!=typeof B&&"function"!=typeof B?I:B}(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return function C(I,B){if("function"!=typeof B&&null!==B)throw new TypeError("Super expression must either be null or a function, not "+typeof B);I.prototype=Object.create(B&&B.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(I,B):I.__proto__=B)}(B,I),g(B,[{key:"insertInto",value:function(x,m){0===x.children.length?R(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"insertInto",this).call(this,x,m):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),B}(function H(I){return I&&I.__esModule?I:{default:I}}(r(0)).default.Embed);S.blotName="break",S.tagName="BR",_.default=S},function(ve,_,r){"use strict";var b,g=this&&this.__extends||(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,S){C.__proto__=S}||function(C,S){for(var I in S)S.hasOwnProperty(I)&&(C[I]=S[I])},function(C,S){function I(){this.constructor=C}b(C,S),C.prototype=null===S?Object.create(S):(I.prototype=S.prototype,new I)});Object.defineProperty(_,"__esModule",{value:!0});var R=r(44),V=r(30),U=r(1),H=function(b){function C(S){var I=b.call(this,S)||this;return I.build(),I}return g(C,b),C.prototype.appendChild=function(S){this.insertBefore(S)},C.prototype.attach=function(){b.prototype.attach.call(this),this.children.forEach(function(S){S.attach()})},C.prototype.build=function(){var S=this;this.children=new R.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(I){try{var B=P(I);S.insertBefore(B,S.children.head||void 0)}catch(G){if(G instanceof U.ParchmentError)return;throw G}})},C.prototype.deleteAt=function(S,I){if(0===S&&I===this.length())return this.remove();this.children.forEachAt(S,I,function(B,G,x){B.deleteAt(G,x)})},C.prototype.descendant=function(S,I){var B=this.children.find(I),G=B[0],x=B[1];return null==S.blotName&&S(G)||null!=S.blotName&&G instanceof S?[G,x]:G instanceof C?G.descendant(S,x):[null,-1]},C.prototype.descendants=function(S,I,B){void 0===I&&(I=0),void 0===B&&(B=Number.MAX_VALUE);var G=[],x=B;return this.children.forEachAt(I,B,function(m,k,D){(null==S.blotName&&S(m)||null!=S.blotName&&m instanceof S)&&G.push(m),m instanceof C&&(G=G.concat(m.descendants(S,k,x))),x-=D}),G},C.prototype.detach=function(){this.children.forEach(function(S){S.detach()}),b.prototype.detach.call(this)},C.prototype.formatAt=function(S,I,B,G){this.children.forEachAt(S,I,function(x,m,k){x.formatAt(m,k,B,G)})},C.prototype.insertAt=function(S,I,B){var G=this.children.find(S),x=G[0];if(x)x.insertAt(G[1],I,B);else{var k=null==B?U.create("text",I):U.create(I,B);this.appendChild(k)}},C.prototype.insertBefore=function(S,I){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(B){return S instanceof B}))throw new U.ParchmentError("Cannot insert "+S.statics.blotName+" into "+this.statics.blotName);S.insertInto(this,I)},C.prototype.length=function(){return this.children.reduce(function(S,I){return S+I.length()},0)},C.prototype.moveChildren=function(S,I){this.children.forEach(function(B){S.insertBefore(B,I)})},C.prototype.optimize=function(S){if(b.prototype.optimize.call(this,S),0===this.children.length)if(null!=this.statics.defaultChild){var I=U.create(this.statics.defaultChild);this.appendChild(I),I.optimize(S)}else this.remove()},C.prototype.path=function(S,I){void 0===I&&(I=!1);var B=this.children.find(S,I),G=B[0],x=B[1],m=[[this,S]];return G instanceof C?m.concat(G.path(x,I)):(null!=G&&m.push([G,x]),m)},C.prototype.removeChild=function(S){this.children.remove(S)},C.prototype.replace=function(S){S instanceof C&&S.moveChildren(this),b.prototype.replace.call(this,S)},C.prototype.split=function(S,I){if(void 0===I&&(I=!1),!I){if(0===S)return this;if(S===this.length())return this.next}var B=this.clone();return this.parent.insertBefore(B,this.next),this.children.forEachAt(S,this.length(),function(G,x,m){G=G.split(x,I),B.appendChild(G)}),B},C.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},C.prototype.update=function(S,I){var B=this,G=[],x=[];S.forEach(function(m){m.target===B.domNode&&"childList"===m.type&&(G.push.apply(G,m.addedNodes),x.push.apply(x,m.removedNodes))}),x.forEach(function(m){if(!(null!=m.parentNode&&"IFRAME"!==m.tagName&&document.body.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var k=U.find(m);null!=k&&(null==k.domNode.parentNode||k.domNode.parentNode===B.domNode)&&k.detach()}}),G.filter(function(m){return m.parentNode==B.domNode}).sort(function(m,k){return m===k?0:m.compareDocumentPosition(k)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(m){var k=null;null!=m.nextSibling&&(k=U.find(m.nextSibling));var D=P(m);(D.next!=k||null==D.next)&&(null!=D.parent&&D.parent.removeChild(B),B.insertBefore(D,k||void 0))})},C}(V.default);function P(b){var C=U.find(b);if(null==C)try{C=U.create(b)}catch{C=U.create(U.Scope.INLINE),[].slice.call(b.childNodes).forEach(function(I){C.domNode.appendChild(I)}),b.parentNode&&b.parentNode.replaceChild(C.domNode,b),C.attach()}return C}_.default=H},function(ve,_,r){"use strict";var b,g=this&&this.__extends||(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,S){C.__proto__=S}||function(C,S){for(var I in S)S.hasOwnProperty(I)&&(C[I]=S[I])},function(C,S){function I(){this.constructor=C}b(C,S),C.prototype=null===S?Object.create(S):(I.prototype=S.prototype,new I)});Object.defineProperty(_,"__esModule",{value:!0});var R=r(12),V=r(31),U=r(17),H=r(1),P=function(b){function C(S){var I=b.call(this,S)||this;return I.attributes=new V.default(I.domNode),I}return g(C,b),C.formats=function(S){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?S.tagName.toLowerCase():void 0)},C.prototype.format=function(S,I){var B=H.query(S);B instanceof R.default?this.attributes.attribute(B,I):I&&null!=B&&(S!==this.statics.blotName||this.formats()[S]!==I)&&this.replaceWith(S,I)},C.prototype.formats=function(){var S=this.attributes.values(),I=this.statics.formats(this.domNode);return null!=I&&(S[this.statics.blotName]=I),S},C.prototype.replaceWith=function(S,I){var B=b.prototype.replaceWith.call(this,S,I);return this.attributes.copy(B),B},C.prototype.update=function(S,I){var B=this;b.prototype.update.call(this,S,I),S.some(function(G){return G.target===B.domNode&&"attributes"===G.type})&&this.attributes.build()},C.prototype.wrap=function(S,I){var B=b.prototype.wrap.call(this,S,I);return B instanceof C&&B.statics.scope===this.statics.scope&&this.attributes.move(B),B},C}(U.default);_.default=P},function(ve,_,r){"use strict";var H,g=this&&this.__extends||(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,b){P.__proto__=b}||function(P,b){for(var C in b)b.hasOwnProperty(C)&&(P[C]=b[C])},function(P,b){function C(){this.constructor=P}H(P,b),P.prototype=null===b?Object.create(b):(C.prototype=b.prototype,new C)});Object.defineProperty(_,"__esModule",{value:!0});var R=r(30),V=r(1),U=function(H){function P(){return null!==H&&H.apply(this,arguments)||this}return g(P,H),P.value=function(b){return!0},P.prototype.index=function(b,C){return this.domNode===b||this.domNode.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(C,1):-1},P.prototype.position=function(b,C){var S=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return b>0&&(S+=1),[this.parent.domNode,S]},P.prototype.value=function(){var b;return(b={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,b},P.scope=V.Scope.INLINE_BLOT,P}(R.default);_.default=U},function(ve,_,r){var g=r(11),R=r(3),V={attributes:{compose:function(H,P,b){"object"!=typeof H&&(H={}),"object"!=typeof P&&(P={});var C=R(!0,{},P);for(var S in b||(C=Object.keys(C).reduce(function(I,B){return null!=C[B]&&(I[B]=C[B]),I},{})),H)void 0!==H[S]&&void 0===P[S]&&(C[S]=H[S]);return Object.keys(C).length>0?C:void 0},diff:function(H,P){"object"!=typeof H&&(H={}),"object"!=typeof P&&(P={});var b=Object.keys(H).concat(Object.keys(P)).reduce(function(C,S){return g(H[S],P[S])||(C[S]=void 0===P[S]?null:P[S]),C},{});return Object.keys(b).length>0?b:void 0},transform:function(H,P,b){if("object"!=typeof H)return P;if("object"==typeof P){if(!b)return P;var C=Object.keys(P).reduce(function(S,I){return void 0===H[I]&&(S[I]=P[I]),S},{});return Object.keys(C).length>0?C:void 0}}},iterator:function(H){return new U(H)},length:function(H){return"number"==typeof H.delete?H.delete:"number"==typeof H.retain?H.retain:"string"==typeof H.insert?H.insert.length:1}};function U(H){this.ops=H,this.index=0,this.offset=0}U.prototype.hasNext=function(){return this.peekLength()<1/0},U.prototype.next=function(H){H||(H=1/0);var P=this.ops[this.index];if(P){var b=this.offset,C=V.length(P);if(H>=C-b?(H=C-b,this.index+=1,this.offset=0):this.offset+=H,"number"==typeof P.delete)return{delete:H};var S={};return P.attributes&&(S.attributes=P.attributes),"number"==typeof P.retain?S.retain=H:S.insert="string"==typeof P.insert?P.insert.substr(b,H):P.insert,S}return{retain:1/0}},U.prototype.peek=function(){return this.ops[this.index]},U.prototype.peekLength=function(){return this.ops[this.index]?V.length(this.ops[this.index])-this.offset:1/0},U.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},U.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var H=this.offset,P=this.index,b=this.next(),C=this.ops.slice(this.index);return this.offset=H,this.index=P,[b].concat(C)}return[]},ve.exports=V},function(ve,_){var r=function(){"use strict";function g(B,G){return null!=G&&B instanceof G}var R,V,U;try{R=Map}catch{R=function(){}}try{V=Set}catch{V=function(){}}try{U=Promise}catch{U=function(){}}function H(B,G,x,m,k){"object"==typeof G&&(x=G.depth,m=G.prototype,k=G.includeNonEnumerable,G=G.circular);var D=[],K=[],de=typeof Buffer<"u";return typeof G>"u"&&(G=!0),typeof x>"u"&&(x=1/0),function ie(te,se){if(null===te)return null;if(0===se)return te;var z,W;if("object"!=typeof te)return te;if(g(te,R))z=new R;else if(g(te,V))z=new V;else if(g(te,U))z=new U(function(Le,_e){te.then(function(Re){Le(ie(Re,se-1))},function(Re){_e(ie(Re,se-1))})});else if(H.__isArray(te))z=[];else if(H.__isRegExp(te))z=new RegExp(te.source,I(te)),te.lastIndex&&(z.lastIndex=te.lastIndex);else if(H.__isDate(te))z=new Date(te.getTime());else{if(de&&Buffer.isBuffer(te))return z=Buffer.allocUnsafe?Buffer.allocUnsafe(te.length):new Buffer(te.length),te.copy(z),z;g(te,Error)?z=Object.create(te):typeof m>"u"?(W=Object.getPrototypeOf(te),z=Object.create(W)):(z=Object.create(m),W=m)}if(G){var Y=D.indexOf(te);if(-1!=Y)return K[Y];D.push(te),K.push(z)}for(var q in g(te,R)&&te.forEach(function(Le,_e){var Re=ie(_e,se-1),ae=ie(Le,se-1);z.set(Re,ae)}),g(te,V)&&te.forEach(function(Le){var _e=ie(Le,se-1);z.add(_e)}),te){var ee;W&&(ee=Object.getOwnPropertyDescriptor(W,q)),(!ee||null!=ee.set)&&(z[q]=ie(te[q],se-1))}if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(te);for(q=0;q<Q.length;q++){var be=Q[q];(we=Object.getOwnPropertyDescriptor(te,be))&&!we.enumerable&&!k||(z[be]=ie(te[be],se-1),we.enumerable||Object.defineProperty(z,be,{enumerable:!1}))}}if(k){var Ze=Object.getOwnPropertyNames(te);for(q=0;q<Ze.length;q++){var we,Ue=Ze[q];(we=Object.getOwnPropertyDescriptor(te,Ue))&&we.enumerable||(z[Ue]=ie(te[Ue],se-1),Object.defineProperty(z,Ue,{enumerable:!1}))}}return z}(B,x)}function P(B){return Object.prototype.toString.call(B)}function I(B){var G="";return B.global&&(G+="g"),B.ignoreCase&&(G+="i"),B.multiline&&(G+="m"),G}return H.clonePrototype=function(G){if(null===G)return null;var x=function(){};return x.prototype=G,new x},H.__objToStr=P,H.__isDate=function b(B){return"object"==typeof B&&"[object Date]"===P(B)},H.__isArray=function C(B){return"object"==typeof B&&"[object Array]"===P(B)},H.__isRegExp=function S(B){return"object"==typeof B&&"[object RegExp]"===P(B)},H.__getRegExpFlags=I,H}();"object"==typeof ve&&ve.exports&&(ve.exports=r)},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=function(){return function(W,Y){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return function z(W,Y){var q=[],ee=!0,Q=!1,be=void 0;try{for(var Ze,we=W[Symbol.iterator]();!(ee=(Ze=we.next()).done)&&(q.push(Ze.value),!Y||q.length!==Y);ee=!0);}catch(Ue){Q=!0,be=Ue}finally{try{!ee&&we.return&&we.return()}finally{if(Q)throw be}}return q}(W,Y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),R=function(){function z(W,Y){for(var q=0;q<Y.length;q++){var ee=Y[q];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(W,ee.key,ee)}}return function(W,Y,q){return Y&&z(W.prototype,Y),q&&z(W,q),W}}(),V=function z(W,Y,q){null===W&&(W=Function.prototype);var ee=Object.getOwnPropertyDescriptor(W,Y);if(void 0===ee){var Q=Object.getPrototypeOf(W);return null===Q?void 0:z(Q,Y,q)}if("value"in ee)return ee.value;var be=ee.get;return void 0===be?void 0:be.call(q)},H=D(r(0)),b=D(r(8)),C=r(4),S=D(C),B=D(r(16)),x=D(r(13)),k=D(r(25));function D(z){return z&&z.__esModule?z:{default:z}}function te(z){return z instanceof S.default||z instanceof C.BlockEmbed}var se=function(z){function W(Y,q){!function K(z,W){if(!(z instanceof W))throw new TypeError("Cannot call a class as a function")}(this,W);var ee=function de(z,W){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!W||"object"!=typeof W&&"function"!=typeof W?z:W}(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,Y));return ee.emitter=q.emitter,Array.isArray(q.whitelist)&&(ee.whitelist=q.whitelist.reduce(function(Q,be){return Q[be]=!0,Q},{})),ee.domNode.addEventListener("DOMNodeInserted",function(){}),ee.optimize(),ee.enable(),ee}return function ie(z,W){if("function"!=typeof W&&null!==W)throw new TypeError("Super expression must either be null or a function, not "+typeof W);z.prototype=Object.create(W&&W.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(z,W):z.__proto__=W)}(W,z),R(W,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(q,ee){var Q=this.line(q),be=g(Q,2),we=be[0],Ze=be[1],Ue=this.line(q+ee),_e=g(Ue,1)[0];if(V(W.prototype.__proto__||Object.getPrototypeOf(W.prototype),"deleteAt",this).call(this,q,ee),null!=_e&&we!==_e&&Ze>0){if(we instanceof C.BlockEmbed||_e instanceof C.BlockEmbed)return void this.optimize();if(we instanceof x.default){var Re=we.newlineIndex(we.length(),!0);if(Re>-1&&(we=we.split(Re+1))===_e)return void this.optimize()}else if(_e instanceof x.default){var ae=_e.newlineIndex(0);ae>-1&&_e.split(ae+1)}we.moveChildren(_e,_e.children.head instanceof B.default?null:_e.children.head),we.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(q,ee,Q,be){null!=this.whitelist&&!this.whitelist[Q]||(V(W.prototype.__proto__||Object.getPrototypeOf(W.prototype),"formatAt",this).call(this,q,ee,Q,be),this.optimize())}},{key:"insertAt",value:function(q,ee,Q){if(null==Q||null==this.whitelist||this.whitelist[ee]){if(q>=this.length())if(null==Q||null==H.default.query(ee,H.default.Scope.BLOCK)){var be=H.default.create(this.statics.defaultChild);this.appendChild(be),null==Q&&ee.endsWith("\n")&&(ee=ee.slice(0,-1)),be.insertAt(0,ee,Q)}else{var we=H.default.create(ee,Q);this.appendChild(we)}else V(W.prototype.__proto__||Object.getPrototypeOf(W.prototype),"insertAt",this).call(this,q,ee,Q);this.optimize()}}},{key:"insertBefore",value:function(q,ee){if(q.statics.scope===H.default.Scope.INLINE_BLOT){var Q=H.default.create(this.statics.defaultChild);Q.appendChild(q),q=Q}V(W.prototype.__proto__||Object.getPrototypeOf(W.prototype),"insertBefore",this).call(this,q,ee)}},{key:"leaf",value:function(q){return this.path(q).pop()||[null,-1]}},{key:"line",value:function(q){return q===this.length()?this.line(q-1):this.descendant(te,q)}},{key:"lines",value:function(){return function be(we,Ze,Ue){var Le=[],_e=Ue;return we.children.forEachAt(Ze,Ue,function(Re,ae,oe){te(Re)?Le.push(Re):Re instanceof H.default.Container&&(Le=Le.concat(be(Re,ae,_e))),_e-=oe}),Le}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(V(W.prototype.__proto__||Object.getPrototypeOf(W.prototype),"optimize",this).call(this,q,ee),q.length>0&&this.emitter.emit(b.default.events.SCROLL_OPTIMIZE,q,ee))}},{key:"path",value:function(q){return V(W.prototype.__proto__||Object.getPrototypeOf(W.prototype),"path",this).call(this,q).slice(1)}},{key:"update",value:function(q){if(!0!==this.batch){var ee=b.default.sources.USER;"string"==typeof q&&(ee=q),Array.isArray(q)||(q=this.observer.takeRecords()),q.length>0&&this.emitter.emit(b.default.events.SCROLL_BEFORE_UPDATE,ee,q),V(W.prototype.__proto__||Object.getPrototypeOf(W.prototype),"update",this).call(this,q.concat([])),q.length>0&&this.emitter.emit(b.default.events.SCROLL_UPDATE,ee,q)}}}]),W}(H.default.Scroll);se.blotName="scroll",se.className="ql-editor",se.tagName="DIV",se.defaultChild="block",se.allowedChildren=[S.default,C.BlockEmbed,k.default],_.default=se},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.SHORTKEY=_.default=void 0;var g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(pe){return typeof pe}:function(pe){return pe&&"function"==typeof Symbol&&pe.constructor===Symbol&&pe!==Symbol.prototype?"symbol":typeof pe},R=function(){return function(Ae,Pe){if(Array.isArray(Ae))return Ae;if(Symbol.iterator in Object(Ae))return function pe(Ae,Pe){var We=[],Ge=!0,ut=!1,Fe=void 0;try{for(var st,tt=Ae[Symbol.iterator]();!(Ge=(st=tt.next()).done)&&(We.push(st.value),!Pe||We.length!==Pe);Ge=!0);}catch(ct){ut=!0,Fe=ct}finally{try{!Ge&&tt.return&&tt.return()}finally{if(ut)throw Fe}}return We}(Ae,Pe);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),V=function(){function pe(Ae,Pe){for(var We=0;We<Pe.length;We++){var Ge=Pe[We];Ge.enumerable=Ge.enumerable||!1,Ge.configurable=!0,"value"in Ge&&(Ge.writable=!0),Object.defineProperty(Ae,Ge.key,Ge)}}return function(Ae,Pe,We){return Pe&&pe(Ae.prototype,Pe),We&&pe(Ae,We),Ae}}(),H=z(r(21)),b=z(r(11)),S=z(r(3)),B=z(r(2)),x=z(r(20)),k=z(r(0)),K=z(r(5)),ie=z(r(10)),se=z(r(9));function z(pe){return pe&&pe.__esModule?pe:{default:pe}}function W(pe,Ae,Pe){return Ae in pe?Object.defineProperty(pe,Ae,{value:Pe,enumerable:!0,configurable:!0,writable:!0}):pe[Ae]=Pe,pe}var Q=(0,ie.default)("quill:keyboard"),be=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",we=function(pe){function Ae(Pe,We){!function Y(pe,Ae){if(!(pe instanceof Ae))throw new TypeError("Cannot call a class as a function")}(this,Ae);var Ge=function q(pe,Ae){if(!pe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Ae||"object"!=typeof Ae&&"function"!=typeof Ae?pe:Ae}(this,(Ae.__proto__||Object.getPrototypeOf(Ae)).call(this,Pe,We));return Ge.bindings={},Object.keys(Ge.options.bindings).forEach(function(ut){"list autofill"===ut&&null!=Pe.scroll.whitelist&&!Pe.scroll.whitelist.list||Ge.options.bindings[ut]&&Ge.addBinding(Ge.options.bindings[ut])}),Ge.addBinding({key:Ae.keys.ENTER,shiftKey:null},Re),Ge.addBinding({key:Ae.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(Ge.addBinding({key:Ae.keys.BACKSPACE},{collapsed:!0},Ue),Ge.addBinding({key:Ae.keys.DELETE},{collapsed:!0},Le)):(Ge.addBinding({key:Ae.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},Ue),Ge.addBinding({key:Ae.keys.DELETE},{collapsed:!0,suffix:/^.?$/},Le)),Ge.addBinding({key:Ae.keys.BACKSPACE},{collapsed:!1},_e),Ge.addBinding({key:Ae.keys.DELETE},{collapsed:!1},_e),Ge.addBinding({key:Ae.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},Ue),Ge.listen(),Ge}return function ee(pe,Ae){if("function"!=typeof Ae&&null!==Ae)throw new TypeError("Super expression must either be null or a function, not "+typeof Ae);pe.prototype=Object.create(Ae&&Ae.prototype,{constructor:{value:pe,enumerable:!1,writable:!0,configurable:!0}}),Ae&&(Object.setPrototypeOf?Object.setPrototypeOf(pe,Ae):pe.__proto__=Ae)}(Ae,pe),V(Ae,null,[{key:"match",value:function(We,Ge){return Ge=ge(Ge),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(ut){return!!Ge[ut]!==We[ut]&&null!==Ge[ut]})&&Ge.key===(We.which||We.keyCode)}}]),V(Ae,[{key:"addBinding",value:function(We){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ut=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Fe=ge(We);if(null==Fe||null==Fe.key)return Q.warn("Attempted to add invalid keyboard binding",Fe);"function"==typeof Ge&&(Ge={handler:Ge}),"function"==typeof ut&&(ut={handler:ut}),Fe=(0,S.default)(Fe,Ge,ut),this.bindings[Fe.key]=this.bindings[Fe.key]||[],this.bindings[Fe.key].push(Fe)}},{key:"listen",value:function(){var We=this;this.quill.root.addEventListener("keydown",function(Ge){if(!Ge.defaultPrevented){var Fe=(We.bindings[Ge.which||Ge.keyCode]||[]).filter(function(yn){return Ae.match(Ge,yn)});if(0!==Fe.length){var tt=We.quill.getSelection();if(null!=tt&&We.quill.hasFocus()){var st=We.quill.getLine(tt.index),ct=R(st,2),St=ct[0],Gt=ct[1],it=We.quill.getLeaf(tt.index),Xe=R(it,2),wt=Xe[0],at=Xe[1],vt=0===tt.length?[wt,at]:We.quill.getLeaf(tt.index+tt.length),$t=R(vt,2),tn=$t[0],qt=$t[1],Fn=wt instanceof k.default.Text?wt.value().slice(0,at):"",Nn=tn instanceof k.default.Text?tn.value().slice(qt):"",Ht={collapsed:0===tt.length,empty:0===tt.length&&St.length()<=1,format:We.quill.getFormat(tt),offset:Gt,prefix:Fn,suffix:Nn};Fe.some(function(yn){if(null!=yn.collapsed&&yn.collapsed!==Ht.collapsed||null!=yn.empty&&yn.empty!==Ht.empty||null!=yn.offset&&yn.offset!==Ht.offset)return!1;if(Array.isArray(yn.format)){if(yn.format.every(function(Ln){return null==Ht.format[Ln]}))return!1}else if("object"===g(yn.format)&&!Object.keys(yn.format).every(function(Ln){return!0===yn.format[Ln]?null!=Ht.format[Ln]:!1===yn.format[Ln]?null==Ht.format[Ln]:(0,b.default)(yn.format[Ln],Ht.format[Ln])}))return!1;return!(null!=yn.prefix&&!yn.prefix.test(Ht.prefix)||null!=yn.suffix&&!yn.suffix.test(Ht.suffix))&&!0!==yn.handler.call(We,tt,Ht)})&&Ge.preventDefault()}}}})}}]),Ae}(se.default);function Ze(pe,Ae){var Pe;return W(Pe={key:pe,shiftKey:Ae,altKey:null},pe===we.keys.LEFT?"prefix":"suffix",/^$/),W(Pe,"handler",function(ut){var Fe=ut.index;pe===we.keys.RIGHT&&(Fe+=ut.length+1);var tt=this.quill.getLeaf(Fe);return!(R(tt,1)[0]instanceof k.default.Embed&&(pe===we.keys.LEFT?Ae?this.quill.setSelection(ut.index-1,ut.length+1,K.default.sources.USER):this.quill.setSelection(ut.index-1,K.default.sources.USER):Ae?this.quill.setSelection(ut.index,ut.length+1,K.default.sources.USER):this.quill.setSelection(ut.index+ut.length+1,K.default.sources.USER),1))}),Pe}function Ue(pe,Ae){if(!(0===pe.index||this.quill.getLength()<=1)){var Pe=this.quill.getLine(pe.index),Ge=R(Pe,1)[0],ut={};if(0===Ae.offset){var Fe=this.quill.getLine(pe.index-1),st=R(Fe,1)[0];if(null!=st&&st.length()>1){var ct=Ge.formats(),St=this.quill.getFormat(pe.index-1,1);ut=x.default.attributes.diff(ct,St)||{}}}var Gt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Ae.prefix)?2:1;this.quill.deleteText(pe.index-Gt,Gt,K.default.sources.USER),Object.keys(ut).length>0&&this.quill.formatLine(pe.index-Gt,Gt,ut,K.default.sources.USER),this.quill.focus()}}function Le(pe,Ae){var Pe=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Ae.suffix)?2:1;if(!(pe.index>=this.quill.getLength()-Pe)){var We={},Ge=0,ut=this.quill.getLine(pe.index),tt=R(ut,1)[0];if(Ae.offset>=tt.length()-1){var st=this.quill.getLine(pe.index+1),St=R(st,1)[0];if(St){var Gt=tt.formats(),it=this.quill.getFormat(pe.index,1);We=x.default.attributes.diff(Gt,it)||{},Ge=St.length()}}this.quill.deleteText(pe.index,Pe,K.default.sources.USER),Object.keys(We).length>0&&this.quill.formatLine(pe.index+Ge-1,Pe,We,K.default.sources.USER)}}function _e(pe){var Ae=this.quill.getLines(pe),Pe={};if(Ae.length>1){var We=Ae[0].formats(),Ge=Ae[Ae.length-1].formats();Pe=x.default.attributes.diff(Ge,We)||{}}this.quill.deleteText(pe,K.default.sources.USER),Object.keys(Pe).length>0&&this.quill.formatLine(pe.index,1,Pe,K.default.sources.USER),this.quill.setSelection(pe.index,K.default.sources.SILENT),this.quill.focus()}function Re(pe,Ae){var Pe=this;pe.length>0&&this.quill.scroll.deleteAt(pe.index,pe.length);var We=Object.keys(Ae.format).reduce(function(Ge,ut){return k.default.query(ut,k.default.Scope.BLOCK)&&!Array.isArray(Ae.format[ut])&&(Ge[ut]=Ae.format[ut]),Ge},{});this.quill.insertText(pe.index,"\n",We,K.default.sources.USER),this.quill.setSelection(pe.index+1,K.default.sources.SILENT),this.quill.focus(),Object.keys(Ae.format).forEach(function(Ge){null==We[Ge]&&(Array.isArray(Ae.format[Ge])||"link"!==Ge&&Pe.quill.format(Ge,Ae.format[Ge],K.default.sources.USER))})}function ae(pe){return{key:we.keys.TAB,shiftKey:!pe,format:{"code-block":!0},handler:function(Pe){var We=k.default.query("code-block"),Ge=Pe.index,ut=Pe.length,Fe=this.quill.scroll.descendant(We,Ge),tt=R(Fe,2),st=tt[0],ct=tt[1];if(null!=st){var St=this.quill.getIndex(st),Gt=st.newlineIndex(ct,!0)+1,it=st.newlineIndex(St+ct+ut),Xe=st.domNode.textContent.slice(Gt,it).split("\n");ct=0,Xe.forEach(function(wt,at){pe?(st.insertAt(Gt+ct,We.TAB),ct+=We.TAB.length,0===at?Ge+=We.TAB.length:ut+=We.TAB.length):wt.startsWith(We.TAB)&&(st.deleteAt(Gt+ct,We.TAB.length),ct-=We.TAB.length,0===at?Ge-=We.TAB.length:ut-=We.TAB.length),ct+=wt.length+1}),this.quill.update(K.default.sources.USER),this.quill.setSelection(Ge,ut,K.default.sources.SILENT)}}}}function oe(pe){return{key:pe[0].toUpperCase(),shortKey:!0,handler:function(Pe,We){this.quill.format(pe,!We.format[pe],K.default.sources.USER)}}}function ge(pe){if("string"==typeof pe||"number"==typeof pe)return ge({key:pe});if("object"===(typeof pe>"u"?"undefined":g(pe))&&(pe=(0,H.default)(pe,!1)),"string"==typeof pe.key)if(null!=we.keys[pe.key.toUpperCase()])pe.key=we.keys[pe.key.toUpperCase()];else{if(1!==pe.key.length)return null;pe.key=pe.key.toUpperCase().charCodeAt(0)}return pe.shortKey&&(pe[be]=pe.shortKey,delete pe.shortKey),pe}we.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},we.DEFAULTS={bindings:{bold:oe("bold"),italic:oe("italic"),underline:oe("underline"),indent:{key:we.keys.TAB,format:["blockquote","indent","list"],handler:function(Ae,Pe){if(Pe.collapsed&&0!==Pe.offset)return!0;this.quill.format("indent","+1",K.default.sources.USER)}},outdent:{key:we.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(Ae,Pe){if(Pe.collapsed&&0!==Pe.offset)return!0;this.quill.format("indent","-1",K.default.sources.USER)}},"outdent backspace":{key:we.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(Ae,Pe){null!=Pe.format.indent?this.quill.format("indent","-1",K.default.sources.USER):null!=Pe.format.list&&this.quill.format("list",!1,K.default.sources.USER)}},"indent code-block":ae(!0),"outdent code-block":ae(!1),"remove tab":{key:we.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(Ae){this.quill.deleteText(Ae.index-1,1,K.default.sources.USER)}},tab:{key:we.keys.TAB,handler:function(Ae){this.quill.history.cutoff();var Pe=(new B.default).retain(Ae.index).delete(Ae.length).insert("\t");this.quill.updateContents(Pe,K.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(Ae.index+1,K.default.sources.SILENT)}},"list empty enter":{key:we.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(Ae,Pe){this.quill.format("list",!1,K.default.sources.USER),Pe.format.indent&&this.quill.format("indent",!1,K.default.sources.USER)}},"checklist enter":{key:we.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(Ae){var Pe=this.quill.getLine(Ae.index),We=R(Pe,2),Ge=We[0],ut=We[1],Fe=(0,S.default)({},Ge.formats(),{list:"checked"}),tt=(new B.default).retain(Ae.index).insert("\n",Fe).retain(Ge.length()-ut-1).retain(1,{list:"unchecked"});this.quill.updateContents(tt,K.default.sources.USER),this.quill.setSelection(Ae.index+1,K.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:we.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(Ae,Pe){var We=this.quill.getLine(Ae.index),Ge=R(We,2),ut=Ge[0],Fe=Ge[1],tt=(new B.default).retain(Ae.index).insert("\n",Pe.format).retain(ut.length()-Fe-1).retain(1,{header:null});this.quill.updateContents(tt,K.default.sources.USER),this.quill.setSelection(Ae.index+1,K.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(Ae,Pe){var We=Pe.prefix.length,Ge=this.quill.getLine(Ae.index),ut=R(Ge,2),Fe=ut[0],tt=ut[1];if(tt>We)return!0;var st=void 0;switch(Pe.prefix.trim()){case"[]":case"[ ]":st="unchecked";break;case"[x]":st="checked";break;case"-":case"*":st="bullet";break;default:st="ordered"}this.quill.insertText(Ae.index," ",K.default.sources.USER),this.quill.history.cutoff();var ct=(new B.default).retain(Ae.index-tt).delete(We+1).retain(Fe.length()-2-tt).retain(1,{list:st});this.quill.updateContents(ct,K.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(Ae.index-We,K.default.sources.SILENT)}},"code exit":{key:we.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(Ae){var Pe=this.quill.getLine(Ae.index),We=R(Pe,2),Ge=We[0],ut=We[1],Fe=(new B.default).retain(Ae.index+Ge.length()-ut-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(Fe,K.default.sources.USER)}},"embed left":Ze(we.keys.LEFT,!1),"embed left shift":Ze(we.keys.LEFT,!0),"embed right":Ze(we.keys.RIGHT,!1),"embed right shift":Ze(we.keys.RIGHT,!0)}},_.default=we,_.SHORTKEY=be},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=function(){return function(m,k){if(Array.isArray(m))return m;if(Symbol.iterator in Object(m))return function x(m,k){var D=[],K=!0,de=!1,ie=void 0;try{for(var se,te=m[Symbol.iterator]();!(K=(se=te.next()).done)&&(D.push(se.value),!k||D.length!==k);K=!0);}catch(z){de=!0,ie=z}finally{try{!K&&te.return&&te.return()}finally{if(de)throw ie}}return D}(m,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),R=function x(m,k,D){null===m&&(m=Function.prototype);var K=Object.getOwnPropertyDescriptor(m,k);if(void 0===K){var de=Object.getPrototypeOf(m);return null===de?void 0:x(de,k,D)}if("value"in K)return K.value;var ie=K.get;return void 0===ie?void 0:ie.call(D)},V=function(){function x(m,k){for(var D=0;D<k.length;D++){var K=k[D];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(m,K.key,K)}}return function(m,k,D){return k&&x(m.prototype,k),D&&x(m,D),m}}(),H=C(r(0)),b=C(r(7));function C(x){return x&&x.__esModule?x:{default:x}}var G=function(x){function m(k,D){!function S(x,m){if(!(x instanceof m))throw new TypeError("Cannot call a class as a function")}(this,m);var K=function I(x,m){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||"object"!=typeof m&&"function"!=typeof m?x:m}(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,k));return K.selection=D,K.textNode=document.createTextNode(m.CONTENTS),K.domNode.appendChild(K.textNode),K._length=0,K}return function B(x,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function, not "+typeof m);x.prototype=Object.create(m&&m.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(x,m):x.__proto__=m)}(m,x),V(m,null,[{key:"value",value:function(){}}]),V(m,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(D,K){if(0!==this._length)return R(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,D,K);for(var de=this,ie=0;null!=de&&de.statics.scope!==H.default.Scope.BLOCK_BLOT;)ie+=de.offset(de.parent),de=de.parent;null!=de&&(this._length=m.CONTENTS.length,de.optimize(),de.formatAt(ie,m.CONTENTS.length,D,K),this._length=0)}},{key:"index",value:function(D,K){return D===this.textNode?0:R(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"index",this).call(this,D,K)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){R(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var D=this.textNode,K=this.selection.getNativeRange(),de=void 0,ie=void 0,te=void 0;if(null!=K&&K.start.node===D&&K.end.node===D){var se=[D,K.start.offset,K.end.offset];de=se[0],ie=se[1],te=se[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==m.CONTENTS){var z=this.textNode.data.split(m.CONTENTS).join("");this.next instanceof b.default?(de=this.next.domNode,this.next.insertAt(0,z),this.textNode.data=m.CONTENTS):(this.textNode.data=z,this.parent.insertBefore(H.default.create(this.textNode),this),this.textNode=document.createTextNode(m.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=ie){var W=[ie,te].map(function(q){return Math.max(0,Math.min(de.data.length,q-1))}),Y=g(W,2);return{startNode:de,startOffset:ie=Y[0],endNode:de,endOffset:te=Y[1]}}}}},{key:"update",value:function(D,K){var de=this;if(D.some(function(te){return"characterData"===te.type&&te.target===de.textNode})){var ie=this.restore();ie&&(K.range=ie)}}},{key:"value",value:function(){return""}}]),m}(H.default.Embed);G.blotName="cursor",G.className="ql-cursor",G.tagName="span",G.CONTENTS="\ufeff",_.default=G},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var R=H(r(0)),V=r(4),U=H(V);function H(I){return I&&I.__esModule?I:{default:I}}var S=function(I){function B(){return function P(I,B){if(!(I instanceof B))throw new TypeError("Cannot call a class as a function")}(this,B),function b(I,B){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!B||"object"!=typeof B&&"function"!=typeof B?I:B}(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return function C(I,B){if("function"!=typeof B&&null!==B)throw new TypeError("Super expression must either be null or a function, not "+typeof B);I.prototype=Object.create(B&&B.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(I,B):I.__proto__=B)}(B,I),B}(R.default.Container);S.allowedChildren=[U.default,V.BlockEmbed,S],_.default=S},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ColorStyle=_.ColorClass=_.ColorAttributor=void 0;var g=function(){function G(x,m){for(var k=0;k<m.length;k++){var D=m[k];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(x,D.key,D)}}return function(x,m,k){return m&&G(x.prototype,m),k&&G(x,k),x}}(),R=function G(x,m,k){null===x&&(x=Function.prototype);var D=Object.getOwnPropertyDescriptor(x,m);if(void 0===D){var K=Object.getPrototypeOf(x);return null===K?void 0:G(K,m,k)}if("value"in D)return D.value;var de=D.get;return void 0===de?void 0:de.call(k)},U=function H(G){return G&&G.__esModule?G:{default:G}}(r(0));var S=function(G){function x(){return function P(G,x){if(!(G instanceof x))throw new TypeError("Cannot call a class as a function")}(this,x),function b(G,x){if(!G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||"object"!=typeof x&&"function"!=typeof x?G:x}(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return function C(G,x){if("function"!=typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);G.prototype=Object.create(x&&x.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(G,x):G.__proto__=x)}(x,G),g(x,[{key:"value",value:function(k){var D=R(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"value",this).call(this,k);return D.startsWith("rgb(")?"#"+(D=D.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(K){return("00"+parseInt(K).toString(16)).slice(-2)}).join(""):D}}]),x}(U.default.Attributor.Style),I=new U.default.Attributor.Class("color","ql-color",{scope:U.default.Scope.INLINE}),B=new S("color","color",{scope:U.default.Scope.INLINE});_.ColorAttributor=S,_.ColorClass=I,_.ColorStyle=B},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.sanitize=_.default=void 0;var g=function(){function B(G,x){for(var m=0;m<x.length;m++){var k=x[m];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(G,k.key,k)}}return function(G,x,m){return x&&B(G.prototype,x),m&&B(G,m),G}}(),R=function B(G,x,m){null===G&&(G=Function.prototype);var k=Object.getOwnPropertyDescriptor(G,x);if(void 0===k){var D=Object.getPrototypeOf(G);return null===D?void 0:B(D,x,m)}if("value"in k)return k.value;var K=k.get;return void 0===K?void 0:K.call(m)};var S=function(B){function G(){return function P(B,G){if(!(B instanceof G))throw new TypeError("Cannot call a class as a function")}(this,G),function b(B,G){if(!B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!G||"object"!=typeof G&&"function"!=typeof G?B:G}(this,(G.__proto__||Object.getPrototypeOf(G)).apply(this,arguments))}return function C(B,G){if("function"!=typeof G&&null!==G)throw new TypeError("Super expression must either be null or a function, not "+typeof G);B.prototype=Object.create(G&&G.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),G&&(Object.setPrototypeOf?Object.setPrototypeOf(B,G):B.__proto__=G)}(G,B),g(G,[{key:"format",value:function(m,k){if(m!==this.statics.blotName||!k)return R(G.prototype.__proto__||Object.getPrototypeOf(G.prototype),"format",this).call(this,m,k);k=this.constructor.sanitize(k),this.domNode.setAttribute("href",k)}}],[{key:"create",value:function(m){var k=R(G.__proto__||Object.getPrototypeOf(G),"create",this).call(this,m);return m=this.sanitize(m),k.setAttribute("href",m),k.setAttribute("rel","noopener noreferrer"),k.setAttribute("target","_blank"),k}},{key:"formats",value:function(m){return m.getAttribute("href")}},{key:"sanitize",value:function(m){return I(m,this.PROTOCOL_WHITELIST)?m:this.SANITIZED_URL}}]),G}(function H(B){return B&&B.__esModule?B:{default:B}}(r(6)).default);function I(B,G){var x=document.createElement("a");x.href=B;var m=x.href.slice(0,x.href.indexOf(":"));return G.indexOf(m)>-1}S.blotName="link",S.tagName="A",S.SANITIZED_URL="about:blank",S.PROTOCOL_WHITELIST=["http","https","mailto","tel"],_.default=S,_.sanitize=I},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(G){return typeof G}:function(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},R=function(){function G(x,m){for(var k=0;k<m.length;k++){var D=m[k];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(x,D.key,D)}}return function(x,m,k){return m&&G(x.prototype,m),k&&G(x,k),x}}(),U=b(r(23)),P=b(r(107));function b(G){return G&&G.__esModule?G:{default:G}}var S=0;function I(G,x){G.setAttribute(x,"true"!==G.getAttribute(x))}var B=function(){function G(x){var m=this;(function C(G,x){if(!(G instanceof x))throw new TypeError("Cannot call a class as a function")})(this,G),this.select=x,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){m.togglePicker()}),this.label.addEventListener("keydown",function(k){switch(k.keyCode){case U.default.keys.ENTER:m.togglePicker();break;case U.default.keys.ESCAPE:m.escape(),k.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return R(G,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),I(this.label,"aria-expanded"),I(this.options,"aria-hidden")}},{key:"buildItem",value:function(m){var k=this,D=document.createElement("span");return D.tabIndex="0",D.setAttribute("role","button"),D.classList.add("ql-picker-item"),m.hasAttribute("value")&&D.setAttribute("data-value",m.getAttribute("value")),m.textContent&&D.setAttribute("data-label",m.textContent),D.addEventListener("click",function(){k.selectItem(D,!0)}),D.addEventListener("keydown",function(K){switch(K.keyCode){case U.default.keys.ENTER:k.selectItem(D,!0),K.preventDefault();break;case U.default.keys.ESCAPE:k.escape(),K.preventDefault()}}),D}},{key:"buildLabel",value:function(){var m=document.createElement("span");return m.classList.add("ql-picker-label"),m.innerHTML=P.default,m.tabIndex="0",m.setAttribute("role","button"),m.setAttribute("aria-expanded","false"),this.container.appendChild(m),m}},{key:"buildOptions",value:function(){var m=this,k=document.createElement("span");k.classList.add("ql-picker-options"),k.setAttribute("aria-hidden","true"),k.tabIndex="-1",k.id="ql-picker-options-"+S,S+=1,this.label.setAttribute("aria-controls",k.id),this.options=k,[].slice.call(this.select.options).forEach(function(D){var K=m.buildItem(D);k.appendChild(K),!0===D.selected&&m.selectItem(K)}),this.container.appendChild(k)}},{key:"buildPicker",value:function(){var m=this;[].slice.call(this.select.attributes).forEach(function(k){m.container.setAttribute(k.name,k.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var m=this;this.close(),setTimeout(function(){return m.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(m){var k=arguments.length>1&&void 0!==arguments[1]&&arguments[1],D=this.container.querySelector(".ql-selected");if(m!==D&&(D?.classList.remove("ql-selected"),null!=m&&(m.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(m.parentNode.children,m),m.hasAttribute("data-value")?this.label.setAttribute("data-value",m.getAttribute("data-value")):this.label.removeAttribute("data-value"),m.hasAttribute("data-label")?this.label.setAttribute("data-label",m.getAttribute("data-label")):this.label.removeAttribute("data-label"),k))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":g(Event))){var K=document.createEvent("Event");K.initEvent("change",!0,!0),this.select.dispatchEvent(K)}this.close()}}},{key:"update",value:function(){var m=void 0;if(this.select.selectedIndex>-1){var k=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];m=this.select.options[this.select.selectedIndex],this.selectItem(k)}else this.selectItem(null);var D=null!=m&&m!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",D)}}]),G}();_.default=B},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var R=Q(r(0)),U=Q(r(5)),H=r(4),P=Q(H),C=Q(r(16)),I=Q(r(25)),G=Q(r(24)),m=Q(r(35)),D=Q(r(6)),de=Q(r(22)),te=Q(r(7)),z=Q(r(55)),Y=Q(r(42)),ee=Q(r(23));function Q(be){return be&&be.__esModule?be:{default:be}}U.default.register({"blots/block":P.default,"blots/block/embed":H.BlockEmbed,"blots/break":C.default,"blots/container":I.default,"blots/cursor":G.default,"blots/embed":m.default,"blots/inline":D.default,"blots/scroll":de.default,"blots/text":te.default,"modules/clipboard":z.default,"modules/history":Y.default,"modules/keyboard":ee.default}),R.default.register(P.default,C.default,G.default,D.default,de.default,te.default),_.default=U.default},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=r(1),R=function(){function V(U){this.domNode=U,this.domNode[g.DATA_KEY]={blot:this}}return Object.defineProperty(V.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),V.create=function(U){if(null==this.tagName)throw new g.ParchmentError("Blot definition missing tagName");var H;return Array.isArray(this.tagName)?("string"==typeof U&&(U=U.toUpperCase(),parseInt(U).toString()===U&&(U=parseInt(U))),H="number"==typeof U?document.createElement(this.tagName[U-1]):this.tagName.indexOf(U)>-1?document.createElement(U):document.createElement(this.tagName[0])):H=document.createElement(this.tagName),this.className&&H.classList.add(this.className),H},V.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},V.prototype.clone=function(){var U=this.domNode.cloneNode(!1);return g.create(U)},V.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[g.DATA_KEY]},V.prototype.deleteAt=function(U,H){this.isolate(U,H).remove()},V.prototype.formatAt=function(U,H,P,b){var C=this.isolate(U,H);if(null!=g.query(P,g.Scope.BLOT)&&b)C.wrap(P,b);else if(null!=g.query(P,g.Scope.ATTRIBUTE)){var S=g.create(this.statics.scope);C.wrap(S),S.format(P,b)}},V.prototype.insertAt=function(U,H,P){var b=null==P?g.create("text",H):g.create(H,P),C=this.split(U);this.parent.insertBefore(b,C)},V.prototype.insertInto=function(U,H){void 0===H&&(H=null),null!=this.parent&&this.parent.children.remove(this);var P=null;U.children.insertBefore(this,H),null!=H&&(P=H.domNode),(this.domNode.parentNode!=U.domNode||this.domNode.nextSibling!=P)&&U.domNode.insertBefore(this.domNode,P),this.parent=U,this.attach()},V.prototype.isolate=function(U,H){var P=this.split(U);return P.split(H),P},V.prototype.length=function(){return 1},V.prototype.offset=function(U){return void 0===U&&(U=this.parent),null==this.parent||this==U?0:this.parent.children.offset(this)+this.parent.offset(U)},V.prototype.optimize=function(U){null!=this.domNode[g.DATA_KEY]&&delete this.domNode[g.DATA_KEY].mutations},V.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},V.prototype.replace=function(U){null!=U.parent&&(U.parent.insertBefore(this,U.next),U.remove())},V.prototype.replaceWith=function(U,H){var P="string"==typeof U?g.create(U,H):U;return P.replace(this),P},V.prototype.split=function(U,H){return 0===U?this:this.next},V.prototype.update=function(U,H){},V.prototype.wrap=function(U,H){var P="string"==typeof U?g.create(U,H):U;return null!=this.parent&&this.parent.insertBefore(P,this.next),P.appendChild(this),P},V.blotName="abstract",V}();_.default=R},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=r(12),R=r(32),V=r(33),U=r(1),H=function(){function P(b){this.attributes={},this.domNode=b,this.build()}return P.prototype.attribute=function(b,C){C?b.add(this.domNode,C)&&(null!=b.value(this.domNode)?this.attributes[b.attrName]=b:delete this.attributes[b.attrName]):(b.remove(this.domNode),delete this.attributes[b.attrName])},P.prototype.build=function(){var b=this;this.attributes={};var C=g.default.keys(this.domNode),S=R.default.keys(this.domNode),I=V.default.keys(this.domNode);C.concat(S).concat(I).forEach(function(B){var G=U.query(B,U.Scope.ATTRIBUTE);G instanceof g.default&&(b.attributes[G.attrName]=G)})},P.prototype.copy=function(b){var C=this;Object.keys(this.attributes).forEach(function(S){var I=C.attributes[S].value(C.domNode);b.format(S,I)})},P.prototype.move=function(b){var C=this;this.copy(b),Object.keys(this.attributes).forEach(function(S){C.attributes[S].remove(C.domNode)}),this.attributes={}},P.prototype.values=function(){var b=this;return Object.keys(this.attributes).reduce(function(C,S){return C[S]=b.attributes[S].value(b.domNode),C},{})},P}();_.default=H},function(ve,_,r){"use strict";var H,g=this&&this.__extends||(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,b){P.__proto__=b}||function(P,b){for(var C in b)b.hasOwnProperty(C)&&(P[C]=b[C])},function(P,b){function C(){this.constructor=P}H(P,b),P.prototype=null===b?Object.create(b):(C.prototype=b.prototype,new C)});function V(H,P){return(H.getAttribute("class")||"").split(/\s+/).filter(function(C){return 0===C.indexOf(P+"-")})}Object.defineProperty(_,"__esModule",{value:!0});var U=function(H){function P(){return null!==H&&H.apply(this,arguments)||this}return g(P,H),P.keys=function(b){return(b.getAttribute("class")||"").split(/\s+/).map(function(C){return C.split("-").slice(0,-1).join("-")})},P.prototype.add=function(b,C){return!!this.canAdd(b,C)&&(this.remove(b),b.classList.add(this.keyName+"-"+C),!0)},P.prototype.remove=function(b){V(b,this.keyName).forEach(function(S){b.classList.remove(S)}),0===b.classList.length&&b.removeAttribute("class")},P.prototype.value=function(b){var S=(V(b,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(b,S)?S:""},P}(r(12).default);_.default=U},function(ve,_,r){"use strict";var H,g=this&&this.__extends||(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,b){P.__proto__=b}||function(P,b){for(var C in b)b.hasOwnProperty(C)&&(P[C]=b[C])},function(P,b){function C(){this.constructor=P}H(P,b),P.prototype=null===b?Object.create(b):(C.prototype=b.prototype,new C)});function V(H){var P=H.split("-"),b=P.slice(1).map(function(C){return C[0].toUpperCase()+C.slice(1)}).join("");return P[0]+b}Object.defineProperty(_,"__esModule",{value:!0});var U=function(H){function P(){return null!==H&&H.apply(this,arguments)||this}return g(P,H),P.keys=function(b){return(b.getAttribute("style")||"").split(";").map(function(C){return C.split(":")[0].trim()})},P.prototype.add=function(b,C){return!!this.canAdd(b,C)&&(b.style[V(this.keyName)]=C,!0)},P.prototype.remove=function(b){b.style[V(this.keyName)]="",b.getAttribute("style")||b.removeAttribute("style")},P.prototype.value=function(b){var C=b.style[V(this.keyName)];return this.canAdd(b,C)?C:""},P}(r(12).default);_.default=U},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=function(){function U(H,P){for(var b=0;b<P.length;b++){var C=P[b];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(H,C.key,C)}}return function(H,P,b){return P&&U(H.prototype,P),b&&U(H,b),H}}();var V=function(){function U(H,P){(function R(U,H){if(!(U instanceof H))throw new TypeError("Cannot call a class as a function")})(this,U),this.quill=H,this.options=P,this.modules={}}return g(U,[{key:"init",value:function(){var P=this;Object.keys(this.options.modules).forEach(function(b){null==P.modules[b]&&P.addModule(b)})}},{key:"addModule",value:function(P){var b=this.quill.constructor.import("modules/"+P);return this.modules[P]=new b(this.quill,this.options.modules[P]||{}),this.modules[P]}}]),U}();V.DEFAULTS={modules:{}},V.themes={default:V},_.default=V},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=function(){function x(m,k){for(var D=0;D<k.length;D++){var K=k[D];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(m,K.key,K)}}return function(m,k,D){return k&&x(m.prototype,k),D&&x(m,D),m}}(),R=function x(m,k,D){null===m&&(m=Function.prototype);var K=Object.getOwnPropertyDescriptor(m,k);if(void 0===K){var de=Object.getPrototypeOf(m);return null===de?void 0:x(de,k,D)}if("value"in K)return K.value;var ie=K.get;return void 0===ie?void 0:ie.call(D)},U=b(r(0)),P=b(r(7));function b(x){return x&&x.__esModule?x:{default:x}}var B="\ufeff",G=function(x){function m(k){!function C(x,m){if(!(x instanceof m))throw new TypeError("Cannot call a class as a function")}(this,m);var D=function S(x,m){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||"object"!=typeof m&&"function"!=typeof m?x:m}(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,k));return D.contentNode=document.createElement("span"),D.contentNode.setAttribute("contenteditable",!1),[].slice.call(D.domNode.childNodes).forEach(function(K){D.contentNode.appendChild(K)}),D.leftGuard=document.createTextNode(B),D.rightGuard=document.createTextNode(B),D.domNode.appendChild(D.leftGuard),D.domNode.appendChild(D.contentNode),D.domNode.appendChild(D.rightGuard),D}return function I(x,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function, not "+typeof m);x.prototype=Object.create(m&&m.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(x,m):x.__proto__=m)}(m,x),g(m,[{key:"index",value:function(D,K){return D===this.leftGuard?0:D===this.rightGuard?1:R(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"index",this).call(this,D,K)}},{key:"restore",value:function(D){var K=void 0,de=void 0,ie=D.data.split(B).join("");if(D===this.leftGuard)if(this.prev instanceof P.default){var te=this.prev.length();this.prev.insertAt(te,ie),K={startNode:this.prev.domNode,startOffset:te+ie.length}}else de=document.createTextNode(ie),this.parent.insertBefore(U.default.create(de),this),K={startNode:de,startOffset:ie.length};else D===this.rightGuard&&(this.next instanceof P.default?(this.next.insertAt(0,ie),K={startNode:this.next.domNode,startOffset:ie.length}):(de=document.createTextNode(ie),this.parent.insertBefore(U.default.create(de),this.next),K={startNode:de,startOffset:ie.length}));return D.data=B,K}},{key:"update",value:function(D,K){var de=this;D.forEach(function(ie){if("characterData"===ie.type&&(ie.target===de.leftGuard||ie.target===de.rightGuard)){var te=de.restore(ie.target);te&&(K.range=te)}})}}]),m}(U.default.Embed);_.default=G},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.AlignStyle=_.AlignClass=_.AlignAttribute=void 0;var R=function V(C){return C&&C.__esModule?C:{default:C}}(r(0));var U={scope:R.default.Scope.BLOCK,whitelist:["right","center","justify"]},H=new R.default.Attributor.Attribute("align","align",U),P=new R.default.Attributor.Class("align","ql-align",U),b=new R.default.Attributor.Style("align","text-align",U);_.AlignAttribute=H,_.AlignClass=P,_.AlignStyle=b},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.BackgroundStyle=_.BackgroundClass=void 0;var R=function U(b){return b&&b.__esModule?b:{default:b}}(r(0)),V=r(26);var H=new R.default.Attributor.Class("background","ql-bg",{scope:R.default.Scope.INLINE}),P=new V.ColorAttributor("background","background-color",{scope:R.default.Scope.INLINE});_.BackgroundClass=H,_.BackgroundStyle=P},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.DirectionStyle=_.DirectionClass=_.DirectionAttribute=void 0;var R=function V(C){return C&&C.__esModule?C:{default:C}}(r(0));var U={scope:R.default.Scope.BLOCK,whitelist:["rtl"]},H=new R.default.Attributor.Attribute("direction","dir",U),P=new R.default.Attributor.Class("direction","ql-direction",U),b=new R.default.Attributor.Style("direction","direction",U);_.DirectionAttribute=H,_.DirectionClass=P,_.DirectionStyle=b},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.FontClass=_.FontStyle=void 0;var g=function(){function x(m,k){for(var D=0;D<k.length;D++){var K=k[D];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(m,K.key,K)}}return function(m,k,D){return k&&x(m.prototype,k),D&&x(m,D),m}}(),R=function x(m,k,D){null===m&&(m=Function.prototype);var K=Object.getOwnPropertyDescriptor(m,k);if(void 0===K){var de=Object.getPrototypeOf(m);return null===de?void 0:x(de,k,D)}if("value"in K)return K.value;var ie=K.get;return void 0===ie?void 0:ie.call(D)},U=function H(x){return x&&x.__esModule?x:{default:x}}(r(0));var S={scope:U.default.Scope.INLINE,whitelist:["serif","monospace"]},I=new U.default.Attributor.Class("font","ql-font",S),B=function(x){function m(){return function P(x,m){if(!(x instanceof m))throw new TypeError("Cannot call a class as a function")}(this,m),function b(x,m){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||"object"!=typeof m&&"function"!=typeof m?x:m}(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return function C(x,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function, not "+typeof m);x.prototype=Object.create(m&&m.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(x,m):x.__proto__=m)}(m,x),g(m,[{key:"value",value:function(D){return R(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,D).replace(/["']/g,"")}}]),m}(U.default.Attributor.Style),G=new B("font","font-family",S);_.FontStyle=G,_.FontClass=I},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.SizeStyle=_.SizeClass=void 0;var R=function V(P){return P&&P.__esModule?P:{default:P}}(r(0));var U=new R.default.Attributor.Class("size","ql-size",{scope:R.default.Scope.INLINE,whitelist:["small","large","huge"]}),H=new R.default.Attributor.Style("size","font-size",{scope:R.default.Scope.INLINE,whitelist:["10px","18px","32px"]});_.SizeClass=U,_.SizeStyle=H},function(ve,_,r){"use strict";ve.exports={align:{"":r(76),center:r(77),right:r(78),justify:r(79)},background:r(80),blockquote:r(81),bold:r(82),clean:r(83),code:r(58),"code-block":r(58),color:r(84),direction:{"":r(85),rtl:r(86)},float:{center:r(87),full:r(88),left:r(89),right:r(90)},formula:r(91),header:{1:r(92),2:r(93)},italic:r(94),image:r(95),indent:{"+1":r(96),"-1":r(97)},link:r(98),list:{ordered:r(99),bullet:r(100),check:r(101)},script:{sub:r(102),super:r(103)},strike:r(104),underline:r(105),video:r(106)}},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.getLastChangeIndex=_.default=void 0;var g=function(){function k(D,K){for(var de=0;de<K.length;de++){var ie=K[de];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(D,ie.key,ie)}}return function(D,K,de){return K&&k(D.prototype,K),de&&k(D,de),D}}(),V=C(r(0)),H=C(r(5));function C(k){return k&&k.__esModule?k:{default:k}}var G=function(k){function D(K,de){!function S(k,D){if(!(k instanceof D))throw new TypeError("Cannot call a class as a function")}(this,D);var ie=function I(k,D){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!D||"object"!=typeof D&&"function"!=typeof D?k:D}(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,K,de));return ie.lastRecorded=0,ie.ignoreChange=!1,ie.clear(),ie.quill.on(H.default.events.EDITOR_CHANGE,function(te,se,z,W){te!==H.default.events.TEXT_CHANGE||ie.ignoreChange||(ie.options.userOnly&&W!==H.default.sources.USER?ie.transform(se):ie.record(se,z))}),ie.quill.keyboard.addBinding({key:"Z",shortKey:!0},ie.undo.bind(ie)),ie.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},ie.redo.bind(ie)),/Win/i.test(navigator.platform)&&ie.quill.keyboard.addBinding({key:"Y",shortKey:!0},ie.redo.bind(ie)),ie}return function B(k,D){if("function"!=typeof D&&null!==D)throw new TypeError("Super expression must either be null or a function, not "+typeof D);k.prototype=Object.create(D&&D.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(k,D):k.__proto__=D)}(D,k),g(D,[{key:"change",value:function(de,ie){if(0!==this.stack[de].length){var te=this.stack[de].pop();this.stack[ie].push(te),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(te[de],H.default.sources.USER),this.ignoreChange=!1;var se=m(te[de]);this.quill.setSelection(se)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(de,ie){if(0!==de.ops.length){this.stack.redo=[];var te=this.quill.getContents().diff(ie),se=Date.now();if(this.lastRecorded+this.options.delay>se&&this.stack.undo.length>0){var z=this.stack.undo.pop();te=te.compose(z.undo),de=z.redo.compose(de)}else this.lastRecorded=se;this.stack.undo.push({redo:de,undo:te}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(de){this.stack.undo.forEach(function(ie){ie.undo=de.transform(ie.undo,!0),ie.redo=de.transform(ie.redo,!0)}),this.stack.redo.forEach(function(ie){ie.undo=de.transform(ie.undo,!0),ie.redo=de.transform(ie.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),D}(C(r(9)).default);function m(k){var D=k.reduce(function(de,ie){return de+(ie.delete||0)},0),K=k.length()-D;return function x(k){var D=k.ops[k.ops.length-1];return null!=D&&(null!=D.insert?"string"==typeof D.insert&&D.insert.endsWith("\n"):null!=D.attributes&&Object.keys(D.attributes).some(function(K){return null!=V.default.query(K,V.default.Scope.BLOCK)}))}(k)&&(K-=1),K}G.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},_.default=G,_.getLastChangeIndex=m},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.BaseTooltip=void 0;var g=function(){function Re(ae,oe){for(var ge=0;ge<oe.length;ge++){var pe=oe[ge];pe.enumerable=pe.enumerable||!1,pe.configurable=!0,"value"in pe&&(pe.writable=!0),Object.defineProperty(ae,pe.key,pe)}}return function(ae,oe,ge){return oe&&Re(ae.prototype,oe),ge&&Re(ae,ge),ae}}(),R=function Re(ae,oe,ge){null===ae&&(ae=Function.prototype);var pe=Object.getOwnPropertyDescriptor(ae,oe);if(void 0===pe){var Ae=Object.getPrototypeOf(ae);return null===Ae?void 0:Re(Ae,oe,ge)}if("value"in pe)return pe.value;var Pe=pe.get;return void 0===Pe?void 0:Pe.call(ge)},U=se(r(3)),P=se(r(2)),C=se(r(8)),I=se(r(23)),G=se(r(34)),m=se(r(59)),D=se(r(60)),de=se(r(28)),te=se(r(61));function se(Re){return Re&&Re.__esModule?Re:{default:Re}}function z(Re,ae){if(!(Re instanceof ae))throw new TypeError("Cannot call a class as a function")}function W(Re,ae){if(!Re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ae||"object"!=typeof ae&&"function"!=typeof ae?Re:ae}function Y(Re,ae){if("function"!=typeof ae&&null!==ae)throw new TypeError("Super expression must either be null or a function, not "+typeof ae);Re.prototype=Object.create(ae&&ae.prototype,{constructor:{value:Re,enumerable:!1,writable:!0,configurable:!0}}),ae&&(Object.setPrototypeOf?Object.setPrototypeOf(Re,ae):Re.__proto__=ae)}var q=[!1,"center","right","justify"],ee=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Q=[!1,"serif","monospace"],be=["1","2","3",!1],we=["small",!1,"large","huge"],Ze=function(Re){function ae(oe,ge){z(this,ae);var pe=W(this,(ae.__proto__||Object.getPrototypeOf(ae)).call(this,oe,ge));return oe.emitter.listenDOM("click",document.body,function Pe(We){if(!document.body.contains(oe.root))return document.body.removeEventListener("click",Pe);null!=pe.tooltip&&!pe.tooltip.root.contains(We.target)&&document.activeElement!==pe.tooltip.textbox&&!pe.quill.hasFocus()&&pe.tooltip.hide(),null!=pe.pickers&&pe.pickers.forEach(function(Ge){Ge.container.contains(We.target)||Ge.close()})}),pe}return Y(ae,Re),g(ae,[{key:"addModule",value:function(ge){var pe=R(ae.prototype.__proto__||Object.getPrototypeOf(ae.prototype),"addModule",this).call(this,ge);return"toolbar"===ge&&this.extendToolbar(pe),pe}},{key:"buildButtons",value:function(ge,pe){ge.forEach(function(Ae){(Ae.getAttribute("class")||"").split(/\s+/).forEach(function(We){if(We.startsWith("ql-")&&(We=We.slice(3),null!=pe[We]))if("direction"===We)Ae.innerHTML=pe[We][""]+pe[We].rtl;else if("string"==typeof pe[We])Ae.innerHTML=pe[We];else{var Ge=Ae.value||"";null!=Ge&&pe[We][Ge]&&(Ae.innerHTML=pe[We][Ge])}})})}},{key:"buildPickers",value:function(ge,pe){var Ae=this;this.pickers=ge.map(function(We){if(We.classList.contains("ql-align"))return null==We.querySelector("option")&&_e(We,q),new D.default(We,pe.align);if(We.classList.contains("ql-background")||We.classList.contains("ql-color")){var Ge=We.classList.contains("ql-background")?"background":"color";return null==We.querySelector("option")&&_e(We,ee,"background"===Ge?"#ffffff":"#000000"),new m.default(We,pe[Ge])}return null==We.querySelector("option")&&(We.classList.contains("ql-font")?_e(We,Q):We.classList.contains("ql-header")?_e(We,be):We.classList.contains("ql-size")&&_e(We,we)),new de.default(We)}),this.quill.on(C.default.events.EDITOR_CHANGE,function(){Ae.pickers.forEach(function(Ge){Ge.update()})})}}]),ae}(G.default);Ze.DEFAULTS=(0,U.default)(!0,{},G.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var ae=this,oe=this.container.querySelector("input.ql-image[type=file]");null==oe&&((oe=document.createElement("input")).setAttribute("type","file"),oe.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),oe.classList.add("ql-image"),oe.addEventListener("change",function(){if(null!=oe.files&&null!=oe.files[0]){var ge=new FileReader;ge.onload=function(pe){var Ae=ae.quill.getSelection(!0);ae.quill.updateContents((new P.default).retain(Ae.index).delete(Ae.length).insert({image:pe.target.result}),C.default.sources.USER),ae.quill.setSelection(Ae.index+1,C.default.sources.SILENT),oe.value=""},ge.readAsDataURL(oe.files[0])}}),this.container.appendChild(oe)),oe.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var Ue=function(Re){function ae(oe,ge){z(this,ae);var pe=W(this,(ae.__proto__||Object.getPrototypeOf(ae)).call(this,oe,ge));return pe.textbox=pe.root.querySelector('input[type="text"]'),pe.listen(),pe}return Y(ae,Re),g(ae,[{key:"listen",value:function(){var ge=this;this.textbox.addEventListener("keydown",function(pe){I.default.match(pe,"enter")?(ge.save(),pe.preventDefault()):I.default.match(pe,"escape")&&(ge.cancel(),pe.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var ge=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=pe?this.textbox.value=pe:ge!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+ge)||""),this.root.setAttribute("data-mode",ge)}},{key:"restoreFocus",value:function(){var ge=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=ge}},{key:"save",value:function(){var ge=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var pe=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",ge,C.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",ge,C.default.sources.USER)),this.quill.root.scrollTop=pe;break;case"video":ge=function Le(Re){var ae=Re.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||Re.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return ae?(ae[1]||"https")+"://www.youtube.com/embed/"+ae[2]+"?showinfo=0":(ae=Re.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(ae[1]||"https")+"://player.vimeo.com/video/"+ae[2]+"/":Re}(ge);case"formula":if(!ge)break;var Ae=this.quill.getSelection(!0);if(null!=Ae){var Pe=Ae.index+Ae.length;this.quill.insertEmbed(Pe,this.root.getAttribute("data-mode"),ge,C.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(Pe+1," ",C.default.sources.USER),this.quill.setSelection(Pe+2,C.default.sources.USER)}}this.textbox.value="",this.hide()}}]),ae}(te.default);function _e(Re,ae){var oe=arguments.length>2&&void 0!==arguments[2]&&arguments[2];ae.forEach(function(ge){var pe=document.createElement("option");ge===oe?pe.setAttribute("selected","selected"):pe.setAttribute("value",ge),Re.appendChild(pe)})}_.BaseTooltip=Ue,_.default=Ze},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=function(){function R(){this.head=this.tail=null,this.length=0}return R.prototype.append=function(){for(var V=[],U=0;U<arguments.length;U++)V[U]=arguments[U];this.insertBefore(V[0],null),V.length>1&&this.append.apply(this,V.slice(1))},R.prototype.contains=function(V){for(var U,H=this.iterator();U=H();)if(U===V)return!0;return!1},R.prototype.insertBefore=function(V,U){V&&(V.next=U,null!=U?(V.prev=U.prev,null!=U.prev&&(U.prev.next=V),U.prev=V,U===this.head&&(this.head=V)):null!=this.tail?(this.tail.next=V,V.prev=this.tail,this.tail=V):(V.prev=null,this.head=this.tail=V),this.length+=1)},R.prototype.offset=function(V){for(var U=0,H=this.head;null!=H;){if(H===V)return U;U+=H.length(),H=H.next}return-1},R.prototype.remove=function(V){this.contains(V)&&(null!=V.prev&&(V.prev.next=V.next),null!=V.next&&(V.next.prev=V.prev),V===this.head&&(this.head=V.next),V===this.tail&&(this.tail=V.prev),this.length-=1)},R.prototype.iterator=function(V){return void 0===V&&(V=this.head),function(){var U=V;return null!=V&&(V=V.next),U}},R.prototype.find=function(V,U){void 0===U&&(U=!1);for(var H,P=this.iterator();H=P();){var b=H.length();if(V<b||U&&V===b&&(null==H.next||0!==H.next.length()))return[H,V];V-=b}return[null,0]},R.prototype.forEach=function(V){for(var U,H=this.iterator();U=H();)V(U)},R.prototype.forEachAt=function(V,U,H){if(!(U<=0))for(var S,P=this.find(V),I=V-P[1],B=this.iterator(P[0]);(S=B())&&I<V+U;){var G=S.length();V>I?H(S,V-I,Math.min(U,I+G-V)):H(S,0,Math.min(G,V+U-I)),I+=G}},R.prototype.map=function(V){return this.reduce(function(U,H){return U.push(V(H)),U},[])},R.prototype.reduce=function(V,U){for(var H,P=this.iterator();H=P();)U=V(U,H);return U},R}();_.default=g},function(ve,_,r){"use strict";var b,g=this&&this.__extends||(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,S){C.__proto__=S}||function(C,S){for(var I in S)S.hasOwnProperty(I)&&(C[I]=S[I])},function(C,S){function I(){this.constructor=C}b(C,S),C.prototype=null===S?Object.create(S):(I.prototype=S.prototype,new I)});Object.defineProperty(_,"__esModule",{value:!0});var R=r(17),V=r(1),U={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},P=function(b){function C(S){var I=b.call(this,S)||this;return I.scroll=I,I.observer=new MutationObserver(function(B){I.update(B)}),I.observer.observe(I.domNode,U),I.attach(),I}return g(C,b),C.prototype.detach=function(){b.prototype.detach.call(this),this.observer.disconnect()},C.prototype.deleteAt=function(S,I){this.update(),0===S&&I===this.length()?this.children.forEach(function(B){B.remove()}):b.prototype.deleteAt.call(this,S,I)},C.prototype.formatAt=function(S,I,B,G){this.update(),b.prototype.formatAt.call(this,S,I,B,G)},C.prototype.insertAt=function(S,I,B){this.update(),b.prototype.insertAt.call(this,S,I,B)},C.prototype.optimize=function(S,I){var B=this;void 0===S&&(S=[]),void 0===I&&(I={}),b.prototype.optimize.call(this,I);for(var G=[].slice.call(this.observer.takeRecords());G.length>0;)S.push(G.pop());for(var x=function(K,de){void 0===de&&(de=!0),null!=K&&K!==B&&null!=K.domNode.parentNode&&(null==K.domNode[V.DATA_KEY].mutations&&(K.domNode[V.DATA_KEY].mutations=[]),de&&x(K.parent))},m=function(K){null==K.domNode[V.DATA_KEY]||null==K.domNode[V.DATA_KEY].mutations||(K instanceof R.default&&K.children.forEach(m),K.optimize(I))},k=S,D=0;k.length>0;D+=1){if(D>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(k.forEach(function(K){var de=V.find(K.target,!0);null!=de&&(de.domNode===K.target&&("childList"===K.type?(x(V.find(K.previousSibling,!1)),[].forEach.call(K.addedNodes,function(ie){var te=V.find(ie,!1);x(te,!1),te instanceof R.default&&te.children.forEach(function(se){x(se,!1)})})):"attributes"===K.type&&x(de.prev)),x(de))}),this.children.forEach(m),G=(k=[].slice.call(this.observer.takeRecords())).slice();G.length>0;)S.push(G.pop())}},C.prototype.update=function(S,I){var B=this;void 0===I&&(I={}),(S=S||this.observer.takeRecords()).map(function(G){var x=V.find(G.target,!0);return null==x?null:null==x.domNode[V.DATA_KEY].mutations?(x.domNode[V.DATA_KEY].mutations=[G],x):(x.domNode[V.DATA_KEY].mutations.push(G),null)}).forEach(function(G){null==G||G===B||null==G.domNode[V.DATA_KEY]||G.update(G.domNode[V.DATA_KEY].mutations||[],I)}),null!=this.domNode[V.DATA_KEY].mutations&&b.prototype.update.call(this,this.domNode[V.DATA_KEY].mutations,I),this.optimize(S,I)},C.blotName="scroll",C.defaultChild="block",C.scope=V.Scope.BLOCK_BLOT,C.tagName="DIV",C}(R.default);_.default=P},function(ve,_,r){"use strict";var P,g=this&&this.__extends||(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,C){b.__proto__=C}||function(b,C){for(var S in C)C.hasOwnProperty(S)&&(b[S]=C[S])},function(b,C){function S(){this.constructor=b}P(b,C),b.prototype=null===C?Object.create(C):(S.prototype=C.prototype,new S)});Object.defineProperty(_,"__esModule",{value:!0});var R=r(18),V=r(1);var H=function(P){function b(){return null!==P&&P.apply(this,arguments)||this}return g(b,P),b.formats=function(C){if(C.tagName!==b.tagName)return P.formats.call(this,C)},b.prototype.format=function(C,S){var I=this;C!==this.statics.blotName||S?P.prototype.format.call(this,C,S):(this.children.forEach(function(B){B instanceof R.default||(B=B.wrap(b.blotName,!0)),I.attributes.copy(B)}),this.unwrap())},b.prototype.formatAt=function(C,S,I,B){null!=this.formats()[I]||V.query(I,V.Scope.ATTRIBUTE)?this.isolate(C,S).format(I,B):P.prototype.formatAt.call(this,C,S,I,B)},b.prototype.optimize=function(C){P.prototype.optimize.call(this,C);var S=this.formats();if(0===Object.keys(S).length)return this.unwrap();var I=this.next;I instanceof b&&I.prev===this&&function U(P,b){if(Object.keys(P).length!==Object.keys(b).length)return!1;for(var C in P)if(P[C]!==b[C])return!1;return!0}(S,I.formats())&&(I.moveChildren(this),I.remove())},b.blotName="inline",b.scope=V.Scope.INLINE_BLOT,b.tagName="SPAN",b}(R.default);_.default=H},function(ve,_,r){"use strict";var H,g=this&&this.__extends||(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,b){P.__proto__=b}||function(P,b){for(var C in b)b.hasOwnProperty(C)&&(P[C]=b[C])},function(P,b){function C(){this.constructor=P}H(P,b),P.prototype=null===b?Object.create(b):(C.prototype=b.prototype,new C)});Object.defineProperty(_,"__esModule",{value:!0});var R=r(18),V=r(1),U=function(H){function P(){return null!==H&&H.apply(this,arguments)||this}return g(P,H),P.formats=function(b){var C=V.query(P.blotName).tagName;if(b.tagName!==C)return H.formats.call(this,b)},P.prototype.format=function(b,C){null!=V.query(b,V.Scope.BLOCK)&&(b!==this.statics.blotName||C?H.prototype.format.call(this,b,C):this.replaceWith(P.blotName))},P.prototype.formatAt=function(b,C,S,I){null!=V.query(S,V.Scope.BLOCK)?this.format(S,I):H.prototype.formatAt.call(this,b,C,S,I)},P.prototype.insertAt=function(b,C,S){if(null==S||null!=V.query(C,V.Scope.INLINE))H.prototype.insertAt.call(this,b,C,S);else{var I=this.split(b),B=V.create(C,S);I.parent.insertBefore(B,I)}},P.prototype.update=function(b,C){navigator.userAgent.match(/Trident/)?this.build():H.prototype.update.call(this,b,C)},P.blotName="block",P.scope=V.Scope.BLOCK_BLOT,P.tagName="P",P}(R.default);_.default=U},function(ve,_,r){"use strict";var U,g=this&&this.__extends||(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,P){H.__proto__=P}||function(H,P){for(var b in P)P.hasOwnProperty(b)&&(H[b]=P[b])},function(H,P){function b(){this.constructor=H}U(H,P),H.prototype=null===P?Object.create(P):(b.prototype=P.prototype,new b)});Object.defineProperty(_,"__esModule",{value:!0});var V=function(U){function H(){return null!==U&&U.apply(this,arguments)||this}return g(H,U),H.formats=function(P){},H.prototype.format=function(P,b){U.prototype.formatAt.call(this,0,this.length(),P,b)},H.prototype.formatAt=function(P,b,C,S){0===P&&b===this.length()?this.format(C,S):U.prototype.formatAt.call(this,P,b,C,S)},H.prototype.formats=function(){return this.statics.formats(this.domNode)},H}(r(19).default);_.default=V},function(ve,_,r){"use strict";var H,g=this&&this.__extends||(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,b){P.__proto__=b}||function(P,b){for(var C in b)b.hasOwnProperty(C)&&(P[C]=b[C])},function(P,b){function C(){this.constructor=P}H(P,b),P.prototype=null===b?Object.create(b):(C.prototype=b.prototype,new C)});Object.defineProperty(_,"__esModule",{value:!0});var R=r(19),V=r(1),U=function(H){function P(b){var C=H.call(this,b)||this;return C.text=C.statics.value(C.domNode),C}return g(P,H),P.create=function(b){return document.createTextNode(b)},P.value=function(b){var C=b.data;return C.normalize&&(C=C.normalize()),C},P.prototype.deleteAt=function(b,C){this.domNode.data=this.text=this.text.slice(0,b)+this.text.slice(b+C)},P.prototype.index=function(b,C){return this.domNode===b?C:-1},P.prototype.insertAt=function(b,C,S){null==S?(this.text=this.text.slice(0,b)+C+this.text.slice(b),this.domNode.data=this.text):H.prototype.insertAt.call(this,b,C,S)},P.prototype.length=function(){return this.text.length},P.prototype.optimize=function(b){H.prototype.optimize.call(this,b),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof P&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},P.prototype.position=function(b,C){return void 0===C&&(C=!1),[this.domNode,b]},P.prototype.split=function(b,C){if(void 0===C&&(C=!1),!C){if(0===b)return this;if(b===this.length())return this.next}var S=V.create(this.domNode.splitText(b));return this.parent.insertBefore(S,this.next),this.text=this.statics.value(this.domNode),S},P.prototype.update=function(b,C){var S=this;b.some(function(I){return"characterData"===I.type&&I.target===S.domNode})&&(this.text=this.statics.value(this.domNode))},P.prototype.value=function(){return this.text},P.blotName="text",P.scope=V.Scope.INLINE_BLOT,P}(R.default);_.default=U},function(ve,_,r){"use strict";var g=document.createElement("div");if(g.classList.toggle("test-class",!1),g.classList.contains("test-class")){var R=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(V,U){return arguments.length>1&&!this.contains(V)==!U?U:R.call(this,V)}}String.prototype.startsWith||(String.prototype.startsWith=function(V,U){return this.substr(U=U||0,V.length)===V}),String.prototype.endsWith||(String.prototype.endsWith=function(V,U){var H=this.toString();("number"!=typeof U||!isFinite(U)||Math.floor(U)!==U||U>H.length)&&(U=H.length);var P=H.indexOf(V,U-=V.length);return-1!==P&&P===U}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(U){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof U)throw new TypeError("predicate must be a function");for(var C,H=Object(this),P=H.length>>>0,b=arguments[1],S=0;S<P;S++)if(U.call(b,C=H[S],S,H))return C}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(ve,_){var r=-1,g=1,R=0;function V(D,K,de){if(D==K)return D?[[R,D]]:[];(de<0||D.length<de)&&(de=null);var ie=b(D,K),te=D.substring(0,ie);ie=C(D=D.substring(ie),K=K.substring(ie));var se=D.substring(D.length-ie),z=function U(D,K){var de;if(!D)return[[g,K]];if(!K)return[[r,D]];var ie=D.length>K.length?D:K,te=D.length>K.length?K:D,se=ie.indexOf(te);if(-1!=se)return de=[[g,ie.substring(0,se)],[R,te],[g,ie.substring(se+te.length)]],D.length>K.length&&(de[0][0]=de[2][0]=r),de;if(1==te.length)return[[r,D],[g,K]];var z=function S(D,K){var de=D.length>K.length?D:K,ie=D.length>K.length?K:D;if(de.length<4||2*ie.length<de.length)return null;function te(we,Ze,Ue){for(var ae,oe,ge,pe,Le=we.substring(Ue,Ue+Math.floor(we.length/4)),_e=-1,Re="";-1!=(_e=Ze.indexOf(Le,_e+1));){var Ae=b(we.substring(Ue),Ze.substring(_e)),Pe=C(we.substring(0,Ue),Ze.substring(0,_e));Re.length<Pe+Ae&&(Re=Ze.substring(_e-Pe,_e)+Ze.substring(_e,_e+Ae),ae=we.substring(0,Ue-Pe),oe=we.substring(Ue+Ae),ge=Ze.substring(0,_e-Pe),pe=Ze.substring(_e+Ae))}return 2*Re.length>=we.length?[ae,oe,ge,pe,Re]:null}var W,Y,q,ee,Q,se=te(de,ie,Math.ceil(de.length/4)),z=te(de,ie,Math.ceil(de.length/2));return se||z?(W=z?se&&se[4].length>z[4].length?se:z:se,D.length>K.length?(Y=W[0],q=W[1],ee=W[2],Q=W[3]):(ee=W[0],Q=W[1],Y=W[2],q=W[3]),[Y,q,ee,Q,W[4]]):null}(D,K);if(z){var Y=z[1],ee=z[3],Q=z[4],be=V(z[0],z[2]),we=V(Y,ee);return be.concat([[R,Q]],we)}return function H(D,K){for(var de=D.length,ie=K.length,te=Math.ceil((de+ie)/2),se=te,z=2*te,W=new Array(z),Y=new Array(z),q=0;q<z;q++)W[q]=-1,Y[q]=-1;W[se+1]=0,Y[se+1]=0;for(var ee=de-ie,Q=ee%2!=0,be=0,we=0,Ze=0,Ue=0,Le=0;Le<te;Le++){for(var _e=-Le+be;_e<=Le-we;_e+=2){for(var Re=se+_e,oe=(ae=_e==-Le||_e!=Le&&W[Re-1]<W[Re+1]?W[Re+1]:W[Re-1]+1)-_e;ae<de&&oe<ie&&D.charAt(ae)==K.charAt(oe);)ae++,oe++;if(W[Re]=ae,ae>de)we+=2;else if(oe>ie)be+=2;else if(Q&&(ge=se+ee-_e)>=0&&ge<z&&-1!=Y[ge]&&ae>=(pe=de-Y[ge]))return P(D,K,ae,oe)}for(var Ae=-Le+Ze;Ae<=Le-Ue;Ae+=2){for(var pe,ge=se+Ae,Pe=(pe=Ae==-Le||Ae!=Le&&Y[ge-1]<Y[ge+1]?Y[ge+1]:Y[ge-1]+1)-Ae;pe<de&&Pe<ie&&D.charAt(de-pe-1)==K.charAt(ie-Pe-1);)pe++,Pe++;if(Y[ge]=pe,pe>de)Ue+=2;else if(Pe>ie)Ze+=2;else if(!Q){var ae;if((Re=se+ee-Ae)>=0&&Re<z&&-1!=W[Re]&&(oe=se+(ae=W[Re])-Re,ae>=(pe=de-pe)))return P(D,K,ae,oe)}}}return[[r,D],[g,K]]}(D,K)}(D=D.substring(0,D.length-ie),K=K.substring(0,K.length-ie));return te&&z.unshift([R,te]),se&&z.push([R,se]),I(z),null!=de&&(z=function x(D,K){var de=function G(D,K){if(0===K)return[R,D];for(var de=0,ie=0;ie<D.length;ie++){var te=D[ie];if(te[0]===r||te[0]===R){var se=de+te[1].length;if(K===se)return[ie+1,D];if(K<se){D=D.slice();var z=K-de,W=[te[0],te[1].slice(0,z)],Y=[te[0],te[1].slice(z)];return D.splice(ie,1,W,Y),[ie+1,D]}de=se}}throw new Error("cursor_pos is out of bounds!")}(D,K),ie=de[1],te=de[0],se=ie[te],z=ie[te+1];if(null==se)return D;if(se[0]!==R)return D;if(null!=z&&se[1]+z[1]===z[1]+se[1])return ie.splice(te,2,z,se),k(ie,te,2);if(null!=z&&0===z[1].indexOf(se[1])){ie.splice(te,2,[z[0],se[1]],[0,se[1]]);var W=z[1].slice(se[1].length);return W.length>0&&ie.splice(te+2,0,[z[0],W]),k(ie,te,3)}return D}(z,de)),function m(D){for(var K=!1,de=function(z){return z.charCodeAt(0)>=56320&&z.charCodeAt(0)<=57343},ie=function(z){return z.charCodeAt(z.length-1)>=55296&&z.charCodeAt(z.length-1)<=56319},te=2;te<D.length;te+=1)D[te-2][0]===R&&ie(D[te-2][1])&&D[te-1][0]===r&&de(D[te-1][1])&&D[te][0]===g&&de(D[te][1])&&(K=!0,D[te-1][1]=D[te-2][1].slice(-1)+D[te-1][1],D[te][1]=D[te-2][1].slice(-1)+D[te][1],D[te-2][1]=D[te-2][1].slice(0,-1));if(!K)return D;var se=[];for(te=0;te<D.length;te+=1)D[te][1].length>0&&se.push(D[te]);return se}(z)}function P(D,K,de,ie){var te=D.substring(0,de),se=K.substring(0,ie),z=D.substring(de),W=K.substring(ie),Y=V(te,se),q=V(z,W);return Y.concat(q)}function b(D,K){if(!D||!K||D.charAt(0)!=K.charAt(0))return 0;for(var de=0,ie=Math.min(D.length,K.length),te=ie,se=0;de<te;)D.substring(se,te)==K.substring(se,te)?se=de=te:ie=te,te=Math.floor((ie-de)/2+de);return te}function C(D,K){if(!D||!K||D.charAt(D.length-1)!=K.charAt(K.length-1))return 0;for(var de=0,ie=Math.min(D.length,K.length),te=ie,se=0;de<te;)D.substring(D.length-te,D.length-se)==K.substring(K.length-te,K.length-se)?se=de=te:ie=te,te=Math.floor((ie-de)/2+de);return te}function I(D){D.push([R,""]);for(var z,K=0,de=0,ie=0,te="",se="";K<D.length;)switch(D[K][0]){case g:ie++,se+=D[K][1],K++;break;case r:de++,te+=D[K][1],K++;break;case R:de+ie>1?(0!==de&&0!==ie&&(0!==(z=b(se,te))&&(K-de-ie>0&&D[K-de-ie-1][0]==R?D[K-de-ie-1][1]+=se.substring(0,z):(D.splice(0,0,[R,se.substring(0,z)]),K++),se=se.substring(z),te=te.substring(z)),0!==(z=C(se,te))&&(D[K][1]=se.substring(se.length-z)+D[K][1],se=se.substring(0,se.length-z),te=te.substring(0,te.length-z))),0===de?D.splice(K-ie,de+ie,[g,se]):0===ie?D.splice(K-de,de+ie,[r,te]):D.splice(K-de-ie,de+ie,[r,te],[g,se]),K=K-de-ie+(de?1:0)+(ie?1:0)+1):0!==K&&D[K-1][0]==R?(D[K-1][1]+=D[K][1],D.splice(K,1)):K++,ie=0,de=0,te="",se=""}""===D[D.length-1][1]&&D.pop();var W=!1;for(K=1;K<D.length-1;)D[K-1][0]==R&&D[K+1][0]==R&&(D[K][1].substring(D[K][1].length-D[K-1][1].length)==D[K-1][1]?(D[K][1]=D[K-1][1]+D[K][1].substring(0,D[K][1].length-D[K-1][1].length),D[K+1][1]=D[K-1][1]+D[K+1][1],D.splice(K-1,1),W=!0):D[K][1].substring(0,D[K+1][1].length)==D[K+1][1]&&(D[K-1][1]+=D[K+1][1],D[K][1]=D[K][1].substring(D[K+1][1].length)+D[K+1][1],D.splice(K+1,1),W=!0)),K++;W&&I(D)}var B=V;function k(D,K,de){for(var ie=K+de-1;ie>=0&&ie>=K-1;ie--)if(ie+1<D.length){var te=D[ie],se=D[ie+1];te[0]===se[1]&&D.splice(ie,2,[te[0],te[1]+se[1]])}return D}B.INSERT=g,B.DELETE=r,B.EQUAL=R,ve.exports=B},function(ve,_){function r(g){var R=[];for(var V in g)R.push(V);return R}(ve.exports="function"==typeof Object.keys?Object.keys:r).shim=r},function(ve,_){var r="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function g(V){return"[object Arguments]"==Object.prototype.toString.call(V)}function R(V){return V&&"object"==typeof V&&"number"==typeof V.length&&Object.prototype.hasOwnProperty.call(V,"callee")&&!Object.prototype.propertyIsEnumerable.call(V,"callee")||!1}(_=ve.exports=r?g:R).supported=g,_.unsupported=R},function(ve,_){"use strict";var r=Object.prototype.hasOwnProperty,g="~";function R(){}function V(H,P,b){this.fn=H,this.context=P,this.once=b||!1}function U(){this._events=new R,this._eventsCount=0}Object.create&&(R.prototype=Object.create(null),(new R).__proto__||(g=!1)),U.prototype.eventNames=function(){var b,C,P=[];if(0===this._eventsCount)return P;for(C in b=this._events)r.call(b,C)&&P.push(g?C.slice(1):C);return Object.getOwnPropertySymbols?P.concat(Object.getOwnPropertySymbols(b)):P},U.prototype.listeners=function(P,b){var S=this._events[g?g+P:P];if(b)return!!S;if(!S)return[];if(S.fn)return[S.fn];for(var I=0,B=S.length,G=new Array(B);I<B;I++)G[I]=S[I].fn;return G},U.prototype.emit=function(P,b,C,S,I,B){var G=g?g+P:P;if(!this._events[G])return!1;var k,D,x=this._events[G],m=arguments.length;if(x.fn){switch(x.once&&this.removeListener(P,x.fn,void 0,!0),m){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,b),!0;case 3:return x.fn.call(x.context,b,C),!0;case 4:return x.fn.call(x.context,b,C,S),!0;case 5:return x.fn.call(x.context,b,C,S,I),!0;case 6:return x.fn.call(x.context,b,C,S,I,B),!0}for(D=1,k=new Array(m-1);D<m;D++)k[D-1]=arguments[D];x.fn.apply(x.context,k)}else{var de,K=x.length;for(D=0;D<K;D++)switch(x[D].once&&this.removeListener(P,x[D].fn,void 0,!0),m){case 1:x[D].fn.call(x[D].context);break;case 2:x[D].fn.call(x[D].context,b);break;case 3:x[D].fn.call(x[D].context,b,C);break;case 4:x[D].fn.call(x[D].context,b,C,S);break;default:if(!k)for(de=1,k=new Array(m-1);de<m;de++)k[de-1]=arguments[de];x[D].fn.apply(x[D].context,k)}}return!0},U.prototype.on=function(P,b,C){var S=new V(b,C||this),I=g?g+P:P;return this._events[I]?this._events[I].fn?this._events[I]=[this._events[I],S]:this._events[I].push(S):(this._events[I]=S,this._eventsCount++),this},U.prototype.once=function(P,b,C){var S=new V(b,C||this,!0),I=g?g+P:P;return this._events[I]?this._events[I].fn?this._events[I]=[this._events[I],S]:this._events[I].push(S):(this._events[I]=S,this._eventsCount++),this},U.prototype.removeListener=function(P,b,C,S){var I=g?g+P:P;if(!this._events[I])return this;if(!b)return 0==--this._eventsCount?this._events=new R:delete this._events[I],this;var B=this._events[I];if(B.fn)B.fn===b&&(!S||B.once)&&(!C||B.context===C)&&(0==--this._eventsCount?this._events=new R:delete this._events[I]);else{for(var G=0,x=[],m=B.length;G<m;G++)(B[G].fn!==b||S&&!B[G].once||C&&B[G].context!==C)&&x.push(B[G]);x.length?this._events[I]=1===x.length?x[0]:x:0==--this._eventsCount?this._events=new R:delete this._events[I]}return this},U.prototype.removeAllListeners=function(P){var b;return P?this._events[b=g?g+P:P]&&(0==--this._eventsCount?this._events=new R:delete this._events[b]):(this._events=new R,this._eventsCount=0),this},U.prototype.off=U.prototype.removeListener,U.prototype.addListener=U.prototype.on,U.prototype.setMaxListeners=function(){return this},U.prefixed=g,U.EventEmitter=U,typeof ve<"u"&&(ve.exports=U)},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.matchText=_.matchSpacing=_.matchNewline=_.matchBlot=_.matchAttributor=_.default=void 0;var g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(it){return typeof it}:function(it){return it&&"function"==typeof Symbol&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it},R=function(){return function(Xe,wt){if(Array.isArray(Xe))return Xe;if(Symbol.iterator in Object(Xe))return function it(Xe,wt){var at=[],vt=!0,$t=!1,tn=void 0;try{for(var Fn,qt=Xe[Symbol.iterator]();!(vt=(Fn=qt.next()).done)&&(at.push(Fn.value),!wt||at.length!==wt);vt=!0);}catch(Nn){$t=!0,tn=Nn}finally{try{!vt&&qt.return&&qt.return()}finally{if($t)throw tn}}return at}(Xe,wt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),V=function(){function it(Xe,wt){for(var at=0;at<wt.length;at++){var vt=wt[at];vt.enumerable=vt.enumerable||!1,vt.configurable=!0,"value"in vt&&(vt.writable=!0),Object.defineProperty(Xe,vt.key,vt)}}return function(Xe,wt,at){return wt&&it(Xe.prototype,wt),at&&it(Xe,at),Xe}}(),H=Y(r(3)),b=Y(r(2)),S=Y(r(0)),B=Y(r(5)),x=Y(r(10)),k=Y(r(9)),D=r(36),K=r(37),ie=Y(r(13)),te=r(26),se=r(38),z=r(39),W=r(40);function Y(it){return it&&it.__esModule?it:{default:it}}function q(it,Xe,wt){return Xe in it?Object.defineProperty(it,Xe,{value:wt,enumerable:!0,configurable:!0,writable:!0}):it[Xe]=wt,it}var we=(0,x.default)("quill:clipboard"),Ze="__ql-matcher",Ue=[[Node.TEXT_NODE,Gt],[Node.TEXT_NODE,st],["br",function ut(it,Xe){return ge(Xe,"\n")||Xe.insert("\n"),Xe}],[Node.ELEMENT_NODE,st],[Node.ELEMENT_NODE,Ge],[Node.ELEMENT_NODE,ct],[Node.ELEMENT_NODE,We],[Node.ELEMENT_NODE,function St(it,Xe){var wt={},at=it.style||{};return at.fontStyle&&"italic"===oe(it).fontStyle&&(wt.italic=!0),at.fontWeight&&(oe(it).fontWeight.startsWith("bold")||parseInt(oe(it).fontWeight)>=700)&&(wt.bold=!0),Object.keys(wt).length>0&&(Xe=ae(Xe,wt)),parseFloat(at.textIndent||0)>0&&(Xe=(new b.default).insert("\t").concat(Xe)),Xe}],["li",function tt(it,Xe){var wt=S.default.query(it);if(null==wt||"list-item"!==wt.blotName||!ge(Xe,"\n"))return Xe;for(var at=-1,vt=it.parentNode;!vt.classList.contains("ql-clipboard");)"list"===(S.default.query(vt)||{}).blotName&&(at+=1),vt=vt.parentNode;return at<=0?Xe:Xe.compose((new b.default).retain(Xe.length()-1).retain(1,{indent:at}))}],["b",Pe.bind(Pe,"bold")],["i",Pe.bind(Pe,"italic")],["style",function Fe(){return new b.default}]],Le=[D.AlignAttribute,se.DirectionAttribute].reduce(function(it,Xe){return it[Xe.keyName]=Xe,it},{}),_e=[D.AlignStyle,K.BackgroundStyle,te.ColorStyle,se.DirectionStyle,z.FontStyle,W.SizeStyle].reduce(function(it,Xe){return it[Xe.keyName]=Xe,it},{}),Re=function(it){function Xe(wt,at){!function ee(it,Xe){if(!(it instanceof Xe))throw new TypeError("Cannot call a class as a function")}(this,Xe);var vt=function Q(it,Xe){if(!it)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Xe||"object"!=typeof Xe&&"function"!=typeof Xe?it:Xe}(this,(Xe.__proto__||Object.getPrototypeOf(Xe)).call(this,wt,at));return vt.quill.root.addEventListener("paste",vt.onPaste.bind(vt)),vt.container=vt.quill.addContainer("ql-clipboard"),vt.container.setAttribute("contenteditable",!0),vt.container.setAttribute("tabindex",-1),vt.matchers=[],Ue.concat(vt.options.matchers).forEach(function($t){var tn=R($t,2),Fn=tn[1];!at.matchVisual&&Fn===ct||vt.addMatcher(tn[0],Fn)}),vt}return function be(it,Xe){if("function"!=typeof Xe&&null!==Xe)throw new TypeError("Super expression must either be null or a function, not "+typeof Xe);it.prototype=Object.create(Xe&&Xe.prototype,{constructor:{value:it,enumerable:!1,writable:!0,configurable:!0}}),Xe&&(Object.setPrototypeOf?Object.setPrototypeOf(it,Xe):it.__proto__=Xe)}(Xe,it),V(Xe,[{key:"addMatcher",value:function(at,vt){this.matchers.push([at,vt])}},{key:"convert",value:function(at){if("string"==typeof at)return this.container.innerHTML=at.replace(/\>\r?\n +\</g,"><"),this.convert();var vt=this.quill.getFormat(this.quill.selection.savedRange.index);if(vt[ie.default.blotName]){var $t=this.container.innerText;return this.container.innerHTML="",(new b.default).insert($t,q({},ie.default.blotName,vt[ie.default.blotName]))}var tn=this.prepareMatching(),qt=R(tn,2),Ht=Ae(this.container,qt[0],qt[1]);return ge(Ht,"\n")&&null==Ht.ops[Ht.ops.length-1].attributes&&(Ht=Ht.compose((new b.default).retain(Ht.length()-1).delete(1))),we.log("convert",this.container.innerHTML,Ht),this.container.innerHTML="",Ht}},{key:"dangerouslyPasteHTML",value:function(at,vt){var $t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:B.default.sources.API;if("string"==typeof at)this.quill.setContents(this.convert(at),vt),this.quill.setSelection(0,B.default.sources.SILENT);else{var tn=this.convert(vt);this.quill.updateContents((new b.default).retain(at).concat(tn),$t),this.quill.setSelection(at+tn.length(),B.default.sources.SILENT)}}},{key:"onPaste",value:function(at){var vt=this;if(!at.defaultPrevented&&this.quill.isEnabled()){var $t=this.quill.getSelection(),tn=(new b.default).retain($t.index),qt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(B.default.sources.SILENT),setTimeout(function(){tn=tn.concat(vt.convert()).delete($t.length),vt.quill.updateContents(tn,B.default.sources.USER),vt.quill.setSelection(tn.length()-$t.length,B.default.sources.SILENT),vt.quill.scrollingContainer.scrollTop=qt,vt.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var at=this,vt=[],$t=[];return this.matchers.forEach(function(tn){var qt=R(tn,2),Fn=qt[0],Nn=qt[1];switch(Fn){case Node.TEXT_NODE:$t.push(Nn);break;case Node.ELEMENT_NODE:vt.push(Nn);break;default:[].forEach.call(at.container.querySelectorAll(Fn),function(Ht){Ht[Ze]=Ht[Ze]||[],Ht[Ze].push(Nn)})}}),[vt,$t]}}]),Xe}(k.default);function ae(it,Xe,wt){return"object"===(typeof Xe>"u"?"undefined":g(Xe))?Object.keys(Xe).reduce(function(at,vt){return ae(at,vt,Xe[vt])},it):it.reduce(function(at,vt){return vt.attributes&&vt.attributes[Xe]?at.push(vt):at.insert(vt.insert,(0,H.default)({},q({},Xe,wt),vt.attributes))},new b.default)}function oe(it){if(it.nodeType!==Node.ELEMENT_NODE)return{};var Xe="__ql-computed-style";return it[Xe]||(it[Xe]=window.getComputedStyle(it))}function ge(it,Xe){for(var wt="",at=it.ops.length-1;at>=0&&wt.length<Xe.length;--at){var vt=it.ops[at];if("string"!=typeof vt.insert)break;wt=vt.insert+wt}return wt.slice(-1*Xe.length)===Xe}function pe(it){if(0===it.childNodes.length)return!1;var Xe=oe(it);return["block","list-item"].indexOf(Xe.display)>-1}function Ae(it,Xe,wt){return it.nodeType===it.TEXT_NODE?wt.reduce(function(at,vt){return vt(it,at)},new b.default):it.nodeType===it.ELEMENT_NODE?[].reduce.call(it.childNodes||[],function(at,vt){var $t=Ae(vt,Xe,wt);return vt.nodeType===it.ELEMENT_NODE&&($t=Xe.reduce(function(tn,qt){return qt(vt,tn)},$t),$t=(vt[Ze]||[]).reduce(function(tn,qt){return qt(vt,tn)},$t)),at.concat($t)},new b.default):new b.default}function Pe(it,Xe,wt){return ae(wt,it,!0)}function We(it,Xe){var wt=S.default.Attributor.Attribute.keys(it),at=S.default.Attributor.Class.keys(it),vt=S.default.Attributor.Style.keys(it),$t={};return wt.concat(at).concat(vt).forEach(function(tn){var qt=S.default.query(tn,S.default.Scope.ATTRIBUTE);null!=qt&&($t[qt.attrName]=qt.value(it),$t[qt.attrName])||(null!=(qt=Le[tn])&&(qt.attrName===tn||qt.keyName===tn)&&($t[qt.attrName]=qt.value(it)||void 0),null!=(qt=_e[tn])&&(qt.attrName===tn||qt.keyName===tn)&&($t[(qt=_e[tn]).attrName]=qt.value(it)||void 0))}),Object.keys($t).length>0&&(Xe=ae(Xe,$t)),Xe}function Ge(it,Xe){var wt=S.default.query(it);if(null==wt)return Xe;if(wt.prototype instanceof S.default.Embed){var at={},vt=wt.value(it);null!=vt&&(at[wt.blotName]=vt,Xe=(new b.default).insert(at,wt.formats(it)))}else"function"==typeof wt.formats&&(Xe=ae(Xe,wt.blotName,wt.formats(it)));return Xe}function st(it,Xe){return ge(Xe,"\n")||(pe(it)||Xe.length()>0&&it.nextSibling&&pe(it.nextSibling))&&Xe.insert("\n"),Xe}function ct(it,Xe){if(pe(it)&&null!=it.nextElementSibling&&!ge(Xe,"\n\n")){var wt=it.offsetHeight+parseFloat(oe(it).marginTop)+parseFloat(oe(it).marginBottom);it.nextElementSibling.offsetTop>it.offsetTop+1.5*wt&&Xe.insert("\n")}return Xe}function Gt(it,Xe){var wt=it.data;if("O:P"===it.parentNode.tagName)return Xe.insert(wt.trim());if(0===wt.trim().length&&it.parentNode.classList.contains("ql-clipboard"))return Xe;if(!oe(it.parentNode).whiteSpace.startsWith("pre")){var at=function($t,tn){return(tn=tn.replace(/[^\u00a0]/g,"")).length<1&&$t?" ":tn};wt=(wt=wt.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,at.bind(at,!0)),(null==it.previousSibling&&pe(it.parentNode)||null!=it.previousSibling&&pe(it.previousSibling))&&(wt=wt.replace(/^\s+/,at.bind(at,!1))),(null==it.nextSibling&&pe(it.parentNode)||null!=it.nextSibling&&pe(it.nextSibling))&&(wt=wt.replace(/\s+$/,at.bind(at,!1)))}return Xe.insert(wt)}Re.DEFAULTS={matchers:[],matchVisual:!0},_.default=Re,_.matchAttributor=We,_.matchBlot=Ge,_.matchNewline=st,_.matchSpacing=ct,_.matchText=Gt},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=function(){function I(B,G){for(var x=0;x<G.length;x++){var m=G[x];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(B,m.key,m)}}return function(B,G,x){return G&&I(B.prototype,G),x&&I(B,x),B}}(),R=function I(B,G,x){null===B&&(B=Function.prototype);var m=Object.getOwnPropertyDescriptor(B,G);if(void 0===m){var k=Object.getPrototypeOf(B);return null===k?void 0:I(k,G,x)}if("value"in m)return m.value;var D=m.get;return void 0===D?void 0:D.call(x)};var S=function(I){function B(){return function P(I,B){if(!(I instanceof B))throw new TypeError("Cannot call a class as a function")}(this,B),function b(I,B){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!B||"object"!=typeof B&&"function"!=typeof B?I:B}(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return function C(I,B){if("function"!=typeof B&&null!==B)throw new TypeError("Super expression must either be null or a function, not "+typeof B);I.prototype=Object.create(B&&B.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(I,B):I.__proto__=B)}(B,I),g(B,[{key:"optimize",value:function(x){R(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"optimize",this).call(this,x),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return R(B.__proto__||Object.getPrototypeOf(B),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),B}(function H(I){return I&&I.__esModule?I:{default:I}}(r(6)).default);S.blotName="bold",S.tagName=["STRONG","B"],_.default=S},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.addControls=_.default=void 0;var g=function(){return function(Y,q){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return function W(Y,q){var ee=[],Q=!0,be=!1,we=void 0;try{for(var Ue,Ze=Y[Symbol.iterator]();!(Q=(Ue=Ze.next()).done)&&(ee.push(Ue.value),!q||ee.length!==q);Q=!0);}catch(Le){be=!0,we=Le}finally{try{!Q&&Ze.return&&Ze.return()}finally{if(be)throw we}}return ee}(Y,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),R=function(){function W(Y,q){for(var ee=0;ee<q.length;ee++){var Q=q[ee];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(Y,Q.key,Q)}}return function(Y,q,ee){return q&&W(Y.prototype,q),ee&&W(Y,ee),Y}}(),U=x(r(2)),P=x(r(0)),C=x(r(5)),I=x(r(10)),G=x(r(9));function x(W){return W&&W.__esModule?W:{default:W}}function D(W,Y){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Y||"object"!=typeof Y&&"function"!=typeof Y?W:Y}var de=(0,I.default)("quill:toolbar"),ie=function(W){function Y(q,ee){!function k(W,Y){if(!(W instanceof Y))throw new TypeError("Cannot call a class as a function")}(this,Y);var we,Q=D(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,q,ee));if(Array.isArray(Q.options.container)){var be=document.createElement("div");se(be,Q.options.container),q.container.parentNode.insertBefore(be,q.container),Q.container=be}else Q.container="string"==typeof Q.options.container?document.querySelector(Q.options.container):Q.options.container;return Q.container instanceof HTMLElement?(Q.container.classList.add("ql-toolbar"),Q.controls=[],Q.handlers={},Object.keys(Q.options.handlers).forEach(function(Ze){Q.addHandler(Ze,Q.options.handlers[Ze])}),[].forEach.call(Q.container.querySelectorAll("button, select"),function(Ze){Q.attach(Ze)}),Q.quill.on(C.default.events.EDITOR_CHANGE,function(Ze,Ue){Ze===C.default.events.SELECTION_CHANGE&&Q.update(Ue)}),Q.quill.on(C.default.events.SCROLL_OPTIMIZE,function(){var Ze=Q.quill.selection.getRange(),Ue=g(Ze,1);Q.update(Ue[0])}),Q):(we=de.error("Container required for toolbar",Q.options),D(Q,we))}return function K(W,Y){if("function"!=typeof Y&&null!==Y)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);W.prototype=Object.create(Y&&Y.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(W,Y):W.__proto__=Y)}(Y,W),R(Y,[{key:"addHandler",value:function(ee,Q){this.handlers[ee]=Q}},{key:"attach",value:function(ee){var Q=this,be=[].find.call(ee.classList,function(Ze){return 0===Ze.indexOf("ql-")});if(be){if(be=be.slice(3),"BUTTON"===ee.tagName&&ee.setAttribute("type","button"),null==this.handlers[be]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[be])return void de.warn("ignoring attaching to disabled format",be,ee);if(null==P.default.query(be))return void de.warn("ignoring attaching to nonexistent format",be,ee)}ee.addEventListener("SELECT"===ee.tagName?"change":"click",function(Ze){var Ue=void 0;if("SELECT"===ee.tagName){if(ee.selectedIndex<0)return;var Le=ee.options[ee.selectedIndex];Ue=!Le.hasAttribute("selected")&&(Le.value||!1)}else Ue=!ee.classList.contains("ql-active")&&(ee.value||!ee.hasAttribute("value")),Ze.preventDefault();Q.quill.focus();var _e=Q.quill.selection.getRange(),ae=g(_e,1)[0];if(null!=Q.handlers[be])Q.handlers[be].call(Q,Ue);else if(P.default.query(be).prototype instanceof P.default.Embed){if(!(Ue=prompt("Enter "+be)))return;Q.quill.updateContents((new U.default).retain(ae.index).delete(ae.length).insert(function m(W,Y,q){return Y in W?Object.defineProperty(W,Y,{value:q,enumerable:!0,configurable:!0,writable:!0}):W[Y]=q,W}({},be,Ue)),C.default.sources.USER)}else Q.quill.format(be,Ue,C.default.sources.USER);Q.update(ae)}),this.controls.push([be,ee])}}},{key:"update",value:function(ee){var Q=null==ee?{}:this.quill.getFormat(ee);this.controls.forEach(function(be){var we=g(be,2),Ze=we[0],Ue=we[1];if("SELECT"===Ue.tagName){var Le=void 0;if(null==ee)Le=null;else if(null==Q[Ze])Le=Ue.querySelector("option[selected]");else if(!Array.isArray(Q[Ze])){var _e=Q[Ze];"string"==typeof _e&&(_e=_e.replace(/\"/g,'\\"')),Le=Ue.querySelector('option[value="'+_e+'"]')}null==Le?(Ue.value="",Ue.selectedIndex=-1):Le.selected=!0}else if(null==ee)Ue.classList.remove("ql-active");else if(Ue.hasAttribute("value")){var Re=Q[Ze]===Ue.getAttribute("value")||null!=Q[Ze]&&Q[Ze].toString()===Ue.getAttribute("value")||null==Q[Ze]&&!Ue.getAttribute("value");Ue.classList.toggle("ql-active",Re)}else Ue.classList.toggle("ql-active",null!=Q[Ze])})}}]),Y}(G.default);function te(W,Y,q){var ee=document.createElement("button");ee.setAttribute("type","button"),ee.classList.add("ql-"+Y),null!=q&&(ee.value=q),W.appendChild(ee)}function se(W,Y){Array.isArray(Y[0])||(Y=[Y]),Y.forEach(function(q){var ee=document.createElement("span");ee.classList.add("ql-formats"),q.forEach(function(Q){if("string"==typeof Q)te(ee,Q);else{var be=Object.keys(Q)[0],we=Q[be];Array.isArray(we)?function z(W,Y,q){var ee=document.createElement("select");ee.classList.add("ql-"+Y),q.forEach(function(Q){var be=document.createElement("option");!1!==Q?be.setAttribute("value",Q):be.setAttribute("selected","selected"),ee.appendChild(be)}),W.appendChild(ee)}(ee,be,we):te(ee,be,we)}}),W.appendChild(ee)})}ie.DEFAULTS={},ie.DEFAULTS={container:null,handlers:{clean:function(){var Y=this,q=this.quill.getSelection();if(null!=q)if(0==q.length){var ee=this.quill.getFormat();Object.keys(ee).forEach(function(Q){null!=P.default.query(Q,P.default.Scope.INLINE)&&Y.quill.format(Q,!1)})}else this.quill.removeFormat(q,C.default.sources.USER)},direction:function(Y){var q=this.quill.getFormat().align;"rtl"===Y&&null==q?this.quill.format("align","right",C.default.sources.USER):!Y&&"right"===q&&this.quill.format("align",!1,C.default.sources.USER),this.quill.format("direction",Y,C.default.sources.USER)},indent:function(Y){var q=this.quill.getSelection(),ee=this.quill.getFormat(q),Q=parseInt(ee.indent||0);if("+1"===Y||"-1"===Y){var be="+1"===Y?1:-1;"rtl"===ee.direction&&(be*=-1),this.quill.format("indent",Q+be,C.default.sources.USER)}},link:function(Y){!0===Y&&(Y=prompt("Enter link URL:")),this.quill.format("link",Y,C.default.sources.USER)},list:function(Y){var q=this.quill.getSelection(),ee=this.quill.getFormat(q);this.quill.format("list","check"===Y?"checked"!==ee.list&&"unchecked"!==ee.list&&"unchecked":Y,C.default.sources.USER)}}},_.default=ie,_.addControls=se},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=function(){function I(B,G){for(var x=0;x<G.length;x++){var m=G[x];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(B,m.key,m)}}return function(B,G,x){return G&&I(B.prototype,G),x&&I(B,x),B}}(),R=function I(B,G,x){null===B&&(B=Function.prototype);var m=Object.getOwnPropertyDescriptor(B,G);if(void 0===m){var k=Object.getPrototypeOf(B);return null===k?void 0:I(k,G,x)}if("value"in m)return m.value;var D=m.get;return void 0===D?void 0:D.call(x)};var S=function(I){function B(G,x){!function P(I,B){if(!(I instanceof B))throw new TypeError("Cannot call a class as a function")}(this,B);var m=function b(I,B){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!B||"object"!=typeof B&&"function"!=typeof B?I:B}(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,G));return m.label.innerHTML=x,m.container.classList.add("ql-color-picker"),[].slice.call(m.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(k){k.classList.add("ql-primary")}),m}return function C(I,B){if("function"!=typeof B&&null!==B)throw new TypeError("Super expression must either be null or a function, not "+typeof B);I.prototype=Object.create(B&&B.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(I,B):I.__proto__=B)}(B,I),g(B,[{key:"buildItem",value:function(x){var m=R(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"buildItem",this).call(this,x);return m.style.backgroundColor=x.getAttribute("value")||"",m}},{key:"selectItem",value:function(x,m){R(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"selectItem",this).call(this,x,m);var k=this.label.querySelector(".ql-color-label"),D=x&&x.getAttribute("data-value")||"";k&&("line"===k.tagName?k.style.stroke=D:k.style.fill=D)}}]),B}(function H(I){return I&&I.__esModule?I:{default:I}}(r(28)).default);_.default=S},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=function(){function I(B,G){for(var x=0;x<G.length;x++){var m=G[x];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(B,m.key,m)}}return function(B,G,x){return G&&I(B.prototype,G),x&&I(B,x),B}}(),R=function I(B,G,x){null===B&&(B=Function.prototype);var m=Object.getOwnPropertyDescriptor(B,G);if(void 0===m){var k=Object.getPrototypeOf(B);return null===k?void 0:I(k,G,x)}if("value"in m)return m.value;var D=m.get;return void 0===D?void 0:D.call(x)};var S=function(I){function B(G,x){!function P(I,B){if(!(I instanceof B))throw new TypeError("Cannot call a class as a function")}(this,B);var m=function b(I,B){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!B||"object"!=typeof B&&"function"!=typeof B?I:B}(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,G));return m.container.classList.add("ql-icon-picker"),[].forEach.call(m.container.querySelectorAll(".ql-picker-item"),function(k){k.innerHTML=x[k.getAttribute("data-value")||""]}),m.defaultItem=m.container.querySelector(".ql-selected"),m.selectItem(m.defaultItem),m}return function C(I,B){if("function"!=typeof B&&null!==B)throw new TypeError("Super expression must either be null or a function, not "+typeof B);I.prototype=Object.create(B&&B.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(I,B):I.__proto__=B)}(B,I),g(B,[{key:"selectItem",value:function(x,m){R(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"selectItem",this).call(this,x,m),this.label.innerHTML=(x=x||this.defaultItem).innerHTML}}]),B}(function H(I){return I&&I.__esModule?I:{default:I}}(r(28)).default);_.default=S},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=function(){function U(H,P){for(var b=0;b<P.length;b++){var C=P[b];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(H,C.key,C)}}return function(H,P,b){return P&&U(H.prototype,P),b&&U(H,b),H}}();var V=function(){function U(H,P){var b=this;(function R(U,H){if(!(U instanceof H))throw new TypeError("Cannot call a class as a function")})(this,U),this.quill=H,this.boundsContainer=P||document.body,this.root=H.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){b.root.style.marginTop=-1*b.quill.root.scrollTop+"px"}),this.hide()}return g(U,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(P){var b=P.left+P.width/2-this.root.offsetWidth/2,C=P.bottom+this.quill.root.scrollTop;this.root.style.left=b+"px",this.root.style.top=C+"px",this.root.classList.remove("ql-flip");var S=this.boundsContainer.getBoundingClientRect(),I=this.root.getBoundingClientRect(),B=0;return I.right>S.right&&(this.root.style.left=b+(B=S.right-I.right)+"px"),I.left<S.left&&(this.root.style.left=b+(B=S.left-I.left)+"px"),I.bottom>S.bottom&&(this.root.style.top=C-(P.bottom-P.top+(I.bottom-I.top))+"px",this.root.classList.add("ql-flip")),B}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),U}();_.default=V},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=function(){return function(W,Y){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return function z(W,Y){var q=[],ee=!0,Q=!1,be=void 0;try{for(var Ze,we=W[Symbol.iterator]();!(ee=(Ze=we.next()).done)&&(q.push(Ze.value),!Y||q.length!==Y);ee=!0);}catch(Ue){Q=!0,be=Ue}finally{try{!ee&&we.return&&we.return()}finally{if(Q)throw be}}return q}(W,Y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),R=function z(W,Y,q){null===W&&(W=Function.prototype);var ee=Object.getOwnPropertyDescriptor(W,Y);if(void 0===ee){var Q=Object.getPrototypeOf(W);return null===Q?void 0:z(Q,Y,q)}if("value"in ee)return ee.value;var be=ee.get;return void 0===be?void 0:be.call(q)},V=function(){function z(W,Y){for(var q=0;q<Y.length;q++){var ee=Y[q];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(W,ee.key,ee)}}return function(W,Y,q){return Y&&z(W.prototype,Y),q&&z(W,q),W}}(),H=k(r(3)),b=k(r(8)),C=r(43),S=k(C),B=k(r(27)),G=r(15),m=k(r(41));function k(z){return z&&z.__esModule?z:{default:z}}function D(z,W){if(!(z instanceof W))throw new TypeError("Cannot call a class as a function")}function K(z,W){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!W||"object"!=typeof W&&"function"!=typeof W?z:W}function de(z,W){if("function"!=typeof W&&null!==W)throw new TypeError("Super expression must either be null or a function, not "+typeof W);z.prototype=Object.create(W&&W.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(z,W):z.__proto__=W)}var ie=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],te=function(z){function W(Y,q){D(this,W),null!=q.modules.toolbar&&null==q.modules.toolbar.container&&(q.modules.toolbar.container=ie);var ee=K(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,Y,q));return ee.quill.container.classList.add("ql-snow"),ee}return de(W,z),V(W,[{key:"extendToolbar",value:function(q){q.container.classList.add("ql-snow"),this.buildButtons([].slice.call(q.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(q.container.querySelectorAll("select")),m.default),this.tooltip=new se(this.quill,this.options.bounds),q.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(ee,Q){q.handlers.link.call(q,!Q.format.link)})}}]),W}(S.default);te.DEFAULTS=(0,H.default)(!0,{},S.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(W){if(W){var Y=this.quill.getSelection();if(null==Y||0==Y.length)return;var q=this.quill.getText(Y);/^\S+@\S+\.\S+$/.test(q)&&0!==q.indexOf("mailto:")&&(q="mailto:"+q),this.quill.theme.tooltip.edit("link",q)}else this.quill.format("link",!1)}}}}});var se=function(z){function W(Y,q){D(this,W);var ee=K(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,Y,q));return ee.preview=ee.root.querySelector("a.ql-preview"),ee}return de(W,z),V(W,[{key:"listen",value:function(){var q=this;R(W.prototype.__proto__||Object.getPrototypeOf(W.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(ee){q.root.classList.contains("ql-editing")?q.save():q.edit("link",q.preview.textContent),ee.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(ee){if(null!=q.linkRange){var Q=q.linkRange;q.restoreFocus(),q.quill.formatText(Q,"link",!1,b.default.sources.USER),delete q.linkRange}ee.preventDefault(),q.hide()}),this.quill.on(b.default.events.SELECTION_CHANGE,function(ee,Q,be){if(null!=ee){if(0===ee.length&&be===b.default.sources.USER){var we=q.quill.scroll.descendant(B.default,ee.index),Ze=g(we,2),Ue=Ze[0];if(null!=Ue){q.linkRange=new G.Range(ee.index-Ze[1],Ue.length());var _e=B.default.formats(Ue.domNode);return q.preview.textContent=_e,q.preview.setAttribute("href",_e),q.show(),void q.position(q.quill.getBounds(q.linkRange))}}else delete q.linkRange;q.hide()}})}},{key:"show",value:function(){R(W.prototype.__proto__||Object.getPrototypeOf(W.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),W}(C.BaseTooltip);se.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),_.default=te},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var R=vt(r(29)),V=r(36),U=r(38),H=r(64),b=vt(r(65)),S=vt(r(66)),I=r(67),B=vt(I),G=r(37),x=r(26),m=r(39),k=r(40),K=vt(r(56)),ie=vt(r(68)),se=vt(r(27)),W=vt(r(69)),q=vt(r(70)),Q=vt(r(71)),we=vt(r(72)),Ue=vt(r(73)),Le=r(13),_e=vt(Le),ae=vt(r(74)),ge=vt(r(75)),Ae=vt(r(57)),We=vt(r(41)),ut=vt(r(28)),tt=vt(r(59)),ct=vt(r(60)),Gt=vt(r(61)),Xe=vt(r(108)),at=vt(r(62));function vt($t){return $t&&$t.__esModule?$t:{default:$t}}R.default.register({"attributors/attribute/direction":U.DirectionAttribute,"attributors/class/align":V.AlignClass,"attributors/class/background":G.BackgroundClass,"attributors/class/color":x.ColorClass,"attributors/class/direction":U.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":k.SizeClass,"attributors/style/align":V.AlignStyle,"attributors/style/background":G.BackgroundStyle,"attributors/style/color":x.ColorStyle,"attributors/style/direction":U.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":k.SizeStyle},!0),R.default.register({"formats/align":V.AlignClass,"formats/direction":U.DirectionClass,"formats/indent":H.IndentClass,"formats/background":G.BackgroundStyle,"formats/color":x.ColorStyle,"formats/font":m.FontClass,"formats/size":k.SizeClass,"formats/blockquote":b.default,"formats/code-block":_e.default,"formats/header":S.default,"formats/list":B.default,"formats/bold":K.default,"formats/code":Le.Code,"formats/italic":ie.default,"formats/link":se.default,"formats/script":W.default,"formats/strike":q.default,"formats/underline":Q.default,"formats/image":we.default,"formats/video":Ue.default,"formats/list/item":I.ListItem,"modules/formula":ae.default,"modules/syntax":ge.default,"modules/toolbar":Ae.default,"themes/bubble":Xe.default,"themes/snow":at.default,"ui/icons":We.default,"ui/picker":ut.default,"ui/icon-picker":ct.default,"ui/color-picker":tt.default,"ui/tooltip":Gt.default},!0),_.default=R.default},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.IndentClass=void 0;var g=function(){function B(G,x){for(var m=0;m<x.length;m++){var k=x[m];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(G,k.key,k)}}return function(G,x,m){return x&&B(G.prototype,x),m&&B(G,m),G}}(),R=function B(G,x,m){null===G&&(G=Function.prototype);var k=Object.getOwnPropertyDescriptor(G,x);if(void 0===k){var D=Object.getPrototypeOf(G);return null===D?void 0:B(D,x,m)}if("value"in k)return k.value;var K=k.get;return void 0===K?void 0:K.call(m)},U=function H(B){return B&&B.__esModule?B:{default:B}}(r(0));var S=function(B){function G(){return function P(B,G){if(!(B instanceof G))throw new TypeError("Cannot call a class as a function")}(this,G),function b(B,G){if(!B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!G||"object"!=typeof G&&"function"!=typeof G?B:G}(this,(G.__proto__||Object.getPrototypeOf(G)).apply(this,arguments))}return function C(B,G){if("function"!=typeof G&&null!==G)throw new TypeError("Super expression must either be null or a function, not "+typeof G);B.prototype=Object.create(G&&G.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),G&&(Object.setPrototypeOf?Object.setPrototypeOf(B,G):B.__proto__=G)}(G,B),g(G,[{key:"add",value:function(m,k){if("+1"===k||"-1"===k){var D=this.value(m)||0;k="+1"===k?D+1:D-1}return 0===k?(this.remove(m),!0):R(G.prototype.__proto__||Object.getPrototypeOf(G.prototype),"add",this).call(this,m,k)}},{key:"canAdd",value:function(m,k){return R(G.prototype.__proto__||Object.getPrototypeOf(G.prototype),"canAdd",this).call(this,m,k)||R(G.prototype.__proto__||Object.getPrototypeOf(G.prototype),"canAdd",this).call(this,m,parseInt(k))}},{key:"value",value:function(m){return parseInt(R(G.prototype.__proto__||Object.getPrototypeOf(G.prototype),"value",this).call(this,m))||void 0}}]),G}(U.default.Attributor.Class),I=new S("indent","ql-indent",{scope:U.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});_.IndentClass=I},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var b=function(C){function S(){return function U(C,S){if(!(C instanceof S))throw new TypeError("Cannot call a class as a function")}(this,S),function H(C,S){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!S||"object"!=typeof S&&"function"!=typeof S?C:S}(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return function P(C,S){if("function"!=typeof S&&null!==S)throw new TypeError("Super expression must either be null or a function, not "+typeof S);C.prototype=Object.create(S&&S.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(C,S):C.__proto__=S)}(S,C),S}(function V(C){return C&&C.__esModule?C:{default:C}}(r(4)).default);b.blotName="blockquote",b.tagName="blockquote",_.default=b},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=function(){function S(I,B){for(var G=0;G<B.length;G++){var x=B[G];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(I,x.key,x)}}return function(I,B,G){return B&&S(I.prototype,B),G&&S(I,G),I}}();var C=function(S){function I(){return function H(S,I){if(!(S instanceof I))throw new TypeError("Cannot call a class as a function")}(this,I),function P(S,I){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!I||"object"!=typeof I&&"function"!=typeof I?S:I}(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return function b(S,I){if("function"!=typeof I&&null!==I)throw new TypeError("Super expression must either be null or a function, not "+typeof I);S.prototype=Object.create(I&&I.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(S,I):S.__proto__=I)}(I,S),g(I,null,[{key:"formats",value:function(G){return this.tagName.indexOf(G.tagName)+1}}]),I}(function U(S){return S&&S.__esModule?S:{default:S}}(r(4)).default);C.blotName="header",C.tagName=["H1","H2","H3","H4","H5","H6"],_.default=C},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.ListItem=void 0;var g=function(){function D(K,de){for(var ie=0;ie<de.length;ie++){var te=de[ie];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(K,te.key,te)}}return function(K,de,ie){return de&&D(K.prototype,de),ie&&D(K,ie),K}}(),R=function D(K,de,ie){null===K&&(K=Function.prototype);var te=Object.getOwnPropertyDescriptor(K,de);if(void 0===te){var se=Object.getPrototypeOf(K);return null===se?void 0:D(se,de,ie)}if("value"in te)return te.value;var z=te.get;return void 0===z?void 0:z.call(ie)},U=S(r(0)),P=S(r(4)),C=S(r(25));function S(D){return D&&D.__esModule?D:{default:D}}function B(D,K){if(!(D instanceof K))throw new TypeError("Cannot call a class as a function")}function G(D,K){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!K||"object"!=typeof K&&"function"!=typeof K?D:K}function x(D,K){if("function"!=typeof K&&null!==K)throw new TypeError("Super expression must either be null or a function, not "+typeof K);D.prototype=Object.create(K&&K.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(D,K):D.__proto__=K)}var m=function(D){function K(){return B(this,K),G(this,(K.__proto__||Object.getPrototypeOf(K)).apply(this,arguments))}return x(K,D),g(K,[{key:"format",value:function(ie,te){ie!==k.blotName||te?R(K.prototype.__proto__||Object.getPrototypeOf(K.prototype),"format",this).call(this,ie,te):this.replaceWith(U.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():R(K.prototype.__proto__||Object.getPrototypeOf(K.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(ie,te){return this.parent.isolate(this.offset(this.parent),this.length()),ie===this.parent.statics.blotName?(this.parent.replaceWith(ie,te),this):(this.parent.unwrap(),R(K.prototype.__proto__||Object.getPrototypeOf(K.prototype),"replaceWith",this).call(this,ie,te))}}],[{key:"formats",value:function(ie){return ie.tagName===this.tagName?void 0:R(K.__proto__||Object.getPrototypeOf(K),"formats",this).call(this,ie)}}]),K}(P.default);m.blotName="list-item",m.tagName="LI";var k=function(D){function K(de){B(this,K);var ie=G(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,de)),te=function(z){if(z.target.parentNode===de){var W=ie.statics.formats(de),Y=U.default.find(z.target);"checked"===W?Y.format("list","unchecked"):"unchecked"===W&&Y.format("list","checked")}};return de.addEventListener("touchstart",te),de.addEventListener("mousedown",te),ie}return x(K,D),g(K,null,[{key:"create",value:function(ie){var te="ordered"===ie?"OL":"UL",se=R(K.__proto__||Object.getPrototypeOf(K),"create",this).call(this,te);return("checked"===ie||"unchecked"===ie)&&se.setAttribute("data-checked","checked"===ie),se}},{key:"formats",value:function(ie){return"OL"===ie.tagName?"ordered":"UL"===ie.tagName?ie.hasAttribute("data-checked")?"true"===ie.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),g(K,[{key:"format",value:function(ie,te){this.children.length>0&&this.children.tail.format(ie,te)}},{key:"formats",value:function(){return function I(D,K,de){return K in D?Object.defineProperty(D,K,{value:de,enumerable:!0,configurable:!0,writable:!0}):D[K]=de,D}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(ie,te){if(ie instanceof m)R(K.prototype.__proto__||Object.getPrototypeOf(K.prototype),"insertBefore",this).call(this,ie,te);else{var se=null==te?this.length():te.offset(this),z=this.split(se);z.parent.insertBefore(ie,z)}}},{key:"optimize",value:function(ie){R(K.prototype.__proto__||Object.getPrototypeOf(K.prototype),"optimize",this).call(this,ie);var te=this.next;null!=te&&te.prev===this&&te.statics.blotName===this.statics.blotName&&te.domNode.tagName===this.domNode.tagName&&te.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(te.moveChildren(this),te.remove())}},{key:"replace",value:function(ie){if(ie.statics.blotName!==this.statics.blotName){var te=U.default.create(this.statics.defaultChild);ie.moveChildren(te),this.appendChild(te)}R(K.prototype.__proto__||Object.getPrototypeOf(K.prototype),"replace",this).call(this,ie)}}]),K}(C.default);k.blotName="list",k.scope=U.default.Scope.BLOCK_BLOT,k.tagName=["OL","UL"],k.defaultChild="list-item",k.allowedChildren=[m],_.ListItem=m,_.default=k},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var b=function(C){function S(){return function U(C,S){if(!(C instanceof S))throw new TypeError("Cannot call a class as a function")}(this,S),function H(C,S){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!S||"object"!=typeof S&&"function"!=typeof S?C:S}(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return function P(C,S){if("function"!=typeof S&&null!==S)throw new TypeError("Super expression must either be null or a function, not "+typeof S);C.prototype=Object.create(S&&S.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(C,S):C.__proto__=S)}(S,C),S}(function V(C){return C&&C.__esModule?C:{default:C}}(r(56)).default);b.blotName="italic",b.tagName=["EM","I"],_.default=b},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=function(){function I(B,G){for(var x=0;x<G.length;x++){var m=G[x];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(B,m.key,m)}}return function(B,G,x){return G&&I(B.prototype,G),x&&I(B,x),B}}(),R=function I(B,G,x){null===B&&(B=Function.prototype);var m=Object.getOwnPropertyDescriptor(B,G);if(void 0===m){var k=Object.getPrototypeOf(B);return null===k?void 0:I(k,G,x)}if("value"in m)return m.value;var D=m.get;return void 0===D?void 0:D.call(x)};var S=function(I){function B(){return function P(I,B){if(!(I instanceof B))throw new TypeError("Cannot call a class as a function")}(this,B),function b(I,B){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!B||"object"!=typeof B&&"function"!=typeof B?I:B}(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return function C(I,B){if("function"!=typeof B&&null!==B)throw new TypeError("Super expression must either be null or a function, not "+typeof B);I.prototype=Object.create(B&&B.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(I,B):I.__proto__=B)}(B,I),g(B,null,[{key:"create",value:function(x){return"super"===x?document.createElement("sup"):"sub"===x?document.createElement("sub"):R(B.__proto__||Object.getPrototypeOf(B),"create",this).call(this,x)}},{key:"formats",value:function(x){return"SUB"===x.tagName?"sub":"SUP"===x.tagName?"super":void 0}}]),B}(function H(I){return I&&I.__esModule?I:{default:I}}(r(6)).default);S.blotName="script",S.tagName=["SUB","SUP"],_.default=S},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var b=function(C){function S(){return function U(C,S){if(!(C instanceof S))throw new TypeError("Cannot call a class as a function")}(this,S),function H(C,S){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!S||"object"!=typeof S&&"function"!=typeof S?C:S}(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return function P(C,S){if("function"!=typeof S&&null!==S)throw new TypeError("Super expression must either be null or a function, not "+typeof S);C.prototype=Object.create(S&&S.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(C,S):C.__proto__=S)}(S,C),S}(function V(C){return C&&C.__esModule?C:{default:C}}(r(6)).default);b.blotName="strike",b.tagName="S",_.default=b},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var b=function(C){function S(){return function U(C,S){if(!(C instanceof S))throw new TypeError("Cannot call a class as a function")}(this,S),function H(C,S){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!S||"object"!=typeof S&&"function"!=typeof S?C:S}(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return function P(C,S){if("function"!=typeof S&&null!==S)throw new TypeError("Super expression must either be null or a function, not "+typeof S);C.prototype=Object.create(S&&S.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(C,S):C.__proto__=S)}(S,C),S}(function V(C){return C&&C.__esModule?C:{default:C}}(r(6)).default);b.blotName="underline",b.tagName="U",_.default=b},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=function(){function G(x,m){for(var k=0;k<m.length;k++){var D=m[k];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(x,D.key,D)}}return function(x,m,k){return m&&G(x.prototype,m),k&&G(x,k),x}}(),R=function G(x,m,k){null===x&&(x=Function.prototype);var D=Object.getOwnPropertyDescriptor(x,m);if(void 0===D){var K=Object.getPrototypeOf(x);return null===K?void 0:G(K,m,k)}if("value"in D)return D.value;var de=D.get;return void 0===de?void 0:de.call(k)},U=function P(G){return G&&G.__esModule?G:{default:G}}(r(0)),H=r(27);var I=["alt","height","width"],B=function(G){function x(){return function b(G,x){if(!(G instanceof x))throw new TypeError("Cannot call a class as a function")}(this,x),function C(G,x){if(!G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||"object"!=typeof x&&"function"!=typeof x?G:x}(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return function S(G,x){if("function"!=typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);G.prototype=Object.create(x&&x.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(G,x):G.__proto__=x)}(x,G),g(x,[{key:"format",value:function(k,D){I.indexOf(k)>-1?D?this.domNode.setAttribute(k,D):this.domNode.removeAttribute(k):R(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,k,D)}}],[{key:"create",value:function(k){var D=R(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,k);return"string"==typeof k&&D.setAttribute("src",this.sanitize(k)),D}},{key:"formats",value:function(k){return I.reduce(function(D,K){return k.hasAttribute(K)&&(D[K]=k.getAttribute(K)),D},{})}},{key:"match",value:function(k){return/\.(jpe?g|gif|png)$/.test(k)||/^data:image\/.+;base64/.test(k)}},{key:"sanitize",value:function(k){return(0,H.sanitize)(k,["http","https","data"])?k:"//:0"}},{key:"value",value:function(k){return k.getAttribute("src")}}]),x}(U.default.Embed);B.blotName="image",B.tagName="IMG",_.default=B},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g=function(){function G(x,m){for(var k=0;k<m.length;k++){var D=m[k];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(x,D.key,D)}}return function(x,m,k){return m&&G(x.prototype,m),k&&G(x,k),x}}(),R=function G(x,m,k){null===x&&(x=Function.prototype);var D=Object.getOwnPropertyDescriptor(x,m);if(void 0===D){var K=Object.getPrototypeOf(x);return null===K?void 0:G(K,m,k)}if("value"in D)return D.value;var de=D.get;return void 0===de?void 0:de.call(k)},V=r(4),H=function P(G){return G&&G.__esModule?G:{default:G}}(r(27));var I=["height","width"],B=function(G){function x(){return function b(G,x){if(!(G instanceof x))throw new TypeError("Cannot call a class as a function")}(this,x),function C(G,x){if(!G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||"object"!=typeof x&&"function"!=typeof x?G:x}(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return function S(G,x){if("function"!=typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);G.prototype=Object.create(x&&x.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(G,x):G.__proto__=x)}(x,G),g(x,[{key:"format",value:function(k,D){I.indexOf(k)>-1?D?this.domNode.setAttribute(k,D):this.domNode.removeAttribute(k):R(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,k,D)}}],[{key:"create",value:function(k){var D=R(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,k);return D.setAttribute("frameborder","0"),D.setAttribute("allowfullscreen",!0),D.setAttribute("src",this.sanitize(k)),D}},{key:"formats",value:function(k){return I.reduce(function(D,K){return k.hasAttribute(K)&&(D[K]=k.getAttribute(K)),D},{})}},{key:"sanitize",value:function(k){return H.default.sanitize(k)}},{key:"value",value:function(k){return k.getAttribute("src")}}]),x}(V.BlockEmbed);B.blotName="video",B.className="ql-video",B.tagName="IFRAME",_.default=B},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.FormulaBlot=void 0;var g=function(){function k(D,K){for(var de=0;de<K.length;de++){var ie=K[de];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(D,ie.key,ie)}}return function(D,K,de){return K&&k(D.prototype,K),de&&k(D,de),D}}(),R=function k(D,K,de){null===D&&(D=Function.prototype);var ie=Object.getOwnPropertyDescriptor(D,K);if(void 0===ie){var te=Object.getPrototypeOf(D);return null===te?void 0:k(te,K,de)}if("value"in ie)return ie.value;var se=ie.get;return void 0===se?void 0:se.call(de)},U=S(r(35)),P=S(r(5)),C=S(r(9));function S(k){return k&&k.__esModule?k:{default:k}}function I(k,D){if(!(k instanceof D))throw new TypeError("Cannot call a class as a function")}function B(k,D){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!D||"object"!=typeof D&&"function"!=typeof D?k:D}function G(k,D){if("function"!=typeof D&&null!==D)throw new TypeError("Super expression must either be null or a function, not "+typeof D);k.prototype=Object.create(D&&D.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(k,D):k.__proto__=D)}var x=function(k){function D(){return I(this,D),B(this,(D.__proto__||Object.getPrototypeOf(D)).apply(this,arguments))}return G(D,k),g(D,null,[{key:"create",value:function(de){var ie=R(D.__proto__||Object.getPrototypeOf(D),"create",this).call(this,de);return"string"==typeof de&&(window.katex.render(de,ie,{throwOnError:!1,errorColor:"#f00"}),ie.setAttribute("data-value",de)),ie}},{key:"value",value:function(de){return de.getAttribute("data-value")}}]),D}(U.default);x.blotName="formula",x.className="ql-formula",x.tagName="SPAN";var m=function(k){function D(){I(this,D);var K=B(this,(D.__proto__||Object.getPrototypeOf(D)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return K}return G(D,k),g(D,null,[{key:"register",value:function(){P.default.register(x,!0)}}]),D}(C.default);_.FormulaBlot=x,_.default=m},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.CodeToken=_.CodeBlock=void 0;var g=function(){function de(ie,te){for(var se=0;se<te.length;se++){var z=te[se];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(ie,z.key,z)}}return function(ie,te,se){return te&&de(ie.prototype,te),se&&de(ie,se),ie}}(),R=function de(ie,te,se){null===ie&&(ie=Function.prototype);var z=Object.getOwnPropertyDescriptor(ie,te);if(void 0===z){var W=Object.getPrototypeOf(ie);return null===W?void 0:de(W,te,se)}if("value"in z)return z.value;var Y=z.get;return void 0===Y?void 0:Y.call(se)},U=B(r(0)),P=B(r(5)),C=B(r(9));function B(de){return de&&de.__esModule?de:{default:de}}function G(de,ie){if(!(de instanceof ie))throw new TypeError("Cannot call a class as a function")}function x(de,ie){if(!de)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ie||"object"!=typeof ie&&"function"!=typeof ie?de:ie}function m(de,ie){if("function"!=typeof ie&&null!==ie)throw new TypeError("Super expression must either be null or a function, not "+typeof ie);de.prototype=Object.create(ie&&ie.prototype,{constructor:{value:de,enumerable:!1,writable:!0,configurable:!0}}),ie&&(Object.setPrototypeOf?Object.setPrototypeOf(de,ie):de.__proto__=ie)}var k=function(de){function ie(){return G(this,ie),x(this,(ie.__proto__||Object.getPrototypeOf(ie)).apply(this,arguments))}return m(ie,de),g(ie,[{key:"replaceWith",value:function(se){this.domNode.textContent=this.domNode.textContent,this.attach(),R(ie.prototype.__proto__||Object.getPrototypeOf(ie.prototype),"replaceWith",this).call(this,se)}},{key:"highlight",value:function(se){var z=this.domNode.textContent;this.cachedText!==z&&((z.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=se(z),this.domNode.normalize(),this.attach()),this.cachedText=z)}}]),ie}(B(r(13)).default);k.className="ql-syntax";var D=new U.default.Attributor.Class("token","hljs",{scope:U.default.Scope.INLINE}),K=function(de){function ie(te,se){G(this,ie);var z=x(this,(ie.__proto__||Object.getPrototypeOf(ie)).call(this,te,se));if("function"!=typeof z.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var W=null;return z.quill.on(P.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(W),W=setTimeout(function(){z.highlight(),W=null},z.options.interval)}),z.highlight(),z}return m(ie,de),g(ie,null,[{key:"register",value:function(){P.default.register(D,!0),P.default.register(k,!0)}}]),g(ie,[{key:"highlight",value:function(){var se=this;if(!this.quill.selection.composing){this.quill.update(P.default.sources.USER);var z=this.quill.getSelection();this.quill.scroll.descendants(k).forEach(function(W){W.highlight(se.options.highlight)}),this.quill.update(P.default.sources.SILENT),null!=z&&this.quill.setSelection(z,P.default.sources.SILENT)}}}]),ie}(C.default);K.DEFAULTS={highlight:null==window.hljs?null:function(de){return window.hljs.highlightAuto(de).value},interval:1e3},_.CodeBlock=k,_.CodeToken=D,_.default=K},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(ve,_){ve.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(ve,_){ve.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(ve,_){ve.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(ve,_){ve.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(ve,_){ve.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(ve,_,r){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.BubbleTooltip=void 0;var g=function ie(te,se,z){null===te&&(te=Function.prototype);var W=Object.getOwnPropertyDescriptor(te,se);if(void 0===W){var Y=Object.getPrototypeOf(te);return null===Y?void 0:ie(Y,se,z)}if("value"in W)return W.value;var q=W.get;return void 0===q?void 0:q.call(z)},R=function(){function ie(te,se){for(var z=0;z<se.length;z++){var W=se[z];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(te,W.key,W)}}return function(te,se,z){return se&&ie(te.prototype,se),z&&ie(te,z),te}}(),U=G(r(3)),P=G(r(8)),b=r(43),C=G(b),S=r(15),B=G(r(41));function G(ie){return ie&&ie.__esModule?ie:{default:ie}}function x(ie,te){if(!(ie instanceof te))throw new TypeError("Cannot call a class as a function")}function m(ie,te){if(!ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!te||"object"!=typeof te&&"function"!=typeof te?ie:te}function k(ie,te){if("function"!=typeof te&&null!==te)throw new TypeError("Super expression must either be null or a function, not "+typeof te);ie.prototype=Object.create(te&&te.prototype,{constructor:{value:ie,enumerable:!1,writable:!0,configurable:!0}}),te&&(Object.setPrototypeOf?Object.setPrototypeOf(ie,te):ie.__proto__=te)}var D=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],K=function(ie){function te(se,z){x(this,te),null!=z.modules.toolbar&&null==z.modules.toolbar.container&&(z.modules.toolbar.container=D);var W=m(this,(te.__proto__||Object.getPrototypeOf(te)).call(this,se,z));return W.quill.container.classList.add("ql-bubble"),W}return k(te,ie),R(te,[{key:"extendToolbar",value:function(z){this.tooltip=new de(this.quill,this.options.bounds),this.tooltip.root.appendChild(z.container),this.buildButtons([].slice.call(z.container.querySelectorAll("button")),B.default),this.buildPickers([].slice.call(z.container.querySelectorAll("select")),B.default)}}]),te}(C.default);K.DEFAULTS=(0,U.default)(!0,{},C.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(te){te?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var de=function(ie){function te(se,z){x(this,te);var W=m(this,(te.__proto__||Object.getPrototypeOf(te)).call(this,se,z));return W.quill.on(P.default.events.EDITOR_CHANGE,function(Y,q,ee,Q){if(Y===P.default.events.SELECTION_CHANGE)if(null!=q&&q.length>0&&Q===P.default.sources.USER){W.show(),W.root.style.left="0px",W.root.style.width="",W.root.style.width=W.root.offsetWidth+"px";var be=W.quill.getLines(q.index,q.length);if(1===be.length)W.position(W.quill.getBounds(q));else{var we=be[be.length-1],Ze=W.quill.getIndex(we),Ue=Math.min(we.length()-1,q.index+q.length-Ze),Le=W.quill.getBounds(new S.Range(Ze,Ue));W.position(Le)}}else document.activeElement!==W.textbox&&W.quill.hasFocus()&&W.hide()}),W}return k(te,ie),R(te,[{key:"listen",value:function(){var z=this;g(te.prototype.__proto__||Object.getPrototypeOf(te.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){z.root.classList.remove("ql-editing")}),this.quill.on(P.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!z.root.classList.contains("ql-hidden")){var W=z.quill.getSelection();null!=W&&z.position(z.quill.getBounds(W))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(z){var W=g(te.prototype.__proto__||Object.getPrototypeOf(te.prototype),"position",this).call(this,z),Y=this.root.querySelector(".ql-tooltip-arrow");if(Y.style.marginLeft="",0===W)return W;Y.style.marginLeft=-1*W-Y.offsetWidth/2+"px"}}]),te}(b.BaseTooltip);de.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),_.BubbleTooltip=de,_.default=K},function(ve,_,r){ve.exports=r(63)}]).default},4412:(Dt,ve,_)=>{"use strict";_.d(ve,{t:()=>g});var r=_(1413);class g extends r.B{constructor(V){super(),this._value=V}get value(){return this.getValue()}_subscribe(V){const U=super._subscribe(V);return!U.closed&&V.next(this._value),U}getValue(){const{hasError:V,thrownError:U,_value:H}=this;if(V)throw U;return this._throwIfClosed(),H}next(V){super.next(this._value=V)}}},1985:(Dt,ve,_)=>{"use strict";_.d(ve,{c:()=>b});var r=_(7707),g=_(8359),R=_(3494),V=_(1203),U=_(1026),H=_(8071),P=_(9786);let b=(()=>{class B{constructor(x){x&&(this._subscribe=x)}lift(x){const m=new B;return m.source=this,m.operator=x,m}subscribe(x,m,k){const D=function I(B){return B&&B instanceof r.vU||function S(B){return B&&(0,H.T)(B.next)&&(0,H.T)(B.error)&&(0,H.T)(B.complete)}(B)&&(0,g.Uv)(B)}(x)?x:new r.Ms(x,m,k);return(0,P.Y)(()=>{const{operator:K,source:de}=this;D.add(K?K.call(D,de):de?this._subscribe(D):this._trySubscribe(D))}),D}_trySubscribe(x){try{return this._subscribe(x)}catch(m){x.error(m)}}forEach(x,m){return new(m=C(m))((k,D)=>{const K=new r.Ms({next:de=>{try{x(de)}catch(ie){D(ie),K.unsubscribe()}},error:D,complete:k});this.subscribe(K)})}_subscribe(x){var m;return null===(m=this.source)||void 0===m?void 0:m.subscribe(x)}[R.s](){return this}pipe(...x){return(0,V.m)(x)(this)}toPromise(x){return new(x=C(x))((m,k)=>{let D;this.subscribe(K=>D=K,K=>k(K),()=>m(D))})}}return B.create=G=>new B(G),B})();function C(B){var G;return null!==(G=B??U.$.Promise)&&void 0!==G?G:Promise}},2771:(Dt,ve,_)=>{"use strict";_.d(ve,{m:()=>R});var r=_(1413),g=_(6129);class R extends r.B{constructor(U=1/0,H=1/0,P=g.U){super(),this._bufferSize=U,this._windowTime=H,this._timestampProvider=P,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=H===1/0,this._bufferSize=Math.max(1,U),this._windowTime=Math.max(1,H)}next(U){const{isStopped:H,_buffer:P,_infiniteTimeWindow:b,_timestampProvider:C,_windowTime:S}=this;H||(P.push(U),!b&&P.push(C.now()+S)),this._trimBuffer(),super.next(U)}_subscribe(U){this._throwIfClosed(),this._trimBuffer();const H=this._innerSubscribe(U),{_infiniteTimeWindow:P,_buffer:b}=this,C=b.slice();for(let S=0;S<C.length&&!U.closed;S+=P?1:2)U.next(C[S]);return this._checkFinalizedStatuses(U),H}_trimBuffer(){const{_bufferSize:U,_timestampProvider:H,_buffer:P,_infiniteTimeWindow:b}=this,C=(b?1:2)*U;if(U<1/0&&C<P.length&&P.splice(0,P.length-C),!b){const S=H.now();let I=0;for(let B=1;B<P.length&&P[B]<=S;B+=2)I=B;I&&P.splice(0,I+1)}}}},1413:(Dt,ve,_)=>{"use strict";_.d(ve,{B:()=>P});var r=_(1985),g=_(8359);const V=(0,_(1853).L)(C=>function(){C(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var U=_(7908),H=_(9786);let P=(()=>{class C extends r.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(I){const B=new b(this,this);return B.operator=I,B}_throwIfClosed(){if(this.closed)throw new V}next(I){(0,H.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const B of this.currentObservers)B.next(I)}})}error(I){(0,H.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=I;const{observers:B}=this;for(;B.length;)B.shift().error(I)}})}complete(){(0,H.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:I}=this;for(;I.length;)I.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var I;return(null===(I=this.observers)||void 0===I?void 0:I.length)>0}_trySubscribe(I){return this._throwIfClosed(),super._trySubscribe(I)}_subscribe(I){return this._throwIfClosed(),this._checkFinalizedStatuses(I),this._innerSubscribe(I)}_innerSubscribe(I){const{hasError:B,isStopped:G,observers:x}=this;return B||G?g.Kn:(this.currentObservers=null,x.push(I),new g.yU(()=>{this.currentObservers=null,(0,U.o)(x,I)}))}_checkFinalizedStatuses(I){const{hasError:B,thrownError:G,isStopped:x}=this;B?I.error(G):x&&I.complete()}asObservable(){const I=new r.c;return I.source=this,I}}return C.create=(S,I)=>new b(S,I),C})();class b extends P{constructor(S,I){super(),this.destination=S,this.source=I}next(S){var I,B;null===(B=null===(I=this.destination)||void 0===I?void 0:I.next)||void 0===B||B.call(I,S)}error(S){var I,B;null===(B=null===(I=this.destination)||void 0===I?void 0:I.error)||void 0===B||B.call(I,S)}complete(){var S,I;null===(I=null===(S=this.destination)||void 0===S?void 0:S.complete)||void 0===I||I.call(S)}_subscribe(S){var I,B;return null!==(B=null===(I=this.source)||void 0===I?void 0:I.subscribe(S))&&void 0!==B?B:g.Kn}}},7707:(Dt,ve,_)=>{"use strict";_.d(ve,{Ms:()=>k,vU:()=>B});var r=_(8071),g=_(8359),R=_(1026),V=_(5334),U=_(5343);const H=C("C",void 0,void 0);function C(te,se,z){return{kind:te,value:se,error:z}}var S=_(9270),I=_(9786);class B extends g.yU{constructor(se){super(),this.isStopped=!1,se?(this.destination=se,(0,g.Uv)(se)&&se.add(this)):this.destination=ie}static create(se,z,W){return new k(se,z,W)}next(se){this.isStopped?de(function b(te){return C("N",te,void 0)}(se),this):this._next(se)}error(se){this.isStopped?de(function P(te){return C("E",void 0,te)}(se),this):(this.isStopped=!0,this._error(se))}complete(){this.isStopped?de(H,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(se){this.destination.next(se)}_error(se){try{this.destination.error(se)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const G=Function.prototype.bind;function x(te,se){return G.call(te,se)}class m{constructor(se){this.partialObserver=se}next(se){const{partialObserver:z}=this;if(z.next)try{z.next(se)}catch(W){D(W)}}error(se){const{partialObserver:z}=this;if(z.error)try{z.error(se)}catch(W){D(W)}else D(se)}complete(){const{partialObserver:se}=this;if(se.complete)try{se.complete()}catch(z){D(z)}}}class k extends B{constructor(se,z,W){let Y;if(super(),(0,r.T)(se)||!se)Y={next:se??void 0,error:z??void 0,complete:W??void 0};else{let q;this&&R.$.useDeprecatedNextContext?(q=Object.create(se),q.unsubscribe=()=>this.unsubscribe(),Y={next:se.next&&x(se.next,q),error:se.error&&x(se.error,q),complete:se.complete&&x(se.complete,q)}):Y=se}this.destination=new m(Y)}}function D(te){R.$.useDeprecatedSynchronousErrorHandling?(0,I.l)(te):(0,V.m)(te)}function de(te,se){const{onStoppedNotification:z}=R.$;z&&S.f.setTimeout(()=>z(te,se))}const ie={closed:!0,next:U.l,error:function K(te){throw te},complete:U.l}},8359:(Dt,ve,_)=>{"use strict";_.d(ve,{Kn:()=>H,yU:()=>U,Uv:()=>P});var r=_(8071);const R=(0,_(1853).L)(C=>function(I){C(this),this.message=I?`${I.length} errors occurred during unsubscription:\n${I.map((B,G)=>`${G+1}) ${B.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=I});var V=_(7908);class U{constructor(S){this.initialTeardown=S,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let S;if(!this.closed){this.closed=!0;const{_parentage:I}=this;if(I)if(this._parentage=null,Array.isArray(I))for(const x of I)x.remove(this);else I.remove(this);const{initialTeardown:B}=this;if((0,r.T)(B))try{B()}catch(x){S=x instanceof R?x.errors:[x]}const{_finalizers:G}=this;if(G){this._finalizers=null;for(const x of G)try{b(x)}catch(m){S=S??[],m instanceof R?S=[...S,...m.errors]:S.push(m)}}if(S)throw new R(S)}}add(S){var I;if(S&&S!==this)if(this.closed)b(S);else{if(S instanceof U){if(S.closed||S._hasParent(this))return;S._addParent(this)}(this._finalizers=null!==(I=this._finalizers)&&void 0!==I?I:[]).push(S)}}_hasParent(S){const{_parentage:I}=this;return I===S||Array.isArray(I)&&I.includes(S)}_addParent(S){const{_parentage:I}=this;this._parentage=Array.isArray(I)?(I.push(S),I):I?[I,S]:S}_removeParent(S){const{_parentage:I}=this;I===S?this._parentage=null:Array.isArray(I)&&(0,V.o)(I,S)}remove(S){const{_finalizers:I}=this;I&&(0,V.o)(I,S),S instanceof U&&S._removeParent(this)}}U.EMPTY=(()=>{const C=new U;return C.closed=!0,C})();const H=U.EMPTY;function P(C){return C instanceof U||C&&"closed"in C&&(0,r.T)(C.remove)&&(0,r.T)(C.add)&&(0,r.T)(C.unsubscribe)}function b(C){(0,r.T)(C)?C():C.unsubscribe()}},1026:(Dt,ve,_)=>{"use strict";_.d(ve,{$:()=>r});const r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3207:(Dt,ve,_)=>{"use strict";_.d(ve,{s:()=>g});var r=_(9350);function g(R,V){const U="object"==typeof V;return new Promise((H,P)=>{let C,b=!1;R.subscribe({next:S=>{C=S,b=!0},error:P,complete:()=>{b?H(C):U?H(V.defaultValue):P(new r.G)}})})}},8793:(Dt,ve,_)=>{"use strict";_.d(ve,{x:()=>U});var r=_(6365),R=_(9326),V=_(6648);function U(...H){return function g(){return(0,r.U)(1)}()((0,V.H)(H,(0,R.lI)(H)))}},9030:(Dt,ve,_)=>{"use strict";_.d(ve,{v:()=>R});var r=_(1985),g=_(8750);function R(V){return new r.c(U=>{(0,g.Tg)(V()).subscribe(U)})}},983:(Dt,ve,_)=>{"use strict";_.d(ve,{w:()=>g});const g=new(_(1985).c)(U=>U.complete())},6648:(Dt,ve,_)=>{"use strict";_.d(ve,{H:()=>W});var r=_(8750),g=_(5225),R=_(9974),V=_(4360);function U(Y,q=0){return(0,R.N)((ee,Q)=>{ee.subscribe((0,V._)(Q,be=>(0,g.N)(Q,Y,()=>Q.next(be),q),()=>(0,g.N)(Q,Y,()=>Q.complete(),q),be=>(0,g.N)(Q,Y,()=>Q.error(be),q)))})}function H(Y,q=0){return(0,R.N)((ee,Q)=>{Q.add(Y.schedule(()=>ee.subscribe(Q),q))})}var C=_(1985),I=_(4761),B=_(8071);function x(Y,q){if(!Y)throw new Error("Iterable cannot be null");return new C.c(ee=>{(0,g.N)(ee,q,()=>{const Q=Y[Symbol.asyncIterator]();(0,g.N)(ee,q,()=>{Q.next().then(be=>{be.done?ee.complete():ee.next(be.value)})},0,!0)})})}var m=_(5055),k=_(9858),D=_(7441),K=_(5397),de=_(7953),ie=_(591),te=_(5196);function W(Y,q){return q?function z(Y,q){if(null!=Y){if((0,m.l)(Y))return function P(Y,q){return(0,r.Tg)(Y).pipe(H(q),U(q))}(Y,q);if((0,D.X)(Y))return function S(Y,q){return new C.c(ee=>{let Q=0;return q.schedule(function(){Q===Y.length?ee.complete():(ee.next(Y[Q++]),ee.closed||this.schedule())})})}(Y,q);if((0,k.y)(Y))return function b(Y,q){return(0,r.Tg)(Y).pipe(H(q),U(q))}(Y,q);if((0,de.T)(Y))return x(Y,q);if((0,K.x)(Y))return function G(Y,q){return new C.c(ee=>{let Q;return(0,g.N)(ee,q,()=>{Q=Y[I.l](),(0,g.N)(ee,q,()=>{let be,we;try{({value:be,done:we}=Q.next())}catch(Ze){return void ee.error(Ze)}we?ee.complete():ee.next(be)},0,!0)}),()=>(0,B.T)(Q?.return)&&Q.return()})}(Y,q);if((0,te.U)(Y))return function se(Y,q){return x((0,te.C)(Y),q)}(Y,q)}throw(0,ie.L)(Y)}(Y,q):(0,r.Tg)(Y)}},3726:(Dt,ve,_)=>{"use strict";_.d(ve,{R:()=>S});var r=_(8750),g=_(1985),R=_(1397),V=_(7441),U=_(8071),H=_(6450);const P=["addListener","removeListener"],b=["addEventListener","removeEventListener"],C=["on","off"];function S(m,k,D,K){if((0,U.T)(D)&&(K=D,D=void 0),K)return S(m,k,D).pipe((0,H.I)(K));const[de,ie]=function x(m){return(0,U.T)(m.addEventListener)&&(0,U.T)(m.removeEventListener)}(m)?b.map(te=>se=>m[te](k,se,D)):function B(m){return(0,U.T)(m.addListener)&&(0,U.T)(m.removeListener)}(m)?P.map(I(m,k)):function G(m){return(0,U.T)(m.on)&&(0,U.T)(m.off)}(m)?C.map(I(m,k)):[];if(!de&&(0,V.X)(m))return(0,R.Z)(te=>S(te,k,D))((0,r.Tg)(m));if(!de)throw new TypeError("Invalid event target");return new g.c(te=>{const se=(...z)=>te.next(1<z.length?z:z[0]);return de(se),()=>ie(se)})}function I(m,k){return D=>K=>m[D](k,K)}},8750:(Dt,ve,_)=>{"use strict";_.d(ve,{Tg:()=>G});var r=_(1635),g=_(7441),R=_(9858),V=_(1985),U=_(5055),H=_(7953),P=_(591),b=_(5397),C=_(5196),S=_(8071),I=_(5334),B=_(3494);function G(te){if(te instanceof V.c)return te;if(null!=te){if((0,U.l)(te))return function x(te){return new V.c(se=>{const z=te[B.s]();if((0,S.T)(z.subscribe))return z.subscribe(se);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(te);if((0,g.X)(te))return function m(te){return new V.c(se=>{for(let z=0;z<te.length&&!se.closed;z++)se.next(te[z]);se.complete()})}(te);if((0,R.y)(te))return function k(te){return new V.c(se=>{te.then(z=>{se.closed||(se.next(z),se.complete())},z=>se.error(z)).then(null,I.m)})}(te);if((0,H.T)(te))return K(te);if((0,b.x)(te))return function D(te){return new V.c(se=>{for(const z of te)if(se.next(z),se.closed)return;se.complete()})}(te);if((0,C.U)(te))return function de(te){return K((0,C.C)(te))}(te)}throw(0,P.L)(te)}function K(te){return new V.c(se=>{(function ie(te,se){var z,W,Y,q;return(0,r.sH)(this,void 0,void 0,function*(){try{for(z=(0,r.xN)(te);!(W=yield z.next()).done;)if(se.next(W.value),se.closed)return}catch(ee){Y={error:ee}}finally{try{W&&!W.done&&(q=z.return)&&(yield q.call(z))}finally{if(Y)throw Y.error}}se.complete()})})(te,se).catch(z=>se.error(z))})}},605:(Dt,ve,_)=>{"use strict";_.d(ve,{Y:()=>R});var r=_(3236),g=_(1584);function R(V=0,U=r.E){return V<0&&(V=0),(0,g.O)(V,V,U)}},7786:(Dt,ve,_)=>{"use strict";_.d(ve,{h:()=>H});var r=_(6365),g=_(8750),R=_(983),V=_(9326),U=_(6648);function H(...P){const b=(0,V.lI)(P),C=(0,V.R0)(P,1/0),S=P;return S.length?1===S.length?(0,g.Tg)(S[0]):(0,r.U)(C)((0,U.H)(S,b)):R.w}},7673:(Dt,ve,_)=>{"use strict";_.d(ve,{of:()=>R});var r=_(9326),g=_(6648);function R(...V){const U=(0,r.lI)(V);return(0,g.H)(V,U)}},1584:(Dt,ve,_)=>{"use strict";_.d(ve,{O:()=>U});var r=_(1985),g=_(3236),R=_(9470);function U(H=0,P,b=g.b){let C=-1;return null!=P&&((0,R.m)(P)?b=P:C=P),new r.c(S=>{let I=function V(H){return H instanceof Date&&!isNaN(H)}(H)?+H-b.now():H;I<0&&(I=0);let B=0;return b.schedule(function(){S.closed||(S.next(B++),0<=C?this.schedule(void 0,C):S.complete())},I)})}},4360:(Dt,ve,_)=>{"use strict";_.d(ve,{_:()=>g});var r=_(7707);function g(V,U,H,P,b){return new R(V,U,H,P,b)}class R extends r.vU{constructor(U,H,P,b,C,S){super(U),this.onFinalize=C,this.shouldUnsubscribe=S,this._next=H?function(I){try{H(I)}catch(B){U.error(B)}}:super._next,this._error=b?function(I){try{b(I)}catch(B){U.error(B)}finally{this.unsubscribe()}}:super._error,this._complete=P?function(){try{P()}catch(I){U.error(I)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var U;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:H}=this;super.unsubscribe(),!H&&(null===(U=this.onFinalize)||void 0===U||U.call(this))}}}},9437:(Dt,ve,_)=>{"use strict";_.d(ve,{W:()=>V});var r=_(8750),g=_(4360),R=_(9974);function V(U){return(0,R.N)((H,P)=>{let S,b=null,C=!1;b=H.subscribe((0,g._)(P,void 0,void 0,I=>{S=(0,r.Tg)(U(I,V(U)(H))),b?(b.unsubscribe(),b=null,S.subscribe(P)):C=!0})),C&&(b.unsubscribe(),b=null,S.subscribe(P))})}},274:(Dt,ve,_)=>{"use strict";_.d(ve,{H:()=>R});var r=_(1397),g=_(8071);function R(V,U){return(0,g.T)(U)?(0,r.Z)(V,U,1):(0,r.Z)(V,1)}},152:(Dt,ve,_)=>{"use strict";_.d(ve,{B:()=>V});var r=_(3236),g=_(9974),R=_(4360);function V(U,H=r.E){return(0,g.N)((P,b)=>{let C=null,S=null,I=null;const B=()=>{if(C){C.unsubscribe(),C=null;const x=S;S=null,b.next(x)}};function G(){const x=I+U,m=H.now();if(m<x)return C=this.schedule(void 0,x-m),void b.add(C);B()}P.subscribe((0,R._)(b,x=>{S=x,I=H.now(),C||(C=H.schedule(G,U),b.add(C))},()=>{B(),b.complete()},void 0,()=>{S=C=null}))})}},3294:(Dt,ve,_)=>{"use strict";_.d(ve,{F:()=>V});var r=_(3669),g=_(9974),R=_(4360);function V(H,P=r.D){return H=H??U,(0,g.N)((b,C)=>{let S,I=!0;b.subscribe((0,R._)(C,B=>{const G=P(B);(I||!H(S,G))&&(I=!1,S=G,C.next(B))}))})}function U(H,P){return H===P}},5964:(Dt,ve,_)=>{"use strict";_.d(ve,{p:()=>R});var r=_(9974),g=_(4360);function R(V,U){return(0,r.N)((H,P)=>{let b=0;H.subscribe((0,g._)(P,C=>V.call(U,C,b++)&&P.next(C)))})}},980:(Dt,ve,_)=>{"use strict";_.d(ve,{j:()=>g});var r=_(9974);function g(R){return(0,r.N)((V,U)=>{try{V.subscribe(U)}finally{U.add(R)}})}},6354:(Dt,ve,_)=>{"use strict";_.d(ve,{T:()=>R});var r=_(9974),g=_(4360);function R(V,U){return(0,r.N)((H,P)=>{let b=0;H.subscribe((0,g._)(P,C=>{P.next(V.call(U,C,b++))}))})}},3703:(Dt,ve,_)=>{"use strict";_.d(ve,{u:()=>g});var r=_(6354);function g(R){return(0,r.T)(()=>R)}},6365:(Dt,ve,_)=>{"use strict";_.d(ve,{U:()=>R});var r=_(1397),g=_(3669);function R(V=1/0){return(0,r.Z)(g.D,V)}},1397:(Dt,ve,_)=>{"use strict";_.d(ve,{Z:()=>b});var r=_(6354),g=_(8750),R=_(9974),V=_(5225),U=_(4360),P=_(8071);function b(C,S,I=1/0){return(0,P.T)(S)?b((B,G)=>(0,r.T)((x,m)=>S(B,x,G,m))((0,g.Tg)(C(B,G))),I):("number"==typeof S&&(I=S),(0,R.N)((B,G)=>function H(C,S,I,B,G,x,m,k){const D=[];let K=0,de=0,ie=!1;const te=()=>{ie&&!D.length&&!K&&S.complete()},se=W=>K<B?z(W):D.push(W),z=W=>{x&&S.next(W),K++;let Y=!1;(0,g.Tg)(I(W,de++)).subscribe((0,U._)(S,q=>{G?.(q),x?se(q):S.next(q)},()=>{Y=!0},void 0,()=>{if(Y)try{for(K--;D.length&&K<B;){const q=D.shift();m?(0,V.N)(S,m,()=>z(q)):z(q)}te()}catch(q){S.error(q)}}))};return C.subscribe((0,U._)(S,se,()=>{ie=!0,te()})),()=>{k?.()}}(B,G,C,I)))}},9172:(Dt,ve,_)=>{"use strict";_.d(ve,{Z:()=>V});var r=_(8793),g=_(9326),R=_(9974);function V(...U){const H=(0,g.lI)(U);return(0,R.N)((P,b)=>{(H?(0,r.x)(U,P,H):(0,r.x)(U,P)).subscribe(b)})}},5558:(Dt,ve,_)=>{"use strict";_.d(ve,{n:()=>V});var r=_(8750),g=_(9974),R=_(4360);function V(U,H){return(0,g.N)((P,b)=>{let C=null,S=0,I=!1;const B=()=>I&&!C&&b.complete();P.subscribe((0,R._)(b,G=>{C?.unsubscribe();let x=0;const m=S++;(0,r.Tg)(U(G,m)).subscribe(C=(0,R._)(b,k=>b.next(H?H(G,k,m,x++):k),()=>{C=null,B()}))},()=>{I=!0,B()}))})}},6697:(Dt,ve,_)=>{"use strict";_.d(ve,{s:()=>V});var r=_(983),g=_(9974),R=_(4360);function V(U){return U<=0?()=>r.w:(0,g.N)((H,P)=>{let b=0;H.subscribe((0,R._)(P,C=>{++b<=U&&(P.next(C),U<=b&&P.complete())}))})}},6977:(Dt,ve,_)=>{"use strict";_.d(ve,{Q:()=>U});var r=_(9974),g=_(4360),R=_(8750),V=_(5343);function U(H){return(0,r.N)((P,b)=>{(0,R.Tg)(H).subscribe((0,g._)(b,()=>b.complete(),V.l)),!b.closed&&P.subscribe(b)})}},8141:(Dt,ve,_)=>{"use strict";_.d(ve,{M:()=>U});var r=_(8071),g=_(9974),R=_(4360),V=_(3669);function U(H,P,b){const C=(0,r.T)(H)||P||b?{next:H,error:P,complete:b}:H;return C?(0,g.N)((S,I)=>{var B;null===(B=C.subscribe)||void 0===B||B.call(C);let G=!0;S.subscribe((0,R._)(I,x=>{var m;null===(m=C.next)||void 0===m||m.call(C,x),I.next(x)},()=>{var x;G=!1,null===(x=C.complete)||void 0===x||x.call(C),I.complete()},x=>{var m;G=!1,null===(m=C.error)||void 0===m||m.call(C,x),I.error(x)},()=>{var x,m;G&&(null===(x=C.unsubscribe)||void 0===x||x.call(C)),null===(m=C.finalize)||void 0===m||m.call(C)}))}):V.D}},6780:(Dt,ve,_)=>{"use strict";_.d(ve,{R:()=>U});var r=_(8359);class g extends r.yU{constructor(P,b){super()}schedule(P,b=0){return this}}const R={setInterval(H,P,...b){const{delegate:C}=R;return C?.setInterval?C.setInterval(H,P,...b):setInterval(H,P,...b)},clearInterval(H){const{delegate:P}=R;return(P?.clearInterval||clearInterval)(H)},delegate:void 0};var V=_(7908);class U extends g{constructor(P,b){super(P,b),this.scheduler=P,this.work=b,this.pending=!1}schedule(P,b=0){var C;if(this.closed)return this;this.state=P;const S=this.id,I=this.scheduler;return null!=S&&(this.id=this.recycleAsyncId(I,S,b)),this.pending=!0,this.delay=b,this.id=null!==(C=this.id)&&void 0!==C?C:this.requestAsyncId(I,this.id,b),this}requestAsyncId(P,b,C=0){return R.setInterval(P.flush.bind(P,this),C)}recycleAsyncId(P,b,C=0){if(null!=C&&this.delay===C&&!1===this.pending)return b;null!=b&&R.clearInterval(b)}execute(P,b){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const C=this._execute(P,b);if(C)return C;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(P,b){let S,C=!1;try{this.work(P)}catch(I){C=!0,S=I||new Error("Scheduled action threw falsy error")}if(C)return this.unsubscribe(),S}unsubscribe(){if(!this.closed){const{id:P,scheduler:b}=this,{actions:C}=b;this.work=this.state=this.scheduler=null,this.pending=!1,(0,V.o)(C,this),null!=P&&(this.id=this.recycleAsyncId(b,P,null)),this.delay=null,super.unsubscribe()}}}},9687:(Dt,ve,_)=>{"use strict";_.d(ve,{q:()=>R});var r=_(6129);class g{constructor(U,H=g.now){this.schedulerActionCtor=U,this.now=H}schedule(U,H=0,P){return new this.schedulerActionCtor(this,U).schedule(P,H)}}g.now=r.U.now;class R extends g{constructor(U,H=g.now){super(U,H),this.actions=[],this._active=!1}flush(U){const{actions:H}=this;if(this._active)return void H.push(U);let P;this._active=!0;do{if(P=U.execute(U.state,U.delay))break}while(U=H.shift());if(this._active=!1,P){for(;U=H.shift();)U.unsubscribe();throw P}}}},3236:(Dt,ve,_)=>{"use strict";_.d(ve,{E:()=>R,b:()=>V});var r=_(6780);const R=new(_(9687).q)(r.R),V=R},6129:(Dt,ve,_)=>{"use strict";_.d(ve,{U:()=>r});const r={now:()=>(r.delegate||Date).now(),delegate:void 0}},9270:(Dt,ve,_)=>{"use strict";_.d(ve,{f:()=>r});const r={setTimeout(g,R,...V){const{delegate:U}=r;return U?.setTimeout?U.setTimeout(g,R,...V):setTimeout(g,R,...V)},clearTimeout(g){const{delegate:R}=r;return(R?.clearTimeout||clearTimeout)(g)},delegate:void 0}},4761:(Dt,ve,_)=>{"use strict";_.d(ve,{l:()=>g});const g=function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Dt,ve,_)=>{"use strict";_.d(ve,{s:()=>r});const r="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Dt,ve,_)=>{"use strict";_.d(ve,{G:()=>g});const g=(0,_(1853).L)(R=>function(){R(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Dt,ve,_)=>{"use strict";_.d(ve,{R0:()=>H,lI:()=>U,ms:()=>V});var r=_(8071),g=_(9470);function R(P){return P[P.length-1]}function V(P){return(0,r.T)(R(P))?P.pop():void 0}function U(P){return(0,g.m)(R(P))?P.pop():void 0}function H(P,b){return"number"==typeof R(P)?P.pop():b}},3073:(Dt,ve,_)=>{"use strict";_.d(ve,{D:()=>U});const{isArray:r}=Array,{getPrototypeOf:g,prototype:R,keys:V}=Object;function U(P){if(1===P.length){const b=P[0];if(r(b))return{args:b,keys:null};if(function H(P){return P&&"object"==typeof P&&g(P)===R}(b)){const C=V(b);return{args:C.map(S=>b[S]),keys:C}}}return{args:P,keys:null}}},7908:(Dt,ve,_)=>{"use strict";function r(g,R){if(g){const V=g.indexOf(R);0<=V&&g.splice(V,1)}}_.d(ve,{o:()=>r})},1853:(Dt,ve,_)=>{"use strict";function r(g){const V=g(U=>{Error.call(U),U.stack=(new Error).stack});return V.prototype=Object.create(Error.prototype),V.prototype.constructor=V,V}_.d(ve,{L:()=>r})},8496:(Dt,ve,_)=>{"use strict";function r(g,R){return g.reduce((V,U,H)=>(V[U]=R[H],V),{})}_.d(ve,{e:()=>r})},9786:(Dt,ve,_)=>{"use strict";_.d(ve,{Y:()=>R,l:()=>V});var r=_(1026);let g=null;function R(U){if(r.$.useDeprecatedSynchronousErrorHandling){const H=!g;if(H&&(g={errorThrown:!1,error:null}),U(),H){const{errorThrown:P,error:b}=g;if(g=null,P)throw b}}else U()}function V(U){r.$.useDeprecatedSynchronousErrorHandling&&g&&(g.errorThrown=!0,g.error=U)}},5225:(Dt,ve,_)=>{"use strict";function r(g,R,V,U=0,H=!1){const P=R.schedule(function(){V(),H?g.add(this.schedule(null,U)):this.unsubscribe()},U);if(g.add(P),!H)return P}_.d(ve,{N:()=>r})},3669:(Dt,ve,_)=>{"use strict";function r(g){return g}_.d(ve,{D:()=>r})},7441:(Dt,ve,_)=>{"use strict";_.d(ve,{X:()=>r});const r=g=>g&&"number"==typeof g.length&&"function"!=typeof g},7953:(Dt,ve,_)=>{"use strict";_.d(ve,{T:()=>g});var r=_(8071);function g(R){return Symbol.asyncIterator&&(0,r.T)(R?.[Symbol.asyncIterator])}},8071:(Dt,ve,_)=>{"use strict";function r(g){return"function"==typeof g}_.d(ve,{T:()=>r})},5055:(Dt,ve,_)=>{"use strict";_.d(ve,{l:()=>R});var r=_(3494),g=_(8071);function R(V){return(0,g.T)(V[r.s])}},5397:(Dt,ve,_)=>{"use strict";_.d(ve,{x:()=>R});var r=_(4761),g=_(8071);function R(V){return(0,g.T)(V?.[r.l])}},4402:(Dt,ve,_)=>{"use strict";_.d(ve,{A:()=>R});var r=_(1985),g=_(8071);function R(V){return!!V&&(V instanceof r.c||(0,g.T)(V.lift)&&(0,g.T)(V.subscribe))}},9858:(Dt,ve,_)=>{"use strict";_.d(ve,{y:()=>g});var r=_(8071);function g(R){return(0,r.T)(R?.then)}},5196:(Dt,ve,_)=>{"use strict";_.d(ve,{C:()=>R,U:()=>V});var r=_(1635),g=_(8071);function R(U){return(0,r.AQ)(this,arguments,function*(){const P=U.getReader();try{for(;;){const{value:b,done:C}=yield(0,r.N3)(P.read());if(C)return yield(0,r.N3)(void 0);yield yield(0,r.N3)(b)}}finally{P.releaseLock()}})}function V(U){return(0,g.T)(U?.getReader)}},9470:(Dt,ve,_)=>{"use strict";_.d(ve,{m:()=>g});var r=_(8071);function g(R){return R&&(0,r.T)(R.schedule)}},9974:(Dt,ve,_)=>{"use strict";_.d(ve,{N:()=>R,S:()=>g});var r=_(8071);function g(V){return(0,r.T)(V?.lift)}function R(V){return U=>{if(g(U))return U.lift(function(H){try{return V(H,this)}catch(P){this.error(P)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Dt,ve,_)=>{"use strict";_.d(ve,{I:()=>V});var r=_(6354);const{isArray:g}=Array;function V(U){return(0,r.T)(H=>function R(U,H){return g(H)?U(...H):U(H)}(U,H))}},5343:(Dt,ve,_)=>{"use strict";function r(){}_.d(ve,{l:()=>r})},1203:(Dt,ve,_)=>{"use strict";_.d(ve,{F:()=>g,m:()=>R});var r=_(3669);function g(...V){return R(V)}function R(V){return 0===V.length?r.D:1===V.length?V[0]:function(H){return V.reduce((P,b)=>b(P),H)}}},5334:(Dt,ve,_)=>{"use strict";_.d(ve,{m:()=>R});var r=_(1026),g=_(9270);function R(V){g.f.setTimeout(()=>{const{onUnhandledError:U}=r.$;if(!U)throw V;U(V)})}},591:(Dt,ve,_)=>{"use strict";function r(g){return new TypeError(`You provided ${null!==g&&"object"==typeof g?"an invalid object":`'${g}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}_.d(ve,{L:()=>r})},9969:(Dt,ve,_)=>{"use strict";_.d(ve,{FX:()=>q,If:()=>r,K2:()=>H,hZ:()=>R,i0:()=>V,iF:()=>P,kY:()=>S,kp:()=>g,sf:()=>W,ui:()=>Y,wk:()=>b});var r=function(ee){return ee[ee.State=0]="State",ee[ee.Transition=1]="Transition",ee[ee.Sequence=2]="Sequence",ee[ee.Group=3]="Group",ee[ee.Animate=4]="Animate",ee[ee.Keyframes=5]="Keyframes",ee[ee.Style=6]="Style",ee[ee.Trigger=7]="Trigger",ee[ee.Reference=8]="Reference",ee[ee.AnimateChild=9]="AnimateChild",ee[ee.AnimateRef=10]="AnimateRef",ee[ee.Query=11]="Query",ee[ee.Stagger=12]="Stagger",ee}(r||{});const g="*";function R(ee,Q){return{type:r.Trigger,name:ee,definitions:Q,options:{}}}function V(ee,Q=null){return{type:r.Animate,styles:Q,timings:ee}}function H(ee,Q=null){return{type:r.Sequence,steps:ee,options:Q}}function P(ee){return{type:r.Style,styles:ee,offset:null}}function b(ee,Q,be){return{type:r.State,name:ee,styles:Q,options:be}}function S(ee,Q,be=null){return{type:r.Transition,expr:ee,animation:Q,options:be}}class W{constructor(Q=0,be=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Q+be}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Q=>Q()),this._onDoneFns=[])}onStart(Q){this._originalOnStartFns.push(Q),this._onStartFns.push(Q)}onDone(Q){this._originalOnDoneFns.push(Q),this._onDoneFns.push(Q)}onDestroy(Q){this._onDestroyFns.push(Q)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Q=>Q()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Q=>Q()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Q){this._position=this.totalTime?Q*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Q){const be="start"==Q?this._onStartFns:this._onDoneFns;be.forEach(we=>we()),be.length=0}}class Y{constructor(Q){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Q;let be=0,we=0,Ze=0;const Ue=this.players.length;0==Ue?queueMicrotask(()=>this._onFinish()):this.players.forEach(Le=>{Le.onDone(()=>{++be==Ue&&this._onFinish()}),Le.onDestroy(()=>{++we==Ue&&this._onDestroy()}),Le.onStart(()=>{++Ze==Ue&&this._onStart()})}),this.totalTime=this.players.reduce((Le,_e)=>Math.max(Le,_e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Q=>Q()),this._onDoneFns=[])}init(){this.players.forEach(Q=>Q.init())}onStart(Q){this._onStartFns.push(Q)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Q=>Q()),this._onStartFns=[])}onDone(Q){this._onDoneFns.push(Q)}onDestroy(Q){this._onDestroyFns.push(Q)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Q=>Q.play())}pause(){this.players.forEach(Q=>Q.pause())}restart(){this.players.forEach(Q=>Q.restart())}finish(){this._onFinish(),this.players.forEach(Q=>Q.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Q=>Q.destroy()),this._onDestroyFns.forEach(Q=>Q()),this._onDestroyFns=[])}reset(){this.players.forEach(Q=>Q.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Q){const be=Q*this.totalTime;this.players.forEach(we=>{const Ze=we.totalTime?Math.min(1,be/we.totalTime):1;we.setPosition(Ze)})}getPosition(){const Q=this.players.reduce((be,we)=>null===be||we.totalTime>be.totalTime?we:be,null);return null!=Q?Q.getPosition():0}beforeDestroy(){this.players.forEach(Q=>{Q.beforeDestroy&&Q.beforeDestroy()})}triggerCallback(Q){const be="start"==Q?this._onStartFns:this._onDoneFns;be.forEach(we=>we()),be.length=0}}const q="!"},177:(Dt,ve,_)=>{"use strict";_.d(ve,{AJ:()=>ji,B3:()=>un,Jj:()=>ke,MD:()=>Hi,N0:()=>ro,Pc:()=>Kt,QT:()=>R,QX:()=>Xr,Sm:()=>k,Sq:()=>xe,T3:()=>nt,UE:()=>Zr,VF:()=>U,Vy:()=>xo,XO:()=>Le,Xr:()=>Jo,YU:()=>yt,Yq:()=>yn,ZD:()=>V,_b:()=>Ke,aZ:()=>K,bT:()=>je,cH:()=>ee,fw:()=>D,hb:()=>x,hj:()=>C,kB:()=>m,oV:()=>q,qQ:()=>P,tL:()=>_e,vh:()=>Zn});var r=_(4438);let g=null;function R(){return g}function V(L){g??=L}class U{}const P=new r.nKC("");let b=(()=>{class L{historyGo(J){throw new Error("")}static#e=this.\u0275fac=function(fe){return new(fe||L)};static#t=this.\u0275prov=r.jDH({token:L,factory:()=>(0,r.WQX)(S),providedIn:"platform"})}return L})();const C=new r.nKC("");let S=(()=>{class L extends b{constructor(){super(),this._doc=(0,r.WQX)(P),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return R().getBaseHref(this._doc)}onPopState(J){const fe=R().getGlobalEventTarget(this._doc,"window");return fe.addEventListener("popstate",J,!1),()=>fe.removeEventListener("popstate",J)}onHashChange(J){const fe=R().getGlobalEventTarget(this._doc,"window");return fe.addEventListener("hashchange",J,!1),()=>fe.removeEventListener("hashchange",J)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(J){this._location.pathname=J}pushState(J,fe,Ve){this._history.pushState(J,fe,Ve)}replaceState(J,fe,Ve){this._history.replaceState(J,fe,Ve)}forward(){this._history.forward()}back(){this._history.back()}historyGo(J=0){this._history.go(J)}getState(){return this._history.state}static#e=this.\u0275fac=function(fe){return new(fe||L)};static#t=this.\u0275prov=r.jDH({token:L,factory:()=>new L,providedIn:"platform"})}return L})();function I(L,ye){if(0==L.length)return ye;if(0==ye.length)return L;let J=0;return L.endsWith("/")&&J++,ye.startsWith("/")&&J++,2==J?L+ye.substring(1):1==J?L+ye:L+"/"+ye}function B(L){const ye=L.match(/#|\?|$/),J=ye&&ye.index||L.length;return L.slice(0,J-("/"===L[J-1]?1:0))+L.slice(J)}function G(L){return L&&"?"!==L[0]?"?"+L:L}let x=(()=>{class L{historyGo(J){throw new Error("")}static#e=this.\u0275fac=function(fe){return new(fe||L)};static#t=this.\u0275prov=r.jDH({token:L,factory:()=>(0,r.WQX)(k),providedIn:"root"})}return L})();const m=new r.nKC("");let k=(()=>{class L extends x{constructor(J,fe){super(),this._platformLocation=J,this._removeListenerFns=[],this._baseHref=fe??this._platformLocation.getBaseHrefFromDOM()??(0,r.WQX)(P).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(J){this._removeListenerFns.push(this._platformLocation.onPopState(J),this._platformLocation.onHashChange(J))}getBaseHref(){return this._baseHref}prepareExternalUrl(J){return I(this._baseHref,J)}path(J=!1){const fe=this._platformLocation.pathname+G(this._platformLocation.search),Ve=this._platformLocation.hash;return Ve&&J?`${fe}${Ve}`:fe}pushState(J,fe,Ve,_t){const Nt=this.prepareExternalUrl(Ve+G(_t));this._platformLocation.pushState(J,fe,Nt)}replaceState(J,fe,Ve,_t){const Nt=this.prepareExternalUrl(Ve+G(_t));this._platformLocation.replaceState(J,fe,Nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(J=0){this._platformLocation.historyGo?.(J)}static#e=this.\u0275fac=function(fe){return new(fe||L)(r.KVO(b),r.KVO(m,8))};static#t=this.\u0275prov=r.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})(),D=(()=>{class L extends x{constructor(J,fe){super(),this._platformLocation=J,this._baseHref="",this._removeListenerFns=[],null!=fe&&(this._baseHref=fe)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(J){this._removeListenerFns.push(this._platformLocation.onPopState(J),this._platformLocation.onHashChange(J))}getBaseHref(){return this._baseHref}path(J=!1){const fe=this._platformLocation.hash??"#";return fe.length>0?fe.substring(1):fe}prepareExternalUrl(J){const fe=I(this._baseHref,J);return fe.length>0?"#"+fe:fe}pushState(J,fe,Ve,_t){let Nt=this.prepareExternalUrl(Ve+G(_t));0==Nt.length&&(Nt=this._platformLocation.pathname),this._platformLocation.pushState(J,fe,Nt)}replaceState(J,fe,Ve,_t){let Nt=this.prepareExternalUrl(Ve+G(_t));0==Nt.length&&(Nt=this._platformLocation.pathname),this._platformLocation.replaceState(J,fe,Nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(J=0){this._platformLocation.historyGo?.(J)}static#e=this.\u0275fac=function(fe){return new(fe||L)(r.KVO(b),r.KVO(m,8))};static#t=this.\u0275prov=r.jDH({token:L,factory:L.\u0275fac})}return L})(),K=(()=>{class L{constructor(J){this._subject=new r.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=J;const fe=this._locationStrategy.getBaseHref();this._basePath=function se(L){if(new RegExp("^(https?:)?//").test(L)){const[,J]=L.split(/\/\/[^\/]+/);return J}return L}(B(te(fe))),this._locationStrategy.onPopState(Ve=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ve.state,type:Ve.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(J=!1){return this.normalize(this._locationStrategy.path(J))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(J,fe=""){return this.path()==this.normalize(J+G(fe))}normalize(J){return L.stripTrailingSlash(function ie(L,ye){if(!L||!ye.startsWith(L))return ye;const J=ye.substring(L.length);return""===J||["/",";","?","#"].includes(J[0])?J:ye}(this._basePath,te(J)))}prepareExternalUrl(J){return J&&"/"!==J[0]&&(J="/"+J),this._locationStrategy.prepareExternalUrl(J)}go(J,fe="",Ve=null){this._locationStrategy.pushState(Ve,"",J,fe),this._notifyUrlChangeListeners(this.prepareExternalUrl(J+G(fe)),Ve)}replaceState(J,fe="",Ve=null){this._locationStrategy.replaceState(Ve,"",J,fe),this._notifyUrlChangeListeners(this.prepareExternalUrl(J+G(fe)),Ve)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(J=0){this._locationStrategy.historyGo?.(J)}onUrlChange(J){return this._urlChangeListeners.push(J),this._urlChangeSubscription??=this.subscribe(fe=>{this._notifyUrlChangeListeners(fe.url,fe.state)}),()=>{const fe=this._urlChangeListeners.indexOf(J);this._urlChangeListeners.splice(fe,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(J="",fe){this._urlChangeListeners.forEach(Ve=>Ve(J,fe))}subscribe(J,fe,Ve){return this._subject.subscribe({next:J,error:fe,complete:Ve})}static#e=this.normalizeQueryParams=G;static#t=this.joinWithSlash=I;static#n=this.stripTrailingSlash=B;static#r=this.\u0275fac=function(fe){return new(fe||L)(r.KVO(x))};static#i=this.\u0275prov=r.jDH({token:L,factory:()=>function de(){return new K((0,r.KVO)(x))}(),providedIn:"root"})}return L})();function te(L){return L.replace(/\/index.html$/,"")}var W=function(L){return L[L.Decimal=0]="Decimal",L[L.Percent=1]="Percent",L[L.Currency=2]="Currency",L[L.Scientific=3]="Scientific",L}(W||{}),q=function(L){return L[L.Format=0]="Format",L[L.Standalone=1]="Standalone",L}(q||{}),ee=function(L){return L[L.Narrow=0]="Narrow",L[L.Abbreviated=1]="Abbreviated",L[L.Wide=2]="Wide",L[L.Short=3]="Short",L}(ee||{}),Q=function(L){return L[L.Short=0]="Short",L[L.Medium=1]="Medium",L[L.Long=2]="Long",L[L.Full=3]="Full",L}(Q||{});const be={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Le(L,ye,J){const fe=(0,r.H5H)(L),_t=Xe([fe[r.KH2.DaysFormat],fe[r.KH2.DaysStandalone]],ye);return Xe(_t,J)}function _e(L,ye,J){const fe=(0,r.H5H)(L),_t=Xe([fe[r.KH2.MonthsFormat],fe[r.KH2.MonthsStandalone]],ye);return Xe(_t,J)}function ge(L,ye){return Xe((0,r.H5H)(L)[r.KH2.DateFormat],ye)}function pe(L,ye){return Xe((0,r.H5H)(L)[r.KH2.TimeFormat],ye)}function Ae(L,ye){return Xe((0,r.H5H)(L)[r.KH2.DateTimeFormat],ye)}function Pe(L,ye){const J=(0,r.H5H)(L),fe=J[r.KH2.NumberSymbols][ye];if(typeof fe>"u"){if(ye===be.CurrencyDecimal)return J[r.KH2.NumberSymbols][be.Decimal];if(ye===be.CurrencyGroup)return J[r.KH2.NumberSymbols][be.Group]}return fe}function ct(L){if(!L[r.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${L[r.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Xe(L,ye){for(let J=ye;J>-1;J--)if(typeof L[J]<"u")return L[J];throw new Error("Locale data API: locale data undefined")}function wt(L){const[ye,J]=L.split(":");return{hours:+ye,minutes:+J}}const tn=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,qt={},Fn=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Nn=function(L){return L[L.Short=0]="Short",L[L.ShortGMT=1]="ShortGMT",L[L.Long=2]="Long",L[L.Extended=3]="Extended",L}(Nn||{}),Ht=function(L){return L[L.FullYear=0]="FullYear",L[L.Month=1]="Month",L[L.Date=2]="Date",L[L.Hours=3]="Hours",L[L.Minutes=4]="Minutes",L[L.Seconds=5]="Seconds",L[L.FractionalSeconds=6]="FractionalSeconds",L[L.Day=7]="Day",L}(Ht||{}),jt=function(L){return L[L.DayPeriods=0]="DayPeriods",L[L.Days=1]="Days",L[L.Months=2]="Months",L[L.Eras=3]="Eras",L}(jt||{});function yn(L,ye,J,fe){let Ve=function Zt(L){if(In(L))return L;if("number"==typeof L&&!isNaN(L))return new Date(L);if("string"==typeof L){if(L=L.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(L)){const[Ve,_t=1,Nt=1]=L.split("-").map(sn=>+sn);return Ln(Ve,_t-1,Nt)}const J=parseFloat(L);if(!isNaN(L-J))return new Date(J);let fe;if(fe=L.match(tn))return function Dn(L){const ye=new Date(0);let J=0,fe=0;const Ve=L[8]?ye.setUTCFullYear:ye.setFullYear,_t=L[8]?ye.setUTCHours:ye.setHours;L[9]&&(J=Number(L[9]+L[10]),fe=Number(L[9]+L[11])),Ve.call(ye,Number(L[1]),Number(L[2])-1,Number(L[3]));const Nt=Number(L[4]||0)-J,sn=Number(L[5]||0)-fe,kr=Number(L[6]||0),Tr=Math.floor(1e3*parseFloat("0."+(L[7]||0)));return _t.call(ye,Nt,sn,kr,Tr),ye}(fe)}const ye=new Date(L);if(!In(ye))throw new Error(`Unable to convert "${L}" into a date`);return ye}(L);ye=mn(J,ye)||ye;let sn,Nt=[];for(;ye;){if(sn=Fn.exec(ye),!sn){Nt.push(ye);break}{Nt=Nt.concat(sn.slice(1));const Or=Nt.pop();if(!Or)break;ye=Or}}let kr=Ve.getTimezoneOffset();fe&&(kr=Ye(fe,kr),Ve=function Lt(L,ye,J){const fe=J?-1:1,Ve=L.getTimezoneOffset();return function bt(L,ye){return(L=new Date(L.getTime())).setMinutes(L.getMinutes()+ye),L}(L,fe*(Ye(ye,Ve)-Ve))}(Ve,fe,!0));let Tr="";return Nt.forEach(Or=>{const Un=function He(L){if(ot[L])return ot[L];let ye;switch(L){case"G":case"GG":case"GGG":ye=bn(jt.Eras,ee.Abbreviated);break;case"GGGG":ye=bn(jt.Eras,ee.Wide);break;case"GGGGG":ye=bn(jt.Eras,ee.Narrow);break;case"y":ye=hn(Ht.FullYear,1,0,!1,!0);break;case"yy":ye=hn(Ht.FullYear,2,0,!0,!0);break;case"yyy":ye=hn(Ht.FullYear,3,0,!1,!0);break;case"yyyy":ye=hn(Ht.FullYear,4,0,!1,!0);break;case"Y":ye=qe(1);break;case"YY":ye=qe(2,!0);break;case"YYY":ye=qe(3);break;case"YYYY":ye=qe(4);break;case"M":case"L":ye=hn(Ht.Month,1,1);break;case"MM":case"LL":ye=hn(Ht.Month,2,1);break;case"MMM":ye=bn(jt.Months,ee.Abbreviated);break;case"MMMM":ye=bn(jt.Months,ee.Wide);break;case"MMMMM":ye=bn(jt.Months,ee.Narrow);break;case"LLL":ye=bn(jt.Months,ee.Abbreviated,q.Standalone);break;case"LLLL":ye=bn(jt.Months,ee.Wide,q.Standalone);break;case"LLLLL":ye=bn(jt.Months,ee.Narrow,q.Standalone);break;case"w":ye=Ar(1);break;case"ww":ye=Ar(2);break;case"W":ye=Ar(1,!0);break;case"d":ye=hn(Ht.Date,1);break;case"dd":ye=hn(Ht.Date,2);break;case"c":case"cc":ye=hn(Ht.Day,1);break;case"ccc":ye=bn(jt.Days,ee.Abbreviated,q.Standalone);break;case"cccc":ye=bn(jt.Days,ee.Wide,q.Standalone);break;case"ccccc":ye=bn(jt.Days,ee.Narrow,q.Standalone);break;case"cccccc":ye=bn(jt.Days,ee.Short,q.Standalone);break;case"E":case"EE":case"EEE":ye=bn(jt.Days,ee.Abbreviated);break;case"EEEE":ye=bn(jt.Days,ee.Wide);break;case"EEEEE":ye=bn(jt.Days,ee.Narrow);break;case"EEEEEE":ye=bn(jt.Days,ee.Short);break;case"a":case"aa":case"aaa":ye=bn(jt.DayPeriods,ee.Abbreviated);break;case"aaaa":ye=bn(jt.DayPeriods,ee.Wide);break;case"aaaaa":ye=bn(jt.DayPeriods,ee.Narrow);break;case"b":case"bb":case"bbb":ye=bn(jt.DayPeriods,ee.Abbreviated,q.Standalone,!0);break;case"bbbb":ye=bn(jt.DayPeriods,ee.Wide,q.Standalone,!0);break;case"bbbbb":ye=bn(jt.DayPeriods,ee.Narrow,q.Standalone,!0);break;case"B":case"BB":case"BBB":ye=bn(jt.DayPeriods,ee.Abbreviated,q.Format,!0);break;case"BBBB":ye=bn(jt.DayPeriods,ee.Wide,q.Format,!0);break;case"BBBBB":ye=bn(jt.DayPeriods,ee.Narrow,q.Format,!0);break;case"h":ye=hn(Ht.Hours,1,-12);break;case"hh":ye=hn(Ht.Hours,2,-12);break;case"H":ye=hn(Ht.Hours,1);break;case"HH":ye=hn(Ht.Hours,2);break;case"m":ye=hn(Ht.Minutes,1);break;case"mm":ye=hn(Ht.Minutes,2);break;case"s":ye=hn(Ht.Seconds,1);break;case"ss":ye=hn(Ht.Seconds,2);break;case"S":ye=hn(Ht.FractionalSeconds,1);break;case"SS":ye=hn(Ht.FractionalSeconds,2);break;case"SSS":ye=hn(Ht.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ye=_n(Nn.Short);break;case"ZZZZZ":ye=_n(Nn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ye=_n(Nn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ye=_n(Nn.Long);break;default:return null}return ot[L]=ye,ye}(Or);Tr+=Un?Un(Ve,J,kr):"''"===Or?"'":Or.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Tr}function Ln(L,ye,J){const fe=new Date(0);return fe.setFullYear(L,ye,J),fe.setHours(0,0,0),fe}function mn(L,ye){const J=function Ze(L){return(0,r.H5H)(L)[r.KH2.LocaleId]}(L);if(qt[J]??={},qt[J][ye])return qt[J][ye];let fe="";switch(ye){case"shortDate":fe=ge(L,Q.Short);break;case"mediumDate":fe=ge(L,Q.Medium);break;case"longDate":fe=ge(L,Q.Long);break;case"fullDate":fe=ge(L,Q.Full);break;case"shortTime":fe=pe(L,Q.Short);break;case"mediumTime":fe=pe(L,Q.Medium);break;case"longTime":fe=pe(L,Q.Long);break;case"fullTime":fe=pe(L,Q.Full);break;case"short":const Ve=mn(L,"shortTime"),_t=mn(L,"shortDate");fe=Fr(Ae(L,Q.Short),[Ve,_t]);break;case"medium":const Nt=mn(L,"mediumTime"),sn=mn(L,"mediumDate");fe=Fr(Ae(L,Q.Medium),[Nt,sn]);break;case"long":const kr=mn(L,"longTime"),Tr=mn(L,"longDate");fe=Fr(Ae(L,Q.Long),[kr,Tr]);break;case"full":const Or=mn(L,"fullTime"),Un=mn(L,"fullDate");fe=Fr(Ae(L,Q.Full),[Or,Un])}return fe&&(qt[J][ye]=fe),fe}function Fr(L,ye){return ye&&(L=L.replace(/\{([^}]+)}/g,function(J,fe){return null!=ye&&fe in ye?ye[fe]:J})),L}function lr(L,ye,J="-",fe,Ve){let _t="";(L<0||Ve&&L<=0)&&(Ve?L=1-L:(L=-L,_t=J));let Nt=String(L);for(;Nt.length<ye;)Nt="0"+Nt;return fe&&(Nt=Nt.slice(Nt.length-ye)),_t+Nt}function hn(L,ye,J=0,fe=!1,Ve=!1){return function(_t,Nt){let sn=function yr(L,ye){switch(L){case Ht.FullYear:return ye.getFullYear();case Ht.Month:return ye.getMonth();case Ht.Date:return ye.getDate();case Ht.Hours:return ye.getHours();case Ht.Minutes:return ye.getMinutes();case Ht.Seconds:return ye.getSeconds();case Ht.FractionalSeconds:return ye.getMilliseconds();case Ht.Day:return ye.getDay();default:throw new Error(`Unknown DateType value "${L}".`)}}(L,_t);if((J>0||sn>-J)&&(sn+=J),L===Ht.Hours)0===sn&&-12===J&&(sn=12);else if(L===Ht.FractionalSeconds)return function bi(L,ye){return lr(L,3).substring(0,ye)}(sn,ye);const kr=Pe(Nt,be.MinusSign);return lr(sn,ye,kr,fe,Ve)}}function bn(L,ye,J=q.Format,fe=!1){return function(Ve,_t){return function Tn(L,ye,J,fe,Ve,_t){switch(J){case jt.Months:return _e(ye,Ve,fe)[L.getMonth()];case jt.Days:return Le(ye,Ve,fe)[L.getDay()];case jt.DayPeriods:const Nt=L.getHours(),sn=L.getMinutes();if(_t){const Tr=function St(L){const ye=(0,r.H5H)(L);return ct(ye),(ye[r.KH2.ExtraData][2]||[]).map(fe=>"string"==typeof fe?wt(fe):[wt(fe[0]),wt(fe[1])])}(ye),Or=function Gt(L,ye,J){const fe=(0,r.H5H)(L);ct(fe);const _t=Xe([fe[r.KH2.ExtraData][0],fe[r.KH2.ExtraData][1]],ye)||[];return Xe(_t,J)||[]}(ye,Ve,fe),Un=Tr.findIndex(jr=>{if(Array.isArray(jr)){const[cr,ti]=jr,sr=Nt>=cr.hours&&sn>=cr.minutes,kt=Nt<ti.hours||Nt===ti.hours&&sn<ti.minutes;if(cr.hours<ti.hours){if(sr&&kt)return!0}else if(sr||kt)return!0}else if(jr.hours===Nt&&jr.minutes===sn)return!0;return!1});if(-1!==Un)return Or[Un]}return function Ue(L,ye,J){const fe=(0,r.H5H)(L),_t=Xe([fe[r.KH2.DayPeriodsFormat],fe[r.KH2.DayPeriodsStandalone]],ye);return Xe(_t,J)}(ye,Ve,fe)[Nt<12?0:1];case jt.Eras:return function Re(L,ye){return Xe((0,r.H5H)(L)[r.KH2.Eras],ye)}(ye,fe)[L.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${J}`)}}(Ve,_t,L,ye,J,fe)}}function _n(L){return function(ye,J,fe){const Ve=-1*fe,_t=Pe(J,be.MinusSign),Nt=Ve>0?Math.floor(Ve/60):Math.ceil(Ve/60);switch(L){case Nn.Short:return(Ve>=0?"+":"")+lr(Nt,2,_t)+lr(Math.abs(Ve%60),2,_t);case Nn.ShortGMT:return"GMT"+(Ve>=0?"+":"")+lr(Nt,1,_t);case Nn.Long:return"GMT"+(Ve>=0?"+":"")+lr(Nt,2,_t)+":"+lr(Math.abs(Ve%60),2,_t);case Nn.Extended:return 0===fe?"Z":(Ve>=0?"+":"")+lr(Nt,2,_t)+":"+lr(Math.abs(Ve%60),2,_t);default:throw new Error(`Unknown zone width "${L}"`)}}}const Bn=0,jn=4;function Rr(L){const ye=L.getDay(),J=0===ye?-3:jn-ye;return Ln(L.getFullYear(),L.getMonth(),L.getDate()+J)}function Ar(L,ye=!1){return function(J,fe){let Ve;if(ye){const _t=new Date(J.getFullYear(),J.getMonth(),1).getDay()-1,Nt=J.getDate();Ve=1+Math.floor((Nt+_t)/7)}else{const _t=Rr(J),Nt=function Jn(L){const ye=Ln(L,Bn,1).getDay();return Ln(L,0,1+(ye<=jn?jn:jn+7)-ye)}(_t.getFullYear()),sn=_t.getTime()-Nt.getTime();Ve=1+Math.round(sn/6048e5)}return lr(Ve,L,Pe(fe,be.MinusSign))}}function qe(L,ye=!1){return function(J,fe){return lr(Rr(J).getFullYear(),L,Pe(fe,be.MinusSign),ye)}}const ot={};function Ye(L,ye){L=L.replace(/:/g,"");const J=Date.parse("Jan 01, 1970 00:00:00 "+L)/6e4;return isNaN(J)?ye:J}function In(L){return L instanceof Date&&!isNaN(L.valueOf())}const nr=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Pr(L){const ye=parseInt(L);if(isNaN(ye))throw new Error("Invalid integer literal when parsing "+L);return ye}function Ke(L,ye){ye=encodeURIComponent(ye);for(const J of L.split(";")){const fe=J.indexOf("="),[Ve,_t]=-1==fe?[J,""]:[J.slice(0,fe),J.slice(fe+1)];if(Ve.trim()===ye)return decodeURIComponent(_t)}return null}const ze=/\s+/,Tt=[];let yt=(()=>{class L{constructor(J,fe){this._ngEl=J,this._renderer=fe,this.initialClasses=Tt,this.stateMap=new Map}set klass(J){this.initialClasses=null!=J?J.trim().split(ze):Tt}set ngClass(J){this.rawClass="string"==typeof J?J.trim().split(ze):J}ngDoCheck(){for(const fe of this.initialClasses)this._updateState(fe,!0);const J=this.rawClass;if(Array.isArray(J)||J instanceof Set)for(const fe of J)this._updateState(fe,!0);else if(null!=J)for(const fe of Object.keys(J))this._updateState(fe,!!J[fe]);this._applyStateDiff()}_updateState(J,fe){const Ve=this.stateMap.get(J);void 0!==Ve?(Ve.enabled!==fe&&(Ve.changed=!0,Ve.enabled=fe),Ve.touched=!0):this.stateMap.set(J,{enabled:fe,changed:!0,touched:!0})}_applyStateDiff(){for(const J of this.stateMap){const fe=J[0],Ve=J[1];Ve.changed?(this._toggleClass(fe,Ve.enabled),Ve.changed=!1):Ve.touched||(Ve.enabled&&this._toggleClass(fe,!1),this.stateMap.delete(fe)),Ve.touched=!1}}_toggleClass(J,fe){(J=J.trim()).length>0&&J.split(ze).forEach(Ve=>{fe?this._renderer.addClass(this._ngEl.nativeElement,Ve):this._renderer.removeClass(this._ngEl.nativeElement,Ve)})}static#e=this.\u0275fac=function(fe){return new(fe||L)(r.rXU(r.aKT),r.rXU(r.sFG))};static#t=this.\u0275dir=r.FsC({type:L,selectors:[["","ngClass",""]],inputs:{klass:[r.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return L})();class Be{constructor(ye,J,fe,Ve){this.$implicit=ye,this.ngForOf=J,this.index=fe,this.count=Ve}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let xe=(()=>{class L{set ngForOf(J){this._ngForOf=J,this._ngForOfDirty=!0}set ngForTrackBy(J){this._trackByFn=J}get ngForTrackBy(){return this._trackByFn}constructor(J,fe,Ve){this._viewContainer=J,this._template=fe,this._differs=Ve,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(J){J&&(this._template=J)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const J=this._ngForOf;!this._differ&&J&&(this._differ=this._differs.find(J).create(this.ngForTrackBy))}if(this._differ){const J=this._differ.diff(this._ngForOf);J&&this._applyChanges(J)}}_applyChanges(J){const fe=this._viewContainer;J.forEachOperation((Ve,_t,Nt)=>{if(null==Ve.previousIndex)fe.createEmbeddedView(this._template,new Be(Ve.item,this._ngForOf,-1,-1),null===Nt?void 0:Nt);else if(null==Nt)fe.remove(null===_t?void 0:_t);else if(null!==_t){const sn=fe.get(_t);fe.move(sn,Nt),Z(sn,Ve)}});for(let Ve=0,_t=fe.length;Ve<_t;Ve++){const sn=fe.get(Ve).context;sn.index=Ve,sn.count=_t,sn.ngForOf=this._ngForOf}J.forEachIdentityChange(Ve=>{Z(fe.get(Ve.currentIndex),Ve)})}static ngTemplateContextGuard(J,fe){return!0}static#e=this.\u0275fac=function(fe){return new(fe||L)(r.rXU(r.c1b),r.rXU(r.C4Q),r.rXU(r._q3))};static#t=this.\u0275dir=r.FsC({type:L,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return L})();function Z(L,ye){L.context.$implicit=ye.item}let je=(()=>{class L{constructor(J,fe){this._viewContainer=J,this._context=new pt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=fe}set ngIf(J){this._context.$implicit=this._context.ngIf=J,this._updateView()}set ngIfThen(J){Rt("ngIfThen",J),this._thenTemplateRef=J,this._thenViewRef=null,this._updateView()}set ngIfElse(J){Rt("ngIfElse",J),this._elseTemplateRef=J,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(J,fe){return!0}static#e=this.\u0275fac=function(fe){return new(fe||L)(r.rXU(r.c1b),r.rXU(r.C4Q))};static#t=this.\u0275dir=r.FsC({type:L,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return L})();class pt{constructor(){this.$implicit=null,this.ngIf=null}}function Rt(L,ye){if(ye&&!ye.createEmbeddedView)throw new Error(`${L} must be a TemplateRef, but received '${(0,r.Tbb)(ye)}'.`)}let un=(()=>{class L{constructor(J,fe,Ve){this._ngEl=J,this._differs=fe,this._renderer=Ve,this._ngStyle=null,this._differ=null}set ngStyle(J){this._ngStyle=J,!this._differ&&J&&(this._differ=this._differs.find(J).create())}ngDoCheck(){if(this._differ){const J=this._differ.diff(this._ngStyle);J&&this._applyChanges(J)}}_setStyle(J,fe){const[Ve,_t]=J.split("."),Nt=-1===Ve.indexOf("-")?void 0:r.czy.DashCase;null!=fe?this._renderer.setStyle(this._ngEl.nativeElement,Ve,_t?`${fe}${_t}`:fe,Nt):this._renderer.removeStyle(this._ngEl.nativeElement,Ve,Nt)}_applyChanges(J){J.forEachRemovedItem(fe=>this._setStyle(fe.key,null)),J.forEachAddedItem(fe=>this._setStyle(fe.key,fe.currentValue)),J.forEachChangedItem(fe=>this._setStyle(fe.key,fe.currentValue))}static#e=this.\u0275fac=function(fe){return new(fe||L)(r.rXU(r.aKT),r.rXU(r.MKu),r.rXU(r.sFG))};static#t=this.\u0275dir=r.FsC({type:L,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return L})(),nt=(()=>{class L{constructor(J){this._viewContainerRef=J,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(J){if(this._shouldRecreateView(J)){const fe=this._viewContainerRef;if(this._viewRef&&fe.remove(fe.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Ve=this._createContextForwardProxy();this._viewRef=fe.createEmbeddedView(this.ngTemplateOutlet,Ve,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(J){return!!J.ngTemplateOutlet||!!J.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(J,fe,Ve)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,fe,Ve),get:(J,fe,Ve)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,fe,Ve)}})}static#e=this.\u0275fac=function(fe){return new(fe||L)(r.rXU(r.c1b))};static#t=this.\u0275dir=r.FsC({type:L,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[r.OA$]})}return L})();function u(L,ye){return new r.wOt(2100,!1)}class T{createSubscription(ye,J){return(0,r.O8t)(()=>ye.subscribe({next:J,error:fe=>{throw fe}}))}dispose(ye){(0,r.O8t)(()=>ye.unsubscribe())}}class X{createSubscription(ye,J){return ye.then(J,fe=>{throw fe})}dispose(ye){}}const he=new X,Ce=new T;let ke=(()=>{class L{constructor(J){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=J}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(J){if(!this._obj){if(J)try{this.markForCheckOnValueUpdate=!1,this._subscribe(J)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return J!==this._obj?(this._dispose(),this.transform(J)):this._latestValue}_subscribe(J){this._obj=J,this._strategy=this._selectStrategy(J),this._subscription=this._strategy.createSubscription(J,fe=>this._updateLatestValue(J,fe))}_selectStrategy(J){if((0,r.jNT)(J))return he;if((0,r.zjR)(J))return Ce;throw u()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(J,fe){J===this._obj&&(this._latestValue=fe,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(fe){return new(fe||L)(r.rXU(r.gRc,16))};static#t=this.\u0275pipe=r.EJ8({name:"async",type:L,pure:!1,standalone:!0})}return L})(),Kt=(()=>{class L{transform(J){if(null==J)return null;if("string"!=typeof J)throw u();return J.toUpperCase()}static#e=this.\u0275fac=function(fe){return new(fe||L)};static#t=this.\u0275pipe=r.EJ8({name:"uppercase",type:L,pure:!0,standalone:!0})}return L})();const An=new r.nKC(""),Qn=new r.nKC("");let Zn=(()=>{class L{constructor(J,fe,Ve){this.locale=J,this.defaultTimezone=fe,this.defaultOptions=Ve}transform(J,fe,Ve,_t){if(null==J||""===J||J!=J)return null;try{return yn(J,fe??this.defaultOptions?.dateFormat??"mediumDate",_t||this.locale,Ve??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Nt){throw u()}}static#e=this.\u0275fac=function(fe){return new(fe||L)(r.rXU(r.xe9,16),r.rXU(An,24),r.rXU(Qn,24))};static#t=this.\u0275pipe=r.EJ8({name:"date",type:L,pure:!0,standalone:!0})}return L})(),Xr=(()=>{class L{constructor(J){this._locale=J}transform(J,fe,Ve){if(!function Jr(L){return!(null==L||""===L||L!=L)}(J))return null;Ve||=this._locale;try{return function _r(L,ye,J){return function qr(L,ye,J,fe,Ve,_t,Nt=!1){let sn="",kr=!1;if(isFinite(L)){let Tr=function dr(L){let fe,Ve,_t,Nt,sn,ye=Math.abs(L)+"",J=0;for((Ve=ye.indexOf("."))>-1&&(ye=ye.replace(".","")),(_t=ye.search(/e/i))>0?(Ve<0&&(Ve=_t),Ve+=+ye.slice(_t+1),ye=ye.substring(0,_t)):Ve<0&&(Ve=ye.length),_t=0;"0"===ye.charAt(_t);_t++);if(_t===(sn=ye.length))fe=[0],Ve=1;else{for(sn--;"0"===ye.charAt(sn);)sn--;for(Ve-=_t,fe=[],Nt=0;_t<=sn;_t++,Nt++)fe[Nt]=Number(ye.charAt(_t))}return Ve>22&&(fe=fe.splice(0,21),J=Ve-1,Ve=1),{digits:fe,exponent:J,integerLen:Ve}}(L);Nt&&(Tr=function di(L){if(0===L.digits[0])return L;const ye=L.digits.length-L.integerLen;return L.exponent?L.exponent+=2:(0===ye?L.digits.push(0,0):1===ye&&L.digits.push(0),L.integerLen+=2),L}(Tr));let Or=ye.minInt,Un=ye.minFrac,jr=ye.maxFrac;if(_t){const ur=_t.match(nr);if(null===ur)throw new Error(`${_t} is not a valid digit info`);const yi=ur[1],ni=ur[3],Li=ur[5];null!=yi&&(Or=Pr(yi)),null!=ni&&(Un=Pr(ni)),null!=Li?jr=Pr(Li):null!=ni&&Un>jr&&(jr=Un)}!function gr(L,ye,J){if(ye>J)throw new Error(`The minimum number of digits after fraction (${ye}) is higher than the maximum (${J}).`);let fe=L.digits,Ve=fe.length-L.integerLen;const _t=Math.min(Math.max(ye,Ve),J);let Nt=_t+L.integerLen,sn=fe[Nt];if(Nt>0){fe.splice(Math.max(L.integerLen,Nt));for(let Un=Nt;Un<fe.length;Un++)fe[Un]=0}else{Ve=Math.max(0,Ve),L.integerLen=1,fe.length=Math.max(1,Nt=_t+1),fe[0]=0;for(let Un=1;Un<Nt;Un++)fe[Un]=0}if(sn>=5)if(Nt-1<0){for(let Un=0;Un>Nt;Un--)fe.unshift(0),L.integerLen++;fe.unshift(1),L.integerLen++}else fe[Nt-1]++;for(;Ve<Math.max(0,_t);Ve++)fe.push(0);let kr=0!==_t;const Tr=ye+L.integerLen,Or=fe.reduceRight(function(Un,jr,cr,ti){return ti[cr]=(jr+=Un)<10?jr:jr-10,kr&&(0===ti[cr]&&cr>=Tr?ti.pop():kr=!1),jr>=10?1:0},0);Or&&(fe.unshift(Or),L.integerLen++)}(Tr,Un,jr);let cr=Tr.digits,ti=Tr.integerLen;const sr=Tr.exponent;let kt=[];for(kr=cr.every(ur=>!ur);ti<Or;ti++)cr.unshift(0);for(;ti<0;ti++)cr.unshift(0);ti>0?kt=cr.splice(ti,cr.length):(kt=cr,cr=[0]);const dn=[];for(cr.length>=ye.lgSize&&dn.unshift(cr.splice(-ye.lgSize,cr.length).join(""));cr.length>ye.gSize;)dn.unshift(cr.splice(-ye.gSize,cr.length).join(""));cr.length&&dn.unshift(cr.join("")),sn=dn.join(Pe(J,fe)),kt.length&&(sn+=Pe(J,Ve)+kt.join("")),sr&&(sn+=Pe(J,be.Exponential)+"+"+sr)}else sn=Pe(J,be.Infinity);return sn=L<0&&!kr?ye.negPre+sn+ye.negSuf:ye.posPre+sn+ye.posSuf,sn}(L,function vn(L,ye="-"){const J={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},fe=L.split(";"),Ve=fe[0],_t=fe[1],Nt=-1!==Ve.indexOf(".")?Ve.split("."):[Ve.substring(0,Ve.lastIndexOf("0")+1),Ve.substring(Ve.lastIndexOf("0")+1)],sn=Nt[0],kr=Nt[1]||"";J.posPre=sn.substring(0,sn.indexOf("#"));for(let Or=0;Or<kr.length;Or++){const Un=kr.charAt(Or);"0"===Un?J.minFrac=J.maxFrac=Or+1:"#"===Un?J.maxFrac=Or+1:J.posSuf+=Un}const Tr=sn.split(",");if(J.gSize=Tr[1]?Tr[1].length:0,J.lgSize=Tr[2]||Tr[1]?(Tr[2]||Tr[1]).length:0,_t){const Or=Ve.length-J.posPre.length-J.posSuf.length,Un=_t.indexOf("#");J.negPre=_t.substring(0,Un).replace(/'/g,""),J.negSuf=_t.slice(Un+Or).replace(/'/g,"")}else J.negPre=ye+J.posPre,J.negSuf=J.posSuf;return J}(function We(L,ye){return(0,r.H5H)(L)[r.KH2.NumberFormats][ye]}(ye,W.Decimal),Pe(ye,be.MinusSign)),ye,be.Group,be.Decimal,J)}(function ln(L){if("string"==typeof L&&!isNaN(Number(L)-parseFloat(L)))return Number(L);if("number"!=typeof L)throw new Error(`${L} is not a number`);return L}(J),Ve,fe)}catch(_t){throw u()}}static#e=this.\u0275fac=function(fe){return new(fe||L)(r.rXU(r.xe9,16))};static#t=this.\u0275pipe=r.EJ8({name:"number",type:L,pure:!0,standalone:!0})}return L})();let Hi=(()=>{class L{static#e=this.\u0275fac=function(fe){return new(fe||L)};static#t=this.\u0275mod=r.$C({type:L});static#n=this.\u0275inj=r.G2t({})}return L})();const ji="browser",wo="server";function Zr(L){return L===ji}function xo(L){return L===wo}let Jo=(()=>{class L{static#e=this.\u0275prov=(0,r.jDH)({token:L,providedIn:"root",factory:()=>Zr((0,r.WQX)(r.Agw))?new Lr((0,r.WQX)(P),window):new $o})}return L})();class Lr{constructor(ye,J){this.document=ye,this.window=J,this.offset=()=>[0,0]}setOffset(ye){this.offset=Array.isArray(ye)?()=>ye:ye}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(ye){this.window.scrollTo(ye[0],ye[1])}scrollToAnchor(ye){const J=function gi(L,ye){const J=L.getElementById(ye)||L.getElementsByName(ye)[0];if(J)return J;if("function"==typeof L.createTreeWalker&&L.body&&"function"==typeof L.body.attachShadow){const fe=L.createTreeWalker(L.body,NodeFilter.SHOW_ELEMENT);let Ve=fe.currentNode;for(;Ve;){const _t=Ve.shadowRoot;if(_t){const Nt=_t.getElementById(ye)||_t.querySelector(`[name="${ye}"]`);if(Nt)return Nt}Ve=fe.nextNode()}}return null}(this.document,ye);J&&(this.scrollToElement(J),J.focus())}setHistoryScrollRestoration(ye){this.window.history.scrollRestoration=ye}scrollToElement(ye){const J=ye.getBoundingClientRect(),fe=J.left+this.window.pageXOffset,Ve=J.top+this.window.pageYOffset,_t=this.offset();this.window.scrollTo(fe-_t[0],Ve-_t[1])}}class $o{setOffset(ye){}getScrollPosition(){return[0,0]}scrollToPosition(ye){}scrollToAnchor(ye){}setHistoryScrollRestoration(ye){}}class ro{}},1626:(Dt,ve,_)=>{"use strict";_.d(ve,{Lr:()=>x,Qq:()=>ge,a7:()=>St,q1:()=>Ni}),_(467);var g=_(4438),R=_(7673),V=_(1985),U=_(6648),H=_(274),P=_(5964),b=_(6354),C=_(980),S=_(5558),I=_(177);class B{}class G{}class x{constructor(Ke){this.normalizedNames=new Map,this.lazyUpdate=null,Ke?"string"==typeof Ke?this.lazyInit=()=>{this.headers=new Map,Ke.split("\n").forEach(ze=>{const Tt=ze.indexOf(":");if(Tt>0){const yt=ze.slice(0,Tt),xt=yt.toLowerCase(),Ft=ze.slice(Tt+1).trim();this.maybeSetNormalizedName(yt,xt),this.headers.has(xt)?this.headers.get(xt).push(Ft):this.headers.set(xt,[Ft])}})}:typeof Headers<"u"&&Ke instanceof Headers?(this.headers=new Map,Ke.forEach((ze,Tt)=>{this.setHeaderEntries(Tt,ze)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Ke).forEach(([ze,Tt])=>{this.setHeaderEntries(ze,Tt)})}:this.headers=new Map}has(Ke){return this.init(),this.headers.has(Ke.toLowerCase())}get(Ke){this.init();const ze=this.headers.get(Ke.toLowerCase());return ze&&ze.length>0?ze[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Ke){return this.init(),this.headers.get(Ke.toLowerCase())||null}append(Ke,ze){return this.clone({name:Ke,value:ze,op:"a"})}set(Ke,ze){return this.clone({name:Ke,value:ze,op:"s"})}delete(Ke,ze){return this.clone({name:Ke,value:ze,op:"d"})}maybeSetNormalizedName(Ke,ze){this.normalizedNames.has(ze)||this.normalizedNames.set(ze,Ke)}init(){this.lazyInit&&(this.lazyInit instanceof x?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Ke=>this.applyUpdate(Ke)),this.lazyUpdate=null))}copyFrom(Ke){Ke.init(),Array.from(Ke.headers.keys()).forEach(ze=>{this.headers.set(ze,Ke.headers.get(ze)),this.normalizedNames.set(ze,Ke.normalizedNames.get(ze))})}clone(Ke){const ze=new x;return ze.lazyInit=this.lazyInit&&this.lazyInit instanceof x?this.lazyInit:this,ze.lazyUpdate=(this.lazyUpdate||[]).concat([Ke]),ze}applyUpdate(Ke){const ze=Ke.name.toLowerCase();switch(Ke.op){case"a":case"s":let Tt=Ke.value;if("string"==typeof Tt&&(Tt=[Tt]),0===Tt.length)return;this.maybeSetNormalizedName(Ke.name,ze);const yt=("a"===Ke.op?this.headers.get(ze):void 0)||[];yt.push(...Tt),this.headers.set(ze,yt);break;case"d":const xt=Ke.value;if(xt){let Ft=this.headers.get(ze);if(!Ft)return;Ft=Ft.filter(Be=>-1===xt.indexOf(Be)),0===Ft.length?(this.headers.delete(ze),this.normalizedNames.delete(ze)):this.headers.set(ze,Ft)}else this.headers.delete(ze),this.normalizedNames.delete(ze)}}setHeaderEntries(Ke,ze){const Tt=(Array.isArray(ze)?ze:[ze]).map(xt=>xt.toString()),yt=Ke.toLowerCase();this.headers.set(yt,Tt),this.maybeSetNormalizedName(Ke,yt)}forEach(Ke){this.init(),Array.from(this.normalizedNames.keys()).forEach(ze=>Ke(this.normalizedNames.get(ze),this.headers.get(ze)))}}class k{encodeKey(Ke){return ie(Ke)}encodeValue(Ke){return ie(Ke)}decodeKey(Ke){return decodeURIComponent(Ke)}decodeValue(Ke){return decodeURIComponent(Ke)}}const K=/%(\d[a-f0-9])/gi,de={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ie(Oe){return encodeURIComponent(Oe).replace(K,(Ke,ze)=>de[ze]??Ke)}function te(Oe){return`${Oe}`}class se{constructor(Ke={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Ke.encoder||new k,Ke.fromString){if(Ke.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function D(Oe,Ke){const ze=new Map;return Oe.length>0&&Oe.replace(/^\?/,"").split("&").forEach(yt=>{const xt=yt.indexOf("="),[Ft,Be]=-1==xt?[Ke.decodeKey(yt),""]:[Ke.decodeKey(yt.slice(0,xt)),Ke.decodeValue(yt.slice(xt+1))],xe=ze.get(Ft)||[];xe.push(Be),ze.set(Ft,xe)}),ze}(Ke.fromString,this.encoder)}else Ke.fromObject?(this.map=new Map,Object.keys(Ke.fromObject).forEach(ze=>{const Tt=Ke.fromObject[ze],yt=Array.isArray(Tt)?Tt.map(te):[te(Tt)];this.map.set(ze,yt)})):this.map=null}has(Ke){return this.init(),this.map.has(Ke)}get(Ke){this.init();const ze=this.map.get(Ke);return ze?ze[0]:null}getAll(Ke){return this.init(),this.map.get(Ke)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Ke,ze){return this.clone({param:Ke,value:ze,op:"a"})}appendAll(Ke){const ze=[];return Object.keys(Ke).forEach(Tt=>{const yt=Ke[Tt];Array.isArray(yt)?yt.forEach(xt=>{ze.push({param:Tt,value:xt,op:"a"})}):ze.push({param:Tt,value:yt,op:"a"})}),this.clone(ze)}set(Ke,ze){return this.clone({param:Ke,value:ze,op:"s"})}delete(Ke,ze){return this.clone({param:Ke,value:ze,op:"d"})}toString(){return this.init(),this.keys().map(Ke=>{const ze=this.encoder.encodeKey(Ke);return this.map.get(Ke).map(Tt=>ze+"="+this.encoder.encodeValue(Tt)).join("&")}).filter(Ke=>""!==Ke).join("&")}clone(Ke){const ze=new se({encoder:this.encoder});return ze.cloneFrom=this.cloneFrom||this,ze.updates=(this.updates||[]).concat(Ke),ze}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Ke=>this.map.set(Ke,this.cloneFrom.map.get(Ke))),this.updates.forEach(Ke=>{switch(Ke.op){case"a":case"s":const ze=("a"===Ke.op?this.map.get(Ke.param):void 0)||[];ze.push(te(Ke.value)),this.map.set(Ke.param,ze);break;case"d":if(void 0===Ke.value){this.map.delete(Ke.param);break}{let Tt=this.map.get(Ke.param)||[];const yt=Tt.indexOf(te(Ke.value));-1!==yt&&Tt.splice(yt,1),Tt.length>0?this.map.set(Ke.param,Tt):this.map.delete(Ke.param)}}}),this.cloneFrom=this.updates=null)}}class W{constructor(){this.map=new Map}set(Ke,ze){return this.map.set(Ke,ze),this}get(Ke){return this.map.has(Ke)||this.map.set(Ke,Ke.defaultValue()),this.map.get(Ke)}delete(Ke){return this.map.delete(Ke),this}has(Ke){return this.map.has(Ke)}keys(){return this.map.keys()}}function q(Oe){return typeof ArrayBuffer<"u"&&Oe instanceof ArrayBuffer}function ee(Oe){return typeof Blob<"u"&&Oe instanceof Blob}function Q(Oe){return typeof FormData<"u"&&Oe instanceof FormData}class we{constructor(Ke,ze,Tt,yt){let xt;if(this.url=ze,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Ke.toUpperCase(),function Y(Oe){switch(Oe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||yt?(this.body=void 0!==Tt?Tt:null,xt=yt):xt=Tt,xt&&(this.reportProgress=!!xt.reportProgress,this.withCredentials=!!xt.withCredentials,xt.responseType&&(this.responseType=xt.responseType),xt.headers&&(this.headers=xt.headers),xt.context&&(this.context=xt.context),xt.params&&(this.params=xt.params),this.transferCache=xt.transferCache),this.headers??=new x,this.context??=new W,this.params){const Ft=this.params.toString();if(0===Ft.length)this.urlWithParams=ze;else{const Be=ze.indexOf("?");this.urlWithParams=ze+(-1===Be?"?":Be<ze.length-1?"&":"")+Ft}}else this.params=new se,this.urlWithParams=ze}serializeBody(){return null===this.body?null:"string"==typeof this.body||q(this.body)||ee(this.body)||Q(this.body)||function be(Oe){return typeof URLSearchParams<"u"&&Oe instanceof URLSearchParams}(this.body)?this.body:this.body instanceof se?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Q(this.body)?null:ee(this.body)?this.body.type||null:q(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof se?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Ke={}){const ze=Ke.method||this.method,Tt=Ke.url||this.url,yt=Ke.responseType||this.responseType,xt=Ke.transferCache??this.transferCache,Ft=void 0!==Ke.body?Ke.body:this.body,Be=Ke.withCredentials??this.withCredentials,xe=Ke.reportProgress??this.reportProgress;let Z=Ke.headers||this.headers,Me=Ke.params||this.params;const je=Ke.context??this.context;return void 0!==Ke.setHeaders&&(Z=Object.keys(Ke.setHeaders).reduce((pt,Rt)=>pt.set(Rt,Ke.setHeaders[Rt]),Z)),Ke.setParams&&(Me=Object.keys(Ke.setParams).reduce((pt,Rt)=>pt.set(Rt,Ke.setParams[Rt]),Me)),new we(ze,Tt,Ft,{params:Me,headers:Z,context:je,reportProgress:xe,responseType:yt,withCredentials:Be,transferCache:xt})}}var Ze=function(Oe){return Oe[Oe.Sent=0]="Sent",Oe[Oe.UploadProgress=1]="UploadProgress",Oe[Oe.ResponseHeader=2]="ResponseHeader",Oe[Oe.DownloadProgress=3]="DownloadProgress",Oe[Oe.Response=4]="Response",Oe[Oe.User=5]="User",Oe}(Ze||{});class Ue{constructor(Ke,ze=ae.Ok,Tt="OK"){this.headers=Ke.headers||new x,this.status=void 0!==Ke.status?Ke.status:ze,this.statusText=Ke.statusText||Tt,this.url=Ke.url||null,this.ok=this.status>=200&&this.status<300}}class Le extends Ue{constructor(Ke={}){super(Ke),this.type=Ze.ResponseHeader}clone(Ke={}){return new Le({headers:Ke.headers||this.headers,status:void 0!==Ke.status?Ke.status:this.status,statusText:Ke.statusText||this.statusText,url:Ke.url||this.url||void 0})}}class _e extends Ue{constructor(Ke={}){super(Ke),this.type=Ze.Response,this.body=void 0!==Ke.body?Ke.body:null}clone(Ke={}){return new _e({body:void 0!==Ke.body?Ke.body:this.body,headers:Ke.headers||this.headers,status:void 0!==Ke.status?Ke.status:this.status,statusText:Ke.statusText||this.statusText,url:Ke.url||this.url||void 0})}}class Re extends Ue{constructor(Ke){super(Ke,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Ke.url||"(unknown url)"}`:`Http failure response for ${Ke.url||"(unknown url)"}: ${Ke.status} ${Ke.statusText}`,this.error=Ke.error||null}}var ae=function(Oe){return Oe[Oe.Continue=100]="Continue",Oe[Oe.SwitchingProtocols=101]="SwitchingProtocols",Oe[Oe.Processing=102]="Processing",Oe[Oe.EarlyHints=103]="EarlyHints",Oe[Oe.Ok=200]="Ok",Oe[Oe.Created=201]="Created",Oe[Oe.Accepted=202]="Accepted",Oe[Oe.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",Oe[Oe.NoContent=204]="NoContent",Oe[Oe.ResetContent=205]="ResetContent",Oe[Oe.PartialContent=206]="PartialContent",Oe[Oe.MultiStatus=207]="MultiStatus",Oe[Oe.AlreadyReported=208]="AlreadyReported",Oe[Oe.ImUsed=226]="ImUsed",Oe[Oe.MultipleChoices=300]="MultipleChoices",Oe[Oe.MovedPermanently=301]="MovedPermanently",Oe[Oe.Found=302]="Found",Oe[Oe.SeeOther=303]="SeeOther",Oe[Oe.NotModified=304]="NotModified",Oe[Oe.UseProxy=305]="UseProxy",Oe[Oe.Unused=306]="Unused",Oe[Oe.TemporaryRedirect=307]="TemporaryRedirect",Oe[Oe.PermanentRedirect=308]="PermanentRedirect",Oe[Oe.BadRequest=400]="BadRequest",Oe[Oe.Unauthorized=401]="Unauthorized",Oe[Oe.PaymentRequired=402]="PaymentRequired",Oe[Oe.Forbidden=403]="Forbidden",Oe[Oe.NotFound=404]="NotFound",Oe[Oe.MethodNotAllowed=405]="MethodNotAllowed",Oe[Oe.NotAcceptable=406]="NotAcceptable",Oe[Oe.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",Oe[Oe.RequestTimeout=408]="RequestTimeout",Oe[Oe.Conflict=409]="Conflict",Oe[Oe.Gone=410]="Gone",Oe[Oe.LengthRequired=411]="LengthRequired",Oe[Oe.PreconditionFailed=412]="PreconditionFailed",Oe[Oe.PayloadTooLarge=413]="PayloadTooLarge",Oe[Oe.UriTooLong=414]="UriTooLong",Oe[Oe.UnsupportedMediaType=415]="UnsupportedMediaType",Oe[Oe.RangeNotSatisfiable=416]="RangeNotSatisfiable",Oe[Oe.ExpectationFailed=417]="ExpectationFailed",Oe[Oe.ImATeapot=418]="ImATeapot",Oe[Oe.MisdirectedRequest=421]="MisdirectedRequest",Oe[Oe.UnprocessableEntity=422]="UnprocessableEntity",Oe[Oe.Locked=423]="Locked",Oe[Oe.FailedDependency=424]="FailedDependency",Oe[Oe.TooEarly=425]="TooEarly",Oe[Oe.UpgradeRequired=426]="UpgradeRequired",Oe[Oe.PreconditionRequired=428]="PreconditionRequired",Oe[Oe.TooManyRequests=429]="TooManyRequests",Oe[Oe.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",Oe[Oe.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",Oe[Oe.InternalServerError=500]="InternalServerError",Oe[Oe.NotImplemented=501]="NotImplemented",Oe[Oe.BadGateway=502]="BadGateway",Oe[Oe.ServiceUnavailable=503]="ServiceUnavailable",Oe[Oe.GatewayTimeout=504]="GatewayTimeout",Oe[Oe.HttpVersionNotSupported=505]="HttpVersionNotSupported",Oe[Oe.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",Oe[Oe.InsufficientStorage=507]="InsufficientStorage",Oe[Oe.LoopDetected=508]="LoopDetected",Oe[Oe.NotExtended=510]="NotExtended",Oe[Oe.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",Oe}(ae||{});function oe(Oe,Ke){return{body:Ke,headers:Oe.headers,context:Oe.context,observe:Oe.observe,params:Oe.params,reportProgress:Oe.reportProgress,responseType:Oe.responseType,withCredentials:Oe.withCredentials,transferCache:Oe.transferCache}}let ge=(()=>{class Oe{constructor(ze){this.handler=ze}request(ze,Tt,yt={}){let xt;if(ze instanceof we)xt=ze;else{let xe,Z;xe=yt.headers instanceof x?yt.headers:new x(yt.headers),yt.params&&(Z=yt.params instanceof se?yt.params:new se({fromObject:yt.params})),xt=new we(ze,Tt,void 0!==yt.body?yt.body:null,{headers:xe,context:yt.context,params:Z,reportProgress:yt.reportProgress,responseType:yt.responseType||"json",withCredentials:yt.withCredentials,transferCache:yt.transferCache})}const Ft=(0,R.of)(xt).pipe((0,H.H)(xe=>this.handler.handle(xe)));if(ze instanceof we||"events"===yt.observe)return Ft;const Be=Ft.pipe((0,P.p)(xe=>xe instanceof _e));switch(yt.observe||"body"){case"body":switch(xt.responseType){case"arraybuffer":return Be.pipe((0,b.T)(xe=>{if(null!==xe.body&&!(xe.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return xe.body}));case"blob":return Be.pipe((0,b.T)(xe=>{if(null!==xe.body&&!(xe.body instanceof Blob))throw new Error("Response is not a Blob.");return xe.body}));case"text":return Be.pipe((0,b.T)(xe=>{if(null!==xe.body&&"string"!=typeof xe.body)throw new Error("Response is not a string.");return xe.body}));default:return Be.pipe((0,b.T)(xe=>xe.body))}case"response":return Be;default:throw new Error(`Unreachable: unhandled observe type ${yt.observe}}`)}}delete(ze,Tt={}){return this.request("DELETE",ze,Tt)}get(ze,Tt={}){return this.request("GET",ze,Tt)}head(ze,Tt={}){return this.request("HEAD",ze,Tt)}jsonp(ze,Tt){return this.request("JSONP",ze,{params:(new se).append(Tt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ze,Tt={}){return this.request("OPTIONS",ze,Tt)}patch(ze,Tt,yt={}){return this.request("PATCH",ze,oe(yt,Tt))}post(ze,Tt,yt={}){return this.request("POST",ze,oe(yt,Tt))}put(ze,Tt,yt={}){return this.request("PUT",ze,oe(yt,Tt))}static#e=this.\u0275fac=function(Tt){return new(Tt||Oe)(g.KVO(B))};static#t=this.\u0275prov=g.jDH({token:Oe,factory:Oe.\u0275fac})}return Oe})();function tt(Oe,Ke){return Ke(Oe)}function st(Oe,Ke){return(ze,Tt)=>Ke.intercept(ze,{handle:yt=>Oe(yt,Tt)})}const St=new g.nKC(""),Gt=new g.nKC(""),it=new g.nKC(""),Xe=new g.nKC("");function wt(){let Oe=null;return(Ke,ze)=>{null===Oe&&(Oe=((0,g.WQX)(St,{optional:!0})??[]).reduceRight(st,tt));const Tt=(0,g.WQX)(g.TgB),yt=Tt.add();return Oe(Ke,ze).pipe((0,C.j)(()=>Tt.remove(yt)))}}let $t=(()=>{class Oe extends B{constructor(ze,Tt){super(),this.backend=ze,this.injector=Tt,this.chain=null,this.pendingTasks=(0,g.WQX)(g.TgB);const yt=(0,g.WQX)(Xe,{optional:!0});this.backend=yt??ze}handle(ze){if(null===this.chain){const yt=Array.from(new Set([...this.injector.get(Gt),...this.injector.get(it,[])]));this.chain=yt.reduceRight((xt,Ft)=>function ct(Oe,Ke,ze){return(Tt,yt)=>(0,g.N4e)(ze,()=>Ke(Tt,xt=>Oe(xt,yt)))}(xt,Ft,this.injector),tt)}const Tt=this.pendingTasks.add();return this.chain(ze,yt=>this.backend.handle(yt)).pipe((0,C.j)(()=>this.pendingTasks.remove(Tt)))}static#e=this.\u0275fac=function(Tt){return new(Tt||Oe)(g.KVO(G),g.KVO(g.uvJ))};static#t=this.\u0275prov=g.jDH({token:Oe,factory:Oe.\u0275fac})}return Oe})();const bi=/^\)\]\}',?\n/;let yr=(()=>{class Oe{constructor(ze){this.xhrFactory=ze}handle(ze){if("JSONP"===ze.method)throw new g.wOt(-2800,!1);const Tt=this.xhrFactory;return(Tt.\u0275loadImpl?(0,U.H)(Tt.\u0275loadImpl()):(0,R.of)(null)).pipe((0,S.n)(()=>new V.c(xt=>{const Ft=Tt.build();if(Ft.open(ze.method,ze.urlWithParams),ze.withCredentials&&(Ft.withCredentials=!0),ze.headers.forEach((an,en)=>Ft.setRequestHeader(an,en.join(","))),ze.headers.has("Accept")||Ft.setRequestHeader("Accept","application/json, text/plain, */*"),!ze.headers.has("Content-Type")){const an=ze.detectContentTypeHeader();null!==an&&Ft.setRequestHeader("Content-Type",an)}if(ze.responseType){const an=ze.responseType.toLowerCase();Ft.responseType="json"!==an?an:"text"}const Be=ze.serializeBody();let xe=null;const Z=()=>{if(null!==xe)return xe;const an=Ft.statusText||"OK",en=new x(Ft.getAllResponseHeaders()),rn=function hn(Oe){return"responseURL"in Oe&&Oe.responseURL?Oe.responseURL:/^X-Request-URL:/m.test(Oe.getAllResponseHeaders())?Oe.getResponseHeader("X-Request-URL"):null}(Ft)||ze.url;return xe=new Le({headers:en,status:Ft.status,statusText:an,url:rn}),xe},Me=()=>{let{headers:an,status:en,statusText:rn,url:Vn}=Z(),En=null;en!==ae.NoContent&&(En=typeof Ft.response>"u"?Ft.responseText:Ft.response),0===en&&(en=En?ae.Ok:0);let Wn=en>=200&&en<300;if("json"===ze.responseType&&"string"==typeof En){const or=En;En=En.replace(bi,"");try{En=""!==En?JSON.parse(En):null}catch(br){En=or,Wn&&(Wn=!1,En={error:br,text:En})}}Wn?(xt.next(new _e({body:En,headers:an,status:en,statusText:rn,url:Vn||void 0})),xt.complete()):xt.error(new Re({error:En,headers:an,status:en,statusText:rn,url:Vn||void 0}))},je=an=>{const{url:en}=Z(),rn=new Re({error:an,status:Ft.status||0,statusText:Ft.statusText||"Unknown Error",url:en||void 0});xt.error(rn)};let pt=!1;const Rt=an=>{pt||(xt.next(Z()),pt=!0);let en={type:Ze.DownloadProgress,loaded:an.loaded};an.lengthComputable&&(en.total=an.total),"text"===ze.responseType&&Ft.responseText&&(en.partialText=Ft.responseText),xt.next(en)},nn=an=>{let en={type:Ze.UploadProgress,loaded:an.loaded};an.lengthComputable&&(en.total=an.total),xt.next(en)};return Ft.addEventListener("load",Me),Ft.addEventListener("error",je),Ft.addEventListener("timeout",je),Ft.addEventListener("abort",je),ze.reportProgress&&(Ft.addEventListener("progress",Rt),null!==Be&&Ft.upload&&Ft.upload.addEventListener("progress",nn)),Ft.send(Be),xt.next({type:Ze.Sent}),()=>{Ft.removeEventListener("error",je),Ft.removeEventListener("abort",je),Ft.removeEventListener("load",Me),Ft.removeEventListener("timeout",je),ze.reportProgress&&(Ft.removeEventListener("progress",Rt),null!==Be&&Ft.upload&&Ft.upload.removeEventListener("progress",nn)),Ft.readyState!==Ft.DONE&&Ft.abort()}})))}static#e=this.\u0275fac=function(Tt){return new(Tt||Oe)(g.KVO(I.N0))};static#t=this.\u0275prov=g.jDH({token:Oe,factory:Oe.\u0275fac})}return Oe})();const bn=new g.nKC(""),_n=new g.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),jn=new g.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Jn{}let Rr=(()=>{class Oe{constructor(ze,Tt,yt){this.doc=ze,this.platform=Tt,this.cookieName=yt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ze=this.doc.cookie||"";return ze!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,I._b)(ze,this.cookieName),this.lastCookieString=ze),this.lastToken}static#e=this.\u0275fac=function(Tt){return new(Tt||Oe)(g.KVO(I.qQ),g.KVO(g.Agw),g.KVO(_n))};static#t=this.\u0275prov=g.jDH({token:Oe,factory:Oe.\u0275fac})}return Oe})();function Ar(Oe,Ke){const ze=Oe.url.toLowerCase();if(!(0,g.WQX)(bn)||"GET"===Oe.method||"HEAD"===Oe.method||ze.startsWith("http://")||ze.startsWith("https://"))return Ke(Oe);const Tt=(0,g.WQX)(Jn).getToken(),yt=(0,g.WQX)(jn);return null!=Tt&&!Oe.headers.has(yt)&&(Oe=Oe.clone({headers:Oe.headers.set(yt,Tt)})),Ke(Oe)}var ot=function(Oe){return Oe[Oe.Interceptors=0]="Interceptors",Oe[Oe.LegacyInterceptors=1]="LegacyInterceptors",Oe[Oe.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Oe[Oe.NoXsrfProtection=3]="NoXsrfProtection",Oe[Oe.JsonpSupport=4]="JsonpSupport",Oe[Oe.RequestsMadeViaParent=5]="RequestsMadeViaParent",Oe[Oe.Fetch=6]="Fetch",Oe}(ot||{});function Ye(...Oe){const Ke=[ge,yr,$t,{provide:B,useExisting:$t},{provide:G,useExisting:yr},{provide:Gt,useValue:Ar,multi:!0},{provide:bn,useValue:!0},{provide:Jn,useClass:Rr}];for(const ze of Oe)Ke.push(...ze.\u0275providers);return(0,g.EmA)(Ke)}const Lt=new g.nKC("");function Zt(){return function He(Oe,Ke){return{\u0275kind:Oe,\u0275providers:Ke}}(ot.LegacyInterceptors,[{provide:Lt,useFactory:wt},{provide:Gt,useExisting:Lt,multi:!0}])}let Ni=(()=>{class Oe{static#e=this.\u0275fac=function(Tt){return new(Tt||Oe)};static#t=this.\u0275mod=g.$C({type:Oe});static#n=this.\u0275inj=g.G2t({providers:[Ye(Zt())]})}return Oe})()},4438:(Dt,ve,_)=>{"use strict";_.d(ve,{bc$:()=>Qo,iLQ:()=>jg,sZ2:()=>co,hnV:()=>nC,Hbi:()=>$I,o8S:()=>Xa,BIS:()=>ys,gRc:()=>gC,Ql9:()=>mI,Ocv:()=>SI,abz:()=>Ba,Z63:()=>Wi,aKT:()=>Hl,uvJ:()=>Hr,zcH:()=>Zs,bkB:()=>Ps,$GK:()=>ke,nKC:()=>yt,zZn:()=>Xo,_q3:()=>Yg,MKu:()=>Jg,xe9:()=>tf,Co$:()=>zy,Vns:()=>_l,SKi:()=>Ki,Xx1:()=>Zr,Agw:()=>ks,PLl:()=>Eo,sFG:()=>g1,_9s:()=>ty,czy:()=>ah,WPN:()=>ml,kdw:()=>Do,C4Q:()=>wu,NYb:()=>cI,giA:()=>eC,RxE:()=>Kb,c1b:()=>Dh,gXe:()=>Di,mal:()=>ly,Af3:()=>ns,L39:()=>_M,a0P:()=>DM,Ol2:()=>Wp,w6W:()=>fS,oH4:()=>dC,SmG:()=>MI,Rfq:()=>Ar,WQX:()=>ln,QuC:()=>Cr,EmA:()=>es,fpN:()=>jI,HJs:()=>IM,N4e:()=>_o,O8t:()=>CM,An2:()=>Th,H3F:()=>zb,H8p:()=>Vo,KH2:()=>Ic,TgB:()=>cc,wOt:()=>at,WHO:()=>Jb,e01:()=>Zb,lNU:()=>wt,h9k:()=>Qm,$MX:()=>rh,ZF7:()=>tc,Kcf:()=>dT,e5t:()=>gT,UyX:()=>fT,cWb:()=>hT,osQ:()=>pT,H5H:()=>yg,Zy3:()=>vt,mq5:()=>Z_,JZv:()=>hn,LfX:()=>Pr,plB:()=>$a,jNT:()=>Vg,zjR:()=>tC,TL$:()=>to,Tbb:()=>Bn,rcV:()=>Ea,nM4:()=>Gy,Vt3:()=>Gp,Mj6:()=>Ui,GFd:()=>Ky,OA$:()=>dt,Jv_:()=>db,aNF:()=>hb,R7$:()=>Sv,BMQ:()=>ng,HbH:()=>k_,ZvI:()=>V_,AVh:()=>cg,vxM:()=>W_,wni:()=>V0,VBU:()=>Yt,FsC:()=>ki,jDH:()=>vn,G2t:()=>dr,$C:()=>Br,EJ8:()=>vi,rXU:()=>ic,nrm:()=>gg,eu8:()=>mg,bVm:()=>jh,qex:()=>Gh,k0s:()=>Vh,j41:()=>Uh,RV6:()=>Y_,xGo:()=>tu,Mr5:()=>vg,pXf:()=>D0,KVO:()=>Ir,kS0:()=>nu,QTQ:()=>wv,bIt:()=>Cg,lsd:()=>$0,XpG:()=>R0,nI1:()=>Ab,bMT:()=>wb,i5U:()=>Db,brH:()=>Ib,ii3:()=>Mb,SdG:()=>k0,NAR:()=>P0,Y8G:()=>sg,FS9:()=>Eg,Mz_:()=>Xh,FCK:()=>Sg,Mt6:()=>Ag,lJ4:()=>gb,eq3:()=>mb,l_i:()=>vb,sMw:()=>yb,ziG:()=>_b,mGM:()=>j0,sdS:()=>W0,Dyx:()=>X_,Z7z:()=>z_,fX1:()=>K_,Njj:()=>sl,EBC:()=>iv,tSv:()=>rv,eBV:()=>Ra,npT:()=>Ym,B4B:()=>qf,n$t:()=>Zm,wjB:()=>fb,Aen:()=>Fs,xc7:()=>lg,DNE:()=>uc,C5r:()=>Ob,EFF:()=>tb,JRh:()=>wg,SpI:()=>qh,Lme:()=>Dg,E5c:()=>Ig,DH7:()=>cb,mxI:()=>Og,R50:()=>Mg,GBs:()=>G0}),_(467);let R=null,U=1;const H=Symbol("SIGNAL");function P(e){const t=R;return R=e,t}function x(e){if((!W(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==U)){if(!e.producerMustRecompute(e)&&!ie(e))return e.dirty=!1,void(e.lastCleanEpoch=U);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=U}}function ie(e){Y(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],i=e.producerLastReadVersion[t];if(i!==n.version||(x(n),i!==n.version))return!0}return!1}function z(e,t){if(function q(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),Y(e),1===e.liveConsumerNode.length)for(let i=0;i<e.producerNode.length;i++)z(e.producerNode[i],e.producerIndexOfThis[i]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const i=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];Y(o),o.producerIndexOfThis[i]=t}}function W(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Y(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Le=null;var ct=_(1413),St=_(8359),Gt=_(4412),it=_(6354);const wt="https://g.co/ng/security#xss";class at extends Error{constructor(t,n){super(vt(t,n)),this.code=t}}function vt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function Ht(e){return{toString:e}.toString()}const yn="__parameters__";function lr(e,t,n){return Ht(()=>{const i=function Fr(e){return function(...n){if(e){const i=e(...n);for(const o in i)this[o]=i[o]}}}(t);function o(...a){if(this instanceof o)return i.apply(this,a),this;const y=new o(...a);return E.annotation=y,E;function E(F,re,me){const Ne=F.hasOwnProperty(yn)?F[yn]:Object.defineProperty(F,yn,{value:[]})[yn];for(;Ne.length<=me;)Ne.push(null);return(Ne[me]=Ne[me]||[]).push(y),F}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}const hn=globalThis;function Tn(e){for(let t in e)if(e[t]===Tn)return t;throw Error("Could not find renamed property on target object.")}function _n(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Bn(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Bn).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function jn(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Rr=Tn({__forward_ref__:Tn});function Ar(e){return e.__forward_ref__=Ar,e.toString=function(){return Bn(this())},e}function qe(e){return ot(e)?e():e}function ot(e){return"function"==typeof e&&e.hasOwnProperty(Rr)&&e.__forward_ref__===Ar}function Zt(e,t,n){e!=t&&function on(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(n,e,t,"==")}function vn(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function dr(e){return{providers:e.providers||[],imports:e.imports||[]}}function gr(e){return wr(e,Oe)||wr(e,ze)}function Pr(e){return null!==gr(e)}function wr(e,t){return e.hasOwnProperty(t)?e[t]:null}function $n(e){return e&&(e.hasOwnProperty(Ke)||e.hasOwnProperty(Tt))?e[Ke]:null}const Oe=Tn({\u0275prov:Tn}),Ke=Tn({\u0275inj:Tn}),ze=Tn({ngInjectableDef:Tn}),Tt=Tn({ngInjectorDef:Tn});class yt{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=vn({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function an(e){return e&&!!e.\u0275providers}const en=Tn({\u0275cmp:Tn}),rn=Tn({\u0275dir:Tn}),Vn=Tn({\u0275pipe:Tn}),En=Tn({\u0275mod:Tn}),Wn=Tn({\u0275fac:Tn}),or=Tn({__NG_ELEMENT_ID__:Tn}),br=Tn({__NG_ENV_ID__:Tn});function un(e){return"string"==typeof e?e:null==e?"":String(e)}function Ce(e,t){throw new at(-201,!1)}var ke=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(ke||{});let ht;function At(){return ht}function Et(e){const t=ht;return ht=e,t}function Kt(e,t,n){const i=gr(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&ke.Optional?null:void 0!==t?t:void Ce()}const Qn={},Zn="__NG_DI_FLAG__",Dr="ngTempTokenPath",Ci=/\n/gm,Pi="__source";let zr;function Xr(e){const t=zr;return zr=e,t}function si(e,t=ke.Default){if(void 0===zr)throw new at(-203,!1);return null===zr?Kt(e,void 0,t):zr.get(e,t&ke.Optional?null:void 0,t)}function Ir(e,t=ke.Default){return(At()||si)(qe(e),t)}function ln(e,t=ke.Default){return Ir(e,no(t))}function no(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ao(e){const t=[];for(let n=0;n<e.length;n++){const i=qe(e[n]);if(Array.isArray(i)){if(0===i.length)throw new at(900,!1);let o,a=ke.Default;for(let y=0;y<i.length;y++){const E=i[y],F=ji(E);"number"==typeof F?-1===F?o=E.token:a|=F:o=E}t.push(Ir(o,a))}else t.push(Ir(i))}return t}function Hi(e,t){return e[Zn]=t,e.prototype[Zn]=t,e}function ji(e){return e[Zn]}const Zr=Hi(lr("Optional"),8),Do=Hi(lr("SkipSelf"),4);function pi(e,t){return e.hasOwnProperty(Wn)?e[Wn]:null}function gi(e,t){e.forEach(n=>Array.isArray(n)?gi(n,t):t(n))}function $o(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ro(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ai(e,t,n){let i=$i(e,t);return i>=0?e[1|i]=n:(i=~i,function Fo(e,t,n,i){let o=e.length;if(o==t)e.push(n,i);else if(1===o)e.push(i,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Lo(e,t){const n=$i(e,t);if(n>=0)return e[1|n]}function $i(e,t){return function Bo(e,t,n){let i=0,o=e.length>>n;for(;o!==i;){const a=i+(o-i>>1),y=e[a<<n];if(t===y)return a<<n;y>t?o=a:i=a+1}return~(o<<n)}(e,t,1)}const Ai={},Hn=[],Wi=new yt(""),Wo=new yt("",-1),Ho=new yt("");class wi{get(t,n=Qn){if(n===Qn){const i=new Error(`NullInjectorError: No provider for ${Bn(t)}!`);throw i.name="NullInjectorError",i}return n}}var Uo=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Uo||{}),Di=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Di||{}),Ui=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Ui||{});function ps(e,t,n){let i=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const a=t.length;if(o+a===i||e.charCodeAt(o+a)<=32)return o}n=o+1}}function Ko(e,t,n){let i=0;for(;i<n.length;){const o=n[i];if("number"==typeof o){if(0!==o)break;i++;const a=n[i++],y=n[i++],E=n[i++];e.setAttribute(t,y,E,a)}else{const a=o,y=n[++i];so(a)?e.setProperty(t,a,y):e.setAttribute(t,a,y),i++}}return i}function Yi(e){return 3===e||4===e||6===e}function so(e){return 64===e.charCodeAt(0)}function zo(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const o=t[i];"number"==typeof o?n=o:0===n||Zo(e,n,o,null,-1===n||2===n?t[++i]:null)}}return e}function Zo(e,t,n,i,o){let a=0,y=e.length;if(-1===t)y=-1;else for(;a<e.length;){const E=e[a++];if("number"==typeof E){if(E===t){y=-1;break}if(E>t){y=a-1;break}}}for(;a<e.length;){const E=e[a];if("number"==typeof E)break;if(E===n){if(null===i)return void(null!==o&&(e[a+1]=o));if(i===e[a+1])return void(e[a+2]=o)}a++,null!==i&&a++,null!==o&&a++}-1!==y&&(e.splice(y,0,t),a=y+1),e.splice(a++,0,n),null!==i&&e.splice(a++,0,i),null!==o&&e.splice(a++,0,o)}const Mo="ng-template";function po(e,t,n,i){let o=0;if(i){for(;o<t.length&&"string"==typeof t[o];o+=2)if("class"===t[o]&&-1!==ps(t[o+1].toLowerCase(),n,0))return!0}else if(De(e))return!1;if(o=t.indexOf(1,o),o>-1){let a;for(;++o<t.length&&"string"==typeof(a=t[o]);)if(a.toLowerCase()===n)return!0}return!1}function De(e){return 4===e.type&&e.value!==Mo}function d(e,t,n){return t===(4!==e.type||n?e.value:Mo)}function p(e,t,n){let i=4;const o=e.attrs,a=null!==o?function ue(e){for(let t=0;t<e.length;t++)if(Yi(e[t]))return t;return e.length}(o):0;let y=!1;for(let E=0;E<t.length;E++){const F=t[E];if("number"!=typeof F){if(!y)if(4&i){if(i=2|1&i,""!==F&&!d(e,F,n)||""===F&&1===t.length){if(v(i))return!1;y=!0}}else if(8&i){if(null===o||!po(e,o,F,n)){if(v(i))return!1;y=!0}}else{const re=t[++E],me=h(F,o,De(e),n);if(-1===me){if(v(i))return!1;y=!0;continue}if(""!==re){let Ne;if(Ne=me>a?"":o[me+1].toLowerCase(),2&i&&re!==Ne){if(v(i))return!1;y=!0}}}}else{if(!y&&!v(i)&&!v(F))return!1;if(y&&v(F))continue;y=!1,i=F|1&i}}return v(i)||y}function v(e){return!(1&e)}function h(e,t,n,i){if(null===t)return-1;let o=0;if(i||!n){let a=!1;for(;o<t.length;){const y=t[o];if(y===e)return o;if(3===y||6===y)a=!0;else{if(1===y||2===y){let E=t[++o];for(;"string"==typeof E;)E=t[++o];continue}if(4===y)break;if(0===y){o+=4;continue}}o+=a?1:2}return-1}return function Ee(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function A(e,t,n=!1){for(let i=0;i<t.length;i++)if(p(e,t[i],n))return!0;return!1}function Ie(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let o=0;o<e.length;o++)if(e[o]!==i[o])continue e;return!0}}return!1}function et(e,t){return e?":not("+t.trim()+")":t}function gt(e){let t=e[0],n=1,i=2,o="",a=!1;for(;n<e.length;){let y=e[n];if("string"==typeof y)if(2&i){const E=e[++n];o+="["+y+(E.length>0?'="'+E+'"':"")+"]"}else 8&i?o+="."+y:4&i&&(o+=" "+y);else""!==o&&!v(y)&&(t+=et(a,o),o=""),i=y,a=a||!v(i);n++}return""!==o&&(t+=et(a,o)),t}function Yt(e){return Ht(()=>{const t=go(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Uo.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Di.Emulated,styles:e.styles||Hn,_:null,schemas:e.schemas||null,tView:null,id:""};Hs(n);const i=e.dependencies;return n.directiveDefs=mo(i,!1),n.pipeDefs=mo(i,!0),n.id=function aa(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function fn(e){return Mn(e)||hr(e)}function mr(e){return null!==e}function Br(e){return Ht(()=>({type:e.type,bootstrap:e.bootstrap||Hn,declarations:e.declarations||Hn,imports:e.imports||Hn,exports:e.exports||Hn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function mi(e,t){if(null==e)return Ai;const n={};for(const i in e)if(e.hasOwnProperty(i)){const o=e[i];let a,y,E=Ui.None;Array.isArray(o)?(E=o[0],a=o[1],y=o[2]??a):(a=o,y=o),t?(n[a]=E!==Ui.None?[i,E]:i,t[a]=y):n[a]=i}return n}function ki(e){return Ht(()=>{const t=go(e);return Hs(t),t})}function vi(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Mn(e){return e[en]||null}function hr(e){return e[rn]||null}function er(e){return e[Vn]||null}function Cr(e){const t=Mn(e)||hr(e)||er(e);return null!==t&&t.standalone}function Gr(e,t){const n=e[En]||null;if(!n&&!0===t)throw new Error(`Type ${Bn(e)} does not have '\u0275mod' property.`);return n}function go(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Ai,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Hn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:mi(e.inputs,t),outputs:mi(e.outputs),debugInfo:null}}function Hs(e){e.features?.forEach(t=>t(e))}function mo(e,t){if(!e)return null;const n=t?er:fn;return()=>("function"==typeof e?e():e).map(i=>n(i)).filter(mr)}function es(e){return{\u0275providers:e}}function cn(...e){return{\u0275providers:gn(0,e),\u0275fromNgModule:!0}}function gn(e,...t){const n=[],i=new Set;let o;const a=y=>{n.push(y)};return gi(t,y=>{const E=y;zn(E,a,[],i)&&(o||=[],o.push(E))}),void 0!==o&&Cn(o,a),n}function Cn(e,t){for(let n=0;n<e.length;n++){const{ngModule:i,providers:o}=e[n];vo(o,a=>{t(a,i)})}}function zn(e,t,n,i){if(!(e=qe(e)))return!1;let o=null,a=$n(e);const y=!a&&Mn(e);if(a||y){if(y&&!y.standalone)return!1;o=e}else{const F=e.ngModule;if(a=$n(F),!a)return!1;o=F}const E=i.has(o);if(y){if(E)return!1;if(i.add(o),y.dependencies){const F="function"==typeof y.dependencies?y.dependencies():y.dependencies;for(const re of F)zn(re,t,n,i)}}else{if(!a)return!1;{if(null!=a.imports&&!E){let re;i.add(o);try{gi(a.imports,me=>{zn(me,t,n,i)&&(re||=[],re.push(me))})}finally{}void 0!==re&&Cn(re,t)}if(!E){const re=pi(o)||(()=>new o);t({provide:o,useFactory:re,deps:Hn},o),t({provide:Ho,useValue:o,multi:!0},o),t({provide:Wi,useValue:()=>Ir(o),multi:!0},o)}const F=a.providers;if(null!=F&&!E){const re=e;vo(F,me=>{t(me,re)})}}}return o!==e&&void 0!==e.providers}function vo(e,t){for(let n of e)an(n)&&(n=n.\u0275providers),Array.isArray(n)?vo(n,t):t(n)}const Ji=Tn({provide:String,useValue:Tn});function Oo(e){return null!==e&&"object"==typeof e&&Ji in e}function ts(e){return"function"==typeof e}const Vo=new yt(""),xi={},Go={};let Ts;function Gs(){return void 0===Ts&&(Ts=new wi),Ts}class Hr{}class la extends Hr{get destroyed(){return this._destroyed}constructor(t,n,i,o){super(),this.parent=n,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,js(t,y=>this.processProvider(y)),this.records.set(Wo,yo(void 0,this)),o.has("environment")&&this.records.set(Hr,yo(void 0,this));const a=this.records.get(Vo);null!=a&&"string"==typeof a.value&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(Ho,Hn,ke.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=P(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of n)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),P(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Xr(this),i=Et(void 0);try{return t()}finally{Xr(n),Et(i)}}get(t,n=Qn,i=ke.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(br))return t[br](this);i=no(i);const a=Xr(this),y=Et(void 0);try{if(!(i&ke.SkipSelf)){let F=this.records.get(t);if(void 0===F){const re=function kc(e){return"function"==typeof e||"object"==typeof e&&e instanceof yt}(t)&&gr(t);F=re&&this.injectableDefInScope(re)?yo(wa(t),xi):null,this.records.set(t,F)}if(null!=F)return this.hydrate(t,F)}return(i&ke.Self?Gs():this.parent).get(t,n=i&ke.Optional&&n===Qn?null:n)}catch(E){if("NullInjectorError"===E.name){if((E[Dr]=E[Dr]||[]).unshift(Bn(t)),a)throw E;return function wo(e,t,n,i){const o=e[Dr];throw t[Pi]&&o.unshift(t[Pi]),e.message=function Qi(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Bn(t);if(Array.isArray(t))o=t.map(Bn).join(" -> ");else if("object"==typeof t){let a=[];for(let y in t)if(t.hasOwnProperty(y)){let E=t[y];a.push(y+":"+("string"==typeof E?JSON.stringify(E):Bn(E)))}o=`{${a.join(", ")}}`}return`${n}${i?"("+i+")":""}[${o}]: ${e.replace(Ci,"\n  ")}`}("\n"+e.message,o,n,i),e.ngTokenPath=o,e[Dr]=null,e}(E,t,"R3InjectorError",this.source)}throw E}finally{Et(y),Xr(a)}}resolveInjectorInitializers(){const t=P(null),n=Xr(this),i=Et(void 0);try{const a=this.get(Wi,Hn,ke.Self);for(const y of a)y()}finally{Xr(n),Et(i),P(t)}}toString(){const t=[],n=this.records;for(const i of n.keys())t.push(Bn(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new at(205,!1)}processProvider(t){let n=ts(t=qe(t))?t:qe(t&&t.provide);const i=function Vi(e){return Oo(e)?yo(void 0,e.useValue):yo(Fi(e),xi)}(t);if(!ts(t)&&!0===t.multi){let o=this.records.get(n);o||(o=yo(void 0,xi,!0),o.factory=()=>Ao(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,i)}hydrate(t,n){const i=P(null);try{return n.value===xi&&(n.value=Go,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Ya(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{P(i)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=qe(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function wa(e){const t=gr(e),n=null!==t?t.factory:pi(e);if(null!==n)return n;if(e instanceof yt)throw new at(204,!1);if(e instanceof Function)return function Es(e){if(e.length>0)throw new at(204,!1);const n=function Yr(e){return e&&(e[Oe]||e[ze])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new at(204,!1)}function Fi(e,t,n){let i;if(ts(e)){const o=qe(e);return pi(o)||wa(o)}if(Oo(e))i=()=>qe(e.useValue);else if(function Vs(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Ao(e.deps||[]));else if(function Mr(e){return!(!e||!e.useExisting)}(e))i=()=>Ir(qe(e.useExisting));else{const o=qe(e&&(e.useClass||e.provide));if(!function Qa(e){return!!e.deps}(e))return pi(o)||wa(o);i=()=>new o(...Ao(e.deps))}return i}function yo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function js(e,t){for(const n of e)Array.isArray(n)?js(n,t):n&&an(n)?js(n.\u0275providers,t):t(n)}function _o(e,t){e instanceof la&&e.assertNotDestroyed();const i=Xr(e),o=Et(void 0);try{return t()}finally{Xr(i),Et(o)}}function Ja(){return void 0!==At()||null!=function fi(){return zr}()}function ns(e){if(!Ja())throw new at(-203,!1)}const sr=0,kt=1,dn=2,ur=3,yi=4,ni=5,Li=6,gs=7,Yn=8,Zi=9,jo=10,Sn=11,rs=12,ca=13,$s=14,Ti=15,Za=16,ua=17,is=18,da=19,xc=20,os=21,bo=22,$r=23,kn=25,ha=1,Co=7,No=9,_i=10;var el=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(el||{});function ao(e){return Array.isArray(e)&&"object"==typeof e[ha]}function Oi(e){return Array.isArray(e)&&!0===e[ha]}function pa(e){return!!(4&e.flags)}function Ws(e){return e.componentOffset>-1}function tl(e){return!(1&~e.flags)}function ss(e){return!!e.template}function nl(e){return!!(512&e[dn])}class $e{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function mt(e,t,n,i){null!==t?t.applyValueToInputSignal(t,i):e[n]=i}function dt(){return Qt}function Qt(e){return e.type.prototype.ngOnChanges&&(e.setInput=Gn),Rn}function Rn(){const e=Ks(this),t=e?.current;if(t){const n=e.previous;if(n===Ai)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Gn(e,t,n,i,o){const a=this.declaredInputs[i],y=Ks(e)||function ma(e,t){return e[Ei]=t}(e,{previous:Ai,current:null}),E=y.current||(y.current={}),F=y.previous,re=F[a];E[a]=new $e(re&&re.currentValue,n,F===Ai),mt(e,t,o,n)}dt.ngInherit=!0;const Ei="__ngSimpleChanges__";function Ks(e){return e[Ei]||null}const eo=function(e,t,n){};let Uc=!1;function Ur(e){for(;Array.isArray(e);)e=e[sr];return e}function Oa(e,t){return Ur(t[e])}function lo(e,t){return Ur(t[e.index])}function wl(e,t){return e.data[t]}function ol(e,t){return e[t]}function as(e,t){const n=t[e];return ao(n)?n:n[sr]}function od(e){return!(128&~e[dn])}function Os(e,t){return null==t?null:e[t]}function mf(e){e[ua]=0}function im(e){1024&e[dn]||(e[dn]|=1024,od(e)&&Dl(e))}function sd(e){return!!(9216&e[dn]||e[$r]?.dirty)}function ad(e){e[jo].changeDetectionScheduler?.notify(1),sd(e)?Dl(e):64&e[dn]&&(function Vc(){return Uc}()?(e[dn]|=1024,Dl(e)):e[jo].changeDetectionScheduler?.notify())}function Dl(e){e[jo].changeDetectionScheduler?.notify();let t=Na(e);for(;null!==t&&!(8192&t[dn])&&(t[dn]|=8192,od(t));)t=Na(t)}function Il(e,t){if(!(256&~e[dn]))throw new at(911,!1);null===e[os]&&(e[os]=[]),e[os].push(t)}function Na(e){const t=e[ur];return Oi(t)?t[ur]:t}const xn={lFrame:zc(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function ls(){return xn.bindingsEnabled}function Vr(){return null!==xn.skipHydrationRootTNode}function Mt(){return xn.lFrame.lView}function ar(){return xn.lFrame.tView}function Ra(e){return xn.lFrame.contextLView=e,e[Yn]}function sl(e){return xn.lFrame.contextLView=null,e}function xr(){let e=dd();for(;null!==e&&64===e.type;)e=e.parent;return e}function dd(){return xn.lFrame.currentTNode}function al(){const e=xn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function As(e,t){const n=xn.lFrame;n.currentTNode=e,n.isParent=t}function Wc(){return xn.lFrame.isParent}function zs(){xn.lFrame.isParent=!1}function To(){const e=xn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function cs(){return xn.lFrame.bindingIndex}function us(){return xn.lFrame.bindingIndex++}function qs(e){const t=xn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Cf(e){xn.lFrame.inI18n=e}function lm(e,t){const n=xn.lFrame;n.bindingIndex=n.bindingRootIndex=e,hd(t)}function hd(e){xn.lFrame.currentDirectiveIndex=e}function pd(){return xn.lFrame.currentQueryIndex}function Kc(e){xn.lFrame.currentQueryIndex=e}function um(e){const t=e[kt];return 2===t.type?t.declTNode:1===t.type?e[ni]:null}function Tf(e,t,n){if(n&ke.SkipSelf){let o=t,a=e;for(;!(o=o.parent,null!==o||n&ke.Host||(o=um(a),null===o||(a=a[$s],10&o.type))););if(null===o)return!1;t=o,e=a}const i=xn.lFrame=Ef();return i.currentTNode=t,i.lView=e,!0}function gd(e){const t=Ef(),n=e[kt];xn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ef(){const e=xn.lFrame,t=null===e?null:e.child;return null===t?zc(e):t}function zc(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function md(){const e=xn.lFrame;return xn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const vd=md;function yd(){const e=md();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ro(){return xn.lFrame.selectedIndex}function Ns(e){xn.lFrame.selectedIndex=e}function li(){const e=xn.lFrame;return wl(e.tView,e.selectedIndex)}let wf=!0;function Ol(){return wf}function Rs(e){wf=e}function Nl(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const a=e.data[n].type.prototype,{ngAfterContentInit:y,ngAfterContentChecked:E,ngAfterViewInit:F,ngAfterViewChecked:re,ngOnDestroy:me}=a;y&&(e.contentHooks??=[]).push(-n,y),E&&((e.contentHooks??=[]).push(n,E),(e.contentCheckHooks??=[]).push(n,E)),F&&(e.viewHooks??=[]).push(-n,F),re&&((e.viewHooks??=[]).push(n,re),(e.viewCheckHooks??=[]).push(n,re)),null!=me&&(e.destroyHooks??=[]).push(n,me)}}function Xc(e,t,n){Td(e,t,3,n)}function qc(e,t,n,i){(3&e[dn])===n&&Td(e,t,n,i)}function Rl(e,t){let n=e[dn];(3&n)===t&&(n&=16383,n+=1,e[dn]=n)}function Td(e,t,n,i){const a=i??-1,y=t.length-1;let E=0;for(let F=void 0!==i?65535&e[ua]:0;F<y;F++)if("number"==typeof t[F+1]){if(E=t[F],null!=i&&E>=i)break}else t[F]<0&&(e[ua]+=65536),(E<a||-1==a)&&(Ed(e,n,t,F),e[ua]=(4294901760&e[ua])+F+2),F++}function cl(e,t){eo(4,e,t);const n=P(null);try{t.call(e)}finally{P(n),eo(5,e,t)}}function Ed(e,t,n,i){const o=n[i]<0,a=n[i+1],E=e[o?-n[i]:n[i]];o?e[dn]>>14<e[ua]>>16&&(3&e[dn])===t&&(e[dn]+=16384,cl(E,a)):cl(E,a)}const Qs=-1;class Ys{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function Qc(e){return e!==Qs}function ul(e){return 32767&e}function dl(e,t){let n=function Yc(e){return e>>16}(e),i=t;for(;n>0;)i=i[$s],n--;return i}let Jc=!0;function Pl(e){const t=Jc;return Jc=e,t}const Dd=255,Id=5;let Md=0;const ms={};function hl(e,t){const n=kl(e,t);if(-1!==n)return n;const i=t[kt];i.firstCreatePass&&(e.injectorIndex=t.length,Zc(i.data,e),Zc(t,null),Zc(i.blueprint,null));const o=xl(e,t),a=e.injectorIndex;if(Qc(o)){const y=ul(o),E=dl(o,t),F=E[kt].data;for(let re=0;re<8;re++)t[a+re]=E[y+re]|F[y+re]}return t[a+8]=o,a}function Zc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function kl(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function xl(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,o=t;for(;null!==o;){if(i=Of(o),null===i)return Qs;if(n++,o=o[$s],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Qs}function xa(e,t,n){!function If(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(or)&&(i=n[or]),null==i&&(i=n[or]=Md++);const o=i&Dd;t.data[e+(o>>Id)]|=1<<o}(e,t,n)}function Fa(e,t,n){if(n&ke.Optional||void 0!==e)return e;Ce()}function Od(e,t,n,i){if(n&ke.Optional&&void 0===i&&(i=null),!(n&(ke.Self|ke.Host))){const o=e[Zi],a=Et(void 0);try{return o?o.get(t,i,n&ke.Optional):Kt(t,i,n&ke.Optional)}finally{Et(a)}}return Fa(i,0,n)}function eu(e,t,n,i=ke.Default,o){if(null!==e){if(2048&t[dn]&&!(i&ke.Self)){const y=function kd(e,t,n,i,o){let a=e,y=t;for(;null!==a&&null!==y&&2048&y[dn]&&!(512&y[dn]);){const E=Nd(a,y,n,i|ke.Self,ms);if(E!==ms)return E;let F=a.parent;if(!F){const re=y[xc];if(re){const me=re.get(n,ms,i);if(me!==ms)return me}F=Of(y),y=y[$s]}a=F}return o}(e,t,n,i,ms);if(y!==ms)return y}const a=Nd(e,t,n,i,ms);if(a!==ms)return a}return Od(t,n,i,o)}function Nd(e,t,n,i,o){const a=function gm(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(or)?e[or]:void 0;return"number"==typeof t?t>=0?t&Dd:Pd:t}(n);if("function"==typeof a){if(!Tf(t,e,i))return i&ke.Host?Fa(o,0,i):Od(t,n,i,o);try{let y;if(y=a(i),null!=y||i&ke.Optional)return y;Ce()}finally{vd()}}else if("number"==typeof a){let y=null,E=kl(e,t),F=Qs,re=i&ke.Host?t[Ti][ni]:null;for((-1===E||i&ke.SkipSelf)&&(F=-1===E?xl(e,t):t[E+8],F!==Qs&&Rd(i,!1)?(y=t[kt],E=ul(F),t=dl(F,t)):E=-1);-1!==E;){const me=t[kt];if(Fl(a,E,me.data)){const Ne=Mf(E,t,n,y,i,re);if(Ne!==ms)return Ne}F=t[E+8],F!==Qs&&Rd(i,t[kt].data[E+8]===re)&&Fl(a,E,t)?(y=me,E=ul(F),t=dl(F,t)):E=-1}}return o}function Mf(e,t,n,i,o,a){const y=t[kt],E=y.data[e+8],me=La(E,y,n,null==i?Ws(E)&&Jc:i!=y&&!!(3&E.type),o&ke.Host&&a===E);return null!==me?Js(t,y,me,E):ms}function La(e,t,n,i,o){const a=e.providerIndexes,y=t.data,E=1048575&a,F=e.directiveStart,me=a>>20,Qe=o?E+me:e.directiveEnd;for(let rt=i?E:E+me;rt<Qe;rt++){const ft=y[rt];if(rt<F&&n===ft||rt>=F&&ft.type===n)return rt}if(o){const rt=y[F];if(rt&&ss(rt)&&rt.type===n)return F}return null}function Js(e,t,n,i){let o=e[n];const a=t.data;if(function Sd(e){return e instanceof Ys}(o)){const y=o;y.resolving&&function T(e,t){throw t&&t.join(" > "),new at(-200,e)}(function nt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():un(e)}(a[n]));const E=Pl(y.canSeeViewProviders);y.resolving=!0;const re=y.injectImpl?Et(y.injectImpl):null;Tf(e,i,ke.Default);try{o=e[n]=y.factory(void 0,a,e,i),t.firstCreatePass&&n>=i.directiveStart&&function hm(e,t,n){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:a}=t.type.prototype;if(i){const y=Qt(t);(n.preOrderHooks??=[]).push(e,y),(n.preOrderCheckHooks??=[]).push(e,y)}o&&(n.preOrderHooks??=[]).push(0-e,o),a&&((n.preOrderHooks??=[]).push(e,a),(n.preOrderCheckHooks??=[]).push(e,a))}(n,a[n],t)}finally{null!==re&&Et(re),Pl(E),y.resolving=!1,vd()}}return o}function Fl(e,t,n){return!!(n[t+(e>>Id)]&1<<e)}function Rd(e,t){return!(e&ke.Self||e&ke.Host&&t)}class Gi{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,i){return eu(this._tNode,this._lView,t,no(i),n)}}function Pd(){return new Gi(xr(),Mt())}function tu(e){return Ht(()=>{const t=e.prototype.constructor,n=t[Wn]||Ll(t),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const a=o[Wn]||Ll(o);if(a&&a!==n)return a;o=Object.getPrototypeOf(o)}return a=>new a})}function Ll(e){return ot(e)?()=>{const t=Ll(qe(e));return t&&t()}:pi(e)}function Of(e){const t=e[kt],n=t.type;return 2===n?t.declTNode:1===n?e[ni]:null}function nu(e){return function fl(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let o=0;for(;o<i;){const a=n[o];if(Yi(a))break;if(0===a)o+=2;else if("number"==typeof a)for(o++;o<i&&"string"==typeof n[o];)o++;else{if(a===t)return n[o+1];o+=2}}}return null}(xr(),e)}function Pf(e,t=null,n=null,i){const o=ou(e,t,n,i);return o.resolveInjectorInitializers(),o}function ou(e,t=null,n=null,i,o=new Set){const a=[n||Hn,cn(e)];return i=i||("object"==typeof e?void 0:Bn(e)),new la(a,t||Gs(),i||null,o)}let Xo=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Qn;static#t=this.NULL=new wi;static create(n,i){if(Array.isArray(n))return Pf({name:""},i,n,"");{const o=n.name??"";return Pf({name:o},n.parent,n.providers,o)}}static#n=this.\u0275prov=vn({token:e,providedIn:"any",factory:()=>Ir(Wo)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function Bd(e){return e.ngOriginalError}class Zs{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Bd(t);for(;n&&Bd(n);)n=Bd(n);return n||null}}const xf=new yt("",{providedIn:"root",factory:()=>ln(Zs).handleError.bind(void 0)});let Ba=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Em;static#t=this.__NG_ENV_ID__=n=>n}return e})();class Tm extends Ba{constructor(t){super(),this._lView=t}onDestroy(t){return Il(this._lView,t),()=>function ld(e,t){if(null===e[os])return;const n=e[os].indexOf(t);-1!==n&&e[os].splice(n,1)}(this._lView,t)}}function Em(){return new Tm(Mt())}function Am(){return pl(xr(),Mt())}function pl(e,t){return new Hl(lo(e,t))}let Hl=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=Am}return e})();function Ff(e){return e instanceof Hl?e.nativeElement:e}function Ud(e){return t=>{setTimeout(e,void 0,t)}}const Ps=class Hd extends ct.B{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,Ja()&&(this.destroyRef=ln(Ba,{optional:!0})??void 0)}emit(t){const n=P(null);try{super.next(t)}finally{P(n)}}subscribe(t,n,i){let o=t,a=n||(()=>null),y=i;if(t&&"object"==typeof t){const F=t;o=F.next?.bind(F),a=F.error?.bind(F),y=F.complete?.bind(F)}this.__isAsync&&(a=Ud(a),o&&(o=Ud(o)),y&&(y=Ud(y)));const E=super.subscribe({next:o,error:a,complete:y});return t instanceof St.yU&&t.add(E),E}};function wm(){return this._results[Symbol.iterator]()}class Vd{static#e=Symbol.iterator;get changes(){return this._changes??=new Ps}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=Vd.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=wm)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const i=function Lr(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Jo(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let o=e[i],a=t[i];if(n&&(o=n(o),a=n(a)),a!==o)return!1}return!0}(this._results,i,n))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function Vl(e){return!(128&~e.flags)}const jl=new Map;let Dm=0;const Kd="__ngContext__";function Po(e,t){ao(t)?(e[Kd]=t[da],function Mm(e){jl.set(e[da],e)}(t)):e[Kd]=t}function M(e){return Te(e[rs])}function le(e){return Te(e[yi])}function Te(e){for(;null!==e&&!Oi(e);)e=e[yi];return e}let Kr;function to(e){Kr=e}function ii(){if(void 0!==Kr)return Kr;if(typeof document<"u")return document;throw new at(210,!1)}const co=new yt("",{providedIn:"root",factory:()=>vs}),vs="ng",Eo=new yt(""),ks=new yt("",{providedIn:"platform",factory:()=>"unknown"}),Qo=new yt(""),ys=new yt("",{providedIn:"root",factory:()=>ii().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Qd=()=>null;function Jl(e,t,n=!1){return Qd(e,t,n)}const Lm=new yt("",{providedIn:"root",factory:()=>!1});let th,nh;function ec(e){return function $f(){if(void 0===th&&(th=null,hn.trustedTypes))try{th=hn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return th}()?.createHTML(e)||e}function Wf(){if(void 0===nh&&(nh=null,hn.trustedTypes))try{nh=hn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return nh}function Hm(e){return Wf()?.createHTML(e)||e}function Vm(e){return Wf()?.createScriptURL(e)||e}class gl{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${wt})`}}class oT extends gl{getTypeName(){return"HTML"}}class sT extends gl{getTypeName(){return"Style"}}class aT extends gl{getTypeName(){return"Script"}}class lT extends gl{getTypeName(){return"URL"}}class cT extends gl{getTypeName(){return"ResourceURL"}}function Ea(e){return e instanceof gl?e.changingThisBreaksApplicationSecurity:e}function tc(e,t){const n=function uT(e){return e instanceof gl&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${wt})`)}return n===t}function dT(e){return new oT(e)}function hT(e){return new sT(e)}function fT(e){return new aT(e)}function pT(e){return new lT(e)}function gT(e){return new cT(e)}function Gm(e){const t=new vT(e);return function yT(){try{return!!(new window.DOMParser).parseFromString(ec(""),"text/html")}catch{return!1}}()?new mT(t):t}class mT{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(ec(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class vT{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=ec(t),n}}const _T=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function rh(e){return(e=String(e)).match(_T)?e:"unsafe:"+e}function Sa(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function gu(...e){const t={};for(const n of e)for(const i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}const jm=Sa("area,br,col,hr,img,wbr"),$m=Sa("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Wm=Sa("rp,rt"),Kf=gu(jm,gu($m,Sa("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),gu(Wm,Sa("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),gu(Wm,$m)),zf=Sa("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Km=gu(zf,Sa("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Sa("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),bT=Sa("script,style,template");class CT{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,i=!0,o=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild)o.push(n),n=ST(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let a=ET(n);if(a){n=a;break}n=o.pop()}return this.buf.join("")}startElement(t){const n=zm(t).toLowerCase();if(!Kf.hasOwnProperty(n))return this.sanitizedSomething=!0,!bT.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const i=t.attributes;for(let o=0;o<i.length;o++){const a=i.item(o),y=a.name,E=y.toLowerCase();if(!Km.hasOwnProperty(E)){this.sanitizedSomething=!0;continue}let F=a.value;zf[E]&&(F=rh(F)),this.buf.push(" ",y,'="',qm(F),'"')}return this.buf.push(">"),!0}endElement(t){const n=zm(t).toLowerCase();Kf.hasOwnProperty(n)&&!jm.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(qm(t))}}function ET(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw Xm(t);return t}function ST(e){const t=e.firstChild;if(t&&function TT(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw Xm(t);return t}function zm(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function Xm(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const AT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wT=/([^\#-~ |!])/g;function qm(e){return e.replace(/&/g,"&amp;").replace(AT,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(wT,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ih;function Qm(e,t){let n=null;try{ih=ih||Gm(e);let i=t?String(t):"";n=ih.getInertBodyElement(i);let o=5,a=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=a,a=n.innerHTML,n=ih.getInertBodyElement(i)}while(i!==a);return ec((new CT).sanitizeChildren(Xf(n)||n))}finally{if(n){const i=Xf(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Xf(e){return"content"in e&&function DT(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ml=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(ml||{});function Ym(e){const t=mu();return t?Hm(t.sanitize(ml.HTML,e)||""):tc(e,"HTML")?Hm(Ea(e)):Qm(ii(),un(e))}function qf(e){const t=mu();return t?t.sanitize(ml.URL,e)||"":tc(e,"URL")?Ea(e):rh(un(e))}function Jm(e){const t=mu();if(t)return Vm(t.sanitize(ml.RESOURCE_URL,e)||"");if(tc(e,"ResourceURL"))return Vm(Ea(e));throw new at(904,!1)}function Zm(e,t,n){return function RT(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Jm:qf}(t,n)(e)}function mu(){const e=Mt();return e&&e[jo].sanitizer}const PT=/^>|^->|<!--|-->|--!>|<!-$/g,kT=/(<|>)/g,xT="\u200b$1\u200b";function rv(e){return e.ownerDocument.defaultView}function iv(e){return e.ownerDocument}function _s(e){return e instanceof Function?e():e}var ah=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ah||{});let Zf;function ep(e,t){return Zf(e,t)}function rc(e,t,n,i,o){if(null!=i){let a,y=!1;Oi(i)?a=i:ao(i)&&(y=!0,i=i[sr]);const E=Ur(i);0===e&&null!==n?null==o?fv(t,n,E):vl(t,n,E,o||null,!0):1===e&&null!==n?vl(t,n,E,o||null,!0):2===e?function _u(e,t,n){const i=uh(e,t);i&&function JT(e,t,n,i){e.removeChild(t,n,i)}(e,i,t,n)}(t,E,y):3===e&&t.destroyNode(E),null!=a&&function tE(e,t,n,i,o){const a=n[Co];a!==Ur(n)&&rc(t,e,i,a,o);for(let E=_i;E<n.length;E++){const F=n[E];hh(F[kt],F,e,t,i,a)}}(t,e,a,n,o)}}function tp(e,t){return e.createText(t)}function np(e,t){return e.createComment(function ev(e){return e.replace(PT,t=>t.replace(kT,xT))}(t))}function lh(e,t,n){return e.createElement(t,n)}function uv(e,t){t[jo].changeDetectionScheduler?.notify(1),hh(e,t,t[Sn],2,null,null)}function dv(e,t){const n=e[No],i=n.indexOf(t);n.splice(i,1)}function vu(e,t){if(e.length<=_i)return;const n=_i+t,i=e[n];if(i){const o=i[Za];null!==o&&o!==e&&dv(o,i),t>0&&(e[n-1][yi]=i[yi]);const a=ro(e,_i+t);!function WT(e,t){uv(e,t),t[sr]=null,t[ni]=null}(i[kt],i);const y=a[is];null!==y&&y.detachView(a[kt]),i[ur]=null,i[yi]=null,i[dn]&=-129}return i}function ch(e,t){if(!(256&t[dn])){const n=t[Sn];n.destroyNode&&hh(e,t,n,3,null,null),function zT(e){let t=e[rs];if(!t)return rp(e[kt],e);for(;t;){let n=null;if(ao(t))n=t[rs];else{const i=t[_i];i&&(n=i)}if(!n){for(;t&&!t[yi]&&t!==e;)ao(t)&&rp(t[kt],t),t=t[ur];null===t&&(t=e),ao(t)&&rp(t[kt],t),n=t&&t[yi]}t=n}}(t)}}function rp(e,t){if(256&t[dn])return;const n=P(null);try{t[dn]&=-129,t[dn]|=256,t[$r]&&function te(e){if(Y(e),W(e))for(let t=0;t<e.producerNode.length;t++)z(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}(t[$r]),function YT(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const o=t[n[i]];if(!(o instanceof Ys)){const a=n[i+1];if(Array.isArray(a))for(let y=0;y<a.length;y+=2){const E=o[a[y]],F=a[y+1];eo(4,E,F);try{F.call(E)}finally{eo(5,E,F)}}else{eo(4,o,a);try{a.call(o)}finally{eo(5,o,a)}}}}}(e,t),function QT(e,t){const n=e.cleanup,i=t[gs];if(null!==n)for(let a=0;a<n.length-1;a+=2)if("string"==typeof n[a]){const y=n[a+3];y>=0?i[y]():i[-y].unsubscribe(),a+=2}else n[a].call(i[n[a+1]]);null!==i&&(t[gs]=null);const o=t[os];if(null!==o){t[os]=null;for(let a=0;a<o.length;a++)(0,o[a])()}}(e,t),1===t[kt].type&&t[Sn].destroy();const i=t[Za];if(null!==i&&Oi(t[ur])){i!==t[ur]&&dv(i,t);const o=t[is];null!==o&&o.detachView(e)}!function Om(e){jl.delete(e[da])}(t)}finally{P(n)}}function ip(e,t,n){return hv(e,t.parent,n)}function hv(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[sr];{const{componentOffset:o}=i;if(o>-1){const{encapsulation:a}=e.data[i.directiveStart+o];if(a===Di.None||a===Di.Emulated)return null}return lo(i,n)}}function vl(e,t,n,i,o){e.insertBefore(t,n,i,o)}function fv(e,t,n){e.appendChild(t,n)}function pv(e,t,n,i,o){null!==i?vl(e,t,n,i,o):fv(e,t,n)}function uh(e,t){return e.parentNode(t)}function gv(e,t,n){return vv(e,t,n)}function mv(e,t,n){return 40&e.type?lo(e,n):null}let op,vv=mv;function yv(e,t){vv=e,op=t}function dh(e,t,n,i){const o=ip(e,i,t),a=t[Sn],E=gv(i.parent||t[ni],i,t);if(null!=o)if(Array.isArray(n))for(let F=0;F<n.length;F++)pv(a,o,n[F],E,!1);else pv(a,o,n,E,!1);void 0!==op&&op(a,i,t,n,o)}function yu(e,t){if(null!==t){const n=t.type;if(3&n)return lo(t,e);if(4&n)return sp(-1,e[t.index]);if(8&n){const i=t.child;if(null!==i)return yu(e,i);{const o=e[t.index];return Oi(o)?sp(-1,o):Ur(o)}}if(32&n)return ep(t,e)()||Ur(e[t.index]);{const i=_v(e,t);return null!==i?Array.isArray(i)?i[0]:yu(Na(e[Ti]),i):yu(e,t.next)}}return null}function _v(e,t){return null!==t?e[Ti][ni].projection[t.projection]:null}function sp(e,t){const n=_i+e+1;if(n<t.length){const i=t[n],o=i[kt].firstChild;if(null!==o)return yu(i,o)}return t[Co]}function ap(e,t,n,i,o,a,y){for(;null!=n;){const E=i[n.index],F=n.type;if(y&&0===t&&(E&&Po(Ur(E),i),n.flags|=2),32&~n.flags)if(8&F)ap(e,t,n.child,i,o,a,!1),rc(t,e,o,E,a);else if(32&F){const re=ep(n,i);let me;for(;me=re();)rc(t,e,o,me,a);rc(t,e,o,E,a)}else 16&F?Cv(e,t,i,n,o,a):rc(t,e,o,E,a);n=y?n.projectionNext:n.next}}function hh(e,t,n,i,o,a){ap(n,i,e.firstChild,t,o,a,!1)}function Cv(e,t,n,i,o,a){const y=n[Ti],F=y[ni].projection[i.projection];if(Array.isArray(F))for(let re=0;re<F.length;re++)rc(t,e,o,F[re],a);else{let re=F;const me=y[ur];Vl(i)&&(re.flags|=128),ap(e,t,re,me,o,a,!0)}}function Tv(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Ev(e,t,n){const{mergedAttrs:i,classes:o,styles:a}=n;null!==i&&Ko(e,t,i),null!==o&&Tv(e,t,o),null!==a&&function rE(e,t,n){e.setAttribute(t,"style",n)}(e,t,a)}const Kn={};function Sv(e=1){Av(ar(),Mt(),Ro()+e,!1)}function Av(e,t,n,i){if(!i)if(3&~t[dn]){const a=e.preOrderHooks;null!==a&&qc(t,a,0,n)}else{const a=e.preOrderCheckHooks;null!==a&&Xc(t,a,n)}Ns(n)}function ic(e,t=ke.Default){const n=Mt();return null===n?Ir(e,t):eu(xr(),n,qe(e),t)}function wv(){throw new Error("invalid")}function Dv(e,t,n,i,o,a){const y=P(null);try{let E=null;o&Ui.SignalBased&&(E=t[i][H]),null!==E&&void 0!==E.transformFn&&(a=E.transformFn(a)),o&Ui.HasDecoratorInputTransform&&(a=e.inputTransforms[i].call(t,a)),null!==e.setInput?e.setInput(t,E,a,n,i):mt(t,E,i,a)}finally{P(y)}}function fh(e,t,n,i,o,a,y,E,F,re,me){const Ne=t.blueprint.slice();return Ne[sr]=o,Ne[dn]=204|i,(null!==re||e&&2048&e[dn])&&(Ne[dn]|=2048),mf(Ne),Ne[ur]=Ne[$s]=e,Ne[Yn]=n,Ne[jo]=y||e&&e[jo],Ne[Sn]=E||e&&e[Sn],Ne[Zi]=F||e&&e[Zi]||null,Ne[ni]=a,Ne[da]=function Im(){return Dm++}(),Ne[Li]=me,Ne[xc]=re,Ne[Ti]=2==t.type?e[Ti]:Ne,Ne}function oc(e,t,n,i,o){let a=e.data[t];if(null===a)a=lp(e,t,n,i,o),function am(){return xn.lFrame.inI18n}()&&(a.flags|=32);else if(64&a.type){a.type=n,a.value=i,a.attrs=o;const y=al();a.injectorIndex=null===y?-1:y.injectorIndex}return As(a,!0),a}function lp(e,t,n,i,o){const a=dd(),y=Wc(),F=e.data[t]=function dE(e,t,n,i,o,a){let y=t?t.injectorIndex:-1,E=0;return Vr()&&(E|=128),{type:n,index:i,insertBeforeIndex:null,injectorIndex:y,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:E,providerIndexes:0,value:o,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,y?a:a&&a.parent,n,t,i,o);return null===e.firstChild&&(e.firstChild=F),null!==a&&(y?null==a.child&&null!==F.parent&&(a.child=F):null===a.next&&(a.next=F,F.prev=a)),F}function bu(e,t,n,i){if(0===n)return-1;const o=t.length;for(let a=0;a<n;a++)t.push(i),e.blueprint.push(i),e.data.push(null);return o}function Iv(e,t,n,i,o){const a=Ro(),y=2&i;try{Ns(-1),y&&t.length>kn&&Av(e,t,kn,!1),eo(y?2:0,o),n(i,o)}finally{Ns(a),eo(y?3:1,o)}}function cp(e,t,n){if(pa(t)){const i=P(null);try{const a=t.directiveEnd;for(let y=t.directiveStart;y<a;y++){const E=e.data[y];E.contentQueries&&E.contentQueries(1,n[y],y)}}finally{P(i)}}}function up(e,t,n){ls()&&(function yE(e,t,n,i){const o=n.directiveStart,a=n.directiveEnd;Ws(n)&&function AE(e,t,n){const i=lo(t,e),o=Mv(n);let y=16;n.signals?y=4096:n.onPush&&(y=64);const E=ph(e,fh(e,o,null,y,i,t,null,e[jo].rendererFactory.createRenderer(i,n),null,null,null));e[t.index]=E}(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||hl(n,t),Po(i,t);const y=n.initialInputs;for(let E=o;E<a;E++){const F=e.data[E],re=Js(t,e,E,n);Po(re,t),null!==y&&wE(0,E-o,re,F,0,y),ss(F)&&(as(n.index,t)[Yn]=Js(t,e,E,n))}}(e,t,n,lo(n,t)),!(64&~n.flags)&&kv(e,t,n))}function dp(e,t,n=lo){const i=t.localNames;if(null!==i){let o=t.index+1;for(let a=0;a<i.length;a+=2){const y=i[a+1],E=-1===y?n(t,e):e[y];e[o++]=E}}}function Mv(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=hp(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function hp(e,t,n,i,o,a,y,E,F,re,me){const Ne=kn+i,Qe=Ne+o,rt=function oE(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:Kn);return n}(Ne,Qe),ft="function"==typeof re?re():re;return rt[kt]={type:e,blueprint:rt,template:n,queries:null,viewQuery:E,declTNode:t,data:rt.slice().fill(null,Ne),bindingStartIndex:Ne,expandoStartIndex:Qe,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof a?a():a,pipeRegistry:"function"==typeof y?y():y,firstChild:null,schemas:F,consts:ft,incompleteFirstPass:!1,ssrId:me}}let Ov=()=>null;function Nv(e,t,n,i,o){for(let a in t){if(!t.hasOwnProperty(a))continue;const y=t[a];if(void 0===y)continue;i??={};let E,F=Ui.None;Array.isArray(y)?(E=y[0],F=y[1]):E=y;let re=a;if(null!==o){if(!o.hasOwnProperty(a))continue;re=o[a]}0===e?Rv(i,n,re,E,F):Rv(i,n,re,E)}return i}function Rv(e,t,n,i,o){let a;e.hasOwnProperty(n)?(a=e[n]).push(t,i):a=e[n]=[t,i],void 0!==o&&a.push(o)}function ds(e,t,n,i,o,a,y,E){const F=lo(t,n);let me,re=t.inputs;!E&&null!=re&&(me=re[i])?(vp(e,n,me,i,o),Ws(t)&&function pE(e,t){const n=as(t,e);16&n[dn]||(n[dn]|=64)}(n,t.index)):3&t.type&&(i=function fE(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),o=null!=y?y(o,t.value||"",i):o,a.setProperty(F,i,o))}function fp(e,t,n,i){if(ls()){const o=null===i?null:{"":-1},a=function bE(e,t){const n=e.directiveRegistry;let i=null,o=null;if(n)for(let a=0;a<n.length;a++){const y=n[a];if(A(t,y.selectors,!1))if(i||(i=[]),ss(y))if(null!==y.findHostDirectiveDefs){const E=[];o=o||new Map,y.findHostDirectiveDefs(y,E,o),i.unshift(...E,y),pp(e,t,E.length)}else i.unshift(y),pp(e,t,0);else o=o||new Map,y.findHostDirectiveDefs?.(y,i,o),i.push(y)}return null===i?null:[i,o]}(e,n);let y,E;null===a?y=E=null:[y,E]=a,null!==y&&Pv(e,t,n,y,o,E),o&&function CE(e,t,n){if(t){const i=e.localNames=[];for(let o=0;o<t.length;o+=2){const a=n[t[o+1]];if(null==a)throw new at(-301,!1);i.push(t[o],a)}}}(n,i,o)}n.mergedAttrs=zo(n.mergedAttrs,n.attrs)}function Pv(e,t,n,i,o,a){for(let re=0;re<i.length;re++)xa(hl(n,t),e,i[re].type);!function EE(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,i.length);for(let re=0;re<i.length;re++){const me=i[re];me.providersResolver&&me.providersResolver(me)}let y=!1,E=!1,F=bu(e,t,i.length,null);for(let re=0;re<i.length;re++){const me=i[re];n.mergedAttrs=zo(n.mergedAttrs,me.hostAttrs),SE(e,n,t,F,me),TE(F,me,o),null!==me.contentQueries&&(n.flags|=4),(null!==me.hostBindings||null!==me.hostAttrs||0!==me.hostVars)&&(n.flags|=64);const Ne=me.type.prototype;!y&&(Ne.ngOnChanges||Ne.ngOnInit||Ne.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),y=!0),!E&&(Ne.ngOnChanges||Ne.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),E=!0),F++}!function hE(e,t,n){const o=t.directiveEnd,a=e.data,y=t.attrs,E=[];let F=null,re=null;for(let me=t.directiveStart;me<o;me++){const Ne=a[me],Qe=n?n.get(Ne):null,ft=Qe?Qe.outputs:null;F=Nv(0,Ne.inputs,me,F,Qe?Qe.inputs:null),re=Nv(1,Ne.outputs,me,re,ft);const Ot=null===F||null===y||De(t)?null:DE(F,me,y);E.push(Ot)}null!==F&&(F.hasOwnProperty("class")&&(t.flags|=8),F.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=E,t.inputs=F,t.outputs=re}(e,n,a)}function kv(e,t,n){const i=n.directiveStart,o=n.directiveEnd,a=n.index,y=function cm(){return xn.lFrame.currentDirectiveIndex}();try{Ns(a);for(let E=i;E<o;E++){const F=e.data[E],re=t[E];hd(E),(null!==F.hostBindings||0!==F.hostVars||null!==F.hostAttrs)&&_E(F,re)}}finally{Ns(-1),hd(y)}}function _E(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function pp(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function TE(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;ss(t)&&(n[""]=e)}}function SE(e,t,n,i,o){e.data[i]=o;const a=o.factory||(o.factory=pi(o.type)),y=new Ys(a,ss(o),ic);e.blueprint[i]=y,n[i]=y,function mE(e,t,n,i,o){const a=o.hostBindings;if(a){let y=e.hostBindingOpCodes;null===y&&(y=e.hostBindingOpCodes=[]);const E=~t.index;(function vE(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(y)!=E&&y.push(E),y.push(n,i,a)}}(e,t,i,bu(e,n,o.hostVars,Kn),o)}function ra(e,t,n,i,o,a){const y=lo(e,t);!function gp(e,t,n,i,o,a,y){if(null==a)e.removeAttribute(t,o,n);else{const E=null==y?un(a):y(a,i||"",o);e.setAttribute(t,o,E,n)}}(t[Sn],y,a,e.value,n,i,o)}function wE(e,t,n,i,o,a){const y=a[t];if(null!==y)for(let E=0;E<y.length;)Dv(i,n,y[E++],y[E++],y[E++],y[E++])}function DE(e,t,n){let i=null,o=0;for(;o<n.length;){const a=n[o];if(0!==a)if(5!==a){if("number"==typeof a)break;if(e.hasOwnProperty(a)){null===i&&(i=[]);const y=e[a];for(let E=0;E<y.length;E+=3)if(y[E]===t){i.push(a,y[E+1],y[E+2],n[o+1]);break}}o+=2}else o+=2;else o+=4}return i}function xv(e,t,n,i){return[e,!0,0,t,null,i,null,n,null,null]}function Fv(e,t){const n=e.contentQueries;if(null!==n){const i=P(null);try{for(let o=0;o<n.length;o+=2){const y=n[o+1];if(-1!==y){const E=e.data[y];Kc(n[o]),E.contentQueries(2,t[y],y)}}}finally{P(i)}}}function ph(e,t){return e[rs]?e[ca][yi]=t:e[rs]=t,e[ca]=t,t}function mp(e,t,n){Kc(0);const i=P(null);try{t(e,n)}finally{P(i)}}function Lv(e){return e[gs]||(e[gs]=[])}function Bv(e){return e.cleanup||(e.cleanup=[])}function gh(e,t){const n=e[Zi],i=n?n.get(Zs,null):null;i&&i.handleError(t)}function vp(e,t,n,i,o){for(let a=0;a<n.length;){const y=n[a++],E=n[a++],F=n[a++];Dv(e.data[y],t[y],i,E,F,o)}}function Aa(e,t,n){const i=Oa(t,e);!function cv(e,t,n){e.setValue(t,n)}(e[Sn],i,n)}function IE(e,t){const n=as(t,e),i=n[kt];!function ME(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n);const o=n[sr];null!==o&&null===n[Li]&&(n[Li]=Jl(o,n[Zi])),yp(i,n,n[Yn])}function yp(e,t,n){gd(t);try{const i=e.viewQuery;null!==i&&mp(1,i,n);const o=e.template;null!==o&&Iv(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[is]?.finishViewCreation(e),e.staticContentQueries&&Fv(e,t),e.staticViewQueries&&mp(2,e.viewQuery,n);const a=e.components;null!==a&&function OE(e,t){for(let n=0;n<t.length;n++)IE(e,t[n])}(t,a)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{t[dn]&=-5,yd()}}function Cu(e,t,n,i){const o=P(null);try{const a=t.tView,F=fh(e,a,n,4096&e[dn]?4096:16,null,t,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null);F[Za]=e[t.index];const me=e[is];return null!==me&&(F[is]=me.createEmbeddedView(a)),yp(a,F,n),F}finally{P(o)}}function Uv(e,t){const n=_i+t;if(n<e.length)return e[n]}function sc(e,t){return!t||null===t.firstChild||Vl(e)}function Tu(e,t,n,i=!0){const o=t[kt];if(function XT(e,t,n,i){const o=_i+i,a=n.length;i>0&&(n[o-1][yi]=t),i<a-_i?(t[yi]=n[o],$o(n,_i+i,t)):(n.push(t),t[yi]=null),t[ur]=n;const y=t[Za];null!==y&&n!==y&&function qT(e,t){const n=e[No];t[Ti]!==t[ur][ur][Ti]&&(e[dn]|=el.HasTransplantedViews),null===n?e[No]=[t]:n.push(t)}(y,t);const E=t[is];null!==E&&E.insertView(e),ad(t),t[dn]|=128}(o,t,e,n),i){const y=sp(n,e),E=t[Sn],F=uh(E,e[Co]);null!==F&&function KT(e,t,n,i,o,a){i[sr]=o,i[ni]=t,hh(e,i,n,1,o,a)}(o,e[ni],E,t,F,y)}const a=t[Li];null!==a&&null!==a.firstChild&&(a.firstChild=null)}function _p(e,t){const n=vu(e,t);return void 0!==n&&ch(n[kt],n),n}function Eu(e,t,n,i,o=!1){for(;null!==n;){const a=t[n.index];null!==a&&i.push(Ur(a)),Oi(a)&&Vv(a,i);const y=n.type;if(8&y)Eu(e,t,n.child,i);else if(32&y){const E=ep(n,t);let F;for(;F=E();)i.push(F)}else if(16&y){const E=_v(t,n);if(Array.isArray(E))i.push(...E);else{const F=Na(t[Ti]);Eu(F[kt],F,E,i,!0)}}n=o?n.projectionNext:n.next}return i}function Vv(e,t){for(let n=_i;n<e.length;n++){const i=e[n],o=i[kt].firstChild;null!==o&&Eu(i[kt],i,o,t)}e[Co]!==e[sr]&&t.push(e[Co])}let Gv=[];const kE={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Dl(e.lView)},consumerOnSignalRead(){this.lView[$r]=this}},jv=100;function mh(e,t=!0,n=0){const i=e[jo],o=i.rendererFactory;o.begin?.();try{!function xE(e,t){bp(e,t);let n=0;for(;sd(e);){if(n===jv)throw new at(103,!1);n++,bp(e,1)}}(e,n)}catch(y){throw t&&gh(e,y),y}finally{o.end?.(),i.inlineEffectRunner?.flush()}}function FE(e,t,n,i){const o=t[dn];if(!(256&~o))return;t[jo].inlineEffectRunner?.flush(),gd(t);let y=null,E=null;(function LE(e){return 2!==e.type})(e)&&(E=function NE(e){return e[$r]??function RE(e){const t=Gv.pop()??Object.create(kE);return t.lView=e,t}(e)}(t),y=function K(e){return e&&(e.nextProducerIndex=0),P(e)}(E));try{mf(t),function Xs(e){return xn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Iv(e,t,n,2,i);const F=!(3&~o);if(F){const Ne=e.preOrderCheckHooks;null!==Ne&&Xc(t,Ne,null)}else{const Ne=e.preOrderHooks;null!==Ne&&qc(t,Ne,0,null),Rl(t,0)}if(function BE(e){for(let t=M(e);null!==t;t=le(t)){if(!(t[dn]&el.HasTransplantedViews))continue;const n=t[No];for(let i=0;i<n.length;i++){im(n[i])}}}(t),$v(t,0),null!==e.contentQueries&&Fv(e,t),F){const Ne=e.contentCheckHooks;null!==Ne&&Xc(t,Ne)}else{const Ne=e.contentHooks;null!==Ne&&qc(t,Ne,1),Rl(t,1)}!function iE(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let i=0;i<n.length;i++){const o=n[i];if(o<0)Ns(~o);else{const a=o,y=n[++i],E=n[++i];lm(y,a),E(2,t[a])}}}finally{Ns(-1)}}(e,t);const re=e.components;null!==re&&Kv(t,re,0);const me=e.viewQuery;if(null!==me&&mp(2,me,i),F){const Ne=e.viewCheckHooks;null!==Ne&&Xc(t,Ne)}else{const Ne=e.viewHooks;null!==Ne&&qc(t,Ne,2),Rl(t,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[bo]){for(const Ne of t[bo])Ne();t[bo]=null}t[dn]&=-73}catch(F){throw Dl(t),F}finally{null!==E&&(function de(e,t){if(P(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(W(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)z(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(E,y),function PE(e){e.lView[$r]!==e&&(e.lView=null,Gv.push(e))}(E)),yd()}}function $v(e,t){for(let n=M(e);null!==n;n=le(n))for(let i=_i;i<n.length;i++)Wv(n[i],t)}function HE(e,t,n){Wv(as(t,e),n)}function Wv(e,t){od(e)&&bp(e,t)}function bp(e,t){const i=e[kt],o=e[dn],a=e[$r];let y=!!(0===t&&16&o);if(y||=!!(64&o&&0===t),y||=!!(1024&o),y||=!(!a?.dirty||!ie(a)),a&&(a.dirty=!1),e[dn]&=-9217,y)FE(i,e,i.template,e[Yn]);else if(8192&o){$v(e,1);const E=i.components;null!==E&&Kv(e,E,1)}}function Kv(e,t,n){for(let i=0;i<t.length;i++)HE(e,t[i],n)}function Su(e){for(e[jo].changeDetectionScheduler?.notify();e;){e[dn]|=64;const t=Na(e);if(nl(e)&&!t)return e;e=t}return null}class Au{get rootNodes(){const t=this._lView,n=t[kt];return Eu(n,t,n.firstChild,[])}constructor(t,n,i=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=i,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Yn]}set context(t){this._lView[Yn]=t}get destroyed(){return!(256&~this._lView[dn])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[ur];if(Oi(t)){const n=t[8],i=n?n.indexOf(this):-1;i>-1&&(vu(t,i),ro(n,i))}this._attachedToViewContainer=!1}ch(this._lView[kt],this._lView)}onDestroy(t){Il(this._lView,t)}markForCheck(){Su(this._cdRefInjectingView||this._lView)}detach(){this._lView[dn]&=-129}reattach(){ad(this._lView),this._lView[dn]|=128}detectChanges(){this._lView[dn]|=1024,mh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new at(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,uv(this._lView[kt],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new at(902,!1);this._appRef=t,ad(this._lView)}}let wu=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=GE}return e})();const UE=wu,VE=class extends UE{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,i){const o=Cu(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:i});return new Au(o)}};function GE(){return vh(xr(),Mt())}function vh(e,t){return 4&e.type?new VE(t,e,pl(e,t)):null}let Jv=()=>null;function ac(e,t){return Jv(e,t)}class Th{}class h1{}class Zv{}class p1{resolveComponentFactory(t){throw function f1(e){const t=Error(`No component factory found for ${Bn(e)}.`);return t.ngComponent=e,t}(t)}}let Eh=(()=>{class e{static#e=this.NULL=new p1}return e})();class ty{}let g1=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function m1(){const e=Mt(),n=as(xr().index,e);return(ao(n)?n:e)[Sn]}()}return e})(),v1=(()=>{class e{static#e=this.\u0275prov=vn({token:e,providedIn:"root",factory:()=>null})}return e})();const wp={},ny=new Set;function ia(e){ny.has(e)||(ny.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function ry(...e){}class Ki{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ps(!1),this.onMicrotaskEmpty=new Ps(!1),this.onStable=new Ps(!1),this.onError=new Ps(!1),typeof Zone>"u")throw new at(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&n,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function y1(){const e="function"==typeof hn.requestAnimationFrame;let t=hn[e?"requestAnimationFrame":"setTimeout"],n=hn[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function C1(e){const t=()=>{!function b1(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(hn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ip(e),e.isCheckStableRunning=!0,Dp(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ip(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,o,a,y,E)=>{if(function T1(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(E))return n.invokeTask(o,a,y,E);try{return iy(e),n.invokeTask(o,a,y,E)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),oy(e)}},onInvoke:(n,i,o,a,y,E,F)=>{try{return iy(e),n.invoke(o,a,y,E,F)}finally{e.shouldCoalesceRunChangeDetection&&t(),oy(e)}},onHasTask:(n,i,o,a)=>{n.hasTask(o,a),i===o&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,Ip(e),Dp(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,i,o,a)=>(n.handleError(o,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ki.isInAngularZone())throw new at(909,!1)}static assertNotInAngularZone(){if(Ki.isInAngularZone())throw new at(909,!1)}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,o){const a=this._inner,y=a.scheduleEventTask("NgZoneEvent: "+o,t,_1,ry,ry);try{return a.runTask(y,n,i)}finally{a.cancelTask(y)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const _1={};function Dp(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ip(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function iy(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function oy(e){e._nesting--,Dp(e)}class sy{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ps,this.onMicrotaskEmpty=new Ps,this.onStable=new Ps,this.onError=new Ps}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,o){return t.apply(n,i)}}var yl=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(yl||{});const ay={destroy(){}};function ly(e,t){!t&&ns();const n=t?.injector??ln(Xo);if(!function ja(e){return"browser"===(e??ln(Xo)).get(ks)}(n))return ay;ia("NgAfterNextRender");const i=n.get(Nu),o=i.handler??=new uy,a=t?.phase??yl.MixedReadWrite,y=()=>{o.unregister(F),E()},E=n.get(Ba).onDestroy(y),F=_o(n,()=>new cy(a,()=>{y(),e()}));return o.register(F),{destroy:y}}class cy{constructor(t,n){this.phase=t,this.callbackFn=n,this.zone=ln(Ki),this.errorHandler=ln(Zs,{optional:!0}),ln(Th,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(t){this.errorHandler?.handleError(t)}}}class uy{constructor(){this.executingCallbacks=!1,this.buckets={[yl.EarlyRead]:new Set,[yl.Write]:new Set,[yl.MixedReadWrite]:new Set,[yl.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const n of t)n.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let Nu=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=vn({token:e,providedIn:"root",factory:()=>new e})}return e})();function $a(e){return!!Gr(e)}function Ah(e,t,n){let i=n?e.styles:null,o=n?e.classes:null,a=0;if(null!==t)for(let y=0;y<t.length;y++){const E=t[y];"number"==typeof E?a=E:1==a?o=jn(o,E):2==a&&(i=jn(i,E+": "+t[++y]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=o:e.classesWithoutHost=o}class fy extends Eh{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Mn(t);return new ku(n,this.ngModule)}}function py(e){const t=[];for(const n in e){if(!e.hasOwnProperty(n))continue;const i=e[n];void 0!==i&&t.push({propName:Array.isArray(i)?i[0]:i,templateName:n})}return t}class wh{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,i){i=no(i);const o=this.injector.get(t,wp,i);return o!==wp||n===wp?o:this.parentInjector.get(t,n,i)}}class ku extends Zv{get inputs(){const t=this.componentDef,n=t.inputTransforms,i=py(t.inputs);if(null!==n)for(const o of i)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return i}get outputs(){return py(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Vt(e){return e.map(gt).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,i,o){const a=P(null);try{let y=(o=o||this.ngModule)instanceof Hr?o:o?.injector;y&&null!==this.componentDef.getStandaloneInjector&&(y=this.componentDef.getStandaloneInjector(y)||y);const E=y?new wh(t,y):t,F=E.get(ty,null);if(null===F)throw new at(407,!1);const re=E.get(v1,null),Qe={rendererFactory:F,sanitizer:re,inlineEffectRunner:null,afterRenderEventManager:E.get(Nu,null),changeDetectionScheduler:E.get(Th,null)},rt=F.createRenderer(null,this.componentDef),ft=this.componentDef.selectors[0][0]||"div",Ot=i?function sE(e,t,n,i){const a=i.get(Lm,!1)||n===Di.ShadowDom,y=e.selectRootElement(t,a);return function aE(e){Ov(e)}(y),y}(rt,i,this.componentDef.encapsulation,E):lh(rt,ft,function D1(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(ft));let Bt=512;this.componentDef.signals?Bt|=4096:this.componentDef.onPush||(Bt|=16);let Xt=null;null!==Ot&&(Xt=Jl(Ot,E,!0));const Pt=hp(0,null,null,1,0,null,null,null,null,null,null),On=fh(null,Pt,null,Bt,null,null,Qe,rt,E,null,Xt);let Sr,oi;gd(On);try{const fo=this.componentDef;let fs,Pc=null;fo.findHostDirectiveDefs?(fs=[],Pc=new Map,fo.findHostDirectiveDefs(fo,fs,Pc),fs.push(fo)):fs=[fo];const KC=function M1(e,t){const n=e[kt],i=kn;return e[i]=t,oc(n,i,2,"#host",null)}(On,Ot),MM=function O1(e,t,n,i,o,a,y){const E=o[kt];!function N1(e,t,n,i){for(const o of e)t.mergedAttrs=zo(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Ah(t,t.mergedAttrs,!0),null!==n&&Ev(i,n,t))}(i,e,t,y);let F=null;null!==t&&(F=Jl(t,o[Zi]));const re=a.rendererFactory.createRenderer(t,n);let me=16;n.signals?me=4096:n.onPush&&(me=64);const Ne=fh(o,Mv(n),null,me,o[e.index],e,a,re,null,null,F);return E.firstCreatePass&&pp(E,e,i.length-1),ph(o,Ne),o[e.index]=Ne}(KC,Ot,fo,fs,On,Qe,rt);oi=wl(Pt,kn),Ot&&function P1(e,t,n,i){if(i)Ko(e,n,["ng-version","17.3.3"]);else{const{attrs:o,classes:a}=function Ut(e){const t=[],n=[];let i=1,o=2;for(;i<e.length;){let a=e[i];if("string"==typeof a)2===o?""!==a&&t.push(a,e[++i]):8===o&&n.push(a);else{if(!v(o))break;o=a}i++}return{attrs:t,classes:n}}(t.selectors[0]);o&&Ko(e,n,o),a&&a.length>0&&Tv(e,n,a.join(" "))}}(rt,fo,Ot,i),void 0!==n&&function k1(e,t,n){const i=e.projection=[];for(let o=0;o<t.length;o++){const a=n[o];i.push(null!=a?Array.from(a):null)}}(oi,this.ngContentSelectors,n),Sr=function R1(e,t,n,i,o,a){const y=xr(),E=o[kt],F=lo(y,o);Pv(E,o,y,n,null,i);for(let me=0;me<n.length;me++)Po(Js(o,E,y.directiveStart+me,y),o);kv(E,o,y),F&&Po(F,o);const re=Js(o,E,y.directiveStart+y.componentOffset,y);if(e[Yn]=o[Yn]=re,null!==a)for(const me of a)me(re,t);return cp(E,y,o),re}(MM,fo,fs,Pc,On,[x1]),yp(Pt,On,null)}finally{yd()}return new I1(this.componentType,Sr,pl(oi,On),On,oi)}finally{P(a)}}}class I1 extends h1{constructor(t,n,i,o,a){super(),this.location=i,this._rootLView=o,this._tNode=a,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new Au(o,void 0,!1),this.componentType=t}setInput(t,n){const i=this._tNode.inputs;let o;if(null!==i&&(o=i[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const a=this._rootLView;vp(a[kt],a,o,t,n),this.previousInputValues.set(t,n),Su(as(this._tNode.index,a))}}get injector(){return new Gi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function x1(){const e=xr();Nl(Mt()[kt],e)}let Dh=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=F1}return e})();function F1(){return vy(xr(),Mt())}const L1=Dh,gy=class extends L1{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return pl(this._hostTNode,this._hostLView)}get injector(){return new Gi(this._hostTNode,this._hostLView)}get parentInjector(){const t=xl(this._hostTNode,this._hostLView);if(Qc(t)){const n=dl(t,this._hostLView),i=ul(t);return new Gi(n[kt].data[i+8],n)}return new Gi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=my(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-_i}createEmbeddedView(t,n,i){let o,a;"number"==typeof i?o=i:null!=i&&(o=i.index,a=i.injector);const y=ac(this._lContainer,t.ssrId),E=t.createEmbeddedViewImpl(n||{},a,y);return this.insertImpl(E,o,sc(this._hostTNode,y)),E}createComponent(t,n,i,o,a){const y=t&&!function Nt(e){return"function"==typeof e}(t);let E;if(y)E=n;else{const ft=n||{};E=ft.index,i=ft.injector,o=ft.projectableNodes,a=ft.environmentInjector||ft.ngModuleRef}const F=y?t:new ku(Mn(t)),re=i||this.parentInjector;if(!a&&null==F.ngModule){const Ot=(y?re:this.parentInjector).get(Hr,null);Ot&&(a=Ot)}const me=Mn(F.componentType??{}),Ne=ac(this._lContainer,me?.id??null),rt=F.create(re,o,Ne?.firstChild??null,a);return this.insertImpl(rt.hostView,E,sc(this._hostTNode,Ne)),rt}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,i){const o=t._lView;if(function rm(e){return Oi(e[ur])}(o)){const E=this.indexOf(t);if(-1!==E)this.detach(E);else{const F=o[ur],re=new gy(F,F[ni],F[ur]);re.detach(re.indexOf(t))}}const a=this._adjustIndex(n),y=this._lContainer;return Tu(y,o,a,i),t.attachToViewContainerRef(),$o(Rp(y),a,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=my(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),i=vu(this._lContainer,n);i&&(ro(Rp(this._lContainer),n),ch(i[kt],i))}detach(t){const n=this._adjustIndex(t,-1),i=vu(this._lContainer,n);return i&&null!=ro(Rp(this._lContainer),n)?new Au(i):null}_adjustIndex(t,n=0){return t??this.length+n}};function my(e){return e[8]}function Rp(e){return e[8]||(e[8]=[])}function vy(e,t){let n;const i=t[e.index];return Oi(i)?n=i:(n=xv(i,t,null,e),t[e.index]=n,ph(t,n)),yy(n,t,e,i),new gy(n,e,t)}let yy=function by(e,t,n,i){if(e[Co])return;let o;o=8&n.type?Ur(i):function B1(e,t){const n=e[Sn],i=n.createComment(""),o=lo(t,e);return vl(n,uh(n,o),i,function ZT(e,t){return e.nextSibling(t)}(n,o),!1),i}(t,n),e[Co]=o},Pp=()=>!1;class kp{constructor(t){this.queryList=t,this.matches=null}clone(){return new kp(this.queryList)}setDirty(){this.queryList.setDirty()}}class xp{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const i=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let a=0;a<i;a++){const y=n.getByIndex(a);o.push(this.queries[y.indexInDeclarationView].clone())}return new xp(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==Up(t,n).matches&&this.queries[n].setDirty()}}class Cy{constructor(t,n,i=null){this.flags=n,this.read=i,this.predicate="string"==typeof t?function K1(e){return e.split(",").map(t=>t.trim())}(t):t}}class Fp{constructor(t=[]){this.queries=t}elementStart(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let i=0;i<this.length;i++){const o=null!==n?n.length:0,a=this.getByIndex(i).embeddedTView(t,o);a&&(a.indexInDeclarationView=i,null!==n?n.push(a):n=[a])}return null!==n?new Fp(n):null}template(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Lp{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new Lp(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1&~this.metadata.flags){const n=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const i=this.metadata.predicate;if(Array.isArray(i))for(let o=0;o<i.length;o++){const a=i[o];this.matchTNodeWithReadOption(t,n,G1(n,a)),this.matchTNodeWithReadOption(t,n,La(n,t,a,!1,!1))}else i===wu?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,La(n,t,i,!1,!1))}matchTNodeWithReadOption(t,n,i){if(null!==i){const o=this.metadata.read;if(null!==o)if(o===Hl||o===Dh||o===wu&&4&n.type)this.addMatch(n.index,-2);else{const a=La(n,t,o,!1,!1);null!==a&&this.addMatch(n.index,a)}else this.addMatch(n.index,i)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function G1(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function $1(e,t,n,i){return-1===n?function j1(e,t){return 11&e.type?pl(e,t):4&e.type?vh(e,t):null}(t,e):-2===n?function W1(e,t,n){return n===Hl?pl(t,e):n===wu?vh(t,e):n===Dh?vy(t,e):void 0}(e,t,i):Js(e,e[kt],n,t)}function Ty(e,t,n,i){const o=t[is].queries[i];if(null===o.matches){const a=e.data,y=n.matches,E=[];for(let F=0;null!==y&&F<y.length;F+=2){const re=y[F];E.push(re<0?null:$1(t,a[re],y[F+1],n.metadata.read))}o.matches=E}return o.matches}function Bp(e,t,n,i){const o=e.queries.getByIndex(n),a=o.matches;if(null!==a){const y=Ty(e,t,o,n);for(let E=0;E<a.length;E+=2){const F=a[E];if(F>0)i.push(y[E/2]);else{const re=a[E+1],me=t[-F];for(let Ne=_i;Ne<me.length;Ne++){const Qe=me[Ne];Qe[Za]===Qe[ur]&&Bp(Qe[kt],Qe,re,i)}if(null!==me[No]){const Ne=me[No];for(let Qe=0;Qe<Ne.length;Qe++){const rt=Ne[Qe];Bp(rt[kt],rt,re,i)}}}}}return i}function Ey(e,t,n){const i=new Vd(!(4&~n));return function uE(e,t,n,i){const o=Lv(t);o.push(n),e.firstCreatePass&&Bv(e).push(i,o.length-1)}(e,t,i,i.destroy),(t[is]??=new xp).queries.push(new kp(i))-1}function wy(e,t,n){null===e.queries&&(e.queries=new Fp),e.queries.track(new Lp(t,n))}function Up(e,t){return e.queries.getByIndex(t)}function Dy(e,t){const n=e[kt],i=Up(n,t);return i.crossesNgTemplate?Bp(n,e,t,[]):Ty(n,e,i,t)}function Oy(e){return function Iy(e){return"function"==typeof e&&void 0!==e[H]}(e)&&"function"==typeof e.set}function Gp(e){let t=function Vy(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let o;if(ss(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new at(903,!1);o=t.\u0275dir}if(o){if(n){i.push(o);const y=e;y.inputs=Mh(e.inputs),y.inputTransforms=Mh(e.inputTransforms),y.declaredInputs=Mh(e.declaredInputs),y.outputs=Mh(e.outputs);const E=o.hostBindings;E&&lS(e,E);const F=o.viewQuery,re=o.contentQueries;if(F&&sS(e,F),re&&aS(e,re),iS(e,o),_n(e.outputs,o.outputs),ss(o)&&o.data.animation){const me=e.data;me.animation=(me.animation||[]).concat(o.data.animation)}}const a=o.features;if(a)for(let y=0;y<a.length;y++){const E=a[y];E&&E.ngInherit&&E(e),E===Gp&&(n=!1)}}t=Object.getPrototypeOf(t)}!function oS(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const o=e[i];o.hostVars=t+=o.hostVars,o.hostAttrs=zo(o.hostAttrs,n=zo(n,o.hostAttrs))}}(i)}function iS(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const i=t.inputs[n];if(void 0!==i&&(e.inputs[n]=i,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const o=Array.isArray(i)?i[0]:i;if(!t.inputTransforms.hasOwnProperty(o))continue;e.inputTransforms??={},e.inputTransforms[o]=t.inputTransforms[o]}}}function Mh(e){return e===Ai?{}:e===Hn?[]:e}function sS(e,t){const n=e.viewQuery;e.viewQuery=n?(i,o)=>{t(i,o),n(i,o)}:t}function aS(e,t){const n=e.contentQueries;e.contentQueries=n?(i,o,a)=>{t(i,o,a),n(i,o,a)}:t}function lS(e,t){const n=e.hostBindings;e.hostBindings=n?(i,o)=>{t(i,o),n(i,o)}:t}function Gy(e){const t=n=>{const i=(Array.isArray(e)?e:e()).map(o=>"function"==typeof o?{directive:qe(o),inputs:Ai,outputs:Ai}:{directive:qe(o.directive),inputs:$y(o.inputs),outputs:$y(o.outputs)});null===n.hostDirectives?(n.findHostDirectiveDefs=jy,n.hostDirectives=i):n.hostDirectives.unshift(...i)};return t.ngInherit=!0,t}function jy(e,t,n){if(null!==e.hostDirectives)for(const i of e.hostDirectives){const o=hr(i.directive);hS(o.declaredInputs,i.inputs),jy(o,t,n),n.set(o,i),t.push(o)}}function $y(e){if(void 0===e||0===e.length)return Ai;const t={};for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function hS(e,t){for(const n in t)t.hasOwnProperty(n)&&(e[t[n]]=e[n])}function Ky(e){const t=e.inputConfig,n={};for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];Array.isArray(o)&&o[3]&&(n[i]=o[3])}e.inputTransforms=n}class _l{}class zy{}function fS(e,t){return new jp(e,t??null,[])}class jp extends _l{constructor(t,n,i){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new fy(this);const o=Gr(t);this._bootstrapComponents=_s(o.bootstrap),this._r3Injector=ou(t,n,[{provide:_l,useValue:this},{provide:Eh,useValue:this.componentFactoryResolver},...i],Bn(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class $p extends zy{constructor(t){super(),this.moduleType=t}create(t){return new jp(this.moduleType,t,[])}}class Xy extends _l{constructor(t){super(),this.componentFactoryResolver=new fy(this),this.instance=null;const n=new la([...t.providers,{provide:_l,useValue:this},{provide:Eh,useValue:this.componentFactoryResolver}],t.parent||Gs(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Wp(e,t,n=null){return new Xy({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let cc=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Gt.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=vn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Nh(e){return!!Kp(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Kp(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function oa(e,t,n){return e[t]=n}function zi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function bl(e,t,n,i){const o=zi(e,t,n);return zi(e,t+1,i)||o}function Rh(e,t,n,i,o){const a=bl(e,t,n,i);return zi(e,t+2,o)||a}function Is(e,t,n,i,o,a){const y=bl(e,t,n,i);return bl(e,t+2,o,a)||y}function uc(e,t,n,i,o,a,y,E){const F=Mt(),re=ar(),me=e+kn,Ne=re.firstCreatePass?function bS(e,t,n,i,o,a,y,E,F){const re=t.consts,me=oc(t,e,4,y||null,Os(re,E));fp(t,n,me,Os(re,F)),Nl(t,me);const Ne=me.tView=hp(2,me,i,o,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,re,null);return null!==t.queries&&(t.queries.template(t,me),Ne.queries=t.queries.embeddedTView(me)),me}(me,re,F,t,n,i,o,a,y):re.data[me];As(Ne,!1);const Qe=qy(re,F,Ne,e);Ol()&&dh(re,F,Qe,Ne),Po(Qe,F);const rt=xv(Qe,F,Qe,Ne);return F[me]=rt,ph(F,rt),function _y(e,t,n){return Pp(e,t,n)}(rt,Ne,F),tl(Ne)&&up(re,F,Ne),null!=y&&dp(F,Ne,E),uc}let qy=function Qy(e,t,n,i){return Rs(!0),t[Sn].createComment("")};function ng(e,t,n,i){const o=Mt();return zi(o,us(),t)&&(ar(),ra(li(),o,e,t,n,i)),ng}function yc(e,t,n,i){return zi(e,us(),n)?t+un(n)+i:Kn}function _c(e,t,n,i,o,a){const E=bl(e,cs(),n,o);return qs(2),E?t+un(n)+i+un(o)+a:Kn}function Bh(e,t){return e<<17|t<<2}function za(e){return e>>17&32767}function rg(e){return 2|e}function Tl(e){return(131068&e)>>2}function ig(e,t){return-131069&e|t<<2}function og(e){return 1|e}function D_(e,t,n,i){const o=e[n+1],a=null===t;let y=i?za(o):Tl(o),E=!1;for(;0!==y&&(!1===E||a);){const re=e[y+1];oA(e[y],t)&&(E=!0,e[y+1]=i?og(re):rg(re)),y=i?za(re):Tl(re)}E&&(e[n+1]=i?rg(o):og(o))}function oA(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&$i(e,t)>=0}const uo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function I_(e){return e.substring(uo.key,uo.keyEnd)}function sA(e){return e.substring(uo.value,uo.valueEnd)}function M_(e,t){const n=uo.textEnd;return n===t?-1:(t=uo.keyEnd=function cA(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,uo.key=t,n),wc(e,t,n))}function O_(e,t){const n=uo.textEnd;let i=uo.key=wc(e,t,n);return n===i?-1:(i=uo.keyEnd=function uA(e,t,n){let i;for(;t<n&&(45===(i=e.charCodeAt(t))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(e,i,n),i=R_(e,i,n),i=uo.value=wc(e,i,n),i=uo.valueEnd=function dA(e,t,n){let i=-1,o=-1,a=-1,y=t,E=y;for(;y<n;){const F=e.charCodeAt(y++);if(59===F)return E;34===F||39===F?E=y=P_(e,F,y,n):t===y-4&&85===a&&82===o&&76===i&&40===F?E=y=P_(e,41,y,n):F>32&&(E=y),a=o,o=i,i=-33&F}return E}(e,i,n),R_(e,i,n))}function N_(e){uo.key=0,uo.keyEnd=0,uo.value=0,uo.valueEnd=0,uo.textEnd=e.length}function wc(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function R_(e,t,n,i){return(t=wc(e,t,n))<n&&t++,t}function P_(e,t,n,i){let o=-1,a=n;for(;a<i;){const y=e.charCodeAt(a++);if(y==t&&92!==o)return a;o=92==y&&92===o?0:y}throw new Error}function sg(e,t,n){const i=Mt();return zi(i,us(),t)&&ds(ar(),li(),i,e,t,i[Sn],n,!1),sg}function ag(e,t,n,i,o){const y=o?"class":"style";vp(e,n,t.inputs[y],y,i)}function lg(e,t,n){return Ls(e,t,n,!1),lg}function cg(e,t){return Ls(e,t,null,!0),cg}function Fs(e){Bs(L_,hA,e,!1)}function hA(e,t){for(let n=function lA(e){return N_(e),O_(e,wc(e,0,uo.textEnd))}(t);n>=0;n=O_(t,n))L_(e,I_(t),sA(t))}function k_(e){Bs(yA,sa,e,!0)}function sa(e,t){for(let n=function aA(e){return N_(e),M_(e,wc(e,0,uo.textEnd))}(t);n>=0;n=M_(t,n))ai(e,I_(t),!0)}function Ls(e,t,n,i){const o=Mt(),a=ar(),y=qs(2);a.firstUpdatePass&&F_(a,e,y,i),t!==Kn&&zi(o,y,t)&&B_(a,a.data[Ro()],o,o[Sn],e,o[y+1]=function bA(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Bn(Ea(e)))),e}(t,n),i,y)}function Bs(e,t,n,i){const o=ar(),a=qs(2);o.firstUpdatePass&&F_(o,null,a,i);const y=Mt();if(n!==Kn&&zi(y,a,n)){const E=o.data[Ro()];if(U_(E,i)&&!x_(o,a)){let F=i?E.classesWithoutHost:E.stylesWithoutHost;null!==F&&(n=jn(F,n||"")),ag(o,E,y,n,i)}else!function _A(e,t,n,i,o,a,y,E){o===Kn&&(o=Hn);let F=0,re=0,me=0<o.length?o[0]:null,Ne=0<a.length?a[0]:null;for(;null!==me||null!==Ne;){const Qe=F<o.length?o[F+1]:void 0,rt=re<a.length?a[re+1]:void 0;let Ot,ft=null;me===Ne?(F+=2,re+=2,Qe!==rt&&(ft=Ne,Ot=rt)):null===Ne||null!==me&&me<Ne?(F+=2,ft=me):(re+=2,ft=Ne,Ot=rt),null!==ft&&B_(e,t,n,i,ft,Ot,y,E),me=F<o.length?o[F]:null,Ne=re<a.length?a[re]:null}}(o,E,y,y[Sn],y[a+1],y[a+1]=function vA(e,t,n){if(null==n||""===n)return Hn;const i=[],o=Ea(n);if(Array.isArray(o))for(let a=0;a<o.length;a++)e(i,o[a],!0);else if("object"==typeof o)for(const a in o)o.hasOwnProperty(a)&&e(i,a,o[a]);else"string"==typeof o&&t(i,o);return i}(e,t,n),i,a)}}function x_(e,t){return t>=e.expandoStartIndex}function F_(e,t,n,i){const o=e.data;if(null===o[n+1]){const a=o[Ro()],y=x_(e,n);U_(a,i)&&null===t&&!y&&(t=!1),t=function fA(e,t,n,i){const o=function fd(e){const t=xn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let a=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(n=Vu(n=ug(null,e,t,n,i),t.attrs,i),a=null);else{const y=t.directiveStylingLast;if(-1===y||e[y]!==o)if(n=ug(o,e,t,n,i),null===a){let F=function pA(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==Tl(i))return e[za(i)]}(e,t,i);void 0!==F&&Array.isArray(F)&&(F=ug(null,e,t,F[1],i),F=Vu(F,t.attrs,i),function gA(e,t,n,i){e[za(n?t.classBindings:t.styleBindings)]=i}(e,t,i,F))}else a=function mA(e,t,n){let i;const o=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<o;a++)i=Vu(i,e[a].hostAttrs,n);return Vu(i,t.attrs,n)}(e,t,i)}return void 0!==a&&(i?t.residualClasses=a:t.residualStyles=a),n}(o,a,t,i),function rA(e,t,n,i,o,a){let y=a?t.classBindings:t.styleBindings,E=za(y),F=Tl(y);e[i]=n;let me,re=!1;if(Array.isArray(n)?(me=n[1],(null===me||$i(n,me)>0)&&(re=!0)):me=n,o)if(0!==F){const Qe=za(e[E+1]);e[i+1]=Bh(Qe,E),0!==Qe&&(e[Qe+1]=ig(e[Qe+1],i)),e[E+1]=function tA(e,t){return 131071&e|t<<17}(e[E+1],i)}else e[i+1]=Bh(E,0),0!==E&&(e[E+1]=ig(e[E+1],i)),E=i;else e[i+1]=Bh(F,0),0===E?E=i:e[F+1]=ig(e[F+1],i),F=i;re&&(e[i+1]=rg(e[i+1])),D_(e,me,i,!0),D_(e,me,i,!1),function iA(e,t,n,i,o){const a=o?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&$i(a,t)>=0&&(n[i+1]=og(n[i+1]))}(t,me,e,i,a),y=Bh(E,F),a?t.classBindings=y:t.styleBindings=y}(o,a,t,n,y,i)}}function ug(e,t,n,i,o){let a=null;const y=n.directiveEnd;let E=n.directiveStylingLast;for(-1===E?E=n.directiveStart:E++;E<y&&(a=t[E],i=Vu(i,a.hostAttrs,o),a!==e);)E++;return null!==e&&(n.directiveStylingLast=E),i}function Vu(e,t,n){const i=n?1:2;let o=-1;if(null!==t)for(let a=0;a<t.length;a++){const y=t[a];"number"==typeof y?o=y:o===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),ai(e,y,!!n||t[++a]))}return void 0===e?null:e}function L_(e,t,n){ai(e,t,Ea(n))}function yA(e,t,n){const i=String(t);""!==i&&!i.includes(" ")&&ai(e,i,n)}function B_(e,t,n,i,o,a,y,E){if(!(3&t.type))return;const F=e.data,re=F[E+1],me=function nA(e){return!(1&~e)}(re)?H_(F,t,n,o,Tl(re),y):void 0;Hh(me)||(Hh(a)||function eA(e){return!(2&~e)}(re)&&(a=H_(F,null,n,o,E,y)),function nE(e,t,n,i,o){if(t)o?e.addClass(n,i):e.removeClass(n,i);else{let a=-1===i.indexOf("-")?void 0:ah.DashCase;null==o?e.removeStyle(n,i,a):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),a|=ah.Important),e.setStyle(n,i,o,a))}}(i,y,Oa(Ro(),n),o,a))}function H_(e,t,n,i,o,a){const y=null===t;let E;for(;o>0;){const F=e[o],re=Array.isArray(F),me=re?F[1]:F,Ne=null===me;let Qe=n[o+1];Qe===Kn&&(Qe=Ne?Hn:void 0);let rt=Ne?Lo(Qe,i):me===i?Qe:void 0;if(re&&!Hh(rt)&&(rt=Lo(F,i)),Hh(rt)&&(E=rt,y))return E;const ft=e[o+1];o=y?za(ft):Tl(ft)}if(null!==t){let F=a?t.residualClasses:t.residualStyles;null!=F&&(E=Lo(F,i))}return E}function Hh(e){return void 0!==e}function U_(e,t){return!!(e.flags&(t?8:16))}function V_(e,t,n){Bs(ai,sa,yc(Mt(),e,t,n),!0)}class OA{destroy(t){}updateValue(t,n){}swap(t,n){const i=Math.min(t,n),o=Math.max(t,n),a=this.detach(o);if(o-i>1){const y=this.detach(i);this.attach(i,a),this.attach(o,y)}else this.attach(i,a)}move(t,n){this.attach(n,this.detach(t))}}function dg(e,t,n,i,o){return e===n&&Object.is(t,i)?1:Object.is(o(e,t),o(n,i))?-1:0}function hg(e,t,n,i){return!(void 0===t||!t.has(i)||(e.attach(n,t.get(i)),t.delete(i),0))}function G_(e,t,n,i,o){if(hg(e,t,i,n(i,o)))e.updateValue(i,o);else{const a=e.create(i,o);e.attach(i,a)}}function j_(e,t,n,i){const o=new Set;for(let a=t;a<=n;a++)o.add(i(a,e.at(a)));return o}class $_{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let i=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const o=this._vMap;for(;o.has(i);)i=o.get(i);o.set(i,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,i]of this.kvMap)if(t(i,n),void 0!==this._vMap){const o=this._vMap;for(;o.has(i);)i=o.get(i),t(i,n)}}}function W_(e,t,n){ia("NgControlFlow");const i=Mt(),o=us(),a=fg(i,kn+e);if(zi(i,o,t)){const E=P(null);try{if(_p(a,0),-1!==t){const F=pg(i[kt],kn+t),re=ac(a,F.tView.ssrId);Tu(a,Cu(i,F,n,{dehydratedView:re}),0,sc(F,re))}}finally{P(E)}}else{const E=Uv(a,0);void 0!==E&&(E[Yn]=n)}}class RA{constructor(t,n,i){this.lContainer=t,this.$implicit=n,this.$index=i}get $count(){return this.lContainer.length-_i}}function K_(e,t){return t}class kA{constructor(t,n,i){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=i}}function z_(e,t,n,i,o,a,y,E,F,re,me,Ne,Qe){ia("NgControlFlow");const rt=void 0!==F,ft=Mt(),Ot=E?y.bind(ft[Ti][Yn]):y,Bt=new kA(rt,Ot);ft[kn+e]=Bt,uc(e+1,t,n,i,o,a),rt&&uc(e+2,F,re,me,Ne,Qe)}class xA extends OA{constructor(t,n,i){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=i,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-_i}at(t){return this.getLView(t)[Yn].$implicit}attach(t,n){const i=n[Li];this.needsIndexUpdate||=t!==this.length,Tu(this.lContainer,n,t,sc(this.templateTNode,i))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function FA(e,t){return vu(e,t)}(this.lContainer,t)}create(t,n){const i=ac(this.lContainer,this.templateTNode.tView.ssrId);return Cu(this.hostLView,this.templateTNode,new RA(this.lContainer,n,t),{dehydratedView:i})}destroy(t){ch(t[kt],t)}updateValue(t,n){this.getLView(t)[Yn].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Yn].$index=t}getLView(t){return function LA(e,t){return Uv(e,t)}(this.lContainer,t)}}function X_(e){const t=P(null),n=Ro();try{const i=Mt(),o=i[kt],a=i[n];if(void 0===a.liveCollection){const E=n+1,F=fg(i,E),re=pg(o,E);a.liveCollection=new xA(F,i,re)}else a.liveCollection.reset();const y=a.liveCollection;if(function NA(e,t,n){let i,o,a=0,y=e.length-1;if(Array.isArray(t)){let E=t.length-1;for(;a<=y&&a<=E;){const F=e.at(a),re=t[a],me=dg(a,F,a,re,n);if(0!==me){me<0&&e.updateValue(a,re),a++;continue}const Ne=e.at(y),Qe=t[E],rt=dg(y,Ne,E,Qe,n);if(0!==rt){rt<0&&e.updateValue(y,Qe),y--,E--;continue}const ft=n(a,F),Ot=n(y,Ne),Bt=n(a,re);if(Object.is(Bt,Ot)){const Xt=n(E,Qe);Object.is(Xt,ft)?(e.swap(a,y),e.updateValue(y,Qe),E--,y--):e.move(y,a),e.updateValue(a,re),a++}else if(i??=new $_,o??=j_(e,a,y,n),hg(e,i,a,Bt))e.updateValue(a,re),a++,y++;else if(o.has(Bt))i.set(ft,e.detach(a)),y--;else{const Xt=e.create(a,t[a]);e.attach(a,Xt),a++,y++}}for(;a<=E;)G_(e,i,n,a,t[a]),a++}else if(null!=t){const E=t[Symbol.iterator]();let F=E.next();for(;!F.done&&a<=y;){const re=e.at(a),me=F.value,Ne=dg(a,re,a,me,n);if(0!==Ne)Ne<0&&e.updateValue(a,me),a++,F=E.next();else{i??=new $_,o??=j_(e,a,y,n);const Qe=n(a,me);if(hg(e,i,a,Qe))e.updateValue(a,me),a++,y++,F=E.next();else if(o.has(Qe)){const rt=n(a,re);i.set(rt,e.detach(a)),y--}else e.attach(a,e.create(a,me)),a++,y++,F=E.next()}}for(;!F.done;)G_(e,i,n,e.length,F.value),F=E.next()}for(;a<=y;)e.destroy(e.detach(y--));i?.forEach(E=>{e.destroy(E)})}(y,e,a.trackByFn),y.updateIndexes(),a.hasEmptyBlock){const E=us(),F=0===y.length;if(zi(i,E,F)){const re=n+2,me=fg(i,re);if(F){const Ne=pg(o,re),Qe=ac(me,Ne.tView.ssrId);Tu(me,Cu(i,Ne,void 0,{dehydratedView:Qe}),0,sc(Ne,Qe))}else _p(me,0)}}}finally{P(t)}}function fg(e,t){return e[t]}function pg(e,t){return wl(e,t)}function Uh(e,t,n,i){const o=Mt(),a=ar(),y=kn+e,E=o[Sn],F=a.firstCreatePass?function BA(e,t,n,i,o,a){const y=t.consts,F=oc(t,e,2,i,Os(y,o));return fp(t,n,F,Os(y,a)),null!==F.attrs&&Ah(F,F.attrs,!1),null!==F.mergedAttrs&&Ah(F,F.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,F),F}(y,a,o,t,n,i):a.data[y],re=q_(a,o,F,E,t,e);o[y]=re;const me=tl(F);return As(F,!0),Ev(E,re,F),!function Lu(e){return!(32&~e.flags)}(F)&&Ol()&&dh(a,o,re,F),0===function om(){return xn.lFrame.elementDepthCount}()&&Po(re,o),function cd(){xn.lFrame.elementDepthCount++}(),me&&(up(a,o,F),cp(a,F,o)),null!==i&&dp(o,F),Uh}function Vh(){let e=xr();Wc()?zs():(e=e.parent,As(e,!1));const t=e;(function jc(e){return xn.skipHydrationRootTNode===e})(t)&&function bf(){xn.skipHydrationRootTNode=null}(),function sm(){xn.lFrame.elementDepthCount--}();const n=ar();return n.firstCreatePass&&(Nl(n,e),pa(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Ad(e){return!!(8&e.flags)}(t)&&ag(n,t,Mt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Df(e){return!!(16&e.flags)}(t)&&ag(n,t,Mt(),t.stylesWithoutHost,!1),Vh}function gg(e,t,n,i){return Uh(e,t,n,i),Vh(),gg}let q_=(e,t,n,i,o,a)=>(Rs(!0),lh(i,o,function Cd(){return xn.lFrame.currentNamespace}()));function Gh(e,t,n){const i=Mt(),o=ar(),a=e+kn,y=o.firstCreatePass?function VA(e,t,n,i,o){const a=t.consts,y=Os(a,i),E=oc(t,e,8,"ng-container",y);return null!==y&&Ah(E,y,!0),fp(t,n,E,Os(a,o)),null!==t.queries&&t.queries.elementStart(t,E),E}(a,o,i,t,n):o.data[a];As(y,!0);const E=Q_(o,i,y,e);return i[a]=E,Ol()&&dh(o,i,E,y),Po(E,i),tl(y)&&(up(o,i,y),cp(o,y,i)),null!=n&&dp(i,y),Gh}function jh(){let e=xr();const t=ar();return Wc()?zs():(e=e.parent,As(e,!1)),t.firstCreatePass&&(Nl(t,e),pa(e)&&t.queries.elementEnd(e)),jh}function mg(e,t,n){return Gh(e,t,n),jh(),mg}let Q_=(e,t,n,i)=>(Rs(!0),np(t[Sn],""));function Y_(){return Mt()}function vg(e,t,n){const i=Mt();return zi(i,us(),t)&&ds(ar(),li(),i,e,t,i[Sn],n,!0),vg}const El=void 0;var WA=["en",[["a","p"],["AM","PM"],El],[["AM","PM"],El,El],[["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"]],El,[["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"]],El,[["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}",El,"{1} 'at' {0}",El],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function $A(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let Dc={};function yg(e){const t=function KA(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=e0(t);if(n)return n;const i=t.split("-")[0];if(n=e0(i),n)return n;if("en"===i)return WA;throw new at(701,!1)}function Z_(e){return yg(e)[Ic.PluralCase]}function e0(e){return e in Dc||(Dc[e]=hn.ng&&hn.ng.common&&hn.ng.common.locales&&hn.ng.common.locales[e]),Dc[e]}var Ic=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Ic||{});const Mc="en-US",$h={marker:"element"},Wh={marker:"ICU"};var hs=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}(hs||{});let t0=Mc;function r0(e,t,n){const i=t.insertBeforeIndex,o=Array.isArray(i)?i[0]:i;return null===o?mv(e,0,n):Ur(n[o])}function o0(e,t,n,i,o){const a=t.insertBeforeIndex;if(Array.isArray(a)){let y=i,E=null;if(3&t.type||(E=y,y=o),null!==y&&-1===t.componentOffset)for(let F=1;F<a.length;F++)vl(e,y,n[a[F]],E,!1)}}function s0(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const i=e[n];a0(i)||YA(i,t)&&null===JA(i)&&ZA(i,t.index)}}function a0(e){return!(64&e.type)}function YA(e,t){return a0(t)||e.index>t.index}function JA(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function ZA(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(yv(r0,o0),e.insertBeforeIndex=t)}function nw(e,t,n){const i=lp(e,n,64,null,null);return s0(t,i),i}let Wu=(e,t,n,i)=>(Rs(!0),function d0(e,t,n){const i=e[Sn];switch(n){case Node.COMMENT_NODE:return np(i,t);case Node.TEXT_NODE:return tp(i,t);case Node.ELEMENT_NODE:return lh(i,t,null)}}(e,n,i));function dw(){const e=[];let n,i,t=-1;function a(E,F){t=0;const re=function Kh(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}(E,F);i=null!==re?E.remove[re]:Hn}function y(){if(t<i.length){const E=i[t++];return E>0?n[E]:(e.push(t,i),a(n[kt].data[~E],n),y())}return 0===e.length?null:(i=e.pop(),t=e.pop(),y())}return function o(E,F){for(n=F;e.length;)e.pop();return a(E.value,F),y}}const zh=/\ufffd(\d+):?\d*\ufffd/gi,fw=/\ufffd(\d+)\ufffd/,v0=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Ku="\ufffd",pw=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,gw=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,mw=/\uE500/g;function y0(e,t,n,i,o,a,y){const E=bu(e,i,1,null);let F=E<<hs.SHIFT,re=al();t===re&&(re=null),null===re&&(F|=hs.APPEND_EAGERLY),y&&(F|=hs.COMMENT,function $T(e){void 0===Zf&&(Zf=e())}(dw)),o.push(F,null===a?"":a);const me=lp(e,E,y?32:1,null===a?"":a,null);s0(n,me);const Ne=me.index;return As(me,!1),null!==re&&t!==re&&function tw(e,t){let n=e.insertBeforeIndex;null===n?(yv(r0,o0),n=e.insertBeforeIndex=[null,t]):(Zt(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(re,Ne),me}function _w(e,t,n,i,o,a,y,E){const F=E.match(zh),me=y0(t,n,i,y,o,F?null:E,!1).index;F&&zu(a,E,me,null,0,null),e.push({kind:0,index:me})}function zu(e,t,n,i,o,a){const y=e.length,E=y+1;e.push(null,null);const F=y+2,re=t.split(zh);let me=0;for(let Ne=0;Ne<re.length;Ne++){const Qe=re[Ne];if(1&Ne){const rt=o+parseInt(Qe,10);e.push(-1-rt),me|=_0(rt)}else""!==Qe&&e.push(Qe)}return e.push(n<<2|(i?1:0)),i&&e.push(i,a),e[y]=me,e[E]=e.length-F,me}function _0(e){return 1<<Math.min(e,31)}function b0(e){let t,a,n="",i=0,o=!1;for(;null!==(t=pw.exec(e));)o?t[0]===`${Ku}/*${a}${Ku}`&&(i=t.index,o=!1):(n+=e.substring(i,t.index+t[0].length),a=t[1],o=!0);return n+=e.slice(i),n}function C0(e,t,n,i,o,a,y){let E=0;const F={type:a.type,currentCaseLViewIndex:bu(t,n,1,null),anchorIdx:y,cases:[],create:[],remove:[],update:[]};(function Dw(e,t,n){e.push(_0(t.mainBinding),2,-1-t.mainBinding,n<<2|2)})(i,a,y),function ew(e,t,n){const i=e.data[t];null===i?e.data[t]=n:i.value=n}(t,y,F);const re=a.values,me=[];for(let Ne=0;Ne<re.length;Ne++){const Qe=re[Ne],rt=[];for(let Ot=0;Ot<Qe.length;Ot++){const Bt=Qe[Ot];if("string"!=typeof Bt){const Xt=rt.push(Bt)-1;Qe[Ot]=`\x3c!--\ufffd${Xt}\ufffd--\x3e`}}const ft=[];me.push(ft),E=Aw(ft,t,F,n,i,o,a.cases[Ne],Qe.join(""),rt)|E}E&&function Iw(e,t,n){e.push(t,1,n<<2|3)}(i,E,y),e.push({kind:3,index:y,cases:me,currentCaseLViewIndex:F.currentCaseLViewIndex})}function Sw(e){const t=[],n=[];let i=1,o=0;const a=_g(e=e.replace(v0,function(y,E,F){return i="select"===F?0:1,o=parseInt(E.slice(1),10),""}));for(let y=0;y<a.length;){let E=a[y++].trim();1===i&&(E=E.replace(/\s*(?:=)?(\w+)\s*/,"$1")),E.length&&t.push(E);const F=_g(a[y++]);t.length>n.length&&n.push(F)}return{type:i,mainBinding:o,cases:t,values:n}}function _g(e){if(!e)return[];let t=0;const n=[],i=[],o=/[{}]/g;let a;for(o.lastIndex=0;a=o.exec(e);){const E=a.index;if("}"==a[0]){if(n.pop(),0==n.length){const F=e.substring(t,E);v0.test(F)?i.push(Sw(F)):i.push(F),t=E+1}}else{if(0==n.length){const F=e.substring(t,E);i.push(F),t=E+1}n.push("{")}}const y=e.substring(t);return i.push(y),i}function Aw(e,t,n,i,o,a,y,E,F){const re=[],me=[],Ne=[];n.cases.push(y),n.create.push(re),n.remove.push(me),n.update.push(Ne);const rt=Gm(ii()).getInertBodyElement(E),ft=Xf(rt)||rt;return ft?T0(e,t,n,i,o,re,me,Ne,ft,a,F,0):0}function T0(e,t,n,i,o,a,y,E,F,re,me,Ne){let Qe=0,rt=F.firstChild;for(;rt;){const ft=bu(t,i,1,null);switch(rt.nodeType){case Node.ELEMENT_NODE:const Ot=rt,Bt=Ot.tagName.toLowerCase();if(Kf.hasOwnProperty(Bt)){bg(a,$h,Bt,re,ft),t.data[ft]=Bt;const Sr=Ot.attributes;for(let fo=0;fo<Sr.length;fo++){const fs=Sr.item(fo),Pc=fs.name.toLowerCase();fs.value.match(zh)?Km.hasOwnProperty(Pc)&&zu(E,fs.value,ft,fs.name,0,zf[Pc]?rh:null):Mw(a,ft,fs)}const oi={kind:1,index:ft,children:[]};e.push(oi),Qe=T0(oi.children,t,n,i,o,a,y,E,rt,ft,me,Ne+1)|Qe,E0(y,ft,Ne)}break;case Node.TEXT_NODE:const Xt=rt.textContent||"",Pt=Xt.match(zh);bg(a,null,Pt?"":Xt,re,ft),E0(y,ft,Ne),Pt&&(Qe=zu(E,Xt,ft,null,0,null)|Qe),e.push({kind:0,index:ft});break;case Node.COMMENT_NODE:const On=fw.exec(rt.textContent||"");if(On){const oi=me[parseInt(On[1],10)];bg(a,Wh,"",re,ft),C0(e,t,i,o,re,oi,ft),ww(y,ft,Ne)}}rt=rt.nextSibling}return Qe}function E0(e,t,n){0===n&&e.push(t)}function ww(e,t,n){0===n&&(e.push(~t),e.push(t))}function bg(e,t,n,i,o){null!==t&&e.push(t),e.push(n,o,function rw(e,t,n){return e|t<<17|n<<1}(0,i,o))}function Mw(e,t,n){e.push(t<<1|1,n.name,n.value)}function A0(e,t,n=-1){const i=ar(),o=Mt(),a=kn+e,y=Os(i.consts,t),E=al();i.firstCreatePass&&function yw(e,t,n,i,o,a){const y=al(),E=[],F=[],re=[[]],me=[[]];o=function Ew(e,t){if(function Tw(e){return-1===e}(t))return b0(e);{const n=e.indexOf(`:${t}${Ku}`)+2+t.toString().length,i=e.search(new RegExp(`${Ku}\\/\\*\\d+:${t}${Ku}`));return b0(e.substring(n,i))}}(o,a);const Ne=function vw(e){return e.replace(mw," ")}(o).split(gw);for(let Qe=0;Qe<Ne.length;Qe++){let rt=Ne[Qe];if(1&Qe){const ft=47===rt.charCodeAt(0),Ot=rt.charCodeAt(ft?1:0),Bt=kn+Number.parseInt(rt.substring(ft?2:1));if(ft)re.shift(),me.shift(),As(al(),!1);else{const Xt=nw(e,re[0],Bt);re.unshift([]),As(Xt,!0);const Pt={kind:2,index:Bt,children:[],type:35===Ot?0:1};me[0].push(Pt),me.unshift(Pt.children)}}else{const ft=_g(rt);for(let Ot=0;Ot<ft.length;Ot++){let Bt=ft[Ot];if(1&Ot){const Xt=Bt;if("object"!=typeof Xt)throw new Error(`Unable to parse ICU expression in "${o}" message.`);const On=y0(e,y,re[0],n,E,"",!0).index;C0(me[0],e,n,F,t,Xt,On)}else""!==Bt&&_w(me[0],e,y,re[0],E,F,n,Bt)}}}e.data[i]={create:E,update:F,ast:me[0]}}(i,null===E?0:E.index,o,a,y,n),2===i.type?o[Ti][dn]|=32:o[dn]|=32;const F=i.data[a],me=hv(i,E===o[ni]?null:E,o);(function lw(e,t,n,i){const o=e[Sn];for(let a=0;a<t.length;a++){const y=t[a++],re=(y&hs.APPEND_EAGERLY)===hs.APPEND_EAGERLY,me=y>>>hs.SHIFT;let Ne=e[me],Qe=!1;null===Ne&&(Ne=e[me]=Wu(e,me,t[a],(y&hs.COMMENT)===hs.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),Qe=Ol()),re&&null!==n&&Qe&&vl(o,n,Ne,i,!1)}})(o,F.create,me,E&&8&E.type?o[E.index]:null),Cf(!0)}function D0(e,t,n){A0(e,t,n),function w0(){Cf(!1)}()}function Cg(e,t,n,i){const o=Mt(),a=ar(),y=xr();return Tg(a,o,o[Sn],y,e,t,i),Cg}function Tg(e,t,n,i,o,a,y){const E=tl(i),re=e.firstCreatePass&&Bv(e),me=t[Yn],Ne=Lv(t);let Qe=!0;if(3&i.type||y){const Ot=lo(i,t),Bt=y?y(Ot):Ot,Xt=Ne.length,Pt=y?Sr=>y(Ur(Sr[i.index])):i.index;let On=null;if(!y&&E&&(On=function Vw(e,t,n,i){const o=e.cleanup;if(null!=o)for(let a=0;a<o.length-1;a+=2){const y=o[a];if(y===n&&o[a+1]===i){const E=t[gs],F=o[a+2];return E.length>F?E[F]:null}"string"==typeof y&&(a+=2)}return null}(e,t,o,i.index)),null!==On)(On.__ngLastListenerFn__||On).__ngNextListenerFn__=a,On.__ngLastListenerFn__=a,Qe=!1;else{a=N0(i,t,me,a,!1);const Sr=n.listen(Bt,o,a);Ne.push(a,Sr),re&&re.push(o,Pt,Xt,Xt+1)}}else a=N0(i,t,me,a,!1);const rt=i.outputs;let ft;if(Qe&&null!==rt&&(ft=rt[o])){const Ot=ft.length;if(Ot)for(let Bt=0;Bt<Ot;Bt+=2){const oi=t[ft[Bt]][ft[Bt+1]].subscribe(a),fo=Ne.length;Ne.push(a,oi),re&&re.push(o,i.index,fo,-(fo+1))}}}function O0(e,t,n,i){const o=P(null);try{return eo(6,t,n),!1!==n(i)}catch(a){return gh(e,a),!1}finally{eo(7,t,n),P(o)}}function N0(e,t,n,i,o){return function a(y){if(y===Function)return i;Su(e.componentOffset>-1?as(e.index,t):t);let F=O0(t,n,i,y),re=a.__ngNextListenerFn__;for(;re;)F=O0(t,n,re,y)&&F,re=re.__ngNextListenerFn__;return o&&!1===F&&y.preventDefault(),F}}function R0(e=1){return function _d(e){return(xn.lFrame.contextLView=function vf(e,t){for(;e>0;)t=t[$s],e--;return t}(e,xn.lFrame.contextLView))[Yn]}(e)}function Gw(e,t){let n=null;const i=function ne(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let o=0;o<t.length;o++){const a=t[o];if("*"!==a){if(null===i?A(e,a,!0):Ie(i,a))return o}else n=o}return n}function P0(e){const t=Mt()[Ti][ni];if(!t.projection){const i=t.projection=function Si(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}(e?e.length:1,null),o=i.slice();let a=t.child;for(;null!==a;){const y=e?Gw(a,e):0;null!==y&&(o[y]?o[y].projectionNext=a:i[y]=a,o[y]=a),a=a.next}}}function k0(e,t=0,n){const i=Mt(),o=ar(),a=oc(o,kn+e,16,null,n||null);null===a.projection&&(a.projection=t),zs(),(!i[Li]||Vr())&&32&~a.flags&&function eE(e,t,n){Cv(t[Sn],0,t,n,ip(e,n,t),gv(n.parent||t[ni],n,t))}(o,i,a)}function Eg(e,t,n){return Xh(e,"",t,"",n),Eg}function Xh(e,t,n,i,o){const a=Mt(),y=yc(a,t,n,i);return y!==Kn&&ds(ar(),li(),a,e,y,a[Sn],o,!1),Xh}function Sg(e,t,n,i,o,a,y){const E=Mt(),F=_c(E,t,n,i,o,a);return F!==Kn&&ds(ar(),li(),E,e,F,E[Sn],y,!1),Sg}function Ag(e,t,n,i,o,a,y,E,F,re,me,Ne,Qe){const rt=Mt(),ft=function Tc(e,t,n,i,o,a,y,E,F,re,me,Ne){const Qe=cs();let rt=Is(e,Qe,n,o,y,F);return rt=zi(e,Qe+4,me)||rt,qs(5),rt?t+un(n)+i+un(o)+a+un(y)+E+un(F)+re+un(me)+Ne:Kn}(rt,t,n,i,o,a,y,E,F,re,me,Ne);return ft!==Kn&&ds(ar(),li(),rt,e,ft,rt[Sn],Qe,!1),Ag}function V0(e,t,n,i){!function Ay(e,t,n,i){const o=ar();if(o.firstCreatePass){const a=xr();wy(o,new Cy(t,n,i),a.index),function z1(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),!(2&~n)&&(o.staticContentQueries=!0)}return Ey(o,Mt(),n)}(e,t,n,i)}function G0(e,t,n){!function Sy(e,t,n){const i=ar();return i.firstCreatePass&&(wy(i,new Cy(e,t,n),-1),!(2&~t)&&(i.staticViewQueries=!0)),Ey(i,Mt(),t)}(e,t,n)}function j0(e){const t=Mt(),n=ar(),i=pd();Kc(i+1);const o=Up(n,i);if(e.dirty&&function nm(e){return!(4&~e[dn])}(t)===!(2&~o.metadata.flags)){if(null===o.matches)e.reset([]);else{const a=Dy(t,i);e.reset(a,Ff),e.notifyOnChanges()}return!0}return!1}function $0(){return function Hp(e,t){return e[is].queries[t].queryList}(Mt(),pd())}function W0(e){return ol(function va(){return xn.lFrame.contextLView}(),kn+e)}function tb(e,t=""){const n=Mt(),i=ar(),o=e+kn,a=i.firstCreatePass?oc(i,o,1,t,null):i.data[o],y=nb(i,n,a,t,e);n[o]=y,Ol()&&dh(i,n,y,a),As(a,!1)}let nb=(e,t,n,i,o)=>(Rs(!0),tp(t[Sn],i));function wg(e){return qh("",e,""),wg}function qh(e,t,n){const i=Mt(),o=yc(i,e,t,n);return o!==Kn&&Aa(i,Ro(),o),qh}function Dg(e,t,n,i,o){const a=Mt(),y=_c(a,e,t,n,i,o);return y!==Kn&&Aa(a,Ro(),y),Dg}function Ig(e,t,n,i,o,a,y){const E=Mt(),F=function bc(e,t,n,i,o,a,y,E){const re=Rh(e,cs(),n,o,y);return qs(3),re?t+un(n)+i+un(o)+a+un(y)+E:Kn}(E,e,t,n,i,o,a,y);return F!==Kn&&Aa(E,Ro(),F),Ig}function Mg(e,t,n){Oy(t)&&(t=t());const i=Mt();return zi(i,us(),t)&&ds(ar(),li(),i,e,t,i[Sn],n,!1),Mg}function cb(e,t){const n=Oy(e);return n&&e.set(t),n}function Og(e,t){const n=Mt(),i=ar(),o=xr();return Tg(i,n,n[Sn],o,e,t),Og}function Ng(e,t,n,i,o){if(e=qe(e),Array.isArray(e))for(let a=0;a<e.length;a++)Ng(e[a],t,n,i,o);else{const a=ar(),y=Mt(),E=xr();let F=ts(e)?e:qe(e.provide);const re=Fi(e),me=1048575&E.providerIndexes,Ne=E.directiveStart,Qe=E.providerIndexes>>20;if(ts(e)||!e.multi){const rt=new Ys(re,o,ic),ft=Pg(F,t,o?me:me+Qe,Ne);-1===ft?(xa(hl(E,y),a,F),Rg(a,e,t.length),t.push(F),E.directiveStart++,E.directiveEnd++,o&&(E.providerIndexes+=1048576),n.push(rt),y.push(rt)):(n[ft]=rt,y[ft]=rt)}else{const rt=Pg(F,t,me+Qe,Ne),ft=Pg(F,t,me,me+Qe),Bt=ft>=0&&n[ft];if(o&&!Bt||!o&&!(rt>=0&&n[rt])){xa(hl(E,y),a,F);const Xt=function aD(e,t,n,i,o){const a=new Ys(e,n,ic);return a.multi=[],a.index=t,a.componentProviders=0,ub(a,o,i&&!n),a}(o?sD:oD,n.length,o,i,re);!o&&Bt&&(n[ft].providerFactory=Xt),Rg(a,e,t.length,0),t.push(F),E.directiveStart++,E.directiveEnd++,o&&(E.providerIndexes+=1048576),n.push(Xt),y.push(Xt)}else Rg(a,e,rt>-1?rt:ft,ub(n[o?ft:rt],re,!o&&i));!o&&i&&Bt&&n[ft].componentProviders++}}}function Rg(e,t,n,i){const o=ts(t),a=function Mi(e){return!!e.useClass}(t);if(o||a){const F=(a?qe(t.useClass):t).prototype.ngOnDestroy;if(F){const re=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const me=re.indexOf(n);-1===me?re.push(n,[i,F]):re[me+1].push(i,F)}else re.push(n,F)}}}function ub(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Pg(e,t,n,i){for(let o=n;o<i;o++)if(t[o]===e)return o;return-1}function oD(e,t,n,i){return kg(this.multi,[])}function sD(e,t,n,i){const o=this.multi;let a;if(this.providerFactory){const y=this.providerFactory.componentProviders,E=Js(n,n[kt],this.providerFactory.index,i);a=E.slice(0,y),kg(o,a);for(let F=y;F<E.length;F++)a.push(E[F])}else a=[],kg(o,a);return a}function kg(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function db(e,t=[]){return n=>{n.providersResolver=(i,o)=>function iD(e,t,n){const i=ar();if(i.firstCreatePass){const o=ss(e);Ng(n,i.data,i.blueprint,o,!0),Ng(t,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,t)}}let lD=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const i=gn(0,n.type),o=i.length>0?Wp([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=vn({token:e,providedIn:"environment",factory:()=>new e(Ir(Hr))})}return e})();function hb(e){ia("NgStandalone"),e.getStandaloneInjector=t=>t.get(lD).getOrCreateStandaloneInjector(e)}function fb(e,t,n){const i=e.\u0275cmp;i.directiveDefs=mo(t,!1),i.pipeDefs=mo(n,!0)}function gb(e,t,n){const i=To()+e,o=Mt();return o[i]===Kn?oa(o,i,n?t.call(n):t()):function Fu(e,t){return e[t]}(o,i)}function mb(e,t,n,i){return bb(Mt(),To(),e,t,n,i)}function vb(e,t,n,i,o){return Cb(Mt(),To(),e,t,n,i,o)}function yb(e,t,n,i,o,a){return Tb(Mt(),To(),e,t,n,i,o,a)}function _b(e,t,n,i,o,a,y){return Eb(Mt(),To(),e,t,n,i,o,a,y)}function Xu(e,t){const n=e[t];return n===Kn?void 0:n}function bb(e,t,n,i,o,a){const y=t+n;return zi(e,y,o)?oa(e,y+1,a?i.call(a,o):i(o)):Xu(e,y+1)}function Cb(e,t,n,i,o,a,y){const E=t+n;return bl(e,E,o,a)?oa(e,E+2,y?i.call(y,o,a):i(o,a)):Xu(e,E+2)}function Tb(e,t,n,i,o,a,y,E){const F=t+n;return Rh(e,F,o,a,y)?oa(e,F+3,E?i.call(E,o,a,y):i(o,a,y)):Xu(e,F+3)}function Eb(e,t,n,i,o,a,y,E,F){const re=t+n;return Is(e,re,o,a,y,E)?oa(e,re+4,F?i.call(F,o,a,y,E):i(o,a,y,E)):Xu(e,re+4)}function Ab(e,t){const n=ar();let i;const o=e+kn;n.firstCreatePass?(i=function gD(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[o]=i,i.onDestroy&&(n.destroyHooks??=[]).push(o,i.onDestroy)):i=n.data[o];const a=i.factory||(i.factory=pi(i.type)),E=Et(ic);try{const F=Pl(!1),re=a();return Pl(F),function Kw(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,Mt(),o,re),re}finally{Et(E)}}function wb(e,t,n){const i=e+kn,o=Mt(),a=ol(o,i);return qu(o,i)?bb(o,To(),t,a.transform,n,a):a.transform(n)}function Db(e,t,n,i){const o=e+kn,a=Mt(),y=ol(a,o);return qu(a,o)?Cb(a,To(),t,y.transform,n,i,y):y.transform(n,i)}function Ib(e,t,n,i,o){const a=e+kn,y=Mt(),E=ol(y,a);return qu(y,a)?Tb(y,To(),t,E.transform,n,i,o,E):E.transform(n,i,o)}function Mb(e,t,n,i,o,a){const y=e+kn,E=Mt(),F=ol(E,y);return qu(E,y)?Eb(E,To(),t,F.transform,n,i,o,a,F):F.transform(n,i,o,a)}function qu(e,t){return e[kt].data[t].pure}function Ob(e,t){return vh(e,t)}class Kb{constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}let zb=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=vn({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const Jb=new yt(""),Zb=new yt("");let Ug,cI=(()=>{class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Ug||(function uI(e){Ug=e}(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ki.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let a=-1;i&&i>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==a),n()},i)),this._callbacks.push({doneCb:n,timeoutId:a,updateCb:o})}whenStable(n,i,o){if(o&&!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(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}static#e=this.\u0275fac=function(i){return new(i||e)(Ir(Ki),Ir(eC),Ir(Zb))};static#t=this.\u0275prov=vn({token:e,factory:e.\u0275fac})}return e})(),eC=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return Ug?.findTestabilityInTree(this,n,i)??null}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=vn({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Vg(e){return!!e&&"function"==typeof e.then}function tC(e){return!!e&&"function"==typeof e.subscribe}const nC=new yt("");let Gg=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=ln(nC,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const a=o();if(Vg(a))n.push(a);else if(tC(a)){const y=new Promise((E,F)=>{a.subscribe({complete:E,error:F})});n.push(y)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),0===n.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=vn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const jg=new yt("");function oC(e,t){return Array.isArray(t)?t.reduce(oC,e):{...e,...t}}let Xa=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=ln(xf),this.afterRenderEffectManager=ln(Nu),this.externalTestViews=new Set,this.beforeRender=new ct.B,this.afterTick=new ct.B,this.componentTypes=[],this.components=[],this.isStable=ln(cc).hasPendingTasks.pipe((0,it.T)(n=>!n)),this._injector=ln(Hr)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){const o=n instanceof Zv;if(!this._injector.get(Gg).done)throw!o&&Cr(n),new at(405,!1);let y;y=o?n:this._injector.get(Eh).resolveComponentFactory(n),this.componentTypes.push(y.componentType);const E=function dI(e){return e.isBoundToModule}(y)?void 0:this._injector.get(_l),re=y.create(Xo.NULL,[],i||y.selector,E),me=re.location.nativeElement,Ne=re.injector.get(Jb,null);return Ne?.registerApplication(me),re.onDestroy(()=>{this.detachView(re.hostView),Zh(this.components,re),Ne?.unregisterApplication(me)}),this._loadComponent(re),re}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new at(101,!1);const i=P(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,P(i)}}detectChangesInAttachedViews(n){let i=0;const o=this.afterRenderEffectManager;for(;;){if(i===jv)throw new at(103,!1);if(n){const a=0===i;this.beforeRender.next(a);for(let{_lView:y,notifyErrorHandler:E}of this._views)fI(y,a,E)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:a})=>$g(a))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:a})=>$g(a))))break}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;Zh(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const i=this._injector.get(jg,[]);[...this._bootstrapListeners,...i].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Zh(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new at(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=vn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Zh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function fI(e,t,n){!t&&!$g(e)||function pI(e,t,n){let i;n?(i=0,e[dn]|=1024):i=64&e[dn]?0:1,mh(e,t,i)}(e,n,t)}function $g(e){return sd(e)}class gI{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let mI=(()=>{class e{compileModuleSync(n){return new $p(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),a=_s(Gr(n).declarations).reduce((y,E)=>{const F=Mn(E);return F&&y.push(new ku(F)),y},[]);return new gI(i,a)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=vn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_I=(()=>{class e{constructor(){this.zone=ln(Ki),this.applicationRef=ln(Xa)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=vn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function bI(){const e=ln(Ki),t=ln(Zs);return n=>e.runOutsideAngular(()=>t.handleError(n))}let TI=(()=>{class e{constructor(){this.subscription=new St.yU,this.initialized=!1,this.zone=ln(Ki),this.pendingTasks=ln(cc)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ki.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ki.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=vn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const tf=new yt("",{providedIn:"root",factory:()=>ln(tf,ke.Optional|ke.SkipSelf)||function EI(){return typeof $localize<"u"&&$localize.locale||Mc}()}),SI=new yt("",{providedIn:"root",factory:()=>"USD"}),Wg=new yt("");let cC=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const o=function E1(e="zone.js",t){return"noop"===e?new sy:"zone.js"===e?new Ki(t):e}(i?.ngZone,function lC(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const a=function pS(e,t,n){return new jp(e,t,n)}(n.moduleType,this.injector,function aC(e){return[{provide:Ki,useFactory:e},{provide:Wi,multi:!0,useFactory:()=>{const t=ln(_I,{optional:!0});return()=>t.initialize()}},{provide:Wi,multi:!0,useFactory:()=>{const t=ln(TI);return()=>{t.initialize()}}},{provide:xf,useFactory:bI}]}(()=>o)),y=a.injector.get(Zs,null);return o.runOutsideAngular(()=>{const E=o.onError.subscribe({next:F=>{y.handleError(F)}});a.onDestroy(()=>{Zh(this._modules,a),E.unsubscribe()})}),function iC(e,t,n){try{const i=n();return Vg(i)?i.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(y,o,()=>{const E=a.injector.get(Gg);return E.runInitializers(),E.donePromise.then(()=>(function n0(e){"string"==typeof e&&(t0=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(tf,Mc)||Mc),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,i=[]){const o=oC({},i);return function yI(e,t,n){const i=new $p(n);return Promise.resolve(i)}(0,0,n).then(a=>this.bootstrapModuleFactory(a,o))}_moduleDoBootstrap(n){const i=n.injector.get(Xa);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new at(-403,!1);n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new at(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const n=this._injector.get(Wg,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||e)(Ir(Xo))};static#t=this.\u0275prov=vn({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),qa=null;const uC=new yt("");function dC(e,t,n=[]){const i=`Platform: ${t}`,o=new yt(i);return(a=[])=>{let y=Kg();if(!y||y.injector.get(uC,!1)){const E=[...n,...a,{provide:o,useValue:!0}];e?e(E):function wI(e){if(qa&&!qa.get(uC,!1))throw new at(400,!1);(function rC(){!function Re(e){Le=e}(()=>{throw new at(600,!1)})})(),qa=e;const t=e.get(cC);(function fC(e){e.get(Eo,null)?.forEach(n=>n())})(e)}(function hC(e=[],t){return Xo.create({name:t,providers:[{provide:Vo,useValue:"platform"},{provide:Wg,useValue:new Set([()=>qa=null])},...e]})}(E,i))}return function DI(e){const t=Kg();if(!t)throw new at(401,!1);return t}()}}function Kg(){return qa?.get(cC)??null}function MI(){}let gC=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=OI}return e})();function OI(e){return function NI(e,t,n){if(Ws(e)&&!n){const i=as(e.index,t);return new Au(i,i)}return 47&e.type?new Au(t[Ti],t):null}(xr(),Mt(),!(16&~e))}class _C{constructor(){}supports(t){return Nh(t)}create(t){return new FI(t)}}const xI=(e,t)=>t;class FI{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||xI}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,o=0,a=null;for(;n||i;){const y=!i||n&&n.currentIndex<CC(i,o,a)?n:i,E=CC(y,o,a),F=y.currentIndex;if(y===i)o--,i=i._nextRemoved;else if(n=n._next,null==y.previousIndex)o++;else{a||(a=[]);const re=E-o,me=F-o;if(re!=me){for(let Qe=0;Qe<re;Qe++){const rt=Qe<a.length?a[Qe]:a[Qe]=0,ft=rt+Qe;me<=ft&&ft<re&&(a[Qe]=rt+1)}a[y.previousIndex]=me-re}}E!==F&&t(y,E,F)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!Nh(t))throw new at(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,a,y,n=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let E=0;E<this.length;E++)a=t[E],y=this._trackByFn(E,a),null!==n&&Object.is(n.trackById,y)?(i&&(n=this._verifyReinsertion(n,a,y,E)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,y,E),i=!0),n=n._next}else o=0,function yS(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let i;for(;!(i=n.next()).done;)t(i.value)}}(t,E=>{y=this._trackByFn(o,E),null!==n&&Object.is(n.trackById,y)?(i&&(n=this._verifyReinsertion(n,E,y,o)),Object.is(n.item,E)||this._addIdentityChange(n,E)):(n=this._mismatch(n,E,y,o),i=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,o){let a;return null===t?a=this._itTail:(a=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,a,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,a,o)):t=this._addAfter(new LI(n,i),a,o),t}_verifyReinsertion(t,n,i,o){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==a?t=this._reinsertAfter(a,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,a=t._nextRemoved;return null===o?this._removalsHead=a:o._nextRemoved=a,null===a?this._removalsTail=o:a._prevRemoved=o,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new bC),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new bC),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class LI{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class BI{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class bC{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new BI,this.map.set(n,i)),i.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function CC(e,t,n){const i=e.previousIndex;if(null===i)return i;let o=0;return n&&i<n.length&&(o=n[i]),i+t+o}class TC{constructor(){}supports(t){return t instanceof Map||Kp(t)}create(){return new HI}}class HI{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||Kp(t)))throw new at(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const a=this._getOrCreateRecordForKey(o,i);n=this._insertBeforeOrAppend(n,a)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const a=o._prev,y=o._next;return a&&(a._next=y),y&&(y._prev=a),o._next=null,o._prev=null,o}const i=new UI(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class UI{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function EC(){return new Yg([new _C])}let Yg=(()=>{class e{static#e=this.\u0275prov=vn({token:e,providedIn:"root",factory:EC});constructor(n){this.factories=n}static create(n,i){if(null!=i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||EC()),deps:[[e,new Do,new Zr]]}}find(n){const i=this.factories.find(o=>o.supports(n));if(null!=i)return i;throw new at(901,!1)}}return e})();function SC(){return new Jg([new TC])}let Jg=(()=>{class e{static#e=this.\u0275prov=vn({token:e,providedIn:"root",factory:SC});constructor(n){this.factories=n}static create(n,i){if(i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||SC()),deps:[[e,new Do,new Zr]]}}find(n){const i=this.factories.find(o=>o.supports(n));if(i)return i;throw new at(901,!1)}}return e})();const jI=dC(null,"core",[]);let $I=(()=>{class e{constructor(n){}static#e=this.\u0275fac=function(i){return new(i||e)(Ir(Xa))};static#t=this.\u0275mod=Br({type:e});static#n=this.\u0275inj=dr({})}return e})();function _M(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function CM(e){const t=P(null);try{return e()}finally{P(t)}}function DM(e,t){const n=Mn(e),i=t.elementInjector||Gs();return new ku(n).create(i,t.projectableNodes,t.hostElement,t.environmentInjector)}function IM(e){const t=Mn(e);if(!t)return null;const n=new ku(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},4341:(Dt,ve,_)=>{"use strict";_.d(ve,{Zm:()=>D,me:()=>te,v8:()=>Ir,JD:()=>no,j4:()=>zr,$R:()=>Xr,YN:()=>po,cz:()=>W,kq:()=>m,BC:()=>Nn,cb:()=>Ht,cV:()=>en,vS:()=>ke,xH:()=>Qi,R_:()=>Wo,Fm:()=>Qn,X1:()=>De,YS:()=>Io,wz:()=>wo,Bm:()=>ps,ze:()=>Zo,hs:()=>Wn,J3:()=>Bi,k0:()=>ee,qT:()=>ht,y7:()=>pi});var r=_(4438),g=_(177),R=_(6648),V=_(1985),U=_(3073),H=_(8750),P=_(9326),b=_(4360),C=_(6450),S=_(8496),B=_(6354);let G=(()=>{class d{constructor(v,h){this._renderer=v,this._elementRef=h,this.onChange=A=>{},this.onTouched=()=>{}}setProperty(v,h){this._renderer.setProperty(this._elementRef.nativeElement,v,h)}registerOnTouched(v){this.onTouched=v}registerOnChange(v){this.onChange=v}setDisabledState(v){this.setProperty("disabled",v)}static#e=this.\u0275fac=function(h){return new(h||d)(r.rXU(r.sFG),r.rXU(r.aKT))};static#t=this.\u0275dir=r.FsC({type:d})}return d})(),x=(()=>{class d extends G{static#e=this.\u0275fac=(()=>{let v;return function(A){return(v||(v=r.xGo(d)))(A||d)}})();static#t=this.\u0275dir=r.FsC({type:d,features:[r.Vt3]})}return d})();const m=new r.nKC(""),k={provide:m,useExisting:(0,r.Rfq)(()=>D),multi:!0};let D=(()=>{class d extends x{writeValue(v){this.setProperty("checked",v)}static#e=this.\u0275fac=(()=>{let v;return function(A){return(v||(v=r.xGo(d)))(A||d)}})();static#t=this.\u0275dir=r.FsC({type:d,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(h,A){1&h&&r.bIt("change",function(ue){return A.onChange(ue.target.checked)})("blur",function(){return A.onTouched()})},features:[r.Jv_([k]),r.Vt3]})}return d})();const K={provide:m,useExisting:(0,r.Rfq)(()=>te),multi:!0},ie=new r.nKC("");let te=(()=>{class d extends G{constructor(v,h,A){super(v,h),this._compositionMode=A,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function de(){const d=(0,g.QT)()?(0,g.QT)().getUserAgent():"";return/android (\d+)/.test(d.toLowerCase())}())}writeValue(v){this.setProperty("value",v??"")}_handleInput(v){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(v)}_compositionStart(){this._composing=!0}_compositionEnd(v){this._composing=!1,this._compositionMode&&this.onChange(v)}static#e=this.\u0275fac=function(h){return new(h||d)(r.rXU(r.sFG),r.rXU(r.aKT),r.rXU(ie,8))};static#t=this.\u0275dir=r.FsC({type:d,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(h,A){1&h&&r.bIt("input",function(ue){return A._handleInput(ue.target.value)})("blur",function(){return A.onTouched()})("compositionstart",function(){return A._compositionStart()})("compositionend",function(ue){return A._compositionEnd(ue.target.value)})},features:[r.Jv_([K]),r.Vt3]})}return d})();function se(d){return null==d||("string"==typeof d||Array.isArray(d))&&0===d.length}function z(d){return null!=d&&"number"==typeof d.length}const W=new r.nKC(""),Y=new r.nKC(""),q=/^(?=.{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])?)*$/;class ee{static min(p){return function Q(d){return p=>{if(se(p.value)||se(d))return null;const v=parseFloat(p.value);return!isNaN(v)&&v<d?{min:{min:d,actual:p.value}}:null}}(p)}static max(p){return function be(d){return p=>{if(se(p.value)||se(d))return null;const v=parseFloat(p.value);return!isNaN(v)&&v>d?{max:{max:d,actual:p.value}}:null}}(p)}static required(p){return we(p)}static requiredTrue(p){return function Ze(d){return!0===d.value?null:{required:!0}}(p)}static email(p){return function Ue(d){return se(d.value)||q.test(d.value)?null:{email:!0}}(p)}static minLength(p){return function Le(d){return p=>se(p.value)||!z(p.value)?null:p.value.length<d?{minlength:{requiredLength:d,actualLength:p.value.length}}:null}(p)}static maxLength(p){return function _e(d){return p=>z(p.value)&&p.value.length>d?{maxlength:{requiredLength:d,actualLength:p.value.length}}:null}(p)}static pattern(p){return Re(p)}static nullValidator(p){return null}static compose(p){return Ge(p)}static composeAsync(p){return Fe(p)}}function we(d){return se(d.value)?{required:!0}:null}function Re(d){if(!d)return ae;let p,v;return"string"==typeof d?(v="","^"!==d.charAt(0)&&(v+="^"),v+=d,"$"!==d.charAt(d.length-1)&&(v+="$"),p=new RegExp(v)):(v=d.toString(),p=d),h=>{if(se(h.value))return null;const A=h.value;return p.test(A)?null:{pattern:{requiredPattern:v,actualValue:A}}}}function ae(d){return null}function oe(d){return null!=d}function ge(d){return(0,r.jNT)(d)?(0,R.H)(d):d}function pe(d){let p={};return d.forEach(v=>{p=null!=v?{...p,...v}:p}),0===Object.keys(p).length?null:p}function Ae(d,p){return p.map(v=>v(d))}function We(d){return d.map(p=>function Pe(d){return!d.validate}(p)?p:v=>p.validate(v))}function Ge(d){if(!d)return null;const p=d.filter(oe);return 0==p.length?null:function(v){return pe(Ae(v,p))}}function ut(d){return null!=d?Ge(We(d)):null}function Fe(d){if(!d)return null;const p=d.filter(oe);return 0==p.length?null:function(v){return function I(...d){const p=(0,P.ms)(d),{args:v,keys:h}=(0,U.D)(d),A=new V.c(ne=>{const{length:ue}=v;if(!ue)return void ne.complete();const Ee=new Array(ue);let Ie=ue,et=ue;for(let gt=0;gt<ue;gt++){let Vt=!1;(0,H.Tg)(v[gt]).subscribe((0,b._)(ne,Ut=>{Vt||(Vt=!0,et--),Ee[gt]=Ut},()=>Ie--,void 0,()=>{(!Ie||!Vt)&&(et||ne.next(h?(0,S.e)(h,Ee):Ee),ne.complete())}))}});return p?A.pipe((0,C.I)(p)):A}(Ae(v,p).map(ge)).pipe((0,B.T)(pe))}}function tt(d){return null!=d?Fe(We(d)):null}function st(d,p){return null===d?[p]:Array.isArray(d)?[...d,p]:[d,p]}function ct(d){return d._rawValidators}function St(d){return d._rawAsyncValidators}function Gt(d){return d?Array.isArray(d)?d:[d]:[]}function it(d,p){return Array.isArray(d)?d.includes(p):d===p}function Xe(d,p){const v=Gt(p);return Gt(d).forEach(A=>{it(v,A)||v.push(A)}),v}function wt(d,p){return Gt(p).filter(v=>!it(d,v))}class at{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(p){this._rawValidators=p||[],this._composedValidatorFn=ut(this._rawValidators)}_setAsyncValidators(p){this._rawAsyncValidators=p||[],this._composedAsyncValidatorFn=tt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(p){this._onDestroyCallbacks.push(p)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(p=>p()),this._onDestroyCallbacks=[]}reset(p=void 0){this.control&&this.control.reset(p)}hasError(p,v){return!!this.control&&this.control.hasError(p,v)}getError(p,v){return this.control?this.control.getError(p,v):null}}class vt extends at{get formDirective(){return null}get path(){return null}}class $t extends at{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class tn{constructor(p){this._cd=p}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Nn=(()=>{class d extends tn{constructor(v){super(v)}static#e=this.\u0275fac=function(h){return new(h||d)(r.rXU($t,2))};static#t=this.\u0275dir=r.FsC({type:d,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(h,A){2&h&&r.AVh("ng-untouched",A.isUntouched)("ng-touched",A.isTouched)("ng-pristine",A.isPristine)("ng-dirty",A.isDirty)("ng-valid",A.isValid)("ng-invalid",A.isInvalid)("ng-pending",A.isPending)},features:[r.Vt3]})}return d})(),Ht=(()=>{class d extends tn{constructor(v){super(v)}static#e=this.\u0275fac=function(h){return new(h||d)(r.rXU(vt,10))};static#t=this.\u0275dir=r.FsC({type:d,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(h,A){2&h&&r.AVh("ng-untouched",A.isUntouched)("ng-touched",A.isTouched)("ng-pristine",A.isPristine)("ng-dirty",A.isDirty)("ng-valid",A.isValid)("ng-invalid",A.isInvalid)("ng-pending",A.isPending)("ng-submitted",A.isSubmitted)},features:[r.Vt3]})}return d})();const qe="VALID",ot="INVALID",He="PENDING",Ye="DISABLED";function bt(d){return(In(d)?d.validators:d)||null}function Zt(d,p){return(In(p)?p.asyncValidators:d)||null}function In(d){return null!=d&&!Array.isArray(d)&&"object"==typeof d}function nr(d,p,v){const h=d.controls;if(!(p?Object.keys(h):h).length)throw new r.wOt(1e3,"");if(!h[v])throw new r.wOt(1001,"")}function ir(d,p,v){d._forEachChild((h,A)=>{if(void 0===v[A])throw new r.wOt(1002,"")})}class fr{constructor(p,v){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(p),this._assignAsyncValidators(v)}get validator(){return this._composedValidatorFn}set validator(p){this._rawValidators=this._composedValidatorFn=p}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(p){this._rawAsyncValidators=this._composedAsyncValidatorFn=p}get parent(){return this._parent}get valid(){return this.status===qe}get invalid(){return this.status===ot}get pending(){return this.status==He}get disabled(){return this.status===Ye}get enabled(){return this.status!==Ye}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(p){this._assignValidators(p)}setAsyncValidators(p){this._assignAsyncValidators(p)}addValidators(p){this.setValidators(Xe(p,this._rawValidators))}addAsyncValidators(p){this.setAsyncValidators(Xe(p,this._rawAsyncValidators))}removeValidators(p){this.setValidators(wt(p,this._rawValidators))}removeAsyncValidators(p){this.setAsyncValidators(wt(p,this._rawAsyncValidators))}hasValidator(p){return it(this._rawValidators,p)}hasAsyncValidator(p){return it(this._rawAsyncValidators,p)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(p={}){this.touched=!0,this._parent&&!p.onlySelf&&this._parent.markAsTouched(p)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(p=>p.markAllAsTouched())}markAsUntouched(p={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(v=>{v.markAsUntouched({onlySelf:!0})}),this._parent&&!p.onlySelf&&this._parent._updateTouched(p)}markAsDirty(p={}){this.pristine=!1,this._parent&&!p.onlySelf&&this._parent.markAsDirty(p)}markAsPristine(p={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(v=>{v.markAsPristine({onlySelf:!0})}),this._parent&&!p.onlySelf&&this._parent._updatePristine(p)}markAsPending(p={}){this.status=He,!1!==p.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!p.onlySelf&&this._parent.markAsPending(p)}disable(p={}){const v=this._parentMarkedDirty(p.onlySelf);this.status=Ye,this.errors=null,this._forEachChild(h=>{h.disable({...p,onlySelf:!0})}),this._updateValue(),!1!==p.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...p,skipPristineCheck:v}),this._onDisabledChange.forEach(h=>h(!0))}enable(p={}){const v=this._parentMarkedDirty(p.onlySelf);this.status=qe,this._forEachChild(h=>{h.enable({...p,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:p.emitEvent}),this._updateAncestors({...p,skipPristineCheck:v}),this._onDisabledChange.forEach(h=>h(!1))}_updateAncestors(p){this._parent&&!p.onlySelf&&(this._parent.updateValueAndValidity(p),p.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(p){this._parent=p}getRawValue(){return this.value}updateValueAndValidity(p={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===qe||this.status===He)&&this._runAsyncValidator(p.emitEvent)),!1!==p.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!p.onlySelf&&this._parent.updateValueAndValidity(p)}_updateTreeValidity(p={emitEvent:!0}){this._forEachChild(v=>v._updateTreeValidity(p)),this.updateValueAndValidity({onlySelf:!0,emitEvent:p.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ye:qe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(p){if(this.asyncValidator){this.status=He,this._hasOwnPendingAsyncValidator=!0;const v=ge(this.asyncValidator(this));this._asyncValidationSubscription=v.subscribe(h=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(h,{emitEvent:p})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(p,v={}){this.errors=p,this._updateControlsErrors(!1!==v.emitEvent)}get(p){let v=p;return null==v||(Array.isArray(v)||(v=v.split(".")),0===v.length)?null:v.reduce((h,A)=>h&&h._find(A),this)}getError(p,v){const h=v?this.get(v):this;return h&&h.errors?h.errors[p]:null}hasError(p,v){return!!this.getError(p,v)}get root(){let p=this;for(;p._parent;)p=p._parent;return p}_updateControlsErrors(p){this.status=this._calculateStatus(),p&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(p)}_initObservables(){this.valueChanges=new r.bkB,this.statusChanges=new r.bkB}_calculateStatus(){return this._allControlsDisabled()?Ye:this.errors?ot:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(He)?He:this._anyControlsHaveStatus(ot)?ot:qe}_anyControlsHaveStatus(p){return this._anyControls(v=>v.status===p)}_anyControlsDirty(){return this._anyControls(p=>p.dirty)}_anyControlsTouched(){return this._anyControls(p=>p.touched)}_updatePristine(p={}){this.pristine=!this._anyControlsDirty(),this._parent&&!p.onlySelf&&this._parent._updatePristine(p)}_updateTouched(p={}){this.touched=this._anyControlsTouched(),this._parent&&!p.onlySelf&&this._parent._updateTouched(p)}_registerOnCollectionChange(p){this._onCollectionChange=p}_setUpdateStrategy(p){In(p)&&null!=p.updateOn&&(this._updateOn=p.updateOn)}_parentMarkedDirty(p){return!p&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(p){return null}_assignValidators(p){this._rawValidators=Array.isArray(p)?p.slice():p,this._composedValidatorFn=function Lt(d){return Array.isArray(d)?ut(d):d||null}(this._rawValidators)}_assignAsyncValidators(p){this._rawAsyncValidators=Array.isArray(p)?p.slice():p,this._composedAsyncValidatorFn=function Dn(d){return Array.isArray(d)?tt(d):d||null}(this._rawAsyncValidators)}}class Pn extends fr{constructor(p,v,h){super(bt(v),Zt(h,v)),this.controls=p,this._initObservables(),this._setUpdateStrategy(v),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(p,v){return this.controls[p]?this.controls[p]:(this.controls[p]=v,v.setParent(this),v._registerOnCollectionChange(this._onCollectionChange),v)}addControl(p,v,h={}){this.registerControl(p,v),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}removeControl(p,v={}){this.controls[p]&&this.controls[p]._registerOnCollectionChange(()=>{}),delete this.controls[p],this.updateValueAndValidity({emitEvent:v.emitEvent}),this._onCollectionChange()}setControl(p,v,h={}){this.controls[p]&&this.controls[p]._registerOnCollectionChange(()=>{}),delete this.controls[p],v&&this.registerControl(p,v),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}contains(p){return this.controls.hasOwnProperty(p)&&this.controls[p].enabled}setValue(p,v={}){ir(this,0,p),Object.keys(p).forEach(h=>{nr(this,!0,h),this.controls[h].setValue(p[h],{onlySelf:!0,emitEvent:v.emitEvent})}),this.updateValueAndValidity(v)}patchValue(p,v={}){null!=p&&(Object.keys(p).forEach(h=>{const A=this.controls[h];A&&A.patchValue(p[h],{onlySelf:!0,emitEvent:v.emitEvent})}),this.updateValueAndValidity(v))}reset(p={},v={}){this._forEachChild((h,A)=>{h.reset(p?p[A]:null,{onlySelf:!0,emitEvent:v.emitEvent})}),this._updatePristine(v),this._updateTouched(v),this.updateValueAndValidity(v)}getRawValue(){return this._reduceChildren({},(p,v,h)=>(p[h]=v.getRawValue(),p))}_syncPendingControls(){let p=this._reduceChildren(!1,(v,h)=>!!h._syncPendingControls()||v);return p&&this.updateValueAndValidity({onlySelf:!0}),p}_forEachChild(p){Object.keys(this.controls).forEach(v=>{const h=this.controls[v];h&&p(h,v)})}_setUpControls(){this._forEachChild(p=>{p.setParent(this),p._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(p){for(const[v,h]of Object.entries(this.controls))if(this.contains(v)&&p(h))return!0;return!1}_reduceValue(){return this._reduceChildren({},(v,h,A)=>((h.enabled||this.disabled)&&(v[A]=h.value),v))}_reduceChildren(p,v){let h=p;return this._forEachChild((A,ne)=>{h=v(h,A,ne)}),h}_allControlsDisabled(){for(const p of Object.keys(this.controls))if(this.controls[p].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(p){return this.controls.hasOwnProperty(p)?this.controls[p]:null}}const Bi=Pn;class on extends Pn{}const qr=new r.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>ui}),ui="always";function Qr(d,p){return[...p.path,d]}function _r(d,p,v=ui){gr(d,p),p.valueAccessor.writeValue(d.value),(d.disabled||"always"===v)&&p.valueAccessor.setDisabledState?.(d.disabled),function wr(d,p){p.valueAccessor.registerOnChange(v=>{d._pendingValue=v,d._pendingChange=!0,d._pendingDirty=!0,"change"===d.updateOn&&$n(d,p)})}(d,p),function Oe(d,p){const v=(h,A)=>{p.valueAccessor.writeValue(h),A&&p.viewToModelUpdate(h)};d.registerOnChange(v),p._registerOnDestroy(()=>{d._unregisterOnChange(v)})}(d,p),function Yr(d,p){p.valueAccessor.registerOnTouched(()=>{d._pendingTouched=!0,"blur"===d.updateOn&&d._pendingChange&&$n(d,p),"submit"!==d.updateOn&&d.markAsTouched()})}(d,p),function dr(d,p){if(p.valueAccessor.setDisabledState){const v=h=>{p.valueAccessor.setDisabledState(h)};d.registerOnDisabledChange(v),p._registerOnDestroy(()=>{d._unregisterOnDisabledChange(v)})}}(d,p)}function vn(d,p,v=!0){const h=()=>{};p.valueAccessor&&(p.valueAccessor.registerOnChange(h),p.valueAccessor.registerOnTouched(h)),Pr(d,p),d&&(p._invokeOnDestroyCallbacks(),d._registerOnCollectionChange(()=>{}))}function di(d,p){d.forEach(v=>{v.registerOnValidatorChange&&v.registerOnValidatorChange(p)})}function gr(d,p){const v=ct(d);null!==p.validator?d.setValidators(st(v,p.validator)):"function"==typeof v&&d.setValidators([v]);const h=St(d);null!==p.asyncValidator?d.setAsyncValidators(st(h,p.asyncValidator)):"function"==typeof h&&d.setAsyncValidators([h]);const A=()=>d.updateValueAndValidity();di(p._rawValidators,A),di(p._rawAsyncValidators,A)}function Pr(d,p){let v=!1;if(null!==d){if(null!==p.validator){const A=ct(d);if(Array.isArray(A)&&A.length>0){const ne=A.filter(ue=>ue!==p.validator);ne.length!==A.length&&(v=!0,d.setValidators(ne))}}if(null!==p.asyncValidator){const A=St(d);if(Array.isArray(A)&&A.length>0){const ne=A.filter(ue=>ue!==p.asyncValidator);ne.length!==A.length&&(v=!0,d.setAsyncValidators(ne))}}}const h=()=>{};return di(p._rawValidators,h),di(p._rawAsyncValidators,h),v}function $n(d,p){d._pendingDirty&&d.markAsDirty(),d.setValue(d._pendingValue,{emitModelToViewChange:!1}),p.viewToModelUpdate(d._pendingValue),d._pendingChange=!1}function Ke(d,p){gr(d,p)}function xe(d,p){if(!d.hasOwnProperty("model"))return!1;const v=d.model;return!!v.isFirstChange()||!Object.is(p,v.currentValue)}function Me(d,p){d._syncPendingControls(),p.forEach(v=>{const h=v.control;"submit"===h.updateOn&&h._pendingChange&&(v.viewToModelUpdate(h._pendingValue),h._pendingChange=!1)})}function je(d,p){if(!p)return null;let v,h,A;return Array.isArray(p),p.forEach(ne=>{ne.constructor===te?v=ne:function Z(d){return Object.getPrototypeOf(d.constructor)===x}(ne)?h=ne:A=ne}),A||h||v||null}const nn={provide:vt,useExisting:(0,r.Rfq)(()=>en)},an=Promise.resolve();let en=(()=>{class d extends vt{constructor(v,h,A){super(),this.callSetDisabledState=A,this.submitted=!1,this._directives=new Set,this.ngSubmit=new r.bkB,this.form=new Pn({},ut(v),tt(h))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(v){an.then(()=>{const h=this._findContainer(v.path);v.control=h.registerControl(v.name,v.control),_r(v.control,v,this.callSetDisabledState),v.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(v)})}getControl(v){return this.form.get(v.path)}removeControl(v){an.then(()=>{const h=this._findContainer(v.path);h&&h.removeControl(v.name),this._directives.delete(v)})}addFormGroup(v){an.then(()=>{const h=this._findContainer(v.path),A=new Pn({});Ke(A,v),h.registerControl(v.name,A),A.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(v){an.then(()=>{const h=this._findContainer(v.path);h&&h.removeControl(v.name)})}getFormGroup(v){return this.form.get(v.path)}updateModel(v,h){an.then(()=>{this.form.get(v.path).setValue(h)})}setValue(v){this.control.setValue(v)}onSubmit(v){return this.submitted=!0,Me(this.form,this._directives),this.ngSubmit.emit(v),"dialog"===v?.target?.method}onReset(){this.resetForm()}resetForm(v=void 0){this.form.reset(v),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(v){return v.pop(),v.length?this.form.get(v):this.form}static#e=this.\u0275fac=function(h){return new(h||d)(r.rXU(W,10),r.rXU(Y,10),r.rXU(qr,8))};static#t=this.\u0275dir=r.FsC({type:d,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(h,A){1&h&&r.bIt("submit",function(ue){return A.onSubmit(ue)})("reset",function(){return A.onReset()})},inputs:{options:[r.Mj6.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Jv_([nn]),r.Vt3]})}return d})();function rn(d,p){const v=d.indexOf(p);v>-1&&d.splice(v,1)}function Vn(d){return"object"==typeof d&&null!==d&&2===Object.keys(d).length&&"value"in d&&"disabled"in d}const En=class extends fr{constructor(p=null,v,h){super(bt(v),Zt(h,v)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(p),this._setUpdateStrategy(v),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),In(v)&&(v.nonNullable||v.initialValueIsDefault)&&(this.defaultValue=Vn(p)?p.value:p)}setValue(p,v={}){this.value=this._pendingValue=p,this._onChange.length&&!1!==v.emitModelToViewChange&&this._onChange.forEach(h=>h(this.value,!1!==v.emitViewToModelChange)),this.updateValueAndValidity(v)}patchValue(p,v={}){this.setValue(p,v)}reset(p=this.defaultValue,v={}){this._applyFormState(p),this.markAsPristine(v),this.markAsUntouched(v),this.setValue(this.value,v),this._pendingChange=!1}_updateValue(){}_anyControls(p){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(p){this._onChange.push(p)}_unregisterOnChange(p){rn(this._onChange,p)}registerOnDisabledChange(p){this._onDisabledChange.push(p)}_unregisterOnDisabledChange(p){rn(this._onDisabledChange,p)}_forEachChild(p){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(p){Vn(p)?(this.value=this._pendingValue=p.value,p.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=p}},Wn=En;let br=(()=>{class d extends vt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Qr(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=(()=>{let v;return function(A){return(v||(v=r.xGo(d)))(A||d)}})();static#t=this.\u0275dir=r.FsC({type:d,features:[r.Vt3]})}return d})();const he={provide:$t,useExisting:(0,r.Rfq)(()=>ke)},Ce=Promise.resolve();let ke=(()=>{class d extends $t{constructor(v,h,A,ne,ue,Ee){super(),this._changeDetectorRef=ue,this.callSetDisabledState=Ee,this.control=new En,this._registered=!1,this.name="",this.update=new r.bkB,this._parent=v,this._setValidators(h),this._setAsyncValidators(A),this.valueAccessor=je(0,ne)}ngOnChanges(v){if(this._checkForErrors(),!this._registered||"name"in v){if(this._registered&&(this._checkName(),this.formDirective)){const h=v.name.previousValue;this.formDirective.removeControl({name:h,path:this._getPath(h)})}this._setUpControl()}"isDisabled"in v&&this._updateDisabled(v),xe(v,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(v){this.viewModel=v,this.update.emit(v)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){_r(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(v){Ce.then(()=>{this.control.setValue(v,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(v){const h=v.isDisabled.currentValue,A=0!==h&&(0,r.L39)(h);Ce.then(()=>{A&&!this.control.disabled?this.control.disable():!A&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(v){return this._parent?Qr(v,this._parent):[v]}static#e=this.\u0275fac=function(h){return new(h||d)(r.rXU(vt,9),r.rXU(W,10),r.rXU(Y,10),r.rXU(m,10),r.rXU(r.gRc,8),r.rXU(qr,8))};static#t=this.\u0275dir=r.FsC({type:d,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[r.Mj6.None,"disabled","isDisabled"],model:[r.Mj6.None,"ngModel","model"],options:[r.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r.Jv_([he]),r.Vt3,r.OA$]})}return d})(),ht=(()=>{class d{static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275dir=r.FsC({type:d,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return d})();const Kt={provide:m,useExisting:(0,r.Rfq)(()=>Qn),multi:!0};let An=(()=>{class d{constructor(){this._accessors=[]}add(v,h){this._accessors.push([v,h])}remove(v){for(let h=this._accessors.length-1;h>=0;--h)if(this._accessors[h][1]===v)return void this._accessors.splice(h,1)}select(v){this._accessors.forEach(h=>{this._isSameGroup(h,v)&&h[1]!==v&&h[1].fireUncheck(v.value)})}_isSameGroup(v,h){return!!v[0].control&&v[0]._parent===h._control._parent&&v[1].name===h.name}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275prov=r.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})(),Qn=(()=>{class d extends x{constructor(v,h,A,ne){super(v,h),this._registry=A,this._injector=ne,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,r.WQX)(qr,{optional:!0})??ui}ngOnInit(){this._control=this._injector.get($t),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(v){this._state=v===this.value,this.setProperty("checked",this._state)}registerOnChange(v){this._fn=v,this.onChange=()=>{v(this.value),this._registry.select(this)}}setDisabledState(v){(this.setDisabledStateFired||v||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",v),this.setDisabledStateFired=!0}fireUncheck(v){this.writeValue(v)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(h){return new(h||d)(r.rXU(r.sFG),r.rXU(r.aKT),r.rXU(An),r.rXU(r.zZn))};static#t=this.\u0275dir=r.FsC({type:d,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(h,A){1&h&&r.bIt("change",function(){return A.onChange()})("blur",function(){return A.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r.Jv_([Kt]),r.Vt3]})}return d})();const hi=new r.nKC(""),Pi={provide:vt,useExisting:(0,r.Rfq)(()=>zr)};let zr=(()=>{class d extends vt{constructor(v,h,A){super(),this.callSetDisabledState=A,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new r.bkB,this._setValidators(v),this._setAsyncValidators(h)}ngOnChanges(v){this._checkFormPresent(),v.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Pr(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(v){const h=this.form.get(v.path);return _r(h,v,this.callSetDisabledState),h.updateValueAndValidity({emitEvent:!1}),this.directives.push(v),h}getControl(v){return this.form.get(v.path)}removeControl(v){vn(v.control||null,v,!1),function pt(d,p){const v=d.indexOf(p);v>-1&&d.splice(v,1)}(this.directives,v)}addFormGroup(v){this._setUpFormContainer(v)}removeFormGroup(v){this._cleanUpFormContainer(v)}getFormGroup(v){return this.form.get(v.path)}addFormArray(v){this._setUpFormContainer(v)}removeFormArray(v){this._cleanUpFormContainer(v)}getFormArray(v){return this.form.get(v.path)}updateModel(v,h){this.form.get(v.path).setValue(h)}onSubmit(v){return this.submitted=!0,Me(this.form,this.directives),this.ngSubmit.emit(v),"dialog"===v?.target?.method}onReset(){this.resetForm()}resetForm(v=void 0){this.form.reset(v),this.submitted=!1}_updateDomValue(){this.directives.forEach(v=>{const h=v.control,A=this.form.get(v.path);h!==A&&(vn(h||null,v),(d=>d instanceof En)(A)&&(_r(A,v,this.callSetDisabledState),v.control=A))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(v){const h=this.form.get(v.path);Ke(h,v),h.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(v){if(this.form){const h=this.form.get(v.path);h&&function ze(d,p){return Pr(d,p)}(h,v)&&h.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){gr(this.form,this),this._oldForm&&Pr(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(h){return new(h||d)(r.rXU(W,10),r.rXU(Y,10),r.rXU(qr,8))};static#t=this.\u0275dir=r.FsC({type:d,selectors:[["","formGroup",""]],hostBindings:function(h,A){1&h&&r.bIt("submit",function(ue){return A.onSubmit(ue)})("reset",function(){return A.onReset()})},inputs:{form:[r.Mj6.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Jv_([Pi]),r.Vt3,r.OA$]})}return d})();const fi={provide:vt,useExisting:(0,r.Rfq)(()=>Xr)};let Xr=(()=>{class d extends br{constructor(v,h,A){super(),this.name=null,this._parent=v,this._setValidators(h),this._setAsyncValidators(A)}_checkParentType(){Jr(this._parent)}static#e=this.\u0275fac=function(h){return new(h||d)(r.rXU(vt,13),r.rXU(W,10),r.rXU(Y,10))};static#t=this.\u0275dir=r.FsC({type:d,selectors:[["","formGroupName",""]],inputs:{name:[r.Mj6.None,"formGroupName","name"]},features:[r.Jv_([fi]),r.Vt3]})}return d})();const si={provide:vt,useExisting:(0,r.Rfq)(()=>Ir)};let Ir=(()=>{class d extends vt{constructor(v,h,A){super(),this.name=null,this._parent=v,this._setValidators(h),this._setAsyncValidators(A)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Qr(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Jr(this._parent)}static#e=this.\u0275fac=function(h){return new(h||d)(r.rXU(vt,13),r.rXU(W,10),r.rXU(Y,10))};static#t=this.\u0275dir=r.FsC({type:d,selectors:[["","formArrayName",""]],inputs:{name:[r.Mj6.None,"formArrayName","name"]},features:[r.Jv_([si]),r.Vt3]})}return d})();function Jr(d){return!(d instanceof Xr||d instanceof zr||d instanceof Ir)}const ln={provide:$t,useExisting:(0,r.Rfq)(()=>no)};let no=(()=>{class d extends $t{set isDisabled(v){}static#e=this._ngModelWarningSentOnce=!1;constructor(v,h,A,ne,ue){super(),this._ngModelWarningConfig=ue,this._added=!1,this.name=null,this.update=new r.bkB,this._ngModelWarningSent=!1,this._parent=v,this._setValidators(h),this._setAsyncValidators(A),this.valueAccessor=je(0,ne)}ngOnChanges(v){this._added||this._setUpControl(),xe(v,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(v){this.viewModel=v,this.update.emit(v)}get path(){return Qr(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(h){return new(h||d)(r.rXU(vt,13),r.rXU(W,10),r.rXU(Y,10),r.rXU(m,10),r.rXU(hi,8))};static#n=this.\u0275dir=r.FsC({type:d,selectors:[["","formControlName",""]],inputs:{name:[r.Mj6.None,"formControlName","name"],isDisabled:[r.Mj6.None,"disabled","isDisabled"],model:[r.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[r.Jv_([ln]),r.Vt3,r.OA$]})}return d})();const Ao={provide:m,useExisting:(0,r.Rfq)(()=>wo),multi:!0};function Hi(d,p){return null==d?`${p}`:(p&&"object"==typeof p&&(p="Object"),`${d}: ${p}`.slice(0,50))}let wo=(()=>{class d extends x{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(v){this._compareWith=v}writeValue(v){this.value=v;const A=Hi(this._getOptionId(v),v);this.setProperty("value",A)}registerOnChange(v){this.onChange=h=>{this.value=this._getOptionValue(h),v(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(v){for(const h of this._optionMap.keys())if(this._compareWith(this._optionMap.get(h),v))return h;return null}_getOptionValue(v){const h=function ji(d){return d.split(":")[0]}(v);return this._optionMap.has(h)?this._optionMap.get(h):v}static#e=this.\u0275fac=(()=>{let v;return function(A){return(v||(v=r.xGo(d)))(A||d)}})();static#t=this.\u0275dir=r.FsC({type:d,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(h,A){1&h&&r.bIt("change",function(ue){return A.onChange(ue.target.value)})("blur",function(){return A.onTouched()})},inputs:{compareWith:"compareWith"},features:[r.Jv_([Ao]),r.Vt3]})}return d})(),Qi=(()=>{class d{constructor(v,h,A){this._element=v,this._renderer=h,this._select=A,this._select&&(this.id=this._select._registerOption())}set ngValue(v){null!=this._select&&(this._select._optionMap.set(this.id,v),this._setElementValue(Hi(this.id,v)),this._select.writeValue(this._select.value))}set value(v){this._setElementValue(v),this._select&&this._select.writeValue(this._select.value)}_setElementValue(v){this._renderer.setProperty(this._element.nativeElement,"value",v)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(h){return new(h||d)(r.rXU(r.aKT),r.rXU(r.sFG),r.rXU(wo,9))};static#t=this.\u0275dir=r.FsC({type:d,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return d})();const ko={provide:m,useExisting:(0,r.Rfq)(()=>ei),multi:!0};function Zr(d,p){return null==d?`${p}`:("string"==typeof p&&(p=`'${p}'`),p&&"object"==typeof p&&(p="Object"),`${d}: ${p}`.slice(0,50))}let ei=(()=>{class d extends x{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(v){this._compareWith=v}writeValue(v){let h;if(this.value=v,Array.isArray(v)){const A=v.map(ne=>this._getOptionId(ne));h=(ne,ue)=>{ne._setSelected(A.indexOf(ue.toString())>-1)}}else h=(A,ne)=>{A._setSelected(!1)};this._optionMap.forEach(h)}registerOnChange(v){this.onChange=h=>{const A=[],ne=h.selectedOptions;if(void 0!==ne){const ue=ne;for(let Ee=0;Ee<ue.length;Ee++){const et=this._getOptionValue(ue[Ee].value);A.push(et)}}else{const ue=h.options;for(let Ee=0;Ee<ue.length;Ee++){const Ie=ue[Ee];if(Ie.selected){const et=this._getOptionValue(Ie.value);A.push(et)}}}this.value=A,v(A)}}_registerOption(v){const h=(this._idCounter++).toString();return this._optionMap.set(h,v),h}_getOptionId(v){for(const h of this._optionMap.keys())if(this._compareWith(this._optionMap.get(h)._value,v))return h;return null}_getOptionValue(v){const h=function xo(d){return d.split(":")[0]}(v);return this._optionMap.has(h)?this._optionMap.get(h)._value:v}static#e=this.\u0275fac=(()=>{let v;return function(A){return(v||(v=r.xGo(d)))(A||d)}})();static#t=this.\u0275dir=r.FsC({type:d,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(h,A){1&h&&r.bIt("change",function(ue){return A.onChange(ue.target)})("blur",function(){return A.onTouched()})},inputs:{compareWith:"compareWith"},features:[r.Jv_([ko]),r.Vt3]})}return d})(),pi=(()=>{class d{constructor(v,h,A){this._element=v,this._renderer=h,this._select=A,this._select&&(this.id=this._select._registerOption(this))}set ngValue(v){null!=this._select&&(this._value=v,this._setElementValue(Zr(this.id,v)),this._select.writeValue(this._select.value))}set value(v){this._select?(this._value=v,this._setElementValue(Zr(this.id,v)),this._select.writeValue(this._select.value)):this._setElementValue(v)}_setElementValue(v){this._renderer.setProperty(this._element.nativeElement,"value",v)}_setSelected(v){this._renderer.setProperty(this._element.nativeElement,"selected",v)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(h){return new(h||d)(r.rXU(r.aKT),r.rXU(r.sFG),r.rXU(ei,9))};static#t=this.\u0275dir=r.FsC({type:d,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return d})(),gi=(()=>{class d{constructor(){this._validator=ae}ngOnChanges(v){if(this.inputName in v){const h=this.normalizeInput(v[this.inputName].currentValue);this._enabled=this.enabled(h),this._validator=this._enabled?this.createValidator(h):ae,this._onChange&&this._onChange()}}validate(v){return this._validator(v)}registerOnValidatorChange(v){this._onChange=v}enabled(v){return null!=v}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275dir=r.FsC({type:d,features:[r.OA$]})}return d})();const oo={provide:W,useExisting:(0,r.Rfq)(()=>Io),multi:!0};let Io=(()=>{class d extends gi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=r.L39,this.createValidator=v=>we}enabled(v){return v}static#e=this.\u0275fac=(()=>{let v;return function(A){return(v||(v=r.xGo(d)))(A||d)}})();static#t=this.\u0275dir=r.FsC({type:d,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(h,A){2&h&&r.BMQ("required",A._enabled?"":null)},inputs:{required:"required"},features:[r.Jv_([oo]),r.Vt3]})}return d})();const Wi={provide:W,useExisting:(0,r.Rfq)(()=>Wo),multi:!0};let Wo=(()=>{class d extends gi{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=v=>v,this.createValidator=v=>Re(v)}static#e=this.\u0275fac=(()=>{let v;return function(A){return(v||(v=r.xGo(d)))(A||d)}})();static#t=this.\u0275dir=r.FsC({type:d,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(h,A){2&h&&r.BMQ("pattern",A._enabled?A.pattern:null)},inputs:{pattern:"pattern"},features:[r.Jv_([Wi]),r.Vt3]})}return d})(),Di=(()=>{class d{static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275mod=r.$C({type:d});static#n=this.\u0275inj=r.G2t({})}return d})();class Ui extends fr{constructor(p,v,h){super(bt(v),Zt(h,v)),this.controls=p,this._initObservables(),this._setUpdateStrategy(v),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(p){return this.controls[this._adjustIndex(p)]}push(p,v={}){this.controls.push(p),this._registerControl(p),this.updateValueAndValidity({emitEvent:v.emitEvent}),this._onCollectionChange()}insert(p,v,h={}){this.controls.splice(p,0,v),this._registerControl(v),this.updateValueAndValidity({emitEvent:h.emitEvent})}removeAt(p,v={}){let h=this._adjustIndex(p);h<0&&(h=0),this.controls[h]&&this.controls[h]._registerOnCollectionChange(()=>{}),this.controls.splice(h,1),this.updateValueAndValidity({emitEvent:v.emitEvent})}setControl(p,v,h={}){let A=this._adjustIndex(p);A<0&&(A=0),this.controls[A]&&this.controls[A]._registerOnCollectionChange(()=>{}),this.controls.splice(A,1),v&&(this.controls.splice(A,0,v),this._registerControl(v)),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(p,v={}){ir(this,0,p),p.forEach((h,A)=>{nr(this,!1,A),this.at(A).setValue(h,{onlySelf:!0,emitEvent:v.emitEvent})}),this.updateValueAndValidity(v)}patchValue(p,v={}){null!=p&&(p.forEach((h,A)=>{this.at(A)&&this.at(A).patchValue(h,{onlySelf:!0,emitEvent:v.emitEvent})}),this.updateValueAndValidity(v))}reset(p=[],v={}){this._forEachChild((h,A)=>{h.reset(p[A],{onlySelf:!0,emitEvent:v.emitEvent})}),this._updatePristine(v),this._updateTouched(v),this.updateValueAndValidity(v)}getRawValue(){return this.controls.map(p=>p.getRawValue())}clear(p={}){this.controls.length<1||(this._forEachChild(v=>v._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:p.emitEvent}))}_adjustIndex(p){return p<0?p+this.length:p}_syncPendingControls(){let p=this.controls.reduce((v,h)=>!!h._syncPendingControls()||v,!1);return p&&this.updateValueAndValidity({onlySelf:!0}),p}_forEachChild(p){this.controls.forEach((v,h)=>{p(v,h)})}_updateValue(){this.value=this.controls.filter(p=>p.enabled||this.disabled).map(p=>p.value)}_anyControls(p){return this.controls.some(v=>v.enabled&&p(v))}_setUpControls(){this._forEachChild(p=>this._registerControl(p))}_allControlsDisabled(){for(const p of this.controls)if(p.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(p){p.setParent(this),p._registerOnCollectionChange(this._onCollectionChange)}_find(p){return this.at(p)??null}}const ps=Ui;function Yi(d){return!!d&&(void 0!==d.asyncValidators||void 0!==d.validators||void 0!==d.updateOn)}let so=(()=>{class d{constructor(){this.useNonNullable=!1}get nonNullable(){const v=new d;return v.useNonNullable=!0,v}group(v,h=null){const A=this._reduceControls(v);let ne={};return Yi(h)?ne=h:null!==h&&(ne.validators=h.validator,ne.asyncValidators=h.asyncValidator),new Pn(A,ne)}record(v,h=null){const A=this._reduceControls(v);return new on(A,h)}control(v,h,A){let ne={};return this.useNonNullable?(Yi(h)?ne=h:(ne.validators=h,ne.asyncValidators=A),new En(v,{...ne,nonNullable:!0})):new En(v,h,A)}array(v,h,A){const ne=v.map(ue=>this._createControl(ue));return new Ui(ne,h,A)}_reduceControls(v){const h={};return Object.keys(v).forEach(A=>{h[A]=this._createControl(v[A])}),h}_createControl(v){return v instanceof En||v instanceof fr?v:Array.isArray(v)?this.control(v[0],v.length>1?v[1]:null,v.length>2?v[2]:null):this.control(v)}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275prov=r.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})(),Zo=(()=>{class d extends so{group(v,h=null){return super.group(v,h)}control(v,h,A){return super.control(v,h,A)}array(v,h,A){return super.array(v,h,A)}static#e=this.\u0275fac=(()=>{let v;return function(A){return(v||(v=r.xGo(d)))(A||d)}})();static#t=this.\u0275prov=r.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})(),po=(()=>{class d{static withConfig(v){return{ngModule:d,providers:[{provide:qr,useValue:v.callSetDisabledState??ui}]}}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275mod=r.$C({type:d});static#n=this.\u0275inj=r.G2t({imports:[Di]})}return d})(),De=(()=>{class d{static withConfig(v){return{ngModule:d,providers:[{provide:hi,useValue:v.warnOnNgModelWithFormControl??"always"},{provide:qr,useValue:v.callSetDisabledState??ui}]}}static#e=this.\u0275fac=function(h){return new(h||d)};static#t=this.\u0275mod=r.$C({type:d});static#n=this.\u0275inj=r.G2t({imports:[Di]})}return d})()},728:(Dt,ve,_)=>{"use strict";_.d(ve,{wb:()=>zo});var r=_(4438),g=_(345),R=_(9969);function U(De){return new r.wOt(3e3,!1)}function We(De){switch(De.length){case 0:return new R.sf;case 1:return De[0];default:return new R.ui(De)}}function Ge(De,d,p=new Map,v=new Map){const h=[],A=[];let ne=-1,ue=null;if(d.forEach(Ee=>{const Ie=Ee.get("offset"),et=Ie==ne,gt=et&&ue||new Map;Ee.forEach((Vt,Ut)=>{let Yt=Ut,fn=Vt;if("offset"!==Ut)switch(Yt=De.normalizePropertyName(Yt,h),fn){case R.FX:fn=p.get(Ut);break;case R.kp:fn=v.get(Ut);break;default:fn=De.normalizeStyleValue(Ut,Yt,fn,h)}gt.set(Yt,fn)}),et||A.push(gt),ue=gt,ne=Ie}),h.length)throw function be(De){return new r.wOt(3502,!1)}();return A}function ut(De,d,p,v){switch(d){case"start":De.onStart(()=>v(p&&Fe(p,"start",De)));break;case"done":De.onDone(()=>v(p&&Fe(p,"done",De)));break;case"destroy":De.onDestroy(()=>v(p&&Fe(p,"destroy",De)))}}function Fe(De,d,p){const A=tt(De.element,De.triggerName,De.fromState,De.toState,d||De.phaseName,p.totalTime??De.totalTime,!!p.disabled),ne=De._data;return null!=ne&&(A._data=ne),A}function tt(De,d,p,v,h="",A=0,ne){return{element:De,triggerName:d,fromState:p,toState:v,phaseName:h,totalTime:A,disabled:!!ne}}function st(De,d,p){let v=De.get(d);return v||De.set(d,v=p),v}function ct(De){const d=De.indexOf(":");return[De.substring(1,d),De.slice(d+1)]}const St=typeof document>"u"?null:document.documentElement;function Gt(De){const d=De.parentNode||De.host||null;return d===St?null:d}let Xe=null,wt=!1;function tn(De,d){for(;d;){if(d===De)return!0;d=Gt(d)}return!1}function qt(De,d,p){if(p)return Array.from(De.querySelectorAll(d));const v=De.querySelector(d);return v?[v]:[]}let Nn=(()=>{class De{validateStyleProperty(p){return function at(De){Xe||(Xe=function $t(){return typeof document<"u"?document.body:null}()||{},wt=!!Xe.style&&"WebkitAppearance"in Xe.style);let d=!0;return Xe.style&&!function it(De){return"ebkit"==De.substring(1,6)}(De)&&(d=De in Xe.style,!d&&wt&&(d="Webkit"+De.charAt(0).toUpperCase()+De.slice(1)in Xe.style)),d}(p)}matchesElement(p,v){return!1}containsElement(p,v){return tn(p,v)}getParentElement(p){return Gt(p)}query(p,v,h){return qt(p,v,h)}computeStyle(p,v,h){return h||""}animate(p,v,h,A,ne,ue=[],Ee){return new R.sf(h,A)}static#e=this.\u0275fac=function(v){return new(v||De)};static#t=this.\u0275prov=r.jDH({token:De,factory:De.\u0275fac})}return De})();class Ht{static#e=this.NOOP=new Nn}class jt{}const Ln=1e3,lr="ng-enter",bi="ng-leave",hn="ng-trigger",yr=".ng-trigger",bn="ng-animating",Tn=".ng-animating";function _n(De){if("number"==typeof De)return De;const d=De.match(/^(-?[\.\d]+)(m?s)/);return!d||d.length<2?0:Bn(parseFloat(d[1]),d[2])}function Bn(De,d){return"s"===d?De*Ln:De}function jn(De,d,p){return De.hasOwnProperty("duration")?De:function Jn(De,d,p){let h,A=0,ne="";if("string"==typeof De){const ue=De.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ue)return d.push(U()),{duration:0,delay:0,easing:""};h=Bn(parseFloat(ue[1]),ue[2]);const Ee=ue[3];null!=Ee&&(A=Bn(parseFloat(Ee),ue[4]));const Ie=ue[5];Ie&&(ne=Ie)}else h=De;if(!p){let ue=!1,Ee=d.length;h<0&&(d.push(function H(){return new r.wOt(3100,!1)}()),ue=!0),A<0&&(d.push(function P(){return new r.wOt(3101,!1)}()),ue=!0),ue&&d.splice(Ee,0,U())}return{duration:h,delay:A,easing:ne}}(De,d,p)}function qe(De,d,p){d.forEach((v,h)=>{const A=In(h);p&&!p.has(h)&&p.set(h,De.style[A]),De.style[A]=v})}function ot(De,d){d.forEach((p,v)=>{const h=In(v);De.style[h]=""})}function He(De){return Array.isArray(De)?1==De.length?De[0]:(0,R.K2)(De):De}const bt=new RegExp("{{\\s*(.+?)\\s*}}","g");function Lt(De){let d=[];if("string"==typeof De){let p;for(;p=bt.exec(De);)d.push(p[1]);bt.lastIndex=0}return d}function Zt(De,d,p){const v=`${De}`,h=v.replace(bt,(A,ne)=>{let ue=d[ne];return null==ue&&(p.push(function C(De){return new r.wOt(3003,!1)}()),ue=""),ue.toString()});return h==v?De:h}const Dn=/-+([a-z0-9])/g;function In(De){return De.replace(Dn,(...d)=>d[1].toUpperCase())}function Pn(De,d,p){switch(d.type){case R.If.Trigger:return De.visitTrigger(d,p);case R.If.State:return De.visitState(d,p);case R.If.Transition:return De.visitTransition(d,p);case R.If.Sequence:return De.visitSequence(d,p);case R.If.Group:return De.visitGroup(d,p);case R.If.Animate:return De.visitAnimate(d,p);case R.If.Keyframes:return De.visitKeyframes(d,p);case R.If.Style:return De.visitStyle(d,p);case R.If.Reference:return De.visitReference(d,p);case R.If.AnimateChild:return De.visitAnimateChild(d,p);case R.If.AnimateRef:return De.visitAnimateRef(d,p);case R.If.Query:return De.visitQuery(d,p);case R.If.Stagger:return De.visitStagger(d,p);default:throw function S(De){return new r.wOt(3004,!1)}()}}function Ni(De,d){return window.getComputedStyle(De)[d]}const Bi=new Set(["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"]);class pr extends jt{normalizePropertyName(d,p){return In(d)}normalizeStyleValue(d,p,v,h){let A="";const ne=v.toString().trim();if(Bi.has(p)&&0!==v&&"0"!==v)if("number"==typeof v)A="px";else{const ue=v.match(/^[+-]?[\d\.]+([a-z]*)$/);ue&&0==ue[1].length&&h.push(function I(De,d){return new r.wOt(3005,!1)}())}return ne+A}}const vn="*";const Pr=new Set(["true","1"]),wr=new Set(["false","0"]);function Yr(De,d){const p=Pr.has(De)||wr.has(De),v=Pr.has(d)||wr.has(d);return(h,A)=>{let ne=De==vn||De==h,ue=d==vn||d==A;return!ne&&p&&"boolean"==typeof h&&(ne=h?Pr.has(De):wr.has(De)),!ue&&v&&"boolean"==typeof A&&(ue=A?Pr.has(d):wr.has(d)),ne&&ue}}const Oe=new RegExp("s*:selfs*,?","g");function Ke(De,d,p,v){return new Tt(De).build(d,p,v)}class Tt{constructor(d){this._driver=d}build(d,p,v){const h=new Ft(p);return this._resetContextStyleTimingState(h),Pn(this,He(d),h)}_resetContextStyleTimingState(d){d.currentQuerySelector="",d.collectedStyles=new Map,d.collectedStyles.set("",new Map),d.currentTime=0}visitTrigger(d,p){let v=p.queryCount=0,h=p.depCount=0;const A=[],ne=[];return"@"==d.name.charAt(0)&&p.errors.push(function B(){return new r.wOt(3006,!1)}()),d.definitions.forEach(ue=>{if(this._resetContextStyleTimingState(p),ue.type==R.If.State){const Ee=ue,Ie=Ee.name;Ie.toString().split(/\s*,\s*/).forEach(et=>{Ee.name=et,A.push(this.visitState(Ee,p))}),Ee.name=Ie}else if(ue.type==R.If.Transition){const Ee=this.visitTransition(ue,p);v+=Ee.queryCount,h+=Ee.depCount,ne.push(Ee)}else p.errors.push(function G(){return new r.wOt(3007,!1)}())}),{type:R.If.Trigger,name:d.name,states:A,transitions:ne,queryCount:v,depCount:h,options:null}}visitState(d,p){const v=this.visitStyle(d.styles,p),h=d.options&&d.options.params||null;if(v.containsDynamicStyles){const A=new Set,ne=h||{};v.styles.forEach(ue=>{ue instanceof Map&&ue.forEach(Ee=>{Lt(Ee).forEach(Ie=>{ne.hasOwnProperty(Ie)||A.add(Ie)})})}),A.size&&p.errors.push(function x(De,d){return new r.wOt(3008,!1)}(0,A.values()))}return{type:R.If.State,name:d.name,style:v,options:h?{params:h}:null}}visitTransition(d,p){p.queryCount=0,p.depCount=0;const v=Pn(this,He(d.animation),p),h=function di(De,d){const p=[];return"string"==typeof De?De.split(/\s*,\s*/).forEach(v=>function dr(De,d,p){if(":"==De[0]){const Ee=function gr(De,d){switch(De){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(p,v)=>parseFloat(v)>parseFloat(p);case":decrement":return(p,v)=>parseFloat(v)<parseFloat(p);default:return d.push(function Y(De){return new r.wOt(3016,!1)}()),"* => *"}}(De,p);if("function"==typeof Ee)return void d.push(Ee);De=Ee}const v=De.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==v||v.length<4)return p.push(function W(De){return new r.wOt(3015,!1)}()),d;const h=v[1],A=v[2],ne=v[3];d.push(Yr(h,ne)),"<"==A[0]&&(h!=vn||ne!=vn)&&d.push(Yr(ne,h))}(v,p,d)):p.push(De),p}(d.expr,p.errors);return{type:R.If.Transition,matchers:h,animation:v,queryCount:p.queryCount,depCount:p.depCount,options:Z(d.options)}}visitSequence(d,p){return{type:R.If.Sequence,steps:d.steps.map(v=>Pn(this,v,p)),options:Z(d.options)}}visitGroup(d,p){const v=p.currentTime;let h=0;const A=d.steps.map(ne=>{p.currentTime=v;const ue=Pn(this,ne,p);return h=Math.max(h,p.currentTime),ue});return p.currentTime=h,{type:R.If.Group,steps:A,options:Z(d.options)}}visitAnimate(d,p){const v=function xe(De,d){if(De.hasOwnProperty("duration"))return De;if("number"==typeof De)return Me(jn(De,d).duration,0,"");const p=De;if(p.split(/\s+/).some(A=>"{"==A.charAt(0)&&"{"==A.charAt(1))){const A=Me(0,0,"");return A.dynamic=!0,A.strValue=p,A}const h=jn(p,d);return Me(h.duration,h.delay,h.easing)}(d.timings,p.errors);p.currentAnimateTimings=v;let h,A=d.styles?d.styles:(0,R.iF)({});if(A.type==R.If.Keyframes)h=this.visitKeyframes(A,p);else{let ne=d.styles,ue=!1;if(!ne){ue=!0;const Ie={};v.easing&&(Ie.easing=v.easing),ne=(0,R.iF)(Ie)}p.currentTime+=v.duration+v.delay;const Ee=this.visitStyle(ne,p);Ee.isEmptyStep=ue,h=Ee}return p.currentAnimateTimings=null,{type:R.If.Animate,timings:v,style:h,options:null}}visitStyle(d,p){const v=this._makeStyleAst(d,p);return this._validateStyleAst(v,p),v}_makeStyleAst(d,p){const v=[],h=Array.isArray(d.styles)?d.styles:[d.styles];for(let ue of h)"string"==typeof ue?ue===R.kp?v.push(ue):p.errors.push(new r.wOt(3002,!1)):v.push(new Map(Object.entries(ue)));let A=!1,ne=null;return v.forEach(ue=>{if(ue instanceof Map&&(ue.has("easing")&&(ne=ue.get("easing"),ue.delete("easing")),!A))for(let Ee of ue.values())if(Ee.toString().indexOf("{{")>=0){A=!0;break}}),{type:R.If.Style,styles:v,easing:ne,offset:d.offset,containsDynamicStyles:A,options:null}}_validateStyleAst(d,p){const v=p.currentAnimateTimings;let h=p.currentTime,A=p.currentTime;v&&A>0&&(A-=v.duration+v.delay),d.styles.forEach(ne=>{"string"!=typeof ne&&ne.forEach((ue,Ee)=>{const Ie=p.collectedStyles.get(p.currentQuerySelector),et=Ie.get(Ee);let gt=!0;et&&(A!=h&&A>=et.startTime&&h<=et.endTime&&(p.errors.push(function D(De,d,p,v,h){return new r.wOt(3010,!1)}()),gt=!1),A=et.startTime),gt&&Ie.set(Ee,{startTime:A,endTime:h}),p.options&&function Ye(De,d,p){const v=d.params||{},h=Lt(De);h.length&&h.forEach(A=>{v.hasOwnProperty(A)||p.push(function b(De){return new r.wOt(3001,!1)}())})}(ue,p.options,p.errors)})})}visitKeyframes(d,p){const v={type:R.If.Keyframes,styles:[],options:null};if(!p.currentAnimateTimings)return p.errors.push(function K(){return new r.wOt(3011,!1)}()),v;let A=0;const ne=[];let ue=!1,Ee=!1,Ie=0;const et=d.steps.map(Br=>{const mi=this._makeStyleAst(Br,p);let ki=null!=mi.offset?mi.offset:function Be(De){if("string"==typeof De)return null;let d=null;if(Array.isArray(De))De.forEach(p=>{if(p instanceof Map&&p.has("offset")){const v=p;d=parseFloat(v.get("offset")),v.delete("offset")}});else if(De instanceof Map&&De.has("offset")){const p=De;d=parseFloat(p.get("offset")),p.delete("offset")}return d}(mi.styles),vi=0;return null!=ki&&(A++,vi=mi.offset=ki),Ee=Ee||vi<0||vi>1,ue=ue||vi<Ie,Ie=vi,ne.push(vi),mi});Ee&&p.errors.push(function de(){return new r.wOt(3012,!1)}()),ue&&p.errors.push(function ie(){return new r.wOt(3200,!1)}());const gt=d.steps.length;let Vt=0;A>0&&A<gt?p.errors.push(function te(){return new r.wOt(3202,!1)}()):0==A&&(Vt=1/(gt-1));const Ut=gt-1,Yt=p.currentTime,fn=p.currentAnimateTimings,mr=fn.duration;return et.forEach((Br,mi)=>{const ki=Vt>0?mi==Ut?1:Vt*mi:ne[mi],vi=ki*mr;p.currentTime=Yt+fn.delay+vi,fn.duration=vi,this._validateStyleAst(Br,p),Br.offset=ki,v.styles.push(Br)}),v}visitReference(d,p){return{type:R.If.Reference,animation:Pn(this,He(d.animation),p),options:Z(d.options)}}visitAnimateChild(d,p){return p.depCount++,{type:R.If.AnimateChild,options:Z(d.options)}}visitAnimateRef(d,p){return{type:R.If.AnimateRef,animation:this.visitReference(d.animation,p),options:Z(d.options)}}visitQuery(d,p){const v=p.currentQuerySelector,h=d.options||{};p.queryCount++,p.currentQuery=d;const[A,ne]=function yt(De){const d=!!De.split(/\s*,\s*/).find(p=>":self"==p);return d&&(De=De.replace(Oe,"")),De=De.replace(/@\*/g,yr).replace(/@\w+/g,p=>yr+"-"+p.slice(1)).replace(/:animating/g,Tn),[De,d]}(d.selector);p.currentQuerySelector=v.length?v+" "+A:A,st(p.collectedStyles,p.currentQuerySelector,new Map);const ue=Pn(this,He(d.animation),p);return p.currentQuery=null,p.currentQuerySelector=v,{type:R.If.Query,selector:A,limit:h.limit||0,optional:!!h.optional,includeSelf:ne,animation:ue,originalSelector:d.selector,options:Z(d.options)}}visitStagger(d,p){p.currentQuery||p.errors.push(function se(){return new r.wOt(3013,!1)}());const v="full"===d.timings?{duration:0,delay:0,easing:"full"}:jn(d.timings,p.errors,!0);return{type:R.If.Stagger,animation:Pn(this,He(d.animation),p),timings:v,options:null}}}class Ft{constructor(d){this.errors=d,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Z(De){return De?(De={...De}).params&&(De.params=function xt(De){return De?{...De}:null}(De.params)):De={},De}function Me(De,d,p){return{duration:De,delay:d,easing:p}}function je(De,d,p,v,h,A,ne=null,ue=!1){return{type:1,element:De,keyframes:d,preStyleProps:p,postStyleProps:v,duration:h,delay:A,totalTime:h+A,easing:ne,subTimeline:ue}}class pt{constructor(){this._map=new Map}get(d){return this._map.get(d)||[]}append(d,p){let v=this._map.get(d);v||this._map.set(d,v=[]),v.push(...p)}has(d){return this._map.has(d)}clear(){this._map.clear()}}const an=new RegExp(":enter","g"),rn=new RegExp(":leave","g");function Vn(De,d,p,v,h,A=new Map,ne=new Map,ue,Ee,Ie=[]){return(new En).buildKeyframes(De,d,p,v,h,A,ne,ue,Ee,Ie)}class En{buildKeyframes(d,p,v,h,A,ne,ue,Ee,Ie,et=[]){Ie=Ie||new pt;const gt=new or(d,p,Ie,h,A,et,[]);gt.options=Ee;const Vt=Ee.delay?_n(Ee.delay):0;gt.currentTimeline.delayNextStep(Vt),gt.currentTimeline.setStyles([ne],null,gt.errors,Ee),Pn(this,v,gt);const Ut=gt.timelines.filter(Yt=>Yt.containsAnimation());if(Ut.length&&ue.size){let Yt;for(let fn=Ut.length-1;fn>=0;fn--){const mr=Ut[fn];if(mr.element===p){Yt=mr;break}}Yt&&!Yt.allowOnlyTimelineStyles()&&Yt.setStyles([ue],null,gt.errors,Ee)}return Ut.length?Ut.map(Yt=>Yt.buildKeyframes()):[je(p,[],[],[],0,Vt,"",!1)]}visitTrigger(d,p){}visitState(d,p){}visitTransition(d,p){}visitAnimateChild(d,p){const v=p.subInstructions.get(p.element);if(v){const h=p.createSubContext(d.options),A=p.currentTimeline.currentTime,ne=this._visitSubInstructions(v,h,h.options);A!=ne&&p.transformIntoNewTimeline(ne)}p.previousNode=d}visitAnimateRef(d,p){const v=p.createSubContext(d.options);v.transformIntoNewTimeline(),this._applyAnimationRefDelays([d.options,d.animation.options],p,v),this.visitReference(d.animation,v),p.transformIntoNewTimeline(v.currentTimeline.currentTime),p.previousNode=d}_applyAnimationRefDelays(d,p,v){for(const h of d){const A=h?.delay;if(A){const ne="number"==typeof A?A:_n(Zt(A,h?.params??{},p.errors));v.delayNextStep(ne)}}}_visitSubInstructions(d,p,v){let A=p.currentTimeline.currentTime;const ne=null!=v.duration?_n(v.duration):null,ue=null!=v.delay?_n(v.delay):null;return 0!==ne&&d.forEach(Ee=>{const Ie=p.appendInstructionToTimeline(Ee,ne,ue);A=Math.max(A,Ie.duration+Ie.delay)}),A}visitReference(d,p){p.updateOptions(d.options,!0),Pn(this,d.animation,p),p.previousNode=d}visitSequence(d,p){const v=p.subContextCount;let h=p;const A=d.options;if(A&&(A.params||A.delay)&&(h=p.createSubContext(A),h.transformIntoNewTimeline(),null!=A.delay)){h.previousNode.type==R.If.Style&&(h.currentTimeline.snapshotCurrentStyles(),h.previousNode=Wn);const ne=_n(A.delay);h.delayNextStep(ne)}d.steps.length&&(d.steps.forEach(ne=>Pn(this,ne,h)),h.currentTimeline.applyStylesToKeyframe(),h.subContextCount>v&&h.transformIntoNewTimeline()),p.previousNode=d}visitGroup(d,p){const v=[];let h=p.currentTimeline.currentTime;const A=d.options&&d.options.delay?_n(d.options.delay):0;d.steps.forEach(ne=>{const ue=p.createSubContext(d.options);A&&ue.delayNextStep(A),Pn(this,ne,ue),h=Math.max(h,ue.currentTimeline.currentTime),v.push(ue.currentTimeline)}),v.forEach(ne=>p.currentTimeline.mergeTimelineCollectedStyles(ne)),p.transformIntoNewTimeline(h),p.previousNode=d}_visitTiming(d,p){if(d.dynamic){const v=d.strValue;return jn(p.params?Zt(v,p.params,p.errors):v,p.errors)}return{duration:d.duration,delay:d.delay,easing:d.easing}}visitAnimate(d,p){const v=p.currentAnimateTimings=this._visitTiming(d.timings,p),h=p.currentTimeline;v.delay&&(p.incrementTime(v.delay),h.snapshotCurrentStyles());const A=d.style;A.type==R.If.Keyframes?this.visitKeyframes(A,p):(p.incrementTime(v.duration),this.visitStyle(A,p),h.applyStylesToKeyframe()),p.currentAnimateTimings=null,p.previousNode=d}visitStyle(d,p){const v=p.currentTimeline,h=p.currentAnimateTimings;!h&&v.hasCurrentStyleProperties()&&v.forwardFrame();const A=h&&h.easing||d.easing;d.isEmptyStep?v.applyEmptyStep(A):v.setStyles(d.styles,A,p.errors,p.options),p.previousNode=d}visitKeyframes(d,p){const v=p.currentAnimateTimings,h=p.currentTimeline.duration,A=v.duration,ue=p.createSubContext().currentTimeline;ue.easing=v.easing,d.styles.forEach(Ee=>{ue.forwardTime((Ee.offset||0)*A),ue.setStyles(Ee.styles,Ee.easing,p.errors,p.options),ue.applyStylesToKeyframe()}),p.currentTimeline.mergeTimelineCollectedStyles(ue),p.transformIntoNewTimeline(h+A),p.previousNode=d}visitQuery(d,p){const v=p.currentTimeline.currentTime,h=d.options||{},A=h.delay?_n(h.delay):0;A&&(p.previousNode.type===R.If.Style||0==v&&p.currentTimeline.hasCurrentStyleProperties())&&(p.currentTimeline.snapshotCurrentStyles(),p.previousNode=Wn);let ne=v;const ue=p.invokeQuery(d.selector,d.originalSelector,d.limit,d.includeSelf,!!h.optional,p.errors);p.currentQueryTotal=ue.length;let Ee=null;ue.forEach((Ie,et)=>{p.currentQueryIndex=et;const gt=p.createSubContext(d.options,Ie);A&&gt.delayNextStep(A),Ie===p.element&&(Ee=gt.currentTimeline),Pn(this,d.animation,gt),gt.currentTimeline.applyStylesToKeyframe(),ne=Math.max(ne,gt.currentTimeline.currentTime)}),p.currentQueryIndex=0,p.currentQueryTotal=0,p.transformIntoNewTimeline(ne),Ee&&(p.currentTimeline.mergeTimelineCollectedStyles(Ee),p.currentTimeline.snapshotCurrentStyles()),p.previousNode=d}visitStagger(d,p){const v=p.parentContext,h=p.currentTimeline,A=d.timings,ne=Math.abs(A.duration),ue=ne*(p.currentQueryTotal-1);let Ee=ne*p.currentQueryIndex;switch(A.duration<0?"reverse":A.easing){case"reverse":Ee=ue-Ee;break;case"full":Ee=v.currentStaggerTime}const et=p.currentTimeline;Ee&&et.delayNextStep(Ee);const gt=et.currentTime;Pn(this,d.animation,p),p.previousNode=d,v.currentStaggerTime=h.currentTime-gt+(h.startTime-v.currentTimeline.startTime)}}const Wn={};class or{constructor(d,p,v,h,A,ne,ue,Ee){this._driver=d,this.element=p,this.subInstructions=v,this._enterClassName=h,this._leaveClassName=A,this.errors=ne,this.timelines=ue,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Wn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ee||new br(this._driver,p,0),ue.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(d,p){if(!d)return;const v=d;let h=this.options;null!=v.duration&&(h.duration=_n(v.duration)),null!=v.delay&&(h.delay=_n(v.delay));const A=v.params;if(A){let ne=h.params;ne||(ne=this.options.params={}),Object.keys(A).forEach(ue=>{(!p||!ne.hasOwnProperty(ue))&&(ne[ue]=Zt(A[ue],ne,this.errors))})}}_copyOptions(){const d={};if(this.options){const p=this.options.params;if(p){const v=d.params={};Object.keys(p).forEach(h=>{v[h]=p[h]})}}return d}createSubContext(d=null,p,v){const h=p||this.element,A=new or(this._driver,h,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(h,v||0));return A.previousNode=this.previousNode,A.currentAnimateTimings=this.currentAnimateTimings,A.options=this._copyOptions(),A.updateOptions(d),A.currentQueryIndex=this.currentQueryIndex,A.currentQueryTotal=this.currentQueryTotal,A.parentContext=this,this.subContextCount++,A}transformIntoNewTimeline(d){return this.previousNode=Wn,this.currentTimeline=this.currentTimeline.fork(this.element,d),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(d,p,v){const h={duration:p??d.duration,delay:this.currentTimeline.currentTime+(v??0)+d.delay,easing:""},A=new un(this._driver,d.element,d.keyframes,d.preStyleProps,d.postStyleProps,h,d.stretchStartingKeyframe);return this.timelines.push(A),h}incrementTime(d){this.currentTimeline.forwardTime(this.currentTimeline.duration+d)}delayNextStep(d){d>0&&this.currentTimeline.delayNextStep(d)}invokeQuery(d,p,v,h,A,ne){let ue=[];if(h&&ue.push(this.element),d.length>0){d=(d=d.replace(an,"."+this._enterClassName)).replace(rn,"."+this._leaveClassName);let Ie=this._driver.query(this.element,d,1!=v);0!==v&&(Ie=v<0?Ie.slice(Ie.length+v,Ie.length):Ie.slice(0,v)),ue.push(...Ie)}return!A&&0==ue.length&&ne.push(function z(De){return new r.wOt(3014,!1)}()),ue}}class br{constructor(d,p,v,h){this._driver=d,this.element=p,this.startTime=v,this._elementTimelineStylesLookup=h,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(p),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(p,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(d){const p=1===this._keyframes.size&&this._pendingStyles.size;this.duration||p?(this.forwardTime(this.currentTime+d),p&&this.snapshotCurrentStyles()):this.startTime+=d}fork(d,p){return this.applyStylesToKeyframe(),new br(this._driver,d,p||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(d){this.applyStylesToKeyframe(),this.duration=d,this._loadKeyframe()}_updateStyle(d,p){this._localTimelineStyles.set(d,p),this._globalTimelineStyles.set(d,p),this._styleSummary.set(d,{time:this.currentTime,value:p})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(d){d&&this._previousKeyframe.set("easing",d);for(let[p,v]of this._globalTimelineStyles)this._backFill.set(p,v||R.kp),this._currentKeyframe.set(p,R.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(d,p,v,h){p&&this._previousKeyframe.set("easing",p);const A=h&&h.params||{},ne=function c(De,d){const p=new Map;let v;return De.forEach(h=>{if("*"===h){v??=d.keys();for(let A of v)p.set(A,R.kp)}else for(let[A,ne]of h)p.set(A,ne)}),p}(d,this._globalTimelineStyles);for(let[ue,Ee]of ne){const Ie=Zt(Ee,A,v);this._pendingStyles.set(ue,Ie),this._localTimelineStyles.has(ue)||this._backFill.set(ue,this._globalTimelineStyles.get(ue)??R.kp),this._updateStyle(ue,Ie)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((d,p)=>{this._currentKeyframe.set(p,d)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((d,p)=>{this._currentKeyframe.has(p)||this._currentKeyframe.set(p,d)}))}snapshotCurrentStyles(){for(let[d,p]of this._localTimelineStyles)this._pendingStyles.set(d,p),this._updateStyle(d,p)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const d=[];for(let p in this._currentKeyframe)d.push(p);return d}mergeTimelineCollectedStyles(d){d._styleSummary.forEach((p,v)=>{const h=this._styleSummary.get(v);(!h||p.time>h.time)&&this._updateStyle(v,p.value)})}buildKeyframes(){this.applyStylesToKeyframe();const d=new Set,p=new Set,v=1===this._keyframes.size&&0===this.duration;let h=[];this._keyframes.forEach((ue,Ee)=>{const Ie=new Map([...this._backFill,...ue]);Ie.forEach((et,gt)=>{et===R.FX?d.add(gt):et===R.kp&&p.add(gt)}),v||Ie.set("offset",Ee/this.duration),h.push(Ie)});const A=[...d.values()],ne=[...p.values()];if(v){const ue=h[0],Ee=new Map(ue);ue.set("offset",0),Ee.set("offset",1),h=[ue,Ee]}return je(this.element,h,A,ne,this.duration,this.startTime,this.easing,!1)}}class un extends br{constructor(d,p,v,h,A,ne,ue=!1){super(d,p,ne.delay),this.keyframes=v,this.preStyleProps=h,this.postStyleProps=A,this._stretchStartingKeyframe=ue,this.timings={duration:ne.duration,delay:ne.delay,easing:ne.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let d=this.keyframes,{delay:p,duration:v,easing:h}=this.timings;if(this._stretchStartingKeyframe&&p){const A=[],ne=v+p,ue=p/ne,Ee=new Map(d[0]);Ee.set("offset",0),A.push(Ee);const Ie=new Map(d[0]);Ie.set("offset",nt(ue)),A.push(Ie);const et=d.length-1;for(let gt=1;gt<=et;gt++){let Vt=new Map(d[gt]);const Ut=Vt.get("offset");Vt.set("offset",nt((p+Ut*v)/ne)),A.push(Vt)}v=ne,p=0,h="",d=A}return je(this.element,d,this.preStyleProps,this.postStyleProps,v,p,h,!0)}}function nt(De,d=3){const p=Math.pow(10,d-1);return Math.round(De*p)/p}function u(De,d,p,v,h,A,ne,ue,Ee,Ie,et,gt,Vt){return{type:0,element:De,triggerName:d,isRemovalTransition:h,fromState:p,fromStyles:A,toState:v,toStyles:ne,timelines:ue,queriedElements:Ee,preStyleProps:Ie,postStyleProps:et,totalTime:gt,errors:Vt}}const T={};class X{constructor(d,p,v){this._triggerName=d,this.ast=p,this._stateStyles=v}match(d,p,v,h){return function Ce(De,d,p,v,h){return De.some(A=>A(d,p,v,h))}(this.ast.matchers,d,p,v,h)}buildStyles(d,p,v){let h=this._stateStyles.get("*");return void 0!==d&&(h=this._stateStyles.get(d?.toString())||h),h?h.buildStyles(p,v):new Map}build(d,p,v,h,A,ne,ue,Ee,Ie,et){const gt=[],Vt=this.ast.options&&this.ast.options.params||T,Yt=this.buildStyles(v,ue&&ue.params||T,gt),fn=Ee&&Ee.params||T,mr=this.buildStyles(h,fn,gt),Br=new Set,mi=new Map,ki=new Map,vi="void"===h,Mn={params:ke(fn,Vt),delay:this.ast.options?.delay},hr=et?[]:Vn(d,p,this.ast.animation,A,ne,Yt,mr,Mn,Ie,gt);let er=0;return hr.forEach(Cr=>{er=Math.max(Cr.duration+Cr.delay,er)}),gt.length?u(p,this._triggerName,v,h,vi,Yt,mr,[],[],mi,ki,er,gt):(hr.forEach(Cr=>{const Gr=Cr.element,go=st(mi,Gr,new Set);Cr.preStyleProps.forEach(mo=>go.add(mo));const Hs=st(ki,Gr,new Set);Cr.postStyleProps.forEach(mo=>Hs.add(mo)),Gr!==p&&Br.add(Gr)}),u(p,this._triggerName,v,h,vi,Yt,mr,hr,[...Br.values()],mi,ki,er))}}function ke(De,d){const p={...d};return Object.entries(De).forEach(([v,h])=>{null!=h&&(p[v]=h)}),p}class ht{constructor(d,p,v){this.styles=d,this.defaultParams=p,this.normalizer=v}buildStyles(d,p){const v=new Map,h=ke(d,this.defaultParams);return this.styles.styles.forEach(A=>{"string"!=typeof A&&A.forEach((ne,ue)=>{ne&&(ne=Zt(ne,h,p));const Ee=this.normalizer.normalizePropertyName(ue,p);ne=this.normalizer.normalizeStyleValue(ue,Ee,ne,p),v.set(ue,ne)})}),v}}class Et{constructor(d,p,v){this.name=d,this.ast=p,this._normalizer=v,this.transitionFactories=[],this.states=new Map,p.states.forEach(h=>{this.states.set(h.name,new ht(h.style,h.options&&h.options.params||{},v))}),pn(this.states,"true","1"),pn(this.states,"false","0"),p.transitions.forEach(h=>{this.transitionFactories.push(new X(d,h,this.states))}),this.fallbackTransition=function Kt(De,d,p){return new X(De,{type:R.If.Transition,animation:{type:R.If.Sequence,steps:[],options:null},matchers:[(ne,ue)=>!0],options:null,queryCount:0,depCount:0},d)}(d,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(d,p,v,h){return this.transitionFactories.find(ne=>ne.match(d,p,v,h))||null}matchStyles(d,p,v){return this.fallbackTransition.buildStyles(d,p,v)}}function pn(De,d,p){De.has(d)?De.has(p)||De.set(p,De.get(d)):De.has(p)&&De.set(d,De.get(p))}const An=new pt;class Qn{constructor(d,p,v){this.bodyNode=d,this._driver=p,this._normalizer=v,this._animations=new Map,this._playersById=new Map,this.players=[]}register(d,p){const v=[],A=Ke(this._driver,p,v,[]);if(v.length)throw function we(De){return new r.wOt(3503,!1)}();this._animations.set(d,A)}_buildPlayer(d,p,v){const h=d.element,A=Ge(this._normalizer,d.keyframes,p,v);return this._driver.animate(h,A,d.duration,d.delay,d.easing,[],!0)}create(d,p,v={}){const h=[],A=this._animations.get(d);let ne;const ue=new Map;if(A?(ne=Vn(this._driver,p,A,lr,bi,new Map,new Map,v,An,h),ne.forEach(et=>{const gt=st(ue,et.element,new Map);et.postStyleProps.forEach(Vt=>gt.set(Vt,null))})):(h.push(function Ze(){return new r.wOt(3300,!1)}()),ne=[]),h.length)throw function Ue(De){return new r.wOt(3504,!1)}();ue.forEach((et,gt)=>{et.forEach((Vt,Ut)=>{et.set(Ut,this._driver.computeStyle(gt,Ut,R.kp))})});const Ie=We(ne.map(et=>{const gt=ue.get(et.element);return this._buildPlayer(et,new Map,gt)}));return this._playersById.set(d,Ie),Ie.onDestroy(()=>this.destroy(d)),this.players.push(Ie),Ie}destroy(d){const p=this._getPlayer(d);p.destroy(),this._playersById.delete(d);const v=this.players.indexOf(p);v>=0&&this.players.splice(v,1)}_getPlayer(d){const p=this._playersById.get(d);if(!p)throw function Le(De){return new r.wOt(3301,!1)}();return p}listen(d,p,v,h){const A=tt(p,"","","");return ut(this._getPlayer(d),v,A,h),()=>{}}command(d,p,v,h){if("register"==v)return void this.register(d,h[0]);if("create"==v)return void this.create(d,p,h[0]||{});const A=this._getPlayer(d);switch(v){case"play":A.play();break;case"pause":A.pause();break;case"reset":A.reset();break;case"restart":A.restart();break;case"finish":A.finish();break;case"init":A.init();break;case"setPosition":A.setPosition(parseFloat(h[0]));break;case"destroy":this.destroy(d)}}}const Zn="ng-animate-queued",hi="ng-animate-disabled",zr=[],fi={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Xr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},si="__ng_removed";class Ir{get params(){return this.options.params}constructor(d,p=""){this.namespaceId=p;const v=d&&d.hasOwnProperty("value");if(this.value=function wo(De){return De??null}(v?d.value:d),v){const{value:A,...ne}=d;this.options=ne}else this.options={};this.options.params||(this.options.params={})}absorbOptions(d){const p=d.params;if(p){const v=this.options.params;Object.keys(p).forEach(h=>{null==v[h]&&(v[h]=p[h])})}}}const Jr="void",ln=new Ir(Jr);class no{constructor(d,p,v){this.id=d,this.hostElement=p,this._engine=v,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+d,ei(p,this._hostClassName)}listen(d,p,v,h){if(!this._triggers.has(p))throw function _e(De,d){return new r.wOt(3302,!1)}();if(null==v||0==v.length)throw function Re(De){return new r.wOt(3303,!1)}();if(!function ko(De){return"start"==De||"done"==De}(v))throw function ae(De,d){return new r.wOt(3400,!1)}();const A=st(this._elementListeners,d,[]),ne={name:p,phase:v,callback:h};A.push(ne);const ue=st(this._engine.statesByElement,d,new Map);return ue.has(p)||(ei(d,hn),ei(d,hn+"-"+p),ue.set(p,ln)),()=>{this._engine.afterFlush(()=>{const Ee=A.indexOf(ne);Ee>=0&&A.splice(Ee,1),this._triggers.has(p)||ue.delete(p)})}}register(d,p){return!this._triggers.has(d)&&(this._triggers.set(d,p),!0)}_getTrigger(d){const p=this._triggers.get(d);if(!p)throw function oe(De){return new r.wOt(3401,!1)}();return p}trigger(d,p,v,h=!0){const A=this._getTrigger(p),ne=new Hi(this.id,p,d);let ue=this._engine.statesByElement.get(d);ue||(ei(d,hn),ei(d,hn+"-"+p),this._engine.statesByElement.set(d,ue=new Map));let Ee=ue.get(p);const Ie=new Ir(v,this.id);if(!(v&&v.hasOwnProperty("value"))&&Ee&&Ie.absorbOptions(Ee.options),ue.set(p,Ie),Ee||(Ee=ln),Ie.value!==Jr&&Ee.value===Ie.value){if(!function $o(De,d){const p=Object.keys(De),v=Object.keys(d);if(p.length!=v.length)return!1;for(let h=0;h<p.length;h++){const A=p[h];if(!d.hasOwnProperty(A)||De[A]!==d[A])return!1}return!0}(Ee.params,Ie.params)){const fn=[],mr=A.matchStyles(Ee.value,Ee.params,fn),Br=A.matchStyles(Ie.value,Ie.params,fn);fn.length?this._engine.reportError(fn):this._engine.afterFlush(()=>{ot(d,mr),qe(d,Br)})}return}const Vt=st(this._engine.playersByElement,d,[]);Vt.forEach(fn=>{fn.namespaceId==this.id&&fn.triggerName==p&&fn.queued&&fn.destroy()});let Ut=A.matchTransition(Ee.value,Ie.value,d,Ie.params),Yt=!1;if(!Ut){if(!h)return;Ut=A.fallbackTransition,Yt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:d,triggerName:p,transition:Ut,fromState:Ee,toState:Ie,player:ne,isFallbackTransition:Yt}),Yt||(ei(d,Zn),ne.onStart(()=>{pi(d,Zn)})),ne.onDone(()=>{let fn=this.players.indexOf(ne);fn>=0&&this.players.splice(fn,1);const mr=this._engine.playersByElement.get(d);if(mr){let Br=mr.indexOf(ne);Br>=0&&mr.splice(Br,1)}}),this.players.push(ne),Vt.push(ne),ne}deregister(d){this._triggers.delete(d),this._engine.statesByElement.forEach(p=>p.delete(d)),this._elementListeners.forEach((p,v)=>{this._elementListeners.set(v,p.filter(h=>h.name!=d))})}clearElementCache(d){this._engine.statesByElement.delete(d),this._elementListeners.delete(d);const p=this._engine.playersByElement.get(d);p&&(p.forEach(v=>v.destroy()),this._engine.playersByElement.delete(d))}_signalRemovalForInnerTriggers(d,p){const v=this._engine.driver.query(d,yr,!0);v.forEach(h=>{if(h[si])return;const A=this._engine.fetchNamespacesByElement(h);A.size?A.forEach(ne=>ne.triggerLeaveAnimation(h,p,!1,!0)):this.clearElementCache(h)}),this._engine.afterFlushAnimationsDone(()=>v.forEach(h=>this.clearElementCache(h)))}triggerLeaveAnimation(d,p,v,h){const A=this._engine.statesByElement.get(d),ne=new Map;if(A){const ue=[];if(A.forEach((Ee,Ie)=>{if(ne.set(Ie,Ee.value),this._triggers.has(Ie)){const et=this.trigger(d,Ie,Jr,h);et&&ue.push(et)}}),ue.length)return this._engine.markElementAsRemoved(this.id,d,!0,p,ne),v&&We(ue).onDone(()=>this._engine.processLeaveNode(d)),!0}return!1}prepareLeaveAnimationListeners(d){const p=this._elementListeners.get(d),v=this._engine.statesByElement.get(d);if(p&&v){const h=new Set;p.forEach(A=>{const ne=A.name;if(h.has(ne))return;h.add(ne);const Ee=this._triggers.get(ne).fallbackTransition,Ie=v.get(ne)||ln,et=new Ir(Jr),gt=new Hi(this.id,ne,d);this._engine.totalQueuedPlayers++,this._queue.push({element:d,triggerName:ne,transition:Ee,fromState:Ie,toState:et,player:gt,isFallbackTransition:!0})})}}removeNode(d,p){const v=this._engine;if(d.childElementCount&&this._signalRemovalForInnerTriggers(d,p),this.triggerLeaveAnimation(d,p,!0))return;let h=!1;if(v.totalAnimations){const A=v.players.length?v.playersByQueriedElement.get(d):[];if(A&&A.length)h=!0;else{let ne=d;for(;ne=ne.parentNode;)if(v.statesByElement.get(ne)){h=!0;break}}}if(this.prepareLeaveAnimationListeners(d),h)v.markElementAsRemoved(this.id,d,!1,p);else{const A=d[si];(!A||A===fi)&&(v.afterFlush(()=>this.clearElementCache(d)),v.destroyInnerAnimations(d),v._onRemovalComplete(d,p))}}insertNode(d,p){ei(d,this._hostClassName)}drainQueuedTransitions(d){const p=[];return this._queue.forEach(v=>{const h=v.player;if(h.destroyed)return;const A=v.element,ne=this._elementListeners.get(A);ne&&ne.forEach(ue=>{if(ue.name==v.triggerName){const Ee=tt(A,v.triggerName,v.fromState.value,v.toState.value);Ee._data=d,ut(v.player,ue.phase,Ee,ue.callback)}}),h.markedForDestroy?this._engine.afterFlush(()=>{h.destroy()}):p.push(v)}),this._queue=[],p.sort((v,h)=>{const A=v.transition.ast.depCount,ne=h.transition.ast.depCount;return 0==A||0==ne?A-ne:this._engine.driver.containsElement(v.element,h.element)?1:-1})}destroy(d){this.players.forEach(p=>p.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,d)}}class Ao{_onRemovalComplete(d,p){this.onRemovalComplete(d,p)}constructor(d,p,v,h){this.bodyNode=d,this.driver=p,this._normalizer=v,this.scheduler=h,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=(A,ne)=>{}}get queuedPlayers(){const d=[];return this._namespaceList.forEach(p=>{p.players.forEach(v=>{v.queued&&d.push(v)})}),d}createNamespace(d,p){const v=new no(d,p,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,p)?this._balanceNamespaceList(v,p):(this.newHostElements.set(p,v),this.collectEnterElement(p)),this._namespaceLookup[d]=v}_balanceNamespaceList(d,p){const v=this._namespaceList,h=this.namespacesByHostElement;if(v.length-1>=0){let ne=!1,ue=this.driver.getParentElement(p);for(;ue;){const Ee=h.get(ue);if(Ee){const Ie=v.indexOf(Ee);v.splice(Ie+1,0,d),ne=!0;break}ue=this.driver.getParentElement(ue)}ne||v.unshift(d)}else v.push(d);return h.set(p,d),d}register(d,p){let v=this._namespaceLookup[d];return v||(v=this.createNamespace(d,p)),v}registerTrigger(d,p,v){let h=this._namespaceLookup[d];h&&h.register(p,v)&&this.totalAnimations++}destroy(d,p){d&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const v=this._fetchNamespace(d);this.namespacesByHostElement.delete(v.hostElement);const h=this._namespaceList.indexOf(v);h>=0&&this._namespaceList.splice(h,1),v.destroy(p),delete this._namespaceLookup[d]}))}_fetchNamespace(d){return this._namespaceLookup[d]}fetchNamespacesByElement(d){const p=new Set,v=this.statesByElement.get(d);if(v)for(let h of v.values())if(h.namespaceId){const A=this._fetchNamespace(h.namespaceId);A&&p.add(A)}return p}trigger(d,p,v,h){if(Qi(p)){const A=this._fetchNamespace(d);if(A)return A.trigger(p,v,h),!0}return!1}insertNode(d,p,v,h){if(!Qi(p))return;const A=p[si];if(A&&A.setForRemoval){A.setForRemoval=!1,A.setForMove=!0;const ne=this.collectedLeaveElements.indexOf(p);ne>=0&&this.collectedLeaveElements.splice(ne,1)}if(d){const ne=this._fetchNamespace(d);ne&&ne.insertNode(p,v)}h&&this.collectEnterElement(p)}collectEnterElement(d){this.collectedEnterElements.push(d)}markElementAsDisabled(d,p){p?this.disabledNodes.has(d)||(this.disabledNodes.add(d),ei(d,hi)):this.disabledNodes.has(d)&&(this.disabledNodes.delete(d),pi(d,hi))}removeNode(d,p,v){if(Qi(p)){this.scheduler?.notify();const h=d?this._fetchNamespace(d):null;h?h.removeNode(p,v):this.markElementAsRemoved(d,p,!1,v);const A=this.namespacesByHostElement.get(p);A&&A.id!==d&&A.removeNode(p,v)}else this._onRemovalComplete(p,v)}markElementAsRemoved(d,p,v,h,A){this.collectedLeaveElements.push(p),p[si]={namespaceId:d,setForRemoval:h,hasAnimation:v,removedBeforeQueried:!1,previousTriggersValues:A}}listen(d,p,v,h,A){return Qi(p)?this._fetchNamespace(d).listen(p,v,h,A):()=>{}}_buildInstruction(d,p,v,h,A){return d.transition.build(this.driver,d.element,d.fromState.value,d.toState.value,v,h,d.fromState.options,d.toState.options,p,A)}destroyInnerAnimations(d){let p=this.driver.query(d,yr,!0);p.forEach(v=>this.destroyActiveAnimationsForElement(v)),0!=this.playersByQueriedElement.size&&(p=this.driver.query(d,Tn,!0),p.forEach(v=>this.finishActiveQueriedAnimationOnElement(v)))}destroyActiveAnimationsForElement(d){const p=this.playersByElement.get(d);p&&p.forEach(v=>{v.queued?v.markedForDestroy=!0:v.destroy()})}finishActiveQueriedAnimationOnElement(d){const p=this.playersByQueriedElement.get(d);p&&p.forEach(v=>v.finish())}whenRenderingDone(){return new Promise(d=>{if(this.players.length)return We(this.players).onDone(()=>d());d()})}processLeaveNode(d){const p=d[si];if(p&&p.setForRemoval){if(d[si]=fi,p.namespaceId){this.destroyInnerAnimations(d);const v=this._fetchNamespace(p.namespaceId);v&&v.clearElementCache(d)}this._onRemovalComplete(d,p.setForRemoval)}d.classList?.contains(hi)&&this.markElementAsDisabled(d,!1),this.driver.query(d,".ng-animate-disabled",!0).forEach(v=>{this.markElementAsDisabled(v,!1)})}flush(d=-1){let p=[];if(this.newHostElements.size&&(this.newHostElements.forEach((v,h)=>this._balanceNamespaceList(v,h)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let v=0;v<this.collectedEnterElements.length;v++)ei(this.collectedEnterElements[v],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const v=[];try{p=this._flushAnimations(v,d)}finally{for(let h=0;h<v.length;h++)v[h]()}}else for(let v=0;v<this.collectedLeaveElements.length;v++)this.processLeaveNode(this.collectedLeaveElements[v]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(v=>v()),this._flushFns=[],this._whenQuietFns.length){const v=this._whenQuietFns;this._whenQuietFns=[],p.length?We(p).onDone(()=>{v.forEach(h=>h())}):v.forEach(h=>h())}}reportError(d){throw function ge(De){return new r.wOt(3402,!1)}()}_flushAnimations(d,p){const v=new pt,h=[],A=new Map,ne=[],ue=new Map,Ee=new Map,Ie=new Map,et=new Set;this.disabledNodes.forEach(cn=>{et.add(cn);const gn=this.driver.query(cn,".ng-animate-queued",!0);for(let Cn=0;Cn<gn.length;Cn++)et.add(gn[Cn])});const gt=this.bodyNode,Vt=Array.from(this.statesByElement.keys()),Ut=Do(Vt,this.collectedEnterElements),Yt=new Map;let fn=0;Ut.forEach((cn,gn)=>{const Cn=lr+fn++;Yt.set(gn,Cn),cn.forEach(zn=>ei(zn,Cn))});const mr=[],Br=new Set,mi=new Set;for(let cn=0;cn<this.collectedLeaveElements.length;cn++){const gn=this.collectedLeaveElements[cn],Cn=gn[si];Cn&&Cn.setForRemoval&&(mr.push(gn),Br.add(gn),Cn.hasAnimation?this.driver.query(gn,".ng-star-inserted",!0).forEach(zn=>Br.add(zn)):mi.add(gn))}const ki=new Map,vi=Do(Vt,Array.from(Br));vi.forEach((cn,gn)=>{const Cn=bi+fn++;ki.set(gn,Cn),cn.forEach(zn=>ei(zn,Cn))}),d.push(()=>{Ut.forEach((cn,gn)=>{const Cn=Yt.get(gn);cn.forEach(zn=>pi(zn,Cn))}),vi.forEach((cn,gn)=>{const Cn=ki.get(gn);cn.forEach(zn=>pi(zn,Cn))}),mr.forEach(cn=>{this.processLeaveNode(cn)})});const Mn=[],hr=[];for(let cn=this._namespaceList.length-1;cn>=0;cn--)this._namespaceList[cn].drainQueuedTransitions(p).forEach(Cn=>{const zn=Cn.player,Ii=Cn.element;if(Mn.push(zn),this.collectedEnterElements.length){const Mi=Ii[si];if(Mi&&Mi.setForMove){if(Mi.previousTriggersValues&&Mi.previousTriggersValues.has(Cn.triggerName)){const Vo=Mi.previousTriggersValues.get(Cn.triggerName),xi=this.statesByElement.get(Cn.element);if(xi&&xi.has(Cn.triggerName)){const Go=xi.get(Cn.triggerName);Go.value=Vo,xi.set(Cn.triggerName,Go)}}return void zn.destroy()}}const vo=!gt||!this.driver.containsElement(gt,Ii),Ji=ki.get(Ii),Oo=Yt.get(Ii),Mr=this._buildInstruction(Cn,v,Oo,Ji,vo);if(Mr.errors&&Mr.errors.length)return void hr.push(Mr);if(vo)return zn.onStart(()=>ot(Ii,Mr.fromStyles)),zn.onDestroy(()=>qe(Ii,Mr.toStyles)),void h.push(zn);if(Cn.isFallbackTransition)return zn.onStart(()=>ot(Ii,Mr.fromStyles)),zn.onDestroy(()=>qe(Ii,Mr.toStyles)),void h.push(zn);const Vs=[];Mr.timelines.forEach(Mi=>{Mi.stretchStartingKeyframe=!0,this.disabledNodes.has(Mi.element)||Vs.push(Mi)}),Mr.timelines=Vs,v.append(Ii,Mr.timelines),ne.push({instruction:Mr,player:zn,element:Ii}),Mr.queriedElements.forEach(Mi=>st(ue,Mi,[]).push(zn)),Mr.preStyleProps.forEach((Mi,Vo)=>{if(Mi.size){let xi=Ee.get(Vo);xi||Ee.set(Vo,xi=new Set),Mi.forEach((Go,Ts)=>xi.add(Ts))}}),Mr.postStyleProps.forEach((Mi,Vo)=>{let xi=Ie.get(Vo);xi||Ie.set(Vo,xi=new Set),Mi.forEach((Go,Ts)=>xi.add(Ts))})});if(hr.length){const cn=[];hr.forEach(gn=>{cn.push(function Ae(De,d){return new r.wOt(3505,!1)}())}),Mn.forEach(gn=>gn.destroy()),this.reportError(cn)}const er=new Map,Cr=new Map;ne.forEach(cn=>{const gn=cn.element;v.has(gn)&&(Cr.set(gn,gn),this._beforeAnimationBuild(cn.player.namespaceId,cn.instruction,er))}),h.forEach(cn=>{const gn=cn.element;this._getPreviousPlayers(gn,!1,cn.namespaceId,cn.triggerName,null).forEach(zn=>{st(er,gn,[]).push(zn),zn.destroy()})});const Gr=mr.filter(cn=>ro(cn,Ee,Ie)),go=new Map;xo(go,this.driver,mi,Ie,R.kp).forEach(cn=>{ro(cn,Ee,Ie)&&Gr.push(cn)});const mo=new Map;Ut.forEach((cn,gn)=>{xo(mo,this.driver,new Set(cn),Ee,R.FX)}),Gr.forEach(cn=>{const gn=go.get(cn),Cn=mo.get(cn);go.set(cn,new Map([...gn?.entries()??[],...Cn?.entries()??[]]))});const Us=[],aa=[],es={};ne.forEach(cn=>{const{element:gn,player:Cn,instruction:zn}=cn;if(v.has(gn)){if(et.has(gn))return Cn.onDestroy(()=>qe(gn,zn.toStyles)),Cn.disabled=!0,Cn.overrideTotalTime(zn.totalTime),void h.push(Cn);let Ii=es;if(Cr.size>1){let Ji=gn;const Oo=[];for(;Ji=Ji.parentNode;){const Mr=Cr.get(Ji);if(Mr){Ii=Mr;break}Oo.push(Ji)}Oo.forEach(Mr=>Cr.set(Mr,Ii))}const vo=this._buildAnimation(Cn.namespaceId,zn,er,A,mo,go);if(Cn.setRealPlayer(vo),Ii===es)Us.push(Cn);else{const Ji=this.playersByElement.get(Ii);Ji&&Ji.length&&(Cn.parentPlayer=We(Ji)),h.push(Cn)}}else ot(gn,zn.fromStyles),Cn.onDestroy(()=>qe(gn,zn.toStyles)),aa.push(Cn),et.has(gn)&&h.push(Cn)}),aa.forEach(cn=>{const gn=A.get(cn.element);if(gn&&gn.length){const Cn=We(gn);cn.setRealPlayer(Cn)}}),h.forEach(cn=>{cn.parentPlayer?cn.syncPlayerEvents(cn.parentPlayer):cn.destroy()});for(let cn=0;cn<mr.length;cn++){const gn=mr[cn],Cn=gn[si];if(pi(gn,bi),Cn&&Cn.hasAnimation)continue;let zn=[];if(ue.size){let vo=ue.get(gn);vo&&vo.length&&zn.push(...vo);let Ji=this.driver.query(gn,Tn,!0);for(let Oo=0;Oo<Ji.length;Oo++){let Mr=ue.get(Ji[Oo]);Mr&&Mr.length&&zn.push(...Mr)}}const Ii=zn.filter(vo=>!vo.destroyed);Ii.length?Jo(this,gn,Ii):this.processLeaveNode(gn)}return mr.length=0,Us.forEach(cn=>{this.players.push(cn),cn.onDone(()=>{cn.destroy();const gn=this.players.indexOf(cn);this.players.splice(gn,1)}),cn.play()}),Us}afterFlush(d){this._flushFns.push(d)}afterFlushAnimationsDone(d){this._whenQuietFns.push(d)}_getPreviousPlayers(d,p,v,h,A){let ne=[];if(p){const ue=this.playersByQueriedElement.get(d);ue&&(ne=ue)}else{const ue=this.playersByElement.get(d);if(ue){const Ee=!A||A==Jr;ue.forEach(Ie=>{Ie.queued||!Ee&&Ie.triggerName!=h||ne.push(Ie)})}}return(v||h)&&(ne=ne.filter(ue=>!(v&&v!=ue.namespaceId||h&&h!=ue.triggerName))),ne}_beforeAnimationBuild(d,p,v){const A=p.element,ne=p.isRemovalTransition?void 0:d,ue=p.isRemovalTransition?void 0:p.triggerName;for(const Ee of p.timelines){const Ie=Ee.element,et=Ie!==A,gt=st(v,Ie,[]);this._getPreviousPlayers(Ie,et,ne,ue,p.toState).forEach(Ut=>{const Yt=Ut.getRealPlayer();Yt.beforeDestroy&&Yt.beforeDestroy(),Ut.destroy(),gt.push(Ut)})}ot(A,p.fromStyles)}_buildAnimation(d,p,v,h,A,ne){const ue=p.triggerName,Ee=p.element,Ie=[],et=new Set,gt=new Set,Vt=p.timelines.map(Yt=>{const fn=Yt.element;et.add(fn);const mr=fn[si];if(mr&&mr.removedBeforeQueried)return new R.sf(Yt.duration,Yt.delay);const Br=fn!==Ee,mi=function Lr(De){const d=[];return gi(De,d),d}((v.get(fn)||zr).map(er=>er.getRealPlayer())).filter(er=>!!er.element&&er.element===fn),ki=A.get(fn),vi=ne.get(fn),Mn=Ge(this._normalizer,Yt.keyframes,ki,vi),hr=this._buildPlayer(Yt,Mn,mi);if(Yt.subTimeline&&h&&gt.add(fn),Br){const er=new Hi(d,ue,fn);er.setRealPlayer(hr),Ie.push(er)}return hr});Ie.forEach(Yt=>{st(this.playersByQueriedElement,Yt.element,[]).push(Yt),Yt.onDone(()=>function ji(De,d,p){let v=De.get(d);if(v){if(v.length){const h=v.indexOf(p);v.splice(h,1)}0==v.length&&De.delete(d)}return v}(this.playersByQueriedElement,Yt.element,Yt))}),et.forEach(Yt=>ei(Yt,bn));const Ut=We(Vt);return Ut.onDestroy(()=>{et.forEach(Yt=>pi(Yt,bn)),qe(Ee,p.toStyles)}),gt.forEach(Yt=>{st(h,Yt,[]).push(Ut)}),Ut}_buildPlayer(d,p,v){return p.length>0?this.driver.animate(d.element,p,d.duration,d.delay,d.easing,v):new R.sf(d.duration,d.delay)}}class Hi{constructor(d,p,v){this.namespaceId=d,this.triggerName=p,this.element=v,this._player=new R.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(d){this._containsRealPlayer||(this._player=d,this._queuedCallbacks.forEach((p,v)=>{p.forEach(h=>ut(d,v,void 0,h))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(d.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(d){this.totalTime=d}syncPlayerEvents(d){const p=this._player;p.triggerCallback&&d.onStart(()=>p.triggerCallback("start")),d.onDone(()=>this.finish()),d.onDestroy(()=>this.destroy())}_queueEvent(d,p){st(this._queuedCallbacks,d,[]).push(p)}onDone(d){this.queued&&this._queueEvent("done",d),this._player.onDone(d)}onStart(d){this.queued&&this._queueEvent("start",d),this._player.onStart(d)}onDestroy(d){this.queued&&this._queueEvent("destroy",d),this._player.onDestroy(d)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(d){this.queued||this._player.setPosition(d)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(d){const p=this._player;p.triggerCallback&&p.triggerCallback(d)}}function Qi(De){return De&&1===De.nodeType}function Zr(De,d){const p=De.style.display;return De.style.display=d??"none",p}function xo(De,d,p,v,h){const A=[];p.forEach(Ee=>A.push(Zr(Ee)));const ne=[];v.forEach((Ee,Ie)=>{const et=new Map;Ee.forEach(gt=>{const Vt=d.computeStyle(Ie,gt,h);et.set(gt,Vt),(!Vt||0==Vt.length)&&(Ie[si]=Xr,ne.push(Ie))}),De.set(Ie,et)});let ue=0;return p.forEach(Ee=>Zr(Ee,A[ue++])),ne}function Do(De,d){const p=new Map;if(De.forEach(ue=>p.set(ue,[])),0==d.length)return p;const h=new Set(d),A=new Map;function ne(ue){if(!ue)return 1;let Ee=A.get(ue);if(Ee)return Ee;const Ie=ue.parentNode;return Ee=p.has(Ie)?Ie:h.has(Ie)?1:ne(Ie),A.set(ue,Ee),Ee}return d.forEach(ue=>{const Ee=ne(ue);1!==Ee&&p.get(Ee).push(ue)}),p}function ei(De,d){De.classList?.add(d)}function pi(De,d){De.classList?.remove(d)}function Jo(De,d,p){We(p).onDone(()=>De.processLeaveNode(d))}function gi(De,d){for(let p=0;p<De.length;p++){const v=De[p];v instanceof R.ui?gi(v.players,d):d.push(v)}}function ro(De,d,p){const v=p.get(De);if(!v)return!1;let h=d.get(De);return h?v.forEach(A=>h.add(A)):d.set(De,v),p.delete(De),!0}class Si{constructor(d,p,v,h){this._driver=p,this._normalizer=v,this._triggerCache={},this.onRemovalComplete=(A,ne)=>{},this._transitionEngine=new Ao(d.body,p,v,h),this._timelineEngine=new Qn(d.body,p,v),this._transitionEngine.onRemovalComplete=(A,ne)=>this.onRemovalComplete(A,ne)}registerTrigger(d,p,v,h,A){const ne=d+"-"+h;let ue=this._triggerCache[ne];if(!ue){const Ee=[],et=Ke(this._driver,A,Ee,[]);if(Ee.length)throw function Q(De,d){return new r.wOt(3404,!1)}();ue=function At(De,d,p){return new Et(De,d,p)}(h,et,this._normalizer),this._triggerCache[ne]=ue}this._transitionEngine.registerTrigger(p,h,ue)}register(d,p){this._transitionEngine.register(d,p)}destroy(d,p){this._transitionEngine.destroy(d,p)}onInsert(d,p,v,h){this._transitionEngine.insertNode(d,p,v,h)}onRemove(d,p,v){this._transitionEngine.removeNode(d,p,v)}disableAnimations(d,p){this._transitionEngine.markElementAsDisabled(d,p)}process(d,p,v,h){if("@"==v.charAt(0)){const[A,ne]=ct(v);this._timelineEngine.command(A,p,ne,h)}else this._transitionEngine.trigger(d,p,v,h)}listen(d,p,v,h,A){if("@"==v.charAt(0)){const[ne,ue]=ct(v);return this._timelineEngine.listen(ne,p,ue,A)}return this._transitionEngine.listen(d,p,v,h,A)}flush(d=-1){this._transitionEngine.flush(d)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(d){this._transitionEngine.afterFlushAnimationsDone(d)}}class oo{static#e=this.initialStylesByElement=new WeakMap;constructor(d,p,v){this._element=d,this._startStyles=p,this._endStyles=v,this._state=0;let h=oo.initialStylesByElement.get(d);h||oo.initialStylesByElement.set(d,h=new Map),this._initialStyles=h}start(){this._state<1&&(this._startStyles&&qe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(qe(this._element,this._initialStyles),this._endStyles&&(qe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(oo.initialStylesByElement.delete(this._element),this._startStyles&&(ot(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ot(this._element,this._endStyles),this._endStyles=null),qe(this._element,this._initialStyles),this._state=3)}}function Fo(De){let d=null;return De.forEach((p,v)=>{(function Io(De){return"display"===De||"position"===De})(v)&&(d=d||new Map,d.set(v,p))}),d}class ai{constructor(d,p,v,h){this.element=d,this.keyframes=p,this.options=v,this._specialStyles=h,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=v.duration,this._delay=v.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(d=>d()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const d=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,d,this.options),this._finalKeyframe=d.length?d[d.length-1]:new Map;const p=()=>this._onFinish();this.domPlayer.addEventListener("finish",p),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",p)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(d){const p=[];return d.forEach(v=>{p.push(Object.fromEntries(v))}),p}_triggerWebAnimation(d,p,v){return d.animate(this._convertKeyframesToObject(p),v)}onStart(d){this._originalOnStartFns.push(d),this._onStartFns.push(d)}onDone(d){this._originalOnDoneFns.push(d),this._onDoneFns.push(d)}onDestroy(d){this._onDestroyFns.push(d)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(d=>d()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(d=>d()),this._onDestroyFns=[])}setPosition(d){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=d*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const d=new Map;this.hasStarted()&&this._finalKeyframe.forEach((v,h)=>{"offset"!==h&&d.set(h,this._finished?v:Ni(this.element,h))}),this.currentSnapshot=d}triggerCallback(d){const p="start"===d?this._onStartFns:this._onDoneFns;p.forEach(v=>v()),p.length=0}}class Lo{validateStyleProperty(d){return!0}validateAnimatableStyleProperty(d){return!0}matchesElement(d,p){return!1}containsElement(d,p){return tn(d,p)}getParentElement(d){return Gt(d)}query(d,p,v){return qt(d,p,v)}computeStyle(d,p,v){return Ni(d,p)}animate(d,p,v,h,A,ne=[]){const Ee={duration:v,delay:h,fill:0==h?"both":"forwards"};A&&(Ee.easing=A);const Ie=new Map,et=ne.filter(Ut=>Ut instanceof ai);(function ir(De,d){return 0===De||0===d})(v,h)&&et.forEach(Ut=>{Ut.currentSnapshot.forEach((Yt,fn)=>Ie.set(fn,Yt))});let gt=function Rr(De){return De.length?De[0]instanceof Map?De:De.map(d=>new Map(Object.entries(d))):[]}(p).map(Ut=>new Map(Ut));gt=function fr(De,d,p){if(p.size&&d.length){let v=d[0],h=[];if(p.forEach((A,ne)=>{v.has(ne)||h.push(ne),v.set(ne,A)}),h.length)for(let A=1;A<d.length;A++){let ne=d[A];h.forEach(ue=>ne.set(ue,Ni(De,ue)))}}return d}(d,gt,Ie);const Vt=function io(De,d){let p=null,v=null;return Array.isArray(d)&&d.length?(p=Fo(d[0]),d.length>1&&(v=Fo(d[d.length-1]))):d instanceof Map&&(p=Fo(d)),p||v?new oo(De,p,v):null}(d,gt);return new ai(d,gt,Ee,Vt)}}const Ai="@.disabled";class Hn{constructor(d,p,v,h){this.namespaceId=d,this.delegate=p,this.engine=v,this._onDestroy=h,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(d){this.delegate.destroyNode?.(d)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(d,p){return this.delegate.createElement(d,p)}createComment(d){return this.delegate.createComment(d)}createText(d){return this.delegate.createText(d)}appendChild(d,p){this.delegate.appendChild(d,p),this.engine.onInsert(this.namespaceId,p,d,!1)}insertBefore(d,p,v,h=!0){this.delegate.insertBefore(d,p,v),this.engine.onInsert(this.namespaceId,p,d,h)}removeChild(d,p,v){this.engine.onRemove(this.namespaceId,p,this.delegate)}selectRootElement(d,p){return this.delegate.selectRootElement(d,p)}parentNode(d){return this.delegate.parentNode(d)}nextSibling(d){return this.delegate.nextSibling(d)}setAttribute(d,p,v,h){this.delegate.setAttribute(d,p,v,h)}removeAttribute(d,p,v){this.delegate.removeAttribute(d,p,v)}addClass(d,p){this.delegate.addClass(d,p)}removeClass(d,p){this.delegate.removeClass(d,p)}setStyle(d,p,v,h){this.delegate.setStyle(d,p,v,h)}removeStyle(d,p,v){this.delegate.removeStyle(d,p,v)}setProperty(d,p,v){"@"==p.charAt(0)&&p==Ai?this.disableAnimations(d,!!v):this.delegate.setProperty(d,p,v)}setValue(d,p){this.delegate.setValue(d,p)}listen(d,p,v){return this.delegate.listen(d,p,v)}disableAnimations(d,p){this.engine.disableAnimations(d,p)}}class Wi extends Hn{constructor(d,p,v,h,A){super(p,v,h,A),this.factory=d,this.namespaceId=p}setProperty(d,p,v){"@"==p.charAt(0)?"."==p.charAt(1)&&p==Ai?this.disableAnimations(d,v=void 0===v||!!v):this.engine.process(this.namespaceId,d,p.slice(1),v):this.delegate.setProperty(d,p,v)}listen(d,p,v){if("@"==p.charAt(0)){const h=function Wo(De){switch(De){case"body":return document.body;case"document":return document;case"window":return window;default:return De}}(d);let A=p.slice(1),ne="";return"@"!=A.charAt(0)&&([A,ne]=function Ho(De){const d=De.indexOf(".");return[De.substring(0,d),De.slice(d+1)]}(A)),this.engine.listen(this.namespaceId,h,A,ne,ue=>{this.factory.scheduleListenerCallback(ue._data||-1,v,ue)})}return this.delegate.listen(d,p,v)}}class wi{constructor(d,p,v){this.delegate=d,this.engine=p,this._zone=v,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,p.onRemovalComplete=(h,A)=>{const ne=A?.parentNode(h);ne&&A.removeChild(ne,h)}}createRenderer(d,p){const h=this.delegate.createRenderer(d,p);if(!d||!p?.data?.animation){const Ie=this._rendererCache;let et=Ie.get(h);return et||(et=new Hn("",h,this.engine,()=>Ie.delete(h)),Ie.set(h,et)),et}const A=p.id,ne=p.id+"-"+this._currentId;this._currentId++,this.engine.register(ne,d);const ue=Ie=>{Array.isArray(Ie)?Ie.forEach(ue):this.engine.registerTrigger(A,ne,d,Ie.name,Ie)};return p.data.animation.forEach(ue),new Wi(this,ne,h,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(d,p,v){if(d>=0&&d<this._microtaskId)return void this._zone.run(()=>p(v));const h=this._animationCallbacksBuffer;0==h.length&&queueMicrotask(()=>{this._zone.run(()=>{h.forEach(A=>{const[ne,ue]=A;ne(ue)}),this._animationCallbacksBuffer=[]})}),h.push([p,v])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}var Uo=_(177);const Ko=[{provide:jt,useFactory:function Ui(){return new pr}},{provide:Si,useClass:(()=>{class De extends Si{constructor(p,v,h){super(p,v,h,(0,r.WQX)(r.An2,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(v){return new(v||De)(r.KVO(Uo.qQ),r.KVO(Ht),r.KVO(jt))};static#t=this.\u0275prov=r.jDH({token:De,factory:De.\u0275fac})}return De})()},{provide:r._9s,useFactory:function ps(De,d,p){return new wi(De,d,p)},deps:[g.B7,Si,r.SKi]}],Yi=[{provide:Ht,useFactory:()=>new Lo},{provide:r.bc$,useValue:"BrowserAnimations"},...Ko],so=[{provide:Ht,useClass:Nn},{provide:r.bc$,useValue:"NoopAnimations"},...Ko];let zo=(()=>{class De{static withConfig(p){return{ngModule:De,providers:p.disableAnimations?so:Yi}}static#e=this.\u0275fac=function(v){return new(v||De)};static#t=this.\u0275mod=r.$C({type:De});static#n=this.\u0275inj=r.G2t({providers:Yi,imports:[g.Bb]})}return De})()},345:(Dt,ve,_)=>{"use strict";_.d(ve,{B7:()=>Y,Bb:()=>Gt,hE:()=>wt,sG:()=>tt,up:()=>bi});var r=_(4438),g=_(177);class R extends g.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class V extends R{static makeCurrent(){(0,g.ZD)(new V)}onAndCancel(ot,He,Ye){return ot.addEventListener(He,Ye),()=>{ot.removeEventListener(He,Ye)}}dispatchEvent(ot,He){ot.dispatchEvent(He)}remove(ot){ot.parentNode&&ot.parentNode.removeChild(ot)}createElement(ot,He){return(He=He||this.getDefaultDocument()).createElement(ot)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ot){return ot.nodeType===Node.ELEMENT_NODE}isShadowRoot(ot){return ot instanceof DocumentFragment}getGlobalEventTarget(ot,He){return"window"===He?window:"document"===He?ot:"body"===He?ot.body:null}getBaseHref(ot){const He=function H(){return U=U||document.querySelector("base"),U?U.getAttribute("href"):null}();return null==He?null:function P(qe){return new URL(qe,document.baseURI).pathname}(He)}resetBaseElement(){U=null}getUserAgent(){return window.navigator.userAgent}getCookie(ot){return(0,g._b)(document.cookie,ot)}}let U=null,C=(()=>{class qe{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(Ye){return new(Ye||qe)};static#t=this.\u0275prov=r.jDH({token:qe,factory:qe.\u0275fac})}return qe})();const S=new r.nKC("");let I=(()=>{class qe{constructor(He,Ye){this._zone=Ye,this._eventNameToPlugin=new Map,He.forEach(bt=>{bt.manager=this}),this._plugins=He.slice().reverse()}addEventListener(He,Ye,bt){return this._findPluginFor(Ye).addEventListener(He,Ye,bt)}getZone(){return this._zone}_findPluginFor(He){let Ye=this._eventNameToPlugin.get(He);if(Ye)return Ye;if(Ye=this._plugins.find(Lt=>Lt.supports(He)),!Ye)throw new r.wOt(5101,!1);return this._eventNameToPlugin.set(He,Ye),Ye}static#e=this.\u0275fac=function(Ye){return new(Ye||qe)(r.KVO(S),r.KVO(r.SKi))};static#t=this.\u0275prov=r.jDH({token:qe,factory:qe.\u0275fac})}return qe})();class B{constructor(ot){this._doc=ot}}const G="ng-app-id";let x=(()=>{class qe{constructor(He,Ye,bt,Lt={}){this.doc=He,this.appId=Ye,this.nonce=bt,this.platformId=Lt,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,g.Vy)(Lt),this.resetHostNodes()}addStyles(He){for(const Ye of He)1===this.changeUsageCount(Ye,1)&&this.onStyleAdded(Ye)}removeStyles(He){for(const Ye of He)this.changeUsageCount(Ye,-1)<=0&&this.onStyleRemoved(Ye)}ngOnDestroy(){const He=this.styleNodesInDOM;He&&(He.forEach(Ye=>Ye.remove()),He.clear());for(const Ye of this.getAllStyles())this.onStyleRemoved(Ye);this.resetHostNodes()}addHost(He){this.hostNodes.add(He);for(const Ye of this.getAllStyles())this.addStyleToHost(He,Ye)}removeHost(He){this.hostNodes.delete(He)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(He){for(const Ye of this.hostNodes)this.addStyleToHost(Ye,He)}onStyleRemoved(He){const Ye=this.styleRef;Ye.get(He)?.elements?.forEach(bt=>bt.remove()),Ye.delete(He)}collectServerRenderedStyles(){const He=this.doc.head?.querySelectorAll(`style[${G}="${this.appId}"]`);if(He?.length){const Ye=new Map;return He.forEach(bt=>{null!=bt.textContent&&Ye.set(bt.textContent,bt)}),Ye}return null}changeUsageCount(He,Ye){const bt=this.styleRef;if(bt.has(He)){const Lt=bt.get(He);return Lt.usage+=Ye,Lt.usage}return bt.set(He,{usage:Ye,elements:[]}),Ye}getStyleElement(He,Ye){const bt=this.styleNodesInDOM,Lt=bt?.get(Ye);if(Lt?.parentNode===He)return bt.delete(Ye),Lt.removeAttribute(G),Lt;{const Zt=this.doc.createElement("style");return this.nonce&&Zt.setAttribute("nonce",this.nonce),Zt.textContent=Ye,this.platformIsServer&&Zt.setAttribute(G,this.appId),He.appendChild(Zt),Zt}}addStyleToHost(He,Ye){const bt=this.getStyleElement(He,Ye),Lt=this.styleRef,Zt=Lt.get(Ye)?.elements;Zt?Zt.push(bt):Lt.set(Ye,{elements:[bt],usage:1})}resetHostNodes(){const He=this.hostNodes;He.clear(),He.add(this.doc.head)}static#e=this.\u0275fac=function(Ye){return new(Ye||qe)(r.KVO(g.qQ),r.KVO(r.sZ2),r.KVO(r.BIS,8),r.KVO(r.Agw))};static#t=this.\u0275prov=r.jDH({token:qe,factory:qe.\u0275fac})}return qe})();const m={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},k=/%COMP%/g,D="%COMP%",K=`_nghost-${D}`,de=`_ngcontent-${D}`,te=new r.nKC("",{providedIn:"root",factory:()=>!0});function W(qe,ot){return ot.map(He=>He.replace(k,qe))}let Y=(()=>{class qe{constructor(He,Ye,bt,Lt,Zt,Dn,In,nr=null){this.eventManager=He,this.sharedStylesHost=Ye,this.appId=bt,this.removeStylesOnCompDestroy=Lt,this.doc=Zt,this.platformId=Dn,this.ngZone=In,this.nonce=nr,this.rendererByCompId=new Map,this.platformIsServer=(0,g.Vy)(Dn),this.defaultRenderer=new q(He,Zt,In,this.platformIsServer)}createRenderer(He,Ye){if(!He||!Ye)return this.defaultRenderer;this.platformIsServer&&Ye.encapsulation===r.gXe.ShadowDom&&(Ye={...Ye,encapsulation:r.gXe.Emulated});const bt=this.getOrCreateRenderer(He,Ye);return bt instanceof Ue?bt.applyToHost(He):bt instanceof Ze&&bt.applyStyles(),bt}getOrCreateRenderer(He,Ye){const bt=this.rendererByCompId;let Lt=bt.get(Ye.id);if(!Lt){const Zt=this.doc,Dn=this.ngZone,In=this.eventManager,nr=this.sharedStylesHost,ir=this.removeStylesOnCompDestroy,fr=this.platformIsServer;switch(Ye.encapsulation){case r.gXe.Emulated:Lt=new Ue(In,nr,Ye,this.appId,ir,Zt,Dn,fr);break;case r.gXe.ShadowDom:return new we(In,nr,He,Ye,Zt,Dn,this.nonce,fr);default:Lt=new Ze(In,nr,Ye,ir,Zt,Dn,fr)}bt.set(Ye.id,Lt)}return Lt}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(Ye){return new(Ye||qe)(r.KVO(I),r.KVO(x),r.KVO(r.sZ2),r.KVO(te),r.KVO(g.qQ),r.KVO(r.Agw),r.KVO(r.SKi),r.KVO(r.BIS))};static#t=this.\u0275prov=r.jDH({token:qe,factory:qe.\u0275fac})}return qe})();class q{constructor(ot,He,Ye,bt){this.eventManager=ot,this.doc=He,this.ngZone=Ye,this.platformIsServer=bt,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(ot,He){return He?this.doc.createElementNS(m[He]||He,ot):this.doc.createElement(ot)}createComment(ot){return this.doc.createComment(ot)}createText(ot){return this.doc.createTextNode(ot)}appendChild(ot,He){(be(ot)?ot.content:ot).appendChild(He)}insertBefore(ot,He,Ye){ot&&(be(ot)?ot.content:ot).insertBefore(He,Ye)}removeChild(ot,He){ot&&ot.removeChild(He)}selectRootElement(ot,He){let Ye="string"==typeof ot?this.doc.querySelector(ot):ot;if(!Ye)throw new r.wOt(-5104,!1);return He||(Ye.textContent=""),Ye}parentNode(ot){return ot.parentNode}nextSibling(ot){return ot.nextSibling}setAttribute(ot,He,Ye,bt){if(bt){He=bt+":"+He;const Lt=m[bt];Lt?ot.setAttributeNS(Lt,He,Ye):ot.setAttribute(He,Ye)}else ot.setAttribute(He,Ye)}removeAttribute(ot,He,Ye){if(Ye){const bt=m[Ye];bt?ot.removeAttributeNS(bt,He):ot.removeAttribute(`${Ye}:${He}`)}else ot.removeAttribute(He)}addClass(ot,He){ot.classList.add(He)}removeClass(ot,He){ot.classList.remove(He)}setStyle(ot,He,Ye,bt){bt&(r.czy.DashCase|r.czy.Important)?ot.style.setProperty(He,Ye,bt&r.czy.Important?"important":""):ot.style[He]=Ye}removeStyle(ot,He,Ye){Ye&r.czy.DashCase?ot.style.removeProperty(He):ot.style[He]=""}setProperty(ot,He,Ye){null!=ot&&(ot[He]=Ye)}setValue(ot,He){ot.nodeValue=He}listen(ot,He,Ye){if("string"==typeof ot&&!(ot=(0,g.QT)().getGlobalEventTarget(this.doc,ot)))throw new Error(`Unsupported event target ${ot} for event ${He}`);return this.eventManager.addEventListener(ot,He,this.decoratePreventDefault(Ye))}decoratePreventDefault(ot){return He=>{if("__ngUnwrap__"===He)return ot;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>ot(He)):ot(He))&&He.preventDefault()}}}function be(qe){return"TEMPLATE"===qe.tagName&&void 0!==qe.content}class we extends q{constructor(ot,He,Ye,bt,Lt,Zt,Dn,In){super(ot,Lt,Zt,In),this.sharedStylesHost=He,this.hostEl=Ye,this.shadowRoot=Ye.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const nr=W(bt.id,bt.styles);for(const ir of nr){const fr=document.createElement("style");Dn&&fr.setAttribute("nonce",Dn),fr.textContent=ir,this.shadowRoot.appendChild(fr)}}nodeOrShadowRoot(ot){return ot===this.hostEl?this.shadowRoot:ot}appendChild(ot,He){return super.appendChild(this.nodeOrShadowRoot(ot),He)}insertBefore(ot,He,Ye){return super.insertBefore(this.nodeOrShadowRoot(ot),He,Ye)}removeChild(ot,He){return super.removeChild(this.nodeOrShadowRoot(ot),He)}parentNode(ot){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ot)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Ze extends q{constructor(ot,He,Ye,bt,Lt,Zt,Dn,In){super(ot,Lt,Zt,Dn),this.sharedStylesHost=He,this.removeStylesOnCompDestroy=bt,this.styles=In?W(In,Ye.styles):Ye.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Ue extends Ze{constructor(ot,He,Ye,bt,Lt,Zt,Dn,In){const nr=bt+"-"+Ye.id;super(ot,He,Ye,Lt,Zt,Dn,In,nr),this.contentAttr=function se(qe){return de.replace(k,qe)}(nr),this.hostAttr=function z(qe){return K.replace(k,qe)}(nr)}applyToHost(ot){this.applyStyles(),this.setAttribute(ot,this.hostAttr,"")}createElement(ot,He){const Ye=super.createElement(ot,He);return super.setAttribute(Ye,this.contentAttr,""),Ye}}let Le=(()=>{class qe extends B{constructor(He){super(He)}supports(He){return!0}addEventListener(He,Ye,bt){return He.addEventListener(Ye,bt,!1),()=>this.removeEventListener(He,Ye,bt)}removeEventListener(He,Ye,bt){return He.removeEventListener(Ye,bt)}static#e=this.\u0275fac=function(Ye){return new(Ye||qe)(r.KVO(g.qQ))};static#t=this.\u0275prov=r.jDH({token:qe,factory:qe.\u0275fac})}return qe})();const _e=["alt","control","meta","shift"],Re={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ae={alt:qe=>qe.altKey,control:qe=>qe.ctrlKey,meta:qe=>qe.metaKey,shift:qe=>qe.shiftKey};let oe=(()=>{class qe extends B{constructor(He){super(He)}supports(He){return null!=qe.parseEventName(He)}addEventListener(He,Ye,bt){const Lt=qe.parseEventName(Ye),Zt=qe.eventCallback(Lt.fullKey,bt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,g.QT)().onAndCancel(He,Lt.domEventName,Zt))}static parseEventName(He){const Ye=He.toLowerCase().split("."),bt=Ye.shift();if(0===Ye.length||"keydown"!==bt&&"keyup"!==bt)return null;const Lt=qe._normalizeKey(Ye.pop());let Zt="",Dn=Ye.indexOf("code");if(Dn>-1&&(Ye.splice(Dn,1),Zt="code."),_e.forEach(nr=>{const ir=Ye.indexOf(nr);ir>-1&&(Ye.splice(ir,1),Zt+=nr+".")}),Zt+=Lt,0!=Ye.length||0===Lt.length)return null;const In={};return In.domEventName=bt,In.fullKey=Zt,In}static matchEventFullKeyCode(He,Ye){let bt=Re[He.key]||He.key,Lt="";return Ye.indexOf("code.")>-1&&(bt=He.code,Lt="code."),!(null==bt||!bt)&&(bt=bt.toLowerCase()," "===bt?bt="space":"."===bt&&(bt="dot"),_e.forEach(Zt=>{Zt!==bt&&(0,ae[Zt])(He)&&(Lt+=Zt+".")}),Lt+=bt,Lt===Ye)}static eventCallback(He,Ye,bt){return Lt=>{qe.matchEventFullKeyCode(Lt,He)&&bt.runGuarded(()=>Ye(Lt))}}static _normalizeKey(He){return"esc"===He?"escape":He}static#e=this.\u0275fac=function(Ye){return new(Ye||qe)(r.KVO(g.qQ))};static#t=this.\u0275prov=r.jDH({token:qe,factory:qe.\u0275fac})}return qe})();const tt=(0,r.oH4)(r.fpN,"browser",[{provide:r.Agw,useValue:g.AJ},{provide:r.PLl,useValue:function We(){V.makeCurrent()},multi:!0},{provide:g.qQ,useFactory:function ut(){return(0,r.TL$)(document),document},deps:[]}]),st=new r.nKC(""),ct=[{provide:r.e01,useClass:class b{addToWindow(ot){r.JZv.getAngularTestability=(Ye,bt=!0)=>{const Lt=ot.findTestabilityInTree(Ye,bt);if(null==Lt)throw new r.wOt(5103,!1);return Lt},r.JZv.getAllAngularTestabilities=()=>ot.getAllTestabilities(),r.JZv.getAllAngularRootElements=()=>ot.getAllRootElements(),r.JZv.frameworkStabilizers||(r.JZv.frameworkStabilizers=[]),r.JZv.frameworkStabilizers.push(Ye=>{const bt=r.JZv.getAllAngularTestabilities();let Lt=bt.length;const Zt=function(){Lt--,0==Lt&&Ye()};bt.forEach(Dn=>{Dn.whenStable(Zt)})})}findTestabilityInTree(ot,He,Ye){return null==He?null:ot.getTestability(He)??(Ye?(0,g.QT)().isShadowRoot(He)?this.findTestabilityInTree(ot,He.host,!0):this.findTestabilityInTree(ot,He.parentElement,!0):null)}},deps:[]},{provide:r.WHO,useClass:r.NYb,deps:[r.SKi,r.giA,r.e01]},{provide:r.NYb,useClass:r.NYb,deps:[r.SKi,r.giA,r.e01]}],St=[{provide:r.H8p,useValue:"root"},{provide:r.zcH,useFactory:function Ge(){return new r.zcH},deps:[]},{provide:S,useClass:Le,multi:!0,deps:[g.qQ,r.SKi,r.Agw]},{provide:S,useClass:oe,multi:!0,deps:[g.qQ]},Y,x,I,{provide:r._9s,useExisting:Y},{provide:g.N0,useClass:C,deps:[]},[]];let Gt=(()=>{class qe{constructor(He){}static withServerTransition(He){return{ngModule:qe,providers:[{provide:r.sZ2,useValue:He.appId}]}}static#e=this.\u0275fac=function(Ye){return new(Ye||qe)(r.KVO(st,12))};static#t=this.\u0275mod=r.$C({type:qe});static#n=this.\u0275inj=r.G2t({providers:[...St,...ct],imports:[g.MD,r.Hbi]})}return qe})(),wt=(()=>{class qe{constructor(He){this._doc=He}getTitle(){return this._doc.title}setTitle(He){this._doc.title=He||""}static#e=this.\u0275fac=function(Ye){return new(Ye||qe)(r.KVO(g.qQ))};static#t=this.\u0275prov=r.jDH({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})(),bi=(()=>{class qe{static#e=this.\u0275fac=function(Ye){return new(Ye||qe)};static#t=this.\u0275prov=r.jDH({token:qe,factory:function(Ye){let bt=null;return bt=Ye?new(Ye||qe):r.KVO(hn),bt},providedIn:"root"})}return qe})(),hn=(()=>{class qe extends bi{constructor(He){super(),this._doc=He}sanitize(He,Ye){if(null==Ye)return null;switch(He){case r.WPN.NONE:return Ye;case r.WPN.HTML:return(0,r.ZF7)(Ye,"HTML")?(0,r.rcV)(Ye):(0,r.h9k)(this._doc,String(Ye)).toString();case r.WPN.STYLE:return(0,r.ZF7)(Ye,"Style")?(0,r.rcV)(Ye):Ye;case r.WPN.SCRIPT:if((0,r.ZF7)(Ye,"Script"))return(0,r.rcV)(Ye);throw new r.wOt(5200,!1);case r.WPN.URL:return(0,r.ZF7)(Ye,"URL")?(0,r.rcV)(Ye):(0,r.$MX)(String(Ye));case r.WPN.RESOURCE_URL:if((0,r.ZF7)(Ye,"ResourceURL"))return(0,r.rcV)(Ye);throw new r.wOt(5201,!1);default:throw new r.wOt(5202,!1)}}bypassSecurityTrustHtml(He){return(0,r.Kcf)(He)}bypassSecurityTrustStyle(He){return(0,r.cWb)(He)}bypassSecurityTrustScript(He){return(0,r.UyX)(He)}bypassSecurityTrustUrl(He){return(0,r.osQ)(He)}bypassSecurityTrustResourceUrl(He){return(0,r.e5t)(He)}static#e=this.\u0275fac=function(Ye){return new(Ye||qe)(r.KVO(g.qQ))};static#t=this.\u0275prov=r.jDH({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})()},7596:(Dt,ve,_)=>{"use strict";_.d(ve,{nX:()=>ln,Z:()=>En,Ix:()=>Yn,Wk:()=>Sn,wQ:()=>rs,iI:()=>Lc,n3:()=>xo});var r=_(4438),g=_(4402),R=_(6648),V=_(7673),U=_(4412),H=_(1985),P=_(3073),b=_(3669),C=_(6450),S=_(9326),I=_(8496),B=_(4360),G=_(5225);function x(...w){const j=(0,S.lI)(w),N=(0,S.ms)(w),{args:$,keys:ce}=(0,P.D)(w);if(0===$.length)return(0,R.H)([],j);const Se=new H.c(function m(w,j,N=b.D){return $=>{k(j,()=>{const{length:ce}=w,Se=new Array(ce);let $e=ce,mt=ce;for(let dt=0;dt<ce;dt++)k(j,()=>{const Qt=(0,R.H)(w[dt],j);let Rn=!1;Qt.subscribe((0,B._)($,Gn=>{Se[dt]=Gn,Rn||(Rn=!0,mt--),mt||$.next(N(Se.slice()))},()=>{--$e||$.complete()}))},$)},$)}}($,j,ce?$e=>(0,I.e)(ce,$e):b.D));return N?Se.pipe((0,C.I)(N)):Se}function k(w,j,N){w?(0,G.N)(N,w,j):j()}var D=_(9350),K=_(8793),de=_(9030),ie=_(1203),te=_(8071);function se(w,j){const N=(0,te.T)(w)?w:()=>w,$=ce=>ce.error(N());return new H.c(j?ce=>j.schedule($,0,ce):$)}var z=_(983),W=_(8359),Y=_(9974);function q(){return(0,Y.N)((w,j)=>{let N=null;w._refCount++;const $=(0,B._)(j,void 0,void 0,void 0,()=>{if(!w||w._refCount<=0||0<--w._refCount)return void(N=null);const ce=w._connection,Se=N;N=null,ce&&(!Se||ce===Se)&&ce.unsubscribe(),j.unsubscribe()});w.subscribe($),$.closed||(N=w.connect())})}class ee extends H.c{constructor(j,N){super(),this.source=j,this.subjectFactory=N,this._subject=null,this._refCount=0,this._connection=null,(0,Y.S)(j)&&(this.lift=j.lift)}_subscribe(j){return this.getSubject().subscribe(j)}getSubject(){const j=this._subject;return(!j||j.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:j}=this;this._subject=this._connection=null,j?.unsubscribe()}connect(){let j=this._connection;if(!j){j=this._connection=new W.yU;const N=this.getSubject();j.add(this.source.subscribe((0,B._)(N,void 0,()=>{this._teardown(),N.complete()},$=>{this._teardown(),N.error($)},()=>this._teardown()))),j.closed&&(this._connection=null,j=W.yU.EMPTY)}return j}refCount(){return q()(this)}}var Q=_(1413),be=_(177),we=_(6354),Ze=_(5558),Ue=_(6697),Le=_(9172),_e=_(5964),Re=_(1397);function ae(w){return(0,Y.N)((j,N)=>{let $=!1;j.subscribe((0,B._)(N,ce=>{$=!0,N.next(ce)},()=>{$||N.next(w),N.complete()}))})}function oe(w=ge){return(0,Y.N)((j,N)=>{let $=!1;j.subscribe((0,B._)(N,ce=>{$=!0,N.next(ce)},()=>$?N.complete():N.error(w())))})}function ge(){return new D.G}function pe(w,j){const N=arguments.length>=2;return $=>$.pipe(w?(0,_e.p)((ce,Se)=>w(ce,Se,$)):b.D,(0,Ue.s)(1),N?ae(j):oe(()=>new D.G))}var Ae=_(274),Pe=_(8141),We=_(9437);function Fe(w){return w<=0?()=>z.w:(0,Y.N)((j,N)=>{let $=[];j.subscribe((0,B._)(N,ce=>{$.push(ce),w<$.length&&$.shift()},()=>{for(const ce of $)N.next(ce);N.complete()},void 0,()=>{$=null}))})}var st=_(3703),ct=_(980),St=_(6977),Gt=_(6365),it=_(345);const Xe="primary",wt=Symbol("RouteTitle");class at{constructor(j){this.params=j||{}}has(j){return Object.prototype.hasOwnProperty.call(this.params,j)}get(j){if(this.has(j)){const N=this.params[j];return Array.isArray(N)?N[0]:N}return null}getAll(j){if(this.has(j)){const N=this.params[j];return Array.isArray(N)?N:[N]}return[]}get keys(){return Object.keys(this.params)}}function vt(w){return new at(w)}function $t(w,j,N){const $=N.path.split("/");if($.length>w.length||"full"===N.pathMatch&&(j.hasChildren()||$.length<w.length))return null;const ce={};for(let Se=0;Se<$.length;Se++){const $e=$[Se],mt=w[Se];if($e.startsWith(":"))ce[$e.substring(1)]=mt;else if($e!==mt.path)return null}return{consumed:w.slice(0,$.length),posParams:ce}}function qt(w,j){const N=w?Fn(w):void 0,$=j?Fn(j):void 0;if(!N||!$||N.length!=$.length)return!1;let ce;for(let Se=0;Se<N.length;Se++)if(ce=N[Se],!Nn(w[ce],j[ce]))return!1;return!0}function Fn(w){return[...Object.keys(w),...Object.getOwnPropertySymbols(w)]}function Nn(w,j){if(Array.isArray(w)&&Array.isArray(j)){if(w.length!==j.length)return!1;const N=[...w].sort(),$=[...j].sort();return N.every((ce,Se)=>$[Se]===ce)}return w===j}function Ht(w){return w.length>0?w[w.length-1]:null}function jt(w){return(0,g.A)(w)?w:(0,r.jNT)(w)?(0,R.H)(Promise.resolve(w)):(0,V.of)(w)}const yn={exact:function lr(w,j,N){if(!Jn(w.segments,j.segments)||!bn(w.segments,j.segments,N)||w.numberOfChildren!==j.numberOfChildren)return!1;for(const $ in j.children)if(!w.children[$]||!lr(w.children[$],j.children[$],N))return!1;return!0},subset:hn},Ln={exact:function Fr(w,j){return qt(w,j)},subset:function bi(w,j){return Object.keys(j).length<=Object.keys(w).length&&Object.keys(j).every(N=>Nn(w[N],j[N]))},ignored:()=>!0};function mn(w,j,N){return yn[N.paths](w.root,j.root,N.matrixParams)&&Ln[N.queryParams](w.queryParams,j.queryParams)&&!("exact"===N.fragment&&w.fragment!==j.fragment)}function hn(w,j,N){return yr(w,j,j.segments,N)}function yr(w,j,N,$){if(w.segments.length>N.length){const ce=w.segments.slice(0,N.length);return!(!Jn(ce,N)||j.hasChildren()||!bn(ce,N,$))}if(w.segments.length===N.length){if(!Jn(w.segments,N)||!bn(w.segments,N,$))return!1;for(const ce in j.children)if(!w.children[ce]||!hn(w.children[ce],j.children[ce],$))return!1;return!0}{const ce=N.slice(0,w.segments.length),Se=N.slice(w.segments.length);return!!(Jn(w.segments,ce)&&bn(w.segments,ce,$)&&w.children[Xe])&&yr(w.children[Xe],j,Se,$)}}function bn(w,j,N){return j.every(($,ce)=>Ln[N](w[ce].parameters,$.parameters))}class Tn{constructor(j=new _n([],{}),N={},$=null){this.root=j,this.queryParams=N,this.fragment=$}get queryParamMap(){return this._queryParamMap??=vt(this.queryParams),this._queryParamMap}toString(){return ot.serialize(this)}}class _n{constructor(j,N){this.segments=j,this.children=N,this.parent=null,Object.values(N).forEach($=>$.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return He(this)}}class Bn{constructor(j,N){this.path=j,this.parameters=N}get parameterMap(){return this._parameterMap??=vt(this.parameters),this._parameterMap}toString(){return ir(this)}}function Jn(w,j){return w.length===j.length&&w.every((N,$)=>N.path===j[$].path)}let Ar=(()=>{class w{static#e=this.\u0275fac=function($){return new($||w)};static#t=this.\u0275prov=r.jDH({token:w,factory:()=>new qe,providedIn:"root"})}return w})();class qe{parse(j){const N=new _r(j);return new Tn(N.parseRootSegment(),N.parseQueryParams(),N.parseFragment())}serialize(j){const N=`/${Ye(j.root,!0)}`,$=function Pn(w){const j=Object.entries(w).map(([N,$])=>Array.isArray($)?$.map(ce=>`${Lt(N)}=${Lt(ce)}`).join("&"):`${Lt(N)}=${Lt($)}`).filter(N=>N);return j.length?`?${j.join("&")}`:""}(j.queryParams);return`${N}${$}${"string"==typeof j.fragment?`#${function Zt(w){return encodeURI(w)}(j.fragment)}`:""}`}}const ot=new qe;function He(w){return w.segments.map(j=>ir(j)).join("/")}function Ye(w,j){if(!w.hasChildren())return He(w);if(j){const N=w.children[Xe]?Ye(w.children[Xe],!1):"",$=[];return Object.entries(w.children).forEach(([ce,Se])=>{ce!==Xe&&$.push(`${ce}:${Ye(Se,!1)}`)}),$.length>0?`${N}(${$.join("//")})`:N}{const N=function Rr(w,j){let N=[];return Object.entries(w.children).forEach(([$,ce])=>{$===Xe&&(N=N.concat(j(ce,$)))}),Object.entries(w.children).forEach(([$,ce])=>{$!==Xe&&(N=N.concat(j(ce,$)))}),N}(w,($,ce)=>ce===Xe?[Ye(w.children[Xe],!1)]:[`${ce}:${Ye($,!1)}`]);return 1===Object.keys(w.children).length&&null!=w.children[Xe]?`${He(w)}/${N[0]}`:`${He(w)}/(${N.join("//")})`}}function bt(w){return encodeURIComponent(w).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lt(w){return bt(w).replace(/%3B/gi,";")}function Dn(w){return bt(w).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function In(w){return decodeURIComponent(w)}function nr(w){return In(w.replace(/\+/g,"%20"))}function ir(w){return`${Dn(w.path)}${function fr(w){return Object.entries(w).map(([j,N])=>`;${Dn(j)}=${Dn(N)}`).join("")}(w.parameters)}`}const Ni=/^[^\/()?;#]+/;function Bi(w){const j=w.match(Ni);return j?j[0]:""}const pr=/^[^\/()?;=#]+/,So=/^[^=?&#]+/,ui=/^[^&#]+/;class _r{constructor(j){this.url=j,this.remaining=j}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new _n([],{}):new _n([],this.parseChildren())}parseQueryParams(){const j={};if(this.consumeOptional("?"))do{this.parseQueryParam(j)}while(this.consumeOptional("&"));return j}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const j=[];for(this.peekStartsWith("(")||j.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),j.push(this.parseSegment());let N={};this.peekStartsWith("/(")&&(this.capture("/"),N=this.parseParens(!0));let $={};return this.peekStartsWith("(")&&($=this.parseParens(!1)),(j.length>0||Object.keys(N).length>0)&&($[Xe]=new _n(j,N)),$}parseSegment(){const j=Bi(this.remaining);if(""===j&&this.peekStartsWith(";"))throw new r.wOt(4009,!1);return this.capture(j),new Bn(In(j),this.parseMatrixParams())}parseMatrixParams(){const j={};for(;this.consumeOptional(";");)this.parseParam(j);return j}parseParam(j){const N=function on(w){const j=w.match(pr);return j?j[0]:""}(this.remaining);if(!N)return;this.capture(N);let $="";if(this.consumeOptional("=")){const ce=Bi(this.remaining);ce&&($=ce,this.capture($))}j[In(N)]=In($)}parseQueryParam(j){const N=function qr(w){const j=w.match(So);return j?j[0]:""}(this.remaining);if(!N)return;this.capture(N);let $="";if(this.consumeOptional("=")){const $e=function Qr(w){const j=w.match(ui);return j?j[0]:""}(this.remaining);$e&&($=$e,this.capture($))}const ce=nr(N),Se=nr($);if(j.hasOwnProperty(ce)){let $e=j[ce];Array.isArray($e)||($e=[$e],j[ce]=$e),$e.push(Se)}else j[ce]=Se}parseParens(j){const N={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const $=Bi(this.remaining),ce=this.remaining[$.length];if("/"!==ce&&")"!==ce&&";"!==ce)throw new r.wOt(4010,!1);let Se;$.indexOf(":")>-1?(Se=$.slice(0,$.indexOf(":")),this.capture(Se),this.capture(":")):j&&(Se=Xe);const $e=this.parseChildren();N[Se]=1===Object.keys($e).length?$e[Xe]:new _n([],$e),this.consumeOptional("//")}return N}peekStartsWith(j){return this.remaining.startsWith(j)}consumeOptional(j){return!!this.peekStartsWith(j)&&(this.remaining=this.remaining.substring(j.length),!0)}capture(j){if(!this.consumeOptional(j))throw new r.wOt(4011,!1)}}function vn(w){return w.segments.length>0?new _n([],{[Xe]:w}):w}function di(w){const j={};for(const[$,ce]of Object.entries(w.children)){const Se=di(ce);if($===Xe&&0===Se.segments.length&&Se.hasChildren())for(const[$e,mt]of Object.entries(Se.children))j[$e]=mt;else(Se.segments.length>0||Se.hasChildren())&&(j[$]=Se)}return function dr(w){if(1===w.numberOfChildren&&w.children[Xe]){const j=w.children[Xe];return new _n(w.segments.concat(j.segments),j.children)}return w}(new _n(w.segments,j))}function gr(w){return w instanceof Tn}function wr(w){let j;const ce=vn(function N(Se){const $e={};for(const dt of Se.children){const Qt=N(dt);$e[dt.outlet]=Qt}const mt=new _n(Se.url,$e);return Se===w&&(j=mt),mt}(w.root));return j??ce}function Yr(w,j,N,$){let ce=w;for(;ce.parent;)ce=ce.parent;if(0===j.length)return Ke(ce,ce,ce,N,$);const Se=function yt(w){if("string"==typeof w[0]&&1===w.length&&"/"===w[0])return new Tt(!0,0,w);let j=0,N=!1;const $=w.reduce((ce,Se,$e)=>{if("object"==typeof Se&&null!=Se){if(Se.outlets){const mt={};return Object.entries(Se.outlets).forEach(([dt,Qt])=>{mt[dt]="string"==typeof Qt?Qt.split("/"):Qt}),[...ce,{outlets:mt}]}if(Se.segmentPath)return[...ce,Se.segmentPath]}return"string"!=typeof Se?[...ce,Se]:0===$e?(Se.split("/").forEach((mt,dt)=>{0==dt&&"."===mt||(0==dt&&""===mt?N=!0:".."===mt?j++:""!=mt&&ce.push(mt))}),ce):[...ce,Se]},[]);return new Tt(N,j,$)}(j);if(Se.toRoot())return Ke(ce,ce,new _n([],{}),N,$);const $e=function Ft(w,j,N){if(w.isAbsolute)return new xt(j,!0,0);if(!N)return new xt(j,!1,NaN);if(null===N.parent)return new xt(N,!0,0);const $=$n(w.commands[0])?0:1;return function Be(w,j,N){let $=w,ce=j,Se=N;for(;Se>ce;){if(Se-=ce,$=$.parent,!$)throw new r.wOt(4005,!1);ce=$.segments.length}return new xt($,!1,ce-Se)}(N,N.segments.length-1+$,w.numberOfDoubleDots)}(Se,ce,w),mt=$e.processChildren?Me($e.segmentGroup,$e.index,Se.commands):Z($e.segmentGroup,$e.index,Se.commands);return Ke(ce,$e.segmentGroup,mt,N,$)}function $n(w){return"object"==typeof w&&null!=w&&!w.outlets&&!w.segmentPath}function Oe(w){return"object"==typeof w&&null!=w&&w.outlets}function Ke(w,j,N,$,ce){let $e,Se={};$&&Object.entries($).forEach(([dt,Qt])=>{Se[dt]=Array.isArray(Qt)?Qt.map(Rn=>`${Rn}`):`${Qt}`}),$e=w===j?N:ze(w,j,N);const mt=vn(di($e));return new Tn(mt,Se,ce)}function ze(w,j,N){const $={};return Object.entries(w.children).forEach(([ce,Se])=>{$[ce]=Se===j?N:ze(Se,j,N)}),new _n(w.segments,$)}class Tt{constructor(j,N,$){if(this.isAbsolute=j,this.numberOfDoubleDots=N,this.commands=$,j&&$.length>0&&$n($[0]))throw new r.wOt(4003,!1);const ce=$.find(Oe);if(ce&&ce!==Ht($))throw new r.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class xt{constructor(j,N,$){this.segmentGroup=j,this.processChildren=N,this.index=$}}function Z(w,j,N){if(w??=new _n([],{}),0===w.segments.length&&w.hasChildren())return Me(w,j,N);const $=function je(w,j,N){let $=0,ce=j;const Se={match:!1,pathIndex:0,commandIndex:0};for(;ce<w.segments.length;){if($>=N.length)return Se;const $e=w.segments[ce],mt=N[$];if(Oe(mt))break;const dt=`${mt}`,Qt=$<N.length-1?N[$+1]:null;if(ce>0&&void 0===dt)break;if(dt&&Qt&&"object"==typeof Qt&&void 0===Qt.outlets){if(!an(dt,Qt,$e))return Se;$+=2}else{if(!an(dt,{},$e))return Se;$++}ce++}return{match:!0,pathIndex:ce,commandIndex:$}}(w,j,N),ce=N.slice($.commandIndex);if($.match&&$.pathIndex<w.segments.length){const Se=new _n(w.segments.slice(0,$.pathIndex),{});return Se.children[Xe]=new _n(w.segments.slice($.pathIndex),w.children),Me(Se,0,ce)}return $.match&&0===ce.length?new _n(w.segments,{}):$.match&&!w.hasChildren()?pt(w,j,N):$.match?Me(w,0,ce):pt(w,j,N)}function Me(w,j,N){if(0===N.length)return new _n(w.segments,{});{const $=function xe(w){return Oe(w[0])?w[0].outlets:{[Xe]:w}}(N),ce={};if(Object.keys($).some(Se=>Se!==Xe)&&w.children[Xe]&&1===w.numberOfChildren&&0===w.children[Xe].segments.length){const Se=Me(w.children[Xe],j,N);return new _n(w.segments,Se.children)}return Object.entries($).forEach(([Se,$e])=>{"string"==typeof $e&&($e=[$e]),null!==$e&&(ce[Se]=Z(w.children[Se],j,$e))}),Object.entries(w.children).forEach(([Se,$e])=>{void 0===$[Se]&&(ce[Se]=$e)}),new _n(w.segments,ce)}}function pt(w,j,N){const $=w.segments.slice(0,j);let ce=0;for(;ce<N.length;){const Se=N[ce];if(Oe(Se)){const dt=Rt(Se.outlets);return new _n($,dt)}if(0===ce&&$n(N[0])){$.push(new Bn(w.segments[j].path,nn(N[0]))),ce++;continue}const $e=Oe(Se)?Se.outlets[Xe]:`${Se}`,mt=ce<N.length-1?N[ce+1]:null;$e&&mt&&$n(mt)?($.push(new Bn($e,nn(mt))),ce+=2):($.push(new Bn($e,{})),ce++)}return new _n($,{})}function Rt(w){const j={};return Object.entries(w).forEach(([N,$])=>{"string"==typeof $&&($=[$]),null!==$&&(j[N]=pt(new _n([],{}),0,$))}),j}function nn(w){const j={};return Object.entries(w).forEach(([N,$])=>j[N]=`${$}`),j}function an(w,j,N){return w==N.path&&qt(j,N.parameters)}const en="imperative";var rn=function(w){return w[w.NavigationStart=0]="NavigationStart",w[w.NavigationEnd=1]="NavigationEnd",w[w.NavigationCancel=2]="NavigationCancel",w[w.NavigationError=3]="NavigationError",w[w.RoutesRecognized=4]="RoutesRecognized",w[w.ResolveStart=5]="ResolveStart",w[w.ResolveEnd=6]="ResolveEnd",w[w.GuardsCheckStart=7]="GuardsCheckStart",w[w.GuardsCheckEnd=8]="GuardsCheckEnd",w[w.RouteConfigLoadStart=9]="RouteConfigLoadStart",w[w.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",w[w.ChildActivationStart=11]="ChildActivationStart",w[w.ChildActivationEnd=12]="ChildActivationEnd",w[w.ActivationStart=13]="ActivationStart",w[w.ActivationEnd=14]="ActivationEnd",w[w.Scroll=15]="Scroll",w[w.NavigationSkipped=16]="NavigationSkipped",w}(rn||{});class Vn{constructor(j,N){this.id=j,this.url=N}}class En extends Vn{constructor(j,N,$="imperative",ce=null){super(j,N),this.type=rn.NavigationStart,this.navigationTrigger=$,this.restoredState=ce}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Wn extends Vn{constructor(j,N,$){super(j,N),this.urlAfterRedirects=$,this.type=rn.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var or=function(w){return w[w.Redirect=0]="Redirect",w[w.SupersededByNewNavigation=1]="SupersededByNewNavigation",w[w.NoDataFromResolver=2]="NoDataFromResolver",w[w.GuardRejected=3]="GuardRejected",w}(or||{}),br=function(w){return w[w.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",w[w.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",w}(br||{});class un extends Vn{constructor(j,N,$,ce){super(j,N),this.reason=$,this.code=ce,this.type=rn.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class nt extends Vn{constructor(j,N,$,ce){super(j,N),this.reason=$,this.code=ce,this.type=rn.NavigationSkipped}}class c extends Vn{constructor(j,N,$,ce){super(j,N),this.error=$,this.target=ce,this.type=rn.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class u extends Vn{constructor(j,N,$,ce){super(j,N),this.urlAfterRedirects=$,this.state=ce,this.type=rn.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class T extends Vn{constructor(j,N,$,ce){super(j,N),this.urlAfterRedirects=$,this.state=ce,this.type=rn.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class X extends Vn{constructor(j,N,$,ce,Se){super(j,N),this.urlAfterRedirects=$,this.state=ce,this.shouldActivate=Se,this.type=rn.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class he extends Vn{constructor(j,N,$,ce){super(j,N),this.urlAfterRedirects=$,this.state=ce,this.type=rn.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ce extends Vn{constructor(j,N,$,ce){super(j,N),this.urlAfterRedirects=$,this.state=ce,this.type=rn.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ke{constructor(j){this.route=j,this.type=rn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ht{constructor(j){this.route=j,this.type=rn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class At{constructor(j){this.snapshot=j,this.type=rn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Et{constructor(j){this.snapshot=j,this.type=rn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kt{constructor(j){this.snapshot=j,this.type=rn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pn{constructor(j){this.snapshot=j,this.type=rn.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class An{constructor(j,N,$){this.routerEvent=j,this.position=N,this.anchor=$,this.type=rn.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Qn{}class Zn{constructor(j){this.url=j}}class hi{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ci,this.attachRef=null}}let Ci=(()=>{class w{constructor(){this.contexts=new Map}onChildOutletCreated(N,$){const ce=this.getOrCreateContext(N);ce.outlet=$,this.contexts.set(N,ce)}onChildOutletDestroyed(N){const $=this.getContext(N);$&&($.outlet=null,$.attachRef=null)}onOutletDeactivated(){const N=this.contexts;return this.contexts=new Map,N}onOutletReAttached(N){this.contexts=N}getOrCreateContext(N){let $=this.getContext(N);return $||($=new hi,this.contexts.set(N,$)),$}getContext(N){return this.contexts.get(N)||null}static#e=this.\u0275fac=function($){return new($||w)};static#t=this.\u0275prov=r.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})();class Ri{constructor(j){this._root=j}get root(){return this._root.value}parent(j){const N=this.pathFromRoot(j);return N.length>1?N[N.length-2]:null}children(j){const N=Pi(j,this._root);return N?N.children.map($=>$.value):[]}firstChild(j){const N=Pi(j,this._root);return N&&N.children.length>0?N.children[0].value:null}siblings(j){const N=zr(j,this._root);return N.length<2?[]:N[N.length-2].children.map(ce=>ce.value).filter(ce=>ce!==j)}pathFromRoot(j){return zr(j,this._root).map(N=>N.value)}}function Pi(w,j){if(w===j.value)return j;for(const N of j.children){const $=Pi(w,N);if($)return $}return null}function zr(w,j){if(w===j.value)return[j];for(const N of j.children){const $=zr(w,N);if($.length)return $.unshift(j),$}return[]}class fi{constructor(j,N){this.value=j,this.children=N}toString(){return`TreeNode(${this.value})`}}function Xr(w){const j={};return w&&w.children.forEach(N=>j[N.value.outlet]=N),j}class si extends Ri{constructor(j,N){super(j),this.snapshot=N,ji(this,j)}toString(){return this.snapshot.toString()}}function Ir(w){const j=function Jr(w){const Se=new Ao([],{},{},"",{},Xe,w,null,{});return new Hi("",new fi(Se,[]))}(w),N=new U.t([new Bn("",{})]),$=new U.t({}),ce=new U.t({}),Se=new U.t({}),$e=new U.t(""),mt=new ln(N,$,Se,$e,ce,Xe,w,j.root);return mt.snapshot=j.root,new si(new fi(mt,[]),j)}class ln{constructor(j,N,$,ce,Se,$e,mt,dt){this.urlSubject=j,this.paramsSubject=N,this.queryParamsSubject=$,this.fragmentSubject=ce,this.dataSubject=Se,this.outlet=$e,this.component=mt,this._futureSnapshot=dt,this.title=this.dataSubject?.pipe((0,we.T)(Qt=>Qt[wt]))??(0,V.of)(void 0),this.url=j,this.params=N,this.queryParams=$,this.fragment=ce,this.data=Se}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,we.T)(j=>vt(j))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,we.T)(j=>vt(j))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function no(w,j,N="emptyOnly"){let $;const{routeConfig:ce}=w;return $=null===j||"always"!==N&&""!==ce?.path&&(j.component||j.routeConfig?.loadComponent)?{params:{...w.params},data:{...w.data},resolve:{...w.data,...w._resolvedData??{}}}:{params:{...j.params,...w.params},data:{...j.data,...w.data},resolve:{...w.data,...j.data,...ce?.data,...w._resolvedData}},ce&&Zr(ce)&&($.resolve[wt]=ce.title),$}class Ao{get title(){return this.data?.[wt]}constructor(j,N,$,ce,Se,$e,mt,dt,Qt){this.url=j,this.params=N,this.queryParams=$,this.fragment=ce,this.data=Se,this.outlet=$e,this.component=mt,this.routeConfig=dt,this._resolve=Qt}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=vt(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=vt(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map($=>$.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Hi extends Ri{constructor(j,N){super(N),this.url=j,ji(this,N)}toString(){return wo(this._root)}}function ji(w,j){j.value._routerState=w,j.children.forEach(N=>ji(w,N))}function wo(w){const j=w.children.length>0?` { ${w.children.map(wo).join(", ")} } `:"";return`${w.value}${j}`}function Qi(w){if(w.snapshot){const j=w.snapshot,N=w._futureSnapshot;w.snapshot=N,qt(j.queryParams,N.queryParams)||w.queryParamsSubject.next(N.queryParams),j.fragment!==N.fragment&&w.fragmentSubject.next(N.fragment),qt(j.params,N.params)||w.paramsSubject.next(N.params),function tn(w,j){if(w.length!==j.length)return!1;for(let N=0;N<w.length;++N)if(!qt(w[N],j[N]))return!1;return!0}(j.url,N.url)||w.urlSubject.next(N.url),qt(j.data,N.data)||w.dataSubject.next(N.data)}else w.snapshot=w._futureSnapshot,w.dataSubject.next(w._futureSnapshot.data)}function ko(w,j){const N=qt(w.params,j.params)&&function jn(w,j){return Jn(w,j)&&w.every((N,$)=>qt(N.parameters,j[$].parameters))}(w.url,j.url);return N&&!(!w.parent!=!j.parent)&&(!w.parent||ko(w.parent,j.parent))}function Zr(w){return"string"==typeof w.title||null===w.title}let xo=(()=>{class w{constructor(){this.activated=null,this._activatedRoute=null,this.name=Xe,this.activateEvents=new r.bkB,this.deactivateEvents=new r.bkB,this.attachEvents=new r.bkB,this.detachEvents=new r.bkB,this.parentContexts=(0,r.WQX)(Ci),this.location=(0,r.WQX)(r.c1b),this.changeDetector=(0,r.WQX)(r.gRc),this.environmentInjector=(0,r.WQX)(r.uvJ),this.inputBinder=(0,r.WQX)(ei,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(N){if(N.name){const{firstChange:$,previousValue:ce}=N.name;if($)return;this.isTrackedInParentContexts(ce)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(ce)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(N){return this.parentContexts.getContext(N)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const N=this.parentContexts.getContext(this.name);N?.route&&(N.attachRef?this.attach(N.attachRef,N.route):this.activateWith(N.route,N.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new r.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new r.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new r.wOt(4012,!1);this.location.detach();const N=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(N.instance),N}attach(N,$){this.activated=N,this._activatedRoute=$,this.location.insert(N.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(N.instance)}deactivate(){if(this.activated){const N=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(N)}}activateWith(N,$){if(this.isActivated)throw new r.wOt(4013,!1);this._activatedRoute=N;const ce=this.location,$e=N.snapshot.component,mt=this.parentContexts.getOrCreateContext(this.name).children,dt=new Do(N,mt,ce.injector);this.activated=ce.createComponent($e,{index:ce.length,injector:dt,environmentInjector:$??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function($){return new($||w)};static#t=this.\u0275dir=r.FsC({type:w,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[r.OA$]})}return w})();class Do{constructor(j,N,$){this.route=j,this.childContexts=N,this.parent=$,this.__ngOutletInjector=!0}get(j,N){return j===ln?this.route:j===Ci?this.childContexts:this.parent.get(j,N)}}const ei=new r.nKC("");let pi=(()=>{class w{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(N){this.unsubscribeFromRouteData(N),this.subscribeToRouteData(N)}unsubscribeFromRouteData(N){this.outletDataSubscriptions.get(N)?.unsubscribe(),this.outletDataSubscriptions.delete(N)}subscribeToRouteData(N){const{activatedRoute:$}=N,ce=x([$.queryParams,$.params,$.data]).pipe((0,Ze.n)(([Se,$e,mt],dt)=>(mt={...Se,...$e,...mt},0===dt?(0,V.of)(mt):Promise.resolve(mt)))).subscribe(Se=>{if(!N.isActivated||!N.activatedComponentRef||N.activatedRoute!==$||null===$.component)return void this.unsubscribeFromRouteData(N);const $e=(0,r.HJs)($.component);if($e)for(const{templateName:mt}of $e.inputs)N.activatedComponentRef.setInput(mt,Se[mt]);else this.unsubscribeFromRouteData(N)});this.outletDataSubscriptions.set(N,ce)}static#e=this.\u0275fac=function($){return new($||w)};static#t=this.\u0275prov=r.jDH({token:w,factory:w.\u0275fac})}return w})();function Lr(w,j,N){if(N&&w.shouldReuseRoute(j.value,N.value.snapshot)){const $=N.value;$._futureSnapshot=j.value;const ce=function gi(w,j,N){return j.children.map($=>{for(const ce of N.children)if(w.shouldReuseRoute($.value,ce.value.snapshot))return Lr(w,$,ce);return Lr(w,$)})}(w,j,N);return new fi($,ce)}{if(w.shouldAttach(j.value)){const Se=w.retrieve(j.value);if(null!==Se){const $e=Se.route;return $e.value._futureSnapshot=j.value,$e.children=j.children.map(mt=>Lr(w,mt)),$e}}const $=function $o(w){return new ln(new U.t(w.url),new U.t(w.params),new U.t(w.queryParams),new U.t(w.fragment),new U.t(w.data),w.outlet,w.component,w)}(j.value),ce=j.children.map(Se=>Lr(w,Se));return new fi($,ce)}}const ro="ngNavigationCancelingError";function Si(w,j){const{redirectTo:N,navigationBehaviorOptions:$}=gr(j)?{redirectTo:j,navigationBehaviorOptions:void 0}:j,ce=io(!1,or.Redirect);return ce.url=N,ce.navigationBehaviorOptions=$,ce}function io(w,j){const N=new Error(`NavigationCancelingError: ${w||""}`);return N[ro]=!0,N.cancellationCode=j,N}function Fo(w){return!!w&&w[ro]}let Io=(()=>{class w{static#e=this.\u0275fac=function($){return new($||w)};static#t=this.\u0275cmp=r.VBU({type:w,selectors:[["ng-component"]],standalone:!0,features:[r.aNF],decls:1,vars:0,template:function($,ce){1&$&&r.nrm(0,"router-outlet")},dependencies:[xo],encapsulation:2})}return w})();function Ho(w){const j=w.children&&w.children.map(Ho),N=j?{...w,children:j}:{...w};return!N.component&&!N.loadComponent&&(j||N.loadChildren)&&N.outlet&&N.outlet!==Xe&&(N.component=Io),N}function wi(w){return w.outlet||Xe}function Di(w){if(!w)return null;if(w.routeConfig?._injector)return w.routeConfig._injector;for(let j=w.parent;j;j=j.parent){const N=j.routeConfig;if(N?._loadedInjector)return N._loadedInjector;if(N?._injector)return N._injector}return null}class Ko{constructor(j,N,$,ce,Se){this.routeReuseStrategy=j,this.futureState=N,this.currState=$,this.forwardEvent=ce,this.inputBindingEnabled=Se}activate(j){const N=this.futureState._root,$=this.currState?this.currState._root:null;this.deactivateChildRoutes(N,$,j),Qi(this.futureState.root),this.activateChildRoutes(N,$,j)}deactivateChildRoutes(j,N,$){const ce=Xr(N);j.children.forEach(Se=>{const $e=Se.value.outlet;this.deactivateRoutes(Se,ce[$e],$),delete ce[$e]}),Object.values(ce).forEach(Se=>{this.deactivateRouteAndItsChildren(Se,$)})}deactivateRoutes(j,N,$){const ce=j.value,Se=N?N.value:null;if(ce===Se)if(ce.component){const $e=$.getContext(ce.outlet);$e&&this.deactivateChildRoutes(j,N,$e.children)}else this.deactivateChildRoutes(j,N,$);else Se&&this.deactivateRouteAndItsChildren(N,$)}deactivateRouteAndItsChildren(j,N){j.value.component&&this.routeReuseStrategy.shouldDetach(j.value.snapshot)?this.detachAndStoreRouteSubtree(j,N):this.deactivateRouteAndOutlet(j,N)}detachAndStoreRouteSubtree(j,N){const $=N.getContext(j.value.outlet),ce=$&&j.value.component?$.children:N,Se=Xr(j);for(const $e of Object.values(Se))this.deactivateRouteAndItsChildren($e,ce);if($&&$.outlet){const $e=$.outlet.detach(),mt=$.children.onOutletDeactivated();this.routeReuseStrategy.store(j.value.snapshot,{componentRef:$e,route:j,contexts:mt})}}deactivateRouteAndOutlet(j,N){const $=N.getContext(j.value.outlet),ce=$&&j.value.component?$.children:N,Se=Xr(j);for(const $e of Object.values(Se))this.deactivateRouteAndItsChildren($e,ce);$&&($.outlet&&($.outlet.deactivate(),$.children.onOutletDeactivated()),$.attachRef=null,$.route=null)}activateChildRoutes(j,N,$){const ce=Xr(N);j.children.forEach(Se=>{this.activateRoutes(Se,ce[Se.value.outlet],$),this.forwardEvent(new pn(Se.value.snapshot))}),j.children.length&&this.forwardEvent(new Et(j.value.snapshot))}activateRoutes(j,N,$){const ce=j.value,Se=N?N.value:null;if(Qi(ce),ce===Se)if(ce.component){const $e=$.getOrCreateContext(ce.outlet);this.activateChildRoutes(j,N,$e.children)}else this.activateChildRoutes(j,N,$);else if(ce.component){const $e=$.getOrCreateContext(ce.outlet);if(this.routeReuseStrategy.shouldAttach(ce.snapshot)){const mt=this.routeReuseStrategy.retrieve(ce.snapshot);this.routeReuseStrategy.store(ce.snapshot,null),$e.children.onOutletReAttached(mt.contexts),$e.attachRef=mt.componentRef,$e.route=mt.route.value,$e.outlet&&$e.outlet.attach(mt.componentRef,mt.route.value),Qi(mt.route.value),this.activateChildRoutes(j,null,$e.children)}else{const mt=Di(ce.snapshot);$e.attachRef=null,$e.route=ce,$e.injector=mt,$e.outlet&&$e.outlet.activateWith(ce,$e.injector),this.activateChildRoutes(j,null,$e.children)}}else this.activateChildRoutes(j,null,$)}}class Yi{constructor(j){this.path=j,this.route=this.path[this.path.length-1]}}class so{constructor(j,N){this.component=j,this.route=N}}function zo(w,j,N){const $=w._root;return po($,j?j._root:null,N,[$.value])}function Mo(w,j){const N=Symbol(),$=j.get(w,N);return $===N?"function"!=typeof w||(0,r.LfX)(w)?j.get(w):w:$}function po(w,j,N,$,ce={canDeactivateChecks:[],canActivateChecks:[]}){const Se=Xr(j);return w.children.forEach($e=>{(function De(w,j,N,$,ce={canDeactivateChecks:[],canActivateChecks:[]}){const Se=w.value,$e=j?j.value:null,mt=N?N.getContext(w.value.outlet):null;if($e&&Se.routeConfig===$e.routeConfig){const dt=function d(w,j,N){if("function"==typeof N)return N(w,j);switch(N){case"pathParamsChange":return!Jn(w.url,j.url);case"pathParamsOrQueryParamsChange":return!Jn(w.url,j.url)||!qt(w.queryParams,j.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ko(w,j)||!qt(w.queryParams,j.queryParams);default:return!ko(w,j)}}($e,Se,Se.routeConfig.runGuardsAndResolvers);dt?ce.canActivateChecks.push(new Yi($)):(Se.data=$e.data,Se._resolvedData=$e._resolvedData),po(w,j,Se.component?mt?mt.children:null:N,$,ce),dt&&mt&&mt.outlet&&mt.outlet.isActivated&&ce.canDeactivateChecks.push(new so(mt.outlet.component,$e))}else $e&&p(j,mt,ce),ce.canActivateChecks.push(new Yi($)),po(w,null,Se.component?mt?mt.children:null:N,$,ce)})($e,Se[$e.value.outlet],N,$.concat([$e.value]),ce),delete Se[$e.value.outlet]}),Object.entries(Se).forEach(([$e,mt])=>p(mt,N.getContext($e),ce)),ce}function p(w,j,N){const $=Xr(w),ce=w.value;Object.entries($).forEach(([Se,$e])=>{p($e,ce.component?j?j.children.getContext(Se):null:j,N)}),N.canDeactivateChecks.push(new so(ce.component&&j&&j.outlet&&j.outlet.isActivated?j.outlet.component:null,ce))}function v(w){return"function"==typeof w}function et(w){return w instanceof D.G||"EmptyError"===w?.name}const gt=Symbol("INITIAL_VALUE");function Vt(){return(0,Ze.n)(w=>x(w.map(j=>j.pipe((0,Ue.s)(1),(0,Le.Z)(gt)))).pipe((0,we.T)(j=>{for(const N of j)if(!0!==N){if(N===gt)return gt;if(!1===N||N instanceof Tn)return N}return!0}),(0,_e.p)(j=>j!==gt),(0,Ue.s)(1)))}function hr(w){return(0,ie.F)((0,Pe.M)(j=>{if(gr(j))throw Si(0,j)}),(0,we.T)(j=>!0===j))}class Cr{constructor(j){this.segmentGroup=j||null}}class Gr extends Error{constructor(j){super(),this.urlTree=j}}function go(w){return se(new Cr(w))}class aa{constructor(j,N){this.urlSerializer=j,this.urlTree=N}lineralizeSegments(j,N){let $=[],ce=N.root;for(;;){if($=$.concat(ce.segments),0===ce.numberOfChildren)return(0,V.of)($);if(ce.numberOfChildren>1||!ce.children[Xe])return se(new r.wOt(4e3,!1));ce=ce.children[Xe]}}applyRedirectCommands(j,N,$){const ce=this.applyRedirectCreateUrlTree(N,this.urlSerializer.parse(N),j,$);if(N.startsWith("/"))throw new Gr(ce);return ce}applyRedirectCreateUrlTree(j,N,$,ce){const Se=this.createSegmentGroup(j,N.root,$,ce);return new Tn(Se,this.createQueryParams(N.queryParams,this.urlTree.queryParams),N.fragment)}createQueryParams(j,N){const $={};return Object.entries(j).forEach(([ce,Se])=>{if("string"==typeof Se&&Se.startsWith(":")){const mt=Se.substring(1);$[ce]=N[mt]}else $[ce]=Se}),$}createSegmentGroup(j,N,$,ce){const Se=this.createSegments(j,N.segments,$,ce);let $e={};return Object.entries(N.children).forEach(([mt,dt])=>{$e[mt]=this.createSegmentGroup(j,dt,$,ce)}),new _n(Se,$e)}createSegments(j,N,$,ce){return N.map(Se=>Se.path.startsWith(":")?this.findPosParam(j,Se,ce):this.findOrReturn(Se,$))}findPosParam(j,N,$){const ce=$[N.path.substring(1)];if(!ce)throw new r.wOt(4001,!1);return ce}findOrReturn(j,N){let $=0;for(const ce of N){if(ce.path===j.path)return N.splice($),ce;$++}return j}}const es={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function cn(w,j,N,$,ce){const Se=gn(w,j,N);return Se.matched?($=function ai(w,j){return w.providers&&!w._injector&&(w._injector=(0,r.Ol2)(w.providers,j,`Route: ${w.path}`)),w._injector??j}(j,$),function er(w,j,N,$){const ce=j.canMatch;if(!ce||0===ce.length)return(0,V.of)(!0);const Se=ce.map($e=>{const mt=Mo($e,w);return jt(function Ie(w){return w&&v(w.canMatch)}(mt)?mt.canMatch(j,N):(0,r.N4e)(w,()=>mt(j,N)))});return(0,V.of)(Se).pipe(Vt(),hr())}($,j,N).pipe((0,we.T)($e=>!0===$e?Se:{...es}))):(0,V.of)(Se)}function gn(w,j,N){if("**"===j.path)return function Cn(w){return{matched:!0,parameters:w.length>0?Ht(w).parameters:{},consumedSegments:w,remainingSegments:[],positionalParamSegments:{}}}(N);if(""===j.path)return"full"===j.pathMatch&&(w.hasChildren()||N.length>0)?{...es}:{matched:!0,consumedSegments:[],remainingSegments:N,parameters:{},positionalParamSegments:{}};const ce=(j.matcher||$t)(N,w,j);if(!ce)return{...es};const Se={};Object.entries(ce.posParams??{}).forEach(([mt,dt])=>{Se[mt]=dt.path});const $e=ce.consumed.length>0?{...Se,...ce.consumed[ce.consumed.length-1].parameters}:Se;return{matched:!0,consumedSegments:ce.consumed,remainingSegments:N.slice(ce.consumed.length),parameters:$e,positionalParamSegments:ce.posParams??{}}}function zn(w,j,N,$){return N.length>0&&function Ji(w,j,N){return N.some($=>Mr(w,j,$)&&wi($)!==Xe)}(w,N,$)?{segmentGroup:new _n(j,vo($,new _n(N,w.children))),slicedSegments:[]}:0===N.length&&function Oo(w,j,N){return N.some($=>Mr(w,j,$))}(w,N,$)?{segmentGroup:new _n(w.segments,Ii(w,N,$,w.children)),slicedSegments:N}:{segmentGroup:new _n(w.segments,w.children),slicedSegments:N}}function Ii(w,j,N,$){const ce={};for(const Se of N)if(Mr(w,j,Se)&&!$[wi(Se)]){const $e=new _n([],{});ce[wi(Se)]=$e}return{...$,...ce}}function vo(w,j){const N={};N[Xe]=j;for(const $ of w)if(""===$.path&&wi($)!==Xe){const ce=new _n([],{});N[wi($)]=ce}return N}function Mr(w,j,N){return(!(w.hasChildren()||j.length>0)||"full"!==N.pathMatch)&&""===N.path}class Mi{}class Go{constructor(j,N,$,ce,Se,$e,mt){this.injector=j,this.configLoader=N,this.rootComponentType=$,this.config=ce,this.urlTree=Se,this.paramsInheritanceStrategy=$e,this.urlSerializer=mt,this.applyRedirects=new aa(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(j){return new r.wOt(4002,`'${j.segmentGroup}'`)}recognize(){const j=zn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(j).pipe((0,we.T)(N=>{const $=new Ao([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Xe,this.rootComponentType,null,{}),ce=new fi($,N),Se=new Hi("",ce),$e=function Pr(w,j,N=null,$=null){return Yr(wr(w),j,N,$)}($,[],this.urlTree.queryParams,this.urlTree.fragment);return $e.queryParams=this.urlTree.queryParams,Se.url=this.urlSerializer.serialize($e),this.inheritParamsAndData(Se._root,null),{state:Se,tree:$e}}))}match(j){return this.processSegmentGroup(this.injector,this.config,j,Xe).pipe((0,We.W)($=>{if($ instanceof Gr)return this.urlTree=$.urlTree,this.match($.urlTree.root);throw $ instanceof Cr?this.noMatchError($):$}))}inheritParamsAndData(j,N){const $=j.value,ce=no($,N,this.paramsInheritanceStrategy);$.params=Object.freeze(ce.params),$.data=Object.freeze(ce.data),j.children.forEach(Se=>this.inheritParamsAndData(Se,$))}processSegmentGroup(j,N,$,ce){return 0===$.segments.length&&$.hasChildren()?this.processChildren(j,N,$):this.processSegment(j,N,$,$.segments,ce,!0).pipe((0,we.T)(Se=>Se instanceof fi?[Se]:[]))}processChildren(j,N,$){const ce=[];for(const Se of Object.keys($.children))"primary"===Se?ce.unshift(Se):ce.push(Se);return(0,R.H)(ce).pipe((0,Ae.H)(Se=>{const $e=$.children[Se],mt=function Uo(w,j){const N=w.filter($=>wi($)===j);return N.push(...w.filter($=>wi($)!==j)),N}(N,Se);return this.processSegmentGroup(j,mt,$e,Se)}),function ut(w,j){return(0,Y.N)(function Ge(w,j,N,$,ce){return(Se,$e)=>{let mt=N,dt=j,Qt=0;Se.subscribe((0,B._)($e,Rn=>{const Gn=Qt++;dt=mt?w(dt,Rn,Gn):(mt=!0,Rn),$&&$e.next(dt)},ce&&(()=>{mt&&$e.next(dt),$e.complete()})))}}(w,j,arguments.length>=2,!0))}((Se,$e)=>(Se.push(...$e),Se)),ae(null),function tt(w,j){const N=arguments.length>=2;return $=>$.pipe(w?(0,_e.p)((ce,Se)=>w(ce,Se,$)):b.D,Fe(1),N?ae(j):oe(()=>new D.G))}(),(0,Re.Z)(Se=>{if(null===Se)return go($);const $e=Hr(Se);return function Ts(w){w.sort((j,N)=>j.value.outlet===Xe?-1:N.value.outlet===Xe?1:j.value.outlet.localeCompare(N.value.outlet))}($e),(0,V.of)($e)}))}processSegment(j,N,$,ce,Se,$e){return(0,R.H)(N).pipe((0,Ae.H)(mt=>this.processSegmentAgainstRoute(mt._injector??j,N,mt,$,ce,Se,$e).pipe((0,We.W)(dt=>{if(dt instanceof Cr)return(0,V.of)(null);throw dt}))),pe(mt=>!!mt),(0,We.W)(mt=>{if(et(mt))return function ts(w,j,N){return 0===j.length&&!w.children[N]}($,ce,Se)?(0,V.of)(new Mi):go($);throw mt}))}processSegmentAgainstRoute(j,N,$,ce,Se,$e,mt){return function Vs(w,j,N,$){return!!(wi(w)===$||$!==Xe&&Mr(j,N,w))&&gn(j,w,N).matched}($,ce,Se,$e)?void 0===$.redirectTo?this.matchSegmentAgainstRoute(j,ce,$,Se,$e):this.allowRedirects&&mt?this.expandSegmentAgainstRouteUsingRedirect(j,ce,N,$,Se,$e):go(ce):go(ce)}expandSegmentAgainstRouteUsingRedirect(j,N,$,ce,Se,$e){const{matched:mt,consumedSegments:dt,positionalParamSegments:Qt,remainingSegments:Rn}=gn(N,ce,Se);if(!mt)return go(N);ce.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Gn=this.applyRedirects.applyRedirectCommands(dt,ce.redirectTo,Qt);return this.applyRedirects.lineralizeSegments(ce,Gn).pipe((0,Re.Z)(Ei=>this.processSegment(j,$,N,Ei.concat(Rn),$e,!1)))}matchSegmentAgainstRoute(j,N,$,ce,Se){const $e=cn(N,$,ce,j);return"**"===$.path&&(N.children={}),$e.pipe((0,Ze.n)(mt=>mt.matched?this.getChildConfig(j=$._injector??j,$,ce).pipe((0,Ze.n)(({routes:dt})=>{const Qt=$._loadedInjector??j,{consumedSegments:Rn,remainingSegments:Gn,parameters:Ei}=mt,Ks=new Ao(Rn,Ei,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function wa(w){return w.data||{}}($),wi($),$.component??$._loadedComponent??null,$,function Es(w){return w.resolve||{}}($)),{segmentGroup:ma,slicedSegments:Ms}=zn(N,Rn,Gn,dt);if(0===Ms.length&&ma.hasChildren())return this.processChildren(Qt,dt,ma).pipe((0,we.T)(eo=>null===eo?null:new fi(Ks,eo)));if(0===dt.length&&0===Ms.length)return(0,V.of)(new fi(Ks,[]));const il=wi($)===Se;return this.processSegment(Qt,dt,ma,Ms,il?Xe:Se,!0).pipe((0,we.T)(eo=>new fi(Ks,eo instanceof fi?[eo]:[])))})):go(N)))}getChildConfig(j,N,$){return N.children?(0,V.of)({routes:N.children,injector:j}):N.loadChildren?void 0!==N._loadedRoutes?(0,V.of)({routes:N._loadedRoutes,injector:N._loadedInjector}):function Mn(w,j,N,$){const ce=j.canLoad;if(void 0===ce||0===ce.length)return(0,V.of)(!0);const Se=ce.map($e=>{const mt=Mo($e,w);return jt(function A(w){return w&&v(w.canLoad)}(mt)?mt.canLoad(j,N):(0,r.N4e)(w,()=>mt(j,N)))});return(0,V.of)(Se).pipe(Vt(),hr())}(j,N,$).pipe((0,Re.Z)(ce=>ce?this.configLoader.loadChildren(j,N).pipe((0,Pe.M)(Se=>{N._loadedRoutes=Se.routes,N._loadedInjector=Se.injector})):function Us(w){return se(io(!1,or.GuardRejected))}())):(0,V.of)({routes:[],injector:j})}}function Gs(w){const j=w.value.routeConfig;return j&&""===j.path}function Hr(w){const j=[],N=new Set;for(const $ of w){if(!Gs($)){j.push($);continue}const ce=j.find(Se=>$.value.routeConfig===Se.value.routeConfig);void 0!==ce?(ce.children.push(...$.children),N.add(ce)):j.push($)}for(const $ of N){const ce=Hr($.children);j.push(new fi($.value,ce))}return j.filter($=>!N.has($))}function yo(w){const j=w.children.map(N=>yo(N)).flat();return[w,...j]}function js(w){return(0,Ze.n)(j=>{const N=w(j);return N?(0,R.H)(N).pipe((0,we.T)(()=>j)):(0,V.of)(j)})}let _o=(()=>{class w{buildTitle(N){let $,ce=N.root;for(;void 0!==ce;)$=this.getResolvedTitleForRoute(ce)??$,ce=ce.children.find(Se=>Se.outlet===Xe);return $}getResolvedTitleForRoute(N){return N.data[wt]}static#e=this.\u0275fac=function($){return new($||w)};static#t=this.\u0275prov=r.jDH({token:w,factory:()=>(0,r.WQX)(Ja),providedIn:"root"})}return w})(),Ja=(()=>{class w extends _o{constructor(N){super(),this.title=N}updateTitle(N){const $=this.buildTitle(N);void 0!==$&&this.title.setTitle($)}static#e=this.\u0275fac=function($){return new($||w)(r.KVO(it.hE))};static#t=this.\u0275prov=r.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})();const ns=new r.nKC("",{providedIn:"root",factory:()=>({})}),L=new r.nKC("");let ye=(()=>{class w{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,r.WQX)(r.Ql9)}loadComponent(N){if(this.componentLoaders.get(N))return this.componentLoaders.get(N);if(N._loadedComponent)return(0,V.of)(N._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(N);const $=jt(N.loadComponent()).pipe((0,we.T)(Ve),(0,Pe.M)(Se=>{this.onLoadEndListener&&this.onLoadEndListener(N),N._loadedComponent=Se}),(0,ct.j)(()=>{this.componentLoaders.delete(N)})),ce=new ee($,()=>new Q.B).pipe(q());return this.componentLoaders.set(N,ce),ce}loadChildren(N,$){if(this.childrenLoaders.get($))return this.childrenLoaders.get($);if($._loadedRoutes)return(0,V.of)({routes:$._loadedRoutes,injector:$._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener($);const Se=function J(w,j,N,$){return jt(w.loadChildren()).pipe((0,we.T)(Ve),(0,Re.Z)(ce=>ce instanceof r.Co$||Array.isArray(ce)?(0,V.of)(ce):(0,R.H)(j.compileModuleAsync(ce))),(0,we.T)(ce=>{$&&$(w);let Se,$e,mt=!1;return Array.isArray(ce)?($e=ce,!0):(Se=ce.create(N).injector,$e=Se.get(L,[],{optional:!0,self:!0}).flat()),{routes:$e.map(Ho),injector:Se}}))}($,this.compiler,N,this.onLoadEndListener).pipe((0,ct.j)(()=>{this.childrenLoaders.delete($)})),$e=new ee(Se,()=>new Q.B).pipe(q());return this.childrenLoaders.set($,$e),$e}static#e=this.\u0275fac=function($){return new($||w)};static#t=this.\u0275prov=r.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})();function Ve(w){return function fe(w){return w&&"object"==typeof w&&"default"in w}(w)?w.default:w}let _t=(()=>{class w{static#e=this.\u0275fac=function($){return new($||w)};static#t=this.\u0275prov=r.jDH({token:w,factory:()=>(0,r.WQX)(Nt),providedIn:"root"})}return w})(),Nt=(()=>{class w{shouldProcessUrl(N){return!0}extract(N){return N}merge(N,$){return N}static#e=this.\u0275fac=function($){return new($||w)};static#t=this.\u0275prov=r.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})();const sn=new r.nKC(""),kr=new r.nKC("");function Tr(w,j,N){const $=w.get(kr),ce=w.get(be.qQ);return w.get(r.SKi).runOutsideAngular(()=>{if(!ce.startViewTransition||$.skipNextTransition)return $.skipNextTransition=!1,Promise.resolve();let Se;const $e=new Promise(Qt=>{Se=Qt}),mt=ce.startViewTransition(()=>(Se(),function Or(w){return new Promise(j=>{(0,r.mal)(j,{injector:w})})}(w))),{onViewTransitionCreated:dt}=$;return dt&&(0,r.N4e)(w,()=>dt({transition:mt,from:j,to:N})),$e})}let Un=(()=>{class w{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Q.B,this.transitionAbortSubject=new Q.B,this.configLoader=(0,r.WQX)(ye),this.environmentInjector=(0,r.WQX)(r.uvJ),this.urlSerializer=(0,r.WQX)(Ar),this.rootContexts=(0,r.WQX)(Ci),this.location=(0,r.WQX)(be.aZ),this.inputBindingEnabled=null!==(0,r.WQX)(ei,{optional:!0}),this.titleStrategy=(0,r.WQX)(_o),this.options=(0,r.WQX)(ns,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,r.WQX)(_t),this.createViewTransition=(0,r.WQX)(sn,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,V.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=ce=>this.events.next(new ht(ce)),this.configLoader.onLoadStartListener=ce=>this.events.next(new ke(ce))}complete(){this.transitions?.complete()}handleNavigationRequest(N){const $=++this.navigationId;this.transitions?.next({...this.transitions.value,...N,id:$})}setupNavigations(N,$,ce){return this.transitions=new U.t({id:0,currentUrlTree:$,currentRawUrl:$,extractedUrl:this.urlHandlingStrategy.extract($),urlAfterRedirects:this.urlHandlingStrategy.extract($),rawUrl:$,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:en,restoredState:null,currentSnapshot:ce.snapshot,targetSnapshot:null,currentRouterState:ce,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,_e.p)(Se=>0!==Se.id),(0,we.T)(Se=>({...Se,extractedUrl:this.urlHandlingStrategy.extract(Se.rawUrl)})),(0,Ze.n)(Se=>{let $e=!1,mt=!1;return(0,V.of)(Se).pipe((0,Ze.n)(dt=>{if(this.navigationId>Se.id)return this.cancelNavigationTransition(Se,"",or.SupersededByNewNavigation),z.w;this.currentTransition=Se,this.currentNavigation={id:dt.id,initialUrl:dt.rawUrl,extractedUrl:dt.extractedUrl,trigger:dt.source,extras:dt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const Qt=!N.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!Qt&&"reload"!==(dt.extras.onSameUrlNavigation??N.onSameUrlNavigation)){const Gn="";return this.events.next(new nt(dt.id,this.urlSerializer.serialize(dt.rawUrl),Gn,br.IgnoredSameUrlNavigation)),dt.resolve(null),z.w}if(this.urlHandlingStrategy.shouldProcessUrl(dt.rawUrl))return(0,V.of)(dt).pipe((0,Ze.n)(Gn=>{const Ei=this.transitions?.getValue();return this.events.next(new En(Gn.id,this.urlSerializer.serialize(Gn.extractedUrl),Gn.source,Gn.restoredState)),Ei!==this.transitions?.getValue()?z.w:Promise.resolve(Gn)}),function Vi(w,j,N,$,ce,Se){return(0,Re.Z)($e=>function Vo(w,j,N,$,ce,Se,$e="emptyOnly"){return new Go(w,j,N,$,ce,$e,Se).recognize()}(w,j,N,$,$e.extractedUrl,ce,Se).pipe((0,we.T)(({state:mt,tree:dt})=>({...$e,targetSnapshot:mt,urlAfterRedirects:dt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,N.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,Pe.M)(Gn=>{Se.targetSnapshot=Gn.targetSnapshot,Se.urlAfterRedirects=Gn.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Gn.urlAfterRedirects};const Ei=new u(Gn.id,this.urlSerializer.serialize(Gn.extractedUrl),this.urlSerializer.serialize(Gn.urlAfterRedirects),Gn.targetSnapshot);this.events.next(Ei)}));if(Qt&&this.urlHandlingStrategy.shouldProcessUrl(dt.currentRawUrl)){const{id:Gn,extractedUrl:Ei,source:Ks,restoredState:ma,extras:Ms}=dt,il=new En(Gn,this.urlSerializer.serialize(Ei),Ks,ma);this.events.next(il);const eo=Ir(this.rootComponentType).snapshot;return this.currentTransition=Se={...dt,targetSnapshot:eo,urlAfterRedirects:Ei,extras:{...Ms,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Ei,(0,V.of)(Se)}{const Gn="";return this.events.next(new nt(dt.id,this.urlSerializer.serialize(dt.extractedUrl),Gn,br.IgnoredByUrlHandlingStrategy)),dt.resolve(null),z.w}}),(0,Pe.M)(dt=>{const Qt=new T(dt.id,this.urlSerializer.serialize(dt.extractedUrl),this.urlSerializer.serialize(dt.urlAfterRedirects),dt.targetSnapshot);this.events.next(Qt)}),(0,we.T)(dt=>(this.currentTransition=Se={...dt,guards:zo(dt.targetSnapshot,dt.currentSnapshot,this.rootContexts)},Se)),function Ut(w,j){return(0,Re.Z)(N=>{const{targetSnapshot:$,currentSnapshot:ce,guards:{canActivateChecks:Se,canDeactivateChecks:$e}}=N;return 0===$e.length&&0===Se.length?(0,V.of)({...N,guardsResult:!0}):function Yt(w,j,N,$){return(0,R.H)(w).pipe((0,Re.Z)(ce=>function vi(w,j,N,$,ce){const Se=j&&j.routeConfig?j.routeConfig.canDeactivate:null;if(!Se||0===Se.length)return(0,V.of)(!0);const $e=Se.map(mt=>{const dt=Di(j)??ce,Qt=Mo(mt,dt);return jt(function Ee(w){return w&&v(w.canDeactivate)}(Qt)?Qt.canDeactivate(w,j,N,$):(0,r.N4e)(dt,()=>Qt(w,j,N,$))).pipe(pe())});return(0,V.of)($e).pipe(Vt())}(ce.component,ce.route,N,j,$)),pe(ce=>!0!==ce,!0))}($e,$,ce,w).pipe((0,Re.Z)(mt=>mt&&function h(w){return"boolean"==typeof w}(mt)?function fn(w,j,N,$){return(0,R.H)(j).pipe((0,Ae.H)(ce=>(0,K.x)(function Br(w,j){return null!==w&&j&&j(new At(w)),(0,V.of)(!0)}(ce.route.parent,$),function mr(w,j){return null!==w&&j&&j(new Kt(w)),(0,V.of)(!0)}(ce.route,$),function ki(w,j,N){const $=j[j.length-1],Se=j.slice(0,j.length-1).reverse().map($e=>function Zo(w){const j=w.routeConfig?w.routeConfig.canActivateChild:null;return j&&0!==j.length?{node:w,guards:j}:null}($e)).filter($e=>null!==$e).map($e=>(0,de.v)(()=>{const mt=$e.guards.map(dt=>{const Qt=Di($e.node)??N,Rn=Mo(dt,Qt);return jt(function ue(w){return w&&v(w.canActivateChild)}(Rn)?Rn.canActivateChild($,w):(0,r.N4e)(Qt,()=>Rn($,w))).pipe(pe())});return(0,V.of)(mt).pipe(Vt())}));return(0,V.of)(Se).pipe(Vt())}(w,ce.path,N),function mi(w,j,N){const $=j.routeConfig?j.routeConfig.canActivate:null;if(!$||0===$.length)return(0,V.of)(!0);const ce=$.map(Se=>(0,de.v)(()=>{const $e=Di(j)??N,mt=Mo(Se,$e);return jt(function ne(w){return w&&v(w.canActivate)}(mt)?mt.canActivate(j,w):(0,r.N4e)($e,()=>mt(j,w))).pipe(pe())}));return(0,V.of)(ce).pipe(Vt())}(w,ce.route,N))),pe(ce=>!0!==ce,!0))}($,Se,w,j):(0,V.of)(mt)),(0,we.T)(mt=>({...N,guardsResult:mt})))})}(this.environmentInjector,dt=>this.events.next(dt)),(0,Pe.M)(dt=>{if(Se.guardsResult=dt.guardsResult,gr(dt.guardsResult))throw Si(0,dt.guardsResult);const Qt=new X(dt.id,this.urlSerializer.serialize(dt.extractedUrl),this.urlSerializer.serialize(dt.urlAfterRedirects),dt.targetSnapshot,!!dt.guardsResult);this.events.next(Qt)}),(0,_e.p)(dt=>!!dt.guardsResult||(this.cancelNavigationTransition(dt,"",or.GuardRejected),!1)),js(dt=>{if(dt.guards.canActivateChecks.length)return(0,V.of)(dt).pipe((0,Pe.M)(Qt=>{const Rn=new he(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),this.urlSerializer.serialize(Qt.urlAfterRedirects),Qt.targetSnapshot);this.events.next(Rn)}),(0,Ze.n)(Qt=>{let Rn=!1;return(0,V.of)(Qt).pipe(function Fi(w,j){return(0,Re.Z)(N=>{const{targetSnapshot:$,guards:{canActivateChecks:ce}}=N;if(!ce.length)return(0,V.of)(N);const Se=new Set(ce.map(dt=>dt.route)),$e=new Set;for(const dt of Se)if(!$e.has(dt))for(const Qt of yo(dt))$e.add(Qt);let mt=0;return(0,R.H)($e).pipe((0,Ae.H)(dt=>Se.has(dt)?function Qa(w,j,N,$){const ce=w.routeConfig,Se=w._resolve;return void 0!==ce?.title&&!Zr(ce)&&(Se[wt]=ce.title),function Ya(w,j,N,$){const ce=Fn(w);if(0===ce.length)return(0,V.of)({});const Se={};return(0,R.H)(ce).pipe((0,Re.Z)($e=>function kc(w,j,N,$){const ce=Di(j)??$,Se=Mo(w,ce);return jt(Se.resolve?Se.resolve(j,N):(0,r.N4e)(ce,()=>Se(j,N)))}(w[$e],j,N,$).pipe(pe(),(0,Pe.M)(mt=>{Se[$e]=mt}))),Fe(1),(0,st.u)(Se),(0,We.W)($e=>et($e)?z.w:se($e)))}(Se,w,j,$).pipe((0,we.T)($e=>(w._resolvedData=$e,w.data=no(w,w.parent,N).resolve,null)))}(dt,$,w,j):(dt.data=no(dt,dt.parent,w).resolve,(0,V.of)(void 0))),(0,Pe.M)(()=>mt++),Fe(1),(0,Re.Z)(dt=>mt===$e.size?(0,V.of)(N):z.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,Pe.M)({next:()=>Rn=!0,complete:()=>{Rn||this.cancelNavigationTransition(Qt,"",or.NoDataFromResolver)}}))}),(0,Pe.M)(Qt=>{const Rn=new Ce(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),this.urlSerializer.serialize(Qt.urlAfterRedirects),Qt.targetSnapshot);this.events.next(Rn)}))}),js(dt=>{const Qt=Rn=>{const Gn=[];Rn.routeConfig?.loadComponent&&!Rn.routeConfig._loadedComponent&&Gn.push(this.configLoader.loadComponent(Rn.routeConfig).pipe((0,Pe.M)(Ei=>{Rn.component=Ei}),(0,we.T)(()=>{})));for(const Ei of Rn.children)Gn.push(...Qt(Ei));return Gn};return x(Qt(dt.targetSnapshot.root)).pipe(ae(null),(0,Ue.s)(1))}),js(()=>this.afterPreactivation()),(0,Ze.n)(()=>{const{currentSnapshot:dt,targetSnapshot:Qt}=Se,Rn=this.createViewTransition?.(this.environmentInjector,dt.root,Qt.root);return Rn?(0,R.H)(Rn).pipe((0,we.T)(()=>Se)):(0,V.of)(Se)}),(0,we.T)(dt=>{const Qt=function Jo(w,j,N){const $=Lr(w,j._root,N?N._root:void 0);return new si($,j)}(N.routeReuseStrategy,dt.targetSnapshot,dt.currentRouterState);return this.currentTransition=Se={...dt,targetRouterState:Qt},this.currentNavigation.targetRouterState=Qt,Se}),(0,Pe.M)(()=>{this.events.next(new Qn)}),((w,j,N,$)=>(0,we.T)(ce=>(new Ko(j,ce.targetRouterState,ce.currentRouterState,N,$).activate(w),ce)))(this.rootContexts,N.routeReuseStrategy,dt=>this.events.next(dt),this.inputBindingEnabled),(0,Ue.s)(1),(0,Pe.M)({next:dt=>{$e=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Wn(dt.id,this.urlSerializer.serialize(dt.extractedUrl),this.urlSerializer.serialize(dt.urlAfterRedirects))),this.titleStrategy?.updateTitle(dt.targetRouterState.snapshot),dt.resolve(!0)},complete:()=>{$e=!0}}),(0,St.Q)(this.transitionAbortSubject.pipe((0,Pe.M)(dt=>{throw dt}))),(0,ct.j)(()=>{!$e&&!mt&&this.cancelNavigationTransition(Se,"",or.SupersededByNewNavigation),this.currentTransition?.id===Se.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,We.W)(dt=>{if(mt=!0,Fo(dt))this.events.next(new un(Se.id,this.urlSerializer.serialize(Se.extractedUrl),dt.message,dt.cancellationCode)),function oo(w){return Fo(w)&&gr(w.url)}(dt)?this.events.next(new Zn(dt.url)):Se.resolve(!1);else{this.events.next(new c(Se.id,this.urlSerializer.serialize(Se.extractedUrl),dt,Se.targetSnapshot??void 0));try{Se.resolve(N.errorHandler(dt))}catch(Qt){this.options.resolveNavigationPromiseOnError?Se.resolve(!1):Se.reject(Qt)}}return z.w}))}))}cancelNavigationTransition(N,$,ce){const Se=new un(N.id,this.urlSerializer.serialize(N.extractedUrl),$,ce);this.events.next(Se),N.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function($){return new($||w)};static#t=this.\u0275prov=r.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})();function jr(w){return w!==en}let cr=(()=>{class w{static#e=this.\u0275fac=function($){return new($||w)};static#t=this.\u0275prov=r.jDH({token:w,factory:()=>(0,r.WQX)(sr),providedIn:"root"})}return w})();class ti{shouldDetach(j){return!1}store(j,N){}shouldAttach(j){return!1}retrieve(j){return null}shouldReuseRoute(j,N){return j.routeConfig===N.routeConfig}}let sr=(()=>{class w extends ti{static#e=this.\u0275fac=(()=>{let N;return function(ce){return(N||(N=r.xGo(w)))(ce||w)}})();static#t=this.\u0275prov=r.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})(),kt=(()=>{class w{static#e=this.\u0275fac=function($){return new($||w)};static#t=this.\u0275prov=r.jDH({token:w,factory:()=>(0,r.WQX)(dn),providedIn:"root"})}return w})(),dn=(()=>{class w extends kt{constructor(){super(...arguments),this.location=(0,r.WQX)(be.aZ),this.urlSerializer=(0,r.WQX)(Ar),this.options=(0,r.WQX)(ns,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,r.WQX)(_t),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Tn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ir(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(N){return this.location.subscribe($=>{"popstate"===$.type&&N($.url,$.state)})}handleRouterEvent(N,$){if(N instanceof En)this.stateMemento=this.createStateMemento();else if(N instanceof nt)this.rawUrlTree=$.initialUrl;else if(N instanceof u){if("eager"===this.urlUpdateStrategy&&!$.extras.skipLocationChange){const ce=this.urlHandlingStrategy.merge($.finalUrl,$.initialUrl);this.setBrowserUrl(ce,$)}}else N instanceof Qn?(this.currentUrlTree=$.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge($.finalUrl,$.initialUrl),this.routerState=$.targetRouterState,"deferred"===this.urlUpdateStrategy&&($.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,$))):N instanceof un&&(N.code===or.GuardRejected||N.code===or.NoDataFromResolver)?this.restoreHistory($):N instanceof c?this.restoreHistory($,!0):N instanceof Wn&&(this.lastSuccessfulId=N.id,this.currentPageId=this.browserPageId)}setBrowserUrl(N,$){const ce=this.urlSerializer.serialize(N);if(this.location.isCurrentPathEqualTo(ce)||$.extras.replaceUrl){const $e={...$.extras.state,...this.generateNgRouterState($.id,this.browserPageId)};this.location.replaceState(ce,"",$e)}else{const Se={...$.extras.state,...this.generateNgRouterState($.id,this.browserPageId+1)};this.location.go(ce,"",Se)}}restoreHistory(N,$=!1){if("computed"===this.canceledNavigationResolution){const Se=this.currentPageId-this.browserPageId;0!==Se?this.location.historyGo(Se):this.currentUrlTree===N.finalUrl&&0===Se&&(this.resetState(N),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&($&&this.resetState(N),this.resetUrlToCurrentUrlTree())}resetState(N){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,N.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(N,$){return"computed"===this.canceledNavigationResolution?{navigationId:N,\u0275routerPageId:$}:{navigationId:N}}static#e=this.\u0275fac=(()=>{let N;return function(ce){return(N||(N=r.xGo(w)))(ce||w)}})();static#t=this.\u0275prov=r.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})();var ur=function(w){return w[w.COMPLETE=0]="COMPLETE",w[w.FAILED=1]="FAILED",w[w.REDIRECTING=2]="REDIRECTING",w}(ur||{});function yi(w,j){w.events.pipe((0,_e.p)(N=>N instanceof Wn||N instanceof un||N instanceof c||N instanceof nt),(0,we.T)(N=>N instanceof Wn||N instanceof nt?ur.COMPLETE:N instanceof un&&(N.code===or.Redirect||N.code===or.SupersededByNewNavigation)?ur.REDIRECTING:ur.FAILED),(0,_e.p)(N=>N!==ur.REDIRECTING),(0,Ue.s)(1)).subscribe(()=>{j()})}function ni(w){throw w}const Li={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gs={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Yn=(()=>{class w{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,r.WQX)(r.H3F),this.stateManager=(0,r.WQX)(kt),this.options=(0,r.WQX)(ns,{optional:!0})||{},this.pendingTasks=(0,r.WQX)(r.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,r.WQX)(Un),this.urlSerializer=(0,r.WQX)(Ar),this.location=(0,r.WQX)(be.aZ),this.urlHandlingStrategy=(0,r.WQX)(_t),this._events=new Q.B,this.errorHandler=this.options.errorHandler||ni,this.navigated=!1,this.routeReuseStrategy=(0,r.WQX)(cr),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,r.WQX)(L,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,r.WQX)(ei,{optional:!0}),this.eventsSubscription=new W.yU,this.isNgZoneEnabled=(0,r.WQX)(r.SKi)instanceof r.SKi&&r.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:N=>{this.console.warn(N)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const N=this.navigationTransitions.events.subscribe($=>{try{const ce=this.navigationTransitions.currentTransition,Se=this.navigationTransitions.currentNavigation;if(null!==ce&&null!==Se)if(this.stateManager.handleRouterEvent($,Se),$ instanceof un&&$.code!==or.Redirect&&$.code!==or.SupersededByNewNavigation)this.navigated=!0;else if($ instanceof Wn)this.navigated=!0;else if($ instanceof Zn){const $e=this.urlHandlingStrategy.merge($.url,ce.currentRawUrl),mt={info:ce.extras.info,skipLocationChange:ce.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jr(ce.source)};this.scheduleNavigation($e,en,null,mt,{resolve:ce.resolve,reject:ce.reject,promise:ce.promise})}(function jo(w){return!(w instanceof Qn||w instanceof Zn)})($)&&this._events.next($)}catch(ce){this.navigationTransitions.transitionAbortSubject.next(ce)}});this.eventsSubscription.add(N)}resetRootComponentType(N){this.routerState.root.component=N,this.navigationTransitions.rootComponentType=N}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),en,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((N,$)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(N,"popstate",$)},0)})}navigateToSyncWithBrowser(N,$,ce){const Se={replaceUrl:!0},$e=ce?.navigationId?ce:null;if(ce){const dt={...ce};delete dt.navigationId,delete dt.\u0275routerPageId,0!==Object.keys(dt).length&&(Se.state=dt)}const mt=this.parseUrl(N);this.scheduleNavigation(mt,$,$e,Se)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(N){this.config=N.map(Ho),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(N,$={}){const{relativeTo:ce,queryParams:Se,fragment:$e,queryParamsHandling:mt,preserveFragment:dt}=$,Qt=dt?this.currentUrlTree.fragment:$e;let Gn,Rn=null;switch(mt){case"merge":Rn={...this.currentUrlTree.queryParams,...Se};break;case"preserve":Rn=this.currentUrlTree.queryParams;break;default:Rn=Se||null}null!==Rn&&(Rn=this.removeEmptyProps(Rn));try{Gn=wr(ce?ce.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof N[0]||!N[0].startsWith("/"))&&(N=[]),Gn=this.currentUrlTree.root}return Yr(Gn,N,Rn,Qt??null)}navigateByUrl(N,$={skipLocationChange:!1}){const ce=gr(N)?N:this.parseUrl(N),Se=this.urlHandlingStrategy.merge(ce,this.rawUrlTree);return this.scheduleNavigation(Se,en,null,$)}navigate(N,$={skipLocationChange:!1}){return function Zi(w){for(let j=0;j<w.length;j++)if(null==w[j])throw new r.wOt(4008,!1)}(N),this.navigateByUrl(this.createUrlTree(N,$),$)}serializeUrl(N){return this.urlSerializer.serialize(N)}parseUrl(N){try{return this.urlSerializer.parse(N)}catch{return this.urlSerializer.parse("/")}}isActive(N,$){let ce;if(ce=!0===$?{...Li}:!1===$?{...gs}:$,gr(N))return mn(this.currentUrlTree,N,ce);const Se=this.parseUrl(N);return mn(this.currentUrlTree,Se,ce)}removeEmptyProps(N){return Object.entries(N).reduce(($,[ce,Se])=>(null!=Se&&($[ce]=Se),$),{})}scheduleNavigation(N,$,ce,Se,$e){if(this.disposed)return Promise.resolve(!1);let mt,dt,Qt;$e?(mt=$e.resolve,dt=$e.reject,Qt=$e.promise):Qt=new Promise((Gn,Ei)=>{mt=Gn,dt=Ei});const Rn=this.pendingTasks.add();return yi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Rn))}),this.navigationTransitions.handleNavigationRequest({source:$,restoredState:ce,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:N,extras:Se,resolve:mt,reject:dt,promise:Qt,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Qt.catch(Gn=>Promise.reject(Gn))}static#e=this.\u0275fac=function($){return new($||w)};static#t=this.\u0275prov=r.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})(),Sn=(()=>{class w{constructor(N,$,ce,Se,$e,mt){this.router=N,this.route=$,this.tabIndexAttribute=ce,this.renderer=Se,this.el=$e,this.locationStrategy=mt,this.href=null,this.commands=null,this.onChanges=new Q.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const dt=$e.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===dt||"area"===dt,this.isAnchorElement?this.subscription=N.events.subscribe(Qt=>{Qt instanceof Wn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(N){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",N)}ngOnChanges(N){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(N){null!=N?(this.commands=Array.isArray(N)?N:[N],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(N,$,ce,Se,$e){const mt=this.urlTree;return!!(null===mt||this.isAnchorElement&&(0!==N||$||ce||Se||$e||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(mt,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const N=this.urlTree;this.href=null!==N&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(N)):null;const $=null===this.href?null:(0,r.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",$)}applyAttributeValue(N,$){const ce=this.renderer,Se=this.el.nativeElement;null!==$?ce.setAttribute(Se,N,$):ce.removeAttribute(Se,N)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function($){return new($||w)(r.rXU(Yn),r.rXU(ln),r.kS0("tabindex"),r.rXU(r.sFG),r.rXU(r.aKT),r.rXU(be.hb))};static#t=this.\u0275dir=r.FsC({type:w,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function($,ce){1&$&&r.bIt("click",function($e){return ce.onClick($e.button,$e.ctrlKey,$e.shiftKey,$e.altKey,$e.metaKey)}),2&$&&r.BMQ("target",ce.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[r.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",r.L39],skipLocationChange:[r.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",r.L39],replaceUrl:[r.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",r.L39],routerLink:"routerLink"},standalone:!0,features:[r.GFd,r.OA$]})}return w})(),rs=(()=>{class w{get isActive(){return this._isActive}constructor(N,$,ce,Se,$e){this.router=N,this.element=$,this.renderer=ce,this.cdr=Se,this.link=$e,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new r.bkB,this.routerEventsSubscription=N.events.subscribe(mt=>{mt instanceof Wn&&this.update()})}ngAfterContentInit(){(0,V.of)(this.links.changes,(0,V.of)(null)).pipe((0,Gt.U)()).subscribe(N=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const N=[...this.links.toArray(),this.link].filter($=>!!$).map($=>$.onChanges);this.linkInputChangesSubscription=(0,R.H)(N).pipe((0,Gt.U)()).subscribe($=>{this._isActive!==this.isLinkActive(this.router)($)&&this.update()})}set routerLinkActive(N){const $=Array.isArray(N)?N:N.split(" ");this.classes=$.filter(ce=>!!ce)}ngOnChanges(N){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const N=this.hasActiveLinks();this.classes.forEach($=>{N?this.renderer.addClass(this.element.nativeElement,$):this.renderer.removeClass(this.element.nativeElement,$)}),N&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==N&&(this._isActive=N,this.cdr.markForCheck(),this.isActiveChange.emit(N))})}isLinkActive(N){const $=function ca(w){return!!w.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ce=>{const Se=ce.urlTree;return!!Se&&N.isActive(Se,$)}}hasActiveLinks(){const N=this.isLinkActive(this.router);return this.link&&N(this.link)||this.links.some(N)}static#e=this.\u0275fac=function($){return new($||w)(r.rXU(Yn),r.rXU(r.aKT),r.rXU(r.sFG),r.rXU(r.gRc),r.rXU(Sn,8))};static#t=this.\u0275dir=r.FsC({type:w,selectors:[["","routerLinkActive",""]],contentQueries:function($,ce,Se){if(1&$&&r.wni(Se,Sn,5),2&$){let $e;r.mGM($e=r.lsd())&&(ce.links=$e)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[r.OA$]})}return w})();class $s{}let ua=(()=>{class w{constructor(N,$,ce,Se,$e){this.router=N,this.injector=ce,this.preloadingStrategy=Se,this.loader=$e}setUpPreloading(){this.subscription=this.router.events.pipe((0,_e.p)(N=>N instanceof Wn),(0,Ae.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(N,$){const ce=[];for(const Se of $){Se.providers&&!Se._injector&&(Se._injector=(0,r.Ol2)(Se.providers,N,`Route: ${Se.path}`));const $e=Se._injector??N,mt=Se._loadedInjector??$e;(Se.loadChildren&&!Se._loadedRoutes&&void 0===Se.canLoad||Se.loadComponent&&!Se._loadedComponent)&&ce.push(this.preloadConfig($e,Se)),(Se.children||Se._loadedRoutes)&&ce.push(this.processRoutes(mt,Se.children??Se._loadedRoutes))}return(0,R.H)(ce).pipe((0,Gt.U)())}preloadConfig(N,$){return this.preloadingStrategy.preload($,()=>{let ce;ce=$.loadChildren&&void 0===$.canLoad?this.loader.loadChildren(N,$):(0,V.of)(null);const Se=ce.pipe((0,Re.Z)($e=>null===$e?(0,V.of)(void 0):($._loadedRoutes=$e.routes,$._loadedInjector=$e.injector,this.processRoutes($e.injector??N,$e.routes))));if($.loadComponent&&!$._loadedComponent){const $e=this.loader.loadComponent($);return(0,R.H)([Se,$e]).pipe((0,Gt.U)())}return Se})}static#e=this.\u0275fac=function($){return new($||w)(r.KVO(Yn),r.KVO(r.Ql9),r.KVO(r.uvJ),r.KVO($s),r.KVO(ye))};static#t=this.\u0275prov=r.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})();const is=new r.nKC("");let da=(()=>{class w{constructor(N,$,ce,Se,$e={}){this.urlSerializer=N,this.transitions=$,this.viewportScroller=ce,this.zone=Se,this.options=$e,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},$e.scrollPositionRestoration||="disabled",$e.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(N=>{N instanceof En?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=N.navigationTrigger,this.restoredId=N.restoredState?N.restoredState.navigationId:0):N instanceof Wn?(this.lastId=N.id,this.scheduleScrollEvent(N,this.urlSerializer.parse(N.urlAfterRedirects).fragment)):N instanceof nt&&N.code===br.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(N,this.urlSerializer.parse(N.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(N=>{N instanceof An&&(N.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(N.position):N.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(N.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(N,$){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new An(N,"popstate"===this.lastSource?this.store[this.restoredId]:null,$))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function($){r.QTQ()};static#t=this.\u0275prov=r.jDH({token:w,factory:w.\u0275fac})}return w})();function bo(w,j){return{\u0275kind:w,\u0275providers:j}}function Co(){const w=(0,r.WQX)(r.zZn);return j=>{const N=w.get(r.o8S);if(j!==N.components[0])return;const $=w.get(Yn),ce=w.get(fa);1===w.get(No)&&$.initialNavigation(),w.get(Oi,null,r.$GK.Optional)?.setUpPreloading(),w.get(is,null,r.$GK.Optional)?.init(),$.resetRootComponentType(N.componentTypes[0]),ce.closed||(ce.next(),ce.complete(),ce.unsubscribe())}}const fa=new r.nKC("",{factory:()=>new Q.B}),No=new r.nKC("",{providedIn:"root",factory:()=>1}),Oi=new r.nKC("");function pa(w){return bo(0,[{provide:Oi,useExisting:ua},{provide:$s,useExisting:w}])}function Fc(w){return bo(9,[{provide:sn,useValue:Tr},{provide:kr,useValue:{skipNextTransition:!!w?.skipInitialTransition,...w}}])}const Ia=new r.nKC("ROUTER_FORROOT_GUARD"),Ss=[be.aZ,{provide:Ar,useClass:qe},Yn,Ci,{provide:ln,useFactory:function os(w){return w.routerState.root},deps:[Yn]},ye,[]];let Lc=(()=>{class w{constructor(N){}static forRoot(N,$){return{ngModule:w,providers:[Ss,[],{provide:L,multi:!0,useValue:N},{provide:Ia,useFactory:td,deps:[[Yn,new r.Xx1,new r.kdw]]},{provide:ns,useValue:$||{}},$?.useHash?{provide:be.hb,useClass:be.fw}:{provide:be.hb,useClass:be.Sm},{provide:is,useFactory:()=>{const w=(0,r.WQX)(be.Xr),j=(0,r.WQX)(r.SKi),N=(0,r.WQX)(ns),$=(0,r.WQX)(Un),ce=(0,r.WQX)(Ar);return N.scrollOffset&&w.setOffset(N.scrollOffset),new da(ce,$,w,j,N)}},$?.preloadingStrategy?pa($.preloadingStrategy).\u0275providers:[],$?.initialNavigation?Ma($):[],$?.bindToComponentInputs?bo(8,[pi,{provide:ei,useExisting:pi}]).\u0275providers:[],$?.enableViewTransitions?Fc().\u0275providers:[],[{provide:Bc,useFactory:Co},{provide:r.iLQ,multi:!0,useExisting:Bc}]]}}static forChild(N){return{ngModule:w,providers:[{provide:L,multi:!0,useValue:N}]}}static#e=this.\u0275fac=function($){return new($||w)(r.KVO(Ia,8))};static#t=this.\u0275mod=r.$C({type:w});static#n=this.\u0275inj=r.G2t({})}return w})();function td(w){return"guarded"}function Ma(w){return["disabled"===w.initialNavigation?bo(3,[{provide:r.hnV,multi:!0,useFactory:()=>{const j=(0,r.WQX)(Yn);return()=>{j.setUpLocationChangeListener()}}},{provide:No,useValue:2}]).\u0275providers:[],"enabledBlocking"===w.initialNavigation?bo(2,[{provide:No,useValue:0},{provide:r.hnV,multi:!0,deps:[r.zZn],useFactory:j=>{const N=j.get(be.hj,Promise.resolve());return()=>N.then(()=>new Promise($=>{const ce=j.get(Yn),Se=j.get(fa);yi(ce,()=>{$(!0)}),j.get(Un).afterPreactivation=()=>($(!0),Se.closed?(0,V.of)(void 0):Se),ce.initialNavigation()}))}}]).\u0275providers:[]]}const Bc=new r.nKC("")},855:(Dt,ve,_)=>{"use strict";_.d(ve,{LR:()=>q,Cn:()=>Y,r2:()=>ee,qb:()=>we,VA:()=>Ze,vC:()=>Ue,oH:()=>_e,vI:()=>Le,dl:()=>be});var r=_(4438),g=_(7554),R=_(3212);class V{static getInteractionStatusFromEvent(oe,ge){switch(oe.eventType){case R.B.LOGIN_START:return g.T$.Login;case R.B.SSO_SILENT_START:return g.T$.SsoSilent;case R.B.ACQUIRE_TOKEN_START:if(oe.interactionType===g.X8.Redirect||oe.interactionType===g.X8.Popup)return g.T$.AcquireToken;break;case R.B.HANDLE_REDIRECT_START:return g.T$.HandleRedirect;case R.B.LOGOUT_START:return g.T$.Logout;case R.B.SSO_SILENT_SUCCESS:case R.B.SSO_SILENT_FAILURE:if(ge&&ge!==g.T$.SsoSilent)break;return g.T$.None;case R.B.LOGOUT_END:if(ge&&ge!==g.T$.Logout)break;return g.T$.None;case R.B.HANDLE_REDIRECT_END:if(ge&&ge!==g.T$.HandleRedirect)break;return g.T$.None;case R.B.LOGIN_SUCCESS:case R.B.LOGIN_FAILURE:case R.B.ACQUIRE_TOKEN_SUCCESS:case R.B.ACQUIRE_TOKEN_FAILURE:case R.B.RESTORE_FROM_BFCACHE:if(oe.interactionType===g.X8.Redirect||oe.interactionType===g.X8.Popup){if(ge&&ge!==g.T$.Login&&ge!==g.T$.AcquireToken)break;return g.T$.None}}return null}}var U=_(4064),H=_(1564),P=_(1474),b=_(2030),C=_(6648),S=_(2771),I=_(1413),B=_(4412),G=_(7673),x=_(983),m=_(177),k=_(6354),D=_(274),K=_(9437),de=_(5558),ie=_(6697),te=_(5964),se=_(7596);const z="@azure/msal-angular",W="3.0.15",Y=new r.nKC("MSAL_INSTANCE"),q=new r.nKC("MSAL_GUARD_CONFIG"),ee=new r.nKC("MSAL_INTERCEPTOR_CONFIG"),Q=new r.nKC("MSAL_BROADCAST_CONFIG");let be=(()=>{class ae{constructor(ge,pe){this.instance=ge,this.location=pe;const Ae=this.location.path(!0).split("#").pop();Ae&&(this.redirectHash=`#${Ae}`),this.instance.initializeWrapperLibrary(g.f7.Angular,W)}initialize(){return(0,C.H)(this.instance.initialize())}acquireTokenPopup(ge){return(0,C.H)(this.instance.acquireTokenPopup(ge))}acquireTokenRedirect(ge){return(0,C.H)(this.instance.acquireTokenRedirect(ge))}acquireTokenSilent(ge){return(0,C.H)(this.instance.acquireTokenSilent(ge))}handleRedirectObservable(ge){return(0,C.H)(this.instance.initialize().then(()=>this.instance.handleRedirectPromise(ge||this.redirectHash)))}loginPopup(ge){return(0,C.H)(this.instance.loginPopup(ge))}loginRedirect(ge){return(0,C.H)(this.instance.loginRedirect(ge))}logout(ge){return(0,C.H)(this.instance.logout(ge))}logoutRedirect(ge){return(0,C.H)(this.instance.logoutRedirect(ge))}logoutPopup(ge){return(0,C.H)(this.instance.logoutPopup(ge))}ssoSilent(ge){return(0,C.H)(this.instance.ssoSilent(ge))}getLogger(){return this.logger||(this.logger=this.instance.getLogger().clone(z,W)),this.logger}setLogger(ge){this.logger=ge.clone(z,W),this.instance.setLogger(ge)}}return ae.\u0275fac=function(ge){return new(ge||ae)(r.KVO(Y),r.KVO(m.aZ))},ae.\u0275prov=r.jDH({token:ae,factory:ae.\u0275fac}),ae})(),we=(()=>{class ae{constructor(ge,pe,Ae){this.msalInstance=ge,this.authService=pe,this.msalBroadcastConfig=Ae,this.msalBroadcastConfig&&this.msalBroadcastConfig.eventsToReplay>0?(this.authService.getLogger().verbose(`BroadcastService - eventsToReplay set on BroadcastConfig, replaying the last ${this.msalBroadcastConfig.eventsToReplay} events`),this._msalSubject=new S.m(this.msalBroadcastConfig.eventsToReplay)):this._msalSubject=new I.B,this.msalSubject$=this._msalSubject.asObservable(),this._inProgress=new B.t(g.T$.Startup),this.inProgress$=this._inProgress.asObservable(),this.msalInstance.addEventCallback(Pe=>{this._msalSubject.next(Pe);const We=V.getInteractionStatusFromEvent(Pe,this._inProgress.value);null!==We&&(this.authService.getLogger().verbose(`BroadcastService - ${Pe.eventType} results in setting inProgress from ${this._inProgress.value} to ${We}`),this._inProgress.next(We))})}}return ae.\u0275fac=function(ge){return new(ge||ae)(r.KVO(Y),r.KVO(be),r.KVO(Q,8))},ae.\u0275prov=r.jDH({token:ae,factory:ae.\u0275fac}),ae})(),Ze=(()=>{class ae{constructor(ge,pe,Ae,Pe,We){this.msalGuardConfig=ge,this.msalBroadcastService=pe,this.authService=Ae,this.location=Pe,this.router=We,this.msalBroadcastService.inProgress$.subscribe()}parseUrl(ge){return this.router.parseUrl(ge)}getDestinationUrl(ge){this.authService.getLogger().verbose("Guard - getting destination url");const pe=document.getElementsByTagName("base"),Ae=this.location.normalize(pe.length?pe[0].href:window.location.origin),Pe=this.location.prepareExternalUrl(ge);return Pe.startsWith("#")?(this.authService.getLogger().verbose("Guard - destination by hash routing"),`${Ae}/${Pe}`):`${Ae}${ge}`}loginInteractively(ge){const pe="function"==typeof this.msalGuardConfig.authRequest?this.msalGuardConfig.authRequest(this.authService,ge):{...this.msalGuardConfig.authRequest};if(this.msalGuardConfig.interactionType===g.X8.Popup)return this.authService.getLogger().verbose("Guard - logging in by popup"),this.authService.loginPopup(pe).pipe((0,k.T)(Pe=>(this.authService.getLogger().verbose("Guard - login by popup successful, can activate, setting active account"),this.authService.instance.setActiveAccount(Pe.account),!0)));this.authService.getLogger().verbose("Guard - logging in by redirect");const Ae=this.getDestinationUrl(ge.url);return this.authService.loginRedirect({redirectStartPage:Ae,...pe}).pipe((0,k.T)(()=>!1))}activateHelper(ge){if(this.msalGuardConfig.interactionType!==g.X8.Popup&&this.msalGuardConfig.interactionType!==g.X8.Redirect)throw new U.XX("invalid_interaction_type","Invalid interaction type provided to MSAL Guard. InteractionType.Popup or InteractionType.Redirect must be provided in the MsalGuardConfiguration");if(this.authService.getLogger().verbose("MSAL Guard activated"),!(typeof window<"u"))return this.authService.getLogger().info("Guard - window is undefined, MSAL does not support server-side token acquisition"),(0,G.of)(!0);if(H.H.hashContainsKnownProperties(window.location.hash)&&P.GZ()&&!this.authService.instance.getConfiguration().system.allowRedirectInIframe)return this.authService.getLogger().warning("Guard - redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."),(0,G.of)(!1);this.msalGuardConfig.loginFailedRoute&&(this.loginFailedRoute=this.parseUrl(this.msalGuardConfig.loginFailedRoute));const pe=this.location.path(!0);return this.authService.initialize().pipe((0,D.H)(()=>this.authService.handleRedirectObservable()),(0,D.H)(()=>{if(!this.authService.instance.getAllAccounts().length)return ge?(this.authService.getLogger().verbose("Guard - no accounts retrieved, log in required to activate"),this.loginInteractively(ge)):(this.authService.getLogger().verbose("Guard - no accounts retrieved, no state, cannot load"),(0,G.of)(!1));if(this.authService.getLogger().verbose("Guard - at least 1 account exists, can activate or load"),ge){const Ae=this.includesCode(ge.url),Pe=!!ge.root&&!!ge.root.fragment&&this.includesCode(`#${ge.root.fragment}`),We=0===this.location.prepareExternalUrl(ge.url).indexOf("#");if(Ae&&(Pe||We))return this.authService.getLogger().info("Guard - Hash contains known code response, stopping navigation."),pe.indexOf("#")>-1?(0,G.of)(this.parseUrl(this.location.path())):(0,G.of)(this.parseUrl(""))}return(0,G.of)(!0)}),(0,K.W)(Ae=>(this.authService.getLogger().error("Guard - error while logging in, unable to activate"),this.authService.getLogger().errorPii(`Guard - error: ${Ae.message}`),this.loginFailedRoute&&ge?(this.authService.getLogger().verbose("Guard - loginFailedRoute set, redirecting"),(0,G.of)(this.loginFailedRoute)):(0,G.of)(!1))))}includesCode(ge){return ge.lastIndexOf("/code")>-1&&ge.lastIndexOf("/code")===ge.length-5||ge.indexOf("#code=")>-1||ge.indexOf("&code=")>-1}canActivate(ge,pe){return this.authService.getLogger().verbose("Guard - canActivate"),this.activateHelper(pe)}canActivateChild(ge,pe){return this.authService.getLogger().verbose("Guard - canActivateChild"),this.activateHelper(pe)}canMatch(){return this.authService.getLogger().verbose("Guard - canLoad"),this.activateHelper()}}return ae.\u0275fac=function(ge){return new(ge||ae)(r.KVO(q),r.KVO(we),r.KVO(be),r.KVO(m.aZ),r.KVO(se.Ix))},ae.\u0275prov=r.jDH({token:ae,factory:ae.\u0275fac}),ae})(),Ue=(()=>{class ae{constructor(ge,pe,Ae,Pe,We){this.msalInterceptorConfig=ge,this.authService=pe,this.location=Ae,this.msalBroadcastService=Pe,this._document=We}intercept(ge,pe){if(this.msalInterceptorConfig.interactionType!==g.X8.Popup&&this.msalInterceptorConfig.interactionType!==g.X8.Redirect)throw new U.XX("invalid_interaction_type","Invalid interaction type provided to MSAL Interceptor. InteractionType.Popup, InteractionType.Redirect must be provided in the msalInterceptorConfiguration");this.authService.getLogger().verbose("MSAL Interceptor activated");const Ae=this.getScopesForEndpoint(ge.url,ge.method);if(!Ae||0===Ae.length)return this.authService.getLogger().verbose("Interceptor - no scopes for endpoint"),pe.handle(ge);let Pe;this.authService.instance.getActiveAccount()?(this.authService.getLogger().verbose("Interceptor - active account selected"),Pe=this.authService.instance.getActiveAccount()):(this.authService.getLogger().verbose("Interceptor - no active account, fallback to first account"),Pe=this.authService.instance.getAllAccounts()[0]);const We="function"==typeof this.msalInterceptorConfig.authRequest?this.msalInterceptorConfig.authRequest(this.authService,ge,{account:Pe}):{...this.msalInterceptorConfig.authRequest,account:Pe};return this.authService.getLogger().info(`Interceptor - ${Ae.length} scopes found for endpoint`),this.authService.getLogger().infoPii(`Interceptor - [${Ae}] scopes found for ${ge.url}`),this.acquireToken(We,Ae,Pe).pipe((0,de.n)(Ge=>{this.authService.getLogger().verbose("Interceptor - setting authorization headers");const ut=ge.headers.set("Authorization",`Bearer ${Ge.accessToken}`),Fe=ge.clone({headers:ut});return pe.handle(Fe)}))}acquireToken(ge,pe,Ae){return this.authService.acquireTokenSilent({...ge,scopes:pe,account:Ae}).pipe((0,K.W)(()=>(this.authService.getLogger().error("Interceptor - acquireTokenSilent rejected with error. Invoking interaction to resolve."),this.msalBroadcastService.inProgress$.pipe((0,ie.s)(1),(0,de.n)(Pe=>Pe===g.T$.None?this.acquireTokenInteractively(ge,pe):this.msalBroadcastService.inProgress$.pipe((0,te.p)(We=>We===g.T$.None),(0,ie.s)(1),(0,de.n)(()=>this.acquireToken(ge,pe,Ae))))))),(0,de.n)(Pe=>Pe.accessToken?(0,G.of)(Pe):(this.authService.getLogger().error("Interceptor - acquireTokenSilent resolved with null access token. Known issue with B2C tenants, invoking interaction to resolve."),this.msalBroadcastService.inProgress$.pipe((0,te.p)(We=>We===g.T$.None),(0,ie.s)(1),(0,de.n)(()=>this.acquireTokenInteractively(ge,pe))))))}acquireTokenInteractively(ge,pe){if(this.msalInterceptorConfig.interactionType===g.X8.Popup)return this.authService.getLogger().verbose("Interceptor - error acquiring token silently, acquiring by popup"),this.authService.acquireTokenPopup({...ge,scopes:pe});this.authService.getLogger().verbose("Interceptor - error acquiring token silently, acquiring by redirect");const Ae=window.location.href;return this.authService.acquireTokenRedirect({...ge,scopes:pe,redirectStartPage:Ae}),x.w}getScopesForEndpoint(ge,pe){this.authService.getLogger().verbose("Interceptor - getting scopes for endpoint");const Ae=this.location.normalize(ge),Pe=Array.from(this.msalInterceptorConfig.protectedResourceMap.keys()),We=this.matchResourcesToEndpoint(Pe,Ae);return We.absoluteResources.length>0?this.matchScopesToEndpoint(this.msalInterceptorConfig.protectedResourceMap,We.absoluteResources,pe):We.relativeResources.length>0?this.matchScopesToEndpoint(this.msalInterceptorConfig.protectedResourceMap,We.relativeResources,pe):null}matchResourcesToEndpoint(ge,pe){const Ae={absoluteResources:[],relativeResources:[]};return ge.forEach(Pe=>{const We=this.location.normalize(Pe);b.$.matchPattern(We,pe)&&Ae.absoluteResources.push(Pe);const Ge=this.getAbsoluteUrl(Pe),ut=new H.H(Ge).getUrlComponents(),Fe=this.getAbsoluteUrl(pe),tt=new H.H(Fe).getUrlComponents(),st=ut.QueryString?`${ut.AbsolutePath}?${ut.QueryString}`:this.location.normalize(ut.AbsolutePath);ut.HostNameAndPort===tt.HostNameAndPort&&b.$.matchPattern(st,Fe)&&""!==st&&"/*"!==st&&Ae.relativeResources.push(Pe)}),Ae}getAbsoluteUrl(ge){const pe=this._document.createElement("a");return pe.href=ge,pe.href}matchScopesToEndpoint(ge,pe,Ae){const Pe=[];return pe.forEach(We=>{const Ge=[],ut=ge.get(We);null!==ut?(ut.forEach(Fe=>{if("string"==typeof Fe)Ge.push(Fe);else{const tt=Ae.toLowerCase();Fe.httpMethod.toLowerCase()===tt&&(null===Fe.scopes?Pe.push(null):Fe.scopes.forEach(ct=>{Ge.push(ct)}))}}),Ge.length>0&&Pe.push(Ge)):Pe.push(null)}),Pe.length>0?(Pe.length>1&&this.authService.getLogger().warning("Interceptor - More than 1 matching scopes for endpoint found."),Pe[0]):null}}return ae.\u0275fac=function(ge){return new(ge||ae)(r.KVO(ee),r.KVO(be),r.KVO(m.aZ),r.KVO(we),r.KVO(m.qQ))},ae.\u0275prov=r.jDH({token:ae,factory:ae.\u0275fac}),ae})(),Le=(()=>{class ae{constructor(ge){this.authService=ge}ngOnInit(){this.authService.getLogger().verbose("MsalRedirectComponent activated"),this.authService.handleRedirectObservable().subscribe()}}return ae.\u0275fac=function(ge){return new(ge||ae)(r.rXU(be))},ae.\u0275cmp=r.VBU({type:ae,selectors:[["app-redirect"]],decls:0,vars:0,template:function(ge,pe){},encapsulation:2}),ae})(),_e=(()=>{class ae{static forRoot(ge,pe,Ae){return{ngModule:ae,providers:[{provide:Y,useValue:ge},{provide:q,useValue:pe},{provide:ee,useValue:Ae},be]}}}return ae.\u0275fac=function(ge){return new(ge||ae)},ae.\u0275mod=r.$C({type:ae}),ae.\u0275inj=r.G2t({providers:[Ze,we],imports:[m.MD]}),ae})()},7406:(Dt,ve,_)=>{"use strict";_.d(ve,{v:()=>G});var r=_(467),g=_(8173),R=_(5189),V=_(7306),U=_(7554);class H{static loggerCallback(m,k){switch(m){case g.$.Error:return void console.error(k);case g.$.Info:return void console.info(k);case g.$.Verbose:return void console.debug(k);case g.$.Warning:return void console.warn(k);default:return void console.log(k)}}constructor(m){let k;this.browserEnvironment=typeof window<"u",this.config=(0,R.tD)(m,this.browserEnvironment);try{k=window[U.Al.SessionStorage]}catch{}const D=k?.getItem(U.L$),K=k?.getItem(U.P3)?.toLowerCase(),de="true"===K||"false"!==K&&void 0,ie={...this.config.system.loggerOptions},te=D&&Object.keys(g.$).includes(D)?g.$[D]:void 0;te&&(ie.loggerCallback=H.loggerCallback,ie.logLevel=te),void 0!==de&&(ie.piiLoggingEnabled=de),this.logger=new g.V(ie,V.U,V.r),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}}let P=(()=>{class x extends H{getModuleName(){return x.MODULE_NAME}getId(){return x.ID}initialize(){var k=this;return(0,r.A)(function*(){return k.available=typeof window<"u",k.available})()}}return x.MODULE_NAME="",x.ID="StandardOperatingContext",x})();function C(){return(C=(0,r.A)(function*(x){const m=new P(x);return yield m.initialize(),(yield Promise.resolve().then(_.bind(_,1190))).StandardController.createController(m)})).apply(this,arguments)}var B=_(1190);class G{static createPublicClientApplication(m){return(0,r.A)(function*(){const k=yield function b(x){return C.apply(this,arguments)}(m);return new G(m,k)})()}constructor(m,k){if(k)this.controller=k;else{const D=new P(m);this.controller=new B.StandardController(D)}}initialize(){var m=this;return(0,r.A)(function*(){return m.controller.initialize()})()}acquireTokenPopup(m){var k=this;return(0,r.A)(function*(){return k.controller.acquireTokenPopup(m)})()}acquireTokenRedirect(m){return this.controller.acquireTokenRedirect(m)}acquireTokenSilent(m){return this.controller.acquireTokenSilent(m)}acquireTokenByCode(m){return this.controller.acquireTokenByCode(m)}addEventCallback(m){return this.controller.addEventCallback(m)}removeEventCallback(m){return this.controller.removeEventCallback(m)}addPerformanceCallback(m){return this.controller.addPerformanceCallback(m)}removePerformanceCallback(m){return this.controller.removePerformanceCallback(m)}enableAccountStorageEvents(){this.controller.enableAccountStorageEvents()}disableAccountStorageEvents(){this.controller.disableAccountStorageEvents()}getAccount(m){return this.controller.getAccount(m)}getAccountByHomeId(m){return this.controller.getAccountByHomeId(m)}getAccountByLocalId(m){return this.controller.getAccountByLocalId(m)}getAccountByUsername(m){return this.controller.getAccountByUsername(m)}getAllAccounts(m){return this.controller.getAllAccounts(m)}handleRedirectPromise(m){return this.controller.handleRedirectPromise(m)}loginPopup(m){return this.controller.loginPopup(m)}loginRedirect(m){return this.controller.loginRedirect(m)}logout(m){return this.controller.logout(m)}logoutRedirect(m){return this.controller.logoutRedirect(m)}logoutPopup(m){return this.controller.logoutPopup(m)}ssoSilent(m){return this.controller.ssoSilent(m)}getTokenCache(){return this.controller.getTokenCache()}getLogger(){return this.controller.getLogger()}setLogger(m){this.controller.setLogger(m)}setActiveAccount(m){this.controller.setActiveAccount(m)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(m,k){return this.controller.initializeWrapperLibrary(m,k)}setNavigationClient(m){this.controller.setNavigationClient(m)}getConfiguration(){return this.controller.getConfiguration()}hydrateCache(m,k){var D=this;return(0,r.A)(function*(){return D.controller.hydrateCache(m,k)})()}clearCache(m){return this.controller.clearCache(m)}}},8390:(Dt,ve,_)=>{"use strict";_.d(ve,{X:()=>r});class r{constructor(){this.cache=new Map}getItem(R){return this.cache.get(R)||null}setItem(R,V){this.cache.set(R,V)}removeItem(R){this.cache.delete(R)}getKeys(){const R=[];return this.cache.forEach((V,U)=>{R.push(U)}),R}containsKey(R){return this.cache.has(R)}clear(){this.cache.clear()}}},5189:(Dt,ve,_)=>{"use strict";_.d(ve,{YH:()=>te,tD:()=>W});var r=_(7635),g=_(2729),R=_(4719),V=_(8173),U=_(6964),H=_(3986),P=_(7172);const b={sendGetRequestAsync:()=>Promise.reject((0,H.SB)(P.R9)),sendPostRequestAsync:()=>Promise.reject((0,H.SB)(P.R9))};var C=_(4561);class S{startMeasurement(){}endMeasurement(){}flushMeasurement(){return null}}class I{generateId(){return"callback-id"}startMeasurement(q,ee){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:C.hU.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:q,startTimeMs:Date.now(),correlationId:ee||""},measurement:new S}}startPerformanceMeasurement(){return new S}calculateQueuedTime(){return 0}addQueueMeasurement(){}setPreQueueTime(){}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}}var B=_(7806),G=_(5424),x=_(7554);class m{navigateInternal(q,ee){return m.defaultNavigateWindow(q,ee)}navigateExternal(q,ee){return m.defaultNavigateWindow(q,ee)}static defaultNavigateWindow(q,ee){return ee.noHistory?window.location.replace(q):window.location.assign(q),new Promise(Q=>{setTimeout(()=>{Q(!0)},ee.timeout)})}}var k=_(467),D=_(6810),K=_(6588);class de{sendGetRequestAsync(q,ee){var Q=this;return(0,k.A)(function*(){let be;try{be=yield fetch(q,{method:x.CC.GET,headers:Q.getFetchHeaders(ee)})}catch{throw window.navigator.onLine?(0,D.bD)(K.Zw):(0,D.bD)(K.l7)}try{return{headers:Q.getHeaderDict(be.headers),body:yield be.json(),status:be.status}}catch{throw(0,D.bD)(K.db)}})()}sendPostRequestAsync(q,ee){var Q=this;return(0,k.A)(function*(){const be=ee&&ee.body||r.YM.EMPTY_STRING;let we;try{we=yield fetch(q,{method:x.CC.POST,headers:Q.getFetchHeaders(ee),body:be})}catch{throw window.navigator.onLine?(0,D.bD)(K.zv):(0,D.bD)(K.l7)}try{return{headers:Q.getHeaderDict(we.headers),body:yield we.json(),status:we.status}}catch{throw(0,D.bD)(K.db)}})()}getFetchHeaders(q){const ee=new Headers;if(!q||!q.headers)return ee;const Q=q.headers;return Object.keys(Q).forEach(be=>{ee.append(be,Q[be])}),ee}getHeaderDict(q){const ee={};return q.forEach((Q,be)=>{ee[be]=Q}),ee}}const ie=6e4,te=1e4,se=3e4,z=2e3;function W({auth:Y,cache:q,system:ee,telemetry:Q},be){const we={clientId:r.YM.EMPTY_STRING,authority:`${r.YM.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:r.YM.EMPTY_STRING,authorityMetadata:r.YM.EMPTY_STRING,redirectUri:r.YM.EMPTY_STRING,postLogoutRedirectUri:r.YM.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:g.e.AAD,OIDCOptions:{serverResponseType:r.zL.FRAGMENT,defaultScopes:[r.YM.OPENID_SCOPE,r.YM.PROFILE_SCOPE,r.YM.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:R._.None,tenant:r.YM.EMPTY_STRING},skipAuthorityMetadataCache:!1,supportsNestedAppAuth:!1},Ze={cacheLocation:x.Al.SessionStorage,temporaryCacheLocation:x.Al.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!(!q||q.cacheLocation!==x.Al.LocalStorage),claimsBasedCachingEnabled:!1},Ue={loggerCallback:()=>{},logLevel:V.$.Info,piiLoggingEnabled:!1},_e={...{...U.J1,loggerOptions:Ue,networkClient:be?new de:b,navigationClient:new m,loadFrameTimeout:0,windowHashTimeout:ee?.loadFrameTimeout||ie,iframeHashTimeout:ee?.loadFrameTimeout||te,navigateFrameWait:0,redirectNavigationTimeout:se,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:ee?.nativeBrokerHandshakeTimeout||z,pollIntervalMilliseconds:x.Q1.DEFAULT_POLL_INTERVAL_MS},...ee,loggerOptions:ee?.loggerOptions||Ue},Re={application:{appName:r.YM.EMPTY_STRING,appVersion:r.YM.EMPTY_STRING},client:new I};if(Y?.protocolMode!==g.e.OIDC&&Y?.OIDCOptions&&new V.V(_e.loggerOptions).warning(JSON.stringify((0,B.aD)(G.bg))),Y?.protocolMode&&Y.protocolMode!==g.e.AAD&&_e?.allowNativeBroker)throw(0,B.aD)(G.J6);return{auth:{...we,...Y,OIDCOptions:{...we.OIDCOptions,...Y?.OIDCOptions}},cache:{...Ze,...q},system:_e,telemetry:{...Re,...Q}}}},1190:(Dt,ve,_)=>{"use strict";_.r(ve),_.d(ve,{StandardController:()=>br});var r=_(467),g=_(6888),R=_(2506),V=_(6211),H=_(1564),P=_(3986),b=_(7635),C=_(2144),S=_(7806),I=_(2729),B=_(4719),m=_(4561);const k=(nt,c,u,T,X)=>(...he)=>{u.trace(`Executing function ${c}`);const Ce=T?.startMeasurement(c,X);if(X){const ke=c+"CallCount";T?.incrementFields({[ke]:1},X)}try{const ke=nt(...he);return Ce?.end({success:!0}),u.trace(`Returning result from ${c}`),ke}catch(ke){u.trace(`Error occurred in ${c}`);try{u.trace(JSON.stringify(ke))}catch{u.trace("Unable to print error message.")}throw Ce?.end({success:!1},ke),ke}},D=(nt,c,u,T,X)=>(...he)=>{u.trace(`Executing function ${c}`);const Ce=T?.startMeasurement(c,X);if(X){const ke=c+"CallCount";T?.incrementFields({[ke]:1},X)}return T?.setPreQueueTime(c,X),nt(...he).then(ke=>(u.trace(`Returning result from ${c}`),Ce?.end({success:!0}),ke)).catch(ke=>{u.trace(`Error occurred in ${c}`);try{u.trace(JSON.stringify(ke))}catch{u.trace("Unable to print error message.")}throw Ce?.end({success:!1},ke),ke})};let K=(()=>{class nt{constructor(u,T,X,he){this.networkInterface=u,this.logger=T,this.performanceClient=X,this.correlationId=he}detectRegion(u,T){var X=this;return(0,r.A)(function*(){X.performanceClient?.addQueueMeasurement(m.MX.RegionDiscoveryDetectRegion,X.correlationId);let he=u;if(he)T.region_source=b.jZ.ENVIRONMENT_VARIABLE;else{const Ce=nt.IMDS_OPTIONS;try{const ke=yield D(X.getRegionFromIMDS.bind(X),m.MX.RegionDiscoveryGetRegionFromIMDS,X.logger,X.performanceClient,X.correlationId)(b.YM.IMDS_VERSION,Ce);if(ke.status===b.Kk.httpSuccess&&(he=ke.body,T.region_source=b.jZ.IMDS),ke.status===b.Kk.httpBadRequest){const ht=yield D(X.getCurrentVersion.bind(X),m.MX.RegionDiscoveryGetCurrentVersion,X.logger,X.performanceClient,X.correlationId)(Ce);if(!ht)return T.region_source=b.jZ.FAILED_AUTO_DETECTION,null;const At=yield D(X.getRegionFromIMDS.bind(X),m.MX.RegionDiscoveryGetRegionFromIMDS,X.logger,X.performanceClient,X.correlationId)(ht,Ce);At.status===b.Kk.httpSuccess&&(he=At.body,T.region_source=b.jZ.IMDS)}}catch{return T.region_source=b.jZ.FAILED_AUTO_DETECTION,null}}return he||(T.region_source=b.jZ.FAILED_AUTO_DETECTION),he||null})()}getRegionFromIMDS(u,T){var X=this;return(0,r.A)(function*(){return X.performanceClient?.addQueueMeasurement(m.MX.RegionDiscoveryGetRegionFromIMDS,X.correlationId),X.networkInterface.sendGetRequestAsync(`${b.YM.IMDS_ENDPOINT}?api-version=${u}&format=text`,T,b.YM.IMDS_TIMEOUT)})()}getCurrentVersion(u){var T=this;return(0,r.A)(function*(){T.performanceClient?.addQueueMeasurement(m.MX.RegionDiscoveryGetCurrentVersion,T.correlationId);try{const X=yield T.networkInterface.sendGetRequestAsync(`${b.YM.IMDS_ENDPOINT}?format=json`,u);return X.status===b.Kk.httpBadRequest&&X.body&&X.body["newest-versions"]&&X.body["newest-versions"].length>0?X.body["newest-versions"][0]:null}catch{return null}})()}}return nt.IMDS_OPTIONS={headers:{Metadata:"true"}},nt})();var de=_(3461),ie=_(2376),te=_(7172),se=_(5424);class z{constructor(c,u,T,X,he,Ce,ke){this.canonicalAuthority=c,this._canonicalAuthority.validateAsUri(),this.networkInterface=u,this.cacheManager=T,this.authorityOptions=X,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=he,this.performanceClient=ke,this.correlationId=Ce,this.regionDiscovery=new K(u,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(c){if(c.HostNameAndPort.endsWith(b.YM.CIAM_AUTH_URL))return V.I.Ciam;const u=c.PathSegments;if(u.length)switch(u[0].toLowerCase()){case b.YM.ADFS:return V.I.Adfs;case b.YM.DSTS:return V.I.Dsts}return V.I.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(c){this._canonicalAuthority=new H.H(c),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw(0,P.SB)(te.s1)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw(0,P.SB)(te.s1)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw(0,P.SB)(te.s1)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw(0,P.SB)(te.yX);return this.replacePath(this.metadata.end_session_endpoint)}throw(0,P.SB)(te.s1)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw(0,P.SB)(te.s1)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw(0,P.SB)(te.s1)}canReplaceTenant(c){return 1===c.PathSegments.length&&!z.reservedTenantDomains.has(c.PathSegments[0])&&this.getAuthorityType(c)===V.I.Default&&this.protocolMode===I.e.AAD}replaceTenant(c){return c.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(c){let u=c;const X=new H.H(this.metadata.canonical_authority).getUrlComponents(),he=X.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((ke,ht)=>{let At=he[ht];if(0===ht&&this.canReplaceTenant(X)){const Et=new H.H(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];At!==Et&&(this.logger.verbose(`Replacing tenant domain name ${At} with id ${Et}`),At=Et)}ke!==At&&(u=u.replace(`/${At}/`,`/${ke}/`))}),this.replaceTenant(u)}get defaultOpenIdConfigurationEndpoint(){const c=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===V.I.Adfs||this.protocolMode!==I.e.AAD&&!this.isAliasOfKnownMicrosoftAuthority(c)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}resolveEndpointsAsync(){var c=this;return(0,r.A)(function*(){c.performanceClient?.addQueueMeasurement(m.MX.AuthorityResolveEndpointsAsync,c.correlationId);const u=c.getCurrentMetadataEntity(),T=yield D(c.updateCloudDiscoveryMetadata.bind(c),m.MX.AuthorityUpdateCloudDiscoveryMetadata,c.logger,c.performanceClient,c.correlationId)(u);c.canonicalAuthority=c.canonicalAuthority.replace(c.hostnameAndPort,u.preferred_network);const X=yield D(c.updateEndpointMetadata.bind(c),m.MX.AuthorityUpdateEndpointMetadata,c.logger,c.performanceClient,c.correlationId)(u);c.updateCachedMetadata(u,T,{source:X}),c.performanceClient?.addFields({cloudDiscoverySource:T,authorityEndpointSource:X},c.correlationId)})()}getCurrentMetadataEntity(){let c=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);return c||(c={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:(0,ie.p7)(),jwks_uri:""}),c}updateCachedMetadata(c,u,T){u!==b.E_.CACHE&&T?.source!==b.E_.CACHE&&(c.expiresAt=(0,ie.p7)(),c.canonical_authority=this.canonicalAuthority);const X=this.cacheManager.generateAuthorityMetadataCacheKey(c.preferred_cache);this.cacheManager.setAuthorityMetadata(X,c),this.metadata=c}updateEndpointMetadata(c){var u=this;return(0,r.A)(function*(){u.performanceClient?.addQueueMeasurement(m.MX.AuthorityUpdateEndpointMetadata,u.correlationId);const T=u.updateEndpointMetadataFromLocalSources(c);if(T){if(T.source===b.E_.HARDCODED_VALUES&&u.authorityOptions.azureRegionConfiguration?.azureRegion&&T.metadata){const he=yield D(u.updateMetadataWithRegionalInformation.bind(u),m.MX.AuthorityUpdateMetadataWithRegionalInformation,u.logger,u.performanceClient,u.correlationId)(T.metadata);(0,ie.br)(c,he,!1),c.canonical_authority=u.canonicalAuthority}return T.source}let X=yield D(u.getEndpointMetadataFromNetwork.bind(u),m.MX.AuthorityGetEndpointMetadataFromNetwork,u.logger,u.performanceClient,u.correlationId)();if(X)return u.authorityOptions.azureRegionConfiguration?.azureRegion&&(X=yield D(u.updateMetadataWithRegionalInformation.bind(u),m.MX.AuthorityUpdateMetadataWithRegionalInformation,u.logger,u.performanceClient,u.correlationId)(X)),(0,ie.br)(c,X,!0),b.E_.NETWORK;throw(0,P.SB)(te.Ej,u.defaultOpenIdConfigurationEndpoint)})()}updateEndpointMetadataFromLocalSources(c){this.logger.verbose("Attempting to get endpoint metadata from authority configuration");const u=this.getEndpointMetadataFromConfig();if(u)return this.logger.verbose("Found endpoint metadata in authority configuration"),(0,ie.br)(c,u,!1),{source:b.E_.CONFIG};if(this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values."),this.authorityOptions.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get endpoint metadata from the network metadata cache.");else{const X=this.getEndpointMetadataFromHardcodedValues();if(X)return(0,ie.br)(c,X,!1),{source:b.E_.HARDCODED_VALUES,metadata:X};this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.")}const T=(0,ie.gl)(c);return this.isAuthoritySameType(c)&&c.endpointsFromNetwork&&!T?(this.logger.verbose("Found endpoint metadata in the cache."),{source:b.E_.CACHE}):(T&&this.logger.verbose("The metadata entity is expired."),null)}isAuthoritySameType(c){return new H.H(c.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw(0,S.aD)(se.uk)}return null}getEndpointMetadataFromNetwork(){var c=this;return(0,r.A)(function*(){c.performanceClient?.addQueueMeasurement(m.MX.AuthorityGetEndpointMetadataFromNetwork,c.correlationId);const u={},T=c.defaultOpenIdConfigurationEndpoint;c.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${T}`);try{const X=yield c.networkInterface.sendGetRequestAsync(T,u);return function U(nt){return nt.hasOwnProperty("authorization_endpoint")&&nt.hasOwnProperty("token_endpoint")&&nt.hasOwnProperty("issuer")&&nt.hasOwnProperty("jwks_uri")}(X.body)?X.body:(c.logger.verbose("Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration"),null)}catch(X){return c.logger.verbose(`Authority.getEndpointMetadataFromNetwork: ${X}`),null}})()}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in C.FI?C.FI[this.hostnameAndPort]:null}updateMetadataWithRegionalInformation(c){var u=this;return(0,r.A)(function*(){u.performanceClient?.addQueueMeasurement(m.MX.AuthorityUpdateMetadataWithRegionalInformation,u.correlationId);const T=u.authorityOptions.azureRegionConfiguration?.azureRegion;if(T){if(T!==b.YM.AZURE_REGION_AUTO_DISCOVER_FLAG)return u.regionDiscoveryMetadata.region_outcome=b._2.CONFIGURED_NO_AUTO_DETECTION,u.regionDiscoveryMetadata.region_used=T,z.replaceWithRegionalInformation(c,T);const X=yield D(u.regionDiscovery.detectRegion.bind(u.regionDiscovery),m.MX.RegionDiscoveryDetectRegion,u.logger,u.performanceClient,u.correlationId)(u.authorityOptions.azureRegionConfiguration?.environmentRegion,u.regionDiscoveryMetadata);if(X)return u.regionDiscoveryMetadata.region_outcome=b._2.AUTO_DETECTION_REQUESTED_SUCCESSFUL,u.regionDiscoveryMetadata.region_used=X,z.replaceWithRegionalInformation(c,X);u.regionDiscoveryMetadata.region_outcome=b._2.AUTO_DETECTION_REQUESTED_FAILED}return c})()}updateCloudDiscoveryMetadata(c){var u=this;return(0,r.A)(function*(){u.performanceClient?.addQueueMeasurement(m.MX.AuthorityUpdateCloudDiscoveryMetadata,u.correlationId);const T=u.updateCloudDiscoveryMetadataFromLocalSources(c);if(T)return T;const X=yield D(u.getCloudDiscoveryMetadataFromNetwork.bind(u),m.MX.AuthorityGetCloudDiscoveryMetadataFromNetwork,u.logger,u.performanceClient,u.correlationId)();if(X)return(0,ie.Ir)(c,X,!0),b.E_.NETWORK;throw(0,S.aD)(se.E0)})()}updateCloudDiscoveryMetadataFromLocalSources(c){this.logger.verbose("Attempting to get cloud discovery metadata  from authority configuration"),this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities||b.YM.NOT_APPLICABLE}`),this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata||b.YM.NOT_APPLICABLE}`),this.logger.verbosePii(`Canonical Authority: ${c.canonical_authority||b.YM.NOT_APPLICABLE}`);const u=this.getCloudDiscoveryMetadataFromConfig();if(u)return this.logger.verbose("Found cloud discovery metadata in authority configuration"),(0,ie.Ir)(c,u,!1),b.E_.CONFIG;if(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values."),this.options.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded cloud discovery metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get cloud discovery metadata from the network metadata cache.");else{const X=(0,C.hD)(this.hostnameAndPort);if(X)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),(0,ie.Ir)(c,X,!1),b.E_.HARDCODED_VALUES;this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.")}const T=(0,ie.gl)(c);return this.isAuthoritySameType(c)&&c.aliasesFromNetwork&&!T?(this.logger.verbose("Found cloud discovery metadata in the cache."),b.E_.CACHE):(T&&this.logger.verbose("The metadata entity is expired."),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===V.I.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),z.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");const c=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),u=(0,C.ao)(c.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),u)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),u;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),(0,S.aD)(se.a_)}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),z.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}getCloudDiscoveryMetadataFromNetwork(){var c=this;return(0,r.A)(function*(){c.performanceClient?.addQueueMeasurement(m.MX.AuthorityGetCloudDiscoveryMetadataFromNetwork,c.correlationId);const u=`${b.YM.AAD_INSTANCE_DISCOVERY_ENDPT}${c.canonicalAuthority}oauth2/v2.0/authorize`,T={};let X=null;try{const he=yield c.networkInterface.sendGetRequestAsync(u,T);let Ce,ke;if(function G(nt){return nt.hasOwnProperty("tenant_discovery_endpoint")&&nt.hasOwnProperty("metadata")}(he.body))Ce=he.body,ke=Ce.metadata,c.logger.verbosePii(`tenant_discovery_endpoint is: ${Ce.tenant_discovery_endpoint}`);else{if(!function x(nt){return nt.hasOwnProperty("error")&&nt.hasOwnProperty("error_description")}(he.body))return c.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),null;if(c.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${he.status}`),Ce=he.body,Ce.error===b.YM.INVALID_INSTANCE)return c.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),null;c.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is ${Ce.error}`),c.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is ${Ce.error_description}`),c.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),ke=[]}c.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),X=(0,C.ao)(ke,c.hostnameAndPort)}catch(he){return c.logger.error(he instanceof de.lR?`There was a network error while attempting to get the cloud discovery instance metadata.\nError: ${he.errorCode}\nError Description: ${he.errorMessage}`:`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\nError: ${he.name}\nError Description: ${he.message}`),null}return X||(c.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),c.logger.verbose("Creating custom Authority for custom domain scenario."),X=z.createCloudDiscoveryMetadataFromHost(c.hostnameAndPort)),X})()}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(u=>u&&H.H.getDomainFromUrl(u).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(c,u){let T;return u&&u.azureCloudInstance!==B._.None&&(T=`${u.azureCloudInstance}/${u.tenant?u.tenant:b.YM.DEFAULT_COMMON_TENANT}/`),T||c}static createCloudDiscoveryMetadataFromHost(c){return{preferred_network:c,preferred_cache:c,aliases:[c]}}getPreferredCache(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw(0,P.SB)(te.s1)}isAlias(c){return this.metadata.aliases.indexOf(c)>-1}isAliasOfKnownMicrosoftAuthority(c){return C.Jr.has(c)}static isPublicCloudAuthority(c){return b.YM.KNOWN_PUBLIC_CLOUDS.indexOf(c)>=0}static buildRegionalAuthorityString(c,u,T){const X=new H.H(c);X.validateAsUri();const he=X.getUrlComponents();let Ce=`${u}.${he.HostNameAndPort}`;this.isPublicCloudAuthority(he.HostNameAndPort)&&(Ce=`${u}.${b.YM.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);const ke=H.H.constructAuthorityUriFromObject({...X.getUrlComponents(),HostNameAndPort:Ce}).urlString;return T?`${ke}?${T}`:ke}static replaceWithRegionalInformation(c,u){const T={...c};return T.authorization_endpoint=z.buildRegionalAuthorityString(T.authorization_endpoint,u),T.token_endpoint=z.buildRegionalAuthorityString(T.token_endpoint,u),T.end_session_endpoint&&(T.end_session_endpoint=z.buildRegionalAuthorityString(T.end_session_endpoint,u)),T}static transformCIAMAuthority(c){let u=c;const X=new H.H(c).getUrlComponents();return 0===X.PathSegments.length&&X.HostNameAndPort.endsWith(b.YM.CIAM_AUTH_URL)&&(u=`${u}${X.HostNameAndPort.split(".")[0]}${b.YM.AAD_TENANT_DOMAIN_SUFFIX}`),u}}function Y(nt){return nt.endsWith(b.YM.FORWARD_SLASH)?nt:`${nt}${b.YM.FORWARD_SLASH}`}z.reservedTenantDomains=new Set(["{tenant}","{tenantid}",b.v2.COMMON,b.v2.CONSUMERS,b.v2.ORGANIZATIONS]);var ee=_(194),Q=_(1175),be=_(6564),we=_(8864),Ze=_(2030);class Ue{static setRequestState(c,u,T){const X=Ue.generateLibraryState(c,T);return u?`${X}${b.YM.RESOURCE_DELIM}${u}`:X}static generateLibraryState(c,u){if(!c)throw(0,P.SB)(te.oL);const T={id:c.createNewGuid()};u&&(T.meta=u);const X=JSON.stringify(T);return c.base64Encode(X)}static parseRequestState(c,u){if(!c)throw(0,P.SB)(te.oL);if(!u)throw(0,P.SB)(te.f$);try{const T=u.split(b.YM.RESOURCE_DELIM),X=T[0],he=T.length>1?T.slice(1).join(b.YM.RESOURCE_DELIM):b.YM.EMPTY_STRING,Ce=c.base64Decode(X),ke=JSON.parse(Ce);return{userRequestState:he||b.YM.EMPTY_STRING,libraryState:ke}}catch{throw(0,P.SB)(te.f$)}}}var _e=_(2895);class Re{constructor(c,u,T,X,he){this.account=c||null,this.idToken=u||null,this.accessToken=T||null,this.refreshToken=X||null,this.appMetadata=he||null}}var ae=_(6810),oe=_(7554),ge=_(4064),pe=_(3578);class Ae{constructor(c){this.validateWindowStorage(c),this.windowStorage=window[c]}validateWindowStorage(c){if(c!==oe.Al.LocalStorage&&c!==oe.Al.SessionStorage||!window[c])throw(0,ge.jz)(pe.xz)}getItem(c){return this.windowStorage.getItem(c)}setItem(c,u){this.windowStorage.setItem(c,u)}removeItem(c){this.windowStorage.removeItem(c)}getKeys(){return Object.keys(this.windowStorage)}containsKey(c){return this.windowStorage.hasOwnProperty(c)}}var Pe=_(8390);function We(nt,c){if(!c)return null;try{return Ue.parseRequestState(nt,c).libraryState.meta}catch{throw(0,P.SB)(te.f$)}}var Ge=_(379),ut=_(6195),Fe=_(6588);class tt extends we.G{constructor(c,u,T,X,he){super(c,T,X,he),this.COOKIE_LIFE_MULTIPLIER=864e5,this.cacheConfig=u,this.logger=X,this.internalStorage=new Pe.X,this.browserStorage=this.setupBrowserStorage(this.cacheConfig.cacheLocation),this.temporaryCacheStorage=this.setupTemporaryCacheStorage(this.cacheConfig.temporaryCacheLocation,this.cacheConfig.cacheLocation),u.cacheMigrationEnabled&&(this.migrateCacheEntries(),this.createKeyMaps())}setupBrowserStorage(c){switch(c){case oe.Al.LocalStorage:case oe.Al.SessionStorage:try{return new Ae(c)}catch(u){this.logger.verbose(u);break}}return this.cacheConfig.cacheLocation=oe.Al.MemoryStorage,new Pe.X}setupTemporaryCacheStorage(c,u){switch(u){case oe.Al.LocalStorage:case oe.Al.SessionStorage:try{return new Ae(c||oe.Al.SessionStorage)}catch(T){return this.logger.verbose(T),this.internalStorage}default:return this.internalStorage}}migrateCacheEntries(){const u=`${b.YM.CACHE_PREFIX}.${b.Gd.CLIENT_INFO}`,T=`${b.YM.CACHE_PREFIX}.${b.Gd.ERROR}`,X=`${b.YM.CACHE_PREFIX}.${b.Gd.ERROR_DESC}`,At=[this.browserStorage.getItem(`${b.YM.CACHE_PREFIX}.${b.Gd.ID_TOKEN}`),this.browserStorage.getItem(u),this.browserStorage.getItem(T),this.browserStorage.getItem(X)];[b.Gd.ID_TOKEN,b.Gd.CLIENT_INFO,b.Gd.ERROR,b.Gd.ERROR_DESC].forEach((Kt,pn)=>{const An=At[pn];An&&this.setTemporaryCache(Kt,An,!0)})}createKeyMaps(){this.logger.trace("BrowserCacheManager - createKeyMaps called.");const c=this.getItem(oe.dh.ACCOUNT_KEYS),u=this.getItem(`${oe.dh.TOKEN_KEYS}.${this.clientId}`);c&&u?this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration."):this.browserStorage.getKeys().forEach(X=>{if(this.isCredentialKey(X)){const he=this.getItem(X);if(he){const Ce=this.validateAndParseJson(he);if(Ce&&Ce.hasOwnProperty("credentialType"))switch(Ce.credentialType){case b.aG.ID_TOKEN:if(ie.Kx(Ce)){this.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - idToken with key: ${X} found, saving key to token key map`);const ht=this.updateCredentialCacheKey(X,Ce);return void this.addTokenKey(ht,b.aG.ID_TOKEN)}this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed idToken validation on key: ${X}`);break;case b.aG.ACCESS_TOKEN:case b.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(ie.dj(Ce)){this.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - accessToken with key: ${X} found, saving key to token key map`);const ht=this.updateCredentialCacheKey(X,Ce);return void this.addTokenKey(ht,b.aG.ACCESS_TOKEN)}this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed accessToken validation on key: ${X}`);break;case b.aG.REFRESH_TOKEN:if(ie.WB(Ce)){this.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - refreshToken with key: ${X} found, saving key to token key map`);const ht=this.updateCredentialCacheKey(X,Ce);return void this.addTokenKey(ht,b.aG.REFRESH_TOKEN)}this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: ${X}`)}}}if(this.isAccountKey(X)){const he=this.getItem(X);if(he){const Ce=this.validateAndParseJson(he);Ce&&Q.d.isAccountEntity(Ce)&&(this.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - account with key: ${X} found, saving key to account key map`),this.addAccountKeyToMap(X))}}})}validateAndParseJson(c){try{const u=JSON.parse(c);return u&&"object"==typeof u?u:null}catch{return null}}getItem(c){return this.browserStorage.getItem(c)}setItem(c,u){this.browserStorage.setItem(c,u)}getAccount(c,u){this.logger.trace("BrowserCacheManager.getAccount called");const T=this.getCachedAccountEntity(c);return this.updateOutdatedCachedAccount(c,T,u)}getCachedAccountEntity(c){const u=this.getItem(c);if(!u)return this.removeAccountKeyFromMap(c),null;const T=this.validateAndParseJson(u);return T&&Q.d.isAccountEntity(T)?we.G.toObject(new Q.d,T):(this.removeAccountKeyFromMap(c),null)}setAccount(c){this.logger.trace("BrowserCacheManager.setAccount called");const u=c.generateAccountKey();this.setItem(u,JSON.stringify(c)),this.addAccountKeyToMap(u)}getAccountKeys(){this.logger.trace("BrowserCacheManager.getAccountKeys called");const c=this.getItem(oe.dh.ACCOUNT_KEYS);return c?JSON.parse(c):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])}addAccountKeyToMap(c){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${c}`);const u=this.getAccountKeys();-1===u.indexOf(c)?(u.push(c),this.setItem(oe.dh.ACCOUNT_KEYS,JSON.stringify(u)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")}removeAccountKeyFromMap(c){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${c}`);const u=this.getAccountKeys(),T=u.indexOf(c);T>-1?(u.splice(T,1),this.setItem(oe.dh.ACCOUNT_KEYS,JSON.stringify(u)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")}removeAccount(c){var u=()=>super.removeAccount,T=this;return(0,r.A)(function*(){u().call(T,c),T.removeAccountKeyFromMap(c)})()}removeOutdatedAccount(c){this.removeItem(c),this.removeAccountKeyFromMap(c)}removeIdToken(c){super.removeIdToken(c),this.removeTokenKey(c,b.aG.ID_TOKEN)}removeAccessToken(c){var u=()=>super.removeAccessToken,T=this;return(0,r.A)(function*(){u().call(T,c),T.removeTokenKey(c,b.aG.ACCESS_TOKEN)})()}removeRefreshToken(c){super.removeRefreshToken(c),this.removeTokenKey(c,b.aG.REFRESH_TOKEN)}getTokenKeys(){this.logger.trace("BrowserCacheManager.getTokenKeys called");const c=this.getItem(`${oe.dh.TOKEN_KEYS}.${this.clientId}`);if(c){const u=this.validateAndParseJson(c);if(u&&u.hasOwnProperty("idToken")&&u.hasOwnProperty("accessToken")&&u.hasOwnProperty("refreshToken"))return u;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}}addTokenKey(c,u){this.logger.trace("BrowserCacheManager addTokenKey called");const T=this.getTokenKeys();switch(u){case b.aG.ID_TOKEN:-1===T.idToken.indexOf(c)&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),T.idToken.push(c));break;case b.aG.ACCESS_TOKEN:-1===T.accessToken.indexOf(c)&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),T.accessToken.push(c));break;case b.aG.REFRESH_TOKEN:-1===T.refreshToken.indexOf(c)&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),T.refreshToken.push(c));break;default:throw this.logger.error(`BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: ${u}`),(0,P.SB)(te.Zj)}this.setItem(`${oe.dh.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(T))}removeTokenKey(c,u){this.logger.trace("BrowserCacheManager removeTokenKey called");const T=this.getTokenKeys();switch(u){case b.aG.ID_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: ${c} from map`);const X=T.idToken.indexOf(c);X>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),T.idToken.splice(X,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case b.aG.ACCESS_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: ${c} from map`);const he=T.accessToken.indexOf(c);he>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),T.accessToken.splice(he,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case b.aG.REFRESH_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: ${c} from map`);const Ce=T.refreshToken.indexOf(c);Ce>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),T.refreshToken.splice(Ce,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:throw this.logger.error(`BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: ${u}`),(0,P.SB)(te.Zj)}this.setItem(`${oe.dh.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(T))}getIdTokenCredential(c){const u=this.getItem(c);if(!u)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(c,b.aG.ID_TOKEN),null;const T=this.validateAndParseJson(u);return T&&ie.Kx(T)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),T):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(c,b.aG.ID_TOKEN),null)}setIdTokenCredential(c){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");const u=ie.og(c);this.setItem(u,JSON.stringify(c)),this.addTokenKey(u,b.aG.ID_TOKEN)}getAccessTokenCredential(c){const u=this.getItem(c);if(!u)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(c,b.aG.ACCESS_TOKEN),null;const T=this.validateAndParseJson(u);return T&&ie.dj(T)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),T):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(c,b.aG.ACCESS_TOKEN),null)}setAccessTokenCredential(c){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");const u=ie.og(c);this.setItem(u,JSON.stringify(c)),this.addTokenKey(u,b.aG.ACCESS_TOKEN)}getRefreshTokenCredential(c){const u=this.getItem(c);if(!u)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(c,b.aG.REFRESH_TOKEN),null;const T=this.validateAndParseJson(u);return T&&ie.WB(T)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),T):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(c,b.aG.REFRESH_TOKEN),null)}setRefreshTokenCredential(c){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");const u=ie.og(c);this.setItem(u,JSON.stringify(c)),this.addTokenKey(u,b.aG.REFRESH_TOKEN)}getAppMetadata(c){const u=this.getItem(c);if(!u)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;const T=this.validateAndParseJson(u);return T&&ie.ki(c,T)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),T):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null)}setAppMetadata(c){this.logger.trace("BrowserCacheManager.setAppMetadata called");const u=ie.JP(c);this.setItem(u,JSON.stringify(c))}getServerTelemetry(c){const u=this.getItem(c);if(!u)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;const T=this.validateAndParseJson(u);return T&&ie.ur(c,T)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),T):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)}setServerTelemetry(c,u){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(c,JSON.stringify(u))}getAuthorityMetadata(c){const u=this.internalStorage.getItem(c);if(!u)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;const T=this.validateAndParseJson(u);return T&&ie.ey(c,T)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),T):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(u=>this.isAuthorityMetadata(u))}setWrapperMetadata(c,u){this.internalStorage.setItem(oe.H3.WRAPPER_SKU,c),this.internalStorage.setItem(oe.H3.WRAPPER_VER,u)}getWrapperMetadata(){return[this.internalStorage.getItem(oe.H3.WRAPPER_SKU)||b.YM.EMPTY_STRING,this.internalStorage.getItem(oe.H3.WRAPPER_VER)||b.YM.EMPTY_STRING]}setAuthorityMetadata(c,u){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(c,JSON.stringify(u))}getActiveAccount(){const c=this.generateCacheKey(b.Gd.ACTIVE_ACCOUNT_FILTERS),u=this.getItem(c);if(!u){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");const X=this.generateCacheKey(b.Gd.ACTIVE_ACCOUNT),he=this.getItem(X);if(!he)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;const Ce=this.getAccountInfoFilteredBy({localAccountId:he});return Ce?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(Ce),Ce):null}const T=this.validateAndParseJson(u);return T?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoFilteredBy({homeAccountId:T.homeAccountId,localAccountId:T.localAccountId,tenantId:T.tenantId})):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)}setActiveAccount(c){const u=this.generateCacheKey(b.Gd.ACTIVE_ACCOUNT_FILTERS),T=this.generateCacheKey(b.Gd.ACTIVE_ACCOUNT);c?(this.logger.verbose("setActiveAccount: Active account set"),this.browserStorage.setItem(u,JSON.stringify({homeAccountId:c.homeAccountId,localAccountId:c.localAccountId,tenantId:c.tenantId})),this.browserStorage.setItem(T,c.localAccountId)):(this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(u),this.browserStorage.removeItem(T))}getThrottlingCache(c){const u=this.getItem(c);if(!u)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;const T=this.validateAndParseJson(u);return T&&ie.r1(c,T)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),T):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)}setThrottlingCache(c,u){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(c,JSON.stringify(u))}getTemporaryCache(c,u){const T=u?this.generateCacheKey(c):c;if(this.cacheConfig.storeAuthStateInCookie){const he=this.getItemCookie(T);if(he)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),he}const X=this.temporaryCacheStorage.getItem(T);if(!X){if(this.cacheConfig.cacheLocation===oe.Al.LocalStorage){const he=this.browserStorage.getItem(T);if(he)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),he}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),X}setTemporaryCache(c,u,T){const X=T?this.generateCacheKey(c):c;this.temporaryCacheStorage.setItem(X,u),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(X,u))}removeItem(c){this.browserStorage.removeItem(c)}removeTemporaryItem(c){this.temporaryCacheStorage.removeItem(c),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(c))}getKeys(){return this.browserStorage.getKeys()}clear(){var c=this;return(0,r.A)(function*(){yield c.removeAllAccounts(),c.removeAppMetadata(),c.temporaryCacheStorage.getKeys().forEach(u=>{(-1!==u.indexOf(b.YM.CACHE_PREFIX)||-1!==u.indexOf(c.clientId))&&c.removeTemporaryItem(u)}),c.browserStorage.getKeys().forEach(u=>{(-1!==u.indexOf(b.YM.CACHE_PREFIX)||-1!==u.indexOf(c.clientId))&&c.browserStorage.removeItem(u)}),c.internalStorage.clear()})()}clearTokensAndKeysWithClaims(c){var u=this;return(0,r.A)(function*(){c.addQueueMeasurement(m.MX.ClearTokensAndKeysWithClaims);const T=u.getTokenKeys(),X=[];T.accessToken.forEach(he=>{const Ce=u.getAccessTokenCredential(he);Ce?.requestedClaimsHash&&he.includes(Ce.requestedClaimsHash.toLowerCase())&&X.push(u.removeAccessToken(he))}),yield Promise.all(X),X.length>0&&u.logger.warning(`${X.length} access tokens with claims in the cache keys have been removed from the cache.`)})()}setItemCookie(c,u,T){let X=`${encodeURIComponent(c)}=${encodeURIComponent(u)};path=/;SameSite=Lax;`;T&&(X+=`expires=${this.getCookieExpirationTime(T)};`),this.cacheConfig.secureCookies&&(X+="Secure;"),document.cookie=X}getItemCookie(c){const u=`${encodeURIComponent(c)}=`,T=document.cookie.split(";");for(let X=0;X<T.length;X++){let he=T[X];for(;" "===he.charAt(0);)he=he.substring(1);if(0===he.indexOf(u))return decodeURIComponent(he.substring(u.length,he.length))}return b.YM.EMPTY_STRING}clearMsalCookies(){const c=`${b.YM.CACHE_PREFIX}.${this.clientId}`;document.cookie.split(";").forEach(T=>{for(;" "===T.charAt(0);)T=T.substring(1);if(0===T.indexOf(c)){const X=T.split("=")[0];this.clearItemCookie(X)}})}clearItemCookie(c){this.setItemCookie(c,b.YM.EMPTY_STRING,-1)}getCookieExpirationTime(c){return new Date((new Date).getTime()+c*this.COOKIE_LIFE_MULTIPLIER).toUTCString()}generateCacheKey(c){return this.validateAndParseJson(c)?JSON.stringify(c):Ze.$.startsWith(c,b.YM.CACHE_PREFIX)||Ze.$.startsWith(c,b.Gd.ADAL_ID_TOKEN)?c:`${b.YM.CACHE_PREFIX}.${this.clientId}.${c}`}generateAuthorityKey(c){const{libraryState:{id:u}}=Ue.parseRequestState(this.cryptoImpl,c);return this.generateCacheKey(`${oe._p.AUTHORITY}.${u}`)}generateNonceKey(c){const{libraryState:{id:u}}=Ue.parseRequestState(this.cryptoImpl,c);return this.generateCacheKey(`${oe._p.NONCE_IDTOKEN}.${u}`)}generateStateKey(c){const{libraryState:{id:u}}=Ue.parseRequestState(this.cryptoImpl,c);return this.generateCacheKey(`${oe._p.REQUEST_STATE}.${u}`)}getCachedAuthority(c){const u=this.generateStateKey(c),T=this.getTemporaryCache(u);if(!T)return null;const X=this.generateAuthorityKey(T);return this.getTemporaryCache(X)}updateCacheEntries(c,u,T,X,he){this.logger.trace("BrowserCacheManager.updateCacheEntries called");const Ce=this.generateStateKey(c);this.setTemporaryCache(Ce,c,!1);const ke=this.generateNonceKey(c);this.setTemporaryCache(ke,u,!1);const ht=this.generateAuthorityKey(c);this.setTemporaryCache(ht,T,!1),he?this.setTemporaryCache(oe._p.CCS_CREDENTIAL,JSON.stringify({credential:he.homeAccountId,type:"home_account_id"}),!0):X&&this.setTemporaryCache(oe._p.CCS_CREDENTIAL,JSON.stringify({credential:X,type:"UPN"}),!0)}resetRequestCache(c){this.logger.trace("BrowserCacheManager.resetRequestCache called"),c&&(this.temporaryCacheStorage.getKeys().forEach(u=>{-1!==u.indexOf(c)&&this.removeTemporaryItem(u)}),this.removeTemporaryItem(this.generateStateKey(c)),this.removeTemporaryItem(this.generateNonceKey(c)),this.removeTemporaryItem(this.generateAuthorityKey(c))),this.removeTemporaryItem(this.generateCacheKey(oe._p.REQUEST_PARAMS)),this.removeTemporaryItem(this.generateCacheKey(oe._p.ORIGIN_URI)),this.removeTemporaryItem(this.generateCacheKey(oe._p.URL_HASH)),this.removeTemporaryItem(this.generateCacheKey(oe._p.CORRELATION_ID)),this.removeTemporaryItem(this.generateCacheKey(oe._p.CCS_CREDENTIAL)),this.removeTemporaryItem(this.generateCacheKey(oe._p.NATIVE_REQUEST)),this.setInteractionInProgress(!1)}cleanRequestByState(c){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),c){const u=this.generateStateKey(c),T=this.temporaryCacheStorage.getItem(u);this.logger.infoPii(`BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: ${T}`),this.resetRequestCache(T||b.YM.EMPTY_STRING)}this.clearMsalCookies()}cleanRequestByInteractionType(c){this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.temporaryCacheStorage.getKeys().forEach(u=>{if(-1===u.indexOf(oe._p.REQUEST_STATE))return;const T=this.temporaryCacheStorage.getItem(u);if(!T)return;const X=We(this.cryptoImpl,T);X&&X.interactionType===c&&(this.logger.infoPii(`BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: ${T}`),this.resetRequestCache(T))}),this.clearMsalCookies(),this.setInteractionInProgress(!1)}cacheCodeRequest(c){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");const u=(0,ut.KA)(JSON.stringify(c));this.setTemporaryCache(oe._p.REQUEST_PARAMS,u,!0)}getCachedRequest(c){this.logger.trace("BrowserCacheManager.getCachedRequest called");const u=this.getTemporaryCache(oe._p.REQUEST_PARAMS,!0);if(!u)throw(0,ae.bD)(Fe.y6);let T;try{T=JSON.parse((0,Ge.u)(u))}catch(X){throw this.logger.errorPii(`Attempted to parse: ${u}`),this.logger.error(`Parsing cached token request threw with error: ${X}`),(0,ae.bD)(Fe.ot)}if(this.removeTemporaryItem(this.generateCacheKey(oe._p.REQUEST_PARAMS)),!T.authority){const X=this.generateAuthorityKey(c),he=this.getTemporaryCache(X);if(!he)throw(0,ae.bD)(Fe.Ne);T.authority=he}return T}getCachedNativeRequest(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");const c=this.getTemporaryCache(oe._p.NATIVE_REQUEST,!0);return c?this.validateAndParseJson(c)||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null):(this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null)}isInteractionInProgress(c){const u=this.getInteractionInProgress();return c?u===this.clientId:!!u}getInteractionInProgress(){return this.getTemporaryCache(`${b.YM.CACHE_PREFIX}.${oe._p.INTERACTION_STATUS_KEY}`,!1)}setInteractionInProgress(c){const u=`${b.YM.CACHE_PREFIX}.${oe._p.INTERACTION_STATUS_KEY}`;if(c){if(this.getInteractionInProgress())throw(0,ae.bD)(Fe.b);this.setTemporaryCache(u,this.clientId,!1)}else!c&&this.getInteractionInProgress()===this.clientId&&this.removeTemporaryItem(u)}getLegacyLoginHint(){const c=this.getTemporaryCache(b.Gd.ADAL_ID_TOKEN);c&&(this.browserStorage.removeItem(b.Gd.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));const u=this.getTemporaryCache(b.Gd.ID_TOKEN,!0);u&&(this.browserStorage.removeItem(this.generateCacheKey(b.Gd.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));const T=u||c;if(T){const X=_e.My(T,Ge.u);if(X.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),X.preferred_username;if(X.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),X.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null}updateCredentialCacheKey(c,u){const T=ie.og(u);if(c!==T){const X=this.getItem(c);if(X)return this.browserStorage.removeItem(c),this.setItem(T,X),this.logger.verbose(`Updated an outdated ${u.credentialType} cache key`),T;this.logger.error(`Attempted to update an outdated ${u.credentialType} cache key but no item matching the outdated key was found in storage`)}return c}hydrateCache(c,u){var T=this;return(0,r.A)(function*(){const X=ie.c_(c.account?.homeAccountId,c.account?.environment,c.idToken,T.clientId,c.tenantId);let he;u.claims&&(he=yield T.cryptoImpl.hashString(u.claims));const Ce=ie.Np(c.account?.homeAccountId,c.account.environment,c.accessToken,T.clientId,c.tenantId,c.scopes.join(" "),c.expiresOn?.getTime()||0,c.extExpiresOn?.getTime()||0,Ge.u,void 0,c.tokenType,void 0,u.sshKid,u.claims,he),ke=new Re(void 0,X,Ce);return T.saveCacheRecord(ke)})()}}var ct=_(1474),St=_(3212),Gt=_(1036),it=_(6708);class Xe{static generateThrottlingStorageKey(c){return`${b.Xw.THROTTLING_PREFIX}.${JSON.stringify(c)}`}static preProcess(c,u){const T=Xe.generateThrottlingStorageKey(u),X=c.getThrottlingCache(T);if(X){if(X.throttleTime<Date.now())return void c.removeItem(T);throw new it.g(X.errorCodes?.join(" ")||b.YM.EMPTY_STRING,X.errorMessage,X.subError)}}static postProcess(c,u,T){if(Xe.checkResponseStatus(T)||Xe.checkResponseForRetryAfter(T)){const X={throttleTime:Xe.calculateThrottleTime(parseInt(T.headers[b.OK.RETRY_AFTER])),error:T.body.error,errorCodes:T.body.error_codes,errorMessage:T.body.error_description,subError:T.body.suberror};c.setThrottlingCache(Xe.generateThrottlingStorageKey(u),X)}}static checkResponseStatus(c){return 429===c.status||c.status>=500&&c.status<600}static checkResponseForRetryAfter(c){return!!c.headers&&c.headers.hasOwnProperty(b.OK.RETRY_AFTER)&&(c.status<200||c.status>=300)}static calculateThrottleTime(c){const u=c<=0?0:c,T=Date.now()/1e3;return Math.floor(1e3*Math.min(T+(u||b.Xw.DEFAULT_THROTTLE_TIME_SECONDS),T+b.Xw.DEFAULT_MAX_THROTTLE_TIME_SECONDS))}static removeThrottle(c,u,T,X){const Ce=this.generateThrottlingStorageKey({clientId:u,authority:T.authority,scopes:T.scopes,homeAccountIdentifier:X,claims:T.claims,authenticationScheme:T.authenticationScheme,resourceRequestMethod:T.resourceRequestMethod,resourceRequestUri:T.resourceRequestUri,shrClaims:T.shrClaims,sshKid:T.sshKid});c.removeItem(Ce)}}var wt=_(6964);class at{constructor(c,u){this.networkClient=c,this.cacheManager=u}sendPostRequest(c,u,T){var X=this;return(0,r.A)(function*(){let he;Xe.preProcess(X.cacheManager,c);try{he=yield X.networkClient.sendPostRequestAsync(u,T)}catch(Ce){throw Ce instanceof de.lR?Ce:(0,P.SB)(te.x6)}return Xe.postProcess(X.cacheManager,c,he),he})()}}var vt=_(8173),$t=_(4481),tn=_(5007),qt=_(845);function Fn(nt,c,u,T,X,he,Ce){return Nn.apply(this,arguments)}function Nn(){return(Nn=(0,r.A)(function*(nt,c,u,T,X,he,Ce){Ce?.addQueueMeasurement(m.MX.AuthorityFactoryCreateDiscoveredInstance,he);const ke=z.transformCIAMAuthority(Y(nt)),ht=new z(ke,c,u,T,X,he,Ce);try{return yield D(ht.resolveEndpointsAsync.bind(ht),m.MX.AuthorityResolveEndpointsAsync,X,Ce,he)(),ht}catch{throw(0,P.SB)(te.s1)}})).apply(this,arguments)}class Ht{constructor(c,u){this.config=(0,wt.GF)(c),this.logger=new vt.V(this.config.loggerOptions,$t.U,$t.r),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new at(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=u}createTokenRequestHeaders(c){const u={};if(u[b.OK.CONTENT_TYPE]=b.YM.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&c)switch(c.type){case"home_account_id":try{const T=(0,tn.Z)(c.credential);u[b.OK.CCS_HEADER]=`Oid:${T.uid}@${T.utid}`}catch(T){this.logger.verbose("Could not parse home account ID for CCS Header: "+T)}break;case"UPN":u[b.OK.CCS_HEADER]=`UPN: ${c.credential}`}return u}executePostToTokenEndpoint(c,u,T,X,he,Ce){var ke=this;return(0,r.A)(function*(){Ce&&ke.performanceClient?.addQueueMeasurement(Ce,he);const ht=yield ke.networkManager.sendPostRequest(X,c,{body:u,headers:T});return ke.performanceClient?.addFields({refreshTokenSize:ht.body.refresh_token?.length||0,httpVerToken:ht.headers?.[b.OK.X_MS_HTTP_VERSION]||""},he),ke.config.serverTelemetryManager&&ht.status<500&&429!==ht.status&&ke.config.serverTelemetryManager.clearTelemetryCache(),ht})()}updateAuthority(c,u){var T=this;return(0,r.A)(function*(){T.performanceClient?.addQueueMeasurement(m.MX.UpdateTokenEndpointAuthority,u);const X=`https://${c}/${T.authority.tenant}/`,he=yield Fn(X,T.networkClient,T.cacheManager,T.authority.options,T.logger,u,T.performanceClient);T.authority=he})()}createTokenQueryParameters(c){const u=new qt.W;return c.tokenQueryParameters&&u.addExtraQueryParameters(c.tokenQueryParameters),u.createQueryString()}}var jt=_(1586),yn=_(6812),Ln=_(6134);class Fr{constructor(c,u){this.cryptoUtils=c,this.performanceClient=u}generateCnf(c,u){var T=this;return(0,r.A)(function*(){T.performanceClient?.addQueueMeasurement(m.MX.PopTokenGenerateCnf,c.correlationId);const X=yield D(T.generateKid.bind(T),m.MX.PopTokenGenerateCnf,u,T.performanceClient,c.correlationId)(c),he=T.cryptoUtils.base64Encode(JSON.stringify(X));return{kid:X.kid,reqCnfString:he,reqCnfHash:yield T.cryptoUtils.hashString(he)}})()}generateKid(c){var u=this;return(0,r.A)(function*(){return u.performanceClient?.addQueueMeasurement(m.MX.PopTokenGenerateKid,c.correlationId),{kid:yield u.cryptoUtils.getPublicKeyThumbprint(c),xms_ksl:"sw"}})()}signPopToken(c,u,T){var X=this;return(0,r.A)(function*(){return X.signPayload(c,u,T)})()}signPayload(c,u,T,X){var he=this;return(0,r.A)(function*(){const{resourceRequestMethod:Ce,resourceRequestUri:ke,shrClaims:ht,shrNonce:At,shrOptions:Et}=T,pn=(ke?new H.H(ke):void 0)?.getUrlComponents();return he.cryptoUtils.signJwt({at:c,ts:(0,Ln._C)(),m:Ce?.toUpperCase(),u:pn?.HostNameAndPort,nonce:At||he.cryptoUtils.createNewGuid(),p:pn?.AbsolutePath,q:pn?.QueryString?[[],pn.QueryString]:void 0,client_claims:ht||void 0,...X},u,Et,T.correlationId)})()}}class lr{constructor(c,u){this.cache=c,this.hasChanged=u}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}}var bi=_(8266),hn=_(495);class yr{constructor(c,u,T,X,he,Ce,ke){this.clientId=c,this.cacheStorage=u,this.cryptoObj=T,this.logger=X,this.serializableCache=he,this.persistencePlugin=Ce,this.performanceClient=ke}validateServerAuthorizationCodeResponse(c,u){if(!c.state||!u)throw(0,P.SB)(te.tQ,c.state?"Cached State":"Server State");let T,X;try{T=decodeURIComponent(c.state)}catch{throw(0,P.SB)(te.f$,c.state)}try{X=decodeURIComponent(u)}catch{throw(0,P.SB)(te.f$,c.state)}if(T!==X)throw(0,P.SB)(te.Cl);if(c.error||c.error_description||c.suberror)throw(0,ee.a)(c.error,c.error_description,c.suberror)?new ee.CB(c.error||"",c.error_description,c.suberror,c.timestamp||"",c.trace_id||"",c.correlation_id||"",c.claims||""):new it.g(c.error||"",c.error_description,c.suberror)}validateTokenResponse(c,u){if(c.error||c.error_description||c.suberror){const X=new it.g(c.error,`${c.error_codes} - [${c.timestamp}]: ${c.error_description} - Correlation ID: ${c.correlation_id} - Trace ID: ${c.trace_id}`,c.suberror);if(u&&c.status&&c.status>=b.t3.SERVER_ERROR_RANGE_START&&c.status<=b.t3.SERVER_ERROR_RANGE_END)return void this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed.\n${X}`);if(u&&c.status&&c.status>=b.t3.CLIENT_ERROR_RANGE_START&&c.status<=b.t3.CLIENT_ERROR_RANGE_END)return void this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently available but is unable to refresh the access token.\n${X}`);throw(0,ee.a)(c.error,c.error_description,c.suberror)?new ee.CB(c.error,c.error_description,c.suberror,c.timestamp||b.YM.EMPTY_STRING,c.trace_id||b.YM.EMPTY_STRING,c.correlation_id||b.YM.EMPTY_STRING,c.claims||b.YM.EMPTY_STRING):X}}handleServerTokenResponse(c,u,T,X,he,Ce,ke,ht,At){var Et=this;return(0,r.A)(function*(){let Kt,pn;if(Et.performanceClient?.addQueueMeasurement(m.MX.HandleServerTokenResponse,c.correlation_id),c.id_token){if(Kt=(0,_e.My)(c.id_token||b.YM.EMPTY_STRING,Et.cryptoObj.base64Decode),he&&he.nonce&&Kt.nonce!==he.nonce)throw(0,P.SB)(te.aQ);if(X.maxAge||0===X.maxAge){const Zn=Kt.auth_time;if(!Zn)throw(0,P.SB)(te.n3);(0,_e.al)(Zn,X.maxAge)}}Et.homeAccountIdentifier=Q.d.generateHomeAccountId(c.client_info||b.YM.EMPTY_STRING,u.authorityType,Et.logger,Et.cryptoObj,Kt),he&&he.state&&(pn=Ue.parseRequestState(Et.cryptoObj,he.state)),c.key_id=c.key_id||X.sshKid||void 0;const An=Et.generateCacheRecord(c,u,T,X,Kt,Ce,he);let Qn;try{if(Et.persistencePlugin&&Et.serializableCache&&(Et.logger.verbose("Persistence enabled, calling beforeCacheAccess"),Qn=new lr(Et.serializableCache,!0),yield Et.persistencePlugin.beforeCacheAccess(Qn)),ke&&!ht&&An.account){const Zn=An.account.generateAccountKey();if(!Et.cacheStorage.getAccount(Zn,Et.logger))return Et.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),yield yr.generateAuthenticationResult(Et.cryptoObj,u,An,!1,X,Kt,pn,void 0,At)}yield Et.cacheStorage.saveCacheRecord(An,X.storeInCache)}finally{Et.persistencePlugin&&Et.serializableCache&&Qn&&(Et.logger.verbose("Persistence enabled, calling afterCacheAccess"),yield Et.persistencePlugin.afterCacheAccess(Qn))}return yr.generateAuthenticationResult(Et.cryptoObj,u,An,!1,X,Kt,pn,c,At)})()}generateCacheRecord(c,u,T,X,he,Ce,ke){const ht=u.getPreferredCache();if(!ht)throw(0,P.SB)(te.l3);const At=(0,bi.r)(he);let Et,Kt;c.id_token&&he&&(Et=(0,ie.c_)(this.homeAccountIdentifier,ht,c.id_token,this.clientId,At||""),Kt=bn(this.cacheStorage,u,this.homeAccountIdentifier,he,this.cryptoObj.base64Decode,c.client_info,ht,At,ke,void 0,this.logger));let pn=null;if(c.access_token){const Zn=c.scope?yn.l.fromString(c.scope):new yn.l(X.scopes||[]),Dr=("string"==typeof c.expires_in?parseInt(c.expires_in,10):c.expires_in)||0,hi=("string"==typeof c.ext_expires_in?parseInt(c.ext_expires_in,10):c.ext_expires_in)||0,Ci=("string"==typeof c.refresh_in?parseInt(c.refresh_in,10):c.refresh_in)||void 0,Ri=T+Dr,Pi=Ri+hi,zr=Ci&&Ci>0?T+Ci:void 0;pn=(0,ie.Np)(this.homeAccountIdentifier,ht,c.access_token,this.clientId,At||u.tenant||"",Zn.printScopes(),Ri,Pi,this.cryptoObj.base64Decode,zr,c.token_type,Ce,c.key_id,X.claims,X.requestedClaimsHash)}let An=null;if(c.refresh_token){let Zn;c.refresh_token_expires_in&&(Zn=T+("string"==typeof c.refresh_token_expires_in?parseInt(c.refresh_token_expires_in,10):c.refresh_token_expires_in)),An=(0,ie.Mg)(this.homeAccountIdentifier,ht,c.refresh_token,this.clientId,c.foci,Ce,Zn)}let Qn=null;return c.foci&&(Qn={clientId:this.clientId,environment:ht,familyId:c.foci}),new Re(Kt,Et,pn,An,Qn)}static generateAuthenticationResult(c,u,T,X,he,Ce,ke,ht,At){return(0,r.A)(function*(){let An,Qn,Et=b.YM.EMPTY_STRING,Kt=[],pn=null,Zn=b.YM.EMPTY_STRING;if(T.accessToken){if(T.accessToken.tokenType===b.IO.POP){const Ri=new Fr(c),{secret:Pi,keyId:zr}=T.accessToken;if(!zr)throw(0,P.SB)(te.fo);Et=yield Ri.signPopToken(Pi,zr,he)}else Et=T.accessToken.secret;Kt=yn.l.fromString(T.accessToken.target).asArray(),pn=new Date(1e3*Number(T.accessToken.expiresOn)),An=new Date(1e3*Number(T.accessToken.extendedExpiresOn)),T.accessToken.refreshOn&&(Qn=new Date(1e3*Number(T.accessToken.refreshOn)))}T.appMetadata&&(Zn=T.appMetadata.familyId===b.hB?b.hB:"");const Dr=Ce?.oid||Ce?.sub||"",hi=Ce?.tid||"";ht?.spa_accountid&&T.account&&(T.account.nativeAccountId=ht?.spa_accountid);const Ci=T.account?(0,hn.o9)(T.account.getAccountInfo(),void 0,Ce,T.idToken?.secret):null;return{authority:u.canonicalAuthority,uniqueId:Dr,tenantId:hi,scopes:Kt,account:Ci,idToken:T?.idToken?.secret||"",idTokenClaims:Ce||{},accessToken:Et,fromCache:X,expiresOn:pn,extExpiresOn:An,refreshOn:Qn,correlationId:he.correlationId,requestId:At||b.YM.EMPTY_STRING,familyId:Zn,tokenType:T.accessToken?.tokenType||b.YM.EMPTY_STRING,state:ke?ke.userRequestState:b.YM.EMPTY_STRING,cloudGraphHostName:T.account?.cloudGraphHostName||b.YM.EMPTY_STRING,msGraphHost:T.account?.msGraphHost||b.YM.EMPTY_STRING,code:ht?.spa_code,fromNativeBroker:!1}})()}}function bn(nt,c,u,T,X,he,Ce,ke,ht,At,Et){Et?.verbose("setCachedAccount called");const pn=nt.getAccountKeys().find(Dr=>Dr.startsWith(u));let An=null;pn&&(An=nt.getAccount(pn,Et));const Qn=An||Q.d.createAccount({homeAccountId:u,idTokenClaims:T,clientInfo:he,environment:Ce,cloudGraphHostName:ht?.cloud_graph_host_name,msGraphHost:ht?.msgraph_host,nativeAccountId:At},c,X),Zn=Qn.tenantProfiles||[];if(ke&&!Zn.find(Dr=>Dr.tenantId===ke)){const Dr=(0,hn.bi)(u,T);Zn.push(Dr)}return Qn.tenantProfiles=Zn,Qn}var Tn=_(5503);class _n extends Ht{constructor(c,u){super(c,u),this.includeRedirectUri=!0,this.oidcDefaultScopes=this.config.authOptions.authority.options.OIDCOptions?.defaultScopes}getAuthCodeUrl(c){var u=this;return(0,r.A)(function*(){u.performanceClient?.addQueueMeasurement(m.MX.GetAuthCodeUrl,c.correlationId);const T=yield D(u.createAuthCodeUrlQueryString.bind(u),m.MX.AuthClientCreateQueryString,u.logger,u.performanceClient,c.correlationId)(c);return H.H.appendQueryString(u.authority.authorizationEndpoint,T)})()}acquireToken(c,u){var T=this;return(0,r.A)(function*(){if(T.performanceClient?.addQueueMeasurement(m.MX.AuthClientAcquireToken,c.correlationId),!c.code)throw(0,P.SB)(te.$P);const X=(0,Ln._C)(),he=yield D(T.executeTokenRequest.bind(T),m.MX.AuthClientExecuteTokenRequest,T.logger,T.performanceClient,c.correlationId)(T.authority,c),Ce=he.headers?.[b.OK.X_MS_REQUEST_ID],ke=new yr(T.config.authOptions.clientId,T.cacheManager,T.cryptoUtils,T.logger,T.config.serializableCache,T.config.persistencePlugin,T.performanceClient);return ke.validateTokenResponse(he.body),D(ke.handleServerTokenResponse.bind(ke),m.MX.HandleServerTokenResponse,T.logger,T.performanceClient,c.correlationId)(he.body,T.authority,X,c,u,void 0,void 0,void 0,Ce)})()}handleFragmentResponse(c,u){if(new yr(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null).validateServerAuthorizationCodeResponse(c,u),!c.code)throw(0,P.SB)(te.Re);return c}getLogoutUri(c){if(!c)throw(0,S.aD)(se.pi);const u=this.createLogoutUrlQueryString(c);return H.H.appendQueryString(this.authority.endSessionEndpoint,u)}executeTokenRequest(c,u){var T=this;return(0,r.A)(function*(){T.performanceClient?.addQueueMeasurement(m.MX.AuthClientExecuteTokenRequest,u.correlationId);const X=T.createTokenQueryParameters(u),he=H.H.appendQueryString(c.tokenEndpoint,X),Ce=yield D(T.createTokenRequestBody.bind(T),m.MX.AuthClientCreateTokenRequestBody,T.logger,T.performanceClient,u.correlationId)(u);let ke;if(u.clientInfo)try{const Et=(0,tn.k)(u.clientInfo,T.cryptoUtils.base64Decode);ke={credential:`${Et.uid}${b.LR.CLIENT_INFO_SEPARATOR}${Et.utid}`,type:"home_account_id"}}catch(Et){T.logger.verbose("Could not parse client info for CCS Header: "+Et)}const ht=T.createTokenRequestHeaders(ke||u.ccsCredential),At={clientId:u.tokenBodyParameters?.clientId||T.config.authOptions.clientId,authority:c.canonicalAuthority,scopes:u.scopes,claims:u.claims,authenticationScheme:u.authenticationScheme,resourceRequestMethod:u.resourceRequestMethod,resourceRequestUri:u.resourceRequestUri,shrClaims:u.shrClaims,sshKid:u.sshKid};return D(T.executePostToTokenEndpoint.bind(T),m.MX.AuthorizationCodeClientExecutePostToTokenEndpoint,T.logger,T.performanceClient,u.correlationId)(he,Ce,ht,At,u.correlationId,m.MX.AuthorizationCodeClientExecutePostToTokenEndpoint)})()}createTokenRequestBody(c){var u=this;return(0,r.A)(function*(){u.performanceClient?.addQueueMeasurement(m.MX.AuthClientCreateTokenRequestBody,c.correlationId);const T=new qt.W;if(T.addClientId(c.tokenBodyParameters?.[jt.U6]||u.config.authOptions.clientId),u.includeRedirectUri?T.addRedirectUri(c.redirectUri):Tn.M.validateRedirectUri(c.redirectUri),T.addScopes(c.scopes,!0,u.oidcDefaultScopes),T.addAuthorizationCode(c.code),T.addLibraryInfo(u.config.libraryInfo),T.addApplicationTelemetry(u.config.telemetry.application),T.addThrottling(),u.serverTelemetryManager&&!(0,wt.hf)(u.config)&&T.addServerTelemetry(u.serverTelemetryManager),c.codeVerifier&&T.addCodeVerifier(c.codeVerifier),u.config.clientCredentials.clientSecret&&T.addClientSecret(u.config.clientCredentials.clientSecret),u.config.clientCredentials.clientAssertion){const Ce=u.config.clientCredentials.clientAssertion;T.addClientAssertion(Ce.assertion),T.addClientAssertionType(Ce.assertionType)}if(T.addGrantType(b.$x.AUTHORIZATION_CODE_GRANT),T.addClientInfo(),c.authenticationScheme===b.IO.POP){const Ce=new Fr(u.cryptoUtils,u.performanceClient),ke=yield D(Ce.generateCnf.bind(Ce),m.MX.PopTokenGenerateCnf,u.logger,u.performanceClient,c.correlationId)(c,u.logger);T.addPopToken(ke.reqCnfString)}else if(c.authenticationScheme===b.IO.SSH){if(!c.sshJwk)throw(0,S.aD)(se.LX);T.addSshJwk(c.sshJwk)}const X=c.correlationId||u.config.cryptoInterface.createNewGuid();let he;if(T.addCorrelationId(X),(!Ze.$.isEmptyObj(c.claims)||u.config.authOptions.clientCapabilities&&u.config.authOptions.clientCapabilities.length>0)&&T.addClaims(c.claims,u.config.authOptions.clientCapabilities),c.clientInfo)try{const Ce=(0,tn.k)(c.clientInfo,u.cryptoUtils.base64Decode);he={credential:`${Ce.uid}${b.LR.CLIENT_INFO_SEPARATOR}${Ce.utid}`,type:"home_account_id"}}catch(Ce){u.logger.verbose("Could not parse client info for CCS Header: "+Ce)}else he=c.ccsCredential;if(u.config.systemOptions.preventCorsPreflight&&he)switch(he.type){case"home_account_id":try{const Ce=(0,tn.Z)(he.credential);T.addCcsOid(Ce)}catch(Ce){u.logger.verbose("Could not parse home account ID for CCS Header: "+Ce)}break;case"UPN":T.addCcsUpn(he.credential)}return c.tokenBodyParameters&&T.addExtraQueryParameters(c.tokenBodyParameters),c.enableSpaAuthorizationCode&&(!c.tokenBodyParameters||!c.tokenBodyParameters[jt.ir])&&T.addExtraQueryParameters({[jt.ir]:"1"}),T.createQueryString()})()}createAuthCodeUrlQueryString(c){var u=this;return(0,r.A)(function*(){u.performanceClient?.addQueueMeasurement(m.MX.AuthClientCreateQueryString,c.correlationId);const T=new qt.W;T.addClientId(c.extraQueryParameters?.[jt.U6]||u.config.authOptions.clientId);const X=[...c.scopes||[],...c.extraScopesToConsent||[]];T.addScopes(X,!0,u.oidcDefaultScopes),T.addRedirectUri(c.redirectUri);const he=c.correlationId||u.config.cryptoInterface.createNewGuid();if(T.addCorrelationId(he),T.addResponseMode(c.responseMode),T.addResponseTypeCode(),T.addLibraryInfo(u.config.libraryInfo),(0,wt.hf)(u.config)||T.addApplicationTelemetry(u.config.telemetry.application),T.addClientInfo(),c.codeChallenge&&c.codeChallengeMethod&&T.addCodeChallengeParams(c.codeChallenge,c.codeChallengeMethod),c.prompt&&T.addPrompt(c.prompt),c.domainHint&&T.addDomainHint(c.domainHint),c.prompt!==b._M.SELECT_ACCOUNT)if(c.sid&&c.prompt===b._M.NONE)u.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),T.addSid(c.sid);else if(c.account){const Ce=u.extractAccountSid(c.account),ke=u.extractLoginHint(c.account);if(ke){u.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),T.addLoginHint(ke);try{const ht=(0,tn.Z)(c.account.homeAccountId);T.addCcsOid(ht)}catch{u.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(Ce&&c.prompt===b._M.NONE){u.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),T.addSid(Ce);try{const ht=(0,tn.Z)(c.account.homeAccountId);T.addCcsOid(ht)}catch{u.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(c.loginHint)u.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),T.addLoginHint(c.loginHint),T.addCcsUpn(c.loginHint);else if(c.account.username){u.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),T.addLoginHint(c.account.username);try{const ht=(0,tn.Z)(c.account.homeAccountId);T.addCcsOid(ht)}catch{u.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else c.loginHint&&(u.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),T.addLoginHint(c.loginHint),T.addCcsUpn(c.loginHint));else u.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");if(c.nonce&&T.addNonce(c.nonce),c.state&&T.addState(c.state),(c.claims||u.config.authOptions.clientCapabilities&&u.config.authOptions.clientCapabilities.length>0)&&T.addClaims(c.claims,u.config.authOptions.clientCapabilities),c.extraQueryParameters&&T.addExtraQueryParameters(c.extraQueryParameters),c.nativeBroker&&(T.addNativeBroker(),c.authenticationScheme===b.IO.POP)){const Ce=new Fr(u.cryptoUtils),ke=yield D(Ce.generateCnf.bind(Ce),m.MX.PopTokenGenerateCnf,u.logger,u.performanceClient,c.correlationId)(c,u.logger);T.addPopToken(ke.reqCnfHash)}return T.createQueryString()})()}createLogoutUrlQueryString(c){const u=new qt.W;return c.postLogoutRedirectUri&&u.addPostLogoutRedirectUri(c.postLogoutRedirectUri),c.correlationId&&u.addCorrelationId(c.correlationId),c.idTokenHint&&u.addIdTokenHint(c.idTokenHint),c.state&&u.addState(c.state),c.logoutHint&&u.addLogoutHint(c.logoutHint),c.extraQueryParameters&&u.addExtraQueryParameters(c.extraQueryParameters),u.createQueryString()}extractAccountSid(c){return c.idTokenClaims?.sid||null}extractLoginHint(c){return c.idTokenClaims?.login_hint||null}}class Bn{constructor(c,u){this.cacheOutcome=b.Rv.NOT_APPLICABLE,this.cacheManager=u,this.apiId=c.apiId,this.correlationId=c.correlationId,this.wrapperSKU=c.wrapperSKU||b.YM.EMPTY_STRING,this.wrapperVer=c.wrapperVer||b.YM.EMPTY_STRING,this.telemetryCacheKey=b.gT.CACHE_KEY+b.LR.CACHE_KEY_SEPARATOR+c.clientId}generateCurrentRequestHeaderValue(){const c=`${this.apiId}${b.gT.VALUE_SEPARATOR}${this.cacheOutcome}`,u=[this.wrapperSKU,this.wrapperVer].join(b.gT.VALUE_SEPARATOR),X=[c,this.getRegionDiscoveryFields()].join(b.gT.VALUE_SEPARATOR);return[b.gT.SCHEMA_VERSION,X,u].join(b.gT.CATEGORY_SEPARATOR)}generateLastRequestHeaderValue(){const c=this.getLastRequests(),u=Bn.maxErrorsToSend(c),T=c.failedRequests.slice(0,2*u).join(b.gT.VALUE_SEPARATOR),X=c.errors.slice(0,u).join(b.gT.VALUE_SEPARATOR),he=c.errors.length,ke=[he,u<he?b.gT.OVERFLOW_TRUE:b.gT.OVERFLOW_FALSE].join(b.gT.VALUE_SEPARATOR);return[b.gT.SCHEMA_VERSION,c.cacheHits,T,X,ke].join(b.gT.CATEGORY_SEPARATOR)}cacheFailedRequest(c){const u=this.getLastRequests();u.errors.length>=b.gT.MAX_CACHED_ERRORS&&(u.failedRequests.shift(),u.failedRequests.shift(),u.errors.shift()),u.failedRequests.push(this.apiId,this.correlationId),c instanceof Error&&c&&c.toString()?u.errors.push(c instanceof de.lR?c.subError?c.subError:c.errorCode?c.errorCode:c.toString():c.toString()):u.errors.push(b.gT.UNKNOWN_ERROR),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,u)}incrementCacheHits(){const c=this.getLastRequests();return c.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,c),c.cacheHits}getLastRequests(){return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||{failedRequests:[],errors:[],cacheHits:0}}clearTelemetryCache(){const c=this.getLastRequests(),u=Bn.maxErrorsToSend(c);if(u===c.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey);else{const X={failedRequests:c.failedRequests.slice(2*u),errors:c.errors.slice(u),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,X)}}static maxErrorsToSend(c){let u,T=0,X=0;const he=c.errors.length;for(u=0;u<he;u++){const ke=c.failedRequests[2*u+1]||b.YM.EMPTY_STRING,ht=c.errors[u]||b.YM.EMPTY_STRING;if(X+=(c.failedRequests[2*u]||b.YM.EMPTY_STRING).toString().length+ke.toString().length+ht.length+3,!(X<b.gT.MAX_LAST_HEADER_BYTES))break;T+=1}return T}getRegionDiscoveryFields(){const c=[];return c.push(this.regionUsed||b.YM.EMPTY_STRING),c.push(this.regionSource||b.YM.EMPTY_STRING),c.push(this.regionOutcome||b.YM.EMPTY_STRING),c.join(",")}updateRegionDiscoveryMetadata(c){this.regionUsed=c.region_used,this.regionSource=c.region_source,this.regionOutcome=c.region_outcome}setCacheOutcome(c){this.cacheOutcome=c}}var jn=_(7306),Jn=_(1510);class Rr{constructor(c,u,T,X,he,Ce,ke,ht,At){this.config=c,this.browserStorage=u,this.browserCrypto=T,this.networkClient=this.config.system.networkClient,this.eventHandler=he,this.navigationClient=Ce,this.nativeMessageHandler=ht,this.correlationId=At||(0,Jn.Oy)(),this.logger=X.clone(oe.Q1.MSAL_SKU,jn.r,this.correlationId),this.performanceClient=ke}clearCacheOnLogout(c){var u=this;return(0,r.A)(function*(){if(c){Q.d.accountInfoIsEqual(c,u.browserStorage.getActiveAccount(),!1)&&(u.logger.verbose("Setting active account to null"),u.browserStorage.setActiveAccount(null));try{yield u.browserStorage.removeAccount(Q.d.generateAccountCacheKey(c)),u.logger.verbose("Cleared cache items belonging to the account provided in the logout request.")}catch{u.logger.error("Account provided in logout request was not found. Local cache unchanged.")}}else try{u.logger.verbose("No account provided in logout request, clearing all cache items.",u.correlationId),yield u.browserStorage.clear(),yield u.browserCrypto.clearKeystore()}catch{u.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged.")}})()}getRedirectUri(c){this.logger.verbose("getRedirectUri called");const u=c||this.config.auth.redirectUri||(0,ct.Uu)();return H.H.getAbsoluteUrl(u,(0,ct.Uu)())}initializeServerTelemetryManager(c,u){this.logger.verbose("initializeServerTelemetryManager called");const T={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:c,forceRefresh:u||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new Bn(T,this.browserStorage)}getDiscoveredAuthority(c,u,T){var X=this;return(0,r.A)(function*(){X.performanceClient.addQueueMeasurement(m.MX.StandardInteractionClientGetDiscoveredAuthority,X.correlationId);const he={protocolMode:X.config.auth.protocolMode,OIDCOptions:X.config.auth.OIDCOptions,knownAuthorities:X.config.auth.knownAuthorities,cloudDiscoveryMetadata:X.config.auth.cloudDiscoveryMetadata,authorityMetadata:X.config.auth.authorityMetadata,skipAuthorityMetadataCache:X.config.auth.skipAuthorityMetadataCache},ke=z.generateAuthority(c||X.config.auth.authority,u||X.config.auth.azureCloudOptions),ht=yield D(Fn,m.MX.AuthorityFactoryCreateDiscoveredInstance,X.logger,X.performanceClient,X.correlationId)(ke,X.config.system.networkClient,X.browserStorage,he,X.logger,X.correlationId,X.performanceClient);if(T&&!ht.isAlias(T.environment))throw(0,S.aD)(se.K3);return ht})()}}const Ar=32;function qe(nt,c,u){return ot.apply(this,arguments)}function ot(){return(ot=(0,r.A)(function*(nt,c,u){nt.addQueueMeasurement(m.MX.GeneratePkceCodes,u);const T=k(He,m.MX.GenerateCodeVerifier,c,nt,u)(nt,c,u);return{verifier:T,challenge:yield D(Ye,m.MX.GenerateCodeChallengeFromVerifier,c,nt,u)(T,nt,c,u)}})).apply(this,arguments)}function He(nt,c,u){try{const T=new Uint8Array(Ar);return k(Jn.UY,m.MX.GetRandomValues,c,nt,u)(T),(0,ut.dB)(T)}catch{throw(0,ae.bD)(Fe.p5)}}function Ye(nt,c,u,T){return bt.apply(this,arguments)}function bt(){return(bt=(0,r.A)(function*(nt,c,u,T){c.addQueueMeasurement(m.MX.GenerateCodeChallengeFromVerifier,T);try{const X=yield D(Jn.sI,m.MX.Sha256Digest,u,c,T)(nt,c,T);return(0,ut.dB)(new Uint8Array(X))}catch{throw(0,ae.bD)(Fe.p5)}})).apply(this,arguments)}function Lt(nt,c,u,T){return Zt.apply(this,arguments)}function Zt(){return(Zt=(0,r.A)(function*(nt,c,u,T){u.addQueueMeasurement(m.MX.InitializeBaseRequest,nt.correlationId);const X=nt.authority||c.auth.authority,he=[...nt&&nt.scopes||[]],Ce={...nt,correlationId:nt.correlationId,authority:X,scopes:he};if(Ce.authenticationScheme){if(Ce.authenticationScheme===b.IO.SSH){if(!nt.sshJwk)throw(0,S.aD)(se.LX);if(!nt.sshKid)throw(0,S.aD)(se.rB)}T.verbose(`Authentication Scheme set to "${Ce.authenticationScheme}" as configured in Auth request`)}else Ce.authenticationScheme=b.IO.BEARER,T.verbose('Authentication Scheme wasn\'t explicitly set in request, defaulting to "Bearer" request');return c.cache.claimsBasedCachingEnabled&&nt.claims&&!Ze.$.isEmptyObj(nt.claims)&&(Ce.requestedClaimsHash=yield(0,Jn.YZ)(nt.claims)),Ce})).apply(this,arguments)}function Dn(nt,c,u,T,X){return In.apply(this,arguments)}function In(){return(In=(0,r.A)(function*(nt,c,u,T,X){T.addQueueMeasurement(m.MX.InitializeSilentRequest,nt.correlationId);const he=yield D(Lt,m.MX.InitializeBaseRequest,X,T,nt.correlationId)(nt,u,T,X);return{...nt,...he,account:c,forceRefresh:nt.forceRefresh||!1}})).apply(this,arguments)}class nr extends Rr{initializeAuthorizationCodeRequest(c){var u=this;return(0,r.A)(function*(){u.performanceClient.addQueueMeasurement(m.MX.StandardInteractionClientInitializeAuthorizationCodeRequest,u.correlationId);const T=yield D(qe,m.MX.GeneratePkceCodes,u.logger,u.performanceClient,u.correlationId)(u.performanceClient,u.logger,u.correlationId),X={...c,redirectUri:c.redirectUri,code:b.YM.EMPTY_STRING,codeVerifier:T.verifier};return c.codeChallenge=T.challenge,c.codeChallengeMethod=b.YM.S256_CODE_CHALLENGE_METHOD,X})()}initializeLogoutRequest(c){this.logger.verbose("initializeLogoutRequest called",c?.correlationId);const u={correlationId:this.correlationId||(0,Jn.Oy)(),...c};if(c)if(c.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(c.account){const T=this.getLogoutHintFromIdTokenClaims(c.account);T&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),u.logoutHint=T)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return c&&null===c.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",u.correlationId):c&&c.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",u.correlationId),u.postLogoutRedirectUri=H.H.getAbsoluteUrl(c.postLogoutRedirectUri,(0,ct.Uu)())):null===this.config.auth.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",u.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",u.correlationId),u.postLogoutRedirectUri=H.H.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,(0,ct.Uu)())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",u.correlationId),u.postLogoutRedirectUri=H.H.getAbsoluteUrl((0,ct.Uu)(),(0,ct.Uu)())),u}getLogoutHintFromIdTokenClaims(c){const u=c.idTokenClaims;if(u){if(u.login_hint)return u.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null}createAuthCodeClient(c,u,T,X){var he=this;return(0,r.A)(function*(){he.performanceClient.addQueueMeasurement(m.MX.StandardInteractionClientCreateAuthCodeClient,he.correlationId);const Ce=yield D(he.getClientConfiguration.bind(he),m.MX.StandardInteractionClientGetClientConfiguration,he.logger,he.performanceClient,he.correlationId)(c,u,T,X);return new _n(Ce,he.performanceClient)})()}getClientConfiguration(c,u,T,X){var he=this;return(0,r.A)(function*(){he.performanceClient.addQueueMeasurement(m.MX.StandardInteractionClientGetClientConfiguration,he.correlationId);const Ce=yield D(he.getDiscoveredAuthority.bind(he),m.MX.StandardInteractionClientGetDiscoveredAuthority,he.logger,he.performanceClient,he.correlationId)(u,T,X),ke=he.config.system.loggerOptions;return{authOptions:{clientId:he.config.auth.clientId,authority:Ce,clientCapabilities:he.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:he.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:ke.loggerCallback,piiLoggingEnabled:ke.piiLoggingEnabled,logLevel:ke.logLevel,correlationId:he.correlationId},cacheOptions:{claimsBasedCachingEnabled:he.config.cache.claimsBasedCachingEnabled},cryptoInterface:he.browserCrypto,networkInterface:he.networkClient,storageInterface:he.browserStorage,serverTelemetryManager:c,libraryInfo:{sku:oe.Q1.MSAL_SKU,version:jn.r,cpu:b.YM.EMPTY_STRING,os:b.YM.EMPTY_STRING},telemetry:he.config.telemetry}})()}initializeAuthorizationRequest(c,u){var T=this;return(0,r.A)(function*(){T.performanceClient.addQueueMeasurement(m.MX.StandardInteractionClientInitializeAuthorizationRequest,T.correlationId);const X=T.getRedirectUri(c.redirectUri),Ce=Ue.setRequestState(T.browserCrypto,c&&c.state||b.YM.EMPTY_STRING,{interactionType:u}),ht={...yield D(Lt,m.MX.InitializeBaseRequest,T.logger,T.performanceClient,T.correlationId)({...c,correlationId:T.correlationId},T.config,T.performanceClient,T.logger),redirectUri:X,state:Ce,nonce:c.nonce||(0,Jn.Oy)(),responseMode:T.config.auth.OIDCOptions.serverResponseType},At=c.account||T.browserStorage.getActiveAccount();if(At&&(T.logger.verbose("Setting validated request account",T.correlationId),T.logger.verbosePii(`Setting validated request account: ${At.homeAccountId}`,T.correlationId),ht.account=At),!ht.loginHint&&!At){const Et=T.browserStorage.getLegacyLoginHint();Et&&(ht.loginHint=Et)}return ht})()}}var ir=_(6213);const Pn="user_switch",Qr={[Pn]:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."};class _r extends de.lR{constructor(c,u,T){super(c,u),Object.setPrototypeOf(this,_r.prototype),this.name="NativeAuthError",this.ext=T}}function vn(nt){return!!(nt.ext&&nt.ext.status&&("PERSISTENT_ERROR"===nt.ext.status||"DISABLED"===nt.ext.status)||nt.ext&&nt.ext.error&&-2147186943===nt.ext.error)||"ContentError"===nt.errorCode}function di(nt,c,u){if(u&&u.status)switch(u.status){case"ACCOUNT_UNAVAILABLE":return(0,ee.IE)(be.B);case"USER_INTERACTION_REQUIRED":return new ee.CB(nt,c);case"USER_CANCEL":return(0,ae.bD)(Fe.fN);case"NO_NETWORK":return(0,ae.bD)(Fe.l7)}return new _r(nt,Qr[nt]||c,u)}class gr extends Ht{constructor(c,u){super(c,u)}acquireToken(c){var u=this;return(0,r.A)(function*(){u.performanceClient?.addQueueMeasurement(m.MX.RefreshTokenClientAcquireToken,c.correlationId);const T=(0,Ln._C)(),X=yield D(u.executeTokenRequest.bind(u),m.MX.RefreshTokenClientExecuteTokenRequest,u.logger,u.performanceClient,c.correlationId)(c,u.authority),he=X.headers?.[b.OK.X_MS_REQUEST_ID],Ce=new yr(u.config.authOptions.clientId,u.cacheManager,u.cryptoUtils,u.logger,u.config.serializableCache,u.config.persistencePlugin);return Ce.validateTokenResponse(X.body),D(Ce.handleServerTokenResponse.bind(Ce),m.MX.HandleServerTokenResponse,u.logger,u.performanceClient,c.correlationId)(X.body,u.authority,T,c,void 0,void 0,!0,c.forceCache,he)})()}acquireTokenByRefreshToken(c){var u=this;return(0,r.A)(function*(){if(!c)throw(0,S.aD)(se.Ub);if(u.performanceClient?.addQueueMeasurement(m.MX.RefreshTokenClientAcquireTokenByRefreshToken,c.correlationId),!c.account)throw(0,P.SB)(te.C2);if(u.cacheManager.isAppMetadataFOCI(c.account.environment))try{return yield D(u.acquireTokenWithCachedRefreshToken.bind(u),m.MX.RefreshTokenClientAcquireTokenWithCachedRefreshToken,u.logger,u.performanceClient,c.correlationId)(c,!0)}catch(X){if(X instanceof ee.CB&&X.errorCode===be.oF||X instanceof it.g&&X.errorCode===b.I.INVALID_GRANT_ERROR&&X.subError===b.I.CLIENT_MISMATCH_ERROR)return D(u.acquireTokenWithCachedRefreshToken.bind(u),m.MX.RefreshTokenClientAcquireTokenWithCachedRefreshToken,u.logger,u.performanceClient,c.correlationId)(c,!1);throw X}return D(u.acquireTokenWithCachedRefreshToken.bind(u),m.MX.RefreshTokenClientAcquireTokenWithCachedRefreshToken,u.logger,u.performanceClient,c.correlationId)(c,!1)})()}acquireTokenWithCachedRefreshToken(c,u){var T=this;return(0,r.A)(function*(){T.performanceClient?.addQueueMeasurement(m.MX.RefreshTokenClientAcquireTokenWithCachedRefreshToken,c.correlationId);const X=k(T.cacheManager.getRefreshToken.bind(T.cacheManager),m.MX.CacheManagerGetRefreshToken,T.logger,T.performanceClient,c.correlationId)(c.account,u,void 0,T.performanceClient,c.correlationId);if(!X)throw(0,ee.IE)(be.oF);if(X.expiresOn&&(0,Ln.Hm)(X.expiresOn,c.refreshTokenExpirationOffsetSeconds||300))throw(0,ee.IE)(be.AG);const he={...c,refreshToken:X.secret,authenticationScheme:c.authenticationScheme||b.IO.BEARER,ccsCredential:{credential:c.account.homeAccountId,type:"home_account_id"}};try{return yield D(T.acquireToken.bind(T),m.MX.RefreshTokenClientAcquireToken,T.logger,T.performanceClient,c.correlationId)(he)}catch(Ce){if(Ce instanceof ee.CB&&Ce.subError===be.j9){T.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");const ke=(0,ie.og)(X);T.cacheManager.removeRefreshToken(ke)}throw Ce}})()}executeTokenRequest(c,u){var T=this;return(0,r.A)(function*(){T.performanceClient?.addQueueMeasurement(m.MX.RefreshTokenClientExecuteTokenRequest,c.correlationId);const X=T.createTokenQueryParameters(c),he=H.H.appendQueryString(u.tokenEndpoint,X),Ce=yield D(T.createTokenRequestBody.bind(T),m.MX.RefreshTokenClientCreateTokenRequestBody,T.logger,T.performanceClient,c.correlationId)(c),ke=T.createTokenRequestHeaders(c.ccsCredential),ht={clientId:c.tokenBodyParameters?.clientId||T.config.authOptions.clientId,authority:u.canonicalAuthority,scopes:c.scopes,claims:c.claims,authenticationScheme:c.authenticationScheme,resourceRequestMethod:c.resourceRequestMethod,resourceRequestUri:c.resourceRequestUri,shrClaims:c.shrClaims,sshKid:c.sshKid};return D(T.executePostToTokenEndpoint.bind(T),m.MX.RefreshTokenClientExecutePostToTokenEndpoint,T.logger,T.performanceClient,c.correlationId)(he,Ce,ke,ht,c.correlationId,m.MX.RefreshTokenClientExecutePostToTokenEndpoint)})()}createTokenRequestBody(c){var u=this;return(0,r.A)(function*(){u.performanceClient?.addQueueMeasurement(m.MX.RefreshTokenClientCreateTokenRequestBody,c.correlationId);const T=c.correlationId,X=new qt.W;if(X.addClientId(c.tokenBodyParameters?.[jt.U6]||u.config.authOptions.clientId),c.redirectUri&&X.addRedirectUri(c.redirectUri),X.addScopes(c.scopes,!0,u.config.authOptions.authority.options.OIDCOptions?.defaultScopes),X.addGrantType(b.$x.REFRESH_TOKEN_GRANT),X.addClientInfo(),X.addLibraryInfo(u.config.libraryInfo),X.addApplicationTelemetry(u.config.telemetry.application),X.addThrottling(),u.serverTelemetryManager&&!(0,wt.hf)(u.config)&&X.addServerTelemetry(u.serverTelemetryManager),X.addCorrelationId(T),X.addRefreshToken(c.refreshToken),u.config.clientCredentials.clientSecret&&X.addClientSecret(u.config.clientCredentials.clientSecret),u.config.clientCredentials.clientAssertion){const he=u.config.clientCredentials.clientAssertion;X.addClientAssertion(he.assertion),X.addClientAssertionType(he.assertionType)}if(c.authenticationScheme===b.IO.POP){const he=new Fr(u.cryptoUtils,u.performanceClient),Ce=yield D(he.generateCnf.bind(he),m.MX.PopTokenGenerateCnf,u.logger,u.performanceClient,c.correlationId)(c,u.logger);X.addPopToken(Ce.reqCnfString)}else if(c.authenticationScheme===b.IO.SSH){if(!c.sshJwk)throw(0,S.aD)(se.LX);X.addSshJwk(c.sshJwk)}if((!Ze.$.isEmptyObj(c.claims)||u.config.authOptions.clientCapabilities&&u.config.authOptions.clientCapabilities.length>0)&&X.addClaims(c.claims,u.config.authOptions.clientCapabilities),u.config.systemOptions.preventCorsPreflight&&c.ccsCredential)switch(c.ccsCredential.type){case"home_account_id":try{const he=(0,tn.Z)(c.ccsCredential.credential);X.addCcsOid(he)}catch(he){u.logger.verbose("Could not parse home account ID for CCS Header: "+he)}break;case"UPN":X.addCcsUpn(c.ccsCredential.credential)}return c.tokenBodyParameters&&X.addExtraQueryParameters(c.tokenBodyParameters),X.createQueryString()})()}}class Pr extends Ht{constructor(c,u){super(c,u)}acquireToken(c){var u=this;return(0,r.A)(function*(){try{const[T,X]=yield u.acquireCachedToken({...c,scopes:c.scopes?.length?c.scopes:[...b.aZ]});return X===b.Rv.PROACTIVELY_REFRESHED&&(u.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed."),new gr(u.config,u.performanceClient).acquireTokenByRefreshToken(c).catch(()=>{})),T}catch(T){if(T instanceof P.eB&&T.errorCode===te.wb)return new gr(u.config,u.performanceClient).acquireTokenByRefreshToken(c);throw T}})()}acquireCachedToken(c){var u=this;return(0,r.A)(function*(){u.performanceClient?.addQueueMeasurement(m.MX.SilentFlowClientAcquireCachedToken,c.correlationId);let T=b.Rv.NOT_APPLICABLE;if(c.forceRefresh||!u.config.cacheOptions.claimsBasedCachingEnabled&&!Ze.$.isEmptyObj(c.claims))throw u.setCacheOutcome(b.Rv.FORCE_REFRESH_OR_CLAIMS,c.correlationId),(0,P.SB)(te.wb);if(!c.account)throw(0,P.SB)(te.C2);const X=c.account.tenantId||function W(nt){const T=new H.H(nt).getUrlComponents().PathSegments.slice(-1)[0]?.toLowerCase();switch(T){case b.v2.COMMON:case b.v2.ORGANIZATIONS:case b.v2.CONSUMERS:return;default:return T}}(c.authority),he=u.cacheManager.getTokenKeys(),Ce=u.cacheManager.getAccessToken(c.account,c,he,X,u.performanceClient,c.correlationId);if(!Ce)throw u.setCacheOutcome(b.Rv.NO_CACHED_ACCESS_TOKEN,c.correlationId),(0,P.SB)(te.wb);if((0,Ln.XJ)(Ce.cachedAt)||(0,Ln.Hm)(Ce.expiresOn,u.config.systemOptions.tokenRenewalOffsetSeconds))throw u.setCacheOutcome(b.Rv.CACHED_ACCESS_TOKEN_EXPIRED,c.correlationId),(0,P.SB)(te.wb);Ce.refreshOn&&(0,Ln.Hm)(Ce.refreshOn,0)&&(T=b.Rv.PROACTIVELY_REFRESHED);const ke=c.authority||u.authority.getPreferredCache(),ht={account:u.cacheManager.readAccountFromCache(c.account),accessToken:Ce,idToken:u.cacheManager.getIdToken(c.account,he,X,u.performanceClient,c.correlationId),refreshToken:null,appMetadata:u.cacheManager.readAppMetadataFromCache(ke)};return u.setCacheOutcome(T,c.correlationId),u.config.serverTelemetryManager&&u.config.serverTelemetryManager.incrementCacheHits(),[yield D(u.generateResultFromCacheRecord.bind(u),m.MX.SilentFlowClientGenerateResultFromCacheRecord,u.logger,u.performanceClient,c.correlationId)(ht,c),T]})()}setCacheOutcome(c,u){this.serverTelemetryManager?.setCacheOutcome(c),this.performanceClient?.addFields({cacheOutcome:c},u),c!==b.Rv.NOT_APPLICABLE&&this.logger.info(`Token refresh is required due to cache outcome: ${c}`)}generateResultFromCacheRecord(c,u){var T=this;return(0,r.A)(function*(){let X;if(T.performanceClient?.addQueueMeasurement(m.MX.SilentFlowClientGenerateResultFromCacheRecord,u.correlationId),c.idToken&&(X=(0,_e.My)(c.idToken.secret,T.config.cryptoInterface.base64Decode)),u.maxAge||0===u.maxAge){const he=X?.auth_time;if(!he)throw(0,P.SB)(te.n3);(0,_e.al)(he,u.maxAge)}return yr.generateAuthenticationResult(T.cryptoUtils,T.authority,c,!0,u,X)})()}}class wr extends nr{acquireToken(c){var u=this;return(0,r.A)(function*(){u.performanceClient.addQueueMeasurement(m.MX.SilentCacheClientAcquireToken,c.correlationId);const T=u.initializeServerTelemetryManager(oe.sA.acquireTokenSilent_silentFlow),X=yield D(u.getClientConfiguration.bind(u),m.MX.StandardInteractionClientGetClientConfiguration,u.logger,u.performanceClient,u.correlationId)(T,c.authority,c.azureCloudOptions,c.account),he=new Pr(X,u.performanceClient);u.logger.verbose("Silent auth client created");try{const ke=(yield D(he.acquireCachedToken.bind(he),m.MX.SilentFlowClientAcquireCachedToken,u.logger,u.performanceClient,c.correlationId)(c))[0];return u.performanceClient.addFields({fromCache:!0},c.correlationId),ke}catch(Ce){throw Ce instanceof ae.jT&&Ce.errorCode===Fe.e0&&u.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),Ce}})()}logout(c){this.logger.verbose("logoutRedirect called");const u=this.initializeLogoutRequest(c);return this.clearCacheOnLogout(u?.account)}}class $n extends Rr{constructor(c,u,T,X,he,Ce,ke,ht,At,Et,Kt,pn){super(c,u,T,X,he,Ce,ht,At,pn),this.apiId=ke,this.accountId=Et,this.nativeMessageHandler=At,this.nativeStorageManager=Kt,this.silentCacheClient=new wr(c,this.nativeStorageManager,T,X,he,Ce,ht,At,pn)}acquireToken(c){var u=this;return(0,r.A)(function*(){u.performanceClient.addQueueMeasurement(m.MX.NativeInteractionClientAcquireToken,c.correlationId),u.logger.trace("NativeInteractionClient - acquireToken called.");const T=u.performanceClient.startMeasurement(m.MX.NativeInteractionClientAcquireToken,c.correlationId),X=Ln._C(),he=yield u.initializeNativeRequest(c);try{const At=yield u.acquireTokensFromCache(u.accountId,he);return T.end({success:!0,isNativeBroker:!1,fromCache:!0}),At}catch{u.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call")}const Ce={method:oe.Ct.GetToken,request:he},ke=yield u.nativeMessageHandler.sendMessage(Ce),ht=u.validateNativeResponse(ke);return u.handleNativeResponse(ht,he,X).then(At=>(T.end({success:!0,isNativeBroker:!0,requestId:At.requestId}),At)).catch(At=>{throw T.end({success:!1,errorCode:At.errorCode,subErrorCode:At.subError,isNativeBroker:!0}),At})})()}createSilentCacheRequest(c,u){return{authority:c.authority,correlationId:this.correlationId,scopes:yn.l.fromString(c.scope).asArray(),account:u,forceRefresh:!1}}acquireTokensFromCache(c,u){var T=this;return(0,r.A)(function*(){if(!c)throw T.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),(0,P.SB)(te.rk);const X=T.browserStorage.getBaseAccountInfo({nativeAccountId:c});if(!X)throw(0,P.SB)(te.rk);try{const he=T.createSilentCacheRequest(u,X),Ce=yield T.silentCacheClient.acquireToken(he),ke={...X,idTokenClaims:Ce?.idTokenClaims,idToken:Ce?.idToken};return{...Ce,account:ke}}catch(he){throw he}})()}acquireTokenRedirect(c){var u=this;return(0,r.A)(function*(){u.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");const T=yield u.initializeNativeRequest(c),X={method:oe.Ct.GetToken,request:T};try{const ke=yield u.nativeMessageHandler.sendMessage(X);u.validateNativeResponse(ke)}catch(ke){if(ke instanceof _r&&vn(ke))throw ke}u.browserStorage.setTemporaryCache(oe._p.NATIVE_REQUEST,JSON.stringify(T),!0);const he={apiId:oe.sA.acquireTokenRedirect,timeout:u.config.system.redirectNavigationTimeout,noHistory:!1},Ce=u.config.auth.navigateToLoginRequestUrl?window.location.href:u.getRedirectUri(c.redirectUri);yield u.navigationClient.navigateExternal(Ce,he)})()}handleRedirectPromise(c,u){var T=this;return(0,r.A)(function*(){if(T.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!T.browserStorage.isInteractionInProgress(!0))return T.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const X=T.browserStorage.getCachedNativeRequest();if(!X)return T.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),c&&u&&c?.addFields({errorCode:"no_cached_request"},u),null;const{prompt:he,...Ce}=X;he&&T.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),T.browserStorage.removeItem(T.browserStorage.generateCacheKey(oe._p.NATIVE_REQUEST));const ke={method:oe.Ct.GetToken,request:Ce},ht=Ln._C();try{T.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker.");const At=yield T.nativeMessageHandler.sendMessage(ke);T.validateNativeResponse(At);const Et=T.handleNativeResponse(At,Ce,ht);return T.browserStorage.setInteractionInProgress(!1),yield Et}catch(At){throw T.browserStorage.setInteractionInProgress(!1),At}})()}logout(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")}handleNativeResponse(c,u,T){var X=this;return(0,r.A)(function*(){X.logger.trace("NativeInteractionClient - handleNativeResponse called.");const he=_e.My(c.id_token,Ge.u),Ce=X.createHomeAccountIdentifier(c,he),ke=X.browserStorage.getAccountInfoFilteredBy({nativeAccountId:u.accountId})?.homeAccountId;if(Ce!==ke&&c.account.id!==u.accountId)throw di(Pn);const ht=yield X.getDiscoveredAuthority(u.authority),At=bn(X.browserStorage,ht,Ce,he,Ge.u,c.client_info,void 0,he.tid,void 0,c.account.id,X.logger),Et=yield X.generateAuthenticationResult(c,u,he,At,ht.canonicalAuthority,T);return X.cacheAccount(At),X.cacheNativeTokens(c,u,Ce,he,Et.accessToken,Et.tenantId,T),Et})()}createHomeAccountIdentifier(c,u){return Q.d.generateHomeAccountId(c.client_info||b.YM.EMPTY_STRING,V.I.Default,this.logger,this.browserCrypto,u)}generateScopes(c,u){return yn.l.fromString(c.scope?c.scope:u.scope)}generatePopAccessToken(c,u){var T=this;return(0,r.A)(function*(){if(u.tokenType===b.IO.POP){if(c.shr)return T.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),c.shr;const X=new Fr(T.browserCrypto),he={resourceRequestMethod:u.resourceRequestMethod,resourceRequestUri:u.resourceRequestUri,shrClaims:u.shrClaims,shrNonce:u.shrNonce};if(!u.keyId)throw(0,P.SB)(te.fo);return X.signPopToken(c.access_token,u.keyId,he)}return c.access_token})()}generateAuthenticationResult(c,u,T,X,he,Ce){var ke=this;return(0,r.A)(function*(){const ht=ke.addTelemetryFromNativeResponse(c),At=yn.l.fromString(c.scope?c.scope:u.scope),Et=c.account.properties||{},Kt=Et.UID||T.oid||T.sub||b.YM.EMPTY_STRING,pn=Et.TenantId||T.tid||b.YM.EMPTY_STRING,An=(0,hn.o9)(X.getAccountInfo(),void 0,T,c.id_token);An.nativeAccountId!==c.account.id&&(An.nativeAccountId=c.account.id);const Qn=yield ke.generatePopAccessToken(c,u),Zn=u.tokenType===b.IO.POP?b.IO.POP:b.IO.BEARER;return{authority:he,uniqueId:Kt,tenantId:pn,scopes:At.asArray(),account:An,idToken:c.id_token,idTokenClaims:T,accessToken:Qn,fromCache:!!ht&&ke.isResponseFromCache(ht),expiresOn:new Date(1e3*Number(Ce+c.expires_in)),tokenType:Zn,correlationId:ke.correlationId,state:c.state,fromNativeBroker:!0}})()}cacheAccount(c){this.browserStorage.setAccount(c),this.browserStorage.removeAccountContext(c).catch(u=>{this.logger.error(`Error occurred while removing account context from browser storage. ${u}`)})}cacheNativeTokens(c,u,T,X,he,Ce,ke){const ht=ie.c_(T,u.authority,c.id_token||"",u.clientId,X.tid||""),Et=ke+(u.tokenType===b.IO.POP?b.YM.SHR_NONCE_VALIDITY:("string"==typeof c.expires_in?parseInt(c.expires_in,10):c.expires_in)||0),Kt=this.generateScopes(c,u),pn=ie.Np(T,u.authority,he,u.clientId,X.tid||Ce,Kt.printScopes(),Et,0,Ge.u),An=new Re(void 0,ht,pn);this.nativeStorageManager.saveCacheRecord(An,u.storeInCache)}addTelemetryFromNativeResponse(c){const u=this.getMATSFromResponse(c);return u?(this.performanceClient.addFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:u.broker_version,matsAccountJoinOnStart:u.account_join_on_start,matsAccountJoinOnEnd:u.account_join_on_end,matsDeviceJoin:u.device_join,matsPromptBehavior:u.prompt_behavior,matsApiErrorCode:u.api_error_code,matsUiVisible:u.ui_visible,matsSilentCode:u.silent_code,matsSilentBiSubCode:u.silent_bi_sub_code,matsSilentMessage:u.silent_message,matsSilentStatus:u.silent_status,matsHttpStatus:u.http_status,matsHttpEventCount:u.http_event_count},this.correlationId),u):null}validateNativeResponse(c){if(c.hasOwnProperty("access_token")&&c.hasOwnProperty("id_token")&&c.hasOwnProperty("client_info")&&c.hasOwnProperty("account")&&c.hasOwnProperty("scope")&&c.hasOwnProperty("expires_in"))return c;throw(0,de.pz)(ir.W,"Response missing expected properties.")}getMATSFromResponse(c){if(c.properties.MATS)try{return JSON.parse(c.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null}isResponseFromCache(c){return typeof c.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!c.is_cached}initializeNativeRequest(c){var u=this;return(0,r.A)(function*(){u.logger.trace("NativeInteractionClient - initializeNativeRequest called");const T=c.authority||u.config.auth.authority;c.account&&(yield u.getDiscoveredAuthority(T,c.azureCloudOptions,c.account));const X=new H.H(T);X.validateAsUri();const{scopes:he,...Ce}=c,ke=new yn.l(he||[]);ke.appendScopes(b.aZ);const At={...Ce,accountId:u.accountId,clientId:u.config.auth.clientId,authority:X.urlString,scope:ke.printScopes(),redirectUri:u.getRedirectUri(c.redirectUri),prompt:(()=>{switch(u.apiId){case oe.sA.ssoSilent:case oe.sA.acquireTokenSilent_silentFlow:return u.logger.trace("initializeNativeRequest: silent request sets prompt to none"),b._M.NONE}if(c.prompt)switch(c.prompt){case b._M.NONE:case b._M.CONSENT:case b._M.LOGIN:return u.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),c.prompt;default:throw u.logger.trace(`initializeNativeRequest: prompt = ${c.prompt} is not compatible with native flow`),(0,ae.bD)(Fe.nF)}else u.logger.trace("initializeNativeRequest: prompt was not provided")})(),correlationId:u.correlationId,tokenType:c.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...c.extraQueryParameters,...c.tokenQueryParameters},extendedExpiryToken:!1};if(u.handleExtraBrokerParams(At),At.extraParameters=At.extraParameters||{},At.extraParameters.telemetry=oe.JD.MATS_TELEMETRY,c.authenticationScheme===b.IO.POP){const Et={resourceRequestUri:c.resourceRequestUri,resourceRequestMethod:c.resourceRequestMethod,shrClaims:c.shrClaims,shrNonce:c.shrNonce},Kt=new Fr(u.browserCrypto),pn=yield D(Kt.generateCnf.bind(Kt),m.MX.PopTokenGenerateCnf,u.logger,u.performanceClient,u.correlationId)(Et,u.logger);At.reqCnf=pn.reqCnfHash,At.keyId=pn.kid}return At})()}handleExtraBrokerParams(c){if(c.extraParameters&&c.extraParameters.hasOwnProperty("brk_client_id")&&c.extraParameters.hasOwnProperty("brk_redirect_uri")&&c.extraParameters.hasOwnProperty(jt.U6)){const X=c.extraParameters.brk_redirect_uri;c.extraParameters={child_client_id:c.extraParameters[jt.U6],child_redirect_uri:c.redirectUri},c.redirectUri=X}}}class Oe{constructor(c,u,T,X){this.logger=c,this.handshakeTimeoutMs=u,this.extensionId=X,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=T,this.handshakeEvent=T.startMeasurement(m.MX.NativeMessageHandlerHandshake)}sendMessage(c){var u=this;return(0,r.A)(function*(){u.logger.trace("NativeMessageHandler - sendMessage called.");const T={channel:oe.JD.CHANNEL_ID,extensionId:u.extensionId,responseId:(0,Jn.Oy)(),body:c};return u.logger.trace("NativeMessageHandler - Sending request to browser extension"),u.logger.tracePii(`NativeMessageHandler - Sending request to browser extension: ${JSON.stringify(T)}`),u.messageChannel.port1.postMessage(T),new Promise((X,he)=>{u.resolvers.set(T.responseId,{resolve:X,reject:he})})})()}static createProvider(c,u,T){return(0,r.A)(function*(){c.trace("NativeMessageHandler - createProvider called.");try{const X=new Oe(c,u,T,oe.JD.PREFERRED_EXTENSION_ID);return yield X.sendHandshakeRequest(),X}catch{const he=new Oe(c,u,T);return yield he.sendHandshakeRequest(),he}})()}sendHandshakeRequest(){var c=this;return(0,r.A)(function*(){c.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",c.windowListener,!1);const u={channel:oe.JD.CHANNEL_ID,extensionId:c.extensionId,responseId:(0,Jn.Oy)(),body:{method:oe.Ct.HandshakeRequest}};return c.handshakeEvent.add({extensionId:c.extensionId,extensionHandshakeTimeoutMs:c.handshakeTimeoutMs}),c.messageChannel.port1.onmessage=T=>{c.onChannelMessage(T)},window.postMessage(u,window.origin,[c.messageChannel.port2]),new Promise((T,X)=>{c.handshakeResolvers.set(u.responseId,{resolve:T,reject:X}),c.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",c.windowListener,!1),c.messageChannel.port1.close(),c.messageChannel.port2.close(),c.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),X((0,ae.bD)(Fe.y3)),c.handshakeResolvers.delete(u.responseId)},c.handshakeTimeoutMs)})})()}onWindowMessage(c){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),c.source!==window)return;const u=c.data;if(u.channel&&u.channel===oe.JD.CHANNEL_ID&&(!u.extensionId||u.extensionId===this.extensionId)&&u.body.method===oe.Ct.HandshakeRequest){const T=this.handshakeResolvers.get(u.responseId);if(!T)return void this.logger.trace(`NativeMessageHandler.onWindowMessage - resolver can't be found for request ${u.responseId}`);this.logger.verbose(u.extensionId?`Extension with id: ${u.extensionId} not installed`:"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),T.reject((0,ae.bD)(Fe.cq))}}onChannelMessage(c){this.logger.trace("NativeMessageHandler - onChannelMessage called.");const u=c.data,T=this.resolvers.get(u.responseId),X=this.handshakeResolvers.get(u.responseId);try{const he=u.body.method;if(he===oe.Ct.Response){if(!T)return;const Ce=u.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii(`NativeMessageHandler - Received response from browser extension: ${JSON.stringify(Ce)}`),"Success"!==Ce.status)T.reject(di(Ce.code,Ce.description,Ce.ext));else{if(!Ce.result)throw(0,de.pz)(ir.W,"Event does not contain result.");Ce.result.code&&Ce.result.description?T.reject(di(Ce.result.code,Ce.result.description,Ce.result.ext)):T.resolve(Ce.result)}this.resolvers.delete(u.responseId)}else if(he===oe.Ct.HandshakeResponse){if(!X)return void this.logger.trace(`NativeMessageHandler.onChannelMessage - resolver can't be found for request ${u.responseId}`);clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=u.extensionId,this.extensionVersion=u.body.version,this.logger.verbose(`NativeMessageHandler - Received HandshakeResponse from extension: ${this.extensionId}`),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),X.resolve(),this.handshakeResolvers.delete(u.responseId)}}catch(he){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii(`Error parsing response from WAM Extension: ${he}`),this.logger.errorPii(`Unable to parse ${c}`),T?T.reject(he):X&&X.reject(he)}}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}static isNativeAvailable(c,u,T,X){if(u.trace("isNativeAvailable called"),!c.system.allowNativeBroker)return u.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!T)return u.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(X)switch(X){case b.IO.BEARER:case b.IO.POP:return u.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return u.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0}}class Ke{constructor(c,u,T,X,he){this.authModule=c,this.browserStorage=u,this.authCodeRequest=T,this.logger=X,this.performanceClient=he}handleCodeResponse(c,u){var T=this;return(0,r.A)(function*(){let X;T.performanceClient.addQueueMeasurement(m.MX.HandleCodeResponse,u.correlationId);try{X=T.authModule.handleFragmentResponse(c,u.state)}catch(he){throw he instanceof it.g&&he.subError===Fe.fN?(0,ae.bD)(Fe.fN):he}return D(T.handleCodeResponseFromServer.bind(T),m.MX.HandleCodeResponseFromServer,T.logger,T.performanceClient,u.correlationId)(X,u)})()}handleCodeResponseFromServer(c,u,T=!0){var X=this;return(0,r.A)(function*(){if(X.performanceClient.addQueueMeasurement(m.MX.HandleCodeResponseFromServer,u.correlationId),X.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),X.authCodeRequest.code=c.code,c.cloud_instance_host_name&&(yield D(X.authModule.updateAuthority.bind(X.authModule),m.MX.UpdateTokenEndpointAuthority,X.logger,X.performanceClient,u.correlationId)(c.cloud_instance_host_name,u.correlationId)),T&&(c.nonce=u.nonce||void 0),c.state=u.state,c.client_info)X.authCodeRequest.clientInfo=c.client_info;else{const Ce=X.createCcsCredentials(u);Ce&&(X.authCodeRequest.ccsCredential=Ce)}return yield D(X.authModule.acquireToken.bind(X.authModule),m.MX.AuthClientAcquireToken,X.logger,X.performanceClient,u.correlationId)(X.authCodeRequest,c)})()}createCcsCredentials(c){return c.account?{credential:c.account.homeAccountId,type:"home_account_id"}:c.loginHint?{credential:c.loginHint,type:"UPN"}:null}}var ze=_(2718);function Tt(nt,c,u){const T=ze.n(nt);if(!T)throw ze.S(nt)?(u.error(`A ${c} is present in the iframe but it does not contain known properties. It's likely that the ${c} has been replaced by code running on the redirectUri page.`),u.errorPii(`The ${c} detected is: ${nt}`),(0,ae.bD)(Fe.Lm)):(u.error(`The request has returned to the redirectUri but a ${c} is not present. It's likely that the ${c} has been removed or the page has been redirected by code running on the redirectUri page.`),(0,ae.bD)(Fe.wv));return T}class xt extends nr{constructor(c,u,T,X,he,Ce,ke,ht,At,Et){super(c,u,T,X,he,Ce,ke,At,Et),this.unloadWindow=this.unloadWindow.bind(this),this.nativeStorage=ht}acquireToken(c){try{const u=this.generatePopupName(c.scopes||b.aZ,c.authority||this.config.auth.authority),T=c.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(c,u,T);{this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");const X=this.openSizedPopup("about:blank",u,T);return this.acquireTokenPopupAsync(c,u,T,X)}}catch(u){return Promise.reject(u)}}logout(c){try{this.logger.verbose("logoutPopup called");const u=this.initializeLogoutRequest(c),T=this.generateLogoutPopupName(u),X=c&&c.authority,he=c&&c.mainWindowRedirectUri,Ce=c?.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(u,T,Ce,X,void 0,he);{this.logger.verbose("asyncPopup set to false, opening popup");const ke=this.openSizedPopup("about:blank",T,Ce);return this.logoutPopupAsync(u,T,Ce,X,ke,he)}}catch(u){return Promise.reject(u)}}acquireTokenPopupAsync(c,u,T,X){var he=this;return(0,r.A)(function*(){he.logger.verbose("acquireTokenPopupAsync called");const Ce=he.initializeServerTelemetryManager(oe.sA.acquireTokenPopup),ke=yield D(he.initializeAuthorizationRequest.bind(he),m.MX.StandardInteractionClientInitializeAuthorizationRequest,he.logger,he.performanceClient,he.correlationId)(c,oe.X8.Popup);(0,ct.kZ)(ke.authority);try{const ht=yield D(he.initializeAuthorizationCodeRequest.bind(he),m.MX.StandardInteractionClientInitializeAuthorizationCodeRequest,he.logger,he.performanceClient,he.correlationId)(ke),At=yield D(he.createAuthCodeClient.bind(he),m.MX.StandardInteractionClientCreateAuthCodeClient,he.logger,he.performanceClient,he.correlationId)(Ce,ke.authority,ke.azureCloudOptions,ke.account),Et=Oe.isNativeAvailable(he.config,he.logger,he.nativeMessageHandler,c.authenticationScheme);let Kt;Et&&(Kt=he.performanceClient.startMeasurement(m.MX.FetchAccountIdWithNativeBroker,c.correlationId));const pn=yield At.getAuthCodeUrl({...ke,nativeBroker:Et}),An=new Ke(At,he.browserStorage,ht,he.logger,he.performanceClient),Zn=he.initiateAuthRequest(pn,{popup:X,popupName:u,popupWindowAttributes:T});he.eventHandler.emitEvent(St.B.POPUP_OPENED,oe.X8.Popup,{popupWindow:Zn},null);const Dr=yield he.monitorPopupForHash(Zn),hi=k(Tt,m.MX.DeserializeResponse,he.logger,he.performanceClient,he.correlationId)(Dr,he.config.auth.OIDCOptions.serverResponseType,he.logger);if(Xe.removeThrottle(he.browserStorage,he.config.auth.clientId,ht),hi.accountId){if(he.logger.verbose("Account id found in hash, calling WAM for token"),Kt&&Kt.end({success:!0,isNativeBroker:!0}),!he.nativeMessageHandler)throw(0,ae.bD)(Fe.XC);const Ri=new $n(he.config,he.browserStorage,he.browserCrypto,he.logger,he.eventHandler,he.navigationClient,oe.sA.acquireTokenPopup,he.performanceClient,he.nativeMessageHandler,hi.accountId,he.nativeStorage,ke.correlationId),{userRequestState:Pi}=Ue.parseRequestState(he.browserCrypto,ke.state);return yield Ri.acquireToken({...ke,state:Pi,prompt:void 0})}return yield An.handleCodeResponse(hi,ke)}catch(ht){throw X&&X.close(),ht instanceof de.lR&&(ht.setCorrelationId(he.correlationId),Ce.cacheFailedRequest(ht)),ht}})()}logoutPopupAsync(c,u,T,X,he,Ce){var ke=this;return(0,r.A)(function*(){ke.logger.verbose("logoutPopupAsync called"),ke.eventHandler.emitEvent(St.B.LOGOUT_START,oe.X8.Popup,c);const ht=ke.initializeServerTelemetryManager(oe.sA.logoutPopup);try{yield ke.clearCacheOnLogout(c.account);const Et=(yield D(ke.createAuthCodeClient.bind(ke),m.MX.StandardInteractionClientCreateAuthCodeClient,ke.logger,ke.performanceClient,ke.correlationId)(ht,X,void 0,c.account||void 0)).getLogoutUri(c);ke.eventHandler.emitEvent(St.B.LOGOUT_SUCCESS,oe.X8.Popup,c);const Kt=ke.openPopup(Et,{popupName:u,popupWindowAttributes:T,popup:he});if(ke.eventHandler.emitEvent(St.B.POPUP_OPENED,oe.X8.Popup,{popupWindow:Kt},null),yield ke.monitorPopupForHash(Kt).catch(()=>{}),Ce){const pn={apiId:oe.sA.logoutPopup,timeout:ke.config.system.redirectNavigationTimeout,noHistory:!1},An=H.H.getAbsoluteUrl(Ce,(0,ct.Uu)());ke.logger.verbose("Redirecting main window to url specified in the request"),ke.logger.verbosePii(`Redirecting main window to: ${An}`),yield ke.navigationClient.navigateInternal(An,pn)}else ke.logger.verbose("No main window navigation requested")}catch(At){throw he&&he.close(),At instanceof de.lR&&(At.setCorrelationId(ke.correlationId),ht.cacheFailedRequest(At)),ke.browserStorage.setInteractionInProgress(!1),ke.eventHandler.emitEvent(St.B.LOGOUT_FAILURE,oe.X8.Popup,null,At),ke.eventHandler.emitEvent(St.B.LOGOUT_END,oe.X8.Popup),At}ke.eventHandler.emitEvent(St.B.LOGOUT_END,oe.X8.Popup)})()}initiateAuthRequest(c,u){if(c)return this.logger.infoPii(`Navigate to: ${c}`),this.openPopup(c,u);throw this.logger.error("Navigate url is empty"),(0,ae.bD)(Fe.B2)}monitorPopupForHash(c){return new Promise((u,T)=>{this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");const X=setInterval(()=>{if(c.closed)return this.logger.error("PopupHandler.monitorPopupForHash - window closed"),clearInterval(X),void T((0,ae.bD)(Fe.fN));let he="";try{he=c.location.href}catch{}if(!he||"about:blank"===he)return;clearInterval(X);let Ce="";c&&(Ce=this.config.auth.OIDCOptions.serverResponseType===b.zL.QUERY?c.location.search:c.location.hash),this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),u(Ce)},this.config.system.pollIntervalMilliseconds)}).finally(()=>{this.cleanPopup(c)})}openPopup(c,u){try{let T;if(u.popup?(T=u.popup,this.logger.verbosePii(`Navigating popup window to: ${c}`),T.location.assign(c)):typeof u.popup>"u"&&(this.logger.verbosePii(`Opening popup window to: ${c}`),T=this.openSizedPopup(c,u.popupName,u.popupWindowAttributes)),!T)throw(0,ae.bD)(Fe.MP);return T.focus&&T.focus(),this.currentWindow=T,window.addEventListener("beforeunload",this.unloadWindow),T}catch(T){throw this.logger.error("error opening popup "+T.message),this.browserStorage.setInteractionInProgress(!1),(0,ae.bD)(Fe.hs)}}openSizedPopup(c,u,T){const X=window.screenLeft?window.screenLeft:window.screenX,he=window.screenTop?window.screenTop:window.screenY,Ce=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,ke=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;let ht=T.popupSize?.width,At=T.popupSize?.height,Et=T.popupPosition?.top,Kt=T.popupPosition?.left;return(!ht||ht<0||ht>Ce)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),ht=oe.Q1.POPUP_WIDTH),(!At||At<0||At>ke)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),At=oe.Q1.POPUP_HEIGHT),(!Et||Et<0||Et>ke)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),Et=Math.max(0,ke/2-oe.Q1.POPUP_HEIGHT/2+he)),(!Kt||Kt<0||Kt>Ce)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),Kt=Math.max(0,Ce/2-oe.Q1.POPUP_WIDTH/2+X)),window.open(c,u,`width=${ht}, height=${At}, top=${Et}, left=${Kt}, scrollbars=yes`)}unloadWindow(c){this.browserStorage.cleanRequestByInteractionType(oe.X8.Popup),this.currentWindow&&this.currentWindow.close(),c.preventDefault()}cleanPopup(c){c&&c.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)}generatePopupName(c,u){return`${oe.Q1.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${c.join("-")}.${u}.${this.correlationId}`}generateLogoutPopupName(c){return`${oe.Q1.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${c.account&&c.account.homeAccountId}.${this.correlationId}`}}class Ft{constructor(c,u,T,X,he){this.authModule=c,this.browserStorage=u,this.authCodeRequest=T,this.logger=X,this.performanceClient=he}initiateAuthRequest(c,u){var T=this;return(0,r.A)(function*(){if(T.logger.verbose("RedirectHandler.initiateAuthRequest called"),c){u.redirectStartPage&&(T.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),T.browserStorage.setTemporaryCache(oe._p.ORIGIN_URI,u.redirectStartPage,!0)),T.browserStorage.setTemporaryCache(oe._p.CORRELATION_ID,T.authCodeRequest.correlationId,!0),T.browserStorage.cacheCodeRequest(T.authCodeRequest),T.logger.infoPii(`RedirectHandler.initiateAuthRequest: Navigate to: ${c}`);const X={apiId:oe.sA.acquireTokenRedirect,timeout:u.redirectTimeout,noHistory:!1};return"function"==typeof u.onRedirectNavigate?(T.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),!1!==u.onRedirectNavigate(c)?(T.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),void(yield u.navigationClient.navigateExternal(c,X))):void T.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation")):(T.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),void(yield u.navigationClient.navigateExternal(c,X)))}throw T.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),(0,ae.bD)(Fe.B2)})()}handleCodeResponse(c,u){var T=this;return(0,r.A)(function*(){T.logger.verbose("RedirectHandler.handleCodeResponse called"),T.browserStorage.setInteractionInProgress(!1);const X=T.browserStorage.generateStateKey(u),he=T.browserStorage.getTemporaryCache(X);if(!he)throw(0,P.SB)(te.tQ,"Cached State");let Ce;try{Ce=T.authModule.handleFragmentResponse(c,he)}catch(Et){throw Et instanceof it.g&&Et.subError===Fe.fN?(0,ae.bD)(Fe.fN):Et}const ke=T.browserStorage.generateNonceKey(he),ht=T.browserStorage.getTemporaryCache(ke);if(T.authCodeRequest.code=Ce.code,Ce.cloud_instance_host_name&&(yield D(T.authModule.updateAuthority.bind(T.authModule),m.MX.UpdateTokenEndpointAuthority,T.logger,T.performanceClient,T.authCodeRequest.correlationId)(Ce.cloud_instance_host_name,T.authCodeRequest.correlationId)),Ce.nonce=ht||void 0,Ce.state=he,Ce.client_info)T.authCodeRequest.clientInfo=Ce.client_info;else{const Et=T.checkCcsCredentials();Et&&(T.authCodeRequest.ccsCredential=Et)}const At=yield T.authModule.acquireToken(T.authCodeRequest,Ce);return T.browserStorage.cleanRequestByState(u),At})()}checkCcsCredentials(){const c=this.browserStorage.getTemporaryCache(oe._p.CCS_CREDENTIAL,!0);if(c)try{return JSON.parse(c)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii(`Cache credential could not be parsed: ${c}`)}return null}}class Be extends nr{constructor(c,u,T,X,he,Ce,ke,ht,At,Et){super(c,u,T,X,he,Ce,ke,At,Et),this.nativeStorage=ht}acquireToken(c){var u=this;return(0,r.A)(function*(){const T=yield D(u.initializeAuthorizationRequest.bind(u),m.MX.StandardInteractionClientInitializeAuthorizationRequest,u.logger,u.performanceClient,u.correlationId)(c,oe.X8.Redirect);u.browserStorage.updateCacheEntries(T.state,T.nonce,T.authority,T.loginHint||"",T.account||null);const X=u.initializeServerTelemetryManager(oe.sA.acquireTokenRedirect),he=Ce=>{Ce.persisted&&(u.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),u.browserStorage.cleanRequestByState(T.state),u.eventHandler.emitEvent(St.B.RESTORE_FROM_BFCACHE,oe.X8.Redirect))};try{const Ce=yield D(u.initializeAuthorizationCodeRequest.bind(u),m.MX.StandardInteractionClientInitializeAuthorizationCodeRequest,u.logger,u.performanceClient,u.correlationId)(T),ke=yield D(u.createAuthCodeClient.bind(u),m.MX.StandardInteractionClientCreateAuthCodeClient,u.logger,u.performanceClient,u.correlationId)(X,T.authority,T.azureCloudOptions,T.account),ht=new Ft(ke,u.browserStorage,Ce,u.logger,u.performanceClient),At=yield ke.getAuthCodeUrl({...T,nativeBroker:Oe.isNativeAvailable(u.config,u.logger,u.nativeMessageHandler,c.authenticationScheme)}),Et=u.getRedirectStartPage(c.redirectStartPage);return u.logger.verbosePii(`Redirect start page: ${Et}`),window.addEventListener("pageshow",he),yield ht.initiateAuthRequest(At,{navigationClient:u.navigationClient,redirectTimeout:u.config.system.redirectNavigationTimeout,redirectStartPage:Et,onRedirectNavigate:c.onRedirectNavigate})}catch(Ce){throw Ce instanceof de.lR&&(Ce.setCorrelationId(u.correlationId),X.cacheFailedRequest(Ce)),window.removeEventListener("pageshow",he),u.browserStorage.cleanRequestByState(T.state),Ce}})()}handleRedirectPromise(c,u,T){var X=this;return(0,r.A)(function*(){const he=X.initializeServerTelemetryManager(oe.sA.handleRedirectPromise);try{if(!X.browserStorage.isInteractionInProgress(!0))return X.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const[Ce,ke]=X.getRedirectResponse(c||"");if(!Ce)return X.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache."),X.browserStorage.cleanRequestByInteractionType(oe.X8.Redirect),u&&T&&u?.addFields({errorCode:"no_server_response"},T),null;const ht=X.browserStorage.getTemporaryCache(oe._p.ORIGIN_URI,!0)||b.YM.EMPTY_STRING;if(H.H.removeHashFromUrl(ht)===H.H.removeHashFromUrl(window.location.href)&&X.config.auth.navigateToLoginRequestUrl)return X.logger.verbose("Current page is loginRequestUrl, handling response"),ht.indexOf("#")>-1&&(0,ct.nQ)(ht),yield X.handleResponse(Ce,he);if(!X.config.auth.navigateToLoginRequestUrl)return X.logger.verbose("NavigateToLoginRequestUrl set to false, handling response"),yield X.handleResponse(Ce,he);if(!(0,ct.GZ)()||X.config.system.allowRedirectInIframe){X.browserStorage.setTemporaryCache(oe._p.URL_HASH,ke,!0);const Kt={apiId:oe.sA.handleRedirectPromise,timeout:X.config.system.redirectNavigationTimeout,noHistory:!0};let pn=!0;if(ht&&"null"!==ht)X.logger.verbose(`Navigating to loginRequestUrl: ${ht}`),pn=yield X.navigationClient.navigateInternal(ht,Kt);else{const An=(0,ct.VX)();X.browserStorage.setTemporaryCache(oe._p.ORIGIN_URI,An,!0),X.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),pn=yield X.navigationClient.navigateInternal(An,Kt)}if(!pn)return yield X.handleResponse(Ce,he)}return null}catch(Ce){throw Ce instanceof de.lR&&(Ce.setCorrelationId(X.correlationId),he.cacheFailedRequest(Ce)),X.browserStorage.cleanRequestByInteractionType(oe.X8.Redirect),Ce}})()}getRedirectResponse(c){this.logger.verbose("getRedirectResponseHash called");let u=c;u||(u=this.config.auth.OIDCOptions.serverResponseType===b.zL.QUERY?window.location.search:window.location.hash);let T=ze.n(u);if(T){try{!function yt(nt,c,u){if(!nt.state)throw(0,ae.bD)(Fe.c$);const T=We(c,nt.state);if(!T)throw(0,ae.bD)(Fe.fA);if(T.interactionType!==u)throw(0,ae.bD)(Fe.oe)}(T,this.browserCrypto,oe.X8.Redirect)}catch(he){return he instanceof de.lR&&this.logger.error(`Interaction type validation failed due to ${he.errorCode}: ${he.errorMessage}`),[null,""]}return(0,ct.U2)(window),this.logger.verbose("Hash contains known properties, returning response hash"),[T,u]}const X=this.browserStorage.getTemporaryCache(oe._p.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(oe._p.URL_HASH)),X&&(T=ze.n(X),T)?(this.logger.verbose("Hash does not contain known properties, returning cached hash"),[T,X]):[null,""]}handleResponse(c,u){var T=this;return(0,r.A)(function*(){const X=c.state;if(!X)throw(0,ae.bD)(Fe.c$);const he=T.browserStorage.getCachedRequest(X);if(T.logger.verbose("handleResponse called, retrieved cached request"),c.accountId){if(T.logger.verbose("Account id found in hash, calling WAM for token"),!T.nativeMessageHandler)throw(0,ae.bD)(Fe.XC);const At=new $n(T.config,T.browserStorage,T.browserCrypto,T.logger,T.eventHandler,T.navigationClient,oe.sA.acquireTokenPopup,T.performanceClient,T.nativeMessageHandler,c.accountId,T.nativeStorage,he.correlationId),{userRequestState:Et}=Ue.parseRequestState(T.browserCrypto,X);return At.acquireToken({...he,state:Et,prompt:void 0}).finally(()=>{T.browserStorage.cleanRequestByState(X)})}const Ce=T.browserStorage.getCachedAuthority(X);if(!Ce)throw(0,ae.bD)(Fe.Ne);const ke=yield D(T.createAuthCodeClient.bind(T),m.MX.StandardInteractionClientCreateAuthCodeClient,T.logger,T.performanceClient,T.correlationId)(u,Ce);return Xe.removeThrottle(T.browserStorage,T.config.auth.clientId,he),new Ft(ke,T.browserStorage,he,T.logger,T.performanceClient).handleCodeResponse(c,X)})()}logout(c){var u=this;return(0,r.A)(function*(){u.logger.verbose("logoutRedirect called");const T=u.initializeLogoutRequest(c),X=u.initializeServerTelemetryManager(oe.sA.logout);try{u.eventHandler.emitEvent(St.B.LOGOUT_START,oe.X8.Redirect,c),yield u.clearCacheOnLogout(T.account);const he={apiId:oe.sA.logout,timeout:u.config.system.redirectNavigationTimeout,noHistory:!1},ke=(yield D(u.createAuthCodeClient.bind(u),m.MX.StandardInteractionClientCreateAuthCodeClient,u.logger,u.performanceClient,u.correlationId)(X,c&&c.authority,void 0,c&&c.account||void 0)).getLogoutUri(T);if(u.eventHandler.emitEvent(St.B.LOGOUT_SUCCESS,oe.X8.Redirect,T),!c||"function"!=typeof c.onRedirectNavigate)return u.browserStorage.getInteractionInProgress()||u.browserStorage.setInteractionInProgress(!0),void(yield u.navigationClient.navigateExternal(ke,he));if(!1!==c.onRedirectNavigate(ke))return u.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),u.browserStorage.getInteractionInProgress()||u.browserStorage.setInteractionInProgress(!0),void(yield u.navigationClient.navigateExternal(ke,he));u.browserStorage.setInteractionInProgress(!1),u.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation")}catch(he){throw he instanceof de.lR&&(he.setCorrelationId(u.correlationId),X.cacheFailedRequest(he)),u.eventHandler.emitEvent(St.B.LOGOUT_FAILURE,oe.X8.Redirect,null,he),u.eventHandler.emitEvent(St.B.LOGOUT_END,oe.X8.Redirect),he}u.eventHandler.emitEvent(St.B.LOGOUT_END,oe.X8.Redirect)})()}getRedirectStartPage(c){const u=c||window.location.href;return H.H.getAbsoluteUrl(u,(0,ct.Uu)())}}var xe=_(5189);function Z(nt,c,u,T,X){return Me.apply(this,arguments)}function Me(){return(Me=(0,r.A)(function*(nt,c,u,T,X){if(c.addQueueMeasurement(m.MX.SilentHandlerInitiateAuthRequest,T),!nt)throw u.info("Navigate url is empty"),(0,ae.bD)(Fe.B2);return X?D(Rt,m.MX.SilentHandlerLoadFrame,u,c,T)(nt,X,c,T):k(nn,m.MX.SilentHandlerLoadFrameSync,u,c,T)(nt)})).apply(this,arguments)}function je(nt,c,u,T,X,he,Ce){return pt.apply(this,arguments)}function pt(){return(pt=(0,r.A)(function*(nt,c,u,T,X,he,Ce){return T.addQueueMeasurement(m.MX.SilentHandlerMonitorIframeForHash,he),new Promise((ke,ht)=>{c<xe.YH&&X.warning(`system.loadFrameTimeout or system.iframeHashTimeout set to lower (${c}ms) than the default (${xe.YH}ms). This may result in timeouts.`);const At=window.setTimeout(()=>{window.clearInterval(Et),ht((0,ae.bD)(Fe.Uf))},c),Et=window.setInterval(()=>{let Kt="";const pn=nt.contentWindow;try{Kt=pn?pn.location.href:""}catch{}if(!Kt||"about:blank"===Kt)return;let An="";pn&&(An=Ce===b.zL.QUERY?pn.location.search:pn.location.hash),window.clearTimeout(At),window.clearInterval(Et),ke(An)},u)}).finally(()=>{k(en,m.MX.RemoveHiddenIframe,X,T,he)(nt)})})).apply(this,arguments)}function Rt(nt,c,u,T){return u.addQueueMeasurement(m.MX.SilentHandlerLoadFrame,T),new Promise((X,he)=>{const Ce=an();window.setTimeout(()=>{Ce?(Ce.src=nt,X(Ce)):he("Unable to load iframe")},c)})}function nn(nt){const c=an();return c.src=nt,c}function an(){const nt=document.createElement("iframe");return nt.style.visibility="hidden",nt.style.position="absolute",nt.style.width=nt.style.height="0",nt.style.border="0",nt.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.body.appendChild(nt),nt}function en(nt){document.body===nt.parentNode&&document.body.removeChild(nt)}class rn extends nr{constructor(c,u,T,X,he,Ce,ke,ht,At,Et,Kt){super(c,u,T,X,he,Ce,ht,Et,Kt),this.apiId=ke,this.nativeStorage=At}acquireToken(c){var u=this;return(0,r.A)(function*(){u.performanceClient.addQueueMeasurement(m.MX.SilentIframeClientAcquireToken,c.correlationId),!c.loginHint&&!c.sid&&(!c.account||!c.account.username)&&u.logger.warning("No user hint provided. The authorization server may need more information to complete this request.");const T={...c};T.prompt?T.prompt!==b._M.NONE&&T.prompt!==b._M.NO_SESSION&&(u.logger.warning(`SilentIframeClient. Replacing invalid prompt ${T.prompt} with ${b._M.NONE}`),T.prompt=b._M.NONE):T.prompt=b._M.NONE;const X=yield D(u.initializeAuthorizationRequest.bind(u),m.MX.StandardInteractionClientInitializeAuthorizationRequest,u.logger,u.performanceClient,c.correlationId)(T,oe.X8.Silent);(0,ct.kZ)(X.authority);const he=u.initializeServerTelemetryManager(u.apiId);try{const Ce=yield D(u.createAuthCodeClient.bind(u),m.MX.StandardInteractionClientCreateAuthCodeClient,u.logger,u.performanceClient,c.correlationId)(he,X.authority,X.azureCloudOptions,X.account);return yield D(u.silentTokenHelper.bind(u),m.MX.SilentIframeClientTokenHelper,u.logger,u.performanceClient,c.correlationId)(Ce,X)}catch(Ce){throw Ce instanceof de.lR&&(Ce.setCorrelationId(u.correlationId),he.cacheFailedRequest(Ce)),Ce}})()}logout(){return Promise.reject((0,ae.bD)(Fe.v7))}silentTokenHelper(c,u){var T=this;return(0,r.A)(function*(){const X=u.correlationId;T.performanceClient.addQueueMeasurement(m.MX.SilentIframeClientTokenHelper,X);const he=yield D(T.initializeAuthorizationCodeRequest.bind(T),m.MX.StandardInteractionClientInitializeAuthorizationCodeRequest,T.logger,T.performanceClient,X)(u),Ce=yield D(c.getAuthCodeUrl.bind(c),m.MX.GetAuthCodeUrl,T.logger,T.performanceClient,X)({...u,nativeBroker:Oe.isNativeAvailable(T.config,T.logger,T.nativeMessageHandler,u.authenticationScheme)}),ke=new Ke(c,T.browserStorage,he,T.logger,T.performanceClient),ht=yield D(Z,m.MX.SilentHandlerInitiateAuthRequest,T.logger,T.performanceClient,X)(Ce,T.performanceClient,T.logger,X,T.config.system.navigateFrameWait),At=T.config.auth.OIDCOptions.serverResponseType,Et=yield D(je,m.MX.SilentHandlerMonitorIframeForHash,T.logger,T.performanceClient,X)(ht,T.config.system.iframeHashTimeout,T.config.system.pollIntervalMilliseconds,T.performanceClient,T.logger,X,At),Kt=k(Tt,m.MX.DeserializeResponse,T.logger,T.performanceClient,T.correlationId)(Et,At,T.logger);if(Kt.accountId){if(T.logger.verbose("Account id found in hash, calling WAM for token"),!T.nativeMessageHandler)throw(0,ae.bD)(Fe.XC);const pn=new $n(T.config,T.browserStorage,T.browserCrypto,T.logger,T.eventHandler,T.navigationClient,T.apiId,T.performanceClient,T.nativeMessageHandler,Kt.accountId,T.browserStorage,X),{userRequestState:An}=Ue.parseRequestState(T.browserCrypto,u.state);return D(pn.acquireToken.bind(pn),m.MX.NativeInteractionClientAcquireToken,T.logger,T.performanceClient,X)({...u,state:An,prompt:u.prompt||b._M.NONE})}return D(ke.handleCodeResponse.bind(ke),m.MX.HandleCodeResponse,T.logger,T.performanceClient,X)(Kt,u)})()}}class Vn extends nr{acquireToken(c){var u=this;return(0,r.A)(function*(){u.performanceClient.addQueueMeasurement(m.MX.SilentRefreshClientAcquireToken,c.correlationId);const T=yield D(Lt,m.MX.InitializeBaseRequest,u.logger,u.performanceClient,c.correlationId)(c,u.config,u.performanceClient,u.logger),X={...c,...T};c.redirectUri&&(X.redirectUri=u.getRedirectUri(c.redirectUri));const he=u.initializeServerTelemetryManager(oe.sA.acquireTokenSilent_silentFlow),Ce=yield u.createRefreshTokenClient(he,X.authority,X.azureCloudOptions,X.account);return D(Ce.acquireTokenByRefreshToken.bind(Ce),m.MX.RefreshTokenClientAcquireTokenByRefreshToken,u.logger,u.performanceClient,c.correlationId)(X).catch(ke=>{throw ke.setCorrelationId(u.correlationId),he.cacheFailedRequest(ke),ke})})()}logout(){return Promise.reject((0,ae.bD)(Fe.v7))}createRefreshTokenClient(c,u,T,X){var he=this;return(0,r.A)(function*(){const Ce=yield D(he.getClientConfiguration.bind(he),m.MX.StandardInteractionClientGetClientConfiguration,he.logger,he.performanceClient,he.correlationId)(c,u,T,X);return new gr(Ce,he.performanceClient)})()}}class En{constructor(c,u,T,X){this.isBrowserEnvironment=typeof window<"u",this.config=c,this.storage=u,this.logger=T,this.cryptoObj=X}loadExternalTokens(c,u,T){if(this.logger.info("TokenCache - loadExternalTokens called"),!u.id_token)throw(0,ae.bD)(Fe.s9);const X=_e.My(u.id_token,Ge.u);let he,Ce,ke;if(c.account)ke=Q.d.createFromAccountInfo(c.account),he=new Re(ke,this.loadIdToken(u.id_token,ke.homeAccountId,c.account.environment,c.account.tenantId),this.loadAccessToken(c,u,ke.homeAccountId,c.account.environment,c.account.tenantId,T),this.loadRefreshToken(c,u,ke.homeAccountId,c.account.environment));else{if(!c.authority)throw(0,ae.bD)(Fe.s9);{const ht=z.generateAuthority(c.authority,c.azureCloudOptions);if(Ce=new z(ht,this.config.system.networkClient,this.storage,{protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},this.logger,c.correlationId||(0,Jn.Oy)()),T.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),ke=this.loadAccount(X,Ce,T.clientInfo),he=new Re(ke,this.loadIdToken(u.id_token,ke.homeAccountId,Ce.hostnameAndPort,Ce.tenant),this.loadAccessToken(c,u,ke.homeAccountId,Ce.hostnameAndPort,Ce.tenant,T),this.loadRefreshToken(c,u,ke.homeAccountId,Ce.hostnameAndPort));else{if(!u.client_info)throw(0,ae.bD)(Fe.s9);this.logger.trace("TokenCache - homeAccountId from response"),ke=this.loadAccount(X,Ce,u.client_info),he=new Re(ke,this.loadIdToken(u.id_token,ke.homeAccountId,Ce.hostnameAndPort,Ce.tenant),this.loadAccessToken(c,u,ke.homeAccountId,Ce.hostnameAndPort,Ce.tenant,T),this.loadRefreshToken(c,u,ke.homeAccountId,Ce.hostnameAndPort))}}}return this.generateAuthenticationResult(c,X,he,ke,Ce)}loadAccount(c,u,T,X){if(this.isBrowserEnvironment){let he;if(this.logger.verbose("TokenCache - loading account"),X?he=X:void 0!==u.authorityType&&T&&(he=Q.d.generateHomeAccountId(T,u.authorityType,this.logger,this.cryptoObj,c)),!he)throw(0,ae.bD)(Fe.s9);const ke=bn(this.storage,u,he,c,Ge.u,T,u.hostnameAndPort,c.tid,void 0,void 0,this.logger);return this.storage.setAccount(ke),ke}throw(0,ae.bD)(Fe.s9)}loadIdToken(c,u,T,X){const he=ie.c_(u,T,c,this.config.auth.clientId,X);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(he),he;throw(0,ae.bD)(Fe.s9)}loadAccessToken(c,u,T,X,he,Ce){if(!u.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!u.expires_in||!Ce.extendedExpiresOn)throw(0,ae.bD)(Fe.s9);const ke=new yn.l(c.scopes).printScopes(),ht=Ce.expiresOn||u.expires_in+(new Date).getTime()/1e3,Et=ie.Np(T,X,u.access_token,this.config.auth.clientId,he,ke,ht,Ce.extendedExpiresOn,Ge.u);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(Et),Et;throw(0,ae.bD)(Fe.s9)}loadRefreshToken(c,u,T,X){if(!u.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;const he=ie.Mg(T,X,u.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(he),he;throw(0,ae.bD)(Fe.s9)}generateAuthenticationResult(c,u,T,X,he){let At,Ce=b.YM.EMPTY_STRING,ke=[],ht=null;return T?.accessToken&&(Ce=T.accessToken.secret,ke=yn.l.fromString(T.accessToken.target).asArray(),ht=new Date(1e3*Number(T.accessToken.expiresOn)),At=new Date(1e3*Number(T.accessToken.extendedExpiresOn))),{authority:he?he.canonicalAuthority:b.YM.EMPTY_STRING,uniqueId:u.oid||u.sub||b.YM.EMPTY_STRING,tenantId:u.tid||b.YM.EMPTY_STRING,scopes:ke,account:X.getAccountInfo(),idToken:T.idToken?.secret||"",idTokenClaims:u||{},accessToken:Ce,fromCache:!0,expiresOn:ht,correlationId:c.correlationId||b.YM.EMPTY_STRING,requestId:b.YM.EMPTY_STRING,extExpiresOn:At,familyId:b.YM.EMPTY_STRING,tokenType:T?.accessToken?.tokenType||b.YM.EMPTY_STRING,state:b.YM.EMPTY_STRING,cloudGraphHostName:X.cloudGraphHostName||b.YM.EMPTY_STRING,msGraphHost:X.msGraphHost||b.YM.EMPTY_STRING,code:void 0,fromNativeBroker:!1}}}class Wn extends _n{constructor(c){super(c),this.includeRedirectUri=!1}}class or extends nr{constructor(c,u,T,X,he,Ce,ke,ht,At,Et){super(c,u,T,X,he,Ce,ht,At,Et),this.apiId=ke}acquireToken(c){var u=this;return(0,r.A)(function*(){if(!c.code)throw(0,ae.bD)(Fe.R3);const T=yield D(u.initializeAuthorizationRequest.bind(u),m.MX.StandardInteractionClientInitializeAuthorizationRequest,u.logger,u.performanceClient,c.correlationId)(c,oe.X8.Silent),X=u.initializeServerTelemetryManager(u.apiId);try{const he={...T,code:c.code},Ce=yield D(u.getClientConfiguration.bind(u),m.MX.StandardInteractionClientGetClientConfiguration,u.logger,u.performanceClient,c.correlationId)(X,T.authority,T.azureCloudOptions,T.account),ke=new Wn(Ce);u.logger.verbose("Auth code client created");const ht=new Ke(ke,u.browserStorage,he,u.logger,u.performanceClient);return yield D(ht.handleCodeResponseFromServer.bind(ht),m.MX.HandleCodeResponseFromServer,u.logger,u.performanceClient,c.correlationId)({code:c.code,msgraph_host:c.msGraphHost,cloud_graph_host_name:c.cloudGraphHostName,cloud_instance_host_name:c.cloudInstanceHostName},T,!1)}catch(he){throw he instanceof de.lR&&(he.setCorrelationId(u.correlationId),X.cacheFailedRequest(he)),he}})()}logout(){return Promise.reject((0,ae.bD)(Fe.v7))}}class br{constructor(c){this.operatingContext=c,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=c.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new g.M(this.logger,this.performanceClient):R.j,this.eventHandler=new Gt.J(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new tt(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,function q(nt){const c=nt.cloudDiscoveryMetadata;let u;if(c)try{u=JSON.parse(c)}catch{throw(0,S.aD)(se.a_)}return{canonicalAuthority:nt.authority?Y(nt.authority):void 0,knownAuthorities:nt.knownAuthorities,cloudDiscoveryMetadata:u}}(this.config.auth)):((nt,c)=>new tt(this.config.auth.clientId,{cacheLocation:oe.Al.MemoryStorage,temporaryCacheLocation:oe.Al.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1},R.j,this.logger))(),this.nativeInternalStorage=new tt(this.config.auth.clientId,{cacheLocation:oe.Al.MemoryStorage,temporaryCacheLocation:oe.Al.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1},this.browserCrypto,this.logger),this.tokenCache=new En(this.config,this.browserStorage,this.logger,this.browserCrypto),this.activeSilentTokenRequests=new Map,this.trackPageVisibility=this.trackPageVisibility.bind(this),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}static createController(c){return(0,r.A)(function*(){const u=new br(c);return yield u.initialize(),u})()}trackPageVisibility(c){c&&(this.logger.info("Perf: Visibility change detected"),this.performanceClient.incrementFields({visibilityChangeCount:1},c))}initialize(){var c=this;return(0,r.A)(function*(){if(c.logger.trace("initialize called"),c.initialized)return void c.logger.info("initialize has already been called, exiting early.");const u=c.config.system.allowNativeBroker,T=c.performanceClient.startMeasurement(m.MX.InitializeClientApplication);if(c.eventHandler.emitEvent(St.B.INITIALIZE_START),u)try{c.nativeExtensionProvider=yield Oe.createProvider(c.logger,c.config.system.nativeBrokerHandshakeTimeout,c.performanceClient)}catch(X){c.logger.verbose(X)}c.config.cache.claimsBasedCachingEnabled||(c.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),yield D(c.browserStorage.clearTokensAndKeysWithClaims.bind(c.browserStorage),m.MX.ClearTokensAndKeysWithClaims,c.logger,c.performanceClient)(c.performanceClient)),c.initialized=!0,c.eventHandler.emitEvent(St.B.INITIALIZE_END),T.end({allowNativeBroker:u,success:!0})})()}handleRedirectPromise(c){var u=this;return(0,r.A)(function*(){u.logger.verbose("handleRedirectPromise called"),(0,ct.uh)(u.initialized);const T=u.getAllAccounts();if(u.isBrowserEnvironment){const X=c||"";let he=u.redirectResponse.get(X);if(typeof he>"u"){const Ce=u.browserStorage.getCachedNativeRequest(),ke=Ce&&Oe.isNativeAvailable(u.config,u.logger,u.nativeExtensionProvider)&&u.nativeExtensionProvider&&!c,ht=ke?Ce?.correlationId:u.browserStorage.getTemporaryCache(oe._p.CORRELATION_ID,!0)||"",At=u.performanceClient.startMeasurement("acquireTokenRedirect",ht);let Et;if(u.eventHandler.emitEvent(St.B.HANDLE_REDIRECT_START,oe.X8.Redirect),u.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),ke&&u.nativeExtensionProvider){u.logger.trace("handleRedirectPromise - acquiring token from native platform");const Kt=new $n(u.config,u.browserStorage,u.browserCrypto,u.logger,u.eventHandler,u.navigationClient,oe.sA.handleRedirectPromise,u.performanceClient,u.nativeExtensionProvider,Ce.accountId,u.nativeInternalStorage,Ce.correlationId);Et=D(Kt.handleRedirectPromise.bind(Kt),m.MX.HandleNativeRedirectPromiseMeasurement,u.logger,u.performanceClient,At.event.correlationId)(u.performanceClient,At.event.correlationId)}else{u.logger.trace("handleRedirectPromise - acquiring token from web flow");const Kt=u.createRedirectClient(ht);Et=D(Kt.handleRedirectPromise.bind(Kt),m.MX.HandleRedirectPromiseMeasurement,u.logger,u.performanceClient,At.event.correlationId)(c,u.performanceClient,At.event.correlationId)}he=Et.then(Kt=>(Kt&&(T.length<u.getAllAccounts().length?(u.eventHandler.emitEvent(St.B.LOGIN_SUCCESS,oe.X8.Redirect,Kt),u.logger.verbose("handleRedirectResponse returned result, login success")):(u.eventHandler.emitEvent(St.B.ACQUIRE_TOKEN_SUCCESS,oe.X8.Redirect,Kt),u.logger.verbose("handleRedirectResponse returned result, acquire token success")),At.end({success:!0})),u.eventHandler.emitEvent(St.B.HANDLE_REDIRECT_END,oe.X8.Redirect),At.end({success:!1}),Kt)).catch(Kt=>{const pn=Kt;throw u.eventHandler.emitEvent(T.length>0?St.B.ACQUIRE_TOKEN_FAILURE:St.B.LOGIN_FAILURE,oe.X8.Redirect,null,pn),u.eventHandler.emitEvent(St.B.HANDLE_REDIRECT_END,oe.X8.Redirect),At.end({success:!1},pn),Kt}),u.redirectResponse.set(X,he)}else u.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call");return he}return u.logger.verbose("handleRedirectPromise returns null, not browser environment"),null})()}acquireTokenRedirect(c){var u=this;return(0,r.A)(function*(){const T=u.getRequestCorrelationId(c);u.logger.verbose("acquireTokenRedirect called",T),(0,ct.Af)(u.initialized,u.config),u.browserStorage.setInteractionInProgress(!0);const X=u.getAllAccounts().length>0;let he;return u.eventHandler.emitEvent(X?St.B.ACQUIRE_TOKEN_START:St.B.LOGIN_START,oe.X8.Redirect,c),he=u.nativeExtensionProvider&&u.canUseNative(c)?new $n(u.config,u.browserStorage,u.browserCrypto,u.logger,u.eventHandler,u.navigationClient,oe.sA.acquireTokenRedirect,u.performanceClient,u.nativeExtensionProvider,u.getNativeAccountId(c),u.nativeInternalStorage,T).acquireTokenRedirect(c).catch(ke=>{if(ke instanceof _r&&vn(ke))return u.nativeExtensionProvider=void 0,u.createRedirectClient(T).acquireToken(c);if(ke instanceof ee.CB)return u.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),u.createRedirectClient(T).acquireToken(c);throw u.browserStorage.setInteractionInProgress(!1),ke}):u.createRedirectClient(T).acquireToken(c),he.catch(Ce=>{throw u.eventHandler.emitEvent(X?St.B.ACQUIRE_TOKEN_FAILURE:St.B.LOGIN_FAILURE,oe.X8.Redirect,null,Ce),Ce})})()}acquireTokenPopup(c){const u=this.getRequestCorrelationId(c),T=this.performanceClient.startMeasurement(m.MX.AcquireTokenPopup,u);try{this.logger.verbose("acquireTokenPopup called",u),(0,ct.Q3)(this.initialized),this.browserStorage.setInteractionInProgress(!0)}catch(Ce){return Promise.reject(Ce)}const X=this.getAllAccounts();let he;return this.eventHandler.emitEvent(X.length>0?St.B.ACQUIRE_TOKEN_START:St.B.LOGIN_START,oe.X8.Popup,c),he=this.canUseNative(c)?this.acquireTokenNative({...c,correlationId:u},oe.sA.acquireTokenPopup).then(Ce=>(this.browserStorage.setInteractionInProgress(!1),T.end({success:!0,isNativeBroker:!0,requestId:Ce.requestId}),Ce)).catch(Ce=>{if(Ce instanceof _r&&vn(Ce))return this.nativeExtensionProvider=void 0,this.createPopupClient(u).acquireToken(c);if(Ce instanceof ee.CB)return this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createPopupClient(u).acquireToken(c);throw this.browserStorage.setInteractionInProgress(!1),Ce}):this.createPopupClient(u).acquireToken(c),he.then(Ce=>(X.length<this.getAllAccounts().length?this.eventHandler.emitEvent(St.B.LOGIN_SUCCESS,oe.X8.Popup,Ce):this.eventHandler.emitEvent(St.B.ACQUIRE_TOKEN_SUCCESS,oe.X8.Popup,Ce),T.add({accessTokenSize:Ce.accessToken.length,idTokenSize:Ce.idToken.length}),T.end({success:!0,requestId:Ce.requestId}),Ce)).catch(Ce=>(this.eventHandler.emitEvent(X.length>0?St.B.ACQUIRE_TOKEN_FAILURE:St.B.LOGIN_FAILURE,oe.X8.Popup,null,Ce),T.end({success:!1},Ce),Promise.reject(Ce)))}trackPageVisibilityWithMeasurement(){const c=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;c&&(this.logger.info("Perf: Visibility change detected in ",c.event.name),c.increment({visibilityChangeCount:1}))}ssoSilent(c){var u=this;return(0,r.A)(function*(){const T=u.getRequestCorrelationId(c),X={...c,prompt:c.prompt,correlationId:T};let he;return(0,ct.Q3)(u.initialized),u.ssoSilentMeasurement=u.performanceClient.startMeasurement(m.MX.SsoSilent,T),u.ssoSilentMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",u.trackPageVisibilityWithMeasurement),u.logger.verbose("ssoSilent called",T),u.eventHandler.emitEvent(St.B.SSO_SILENT_START,oe.X8.Silent,X),he=u.canUseNative(X)?u.acquireTokenNative(X,oe.sA.ssoSilent).catch(Ce=>{if(Ce instanceof _r&&vn(Ce))return u.nativeExtensionProvider=void 0,u.createSilentIframeClient(X.correlationId).acquireToken(X);throw Ce}):u.createSilentIframeClient(X.correlationId).acquireToken(X),he.then(Ce=>(u.eventHandler.emitEvent(St.B.SSO_SILENT_SUCCESS,oe.X8.Silent,Ce),u.ssoSilentMeasurement?.add({accessTokenSize:Ce.accessToken.length,idTokenSize:Ce.idToken.length}),u.ssoSilentMeasurement?.end({success:!0,isNativeBroker:Ce.fromNativeBroker,requestId:Ce.requestId}),Ce)).catch(Ce=>{throw u.eventHandler.emitEvent(St.B.SSO_SILENT_FAILURE,oe.X8.Silent,null,Ce),u.ssoSilentMeasurement?.end({success:!1},Ce),Ce}).finally(()=>{document.removeEventListener("visibilitychange",u.trackPageVisibilityWithMeasurement)})})()}acquireTokenByCode(c){var u=this;return(0,r.A)(function*(){const T=u.getRequestCorrelationId(c);u.logger.trace("acquireTokenByCode called",T),(0,ct.Q3)(u.initialized),u.eventHandler.emitEvent(St.B.ACQUIRE_TOKEN_BY_CODE_START,oe.X8.Silent,c);const X=u.performanceClient.startMeasurement(m.MX.AcquireTokenByCode,T);try{if(c.code&&c.nativeAccountId)throw(0,ae.bD)(Fe.$c);if(c.code){const he=c.code;let Ce=u.hybridAuthCodeResponses.get(he);return Ce?(u.logger.verbose("Existing acquireTokenByCode request found",T),X.discard()):(u.logger.verbose("Initiating new acquireTokenByCode request",T),Ce=u.acquireTokenByCodeAsync({...c,correlationId:T}).then(ke=>(u.eventHandler.emitEvent(St.B.ACQUIRE_TOKEN_BY_CODE_SUCCESS,oe.X8.Silent,ke),u.hybridAuthCodeResponses.delete(he),X.add({accessTokenSize:ke.accessToken.length,idTokenSize:ke.idToken.length}),X.end({success:!0,isNativeBroker:ke.fromNativeBroker,requestId:ke.requestId}),ke)).catch(ke=>{throw u.hybridAuthCodeResponses.delete(he),u.eventHandler.emitEvent(St.B.ACQUIRE_TOKEN_BY_CODE_FAILURE,oe.X8.Silent,null,ke),X.end({success:!1},ke),ke}),u.hybridAuthCodeResponses.set(he,Ce)),yield Ce}if(c.nativeAccountId){if(u.canUseNative(c,c.nativeAccountId))return yield u.acquireTokenNative({...c,correlationId:T},oe.sA.acquireTokenByCode,c.nativeAccountId).catch(he=>{throw he instanceof _r&&vn(he)&&(u.nativeExtensionProvider=void 0),he});throw(0,ae.bD)(Fe.gU)}throw(0,ae.bD)(Fe.xp)}catch(he){throw u.eventHandler.emitEvent(St.B.ACQUIRE_TOKEN_BY_CODE_FAILURE,oe.X8.Silent,null,he),X.end({success:!1},he),he}})()}acquireTokenByCodeAsync(c){var u=this;return(0,r.A)(function*(){return u.logger.trace("acquireTokenByCodeAsync called",c.correlationId),u.acquireTokenByCodeAsyncMeasurement=u.performanceClient.startMeasurement(m.MX.AcquireTokenByCodeAsync,c.correlationId),u.acquireTokenByCodeAsyncMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",u.trackPageVisibilityWithMeasurement),yield u.createSilentAuthCodeClient(c.correlationId).acquireToken(c).then(he=>(u.acquireTokenByCodeAsyncMeasurement?.end({success:!0,fromCache:he.fromCache,isNativeBroker:he.fromNativeBroker,requestId:he.requestId}),he)).catch(he=>{throw u.acquireTokenByCodeAsyncMeasurement?.end({success:!1},he),he}).finally(()=>{document.removeEventListener("visibilitychange",u.trackPageVisibilityWithMeasurement)})})()}acquireTokenFromCache(c,u){var T=this;return(0,r.A)(function*(){switch(T.performanceClient.addQueueMeasurement(m.MX.AcquireTokenFromCache,c.correlationId),u){case oe.nN.Default:case oe.nN.AccessToken:case oe.nN.AccessTokenAndRefreshToken:const X=T.createSilentCacheClient(c.correlationId);return D(X.acquireToken.bind(X),m.MX.SilentCacheClientAcquireToken,T.logger,T.performanceClient,c.correlationId)(c);default:throw(0,P.SB)(te.wb)}})()}acquireTokenByRefreshToken(c,u){var T=this;return(0,r.A)(function*(){switch(T.performanceClient.addQueueMeasurement(m.MX.AcquireTokenByRefreshToken,c.correlationId),u){case oe.nN.Default:case oe.nN.AccessTokenAndRefreshToken:case oe.nN.RefreshToken:case oe.nN.RefreshTokenAndNetwork:const X=T.createSilentRefreshClient(c.correlationId);return D(X.acquireToken.bind(X),m.MX.SilentRefreshClientAcquireToken,T.logger,T.performanceClient,c.correlationId)(c);default:throw(0,P.SB)(te.wb)}})()}acquireTokenBySilentIframe(c){var u=this;return(0,r.A)(function*(){u.performanceClient.addQueueMeasurement(m.MX.AcquireTokenBySilentIframe,c.correlationId);const T=u.createSilentIframeClient(c.correlationId);return D(T.acquireToken.bind(T),m.MX.SilentIframeClientAcquireToken,u.logger,u.performanceClient,c.correlationId)(c)})()}logout(c){var u=this;return(0,r.A)(function*(){const T=u.getRequestCorrelationId(c);return u.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",T),u.logoutRedirect({correlationId:T,...c})})()}logoutRedirect(c){var u=this;return(0,r.A)(function*(){const T=u.getRequestCorrelationId(c);return(0,ct.Af)(u.initialized,u.config),u.browserStorage.setInteractionInProgress(!0),u.createRedirectClient(T).logout(c)})()}logoutPopup(c){try{const u=this.getRequestCorrelationId(c);return(0,ct.Q3)(this.initialized),this.browserStorage.setInteractionInProgress(!0),this.createPopupClient(u).logout(c)}catch(u){return Promise.reject(u)}}clearCache(c){var u=this;return(0,r.A)(function*(){const T=u.getRequestCorrelationId(c);return u.createSilentCacheClient(T).logout(c)})()}getAllAccounts(c){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts(c):[]}getAccount(c){if(this.logger.trace("getAccount called"),0===Object.keys(c).length)return this.logger.warning("getAccount: No accountFilter provided"),null;const u=this.browserStorage.getAccountInfoFilteredBy(c);return u?(this.logger.verbose("getAccount: Account matching provided filter found, returning"),u):(this.logger.verbose("getAccount: No matching account found, returning null"),null)}getAccountByUsername(c){if(this.logger.trace("getAccountByUsername called"),!c)return this.logger.warning("getAccountByUsername: No username provided"),null;const u=this.browserStorage.getAccountInfoFilteredBy({username:c});return u?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${c}`),u):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)}getAccountByHomeId(c){if(this.logger.trace("getAccountByHomeId called"),!c)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;const u=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:c});return u?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${c}`),u):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)}getAccountByLocalId(c){if(this.logger.trace("getAccountByLocalId called"),!c)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;const u=this.browserStorage.getAccountInfoFilteredBy({localAccountId:c});return u?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${c}`),u):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)}setActiveAccount(c){this.browserStorage.setActiveAccount(c)}getActiveAccount(){return this.browserStorage.getActiveAccount()}hydrateCache(c,u){var T=this;return(0,r.A)(function*(){T.logger.verbose("hydrateCache called");const X=Q.d.createFromAccountInfo(c.account,c.cloudGraphHostName,c.msGraphHost);return T.browserStorage.setAccount(X),c.fromNativeBroker?(T.logger.verbose("Response was from native broker, storing in-memory"),T.nativeInternalStorage.hydrateCache(c,u)):T.browserStorage.hydrateCache(c,u)})()}acquireTokenNative(c,u,T){var X=this;return(0,r.A)(function*(){if(X.logger.trace("acquireTokenNative called"),!X.nativeExtensionProvider)throw(0,ae.bD)(Fe.XC);return new $n(X.config,X.browserStorage,X.browserCrypto,X.logger,X.eventHandler,X.navigationClient,u,X.performanceClient,X.nativeExtensionProvider,T||X.getNativeAccountId(c),X.nativeInternalStorage,c.correlationId).acquireToken(c)})()}canUseNative(c,u){if(this.logger.trace("canUseNative called"),!Oe.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,c.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(c.prompt)switch(c.prompt){case b._M.NONE:case b._M.CONSENT:case b._M.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace(`canUseNative: prompt = ${c.prompt} is not compatible with native flow, returning false`),!1}return!(!u&&!this.getNativeAccountId(c)&&(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),1))}getNativeAccountId(c){const u=c.account||this.getAccount({loginHint:c.loginHint,sid:c.sid})||this.getActiveAccount();return u&&u.nativeAccountId||""}createPopupClient(c){return new xt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,c)}createRedirectClient(c){return new Be(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,c)}createSilentIframeClient(c){return new rn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.sA.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,c)}createSilentCacheClient(c){return new wr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,c)}createSilentRefreshClient(c){return new Vn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,c)}createSilentAuthCodeClient(c){return new or(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.sA.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,c)}addEventCallback(c){return this.eventHandler.addEventCallback(c)}removeEventCallback(c){this.eventHandler.removeEventCallback(c)}addPerformanceCallback(c){return this.performanceClient.addPerformanceCallback(c)}removePerformanceCallback(c){return this.performanceClient.removePerformanceCallback(c)}enableAccountStorageEvents(){this.eventHandler.enableAccountStorageEvents()}disableAccountStorageEvents(){this.eventHandler.disableAccountStorageEvents()}getTokenCache(){return this.tokenCache}getLogger(){return this.logger}setLogger(c){this.logger=c}initializeWrapperLibrary(c,u){this.browserStorage.setWrapperMetadata(c,u)}setNavigationClient(c){this.navigationClient=c}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}isBrowserEnv(){return this.isBrowserEnvironment}getEventHandler(){return this.eventHandler}getRequestCorrelationId(c){return c?.correlationId?c.correlationId:this.isBrowserEnvironment?(0,Jn.Oy)():b.YM.EMPTY_STRING}loginRedirect(c){var u=this;return(0,r.A)(function*(){const T=u.getRequestCorrelationId(c);return u.logger.verbose("loginRedirect called",T),u.acquireTokenRedirect({correlationId:T,...c||oe.uq})})()}loginPopup(c){const u=this.getRequestCorrelationId(c);return this.logger.verbose("loginPopup called",u),this.acquireTokenPopup({correlationId:u,...c||oe.uq})}acquireTokenSilent(c){var u=this;return(0,r.A)(function*(){const T=u.getRequestCorrelationId(c),X=u.performanceClient.startMeasurement(m.MX.AcquireTokenSilent,T);X.add({cacheLookupPolicy:c.cacheLookupPolicy}),(0,ct.Q3)(u.initialized),u.logger.verbose("acquireTokenSilent called",T);const he=c.account||u.getActiveAccount();if(!he)throw(0,ae.bD)(Fe.rR);const ke=JSON.stringify({clientId:u.config.auth.clientId,authority:c.authority||b.YM.EMPTY_STRING,scopes:c.scopes,homeAccountIdentifier:he.homeAccountId,claims:c.claims,authenticationScheme:c.authenticationScheme,resourceRequestMethod:c.resourceRequestMethod,resourceRequestUri:c.resourceRequestUri,shrClaims:c.shrClaims,sshKid:c.sshKid,shrOptions:c.shrOptions}),ht=u.activeSilentTokenRequests.get(ke);if(typeof ht>"u"){u.logger.verbose("acquireTokenSilent called for the first time, storing active request",T);const At=D(u.acquireTokenSilentAsync.bind(u),m.MX.AcquireTokenSilentAsync,u.logger,u.performanceClient,T)({...c,correlationId:T},he).then(Et=>(u.activeSilentTokenRequests.delete(ke),X.add({accessTokenSize:Et.accessToken.length,idTokenSize:Et.idToken.length}),X.end({success:!0,fromCache:Et.fromCache,isNativeBroker:Et.fromNativeBroker,cacheLookupPolicy:c.cacheLookupPolicy,requestId:Et.requestId}),Et)).catch(Et=>{throw u.activeSilentTokenRequests.delete(ke),X.end({success:!1},Et),Et});return u.activeSilentTokenRequests.set(ke,At),{...yield At,state:c.state}}return u.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",T),X.discard(),{...yield ht,state:c.state}})()}acquireTokenSilentAsync(c,u){var T=this;return(0,r.A)(function*(){let X;if(T.performanceClient.addQueueMeasurement(m.MX.AcquireTokenSilentAsync,c.correlationId),T.eventHandler.emitEvent(St.B.ACQUIRE_TOKEN_START,oe.X8.Silent,c),c.correlationId&&T.performanceClient.incrementFields({visibilityChangeCount:0},c.correlationId),document.addEventListener("visibilitychange",()=>T.trackPageVisibility(c.correlationId)),Oe.isNativeAvailable(T.config,T.logger,T.nativeExtensionProvider,c.authenticationScheme)&&u.nativeAccountId){T.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform");const he={...c,account:u};X=T.acquireTokenNative(he,oe.sA.acquireTokenSilent_silentFlow).catch(function(){var Ce=(0,r.A)(function*(ke){if(ke instanceof _r&&vn(ke))return T.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),T.nativeExtensionProvider=void 0,T.createSilentIframeClient(c.correlationId).acquireToken(c);throw ke});return function(ke){return Ce.apply(this,arguments)}}())}else{T.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow");const he=yield D(Dn,m.MX.InitializeSilentRequest,T.logger,T.performanceClient,c.correlationId)(c,u,T.config,T.performanceClient,T.logger),Ce=c.cacheLookupPolicy||oe.nN.Default;X=D(T.acquireTokenFromCache.bind(T),m.MX.AcquireTokenFromCache,T.logger,T.performanceClient,he.correlationId)(he,Ce).catch(ke=>{if(c.cacheLookupPolicy===oe.nN.AccessToken)throw ke;return T.eventHandler.emitEvent(St.B.ACQUIRE_TOKEN_NETWORK_START,oe.X8.Silent,he),D(T.acquireTokenByRefreshToken.bind(T),m.MX.AcquireTokenByRefreshToken,T.logger,T.performanceClient,he.correlationId)(he,Ce).catch(ht=>{if(function un(nt,c,u){const he=!(nt instanceof ee.CB&&nt.subError!==be.j9)&&(nt.errorCode===oe.Q1.INVALID_GRANT_ERROR||nt.errorCode===te.wb)||nt.errorCode===be.oF||nt.errorCode===be.AG,Ce=oe.JE.includes(u);return he&&Ce}(ht,0,Ce))return T.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",he.correlationId),D(T.acquireTokenBySilentIframe.bind(T),m.MX.AcquireTokenBySilentIframe,T.logger,T.performanceClient,he.correlationId)(he);throw ht})})}return X.then(he=>(T.eventHandler.emitEvent(St.B.ACQUIRE_TOKEN_SUCCESS,oe.X8.Silent,he),c.correlationId&&T.performanceClient.addFields({fromCache:he.fromCache,isNativeBroker:he.fromNativeBroker,requestId:he.requestId},c.correlationId),he)).catch(he=>{throw T.eventHandler.emitEvent(St.B.ACQUIRE_TOKEN_FAILURE,oe.X8.Silent,null,he),he}).finally(()=>{document.removeEventListener("visibilitychange",()=>T.trackPageVisibility(c.correlationId))})})()}}},1510:(Dt,ve,_)=>{"use strict";_.d(ve,{Oy:()=>de,RI:()=>se,RW:()=>x,TZ:()=>ie,UY:()=>D,W6:()=>W,YZ:()=>Q,_S:()=>q,sI:()=>m});var r=_(467),g=_(6810),R=_(4561),V=_(7554),U=_(6195),H=_(6588);const b="SHA-256",S=new Uint8Array([1,0,1]),I="0123456789abcdef",B=new Uint32Array(1),G={name:"RSASSA-PKCS1-v1_5",hash:b,modulusLength:2048,publicExponent:S};function x(we){if(!("crypto"in window))throw we.error("BrowserCrypto: crypto interface is unavailable"),(0,g.bD)(H.rc);we.verbose("BrowserCrypto: modern crypto interface available")}function m(we,Ze,Ue){return k.apply(this,arguments)}function k(){return(k=(0,r.A)(function*(we,Ze,Ue){Ze?.addQueueMeasurement(R.MX.Sha256Digest,Ue);const _e=(new TextEncoder).encode(we);return window.crypto.subtle.digest(b,_e)})).apply(this,arguments)}function D(we){return window.crypto.getRandomValues(we)}function K(){return window.crypto.getRandomValues(B),B[0]}function de(){const we=Date.now(),Ze=1024*K()+(1023&K()),Ue=new Uint8Array(16),Le=Math.trunc(Ze/2**30),_e=Ze&2**30-1,Re=K();Ue[0]=we/2**40,Ue[1]=we/2**32,Ue[2]=we/2**24,Ue[3]=we/65536,Ue[4]=we/256,Ue[5]=we,Ue[6]=112|Le>>>8,Ue[7]=Le,Ue[8]=128|_e>>>24,Ue[9]=_e>>>16,Ue[10]=_e>>>8,Ue[11]=_e,Ue[12]=Re>>>24,Ue[13]=Re>>>16,Ue[14]=Re>>>8,Ue[15]=Re;let ae="";for(let oe=0;oe<Ue.length;oe++)ae+=I.charAt(Ue[oe]>>>4),ae+=I.charAt(15&Ue[oe]),(3===oe||5===oe||7===oe||9===oe)&&(ae+="-");return ae}function ie(we,Ze){return te.apply(this,arguments)}function te(){return(te=(0,r.A)(function*(we,Ze){return window.crypto.subtle.generateKey(G,we,Ze)})).apply(this,arguments)}function se(we){return z.apply(this,arguments)}function z(){return(z=(0,r.A)(function*(we){return window.crypto.subtle.exportKey(V.jb,we)})).apply(this,arguments)}function W(we,Ze,Ue){return Y.apply(this,arguments)}function Y(){return(Y=(0,r.A)(function*(we,Ze,Ue){return window.crypto.subtle.importKey(V.jb,we,G,Ze,Ue)})).apply(this,arguments)}function q(we,Ze){return ee.apply(this,arguments)}function ee(){return(ee=(0,r.A)(function*(we,Ze){return window.crypto.subtle.sign(G,we,Ze)})).apply(this,arguments)}function Q(we){return be.apply(this,arguments)}function be(){return(be=(0,r.A)(function*(we){const Ze=yield m(we),Ue=new Uint8Array(Ze);return(0,U.dB)(Ue)})).apply(this,arguments)}},6888:(Dt,ve,_)=>{"use strict";_.d(ve,{M:()=>ie});var r=_(467),g=_(4561),R=_(3461);const V="missing_kid_error",U="missing_alg_error",H={[V]:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",[U]:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."};class P extends R.lR{constructor(z,W){super(z,W),this.name="JoseHeaderError",Object.setPrototypeOf(this,P.prototype)}}function b(se){return new P(se,H[se])}var C=_(7635);class S{constructor(z){this.typ=z.typ,this.alg=z.alg,this.kid=z.kid}static getShrHeaderString(z){if(!z.kid)throw b(V);if(!z.alg)throw b(U);const W=new S({typ:z.typ||C.Lz.Pop,kid:z.kid,alg:z.alg});return JSON.stringify(W)}}var I=_(6195),B=_(379),G=_(1510),x=_(6810),m=_(7554),k=_(6588);class D{constructor(){this.dbName=m.$u,this.version=m.G8,this.tableName=m.WJ,this.dbOpen=!1}open(){var z=this;return(0,r.A)(function*(){return new Promise((W,Y)=>{const q=window.indexedDB.open(z.dbName,z.version);q.addEventListener("upgradeneeded",ee=>{ee.target.result.createObjectStore(z.tableName)}),q.addEventListener("success",ee=>{z.db=ee.target.result,z.dbOpen=!0,W()}),q.addEventListener("error",()=>Y((0,x.bD)(k.MG)))})})()}closeConnection(){const z=this.db;z&&this.dbOpen&&(z.close(),this.dbOpen=!1)}validateDbIsOpen(){var z=this;return(0,r.A)(function*(){if(!z.dbOpen)return z.open()})()}getItem(z){var W=this;return(0,r.A)(function*(){return yield W.validateDbIsOpen(),new Promise((Y,q)=>{if(!W.db)return q((0,x.bD)(k.rn));const be=W.db.transaction([W.tableName],"readonly").objectStore(W.tableName).get(z);be.addEventListener("success",we=>{const Ze=we;W.closeConnection(),Y(Ze.target.result)}),be.addEventListener("error",we=>{W.closeConnection(),q(we)})})})()}setItem(z,W){var Y=this;return(0,r.A)(function*(){return yield Y.validateDbIsOpen(),new Promise((q,ee)=>{if(!Y.db)return ee((0,x.bD)(k.rn));const we=Y.db.transaction([Y.tableName],"readwrite").objectStore(Y.tableName).put(W,z);we.addEventListener("success",()=>{Y.closeConnection(),q()}),we.addEventListener("error",Ze=>{Y.closeConnection(),ee(Ze)})})})()}removeItem(z){var W=this;return(0,r.A)(function*(){return yield W.validateDbIsOpen(),new Promise((Y,q)=>{if(!W.db)return q((0,x.bD)(k.rn));const be=W.db.transaction([W.tableName],"readwrite").objectStore(W.tableName).delete(z);be.addEventListener("success",()=>{W.closeConnection(),Y()}),be.addEventListener("error",we=>{W.closeConnection(),q(we)})})})()}getKeys(){var z=this;return(0,r.A)(function*(){return yield z.validateDbIsOpen(),new Promise((W,Y)=>{if(!z.db)return Y((0,x.bD)(k.rn));const Q=z.db.transaction([z.tableName],"readonly").objectStore(z.tableName).getAllKeys();Q.addEventListener("success",be=>{const we=be;z.closeConnection(),W(we.target.result)}),Q.addEventListener("error",be=>{z.closeConnection(),Y(be)})})})()}containsKey(z){var W=this;return(0,r.A)(function*(){return yield W.validateDbIsOpen(),new Promise((Y,q)=>{if(!W.db)return q((0,x.bD)(k.rn));const be=W.db.transaction([W.tableName],"readonly").objectStore(W.tableName).count(z);be.addEventListener("success",we=>{const Ze=we;W.closeConnection(),Y(1===Ze.target.result)}),be.addEventListener("error",we=>{W.closeConnection(),q(we)})})})()}deleteDatabase(){var z=this;return(0,r.A)(function*(){return z.db&&z.dbOpen&&z.closeConnection(),new Promise((W,Y)=>{const q=window.indexedDB.deleteDatabase(m.$u),ee=setTimeout(()=>Y(!1),200);q.addEventListener("success",()=>(clearTimeout(ee),W(!0))),q.addEventListener("blocked",()=>(clearTimeout(ee),W(!0))),q.addEventListener("error",()=>(clearTimeout(ee),Y(!1)))})})()}}var K=_(8390);class de{constructor(z){this.inMemoryCache=new K.X,this.indexedDBCache=new D,this.logger=z}handleDatabaseAccessError(z){if(!(z instanceof x.jT&&z.errorCode===k.MG))throw z;this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.")}getItem(z){var W=this;return(0,r.A)(function*(){const Y=W.inMemoryCache.getItem(z);if(!Y)try{return W.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),yield W.indexedDBCache.getItem(z)}catch(q){W.handleDatabaseAccessError(q)}return Y})()}setItem(z,W){var Y=this;return(0,r.A)(function*(){Y.inMemoryCache.setItem(z,W);try{yield Y.indexedDBCache.setItem(z,W)}catch(q){Y.handleDatabaseAccessError(q)}})()}removeItem(z){var W=this;return(0,r.A)(function*(){W.inMemoryCache.removeItem(z);try{yield W.indexedDBCache.removeItem(z)}catch(Y){W.handleDatabaseAccessError(Y)}})()}getKeys(){var z=this;return(0,r.A)(function*(){const W=z.inMemoryCache.getKeys();if(0===W.length)try{return z.logger.verbose("In-memory cache is empty, now querying persistent storage."),yield z.indexedDBCache.getKeys()}catch(Y){z.handleDatabaseAccessError(Y)}return W})()}containsKey(z){var W=this;return(0,r.A)(function*(){const Y=W.inMemoryCache.containsKey(z);if(!Y)try{return W.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),yield W.indexedDBCache.containsKey(z)}catch(q){W.handleDatabaseAccessError(q)}return Y})()}clearInMemory(){this.logger.verbose("Deleting in-memory keystore"),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore deleted")}clearPersistent(){var z=this;return(0,r.A)(function*(){try{z.logger.verbose("Deleting persistent keystore");const W=yield z.indexedDBCache.deleteDatabase();return W&&z.logger.verbose("Persistent keystore deleted"),W}catch(W){return z.handleDatabaseAccessError(W),!1}})()}}let ie=(()=>{class se{constructor(W,Y){this.logger=W,(0,G.RW)(W),this.cache=new de(this.logger),this.performanceClient=Y}createNewGuid(){return(0,G.Oy)()}base64Encode(W){return(0,I.KA)(W)}base64Decode(W){return(0,B.u)(W)}getPublicKeyThumbprint(W){var Y=this;return(0,r.A)(function*(){const q=Y.performanceClient?.startMeasurement(g.MX.CryptoOptsGetPublicKeyThumbprint,W.correlationId),ee=yield(0,G.TZ)(se.EXTRACTABLE,se.POP_KEY_USAGES),Q=yield(0,G.RI)(ee.publicKey),we=te({e:Q.e,kty:Q.kty,n:Q.n}),Ze=yield Y.hashString(we),Ue=yield(0,G.RI)(ee.privateKey),Le=yield(0,G.W6)(Ue,!1,["sign"]);return yield Y.cache.setItem(Ze,{privateKey:Le,publicKey:ee.publicKey,requestMethod:W.resourceRequestMethod,requestUri:W.resourceRequestUri}),q&&q.end({success:!0}),Ze})()}removeTokenBindingKey(W){var Y=this;return(0,r.A)(function*(){return yield Y.cache.removeItem(W),!(yield Y.cache.containsKey(W))})()}clearKeystore(){var W=this;return(0,r.A)(function*(){W.cache.clearInMemory();try{return yield W.cache.clearPersistent(),!0}catch(Y){return Y instanceof Error?W.logger.error(`Clearing keystore failed with error: ${Y.message}`):W.logger.error("Clearing keystore failed with unknown error"),!1}})()}signJwt(W,Y,q,ee){var Q=this;return(0,r.A)(function*(){const be=Q.performanceClient?.startMeasurement(g.MX.CryptoOptsSignJwt,ee),we=yield Q.cache.getItem(Y);if(!we)throw(0,x.bD)(k.e0);const Ze=yield(0,G.RI)(we.publicKey),Ue=te(Ze),Le=(0,I.u4)(JSON.stringify({kid:Y})),_e=S.getShrHeaderString({...q?.header,alg:Ze.alg,kid:Le}),Re=(0,I.u4)(_e);W.cnf={jwk:JSON.parse(Ue)};const oe=`${Re}.${(0,I.u4)(JSON.stringify(W))}`,pe=(new TextEncoder).encode(oe),Ae=yield(0,G._S)(we.privateKey,pe),We=`${oe}.${(0,I.dB)(new Uint8Array(Ae))}`;return be&&be.end({success:!0}),We})()}hashString(W){return(0,r.A)(function*(){return(0,G.YZ)(W)})()}}return se.POP_KEY_USAGES=["sign","verify"],se.EXTRACTABLE=!0,se})();function te(se){return JSON.stringify(se,Object.keys(se).sort())}},379:(Dt,ve,_)=>{"use strict";_.d(ve,{u:()=>R});var r=_(6810),g=_(6588);function R(U){return(new TextDecoder).decode(function V(U){let H=U.replace(/-/g,"+").replace(/_/g,"/");switch(H.length%4){case 0:break;case 2:H+="==";break;case 3:H+="=";break;default:throw(0,r.bD)(g._t)}const P=atob(H);return Uint8Array.from(P,b=>b.codePointAt(0)||0)}(U))}},6195:(Dt,ve,_)=>{"use strict";function r(U){return encodeURIComponent(R(U).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function g(U){return V(U).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function R(U){return V((new TextEncoder).encode(U))}function V(U){const H=Array.from(U,P=>String.fromCodePoint(P)).join("");return btoa(H)}_.d(ve,{KA:()=>R,dB:()=>g,u4:()=>r})},6810:(Dt,ve,_)=>{"use strict";_.d(ve,{bD:()=>P,jT:()=>H});var r=_(3461),g=_(6588);const R="For more visit: aka.ms/msaljs/browser-errors",V={[g.p5]:"The PKCE code challenge and verifier could not be generated.",[g.rc]:"The crypto object or function is not available.",[g.B2]:"Navigation URI is empty. Please check stack trace for more info.",[g.wv]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${R}`,[g.c$]:"Hash does not contain state. Please verify that the request originated from msal.",[g.Lm]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash.  ${R}`,[g.fA]:"Unable to parse state. Please verify that the request originated from msal.",[g.oe]:"Hash contains state but the interaction type does not match the caller.",[g.b]:`Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API.   ${R}`,[g.hs]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[g.MP]:"window.open returned null or undefined window object.",[g.fN]:"User cancelled the flow.",[g.OM]:`Token acquisition in popup failed due to timeout.  ${R}`,[g.Uf]:`Token acquisition in iframe failed due to timeout.  ${R}`,[g.OT]:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",[g.tZ]:`Request was blocked inside an iframe because MSAL detected an authentication response.  ${R}`,[g.aH]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[g.lg]:"The iframe being monitored was closed prematurely.",[g.v7]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[g.rR]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[g.hZ]:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.",[g.y6]:"No token request found in cache.",[g.ot]:"The cached token request could not be parsed.",[g.Ne]:"No cached authority found.",[g.LW]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[g.Mm]:"Invalid cache type",[g.tI]:"Login and token requests are not supported in non-browser environments.",[g.rn]:"Database is not open!",[g.l7]:"No network connectivity. Check your internet connection.",[g.zv]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[g.Zw]:"Network request failed. Please check the network trace to determine root cause.",[g.db]:"Failed to parse network response. Check network trace.",[g.s9]:"Error loading token to cache.",[g.e0]:"Cryptographic Key or Keypair not found in browser storage.",[g.R3]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[g.xp]:"An authorization code or nativeAccountId must be provided to this flow.",[g.$c]:"Request cannot contain both spa code and native account id.",[g.MG]:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",[g.gU]:`Unable to acquire token from native platform.  ${R}`,[g.y3]:"Timed out while attempting to establish connection to browser extension",[g.cq]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[g.XC]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize().  ${R}`,[g.IR]:`You must call and await the initialize function before attempting to call any other MSAL API.  ${R}`,[g.nF]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[g._t]:"Invalid base64 encoded string."};class H extends r.lR{constructor(C){super(C,V[C]),Object.setPrototypeOf(this,H.prototype),this.name="BrowserAuthError"}}function P(b){return new H(b)}},6588:(Dt,ve,_)=>{"use strict";_.d(ve,{$c:()=>oe,B2:()=>R,IR:()=>Ge,LW:()=>Y,Lm:()=>H,MG:()=>ge,MP:()=>I,Mm:()=>q,Ne:()=>W,OM:()=>G,OT:()=>m,R3:()=>Re,Uf:()=>x,XC:()=>We,Zw:()=>Ze,_t:()=>Fe,aH:()=>D,b:()=>C,c$:()=>U,cq:()=>Pe,db:()=>Ue,e0:()=>_e,fA:()=>P,fN:()=>B,gU:()=>pe,hZ:()=>te,hs:()=>S,l7:()=>be,lg:()=>K,nF:()=>ut,oe:()=>b,ot:()=>z,p5:()=>r,rR:()=>ie,rc:()=>g,rn:()=>Q,s9:()=>Le,tI:()=>ee,tZ:()=>k,v7:()=>de,wv:()=>V,xp:()=>ae,y3:()=>Ae,y6:()=>se,zv:()=>we});const r="pkce_not_created",g="crypto_nonexistent",R="empty_navigate_uri",V="hash_empty_error",U="no_state_in_hash",H="hash_does_not_contain_known_properties",P="unable_to_parse_state",b="state_interaction_type_mismatch",C="interaction_in_progress",S="popup_window_error",I="empty_window_error",B="user_cancelled",G="monitor_popup_timeout",x="monitor_window_timeout",m="redirect_in_iframe",k="block_iframe_reload",D="block_nested_popups",K="iframe_closed_prematurely",de="silent_logout_unsupported",ie="no_account_error",te="silent_prompt_value_error",se="no_token_request_cache_error",z="unable_to_parse_token_request_cache_error",W="no_cached_authority_error",Y="auth_request_not_set_error",q="invalid_cache_type",ee="non_browser_environment",Q="database_not_open",be="no_network_connectivity",we="post_request_failed",Ze="get_request_failed",Ue="failed_to_parse_response",Le="unable_to_load_token",_e="crypto_key_not_found",Re="auth_code_required",ae="auth_code_or_nativeAccountId_required",oe="spa_code_and_nativeAccountId_present",ge="database_unavailable",pe="unable_to_acquire_token_from_native_platform",Ae="native_handshake_timeout",Pe="native_extension_not_installed",We="native_connection_not_established",Ge="uninitialized_public_client_application",ut="native_prompt_not_supported",Fe="invalid_base64_string"},4064:(Dt,ve,_)=>{"use strict";_.d(ve,{XX:()=>U,jz:()=>H});var r=_(3461),g=_(3578);const R={[g.xz]:"Given storage configuration option was not supported.",[g.dg]:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",[g.jE]:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."};class U extends r.lR{constructor(b,C){super(b,C),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,U.prototype)}}function H(P){return new U(P,R[P])}},3578:(Dt,ve,_)=>{"use strict";_.d(ve,{dg:()=>g,jE:()=>R,xz:()=>r});const r="storage_not_supported",g="stubbed_public_client_application_called",R="in_mem_redirect_unavailable"},1036:(Dt,ve,_)=>{"use strict";_.d(ve,{J:()=>H});var r=_(7635),g=_(1175),R=_(8864),V=_(3212),U=_(1510);class H{constructor(b,C){this.eventCallbacks=new Map,this.logger=b,this.browserCrypto=C,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}addEventCallback(b){if(typeof window<"u"){const C=(0,U.Oy)();return this.eventCallbacks.set(C,b),this.logger.verbose(`Event callback registered with id: ${C}`),C}return null}removeEventCallback(b){this.eventCallbacks.delete(b),this.logger.verbose(`Event callback ${b} removed.`)}enableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))}disableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))}emitEvent(b,C,S,I){if(typeof window<"u"){const B={eventType:b,interactionType:C||null,payload:S||null,error:I||null,timestamp:Date.now()};this.logger.info(`Emitting event: ${b}`),this.eventCallbacks.forEach((G,x)=>{this.logger.verbose(`Emitting event to callback ${x}: ${b}`),G.apply(null,[B])})}}handleAccountCacheChange(b){try{b.key?.includes(r.Gd.ACTIVE_ACCOUNT_FILTERS)&&this.emitEvent(V.B.ACTIVE_ACCOUNT_CHANGED);const C=b.newValue||b.oldValue;if(!C)return;const S=JSON.parse(C);if("object"!=typeof S||!g.d.isAccountEntity(S))return;const B=R.G.toObject(new g.d,S).getAccountInfo();!b.oldValue&&b.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(V.B.ACCOUNT_ADDED,void 0,B)):!b.newValue&&b.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(V.B.ACCOUNT_REMOVED,void 0,B))}catch{return}}}},3212:(Dt,ve,_)=>{"use strict";_.d(ve,{B:()=>r});const r={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"}},7306:(Dt,ve,_)=>{"use strict";_.d(ve,{U:()=>r,r:()=>g});const r="@azure/msal-browser",g="3.11.1"},7554:(Dt,ve,_)=>{"use strict";_.d(ve,{$u:()=>k,Al:()=>U,CC:()=>H,Ct:()=>V,G8:()=>D,H3:()=>C,JD:()=>R,JE:()=>ie,L$:()=>te,P3:()=>se,Q1:()=>g,T$:()=>B,WJ:()=>K,X8:()=>I,_p:()=>P,dh:()=>b,f7:()=>m,jb:()=>x,nN:()=>de,sA:()=>S,uq:()=>G});var r=_(7635);const g={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},R={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},V={HandshakeRequest:"Handshake",HandshakeResponse:"HandshakeResponse",GetToken:"GetToken",Response:"Response"},U={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},H={GET:"GET",POST:"POST"},P={AUTHORITY:"authority",ACQUIRE_TOKEN_ACCOUNT:"acquireToken.account",SESSION_STATE:"session.state",REQUEST_STATE:"request.state",NONCE_IDTOKEN:"nonce.id_token",ORIGIN_URI:"request.origin",RENEW_STATUS:"token.renew.status",URL_HASH:"urlHash",REQUEST_PARAMS:"request.params",SCOPES:"scopes",INTERACTION_STATUS_KEY:"interaction.status",CCS_CREDENTIAL:"ccs.credential",CORRELATION_ID:"request.correlationId",NATIVE_REQUEST:"request.native",REDIRECT_CONTEXT:"request.redirect.context"},b={ACCOUNT_KEYS:"msal.account.keys",TOKEN_KEYS:"msal.token.keys"},C={WRAPPER_SKU:"wrapper.sku",WRAPPER_VER:"wrapper.version"},S={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,acquireTokenSilent_authCode:864,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962};var I=function(W){return W.Redirect="redirect",W.Popup="popup",W.Silent="silent",W.None="none",W}(I||{});const B={Startup:"startup",Login:"login",Logout:"logout",AcquireToken:"acquireToken",SsoSilent:"ssoSilent",HandleRedirect:"handleRedirect",None:"none"},G={scopes:r.aZ},x="jwk",m={React:"@azure/msal-react",Angular:"@azure/msal-angular"},k="msal.db",D=1,K=`${k}.keys`,de={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},ie=[de.Default,de.Skip,de.RefreshTokenAndNetwork],te="msal.browser.log.level",se="msal.browser.log.pii"},1474:(Dt,ve,_)=>{"use strict";_.d(ve,{Af:()=>de,GZ:()=>C,Q3:()=>K,U2:()=>P,Uu:()=>I,VX:()=>B,kZ:()=>ie,nQ:()=>b,uh:()=>D});var r=_(1564),g=_(6810),R=_(7554),V=_(4064),U=_(6588),H=_(3578);function P(se){se.location.hash="","function"==typeof se.history.replaceState&&se.history.replaceState(null,"",`${se.location.origin}${se.location.pathname}${se.location.search}`)}function b(se){const z=se.split("#");z.shift(),window.location.hash=z.length>0?z.join("#"):""}function C(){return window.parent!==window}function I(){return window.location.href.split("?")[0].split("#")[0]}function B(){const z=new r.H(window.location.href).getUrlComponents();return`${z.Protocol}//${z.HostNameAndPort}/`}function D(se){if(!se)throw(0,g.bD)(U.IR)}function K(se){(function k(){if(typeof window>"u")throw(0,g.bD)(U.tI)})(),function G(){if(r.H.hashContainsKnownProperties(window.location.hash)&&C())throw(0,g.bD)(U.tZ)}(),function m(){if(function S(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&"string"==typeof window.name&&0===window.name.indexOf(`${R.Q1.POPUP_NAME_PREFIX}.`)}())throw(0,g.bD)(U.aH)}(),D(se)}function de(se,z){if(K(se),function x(se){if(C()&&!se)throw(0,g.bD)(U.OT)}(z.system.allowRedirectInIframe),z.cache.cacheLocation===R.Al.MemoryStorage&&!z.cache.storeAuthStateInCookie)throw(0,V.jz)(H.jE)}function ie(se){const z=document.createElement("link");z.rel="preconnect",z.href=new URL(se).origin,z.crossOrigin="anonymous",document.head.appendChild(z),window.setTimeout(()=>{try{document.head.removeChild(z)}catch{}},1e4)}},495:(Dt,ve,_)=>{"use strict";function r(V,U){return!!V&&!!U&&V===U.split(".")[1]}function g(V,U){const{oid:H,sub:P,tid:b,name:C,tfp:S,acr:I}=U,B=b||S||I||"";return{tenantId:B,localAccountId:H||P||"",name:C,isHomeTenant:r(B,V)}}function R(V,U,H,P){let b=V;if(U){const{isHomeTenant:C,...S}=U;b={...V,...S}}if(H){const{isHomeTenant:C,...S}=g(V.homeAccountId,H);return b={...b,...S,idTokenClaims:H,idToken:P},b}return b}_.d(ve,{aB:()=>r,bi:()=>g,o9:()=>R})},2895:(Dt,ve,_)=>{"use strict";_.d(ve,{My:()=>R,al:()=>U});var r=_(3986),g=_(7172);function R(H,P){const b=function V(H){if(!H)throw(0,r.SB)(g.Bh);const b=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(H);if(!b||b.length<4)throw(0,r.SB)(g.gR);return b[2]}(H);try{const C=P(b);return JSON.parse(C)}catch{throw(0,r.SB)(g.gR)}}function U(H,P){if(0===P||Date.now()-3e5>H+P)throw(0,r.SB)(g.Yh)}},5007:(Dt,ve,_)=>{"use strict";_.d(ve,{Z:()=>U,k:()=>V});var r=_(3986),g=_(7635),R=_(7172);function V(H,P){if(!H)throw(0,r.SB)(R.fY);try{const b=P(H);return JSON.parse(b)}catch{throw(0,r.SB)(R.lP)}}function U(H){if(!H)throw(0,r.SB)(R.lP);const P=H.split(g.LR.CLIENT_INFO_SEPARATOR,2);return{uid:P[0],utid:P.length<2?g.YM.EMPTY_STRING:P[1]}}},8266:(Dt,ve,_)=>{"use strict";function r(g){return g&&(g.tid||g.tfp||g.acr)||null}_.d(ve,{r:()=>r})},2144:(Dt,ve,_)=>{"use strict";_.d(ve,{Bt:()=>P,FI:()=>V,Jr:()=>H,ao:()=>S,hD:()=>C});var r=_(1564),g=_(7635);const V={"login.microsoftonline.com":{token_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.com/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/logout"},"login.chinacloudapi.cn":{token_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.chinacloudapi.cn/{tenantid}/discovery/v2.0/keys",issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",authorization_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/logout"},"login.microsoftonline.us":{token_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.us/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/logout"}},U={tenant_discovery_endpoint:"https://{canonicalAuthority}/v2.0/.well-known/openid-configuration",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},H=new Set;function P(I,B){let G;const x=I.canonicalAuthority;if(x){const m=new r.H(x).getUrlComponents().HostNameAndPort;G=b(m,I.cloudDiscoveryMetadata?.metadata,g.E_.CONFIG,B)||b(m,U.metadata,g.E_.HARDCODED_VALUES,B)||I.knownAuthorities}return G||[]}function b(I,B,G,x){if(x?.trace(`getAliasesFromMetadata called with source: ${G}`),I&&B){const m=S(B,I);if(m)return x?.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${G}, returning aliases`),m.aliases;x?.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${G}`)}return null}function C(I){return S(U.metadata,I)}function S(I,B){for(let G=0;G<I.length;G++){const x=I[G];if(x.aliases.includes(B))return x}return null}U.metadata.forEach(I=>{I.aliases.forEach(B=>{H.add(B)})})},4719:(Dt,ve,_)=>{"use strict";_.d(ve,{_:()=>r});const r={None:"none",AzurePublic:"https://login.microsoftonline.com",AzurePpe:"https://login.windows-ppe.net",AzureChina:"https://login.chinacloudapi.cn",AzureGermany:"https://login.microsoftonline.de",AzureUsGovernment:"https://login.microsoftonline.us"}},6211:(Dt,ve,_)=>{"use strict";_.d(ve,{I:()=>r});const r={Default:0,Adfs:1,Dsts:2,Ciam:3}},2729:(Dt,ve,_)=>{"use strict";_.d(ve,{e:()=>r});const r={AAD:"AAD",OIDC:"OIDC"}},8864:(Dt,ve,_)=>{"use strict";_.d(ve,{G:()=>B,R:()=>G});var r=_(467),g=_(7635),R=_(2376),V=_(6812),U=_(1175),H=_(3986),P=_(495),b=_(2895),C=_(4481),S=_(2144),I=_(7172);class B{constructor(m,k,D,K){this.clientId=m,this.cryptoImpl=k,this.commonLogger=D.clone(C.U,C.r),this.staticAuthorityOptions=K}getAllAccounts(m){return this.buildTenantProfiles(this.getAccountsFilteredBy(m||{}),m)}getAccountInfoFilteredBy(m){const k=this.getAllAccounts(m);return k.length>1?k.sort(K=>K.idTokenClaims?-1:1)[0]:1===k.length?k[0]:null}getBaseAccountInfo(m){const k=this.getAccountsFilteredBy(m);return k.length>0?k[0].getAccountInfo():null}buildTenantProfiles(m,k){return m.flatMap(D=>this.getAccountInfoForTenantProfiles(D,k))}getAccountInfoForTenantProfiles(m,k){return this.getTenantProfilesFromAccountEntity(m,k?.tenantId,k)}getTenantedAccountInfoByFilter(m,k,D,K){let ie,de=null;if(K&&!this.tenantProfileMatchesFilter(D,K))return null;const te=this.getIdToken(m,k,D.tenantId);return te&&(ie=(0,b.My)(te.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(ie,K))?null:(de=(0,P.o9)(m,D,ie,te?.secret),de)}getTenantProfilesFromAccountEntity(m,k,D){const K=m.getAccountInfo();let de=K.tenantProfiles||new Map;const ie=this.getTokenKeys();if(k){const se=de.get(k);if(!se)return[];de=new Map([[k,se]])}const te=[];return de.forEach(se=>{const z=this.getTenantedAccountInfoByFilter(K,ie,se,D);z&&te.push(z)}),te}tenantProfileMatchesFilter(m,k){return!(k.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(m,k.localAccountId)||k.name&&m.name!==k.name||void 0!==k.isHomeTenant&&m.isHomeTenant!==k.isHomeTenant)}idTokenClaimsMatchTenantProfileFilter(m,k){return!(k&&(k.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(m,k.localAccountId)||k.loginHint&&!this.matchLoginHintFromTokenClaims(m,k.loginHint)||k.username&&!this.matchUsername(m.preferred_username,k.username)||k.name&&!this.matchName(m,k.name)||k.sid&&!this.matchSid(m,k.sid)))}saveCacheRecord(m,k){var D=this;return(0,r.A)(function*(){if(!m)throw(0,H.SB)(I.n4);m.account&&D.setAccount(m.account),m.idToken&&!1!==k?.idToken&&D.setIdTokenCredential(m.idToken),m.accessToken&&!1!==k?.accessToken&&(yield D.saveAccessToken(m.accessToken)),m.refreshToken&&!1!==k?.refreshToken&&D.setRefreshTokenCredential(m.refreshToken),m.appMetadata&&D.setAppMetadata(m.appMetadata)})()}saveAccessToken(m){var k=this;return(0,r.A)(function*(){const D={clientId:m.clientId,credentialType:m.credentialType,environment:m.environment,homeAccountId:m.homeAccountId,realm:m.realm,tokenType:m.tokenType,requestedClaimsHash:m.requestedClaimsHash},K=k.getTokenKeys(),de=V.l.fromString(m.target),ie=[];K.accessToken.forEach(te=>{if(!k.accessTokenKeyMatchesFilter(te,D,!1))return;const se=k.getAccessTokenCredential(te);se&&k.credentialMatchesFilter(se,D)&&V.l.fromString(se.target).intersectingScopeSets(de)&&ie.push(k.removeAccessToken(te))}),yield Promise.all(ie),k.setAccessTokenCredential(m)})()}getAccountsFilteredBy(m){const k=this.getAccountKeys(),D=[];return k.forEach(K=>{if(!this.isAccountKey(K,m.homeAccountId))return;const de=this.getAccount(K,this.commonLogger);if(!de||m.homeAccountId&&!this.matchHomeAccountId(de,m.homeAccountId)||m.username&&!this.matchUsername(de.username,m.username)||m.environment&&!this.matchEnvironment(de,m.environment)||m.realm&&!this.matchRealm(de,m.realm)||m.nativeAccountId&&!this.matchNativeAccountId(de,m.nativeAccountId)||m.authorityType&&!this.matchAuthorityType(de,m.authorityType))return;const ie={localAccountId:m?.localAccountId,name:m?.name},te=de.tenantProfiles?.filter(se=>this.tenantProfileMatchesFilter(se,ie));te&&0===te.length||D.push(de)}),D}isAccountKey(m,k,D){return!(m.split(g.LR.CACHE_KEY_SEPARATOR).length<3||k&&!m.toLowerCase().includes(k.toLowerCase())||D&&!m.toLowerCase().includes(D.toLowerCase()))}isCredentialKey(m){if(m.split(g.LR.CACHE_KEY_SEPARATOR).length<6)return!1;const k=m.toLowerCase();if(-1===k.indexOf(g.aG.ID_TOKEN.toLowerCase())&&-1===k.indexOf(g.aG.ACCESS_TOKEN.toLowerCase())&&-1===k.indexOf(g.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())&&-1===k.indexOf(g.aG.REFRESH_TOKEN.toLowerCase()))return!1;if(k.indexOf(g.aG.REFRESH_TOKEN.toLowerCase())>-1){const K=`${g.aG.REFRESH_TOKEN}${g.LR.CACHE_KEY_SEPARATOR}${g.hB}${g.LR.CACHE_KEY_SEPARATOR}`;if(-1===k.indexOf(`${g.aG.REFRESH_TOKEN}${g.LR.CACHE_KEY_SEPARATOR}${this.clientId}${g.LR.CACHE_KEY_SEPARATOR}`.toLowerCase())&&-1===k.indexOf(K.toLowerCase()))return!1}else if(-1===k.indexOf(this.clientId.toLowerCase()))return!1;return!0}credentialMatchesFilter(m,k){return!(k.clientId&&!this.matchClientId(m,k.clientId)||k.userAssertionHash&&!this.matchUserAssertionHash(m,k.userAssertionHash)||"string"==typeof k.homeAccountId&&!this.matchHomeAccountId(m,k.homeAccountId)||k.environment&&!this.matchEnvironment(m,k.environment)||k.realm&&!this.matchRealm(m,k.realm)||k.credentialType&&!this.matchCredentialType(m,k.credentialType)||k.familyId&&!this.matchFamilyId(m,k.familyId)||k.target&&!this.matchTarget(m,k.target)||(k.requestedClaimsHash||m.requestedClaimsHash)&&m.requestedClaimsHash!==k.requestedClaimsHash||m.credentialType===g.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(k.tokenType&&!this.matchTokenType(m,k.tokenType)||k.tokenType===g.IO.SSH&&k.keyId&&!this.matchKeyId(m,k.keyId)))}getAppMetadataFilteredBy(m){const k=this.getKeys(),D={};return k.forEach(K=>{if(!this.isAppMetadata(K))return;const de=this.getAppMetadata(K);de&&(m.environment&&!this.matchEnvironment(de,m.environment)||m.clientId&&!this.matchClientId(de,m.clientId)||(D[K]=de))}),D}getAuthorityMetadataByAlias(m){const k=this.getAuthorityMetadataKeys();let D=null;return k.forEach(K=>{if(!this.isAuthorityMetadata(K)||-1===K.indexOf(this.clientId))return;const de=this.getAuthorityMetadata(K);de&&-1!==de.aliases.indexOf(m)&&(D=de)}),D}removeAllAccounts(){var m=this;return(0,r.A)(function*(){const k=m.getAccountKeys(),D=[];k.forEach(K=>{D.push(m.removeAccount(K))}),yield Promise.all(D)})()}removeAccount(m){var k=this;return(0,r.A)(function*(){const D=k.getAccount(m,k.commonLogger);D&&(yield k.removeAccountContext(D),k.removeItem(m))})()}removeAccountContext(m){var k=this;return(0,r.A)(function*(){const D=k.getTokenKeys(),K=m.generateAccountId(),de=[];D.idToken.forEach(ie=>{0===ie.indexOf(K)&&k.removeIdToken(ie)}),D.accessToken.forEach(ie=>{0===ie.indexOf(K)&&de.push(k.removeAccessToken(ie))}),D.refreshToken.forEach(ie=>{0===ie.indexOf(K)&&k.removeRefreshToken(ie)}),yield Promise.all(de)})()}updateOutdatedCachedAccount(m,k,D){if(k&&k.isSingleTenant()){this.commonLogger?.verbose("updateOutdatedCachedAccount: Found a single-tenant (outdated) account entity in the cache, migrating to multi-tenant account entity");const K=this.getAccountKeys().filter(z=>z.startsWith(k.homeAccountId)),de=[];K.forEach(z=>{const W=this.getCachedAccountEntity(z);W&&de.push(W)});const ie=de.find(z=>(0,P.aB)(z.realm,z.homeAccountId))||de[0];ie.tenantProfiles=de.map(z=>({tenantId:z.realm,localAccountId:z.localAccountId,name:z.name,isHomeTenant:(0,P.aB)(z.realm,z.homeAccountId)}));const te=B.toObject(new U.d,{...ie}),se=te.generateAccountKey();return K.forEach(z=>{z!==se&&this.removeOutdatedAccount(m)}),this.setAccount(te),D?.verbose("Updated an outdated account entity in the cache"),te}return k}removeAccessToken(m){var k=this;return(0,r.A)(function*(){const D=k.getAccessTokenCredential(m);if(D){if(D.credentialType.toLowerCase()===g.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()&&D.tokenType===g.IO.POP){const de=D.keyId;if(de)try{yield k.cryptoImpl.removeTokenBindingKey(de)}catch{throw(0,H.SB)(I.QE)}}return k.removeItem(m)}})()}removeAppMetadata(){return this.getKeys().forEach(k=>{this.isAppMetadata(k)&&this.removeItem(k)}),!0}readAccountFromCache(m){const k=U.d.generateAccountCacheKey(m);return this.getAccount(k,this.commonLogger)}getIdToken(m,k,D,K,de){this.commonLogger.trace("CacheManager - getIdToken called");const te=this.getIdTokensByFilter({homeAccountId:m.homeAccountId,environment:m.environment,credentialType:g.aG.ID_TOKEN,clientId:this.clientId,realm:D},k),se=te.size;if(se<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(se>1){let z=te;if(!D){const W=new Map;te.forEach((q,ee)=>{q.realm===m.tenantId&&W.set(ee,q)});const Y=W.size;if(Y<1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result"),te.values().next().value;if(1===Y)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile"),W.values().next().value;z=W}return this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them"),z.forEach((W,Y)=>{this.removeIdToken(Y)}),K&&de&&K.addFields({multiMatchedID:te.size},de),null}return this.commonLogger.info("CacheManager:getIdToken - Returning ID token"),te.values().next().value}getIdTokensByFilter(m,k){const D=k&&k.idToken||this.getTokenKeys().idToken,K=new Map;return D.forEach(de=>{if(!this.idTokenKeyMatchesFilter(de,{clientId:this.clientId,...m}))return;const ie=this.getIdTokenCredential(de);ie&&this.credentialMatchesFilter(ie,m)&&K.set(de,ie)}),K}idTokenKeyMatchesFilter(m,k){const D=m.toLowerCase();return!(k.clientId&&-1===D.indexOf(k.clientId.toLowerCase())||k.homeAccountId&&-1===D.indexOf(k.homeAccountId.toLowerCase()))}removeIdToken(m){this.removeItem(m)}removeRefreshToken(m){this.removeItem(m)}getAccessToken(m,k,D,K,de,ie){this.commonLogger.trace("CacheManager - getAccessToken called");const te=V.l.createSearchScopes(k.scopes),se=k.authenticationScheme||g.IO.BEARER,z=se&&se.toLowerCase()!==g.IO.BEARER.toLowerCase()?g.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME:g.aG.ACCESS_TOKEN,W={homeAccountId:m.homeAccountId,environment:m.environment,credentialType:z,clientId:this.clientId,realm:K||m.tenantId,target:te,tokenType:se,keyId:k.sshKid,requestedClaimsHash:k.requestedClaimsHash},Y=D&&D.accessToken||this.getTokenKeys().accessToken,q=[];Y.forEach(Q=>{if(this.accessTokenKeyMatchesFilter(Q,W,!0)){const be=this.getAccessTokenCredential(Q);be&&this.credentialMatchesFilter(be,W)&&q.push(be)}});const ee=q.length;return ee<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):ee>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),q.forEach(Q=>{this.removeAccessToken((0,R.og)(Q))}),de&&ie&&de.addFields({multiMatchedAT:q.length},ie),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),q[0])}accessTokenKeyMatchesFilter(m,k,D){const K=m.toLowerCase();if(k.clientId&&-1===K.indexOf(k.clientId.toLowerCase())||k.homeAccountId&&-1===K.indexOf(k.homeAccountId.toLowerCase())||k.realm&&-1===K.indexOf(k.realm.toLowerCase())||k.requestedClaimsHash&&-1===K.indexOf(k.requestedClaimsHash.toLowerCase()))return!1;if(k.target){const de=k.target.asArray();for(let ie=0;ie<de.length;ie++){if(D&&!K.includes(de[ie].toLowerCase()))return!1;if(!D&&K.includes(de[ie].toLowerCase()))return!0}}return!0}getAccessTokensByFilter(m){const k=this.getTokenKeys(),D=[];return k.accessToken.forEach(K=>{if(!this.accessTokenKeyMatchesFilter(K,m,!0))return;const de=this.getAccessTokenCredential(K);de&&this.credentialMatchesFilter(de,m)&&D.push(de)}),D}getRefreshToken(m,k,D,K,de){this.commonLogger.trace("CacheManager - getRefreshToken called");const te={homeAccountId:m.homeAccountId,environment:m.environment,credentialType:g.aG.REFRESH_TOKEN,clientId:this.clientId,familyId:k?g.hB:void 0},se=D&&D.refreshToken||this.getTokenKeys().refreshToken,z=[];se.forEach(Y=>{if(this.refreshTokenKeyMatchesFilter(Y,te)){const q=this.getRefreshTokenCredential(Y);q&&this.credentialMatchesFilter(q,te)&&z.push(q)}});const W=z.length;return W<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(W>1&&K&&de&&K.addFields({multiMatchedRT:W},de),this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),z[0])}refreshTokenKeyMatchesFilter(m,k){const D=m.toLowerCase();return!(k.familyId&&-1===D.indexOf(k.familyId.toLowerCase())||!k.familyId&&k.clientId&&-1===D.indexOf(k.clientId.toLowerCase())||k.homeAccountId&&-1===D.indexOf(k.homeAccountId.toLowerCase()))}readAppMetadataFromCache(m){const D=this.getAppMetadataFilteredBy({environment:m,clientId:this.clientId}),K=Object.keys(D).map(ie=>D[ie]),de=K.length;if(de<1)return null;if(de>1)throw(0,H.SB)(I.oV);return K[0]}isAppMetadataFOCI(m){const k=this.readAppMetadataFromCache(m);return!(!k||k.familyId!==g.hB)}matchHomeAccountId(m,k){return"string"==typeof m.homeAccountId&&k===m.homeAccountId}matchLocalAccountIdFromTokenClaims(m,k){return k===(m.oid||m.sub)}matchLocalAccountIdFromTenantProfile(m,k){return m.localAccountId===k}matchName(m,k){return k.toLowerCase()===m.name?.toLowerCase()}matchUsername(m,k){return!(!m||"string"!=typeof m||k?.toLowerCase()!==m.toLowerCase())}matchUserAssertionHash(m,k){return!(!m.userAssertionHash||k!==m.userAssertionHash)}matchEnvironment(m,k){if(this.staticAuthorityOptions){const K=(0,S.Bt)(this.staticAuthorityOptions,this.commonLogger);if(K.includes(k)&&K.includes(m.environment))return!0}const D=this.getAuthorityMetadataByAlias(k);return!!(D&&D.aliases.indexOf(m.environment)>-1)}matchCredentialType(m,k){return m.credentialType&&k.toLowerCase()===m.credentialType.toLowerCase()}matchClientId(m,k){return!(!m.clientId||k!==m.clientId)}matchFamilyId(m,k){return!(!m.familyId||k!==m.familyId)}matchRealm(m,k){return m.realm?.toLowerCase()===k.toLowerCase()}matchNativeAccountId(m,k){return!(!m.nativeAccountId||k!==m.nativeAccountId)}matchLoginHintFromTokenClaims(m,k){return m.login_hint===k||m.preferred_username===k||m.upn===k}matchSid(m,k){return m.sid===k}matchAuthorityType(m,k){return!(!m.authorityType||k.toLowerCase()!==m.authorityType.toLowerCase())}matchTarget(m,k){return!(m.credentialType!==g.aG.ACCESS_TOKEN&&m.credentialType!==g.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME||!m.target)&&V.l.fromString(m.target).containsScopeSet(k)}matchTokenType(m,k){return!(!m.tokenType||m.tokenType!==k)}matchKeyId(m,k){return!(!m.keyId||m.keyId!==k)}isAppMetadata(m){return-1!==m.indexOf(g.GU)}isAuthorityMetadata(m){return-1!==m.indexOf(g.u0.CACHE_KEY)}generateAuthorityMetadataCacheKey(m){return`${g.u0.CACHE_KEY}-${this.clientId}-${m}`}static toObject(m,k){for(const D in k)m[D]=k[D];return m}}class G extends B{setAccount(){throw(0,H.SB)(I.R9)}getAccount(){throw(0,H.SB)(I.R9)}getCachedAccountEntity(){throw(0,H.SB)(I.R9)}setIdTokenCredential(){throw(0,H.SB)(I.R9)}getIdTokenCredential(){throw(0,H.SB)(I.R9)}setAccessTokenCredential(){throw(0,H.SB)(I.R9)}getAccessTokenCredential(){throw(0,H.SB)(I.R9)}setRefreshTokenCredential(){throw(0,H.SB)(I.R9)}getRefreshTokenCredential(){throw(0,H.SB)(I.R9)}setAppMetadata(){throw(0,H.SB)(I.R9)}getAppMetadata(){throw(0,H.SB)(I.R9)}setServerTelemetry(){throw(0,H.SB)(I.R9)}getServerTelemetry(){throw(0,H.SB)(I.R9)}setAuthorityMetadata(){throw(0,H.SB)(I.R9)}getAuthorityMetadata(){throw(0,H.SB)(I.R9)}getAuthorityMetadataKeys(){throw(0,H.SB)(I.R9)}setThrottlingCache(){throw(0,H.SB)(I.R9)}getThrottlingCache(){throw(0,H.SB)(I.R9)}removeItem(){throw(0,H.SB)(I.R9)}getKeys(){throw(0,H.SB)(I.R9)}getAccountKeys(){throw(0,H.SB)(I.R9)}getTokenKeys(){throw(0,H.SB)(I.R9)}clear(){return(0,r.A)(function*(){throw(0,H.SB)(I.R9)})()}updateCredentialCacheKey(){throw(0,H.SB)(I.R9)}removeOutdatedAccount(){throw(0,H.SB)(I.R9)}}},1175:(Dt,ve,_)=>{"use strict";_.d(ve,{d:()=>C});var r=_(7635),g=_(5007),R=_(495),V=_(3986),U=_(6211),H=_(8266),P=_(2729),b=_(7172);class C{generateAccountId(){return[this.homeAccountId,this.environment].join(r.LR.CACHE_KEY_SEPARATOR).toLowerCase()}generateAccountKey(){return C.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})}getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(I=>[I.tenantId,I]))}}isSingleTenant(){return!this.tenantProfiles}static generateAccountCacheKey(I){const B=I.homeAccountId.split(".")[1];return[I.homeAccountId,I.environment||"",B||I.tenantId||""].join(r.LR.CACHE_KEY_SEPARATOR).toLowerCase()}static createAccount(I,B,G){const x=new C;let m;x.authorityType=B.authorityType===U.I.Adfs?r.Qd.ADFS_ACCOUNT_TYPE:B.protocolMode===P.e.AAD?r.Qd.MSSTS_ACCOUNT_TYPE:r.Qd.GENERIC_ACCOUNT_TYPE,I.clientInfo&&G&&(m=(0,g.k)(I.clientInfo,G)),x.clientInfo=I.clientInfo,x.homeAccountId=I.homeAccountId,x.nativeAccountId=I.nativeAccountId;const k=I.environment||B&&B.getPreferredCache();if(!k)throw(0,V.SB)(b.l3);if(x.environment=k,x.realm=m?.utid||(0,H.r)(I.idTokenClaims)||"",x.localAccountId=m?.uid||I.idTokenClaims.oid||I.idTokenClaims.sub||"",x.username=I.idTokenClaims.preferred_username||I.idTokenClaims.upn||(I.idTokenClaims.emails?I.idTokenClaims.emails[0]:null)||"",x.name=I.idTokenClaims.name,x.cloudGraphHostName=I.cloudGraphHostName,x.msGraphHost=I.msGraphHost,I.tenantProfiles)x.tenantProfiles=I.tenantProfiles;else{const de=[];if(I.idTokenClaims){const ie=(0,R.bi)(I.homeAccountId,I.idTokenClaims);de.push(ie)}x.tenantProfiles=de}return x}static createFromAccountInfo(I,B,G){const x=new C;return x.authorityType=I.authorityType||r.Qd.GENERIC_ACCOUNT_TYPE,x.homeAccountId=I.homeAccountId,x.localAccountId=I.localAccountId,x.nativeAccountId=I.nativeAccountId,x.realm=I.tenantId,x.environment=I.environment,x.username=I.username,x.name=I.name,x.cloudGraphHostName=B,x.msGraphHost=G,x.tenantProfiles=Array.from(I.tenantProfiles?.values()||[]),x}static generateHomeAccountId(I,B,G,x,m){if(B!==U.I.Adfs&&B!==U.I.Dsts){if(I)try{const k=(0,g.k)(I,x.base64Decode);if(k.uid&&k.utid)return`${k.uid}.${k.utid}`}catch{}G.warning("No client info in response")}return m?.sub||""}static isAccountEntity(I){return!!I&&I.hasOwnProperty("homeAccountId")&&I.hasOwnProperty("environment")&&I.hasOwnProperty("realm")&&I.hasOwnProperty("localAccountId")&&I.hasOwnProperty("username")&&I.hasOwnProperty("authorityType")}static accountInfoIsEqual(I,B,G){if(!I||!B)return!1;let x=!0;if(G){const m=I.idTokenClaims||{},k=B.idTokenClaims||{};x=m.iat===k.iat&&m.nonce===k.nonce}return I.homeAccountId===B.homeAccountId&&I.localAccountId===B.localAccountId&&I.username===B.username&&I.tenantId===B.tenantId&&I.environment===B.environment&&I.nativeAccountId===B.nativeAccountId&&x}}},2376:(Dt,ve,_)=>{"use strict";_.d(ve,{Ir:()=>q,JP:()=>te,Kx:()=>B,Mg:()=>C,Np:()=>b,WB:()=>G,br:()=>Y,c_:()=>P,dj:()=>I,ey:()=>z,gl:()=>ee,ki:()=>se,og:()=>H,p7:()=>W,r1:()=>ie,ur:()=>de});var r=_(2895),g=_(3986),R=_(7635),V=_(6134),U=_(7172);function H(Q){return[x(Q),m(Q),k(Q),D(Q),K(Q)].join(R.LR.CACHE_KEY_SEPARATOR).toLowerCase()}function P(Q,be,we,Ze,Ue){return{credentialType:R.aG.ID_TOKEN,homeAccountId:Q,environment:be,clientId:Ze,secret:we,realm:Ue}}function b(Q,be,we,Ze,Ue,Le,_e,Re,ae,oe,ge,pe,Ae,Pe,We){const Ge={homeAccountId:Q,credentialType:R.aG.ACCESS_TOKEN,secret:we,cachedAt:(0,V._C)().toString(),expiresOn:_e.toString(),extendedExpiresOn:Re.toString(),environment:be,clientId:Ze,realm:Ue,target:Le,tokenType:ge||R.IO.BEARER};if(pe&&(Ge.userAssertionHash=pe),oe&&(Ge.refreshOn=oe.toString()),Pe&&(Ge.requestedClaims=Pe,Ge.requestedClaimsHash=We),Ge.tokenType?.toLowerCase()!==R.IO.BEARER.toLowerCase())switch(Ge.credentialType=R.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME,Ge.tokenType){case R.IO.POP:const ut=(0,r.My)(we,ae);if(!ut?.cnf?.kid)throw(0,g.SB)(U.FA);Ge.keyId=ut.cnf.kid;break;case R.IO.SSH:Ge.keyId=Ae}return Ge}function C(Q,be,we,Ze,Ue,Le,_e){const Re={credentialType:R.aG.REFRESH_TOKEN,homeAccountId:Q,environment:be,clientId:Ze,secret:we};return Le&&(Re.userAssertionHash=Le),Ue&&(Re.familyId=Ue),_e&&(Re.expiresOn=_e.toString()),Re}function S(Q){return Q.hasOwnProperty("homeAccountId")&&Q.hasOwnProperty("environment")&&Q.hasOwnProperty("credentialType")&&Q.hasOwnProperty("clientId")&&Q.hasOwnProperty("secret")}function I(Q){return!!Q&&S(Q)&&Q.hasOwnProperty("realm")&&Q.hasOwnProperty("target")&&(Q.credentialType===R.aG.ACCESS_TOKEN||Q.credentialType===R.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME)}function B(Q){return!!Q&&S(Q)&&Q.hasOwnProperty("realm")&&Q.credentialType===R.aG.ID_TOKEN}function G(Q){return!!Q&&S(Q)&&Q.credentialType===R.aG.REFRESH_TOKEN}function x(Q){return[Q.homeAccountId,Q.environment].join(R.LR.CACHE_KEY_SEPARATOR).toLowerCase()}function m(Q){return[Q.credentialType,Q.credentialType===R.aG.REFRESH_TOKEN&&Q.familyId||Q.clientId,Q.realm||""].join(R.LR.CACHE_KEY_SEPARATOR).toLowerCase()}function k(Q){return(Q.target||"").toLowerCase()}function D(Q){return(Q.requestedClaimsHash||"").toLowerCase()}function K(Q){return Q.tokenType&&Q.tokenType.toLowerCase()!==R.IO.BEARER.toLowerCase()?Q.tokenType.toLowerCase():""}function de(Q,be){const we=0===Q.indexOf(R.gT.CACHE_KEY);let Ze=!0;return be&&(Ze=be.hasOwnProperty("failedRequests")&&be.hasOwnProperty("errors")&&be.hasOwnProperty("cacheHits")),we&&Ze}function ie(Q,be){let we=!1;Q&&(we=0===Q.indexOf(R.Xw.THROTTLING_PREFIX));let Ze=!0;return be&&(Ze=be.hasOwnProperty("throttleTime")),we&&Ze}function te({environment:Q,clientId:be}){return[R.GU,Q,be].join(R.LR.CACHE_KEY_SEPARATOR).toLowerCase()}function se(Q,be){return!!be&&0===Q.indexOf(R.GU)&&be.hasOwnProperty("clientId")&&be.hasOwnProperty("environment")}function z(Q,be){return!!be&&0===Q.indexOf(R.u0.CACHE_KEY)&&be.hasOwnProperty("aliases")&&be.hasOwnProperty("preferred_cache")&&be.hasOwnProperty("preferred_network")&&be.hasOwnProperty("canonical_authority")&&be.hasOwnProperty("authorization_endpoint")&&be.hasOwnProperty("token_endpoint")&&be.hasOwnProperty("issuer")&&be.hasOwnProperty("aliasesFromNetwork")&&be.hasOwnProperty("endpointsFromNetwork")&&be.hasOwnProperty("expiresAt")&&be.hasOwnProperty("jwks_uri")}function W(){return(0,V._C)()+R.u0.REFRESH_TIME_SECONDS}function Y(Q,be,we){Q.authorization_endpoint=be.authorization_endpoint,Q.token_endpoint=be.token_endpoint,Q.end_session_endpoint=be.end_session_endpoint,Q.issuer=be.issuer,Q.endpointsFromNetwork=we,Q.jwks_uri=be.jwks_uri}function q(Q,be,we){Q.aliases=be.aliases,Q.preferred_cache=be.preferred_cache,Q.preferred_network=be.preferred_network,Q.aliasesFromNetwork=we}function ee(Q){return Q.expiresAt<=(0,V._C)()}},6964:(Dt,ve,_)=>{"use strict";_.d(ve,{GF:()=>ie,J1:()=>B,hf:()=>se});var r=_(467),g=_(2506),R=_(8173),V=_(7635),U=_(4481),H=_(4719),P=_(8864),b=_(2729),C=_(3986),S=_(7172);const B={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1},G={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:R.$.Info,correlationId:V.YM.EMPTY_STRING},x={claimsBasedCachingEnabled:!1},m={sendGetRequestAsync:()=>(0,r.A)(function*(){throw(0,C.SB)(S.R9)})(),sendPostRequestAsync:()=>(0,r.A)(function*(){throw(0,C.SB)(S.R9)})()},k={sku:V.YM.SKU,version:U.r,cpu:V.YM.EMPTY_STRING,os:V.YM.EMPTY_STRING},D={clientSecret:V.YM.EMPTY_STRING,clientAssertion:void 0},K={azureCloudInstance:H._.None,tenant:`${V.YM.DEFAULT_COMMON_TENANT}`},de={application:{appName:"",appVersion:""}};function ie({authOptions:z,systemOptions:W,loggerOptions:Y,cacheOptions:q,storageInterface:ee,networkInterface:Q,cryptoInterface:be,clientCredentials:we,libraryInfo:Ze,telemetry:Ue,serverTelemetryManager:Le,persistencePlugin:_e,serializableCache:Re}){const ae={...G,...Y};return{authOptions:te(z),systemOptions:{...B,...W},loggerOptions:ae,cacheOptions:{...x,...q},storageInterface:ee||new P.R(z.clientId,g.j,new R.V(ae)),networkInterface:Q||m,cryptoInterface:be||g.j,clientCredentials:we||D,libraryInfo:{...k,...Ze},telemetry:{...de,...Ue},serverTelemetryManager:Le||null,persistencePlugin:_e||null,serializableCache:Re||null}}function te(z){return{clientCapabilities:[],azureCloudOptions:K,skipAuthorityMetadataCache:!1,...z}}function se(z){return z.authOptions.authority.options.protocolMode===b.e.OIDC}},1586:(Dt,ve,_)=>{"use strict";_.d(ve,{$n:()=>ae,A3:()=>W,AG:()=>Re,Am:()=>U,Az:()=>we,C$:()=>Q,E0:()=>te,H5:()=>Ge,IF:()=>H,Ns:()=>Le,PM:()=>Ue,R3:()=>Ze,R_:()=>Pe,SP:()=>it,Sq:()=>ie,Tq:()=>Ae,U6:()=>r,Xs:()=>z,Zn:()=>_e,_q:()=>g,aZ:()=>B,ag:()=>V,ai:()=>be,au:()=>k,c4:()=>m,dF:()=>Gt,dn:()=>R,hF:()=>D,hx:()=>P,ir:()=>st,oE:()=>pe,p$:()=>oe,pG:()=>St,pe:()=>q,pg:()=>Y,rg:()=>Xe,sg:()=>ee,uP:()=>se,yF:()=>We,yj:()=>ct,z1:()=>ge});const r="client_id",g="redirect_uri",R="response_type",V="response_mode",U="grant_type",H="claims",P="scope",B="refresh_token",m="state",k="nonce",D="prompt",ie="code",te="code_challenge",se="code_challenge_method",z="code_verifier",W="client-request-id",Y="x-client-SKU",q="x-client-VER",ee="x-client-OS",Q="x-client-CPU",be="x-client-current-telemetry",we="x-client-last-telemetry",Ze="x-ms-lib-capability",Ue="x-app-name",Le="x-app-ver",_e="post_logout_redirect_uri",Re="id_token_hint",ae="device_code",oe="client_secret",ge="client_assertion",pe="client_assertion_type",Ae="token_type",Pe="req_cnf",We="assertion",Ge="requested_token_use",st="return_spa_code",ct="nativebroker",St="logout_hint",Gt="sid",it="login_hint",Xe="domain_hint"},2506:(Dt,ve,_)=>{"use strict";_.d(ve,{j:()=>V});var r=_(467),g=_(3986),R=_(7172);const V={createNewGuid:()=>{throw(0,g.SB)(R.R9)},base64Decode:()=>{throw(0,g.SB)(R.R9)},base64Encode:()=>{throw(0,g.SB)(R.R9)},getPublicKeyThumbprint:()=>(0,r.A)(function*(){throw(0,g.SB)(R.R9)})(),removeTokenBindingKey:()=>(0,r.A)(function*(){throw(0,g.SB)(R.R9)})(),clearKeystore:()=>(0,r.A)(function*(){throw(0,g.SB)(R.R9)})(),signJwt:()=>(0,r.A)(function*(){throw(0,g.SB)(R.R9)})(),hashString:()=>(0,r.A)(function*(){throw(0,g.SB)(R.R9)})()}},3461:(Dt,ve,_)=>{"use strict";_.d(ve,{lR:()=>U,pz:()=>H});var r=_(7635),g=_(6213);const R={[g.W]:"Unexpected error in authentication.",[g.z]:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."};class U extends Error{constructor(b,C,S){super(C?`${b}: ${C}`:b),Object.setPrototypeOf(this,U.prototype),this.errorCode=b||r.YM.EMPTY_STRING,this.errorMessage=C||r.YM.EMPTY_STRING,this.subError=S||r.YM.EMPTY_STRING,this.name="AuthError"}setCorrelationId(b){this.correlationId=b}}function H(P,b){return new U(P,b?`${R[P]} ${b}`:R[P])}},6213:(Dt,ve,_)=>{"use strict";_.d(ve,{W:()=>r,z:()=>g});const r="unexpected_error",g="post_request_failed"},3986:(Dt,ve,_)=>{"use strict";_.d(ve,{SB:()=>H,eB:()=>U});var r=_(3461),g=_(7172);const R={[g.lP]:"The client info could not be parsed/decoded correctly",[g.fY]:"The client info was empty",[g.gR]:"Token cannot be parsed",[g.Bh]:"The token is null or empty",[g.s1]:"Endpoints cannot be resolved",[g.x6]:"Network request failed",[g.Ej]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[g.hJ]:"The hash parameters could not be deserialized",[g.f$]:"State was not the expected format",[g.Cl]:"State mismatch error",[g.tQ]:"State not found",[g.aQ]:"Nonce mismatch error",[g.n3]:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information.",[g.Yh]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[g.s9]:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",[g.gg]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[g.oV]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[g.$P]:"Token request cannot be made without authorization code or refresh token.",[g.f5]:"Cannot remove null or empty scope from ScopeSet",[g.Wf]:"Cannot append ScopeSet",[g.UA]:"Empty input ScopeSet cannot be processed",[g.u4]:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",[g.dL]:"Device code is expired.",[g.ax]:"Device code stopped polling for unknown reasons.",[g.C2]:"Please pass an account object, silent flow is not supported without account information",[g.n4]:"Cache record object was null or undefined.",[g.l3]:"Invalid environment when attempting to create cache entry",[g.rk]:"No account found in cache for given key.",[g.oL]:"No crypto object detected.",[g.Zj]:"Unexpected credential type.",[g.qM]:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",[g.Q8]:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",[g.wb]:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",[g.Fs]:"User defined timeout for device code polling reached",[g.FA]:"Cannot generate a POP jwt if the token_claims are not populated",[g.Re]:"Server response does not contain an authorization code to proceed",[g.QE]:"Could not remove the credential's binding key from storage.",[g.yX]:"The provided authority does not support logout",[g.fo]:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",[g.l7]:"No network connectivity. Check your internet connection.",[g.fn]:"User cancelled the flow.",[g.ik]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[g.R9]:"This method has not been implemented",[g.CN]:"The nested app auth bridge is disabled"};class U extends r.lR{constructor(b,C){super(b,C?`${R[b]}: ${C}`:R[b]),this.name="ClientAuthError",Object.setPrototypeOf(this,U.prototype)}}function H(P,b){return new U(P,b)}},7172:(Dt,ve,_)=>{"use strict";_.d(ve,{$P:()=>K,Bh:()=>V,C2:()=>Y,CN:()=>ut,Cl:()=>S,Ej:()=>P,FA:()=>Re,Fs:()=>_e,Q8:()=>Ue,QE:()=>oe,R9:()=>Ge,Re:()=>ae,UA:()=>te,Wf:()=>ie,Yh:()=>x,Zj:()=>we,aQ:()=>B,ax:()=>W,dL:()=>z,f$:()=>C,f5:()=>de,fY:()=>g,fn:()=>Pe,fo:()=>pe,gR:()=>R,gg:()=>k,hJ:()=>b,ik:()=>We,l3:()=>ee,l7:()=>Ae,lP:()=>r,n3:()=>G,n4:()=>q,oL:()=>be,oV:()=>D,qM:()=>Ze,rk:()=>Q,s1:()=>U,s9:()=>m,tQ:()=>I,u4:()=>se,wb:()=>Le,x6:()=>H,yX:()=>ge});const r="client_info_decoding_error",g="client_info_empty_error",R="token_parsing_error",V="null_or_empty_token",U="endpoints_resolution_error",H="network_error",P="openid_config_error",b="hash_not_deserialized",C="invalid_state",S="state_mismatch",I="state_not_found",B="nonce_mismatch",G="auth_time_not_found",x="max_age_transpired",m="multiple_matching_tokens",k="multiple_matching_accounts",D="multiple_matching_appMetadata",K="request_cannot_be_made",de="cannot_remove_empty_scope",ie="cannot_append_scopeset",te="empty_input_scopeset",se="device_code_polling_cancelled",z="device_code_expired",W="device_code_unknown_error",Y="no_account_in_silent_request",q="invalid_cache_record",ee="invalid_cache_environment",Q="no_account_found",be="no_crypto_object",we="unexpected_credential_type",Ze="invalid_assertion",Ue="invalid_client_credential",Le="token_refresh_required",_e="user_timeout_reached",Re="token_claims_cnf_required_for_signedjwt",ae="authorization_code_missing_from_server_response",oe="binding_key_not_removed",ge="end_session_endpoint_not_supported",pe="key_id_missing",Ae="no_network_connectivity",Pe="user_canceled",We="missing_tenant_id_error",Ge="method_not_implemented",ut="nested_app_auth_bridge_disabled"},7806:(Dt,ve,_)=>{"use strict";_.d(ve,{aD:()=>H});var r=_(3461),g=_(5424);const R={[g.gO]:"A redirect URI is required for all calls, and none has been set.",[g.hL]:"Could not parse the given claims request object.",[g.oY]:"Authority URIs must use https.  Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",[g.$N]:"URL could not be parsed into appropriate segments.",[g.$A]:"URL was empty or null.",[g.zg]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[g.Pc]:"Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",[g.bj]:"Given claims parameter must be a stringified JSON object.",[g.Ub]:"Token request was empty and not found in cache.",[g.pi]:"The logout request was null or undefined.",[g.b0]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[g.qz]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[g.a_]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[g.uk]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[g.E0]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[g.LX]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[g.rB]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[g.ze]:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",[g.hk]:"Invalid authentication header provided",[g.bg]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[g.J6]:"Cannot set allowNativeBroker parameter to true when not in AAD protocol mode.",[g.K3]:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."};class U extends r.lR{constructor(b){super(b,R[b]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,U.prototype)}}function H(P){return new U(P)}},5424:(Dt,ve,_)=>{"use strict";_.d(ve,{$A:()=>U,$N:()=>V,E0:()=>m,J6:()=>te,K3:()=>se,LX:()=>k,Pc:()=>P,Ub:()=>C,a_:()=>G,b0:()=>I,bg:()=>ie,bj:()=>b,gO:()=>r,hL:()=>g,hk:()=>de,oY:()=>R,pi:()=>S,qz:()=>B,rB:()=>D,uk:()=>x,ze:()=>K,zg:()=>H});const r="redirect_uri_empty",g="claims_request_parsing_error",R="authority_uri_insecure",V="url_parse_error",U="empty_url_error",H="empty_input_scopes_error",P="invalid_prompt_value",b="invalid_claims",C="token_request_empty",S="logout_request_empty",I="invalid_code_challenge_method",B="pkce_params_missing",G="invalid_cloud_discovery_metadata",x="invalid_authority_metadata",m="untrusted_authority",k="missing_ssh_jwk",D="missing_ssh_kid",K="missing_nonce_authentication_header",de="invalid_authentication_header",ie="cannot_set_OIDCOptions",te="cannot_allow_native_broker",se="authority_mismatch"},194:(Dt,ve,_)=>{"use strict";_.d(ve,{CB:()=>b,IE:()=>S,a:()=>C});var r=_(7635),g=_(3461),R=_(6564);const V=[R.mP,R.CY,R.Zv,R.j9],U=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token"],H={[R.oF]:"No refresh token found in the cache. Please sign-in.",[R.B]:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",[R.AG]:"Refresh token has expired.",[R.j9]:"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve."};class b extends g.lR{constructor(B,G,x,m,k,D,K){super(B,G,x),Object.setPrototypeOf(this,b.prototype),this.timestamp=m||r.YM.EMPTY_STRING,this.traceId=k||r.YM.EMPTY_STRING,this.correlationId=D||r.YM.EMPTY_STRING,this.claims=K||r.YM.EMPTY_STRING,this.name="InteractionRequiredAuthError"}}function C(I,B,G){const x=!!I&&V.indexOf(I)>-1,m=!!G&&U.indexOf(G)>-1,k=!!B&&V.some(D=>B.indexOf(D)>-1);return x||k||m}function S(I){return new b(I,H[I])}},6564:(Dt,ve,_)=>{"use strict";_.d(ve,{AG:()=>R,B:()=>g,CY:()=>U,Zv:()=>H,j9:()=>P,mP:()=>V,oF:()=>r});const r="no_tokens_found",g="native_account_unavailable",R="refresh_token_expired",V="interaction_required",U="consent_required",H="login_required",P="bad_token"},6708:(Dt,ve,_)=>{"use strict";_.d(ve,{g:()=>g});var r=_(3461);class g extends r.lR{constructor(V,U,H){super(V,U,H),this.name="ServerError",Object.setPrototypeOf(this,g.prototype)}}},8173:(Dt,ve,_)=>{"use strict";_.d(ve,{$:()=>g,V:()=>R});var r=_(7635),g=function(V){return V[V.Error=0]="Error",V[V.Warning=1]="Warning",V[V.Info=2]="Info",V[V.Verbose=3]="Verbose",V[V.Trace=4]="Trace",V}(g||{});class R{constructor(U,H,P){this.level=g.Info;const C=U||R.createDefaultLoggerOptions();this.localCallback=C.loggerCallback||(()=>{}),this.piiLoggingEnabled=C.piiLoggingEnabled||!1,this.level="number"==typeof C.logLevel?C.logLevel:g.Info,this.correlationId=C.correlationId||r.YM.EMPTY_STRING,this.packageName=H||r.YM.EMPTY_STRING,this.packageVersion=P||r.YM.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:g.Info}}clone(U,H,P){return new R({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:P||this.correlationId},U,H)}logMessage(U,H){if(H.logLevel>this.level||!this.piiLoggingEnabled&&H.containsPii)return;const C=`[${(new Date).toUTCString()}] : [${H.correlationId||this.correlationId||""}] : ${this.packageName}@${this.packageVersion} : ${g[H.logLevel]} - ${U}`;this.executeCallback(H.logLevel,C,H.containsPii||!1)}executeCallback(U,H,P){this.localCallback&&this.localCallback(U,H,P)}error(U,H){this.logMessage(U,{logLevel:g.Error,containsPii:!1,correlationId:H||r.YM.EMPTY_STRING})}errorPii(U,H){this.logMessage(U,{logLevel:g.Error,containsPii:!0,correlationId:H||r.YM.EMPTY_STRING})}warning(U,H){this.logMessage(U,{logLevel:g.Warning,containsPii:!1,correlationId:H||r.YM.EMPTY_STRING})}warningPii(U,H){this.logMessage(U,{logLevel:g.Warning,containsPii:!0,correlationId:H||r.YM.EMPTY_STRING})}info(U,H){this.logMessage(U,{logLevel:g.Info,containsPii:!1,correlationId:H||r.YM.EMPTY_STRING})}infoPii(U,H){this.logMessage(U,{logLevel:g.Info,containsPii:!0,correlationId:H||r.YM.EMPTY_STRING})}verbose(U,H){this.logMessage(U,{logLevel:g.Verbose,containsPii:!1,correlationId:H||r.YM.EMPTY_STRING})}verbosePii(U,H){this.logMessage(U,{logLevel:g.Verbose,containsPii:!0,correlationId:H||r.YM.EMPTY_STRING})}trace(U,H){this.logMessage(U,{logLevel:g.Trace,containsPii:!1,correlationId:H||r.YM.EMPTY_STRING})}tracePii(U,H){this.logMessage(U,{logLevel:g.Trace,containsPii:!0,correlationId:H||r.YM.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}}},4481:(Dt,ve,_)=>{"use strict";_.d(ve,{U:()=>r,r:()=>g});const r="@azure/msal-common",g="14.8.1"},845:(Dt,ve,_)=>{"use strict";_.d(ve,{W:()=>P});var r=_(7635),g=_(1586),R=_(6812),V=_(7806),U=_(5503),H=_(5424);class P{constructor(){this.parameters=new Map}addResponseTypeCode(){this.parameters.set(g.dn,encodeURIComponent(r.YM.CODE_RESPONSE_TYPE))}addResponseTypeForTokenAndIdToken(){this.parameters.set(g.dn,encodeURIComponent(`${r.YM.TOKEN_RESPONSE_TYPE} ${r.YM.ID_TOKEN_RESPONSE_TYPE}`))}addResponseMode(C){this.parameters.set(g.ag,encodeURIComponent(C||r.p.QUERY))}addNativeBroker(){this.parameters.set(g.yj,encodeURIComponent("1"))}addScopes(C,S=!0,I=r.aZ){S&&!I.includes("openid")&&!C.includes("openid")&&I.push("openid");const B=S?[...C||[],...I]:C||[],G=new R.l(B);this.parameters.set(g.hx,encodeURIComponent(G.printScopes()))}addClientId(C){this.parameters.set(g.U6,encodeURIComponent(C))}addRedirectUri(C){U.M.validateRedirectUri(C),this.parameters.set(g._q,encodeURIComponent(C))}addPostLogoutRedirectUri(C){U.M.validateRedirectUri(C),this.parameters.set(g.Zn,encodeURIComponent(C))}addIdTokenHint(C){this.parameters.set(g.AG,encodeURIComponent(C))}addDomainHint(C){this.parameters.set(g.rg,encodeURIComponent(C))}addLoginHint(C){this.parameters.set(g.SP,encodeURIComponent(C))}addCcsUpn(C){this.parameters.set(r.OK.CCS_HEADER,encodeURIComponent(`UPN:${C}`))}addCcsOid(C){this.parameters.set(r.OK.CCS_HEADER,encodeURIComponent(`Oid:${C.uid}@${C.utid}`))}addSid(C){this.parameters.set(g.dF,encodeURIComponent(C))}addClaims(C,S){const I=this.addClientCapabilitiesToClaims(C,S);U.M.validateClaims(I),this.parameters.set(g.IF,encodeURIComponent(I))}addCorrelationId(C){this.parameters.set(g.A3,encodeURIComponent(C))}addLibraryInfo(C){this.parameters.set(g.pg,C.sku),this.parameters.set(g.pe,C.version),C.os&&this.parameters.set(g.sg,C.os),C.cpu&&this.parameters.set(g.C$,C.cpu)}addApplicationTelemetry(C){C?.appName&&this.parameters.set(g.PM,C.appName),C?.appVersion&&this.parameters.set(g.Ns,C.appVersion)}addPrompt(C){U.M.validatePrompt(C),this.parameters.set(`${g.hF}`,encodeURIComponent(C))}addState(C){C&&this.parameters.set(g.c4,encodeURIComponent(C))}addNonce(C){this.parameters.set(g.au,encodeURIComponent(C))}addCodeChallengeParams(C,S){if(U.M.validateCodeChallengeParams(C,S),!C||!S)throw(0,V.aD)(H.qz);this.parameters.set(g.E0,encodeURIComponent(C)),this.parameters.set(g.uP,encodeURIComponent(S))}addAuthorizationCode(C){this.parameters.set(g.Sq,encodeURIComponent(C))}addDeviceCode(C){this.parameters.set(g.$n,encodeURIComponent(C))}addRefreshToken(C){this.parameters.set(g.aZ,encodeURIComponent(C))}addCodeVerifier(C){this.parameters.set(g.Xs,encodeURIComponent(C))}addClientSecret(C){this.parameters.set(g.p$,encodeURIComponent(C))}addClientAssertion(C){C&&this.parameters.set(g.z1,encodeURIComponent(C))}addClientAssertionType(C){C&&this.parameters.set(g.oE,encodeURIComponent(C))}addOboAssertion(C){this.parameters.set(g.yF,encodeURIComponent(C))}addRequestTokenUse(C){this.parameters.set(g.H5,encodeURIComponent(C))}addGrantType(C){this.parameters.set(g.Am,encodeURIComponent(C))}addClientInfo(){this.parameters.set(r.JR,"1")}addExtraQueryParameters(C){const S=U.M.sanitizeEQParams(C,this.parameters);Object.keys(S).forEach(I=>{this.parameters.set(I,C[I])})}addClientCapabilitiesToClaims(C,S){let I;if(C)try{I=JSON.parse(C)}catch{throw(0,V.aD)(H.bj)}else I={};return S&&S.length>0&&(I.hasOwnProperty(r.Fq.ACCESS_TOKEN)||(I[r.Fq.ACCESS_TOKEN]={}),I[r.Fq.ACCESS_TOKEN][r.Fq.XMS_CC]={values:S}),JSON.stringify(I)}addUsername(C){this.parameters.set(r.Tq.username,encodeURIComponent(C))}addPassword(C){this.parameters.set(r.Tq.password,encodeURIComponent(C))}addPopToken(C){C&&(this.parameters.set(g.Tq,r.IO.POP),this.parameters.set(g.R_,encodeURIComponent(C)))}addSshJwk(C){C&&(this.parameters.set(g.Tq,r.IO.SSH),this.parameters.set(g.R_,encodeURIComponent(C)))}addServerTelemetry(C){this.parameters.set(g.ai,C.generateCurrentRequestHeaderValue()),this.parameters.set(g.Az,C.generateLastRequestHeaderValue())}addThrottling(){this.parameters.set(g.R3,r.Xw.X_MS_LIB_CAPABILITY_VALUE)}addLogoutHint(C){this.parameters.set(g.pG,encodeURIComponent(C))}createQueryString(){const C=new Array;return this.parameters.forEach((S,I)=>{C.push(`${I}=${S}`)}),C.join("&")}}},5503:(Dt,ve,_)=>{"use strict";_.d(ve,{M:()=>V});var r=_(7806),g=_(7635),R=_(5424);class V{static validateRedirectUri(H){if(!H)throw(0,r.aD)(R.gO)}static validatePrompt(H){const P=[];for(const b in g._M)P.push(g._M[b]);if(P.indexOf(H)<0)throw(0,r.aD)(R.Pc)}static validateClaims(H){try{JSON.parse(H)}catch{throw(0,r.aD)(R.bj)}}static validateCodeChallengeParams(H,P){if(!H||!P)throw(0,r.aD)(R.qz);this.validateCodeChallengeMethod(P)}static validateCodeChallengeMethod(H){if([g.iF.PLAIN,g.iF.S256].indexOf(H)<0)throw(0,r.aD)(R.b0)}static sanitizeEQParams(H,P){return H?(P.forEach((b,C)=>{H[C]&&delete H[C]}),Object.fromEntries(Object.entries(H).filter(b=>""!==b[1]))):{}}}},6812:(Dt,ve,_)=>{"use strict";_.d(ve,{l:()=>P});var r=_(7806),g=_(2030),R=_(3986),V=_(7635),U=_(5424),H=_(7172);class P{constructor(C){const S=C?g.$.trimArrayEntries([...C]):[],I=S?g.$.removeEmptyStringsFromArray(S):[];this.validateInputScopes(I),this.scopes=new Set,I.forEach(B=>this.scopes.add(B))}static fromString(C){const I=(C||V.YM.EMPTY_STRING).split(" ");return new P(I)}static createSearchScopes(C){const S=new P(C);return S.containsOnlyOIDCScopes()?S.removeScope(V.YM.OFFLINE_ACCESS_SCOPE):S.removeOIDCScopes(),S}validateInputScopes(C){if(!C||C.length<1)throw(0,r.aD)(U.zg)}containsScope(C){const S=this.printScopesLowerCase().split(" "),I=new P(S);return!!C&&I.scopes.has(C.toLowerCase())}containsScopeSet(C){return!(!C||C.scopes.size<=0)&&this.scopes.size>=C.scopes.size&&C.asArray().every(S=>this.containsScope(S))}containsOnlyOIDCScopes(){let C=0;return V._A.forEach(S=>{this.containsScope(S)&&(C+=1)}),this.scopes.size===C}appendScope(C){C&&this.scopes.add(C.trim())}appendScopes(C){try{C.forEach(S=>this.appendScope(S))}catch{throw(0,R.SB)(H.Wf)}}removeScope(C){if(!C)throw(0,R.SB)(H.f5);this.scopes.delete(C.trim())}removeOIDCScopes(){V._A.forEach(C=>{this.scopes.delete(C)})}unionScopeSets(C){if(!C)throw(0,R.SB)(H.UA);const S=new Set;return C.scopes.forEach(I=>S.add(I.toLowerCase())),this.scopes.forEach(I=>S.add(I.toLowerCase())),S}intersectingScopeSets(C){if(!C)throw(0,R.SB)(H.UA);C.containsOnlyOIDCScopes()||C.removeOIDCScopes();const S=this.unionScopeSets(C),I=C.getScopeCount(),B=this.getScopeCount();return S.size<B+I}getScopeCount(){return this.scopes.size}asArray(){const C=[];return this.scopes.forEach(S=>C.push(S)),C}printScopes(){return this.scopes?this.asArray().join(" "):V.YM.EMPTY_STRING}printScopesLowerCase(){return this.printScopes().toLowerCase()}}},4561:(Dt,ve,_)=>{"use strict";_.d(ve,{MX:()=>r,hU:()=>R});const r={AcquireTokenByCode:"acquireTokenByCode",AcquireTokenByRefreshToken:"acquireTokenByRefreshToken",AcquireTokenSilent:"acquireTokenSilent",AcquireTokenSilentAsync:"acquireTokenSilentAsync",AcquireTokenPopup:"acquireTokenPopup",AcquireTokenRedirect:"acquireTokenRedirect",CryptoOptsGetPublicKeyThumbprint:"cryptoOptsGetPublicKeyThumbprint",CryptoOptsSignJwt:"cryptoOptsSignJwt",SilentCacheClientAcquireToken:"silentCacheClientAcquireToken",SilentIframeClientAcquireToken:"silentIframeClientAcquireToken",SilentRefreshClientAcquireToken:"silentRefreshClientAcquireToken",SsoSilent:"ssoSilent",StandardInteractionClientGetDiscoveredAuthority:"standardInteractionClientGetDiscoveredAuthority",FetchAccountIdWithNativeBroker:"fetchAccountIdWithNativeBroker",NativeInteractionClientAcquireToken:"nativeInteractionClientAcquireToken",BaseClientCreateTokenRequestHeaders:"baseClientCreateTokenRequestHeaders",RefreshTokenClientExecutePostToTokenEndpoint:"refreshTokenClientExecutePostToTokenEndpoint",AuthorizationCodeClientExecutePostToTokenEndpoint:"authorizationCodeClientExecutePostToTokenEndpoint",BrokerHandhshake:"brokerHandshake",AcquireTokenByRefreshTokenInBroker:"acquireTokenByRefreshTokenInBroker",AcquireTokenByBroker:"acquireTokenByBroker",RefreshTokenClientExecuteTokenRequest:"refreshTokenClientExecuteTokenRequest",RefreshTokenClientAcquireToken:"refreshTokenClientAcquireToken",RefreshTokenClientAcquireTokenWithCachedRefreshToken:"refreshTokenClientAcquireTokenWithCachedRefreshToken",RefreshTokenClientAcquireTokenByRefreshToken:"refreshTokenClientAcquireTokenByRefreshToken",RefreshTokenClientCreateTokenRequestBody:"refreshTokenClientCreateTokenRequestBody",AcquireTokenFromCache:"acquireTokenFromCache",SilentFlowClientAcquireCachedToken:"silentFlowClientAcquireCachedToken",SilentFlowClientGenerateResultFromCacheRecord:"silentFlowClientGenerateResultFromCacheRecord",AcquireTokenBySilentIframe:"acquireTokenBySilentIframe",InitializeBaseRequest:"initializeBaseRequest",InitializeSilentRequest:"initializeSilentRequest",InitializeClientApplication:"initializeClientApplication",SilentIframeClientTokenHelper:"silentIframeClientTokenHelper",SilentHandlerInitiateAuthRequest:"silentHandlerInitiateAuthRequest",SilentHandlerMonitorIframeForHash:"silentHandlerMonitorIframeForHash",SilentHandlerLoadFrame:"silentHandlerLoadFrame",SilentHandlerLoadFrameSync:"silentHandlerLoadFrameSync",StandardInteractionClientCreateAuthCodeClient:"standardInteractionClientCreateAuthCodeClient",StandardInteractionClientGetClientConfiguration:"standardInteractionClientGetClientConfiguration",StandardInteractionClientInitializeAuthorizationRequest:"standardInteractionClientInitializeAuthorizationRequest",StandardInteractionClientInitializeAuthorizationCodeRequest:"standardInteractionClientInitializeAuthorizationCodeRequest",GetAuthCodeUrl:"getAuthCodeUrl",HandleCodeResponseFromServer:"handleCodeResponseFromServer",HandleCodeResponse:"handleCodeResponse",UpdateTokenEndpointAuthority:"updateTokenEndpointAuthority",AuthClientAcquireToken:"authClientAcquireToken",AuthClientExecuteTokenRequest:"authClientExecuteTokenRequest",AuthClientCreateTokenRequestBody:"authClientCreateTokenRequestBody",AuthClientCreateQueryString:"authClientCreateQueryString",PopTokenGenerateCnf:"popTokenGenerateCnf",PopTokenGenerateKid:"popTokenGenerateKid",HandleServerTokenResponse:"handleServerTokenResponse",DeserializeResponse:"deserializeResponse",AuthorityFactoryCreateDiscoveredInstance:"authorityFactoryCreateDiscoveredInstance",AuthorityResolveEndpointsAsync:"authorityResolveEndpointsAsync",AuthorityResolveEndpointsFromLocalSources:"authorityResolveEndpointsFromLocalSources",AuthorityGetCloudDiscoveryMetadataFromNetwork:"authorityGetCloudDiscoveryMetadataFromNetwork",AuthorityUpdateCloudDiscoveryMetadata:"authorityUpdateCloudDiscoveryMetadata",AuthorityGetEndpointMetadataFromNetwork:"authorityGetEndpointMetadataFromNetwork",AuthorityUpdateEndpointMetadata:"authorityUpdateEndpointMetadata",AuthorityUpdateMetadataWithRegionalInformation:"authorityUpdateMetadataWithRegionalInformation",RegionDiscoveryDetectRegion:"regionDiscoveryDetectRegion",RegionDiscoveryGetRegionFromIMDS:"regionDiscoveryGetRegionFromIMDS",RegionDiscoveryGetCurrentVersion:"regionDiscoveryGetCurrentVersion",AcquireTokenByCodeAsync:"acquireTokenByCodeAsync",GetEndpointMetadataFromNetwork:"getEndpointMetadataFromNetwork",GetCloudDiscoveryMetadataFromNetworkMeasurement:"getCloudDiscoveryMetadataFromNetworkMeasurement",HandleRedirectPromiseMeasurement:"handleRedirectPromise",HandleNativeRedirectPromiseMeasurement:"handleNativeRedirectPromise",UpdateCloudDiscoveryMetadataMeasurement:"updateCloudDiscoveryMetadataMeasurement",UsernamePasswordClientAcquireToken:"usernamePasswordClientAcquireToken",NativeMessageHandlerHandshake:"nativeMessageHandlerHandshake",NativeGenerateAuthResult:"nativeGenerateAuthResult",RemoveHiddenIframe:"removeHiddenIframe",ClearTokensAndKeysWithClaims:"clearTokensAndKeysWithClaims",CacheManagerGetRefreshToken:"cacheManagerGetRefreshToken",GeneratePkceCodes:"generatePkceCodes",GenerateCodeVerifier:"generateCodeVerifier",GenerateCodeChallengeFromVerifier:"generateCodeChallengeFromVerifier",Sha256Digest:"sha256Digest",GetRandomValues:"getRandomValues"},R={NotStarted:0,InProgress:1,Completed:2}},1564:(Dt,ve,_)=>{"use strict";_.d(ve,{H:()=>H});var r=_(7806),g=_(2030),R=_(7635),V=_(2718),U=_(5424);class H{get urlString(){return this._urlString}constructor(b){if(this._urlString=b,!this._urlString)throw(0,r.aD)(U.$A);b.includes("#")||(this._urlString=H.canonicalizeUri(b))}static canonicalizeUri(b){if(b){let C=b.toLowerCase();return g.$.endsWith(C,"?")?C=C.slice(0,-1):g.$.endsWith(C,"?/")&&(C=C.slice(0,-2)),g.$.endsWith(C,"/")||(C+="/"),C}return b}validateAsUri(){let b;try{b=this.getUrlComponents()}catch{throw(0,r.aD)(U.$N)}if(!b.HostNameAndPort||!b.PathSegments)throw(0,r.aD)(U.$N);if(!b.Protocol||"https:"!==b.Protocol.toLowerCase())throw(0,r.aD)(U.oY)}static appendQueryString(b,C){return C?b.indexOf("?")<0?`${b}?${C}`:`${b}&${C}`:b}static removeHashFromUrl(b){return H.canonicalizeUri(b.split("#")[0])}replaceTenantPath(b){const C=this.getUrlComponents(),S=C.PathSegments;return b&&0!==S.length&&(S[0]===R.v2.COMMON||S[0]===R.v2.ORGANIZATIONS)&&(S[0]=b),H.constructAuthorityUriFromObject(C)}getUrlComponents(){const b=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),C=this.urlString.match(b);if(!C)throw(0,r.aD)(U.$N);const S={Protocol:C[1],HostNameAndPort:C[4],AbsolutePath:C[5],QueryString:C[7]};let I=S.AbsolutePath.split("/");return I=I.filter(B=>B&&B.length>0),S.PathSegments=I,S.QueryString&&S.QueryString.endsWith("/")&&(S.QueryString=S.QueryString.substring(0,S.QueryString.length-1)),S}static getDomainFromUrl(b){const C=RegExp("^([^:/?#]+://)?([^/?#]*)"),S=b.match(C);if(!S)throw(0,r.aD)(U.$N);return S[2]}static getAbsoluteUrl(b,C){if(b[0]===R.YM.FORWARD_SLASH){const I=new H(C).getUrlComponents();return I.Protocol+"//"+I.HostNameAndPort+b}return b}static constructAuthorityUriFromObject(b){return new H(b.Protocol+"//"+b.HostNameAndPort+"/"+b.PathSegments.join("/"))}static hashContainsKnownProperties(b){return!!(0,V.n)(b)}}},7635:(Dt,ve,_)=>{"use strict";_.d(ve,{$x:()=>G,E_:()=>se,Fq:()=>b,GU:()=>K,Gd:()=>H,I:()=>q,IO:()=>W,JR:()=>de,Kk:()=>Q,LR:()=>m,Lz:()=>Ue,OK:()=>U,Qd:()=>x,Rv:()=>Ze,Tq:()=>ee,Xw:()=>Y,YM:()=>r,_2:()=>we,_A:()=>V,_M:()=>C,aG:()=>k,aZ:()=>R,gT:()=>z,hB:()=>ie,iF:()=>S,jZ:()=>be,p:()=>B,t3:()=>g,u0:()=>te,v2:()=>P,zL:()=>I});const r={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},g={SUCCESS_RANGE_START:200,SUCCESS_RANGE_END:299,REDIRECT:302,CLIENT_ERROR_RANGE_START:400,CLIENT_ERROR_RANGE_END:499,SERVER_ERROR_RANGE_START:500,SERVER_ERROR_RANGE_END:599},R=[r.OPENID_SCOPE,r.PROFILE_SCOPE,r.OFFLINE_ACCESS_SCOPE],V=[...R,r.EMAIL_SCOPE],U={CONTENT_TYPE:"Content-Type",RETRY_AFTER:"Retry-After",CCS_HEADER:"X-AnchorMailbox",WWWAuthenticate:"WWW-Authenticate",AuthenticationInfo:"Authentication-Info",X_MS_REQUEST_ID:"x-ms-request-id",X_MS_HTTP_VERSION:"x-ms-httpver"},H={ID_TOKEN:"idtoken",CLIENT_INFO:"client.info",ADAL_ID_TOKEN:"adal.idtoken",ERROR:"error",ERROR_DESC:"error.description",ACTIVE_ACCOUNT:"active-account",ACTIVE_ACCOUNT_FILTERS:"active-account-filters"},P={COMMON:"common",ORGANIZATIONS:"organizations",CONSUMERS:"consumers"},b={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},C={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},S={PLAIN:"plain",S256:"S256"},I={QUERY:"query",FRAGMENT:"fragment"},B={...I,FORM_POST:"form_post"},G={IMPLICIT_GRANT:"implicit",AUTHORIZATION_CODE_GRANT:"authorization_code",CLIENT_CREDENTIALS_GRANT:"client_credentials",RESOURCE_OWNER_PASSWORD_GRANT:"password",REFRESH_TOKEN_GRANT:"refresh_token",DEVICE_CODE_GRANT:"device_code",JWT_BEARER:"urn:ietf:params:oauth:grant-type:jwt-bearer"},x={MSSTS_ACCOUNT_TYPE:"MSSTS",ADFS_ACCOUNT_TYPE:"ADFS",MSAV1_ACCOUNT_TYPE:"MSA",GENERIC_ACCOUNT_TYPE:"Generic"},m={CACHE_KEY_SEPARATOR:"-",CLIENT_INFO_SEPARATOR:"."},k={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"},K="appmetadata",de="client_info",ie="1",te={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:86400},se={CONFIG:"config",CACHE:"cache",NETWORK:"network",HARDCODED_VALUES:"hardcoded_values"},z={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},W={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},Y={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},q={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},ee={username:"username",password:"password"},Q={httpSuccess:200,httpBadRequest:400},be={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"},we={CONFIGURED_MATCHES_DETECTED:"1",CONFIGURED_NO_AUTO_DETECTION:"2",CONFIGURED_NOT_DETECTED:"3",AUTO_DETECTION_REQUESTED_SUCCESSFUL:"4",AUTO_DETECTION_REQUESTED_FAILED:"5"},Ze={NOT_APPLICABLE:"0",FORCE_REFRESH_OR_CLAIMS:"1",NO_CACHED_ACCESS_TOKEN:"2",CACHED_ACCESS_TOKEN_EXPIRED:"3",PROACTIVELY_REFRESHED:"4"},Ue={Jwt:"JWT",Jwk:"JWK",Pop:"pop"}},2030:(Dt,ve,_)=>{"use strict";_.d(ve,{$:()=>r});class r{static isEmptyObj(R){if(R)try{const V=JSON.parse(R);return 0===Object.keys(V).length}catch{}return!0}static startsWith(R,V){return 0===R.indexOf(V)}static endsWith(R,V){return R.length>=V.length&&R.lastIndexOf(V)===R.length-V.length}static queryStringToObject(R){const V={},U=R.split("&"),H=P=>decodeURIComponent(P.replace(/\+/g," "));return U.forEach(P=>{if(P.trim()){const[b,C]=P.split(/=(.+)/g,2);b&&C&&(V[H(b)]=H(C))}}),V}static trimArrayEntries(R){return R.map(V=>V.trim())}static removeEmptyStringsFromArray(R){return R.filter(V=>!!V)}static jsonParseHelper(R){try{return JSON.parse(R)}catch{return null}}static matchPattern(R,V){return new RegExp(R.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(V)}}},6134:(Dt,ve,_)=>{"use strict";function r(){return Math.round((new Date).getTime()/1e3)}function g(U,H){const P=Number(U)||0;return r()+H>P}function R(U){return Number(U)>r()}_.d(ve,{Hm:()=>g,XJ:()=>R,_C:()=>r})},2718:(Dt,ve,_)=>{"use strict";_.d(ve,{S:()=>R,n:()=>V});var r=_(3986),g=_(7172);function R(U){return U.startsWith("#/")?U.substring(2):U.startsWith("#")||U.startsWith("?")?U.substring(1):U}function V(U){if(!U||U.indexOf("=")<0)return null;try{const H=R(U),P=Object.fromEntries(new URLSearchParams(H));if(P.code||P.error||P.error_description||P.state)return P}catch{throw(0,r.SB)(g.hJ)}return null}},788:(Dt,ve,_)=>{"use strict";_.d(ve,{UA:()=>Un,WP:()=>ti,$R:()=>jr,r6:()=>dn,x7:()=>sr,tW:()=>kt,_f:()=>yi,Lw:()=>Yc,dn:()=>Ma,Ae:()=>Nl,tg:()=>Pa,Eu:()=>Ed,_H:()=>cl,U0:()=>Qs,do:()=>Sd,Bq:()=>Md,UN:()=>Xd,X9:()=>fl,Um:()=>kl,sy:()=>xa,Ri:()=>eu,WA:()=>Fa,Pv:()=>Fl,m_:()=>Js,md:()=>Gl});var r=_(4438),g=_(1985),R=_(6977);function V(l){l||((0,r.Af3)(V),l=(0,r.WQX)(r.abz));const O=new g.c(s=>l.onDestroy(s.next.bind(s)));return s=>s.pipe((0,R.Q)(O))}var S=_(983),I=_(7673),B=_(1413),G=_(3726),x=_(1584),m=_(8750);const{isArray:k}=Array;function D(l){return 1===l.length&&k(l[0])?l[0]:l}var K=_(4360);function de(...l){return 1===(l=D(l)).length?(0,m.Tg)(l[0]):new g.c(function ie(l){return O=>{let s=[];for(let f=0;s&&!O.closed&&f<l.length;f++)s.push((0,m.Tg)(l[f]).subscribe((0,K._)(O,M=>{if(s){for(let le=0;le<s.length;le++)le!==f&&s[le].unsubscribe();s=null}O.next(M)})))}}(l))}_(7786);var se=_(9326);function z(...l){const O=(0,se.ms)(l),s=D(l);return s.length?new g.c(f=>{let M=s.map(()=>[]),le=s.map(()=>!1);f.add(()=>{M=le=null});for(let Te=0;!f.closed&&Te<s.length;Te++)(0,m.Tg)(s[Te]).subscribe((0,K._)(f,Je=>{if(M[Te].push(Je),M.every(lt=>lt.length)){const lt=M.map(Ct=>Ct.shift());f.next(O?O(...lt):lt),M.some((Ct,It)=>!Ct.length&&le[It])&&f.complete()}},()=>{le[Te]=!0,!M[Te].length&&f.complete()}));return()=>{M=le=null}}):S.w}var W=_(8793),q=_(5964),ee=_(6697),Q=_(8141),be=_(6354),we=_(9974),Ze=_(3669),Ue=_(5343);function Le(...l){const O=(0,se.ms)(l);return(0,we.N)((s,f)=>{const M=l.length,le=new Array(M);let Te=l.map(()=>!1),Je=!1;for(let lt=0;lt<M;lt++)(0,m.Tg)(l[lt]).subscribe((0,K._)(f,Ct=>{le[lt]=Ct,!Je&&!Te[lt]&&(Te[lt]=!0,(Je=Te.every(Ze.D))&&(Te=null))},Ue.l));s.subscribe((0,K._)(f,lt=>{if(Je){const Ct=[lt,...le];f.next(O?O(...Ct):Ct)}}))})}var _e=_(3236),ae=_(3703),oe=_(1397);function ge(l,O){return O?s=>(0,W.x)(O.pipe((0,ee.s)(1),function Re(){return(0,we.N)((l,O)=>{l.subscribe((0,K._)(O,Ue.l))})}()),s.pipe(ge(l))):(0,oe.Z)((s,f)=>(0,m.Tg)(l(s,f)).pipe((0,ee.s)(1),(0,ae.u)(s)))}var Ae=_(5558),Pe=_(9172),We=_(3294),ut=_(177),tt=(_(4341),{left:"right",right:"left",bottom:"top",top:"bottom"});function st(l){return l.replace(/left|right|bottom|top/g,function(O){return tt[O]})}function ct(l){return l.split("-")[0]}var St={start:"end",end:"start"};function Gt(l){return l.replace(/start|end/g,function(O){return St[O]})}var it="top",Xe="bottom",wt="right",at="left",vt="auto",$t=[it,Xe,wt,at],tn="start",qt="end",Nn="viewport",Ht="popper",yn=$t.reduce(function(l,O){return l.concat([O+"-"+tn,O+"-"+qt])},[]),Ln=[].concat($t,[vt]).reduce(function(l,O){return l.concat([O,O+"-"+tn,O+"-"+qt])},[]),Bn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function jn(l){if(null==l)return window;if("[object Window]"!==l.toString()){var O=l.ownerDocument;return O&&O.defaultView||window}return l}function Jn(l){return l instanceof jn(l).Element||l instanceof Element}function Rr(l){return l instanceof jn(l).HTMLElement||l instanceof HTMLElement}function Ar(l){return!(typeof ShadowRoot>"u")&&(l instanceof jn(l).ShadowRoot||l instanceof ShadowRoot)}function qe(l){return((Jn(l)?l.ownerDocument:l.document)||window.document).documentElement}var ot=Math.max,He=Math.min,Ye=Math.round;function bt(){var l=navigator.userAgentData;return null!=l&&l.brands&&Array.isArray(l.brands)?l.brands.map(function(O){return O.brand+"/"+O.version}).join(" "):navigator.userAgent}function Lt(){return!/^((?!chrome|android).)*safari/i.test(bt())}function Zt(l,O,s){void 0===O&&(O=!1),void 0===s&&(s=!1);var f=l.getBoundingClientRect(),M=1,le=1;O&&Rr(l)&&(M=l.offsetWidth>0&&Ye(f.width)/l.offsetWidth||1,le=l.offsetHeight>0&&Ye(f.height)/l.offsetHeight||1);var Je=(Jn(l)?jn(l):window).visualViewport,lt=!Lt()&&s,Ct=(f.left+(lt&&Je?Je.offsetLeft:0))/M,It=(f.top+(lt&&Je?Je.offsetTop:0))/le,zt=f.width/M,Wt=f.height/le;return{width:zt,height:Wt,top:It,right:Ct+zt,bottom:It+Wt,left:Ct,x:Ct,y:It}}function Dn(l){var O=jn(l);return{scrollLeft:O.pageXOffset,scrollTop:O.pageYOffset}}function In(l){return Zt(qe(l)).left+Dn(l).scrollLeft}function ir(l){return jn(l).getComputedStyle(l)}function Pn(l){return l?(l.nodeName||"").toLowerCase():null}function Ni(l){return"html"===Pn(l)?l:l.assignedSlot||l.parentNode||(Ar(l)?l.host:null)||qe(l)}function Bi(l){var O=ir(l);return/auto|scroll|overlay|hidden/.test(O.overflow+O.overflowY+O.overflowX)}function pr(l){return["html","body","#document"].indexOf(Pn(l))>=0?l.ownerDocument.body:Rr(l)&&Bi(l)?l:pr(Ni(l))}function on(l,O){var s;void 0===O&&(O=[]);var f=pr(l),M=f===(null==(s=l.ownerDocument)?void 0:s.body),le=jn(f),Te=M?[le].concat(le.visualViewport||[],Bi(f)?f:[]):f,Je=O.concat(Te);return M?Je:Je.concat(on(Ni(Te)))}function So(l){return["table","td","th"].indexOf(Pn(l))>=0}function qr(l){return Rr(l)&&"fixed"!==ir(l).position?l.offsetParent:null}function Qr(l){for(var O=jn(l),s=qr(l);s&&So(s)&&"static"===ir(s).position;)s=qr(s);return s&&("html"===Pn(s)||"body"===Pn(s)&&"static"===ir(s).position)?O:s||function ui(l){var O=/firefox/i.test(bt());if(/Trident/i.test(bt())&&Rr(l)&&"fixed"===ir(l).position)return null;var M=Ni(l);for(Ar(M)&&(M=M.host);Rr(M)&&["html","body"].indexOf(Pn(M))<0;){var le=ir(M);if("none"!==le.transform||"none"!==le.perspective||"paint"===le.contain||-1!==["transform","perspective"].indexOf(le.willChange)||O&&"filter"===le.willChange||O&&le.filter&&"none"!==le.filter)return M;M=M.parentNode}return null}(l)||O}function _r(l,O){var s=O.getRootNode&&O.getRootNode();if(l.contains(O))return!0;if(s&&Ar(s)){var f=O;do{if(f&&l.isSameNode(f))return!0;f=f.parentNode||f.host}while(f)}return!1}function vn(l){return Object.assign({},l,{left:l.x,top:l.y,right:l.x+l.width,bottom:l.y+l.height})}function dr(l,O,s){return O===Nn?vn(function nr(l,O){var s=jn(l),f=qe(l),M=s.visualViewport,le=f.clientWidth,Te=f.clientHeight,Je=0,lt=0;if(M){le=M.width,Te=M.height;var Ct=Lt();(Ct||!Ct&&"fixed"===O)&&(Je=M.offsetLeft,lt=M.offsetTop)}return{width:le,height:Te,x:Je+In(l),y:lt}}(l,s)):Jn(O)?function di(l,O){var s=Zt(l,!1,"fixed"===O);return s.top=s.top+l.clientTop,s.left=s.left+l.clientLeft,s.bottom=s.top+l.clientHeight,s.right=s.left+l.clientWidth,s.width=l.clientWidth,s.height=l.clientHeight,s.x=s.left,s.y=s.top,s}(O,s):vn(function fr(l){var O,s=qe(l),f=Dn(l),M=null==(O=l.ownerDocument)?void 0:O.body,le=ot(s.scrollWidth,s.clientWidth,M?M.scrollWidth:0,M?M.clientWidth:0),Te=ot(s.scrollHeight,s.clientHeight,M?M.scrollHeight:0,M?M.clientHeight:0),Je=-f.scrollLeft+In(l),lt=-f.scrollTop;return"rtl"===ir(M||s).direction&&(Je+=ot(s.clientWidth,M?M.clientWidth:0)-le),{width:le,height:Te,x:Je,y:lt}}(qe(l)))}function wr(l){return l.split("-")[1]}function Yr(l){return["top","bottom"].indexOf(l)>=0?"x":"y"}function $n(l){var lt,O=l.reference,s=l.element,f=l.placement,M=f?ct(f):null,le=f?wr(f):null,Te=O.x+O.width/2-s.width/2,Je=O.y+O.height/2-s.height/2;switch(M){case it:lt={x:Te,y:O.y-s.height};break;case Xe:lt={x:Te,y:O.y+O.height};break;case wt:lt={x:O.x+O.width,y:Je};break;case at:lt={x:O.x-s.width,y:Je};break;default:lt={x:O.x,y:O.y}}var Ct=M?Yr(M):null;if(null!=Ct){var It="y"===Ct?"height":"width";switch(le){case tn:lt[Ct]=lt[Ct]-(O[It]/2-s[It]/2);break;case qt:lt[Ct]=lt[Ct]+(O[It]/2-s[It]/2)}}return lt}function Ke(l){return Object.assign({},{top:0,right:0,bottom:0,left:0},l)}function ze(l,O){return O.reduce(function(s,f){return s[f]=l,s},{})}function Tt(l,O){void 0===O&&(O={});var f=O.placement,M=void 0===f?l.placement:f,le=O.strategy,Te=void 0===le?l.strategy:le,Je=O.boundary,lt=void 0===Je?"clippingParents":Je,Ct=O.rootBoundary,It=void 0===Ct?Nn:Ct,zt=O.elementContext,Wt=void 0===zt?Ht:zt,Jt=O.altBoundary,Xn=void 0!==Jt&&Jt,wn=O.padding,qn=void 0===wn?0:wn,vr=Ke("number"!=typeof qn?qn:ze(qn,$t)),ci=l.rects.popper,tr=l.elements[Xn?Wt===Ht?"reference":Ht:Wt],Er=function Pr(l,O,s,f){var M="clippingParents"===O?function gr(l){var O=on(Ni(l)),f=["absolute","fixed"].indexOf(ir(l).position)>=0&&Rr(l)?Qr(l):l;return Jn(f)?O.filter(function(M){return Jn(M)&&_r(M,f)&&"body"!==Pn(M)}):[]}(l):[].concat(O),le=[].concat(M,[s]),Je=le.reduce(function(lt,Ct){var It=dr(l,Ct,f);return lt.top=ot(It.top,lt.top),lt.right=He(It.right,lt.right),lt.bottom=He(It.bottom,lt.bottom),lt.left=ot(It.left,lt.left),lt},dr(l,le[0],f));return Je.width=Je.right-Je.left,Je.height=Je.bottom-Je.top,Je.x=Je.left,Je.y=Je.top,Je}(Jn(tr)?tr:tr.contextElement||qe(l.elements.popper),lt,It,Te),Nr=Zt(l.elements.reference),ri=$n({reference:Nr,element:ci,strategy:"absolute",placement:M}),Kr=vn(Object.assign({},ci,ri)),to=Wt===Ht?Kr:Nr,ii={top:Er.top-to.top+vr.top,bottom:to.bottom-Er.bottom+vr.bottom,left:Er.left-to.left+vr.left,right:to.right-Er.right+vr.right},co=l.modifiersData.offset;if(Wt===Ht&&co){var vs=co[M];Object.keys(ii).forEach(function(Eo){var ks=[wt,Xe].indexOf(Eo)>=0?1:-1,Ha=[it,Xe].indexOf(Eo)>=0?"y":"x";ii[Eo]+=vs[Ha]*ks})}return ii}const Be={name:"flip",enabled:!0,phase:"main",fn:function Ft(l){var O=l.state,s=l.options,f=l.name;if(!O.modifiersData[f]._skip){for(var M=s.mainAxis,le=void 0===M||M,Te=s.altAxis,Je=void 0===Te||Te,lt=s.fallbackPlacements,Ct=s.padding,It=s.boundary,zt=s.rootBoundary,Wt=s.altBoundary,Jt=s.flipVariations,Xn=void 0===Jt||Jt,wn=s.allowedAutoPlacements,qn=O.options.placement,vr=ct(qn),ci=lt||(vr!==qn&&Xn?function xt(l){if(ct(l)===vt)return[];var O=st(l);return[Gt(l),O,Gt(O)]}(qn):[st(qn)]),tr=[qn].concat(ci).reduce(function(ta,ws){return ta.concat(ct(ws)===vt?function yt(l,O){void 0===O&&(O={});var M=O.boundary,le=O.rootBoundary,Te=O.padding,Je=O.flipVariations,lt=O.allowedAutoPlacements,Ct=void 0===lt?Ln:lt,It=wr(O.placement),zt=It?Je?yn:yn.filter(function(Xn){return wr(Xn)===It}):$t,Wt=zt.filter(function(Xn){return Ct.indexOf(Xn)>=0});0===Wt.length&&(Wt=zt);var Jt=Wt.reduce(function(Xn,wn){return Xn[wn]=Tt(l,{placement:wn,boundary:M,rootBoundary:le,padding:Te})[ct(wn)],Xn},{});return Object.keys(Jt).sort(function(Xn,wn){return Jt[Xn]-Jt[wn]})}(O,{placement:ws,boundary:It,rootBoundary:zt,padding:Ct,flipVariations:Xn,allowedAutoPlacements:wn}):ws)},[]),Er=O.rects.reference,Nr=O.rects.popper,ri=new Map,Kr=!0,to=tr[0],ii=0;ii<tr.length;ii++){var co=tr[ii],vs=ct(co),Eo=wr(co)===tn,ks=[it,Xe].indexOf(vs)>=0,Ha=ks?"width":"height",Qo=Tt(O,{placement:co,boundary:It,rootBoundary:zt,altBoundary:Wt,padding:Ct}),ys=ks?Eo?wt:at:Eo?Xe:it;Er[Ha]>Nr[Ha]&&(ys=st(ys));var Wl=st(ys),ba=[];if(le&&ba.push(Qo[vs]<=0),Je&&ba.push(Qo[ys]<=0,Qo[Wl]<=0),ba.every(function(ta){return ta})){to=co,Kr=!1;break}ri.set(co,ba)}if(Kr)for(var qd=function(ws){var Ds=tr.find(function(Ua){var xs=ri.get(Ua);if(xs)return xs.slice(0,ws).every(function(Ca){return Ca})});if(Ds)return to=Ds,"break"},ea=Xn?3:1;ea>0&&"break"!==qd(ea);ea--);O.placement!==to&&(O.modifiersData[f]._skip=!0,O.placement=to,O.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Z(l,O,s){return ot(l,He(O,s))}function je(l){var O=Zt(l),s=l.offsetWidth,f=l.offsetHeight;return Math.abs(O.width-s)<=1&&(s=O.width),Math.abs(O.height-f)<=1&&(f=O.height),{x:l.offsetLeft,y:l.offsetTop,width:s,height:f}}const Rt={name:"preventOverflow",enabled:!0,phase:"main",fn:function pt(l){var O=l.state,s=l.options,f=l.name,M=s.mainAxis,le=void 0===M||M,Te=s.altAxis,Je=void 0!==Te&&Te,Wt=s.tether,Jt=void 0===Wt||Wt,Xn=s.tetherOffset,wn=void 0===Xn?0:Xn,qn=Tt(O,{boundary:s.boundary,rootBoundary:s.rootBoundary,padding:s.padding,altBoundary:s.altBoundary}),vr=ct(O.placement),rr=wr(O.placement),ci=!rr,tr=Yr(vr),Er=function xe(l){return"x"===l?"y":"x"}(tr),Nr=O.modifiersData.popperOffsets,ri=O.rects.reference,Kr=O.rects.popper,to="function"==typeof wn?wn(Object.assign({},O.rects,{placement:O.placement})):wn,ii="number"==typeof to?{mainAxis:to,altAxis:to}:Object.assign({mainAxis:0,altAxis:0},to),co=O.modifiersData.offset?O.modifiersData.offset[O.placement]:null,vs={x:0,y:0};if(Nr){if(le){var Eo,ks="y"===tr?it:at,Ha="y"===tr?Xe:wt,Qo="y"===tr?"height":"width",ys=Nr[tr],Wl=ys+qn[ks],ba=ys-qn[Ha],cu=Jt?-Kr[Qo]/2:0,qd=rr===tn?ri[Qo]:Kr[Qo],ea=rr===tn?-Kr[Qo]:-ri[Qo],Kl=O.elements.arrow,ta=Jt&&Kl?je(Kl):{width:0,height:0},ws=O.modifiersData["arrow#persistent"]?O.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ds=ws[ks],Ua=ws[Ha],xs=Z(0,ri[Qo],ta[Qo]),Ca=ci?ri[Qo]/2-cu-xs-Ds-ii.mainAxis:qd-xs-Ds-ii.mainAxis,zl=ci?-ri[Qo]/2+cu+xs+Ua+ii.mainAxis:ea+xs+Ua+ii.mainAxis,na=O.elements.arrow&&Qr(O.elements.arrow),uu=na?"y"===tr?na.clientTop||0:na.clientLeft||0:0,Xl=null!=(Eo=co?.[tr])?Eo:0,km=ys+zl-Xl,Ql=Z(Jt?He(Wl,ys+Ca-Xl-uu):Wl,ys,Jt?ot(ba,km):ba);Nr[tr]=Ql,vs[tr]=Ql-ys}if(Je){var Va,Ta=Nr[Er],Yl="y"===Er?"height":"width",Jl=Ta+qn["x"===tr?it:at],du=Ta-qn["x"===tr?Xe:wt],hu=-1!==[it,at].indexOf(vr),Yd=null!=(Va=co?.[Er])?Va:0,Ga=hu?Jl:Ta-ri[Yl]-Kr[Yl]-Yd+ii.altAxis,fu=hu?Ta+ri[Yl]+Kr[Yl]-Yd-ii.altAxis:du,Zl=Jt&&hu?function Me(l,O,s){var f=Z(l,O,s);return f>s?s:f}(Ga,Ta,fu):Z(Jt?Ga:Jl,Ta,Jt?fu:du);Nr[Er]=Zl,vs[Er]=Zl-Ta}O.modifiersData[f]=vs}},requiresIfExists:["offset"]},rn={name:"arrow",enabled:!0,phase:"main",fn:function an(l){var O,s=l.state,f=l.name,M=l.options,le=s.elements.arrow,Te=s.modifiersData.popperOffsets,Je=ct(s.placement),lt=Yr(Je),It=[at,wt].indexOf(Je)>=0?"height":"width";if(le&&Te){var zt=function(O,s){return Ke("number"!=typeof(O="function"==typeof O?O(Object.assign({},s.rects,{placement:s.placement})):O)?O:ze(O,$t))}(M.padding,s),Wt=je(le),Jt="y"===lt?it:at,Xn="y"===lt?Xe:wt,wn=s.rects.reference[It]+s.rects.reference[lt]-Te[lt]-s.rects.popper[It],qn=Te[lt]-s.rects.reference[lt],vr=Qr(le),rr=vr?"y"===lt?vr.clientHeight||0:vr.clientWidth||0:0,Nr=rr/2-Wt[It]/2+(wn/2-qn/2),ri=Z(zt[Jt],Nr,rr-Wt[It]-zt[Xn]);s.modifiersData[f]=((O={})[lt]=ri,O.centerOffset=ri-Nr,O)}},effect:function en(l){var O=l.state,f=l.options.element,M=void 0===f?"[data-popper-arrow]":f;null!=M&&("string"==typeof M&&!(M=O.elements.popper.querySelector(M))||_r(O.elements.popper,M)&&(O.elements.arrow=M))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function or(l,O,s){void 0===s&&(s=!1);var f=Rr(O),M=Rr(O)&&function Wn(l){var O=l.getBoundingClientRect(),s=Ye(O.width)/l.offsetWidth||1,f=Ye(O.height)/l.offsetHeight||1;return 1!==s||1!==f}(O),le=qe(O),Te=Zt(l,M,s),Je={scrollLeft:0,scrollTop:0},lt={x:0,y:0};return(f||!f&&!s)&&(("body"!==Pn(O)||Bi(le))&&(Je=function En(l){return l!==jn(l)&&Rr(l)?function Vn(l){return{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}}(l):Dn(l)}(O)),Rr(O)?((lt=Zt(O,!0)).x+=O.clientLeft,lt.y+=O.clientTop):le&&(lt.x=In(le))),{x:Te.left+Je.scrollLeft-lt.x,y:Te.top+Je.scrollTop-lt.y,width:Te.width,height:Te.height}}function br(l){var O=new Map,s=new Set,f=[];function M(le){s.add(le.name),[].concat(le.requires||[],le.requiresIfExists||[]).forEach(function(Je){if(!s.has(Je)){var lt=O.get(Je);lt&&M(lt)}}),f.push(le)}return l.forEach(function(le){O.set(le.name,le)}),l.forEach(function(le){s.has(le.name)||M(le)}),f}function nt(l){var O;return function(){return O||(O=new Promise(function(s){Promise.resolve().then(function(){O=void 0,s(l())})})),O}}var u={placement:"bottom",modifiers:[],strategy:"absolute"};function T(){for(var l=arguments.length,O=new Array(l),s=0;s<l;s++)O[s]=arguments[s];return!O.some(function(f){return!(f&&"function"==typeof f.getBoundingClientRect)})}function X(l){void 0===l&&(l={});var s=l.defaultModifiers,f=void 0===s?[]:s,M=l.defaultOptions,le=void 0===M?u:M;return function(Je,lt,Ct){void 0===Ct&&(Ct=le);var It={placement:"bottom",orderedModifiers:[],options:Object.assign({},u,le),modifiersData:{},elements:{reference:Je,popper:lt},attributes:{},styles:{}},zt=[],Wt=!1,Jt={state:It,setOptions:function(vr){var rr="function"==typeof vr?vr(It.options):vr;wn(),It.options=Object.assign({},le,It.options,rr),It.scrollParents={reference:Jn(Je)?on(Je):Je.contextElement?on(Je.contextElement):[],popper:on(lt)};var ci=function un(l){var O=br(l);return Bn.reduce(function(s,f){return s.concat(O.filter(function(M){return M.phase===f}))},[])}(function c(l){var O=l.reduce(function(s,f){var M=s[f.name];return s[f.name]=M?Object.assign({},M,f,{options:Object.assign({},M.options,f.options),data:Object.assign({},M.data,f.data)}):f,s},{});return Object.keys(O).map(function(s){return O[s]})}([].concat(f,It.options.modifiers)));return It.orderedModifiers=ci.filter(function(tr){return tr.enabled}),function Xn(){It.orderedModifiers.forEach(function(qn){var rr=qn.options,tr=qn.effect;if("function"==typeof tr){var Er=tr({state:It,name:qn.name,instance:Jt,options:void 0===rr?{}:rr});zt.push(Er||function(){})}})}(),Jt.update()},forceUpdate:function(){if(!Wt){var vr=It.elements,rr=vr.reference,ci=vr.popper;if(T(rr,ci)){It.rects={reference:or(rr,Qr(ci),"fixed"===It.options.strategy),popper:je(ci)},It.reset=!1,It.placement=It.options.placement,It.orderedModifiers.forEach(function(ii){return It.modifiersData[ii.name]=Object.assign({},ii.data)});for(var tr=0;tr<It.orderedModifiers.length;tr++)if(!0!==It.reset){var Er=It.orderedModifiers[tr],Nr=Er.fn,ri=Er.options;"function"==typeof Nr&&(It=Nr({state:It,options:void 0===ri?{}:ri,name:Er.name,instance:Jt})||It)}else It.reset=!1,tr=-1}}},update:nt(function(){return new Promise(function(qn){Jt.forceUpdate(),qn(It)})}),destroy:function(){wn(),Wt=!0}};if(!T(Je,lt))return Jt;function wn(){zt.forEach(function(qn){return qn()}),zt=[]}return Jt.setOptions(Ct).then(function(qn){!Wt&&Ct.onFirstUpdate&&Ct.onFirstUpdate(qn)}),Jt}}var Ce={passive:!0},Kt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function An(l){var O,s=l.popper,f=l.popperRect,M=l.placement,le=l.variation,Te=l.offsets,Je=l.position,lt=l.gpuAcceleration,Ct=l.adaptive,It=l.roundOffsets,zt=l.isFixed,Wt=Te.x,Jt=void 0===Wt?0:Wt,Xn=Te.y,wn=void 0===Xn?0:Xn,qn="function"==typeof It?It({x:Jt,y:wn}):{x:Jt,y:wn};Jt=qn.x,wn=qn.y;var vr=Te.hasOwnProperty("x"),rr=Te.hasOwnProperty("y"),ci=at,tr=it,Er=window;if(Ct){var Nr=Qr(s),ri="clientHeight",Kr="clientWidth";Nr===jn(s)&&"static"!==ir(Nr=qe(s)).position&&"absolute"===Je&&(ri="scrollHeight",Kr="scrollWidth"),(M===it||(M===at||M===wt)&&le===qt)&&(tr=Xe,wn-=(zt&&Nr===Er&&Er.visualViewport?Er.visualViewport.height:Nr[ri])-f.height,wn*=lt?1:-1),M!==at&&(M!==it&&M!==Xe||le!==qt)||(ci=wt,Jt-=(zt&&Nr===Er&&Er.visualViewport?Er.visualViewport.width:Nr[Kr])-f.width,Jt*=lt?1:-1)}var Eo,co=Object.assign({position:Je},Ct&&Kt),vs=!0===It?function pn(l,O){var f=l.y,M=O.devicePixelRatio||1;return{x:Ye(l.x*M)/M||0,y:Ye(f*M)/M||0}}({x:Jt,y:wn},jn(s)):{x:Jt,y:wn};return Jt=vs.x,wn=vs.y,Object.assign({},co,lt?((Eo={})[tr]=rr?"0":"",Eo[ci]=vr?"0":"",Eo.transform=(Er.devicePixelRatio||1)<=1?"translate("+Jt+"px, "+wn+"px)":"translate3d("+Jt+"px, "+wn+"px, 0)",Eo):((O={})[tr]=rr?wn+"px":"",O[ci]=vr?Jt+"px":"",O.transform="",O))}var Pi=X({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function ke(l){var O=l.state,s=l.instance,f=l.options,M=f.scroll,le=void 0===M||M,Te=f.resize,Je=void 0===Te||Te,lt=jn(O.elements.popper),Ct=[].concat(O.scrollParents.reference,O.scrollParents.popper);return le&&Ct.forEach(function(It){It.addEventListener("scroll",s.update,Ce)}),Je&&lt.addEventListener("resize",s.update,Ce),function(){le&&Ct.forEach(function(It){It.removeEventListener("scroll",s.update,Ce)}),Je&&lt.removeEventListener("resize",s.update,Ce)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function At(l){var O=l.state;O.modifiersData[l.name]=$n({reference:O.rects.reference,element:O.rects.popper,strategy:"absolute",placement:O.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function Qn(l){var O=l.state,s=l.options,f=s.gpuAcceleration,M=void 0===f||f,le=s.adaptive,Te=void 0===le||le,Je=s.roundOffsets,lt=void 0===Je||Je,Ct={placement:ct(O.placement),variation:wr(O.placement),popper:O.elements.popper,popperRect:O.rects.popper,gpuAcceleration:M,isFixed:"fixed"===O.options.strategy};null!=O.modifiersData.popperOffsets&&(O.styles.popper=Object.assign({},O.styles.popper,An(Object.assign({},Ct,{offsets:O.modifiersData.popperOffsets,position:O.options.strategy,adaptive:Te,roundOffsets:lt})))),null!=O.modifiersData.arrow&&(O.styles.arrow=Object.assign({},O.styles.arrow,An(Object.assign({},Ct,{offsets:O.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:lt})))),O.attributes.popper=Object.assign({},O.attributes.popper,{"data-popper-placement":O.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function Dr(l){var O=l.state;Object.keys(O.elements).forEach(function(s){var f=O.styles[s]||{},M=O.attributes[s]||{},le=O.elements[s];!Rr(le)||!Pn(le)||(Object.assign(le.style,f),Object.keys(M).forEach(function(Te){var Je=M[Te];!1===Je?le.removeAttribute(Te):le.setAttribute(Te,!0===Je?"":Je)}))})},effect:function hi(l){var O=l.state,s={popper:{position:O.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(O.elements.popper.style,s.popper),O.styles=s,O.elements.arrow&&Object.assign(O.elements.arrow.style,s.arrow),function(){Object.keys(O.elements).forEach(function(f){var M=O.elements[f],le=O.attributes[f]||{},Je=Object.keys(O.styles.hasOwnProperty(f)?O.styles[f]:s[f]).reduce(function(lt,Ct){return lt[Ct]="",lt},{});!Rr(M)||!Pn(M)||(Object.assign(M.style,Je),Object.keys(le).forEach(function(lt){M.removeAttribute(lt)}))})}},requires:["computeStyles"]}]});const Xr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function fi(l){var O=l.state,f=l.name,M=l.options.offset,le=void 0===M?[0,0]:M,Te=Ln.reduce(function(It,zt){return It[zt]=function zr(l,O,s){var f=ct(l),M=[at,it].indexOf(f)>=0?-1:1,le="function"==typeof s?s(Object.assign({},O,{placement:l})):s,Te=le[0],Je=le[1];return Te=Te||0,Je=(Je||0)*M,[at,wt].indexOf(f)>=0?{x:Je,y:Te}:{x:Te,y:Je}}(zt,O.rects,le),It},{}),Je=Te[O.placement],Ct=Je.y;null!=O.modifiersData.popperOffsets&&(O.modifiersData.popperOffsets.x+=Je.x,O.modifiersData.popperOffsets.y+=Ct),O.modifiersData[f]=Te}},si=["*"],Lo=l=>({$implicit:l}),Ho=["dialog"],wi=["ngbNavOutlet",""];function Uo(l,O){}function Di(l,O){if(1&l&&(r.j41(0,"div",0),r.DNE(1,Uo,0,0,"ng-template",1),r.k0s()),2&l){const s=r.XpG().$implicit,f=r.XpG();r.Y8G("item",s)("nav",f.nav)("role",f.paneRole),r.R7$(),r.Y8G("ngTemplateOutlet",(null==s.contentTpl?null:s.contentTpl.templateRef)||null)("ngTemplateOutletContext",r.eq3(5,Lo,s.active||f.isPanelTransitioning(s)))}}function Ui(l,O){if(1&l&&r.DNE(0,Di,2,7,"div",0),2&l){const s=O.$implicit,f=r.XpG();r.vxM(0,s.isPanelInDom()||f.isPanelTransitioning(s)?0:-1)}}const xi={animation:!0,transitionTimerDelayMs:5};let Go=(()=>{class l{constructor(){this.animation=xi.animation}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275prov=r.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Ts=(()=>{class l{constructor(){this._ngbConfig=(0,r.WQX)(Go),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275prov=r.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();function Es(l){return"string"==typeof l}function Fi(l){return"number"==typeof l&&isFinite(l)&&Math.floor(l)===l}function yo(l){return null!=l}function _o(l){return(l||document.body).getBoundingClientRect()}function L(l=document){const O=l?.activeElement;return O?O.shadowRoot?L(O.shadowRoot):O:null}const ye=()=>{},{transitionTimerDelayMs:J}=xi,fe=new Map,Ve=(l,O,s,f)=>{let M=f.context||{};const le=fe.get(O);if(le)switch(f.runningTransition){case"continue":return S.w;case"stop":l.run(()=>le.transition$.complete()),M=Object.assign(le.context,M),fe.delete(O)}const Te=s(O,f.animation,M)||ye;if(!f.animation||"none"===window.getComputedStyle(O).transitionProperty)return l.run(()=>Te()),(0,I.of)(void 0).pipe(function Ja(l){return O=>new g.c(s=>O.subscribe({next:Te=>l.run(()=>s.next(Te)),error:Te=>l.run(()=>s.error(Te)),complete:()=>l.run(()=>s.complete())}))}(l));const Je=new B.B,lt=new B.B,Ct=Je.pipe(function Y(...l){return O=>(0,W.x)(O,(0,I.of)(...l))}(!0));fe.set(O,{transition$:Je,complete:()=>{lt.next(),lt.complete()},context:M});const It=function Gs(l){const{transitionDelay:O,transitionDuration:s}=window.getComputedStyle(l);return 1e3*(parseFloat(O)+parseFloat(s))}(O);return l.runOutsideAngular(()=>{const zt=(0,G.R)(O,"transitionend").pipe((0,R.Q)(Ct),(0,q.p)(({target:Jt})=>Jt===O));de((0,x.O)(It+J).pipe((0,R.Q)(Ct)),zt,lt).pipe((0,R.Q)(Ct)).subscribe(()=>{fe.delete(O),l.run(()=>{Te(),Je.next(),Je.complete()})})}),Je.asObservable()},sn=(l,O,s)=>{let{direction:f,maxSize:M,dimension:le}=s;const{classList:Te}=l;function Je(){Te.add("collapse"),"show"===f?Te.add("show"):Te.remove("show")}if(O)return M||(M=function Nt(l,O){if(typeof navigator>"u")return"0px";const{classList:s}=l,f=s.contains("show");f||s.add("show"),l.style[O]="";const M=l.getBoundingClientRect()[O]+"px";return f||s.remove("show"),M}(l,le),s.maxSize=M,l.style[le]="show"!==f?M:"0px",Te.remove("collapse"),Te.remove("collapsing"),Te.remove("show"),_o(l),Te.add("collapsing")),l.style[le]="show"===f?M:"0px",()=>{Je(),Te.remove("collapsing"),l.style[le]=""};Je()};let kr=(()=>{class l{constructor(){this._ngbConfig=(0,r.WQX)(Go),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275prov=r.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Tr=(()=>{class l{constructor(){this._config=(0,r.WQX)(kr),this._element=(0,r.WQX)(r.aKT),this._zone=(0,r.WQX)(r.SKi),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new r.bkB,this.horizontal=this._config.horizontal,this.shown=new r.bkB,this.hidden=new r.bkB}set collapsed(s){this._isCollapsed!==s&&(this._isCollapsed=s,this._afterInit&&this._runTransitionWithEvents(s,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(s=this._isCollapsed){this.collapsed=!s,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(s,f){return Ve(this._zone,this._element.nativeElement,sn,{animation:f,runningTransition:"stop",context:{direction:s?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(s,f){this._runTransition(s,f).subscribe(()=>{s?this.hidden.emit():this.shown.emit()})}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(f,M){2&f&&r.AVh("collapse-horizontal",M.horizontal)},inputs:{animation:"animation",collapsed:[r.Mj6.None,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],standalone:!0})}return l})(),Or=0,Un=(()=>{class l{constructor(){this._vcr=(0,r.WQX)(r.c1b),this._element=(0,r.WQX)(r.aKT).nativeElement,this._item=(0,r.WQX)(kt),this._viewRef=null}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef&&(this._viewRef.destroy(),this._viewRef=null)}_createViewIfNotExists(){if(!this._viewRef){this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges();for(const s of this._viewRef.rootNodes)this._element.appendChild(s)}}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["","ngbAccordionBody",""]],contentQueries:function(f,M,le){if(1&f&&r.wni(le,r.C4Q,7),2&f){let Te;r.mGM(Te=r.lsd())&&(M._bodyTpl=Te.first)}},hostVars:2,hostBindings:function(f,M){2&f&&r.AVh("accordion-body",!0)},standalone:!0})}return l})(),jr=(()=>{class l{constructor(){this.item=(0,r.WQX)(kt),this.ngbCollapse=(0,r.WQX)(Tr)}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region"],hostVars:4,hostBindings:function(f,M){2&f&&(r.Mr5("id",M.item.collapseId),r.BMQ("aria-labelledby",M.item.toggleId),r.AVh("accordion-collapse",!0))},exportAs:["ngbAccordionCollapse"],standalone:!0,features:[r.nM4([Tr])]})}return l})(),cr=(()=>{class l{constructor(){this.item=(0,r.WQX)(kt),this.accordion=(0,r.WQX)(dn)}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["","ngbAccordionToggle",""]],hostVars:5,hostBindings:function(f,M){1&f&&r.bIt("click",function(){return!M.item.disabled&&M.accordion.toggle(M.item.id)}),2&f&&(r.Mr5("id",M.item.toggleId),r.BMQ("aria-controls",M.item.collapseId)("aria-expanded",!M.item.collapsed),r.AVh("collapsed",M.item.collapsed))},standalone:!0})}return l})(),ti=(()=>{class l{constructor(){this.item=(0,r.WQX)(kt)}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["button","ngbAccordionButton",""]],hostAttrs:["type","button"],hostVars:3,hostBindings:function(f,M){2&f&&(r.Mr5("disabled",M.item.disabled),r.AVh("accordion-button",!0))},standalone:!0,features:[r.nM4([cr])]})}return l})(),sr=(()=>{class l{constructor(){this.item=(0,r.WQX)(kt)}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading"],hostVars:4,hostBindings:function(f,M){2&f&&r.AVh("accordion-header",!0)("collapsed",M.item.collapsed)},standalone:!0})}return l})(),kt=(()=>{class l{constructor(){this._accordion=(0,r.WQX)(dn),this._cd=(0,r.WQX)(r.gRc),this._destroyRef=(0,r.WQX)(r.abz),this._collapsed=!0,this._id="ngb-accordion-item-"+Or++,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new r.bkB,this.shown=new r.bkB,this.hide=new r.bkB,this.hidden=new r.bkB}set id(s){Es(s)&&""!==s&&(this._id=s)}set destroyOnHide(s){this._destroyOnHide=s}get destroyOnHide(){return void 0===this._destroyOnHide?this._accordion.destroyOnHide:this._destroyOnHide}set collapsed(s){s?this.collapse():this.expand()}get collapsed(){return this._collapsed}get id(){return`${this._id}`}get toggleId(){return`${this.id}-toggle`}get collapseId(){return`${this.id}-collapse`}get _shouldBeInDOM(){return!this.collapsed||this._collapseAnimationRunning||!this.destroyOnHide}ngAfterContentInit(){const{ngbCollapse:s}=this._collapse;s.animation=!1,s.collapsed=this.collapsed,s.animation=this._accordion.animation,s.hidden.pipe(V(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id)}),s.shown.pipe(V(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id)})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["","ngbAccordionItem",""]],contentQueries:function(f,M,le){if(1&f&&r.wni(le,jr,7),2&f){let Te;r.mGM(Te=r.lsd())&&(M._collapse=Te.first)}},hostVars:3,hostBindings:function(f,M){2&f&&(r.Mr5("id",M.id),r.AVh("accordion-item",!0))},inputs:{id:[r.Mj6.None,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"],standalone:!0})}return l})(),dn=(()=>{class l{constructor(){this._config=(0,r.WQX)(Ts),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new r.bkB,this.shown=new r.bkB,this.hide=new r.bkB,this.hidden=new r.bkB}toggle(s){this._getItem(s)?.toggle()}expand(s){this._getItem(s)?.expand()}expandAll(){this._items&&(this.closeOthers?this._items.find(s=>!s.collapsed)||this._items.first.expand():this._items.forEach(s=>s.expand()))}collapse(s){this._getItem(s)?.collapse()}collapseAll(){this._items?.forEach(s=>s.collapse())}isExpanded(s){const f=this._getItem(s);return!!f&&!f.collapsed}_ensureCanExpand(s){return!(this.closeOthers&&(this._items?(this._items.find(f=>!f.collapsed&&s!==f)?.collapse(),0):this._anItemWasAlreadyExpandedDuringInitialisation||(this._anItemWasAlreadyExpandedDuringInitialisation=!0,0)))}_getItem(s){return this._items?.find(f=>f.id===s)}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["","ngbAccordion",""]],contentQueries:function(f,M,le){if(1&f&&r.wni(le,kt,4),2&f){let Te;r.mGM(Te=r.lsd())&&(M._items=Te)}},hostVars:2,hostBindings:function(f,M){2&f&&r.AVh("accordion",!0)},inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0})}return l})(),yi=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({})}return l})(),Yn=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({})}return l})(),os=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({})}return l})(),bo=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({})}return l})(),Ma=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275prov=r.jDH({token:l,factory:()=>function td(){return new Bc}(),providedIn:"root"})}return l})(),Bc=(()=>{class l extends Ma{fromModel(s){return s&&Fi(s.year)&&Fi(s.month)&&Fi(s.day)?{year:s.year,month:s.month,day:s.day}:null}toModel(s){return s&&Fi(s.year)&&Fi(s.month)&&Fi(s.day)?{year:s.year,month:s.month,day:s.day}:null}static#e=this.\u0275fac=(()=>{let s;return function(M){return(s||(s=r.xGo(l)))(M||l)}})();static#t=this.\u0275prov=r.jDH({token:l,factory:l.\u0275fac})}return l})();var Wr=function(l){return l[l.Tab=9]="Tab",l[l.Enter=13]="Enter",l[l.Escape=27]="Escape",l[l.Space=32]="Space",l[l.PageUp=33]="PageUp",l[l.PageDown=34]="PageDown",l[l.End=35]="End",l[l.Home=36]="Home",l[l.ArrowLeft=37]="ArrowLeft",l[l.ArrowUp=38]="ArrowUp",l[l.ArrowRight=39]="ArrowRight",l[l.ArrowDown=40]="ArrowDown",l}(Wr||{});const j=(l,O)=>!!O&&O.some(s=>s.contains(l)),N=(l,O)=>!O||null!=function js(l,O){return!O||typeof l.closest>"u"?null:l.closest(O)}(l,O),$=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function Se(l,O,s,f,M,le,Te,Je){s&&l.runOutsideAngular((l=>$?()=>setTimeout(()=>l(),100):l)(()=>{const Ct=(0,G.R)(O,"keydown").pipe((0,R.Q)(M),(0,q.p)(Wt=>Wt.which===Wr.Escape),(0,Q.M)(Wt=>Wt.preventDefault())),It=(0,G.R)(O,"mousedown").pipe((0,be.T)(Wt=>{const Jt=Wt.target;return 2!==Wt.button&&!j(Jt,Te)&&("inside"===s?j(Jt,le)&&N(Jt,Je):"outside"===s?!j(Jt,le):N(Jt,Je)||!j(Jt,le))}),(0,R.Q)(M)),zt=(0,G.R)(O,"mouseup").pipe(Le(It),(0,q.p)(([Wt,Jt])=>Jt),function pe(l,O=_e.E){const s=(0,x.O)(l,O);return ge(()=>s)}(0),(0,R.Q)(M));de([Ct.pipe((0,be.T)(Wt=>0)),zt.pipe((0,be.T)(Wt=>1))]).subscribe(Wt=>l.run(()=>f(Wt)))}))}const $e=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function mt(l){const O=Array.from(l.querySelectorAll($e)).filter(s=>-1!==s.tabIndex);return[O[0],O[O.length-1]]}let Qt=(()=>{class l{constructor(){this._element=(0,r.WQX)(ut.qQ).documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275prov=r.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();const Rn=/\s+/,Gn=/  +/gi,Ei={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},ma=/^left/,Ms=/^right/,il=/^start/,eo=/^end/;function Hc({placement:l,baseClass:O},s){let f=Array.isArray(l)?l:l.split(Rn),le=f.findIndex(Ct=>"auto"===Ct);le>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(Ct){null==f.find(It=>-1!==It.search("^"+Ct))&&f.splice(le++,1,Ct)});const Te=f.map(Ct=>function Ks(l,O){const[s,f]=Ei[l];return O&&f||s}(Ct,s.isRTL()));return{placement:Te.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!O,phase:"write",fn({state:Ct}){const It=new RegExp(O+"(-[a-z]+)*","gi"),zt=Ct.elements.popper,Wt=Ct.placement;let Jt=zt.className;Jt=Jt.replace(It,""),Jt+=` ${function id(l,O){let[s,f]=O.split("-");const M=s.replace(ma,"start").replace(Ms,"end");let le=[M];if(f){let Te=f;("left"===s||"right"===s)&&(Te=Te.replace(il,"top").replace(eo,"bottom")),le.push(`${M}-${Te}`)}return l&&(le=le.map(Te=>`${l}-${Te}`)),le.join(" ")}(O,Wt)}`,Jt=Jt.trim().replace(Gn," "),zt.className=Jt}},Be,Rt,rn,{enabled:!0,name:"flip",options:{fallbackPlacements:Te}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function Uc(l){return l}function Vc(){const l=(0,r.WQX)(Qt);let O=null;return{createPopper(s){if(!O){let M=(s.updatePopperOptions||Uc)(Hc(s,l));O=Pi(s.hostElement,s.targetElement,M)}},update(){O&&O.update()},setOptions(s){if(O){let M=(s.updatePopperOptions||Uc)(Hc(s,l));O.setOptions(M)}},destroy(){O&&(O.destroy(),O=null)}}}function lo(l){return O=>(O.modifiers.push(Xr,{name:"offset",options:{offset:()=>l}}),O)}new Date(1882,10,12),new Date(2174,10,25);let Nl=(()=>{class l extends Ma{fromModel(s){return s instanceof Date&&!isNaN(s.getTime())?this._fromNativeDate(s):null}toModel(s){return s&&Fi(s.year)&&Fi(s.month)&&Fi(s.day)?this._toNativeDate(s):null}_fromNativeDate(s){return{year:s.getFullYear(),month:s.getMonth()+1,day:s.getDate()}}_toNativeDate(s){const f=new Date(s.year,s.month-1,s.day,12);return f.setFullYear(s.year),f}static#e=this.\u0275fac=(()=>{let s;return function(M){return(s||(s=r.xGo(l)))(M||l)}})();static#t=this.\u0275prov=r.jDH({token:l,factory:l.\u0275fac})}return l})(),Rl=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({})}return l})(),Td=(()=>{class l{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=s=>s,this.container=null}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275prov=r.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),cl=(()=>{class l{constructor(){this._disabled=!1,this.nativeElement=(0,r.WQX)(r.aKT).nativeElement,this.tabindex=0}set disabled(s){this._disabled=""===s||!0===s}get disabled(){return this._disabled}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(f,M){2&f&&(r.Mr5("tabIndex",M.disabled?-1:M.tabindex),r.AVh("disabled",M.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"},standalone:!0})}return l})(),Ed=(()=>{class l{constructor(){this.item=(0,r.WQX)(cl)}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["button","ngbDropdownItem",""]],hostVars:1,hostBindings:function(f,M){2&f&&r.Mr5("disabled",M.item.disabled)},standalone:!0})}return l})(),Qs=(()=>{class l{constructor(){this.dropdown=(0,r.WQX)(Pa),this.nativeElement=(0,r.WQX)(r.aKT).nativeElement}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(f,M,le){if(1&f&&r.wni(le,cl,4),2&f){let Te;r.mGM(Te=r.lsd())&&(M.menuItems=Te)}},hostVars:4,hostBindings:function(f,M){1&f&&r.bIt("keydown.ArrowUp",function(Te){return M.dropdown.onKeyDown(Te)})("keydown.ArrowDown",function(Te){return M.dropdown.onKeyDown(Te)})("keydown.Home",function(Te){return M.dropdown.onKeyDown(Te)})("keydown.End",function(Te){return M.dropdown.onKeyDown(Te)})("keydown.Enter",function(Te){return M.dropdown.onKeyDown(Te)})("keydown.Space",function(Te){return M.dropdown.onKeyDown(Te)})("keydown.Tab",function(Te){return M.dropdown.onKeyDown(Te)})("keydown.Shift.Tab",function(Te){return M.dropdown.onKeyDown(Te)}),2&f&&r.AVh("dropdown-menu",!0)("show",M.dropdown.isOpen())},standalone:!0})}return l})(),Ys=(()=>{class l{constructor(){this.dropdown=(0,r.WQX)(Pa),this.nativeElement=(0,r.WQX)(r.aKT).nativeElement}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(f,M){2&f&&(r.BMQ("aria-expanded",M.dropdown.isOpen()),r.AVh("show",M.dropdown.isOpen()))},standalone:!0})}return l})(),Sd=(()=>{class l extends Ys{static#e=this.\u0275fac=(()=>{let s;return function(M){return(s||(s=r.xGo(l)))(M||l)}})();static#t=this.\u0275dir=r.FsC({type:l,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(f,M){1&f&&r.bIt("click",function(){return M.dropdown.toggle()})("keydown.ArrowUp",function(Te){return M.dropdown.onKeyDown(Te)})("keydown.ArrowDown",function(Te){return M.dropdown.onKeyDown(Te)})("keydown.Home",function(Te){return M.dropdown.onKeyDown(Te)})("keydown.End",function(Te){return M.dropdown.onKeyDown(Te)})("keydown.Tab",function(Te){return M.dropdown.onKeyDown(Te)})("keydown.Shift.Tab",function(Te){return M.dropdown.onKeyDown(Te)}),2&f&&(r.BMQ("aria-expanded",M.dropdown.isOpen()),r.AVh("show",M.dropdown.isOpen()))},standalone:!0,features:[r.Jv_([{provide:Ys,useExisting:(0,r.Rfq)(()=>l)}]),r.Vt3]})}return l})(),Pa=(()=>{class l{constructor(){this._changeDetector=(0,r.WQX)(r.gRc),this._config=(0,r.WQX)(Td),this._document=(0,r.WQX)(ut.qQ),this._ngZone=(0,r.WQX)(r.SKi),this._nativeElement=(0,r.WQX)(r.aKT).nativeElement,this._destroyCloseHandlers$=new B.B,this._bodyContainer=null,this._positioning=Vc(),this.autoClose=this._config.autoClose,this._open=!1,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.openChange=new r.bkB}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){this._ngZone.onStable.pipe((0,ee.s)(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(s){if(s.container&&this._open&&this._applyContainer(this.container),s.placement&&!s.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container}),this._applyPlacementClasses()),s.dropdownClass){const{currentValue:f,previousValue:M}=s.dropdownClass;this._applyCustomDropdownClass(f,M)}s.autoClose&&this._open&&(this.autoClose=s.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),"dynamic"===this.display&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:s=>this.popperOptions(lo([0,2])(s))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),Se(this._ngZone,this._document,this.autoClose,s=>{this.close(),0===s&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(s){const f=s.which,M=this._getMenuElements();let le=-1,Te=null;const Je=this._isEventFromToggle(s);if(!Je&&M.length&&M.forEach((lt,Ct)=>{lt.contains(s.target)&&(Te=lt),lt===L(this._document)&&(le=Ct)}),f!==Wr.Space&&f!==Wr.Enter){if(f!==Wr.Tab){if(Je||Te){if(this.open(),M.length){switch(f){case Wr.ArrowDown:le=Math.min(le+1,M.length-1);break;case Wr.ArrowUp:if(this._isDropup()&&-1===le){le=M.length-1;break}le=Math.max(le-1,0);break;case Wr.Home:le=0;break;case Wr.End:le=M.length-1}M[le].focus()}s.preventDefault()}}else if(s.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===s.target)return void("body"!==this.container||s.shiftKey?s.shiftKey&&this.close():(this._menu.nativeElement.setAttribute("tabindex","0"),this._menu.nativeElement.focus(),this._menu.nativeElement.removeAttribute("tabindex")));if("body"===this.container){const lt=this._menu.nativeElement.querySelectorAll($e);s.shiftKey&&s.target===lt[0]?(this._anchor.nativeElement.focus(),s.preventDefault()):!s.shiftKey&&s.target===lt[lt.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else(0,G.R)(s.target,"focusout").pipe((0,ee.s)(1)).subscribe(({relatedTarget:lt})=>{this._nativeElement.contains(lt)||this.close()})}}else Te&&(!0===this.autoClose||"inside"===this.autoClose)&&(0,G.R)(Te,"click").pipe((0,ee.s)(1)).subscribe(()=>this.close())}_isDropup(){return this._nativeElement.classList.contains("dropup")}_isEventFromToggle(s){return this._anchor.nativeElement.contains(s.target)}_getMenuElements(){return this._menu?this._menu.menuItems.filter(({disabled:s})=>!s).map(({nativeElement:s})=>s):[]}_positionMenu(){const s=this._menu;this.isOpen()&&s&&("dynamic"===this.display?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(s){return Array.isArray(s)?s[0]:s.split(" ")[0]}_resetContainer(){this._menu&&this._nativeElement.appendChild(this._menu.nativeElement),this._bodyContainer&&(this._document.body.removeChild(this._bodyContainer),this._bodyContainer=null)}_applyContainer(s=null){if(this._resetContainer(),"body"===s){const f=this._menu.nativeElement,M=this._bodyContainer=this._bodyContainer||this._document.createElement("div");M.style.position="absolute",f.style.position="static",M.style.zIndex="1055",M.appendChild(f),this._document.body.appendChild(M)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(s,f){const M="body"===this.container?this._bodyContainer:this._nativeElement;M&&(f&&M.classList.remove(f),s&&M.classList.add(s))}_applyPlacementClasses(s){if(this._menu){s||(s=this._getFirstPlacement(this.placement)),this._nativeElement.classList.remove("dropup","dropdown"),"static"===this.display?this._menu.nativeElement.setAttribute("data-bs-popper","static"):this._menu.nativeElement.removeAttribute("data-bs-popper");const f=-1!==s.search("^top")?"dropup":"dropdown";this._nativeElement.classList.add(f),this._bodyContainer&&(this._bodyContainer.classList.remove("dropup","dropdown"),this._bodyContainer.classList.add(f))}}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["","ngbDropdown",""]],contentQueries:function(f,M,le){if(1&f&&(r.wni(le,Qs,5),r.wni(le,Ys,5)),2&f){let Te;r.mGM(Te=r.lsd())&&(M._menu=Te.first),r.mGM(Te=r.lsd())&&(M._anchor=Te.first)}},hostVars:2,hostBindings:function(f,M){2&f&&r.AVh("show",M.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:[r.Mj6.None,"open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[r.OA$]})}return l})(),Ad=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({})}return l})(),Df=(()=>{class l{constructor(){this._ngbConfig=(0,r.WQX)(Go),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275prov=r.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();class ka{constructor(O,s,f){this.nodes=O,this.viewRef=s,this.componentRef=f}}class pm{constructor(O){this._componentType=O,this._windowRef=null,this._contentRef=null,this._document=(0,r.WQX)(ut.qQ),this._applicationRef=(0,r.WQX)(r.o8S),this._injector=(0,r.WQX)(r.zZn),this._viewContainerRef=(0,r.WQX)(r.c1b),this._ngZone=(0,r.WQX)(r.SKi)}open(O,s,f=!1){this._windowRef||(this._contentRef=this._getContentRef(O,s),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:M}=this._windowRef.location,le=this._ngZone.onStable.pipe((0,ee.s)(1),(0,oe.Z)(()=>Ve(this._ngZone,M,({classList:Te})=>Te.add("show"),{animation:f,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:le}}close(O=!1){return this._windowRef?Ve(this._ngZone,this._windowRef.location.nativeElement,({classList:s})=>s.remove("show"),{animation:O,runningTransition:"stop"}).pipe((0,Q.M)(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):(0,I.of)(void 0)}_getContentRef(O,s){if(O){if(O instanceof r.C4Q){const f=O.createEmbeddedView(s);return this._applicationRef.attachView(f),new ka([f.rootNodes],f)}return new ka([[this._document.createTextNode(`${O}`)]])}return new ka([])}}let Qc=(()=>{class l{constructor(){this._document=(0,r.WQX)(ut.qQ)}hide(){const s=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),f=this._document.body,M=f.style,{overflow:le,paddingRight:Te}=M;if(s>0){const Je=parseFloat(window.getComputedStyle(f).paddingRight);M.paddingRight=`${Je+s}px`}return M.overflow="hidden",()=>{s>0&&(M.paddingRight=Te),M.overflow=le}}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275prov=r.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),ul=(()=>{class l{constructor(){this._nativeElement=(0,r.WQX)(r.aKT).nativeElement,this._zone=(0,r.WQX)(r.SKi)}ngOnInit(){this._zone.onStable.asObservable().pipe((0,ee.s)(1)).subscribe(()=>{Ve(this._zone,this._nativeElement,(s,f)=>{f&&_o(s),s.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Ve(this._zone,this._nativeElement,({classList:s})=>s.remove("show"),{animation:this.animation,runningTransition:"stop"})}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275cmp=r.VBU({type:l,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(f,M){2&f&&(r.HbH("modal-backdrop"+(M.backdropClass?" "+M.backdropClass:"")),r.AVh("show",!M.animation)("fade",M.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[r.aNF],decls:0,vars:0,template:function(f,M){},encapsulation:2})}return l})();class Yc{update(O){}close(O){}dismiss(O){}}const dl=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],Jc=["animation","backdropClass"];class Pl{_applyWindowOptions(O,s){dl.forEach(f=>{yo(s[f])&&(O[f]=s[f])})}_applyBackdropOptions(O,s){Jc.forEach(f=>{yo(s[f])&&(O[f]=s[f])})}update(O){this._applyWindowOptions(this._windowCmptRef.instance,O),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,O)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,R.Q)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,R.Q)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(O,s,f,M){this._windowCmptRef=O,this._contentRef=s,this._backdropCmptRef=f,this._beforeDismiss=M,this._closed=new B.B,this._dismissed=new B.B,this._hidden=new B.B,O.instance.dismissEvent.subscribe(le=>{this.dismiss(le)}),this.result=new Promise((le,Te)=>{this._resolve=le,this._reject=Te}),this.result.then(null,()=>{})}close(O){this._windowCmptRef&&(this._closed.next(O),this._resolve(O),this._removeModalElements())}_dismiss(O){this._dismissed.next(O),this._reject(O),this._removeModalElements()}dismiss(O){if(this._windowCmptRef)if(this._beforeDismiss){const s=this._beforeDismiss();!function Qa(l){return l&&l.then}(s)?!1!==s&&this._dismiss(O):s.then(f=>{!1!==f&&this._dismiss(O)},()=>{})}else this._dismiss(O)}_removeModalElements(){const O=this._windowCmptRef.instance.hide(),s=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,I.of)(void 0);O.subscribe(()=>{const{nativeElement:f}=this._windowCmptRef.location;f.parentNode.removeChild(f),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),s.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:f}=this._backdropCmptRef.location;f.parentNode.removeChild(f),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),z(O,s).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var wd=function(l){return l[l.BACKDROP_CLICK=0]="BACKDROP_CLICK",l[l.ESC=1]="ESC",l}(wd||{});let Dd=(()=>{class l{constructor(){this._document=(0,r.WQX)(ut.qQ),this._elRef=(0,r.WQX)(r.aKT),this._zone=(0,r.WQX)(r.SKi),this._closed$=new B.B,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new r.bkB,this.shown=new B.B,this.hidden=new B.B}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":Es(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(s){this.dismissEvent.emit(s)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,ee.s)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:s}=this._elRef,f={animation:this.animation,runningTransition:"stop"},Te=z(Ve(this._zone,s,()=>s.classList.remove("show"),f),Ve(this._zone,this._dialogEl.nativeElement,()=>{},f));return Te.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),Te}_show(){const s={animation:this.animation,runningTransition:"continue"};z(Ve(this._zone,this._elRef.nativeElement,(le,Te)=>{Te&&_o(le),le.classList.add("show")},s),Ve(this._zone,this._dialogEl.nativeElement,()=>{},s)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:s}=this._elRef;this._zone.runOutsideAngular(()=>{(0,G.R)(s,"keydown").pipe((0,R.Q)(this._closed$),(0,q.p)(M=>M.which===Wr.Escape)).subscribe(M=>{this.keyboard?requestAnimationFrame(()=>{M.defaultPrevented||this._zone.run(()=>this.dismiss(wd.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let f=!1;(0,G.R)(this._dialogEl.nativeElement,"mousedown").pipe((0,R.Q)(this._closed$),(0,Q.M)(()=>f=!1),(0,Ae.n)(()=>(0,G.R)(s,"mouseup").pipe((0,R.Q)(this._closed$),(0,ee.s)(1))),(0,q.p)(({target:M})=>s===M)).subscribe(()=>{f=!0}),(0,G.R)(s,"click").pipe((0,R.Q)(this._closed$)).subscribe(({target:M})=>{s===M&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!f&&this._zone.run(()=>this.dismiss(wd.BACKDROP_CLICK))),f=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:s}=this._elRef;if(!s.contains(document.activeElement)){const f=s.querySelector("[ngbAutofocus]"),M=mt(s)[0];(f||M||s).focus()}}_restoreFocus(){const s=this._document.body,f=this._elWithFocus;let M;M=f&&f.focus&&s.contains(f)?f:s,this._zone.runOutsideAngular(()=>{setTimeout(()=>M.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Ve(this._zone,this._elRef.nativeElement,({classList:s})=>(s.add("modal-static"),()=>s.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275cmp=r.VBU({type:l,selectors:[["ngb-modal-window"]],viewQuery:function(f,M){if(1&f&&r.GBs(Ho,7),2&f){let le;r.mGM(le=r.lsd())&&(M._dialogEl=le.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(f,M){2&f&&(r.BMQ("aria-modal",!0)("aria-labelledby",M.ariaLabelledBy)("aria-describedby",M.ariaDescribedBy),r.HbH("modal d-block"+(M.windowClass?" "+M.windowClass:"")),r.AVh("fade",M.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[r.aNF],ngContentSelectors:si,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(f,M){1&f&&(r.NAR(),r.j41(0,"div",1,0)(2,"div",2),r.SdG(3),r.k0s()()),2&f&&r.HbH("modal-dialog"+(M.size?" modal-"+M.size:"")+(M.centered?" modal-dialog-centered":"")+M.fullscreenClass+(M.scrollable?" modal-dialog-scrollable":"")+(M.modalDialogClass?" "+M.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}return l})(),Id=(()=>{class l{constructor(){this._applicationRef=(0,r.WQX)(r.o8S),this._injector=(0,r.WQX)(r.zZn),this._environmentInjector=(0,r.WQX)(r.uvJ),this._document=(0,r.WQX)(ut.qQ),this._scrollBar=(0,r.WQX)(Qc),this._activeWindowCmptHasChanged=new B.B,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new r.bkB;const s=(0,r.WQX)(r.SKi);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const f=this._windowCmpts[this._windowCmpts.length-1];((l,O,s,f=!1)=>{l.runOutsideAngular(()=>{const M=(0,G.R)(O,"focusin").pipe((0,R.Q)(s),(0,be.T)(le=>le.target));(0,G.R)(O,"keydown").pipe((0,R.Q)(s),(0,q.p)(le=>le.which===Wr.Tab),Le(M)).subscribe(([le,Te])=>{const[Je,lt]=mt(O);(Te===Je||Te===O)&&le.shiftKey&&(lt.focus(),le.preventDefault()),Te===lt&&!le.shiftKey&&(Je.focus(),le.preventDefault())}),f&&(0,G.R)(O,"click").pipe((0,R.Q)(s),Le(M),(0,be.T)(le=>le[1])).subscribe(le=>le.focus())})})(s,f.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(f.location.nativeElement)}})}_restoreScrollBar(){const s=this._scrollBarRestoreFn;s&&(this._scrollBarRestoreFn=null,s())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(s,f,M){const le=M.container instanceof HTMLElement?M.container:yo(M.container)?this._document.querySelector(M.container):this._document.body;if(!le)throw new Error(`The specified modal container "${M.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const Te=new Yc,Je=(s=M.injector||s).get(r.uvJ,null)||this._environmentInjector,lt=this._getContentRef(s,Je,f,Te,M);let Ct=!1!==M.backdrop?this._attachBackdrop(le):void 0,It=this._attachWindowComponent(le,lt.nodes),zt=new Pl(It,lt,Ct,M.beforeDismiss);return this._registerModalRef(zt),this._registerWindowCmpt(It),zt.hidden.pipe((0,ee.s)(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),Te.close=Wt=>{zt.close(Wt)},Te.dismiss=Wt=>{zt.dismiss(Wt)},Te.update=Wt=>{zt.update(Wt)},zt.update(M),1===this._modalRefs.length&&this._document.body.classList.add("modal-open"),Ct&&Ct.instance&&Ct.changeDetectorRef.detectChanges(),It.changeDetectorRef.detectChanges(),zt}get activeInstances(){return this._activeInstances}dismissAll(s){this._modalRefs.forEach(f=>f.dismiss(s))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(s){let f=(0,r.a0P)(ul,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(f.hostView),s.appendChild(f.location.nativeElement),f}_attachWindowComponent(s,f){let M=(0,r.a0P)(Dd,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:f});return this._applicationRef.attachView(M.hostView),s.appendChild(M.location.nativeElement),M}_getContentRef(s,f,M,le,Te){return M?M instanceof r.C4Q?this._createFromTemplateRef(M,le):Es(M)?this._createFromString(M):this._createFromComponent(s,f,M,le,Te):new ka([])}_createFromTemplateRef(s,f){const le=s.createEmbeddedView({$implicit:f,close(Te){f.close(Te)},dismiss(Te){f.dismiss(Te)}});return this._applicationRef.attachView(le),new ka([le.rootNodes],le)}_createFromString(s){const f=this._document.createTextNode(`${s}`);return new ka([[f]])}_createFromComponent(s,f,M,le,Te){const Je=r.zZn.create({providers:[{provide:Yc,useValue:le}],parent:s}),lt=(0,r.a0P)(M,{environmentInjector:f,elementInjector:Je}),Ct=lt.location.nativeElement;return Te.scrollable&&Ct.classList.add("component-host-scrollable"),this._applicationRef.attachView(lt.hostView),new ka([[Ct]],lt.hostView,lt)}_setAriaHidden(s){const f=s.parentElement;f&&s!==this._document.body&&(Array.from(f.children).forEach(M=>{M!==s&&"SCRIPT"!==M.nodeName&&(this._ariaHiddenValues.set(M,M.getAttribute("aria-hidden")),M.setAttribute("aria-hidden","true"))}),this._setAriaHidden(f))}_revertAriaHidden(){this._ariaHiddenValues.forEach((s,f)=>{s?f.setAttribute("aria-hidden",s):f.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(s){const f=()=>{const M=this._modalRefs.indexOf(s);M>-1&&(this._modalRefs.splice(M,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(s),this._activeInstances.emit(this._modalRefs),s.result.then(f,f)}_registerWindowCmpt(s){this._windowCmpts.push(s),this._activeWindowCmptHasChanged.next(),s.onDestroy(()=>{const f=this._windowCmpts.indexOf(s);f>-1&&(this._windowCmpts.splice(f,1),this._activeWindowCmptHasChanged.next())})}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275prov=r.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Md=(()=>{class l{constructor(){this._injector=(0,r.WQX)(r.zZn),this._modalStack=(0,r.WQX)(Id),this._config=(0,r.WQX)(Df)}open(s,f={}){const M={...this._config,animation:this._config.animation,...f};return this._modalStack.open(this._injector,s,M)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(s){this._modalStack.dismissAll(s)}hasOpenModals(){return this._modalStack.hasOpenModals()}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275prov=r.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),ms=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({providers:[Md]})}return l})(),If=(()=>{class l{constructor(){this._ngbConfig=(0,r.WQX)(Go),this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275prov=r.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();const hl=l=>yo(l)&&""!==l;let Zc=0,kl=(()=>{class l{constructor(){this.templateRef=(0,r.WQX)(r.C4Q)}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["ng-template","ngbNavContent",""]],standalone:!0})}return l})(),xa=(()=>{class l{constructor(){this._nav=(0,r.WQX)(fl),this._nativeElement=(0,r.WQX)(r.aKT).nativeElement,this.disabled=!1,this.shown=new r.bkB,this.hidden=new r.bkB}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){yo(this.domId)||(this.domId="ngb-nav-"+Zc++)}get active(){return this._nav.activeId===this.id}get id(){return hl(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(yo(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}isNgContainer(){return this._nativeElement.nodeType===Node.COMMENT_NODE}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["","ngbNavItem",""]],contentQueries:function(f,M,le){if(1&f&&r.wni(le,kl,4),2&f){let Te;r.mGM(Te=r.lsd())&&(M.contentTpls=Te)}},hostVars:2,hostBindings:function(f,M){2&f&&r.AVh("nav-item",!0)},inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:[r.Mj6.None,"ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"],standalone:!0})}return l})(),fl=(()=>{class l{constructor(s){this.role=s,this._config=(0,r.WQX)(If),this._cd=(0,r.WQX)(r.gRc),this._document=(0,r.WQX)(ut.qQ),this._nativeElement=(0,r.WQX)(r.aKT).nativeElement,this.destroyRef=(0,r.WQX)(r.abz),this._navigatingWithKeyboard=!1,this.activeIdChange=new r.bkB,this.animation=this._config.animation,this.destroyOnHide=this._config.destroyOnHide,this.orientation=this._config.orientation,this.roles=this._config.roles,this.keyboard=this._config.keyboard,this.shown=new r.bkB,this.hidden=new r.bkB,this.navItemChange$=new B.B,this.navChange=new r.bkB}click(s){s.disabled||this._updateActiveId(s.id)}onFocusout({relatedTarget:s}){this._nativeElement.contains(s)||(this._navigatingWithKeyboard=!1)}onKeyDown(s){if("tablist"!==this.roles||!this.keyboard)return;const f=s.which,M=this.links.filter(Je=>!Je.navItem.disabled),{length:le}=M;let Te=-1;if(M.forEach((Je,lt)=>{Je.nativeElement===this._document.activeElement&&(Te=lt)}),le){switch(f){case Wr.ArrowUp:case Wr.ArrowLeft:Te=(Te-1+le)%le;break;case Wr.ArrowRight:case Wr.ArrowDown:Te=(Te+1)%le;break;case Wr.Home:Te=0;break;case Wr.End:Te=le-1}"changeWithArrows"===this.keyboard&&this.select(M[Te].navItem.id),M[Te].nativeElement.focus(),this._navigatingWithKeyboard=!0,s.preventDefault()}}select(s){this._updateActiveId(s,!1)}ngAfterContentInit(){if(!yo(this.activeId)){const s=this.items.first?this.items.first.id:null;hl(s)&&(this._updateActiveId(s,!1),this._cd.detectChanges())}this.items.changes.pipe(V(this.destroyRef)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:s}){s&&!s.firstChange&&this._notifyItemChanged(s.currentValue)}_updateActiveId(s,f=!0){if(this.activeId!==s){let M=!1;f&&this.navChange.emit({activeId:this.activeId,nextId:s,preventDefault:()=>{M=!0}}),M||(this.activeId=s,this.activeIdChange.emit(s),this._notifyItemChanged(s))}}_notifyItemChanged(s){this.navItemChange$.next(this._getItemById(s))}_getItemById(s){return this.items&&this.items.find(f=>f.id===s)||null}static#e=this.\u0275fac=function(f){return new(f||l)(r.kS0("role"))};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["","ngbNav",""]],contentQueries:function(f,M,le){if(1&f&&(r.wni(le,xa,4),r.wni(le,Fa,5)),2&f){let Te;r.mGM(Te=r.lsd())&&(M.items=Te),r.mGM(Te=r.lsd())&&(M.links=Te)}},hostVars:6,hostBindings:function(f,M){1&f&&r.bIt("keydown.arrowLeft",function(Te){return M.onKeyDown(Te)})("keydown.arrowRight",function(Te){return M.onKeyDown(Te)})("keydown.arrowDown",function(Te){return M.onKeyDown(Te)})("keydown.arrowUp",function(Te){return M.onKeyDown(Te)})("keydown.Home",function(Te){return M.onKeyDown(Te)})("keydown.End",function(Te){return M.onKeyDown(Te)})("focusout",function(Te){return M.onFocusout(Te)}),2&f&&(r.BMQ("aria-orientation","vertical"===M.orientation&&"tablist"===M.roles?"vertical":void 0)("role",M.role?M.role:M.roles?"tablist":void 0),r.AVh("nav",!0)("flex-column","vertical"===M.orientation))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],standalone:!0,features:[r.OA$]})}return l})(),Fa=(()=>{class l{constructor(s){this.role=s,this.navItem=(0,r.WQX)(xa),this.nav=(0,r.WQX)(fl),this.nativeElement=(0,r.WQX)(r.aKT).nativeElement}get tabindex(){return!1===this.nav.keyboard?this.navItem.disabled?-1:void 0:this.nav._navigatingWithKeyboard||this.navItem.disabled||!this.navItem.active?-1:void 0}static#e=this.\u0275fac=function(f){return new(f||l)(r.kS0("role"))};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["","ngbNavLink",""]],hostVars:14,hostBindings:function(f,M){2&f&&(r.Mr5("id",M.navItem.domId),r.BMQ("role",M.role?M.role:M.nav.roles?"tab":void 0)("tabindex",M.tabindex)("aria-controls",M.navItem.isPanelInDom()?M.navItem.panelDomId:null)("aria-selected",M.navItem.active)("aria-disabled",M.navItem.disabled),r.AVh("nav-link",!0)("nav-item",M.navItem.isNgContainer())("active",M.navItem.active)("disabled",M.navItem.disabled))},standalone:!0})}return l})(),eu=(()=>{class l extends Fa{static#e=this.\u0275fac=(()=>{let s;return function(M){return(s||(s=r.xGo(l)))(M||l)}})();static#t=this.\u0275dir=r.FsC({type:l,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostBindings:function(f,M){1&f&&r.bIt("click",function(Te){return M.nav.click(M.navItem),Te.preventDefault()})},standalone:!0,features:[r.Vt3]})}return l})();const Nd=({classList:l})=>(l.remove("show"),()=>l.remove("active")),Mf=(l,O)=>{O&&_o(l),l.classList.add("show")};let La=(()=>{class l{constructor(){this.nativeElement=(0,r.WQX)(r.aKT).nativeElement}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(f,M){2&f&&(r.Mr5("id",M.item.panelDomId),r.BMQ("role",M.role?M.role:M.nav.roles?"tabpanel":void 0)("aria-labelledby",M.item.domId),r.AVh("fade",M.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"},standalone:!0})}return l})(),Js=(()=>{class l{constructor(){this._cd=(0,r.WQX)(r.gRc),this._ngZone=(0,r.WQX)(r.SKi),this._activePane=null}isPanelTransitioning(s){return this._activePane?.item===s}ngAfterViewInit(){this._updateActivePane(),this.nav.navItemChange$.pipe(V(this.nav.destroyRef),(0,Pe.Z)(this._activePane?.item||null),(0,We.F)(),function Ge(l){return(0,q.p)((O,s)=>l<=s)}(1)).subscribe(s=>{const f={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?Ve(this._ngZone,this._activePane.nativeElement,Nd,f).subscribe(()=>{const M=this._activePane?.item;this._activePane=this._getPaneForItem(s),this._cd.markForCheck(),this._activePane&&(this._activePane.nativeElement.classList.add("active"),Ve(this._ngZone,this._activePane.nativeElement,Mf,f).subscribe(()=>{s&&(s.shown.emit(),this.nav.shown.emit(s.id))})),M&&(M.hidden.emit(),this.nav.hidden.emit(M.id))}):this._updateActivePane()})}_updateActivePane(){this._activePane=this._getActivePane(),this._activePane?.nativeElement.classList.add("show"),this._activePane?.nativeElement.classList.add("active")}_getPaneForItem(s){return this._panes&&this._panes.find(f=>f.item===s)||null}_getActivePane(){return this._panes&&this._panes.find(s=>s.item.active)||null}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275cmp=r.VBU({type:l,selectors:[["","ngbNavOutlet",""]],viewQuery:function(f,M){if(1&f&&r.GBs(La,5),2&f){let le;r.mGM(le=r.lsd())&&(M._panes=le)}},hostVars:2,hostBindings:function(f,M){2&f&&r.AVh("tab-content",!0)},inputs:{paneRole:"paneRole",nav:[r.Mj6.None,"ngbNavOutlet","nav"]},standalone:!0,features:[r.aNF],attrs:wi,decls:2,vars:0,consts:[["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(f,M){1&f&&r.Z7z(0,Ui,1,1,null,null,r.fX1),2&f&&r.Dyx(M.nav.items)},dependencies:[La,ut.T3],encapsulation:2,changeDetection:0})}return l})(),Fl=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({})}return l})(),xd=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({})}return l})();const Fd={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};let iu=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({})}return l})(),Ld=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({})}return l})(),ou=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({})}return l})(),su=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({})}return l})(),Hd=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({})}return l})(),Gd=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({})}return l})(),jd=(()=>{class l{constructor(){this._ngbConfig=(0,r.WQX)(Go),this.autoClose=!0,this.placement="auto",this.popperOptions=s=>s,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return this._animation??this._ngbConfig.animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275prov=r.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),$d=0,Vl=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275cmp=r.VBU({type:l,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(f,M){2&f&&(r.Mr5("id",M.id),r.HbH("tooltip"+(M.tooltipClass?" "+M.tooltipClass:"")),r.AVh("fade",M.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[r.aNF],ngContentSelectors:si,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(f,M){1&f&&(r.NAR(),r.nrm(0,"div",0),r.j41(1,"div",1),r.SdG(2),r.k0s())},styles:["ngb-tooltip-window{pointer-events:none;position:absolute}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-top,ngb-tooltip-window.bs-tooltip-bottom{padding-left:0;padding-right:0}ngb-tooltip-window.bs-tooltip-start,ngb-tooltip-window.bs-tooltip-end{padding-top:0;padding-bottom:0}\n"],encapsulation:2,changeDetection:0})}return l})(),Gl=(()=>{class l{constructor(){this._config=(0,r.WQX)(jd),this.animation=this._config.animation,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.triggers=this._config.triggers,this.container=this._config.container,this.disableTooltip=this._config.disableTooltip,this.tooltipClass=this._config.tooltipClass,this.openDelay=this._config.openDelay,this.closeDelay=this._config.closeDelay,this.shown=new r.bkB,this.hidden=new r.bkB,this._nativeElement=(0,r.WQX)(r.aKT).nativeElement,this._ngZone=(0,r.WQX)(r.SKi),this._document=(0,r.WQX)(ut.qQ),this._changeDetector=(0,r.WQX)(r.gRc),this._ngbTooltipWindowId="ngb-tooltip-"+$d++,this._popupService=new pm(Vl),this._windowRef=null,this._positioning=Vc()}set ngbTooltip(s){this._ngbTooltip=s,!s&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(s){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:f,transition$:M}=this._popupService.open(this._ngbTooltip,s??this.tooltipContext,this.animation);this._windowRef=f,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._getPositionTargetElement().setAttribute("aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.body.appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip",updatePopperOptions:le=>this.popperOptions(lo([0,6])(le))}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),Se(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement],[this._nativeElement]),M.subscribe(()=>this.shown.emit())}}close(s=this.animation){null!=this._windowRef&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._popupService.close(s).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function Bl(l,O,s,f,M,le=0,Te=0){const Je=function ru(l){const O=(l||"").trim();if(0===O.length)return[];const s=O.split(/\s+/).map(M=>M.split(":")).map(M=>Fd[M[0]]||M),f=s.filter(M=>M.includes("manual"));if(f.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===f.length&&s.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return f.length?[]:s}(O);if(0===Je.length)return()=>{};const lt=new Set,Ct=[];let It;function zt(Jt,Xn){l.addEventListener(Jt,Xn),Ct.push(()=>l.removeEventListener(Jt,Xn))}function Wt(Jt,Xn){clearTimeout(It),Xn>0?It=setTimeout(Jt,Xn):Jt()}for(const[Jt,Xn]of Je)Xn?(zt(Jt,()=>{lt.add(Jt),Wt(()=>lt.size>0&&f(),le)}),zt(Xn,()=>{lt.delete(Jt),Wt(()=>0===lt.size&&M(),Te)})):zt(Jt,()=>s()?Wt(M,Te):Wt(f,le));return()=>Ct.forEach(Jt=>Jt())}(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:s}){s&&this.isOpen()&&this._windowRef.setInput("tooltipClass",s.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(Es(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275dir=r.FsC({type:l,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[r.OA$]})}return l})(),jl=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({})}return l})();new r.nKC("live announcer delay",{providedIn:"root",factory:()=>100});let au=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({})}return l})(),lu=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({})}return l})();const Uf=[yi,Yn,os,bo,Rl,Ad,ms,Fl,lu,xd,iu,Ld,ou,su,Hd,Gd,jl,au];let Xd=(()=>{class l{static#e=this.\u0275fac=function(f){return new(f||l)};static#t=this.\u0275mod=r.$C({type:l});static#n=this.\u0275inj=r.G2t({imports:[Uf,yi,Yn,os,bo,Rl,Ad,ms,Fl,lu,xd,iu,Ld,ou,su,Hd,Gd,jl,au]})}return l})()},9818:(Dt,ve,_)=>{"use strict";_.d(ve,{vr:()=>Tt,MQ:()=>Ft});var r=_(4438),g=_(4341),R=_(6977),V=_(3236),U=_(9974),H=_(8750),P=_(4360),C=_(1584);var I=_(9172),B=_(8141),G=_(152),x=_(5964),m=_(6354),k=_(6780),D=_(8359);const K={schedule(Be){let xe=requestAnimationFrame,Z=cancelAnimationFrame;const{delegate:Me}=K;Me&&(xe=Me.requestAnimationFrame,Z=Me.cancelAnimationFrame);const je=xe(pt=>{Z=void 0,Be(pt)});return new D.yU(()=>Z?.(je))},requestAnimationFrame(...Be){const{delegate:xe}=K;return(xe?.requestAnimationFrame||requestAnimationFrame)(...Be)},cancelAnimationFrame(...Be){const{delegate:xe}=K;return(xe?.cancelAnimationFrame||cancelAnimationFrame)(...Be)},delegate:void 0};var ie=_(9687);const se=new class te extends ie.q{flush(xe){this._active=!0;const Z=this._scheduled;this._scheduled=void 0;const{actions:Me}=this;let je;xe=xe||Me.shift();do{if(je=xe.execute(xe.state,xe.delay))break}while((xe=Me[0])&&xe.id===Z&&Me.shift());if(this._active=!1,je){for(;(xe=Me[0])&&xe.id===Z&&Me.shift();)xe.unsubscribe();throw je}}}(class de extends k.R{constructor(xe,Z){super(xe,Z),this.scheduler=xe,this.work=Z}requestAsyncId(xe,Z,Me=0){return null!==Me&&Me>0?super.requestAsyncId(xe,Z,Me):(xe.actions.push(this),xe._scheduled||(xe._scheduled=K.requestAnimationFrame(()=>xe.flush(void 0))))}recycleAsyncId(xe,Z,Me=0){var je;if(null!=Me?Me>0:this.delay>0)return super.recycleAsyncId(xe,Z,Me);const{actions:pt}=xe;null!=Z&&(null===(je=pt[pt.length-1])||void 0===je?void 0:je.id)!==Z&&(K.cancelAnimationFrame(Z),xe._scheduled=void 0)}});let Y,W=1;const q={};function ee(Be){return Be in q&&(delete q[Be],!0)}const Q={setImmediate(Be){const xe=W++;return q[xe]=!0,Y||(Y=Promise.resolve()),Y.then(()=>ee(xe)&&Be()),xe},clearImmediate(Be){ee(Be)}},{setImmediate:we,clearImmediate:Ze}=Q,Ue={setImmediate(...Be){const{delegate:xe}=Ue;return(xe?.setImmediate||we)(...Be)},clearImmediate(Be){const{delegate:xe}=Ue;return(xe?.clearImmediate||Ze)(Be)},delegate:void 0},Re=new class _e extends ie.q{flush(xe){this._active=!0;const Z=this._scheduled;this._scheduled=void 0;const{actions:Me}=this;let je;xe=xe||Me.shift();do{if(je=xe.execute(xe.state,xe.delay))break}while((xe=Me[0])&&xe.id===Z&&Me.shift());if(this._active=!1,je){for(;(xe=Me[0])&&xe.id===Z&&Me.shift();)xe.unsubscribe();throw je}}}(class Le extends k.R{constructor(xe,Z){super(xe,Z),this.scheduler=xe,this.work=Z}requestAsyncId(xe,Z,Me=0){return null!==Me&&Me>0?super.requestAsyncId(xe,Z,Me):(xe.actions.push(this),xe._scheduled||(xe._scheduled=Ue.setImmediate(xe.flush.bind(xe,void 0))))}recycleAsyncId(xe,Z,Me=0){var je;if(null!=Me?Me>0:this.delay>0)return super.recycleAsyncId(xe,Z,Me);const{actions:pt}=xe;null!=Z&&(null===(je=pt[pt.length-1])||void 0===je?void 0:je.id)!==Z&&(Ue.clearImmediate(Z),xe._scheduled===Z&&(xe._scheduled=void 0))}});var oe=_(1413),ge=_(3726),pe=_(7786),Ae=_(177);const Pe=["content"],We=["scroll"],Ge=["padding"],ut=["*"],Fe=Be=>({searchTerm:Be});function tt(Be,xe){if(1&Be&&(r.j41(0,"div",6),r.eu8(1,7),r.k0s()),2&Be){const Z=r.XpG();r.R7$(),r.Y8G("ngTemplateOutlet",Z.headerTemplate)("ngTemplateOutletContext",r.eq3(2,Fe,Z.filterValue))}}function st(Be,xe){if(1&Be&&(r.j41(0,"div",8),r.eu8(1,7),r.k0s()),2&Be){const Z=r.XpG();r.R7$(),r.Y8G("ngTemplateOutlet",Z.footerTemplate)("ngTemplateOutletContext",r.eq3(2,Fe,Z.filterValue))}}const ct=["searchInput"],St=["clearButton"],Gt=(Be,xe,Z)=>({item:Be,clear:xe,label:Z}),it=(Be,xe)=>({items:Be,clear:xe}),Xe=(Be,xe,Z,Me)=>({item:Be,item$:xe,index:Z,searchTerm:Me});function wt(Be,xe){if(1&Be){const Z=r.RV6();r.j41(0,"span",22),r.bIt("click",function(){r.eBV(Z);const je=r.XpG().$implicit,pt=r.XpG(2);return r.Njj(pt.unselect(je))}),r.EFF(1,"\xd7"),r.k0s(),r.nrm(2,"span",23)}if(2&Be){const Z=r.XpG().$implicit,Me=r.XpG(2);r.R7$(2),r.Y8G("ngItemLabel",Z.label)("escape",Me.escapeHTML)}}function at(Be,xe){}function vt(Be,xe){if(1&Be&&(r.j41(0,"div",20),r.DNE(1,wt,3,2,"ng-template",null,1,r.C5r)(3,at,0,0,"ng-template",21),r.k0s()),2&Be){const Z=xe.$implicit,Me=r.sdS(2),je=r.XpG(2);r.AVh("ng-value-disabled",Z.disabled),r.R7$(3),r.Y8G("ngTemplateOutlet",je.labelTemplate||Me)("ngTemplateOutletContext",r.sMw(4,Gt,Z.value,je.clearItem,Z.label))}}function $t(Be,xe){if(1&Be&&(r.qex(0),r.DNE(1,vt,4,8,"div",19),r.bVm()),2&Be){const Z=r.XpG();r.R7$(),r.Y8G("ngForOf",Z.selectedItems)("ngForTrackBy",Z.trackByOption)}}function tn(Be,xe){}function qt(Be,xe){if(1&Be&&r.DNE(0,tn,0,0,"ng-template",21),2&Be){const Z=r.XpG();r.Y8G("ngTemplateOutlet",Z.multiLabelTemplate)("ngTemplateOutletContext",r.l_i(2,it,Z.selectedValues,Z.clearItem))}}function Fn(Be,xe){1&Be&&r.nrm(0,"div",25)}function Nn(Be,xe){}function Ht(Be,xe){if(1&Be&&(r.qex(0),r.DNE(1,Fn,1,0,"ng-template",null,2,r.C5r)(3,Nn,0,0,"ng-template",24),r.bVm()),2&Be){const Z=r.sdS(2),Me=r.XpG();r.R7$(3),r.Y8G("ngTemplateOutlet",Me.loadingSpinnerTemplate||Z)}}function jt(Be,xe){if(1&Be&&(r.j41(0,"span",26,3)(2,"span",27),r.EFF(3,"\xd7"),r.k0s()()),2&Be){const Z=r.XpG();r.FS9("title",Z.clearAllText)}}function yn(Be,xe){if(1&Be&&r.nrm(0,"span",32),2&Be){const Z=r.XpG().$implicit,Me=r.XpG(2);r.Y8G("ngItemLabel",Z.label)("escape",Me.escapeHTML)}}function Ln(Be,xe){}function mn(Be,xe){if(1&Be){const Z=r.RV6();r.j41(0,"div",31),r.bIt("click",function(){const je=r.eBV(Z).$implicit,pt=r.XpG(2);return r.Njj(pt.toggleItem(je))})("mouseover",function(){const je=r.eBV(Z).$implicit,pt=r.XpG(2);return r.Njj(pt.onItemHover(je))}),r.DNE(1,yn,1,2,"ng-template",null,4,r.C5r)(3,Ln,0,0,"ng-template",21),r.k0s()}if(2&Be){const Z=xe.$implicit,Me=r.sdS(2),je=r.XpG(2);r.AVh("ng-option-disabled",Z.disabled)("ng-option-selected",Z.selected)("ng-optgroup",Z.children)("ng-option",!Z.children)("ng-option-child",!!Z.parent)("ng-option-marked",Z===je.itemsList.markedItem),r.BMQ("role",Z.children?"group":"option")("aria-selected",Z.selected)("id",null==Z?null:Z.htmlId),r.R7$(3),r.Y8G("ngTemplateOutlet",Z.children?je.optgroupTemplate||Me:je.optionTemplate||Me)("ngTemplateOutletContext",r.ziG(17,Xe,Z.value,Z,Z.index,je.searchTerm))}}function Fr(Be,xe){if(1&Be&&(r.j41(0,"span")(1,"span",34),r.EFF(2),r.k0s(),r.EFF(3),r.k0s()),2&Be){const Z=r.XpG(3);r.R7$(2),r.JRh(Z.addTagText),r.R7$(),r.SpI('"',Z.searchTerm,'"')}}function lr(Be,xe){}function bi(Be,xe){if(1&Be){const Z=r.RV6();r.j41(0,"div",33),r.bIt("mouseover",function(){r.eBV(Z);const je=r.XpG(2);return r.Njj(je.itemsList.unmarkItem())})("click",function(){r.eBV(Z);const je=r.XpG(2);return r.Njj(je.selectTag())}),r.DNE(1,Fr,4,2,"ng-template",null,5,r.C5r)(3,lr,0,0,"ng-template",21),r.k0s()}if(2&Be){const Z=r.sdS(2),Me=r.XpG(2);r.AVh("ng-option-marked",!Me.itemsList.markedItem),r.R7$(3),r.Y8G("ngTemplateOutlet",Me.tagTemplate||Z)("ngTemplateOutletContext",r.eq3(4,Fe,Me.searchTerm))}}function hn(Be,xe){if(1&Be&&(r.j41(0,"div",35),r.EFF(1),r.k0s()),2&Be){const Z=r.XpG(3);r.R7$(),r.JRh(Z.notFoundText)}}function yr(Be,xe){}function bn(Be,xe){if(1&Be&&(r.qex(0),r.DNE(1,hn,2,1,"ng-template",null,6,r.C5r)(3,yr,0,0,"ng-template",21),r.bVm()),2&Be){const Z=r.sdS(2),Me=r.XpG(2);r.R7$(3),r.Y8G("ngTemplateOutlet",Me.notFoundTemplate||Z)("ngTemplateOutletContext",r.eq3(2,Fe,Me.searchTerm))}}function Tn(Be,xe){if(1&Be&&(r.j41(0,"div",35),r.EFF(1),r.k0s()),2&Be){const Z=r.XpG(3);r.R7$(),r.JRh(Z.typeToSearchText)}}function _n(Be,xe){}function Bn(Be,xe){if(1&Be&&(r.qex(0),r.DNE(1,Tn,2,1,"ng-template",null,7,r.C5r)(3,_n,0,0,"ng-template",24),r.bVm()),2&Be){const Z=r.sdS(2),Me=r.XpG(2);r.R7$(3),r.Y8G("ngTemplateOutlet",Me.typeToSearchTemplate||Z)}}function jn(Be,xe){if(1&Be&&(r.j41(0,"div",35),r.EFF(1),r.k0s()),2&Be){const Z=r.XpG(3);r.R7$(),r.JRh(Z.loadingText)}}function Jn(Be,xe){}function Rr(Be,xe){if(1&Be&&(r.qex(0),r.DNE(1,jn,2,1,"ng-template",null,8,r.C5r)(3,Jn,0,0,"ng-template",21),r.bVm()),2&Be){const Z=r.sdS(2),Me=r.XpG(2);r.R7$(3),r.Y8G("ngTemplateOutlet",Me.loadingTextTemplate||Z)("ngTemplateOutletContext",r.eq3(2,Fe,Me.searchTerm))}}function Ar(Be,xe){if(1&Be){const Z=r.RV6();r.j41(0,"ng-dropdown-panel",28),r.bIt("update",function(je){r.eBV(Z);const pt=r.XpG();return r.Njj(pt.viewPortItems=je)})("scroll",function(je){r.eBV(Z);const pt=r.XpG();return r.Njj(pt.scroll.emit(je))})("scrollToEnd",function(je){r.eBV(Z);const pt=r.XpG();return r.Njj(pt.scrollToEnd.emit(je))})("outsideClick",function(){r.eBV(Z);const je=r.XpG();return r.Njj(je.close())}),r.qex(1),r.DNE(2,mn,4,22,"div",29)(3,bi,4,6,"div",30),r.bVm(),r.DNE(4,bn,4,4,"ng-container",12)(5,Bn,4,1,"ng-container",12)(6,Rr,4,4,"ng-container",12),r.k0s()}if(2&Be){const Z=r.XpG();r.AVh("ng-select-multiple",Z.multiple),r.Y8G("virtualScroll",Z.virtualScroll)("bufferAmount",Z.bufferAmount)("appendTo",Z.appendTo)("position",Z.dropdownPosition)("headerTemplate",Z.headerTemplate)("footerTemplate",Z.footerTemplate)("filterValue",Z.searchTerm)("items",Z.itemsList.filteredItems)("markedItem",Z.itemsList.markedItem)("ngClass",Z.appendTo?Z.classes:null)("id",Z.dropdownId),r.R7$(2),r.Y8G("ngForOf",Z.viewPortItems)("ngForTrackBy",Z.trackByOption),r.R7$(),r.Y8G("ngIf",Z.showAddTag),r.R7$(),r.Y8G("ngIf",Z.showNoItemsFound()),r.R7$(),r.Y8G("ngIf",Z.showTypeToSearch()),r.R7$(),r.Y8G("ngIf",Z.loading&&0===Z.itemsList.filteredItems.length)}}const qe=/[&<>"']/g,ot=RegExp(qe.source),He={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function bt(Be){return null!=Be}function Lt(Be){return"object"==typeof Be&&bt(Be)}function Dn(Be){return Be instanceof Function}let In=(()=>{class Be{constructor(Z){this.element=Z,this.escape=!0}ngOnChanges(Z){this.element.nativeElement.innerHTML=this.escape?function Ye(Be){return Be&&ot.test(Be)?Be.replace(qe,xe=>He[xe]):Be}(this.ngItemLabel):this.ngItemLabel}static#e=this.\u0275fac=function(Me){return new(Me||Be)(r.rXU(r.aKT))};static#t=this.\u0275dir=r.FsC({type:Be,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[r.OA$]})}return Be})(),nr=(()=>{class Be{constructor(Z){this.template=Z}static#e=this.\u0275fac=function(Me){return new(Me||Be)(r.rXU(r.C4Q))};static#t=this.\u0275dir=r.FsC({type:Be,selectors:[["","ng-option-tmp",""]]})}return Be})(),ir=(()=>{class Be{constructor(Z){this.template=Z}static#e=this.\u0275fac=function(Me){return new(Me||Be)(r.rXU(r.C4Q))};static#t=this.\u0275dir=r.FsC({type:Be,selectors:[["","ng-optgroup-tmp",""]]})}return Be})(),fr=(()=>{class Be{constructor(Z){this.template=Z}static#e=this.\u0275fac=function(Me){return new(Me||Be)(r.rXU(r.C4Q))};static#t=this.\u0275dir=r.FsC({type:Be,selectors:[["","ng-label-tmp",""]]})}return Be})(),Pn=(()=>{class Be{constructor(Z){this.template=Z}static#e=this.\u0275fac=function(Me){return new(Me||Be)(r.rXU(r.C4Q))};static#t=this.\u0275dir=r.FsC({type:Be,selectors:[["","ng-multi-label-tmp",""]]})}return Be})(),Ni=(()=>{class Be{constructor(Z){this.template=Z}static#e=this.\u0275fac=function(Me){return new(Me||Be)(r.rXU(r.C4Q))};static#t=this.\u0275dir=r.FsC({type:Be,selectors:[["","ng-header-tmp",""]]})}return Be})(),Bi=(()=>{class Be{constructor(Z){this.template=Z}static#e=this.\u0275fac=function(Me){return new(Me||Be)(r.rXU(r.C4Q))};static#t=this.\u0275dir=r.FsC({type:Be,selectors:[["","ng-footer-tmp",""]]})}return Be})(),pr=(()=>{class Be{constructor(Z){this.template=Z}static#e=this.\u0275fac=function(Me){return new(Me||Be)(r.rXU(r.C4Q))};static#t=this.\u0275dir=r.FsC({type:Be,selectors:[["","ng-notfound-tmp",""]]})}return Be})(),on=(()=>{class Be{constructor(Z){this.template=Z}static#e=this.\u0275fac=function(Me){return new(Me||Be)(r.rXU(r.C4Q))};static#t=this.\u0275dir=r.FsC({type:Be,selectors:[["","ng-typetosearch-tmp",""]]})}return Be})(),So=(()=>{class Be{constructor(Z){this.template=Z}static#e=this.\u0275fac=function(Me){return new(Me||Be)(r.rXU(r.C4Q))};static#t=this.\u0275dir=r.FsC({type:Be,selectors:[["","ng-loadingtext-tmp",""]]})}return Be})(),qr=(()=>{class Be{constructor(Z){this.template=Z}static#e=this.\u0275fac=function(Me){return new(Me||Be)(r.rXU(r.C4Q))};static#t=this.\u0275dir=r.FsC({type:Be,selectors:[["","ng-tag-tmp",""]]})}return Be})(),ui=(()=>{class Be{constructor(Z){this.template=Z}static#e=this.\u0275fac=function(Me){return new(Me||Be)(r.rXU(r.C4Q))};static#t=this.\u0275dir=r.FsC({type:Be,selectors:[["","ng-loadingspinner-tmp",""]]})}return Be})();function Qr(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const _r={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function vn(Be){return Be.replace(/[^\u0000-\u007E]/g,Z=>_r[Z]||Z)}class di{constructor(xe,Z){this._ngSelect=xe,this._selectionModel=Z,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let xe=this.selectedItems.length-1;for(;xe>=0;xe--){const Z=this.selectedItems[xe];if(!Z.disabled)return Z}return null}setItems(xe){this._items=xe.map((Z,Me)=>this.mapItem(Z,Me)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(xe){if(xe.selected||this.maxItemsSelected)return;const Z=this._ngSelect.multiple;Z||this.clearSelected(),this._selectionModel.select(xe,Z,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(xe)}unselect(xe){xe.selected&&(this._selectionModel.unselect(xe,this._ngSelect.multiple),this._ngSelect.hideSelected&&bt(xe.index)&&this._ngSelect.multiple&&this._showSelected(xe))}findItem(xe){let Z;return Z=this._ngSelect.compareWith?Me=>this._ngSelect.compareWith(Me.value,xe):this._ngSelect.bindValue?Me=>!Me.children&&this.resolveNested(Me.value,this._ngSelect.bindValue)===xe:Me=>Me.value===xe||!Me.children&&Me.label&&Me.label===this.resolveNested(xe,this._ngSelect.bindLabel),this._items.find(Me=>Z(Me))}addItem(xe){const Z=this.mapItem(xe,this._items.length);return this._items.push(Z),this._filteredItems.push(Z),Z}clearSelected(xe=!1){this._selectionModel.clear(xe),this._items.forEach(Z=>{Z.selected=xe&&Z.selected&&Z.disabled,Z.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(xe){return xe=vn(xe).toLocaleLowerCase(),this.filteredItems.find(Z=>vn(Z.label).toLocaleLowerCase().substr(0,xe.length)===xe)}filter(xe){if(!xe)return void this.resetFilteredItems();this._filteredItems=[],xe=this._ngSelect.searchFn?xe:vn(xe).toLocaleLowerCase();const Z=this._ngSelect.searchFn||this._defaultSearchFn,Me=this._ngSelect.hideSelected;for(const je of Array.from(this._groups.keys())){const pt=[];for(const Rt of this._groups.get(je))Me&&(Rt.parent&&Rt.parent.selected||Rt.selected)||Z(xe,this._ngSelect.searchFn?Rt.value:Rt)&&pt.push(Rt);if(pt.length>0){const[Rt]=pt.slice(-1);if(Rt.parent){const nn=this._items.find(an=>an===Rt.parent);this._filteredItems.push(nn)}this._filteredItems.push(...pt)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(xe=>!xe.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(xe){this._markedIndex=this._filteredItems.indexOf(xe)}markSelectedOrDefault(xe){if(0===this._filteredItems.length)return;const Z=this._getLastMarkedIndex();this._markedIndex=Z>-1?Z:xe?this.filteredItems.findIndex(Me=>!Me.disabled):-1}resolveNested(xe,Z){if(!Lt(xe))return xe;if(-1===Z.indexOf("."))return xe[Z];{const Me=Z.split(".");let je=xe;for(let pt=0,Rt=Me.length;pt<Rt;++pt){if(null==je)return null;je=je[Me[pt]]}return je}}mapItem(xe,Z){const Me=bt(xe.$ngOptionLabel)?xe.$ngOptionLabel:this.resolveNested(xe,this._ngSelect.bindLabel),je=bt(xe.$ngOptionValue)?xe.$ngOptionValue:xe;return{index:Z,label:bt(Me)?Me.toString():"",value:je,disabled:xe.disabled,htmlId:`${this._ngSelect.dropdownId}-${Z}`}}mapSelectedItems(){const xe=this._ngSelect.multiple;for(const Z of this.selectedItems){const Me=this._ngSelect.bindValue?this.resolveNested(Z.value,this._ngSelect.bindValue):Z.value,je=bt(Me)?this.findItem(Me):null;this._selectionModel.unselect(Z,xe),this._selectionModel.select(je||Z,xe,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(Z=>-1===this.selectedItems.indexOf(Z)))}_showSelected(xe){if(this._filteredItems.push(xe),xe.parent){const Z=xe.parent;this._filteredItems.find(je=>je===Z)||this._filteredItems.push(Z)}else if(xe.children)for(const Z of xe.children)Z.selected=!1,this._filteredItems.push(Z);this._filteredItems=[...this._filteredItems.sort((Z,Me)=>Z.index-Me.index)]}_hideSelected(xe){this._filteredItems=this._filteredItems.filter(Z=>Z!==xe),xe.parent?xe.parent.children.every(Me=>Me.selected)&&(this._filteredItems=this._filteredItems.filter(Me=>Me!==xe.parent)):xe.children&&(this._filteredItems=this.filteredItems.filter(Z=>Z.parent!==xe))}_defaultSearchFn(xe,Z){return vn(Z.label).toLocaleLowerCase().indexOf(xe)>-1}_getNextItemIndex(xe){return xe>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(xe){0===this._filteredItems.length||this._filteredItems.every(Z=>Z.disabled)||(this._markedIndex=this._getNextItemIndex(xe),this.markedItem.disabled&&this._stepToItem(xe))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const xe=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&xe<0?-1:Math.max(this.markedIndex,xe)}_groupBy(xe,Z){const Me=new Map;if(0===xe.length)return Me;if(Array.isArray(xe[0].value[Z])){for(const Rt of xe){const nn=(Rt.value[Z]||[]).map((an,en)=>this.mapItem(an,en));Me.set(Rt,nn)}return Me}const je=Dn(this._ngSelect.groupBy),pt=Rt=>{const nn=je?Z(Rt.value):Rt.value[Z];return bt(nn)?nn:void 0};for(const Rt of xe){const nn=pt(Rt),an=Me.get(nn);an?an.push(Rt):Me.set(nn,[Rt])}return Me}_flatten(xe){const Z=Dn(this._ngSelect.groupBy),Me=[];for(const je of Array.from(xe.keys())){let pt=Me.length;if(void 0===je){const Vn=xe.get(void 0)||[];Me.push(...Vn.map(En=>(En.index=pt++,En)));continue}const Rt=Lt(je),nn={label:Rt?"":String(je),children:void 0,parent:null,index:pt++,disabled:!this._ngSelect.selectableGroup,htmlId:Qr()},an=Z?this._ngSelect.bindLabel:this._ngSelect.groupBy,en=this._ngSelect.groupValue||(()=>Rt?je.value:{[an]:je}),rn=xe.get(je).map(Vn=>(Vn.parent=nn,Vn.children=void 0,Vn.index=pt++,Vn));nn.children=rn,nn.value=en(je,rn.map(Vn=>Vn.value)),Me.push(nn),Me.push(...rn)}return Me}}var dr=function(Be){return Be[Be.Tab=9]="Tab",Be[Be.Enter=13]="Enter",Be[Be.Esc=27]="Esc",Be[Be.Space=32]="Space",Be[Be.ArrowUp=38]="ArrowUp",Be[Be.ArrowDown=40]="ArrowDown",Be[Be.Backspace=8]="Backspace",Be}(dr||{});let gr=(()=>{class Be{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(Z,Me,je){const pt=this._dimensions,Rt=pt.itemHeight*Me,an=Math.max(0,Z)/Rt*Me;let en=Math.min(Me,Math.ceil(an)+(pt.itemsPerViewport+1));const Vn=Math.max(0,en-pt.itemsPerViewport);let En=Math.min(Vn,Math.floor(an)),Wn=pt.itemHeight*Math.ceil(En)-pt.itemHeight*Math.min(En,je);return Wn=isNaN(Wn)?0:Wn,En=isNaN(En)?-1:En,en=isNaN(en)?-1:en,En-=je,En=Math.max(0,En),en+=je,en=Math.min(Me,en),{topPadding:Wn,scrollHeight:Rt,start:En,end:en}}setDimensions(Z,Me){const je=Math.max(1,Math.floor(Me/Z));this._dimensions={itemHeight:Z,panelHeight:Me,itemsPerViewport:je}}getScrollTo(Z,Me,je){const{panelHeight:pt}=this.dimensions,Rt=Z+Me,an=je+pt;return pt>=Rt&&je===Z?null:Rt>an?je+Rt-an:Z<=je?Z:null}static#e=this.\u0275fac=function(Me){return new(Me||Be)};static#t=this.\u0275prov=r.jDH({token:Be,factory:Be.\u0275fac})}return Be})();const Pr=["top","right","bottom","left"],wr=typeof requestAnimationFrame<"u"?se:Re;let Yr=(()=>{class Be{constructor(Z,Me,je,pt,Rt){this._renderer=Z,this._zone=Me,this._panelService=je,this._document=Rt,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new r.bkB,this.scroll=new r.bkB,this.scrollToEnd=new r.bkB,this.outsideClick=new r.bkB,this._destroy$=new oe.B,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=pt.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(Z){Z!==this._itemsLength&&(this._itemsLength=Z,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:Z,panelHeight:Me}=this._panelService.dimensions,je=this.markedItem.index*Z;return Me>je?0:je}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(Z){if(Z.items){const Me=Z.items;this._onItemsChange(Me.currentValue,Me.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(Z,Me=!1){if(!Z)return;const je=this.items.indexOf(Z);if(je<0||je>=this.itemsLength)return;let pt;if(this.virtualScroll){const Rt=this._panelService.dimensions.itemHeight;pt=this._panelService.getScrollTo(je*Rt,Rt,this._lastScrollPosition)}else{const Rt=this._dropdown.querySelector(`#${Z.htmlId}`);pt=this._panelService.getScrollTo(Rt.offsetTop,Rt.clientHeight,Me?Rt.offsetTop:this._lastScrollPosition)}bt(pt)&&(this._scrollablePanel.scrollTop=pt)}scrollToTag(){const Z=this._scrollablePanel;Z.scrollTop=Z.scrollHeight-Z.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),Pr.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(Z){Pr.forEach(je=>{const pt=`ng-select-${je}`;this._renderer.removeClass(this._dropdown,pt),this._renderer.removeClass(this._select,pt)});const Me=`ng-select-${Z}`;this._renderer.addClass(this._dropdown,Me),this._renderer.addClass(this._select,Me)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,ge.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,R.Q)(this._destroy$),function S(Be,xe=V.E){return function b(Be){return(0,U.N)((xe,Z)=>{let Me=!1,je=null,pt=null,Rt=!1;const nn=()=>{if(pt?.unsubscribe(),pt=null,Me){Me=!1;const en=je;je=null,Z.next(en)}Rt&&Z.complete()},an=()=>{pt=null,Rt&&Z.complete()};xe.subscribe((0,P._)(Z,en=>{Me=!0,je=en,pt||(0,H.Tg)(Be(en)).subscribe(pt=(0,P._)(Z,nn,an))},()=>{Rt=!0,(!Me||!pt||pt.closed)&&Z.complete()}))})}(()=>(0,C.O)(Be,xe))}(0,wr)).subscribe(Z=>{const Me=Z.path||Z.composedPath&&Z.composedPath();Me&&(0!==Me.length||Z.target)&&this._onContentScrolled(Me&&0!==Me.length?Me[0].scrollTop:Z.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,pe.h)((0,ge.R)(this._document,"touchstart",{capture:!0}),(0,ge.R)(this._document,"mousedown",{capture:!0})).pipe((0,R.Q)(this._destroy$)).subscribe(Z=>this._checkToClose(Z))})}_checkToClose(Z){if(this._select.contains(Z.target)||this._dropdown.contains(Z.target))return;const Me=Z.path||Z.composedPath&&Z.composedPath();Z.target&&Z.target.shadowRoot&&Me&&Me[0]&&this._select.contains(Me[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(Z,Me){this.items=Z||[],this._scrollToEndFired=!1,this.itemsLength=Z.length,this.virtualScroll?this._updateItemsRange(Me):(this._setVirtualHeight(),this._updateItems(Me))}_updateItems(Z){this.update.emit(this.items),!1!==Z&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,Z)})})}_updateItemsRange(Z){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{Z?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(Z){this.virtualScroll&&this._renderItemsRange(Z),this._lastScrollPosition=Z,this._fireScrollToEnd(Z)}_updateVirtualHeight(Z){this._updateScrollHeight&&(this._virtualPadding.style.height=`${Z}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(Z=null){if(Z&&this._lastScrollPosition===Z)return;const Me=this._panelService.calculateItems(Z=Z||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(Me.scrollHeight),this._contentPanel.style.transform=`translateY(${Me.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(Me.start,Me.end)),this.scroll.emit({start:Me.start,end:Me.end})}),bt(Z)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=Z,this._lastScrollPosition=Z)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[Z]=this.items;return this.update.emit([Z]),Promise.resolve().then(()=>{const je=this._dropdown.querySelector(`#${Z.htmlId}`).clientHeight;return this._virtualPadding.style.height=je*this.itemsLength+"px",this._panelService.setDimensions(je,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(Z){this._scrollToEndFired||0===Z||Z+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(Z){if("auto"!==this.position)return this.position;const Me=this._select.getBoundingClientRect(),je=document.documentElement.scrollTop||document.body.scrollTop;return Me.top+window.pageYOffset+Me.height+Z.getBoundingClientRect().height>je+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const Z=this._select.getBoundingClientRect(),Me=this._parent.getBoundingClientRect();this._dropdown.style.left=Z.left-Me.left+"px",this._dropdown.style.width=Z.width+"px",this._dropdown.style.minWidth=Z.width+"px"}_updateYPosition(){const Z=this._select.getBoundingClientRect(),Me=this._parent.getBoundingClientRect(),je=Z.height;"top"===this._currentPosition?(this._dropdown.style.bottom=Me.bottom-Z.bottom+je+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=Z.top-Me.top+je+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,ge.R)(this._dropdown,"mousedown").pipe((0,R.Q)(this._destroy$)).subscribe(Z=>{"INPUT"!==Z.target.tagName&&Z.preventDefault()})})}static#e=this.\u0275fac=function(Me){return new(Me||Be)(r.rXU(r.sFG),r.rXU(r.SKi),r.rXU(gr),r.rXU(r.aKT),r.rXU(Ae.qQ,8))};static#t=this.\u0275cmp=r.VBU({type:Be,selectors:[["ng-dropdown-panel"]],viewQuery:function(Me,je){if(1&Me&&(r.GBs(Pe,7,r.aKT),r.GBs(We,7,r.aKT),r.GBs(Ge,7,r.aKT)),2&Me){let pt;r.mGM(pt=r.lsd())&&(je.contentElementRef=pt.first),r.mGM(pt=r.lsd())&&(je.scrollElementRef=pt.first),r.mGM(pt=r.lsd())&&(je.paddingElementRef=pt.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[r.OA$],ngContentSelectors:ut,decls:9,vars:6,consts:[["scroll",""],["padding",""],["content",""],["class","ng-dropdown-header",4,"ngIf"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(Me,je){1&Me&&(r.NAR(),r.DNE(0,tt,2,4,"div",3),r.j41(1,"div",4,0),r.nrm(3,"div",null,1),r.j41(5,"div",null,2),r.SdG(7),r.k0s()(),r.DNE(8,st,2,4,"div",5)),2&Me&&(r.Y8G("ngIf",je.headerTemplate),r.R7$(3),r.AVh("total-padding",je.virtualScroll),r.R7$(2),r.AVh("scrollable-content",je.virtualScroll&&je.items.length),r.R7$(3),r.Y8G("ngIf",je.footerTemplate))},dependencies:[Ae.bT,Ae.T3],encapsulation:2,changeDetection:0})}return Be})(),$n=(()=>{class Be{get disabled(){return this._disabled}set disabled(Z){this._disabled=this._isDisabled(Z)}constructor(Z){this.elementRef=Z,this.stateChange$=new oe.B,this._disabled=!1}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(Z){Z.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(Z){return null!=Z&&"false"!=`${Z}`}static#e=this.\u0275fac=function(Me){return new(Me||Be)(r.rXU(r.aKT))};static#t=this.\u0275cmp=r.VBU({type:Be,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[r.OA$],ngContentSelectors:ut,decls:1,vars:0,template:function(Me,je){1&Me&&(r.NAR(),r.SdG(0))},encapsulation:2,changeDetection:0})}return Be})(),Oe=(()=>{class Be{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static#e=this.\u0275fac=function(Me){return new(Me||Be)};static#t=this.\u0275prov=r.jDH({token:Be,factory:Be.\u0275fac,providedIn:"root"})}return Be})(),Ke=(()=>{class Be{warn(Z){console.warn(Z)}static#e=this.\u0275fac=function(Me){return new(Me||Be)};static#t=this.\u0275prov=r.jDH({token:Be,factory:Be.\u0275fac,providedIn:"root"})}return Be})();const ze=new r.nKC("ng-select-selection-model");let Tt=(()=>{class Be{get items(){return this._items}set items(Z){null===Z&&(Z=[]),this._itemsAreUsed=!0,this._items=Z}get compareWith(){return this._compareWith}set compareWith(Z){if(null!=Z&&!Dn(Z))throw Error("`compareWith` must be a function.");this._compareWith=Z}get clearSearchOnAdd(){return bt(this._clearSearchOnAdd)?this._clearSearchOnAdd:bt(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(Z){this._clearSearchOnAdd=Z}get deselectOnClick(){return bt(this._deselectOnClick)?this._deselectOnClick:bt(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(Z){this._deselectOnClick=Z}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(Z,Me,je,pt,Rt,nn,an){this.classes=Z,this.autoFocus=Me,this.config=je,this._cd=nn,this._console=an,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=en=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new r.bkB,this.focusEvent=new r.bkB,this.changeEvent=new r.bkB,this.openEvent=new r.bkB,this.closeEvent=new r.bkB,this.searchEvent=new r.bkB,this.clearEvent=new r.bkB,this.addEvent=new r.bkB,this.removeEvent=new r.bkB,this.scroll=new r.bkB,this.scrollToEnd=new r.bkB,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=Qr(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new oe.B,this._keyPress$=new oe.B,this._onChange=en=>{},this._onTouched=()=>{},this.clearItem=en=>{const rn=this.selectedItems.find(Vn=>Vn.value===en);this.unselect(rn)},this.trackByOption=(en,rn)=>this.trackByFn?this.trackByFn(rn.value):rn,this._mergeGlobalConfig(je),this.itemsList=new di(this,pt()),this.element=Rt.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(Z=>Z.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(Z){Z.multiple&&this.itemsList.clearSelected(),Z.items&&this._setItems(Z.items.currentValue||[]),Z.isOpen&&(this._manualOpen=bt(Z.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),bt(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(Z){if(dr[Z.which]){if(!1===this.keyDownFn(Z))return;this.handleKeyCode(Z)}else Z.key&&1===Z.key.length&&this._keyPress$.next(Z.key.toLocaleLowerCase())}handleKeyCode(Z){this.clearButton&&this.clearButton.nativeElement===Z.target?this.handleKeyCodeClear(Z):this.handleKeyCodeInput(Z)}handleKeyCodeInput(Z){switch(Z.which){case dr.ArrowDown:this._handleArrowDown(Z);break;case dr.ArrowUp:this._handleArrowUp(Z);break;case dr.Space:this._handleSpace(Z);break;case dr.Enter:this._handleEnter(Z);break;case dr.Tab:this._handleTab(Z);break;case dr.Esc:this.close(),Z.preventDefault();break;case dr.Backspace:this._handleBackspace()}}handleKeyCodeClear(Z){Z.which===dr.Enter&&(this.handleClearClick(),Z.preventDefault())}handleMousedown(Z){const Me=Z.target;"INPUT"!==Me.tagName&&Z.preventDefault(),Me.classList.contains("ng-clear-wrapper")?this.handleClearClick():Me.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():Me.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(Z){this.itemsList.clearSelected(),this._handleWriteValue(Z),this._cd.markForCheck()}registerOnChange(Z){this._onChange=Z}registerOnTouched(Z){this._onTouched=Z}setDisabledState(Z){this._disabled=Z,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(Z){!Z||Z.disabled||this.disabled||(this.deselectOnClick&&Z.selected?this.unselect(Z):this.select(Z),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(Z){Z.selected||(this.itemsList.select(Z),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(Z.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(Z){Z&&(this.itemsList.unselect(Z),this.focus(),this._updateNgModel(),this.removeEvent.emit(Z.value))}selectTag(){let Z;Z=Dn(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const Me=je=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(je,null):this.itemsList.addItem(je);!function Zt(Be){return Be instanceof Promise}(Z)?Z&&this.select(Me(Z)):Z.then(je=>this.select(Me(je))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}get showAddTag(){if(!this._validTerm)return!1;const Z=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(Me=>Me.label.toLowerCase()===Z)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(Me=>Me.label.toLowerCase()===Z))&&!this.loading}showNoItemsFound(){const Z=0===this.itemsList.filteredItems.length;return(Z&&!this._isTypeahead&&!this.loading||Z&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(Z){this._isComposing=!1,!this.searchWhileComposing&&this.filter(Z)}filter(Z){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=Z,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(Z),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:Z,items:this.itemsList.filteredItems.map(Me=>Me.value)}),this.open())}onInputFocus(Z){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(Z),this.focused=!0)}onInputBlur(Z){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(Z),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(Z){Z.disabled||this.itemsList.markItem(Z)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const Z=this.selectedItems&&this.selectedItems[0];this.searchTerm=Z&&Z.label||null}_setItems(Z){const Me=Z[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=bt(Me)?!Lt(Me):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(Z),Z.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&bt(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const Z=je=>{this.items=je.map(pt=>({$ngOptionValue:pt.value,$ngOptionLabel:pt.elementRef.nativeElement.innerHTML,disabled:pt.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},Me=()=>{const je=(0,pe.h)(this.ngOptions.changes,this._destroy$);(0,pe.h)(...this.ngOptions.map(pt=>pt.stateChange$)).pipe((0,R.Q)(je)).subscribe(pt=>{const Rt=this.itemsList.findItem(pt.value);Rt.disabled=pt.disabled,Rt.label=pt.label||Rt.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,I.Z)(this.ngOptions),(0,R.Q)(this._destroy$)).subscribe(je=>{this.bindLabel=this._defaultLabel,Z(je),Me()})}_isValidWriteValue(Z){if(!bt(Z)||this.multiple&&""===Z||Array.isArray(Z)&&0===Z.length)return!1;const Me=je=>!(!bt(this.compareWith)&&Lt(je)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(je)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(Z)?Z.every(je=>Me(je)):(this._console.warn("Multiple select ngModel should be array."),!1):Me(Z)}_handleWriteValue(Z){if(!this._isValidWriteValue(Z))return;const Me=je=>{let pt=this.itemsList.findItem(je);if(pt)this.itemsList.select(pt);else{const Rt=Lt(je);Rt||!Rt&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(je,null)):this.bindValue&&(pt={[this.bindLabel]:null,[this.bindValue]:je},this.itemsList.select(this.itemsList.mapItem(pt,null)))}};this.multiple?Z.forEach(je=>Me(je)):Me(Z)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,R.Q)(this._destroy$),(0,B.M)(Z=>this._pressedKeys.push(Z)),(0,G.B)(200),(0,x.p)(()=>this._pressedKeys.length>0),(0,m.T)(()=>this._pressedKeys.join(""))).subscribe(Z=>{const Me=this.itemsList.findByLabel(Z);Me&&(this.isOpen?(this.itemsList.markItem(Me),this._scrollToMarked(),this._cd.markForCheck()):this.select(Me)),this._pressedKeys=[]})}_setInputAttributes(){const Z=this.searchInput.nativeElement,Me={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const je of Object.keys(Me))Z.setAttribute(je,Me[je])}_updateNgModel(){const Z=[];for(const je of this.selectedItems)if(this.bindValue){let pt=null;pt=je.children?je.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(je.value,this.bindValue),Z.push(pt)}else Z.push(je.value);const Me=this.selectedItems.map(je=>je.value);this.multiple?(this._onChange(Z),this.changeEvent.emit(Me)):(this._onChange(bt(Z[0])?Z[0]:null),this.changeEvent.emit(Me[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(Z){this.searchTerm=Z,this._isTypeahead&&this.typeahead.next(Z)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(Z){if(!1===this.isOpen)if(this.showClear())this.focusOnClear(),Z.preventDefault();else if(!this.addTag)return;this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),Z.preventDefault()):this.showAddTag?(this.selectTag(),Z.preventDefault()):this.close():this.close()}_handleEnter(Z){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}Z.preventDefault()}_handleSpace(Z){this.isOpen||this._manualOpen||(this.open(),Z.preventDefault())}_handleArrowDown(Z){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),Z.preventDefault()}_handleArrowUp(Z){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),Z.preventDefault())}_nextItemIsTag(Z){const Me=this.itemsList.markedIndex+Z;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(Me<0||Me===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const Z=this.searchTerm&&this.searchTerm.trim();return Z&&Z.length>=this.minTermLength}_mergeGlobalConfig(Z){this.placeholder=this.placeholder||Z.placeholder,this.notFoundText=this.notFoundText||Z.notFoundText,this.typeToSearchText=this.typeToSearchText||Z.typeToSearchText,this.addTagText=this.addTagText||Z.addTagText,this.loadingText=this.loadingText||Z.loadingText,this.clearAllText=this.clearAllText||Z.clearAllText,this.virtualScroll=bt(this.virtualScroll)?this.virtualScroll:!!bt(Z.disableVirtualScroll)&&!Z.disableVirtualScroll,this.openOnEnter=bt(this.openOnEnter)?this.openOnEnter:Z.openOnEnter,this.appendTo=this.appendTo||Z.appendTo,this.bindValue=this.bindValue||Z.bindValue,this.bindLabel=this.bindLabel||Z.bindLabel,this.appearance=this.appearance||Z.appearance}static#e=this.\u0275fac=function(Me){return new(Me||Be)(r.kS0("class"),r.kS0("autofocus"),r.rXU(Oe),r.rXU(ze),r.rXU(r.aKT),r.rXU(r.gRc),r.rXU(Ke))};static#t=this.\u0275cmp=r.VBU({type:Be,selectors:[["ng-select"]],contentQueries:function(Me,je,pt){if(1&Me&&(r.wni(pt,nr,5,r.C4Q),r.wni(pt,ir,5,r.C4Q),r.wni(pt,fr,5,r.C4Q),r.wni(pt,Pn,5,r.C4Q),r.wni(pt,Ni,5,r.C4Q),r.wni(pt,Bi,5,r.C4Q),r.wni(pt,pr,5,r.C4Q),r.wni(pt,on,5,r.C4Q),r.wni(pt,So,5,r.C4Q),r.wni(pt,qr,5,r.C4Q),r.wni(pt,ui,5,r.C4Q),r.wni(pt,$n,5)),2&Me){let Rt;r.mGM(Rt=r.lsd())&&(je.optionTemplate=Rt.first),r.mGM(Rt=r.lsd())&&(je.optgroupTemplate=Rt.first),r.mGM(Rt=r.lsd())&&(je.labelTemplate=Rt.first),r.mGM(Rt=r.lsd())&&(je.multiLabelTemplate=Rt.first),r.mGM(Rt=r.lsd())&&(je.headerTemplate=Rt.first),r.mGM(Rt=r.lsd())&&(je.footerTemplate=Rt.first),r.mGM(Rt=r.lsd())&&(je.notFoundTemplate=Rt.first),r.mGM(Rt=r.lsd())&&(je.typeToSearchTemplate=Rt.first),r.mGM(Rt=r.lsd())&&(je.loadingTextTemplate=Rt.first),r.mGM(Rt=r.lsd())&&(je.tagTemplate=Rt.first),r.mGM(Rt=r.lsd())&&(je.loadingSpinnerTemplate=Rt.first),r.mGM(Rt=r.lsd())&&(je.ngOptions=Rt)}},viewQuery:function(Me,je){if(1&Me&&(r.GBs(Yr,5),r.GBs(ct,7),r.GBs(St,5)),2&Me){let pt;r.mGM(pt=r.lsd())&&(je.dropdownPanel=pt.first),r.mGM(pt=r.lsd())&&(je.searchInput=pt.first),r.mGM(pt=r.lsd())&&(je.clearButton=pt.first)}},hostVars:20,hostBindings:function(Me,je){1&Me&&r.bIt("keydown",function(Rt){return je.handleKeyDown(Rt)}),2&Me&&r.AVh("ng-select-typeahead",je.typeahead)("ng-select-multiple",je.multiple)("ng-select-taggable",je.addTag)("ng-select-searchable",je.searchable)("ng-select-clearable",je.clearable)("ng-select-opened",je.isOpen)("ng-select",je.useDefaultClass)("ng-select-disabled",je.disabled)("ng-select-filtered",je.filtered)("ng-select-single",je.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[r.Jv_([{provide:g.kq,useExisting:(0,r.Rfq)(()=>Be),multi:!0},gr]),r.OA$],decls:14,vars:19,consts:[["searchInput",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"input","compositionstart","compositionend","focus","blur","change","readOnly","disabled","value"],["class","ng-clear-wrapper","tabindex","0",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(Me,je){if(1&Me){const pt=r.RV6();r.j41(0,"div",9),r.bIt("mousedown",function(nn){return r.eBV(pt),r.Njj(je.handleMousedown(nn))}),r.j41(1,"div",10)(2,"div",11),r.EFF(3),r.k0s(),r.DNE(4,$t,2,2,"ng-container",12)(5,qt,1,5,null,12),r.j41(6,"div",13)(7,"input",14,0),r.bIt("input",function(){r.eBV(pt);const nn=r.sdS(8);return r.Njj(je.filter(nn.value))})("compositionstart",function(){return r.eBV(pt),r.Njj(je.onCompositionStart())})("compositionend",function(){r.eBV(pt);const nn=r.sdS(8);return r.Njj(je.onCompositionEnd(nn.value))})("focus",function(nn){return r.eBV(pt),r.Njj(je.onInputFocus(nn))})("blur",function(nn){return r.eBV(pt),r.Njj(je.onInputBlur(nn))})("change",function(nn){return r.eBV(pt),r.Njj(nn.stopPropagation())}),r.k0s()()(),r.DNE(9,Ht,4,1,"ng-container",12)(10,jt,4,1,"span",15),r.j41(11,"span",16),r.nrm(12,"span",17),r.k0s()(),r.DNE(13,Ar,7,19,"ng-dropdown-panel",18)}2&Me&&(r.AVh("ng-appearance-outline","outline"===je.appearance)("ng-has-value",je.hasValue),r.R7$(3),r.JRh(je.placeholder),r.R7$(),r.Y8G("ngIf",(!je.multiLabelTemplate||!je.multiple)&&je.selectedItems.length>0),r.R7$(),r.Y8G("ngIf",je.multiple&&je.multiLabelTemplate&&je.selectedValues.length>0),r.R7$(),r.BMQ("aria-expanded",je.isOpen)("aria-owns",je.isOpen?je.dropdownId:null),r.R7$(),r.Y8G("readOnly",!je.searchable||je.itemsList.maxItemsSelected)("disabled",je.disabled)("value",je.searchTerm?je.searchTerm:""),r.BMQ("id",je.labelForId)("tabindex",je.tabIndex)("aria-activedescendant",je.isOpen?null==je.itemsList||null==je.itemsList.markedItem?null:je.itemsList.markedItem.htmlId:null)("aria-controls",je.isOpen?je.dropdownId:null),r.R7$(2),r.Y8G("ngIf",je.loading),r.R7$(),r.Y8G("ngIf",je.showClear()),r.R7$(3),r.Y8G("ngIf",je.isOpen))},dependencies:[Ae.YU,Ae.Sq,Ae.bT,Ae.T3,Yr,In],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0})}return Be})();function yt(){return new xt}class xt{constructor(){this._selected=[]}get value(){return this._selected}select(xe,Z,Me){if(xe.selected=!0,(!xe.children||!Z&&Me)&&this._selected.push(xe),Z)if(xe.parent){const je=xe.parent.children.length,pt=xe.parent.children.filter(Rt=>Rt.selected).length;xe.parent.selected=je===pt}else xe.children&&(this._setChildrenSelectedState(xe.children,!0),this._removeChildren(xe),this._selected=Me&&this._activeChildren(xe)?[...this._selected.filter(je=>je.parent!==xe),xe]:[...this._selected,...xe.children.filter(je=>!je.disabled)])}unselect(xe,Z){if(this._selected=this._selected.filter(Me=>Me!==xe),xe.selected=!1,Z)if(xe.parent&&xe.parent.selected){const Me=xe.parent.children;this._removeParent(xe.parent),this._removeChildren(xe.parent),this._selected.push(...Me.filter(je=>je!==xe&&!je.disabled)),xe.parent.selected=!1}else xe.children&&(this._setChildrenSelectedState(xe.children,!1),this._removeChildren(xe))}clear(xe){this._selected=xe?this._selected.filter(Z=>Z.disabled):[]}_setChildrenSelectedState(xe,Z){for(const Me of xe)Me.disabled||(Me.selected=Z)}_removeChildren(xe){this._selected=[...this._selected.filter(Z=>Z.parent!==xe),...xe.children.filter(Z=>Z.parent===xe&&Z.disabled&&Z.selected)]}_removeParent(xe){this._selected=this._selected.filter(Z=>Z!==xe)}_activeChildren(xe){return xe.children.every(Z=>!Z.disabled||Z.selected)}}let Ft=(()=>{class Be{static#e=this.\u0275fac=function(Me){return new(Me||Be)};static#t=this.\u0275mod=r.$C({type:Be});static#n=this.\u0275inj=r.G2t({providers:[{provide:ze,useValue:yt}],imports:[Ae.MD]})}return Be})()},2266:(Dt,ve,_)=>{"use strict";_.d(ve,{Kg:()=>z});var r=_(4438),g=_(177);const R={UKNOWN:"Unknown"},V={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:R.UKNOWN},U={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n      A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n      MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n      ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n      WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n      XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n      XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n      GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n      GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n      GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n      GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n      GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n      GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n      GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n      GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n      GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n      GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n      GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n      GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n      GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n      GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n      GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n      GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n      GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n      SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n      SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n      SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n      SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n      SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n      SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n      SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n      SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n      SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n      SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n      SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n      SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n      SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n      SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n      SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n      SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n      SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n      SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n      SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n      SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n      SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n      SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n      SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n      SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n      SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n      SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n      SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n      SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n      SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n      SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n      SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n      GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n      GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n      GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n      SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n      SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n      SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n      LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n      C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n      LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n      VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n      MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n        IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n        IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n        CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n        P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n        SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n        CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n        up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},H={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n        GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n        SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n        GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n        SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n        GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n        SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n        SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n        GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n        SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n        GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n        SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n        SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|\n        SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n        SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n        SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n        SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n        SM-T719|SM-T725|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n        SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y|SM-X200|SM-T970"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n        KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome        /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n        TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n        Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n        ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n        ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n        W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n        \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n        PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n        PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n        PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n        PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n        YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n        B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n        TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n        TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n        TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n        TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n         Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n        SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n        EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n        SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n        MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n        MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n        MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n        Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n        Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n        S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09|AGS-L09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n        TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n        TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n        TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n        TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n        TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n        TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n        T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n        Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n        PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n        PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n        PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n        TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n        TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n        TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n        TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n        TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n        TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n        MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n        TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n        GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n        TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n        TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n        FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n        FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n        Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n        Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n        S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n        P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n        Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n        Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n        Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n        Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n        PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n        PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n        TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n        NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n        \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n        \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n        \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n        \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n        \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n        \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n        \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n        \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n        V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n        V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n        Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n        \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n        MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n        POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n        FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n        TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n        A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n        Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},P={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:R.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},b=[P.PS4,P.CHROME_BOOK,P.MAC,P.DELL,P.ASUS,P.UNKNOWN],C={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:R.UKNOWN},S={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",ANDROID_9:"android-9",UNKNOWN:R.UKNOWN.toLowerCase()},I={WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},G={...U,...H,...I,FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}},x={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},m={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},k=Object.keys(x).reduce((W,Y)=>(W[Y]=x[Y],W),{}),D=Object.keys(m).reduce((W,Y)=>(W[V[Y]]=m[Y],W),{});var K=Object.freeze({__proto__:null,BROWSERS:V,BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},BROWSER_VERSIONS_RE:D,BROWSER_VERSIONS_RE_MAP:m,DESKTOP_DEVICES:b,DEVICES:P,DEVICES_RE:G,GENERAL:R,MOBILES_RE:U,OS:C,OS_RE:I,OS_VERSIONS:S,OS_VERSIONS_RE:k,OS_VERSIONS_RE_MAP:x,TABLETS_RE:H});class de{constructor(){}test(Y,q){return"string"==typeof q&&(q=new RegExp(q)),q instanceof RegExp?q.test(Y):q&&Array.isArray(q.and)?q.and.every(ee=>this.test(Y,ee)):q&&Array.isArray(q.or)?q.or.some(ee=>this.test(Y,ee)):!(!q||!q.not||this.test(Y,q.not))}exec(Y,q){return"string"==typeof q&&(q=new RegExp(q)),q instanceof RegExp?q.exec(Y):q&&Array.isArray(q)?q.reduce((ee,Q)=>ee||this.exec(Y,Q),null):null}}var ie=function(W){return W.Mobile="mobile",W.Tablet="tablet",W.Desktop="desktop",W.Unknown="unknown",W}(ie||{}),te=function(W){return W.Portrait="portrait",W.Landscape="landscape",W}(te||{});const se="iPad";let z=(()=>{class W{constructor(q){this.platformId=q,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new de,this.deviceType="",this.orientation="",(0,g.UE)(this.platformId)&&typeof window<"u"&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}setDeviceInfo(q=this.userAgent){q!==this.userAgent&&(this.userAgent=q);const ee=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(ee.forEach(Q=>{this[Q.prop]=Object.keys(K[Q.const]).reduce((be,we)=>"device"===K[Q.const][we]&&(0,g.UE)(this.platformId)&&(this.reTree.test(this.userAgent,H[se])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(be[K[Q.const][we]]=se,Object):(be[K[Q.const][we]]=this.reTree.test(q,K[`${Q.const}_RE`][we]),be),{})}),ee.forEach(Q=>{this[Q.prop]=Object.keys(K[Q.const]).map(be=>K[Q.const][be]).reduce((be,we)=>"device"===Q.prop&&be===K[Q.const].ANDROID?this[Q.prop][we]?we:be:be===K[Q.const].UNKNOWN&&this[Q.prop][we]?we:be,K[Q.const].UNKNOWN)}),this.browser_version="0",this.browser!==V.UNKNOWN){const be=this.reTree.exec(q,D[this.browser]);be&&(this.browser_version=be[1])}this.orientation=typeof window<"u"&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?te.Landscape:te.Portrait:R.UKNOWN,this.deviceType=this.isTablet()?ie.Tablet:this.isMobile(this.userAgent)?ie.Mobile:this.isDesktop(this.userAgent)?ie.Desktop:ie.Unknown}getDeviceInfo(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}isMobile(q=this.userAgent){return!this.isTablet(q)&&!!Object.keys(U).find(Q=>this.reTree.test(q,U[Q]))}isTablet(q=this.userAgent){return!(!(0,g.UE)(this.platformId)||!(this.reTree.test(this.userAgent,H[se])||typeof navigator<"u"&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys(H).find(Q=>!!this.reTree.test(q,H[Q]))}isDesktop(q=this.userAgent){return(this.device!==P.UNKNOWN||!this.isMobile(q)&&!this.isTablet(q))&&b.indexOf(this.device)>-1}static#e=this.\u0275fac=function(ee){return new(ee||W)(r.KVO(r.Agw))};static#t=this.\u0275prov=r.jDH({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})()},9635:(Dt,ve,_)=>{"use strict";_.d(ve,{i9:()=>pe,Qs:()=>We});var r=_(467),g=_(4438);const R={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},V=new g.nKC("config",{providedIn:"root",factory:()=>({modules:R})});var P=_(177),b=_(345),C=_(9030),S=_(4402),I=_(9350),B=_(7707);function G(Ge,ut){const Fe="object"==typeof ut;return new Promise((tt,st)=>{const ct=new B.Ms({next:St=>{tt(St),ct.unsubscribe()},error:st,complete:()=>{Fe?tt(ut.defaultValue):st(new I.G)}});Ge.subscribe(ct)})}var x=_(8359),m=_(3726),k=_(2771),D=_(8750),K=_(1413),de=_(9974);function te(Ge,ut,...Fe){if(!0===ut)return void Ge();if(!1===ut)return;const tt=new B.Ms({next:()=>{tt.unsubscribe(),Ge()}});return(0,D.Tg)(ut(...Fe)).subscribe(tt)}var z=_(1397),W=_(152),Y=_(4341);const q=[[["","above-quill-editor-toolbar",""]],[["","quill-editor-toolbar",""]],[["","below-quill-editor-toolbar",""]]],ee=["[above-quill-editor-toolbar]","[quill-editor-toolbar]","[below-quill-editor-toolbar]"];function Q(Ge,ut){1&Ge&&g.nrm(0,"pre",0)}function be(Ge,ut){1&Ge&&g.nrm(0,"div",0)}function we(Ge,ut){if(1&Ge&&g.DNE(0,Q,1,0,"pre",0)(1,be,1,0),2&Ge){const Fe=g.XpG();g.vxM(0,Fe.preserve?0:1)}}function Ze(Ge,ut){1&Ge&&g.nrm(0,"pre",0)}function Ue(Ge,ut){1&Ge&&g.nrm(0,"div",0)}function Le(Ge,ut){if(1&Ge&&g.DNE(0,Ze,1,0,"pre",0)(1,Ue,1,0),2&Ge){const Fe=g.XpG();g.vxM(0,Fe.preserve?0:1)}}function _e(Ge,ut){1&Ge&&g.nrm(0,"pre",0)}function Re(Ge,ut){1&Ge&&g.nrm(0,"div",0)}const ae=(Ge,ut)=>Ge||ut||"html";let oe=(()=>{class Ge{constructor(Fe,tt){var st=this;this.config=tt,this.quill$=(0,C.v)((0,r.A)(function*(){if(!st.Quill){const ct=st.document.addEventListener;st.document.addEventListener=st.document.__zone_symbol__addEventListener||st.document.addEventListener;const St=yield Promise.resolve().then(_.t.bind(_,7436,19));st.document.addEventListener=ct,st.Quill=St.default?.default??St.default??St}return st.config.customOptions?.forEach(ct=>{const St=st.Quill.import(ct.import);St.whitelist=ct.whitelist,st.Quill.register(St,!0,st.config.suppressGlobalRegisterWarning)}),yield st.registerCustomModules(st.Quill,st.config.customModules,st.config.suppressGlobalRegisterWarning)})).pipe(function se(Ge,ut,Fe){let tt,st=!1;return Ge&&"object"==typeof Ge?({bufferSize:tt=1/0,windowTime:ut=1/0,refCount:st=!1,scheduler:Fe}=Ge):tt=Ge??1/0,function ie(Ge={}){const{connector:ut=(()=>new K.B),resetOnError:Fe=!0,resetOnComplete:tt=!0,resetOnRefCountZero:st=!0}=Ge;return ct=>{let St,Gt,it,Xe=0,wt=!1,at=!1;const vt=()=>{Gt?.unsubscribe(),Gt=void 0},$t=()=>{vt(),St=it=void 0,wt=at=!1},tn=()=>{const qt=St;$t(),qt?.unsubscribe()};return(0,de.N)((qt,Fn)=>{Xe++,!at&&!wt&&vt();const Nn=it=it??ut();Fn.add(()=>{Xe--,0===Xe&&!at&&!wt&&(Gt=te(tn,st))}),Nn.subscribe(Fn),!St&&Xe>0&&(St=new B.Ms({next:Ht=>Nn.next(Ht),error:Ht=>{at=!0,vt(),Gt=te($t,Fe,Ht),Nn.error(Ht)},complete:()=>{wt=!0,vt(),Gt=te($t,tt),Nn.complete()}}),(0,D.Tg)(qt).subscribe(St))})(ct)}}({connector:()=>new k.m(tt,ut,Fe),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:st})}({bufferSize:1,refCount:!0})),this.document=Fe.get(P.qQ),this.config||(this.config={modules:R})}getQuill(){return this.quill$}registerCustomModules(Fe,tt,st){return(0,r.A)(function*(){if(Array.isArray(tt))for(let{implementation:ct,path:St}of tt)(0,S.A)(ct)&&(ct=yield G(ct)),Fe.register(St,ct,st);return Fe})()}static#e=this.\u0275fac=function(tt){return new(tt||Ge)(g.KVO(g.zZn),g.KVO(V,8))};static#t=this.\u0275prov=g.jDH({token:Ge,factory:Ge.\u0275fac,providedIn:"root"})}return Ge})(),ge=(()=>{class Ge{constructor(){this.required=!1,this.customToolbarPosition="top",this.styles=null,this.strict=!0,this.customOptions=[],this.customModules=[],this.preserveWhitespace=!1,this.trimOnValidation=!1,this.compareValues=!1,this.filterNull=!1,this.defaultEmptyValue=null,this.onEditorCreated=new g.bkB,this.onEditorChanged=new g.bkB,this.onContentChanged=new g.bkB,this.onSelectionChanged=new g.bkB,this.onFocus=new g.bkB,this.onBlur=new g.bkB,this.onNativeFocus=new g.bkB,this.onNativeBlur=new g.bkB,this.disabled=!1,this.preserve=!1,this.toolbarPosition="top",this.subscription=null,this.quillSubscription=null,this.elementRef=(0,g.WQX)(g.aKT),this.document=(0,g.WQX)(P.qQ),this.cd=(0,g.WQX)(g.gRc),this.domSanitizer=(0,g.WQX)(b.up),this.platformId=(0,g.WQX)(g.Agw),this.renderer=(0,g.WQX)(g.sFG),this.zone=(0,g.WQX)(g.SKi),this.service=(0,g.WQX)(oe),this.valueGetter=(Fe,tt)=>{let st=tt.querySelector(".ql-editor").innerHTML;("<p><br></p>"===st||"<div><br></div>"===st)&&(st=this.defaultEmptyValue);let ct=st;const St=ae(this.format,this.service.config.format);if("text"===St)ct=Fe.getText();else if("object"===St)ct=Fe.getContents();else if("json"===St)try{ct=JSON.stringify(Fe.getContents())}catch{ct=Fe.getText()}return ct},this.valueSetter=(Fe,tt)=>{const st=ae(this.format,this.service.config.format);if("html"===st)return([!0,!1].includes(this.sanitize)?this.sanitize:this.service.config.sanitize||!1)&&(tt=this.domSanitizer.sanitize(g.WPN.HTML,tt)),Fe.clipboard.convert(tt);if("json"===st)try{return JSON.parse(tt)}catch{return[{insert:tt}]}return tt},this.selectionChangeHandler=(Fe,tt,st)=>{const ct=this.trackChanges||this.service.config.trackChanges,St=!Fe&&!!this.onModelTouched&&("user"===st||ct&&"all"===ct);!this.onBlur.observed&&!this.onFocus.observed&&!this.onSelectionChanged.observed&&!St||this.zone.run(()=>{null===Fe?this.onBlur.emit({editor:this.quillEditor,source:st}):null===tt&&this.onFocus.emit({editor:this.quillEditor,source:st}),this.onSelectionChanged.emit({editor:this.quillEditor,oldRange:tt,range:Fe,source:st}),St&&this.onModelTouched(),this.cd.markForCheck()})},this.textChangeHandler=(Fe,tt,st)=>{const ct=this.quillEditor.getText(),St=this.quillEditor.getContents();let Gt=this.editorElem.querySelector(".ql-editor").innerHTML;("<p><br></p>"===Gt||"<div><br></div>"===Gt)&&(Gt=this.defaultEmptyValue);const it=this.trackChanges||this.service.config.trackChanges,Xe=("user"===st||it&&"all"===it)&&!!this.onModelChange;!this.onContentChanged.observed&&!Xe||this.zone.run(()=>{Xe&&this.onModelChange(this.valueGetter(this.quillEditor,this.editorElem)),this.onContentChanged.emit({content:St,delta:Fe,editor:this.quillEditor,html:Gt,oldDelta:tt,source:st,text:ct}),this.cd.markForCheck()})},this.editorChangeHandler=(Fe,tt,st,ct)=>{if(this.onEditorChanged.observed)if("text-change"===Fe){const St=this.quillEditor.getText(),Gt=this.quillEditor.getContents();let it=this.editorElem.querySelector(".ql-editor").innerHTML;("<p><br></p>"===it||"<div><br></div>"===it)&&(it=this.defaultEmptyValue),this.zone.run(()=>{this.onEditorChanged.emit({content:Gt,delta:tt,editor:this.quillEditor,event:Fe,html:it,oldDelta:st,source:ct,text:St}),this.cd.markForCheck()})}else this.zone.run(()=>{this.onEditorChanged.emit({editor:this.quillEditor,event:Fe,oldRange:st,range:tt,source:ct}),this.cd.markForCheck()})}}static normalizeClassNames(Fe){return Fe.trim().split(" ").reduce((st,ct)=>{const St=ct.trim();return St&&st.push(St),st},[])}ngOnInit(){this.preserve=this.preserveWhitespace,this.toolbarPosition=this.customToolbarPosition}ngAfterViewInit(){(0,P.Vy)(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe((0,z.Z)(Fe=>{const tt=[this.service.registerCustomModules(Fe,this.customModules)],st=this.beforeRender??this.service.config.beforeRender;return st&&tt.push(st()),Promise.all(tt).then(()=>Fe)})).subscribe(Fe=>{this.editorElem=this.elementRef.nativeElement.querySelector("[quill-editor-element]");const tt=this.elementRef.nativeElement.querySelector("[quill-editor-toolbar]"),st=Object.assign({},this.modules||this.service.config.modules);tt?st.toolbar=tt:void 0===st.toolbar&&(st.toolbar=R.toolbar);let ct=void 0!==this.placeholder?this.placeholder:this.service.config.placeholder;void 0===ct&&(ct="Insert text here ..."),this.styles&&Object.keys(this.styles).forEach(vt=>{this.renderer.setStyle(this.editorElem,vt,this.styles[vt])}),this.classes&&this.addClasses(this.classes),this.customOptions.forEach(vt=>{const $t=Fe.import(vt.import);$t.whitelist=vt.whitelist,Fe.register($t,!0)});let St=this.bounds&&"self"===this.bounds?this.editorElem:this.bounds;St||(St=this.service.config.bounds?this.service.config.bounds:this.document.body);let Gt=this.debug;!Gt&&!1!==Gt&&this.service.config.debug&&(Gt=this.service.config.debug);let it=this.readOnly;!it&&!1!==this.readOnly&&(it=void 0!==this.service.config.readOnly&&this.service.config.readOnly);let Xe=this.defaultEmptyValue;this.service.config.hasOwnProperty("defaultEmptyValue")&&(Xe=this.service.config.defaultEmptyValue);let wt=this.scrollingContainer;!wt&&null!==this.scrollingContainer&&(wt=null===this.service.config.scrollingContainer||this.service.config.scrollingContainer?this.service.config.scrollingContainer:null);let at=this.formats;if(!at&&void 0===at&&(at=this.service.config.formats?[...this.service.config.formats]:null===this.service.config.formats?null:void 0),this.zone.runOutsideAngular(()=>{if(this.quillEditor=new Fe(this.editorElem,{bounds:St,debug:Gt,formats:at,modules:st,placeholder:ct,readOnly:it,defaultEmptyValue:Xe,scrollingContainer:wt,strict:this.strict,theme:this.theme||(this.service.config.theme?this.service.config.theme:"snow")}),this.onNativeBlur.observed&&(this.quillEditor.scroll.domNode.addEventListener("blur",()=>this.onNativeBlur.next({editor:this.quillEditor,source:"dom"})),this.quillEditor.getModule("toolbar").container.addEventListener("mousedown",vt=>vt.preventDefault())),this.onNativeFocus.observed&&this.quillEditor.scroll.domNode.addEventListener("focus",()=>this.onNativeFocus.next({editor:this.quillEditor,source:"dom"})),this.linkPlaceholder){const $t=this.quillEditor?.theme?.tooltip?.root?.querySelector("input[data-link]");$t?.dataset&&($t.dataset.link=this.linkPlaceholder)}}),this.content){if("text"===ae(this.format,this.service.config.format))this.quillEditor.setText(this.content,"silent");else{const $t=this.valueSetter(this.quillEditor,this.content);this.quillEditor.setContents($t,"silent")}this.quillEditor.getModule("history").clear()}this.setDisabledState(),this.addQuillEventListeners(),(this.onEditorCreated.observed||this.onValidatorChanged)&&requestAnimationFrame(()=>{this.onValidatorChanged&&this.onValidatorChanged(),this.onEditorCreated.emit(this.quillEditor),this.onEditorCreated.complete()})}))}ngOnDestroy(){this.dispose(),this.quillSubscription?.unsubscribe(),this.quillSubscription=null}ngOnChanges(Fe){if(this.quillEditor){if(Fe.readOnly&&this.quillEditor.enable(!Fe.readOnly.currentValue),Fe.placeholder&&(this.quillEditor.root.dataset.placeholder=Fe.placeholder.currentValue),Fe.defaultEmptyValue&&(this.quillEditor.root.dataset.defaultEmptyValue=Fe.defaultEmptyValue.currentValue),Fe.styles){const tt=Fe.styles.currentValue,st=Fe.styles.previousValue;st&&Object.keys(st).forEach(ct=>{this.renderer.removeStyle(this.editorElem,ct)}),tt&&Object.keys(tt).forEach(ct=>{this.renderer.setStyle(this.editorElem,ct,this.styles[ct])})}if(Fe.classes){const tt=Fe.classes.currentValue,st=Fe.classes.previousValue;st&&this.removeClasses(st),tt&&this.addClasses(tt)}Fe.debounceTime&&this.addQuillEventListeners()}}addClasses(Fe){Ge.normalizeClassNames(Fe).forEach(tt=>{this.renderer.addClass(this.editorElem,tt)})}removeClasses(Fe){Ge.normalizeClassNames(Fe).forEach(tt=>{this.renderer.removeClass(this.editorElem,tt)})}writeValue(Fe){if(this.filterNull&&null===Fe||(this.content=Fe,!this.quillEditor))return;const tt=ae(this.format,this.service.config.format),st=this.valueSetter(this.quillEditor,Fe);if(this.compareValues){const ct=this.quillEditor.getContents();if(JSON.stringify(ct)===JSON.stringify(st))return}Fe?"text"===tt?this.quillEditor.setText(Fe):this.quillEditor.setContents(st):this.quillEditor.setText("")}setDisabledState(Fe=this.disabled){this.disabled=Fe,this.quillEditor&&(Fe?(this.quillEditor.disable(),this.renderer.setAttribute(this.elementRef.nativeElement,"disabled","disabled")):(this.readOnly||this.quillEditor.enable(),this.renderer.removeAttribute(this.elementRef.nativeElement,"disabled")))}registerOnChange(Fe){this.onModelChange=Fe}registerOnTouched(Fe){this.onModelTouched=Fe}registerOnValidatorChange(Fe){this.onValidatorChanged=Fe}validate(){if(!this.quillEditor)return null;const Fe={};let tt=!0;const st=this.quillEditor.getText(),ct=this.trimOnValidation?st.trim().length:1===st.length&&0===st.trim().length?0:st.length-1,St=this.quillEditor.getContents().ops,Gt=St&&1===St.length&&["\n",""].includes(St[0].insert);return this.minLength&&ct&&ct<this.minLength&&(Fe.minLengthError={given:ct,minLength:this.minLength},tt=!1),this.maxLength&&ct>this.maxLength&&(Fe.maxLengthError={given:ct,maxLength:this.maxLength},tt=!1),this.required&&!ct&&Gt&&(Fe.requiredError={empty:!0},tt=!1),tt?null:Fe}addQuillEventListeners(){this.dispose(),this.zone.runOutsideAngular(()=>{this.subscription=new x.yU,this.subscription.add((0,m.R)(this.quillEditor,"selection-change").subscribe(([st,ct,St])=>{this.selectionChangeHandler(st,ct,St)}));let Fe=(0,m.R)(this.quillEditor,"text-change"),tt=(0,m.R)(this.quillEditor,"editor-change");"number"==typeof this.debounceTime&&(Fe=Fe.pipe((0,W.B)(this.debounceTime)),tt=tt.pipe((0,W.B)(this.debounceTime))),this.subscription.add(Fe.subscribe(([st,ct,St])=>{this.textChangeHandler(st,ct,St)})),this.subscription.add(tt.subscribe(([st,ct,St,Gt])=>{this.editorChangeHandler(st,ct,St,Gt)}))})}dispose(){null!==this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}static#e=this.\u0275fac=function(tt){return new(tt||Ge)};static#t=this.\u0275dir=g.FsC({type:Ge,inputs:{format:"format",theme:"theme",modules:"modules",debug:"debug",readOnly:"readOnly",placeholder:"placeholder",maxLength:"maxLength",minLength:"minLength",required:"required",formats:"formats",customToolbarPosition:"customToolbarPosition",sanitize:"sanitize",beforeRender:"beforeRender",styles:"styles",strict:"strict",scrollingContainer:"scrollingContainer",bounds:"bounds",customOptions:"customOptions",customModules:"customModules",trackChanges:"trackChanges",preserveWhitespace:"preserveWhitespace",classes:"classes",trimOnValidation:"trimOnValidation",linkPlaceholder:"linkPlaceholder",compareValues:"compareValues",filterNull:"filterNull",debounceTime:"debounceTime",defaultEmptyValue:"defaultEmptyValue",valueGetter:"valueGetter",valueSetter:"valueSetter"},outputs:{onEditorCreated:"onEditorCreated",onEditorChanged:"onEditorChanged",onContentChanged:"onContentChanged",onSelectionChanged:"onSelectionChanged",onFocus:"onFocus",onBlur:"onBlur",onNativeFocus:"onNativeFocus",onNativeBlur:"onNativeBlur"},features:[g.OA$]})}return Ge})(),pe=(()=>{class Ge extends ge{static#e=this.\u0275fac=(()=>{let Fe;return function(st){return(Fe||(Fe=g.xGo(Ge)))(st||Ge)}})();static#t=this.\u0275cmp=g.VBU({type:Ge,selectors:[["quill-editor"]],standalone:!0,features:[g.Jv_([{multi:!0,provide:Y.kq,useExisting:(0,g.Rfq)(()=>Ge)},{multi:!0,provide:Y.cz,useExisting:(0,g.Rfq)(()=>Ge)}]),g.Vt3,g.aNF],ngContentSelectors:ee,decls:5,vars:2,consts:[["quill-editor-element",""]],template:function(tt,st){1&tt&&(g.NAR(q),g.DNE(0,we,2,1),g.SdG(1),g.SdG(2,1),g.SdG(3,2),g.DNE(4,Le,2,1)),2&tt&&(g.vxM(0,"top"!==st.toolbarPosition?0:-1),g.R7$(4),g.vxM(4,"top"===st.toolbarPosition?4:-1))},dependencies:[P.MD],styles:["[_nghost-%COMP%]{display:inline-block}"]})}return Ge})(),Ae=(()=>{class Ge{constructor(Fe,tt){this.sanitizer=Fe,this.service=tt,this.content="",this.innerHTML="",this.themeClass="ql-snow"}ngOnChanges(Fe){if(Fe.theme?this.themeClass=`ql-${Fe.theme.currentValue||(this.service.config.theme?this.service.config.theme:"snow")} ngx-quill-view-html`:this.theme||(this.themeClass=`ql-${this.service.config.theme?this.service.config.theme:"snow"} ngx-quill-view-html`),Fe.content){const tt=Fe.content.currentValue,st=[!0,!1].includes(this.sanitize)?this.sanitize:this.service.config.sanitize||!1;this.innerHTML=st?tt:this.sanitizer.bypassSecurityTrustHtml(tt)}}static#e=this.\u0275fac=function(tt){return new(tt||Ge)(g.rXU(b.up),g.rXU(oe))};static#t=this.\u0275cmp=g.VBU({type:Ge,selectors:[["quill-view-html"]],inputs:{content:"content",theme:"theme",sanitize:"sanitize"},standalone:!0,features:[g.OA$,g.aNF],decls:2,vars:2,consts:[[1,"ql-container",3,"ngClass"],[1,"ql-editor",3,"innerHTML"]],template:function(tt,st){1&tt&&(g.j41(0,"div",0),g.nrm(1,"div",1),g.k0s()),2&tt&&(g.Y8G("ngClass",st.themeClass),g.R7$(),g.Y8G("innerHTML",st.innerHTML,g.npT))},dependencies:[P.MD,P.YU],styles:[".ql-container.ngx-quill-view-html{border:0}\n"],encapsulation:2})}return Ge})(),Pe=(()=>{class Ge{constructor(Fe,tt,st,ct,St,Gt){this.elementRef=Fe,this.renderer=tt,this.zone=st,this.service=ct,this.domSanitizer=St,this.platformId=Gt,this.strict=!0,this.customModules=[],this.customOptions=[],this.preserveWhitespace=!1,this.onEditorCreated=new g.bkB,this.preserve=!1,this.quillSubscription=null,this.valueSetter=(it,Xe)=>{const wt=ae(this.format,this.service.config.format);let at=Xe;if("text"===wt)it.setText(at);else{if("html"===wt)([!0,!1].includes(this.sanitize)?this.sanitize:this.service.config.sanitize||!1)&&(Xe=this.domSanitizer.sanitize(g.WPN.HTML,Xe)),at=it.clipboard.convert(Xe);else if("json"===wt)try{at=JSON.parse(Xe)}catch{at=[{insert:Xe}]}it.setContents(at)}}}ngOnInit(){this.preserve=this.preserveWhitespace}ngOnChanges(Fe){this.quillEditor&&Fe.content&&this.valueSetter(this.quillEditor,Fe.content.currentValue)}ngAfterViewInit(){(0,P.Vy)(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe((0,z.Z)(Fe=>{const tt=[this.service.registerCustomModules(Fe,this.customModules)],st=this.beforeRender??this.service.config.beforeRender;return st&&tt.push(st()),Promise.all(tt).then(()=>Fe)})).subscribe(Fe=>{const tt=Object.assign({},this.modules||this.service.config.modules);tt.toolbar=!1,this.customOptions.forEach(Gt=>{const it=Fe.import(Gt.import);it.whitelist=Gt.whitelist,Fe.register(it,!0)});let st=this.debug;!st&&!1!==st&&this.service.config.debug&&(st=this.service.config.debug);let ct=this.formats;!ct&&void 0===ct&&(ct=this.service.config.formats?Object.assign({},this.service.config.formats):null===this.service.config.formats?null:void 0);const St=this.theme||(this.service.config.theme?this.service.config.theme:"snow");this.editorElem=this.elementRef.nativeElement.querySelector("[quill-view-element]"),this.zone.runOutsideAngular(()=>{this.quillEditor=new Fe(this.editorElem,{debug:st,formats:ct,modules:tt,readOnly:!0,strict:this.strict,theme:St})}),this.renderer.addClass(this.editorElem,"ngx-quill-view"),this.content&&this.valueSetter(this.quillEditor,this.content),this.onEditorCreated.observers.length&&requestAnimationFrame(()=>{this.onEditorCreated.emit(this.quillEditor),this.onEditorCreated.complete()})}))}ngOnDestroy(){this.quillSubscription?.unsubscribe(),this.quillSubscription=null}static#e=this.\u0275fac=function(tt){return new(tt||Ge)(g.rXU(g.aKT),g.rXU(g.sFG),g.rXU(g.SKi),g.rXU(oe),g.rXU(b.up),g.rXU(g.Agw))};static#t=this.\u0275cmp=g.VBU({type:Ge,selectors:[["quill-view"]],inputs:{format:"format",theme:"theme",modules:"modules",debug:"debug",formats:"formats",sanitize:"sanitize",beforeRender:"beforeRender",strict:"strict",content:"content",customModules:"customModules",customOptions:"customOptions",preserveWhitespace:"preserveWhitespace"},outputs:{onEditorCreated:"onEditorCreated"},standalone:!0,features:[g.OA$,g.aNF],decls:2,vars:1,consts:[["quill-view-element",""]],template:function(tt,st){1&tt&&g.DNE(0,_e,1,0,"pre",0)(1,Re,1,0),2&tt&&g.vxM(0,st.preserve?0:1)},dependencies:[P.MD],styles:[".ql-container.ngx-quill-view{border:0}\n"],encapsulation:2})}return Ge})(),We=(()=>{class Ge{static forRoot(Fe){return{ngModule:Ge,providers:[{provide:V,useValue:Fe}]}}static#e=this.\u0275fac=function(tt){return new(tt||Ge)};static#t=this.\u0275mod=g.$C({type:Ge});static#n=this.\u0275inj=g.G2t({imports:[pe,Pe,Ae]})}return Ge})()},6554:(Dt,ve,_)=>{"use strict";_.d(ve,{PO:()=>z,et:()=>se,ex:()=>de});var r=_(4438),g=_(4412),R=_(1413),V=_(5964),U=_(6977),H=_(9969),P=_(177),b=_(345);const C=["overlay"],S=["*"];function I(W,Y){1&W&&r.nrm(0,"div")}function B(W,Y){if(1&W&&(r.j41(0,"div"),r.DNE(1,I,1,0,"div",6),r.k0s()),2&W){const q=r.XpG(2);r.HbH(q.spinner.class),r.xc7("color",q.spinner.color),r.R7$(),r.Y8G("ngForOf",q.spinner.divArray)}}function G(W,Y){if(1&W&&(r.nrm(0,"div",7),r.nI1(1,"safeHtml")),2&W){const q=r.XpG(2);r.Y8G("innerHTML",r.bMT(1,1,q.template),r.npT)}}function x(W,Y){if(1&W&&(r.j41(0,"div",2,0),r.DNE(2,B,2,5,"div",3)(3,G,2,3,"div",4),r.j41(4,"div",5),r.SdG(5),r.k0s()()),2&W){const q=r.XpG();r.xc7("background-color",q.spinner.bdColor)("z-index",q.spinner.zIndex)("position",q.spinner.fullScreen?"fixed":"absolute"),r.Y8G("@.disabled",q.disableAnimation)("@fadeIn","in"),r.R7$(2),r.Y8G("ngIf",!q.template),r.R7$(),r.Y8G("ngIf",q.template),r.R7$(),r.xc7("z-index",q.spinner.zIndex)}}const m={"ball-8bits":16,"ball-atom":4,"ball-beat":3,"ball-circus":5,"ball-climbing-dot":4,"ball-clip-rotate":1,"ball-clip-rotate-multiple":2,"ball-clip-rotate-pulse":2,"ball-elastic-dots":5,"ball-fall":3,"ball-fussion":4,"ball-grid-beat":9,"ball-grid-pulse":9,"ball-newton-cradle":4,"ball-pulse":3,"ball-pulse-rise":5,"ball-pulse-sync":3,"ball-rotate":1,"ball-running-dots":5,"ball-scale":1,"ball-scale-multiple":3,"ball-scale-pulse":2,"ball-scale-ripple":1,"ball-scale-ripple-multiple":3,"ball-spin":8,"ball-spin-clockwise":8,"ball-spin-clockwise-fade":8,"ball-spin-clockwise-fade-rotating":8,"ball-spin-fade":8,"ball-spin-fade-rotating":8,"ball-spin-rotate":2,"ball-square-clockwise-spin":8,"ball-square-spin":8,"ball-triangle-path":3,"ball-zig-zag":2,"ball-zig-zag-deflect":2,cog:1,"cube-transition":2,fire:3,"line-scale":5,"line-scale-party":5,"line-scale-pulse-out":5,"line-scale-pulse-out-rapid":5,"line-spin-clockwise-fade":8,"line-spin-clockwise-fade-rotating":8,"line-spin-fade":8,"line-spin-fade-rotating":8,pacman:6,"square-jelly-box":2,"square-loader":1,"square-spin":1,timer:1,"triangle-skew-spin":1},D="primary";class K{constructor(Y){Object.assign(this,Y)}static create(Y){return!Y?.template&&!Y?.type&&console.warn('[ngx-spinner]: Property "type" is missed. Please, provide animation type to <ngx-spinner> component\n        and ensure css is added to angular.json file'),new K(Y)}}let de=(()=>{class W{constructor(){this.spinnerObservable=new g.t(null)}getSpinner(q){return this.spinnerObservable.asObservable().pipe((0,V.p)(ee=>ee&&ee.name===q))}show(q=D,ee){return new Promise((Q,be)=>{setTimeout(()=>{ee&&Object.keys(ee).length?(ee.name=q,this.spinnerObservable.next(new K({...ee,show:!0})),Q(!0)):(this.spinnerObservable.next(new K({name:q,show:!0})),Q(!0))},10)})}hide(q=D,ee=10){return new Promise((Q,be)=>{setTimeout(()=>{this.spinnerObservable.next(new K({name:q,show:!1})),Q(!0)},ee)})}static#e=this.\u0275fac=function(ee){return new(ee||W)};static#t=this.\u0275prov=r.jDH({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();const ie=new r.nKC("NGX_SPINNER_CONFIG");let te=(()=>{class W{constructor(q){this._sanitizer=q}transform(q){if(q)return this._sanitizer.bypassSecurityTrustHtml(q)}static#e=this.\u0275fac=function(ee){return new(ee||W)(r.rXU(b.up,16))};static#t=this.\u0275pipe=r.EJ8({name:"safeHtml",type:W,pure:!0})}return W})(),se=(()=>{class W{constructor(q,ee,Q,be){this.spinnerService=q,this.changeDetector=ee,this.elementRef=Q,this.globalConfig=be,this.disableAnimation=!1,this.spinner=new K,this.ngUnsubscribe=new R.B,this.setDefaultOptions=()=>{const{type:we}=this.globalConfig??{};this.spinner=K.create({name:this.name,bdColor:this.bdColor,size:this.size,color:this.color,type:this.type??we,fullScreen:this.fullScreen,divArray:this.divArray,divCount:this.divCount,show:this.show,zIndex:this.zIndex,template:this.template,showSpinner:this.showSpinner})},this.bdColor="rgba(51,51,51,0.8)",this.zIndex=99999,this.color="#fff",this.size="large",this.fullScreen=!0,this.name=D,this.template=null,this.showSpinner=!1,this.divArray=[],this.divCount=0,this.show=!1}initObservable(){this.spinnerService.getSpinner(this.name).pipe((0,U.Q)(this.ngUnsubscribe)).subscribe(q=>{this.setDefaultOptions(),Object.assign(this.spinner,q),q.show&&this.onInputChange(),this.changeDetector.detectChanges()})}ngOnInit(){this.setDefaultOptions(),this.initObservable()}isSpinnerZone(q){return q===this.elementRef.nativeElement.parentElement||q.parentNode&&this.isSpinnerZone(q.parentNode)}ngOnChanges(q){for(const ee in q)if(ee){const Q=q[ee];if(Q.isFirstChange())return;typeof Q.currentValue<"u"&&Q.currentValue!==Q.previousValue&&""!==Q.currentValue&&(this.spinner[ee]=Q.currentValue,"showSpinner"===ee&&(Q.currentValue?this.spinnerService.show(this.spinner.name,this.spinner):this.spinnerService.hide(this.spinner.name)),"name"===ee&&this.initObservable())}}getClass(q,ee){this.spinner.divCount=m[q],this.spinner.divArray=Array(this.spinner.divCount).fill(0).map((be,we)=>we);let Q="";switch(ee.toLowerCase()){case"small":Q="la-sm";break;case"medium":Q="la-2x";break;case"large":Q="la-3x"}return"la-"+q+" "+Q}onInputChange(){this.spinner.class=this.getClass(this.spinner.type,this.spinner.size)}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}static#e=this.\u0275fac=function(ee){return new(ee||W)(r.rXU(de),r.rXU(r.gRc),r.rXU(r.aKT),r.rXU(ie,8))};static#t=this.\u0275cmp=r.VBU({type:W,selectors:[["ngx-spinner"]],viewQuery:function(ee,Q){if(1&ee&&r.GBs(C,5),2&ee){let be;r.mGM(be=r.lsd())&&(Q.spinnerDOM=be.first)}},inputs:{bdColor:"bdColor",size:"size",color:"color",type:"type",fullScreen:"fullScreen",name:"name",zIndex:"zIndex",template:"template",showSpinner:"showSpinner",disableAnimation:"disableAnimation"},features:[r.OA$],ngContentSelectors:S,decls:1,vars:1,consts:[["overlay",""],["class","ngx-spinner-overlay",3,"background-color","z-index","position",4,"ngIf"],[1,"ngx-spinner-overlay"],[3,"class","color",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[1,"loading-text"],[4,"ngFor","ngForOf"],[3,"innerHTML"]],template:function(ee,Q){1&ee&&(r.NAR(),r.DNE(0,x,6,12,"div",1)),2&ee&&r.Y8G("ngIf",Q.spinner.show)},dependencies:[P.Sq,P.bT,te],styles:[".ngx-spinner-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%}.ngx-spinner-overlay[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.loading-text){top:50%;left:50%;margin:0;position:absolute;transform:translate(-50%,-50%)}.loading-text[_ngcontent-%COMP%]{position:absolute;top:60%;left:50%;transform:translate(-50%,-60%)}"],data:{animation:[(0,H.hZ)("fadeIn",[(0,H.wk)("in",(0,H.iF)({opacity:1})),(0,H.kY)(":enter",[(0,H.iF)({opacity:0}),(0,H.i0)(300)]),(0,H.kY)(":leave",(0,H.i0)(200,(0,H.iF)({opacity:0})))])]},changeDetection:0})}return W})(),z=(()=>{class W{static forRoot(q){return{ngModule:W,providers:[{provide:ie,useValue:q}]}}static#e=this.\u0275fac=function(ee){return new(ee||W)};static#t=this.\u0275mod=r.$C({type:W});static#n=this.\u0275inj=r.G2t({imports:[P.MD]})}return W})()},1068:(Dt,ve,_)=>{"use strict";_.d(ve,{y1:()=>Zo});var r={};_.r(r),_.d(r,{VERSION:()=>g,after:()=>An,all:()=>Qi,allKeys:()=>bn,any:()=>ko,assign:()=>fr,before:()=>Qn,bind:()=>c,bindAll:()=>X,chain:()=>or,chunk:()=>Mo,clone:()=>on,collect:()=>ln,compact:()=>Ho,compose:()=>pn,constant:()=>it,contains:()=>Zr,countBy:()=>Io,create:()=>pr,debounce:()=>At,default:()=>d,defaults:()=>Pn,defer:()=>ke,delay:()=>Ce,detect:()=>si,difference:()=>Uo,drop:()=>Wi,each:()=>Jr,escape:()=>xe,every:()=>Qi,extend:()=>ir,extendOwn:()=>fr,filter:()=>ji,find:()=>si,findIndex:()=>Ci,findKey:()=>Dr,findLastIndex:()=>Ri,findWhere:()=>Ir,first:()=>Hn,flatten:()=>wi,foldl:()=>Ao,foldr:()=>Hi,forEach:()=>Jr,functions:()=>In,get:()=>_r,groupBy:()=>oo,has:()=>vn,head:()=>Hn,identity:()=>di,include:()=>Zr,includes:()=>Zr,indexBy:()=>Fo,indexOf:()=>fi,initial:()=>Ai,inject:()=>Ao,intersection:()=>Ko,invert:()=>Dn,invoke:()=>xo,isArguments:()=>ct,isArray:()=>Fe,isArrayBuffer:()=>Re,isBoolean:()=>q,isDataView:()=>ut,isDate:()=>Ze,isElement:()=>ee,isEmpty:()=>yn,isEqual:()=>yr,isError:()=>Le,isFinite:()=>St,isFunction:()=>ge,isMap:()=>ot,isMatch:()=>Ln,isNaN:()=>Gt,isNull:()=>W,isNumber:()=>we,isObject:()=>z,isRegExp:()=>Ue,isSet:()=>Ye,isString:()=>be,isSymbol:()=>_e,isTypedArray:()=>qt,isUndefined:()=>Y,isWeakMap:()=>He,isWeakSet:()=>bt,iteratee:()=>Yr,keys:()=>jt,last:()=>Wo,lastIndexOf:()=>Xr,map:()=>ln,mapObject:()=>Oe,matcher:()=>dr,matches:()=>dr,max:()=>pi,memoize:()=>he,methods:()=>In,min:()=>Jo,mixin:()=>De,negate:()=>Kt,noop:()=>Ke,now:()=>xt,object:()=>zo,omit:()=>Bo,once:()=>Zn,pairs:()=>Zt,partial:()=>nt,partition:()=>ai,pick:()=>Cs,pluck:()=>Do,property:()=>gr,propertyOf:()=>ze,random:()=>yt,range:()=>Zo,reduce:()=>Ao,reduceRight:()=>Hi,reject:()=>wo,rest:()=>Wi,restArguments:()=>se,result:()=>Vn,sample:()=>$o,select:()=>ji,shuffle:()=>ro,size:()=>Lo,some:()=>ko,sortBy:()=>Si,sortedIndex:()=>Pi,tail:()=>Wi,take:()=>Hn,tap:()=>So,template:()=>rn,templateSettings:()=>je,throttle:()=>ht,times:()=>Tt,toArray:()=>gi,toPath:()=>qr,transpose:()=>Yi,unescape:()=>Me,union:()=>ps,uniq:()=>Ui,unique:()=>Ui,uniqueId:()=>Wn,unzip:()=>Yi,values:()=>Lt,where:()=>ei,without:()=>Di,wrap:()=>Et,zip:()=>so});var g="1.13.6",R="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},V=Array.prototype,U=Object.prototype,H=typeof Symbol<"u"?Symbol.prototype:null,P=V.push,b=V.slice,C=U.toString,S=U.hasOwnProperty,I=typeof ArrayBuffer<"u",B=typeof DataView<"u",G=Array.isArray,x=Object.keys,m=Object.create,k=I&&ArrayBuffer.isView,D=isNaN,K=isFinite,de=!{toString:null}.propertyIsEnumerable("toString"),ie=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],te=Math.pow(2,53)-1;function se(h,A){return A=null==A?h.length-1:+A,function(){for(var ne=Math.max(arguments.length-A,0),ue=Array(ne),Ee=0;Ee<ne;Ee++)ue[Ee]=arguments[Ee+A];switch(A){case 0:return h.call(this,ue);case 1:return h.call(this,arguments[0],ue);case 2:return h.call(this,arguments[0],arguments[1],ue)}var Ie=Array(A+1);for(Ee=0;Ee<A;Ee++)Ie[Ee]=arguments[Ee];return Ie[A]=ue,h.apply(this,Ie)}}function z(h){var A=typeof h;return"function"===A||"object"===A&&!!h}function W(h){return null===h}function Y(h){return void 0===h}function q(h){return!0===h||!1===h||"[object Boolean]"===C.call(h)}function ee(h){return!(!h||1!==h.nodeType)}function Q(h){var A="[object "+h+"]";return function(ne){return C.call(ne)===A}}const be=Q("String"),we=Q("Number"),Ze=Q("Date"),Ue=Q("RegExp"),Le=Q("Error"),_e=Q("Symbol"),Re=Q("ArrayBuffer");var ae=Q("Function");"object"!=typeof Int8Array&&"function"!=typeof(R.document&&R.document.childNodes)&&(ae=function(h){return"function"==typeof h||!1});const ge=ae,pe=Q("Object");var Ae=B&&pe(new DataView(new ArrayBuffer(8))),Pe=typeof Map<"u"&&pe(new Map),We=Q("DataView");const ut=Ae?function Ge(h){return null!=h&&ge(h.getInt8)&&Re(h.buffer)}:We,Fe=G||Q("Array");function tt(h,A){return null!=h&&S.call(h,A)}var st=Q("Arguments");!function(){st(arguments)||(st=function(h){return tt(h,"callee")})}();const ct=st;function St(h){return!_e(h)&&K(h)&&!isNaN(parseFloat(h))}function Gt(h){return we(h)&&D(h)}function it(h){return function(){return h}}function Xe(h){return function(A){var ne=h(A);return"number"==typeof ne&&ne>=0&&ne<=te}}function wt(h){return function(A){return A?.[h]}}const at=wt("byteLength"),vt=Xe(at);var $t=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const qt=I?function tn(h){return k?k(h)&&!ut(h):vt(h)&&$t.test(C.call(h))}:it(!1),Fn=wt("length");function Ht(h,A){A=function Nn(h){for(var A={},ne=h.length,ue=0;ue<ne;++ue)A[h[ue]]=!0;return{contains:function(Ee){return!0===A[Ee]},push:function(Ee){return A[Ee]=!0,h.push(Ee)}}}(A);var ne=ie.length,ue=h.constructor,Ee=ge(ue)&&ue.prototype||U,Ie="constructor";for(tt(h,Ie)&&!A.contains(Ie)&&A.push(Ie);ne--;)(Ie=ie[ne])in h&&h[Ie]!==Ee[Ie]&&!A.contains(Ie)&&A.push(Ie)}function jt(h){if(!z(h))return[];if(x)return x(h);var A=[];for(var ne in h)tt(h,ne)&&A.push(ne);return de&&Ht(h,A),A}function yn(h){if(null==h)return!0;var A=Fn(h);return"number"==typeof A&&(Fe(h)||be(h)||ct(h))?0===A:0===Fn(jt(h))}function Ln(h,A){var ne=jt(A),ue=ne.length;if(null==h)return!ue;for(var Ee=Object(h),Ie=0;Ie<ue;Ie++){var et=ne[Ie];if(A[et]!==Ee[et]||!(et in Ee))return!1}return!0}function mn(h){return h instanceof mn?h:this instanceof mn?void(this._wrapped=h):new mn(h)}function Fr(h){return new Uint8Array(h.buffer||h,h.byteOffset||0,at(h))}mn.VERSION=g,mn.prototype.valueOf=mn.prototype.toJSON=mn.prototype.value=function(){return this._wrapped},mn.prototype.toString=function(){return String(this._wrapped)};var lr="[object DataView]";function bi(h,A,ne,ue){if(h===A)return 0!==h||1/h==1/A;if(null==h||null==A)return!1;if(h!=h)return A!=A;var Ee=typeof h;return("function"===Ee||"object"===Ee||"object"==typeof A)&&hn(h,A,ne,ue)}function hn(h,A,ne,ue){h instanceof mn&&(h=h._wrapped),A instanceof mn&&(A=A._wrapped);var Ee=C.call(h);if(Ee!==C.call(A))return!1;if(Ae&&"[object Object]"==Ee&&ut(h)){if(!ut(A))return!1;Ee=lr}switch(Ee){case"[object RegExp]":case"[object String]":return""+h==""+A;case"[object Number]":return+h!=+h?+A!=+A:0==+h?1/+h==1/A:+h==+A;case"[object Date]":case"[object Boolean]":return+h==+A;case"[object Symbol]":return H.valueOf.call(h)===H.valueOf.call(A);case"[object ArrayBuffer]":case lr:return hn(Fr(h),Fr(A),ne,ue)}var Ie="[object Array]"===Ee;if(!Ie&&qt(h)){if(at(h)!==at(A))return!1;if(h.buffer===A.buffer&&h.byteOffset===A.byteOffset)return!0;Ie=!0}if(!Ie){if("object"!=typeof h||"object"!=typeof A)return!1;var gt=h.constructor,Vt=A.constructor;if(gt!==Vt&&!(ge(gt)&&gt instanceof gt&&ge(Vt)&&Vt instanceof Vt)&&"constructor"in h&&"constructor"in A)return!1}ue=ue||[];for(var Ut=(ne=ne||[]).length;Ut--;)if(ne[Ut]===h)return ue[Ut]===A;if(ne.push(h),ue.push(A),Ie){if((Ut=h.length)!==A.length)return!1;for(;Ut--;)if(!bi(h[Ut],A[Ut],ne,ue))return!1}else{var fn,Yt=jt(h);if(Ut=Yt.length,jt(A).length!==Ut)return!1;for(;Ut--;)if(!tt(A,fn=Yt[Ut])||!bi(h[fn],A[fn],ne,ue))return!1}return ne.pop(),ue.pop(),!0}function yr(h,A){return bi(h,A)}function bn(h){if(!z(h))return[];var A=[];for(var ne in h)A.push(ne);return de&&Ht(h,A),A}function Tn(h){var A=Fn(h);return function(ne){if(null==ne)return!1;var ue=bn(ne);if(Fn(ue))return!1;for(var Ee=0;Ee<A;Ee++)if(!ge(ne[h[Ee]]))return!1;return h!==Ar||!ge(ne[_n])}}var _n="forEach",jn=["clear","delete"],Jn=["get","has","set"],Rr=jn.concat(_n,Jn),Ar=jn.concat(Jn),qe=["add"].concat(jn,_n,"has");const ot=Pe?Tn(Rr):Q("Map"),He=Pe?Tn(Ar):Q("WeakMap"),Ye=Pe?Tn(qe):Q("Set"),bt=Q("WeakSet");function Lt(h){for(var A=jt(h),ne=A.length,ue=Array(ne),Ee=0;Ee<ne;Ee++)ue[Ee]=h[A[Ee]];return ue}function Zt(h){for(var A=jt(h),ne=A.length,ue=Array(ne),Ee=0;Ee<ne;Ee++)ue[Ee]=[A[Ee],h[A[Ee]]];return ue}function Dn(h){for(var A={},ne=jt(h),ue=0,Ee=ne.length;ue<Ee;ue++)A[h[ne[ue]]]=ne[ue];return A}function In(h){var A=[];for(var ne in h)ge(h[ne])&&A.push(ne);return A.sort()}function nr(h,A){return function(ne){var ue=arguments.length;if(A&&(ne=Object(ne)),ue<2||null==ne)return ne;for(var Ee=1;Ee<ue;Ee++)for(var Ie=arguments[Ee],et=h(Ie),gt=et.length,Vt=0;Vt<gt;Vt++){var Ut=et[Vt];(!A||void 0===ne[Ut])&&(ne[Ut]=Ie[Ut])}return ne}}const ir=nr(bn),fr=nr(jt),Pn=nr(bn,!0);function Bi(h){if(!z(h))return{};if(m)return m(h);var A=function(){};A.prototype=h;var ne=new A;return A.prototype=null,ne}function pr(h,A){var ne=Bi(h);return A&&fr(ne,A),ne}function on(h){return z(h)?Fe(h)?h.slice():ir({},h):h}function So(h,A){return A(h),h}function qr(h){return Fe(h)?h:[h]}function ui(h){return mn.toPath(h)}function Qr(h,A){for(var ne=A.length,ue=0;ue<ne;ue++){if(null==h)return;h=h[A[ue]]}return ne?h:void 0}function _r(h,A,ne){var ue=Qr(h,ui(A));return Y(ue)?ne:ue}function vn(h,A){for(var ne=(A=ui(A)).length,ue=0;ue<ne;ue++){var Ee=A[ue];if(!tt(h,Ee))return!1;h=h[Ee]}return!!ne}function di(h){return h}function dr(h){return h=fr({},h),function(A){return Ln(A,h)}}function gr(h){return h=ui(h),function(A){return Qr(A,h)}}function Pr(h,A,ne){if(void 0===A)return h;switch(ne??3){case 1:return function(ue){return h.call(A,ue)};case 3:return function(ue,Ee,Ie){return h.call(A,ue,Ee,Ie)};case 4:return function(ue,Ee,Ie,et){return h.call(A,ue,Ee,Ie,et)}}return function(){return h.apply(A,arguments)}}function wr(h,A,ne){return null==h?di:ge(h)?Pr(h,A,ne):z(h)&&!Fe(h)?dr(h):gr(h)}function Yr(h,A){return wr(h,A,1/0)}function $n(h,A,ne){return mn.iteratee!==Yr?mn.iteratee(h,A):wr(h,A,ne)}function Oe(h,A,ne){A=$n(A,ne);for(var ue=jt(h),Ee=ue.length,Ie={},et=0;et<Ee;et++){var gt=ue[et];Ie[gt]=A(h[gt],gt,h)}return Ie}function Ke(){}function ze(h){return null==h?Ke:function(A){return _r(h,A)}}function Tt(h,A,ne){var ue=Array(Math.max(0,h));A=Pr(A,ne,1);for(var Ee=0;Ee<h;Ee++)ue[Ee]=A(Ee);return ue}function yt(h,A){return null==A&&(A=h,h=0),h+Math.floor(Math.random()*(A-h+1))}mn.toPath=qr,mn.iteratee=Yr;const xt=Date.now||function(){return(new Date).getTime()};function Ft(h){var A=function(Ie){return h[Ie]},ne="(?:"+jt(h).join("|")+")",ue=RegExp(ne),Ee=RegExp(ne,"g");return function(Ie){return ue.test(Ie=null==Ie?"":""+Ie)?Ie.replace(Ee,A):Ie}}const Be={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},xe=Ft(Be),Me=Ft(Dn(Be)),je=mn.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var pt=/(.)^/,Rt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},nn=/\\|'|\r|\n|\u2028|\u2029/g;function an(h){return"\\"+Rt[h]}var en=/^\s*(\w|\$)+\s*$/;function rn(h,A,ne){!A&&ne&&(A=ne),A=Pn({},A,mn.templateSettings);var ue=RegExp([(A.escape||pt).source,(A.interpolate||pt).source,(A.evaluate||pt).source].join("|")+"|$","g"),Ee=0,Ie="__p+='";h.replace(ue,function(Ut,Yt,fn,mr,Br){return Ie+=h.slice(Ee,Br).replace(nn,an),Ee=Br+Ut.length,Yt?Ie+="'+\n((__t=("+Yt+"))==null?'':_.escape(__t))+\n'":fn?Ie+="'+\n((__t=("+fn+"))==null?'':__t)+\n'":mr&&(Ie+="';\n"+mr+"\n__p+='"),Ut}),Ie+="';\n";var gt,et=A.variable;if(et){if(!en.test(et))throw new Error("variable is not a bare identifier: "+et)}else Ie="with(obj||{}){\n"+Ie+"}\n",et="obj";Ie="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+Ie+"return __p;\n";try{gt=new Function(et,"_",Ie)}catch(Ut){throw Ut.source=Ie,Ut}var Vt=function(Ut){return gt.call(this,Ut,mn)};return Vt.source="function("+et+"){\n"+Ie+"}",Vt}function Vn(h,A,ne){var ue=(A=ui(A)).length;if(!ue)return ge(ne)?ne.call(h):ne;for(var Ee=0;Ee<ue;Ee++){var Ie=h?.[A[Ee]];void 0===Ie&&(Ie=ne,Ee=ue),h=ge(Ie)?Ie.call(h):Ie}return h}var En=0;function Wn(h){var A=++En+"";return h?h+A:A}function or(h){var A=mn(h);return A._chain=!0,A}function br(h,A,ne,ue,Ee){if(!(ue instanceof A))return h.apply(ne,Ee);var Ie=Bi(h.prototype),et=h.apply(Ie,Ee);return z(et)?et:Ie}var un=se(function(h,A){var ne=un.placeholder,ue=function(){for(var Ee=0,Ie=A.length,et=Array(Ie),gt=0;gt<Ie;gt++)et[gt]=A[gt]===ne?arguments[Ee++]:A[gt];for(;Ee<arguments.length;)et.push(arguments[Ee++]);return br(h,ue,this,this,et)};return ue});un.placeholder=mn;const nt=un,c=se(function(h,A,ne){if(!ge(h))throw new TypeError("Bind must be called on a function");var ue=se(function(Ee){return br(h,ue,A,this,ne.concat(Ee))});return ue}),u=Xe(Fn);function T(h,A,ne,ue){if(ue=ue||[],A||0===A){if(A<=0)return ue.concat(h)}else A=1/0;for(var Ee=ue.length,Ie=0,et=Fn(h);Ie<et;Ie++){var gt=h[Ie];if(u(gt)&&(Fe(gt)||ct(gt)))if(A>1)T(gt,A-1,ne,ue),Ee=ue.length;else for(var Vt=0,Ut=gt.length;Vt<Ut;)ue[Ee++]=gt[Vt++];else ne||(ue[Ee++]=gt)}return ue}const X=se(function(h,A){var ne=(A=T(A,!1,!1)).length;if(ne<1)throw new Error("bindAll must be passed function names");for(;ne--;){var ue=A[ne];h[ue]=c(h[ue],h)}return h});function he(h,A){var ne=function(ue){var Ee=ne.cache,Ie=""+(A?A.apply(this,arguments):ue);return tt(Ee,Ie)||(Ee[Ie]=h.apply(this,arguments)),Ee[Ie]};return ne.cache={},ne}const Ce=se(function(h,A,ne){return setTimeout(function(){return h.apply(null,ne)},A)}),ke=nt(Ce,mn,1);function ht(h,A,ne){var ue,Ee,Ie,et,gt=0;ne||(ne={});var Vt=function(){gt=!1===ne.leading?0:xt(),ue=null,et=h.apply(Ee,Ie),ue||(Ee=Ie=null)},Ut=function(){var Yt=xt();!gt&&!1===ne.leading&&(gt=Yt);var fn=A-(Yt-gt);return Ee=this,Ie=arguments,fn<=0||fn>A?(ue&&(clearTimeout(ue),ue=null),gt=Yt,et=h.apply(Ee,Ie),ue||(Ee=Ie=null)):!ue&&!1!==ne.trailing&&(ue=setTimeout(Vt,fn)),et};return Ut.cancel=function(){clearTimeout(ue),gt=0,ue=Ee=Ie=null},Ut}function At(h,A,ne){var ue,Ee,Ie,et,gt,Vt=function(){var Yt=xt()-Ee;A>Yt?ue=setTimeout(Vt,A-Yt):(ue=null,ne||(et=h.apply(gt,Ie)),ue||(Ie=gt=null))},Ut=se(function(Yt){return gt=this,Ie=Yt,Ee=xt(),ue||(ue=setTimeout(Vt,A),ne&&(et=h.apply(gt,Ie))),et});return Ut.cancel=function(){clearTimeout(ue),ue=Ie=gt=null},Ut}function Et(h,A){return nt(A,h)}function Kt(h){return function(){return!h.apply(this,arguments)}}function pn(){var h=arguments,A=h.length-1;return function(){for(var ne=A,ue=h[A].apply(this,arguments);ne--;)ue=h[ne].call(this,ue);return ue}}function An(h,A){return function(){if(--h<1)return A.apply(this,arguments)}}function Qn(h,A){var ne;return function(){return--h>0&&(ne=A.apply(this,arguments)),h<=1&&(A=null),ne}}const Zn=nt(Qn,2);function Dr(h,A,ne){A=$n(A,ne);for(var Ee,ue=jt(h),Ie=0,et=ue.length;Ie<et;Ie++)if(A(h[Ee=ue[Ie]],Ee,h))return Ee}function hi(h){return function(A,ne,ue){ne=$n(ne,ue);for(var Ee=Fn(A),Ie=h>0?0:Ee-1;Ie>=0&&Ie<Ee;Ie+=h)if(ne(A[Ie],Ie,A))return Ie;return-1}}const Ci=hi(1),Ri=hi(-1);function Pi(h,A,ne,ue){for(var Ee=(ne=$n(ne,ue,1))(A),Ie=0,et=Fn(h);Ie<et;){var gt=Math.floor((Ie+et)/2);ne(h[gt])<Ee?Ie=gt+1:et=gt}return Ie}function zr(h,A,ne){return function(ue,Ee,Ie){var et=0,gt=Fn(ue);if("number"==typeof Ie)h>0?et=Ie>=0?Ie:Math.max(Ie+gt,et):gt=Ie>=0?Math.min(Ie+1,gt):Ie+gt+1;else if(ne&&Ie&&gt)return ue[Ie=ne(ue,Ee)]===Ee?Ie:-1;if(Ee!=Ee)return(Ie=A(b.call(ue,et,gt),Gt))>=0?Ie+et:-1;for(Ie=h>0?et:gt-1;Ie>=0&&Ie<gt;Ie+=h)if(ue[Ie]===Ee)return Ie;return-1}}const fi=zr(1,Ci,Pi),Xr=zr(-1,Ri);function si(h,A,ne){var Ee=(u(h)?Ci:Dr)(h,A,ne);if(void 0!==Ee&&-1!==Ee)return h[Ee]}function Ir(h,A){return si(h,dr(A))}function Jr(h,A,ne){var ue,Ee;if(A=Pr(A,ne),u(h))for(ue=0,Ee=h.length;ue<Ee;ue++)A(h[ue],ue,h);else{var Ie=jt(h);for(ue=0,Ee=Ie.length;ue<Ee;ue++)A(h[Ie[ue]],Ie[ue],h)}return h}function ln(h,A,ne){A=$n(A,ne);for(var ue=!u(h)&&jt(h),Ee=(ue||h).length,Ie=Array(Ee),et=0;et<Ee;et++){var gt=ue?ue[et]:et;Ie[et]=A(h[gt],gt,h)}return Ie}function no(h){return function(ne,ue,Ee,Ie){var et=arguments.length>=3;return function(ne,ue,Ee,Ie){var et=!u(ne)&&jt(ne),gt=(et||ne).length,Vt=h>0?0:gt-1;for(Ie||(Ee=ne[et?et[Vt]:Vt],Vt+=h);Vt>=0&&Vt<gt;Vt+=h){var Ut=et?et[Vt]:Vt;Ee=ue(Ee,ne[Ut],Ut,ne)}return Ee}(ne,Pr(ue,Ie,4),Ee,et)}}const Ao=no(1),Hi=no(-1);function ji(h,A,ne){var ue=[];return A=$n(A,ne),Jr(h,function(Ee,Ie,et){A(Ee,Ie,et)&&ue.push(Ee)}),ue}function wo(h,A,ne){return ji(h,Kt($n(A)),ne)}function Qi(h,A,ne){A=$n(A,ne);for(var ue=!u(h)&&jt(h),Ee=(ue||h).length,Ie=0;Ie<Ee;Ie++){var et=ue?ue[Ie]:Ie;if(!A(h[et],et,h))return!1}return!0}function ko(h,A,ne){A=$n(A,ne);for(var ue=!u(h)&&jt(h),Ee=(ue||h).length,Ie=0;Ie<Ee;Ie++){var et=ue?ue[Ie]:Ie;if(A(h[et],et,h))return!0}return!1}function Zr(h,A,ne,ue){return u(h)||(h=Lt(h)),("number"!=typeof ne||ue)&&(ne=0),fi(h,A,ne)>=0}const xo=se(function(h,A,ne){var ue,Ee;return ge(A)?Ee=A:(A=ui(A),ue=A.slice(0,-1),A=A[A.length-1]),ln(h,function(Ie){var et=Ee;if(!et){if(ue&&ue.length&&(Ie=Qr(Ie,ue)),null==Ie)return;et=Ie[A]}return null==et?et:et.apply(Ie,ne)})});function Do(h,A){return ln(h,gr(A))}function ei(h,A){return ji(h,dr(A))}function pi(h,A,ne){var Ie,et,ue=-1/0,Ee=-1/0;if(null==A||"number"==typeof A&&"object"!=typeof h[0]&&null!=h)for(var gt=0,Vt=(h=u(h)?h:Lt(h)).length;gt<Vt;gt++)null!=(Ie=h[gt])&&Ie>ue&&(ue=Ie);else A=$n(A,ne),Jr(h,function(Ut,Yt,fn){((et=A(Ut,Yt,fn))>Ee||et===-1/0&&ue===-1/0)&&(ue=Ut,Ee=et)});return ue}function Jo(h,A,ne){var Ie,et,ue=1/0,Ee=1/0;if(null==A||"number"==typeof A&&"object"!=typeof h[0]&&null!=h)for(var gt=0,Vt=(h=u(h)?h:Lt(h)).length;gt<Vt;gt++)null!=(Ie=h[gt])&&Ie<ue&&(ue=Ie);else A=$n(A,ne),Jr(h,function(Ut,Yt,fn){((et=A(Ut,Yt,fn))<Ee||et===1/0&&ue===1/0)&&(ue=Ut,Ee=et)});return ue}var Lr=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function gi(h){return h?Fe(h)?b.call(h):be(h)?h.match(Lr):u(h)?ln(h,di):Lt(h):[]}function $o(h,A,ne){if(null==A||ne)return u(h)||(h=Lt(h)),h[yt(h.length-1)];var ue=gi(h),Ee=Fn(ue);A=Math.max(Math.min(A,Ee),0);for(var Ie=Ee-1,et=0;et<A;et++){var gt=yt(et,Ie),Vt=ue[et];ue[et]=ue[gt],ue[gt]=Vt}return ue.slice(0,A)}function ro(h){return $o(h,1/0)}function Si(h,A,ne){var ue=0;return A=$n(A,ne),Do(ln(h,function(Ee,Ie,et){return{value:Ee,index:ue++,criteria:A(Ee,Ie,et)}}).sort(function(Ee,Ie){var et=Ee.criteria,gt=Ie.criteria;if(et!==gt){if(et>gt||void 0===et)return 1;if(et<gt||void 0===gt)return-1}return Ee.index-Ie.index}),"value")}function io(h,A){return function(ne,ue,Ee){var Ie=A?[[],[]]:{};return ue=$n(ue,Ee),Jr(ne,function(et,gt){var Vt=ue(et,gt,ne);h(Ie,et,Vt)}),Ie}}const oo=io(function(h,A,ne){tt(h,ne)?h[ne].push(A):h[ne]=[A]}),Fo=io(function(h,A,ne){h[ne]=A}),Io=io(function(h,A,ne){tt(h,ne)?h[ne]++:h[ne]=1}),ai=io(function(h,A,ne){h[ne?0:1].push(A)},!0);function Lo(h){return null==h?0:u(h)?h.length:jt(h).length}function $i(h,A,ne){return A in ne}const Cs=se(function(h,A){var ne={},ue=A[0];if(null==h)return ne;ge(ue)?(A.length>1&&(ue=Pr(ue,A[1])),A=bn(h)):(ue=$i,A=T(A,!1,!1),h=Object(h));for(var Ee=0,Ie=A.length;Ee<Ie;Ee++){var et=A[Ee],gt=h[et];ue(gt,et,h)&&(ne[et]=gt)}return ne}),Bo=se(function(h,A){var ue,ne=A[0];return ge(ne)?(ne=Kt(ne),A.length>1&&(ue=A[1])):(A=ln(T(A,!1,!1),String),ne=function(Ee,Ie){return!Zr(A,Ie)}),Cs(h,ne,ue)});function Ai(h,A,ne){return b.call(h,0,Math.max(0,h.length-(null==A||ne?1:A)))}function Hn(h,A,ne){return null==h||h.length<1?null==A||ne?void 0:[]:null==A||ne?h[0]:Ai(h,h.length-A)}function Wi(h,A,ne){return b.call(h,null==A||ne?1:A)}function Wo(h,A,ne){return null==h||h.length<1?null==A||ne?void 0:[]:null==A||ne?h[h.length-1]:Wi(h,Math.max(0,h.length-A))}function Ho(h){return ji(h,Boolean)}function wi(h,A){return T(h,A,!1)}const Uo=se(function(h,A){return A=T(A,!0,!0),ji(h,function(ne){return!Zr(A,ne)})}),Di=se(function(h,A){return Uo(h,A)});function Ui(h,A,ne,ue){q(A)||(ue=ne,ne=A,A=!1),null!=ne&&(ne=$n(ne,ue));for(var Ee=[],Ie=[],et=0,gt=Fn(h);et<gt;et++){var Vt=h[et],Ut=ne?ne(Vt,et,h):Vt;A&&!ne?((!et||Ie!==Ut)&&Ee.push(Vt),Ie=Ut):ne?Zr(Ie,Ut)||(Ie.push(Ut),Ee.push(Vt)):Zr(Ee,Vt)||Ee.push(Vt)}return Ee}const ps=se(function(h){return Ui(T(h,!0,!0))});function Ko(h){for(var A=[],ne=arguments.length,ue=0,Ee=Fn(h);ue<Ee;ue++){var Ie=h[ue];if(!Zr(A,Ie)){var et;for(et=1;et<ne&&Zr(arguments[et],Ie);et++);et===ne&&A.push(Ie)}}return A}function Yi(h){for(var A=h&&pi(h,Fn).length||0,ne=Array(A),ue=0;ue<A;ue++)ne[ue]=Do(h,ue);return ne}const so=se(Yi);function zo(h,A){for(var ne={},ue=0,Ee=Fn(h);ue<Ee;ue++)A?ne[h[ue]]=A[ue]:ne[h[ue][0]]=h[ue][1];return ne}function Zo(h,A,ne){null==A&&(A=h||0,h=0),ne||(ne=A<h?-1:1);for(var ue=Math.max(Math.ceil((A-h)/ne),0),Ee=Array(ue),Ie=0;Ie<ue;Ie++,h+=ne)Ee[Ie]=h;return Ee}function Mo(h,A){if(null==A||A<1)return[];for(var ne=[],ue=0,Ee=h.length;ue<Ee;)ne.push(b.call(h,ue,ue+=A));return ne}function po(h,A){return h._chain?mn(A).chain():A}function De(h){return Jr(In(h),function(A){var ne=mn[A]=h[A];mn.prototype[A]=function(){var ue=[this._wrapped];return P.apply(ue,arguments),po(this,ne.apply(mn,ue))}}),mn}Jr(["pop","push","reverse","shift","sort","splice","unshift"],function(h){var A=V[h];mn.prototype[h]=function(){var ne=this._wrapped;return null!=ne&&(A.apply(ne,arguments),("shift"===h||"splice"===h)&&0===ne.length&&delete ne[0]),po(this,ne)}}),Jr(["concat","join","slice"],function(h){var A=V[h];mn.prototype[h]=function(){var ne=this._wrapped;return null!=ne&&(ne=A.apply(ne,arguments)),po(this,ne)}});const d=mn;var p=De(r);p._=p},467:(Dt,ve,_)=>{"use strict";function r(R,V,U,H,P,b,C){try{var S=R[b](C),I=S.value}catch(B){return void U(B)}S.done?V(I):Promise.resolve(I).then(H,P)}function g(R){return function(){var V=this,U=arguments;return new Promise(function(H,P){var b=R.apply(V,U);function C(I){r(b,H,P,C,S,"next",I)}function S(I){r(b,H,P,C,S,"throw",I)}C(void 0)})}}_.d(ve,{A:()=>g})},1635:(Dt,ve,_)=>{"use strict";function B(ae,oe,ge,pe){return new(ge||(ge=Promise))(function(Pe,We){function Ge(tt){try{Fe(pe.next(tt))}catch(st){We(st)}}function ut(tt){try{Fe(pe.throw(tt))}catch(st){We(st)}}function Fe(tt){tt.done?Pe(tt.value):function Ae(Pe){return Pe instanceof ge?Pe:new ge(function(We){We(Pe)})}(tt.value).then(Ge,ut)}Fe((pe=pe.apply(ae,oe||[])).next())})}function te(ae){return this instanceof te?(this.v=ae,this):new te(ae)}function se(ae,oe,ge){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ae,pe=ge.apply(ae,oe||[]),Pe=[];return Ae={},We("next"),We("throw"),We("return"),Ae[Symbol.asyncIterator]=function(){return this},Ae;function We(ct){pe[ct]&&(Ae[ct]=function(St){return new Promise(function(Gt,it){Pe.push([ct,St,Gt,it])>1||Ge(ct,St)})})}function Ge(ct,St){try{!function ut(ct){ct.value instanceof te?Promise.resolve(ct.value.v).then(Fe,tt):st(Pe[0][2],ct)}(pe[ct](St))}catch(Gt){st(Pe[0][3],Gt)}}function Fe(ct){Ge("next",ct)}function tt(ct){Ge("throw",ct)}function st(ct,St){ct(St),Pe.shift(),Pe.length&&Ge(Pe[0][0],Pe[0][1])}}function W(ae){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ge,oe=ae[Symbol.asyncIterator];return oe?oe.call(ae):(ae=function k(ae){var oe="function"==typeof Symbol&&Symbol.iterator,ge=oe&&ae[oe],pe=0;if(ge)return ge.call(ae);if(ae&&"number"==typeof ae.length)return{next:function(){return ae&&pe>=ae.length&&(ae=void 0),{value:ae&&ae[pe++],done:!ae}}};throw new TypeError(oe?"Object is not iterable.":"Symbol.iterator is not defined.")}(ae),ge={},pe("next"),pe("throw"),pe("return"),ge[Symbol.asyncIterator]=function(){return this},ge);function pe(Pe){ge[Pe]=ae[Pe]&&function(We){return new Promise(function(Ge,ut){!function Ae(Pe,We,Ge,ut){Promise.resolve(ut).then(function(Fe){Pe({value:Fe,done:Ge})},We)}(Ge,ut,(We=ae[Pe](We)).done,We.value)})}}}_.d(ve,{AQ:()=>se,N3:()=>te,sH:()=>B,xN:()=>W}),"function"==typeof SuppressedError&&SuppressedError}}]);
