(()=>{"use strict";var e,p={},_={};function n(e){var a=_[e];if(void 0!==a)return a.exports;var r=_[e]={exports:{}};return p[e](r,r.exports,n),r.exports}n.m=p,e=[],n.O=(a,r,u,l)=>{if(!r){var c=1/0;for(f=0;f<e.length;f++){for(var[r,u,l]=e[f],o=!0,t=0;t<r.length;t++)(!1&l||c>=l)&&Object.keys(n.O).every(h=>n.O[h](r[t]))?r.splice(t--,1):(o=!1,l<c&&(c=l));if(o){e.splice(f--,1);var s=u();void 0!==s&&(a=s)}}return a}l=l||0;for(var f=e.length;f>0&&e[f-1][2]>l;f--)e[f]=e[f-1];e[f]=[r,u,l]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={121:0};n.O.j=u=>0===e[u];var a=(u,l)=>{var t,s,[f,c,o]=l,v=0;if(f.some(d=>0!==e[d])){for(t in c)n.o(c,t)&&(n.m[t]=c[t]);if(o)var b=o(n)}for(u&&u(l);v<f.length;v++)n.o(e,s=f[v])&&e[s]&&e[s][0](),e[s]=0;return n.O(b)},r=self.webpackChunkappfaas=self.webpackChunkappfaas||[];r.forEach(a.bind(null,0)),r.push=a.bind(null,r.push.bind(r))})()})();
(self.webpackChunkappfaas=self.webpackChunkappfaas||[]).push([[461],{50:(U,J,Ce)=>{"use strict";Ce(935),Ce(195)},195:()=>{!function(U,J){"use strict";function Ce(){var t=He.splice(0,He.length);for(c=0;t.length;)t.shift().call(null,t.shift())}function Pe(t,l){for(var n=0,s=t.length;n<s;n++)ze(t[n],l)}function Oe(t){return function(l){q(l)&&(ze(l,t),le.length&&Pe(l.querySelectorAll(le),t))}}function Ze(t){var l=S.call(t,"is"),n=t.nodeName.toUpperCase(),s=de.call(Ne,l?at+l.toUpperCase():Je+n);return l&&-1<s&&!pt(n,l)?-1:s}function pt(t,l){return-1<le.indexOf(t+'[is="'+l+'"]')}function gt(t){var l=t.currentTarget,n=t.attrChange,s=t.attrName,e=t.target,u=t[Ke]||2,d=t[it]||3;!ue||e&&e!==l||!l[ye]||"style"===s||t.prevValue===t.newValue&&(""!==t.newValue||n!==u&&n!==d)||l[ye](s,n===u?null:t.prevValue,n===d?null:t.newValue)}function tt(t){var l=Oe(t);return function(n){He.push(l,n.target),c&&clearTimeout(c),c=setTimeout(Ce,1)}}function Ge(t){be&&(be=!1,t.currentTarget.removeEventListener(Lt,Ge)),le.length&&Pe((t.target||B).querySelectorAll(le),t.detail===ge?ge:_e),w&&function ve(){for(var t,l=0,n=G.length;l<n;l++)Se.contains(t=G[l])||(n--,G.splice(l--,1),ze(t,ge))}()}function ht(t,l){var n=this;A.call(n,t,l),qe.call(n,{target:n})}function nt(t,l,n){var s=l.apply(t,n),e=Ze(s);return-1<e&&xe(s,Qe[e]),n.pop()&&le.length&&function Ie(t){for(var l,n=0,s=t.length;n<s;n++)xe(l=t[n],Qe[Ze(l)])}(s.querySelectorAll(le)),s}function he(t,l){$(t,l),ot?ot.observe(t,k):(V&&(t.setAttribute=ht,t[ke]=Ve(t),t[se](Mt,qe)),t[se](Me,gt)),t[ae]&&ue&&(t.created=!0,t[ae](),t.created=!1)}function je(t){throw new Error("A "+t+" type is already registered")}function ze(t,l){var n,s,e=Ze(t);-1<e&&!C.call(t,"TEMPLATE")&&(Ye(t,Qe[e]),e=0,l!==_e||t[_e]?l!==ge||t[ge]||(t[_e]=!1,t[ge]=!0,s="disconnected",e=1):(t[ge]=!1,t[_e]=!0,s="connected",e=1,w&&de.call(G,t)<0&&G.push(t)),e&&(n=t[l+pe]||t[s+pe])&&n.call(t))}function Fe(){}function z(t,l,n){var s=n&&n[$e]||"",e=l.prototype,u=W(e),d=l.observedAttributes||Tt,_={prototype:u};E(u,ae,{value:function(){if(M)M=!1;else if(!this[h]){this[h]=!0,new l(this),e[ae]&&e[ae].call(this);var m=D[H.get(l)];(!f||m.create.length>1)&&ne(this)}}}),E(u,ye,{value:function(m){-1<de.call(d,m)&&e[ye]&&e[ye].apply(this,arguments)}}),e[Re]&&E(u,vt,{value:e[Re]}),e[kt]&&E(u,bt,{value:e[kt]}),s&&(_[$e]=s),t=t.toUpperCase(),D[t]={constructor:l,create:s?[s,j(t)]:[t]},H.set(l,t),B[Te](t.toLowerCase(),_),dt(t),p[t].r()}function We(t){var l=D[t.toUpperCase()];return l&&l.constructor}function De(t){return"string"==typeof t?t:t&&t.is||""}function ne(t){for(var l,n=t[ye],s=n?t.attributes:Tt,e=s.length;e--;)n.call(t,(l=s[e]).name||l.nodeName,null,l.value||l.nodeValue)}function dt(t){return(t=t.toUpperCase())in p||(p[t]={},p[t].p=new v(function(l){p[t].r=l})),p[t].p}function rt(){o&&delete U.customElements,Ae(U,"customElements",{configurable:!0,value:new Fe}),Ae(U,"CustomElementRegistry",{configurable:!0,value:Fe});for(var t=yt.get(/^HTML[A-Z]*[a-z]/),l=t.length;l--;function(n){var s=U[n];if(s){U[n]=function(e){var u,d;return e||(e=this),e[h]||(M=!0,u=D[H.get(e.constructor)],(e=(d=f&&1===u.create.length)?Reflect.construct(s,Tt,u.constructor):B.createElement.apply(B,u.create))[h]=!0,M=!1,d||ne(e)),e},U[n].prototype=s.prototype;try{s.prototype.constructor=U[n]}catch{Ae(s,h,{value:U[n]})}}}(t[l]));B.createElement=function(n,s){var e=De(s);return e?I.call(this,n,j(e)):I.call(this,n)},P||(K=!0,B[Te](""))}var B=U.document,ce=U.Object,yt=function(t){var l,n,s,e,u=/^[A-Z]+[a-z]/,_=function(b,y){(y=y.toLowerCase())in m||(m[b]=(m[b]||[]).concat(y),m[y]=m[y.toUpperCase()]=b)},m=(ce.create||ce)(null),g={};for(n in t)for(e in t[n])for(m[e]=s=t[n][e],l=0;l<s.length;l++)m[s[l].toLowerCase()]=m[s[l].toUpperCase()]=e;return g.get=function(b){return"string"==typeof b?m[b]||(u.test(b)?[]:""):function(b){var y,Z=[];for(y in m)b.test(y)&&Z.push(y);return Z}(b)},g.set=function(b,y){return u.test(b)?_(b,y):_(y,b),g},g}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof J&&(J={type:J||"auto"});var He,qe,Xe,Ve,ot,st,Ye,xe,re,t,l,n,s,e,Te="registerElement",Ee=1e5*U.Math.random()|0,ke="__"+Te+Ee,se="addEventListener",_e="attached",pe="Callback",ge="detached",$e="extends",ye="attributeChanged"+pe,vt=_e+pe,Re="connected"+pe,kt="disconnected"+pe,ae="created"+pe,bt=ge+pe,Ke="ADDITION",it="REMOVAL",Me="DOMAttrModified",Lt="DOMContentLoaded",Mt="DOMSubtreeModified",Je="<",at="=",ct=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,Ue=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],Ne=[],Qe=[],le="",Se=B.documentElement,de=Ne.indexOf||function(t){for(var l=this.length;l--&&this[l]!==t;);return l},et=ce.prototype,mt=et.hasOwnProperty,lt=et.isPrototypeOf,Ae=ce.defineProperty,Tt=[],ut=ce.getOwnPropertyDescriptor,wt=ce.getOwnPropertyNames,Pt=ce.getPrototypeOf,Et=ce.setPrototypeOf,r=!!ce.__proto__,h="__dreCEv1",o=U.customElements,f=!/^force/.test(J.type)&&!!(o&&o.define&&o.get&&o.whenDefined),T=ce.create||ce,L=U.Map||function(){var t,l=[],n=[];return{get:function(s){return n[de.call(l,s)]},set:function(s,e){(t=de.call(l,s))<0?n[l.push(s)-1]=e:n[t]=e}}},v=U.Promise||function(t){function l(u){for(s=!0;n.length;)n.shift()(u)}var n=[],s=!1,e={catch:function(){return e},then:function(u){return n.push(u),s&&setTimeout(l,1),e}};return t(l),e},M=!1,D=T(null),p=T(null),H=new L,j=function(t){return t.toLowerCase()},W=ce.create||function t(l){return l?(t.prototype=l,new t):this},$=Et||(r?function(t,l){return t.__proto__=l,t}:wt&&ut?function(){function t(l,n){for(var s,e=wt(n),u=0,d=e.length;u<d;u++)mt.call(l,s=e[u])||Ae(l,s,ut(n,s))}return function(l,n){do{t(l,n)}while((n=Pt(n))&&!lt.call(n,l));return l}}():function(t,l){for(var n in l)t[n]=l[n];return t}),Q=U.MutationObserver||U.WebKitMutationObserver,ie=U.HTMLAnchorElement,F=(U.HTMLElement||U.Element||U.Node).prototype,w=!lt.call(F,Se),E=w?function(t,l,n){return t[l]=n.value,t}:Ae,q=w?function(t){return 1===t.nodeType}:function(t){return lt.call(F,t)},G=w&&[],ee=F.attachShadow,X=F.cloneNode,C=F.closest||function(t){for(var l=this;l&&l.nodeName!==t;)l=l.parentNode;return l},Y=F.dispatchEvent,S=F.getAttribute,N=F.hasAttribute,O=F.removeAttribute,A=F.setAttribute,oe=B.createElement,te=B.importNode,I=oe,k=Q&&{attributes:!0,characterData:!0,attributeOldValue:!0},i=Q||function(t){V=!1,Se.removeEventListener(Me,i)},c=0,P=Te in B&&!/^force-all/.test(J.type),R=!0,K=!1,V=!0,be=!0,ue=!0;if(Q&&((re=B.createElement("div")).innerHTML="<div><div></div></div>",new Q(function(t,l){if(t[0]&&"childList"==t[0].type&&!t[0].removedNodes[0].childNodes.length){var n=(re=ut(F,"innerHTML"))&&re.set;n&&Ae(F,"innerHTML",{set:function(s){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,s)}})}l.disconnect(),re=null}).observe(re,{childList:!0,subtree:!0}),re.innerHTML=""),P||(Et||r?(Ye=function(t,l){lt.call(l,t)||he(t,l)},xe=he):(Ye=function(t,l){t[ke]||(t[ke]=ce(!0),he(t,l))},xe=Ye),w?(V=!1,t=ut(F,se),l=t.value,n=function(u){var d=new CustomEvent(Me,{bubbles:!0});d.attrName=u,d.prevValue=S.call(this,u),d.newValue=null,d[it]=d.attrChange=2,O.call(this,u),Y.call(this,d)},s=function(u,d){var _=N.call(this,u),m=_&&S.call(this,u),g=new CustomEvent(Me,{bubbles:!0});A.call(this,u,d),g.attrName=u,g.prevValue=_?m:null,g.newValue=d,_?g.MODIFICATION=g.attrChange=1:g[Ke]=g.attrChange=0,Y.call(this,g)},e=function(u){var d,_=u.currentTarget,m=_[ke],g=u.propertyName;m.hasOwnProperty(g)&&(m=m[g],(d=new CustomEvent(Me,{bubbles:!0})).attrName=m.name,d.prevValue=m.value||null,d.newValue=m.value=_[g]||null,null==d.prevValue?d[Ke]=d.attrChange=0:d.MODIFICATION=d.attrChange=1,Y.call(_,d))},t.value=function(u,d,_){u===Me&&this[ye]&&this.setAttribute!==s&&(this[ke]={className:{name:"class",value:this.className}},this.setAttribute=s,this.removeAttribute=n,l.call(this,"propertychange",e)),l.call(this,u,d,_)},Ae(F,se,t)):Q||(Se[se](Me,i),Se.setAttribute(ke,1),Se.removeAttribute(ke),V&&(qe=function(t){var l,n,s,e=this;if(e===t.target){for(s in l=e[ke],e[ke]=n=Ve(e),n){if(!(s in l))return Xe(0,e,s,l[s],n[s],Ke);if(n[s]!==l[s])return Xe(1,e,s,l[s],n[s],"MODIFICATION")}for(s in l)if(!(s in n))return Xe(2,e,s,l[s],n[s],it)}},Xe=function(t,l,n,s,e,u){var d={attrChange:t,currentTarget:l,attrName:n,prevValue:s,newValue:e};d[u]=t,gt(d)},Ve=function(t){for(var l,n,s={},e=t.attributes,u=0,d=e.length;u<d;u++)"setAttribute"!==(n=(l=e[u]).name)&&(s[n]=l.value);return s})),B[Te]=function(t,l){if(n=t.toUpperCase(),R&&(R=!1,Q?(ot=function(m,g){function b(y,Z){for(var x=0,me=y.length;x<me;Z(y[x++]));}return new Q(function(y){for(var Z,x,me,fe=0,Be=y.length;fe<Be;fe++)"childList"===(Z=y[fe]).type?(b(Z.addedNodes,m),b(Z.removedNodes,g)):(x=Z.target,ue&&x[ye]&&"style"!==Z.attributeName&&(me=S.call(x,Z.attributeName))!==Z.oldValue&&x[ye](Z.attributeName,Z.oldValue,me))})}(Oe(_e),Oe(ge)),(st=function(m){return ot.observe(m,{childList:!0,subtree:!0}),m})(B),ee&&(F.attachShadow=function(){return st(ee.apply(this,arguments))})):(He=[],B[se]("DOMNodeInserted",tt(_e)),B[se]("DOMNodeRemoved",tt(ge))),B[se](Lt,Ge),B[se]("readystatechange",Ge),B.importNode=function(m,g){switch(m.nodeType){case 1:return nt(B,te,[m,!!g]);case 11:for(var b=B.createDocumentFragment(),y=m.childNodes,Z=y.length,x=0;x<Z;x++)b.appendChild(B.importNode(y[x],!!g));return b;default:return X.call(m,!!g)}},F.cloneNode=function(m){return nt(this,X,[!!m])}),K)return K=!1;if(-2<de.call(Ne,at+n)+de.call(Ne,Je+n)&&je(t),!ct.test(n)||-1<de.call(Ue,n))throw new Error("The type "+t+" is invalid");var n,s,e=function(){return d?B.createElement(_,n):B.createElement(_)},u=l||et,d=mt.call(u,$e),_=d?l[$e].toUpperCase():n;return d&&-1<de.call(Ne,Je+_)&&je(_),s=Ne.push((d?at:Je)+n)-1,le=le.concat(le.length?",":"",d?_+'[is="'+t.toLowerCase()+'"]':_),e.prototype=Qe[s]=mt.call(u,"prototype")?u.prototype:W(F),le.length&&Pe(B.querySelectorAll(le),_e),e},B.createElement=I=function(t,l){var n=De(l),s=n?oe.call(B,t,j(n)):oe.call(B,t),e=""+t,u=de.call(Ne,(n?at:Je)+(n||e).toUpperCase()),d=-1<u;return n&&(s.setAttribute("is",n=n.toLowerCase()),d&&(d=pt(e.toUpperCase(),n))),ue=!B.createElement.innerHTMLHelper,d&&xe(s,Qe[u]),s}),addEventListener("beforeunload",function(){delete B.createElement,delete B.importNode,delete B[Te]},!1),Fe.prototype={constructor:Fe,define:f?function(t,l,n){if(n)z(t,l,n);else{var s=t.toUpperCase();D[s]={constructor:l,create:[s]},H.set(l,s),o.define(t,l)}}:z,get:f?function(t){return o.get(t)||We(t)}:We,whenDefined:f?function(t){return v.race([o.whenDefined(t),dt(t)])}:dt},!o||/^force/.test(J.type))rt();else if(!J.noBuiltIn)try{!function(t,l,n){var s=new RegExp("^<a\\s+is=('|\")"+n+"\\1></a>$");if(l[$e]="a",(t.prototype=W(ie.prototype)).constructor=t,U.customElements.define(n,t,l),!s.test(B.createElement("a",{is:n}).outerHTML)||!s.test((new t).outerHTML))throw l}(function t(){return Reflect.construct(ie,[],t)},{},"document-register-element-a"+Ee)}catch{rt()}if(!J.noBuiltIn)try{if(oe.call(B,"a","a").outerHTML.indexOf("is")<0)throw{}}catch{j=function(l){return{is:l.toLowerCase()}}}}(window)},935:()=>{"use strict";const U=globalThis;function J(r){return(U.__Zone_symbol_prefix||"__zone_symbol__")+r}const Ie=Object.getOwnPropertyDescriptor,Oe=Object.defineProperty,Ze=Object.getPrototypeOf,pt=Object.create,gt=Array.prototype.slice,tt="addEventListener",Ge="removeEventListener",ht=J(tt),nt=J(Ge),he="true",ve="false",je=J("");function ze(r,a){return Zone.current.wrap(r,a)}function Fe(r,a,h,o,f){return Zone.current.scheduleMacroTask(r,a,h,o,f)}const z=J,We=typeof window<"u",De=We?window:void 0,ne=We&&De||globalThis,dt="removeAttribute";function rt(r,a){for(let h=r.length-1;h>=0;h--)"function"==typeof r[h]&&(r[h]=ze(r[h],a+"_"+h));return r}function ce(r){return!r||!1!==r.writable&&!("function"==typeof r.get&&typeof r.set>"u")}const yt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,He=!("nw"in ne)&&typeof ne.process<"u"&&"[object process]"===ne.process.toString(),qe=!He&&!yt&&!(!We||!De.HTMLElement),Xe=typeof ne.process<"u"&&"[object process]"===ne.process.toString()&&!yt&&!(!We||!De.HTMLElement),Ve={},ot=z("enable_beforeunload"),st=function(r){if(!(r=r||ne.event))return;let a=Ve[r.type];a||(a=Ve[r.type]=z("ON_PROPERTY"+r.type));const h=this||r.target||ne,o=h[a];let f;return qe&&h===De&&"error"===r.type?(f=o&&o.call(this,r.message,r.filename,r.lineno,r.colno,r.error),!0===f&&r.preventDefault()):(f=o&&o.apply(this,arguments),"beforeunload"===r.type&&ne[ot]&&"string"==typeof f?r.returnValue=f:null!=f&&!f&&r.preventDefault()),f};function Ye(r,a,h){let o=Ie(r,a);if(!o&&h&&Ie(h,a)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const f=z("on"+a+"patched");if(r.hasOwnProperty(f)&&r[f])return;delete o.writable,delete o.value;const T=o.get,L=o.set,v=a.slice(2);let M=Ve[v];M||(M=Ve[v]=z("ON_PROPERTY"+v)),o.set=function(D){let p=this;!p&&r===ne&&(p=ne),p&&("function"==typeof p[M]&&p.removeEventListener(v,st),L&&L.call(p,null),p[M]=D,"function"==typeof D&&p.addEventListener(v,st,!1))},o.get=function(){let D=this;if(!D&&r===ne&&(D=ne),!D)return null;const p=D[M];if(p)return p;if(T){let H=T.call(this);if(H)return o.set.call(this,H),"function"==typeof D[dt]&&D.removeAttribute(a),H}return null},Oe(r,a,o),r[f]=!0}function xe(r,a,h){if(a)for(let o=0;o<a.length;o++)Ye(r,"on"+a[o],h);else{const o=[];for(const f in r)"on"==f.slice(0,2)&&o.push(f);for(let f=0;f<o.length;f++)Ye(r,o[f],h)}}const re=z("originalInstance");function Te(r){const a=ne[r];if(!a)return;ne[z(r)]=a,ne[r]=function(){const f=rt(arguments,r);switch(f.length){case 0:this[re]=new a;break;case 1:this[re]=new a(f[0]);break;case 2:this[re]=new a(f[0],f[1]);break;case 3:this[re]=new a(f[0],f[1],f[2]);break;case 4:this[re]=new a(f[0],f[1],f[2],f[3]);break;default:throw new Error("Arg list too long.")}},se(ne[r],a);const h=new a(function(){});let o;for(o in h)"XMLHttpRequest"===r&&"responseBlob"===o||function(f){"function"==typeof h[f]?ne[r].prototype[f]=function(){return this[re][f].apply(this[re],arguments)}:Oe(ne[r].prototype,f,{set:function(T){"function"==typeof T?(this[re][f]=ze(T,r+"."+f),se(this[re][f],T)):this[re][f]=T},get:function(){return this[re][f]}})}(o);for(o in a)"prototype"!==o&&a.hasOwnProperty(o)&&(ne[r][o]=a[o])}function Ee(r,a,h){let o=r;for(;o&&!o.hasOwnProperty(a);)o=Ze(o);!o&&r[a]&&(o=r);const f=z(a);let T=null;if(o&&(!(T=o[f])||!o.hasOwnProperty(f))&&(T=o[f]=o[a],ce(o&&Ie(o,a)))){const v=h(T,f,a);o[a]=function(){return v(this,arguments)},se(o[a],T)}return T}function ke(r,a,h){let o=null;function f(T){const L=T.data;return L.args[L.cbIdx]=function(){T.invoke.apply(this,arguments)},o.apply(L.target,L.args),T}o=Ee(r,a,T=>function(L,v){const M=h(L,v);return M.cbIdx>=0&&"function"==typeof v[M.cbIdx]?Fe(M.name,v[M.cbIdx],M,f):T.apply(L,v)})}function se(r,a){r[z("OriginalDelegate")]=a}let _e=!1,pe=!1;function $e(){if(_e)return pe;_e=!0;try{const r=De.navigator.userAgent;(-1!==r.indexOf("MSIE ")||-1!==r.indexOf("Trident/")||-1!==r.indexOf("Edge/"))&&(pe=!0)}catch{}return pe}function ye(r){return"function"==typeof r}function vt(r){return"number"==typeof r}let Re=!1;if(typeof window<"u")try{const r=Object.defineProperty({},"passive",{get:function(){Re=!0}});window.addEventListener("test",r,r),window.removeEventListener("test",r,r)}catch{Re=!1}const kt={useG:!0},ae={},bt={},Ke=new RegExp("^"+je+"(\\w+)(true|false)$"),it=z("propagationStopped");function Me(r,a){const h=(a?a(r):r)+ve,o=(a?a(r):r)+he,f=je+h,T=je+o;ae[r]={},ae[r][ve]=f,ae[r][he]=T}function Lt(r,a,h,o){const f=o&&o.add||tt,T=o&&o.rm||Ge,L=o&&o.listeners||"eventListeners",v=o&&o.rmAll||"removeAllListeners",M=z(f),D="."+f+":",p="prependListener",H="."+p+":",j=function(w,E,q){if(w.isRemoved)return;const G=w.callback;let ee;"object"==typeof G&&G.handleEvent&&(w.callback=C=>G.handleEvent(C),w.originalDelegate=G);try{w.invoke(w,E,[q])}catch(C){ee=C}const X=w.options;return X&&"object"==typeof X&&X.once&&E[T].call(E,q.type,w.originalDelegate?w.originalDelegate:w.callback,X),ee};function W(w,E,q){if(!(E=E||r.event))return;const G=w||E.target||r,ee=G[ae[E.type][q?he:ve]];if(ee){const X=[];if(1===ee.length){const C=j(ee[0],G,E);C&&X.push(C)}else{const C=ee.slice();for(let Y=0;Y<C.length&&(!E||!0!==E[it]);Y++){const S=j(C[Y],G,E);S&&X.push(S)}}if(1===X.length)throw X[0];for(let C=0;C<X.length;C++){const Y=X[C];a.nativeScheduleMicroTask(()=>{throw Y})}}}const $=function(w){return W(this,w,!1)},Q=function(w){return W(this,w,!0)};function ie(w,E){if(!w)return!1;let q=!0;E&&void 0!==E.useG&&(q=E.useG);const G=E&&E.vh;let ee=!0;E&&void 0!==E.chkDup&&(ee=E.chkDup);let X=!1;E&&void 0!==E.rt&&(X=E.rt);let C=w;for(;C&&!C.hasOwnProperty(f);)C=Ze(C);if(!C&&w[f]&&(C=w),!C||C[M])return!1;const Y=E&&E.eventNameToString,S={},N=C[M]=C[f],O=C[z(T)]=C[T],A=C[z(L)]=C[L],oe=C[z(v)]=C[v];let te;E&&E.prepend&&(te=C[z(E.prepend)]=C[E.prepend]);const K=q?function(e){if(!S.isExisting)return N.call(S.target,S.eventName,S.capture?Q:$,S.options)}:function(e){return N.call(S.target,S.eventName,e.invoke,S.options)},V=q?function(e){if(!e.isRemoved){const u=ae[e.eventName];let d;u&&(d=u[e.capture?he:ve]);const _=d&&e.target[d];if(_)for(let m=0;m<_.length;m++)if(_[m]===e){_.splice(m,1),e.isRemoved=!0,e.removeAbortListener&&(e.removeAbortListener(),e.removeAbortListener=null),0===_.length&&(e.allRemoved=!0,e.target[d]=null);break}}if(e.allRemoved)return O.call(e.target,e.eventName,e.capture?Q:$,e.options)}:function(e){return O.call(e.target,e.eventName,e.invoke,e.options)},ue=E&&E.diff?E.diff:function(e,u){const d=typeof u;return"function"===d&&e.callback===u||"object"===d&&e.originalDelegate===u},t=Zone[z("UNPATCHED_EVENTS")],l=r[z("PASSIVE_EVENTS")],s=function(e,u,d,_,m=!1,g=!1){return function(){const b=this||r;let y=arguments[0];E&&E.transferEventName&&(y=E.transferEventName(y));let Z=arguments[1];if(!Z)return e.apply(this,arguments);if(He&&"uncaughtException"===y)return e.apply(this,arguments);let x=!1;if("function"!=typeof Z){if(!Z.handleEvent)return e.apply(this,arguments);x=!0}if(G&&!G(e,Z,b,arguments))return;const me=Re&&!!l&&-1!==l.indexOf(y),fe=function n(e){if("object"==typeof e&&null!==e){const u={...e};return e.signal&&(u.signal=e.signal),u}return e}(function I(e,u){return!Re&&"object"==typeof e&&e?!!e.capture:Re&&u?"boolean"==typeof e?{capture:e,passive:!0}:e?"object"==typeof e&&!1!==e.passive?{...e,passive:!0}:e:{passive:!0}:e}(arguments[2],me)),Be=fe?.signal;if(Be?.aborted)return;if(t)for(let we=0;we<t.length;we++)if(y===t[we])return me?e.call(b,y,Z,fe):e.apply(this,arguments);const Ot=!!fe&&("boolean"==typeof fe||fe.capture),Ht=!(!fe||"object"!=typeof fe)&&fe.once,It=Zone.current;let Dt=ae[y];Dt||(Me(y,Y),Dt=ae[y]);const Rt=Dt[Ot?he:ve];let Ct,ft=b[Rt],Nt=!1;if(ft){if(Nt=!0,ee)for(let we=0;we<ft.length;we++)if(ue(ft[we],Z))return}else ft=b[Rt]=[];const St=b.constructor.name,At=bt[St];At&&(Ct=At[y]),Ct||(Ct=St+u+(Y?Y(y):y)),S.options=fe,Ht&&(S.options.once=!1),S.target=b,S.capture=Ot,S.eventName=y,S.isExisting=Nt;const _t=q?kt:void 0;_t&&(_t.taskData=S),Be&&(S.options.signal=void 0);const Le=It.scheduleEventTask(Ct,Z,_t,d,_);if(Be){S.options.signal=Be;const we=()=>Le.zone.cancelTask(Le);e.call(Be,"abort",we,{once:!0}),Le.removeAbortListener=()=>Be.removeEventListener("abort",we)}return S.target=null,_t&&(_t.taskData=null),Ht&&(S.options.once=!0),!Re&&"boolean"==typeof Le.options||(Le.options=fe),Le.target=b,Le.capture=Ot,Le.eventName=y,x&&(Le.originalDelegate=Z),g?ft.unshift(Le):ft.push(Le),m?b:void 0}};return C[f]=s(N,D,K,V,X),te&&(C[p]=s(te,H,function(e){return te.call(S.target,S.eventName,e.invoke,S.options)},V,X,!0)),C[T]=function(){const e=this||r;let u=arguments[0];E&&E.transferEventName&&(u=E.transferEventName(u));const d=arguments[2],_=!!d&&("boolean"==typeof d||d.capture),m=arguments[1];if(!m)return O.apply(this,arguments);if(G&&!G(O,m,e,arguments))return;const g=ae[u];let b;g&&(b=g[_?he:ve]);const y=b&&e[b];if(y)for(let Z=0;Z<y.length;Z++){const x=y[Z];if(ue(x,m))return y.splice(Z,1),x.isRemoved=!0,0!==y.length||(x.allRemoved=!0,e[b]=null,_||"string"!=typeof u)||(e[je+"ON_PROPERTY"+u]=null),x.zone.cancelTask(x),X?e:void 0}return O.apply(this,arguments)},C[L]=function(){const e=this||r;let u=arguments[0];E&&E.transferEventName&&(u=E.transferEventName(u));const d=[],_=Mt(e,Y?Y(u):u);for(let m=0;m<_.length;m++){const g=_[m];d.push(g.originalDelegate?g.originalDelegate:g.callback)}return d},C[v]=function(){const e=this||r;let u=arguments[0];if(u){E&&E.transferEventName&&(u=E.transferEventName(u));const d=ae[u];if(d){const g=e[d[ve]],b=e[d[he]];if(g){const y=g.slice();for(let Z=0;Z<y.length;Z++){const x=y[Z];this[T].call(this,u,x.originalDelegate?x.originalDelegate:x.callback,x.options)}}if(b){const y=b.slice();for(let Z=0;Z<y.length;Z++){const x=y[Z];this[T].call(this,u,x.originalDelegate?x.originalDelegate:x.callback,x.options)}}}}else{const d=Object.keys(e);for(let _=0;_<d.length;_++){const g=Ke.exec(d[_]);let b=g&&g[1];b&&"removeListener"!==b&&this[v].call(this,b)}this[v].call(this,"removeListener")}if(X)return this},se(C[f],N),se(C[T],O),oe&&se(C[v],oe),A&&se(C[L],A),!0}let F=[];for(let w=0;w<h.length;w++)F[w]=ie(h[w],o);return F}function Mt(r,a){if(!a){const T=[];for(let L in r){const v=Ke.exec(L);let M=v&&v[1];if(M&&(!a||M===a)){const D=r[L];if(D)for(let p=0;p<D.length;p++)T.push(D[p])}}return T}let h=ae[a];h||(Me(a),h=ae[a]);const o=r[h[ve]],f=r[h[he]];return o?f?o.concat(f):o.slice():f?f.slice():[]}function Je(r,a){const h=r.Event;h&&h.prototype&&a.patchMethod(h.prototype,"stopImmediatePropagation",o=>function(f,T){f[it]=!0,o&&o.apply(f,T)})}const ct=z("zoneTask");function Ue(r,a,h,o){let f=null,T=null;h+=o;const L={};function v(D){const p=D.data;p.args[0]=function(){return D.invoke.apply(this,arguments)};const H=f.apply(r,p.args);return vt(H)?p.handleId=H:(p.handle=H,p.isRefreshable=ye(H.refresh)),D}function M(D){const{handle:p,handleId:H}=D.data;return T.call(r,p??H)}f=Ee(r,a+=o,D=>function(p,H){if(ye(H[0])){const j={isRefreshable:!1,isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?H[1]||0:void 0,args:H},W=H[0];H[0]=function(){try{return W.apply(this,arguments)}finally{const{handle:q,handleId:G,isPeriodic:ee,isRefreshable:X}=j;!ee&&!X&&(G?delete L[G]:q&&(q[ct]=null))}};const $=Fe(a,H[0],j,v,M);if(!$)return $;const{handleId:Q,handle:ie,isRefreshable:F,isPeriodic:w}=$.data;if(Q)L[Q]=$;else if(ie&&(ie[ct]=$,F&&!w)){const E=ie.refresh;ie.refresh=function(){const{zone:q,state:G}=$;return"notScheduled"===G?($._state="scheduled",q._updateTaskCount($,1)):"running"===G&&($._state="scheduling"),E.call(this)}}return ie??Q??$}return D.apply(r,H)}),T=Ee(r,h,D=>function(p,H){const j=H[0];let W;vt(j)?(W=L[j],delete L[j]):(W=j?.[ct],W?j[ct]=null:W=j),W?.type?W.cancelFn&&W.zone.cancelTask(W):D.apply(r,H)})}function Se(r,a,h){if(!h||0===h.length)return a;const o=h.filter(T=>T.target===r);if(!o||0===o.length)return a;const f=o[0].ignoreProperties;return a.filter(T=>-1===f.indexOf(T))}function de(r,a,h,o){r&&xe(r,Se(r,a,h),o)}function et(r){return Object.getOwnPropertyNames(r).filter(a=>a.startsWith("on")&&a.length>2).map(a=>a.substring(2))}function ut(r,a,h,o,f){const T=Zone.__symbol__(o);if(a[T])return;const L=a[T]=a[o];a[o]=function(v,M,D){return M&&M.prototype&&f.forEach(function(p){const H=`${h}.${o}::`+p,j=M.prototype;try{if(j.hasOwnProperty(p)){const W=r.ObjectGetOwnPropertyDescriptor(j,p);W&&W.value?(W.value=r.wrapWithCurrentZone(W.value,H),r._redefineProperty(M.prototype,p,W)):j[p]&&(j[p]=r.wrapWithCurrentZone(j[p],H))}else j[p]&&(j[p]=r.wrapWithCurrentZone(j[p],H))}catch{}}),L.call(a,v,M,D)},r.attachOriginToPatched(a[o],L)}const Et=function Pe(){const r=globalThis,a=!0===r[J("forceDuplicateZoneCheck")];if(r.Zone&&(a||"function"!=typeof r.Zone.__symbol__))throw new Error("Zone already loaded.");return r.Zone??=function Ce(){const r=U.performance;function a(I){r&&r.mark&&r.mark(I)}function h(I,k){r&&r.measure&&r.measure(I,k)}a("Zone");let o=(()=>{class I{static{this.__symbol__=J}static assertZonePatched(){if(U.Promise!==S.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let i=I.current;for(;i.parent;)i=i.parent;return i}static get current(){return O.zone}static get currentTask(){return A}static __load_patch(i,c,P=!1){if(S.hasOwnProperty(i)){const R=!0===U[J("forceDuplicateZoneCheck")];if(!P&&R)throw Error("Already loaded patch: "+i)}else if(!U["__Zone_disable_"+i]){const R="Zone:"+i;a(R),S[i]=c(U,I,N),h(R,R)}}get parent(){return this._parent}get name(){return this._name}constructor(i,c){this._parent=i,this._name=c?c.name||"unnamed":"<root>",this._properties=c&&c.properties||{},this._zoneDelegate=new T(this,this._parent&&this._parent._zoneDelegate,c)}get(i){const c=this.getZoneWith(i);if(c)return c._properties[i]}getZoneWith(i){let c=this;for(;c;){if(c._properties.hasOwnProperty(i))return c;c=c._parent}return null}fork(i){if(!i)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,i)}wrap(i,c){if("function"!=typeof i)throw new Error("Expecting function got: "+i);const P=this._zoneDelegate.intercept(this,i,c),R=this;return function(){return R.runGuarded(P,this,arguments,c)}}run(i,c,P,R){O={parent:O,zone:this};try{return this._zoneDelegate.invoke(this,i,c,P,R)}finally{O=O.parent}}runGuarded(i,c=null,P,R){O={parent:O,zone:this};try{try{return this._zoneDelegate.invoke(this,i,c,P,R)}catch(K){if(this._zoneDelegate.handleError(this,K))throw K}}finally{O=O.parent}}runTask(i,c,P){if(i.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(i.zone||ie).name+"; Execution: "+this.name+")");const R=i,{type:K,data:{isPeriodic:V=!1,isRefreshable:be=!1}={}}=i;if(i.state===F&&(K===Y||K===C))return;const ue=i.state!=q;ue&&R._transitionTo(q,E);const t=A;A=R,O={parent:O,zone:this};try{K==C&&i.data&&!V&&!be&&(i.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,R,c,P)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{const l=i.state;if(l!==F&&l!==ee)if(K==Y||V||be&&l===w)ue&&R._transitionTo(E,q,w);else{const n=R._zoneDelegates;this._updateTaskCount(R,-1),ue&&R._transitionTo(F,q,F),be&&(R._zoneDelegates=n)}O=O.parent,A=t}}scheduleTask(i){if(i.zone&&i.zone!==this){let P=this;for(;P;){if(P===i.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${i.zone.name}`);P=P.parent}}i._transitionTo(w,F);const c=[];i._zoneDelegates=c,i._zone=this;try{i=this._zoneDelegate.scheduleTask(this,i)}catch(P){throw i._transitionTo(ee,w,F),this._zoneDelegate.handleError(this,P),P}return i._zoneDelegates===c&&this._updateTaskCount(i,1),i.state==w&&i._transitionTo(E,w),i}scheduleMicroTask(i,c,P,R){return this.scheduleTask(new L(X,i,c,P,R,void 0))}scheduleMacroTask(i,c,P,R,K){return this.scheduleTask(new L(C,i,c,P,R,K))}scheduleEventTask(i,c,P,R,K){return this.scheduleTask(new L(Y,i,c,P,R,K))}cancelTask(i){if(i.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(i.zone||ie).name+"; Execution: "+this.name+")");if(i.state===E||i.state===q){i._transitionTo(G,E,q);try{this._zoneDelegate.cancelTask(this,i)}catch(c){throw i._transitionTo(ee,G),this._zoneDelegate.handleError(this,c),c}return this._updateTaskCount(i,-1),i._transitionTo(F,G),i.runCount=-1,i}}_updateTaskCount(i,c){const P=i._zoneDelegates;-1==c&&(i._zoneDelegates=null);for(let R=0;R<P.length;R++)P[R]._updateTaskCount(i.type,c)}}return I})();const f={name:"",onHasTask:(I,k,i,c)=>I.hasTask(i,c),onScheduleTask:(I,k,i,c)=>I.scheduleTask(i,c),onInvokeTask:(I,k,i,c,P,R)=>I.invokeTask(i,c,P,R),onCancelTask:(I,k,i,c)=>I.cancelTask(i,c)};class T{get zone(){return this._zone}constructor(k,i,c){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=k,this._parentDelegate=i,this._forkZS=c&&(c&&c.onFork?c:i._forkZS),this._forkDlgt=c&&(c.onFork?i:i._forkDlgt),this._forkCurrZone=c&&(c.onFork?this._zone:i._forkCurrZone),this._interceptZS=c&&(c.onIntercept?c:i._interceptZS),this._interceptDlgt=c&&(c.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=c&&(c.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=c&&(c.onInvoke?c:i._invokeZS),this._invokeDlgt=c&&(c.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=c&&(c.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=c&&(c.onHandleError?c:i._handleErrorZS),this._handleErrorDlgt=c&&(c.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=c&&(c.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=c&&(c.onScheduleTask?c:i._scheduleTaskZS),this._scheduleTaskDlgt=c&&(c.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=c&&(c.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=c&&(c.onInvokeTask?c:i._invokeTaskZS),this._invokeTaskDlgt=c&&(c.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=c&&(c.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=c&&(c.onCancelTask?c:i._cancelTaskZS),this._cancelTaskDlgt=c&&(c.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=c&&(c.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const P=c&&c.onHasTask;(P||i&&i._hasTaskZS)&&(this._hasTaskZS=P?c:f,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,c.onScheduleTask||(this._scheduleTaskZS=f,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),c.onInvokeTask||(this._invokeTaskZS=f,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),c.onCancelTask||(this._cancelTaskZS=f,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(k,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,k,i):new o(k,i)}intercept(k,i,c){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,k,i,c):i}invoke(k,i,c,P,R){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,k,i,c,P,R):i.apply(c,P)}handleError(k,i){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,k,i)}scheduleTask(k,i){let c=i;if(this._scheduleTaskZS)this._hasTaskZS&&c._zoneDelegates.push(this._hasTaskDlgtOwner),c=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,k,i),c||(c=i);else if(i.scheduleFn)i.scheduleFn(i);else{if(i.type!=X)throw new Error("Task is missing scheduleFn.");$(i)}return c}invokeTask(k,i,c,P){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,k,i,c,P):i.callback.apply(c,P)}cancelTask(k,i){let c;if(this._cancelTaskZS)c=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,k,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");c=i.cancelFn(i)}return c}hasTask(k,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,k,i)}catch(c){this.handleError(k,c)}}_updateTaskCount(k,i){const c=this._taskCounts,P=c[k],R=c[k]=P+i;if(R<0)throw new Error("More tasks executed then were scheduled.");0!=P&&0!=R||this.hasTask(this._zone,{microTask:c.microTask>0,macroTask:c.macroTask>0,eventTask:c.eventTask>0,change:k})}}class L{constructor(k,i,c,P,R,K){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=k,this.source=i,this.data=P,this.scheduleFn=R,this.cancelFn=K,!c)throw new Error("callback is not defined");this.callback=c;const V=this;this.invoke=k===Y&&P&&P.useG?L.invokeTask:function(){return L.invokeTask.call(U,V,this,arguments)}}static invokeTask(k,i,c){k||(k=this),oe++;try{return k.runCount++,k.zone.runTask(k,i,c)}finally{1==oe&&Q(),oe--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(F,w)}_transitionTo(k,i,c){if(this._state!==i&&this._state!==c)throw new Error(`${this.type} '${this.source}': can not transition to '${k}', expecting state '${i}'${c?" or '"+c+"'":""}, was '${this._state}'.`);this._state=k,k==F&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const v=J("setTimeout"),M=J("Promise"),D=J("then");let j,p=[],H=!1;function W(I){if(j||U[M]&&(j=U[M].resolve(0)),j){let k=j[D];k||(k=j.then),k.call(j,I)}else U[v](I,0)}function $(I){0===oe&&0===p.length&&W(Q),I&&p.push(I)}function Q(){if(!H){for(H=!0;p.length;){const I=p;p=[];for(let k=0;k<I.length;k++){const i=I[k];try{i.zone.runTask(i,null,null)}catch(c){N.onUnhandledError(c)}}}N.microtaskDrainDone(),H=!1}}const ie={name:"NO ZONE"},F="notScheduled",w="scheduling",E="scheduled",q="running",G="canceling",ee="unknown",X="microTask",C="macroTask",Y="eventTask",S={},N={symbol:J,currentZoneFrame:()=>O,onUnhandledError:te,microtaskDrainDone:te,scheduleMicroTask:$,showUncaughtError:()=>!o[J("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:te,patchMethod:()=>te,bindArguments:()=>[],patchThen:()=>te,patchMacroTask:()=>te,patchEventPrototype:()=>te,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>te,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>te,wrapWithCurrentZone:()=>te,filterProperties:()=>[],attachOriginToPatched:()=>te,_redefineProperty:()=>te,patchCallbacks:()=>te,nativeScheduleMicroTask:W};let O={parent:null,zone:new o(null,null)},A=null,oe=0;function te(){}return h("Zone","Zone"),o}(),r.Zone}();(function Pt(r){(function Ae(r){r.__load_patch("ZoneAwarePromise",(a,h,o)=>{const f=Object.getOwnPropertyDescriptor,T=Object.defineProperty,v=o.symbol,M=[],D=!1!==a[v("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],p=v("Promise"),H=v("then"),j="__creationTrace__";o.onUnhandledError=n=>{if(o.showUncaughtError()){const s=n&&n.rejection;s?console.error("Unhandled Promise rejection:",s instanceof Error?s.message:s,"; Zone:",n.zone.name,"; Task:",n.task&&n.task.source,"; Value:",s,s instanceof Error?s.stack:void 0):console.error(n)}},o.microtaskDrainDone=()=>{for(;M.length;){const n=M.shift();try{n.zone.runGuarded(()=>{throw n.throwOriginal?n.rejection:n})}catch(s){$(s)}}};const W=v("unhandledPromiseRejectionHandler");function $(n){o.onUnhandledError(n);try{const s=h[W];"function"==typeof s&&s.call(this,n)}catch{}}function Q(n){return n&&n.then}function ie(n){return n}function F(n){return V.reject(n)}const w=v("state"),E=v("value"),q=v("finally"),G=v("parentPromiseValue"),ee=v("parentPromiseState"),X="Promise.then",C=null,Y=!0,S=!1,N=0;function O(n,s){return e=>{try{I(n,s,e)}catch(u){I(n,!1,u)}}}const A=function(){let n=!1;return function(e){return function(){n||(n=!0,e.apply(null,arguments))}}},oe="Promise resolved with itself",te=v("currentTaskTrace");function I(n,s,e){const u=A();if(n===e)throw new TypeError(oe);if(n[w]===C){let d=null;try{("object"==typeof e||"function"==typeof e)&&(d=e&&e.then)}catch(_){return u(()=>{I(n,!1,_)})(),n}if(s!==S&&e instanceof V&&e.hasOwnProperty(w)&&e.hasOwnProperty(E)&&e[w]!==C)i(e),I(n,e[w],e[E]);else if(s!==S&&"function"==typeof d)try{d.call(e,u(O(n,s)),u(O(n,!1)))}catch(_){u(()=>{I(n,!1,_)})()}else{n[w]=s;const _=n[E];if(n[E]=e,n[q]===q&&s===Y&&(n[w]=n[ee],n[E]=n[G]),s===S&&e instanceof Error){const m=h.currentTask&&h.currentTask.data&&h.currentTask.data[j];m&&T(e,te,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m<_.length;)c(n,_[m++],_[m++],_[m++],_[m++]);if(0==_.length&&s==S){n[w]=N;let m=e;try{throw new Error("Uncaught (in promise): "+function L(n){return n&&n.toString===Object.prototype.toString?(n.constructor&&n.constructor.name||"")+": "+JSON.stringify(n):n?n.toString():Object.prototype.toString.call(n)}(e)+(e&&e.stack?"\n"+e.stack:""))}catch(g){m=g}D&&(m.throwOriginal=!0),m.rejection=e,m.promise=n,m.zone=h.current,m.task=h.currentTask,M.push(m),o.scheduleMicroTask()}}}return n}const k=v("rejectionHandledHandler");function i(n){if(n[w]===N){try{const s=h[k];s&&"function"==typeof s&&s.call(this,{rejection:n[E],promise:n})}catch{}n[w]=S;for(let s=0;s<M.length;s++)n===M[s].promise&&M.splice(s,1)}}function c(n,s,e,u,d){i(n);const _=n[w],m=_?"function"==typeof u?u:ie:"function"==typeof d?d:F;s.scheduleMicroTask(X,()=>{try{const g=n[E],b=!!e&&q===e[q];b&&(e[G]=g,e[ee]=_);const y=s.run(m,void 0,b&&m!==F&&m!==ie?[]:[g]);I(e,!0,y)}catch(g){I(e,!1,g)}},e)}const R=function(){},K=a.AggregateError;class V{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(s){return s instanceof V?s:I(new this(null),Y,s)}static reject(s){return I(new this(null),S,s)}static withResolvers(){const s={};return s.promise=new V((e,u)=>{s.resolve=e,s.reject=u}),s}static any(s){if(!s||"function"!=typeof s[Symbol.iterator])return Promise.reject(new K([],"All promises were rejected"));const e=[];let u=0;try{for(let m of s)u++,e.push(V.resolve(m))}catch{return Promise.reject(new K([],"All promises were rejected"))}if(0===u)return Promise.reject(new K([],"All promises were rejected"));let d=!1;const _=[];return new V((m,g)=>{for(let b=0;b<e.length;b++)e[b].then(y=>{d||(d=!0,m(y))},y=>{_.push(y),u--,0===u&&(d=!0,g(new K(_,"All promises were rejected")))})})}static race(s){let e,u,d=new this((g,b)=>{e=g,u=b});function _(g){e(g)}function m(g){u(g)}for(let g of s)Q(g)||(g=this.resolve(g)),g.then(_,m);return d}static all(s){return V.allWithCallback(s)}static allSettled(s){return(this&&this.prototype instanceof V?this:V).allWithCallback(s,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(s,e){let u,d,_=new this((y,Z)=>{u=y,d=Z}),m=2,g=0;const b=[];for(let y of s){Q(y)||(y=this.resolve(y));const Z=g;try{y.then(x=>{b[Z]=e?e.thenCallback(x):x,m--,0===m&&u(b)},x=>{e?(b[Z]=e.errorCallback(x),m--,0===m&&u(b)):d(x)})}catch(x){d(x)}m++,g++}return m-=2,0===m&&u(b),_}constructor(s){const e=this;if(!(e instanceof V))throw new Error("Must be an instanceof Promise.");e[w]=C,e[E]=[];try{const u=A();s&&s(u(O(e,Y)),u(O(e,S)))}catch(u){I(e,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return V}then(s,e){let u=this.constructor?.[Symbol.species];(!u||"function"!=typeof u)&&(u=this.constructor||V);const d=new u(R),_=h.current;return this[w]==C?this[E].push(_,d,s,e):c(this,_,d,s,e),d}catch(s){return this.then(null,s)}finally(s){let e=this.constructor?.[Symbol.species];(!e||"function"!=typeof e)&&(e=V);const u=new e(R);u[q]=q;const d=h.current;return this[w]==C?this[E].push(d,u,s,s):c(this,d,u,s,s),u}}V.resolve=V.resolve,V.reject=V.reject,V.race=V.race,V.all=V.all;const be=a[p]=a.Promise;a.Promise=V;const ue=v("thenPatched");function t(n){const s=n.prototype,e=f(s,"then");if(e&&(!1===e.writable||!e.configurable))return;const u=s.then;s[H]=u,n.prototype.then=function(d,_){return new V((g,b)=>{u.call(this,g,b)}).then(d,_)},n[ue]=!0}return o.patchThen=t,be&&(t(be),Ee(a,"fetch",n=>function l(n){return function(s,e){let u=n.apply(s,e);if(u instanceof V)return u;let d=u.constructor;return d[ue]||t(d),u}}(n))),Promise[h.__symbol__("uncaughtPromiseErrors")]=M,V})})(r),function Tt(r){r.__load_patch("toString",a=>{const h=Function.prototype.toString,o=z("OriginalDelegate"),f=z("Promise"),T=z("Error"),L=function(){if("function"==typeof this){const p=this[o];if(p)return"function"==typeof p?h.call(p):Object.prototype.toString.call(p);if(this===Promise){const H=a[f];if(H)return h.call(H)}if(this===Error){const H=a[T];if(H)return h.call(H)}}return h.call(this)};L[o]=h,Function.prototype.toString=L;const v=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":v.call(this)}})}(r),function wt(r){r.__load_patch("util",(a,h,o)=>{const f=et(a);o.patchOnProperties=xe,o.patchMethod=Ee,o.bindArguments=rt,o.patchMacroTask=ke;const T=h.__symbol__("BLACK_LISTED_EVENTS"),L=h.__symbol__("UNPATCHED_EVENTS");a[L]&&(a[T]=a[L]),a[T]&&(h[T]=h[L]=a[T]),o.patchEventPrototype=Je,o.patchEventTarget=Lt,o.isIEOrEdge=$e,o.ObjectDefineProperty=Oe,o.ObjectGetOwnPropertyDescriptor=Ie,o.ObjectCreate=pt,o.ArraySlice=gt,o.patchClass=Te,o.wrapWithCurrentZone=ze,o.filterProperties=Se,o.attachOriginToPatched=se,o._redefineProperty=Object.defineProperty,o.patchCallbacks=ut,o.getGlobalObjects=()=>({globalSources:bt,zoneSymbolEventNames:ae,eventNames:f,isBrowser:qe,isMix:Xe,isNode:He,TRUE_STR:he,FALSE_STR:ve,ZONE_SYMBOL_PREFIX:je,ADD_EVENT_LISTENER_STR:tt,REMOVE_EVENT_LISTENER_STR:Ge})})}(r)})(Et),function lt(r){r.__load_patch("legacy",a=>{const h=a[r.__symbol__("legacyPatch")];h&&h()}),r.__load_patch("timers",a=>{const h="set",o="clear";Ue(a,h,o,"Timeout"),Ue(a,h,o,"Interval"),Ue(a,h,o,"Immediate")}),r.__load_patch("requestAnimationFrame",a=>{Ue(a,"request","cancel","AnimationFrame"),Ue(a,"mozRequest","mozCancel","AnimationFrame"),Ue(a,"webkitRequest","webkitCancel","AnimationFrame")}),r.__load_patch("blocking",(a,h)=>{const o=["alert","prompt","confirm"];for(let f=0;f<o.length;f++)Ee(a,o[f],(L,v,M)=>function(D,p){return h.current.run(L,a,p,M)})}),r.__load_patch("EventTarget",(a,h,o)=>{(function le(r,a){a.patchEventPrototype(r,a)})(a,o),function Qe(r,a){if(Zone[a.symbol("patchEventTarget")])return;const{eventNames:h,zoneSymbolEventNames:o,TRUE_STR:f,FALSE_STR:T,ZONE_SYMBOL_PREFIX:L}=a.getGlobalObjects();for(let M=0;M<h.length;M++){const D=h[M],j=L+(D+T),W=L+(D+f);o[D]={},o[D][T]=j,o[D][f]=W}const v=r.EventTarget;v&&v.prototype&&a.patchEventTarget(r,a,[v&&v.prototype])}(a,o);const f=a.XMLHttpRequestEventTarget;f&&f.prototype&&o.patchEventTarget(a,o,[f.prototype])}),r.__load_patch("MutationObserver",(a,h,o)=>{Te("MutationObserver"),Te("WebKitMutationObserver")}),r.__load_patch("IntersectionObserver",(a,h,o)=>{Te("IntersectionObserver")}),r.__load_patch("FileReader",(a,h,o)=>{Te("FileReader")}),r.__load_patch("on_property",(a,h,o)=>{!function mt(r,a){if(He&&!Xe||Zone[r.symbol("patchEvents")])return;const h=a.__Zone_ignore_on_properties;let o=[];if(qe){const f=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const T=function ge(){try{const r=De.navigator.userAgent;if(-1!==r.indexOf("MSIE ")||-1!==r.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:f,ignoreProperties:["error"]}]:[];de(f,et(f),h&&h.concat(T),Ze(f))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let f=0;f<o.length;f++){const T=a[o[f]];T&&T.prototype&&de(T.prototype,et(T.prototype),h)}}(o,a)}),r.__load_patch("customElements",(a,h,o)=>{!function Ne(r,a){const{isBrowser:h,isMix:o}=a.getGlobalObjects();(h||o)&&r.customElements&&"customElements"in r&&a.patchCallbacks(a,r.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(a,o)}),r.__load_patch("XHR",(a,h)=>{!function D(p){const H=p.XMLHttpRequest;if(!H)return;const j=H.prototype;let $=j[ht],Q=j[nt];if(!$){const N=p.XMLHttpRequestEventTarget;if(N){const O=N.prototype;$=O[ht],Q=O[nt]}}const ie="readystatechange",F="scheduled";function w(N){const O=N.data,A=O.target;A[L]=!1,A[M]=!1;const oe=A[T];$||($=A[ht],Q=A[nt]),oe&&Q.call(A,ie,oe);const te=A[T]=()=>{if(A.readyState===A.DONE)if(!O.aborted&&A[L]&&N.state===F){const k=A[h.__symbol__("loadfalse")];if(0!==A.status&&k&&k.length>0){const i=N.invoke;N.invoke=function(){const c=A[h.__symbol__("loadfalse")];for(let P=0;P<c.length;P++)c[P]===N&&c.splice(P,1);!O.aborted&&N.state===F&&i.call(N)},k.push(N)}else N.invoke()}else!O.aborted&&!1===A[L]&&(A[M]=!0)};return $.call(A,ie,te),A[o]||(A[o]=N),Y.apply(A,O.args),A[L]=!0,N}function E(){}function q(N){const O=N.data;return O.aborted=!0,S.apply(O.target,O.args)}const G=Ee(j,"open",()=>function(N,O){return N[f]=0==O[2],N[v]=O[1],G.apply(N,O)}),X=z("fetchTaskAborting"),C=z("fetchTaskScheduling"),Y=Ee(j,"send",()=>function(N,O){if(!0===h.current[C]||N[f])return Y.apply(N,O);{const A={target:N,url:N[v],isPeriodic:!1,args:O,aborted:!1},oe=Fe("XMLHttpRequest.send",E,A,w,q);N&&!0===N[M]&&!A.aborted&&oe.state===F&&oe.invoke()}}),S=Ee(j,"abort",()=>function(N,O){const A=function W(N){return N[o]}(N);if(A&&"string"==typeof A.type){if(null==A.cancelFn||A.data&&A.data.aborted)return;A.zone.cancelTask(A)}else if(!0===h.current[X])return S.apply(N,O)})}(a);const o=z("xhrTask"),f=z("xhrSync"),T=z("xhrListener"),L=z("xhrScheduled"),v=z("xhrURL"),M=z("xhrErrorBeforeScheduled")}),r.__load_patch("geolocation",a=>{a.navigator&&a.navigator.geolocation&&function B(r,a){const h=r.constructor.name;for(let o=0;o<a.length;o++){const f=a[o],T=r[f];if(T){if(!ce(Ie(r,f)))continue;r[f]=(v=>{const M=function(){return v.apply(this,rt(arguments,h+"."+f))};return se(M,v),M})(T)}}}(a.navigator.geolocation,["getCurrentPosition","watchPosition"])}),r.__load_patch("PromiseRejectionEvent",(a,h)=>{function o(f){return function(T){Mt(a,f).forEach(v=>{const M=a.PromiseRejectionEvent;if(M){const D=new M(f,{promise:T.promise,reason:T.rejection});v.invoke(D)}})}}a.PromiseRejectionEvent&&(h[z("unhandledPromiseRejectionHandler")]=o("unhandledrejection"),h[z("rejectionHandledHandler")]=o("rejectionhandled"))}),r.__load_patch("queueMicrotask",(a,h,o)=>{!function at(r,a){a.patchMethod(r,"queueMicrotask",h=>function(o,f){Zone.current.scheduleMicroTask("queueMicrotask",f[0])})}(a,o)})}(Et)}},U=>{U(U.s=50)}]);
(self.webpackChunkappfaas=self.webpackChunkappfaas||[]).push([[792],{17:(Qr,Ia,$c)=>{"use strict";function yo(t,n,e,i,o,r,s){try{var a=t[r](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,o)}function ct(t){return function(){var n=this,e=arguments;return new Promise(function(i,o){var r=t.apply(n,e);function s(l){yo(r,i,o,s,a,"next",l)}function a(l){yo(r,i,o,s,a,"throw",l)}s(void 0)})}}let bt=null,er=1;const Qi=Symbol("SIGNAL");function ce(t){const n=bt;return bt=t,n}function wa(t){if((!Co(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==er)){if(!t.producerMustRecompute(t)&&!tr(t))return t.dirty=!1,void(t.lastCleanEpoch=er);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=er}}function tr(t){Mn(t);for(let n=0;n<t.producerNode.length;n++){const e=t.producerNode[n],i=t.producerLastReadVersion[n];if(i!==e.version||(wa(e),i!==e.version))return!0}return!1}function Ki(t,n){if(function ir(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}(t),Mn(t),1===t.liveConsumerNode.length)for(let i=0;i<t.producerNode.length;i++)Ki(t.producerNode[i],t.producerIndexOfThis[i]);const e=t.liveConsumerNode.length-1;if(t.liveConsumerNode[n]=t.liveConsumerNode[e],t.liveConsumerIndexOfThis[n]=t.liveConsumerIndexOfThis[e],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,n<t.liveConsumerNode.length){const i=t.liveConsumerIndexOfThis[n],o=t.liveConsumerNode[n];Mn(o),o.producerIndexOfThis[i]=n}}function Co(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Mn(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let Pa=null;function ve(t){return"function"==typeof t}function Io(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Zi=Io(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e});function wi(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class Te{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(ve(i))try{i()}catch(r){n=r instanceof Zi?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{Na(r)}catch(s){n=n??[],s instanceof Zi?n=[...n,...s.errors]:n.push(s)}}if(n)throw new Zi(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Na(n);else{if(n instanceof Te){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&wi(e,n)}remove(n){const{_finalizers:e}=this;e&&wi(e,n),n instanceof Te&&n._removeParent(this)}}Te.EMPTY=(()=>{const t=new Te;return t.closed=!0,t})();const Di=Te.EMPTY;function ka(t){return t instanceof Te||t&&"closed"in t&&ve(t.remove)&&ve(t.add)&&ve(t.unsubscribe)}function Na(t){ve(t)?t():t.unsubscribe()}const Wn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},zt={setTimeout(t,n,...e){const{delegate:i}=zt;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=zt;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Jc(t){zt.setTimeout(()=>{const{onUnhandledError:n}=Wn;if(!n)throw t;n(t)})}function Ra(){}const Df=Yr("C",void 0,void 0);function Yr(t,n,e){return{kind:t,value:n,error:e}}let Ei=null;function rr(t){if(Wn.useDeprecatedSynchronousErrorHandling){const n=!Ei;if(n&&(Ei={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=Ei;if(Ei=null,e)throw i}}else t()}class So extends Te{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,ka(n)&&n.add(this)):this.destination=Tf}static create(n,e,i){return new Ba(n,e,i)}next(n){this.isStopped?wo(function xf(t){return Yr("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?wo(function Ef(t){return Yr("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?wo(Df,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Fa=Function.prototype.bind;function La(t,n){return Fa.call(t,n)}class Pf{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){es(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){es(i)}else es(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){es(e)}}}class Ba extends So{constructor(n,e,i){let o;if(super(),ve(n)||!n)o={next:n??void 0,error:e??void 0,complete:i??void 0};else{let r;this&&Wn.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&La(n.next,r),error:n.error&&La(n.error,r),complete:n.complete&&La(n.complete,r)}):o=n}this.destination=new Pf(o)}}function es(t){Wn.useDeprecatedSynchronousErrorHandling?function Qc(t){Wn.useDeprecatedSynchronousErrorHandling&&Ei&&(Ei.errorThrown=!0,Ei.error=t)}(t):Jc(t)}function wo(t,n){const{onStoppedNotification:e}=Wn;e&&zt.setTimeout(()=>e(t,n))}const Tf={closed:!0,next:Ra,error:function Of(t){throw t},complete:Ra},Va="function"==typeof Symbol&&Symbol.observable||"@@observable";function Do(t){return t}let ot=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function Kc(t){return t&&t instanceof So||function kf(t){return t&&ve(t.next)&&ve(t.error)&&ve(t.complete)}(t)&&ka(t)}(e)?e:new Ba(e,i,o);return rr(()=>{const{operator:s,source:a}=this;r.add(s?s.call(r,a):a?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Xc(i))((o,r)=>{const s=new Ba({next:a=>{try{e(a)}catch(l){r(l),s.unsubscribe()}},error:r,complete:o});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[Va](){return this}pipe(...e){return function ts(t){return 0===t.length?Do:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}(e)(this)}toPromise(e){return new(e=Xc(e))((i,o)=>{let r;this.subscribe(s=>r=s,s=>o(s),()=>i(r))})}}return t.create=n=>new t(n),t})();function Xc(t){var n;return null!==(n=t??Wn.Promise)&&void 0!==n?n:Promise}const Nf=Io(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let re=(()=>{class t extends ot{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Zc(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Nf}next(e){rr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){rr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){rr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:o,observers:r}=this;return i||o?Di:(this.currentObservers=null,r.push(e),new Te(()=>{this.currentObservers=null,wi(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new ot;return e.source=this,e}}return t.create=(n,e)=>new Zc(n,e),t})();class Zc extends re{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:Di}}class Jn extends re{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function Ct(t){return n=>{if(function Yc(t){return ve(t?.lift)}(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function tt(t,n,e,i,o){return new ja(t,n,e,i,o)}class ja extends So{constructor(n,e,i,o,r,s){super(n),this.onFinalize=r,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Nn(t,n){return Ct((e,i)=>{let o=0;e.subscribe(tt(i,r=>{i.next(t.call(n,r,o++))}))})}const ed="https://g.co/ng/security#xss";class x extends Error{constructor(n,e){super(function Yi(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function hn(t){return{toString:t}.toString()}const xi="__parameters__";function Et(t,n,e){return hn(()=>{const i=function Oo(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const s=new o(...r);return a.annotation=s,a;function a(l,c,d){const u=l.hasOwnProperty(xi)?l[xi]:Object.defineProperty(l,xi,{value:[]})[xi];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}const me=globalThis;function fe(t){for(let n in t)if(t[n]===fe)return n;throw Error("Could not find renamed property on target object.")}function ai(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function dt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(dt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function is(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const Rn=fe({__forward_ref__:fe});function xe(t){return t.__forward_ref__=xe,t.toString=function(){return dt(this())},t}function K(t){return To(t)?t():t}function To(t){return"function"==typeof t&&t.hasOwnProperty(Rn)&&t.__forward_ref__===xe}function B(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function De(t){return{providers:t.providers||[],imports:t.imports||[]}}function rd(t){return qy(t,ad)||qy(t,Wy)}function qy(t,n){return t.hasOwnProperty(n)?t[n]:null}function sd(t){return t&&(t.hasOwnProperty(Vf)||t.hasOwnProperty(tT))?t[Vf]:null}const ad=fe({\u0275prov:fe}),Vf=fe({\u0275inj:fe}),Wy=fe({ngInjectableDef:fe}),tT=fe({ngInjectorDef:fe});class k{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=B({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Uf(t){return t&&!!t.\u0275providers}const $a=fe({\u0275cmp:fe}),Gf=fe({\u0275dir:fe}),qf=fe({\u0275pipe:fe}),Qy=fe({\u0275mod:fe}),eo=fe({\u0275fac:fe}),Ua=fe({__NG_ELEMENT_ID__:fe}),Xy=fe({__NG_ENV_ID__:fe});function se(t){return"string"==typeof t?t:null==t?"":String(t)}function Wf(t,n){throw new x(-201,!1)}var Ee=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Ee||{});let Jf;function Ky(){return Jf}function In(t){const n=Jf;return Jf=t,n}function Zy(t,n,e){const i=rd(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Ee.Optional?null:void 0!==n?n:void Wf()}const Ga={},Qf="__NG_DI_FLAG__",ld="ngTempTokenPath",aT=/\n/gm,Yy="__source";let rs;function ko(t){const n=rs;return rs=t,n}function dT(t,n=Ee.Default){if(void 0===rs)throw new x(-203,!1);return null===rs?Zy(t,void 0,n):rs.get(t,n&Ee.Optional?null:void 0,n)}function O(t,n=Ee.Default){return(Ky()||dT)(K(t),n)}function G(t,n=Ee.Default){return O(t,cd(n))}function cd(t){return typeof t>"u"||"number"==typeof t?t:(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Xf(t){const n=[];for(let e=0;e<t.length;e++){const i=K(t[e]);if(Array.isArray(i)){if(0===i.length)throw new x(900,!1);let o,r=Ee.Default;for(let s=0;s<i.length;s++){const a=i[s],l=uT(a);"number"==typeof l?-1===l?o=a.token:r|=l:o=a}n.push(O(o,r))}else n.push(O(i))}return n}function qa(t,n){return t[Qf]=n,t.prototype[Qf]=n,t}function uT(t){return t[Qf]}const Wa=qa(Et("Optional"),8),Kf=qa(Et("SkipSelf"),4);function lr(t,n){return t.hasOwnProperty(eo)?t[eo]:null}function ss(t,n){t.forEach(e=>Array.isArray(e)?ss(e,n):n(e))}function tb(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function dd(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Fn(t,n,e){let i=as(t,n);return i>=0?t[1|i]=e:(i=~i,function nb(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function Yf(t,n){const e=as(t,n);if(e>=0)return t[1|e]}function as(t,n){return function ib(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),s=t[r<<e];if(n===s)return r<<e;s>n?o=r:i=r+1}return~(o<<e)}(t,n,1)}const Ti={},Ae=[],ls=new k(""),ob=new k("",-1),ep=new k("");class hd{get(n,e=Ga){if(e===Ga){const i=new Error(`NullInjectorError: No provider for ${dt(n)}!`);throw i.name="NullInjectorError",i}return e}}var fd=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(fd||{}),li=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(li||{}),j=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(j||{});function vT(t,n,e){let i=t.length;for(;;){const o=t.indexOf(n,e);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const r=n.length;if(o+r===i||t.charCodeAt(o+r)<=32)return o}e=o+1}}function tp(t,n,e){let i=0;for(;i<e.length;){const o=e[i];if("number"==typeof o){if(0!==o)break;i++;const r=e[i++],s=e[i++],a=e[i++];t.setAttribute(n,s,a,r)}else{const r=o,s=e[++i];sb(r)?t.setProperty(n,r,s):t.setAttribute(n,r,s),i++}}return i}function rb(t){return 3===t||4===t||6===t}function sb(t){return 64===t.charCodeAt(0)}function Ja(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const o=n[i];"number"==typeof o?e=o:0===e||ab(t,e,o,null,-1===e||2===e?n[++i]:null)}}return t}function ab(t,n,e,i,o){let r=0,s=t.length;if(-1===n)s=-1;else for(;r<t.length;){const a=t[r++];if("number"==typeof a){if(a===n){s=-1;break}if(a>n){s=r-1;break}}}for(;r<t.length;){const a=t[r];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==o&&(t[r+1]=o));if(i===t[r+1])return void(t[r+2]=o)}r++,null!==i&&r++,null!==o&&r++}-1!==s&&(t.splice(s,0,n),r=s+1),t.splice(r++,0,e),null!==i&&t.splice(r++,0,i),null!==o&&t.splice(r++,0,o)}const lb="ng-template";function yT(t,n,e,i){let o=0;if(i){for(;o<n.length&&"string"==typeof n[o];o+=2)if("class"===n[o]&&-1!==vT(n[o+1].toLowerCase(),e,0))return!0}else if(np(t))return!1;if(o=n.indexOf(1,o),o>-1){let r;for(;++o<n.length&&"string"==typeof(r=n[o]);)if(r.toLowerCase()===e)return!0}return!1}function np(t){return 4===t.type&&t.value!==lb}function bT(t,n,e){return n===(4!==t.type||e?t.value:lb)}function CT(t,n,e){let i=4;const o=t.attrs,r=null!==o?function ST(t){for(let n=0;n<t.length;n++)if(rb(t[n]))return n;return t.length}(o):0;let s=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!s)if(4&i){if(i=2|1&i,""!==l&&!bT(t,l,e)||""===l&&1===n.length){if(ci(i))return!1;s=!0}}else if(8&i){if(null===o||!yT(t,o,l,e)){if(ci(i))return!1;s=!0}}else{const c=n[++a],d=MT(l,o,np(t),e);if(-1===d){if(ci(i))return!1;s=!0;continue}if(""!==c){let u;if(u=d>r?"":o[d+1].toLowerCase(),2&i&&c!==u){if(ci(i))return!1;s=!0}}}}else{if(!s&&!ci(i)&&!ci(l))return!1;if(s&&ci(l))continue;s=!1,i=l|1&i}}return ci(i)||s}function ci(t){return!(1&t)}function MT(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o<n.length;){const s=n[o];if(s===t)return o;if(3===s||6===s)r=!0;else{if(1===s||2===s){let a=n[++o];for(;"string"==typeof a;)a=n[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=r?1:2}return-1}return function wT(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function cb(t,n,e=!1){for(let i=0;i<n.length;i++)if(CT(t,n[i],e))return!0;return!1}function DT(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let o=0;o<t.length;o++)if(t[o]!==i[o])continue e;return!0}}return!1}function db(t,n){return t?":not("+n.trim()+")":n}function ET(t){let n=t[0],e=1,i=2,o="",r=!1;for(;e<t.length;){let s=t[e];if("string"==typeof s)if(2&i){const a=t[++e];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?o+="."+s:4&i&&(o+=" "+s);else""!==o&&!ci(s)&&(n+=db(r,o),o=""),i=s,r=r||!ci(i);e++}return""!==o&&(n+=db(r,o)),n}function be(t){return hn(()=>{const n=hb(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===fd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||li.Emulated,styles:t.styles||Ae,_:null,schemas:t.schemas||null,tView:null,id:""};fb(e);const i=t.dependencies;return e.directiveDefs=pd(i,!1),e.pipeDefs=pd(i,!0),e.id=function kT(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)n=Math.imul(31,n)+o.charCodeAt(0)|0;return n+=2147483648,"c"+n}(e),e})}function OT(t){return _e(t)||Pt(t)}function TT(t){return null!==t}function Pe(t){return hn(()=>({type:t.type,bootstrap:t.bootstrap||Ae,declarations:t.declarations||Ae,imports:t.imports||Ae,exports:t.exports||Ae,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function ub(t,n){if(null==t)return Ti;const e={};for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];let r,s,a=j.None;Array.isArray(o)?(a=o[0],r=o[1],s=o[2]??r):(r=o,s=o),n?(e[r]=a!==j.None?[i,a]:i,n[r]=s):e[r]=i}return e}function A(t){return hn(()=>{const n=hb(t);return fb(n),n})}function fn(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function _e(t){return t[$a]||null}function Pt(t){return t[Gf]||null}function Ut(t){return t[qf]||null}function hb(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||Ti,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||Ae,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ub(t.inputs,n),outputs:ub(t.outputs),debugInfo:null}}function fb(t){t.features?.forEach(n=>n(t))}function pd(t,n){if(!t)return null;const e=n?Ut:OT;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(TT)}function NT(...t){return{\u0275providers:ip(0,t),\u0275fromNgModule:!0}}function ip(t,...n){const e=[],i=new Set;let o;const r=s=>{e.push(s)};return ss(n,s=>{const a=s;gd(a,r,[],i)&&(o||=[],o.push(a))}),void 0!==o&&pb(o,r),e}function pb(t,n){for(let e=0;e<t.length;e++){const{ngModule:i,providers:o}=t[e];op(o,r=>{n(r,i)})}}function gd(t,n,e,i){if(!(t=K(t)))return!1;let o=null,r=sd(t);const s=!r&&_e(t);if(r||s){if(s&&!s.standalone)return!1;o=t}else{const l=t.ngModule;if(r=sd(l),!r)return!1;o=l}const a=i.has(o);if(s){if(a)return!1;if(i.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)gd(c,n,e,i)}}else{if(!r)return!1;{if(null!=r.imports&&!a){let c;i.add(o);try{ss(r.imports,d=>{gd(d,n,e,i)&&(c||=[],c.push(d))})}finally{}void 0!==c&&pb(c,n)}if(!a){const c=lr(o)||(()=>new o);n({provide:o,useFactory:c,deps:Ae},o),n({provide:ep,useValue:o,multi:!0},o),n({provide:ls,useValue:()=>O(o),multi:!0},o)}const l=r.providers;if(null!=l&&!a){const c=t;op(l,d=>{n(d,c)})}}}return o!==t&&void 0!==t.providers}function op(t,n){for(let e of t)Uf(e)&&(e=e.\u0275providers),Array.isArray(e)?op(e,n):n(e)}const RT=fe({provide:String,useValue:fe});function rp(t){return null!==t&&"object"==typeof t&&RT in t}function dr(t){return"function"==typeof t}const sp=new k(""),md={},LT={};let ap;function _d(){return void 0===ap&&(ap=new hd),ap}class di{}class cs extends di{get destroyed(){return this._destroyed}constructor(n,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,cp(n,s=>this.processProvider(s)),this.records.set(ob,ds(void 0,this)),o.has("environment")&&this.records.set(di,ds(void 0,this));const r=this.records.get(sp);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(ep,Ae,Ee.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=ce(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ce(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=ko(this),i=In(void 0);try{return n()}finally{ko(e),In(i)}}get(n,e=Ga,i=Ee.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Xy))return n[Xy](this);i=cd(i);const r=ko(this),s=In(void 0);try{if(!(i&Ee.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function zT(t){return"function"==typeof t||"object"==typeof t&&t instanceof k}(n)&&rd(n);l=c&&this.injectableDefInScope(c)?ds(lp(n),md):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&Ee.Self?_d():this.parent).get(n,e=i&Ee.Optional&&e===Ga?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[ld]=a[ld]||[]).unshift(dt(n)),r)throw a;return function hT(t,n,e,i){const o=t[ld];throw n[Yy]&&o.unshift(n[Yy]),t.message=function fT(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=dt(n);if(Array.isArray(n))o=n.map(dt).join(" -> ");else if("object"==typeof n){let r=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];r.push(s+":"+("string"==typeof a?JSON.stringify(a):dt(a)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(aT,"\n  ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[ld]=null,t}(a,n,"R3InjectorError",this.source)}throw a}finally{In(s),ko(r)}}resolveInjectorInitializers(){const n=ce(null),e=ko(this),i=In(void 0);try{const r=this.get(ls,Ae,Ee.Self);for(const s of r)s()}finally{ko(e),In(i),ce(n)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(dt(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new x(205,!1)}processProvider(n){let e=dr(n=K(n))?n:K(n&&n.provide);const i=function VT(t){return rp(t)?ds(void 0,t.useValue):ds(_b(t),md)}(n);if(!dr(n)&&!0===n.multi){let o=this.records.get(e);o||(o=ds(void 0,md,!0),o.factory=()=>Xf(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,i)}hydrate(n,e){const i=ce(null);try{return e.value===md&&(e.value=LT,e.value=e.factory()),"object"==typeof e.value&&e.value&&function HT(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ce(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const e=K(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function lp(t){const n=rd(t),e=null!==n?n.factory:lr(t);if(null!==e)return e;if(t instanceof k)throw new x(204,!1);if(t instanceof Function)return function BT(t){if(t.length>0)throw new x(204,!1);const e=function eT(t){return t&&(t[ad]||t[Wy])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new x(204,!1)}function _b(t,n,e){let i;if(dr(t)){const o=K(t);return lr(o)||lp(o)}if(rp(t))i=()=>K(t.useValue);else if(function mb(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...Xf(t.deps||[]));else if(function gb(t){return!(!t||!t.useExisting)}(t))i=()=>O(K(t.useExisting));else{const o=K(t&&(t.useClass||t.provide));if(!function jT(t){return!!t.deps}(t))return lr(o)||lp(o);i=()=>new o(...Xf(t.deps))}return i}function ds(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function cp(t,n){for(const e of t)Array.isArray(e)?cp(e,n):e&&Uf(e)?cp(e.\u0275providers,n):n(e)}const nt=0,L=1,Q=2,ft=3,ui=4,tn=5,Ln=6,hs=7,qe=8,Mt=9,hi=10,ne=11,Ka=12,bb=13,fs=14,rt=15,Za=16,ps=17,to=18,Ya=19,Cb=20,No=21,bd=22,ur=23,ae=25,hp=1,Ai=7,gs=9,pt=10;var fp=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(fp||{});function nn(t){return Array.isArray(t)&&"object"==typeof t[hp]}function on(t){return Array.isArray(t)&&!0===t[hp]}function pp(t){return!!(4&t.flags)}function hr(t){return t.componentOffset>-1}function Md(t){return!(1&~t.flags)}function fi(t){return!!t.template}function gp(t){return!!(512&t[Q])}class wb{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Db(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function wn(){return Eb}function Eb(t){return t.type.prototype.ngOnChanges&&(t.setInput=nA),tA}function tA(){const t=Pb(this),n=t?.current;if(n){const e=t.previous;if(e===Ti)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function nA(t,n,e,i,o){const r=this.declaredInputs[i],s=Pb(t)||function iA(t,n){return t[xb]=n}(t,{previous:Ti,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[r];a[r]=new wb(c&&c.currentValue,e,l===Ti),Db(t,n,o,e)}wn.ngInherit=!0;const xb="__ngSimpleChanges__";function Pb(t){return t[xb]||null}const ki=function(t,n,e){},Ob="svg";let Ab=!1;function Ve(t){for(;Array.isArray(t);)t=t[nt];return t}function tl(t,n){return Ve(n[t])}function pn(t,n){return Ve(n[t.index])}function nl(t,n){return t.data[n]}function ms(t,n){return t[n]}function Bn(t,n){const e=n[t];return nn(e)?e:e[nt]}function bp(t){return!(128&~t[Q])}function Ni(t,n){return null==n?null:t[n]}function kb(t){t[ps]=0}function cA(t){1024&t[Q]||(t[Q]|=1024,bp(t)&&il(t))}function Cp(t){return!!(9216&t[Q]||t[ur]?.dirty)}function Mp(t){t[hi].changeDetectionScheduler?.notify(1),Cp(t)?il(t):64&t[Q]&&(function rA(){return Ab}()?(t[Q]|=1024,il(t)):t[hi].changeDetectionScheduler?.notify())}function il(t){t[hi].changeDetectionScheduler?.notify();let n=fr(t);for(;null!==n&&!(8192&n[Q])&&(n[Q]|=8192,bp(n));)n=fr(n)}function Id(t,n){if(!(256&~t[Q]))throw new x(911,!1);null===t[No]&&(t[No]=[]),t[No].push(n)}function fr(t){const n=t[ft];return on(n)?n[ft]:n}const ie={lFrame:$b(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Fb(){return ie.bindingsEnabled}function _s(){return null!==ie.skipHydrationRootTNode}function E(){return ie.lFrame.lView}function Me(){return ie.lFrame.tView}function He(t){return ie.lFrame.contextLView=t,t[qe]}function ze(t){return ie.lFrame.contextLView=null,t}function Be(){let t=Lb();for(;null!==t&&64===t.type;)t=t.parent;return t}function Lb(){return ie.lFrame.currentTNode}function Ri(t,n){const e=ie.lFrame;e.currentTNode=t,e.isParent=n}function Sp(){return ie.lFrame.isParent}function wp(){ie.lFrame.isParent=!1}function gn(){const t=ie.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function pi(){return ie.lFrame.bindingIndex++}function io(t){const n=ie.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function bA(t,n){const e=ie.lFrame;e.bindingIndex=e.bindingRootIndex=t,Dp(n)}function Dp(t){ie.lFrame.currentDirectiveIndex=t}function Ep(t){const n=ie.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function xp(){return ie.lFrame.currentQueryIndex}function Sd(t){ie.lFrame.currentQueryIndex=t}function MA(t){const n=t[L];return 2===n.type?n.declTNode:1===n.type?t[tn]:null}function Hb(t,n,e){if(e&Ee.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&Ee.Host||(o=MA(r),null===o||(r=r[fs],10&o.type))););if(null===o)return!1;n=o,t=r}const i=ie.lFrame=zb();return i.currentTNode=n,i.lView=t,!0}function Pp(t){const n=zb(),e=t[L];ie.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function zb(){const t=ie.lFrame,n=null===t?null:t.child;return null===n?$b(t):n}function $b(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function Ub(){const t=ie.lFrame;return ie.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Gb=Ub;function Op(){const t=Ub();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function rn(){return ie.lFrame.selectedIndex}function pr(t){ie.lFrame.selectedIndex=t}function We(){const t=ie.lFrame;return nl(t.tView,t.selectedIndex)}function Tp(){ie.lFrame.currentNamespace=Ob}function Ap(){!function wA(){ie.lFrame.currentNamespace=null}()}let Wb=!0;function rl(){return Wb}function Fi(t){Wb=t}function wd(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const r=t.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:d}=r;s&&(t.contentHooks??=[]).push(-e,s),a&&((t.contentHooks??=[]).push(e,a),(t.contentCheckHooks??=[]).push(e,a)),l&&(t.viewHooks??=[]).push(-e,l),c&&((t.viewHooks??=[]).push(e,c),(t.viewCheckHooks??=[]).push(e,c)),null!=d&&(t.destroyHooks??=[]).push(e,d)}}function Dd(t,n,e){Jb(t,n,3,e)}function Ed(t,n,e,i){(3&t[Q])===e&&Jb(t,n,e,i)}function kp(t,n){let e=t[Q];(3&e)===n&&(e&=16383,e+=1,t[Q]=e)}function Jb(t,n,e,i){const r=i??-1,s=n.length-1;let a=0;for(let l=void 0!==i?65535&t[ps]:0;l<s;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=i&&a>=i)break}else n[l]<0&&(t[ps]+=65536),(a<r||-1==r)&&(EA(t,e,n,l),t[ps]=(4294901760&t[ps])+l+2),l++}function Qb(t,n){ki(4,t,n);const e=ce(null);try{n.call(t)}finally{ce(e),ki(5,t,n)}}function EA(t,n,e,i){const o=e[i]<0,r=e[i+1],a=t[o?-e[i]:e[i]];o?t[Q]>>14<t[ps]>>16&&(3&t[Q])===n&&(t[Q]+=16384,Qb(a,r)):Qb(a,r)}const vs=-1;class sl{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Rp(t){return t!==vs}function al(t){return 32767&t}function ll(t,n){let e=function AA(t){return t>>16}(t),i=n;for(;e>0;)i=i[fs],e--;return i}let Fp=!0;function xd(t){const n=Fp;return Fp=t,n}const Xb=255,Kb=5;let kA=0;const Li={};function Pd(t,n){const e=Zb(t,n);if(-1!==e)return e;const i=n[L];i.firstCreatePass&&(t.injectorIndex=n.length,Lp(i.data,t),Lp(n,null),Lp(i.blueprint,null));const o=Od(t,n),r=t.injectorIndex;if(Rp(o)){const s=al(o),a=ll(o,n),l=a[L].data;for(let c=0;c<8;c++)n[r+c]=a[s+c]|l[s+c]}return n[r+8]=o,r}function Lp(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Zb(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Od(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){if(i=rC(o),null===i)return vs;if(e++,o=o[fs],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return vs}function Bp(t,n,e){!function NA(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Ua)&&(i=e[Ua]),null==i&&(i=e[Ua]=kA++);const o=i&Xb;n.data[t+(o>>Kb)]|=1<<o}(t,n,e)}function Yb(t,n,e){if(e&Ee.Optional||void 0!==t)return t;Wf()}function eC(t,n,e,i){if(e&Ee.Optional&&void 0===i&&(i=null),!(e&(Ee.Self|Ee.Host))){const o=t[Mt],r=In(void 0);try{return o?o.get(n,i,e&Ee.Optional):Zy(n,i,e&Ee.Optional)}finally{In(r)}}return Yb(i,0,e)}function tC(t,n,e,i=Ee.Default,o){if(null!==t){if(2048&n[Q]&&!(i&Ee.Self)){const s=function VA(t,n,e,i,o){let r=t,s=n;for(;null!==r&&null!==s&&2048&s[Q]&&!(512&s[Q]);){const a=nC(r,s,e,i|Ee.Self,Li);if(a!==Li)return a;let l=r.parent;if(!l){const c=s[Cb];if(c){const d=c.get(e,Li,i);if(d!==Li)return d}l=rC(s),s=s[fs]}r=l}return o}(t,n,e,i,Li);if(s!==Li)return s}const r=nC(t,n,e,i,Li);if(r!==Li)return r}return eC(n,e,i,o)}function nC(t,n,e,i,o){const r=function LA(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(Ua)?t[Ua]:void 0;return"number"==typeof n?n>=0?n&Xb:BA:n}(e);if("function"==typeof r){if(!Hb(n,t,i))return i&Ee.Host?Yb(o,0,i):eC(n,e,i,o);try{let s;if(s=r(i),null!=s||i&Ee.Optional)return s;Wf()}finally{Gb()}}else if("number"==typeof r){let s=null,a=Zb(t,n),l=vs,c=i&Ee.Host?n[rt][tn]:null;for((-1===a||i&Ee.SkipSelf)&&(l=-1===a?Od(t,n):n[a+8],l!==vs&&oC(i,!1)?(s=n[L],a=al(l),n=ll(l,n)):a=-1);-1!==a;){const d=n[L];if(iC(r,a,d.data)){const u=FA(a,n,e,s,i,c);if(u!==Li)return u}l=n[a+8],l!==vs&&oC(i,n[L].data[a+8]===c)&&iC(r,a,n)?(s=d,a=al(l),n=ll(l,n)):a=-1}}return o}function FA(t,n,e,i,o,r){const s=n[L],a=s.data[t+8],d=Td(a,s,e,null==i?hr(a)&&Fp:i!=s&&!!(3&a.type),o&Ee.Host&&r===a);return null!==d?gr(n,s,d,a):Li}function Td(t,n,e,i,o){const r=t.providerIndexes,s=n.data,a=1048575&r,l=t.directiveStart,d=r>>20,h=o?a+d:t.directiveEnd;for(let f=i?a:a+d;f<h;f++){const p=s[f];if(f<l&&e===p||f>=l&&p.type===e)return f}if(o){const f=s[l];if(f&&fi(f)&&f.type===e)return l}return null}function gr(t,n,e,i){let o=t[e];const r=n.data;if(function xA(t){return t instanceof sl}(o)){const s=o;s.resolving&&function oT(t,n){throw n&&n.join(" > "),new x(-200,t)}(function ke(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():se(t)}(r[e]));const a=xd(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?In(s.injectImpl):null;Hb(t,i,Ee.Default);try{o=t[e]=s.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function DA(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const s=Eb(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}(e,r[e],n)}finally{null!==c&&In(c),xd(a),s.resolving=!1,Gb()}}return o}function iC(t,n,e){return!!(e[n+(t>>Kb)]&1<<t)}function oC(t,n){return!(t&Ee.Self||t&Ee.Host&&n)}class Tt{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return tC(this._tNode,this._lView,n,cd(i),e)}}function BA(){return new Tt(Be(),E())}function we(t){return hn(()=>{const n=t.prototype.constructor,e=n[eo]||Vp(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[eo]||Vp(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Vp(t){return To(t)?()=>{const n=Vp(K(t));return n&&n()}:lr(t)}function rC(t){const n=t[L],e=n.type;return 2===e?n.declTNode:1===e?t[tn]:null}function dC(t,n=null,e=null,i){const o=uC(t,n,e,i);return o.resolveInjectorInitializers(),o}function uC(t,n=null,e=null,i,o=new Set){const r=[e||Ae,NT(t)];return i=i||("object"==typeof t?void 0:dt(t)),new cs(r,n||_d(),i||null,o)}let Gt=(()=>{class t{static{this.THROW_IF_NOT_FOUND=Ga}static{this.NULL=new hd}static create(e,i){if(Array.isArray(e))return dC({name:""},i,e,"");{const o=e.name??"";return dC({name:o},e.parent,e.providers,o)}}static{this.\u0275prov=B({token:t,providedIn:"any",factory:()=>O(ob)})}static{this.__NG_ELEMENT_ID__=-1}}return t})();function Hp(t){return t.ngOriginalError}class Bi{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Hp(n);for(;e&&Hp(e);)e=Hp(e);return e||null}}const fC=new k("",{providedIn:"root",factory:()=>G(Bi).handleError.bind(void 0)});let Cs=(()=>{class t{static{this.__NG_ELEMENT_ID__=JA}static{this.__NG_ENV_ID__=e=>e}}return t})();class WA extends Cs{constructor(n){super(),this._lView=n}onDestroy(n){return Id(this._lView,n),()=>function Ip(t,n){if(null===t[No])return;const e=t[No].indexOf(n);-1!==e&&t[No].splice(e,1)}(this._lView,n)}}function JA(){return new WA(E())}function QA(){return Ms(Be(),E())}function Ms(t,n){return new he(pn(t,n))}let he=(()=>{class t{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=QA}}return t})();function gC(t){return t instanceof he?t.nativeElement:t}function zp(t){return n=>{setTimeout(t,void 0,n)}}const de=class XA extends re{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,function vb(){return void 0!==Ky()||null!=function cT(){return rs}()}()&&(this.destroyRef=G(Cs,{optional:!0})??void 0)}emit(n){const e=ce(null);try{super.next(n)}finally{ce(e)}}subscribe(n,e,i){let o=n,r=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;o=l.next?.bind(l),r=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(r=zp(r),o&&(o=zp(o)),s&&(s=zp(s)));const a=super.subscribe({next:o,error:r,complete:s});return n instanceof Te&&n.add(a),a}};function KA(){return this._results[Symbol.iterator]()}class dl{get changes(){return this._changes??=new de}constructor(n=!1){this._emitDistinctChangesOnly=n,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 e=dl.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=KA)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;const i=function Sn(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function _T(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let o=t[i],r=n[i];if(e&&(o=e(o),r=e(r)),r!==o)return!1}return!0}(this._results,i,e))&&(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(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function kd(t){return!(128&~t.flags)}const $p=new Map;let YA=0;const Gp="__ngContext__";function sn(t,n){nn(n)?(t[Gp]=n[Ya],function tk(t){$p.set(t[Ya],t)}(n)):t[Gp]=n}function wC(t){return EC(t[Ka])}function DC(t){return EC(t[ui])}function EC(t){for(;null!==t&&!on(t);)t=t[ui];return t}let qp;function Ro(){if(void 0!==qp)return qp;if(typeof document<"u")return document;throw new x(210,!1)}const Fd=new k("",{providedIn:"root",factory:()=>yk}),yk="ng",RC=new k(""),oo=new k("",{providedIn:"platform",factory:()=>"unknown"}),Wp=new k(""),FC=new k("",{providedIn:"root",factory:()=>Ro().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let LC=()=>null;function tg(t,n,e=!1){return LC(t,n,e)}const zC=new k("",{providedIn:"root",factory:()=>!1});let $d,Ud;function ws(t){return function rg(){if(void 0===$d&&($d=null,me.trustedTypes))try{$d=me.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return $d}()?.createHTML(t)||t}function UC(t){return function sg(){if(void 0===Ud&&(Ud=null,me.trustedTypes))try{Ud=me.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ud}()?.createHTML(t)||t}class WC{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ed})`}}function Fo(t){return t instanceof WC?t.changingThisBreaksApplicationSecurity:t}class Vk{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(ws(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class jk{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=ws(n),e}}const zk=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ro(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function vl(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const QC=ro("area,br,col,hr,img,wbr"),XC=ro("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),KC=ro("rp,rt"),lg=vl(QC,vl(XC,ro("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")),vl(KC,ro("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")),vl(KC,XC)),cg=ro("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ZC=vl(cg,ro("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"),ro("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")),$k=ro("script,style,template");class Uk{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0,o=[];for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)o.push(e),e=Wk(e);else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=qk(e);if(r){e=r;break}e=o.pop()}return this.buf.join("")}startElement(n){const e=YC(n).toLowerCase();if(!lg.hasOwnProperty(e))return this.sanitizedSomething=!0,!$k.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o<i.length;o++){const r=i.item(o),s=r.name,a=s.toLowerCase();if(!ZC.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=r.value;cg[a]&&(t=l,l=(t=String(t)).match(zk)?t:"unsafe:"+t),this.buf.push(" ",s,'="',t0(l),'"')}var t;return this.buf.push(">"),!0}endElement(n){const e=YC(n).toLowerCase();lg.hasOwnProperty(e)&&!QC.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(t0(n))}}function qk(t){const n=t.nextSibling;if(n&&t!==n.previousSibling)throw e0(n);return n}function Wk(t){const n=t.firstChild;if(n&&function Gk(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,n))throw e0(n);return n}function YC(t){const n=t.nodeName;return"string"==typeof n?n:"FORM"}function e0(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const Jk=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Qk=/([^\#-~ |!])/g;function t0(t){return t.replace(/&/g,"&amp;").replace(Jk,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(Qk,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Gd;function dg(t){return"content"in t&&function Kk(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ds=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ds||{});function n0(t){const n=function yl(){const t=E();return t&&t[hi].sanitizer}();return n?UC(n.sanitize(Ds.HTML,t)||""):function _l(t,n){const e=function Bk(t){return t instanceof WC&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${ed})`)}return e===n}(t,"HTML")?UC(Fo(t)):function Xk(t,n){let e=null;try{Gd=Gd||function JC(t){const n=new jk(t);return function Hk(){try{return!!(new window.DOMParser).parseFromString(ws(""),"text/html")}catch{return!1}}()?new Vk(n):n}(t);let i=n?String(n):"";e=Gd.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=Gd.getInertBodyElement(i)}while(i!==r);return ws((new Uk).sanitizeChildren(dg(e)||e))}finally{if(e){const i=dg(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}(Ro(),se(t))}const oN=/^>|^->|<!--|-->|--!>|<!-$/g,rN=/(<|>)/g,sN="\u200b$1\u200b";var Lo=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Lo||{});let pg;function gg(t,n){return pg(t,n)}function xs(t,n,e,i,o){if(null!=i){let r,s=!1;on(i)?r=i:nn(i)&&(s=!0,i=i[nt]);const a=Ve(i);0===t&&null!==e?null==o?_0(n,e,a):mr(n,e,a,o||null,!0):1===t&&null!==e?mr(n,e,a,o||null,!0):2===t?function Ml(t,n,e){const i=Xd(t,n);i&&function wN(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=r&&function xN(t,n,e,i,o){const r=e[Ai];r!==Ve(e)&&xs(n,t,i,r,o);for(let a=pt;a<e.length;a++){const l=e[a];Zd(l[L],l,t,n,i,r)}}(n,t,r,e,o)}}function _g(t,n){return t.createComment(function s0(t){return t.replace(oN,n=>n.replace(rN,sN))}(n))}function Jd(t,n,e){return t.createElement(n,e)}function p0(t,n){n[hi].changeDetectionScheduler?.notify(1),Zd(t,n,n[ne],2,null,null)}function g0(t,n){const e=t[gs],i=e.indexOf(n);e.splice(i,1)}function bl(t,n){if(t.length<=pt)return;const e=pt+n,i=t[e];if(i){const o=i[Za];null!==o&&o!==t&&g0(o,i),n>0&&(t[e-1][ui]=i[ui]);const r=dd(t,pt+n);!function vN(t,n){p0(t,n),n[nt]=null,n[tn]=null}(i[L],i);const s=r[to];null!==s&&s.detachView(r[L]),i[ft]=null,i[ui]=null,i[Q]&=-129}return i}function Qd(t,n){if(!(256&n[Q])){const e=n[ne];e.destroyNode&&Zd(t,n,e,3,null,null),function bN(t){let n=t[Ka];if(!n)return vg(t[L],t);for(;n;){let e=null;if(nn(n))e=n[Ka];else{const i=n[pt];i&&(e=i)}if(!e){for(;n&&!n[ui]&&n!==t;)nn(n)&&vg(n[L],n),n=n[ft];null===n&&(n=t),nn(n)&&vg(n[L],n),e=n&&n[ui]}n=e}}(n)}}function vg(t,n){if(256&n[Q])return;const e=ce(null);try{n[Q]&=-129,n[Q]|=256,n[ur]&&function Ea(t){if(Mn(t),Co(t))for(let n=0;n<t.producerNode.length;n++)Ki(t.producerNode[n],t.producerIndexOfThis[n]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}(n[ur]),function SN(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const o=n[e[i]];if(!(o instanceof sl)){const r=e[i+1];if(Array.isArray(r))for(let s=0;s<r.length;s+=2){const a=o[r[s]],l=r[s+1];ki(4,a,l);try{l.call(a)}finally{ki(5,a,l)}}else{ki(4,o,r);try{r.call(o)}finally{ki(5,o,r)}}}}}(t,n),function IN(t,n){const e=t.cleanup,i=n[hs];if(null!==e)for(let r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const s=e[r+3];s>=0?i[s]():i[-s].unsubscribe(),r+=2}else e[r].call(i[e[r+1]]);null!==i&&(n[hs]=null);const o=n[No];if(null!==o){n[No]=null;for(let r=0;r<o.length;r++)(0,o[r])()}}(t,n),1===n[L].type&&n[ne].destroy();const i=n[Za];if(null!==i&&on(n[ft])){i!==n[ft]&&g0(i,n);const o=n[to];null!==o&&o.detachView(t)}!function nk(t){$p.delete(t[Ya])}(n)}finally{ce(e)}}function yg(t,n,e){return function m0(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[nt];{const{componentOffset:o}=i;if(o>-1){const{encapsulation:r}=t.data[i.directiveStart+o];if(r===li.None||r===li.Emulated)return null}return pn(i,e)}}(t,n.parent,e)}function mr(t,n,e,i,o){t.insertBefore(n,e,i,o)}function _0(t,n,e){t.appendChild(n,e)}function v0(t,n,e,i,o){null!==i?mr(t,n,e,i,o):_0(t,n,e)}function Xd(t,n){return t.parentNode(n)}function y0(t,n,e){return C0(t,n,e)}let bg,C0=function b0(t,n,e){return 40&t.type?pn(t,e):null};function Kd(t,n,e,i){const o=yg(t,i,n),r=n[ne],a=y0(i.parent||n[tn],i,n);if(null!=o)if(Array.isArray(e))for(let l=0;l<e.length;l++)v0(r,o,e[l],a,!1);else v0(r,o,e,a,!1);void 0!==bg&&bg(r,i,n,e,o)}function Cl(t,n){if(null!==n){const e=n.type;if(3&e)return pn(n,t);if(4&e)return Cg(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return Cl(t,i);{const o=t[n.index];return on(o)?Cg(-1,o):Ve(o)}}if(32&e)return gg(n,t)()||Ve(t[n.index]);{const i=I0(t,n);return null!==i?Array.isArray(i)?i[0]:Cl(fr(t[rt]),i):Cl(t,n.next)}}return null}function I0(t,n){return null!==n?t[rt][tn].projection[n.projection]:null}function Cg(t,n){const e=pt+t+1;if(e<n.length){const i=n[e],o=i[L].firstChild;if(null!==o)return Cl(i,o)}return n[Ai]}function Mg(t,n,e,i,o,r,s){for(;null!=e;){const a=i[e.index],l=e.type;if(s&&0===n&&(a&&sn(Ve(a),i),e.flags|=2),32&~e.flags)if(8&l)Mg(t,n,e.child,i,o,r,!1),xs(n,t,o,a,r);else if(32&l){const c=gg(e,i);let d;for(;d=c();)xs(n,t,o,d,r);xs(n,t,o,a,r)}else 16&l?w0(t,n,i,e,o,r):xs(n,t,o,a,r);e=s?e.projectionNext:e.next}}function Zd(t,n,e,i,o,r){Mg(e,i,t.firstChild,n,o,r,!1)}function w0(t,n,e,i,o,r){const s=e[rt],l=s[tn].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)xs(n,t,o,l[c],r);else{let c=l;const d=s[ft];kd(i)&&(c.flags|=128),Mg(t,n,c,d,o,r,!0)}}function D0(t,n,e){""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function E0(t,n,e){const{mergedAttrs:i,classes:o,styles:r}=e;null!==i&&tp(t,n,i),null!==o&&D0(t,n,o),null!==r&&function ON(t,n,e){t.setAttribute(n,"style",e)}(t,n,r)}const le={};function T(t=1){x0(Me(),E(),rn()+t,!1)}function x0(t,n,e,i){if(!i)if(3&~n[Q]){const r=t.preOrderHooks;null!==r&&Ed(n,r,0,e)}else{const r=t.preOrderCheckHooks;null!==r&&Dd(n,r,e)}pr(e)}function C(t,n=Ee.Default){const e=E();return null===e?O(t,n):tC(Be(),e,K(t),n)}function O0(t,n,e,i,o,r){const s=ce(null);try{let a=null;o&j.SignalBased&&(a=n[i][Qi]),null!==a&&void 0!==a.transformFn&&(r=a.transformFn(r)),o&j.HasDecoratorInputTransform&&(r=t.inputTransforms[i].call(n,r)),null!==t.setInput?t.setInput(n,a,r,e,i):Db(n,a,i,r)}finally{ce(s)}}function Yd(t,n,e,i,o,r,s,a,l,c,d){const u=n.blueprint.slice();return u[nt]=o,u[Q]=204|i,(null!==c||t&&2048&t[Q])&&(u[Q]|=2048),kb(u),u[ft]=u[fs]=t,u[qe]=e,u[hi]=s||t&&t[hi],u[ne]=a||t&&t[ne],u[Mt]=l||t&&t[Mt]||null,u[tn]=r,u[Ya]=function ek(){return YA++}(),u[Ln]=d,u[Cb]=c,u[rt]=2==n.type?t[rt]:u,u}function Ps(t,n,e,i,o){let r=t.data[n];if(null===r)r=function Ig(t,n,e,i,o){const r=Lb(),s=Sp(),l=t.data[n]=function BN(t,n,e,i,o,r){let s=n?n.injectorIndex:-1,a=0;return _s()&&(a|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?r:r&&r.parent,e,n,i,o);return null===t.firstChild&&(t.firstChild=l),null!==r&&(s?null==r.child&&null!==l.parent&&(r.child=l):null===r.next&&(r.next=l,l.prev=r)),l}(t,n,e,i,o),function yA(){return ie.lFrame.inI18n}()&&(r.flags|=32);else if(64&r.type){r.type=e,r.value=i,r.attrs=o;const s=function ol(){const t=ie.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();r.injectorIndex=null===s?-1:s.injectorIndex}return Ri(r,!0),r}function Il(t,n,e,i){if(0===e)return-1;const o=n.length;for(let r=0;r<e;r++)n.push(i),t.blueprint.push(i),t.data.push(null);return o}function T0(t,n,e,i,o){const r=rn(),s=2&i;try{pr(-1),s&&n.length>ae&&x0(t,n,ae,!1),ki(s?2:0,o),e(i,o)}finally{pr(r),ki(s?3:1,o)}}function Sg(t,n,e){if(pp(n)){const i=ce(null);try{const r=n.directiveEnd;for(let s=n.directiveStart;s<r;s++){const a=t.data[s];a.contentQueries&&a.contentQueries(1,e[s],s)}}finally{ce(i)}}}function wg(t,n,e){Fb()&&(function GN(t,n,e,i){const o=e.directiveStart,r=e.directiveEnd;hr(e)&&function ZN(t,n,e){const i=pn(n,t),o=A0(e);let s=16;e.signals?s=4096:e.onPush&&(s=64);const a=eu(t,Yd(t,o,null,s,i,n,null,t[hi].rendererFactory.createRenderer(i,e),null,null,null));t[n.index]=a}(n,e,t.data[o+e.componentOffset]),t.firstCreatePass||Pd(e,n),sn(i,n);const s=e.initialInputs;for(let a=o;a<r;a++){const l=t.data[a],c=gr(n,t,a,e);sn(c,n),null!==s&&YN(0,a-o,c,l,0,s),fi(l)&&(Bn(e.index,n)[qe]=gr(n,t,a,e))}}(t,n,e,pn(e,n)),!(64&~e.flags)&&L0(t,n,e))}function Dg(t,n,e=pn){const i=n.localNames;if(null!==i){let o=n.index+1;for(let r=0;r<i.length;r+=2){const s=i[r+1],a=-1===s?e(n,t):t[s];t[o++]=a}}}function A0(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=Eg(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):n}function Eg(t,n,e,i,o,r,s,a,l,c,d){const u=ae+i,h=u+o,f=function AN(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:le);return e}(u,h),p="function"==typeof c?c():c;return f[L]={type:t,blueprint:f,template:e,queries:null,viewQuery:a,declTNode:n,data:f.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1,ssrId:d}}let k0=()=>null;function N0(t,n,e,i,o){for(let r in n){if(!n.hasOwnProperty(r))continue;const s=n[r];if(void 0===s)continue;i??={};let a,l=j.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=r;if(null!==o){if(!o.hasOwnProperty(r))continue;c=o[r]}0===t?R0(i,e,c,a,l):R0(i,e,c,a)}return i}function R0(t,n,e,i,o){let r;t.hasOwnProperty(e)?(r=t[e]).push(n,i):r=t[e]=[n,i],void 0!==o&&r.push(o)}function En(t,n,e,i,o,r,s,a){const l=pn(n,e);let d,c=n.inputs;!a&&null!=c&&(d=c[i])?(Ag(t,e,d,i,o),hr(n)&&function HN(t,n){const e=Bn(n,t);16&e[Q]||(e[Q]|=64)}(e,n.index)):3&n.type&&(i=function jN(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),o=null!=s?s(o,n.value||"",i):o,r.setProperty(l,i,o))}function xg(t,n,e,i){if(Fb()){const o=null===i?null:{"":-1},r=function WN(t,n){const e=t.directiveRegistry;let i=null,o=null;if(e)for(let r=0;r<e.length;r++){const s=e[r];if(cb(n,s.selectors,!1))if(i||(i=[]),fi(s))if(null!==s.findHostDirectiveDefs){const a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),i.unshift(...a,s),Pg(t,n,a.length)}else i.unshift(s),Pg(t,n,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,i,o),i.push(s)}return null===i?null:[i,o]}(t,e);let s,a;null===r?s=a=null:[s,a]=r,null!==s&&F0(t,n,e,s,o,a),o&&function JN(t,n,e){if(n){const i=t.localNames=[];for(let o=0;o<n.length;o+=2){const r=e[n[o+1]];if(null==r)throw new x(-301,!1);i.push(n[o],r)}}}(e,i,o)}e.mergedAttrs=Ja(e.mergedAttrs,e.attrs)}function F0(t,n,e,i,o,r){for(let c=0;c<i.length;c++)Bp(Pd(e,n),t,i[c].type);!function XN(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}(e,t.data.length,i.length);for(let c=0;c<i.length;c++){const d=i[c];d.providersResolver&&d.providersResolver(d)}let s=!1,a=!1,l=Il(t,n,i.length,null);for(let c=0;c<i.length;c++){const d=i[c];e.mergedAttrs=Ja(e.mergedAttrs,d.hostAttrs),KN(t,e,n,l,d),QN(l,d,o),null!==d.contentQueries&&(e.flags|=4),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=64);const u=d.type.prototype;!s&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((t.preOrderHooks??=[]).push(e.index),s=!0),!a&&(u.ngOnChanges||u.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(e.index),a=!0),l++}!function VN(t,n,e){const o=n.directiveEnd,r=t.data,s=n.attrs,a=[];let l=null,c=null;for(let d=n.directiveStart;d<o;d++){const u=r[d],h=e?e.get(u):null,p=h?h.outputs:null;l=N0(0,u.inputs,d,l,h?h.inputs:null),c=N0(1,u.outputs,d,c,p);const _=null===l||null===s||np(n)?null:eR(l,d,s);a.push(_)}null!==l&&(l.hasOwnProperty("class")&&(n.flags|=8),l.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=a,n.inputs=l,n.outputs=c}(t,e,r)}function L0(t,n,e){const i=e.directiveStart,o=e.directiveEnd,r=e.index,s=function CA(){return ie.lFrame.currentDirectiveIndex}();try{pr(r);for(let a=i;a<o;a++){const l=t.data[a],c=n[a];Dp(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&qN(l,c)}}finally{pr(-1),Dp(s)}}function qN(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function Pg(t,n,e){n.componentOffset=e,(t.components??=[]).push(n.index)}function QN(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;fi(n)&&(e[""]=t)}}function KN(t,n,e,i,o){t.data[i]=o;const r=o.factory||(o.factory=lr(o.type)),s=new sl(r,fi(o),C);t.blueprint[i]=s,e[i]=s,function $N(t,n,e,i,o){const r=o.hostBindings;if(r){let s=t.hostBindingOpCodes;null===s&&(s=t.hostBindingOpCodes=[]);const a=~n.index;(function UN(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,r)}}(t,n,i,Il(t,e,o.hostVars,le),o)}function Vi(t,n,e,i,o,r){const s=pn(t,n);!function Og(t,n,e,i,o,r,s){if(null==r)t.removeAttribute(n,o,e);else{const a=null==s?se(r):s(r,i||"",o);t.setAttribute(n,o,a,e)}}(n[ne],s,r,t.value,e,i,o)}function YN(t,n,e,i,o,r){const s=r[n];if(null!==s)for(let a=0;a<s.length;)O0(i,e,s[a++],s[a++],s[a++],s[a++])}function eR(t,n,e){let i=null,o=0;for(;o<e.length;){const r=e[o];if(0!==r)if(5!==r){if("number"==typeof r)break;if(t.hasOwnProperty(r)){null===i&&(i=[]);const s=t[r];for(let a=0;a<s.length;a+=3)if(s[a]===n){i.push(r,s[a+1],s[a+2],e[o+1]);break}}o+=2}else o+=2;else o+=4}return i}function B0(t,n,e,i){return[t,!0,0,n,null,i,null,e,null,null]}function V0(t,n){const e=t.contentQueries;if(null!==e){const i=ce(null);try{for(let o=0;o<e.length;o+=2){const s=e[o+1];if(-1!==s){const a=t.data[s];Sd(e[o]),a.contentQueries(2,n[s],s)}}}finally{ce(i)}}}function eu(t,n){return t[Ka]?t[bb][ui]=n:t[Ka]=n,t[bb]=n,n}function Tg(t,n,e){Sd(0);const i=ce(null);try{n(t,e)}finally{ce(i)}}function j0(t){return t[hs]||(t[hs]=[])}function H0(t){return t.cleanup||(t.cleanup=[])}function z0(t,n,e){return(null===t||fi(t))&&(e=function yp(t){for(;Array.isArray(t);){if("object"==typeof t[hp])return t;t=t[nt]}return null}(e[n.index])),e[ne]}function tu(t,n){const e=t[Mt],i=e?e.get(Bi,null):null;i&&i.handleError(n)}function Ag(t,n,e,i,o){for(let r=0;r<e.length;){const s=e[r++],a=e[r++],l=e[r++];O0(t.data[s],n[s],i,a,l,o)}}function tR(t,n){const e=Bn(n,t),i=e[L];!function nR(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])}(i,e);const o=e[nt];null!==o&&null===e[Ln]&&(e[Ln]=tg(o,e[Mt])),kg(i,e,e[qe])}function kg(t,n,e){Pp(n);try{const i=t.viewQuery;null!==i&&Tg(1,i,e);const o=t.template;null!==o&&T0(t,n,o,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),n[to]?.finishViewCreation(t),t.staticContentQueries&&V0(t,n),t.staticViewQueries&&Tg(2,t.viewQuery,e);const r=t.components;null!==r&&function iR(t,n){for(let e=0;e<n.length;e++)tR(t,n[e])}(n,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[Q]&=-5,Op()}}function Os(t,n){return!n||null===n.firstChild||kd(t)}function wl(t,n,e,i=!0){const o=n[L];if(function CN(t,n,e,i){const o=pt+i,r=e.length;i>0&&(e[o-1][ui]=n),i<r-pt?(n[ui]=e[o],tb(e,pt+i,n)):(e.push(n),n[ui]=null),n[ft]=e;const s=n[Za];null!==s&&e!==s&&function MN(t,n){const e=t[gs];n[rt]!==n[ft][ft][rt]&&(t[Q]|=fp.HasTransplantedViews),null===e?t[gs]=[n]:e.push(n)}(s,n);const a=n[to];null!==a&&a.insertView(t),Mp(n),n[Q]|=128}(o,n,t,e),i){const s=Cg(e,t),a=n[ne],l=Xd(a,t[Ai]);null!==l&&function yN(t,n,e,i,o,r){i[nt]=o,i[tn]=n,Zd(t,i,e,1,o,r)}(o,t[tn],a,n,l,s)}const r=n[Ln];null!==r&&null!==r.firstChild&&(r.firstChild=null)}function Dl(t,n,e,i,o=!1){for(;null!==e;){const r=n[e.index];null!==r&&i.push(Ve(r)),on(r)&&U0(r,i);const s=e.type;if(8&s)Dl(t,n,e.child,i);else if(32&s){const a=gg(e,n);let l;for(;l=a();)i.push(l)}else if(16&s){const a=I0(n,e);if(Array.isArray(a))i.push(...a);else{const l=fr(n[rt]);Dl(l[L],l,a,i,!0)}}e=o?e.projectionNext:e.next}return i}function U0(t,n){for(let e=pt;e<t.length;e++){const i=t[e],o=i[L].firstChild;null!==o&&Dl(i[L],i,o,n)}t[Ai]!==t[nt]&&n.push(t[Ai])}let G0=[];const aR={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:t=>{il(t.lView)},consumerOnSignalRead(){this.lView[ur]=this}},q0=100;function nu(t,n=!0,e=0){const i=t[hi],o=i.rendererFactory;o.begin?.();try{!function lR(t,n){Rg(t,n);let e=0;for(;Cp(t);){if(e===q0)throw new x(103,!1);e++,Rg(t,1)}}(t,e)}catch(s){throw n&&tu(t,s),s}finally{o.end?.(),i.inlineEffectRunner?.flush()}}function cR(t,n,e,i){const o=n[Q];if(!(256&~o))return;n[hi].inlineEffectRunner?.flush(),Pp(n);let s=null,a=null;(function dR(t){return 2!==t.type})(t)&&(a=function oR(t){return t[ur]??function rR(t){const n=G0.pop()??Object.create(aR);return n.lView=t,n}(t)}(n),s=function Kt(t){return t&&(t.nextProducerIndex=0),ce(t)}(a));try{kb(n),function Vb(t){return ie.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&T0(t,n,e,2,i);const l=!(3&~o);if(l){const u=t.preOrderCheckHooks;null!==u&&Dd(n,u,null)}else{const u=t.preOrderHooks;null!==u&&Ed(n,u,0,null),kp(n,0)}if(function uR(t){for(let n=wC(t);null!==n;n=DC(n)){if(!(n[Q]&fp.HasTransplantedViews))continue;const e=n[gs];for(let i=0;i<e.length;i++){cA(e[i])}}}(n),W0(n,0),null!==t.contentQueries&&V0(t,n),l){const u=t.contentCheckHooks;null!==u&&Dd(n,u)}else{const u=t.contentHooks;null!==u&&Ed(n,u,1),kp(n,1)}!function TN(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const o=e[i];if(o<0)pr(~o);else{const r=o,s=e[++i],a=e[++i];bA(s,r),a(2,n[r])}}}finally{pr(-1)}}(t,n);const c=t.components;null!==c&&Q0(n,c,0);const d=t.viewQuery;if(null!==d&&Tg(2,d,i),l){const u=t.viewCheckHooks;null!==u&&Dd(n,u)}else{const u=t.viewHooks;null!==u&&Ed(n,u,2),kp(n,2)}if(!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[bd]){for(const u of n[bd])u();n[bd]=null}n[Q]&=-73}catch(l){throw il(n),l}finally{null!==a&&(function Xr(t,n){if(ce(n),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(Co(t))for(let e=t.nextProducerIndex;e<t.producerNode.length;e++)Ki(t.producerNode[e],t.producerIndexOfThis[e]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(a,s),function sR(t){t.lView[ur]!==t&&(t.lView=null,G0.push(t))}(a)),Op()}}function W0(t,n){for(let e=wC(t);null!==e;e=DC(e))for(let i=pt;i<e.length;i++)J0(e[i],n)}function hR(t,n,e){J0(Bn(n,t),e)}function J0(t,n){bp(t)&&Rg(t,n)}function Rg(t,n){const i=t[L],o=t[Q],r=t[ur];let s=!!(0===n&&16&o);if(s||=!!(64&o&&0===n),s||=!!(1024&o),s||=!(!r?.dirty||!tr(r)),r&&(r.dirty=!1),t[Q]&=-9217,s)cR(i,t,i.template,t[qe]);else if(8192&o){W0(t,1);const a=i.components;null!==a&&Q0(t,a,1)}}function Q0(t,n,e){for(let i=0;i<n.length;i++)hR(t,n[i],e)}function El(t){for(t[hi].changeDetectionScheduler?.notify();t;){t[Q]|=64;const n=fr(t);if(gp(t)&&!n)return t;t=n}return null}class xl{get rootNodes(){const n=this._lView,e=n[L];return Dl(e,n,e.firstChild,[])}constructor(n,e,i=!0){this._lView=n,this._cdRefInjectingView=e,this.notifyErrorHandler=i,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[qe]}set context(n){this._lView[qe]=n}get destroyed(){return!(256&~this._lView[Q])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[ft];if(on(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(bl(n,i),dd(e,i))}this._attachedToViewContainer=!1}Qd(this._lView[L],this._lView)}onDestroy(n){Id(this._lView,n)}markForCheck(){El(this._cdRefInjectingView||this._lView)}detach(){this._lView[Q]&=-129}reattach(){Mp(this._lView),this._lView[Q]|=128}detectChanges(){this._lView[Q]|=1024,nu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new x(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,p0(this._lView[L],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new x(902,!1);this._appRef=n,Mp(this._lView)}}let Lt=(()=>{class t{static{this.__NG_ELEMENT_ID__=gR}}return t})();const fR=Lt,pR=class extends fR{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const o=function Sl(t,n,e,i){const o=ce(null);try{const r=n.tView,l=Yd(t,r,e,4096&t[Q]?4096:16,null,n,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null);l[Za]=t[n.index];const d=t[to];return null!==d&&(l[to]=d.createEmbeddedView(r)),kg(r,l,e),l}finally{ce(o)}}(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new xl(o)}};function gR(){return iu(Be(),E())}function iu(t,n){return 4&t.type?new pR(n,t,Ms(t,n)):null}class lu{}class VR{}class nM{}class HR{resolveComponentFactory(n){throw function jR(t){const n=Error(`No component factory found for ${dt(t)}.`);return n.ngComponent=t,n}(n)}}let _r=(()=>{class t{static{this.NULL=new HR}}return t})();class Hg{}let jn=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function zR(){const t=E(),e=Bn(Be().index,t);return(nn(e)?e:t)[ne]}()}}return t})(),$R=(()=>{class t{static{this.\u0275prov=B({token:t,providedIn:"root",factory:()=>null})}}return t})();const zg={},oM=new Set;function rM(...t){}class pe{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new de(!1),this.onMicrotaskEmpty=new de(!1),this.onStable=new de(!1),this.onError=new de(!1),typeof Zone>"u")throw new x(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)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function UR(){const t="function"==typeof me.requestAnimationFrame;let n=me[t?"requestAnimationFrame":"setTimeout"],e=me[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function WR(t){const n=()=>{!function qR(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(me,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ug(t),t.isCheckStableRunning=!0,$g(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ug(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,s,a)=>{if(function JR(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(a))return e.invokeTask(o,r,s,a);try{return sM(t),e.invokeTask(o,r,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),aM(t)}},onInvoke:(e,i,o,r,s,a,l)=>{try{return sM(t),e.invoke(o,r,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),aM(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Ug(t),$g(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!pe.isInAngularZone())throw new x(909,!1)}static assertNotInAngularZone(){if(pe.isInAngularZone())throw new x(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+o,n,GR,rM,rM);try{return r.runTask(s,e,i)}finally{r.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const GR={};function $g(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Ug(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function sM(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function aM(t){t._nesting--,$g(t)}class lM{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new de,this.onMicrotaskEmpty=new de,this.onStable=new de,this.onError=new de}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}let kl=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of e)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=B({token:t,providedIn:"root",factory:()=>new t})}}return t})();function du(t,n,e){let i=e?t.styles:null,o=e?t.classes:null,r=0;if(null!==n)for(let s=0;s<n.length;s++){const a=n[s];"number"==typeof a?r=a:1==r?o=is(o,a):2==r&&(i=is(i,a+": "+n[++s]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=o:t.classesWithoutHost=o}class pM extends _r{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=_e(n);return new Fl(e,this.ngModule)}}function gM(t){const n=[];for(const e in t){if(!t.hasOwnProperty(e))continue;const i=t[e];void 0!==i&&n.push({propName:Array.isArray(i)?i[0]:i,templateName:e})}return n}class uu{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=cd(i);const o=this.injector.get(n,zg,i);return o!==zg||e===zg?o:this.parentInjector.get(n,e,i)}}class Fl extends nM{get inputs(){const n=this.componentDef,e=n.inputTransforms,i=gM(n.inputs);if(null!==e)for(const o of i)e.hasOwnProperty(o.propName)&&(o.transform=e[o.propName]);return i}get outputs(){return gM(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function xT(t){return t.map(ET).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,o){const r=ce(null);try{let s=(o=o||this.ngModule)instanceof di?o:o?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const a=s?new uu(n,s):n,l=a.get(Hg,null);if(null===l)throw new x(407,!1);const c=a.get($R,null),h={rendererFactory:l,sanitizer:c,inlineEffectRunner:null,afterRenderEventManager:a.get(kl,null),changeDetectionScheduler:a.get(lu,null)},f=l.createRenderer(null,this.componentDef),p=this.componentDef.selectors[0][0]||"div",_=i?function kN(t,n,e,i){const r=i.get(zC,!1)||e===li.ShadowDom,s=t.selectRootElement(n,r);return function NN(t){k0(t)}(s),s}(f,i,this.componentDef.encapsulation,a):Jd(f,p,function eF(t){const n=t.toLowerCase();return"svg"===n?Ob:"math"===n?"math":null}(p));let y=512;this.componentDef.signals?y|=4096:this.componentDef.onPush||(y|=16);let b=null;null!==_&&(b=tg(_,a,!0));const M=Eg(0,null,null,1,0,null,null,null,null,null,null),w=Yd(null,M,null,y,null,null,h,f,a,null,b);let D,P;Pp(w);try{const z=this.componentDef;let W,Ce=null;z.findHostDirectiveDefs?(W=[],Ce=new Map,z.findHostDirectiveDefs(z,W,Ce),W.push(z)):W=[z];const lt=function nF(t,n){const e=t[L],i=ae;return t[i]=n,Ps(e,i,2,"#host",null)}(w,_),dn=function iF(t,n,e,i,o,r,s){const a=o[L];!function oF(t,n,e,i){for(const o of t)n.mergedAttrs=Ja(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(du(n,n.mergedAttrs,!0),null!==e&&E0(i,e,n))}(i,t,n,s);let l=null;null!==n&&(l=tg(n,o[Mt]));const c=r.rendererFactory.createRenderer(n,e);let d=16;e.signals?d=4096:e.onPush&&(d=64);const u=Yd(o,A0(e),null,d,o[t.index],t,r,c,null,null,l);return a.firstCreatePass&&Pg(a,t,i.length-1),eu(o,u),o[t.index]=u}(lt,_,z,W,w,h,f);P=nl(M,ae),_&&function sF(t,n,e,i){if(i)tp(t,e,["ng-version","17.3.12"]);else{const{attrs:o,classes:r}=function PT(t){const n=[],e=[];let i=1,o=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===o?""!==r&&n.push(r,t[++i]):8===o&&e.push(r);else{if(!ci(o))break;o=r}i++}return{attrs:n,classes:e}}(n.selectors[0]);o&&tp(t,e,o),r&&r.length>0&&D0(t,e,r.join(" "))}}(f,z,_,i),void 0!==e&&function aF(t,n,e){const i=t.projection=[];for(let o=0;o<n.length;o++){const r=e[o];i.push(null!=r?Array.from(r):null)}}(P,this.ngContentSelectors,e),D=function rF(t,n,e,i,o,r){const s=Be(),a=o[L],l=pn(s,o);F0(a,o,s,e,null,i);for(let d=0;d<e.length;d++)sn(gr(o,a,s.directiveStart+d,s),o);L0(a,o,s),l&&sn(l,o);const c=gr(o,a,s.directiveStart+s.componentOffset,s);if(t[qe]=o[qe]=c,null!==r)for(const d of r)d(c,n);return Sg(a,s,o),c}(dn,z,W,Ce,w,[lF]),kg(M,w,null)}finally{Op()}return new tF(this.componentType,D,Ms(P,w),w,P)}finally{ce(r)}}}class tF extends VR{constructor(n,e,i,o,r){super(),this.location=i,this._rootLView=o,this._tNode=r,this.previousInputValues=null,this.instance=e,this.hostView=this.changeDetectorRef=new xl(o,void 0,!1),this.componentType=n}setInput(n,e){const i=this._tNode.inputs;let o;if(null!==i&&(o=i[n])){if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;const r=this._rootLView;Ag(r[L],r,o,n,e),this.previousInputValues.set(n,e),El(Bn(this._tNode.index,r))}}get injector(){return new Tt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function lF(){const t=Be();wd(E()[L],t)}let an=(()=>{class t{static{this.__NG_ELEMENT_ID__=cF}}return t})();function cF(){return vM(Be(),E())}const dF=an,mM=class extends dF{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Ms(this._hostTNode,this._hostLView)}get injector(){return new Tt(this._hostTNode,this._hostLView)}get parentInjector(){const n=Od(this._hostTNode,this._hostLView);if(Rp(n)){const e=ll(n,this._hostLView),i=al(n);return new Tt(e[L].data[i+8],e)}return new Tt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=_M(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-pt}createEmbeddedView(n,e,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const a=n.createEmbeddedViewImpl(e||{},r,null);return this.insertImpl(a,o,Os(this._hostTNode,null)),a}createComponent(n,e,i,o,r){const s=n&&!function Xa(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const p=e||{};a=p.index,i=p.injector,o=p.projectableNodes,r=p.environmentInjector||p.ngModuleRef}const l=s?n:new Fl(_e(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const _=(s?c:this.parentInjector).get(di,null);_&&(r=_)}_e(l.componentType??{});const f=l.create(c,o,null,r);return this.insertImpl(f.hostView,a,Os(this._hostTNode,null)),f}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){const o=n._lView;if(function lA(t){return on(t[ft])}(o)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const l=o[ft],c=new mM(l,l[tn],l[ft]);c.detach(c.indexOf(n))}}const r=this._adjustIndex(e),s=this._lContainer;return wl(s,o,r,i),n.attachToViewContainerRef(),tb(Jg(s),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=_M(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=bl(this._lContainer,e);i&&(dd(Jg(this._lContainer),e),Qd(i[L],i))}detach(n){const e=this._adjustIndex(n,-1),i=bl(this._lContainer,e);return i&&null!=dd(Jg(this._lContainer),e)?new xl(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function _M(t){return t[8]}function Jg(t){return t[8]||(t[8]=[])}function vM(t,n){let e;const i=n[t.index];return on(i)?e=i:(e=B0(i,n,null,t),n[t.index]=e,eu(n,e)),yM(e,n,t,i),new mM(e,t,n)}let yM=function CM(t,n,e,i){if(t[Ai])return;let o;o=8&e.type?Ve(i):function uF(t,n){const e=t[ne],i=e.createComment(""),o=pn(n,t);return mr(e,Xd(e,o),i,function DN(t,n){return t.nextSibling(n)}(e,o),!1),i}(n,e),t[Ai]=o},Qg=()=>!1;class Xg{constructor(n){this.queryList=n,this.matches=null}clone(){return new Xg(this.queryList)}setDirty(){this.queryList.setDirty()}}class Kg{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,o=[];for(let r=0;r<i;r++){const s=e.getByIndex(r);o.push(this.queries[s.indexInDeclarationView].clone())}return new Kg(o)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}finishViewCreation(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==nm(n,e).matches&&this.queries[e].setDirty()}}class MM{constructor(n,e,i=null){this.flags=e,this.read=i,this.predicate="string"==typeof n?function yF(t){return t.split(",").map(n=>n.trim())}(n):n}}class Zg{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const o=null!==e?e.length:0,r=this.getByIndex(i).embeddedTView(n,o);r&&(r.indexInDeclarationView=i,null!==e?e.push(r):e=[r])}return null!==e?new Zg(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class Yg{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new Yg(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1&~this.metadata.flags){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let o=0;o<i.length;o++){const r=i[o];this.matchTNodeWithReadOption(n,e,gF(e,r)),this.matchTNodeWithReadOption(n,e,Td(e,n,r,!1,!1))}else i===Lt?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,Td(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const o=this.metadata.read;if(null!==o)if(o===he||o===an||o===Lt&&4&e.type)this.addMatch(e.index,-2);else{const r=Td(e,n,o,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function gF(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function _F(t,n,e,i){return-1===e?function mF(t,n){return 11&t.type?Ms(t,n):4&t.type?iu(t,n):null}(n,t):-2===e?function vF(t,n,e){return e===he?Ms(n,t):e===Lt?iu(n,t):e===an?vM(n,t):void 0}(t,n,i):gr(t,t[L],e,n)}function IM(t,n,e,i){const o=n[to].queries[i];if(null===o.matches){const r=t.data,s=e.matches,a=[];for(let l=0;null!==s&&l<s.length;l+=2){const c=s[l];a.push(c<0?null:_F(n,r[c],s[l+1],e.metadata.read))}o.matches=a}return o.matches}function em(t,n,e,i){const o=t.queries.getByIndex(e),r=o.matches;if(null!==r){const s=IM(t,n,o,e);for(let a=0;a<r.length;a+=2){const l=r[a];if(l>0)i.push(s[a/2]);else{const c=r[a+1],d=n[-l];for(let u=pt;u<d.length;u++){const h=d[u];h[Za]===h[ft]&&em(h[L],h,c,i)}if(null!==d[gs]){const u=d[gs];for(let h=0;h<u.length;h++){const f=u[h];em(f[L],f,c,i)}}}}}return i}function SM(t,n,e){const i=new dl(!(4&~e));return function LN(t,n,e,i){const o=j0(n);o.push(e),t.firstCreatePass&&H0(t).push(i,o.length-1)}(t,n,i,i.destroy),(n[to]??=new Kg).queries.push(new Xg(i))-1}function EM(t,n,e){null===t.queries&&(t.queries=new Zg),t.queries.track(new Yg(n,e))}function nm(t,n){return t.queries.getByIndex(n)}function xM(t,n){const e=t[L],i=nm(e,n);return i.crossesNgTemplate?em(e,t,n,[]):IM(e,t,i,n)}function q(t){let n=function zM(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let o;if(fi(t))o=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new x(903,!1);o=n.\u0275dir}if(o){if(e){i.push(o);const s=t;s.inputs=fu(t.inputs),s.inputTransforms=fu(t.inputTransforms),s.declaredInputs=fu(t.declaredInputs),s.outputs=fu(t.outputs);const a=o.hostBindings;a&&RF(t,a);const l=o.viewQuery,c=o.contentQueries;if(l&&kF(t,l),c&&NF(t,c),TF(t,o),ai(t.outputs,o.outputs),fi(o)&&o.data.animation){const d=t.data;d.animation=(d.animation||[]).concat(o.data.animation)}}const r=o.features;if(r)for(let s=0;s<r.length;s++){const a=r[s];a&&a.ngInherit&&a(t),a===q&&(e=!1)}}n=Object.getPrototypeOf(n)}!function AF(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=Ja(o.hostAttrs,e=Ja(e,o.hostAttrs))}}(i)}function TF(t,n){for(const e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;const i=n.inputs[e];if(void 0!==i&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],null!==n.inputTransforms)){const o=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(o))continue;t.inputTransforms??={},t.inputTransforms[o]=n.inputTransforms[o]}}}function fu(t){return t===Ti?{}:t===Ae?[]:t}function kF(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function NF(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function RF(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}class br{}class zF{}class om extends br{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new pM(this);const o=function en(t,n){const e=t[Qy]||null;if(!e&&!0===n)throw new Error(`Type ${dt(t)} does not have '\u0275mod' property.`);return e}(n);this._bootstrapComponents=function Vn(t){return t instanceof Function?t():t}(o.bootstrap),this._r3Injector=uC(n,e,[{provide:br,useValue:this},{provide:_r,useValue:this.componentFactoryResolver},...i],dt(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class rm extends zF{constructor(n){super(),this.moduleType=n}create(n){return new om(this.moduleType,n,[])}}class qM extends br{constructor(n){super(),this.componentFactoryResolver=new pM(this),this.instance=null;const e=new cs([...n.providers,{provide:br,useValue:this},{provide:_r,useValue:this.componentFactoryResolver}],n.parent||_d(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}let ks=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Jn(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function gu(t){return!!function sm(t){return null!==t&&("function"==typeof t||"object"==typeof t)}(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function Hi(t,n,e){return t[n]=e}function gt(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function Ne(t,n,e,i,o,r,s,a){const l=E(),c=Me(),d=t+ae,u=c.firstCreatePass?function XF(t,n,e,i,o,r,s,a,l){const c=n.consts,d=Ps(n,t,4,s||null,Ni(c,a));xg(n,e,d,Ni(c,l)),wd(n,d);const u=d.tView=Eg(2,d,i,o,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,d),u.queries=n.queries.embeddedTView(d)),d}(d,c,l,n,e,i,o,r,s):c.data[d];Ri(u,!1);const h=JM(c,l,u,t);rl()&&Kd(c,l,h,u),sn(h,l);const f=B0(h,l,h,u);return l[d]=f,eu(l,f),function bM(t,n,e){return Qg(t,n,e)}(f,u,l),Md(u)&&wg(c,l,u),null!=s&&Dg(l,u,a),Ne}let JM=function QM(t,n,e,i){return Fi(!0),n[ne].createComment("")};function X(t,n,e,i){const o=E();return gt(o,pi(),n)&&(Me(),Vi(We(),o,t,n,e,i)),X}function Mu(t,n){return t<<17|n<<2}function jo(t){return t>>17&32767}function mm(t){return 2|t}function Ir(t){return(131068&t)>>2}function _m(t,n){return-131069&t|n<<2}function vm(t){return 1|t}function DI(t,n,e,i){const o=t[e+1],r=null===n;let s=i?jo(o):Ir(o),a=!1;for(;0!==s&&(!1===a||r);){const c=t[s+1];L2(t[s],n)&&(a=!0,t[s+1]=i?vm(c):mm(c)),s=i?jo(c):Ir(c)}a&&(t[e+1]=i?mm(o):vm(o))}function L2(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&as(t,n)>=0}const At={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function EI(t){return t.substring(At.key,At.keyEnd)}function B2(t){return t.substring(At.value,At.valueEnd)}function xI(t,n){const e=At.textEnd;return e===n?-1:(n=At.keyEnd=function H2(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,At.key=n,e),Qs(t,n,e))}function PI(t,n){const e=At.textEnd;let i=At.key=Qs(t,n,e);return e===i?-1:(i=At.keyEnd=function z2(t,n,e){let i;for(;n<e&&(45===(i=t.charCodeAt(n))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)n++;return n}(t,i,e),i=TI(t,i,e),i=At.value=Qs(t,i,e),i=At.valueEnd=function $2(t,n,e){let i=-1,o=-1,r=-1,s=n,a=s;for(;s<e;){const l=t.charCodeAt(s++);if(59===l)return a;34===l||39===l?a=s=AI(t,l,s,e):n===s-4&&85===r&&82===o&&76===i&&40===l?a=s=AI(t,41,s,e):l>32&&(a=s),r=o,o=i,i=-33&l}return a}(t,i,e),TI(t,i,e))}function OI(t){At.key=0,At.keyEnd=0,At.value=0,At.valueEnd=0,At.textEnd=t.length}function Qs(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function TI(t,n,e,i){return(n=Qs(t,n,e))<e&&n++,n}function AI(t,n,e,i){let o=-1,r=e;for(;r<i;){const s=t.charCodeAt(r++);if(s==n&&92!==o)return r;o=92==s&&92===o?0:s}throw new Error}function R(t,n,e){const i=E();return gt(i,pi(),n)&&En(Me(),We(),i,t,n,i[ne],e,!1),R}function ym(t,n,e,i,o){const s=o?"class":"style";Ag(t,e,n.inputs[s],s,i)}function Xs(t,n,e){return _i(t,n,e,!1),Xs}function Re(t,n){return _i(t,n,null,!0),Re}function U2(t,n){for(let e=function j2(t){return OI(t),PI(t,Qs(t,0,At.textEnd))}(n);e>=0;e=PI(n,e))RI(t,EI(n),B2(n))}function Ks(t){vi(X2,zi,t,!0)}function zi(t,n){for(let e=function V2(t){return OI(t),xI(t,Qs(t,0,At.textEnd))}(n);e>=0;e=xI(n,e))Fn(t,EI(n),!0)}function _i(t,n,e,i){const o=E(),r=Me(),s=io(2);r.firstUpdatePass&&NI(r,t,s,i),n!==le&&gt(o,s,n)&&FI(r,r.data[rn()],o,o[ne],t,o[s+1]=function Z2(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=dt(Fo(t)))),t}(n,e),i,s)}function vi(t,n,e,i){const o=Me(),r=io(2);o.firstUpdatePass&&NI(o,null,r,i);const s=E();if(e!==le&&gt(s,r,e)){const a=o.data[rn()];if(BI(a,i)&&!kI(o,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=is(l,e||"")),ym(o,a,s,e,i)}else!function K2(t,n,e,i,o,r,s,a){o===le&&(o=Ae);let l=0,c=0,d=0<o.length?o[0]:null,u=0<r.length?r[0]:null;for(;null!==d||null!==u;){const h=l<o.length?o[l+1]:void 0,f=c<r.length?r[c+1]:void 0;let _,p=null;d===u?(l+=2,c+=2,h!==f&&(p=u,_=f)):null===u||null!==d&&d<u?(l+=2,p=d):(c+=2,p=u,_=f),null!==p&&FI(t,n,e,i,p,_,s,a),d=l<o.length?o[l]:null,u=c<r.length?r[c]:null}}(o,a,s,s[ne],s[r+1],s[r+1]=function Q2(t,n,e){if(null==e||""===e)return Ae;const i=[],o=Fo(e);if(Array.isArray(o))for(let r=0;r<o.length;r++)t(i,o[r],!0);else if("object"==typeof o)for(const r in o)o.hasOwnProperty(r)&&t(i,r,o[r]);else"string"==typeof o&&n(i,o);return i}(t,n,e),i,r)}}function kI(t,n){return n>=t.expandoStartIndex}function NI(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[rn()],s=kI(t,e);BI(r,i)&&null===n&&!s&&(n=!1),n=function G2(t,n,e,i){const o=Ep(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=$l(e=bm(null,t,n,e,i),n.attrs,i),r=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==o)if(e=bm(o,t,n,e,i),null===r){let l=function q2(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Ir(i))return t[jo(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=bm(null,t,n,l[1],i),l=$l(l,n.attrs,i),function W2(t,n,e,i){t[jo(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function J2(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r<o;r++)i=$l(i,t[r].hostAttrs,e);return $l(i,n.attrs,e)}(t,n,i)}return void 0!==r&&(i?n.residualClasses=r:n.residualStyles=r),e}(o,r,n,i),function R2(t,n,e,i,o,r){let s=r?n.classBindings:n.styleBindings,a=jo(s),l=Ir(s);t[i]=e;let d,c=!1;if(Array.isArray(e)?(d=e[1],(null===d||as(e,d)>0)&&(c=!0)):d=e,o)if(0!==l){const h=jo(t[a+1]);t[i+1]=Mu(h,a),0!==h&&(t[h+1]=_m(t[h+1],i)),t[a+1]=function k2(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=Mu(a,0),0!==a&&(t[a+1]=_m(t[a+1],i)),a=i;else t[i+1]=Mu(l,0),0===a?a=i:t[l+1]=_m(t[l+1],i),l=i;c&&(t[i+1]=mm(t[i+1])),DI(t,d,i,!0),DI(t,d,i,!1),function F2(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&as(r,n)>=0&&(e[i+1]=vm(e[i+1]))}(n,d,t,i,r),s=Mu(a,l),r?n.classBindings=s:n.styleBindings=s}(o,r,n,e,s,i)}}function bm(t,n,e,i,o){let r=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<s&&(r=n[a],i=$l(i,r.hostAttrs,o),r!==t);)a++;return null!==t&&(e.directiveStylingLast=a),i}function $l(t,n,e){const i=e?1:2;let o=-1;if(null!==n)for(let r=0;r<n.length;r++){const s=n[r];"number"==typeof s?o=s:o===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Fn(t,s,!!e||n[++r]))}return void 0===t?null:t}function RI(t,n,e){Fn(t,n,Fo(e))}function X2(t,n,e){const i=String(n);""!==i&&!i.includes(" ")&&Fn(t,i,e)}function FI(t,n,e,i,o,r,s,a){if(!(3&n.type))return;const l=t.data,c=l[a+1],d=function N2(t){return!(1&~t)}(c)?LI(l,n,e,o,Ir(c),s):void 0;Iu(d)||(Iu(r)||function A2(t){return!(2&~t)}(c)&&(r=LI(l,null,e,o,a,s)),function PN(t,n,e,i,o){if(n)o?t.addClass(e,i):t.removeClass(e,i);else{let r=-1===i.indexOf("-")?void 0:Lo.DashCase;null==o?t.removeStyle(e,i,r):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),r|=Lo.Important),t.setStyle(e,i,o,r))}}(i,s,tl(rn(),e),o,r))}function LI(t,n,e,i,o,r){const s=null===n;let a;for(;o>0;){const l=t[o],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let h=e[o+1];h===le&&(h=u?Ae:void 0);let f=u?Yf(h,i):d===i?h:void 0;if(c&&!Iu(f)&&(f=Yf(l,i)),Iu(f)&&(a=f,s))return a;const p=t[o+1];o=s?jo(p):Ir(p)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(a=Yf(l,i))}return a}function Iu(t){return void 0!==t}function BI(t,n){return!!(t.flags&(n?8:16))}function N(t,n,e,i){const o=E(),r=Me(),s=ae+t,a=o[ne],l=r.firstCreatePass?function CL(t,n,e,i,o,r){const s=n.consts,l=Ps(n,t,2,i,Ni(s,o));return xg(n,e,l,Ni(s,r)),null!==l.attrs&&du(l,l.attrs,!1),null!==l.mergedAttrs&&du(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,r,o,n,e,i):r.data[s],c=zI(r,o,l,a,n,t);o[s]=c;const d=Md(l);return Ri(l,!0),E0(a,c,l),!function Vl(t){return!(32&~t.flags)}(l)&&rl()&&Kd(r,o,c,l),0===function dA(){return ie.lFrame.elementDepthCount}()&&sn(c,o),function uA(){ie.lFrame.elementDepthCount++}(),d&&(wg(r,o,l),Sg(r,l,o)),null!==i&&Dg(o,l),N}function V(){let t=Be();Sp()?wp():(t=t.parent,Ri(t,!1));const n=t;(function fA(t){return ie.skipHydrationRootTNode===t})(n)&&function _A(){ie.skipHydrationRootTNode=null}(),function hA(){ie.lFrame.elementDepthCount--}();const e=Me();return e.firstCreatePass&&(wd(e,t),pp(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function OA(t){return!!(8&t.flags)}(n)&&ym(e,n,E(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function TA(t){return!!(16&t.flags)}(n)&&ym(e,n,E(),n.stylesWithoutHost,!1),V}function mn(t,n,e,i){return N(t,n,e,i),V(),mn}let zI=(t,n,e,i,o,r)=>(Fi(!0),Jd(i,o,function qb(){return ie.lFrame.currentNamespace}()));function kt(t,n,e){const i=E(),o=Me(),r=t+ae,s=o.firstCreatePass?function SL(t,n,e,i,o){const r=n.consts,s=Ni(r,i),a=Ps(n,t,8,"ng-container",s);return null!==s&&du(a,s,!0),xg(n,e,a,Ni(r,o)),null!==n.queries&&n.queries.elementStart(n,a),a}(r,o,i,n,e):o.data[r];Ri(s,!0);const a=$I(o,i,s,t);return i[r]=a,rl()&&Kd(o,i,a,s),sn(a,i),Md(s)&&(wg(o,i,s),Sg(o,s,i)),null!=e&&Dg(i,s),kt}function Nt(){let t=Be();const n=Me();return Sp()?wp():(t=t.parent,Ri(t,!1)),n.firstCreatePass&&(wd(n,t),pp(t)&&n.queries.elementEnd(t)),Nt}let $I=(t,n,e,i)=>(Fi(!0),_g(n[ne],""));function qt(){return E()}function Su(t,n,e){const i=E();return gt(i,pi(),n)&&En(Me(),We(),i,t,n,i[ne],e,!0),Su}function wm(t,n,e){const i=E();if(gt(i,pi(),n)){const r=Me(),s=We();En(r,s,i,t,n,z0(Ep(r.data),s,i),e,!0)}return wm}const Ys="en-US";let qI=Ys;function ge(t,n,e,i){const o=E(),r=Me(),s=Be();return function xm(t,n,e,i,o,r,s){const a=Md(i),c=t.firstCreatePass&&H0(t),d=n[qe],u=j0(n);let h=!0;if(3&i.type||s){const _=pn(i,n),y=s?s(_):_,b=u.length,M=s?D=>s(Ve(D[i.index])):i.index;let w=null;if(!s&&a&&(w=function wB(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;r<o.length-1;r+=2){const s=o[r];if(s===e&&o[r+1]===i){const a=n[hs],l=o[r+2];return a.length>l?a[l]:null}"string"==typeof s&&(r+=2)}return null}(t,n,o,i.index)),null!==w)(w.__ngLastListenerFn__||w).__ngNextListenerFn__=r,w.__ngLastListenerFn__=r,h=!1;else{r=bS(i,n,d,r,!1);const D=e.listen(y,o,r);u.push(r,D),c&&c.push(o,M,b,b+1)}}else r=bS(i,n,d,r,!1);const f=i.outputs;let p;if(h&&null!==f&&(p=f[o])){const _=p.length;if(_)for(let y=0;y<_;y+=2){const P=n[p[y]][p[y+1]].subscribe(r),z=u.length;u.push(r,P),c&&c.push(o,i.index,z,-(z+1))}}}(r,o,o[ne],s,t,n,i),ge}function yS(t,n,e,i){const o=ce(null);try{return ki(6,n,e),!1!==e(i)}catch(r){return tu(t,r),!1}finally{ki(7,n,e),ce(o)}}function bS(t,n,e,i,o){return function r(s){if(s===Function)return i;El(t.componentOffset>-1?Bn(t.index,n):n);let l=yS(n,e,i,s),c=r.__ngNextListenerFn__;for(;c;)l=yS(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&s.preventDefault(),l}}function H(t=1){return function IA(t){return(ie.lFrame.contextLView=function Nb(t,n){for(;t>0;)n=n[fs],t--;return n}(t,ie.lFrame.contextLView))[qe]}(t)}function DB(t,n){let e=null;const i=function IT(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let o=0;o<n.length;o++){const r=n[o];if("*"!==r){if(null===i?cb(t,r,!0):DT(i,r))return o}else e=o}return e}function Ze(t){const n=E()[rt][tn];if(!n.projection){const i=n.projection=function ud(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}(t?t.length:1,null),o=i.slice();let r=n.child;for(;null!==r;){const s=t?DB(r,t):0;null!==s&&(o[s]?o[s].projectionNext=r:i[s]=r,o[s]=r),r=r.next}}}function Oe(t,n=0,e){const i=E(),o=Me(),r=Ps(o,ae+t,16,null,e||null);null===r.projection&&(r.projection=n),wp(),(!i[Ln]||_s())&&32&~r.flags&&function EN(t,n,e){w0(n[ne],0,n,e,yg(t,e,n),y0(e.parent||n[tn],e,n))}(o,i,r)}function Qe(t,n,e,i){!function DM(t,n,e,i){const o=Me();if(o.firstCreatePass){const r=Be();EM(o,new MM(n,e,i),r.index),function bF(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(o,t),!(2&~e)&&(o.staticContentQueries=!0)}return SM(o,E(),e)}(t,n,e,i)}function je(t,n,e){!function wM(t,n,e){const i=Me();return i.firstCreatePass&&(EM(i,new MM(t,n,e),-1),!(2&~n)&&(i.staticViewQueries=!0)),SM(i,E(),n)}(t,n,e)}function Z(t){const n=E(),e=Me(),i=xp();Sd(i+1);const o=nm(e,i);if(t.dirty&&function aA(t){return!(4&~t[Q])}(n)===!(2&~o.metadata.flags)){if(null===o.matches)t.reset([]);else{const r=xM(n,i);t.reset(r,gC),t.notifyOnChanges()}return!0}return!1}function Y(){return function tm(t,n){return t[to].queries[n].queryList}(E(),xp())}function ue(t,n=""){const e=E(),i=Me(),o=t+ae,r=i.firstCreatePass?Ps(i,o,1,n,null):i.data[o],s=jS(i,e,r,n,t);e[o]=s,rl()&&Kd(i,e,s,r),Ri(r,!1)}let jS=(t,n,e,i,o)=>(Fi(!0),function mg(t,n){return t.createText(n)}(n[ne],i));function Pn(t){return st("",t,""),Pn}function st(t,n,e){const i=E(),o=function Hs(t,n,e,i){return gt(t,pi(),e)?n+se(e)+i:le}(i,t,n,e);return o!==le&&function so(t,n,e){const i=tl(n,t);!function f0(t,n,e){t.setValue(n,e)}(t[ne],i,e)}(i,rn(),o),st}function Om(t,n,e,i,o){if(t=K(t),Array.isArray(t))for(let r=0;r<t.length;r++)Om(t[r],n,e,i,o);else{const r=Me(),s=E(),a=Be();let l=dr(t)?t:K(t.provide);const c=_b(t),d=1048575&a.providerIndexes,u=a.directiveStart,h=a.providerIndexes>>20;if(dr(t)||!t.multi){const f=new sl(c,o,C),p=Am(l,n,o?d:d+h,u);-1===p?(Bp(Pd(a,s),r,l),Tm(r,t,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(f),s.push(f)):(e[p]=f,s[p]=f)}else{const f=Am(l,n,d+h,u),p=Am(l,n,d,d+h),y=p>=0&&e[p];if(o&&!y||!o&&!(f>=0&&e[f])){Bp(Pd(a,s),r,l);const b=function qB(t,n,e,i,o){const r=new sl(t,e,C);return r.multi=[],r.index=n,r.componentProviders=0,KS(r,o,i&&!e),r}(o?GB:UB,e.length,o,i,c);!o&&y&&(e[p].providerFactory=b),Tm(r,t,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(b),s.push(b)}else Tm(r,t,f>-1?f:p,KS(e[o?p:f],c,!o&&i));!o&&i&&y&&e[p].componentProviders++}}}function Tm(t,n,e,i){const o=dr(n),r=function FT(t){return!!t.useClass}(n);if(o||r){const l=(r?K(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const d=c.indexOf(e);-1===d?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function KS(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Am(t,n,e,i){for(let o=e;o<i;o++)if(n[o]===t)return o;return-1}function UB(t,n,e,i){return km(this.multi,[])}function GB(t,n,e,i){const o=this.multi;let r;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=gr(e,e[L],this.providerFactory.index,i);r=a.slice(0,s),km(o,r);for(let l=s;l<a.length;l++)r.push(a[l])}else r=[],km(o,r);return r}function km(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function te(t,n=[]){return e=>{e.providersResolver=(i,o)=>function $B(t,n,e){const i=Me();if(i.firstCreatePass){const o=fi(t);Om(e,i.data,i.blueprint,o,!0),Om(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}let WB=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=ip(0,e.type),o=i.length>0?function WM(t,n,e=null){return new qM({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=B({token:t,providedIn:"environment",factory:()=>new t(O(di))})}}return t})();function ut(t){(function ji(t){oM.has(t)||(oM.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))})("NgStandalone"),t.getStandaloneInjector=n=>n.get(WB).getOrCreateStandaloneInjector(t)}function Nm(t,n,e,i){return ew(E(),gn(),t,n,e,i)}function YS(t,n,e,i,o){return function tw(t,n,e,i,o,r,s){const a=n+e;return function Cr(t,n,e,i){const o=gt(t,n,e);return gt(t,n+1,i)||o}(t,a,o,r)?Hi(t,a+2,s?i.call(s,o,r):i(o,r)):Xl(t,a+2)}(E(),gn(),t,n,e,i,o)}function Xl(t,n){const e=t[n];return e===le?void 0:e}function ew(t,n,e,i,o,r){const s=n+e;return gt(t,s,o)?Hi(t,s+1,r?i.call(r,o):i(o)):Xl(t,s+1)}function Ou(t,n){const e=Me();let i;const o=t+ae;e.firstCreatePass?(i=function oV(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks??=[]).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=lr(i.type)),a=In(C);try{const l=xd(!1),c=r();return xd(l),function OB(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,E(),o,c),c}finally{In(a)}}function Tu(t,n,e){const i=t+ae,o=E(),r=ms(o,i);return function Kl(t,n){return t[L].data[n].pure}(o,i)?ew(o,gn(),n,r.transform,e,r):r.transform(e)}const Sw=new k(""),Nu=new k("");let zm,jm=(()=>{class t{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,zm||(function i3(t){zm=t}(o),o.addToWindow(i)),this._watchAngularEvents(),e.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:()=>{pe.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 e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==r),e()},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,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(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}static{this.\u0275fac=function(i){return new(i||t)(O(pe),O(Hm),O(Nu))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac})}}return t})(),Hm=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return zm?.findTestabilityInTree(this,e,i)??null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();function Ru(t){return!!t&&"function"==typeof t.then}function ww(t){return!!t&&"function"==typeof t.subscribe}const o3=new k("");let $m=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=G(o3,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const r=o();if(Ru(r))e.push(r);else if(ww(r)){const s=new Promise((a,l)=>{r.subscribe({complete:a,error:l})});e.push(s)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Dw=new k("");function Pw(t,n){return Array.isArray(n)?n.reduce(Pw,t):{...t,...n}}let Ui=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=G(fC),this.afterRenderEffectManager=G(kl),this.externalTestViews=new Set,this.beforeRender=new re,this.afterTick=new re,this.componentTypes=[],this.components=[],this.isStable=G(ks).hasPendingTasks.pipe(Nn(e=>!e)),this._injector=G(di)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const o=e instanceof nM;if(!this._injector.get($m).done)throw!o&&function cr(t){const n=_e(t)||Pt(t)||Ut(t);return null!==n&&n.standalone}(e),new x(405,!1);let s;s=o?e:this._injector.get(_r).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function r3(t){return t.isBoundToModule}(s)?void 0:this._injector.get(br),c=s.create(Gt.NULL,[],i||s.selector,a),d=c.location.nativeElement,u=c.injector.get(Sw,null);return u?.registerApplication(d),c.onDestroy(()=>{this.detachView(c.hostView),Fu(this.components,c),u?.unregisterApplication(d)}),this._loadComponent(c),c}tick(){this._tick(!0)}_tick(e){if(this._runningTick)throw new x(101,!1);const i=ce(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,ce(i)}}detectChangesInAttachedViews(e){let i=0;const o=this.afterRenderEffectManager;for(;;){if(i===q0)throw new x(103,!1);if(e){const r=0===i;this.beforeRender.next(r);for(let{_lView:s,notifyErrorHandler:a}of this._views)a3(s,r,a)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>Um(r))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>Um(r))))break}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Fu(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(Dw,[]);[...this._bootstrapListeners,...i].forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Fu(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new x(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Fu(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function a3(t,n,e){!n&&!Um(t)||function l3(t,n,e){let i;e?(i=0,t[Q]|=1024):i=64&t[Q]?0:1,nu(t,n,i)}(t,e,n)}function Um(t){return Cp(t)}let h3=(()=>{class t{constructor(){this.zone=G(pe),this.applicationRef=G(Ui)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function f3(){const t=G(pe),n=G(Bi);return e=>t.runOutsideAngular(()=>n.handleError(e))}let g3=(()=>{class t{constructor(){this.subscription=new Te,this.initialized=!1,this.zone=G(pe),this.pendingTasks=G(ks)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{pe.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{pe.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const ao=new k("",{providedIn:"root",factory:()=>G(ao,Ee.Optional|Ee.SkipSelf)||function m3(){return typeof $localize<"u"&&$localize.locale||Ys}()}),Gm=new k("");let kw=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function QR(t="zone.js",n){return"noop"===t?new lM:"zone.js"===t?new pe(n):t}(i?.ngZone,function Aw(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const r=function UF(t,n,e){return new om(t,n,e)}(e.moduleType,this.injector,function Tw(t){return[{provide:pe,useFactory:t},{provide:ls,multi:!0,useFactory:()=>{const n=G(h3,{optional:!0});return()=>n.initialize()}},{provide:ls,multi:!0,useFactory:()=>{const n=G(g3);return()=>{n.initialize()}}},{provide:fC,useFactory:f3}]}(()=>o)),s=r.injector.get(Bi,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});r.onDestroy(()=>{Fu(this._modules,r),a.unsubscribe()})}),function xw(t,n,e){try{const i=e();return Ru(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(s,o,()=>{const a=r.injector.get($m);return a.runInitializers(),a.donePromise.then(()=>(function WI(t){"string"==typeof t&&(qI=t.toLowerCase().replace(/_/g,"-"))}(r.injector.get(ao,Ys)||Ys),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,i=[]){const o=Pw({},i);return function u3(t,n,e){const i=new rm(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(Ui);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new x(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new x(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Gm,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(i){return new(i||t)(O(Gt))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),Ho=null;const Nw=new k("");function Rw(t,n,e=[]){const i=`Platform: ${n}`,o=new k(i);return(r=[])=>{let s=qm();if(!s||s.injector.get(Nw,!1)){const a=[...e,...r,{provide:o,useValue:!0}];t?t(a):function y3(t){if(Ho&&!Ho.get(Nw,!1))throw new x(400,!1);(function Ew(){!function Wc(t){Pa=t}(()=>{throw new x(600,!1)})})(),Ho=t;const n=t.get(kw);(function Lw(t){t.get(RC,null)?.forEach(e=>e())})(t)}(function Fw(t=[],n){return Gt.create({name:n,providers:[{provide:sp,useValue:"platform"},{provide:Gm,useValue:new Set([()=>Ho=null])},...t]})}(a,i))}return function b3(t){const n=qm();if(!n)throw new x(401,!1);return n}()}}function qm(){return Ho?.get(kw)??null}let lo=(()=>{class t{static{this.__NG_ELEMENT_ID__=M3}}return t})();function M3(t){return function I3(t,n,e){if(hr(t)&&!e){const i=Bn(t.index,n);return new xl(i,i)}return 47&t.type?new xl(n[rt],n):null}(Be(),E(),!(16&~t))}class zw{constructor(){}supports(n){return gu(n)}create(n){return new x3(n)}}const E3=(t,n)=>n;class x3{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||E3}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const s=!i||e&&e.currentIndex<Uw(i,o,r)?e:i,a=Uw(s,o,r),l=s.currentIndex;if(s===i)o--,i=i._nextRemoved;else if(e=e._next,null==s.previousIndex)o++;else{r||(r=[]);const c=a-o,d=l-o;if(c!=d){for(let h=0;h<c;h++){const f=h<r.length?r[h]:r[h]=0,p=f+h;d<=p&&p<c&&(r[h]=f+1)}r[s.previousIndex]=d-c}}a!==l&&n(s,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!gu(n))throw new x(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let o,r,s,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)r=n[a],s=this._trackByFn(a,r),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,r,s,a)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,s,a),i=!0),e=e._next}else o=0,function JF(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[Symbol.iterator]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,a=>{s=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new P3(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new $w),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new $w),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class P3{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class O3{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class $w{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new O3,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Uw(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i<e.length&&(o=e[i]),i+n+o}function qw(){return new zo([new zw])}let zo=(()=>{class t{static{this.\u0275prov=B({token:t,providedIn:"root",factory:qw})}constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||qw()),deps:[[t,new Kf,new Wa]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new x(901,!1)}}return t})();const R3=Rw(null,"core",[]);let F3=(()=>{class t{constructor(e){}static{this.\u0275fac=function(i){return new(i||t)(O(Ui))}}static{this.\u0275mod=Pe({type:t})}static{this.\u0275inj=De({})}}return t})();function Ym(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function gD(t){const n=ce(null);try{return t()}finally{ce(n)}}let mD=null;function $o(){return mD}class vj{}const $e=new k("");let _D=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=B({token:t,factory:()=>G(yj),providedIn:"platform"})}}return t})(),yj=(()=>{class t extends _D{constructor(){super(),this._doc=G($e),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return $o().getBaseHref(this._doc)}onPopState(e){const i=$o().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=$o().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,o){this._history.pushState(e,i,o)}replaceState(e,i,o){this._history.replaceState(e,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=B({token:t,factory:()=>new t,providedIn:"platform"})}}return t})();function vD(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function yD(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Dr(t){return t&&"?"!==t[0]?"?"+t:t}let e_=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=B({token:t,factory:()=>G(Cj),providedIn:"root"})}}return t})();const bj=new k("");let Cj=(()=>{class t extends e_{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??G($e).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return vD(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Dr(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const s=this.prepareExternalUrl(o+Dr(r));this._platformLocation.pushState(e,i,s)}replaceState(e,i,o,r){const s=this.prepareExternalUrl(o+Dr(r));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(O(_D),O(bj,8))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),bD=(()=>{class t{constructor(e){this._subject=new de,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function Sj(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(yD(CD(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Dr(i))}normalize(e){return t.stripTrailingSlash(function Ij(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,CD(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Dr(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Dr(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}static{this.normalizeQueryParams=Dr}static{this.joinWithSlash=vD}static{this.stripTrailingSlash=yD}static{this.\u0275fac=function(i){return new(i||t)(O(e_))}}static{this.\u0275prov=B({token:t,factory:()=>function Mj(){return new bD(O(e_))}(),providedIn:"root"})}}return t})();function CD(t){return t.replace(/\/index.html$/,"")}function OD(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}const d_=/\s+/,TD=[];let ih=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=TD,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(d_):TD}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(d_):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],o=e[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(d_).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(i){return new(i||t)(C(he),C(jn))}}static{this.\u0275dir=A({type:t,selectors:[["","ngClass",""]],inputs:{klass:[j.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return t})();class cH{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=o}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 u_=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((o,r,s)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new cH(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===r?void 0:r);else if(null!==r){const a=i.get(r);i.move(a,s),kD(a,o)}});for(let o=0,r=i.length;o<r;o++){const a=i.get(o).context;a.index=o,a.count=r,a.ngForOf=this._ngForOf}e.forEachIdentityChange(o=>{kD(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(C(an),C(Lt),C(zo))}}static{this.\u0275dir=A({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return t})();function kD(t,n){t.context.$implicit=n.item}let Zn=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new dH,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){ND("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){ND("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(C(an),C(Lt))}}static{this.\u0275dir=A({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return t})();class dH{constructor(){this.$implicit=null,this.ngIf=null}}function ND(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${dt(n)}'.`)}class pH{createSubscription(n,e){return gD(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){gD(()=>n.unsubscribe())}}class gH{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const mH=new gH,_H=new pH;let FD=(()=>{class t{constructor(e){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Ru(e))return mH;if(ww(e))return _H;throw function bi(t,n){return new x(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(i){return new(i||t)(C(lo,16))}}static{this.\u0275pipe=fn({name:"async",type:t,pure:!1,standalone:!0})}}return t})(),Yn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Pe({type:t})}static{this.\u0275inj=De({})}}return t})();const BD="browser";function VD(t){return t===BD}function jD(t){return"server"===t}class HD{}class hz extends vj{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class __ extends hz{static makeCurrent(){!function _j(t){mD??=t}(new __)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function fz(){return sc=sc||document.querySelector("base"),sc?sc.getAttribute("href"):null}();return null==e?null:function pz(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){sc=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return OD(document.cookie,n)}}let sc=null,mz=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac})}}return t})();const v_=new k("");let XD=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(r=>r.supports(e)),!i)throw new x(5101,!1);return this._eventNameToPlugin.set(e,i),i}static{this.\u0275fac=function(i){return new(i||t)(O(v_),O(pe))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac})}}return t})();class KD{constructor(n){this._doc=n}}const y_="ng-app-id";let ZD=(()=>{class t{constructor(e,i,o,r={}){this.doc=e,this.appId=i,this.nonce=o,this.platformId=r,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=jD(r),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(o=>o.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${y_}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(o=>{null!=o.textContent&&i.set(o.textContent,o)}),i}return null}changeUsageCount(e,i){const o=this.styleRef;if(o.has(e)){const r=o.get(e);return r.usage+=i,r.usage}return o.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const o=this.styleNodesInDOM,r=o?.get(i);if(r?.parentNode===e)return o.delete(i),r.removeAttribute(y_),r;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(y_,this.appId),e.appendChild(s),s}}addStyleToHost(e,i){const o=this.getStyleElement(e,i),r=this.styleRef,s=r.get(i)?.elements;s?s.push(o):r.set(i,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||t)(O($e),O(Fd),O(FC,8),O(oo))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac})}}return t})();const b_={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/"},C_=/%COMP%/g,bz=new k("",{providedIn:"root",factory:()=>!0});function eE(t,n){return n.map(e=>e.replace(C_,t))}let M_=(()=>{class t{constructor(e,i,o,r,s,a,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=jD(a),this.defaultRenderer=new I_(e,s,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===li.ShadowDom&&(i={...i,encapsulation:li.Emulated});const o=this.getOrCreateRenderer(e,i);return o instanceof nE?o.applyToHost(e):o instanceof S_&&o.applyStyles(),o}getOrCreateRenderer(e,i){const o=this.rendererByCompId;let r=o.get(i.id);if(!r){const s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(i.encapsulation){case li.Emulated:r=new nE(l,c,i,this.appId,d,s,a,u);break;case li.ShadowDom:return new Sz(l,c,e,i,s,a,this.nonce,u);default:r=new S_(l,c,i,d,s,a,u)}o.set(i.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||t)(O(XD),O(ZD),O(Fd),O(bz),O($e),O(oo),O(pe),O(FC))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac})}}return t})();class I_{constructor(n,e,i,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(b_[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(tE(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(tE(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new x(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=b_[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=b_[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&(Lo.DashCase|Lo.Important)?n.style.setProperty(e,i,o&Lo.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Lo.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){null!=n&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=$o().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function tE(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class Sz extends I_{constructor(n,e,i,o,r,s,a,l){super(n,r,s,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=eE(o.id,o.styles);for(const d of c){const u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class S_ extends I_{constructor(n,e,i,o,r,s,a,l){super(n,r,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?eE(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class nE extends S_{constructor(n,e,i,o,r,s,a,l){const c=o+"-"+i.id;super(n,e,i,r,s,a,l,c),this.contentAttr=function Cz(t){return"_ngcontent-%COMP%".replace(C_,t)}(c),this.hostAttr=function Mz(t){return"_nghost-%COMP%".replace(C_,t)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let wz=(()=>{class t extends KD{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}static{this.\u0275fac=function(i){return new(i||t)(O($e))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac})}}return t})();const iE=["alt","control","meta","shift"],Dz={"\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"},Ez={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let xz=(()=>{class t extends KD{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),s=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$o().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),iE.forEach(c=>{const d=i.indexOf(c);d>-1&&(i.splice(d,1),s+=c+".")}),s+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let o=Dz[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),iE.forEach(s=>{s!==o&&(0,Ez[s])(e)&&(r+=s+".")}),r+=o,r===i)}static eventCallback(e,i,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}static{this.\u0275fac=function(i){return new(i||t)(O($e))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac})}}return t})();const Az=Rw(R3,"browser",[{provide:oo,useValue:BD},{provide:RC,useValue:function Pz(){__.makeCurrent()},multi:!0},{provide:$e,useFactory:function Tz(){return function vk(t){qp=t}(document),document},deps:[]}]),kz=new k(""),sE=[{provide:Nu,useClass:class gz{addToWindow(n){me.getAngularTestability=(i,o=!0)=>{const r=n.findTestabilityInTree(i,o);if(null==r)throw new x(5103,!1);return r},me.getAllAngularTestabilities=()=>n.getAllTestabilities(),me.getAllAngularRootElements=()=>n.getAllRootElements(),me.frameworkStabilizers||(me.frameworkStabilizers=[]),me.frameworkStabilizers.push(i=>{const o=me.getAllAngularTestabilities();let r=o.length;const s=function(){r--,0==r&&i()};o.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?$o().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:Sw,useClass:jm,deps:[pe,Hm,Nu]},{provide:jm,useClass:jm,deps:[pe,Hm,Nu]}],aE=[{provide:sp,useValue:"root"},{provide:Bi,useFactory:function Oz(){return new Bi},deps:[]},{provide:v_,useClass:wz,multi:!0,deps:[$e,pe,oo]},{provide:v_,useClass:xz,multi:!0,deps:[$e]},M_,ZD,XD,{provide:Hg,useExisting:M_},{provide:HD,useClass:mz,deps:[]},[]];let lE=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:Fd,useValue:e.appId}]}}static{this.\u0275fac=function(i){return new(i||t)(O(kz,12))}}static{this.\u0275mod=Pe({type:t})}static{this.\u0275inj=De({providers:[...aE,...sE],imports:[Yn,F3]})}}return t})();const ei_recaptcha_action="FORMASASERVICE",ei_recaptcha_siteKey="6LciiGUcAAAAAC6SOrQS04hKRlH5KJzW58BwvlbU",ei_contentstack_base_url="https://cdn.contentstack.io/v3/content_types",ei_contentstack_api_key="bltaef1200413a7ff7c",ei_contentstack_access_token="csf936889a835e6f60037e0920",ei_contentstack_env="prod",w_={now:()=>(w_.delegate||Date).now(),delegate:void 0};class Lz extends re{constructor(n=1/0,e=1/0,i=w_){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:i,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:s}=this;e||(i.push(n),!o&&i.push(r.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:o}=this,r=o.slice();for(let s=0;s<r.length&&!n.closed;s+=i?1:2)n.next(r[s]);return this._checkFinalizedStatuses(n),e}_trimBuffer(){const{_bufferSize:n,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:o}=this,r=(o?1:2)*n;if(n<1/0&&r<i.length&&i.splice(0,i.length-r),!o){const s=e.now();let a=0;for(let l=1;l<i.length&&i[l]<=s;l+=2)a=l;a&&i.splice(0,a+1)}}}function bn(t,n,e,i){var s,o=arguments.length,r=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(n,e,r):s(n,e))||r);return o>3&&r&&Object.defineProperty(n,e,r),r}function Bt(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)}function Uo(t){return this instanceof Uo?(this.v=t,this):new Uo(t)}function gE(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function P_(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(s){return new Promise(function(a,l){!function o(r,s,a,l){Promise.resolve(l).then(function(c){r({value:c,done:a})},s)}(a,l,(s=t[r](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const T_=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function mE(t){return ve(t?.then)}function _E(t){return ve(t[Va])}function vE(t){return Symbol.asyncIterator&&ve(t?.[Symbol.asyncIterator])}function yE(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const bE=function c4(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function CE(t){return ve(t?.[bE])}function ME(t){return function pE(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function s(f){return function(p){return Promise.resolve(p).then(f,u)}}),o[Symbol.asyncIterator]=function(){return this},o;function a(f,p){i[f]&&(o[f]=function(_){return new Promise(function(y,b){r.push([f,_,y,b])>1||l(f,_)})},p&&(o[f]=p(o[f])))}function l(f,p){try{!function c(f){f.value instanceof Uo?Promise.resolve(f.value.v).then(d,u):h(r[0][2],f)}(i[f](p))}catch(_){h(r[0][3],_)}}function d(f){l("next",f)}function u(f){l("throw",f)}function h(f,p){f(p),r.shift(),r.length&&l(r[0][0],r[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield Uo(e.read());if(o)return yield Uo(void 0);yield yield Uo(i)}}finally{e.releaseLock()}})}function IE(t){return ve(t?.getReader)}function $n(t){if(t instanceof ot)return t;if(null!=t){if(_E(t))return function d4(t){return new ot(n=>{const e=t[Va]();if(ve(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(T_(t))return function u4(t){return new ot(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}(t);if(mE(t))return function h4(t){return new ot(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Jc)})}(t);if(vE(t))return SE(t);if(CE(t))return function f4(t){return new ot(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(IE(t))return function p4(t){return SE(ME(t))}(t)}throw yE(t)}function SE(t){return new ot(n=>{(function g4(t,n){var e,i,o,r;return function hE(t,n,e,i){return new(e||(e=Promise))(function(r,s){function a(d){try{c(i.next(d))}catch(u){s(u)}}function l(d){try{c(i.throw(d))}catch(u){s(u)}}function c(d){d.done?r(d.value):function o(r){return r instanceof e?r:new e(function(s){s(r)})}(d.value).then(a,l)}c((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=gE(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Go(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function lc(t,n,e=1/0){return ve(n)?lc((i,o)=>Nn((r,s)=>n(i,r,o,s))($n(t(i,o))),e):("number"==typeof n&&(e=n),Ct((i,o)=>function m4(t,n,e,i,o,r,s,a){const l=[];let c=0,d=0,u=!1;const h=()=>{u&&!l.length&&!c&&n.complete()},f=_=>c<i?p(_):l.push(_),p=_=>{r&&n.next(_),c++;let y=!1;$n(e(_,d++)).subscribe(tt(n,b=>{o?.(b),r?f(b):n.next(b)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;l.length&&c<i;){const b=l.shift();s?Go(n,s,()=>p(b)):p(b)}h()}catch(b){n.error(b)}}))};return t.subscribe(tt(n,f,()=>{u=!0,h()})),()=>{a?.()}}(i,o,t,e)))}function wE(t=1/0){return lc(Do,t)}const A_=new ot(t=>t.complete());function DE(t){return t&&ve(t.schedule)}function k_(t){return t[t.length-1]}function ah(t){return DE(k_(t))?t.pop():void 0}function EE(t,n=0){return Ct((e,i)=>{e.subscribe(tt(i,o=>Go(i,t,()=>i.next(o),n),()=>Go(i,t,()=>i.complete(),n),o=>Go(i,t,()=>i.error(o),n)))})}function xE(t,n=0){return Ct((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function PE(t,n){if(!t)throw new Error("Iterable cannot be null");return new ot(e=>{Go(e,n,()=>{const i=t[Symbol.asyncIterator]();Go(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function oa(t,n){return n?function w4(t,n){if(null!=t){if(_E(t))return function b4(t,n){return $n(t).pipe(xE(n),EE(n))}(t,n);if(T_(t))return function M4(t,n){return new ot(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(mE(t))return function C4(t,n){return $n(t).pipe(xE(n),EE(n))}(t,n);if(vE(t))return PE(t,n);if(CE(t))return function I4(t,n){return new ot(e=>{let i;return Go(e,n,()=>{i=t[bE](),Go(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(s){return void e.error(s)}r?e.complete():e.next(o)},0,!0)}),()=>ve(i?.return)&&i.return()})}(t,n);if(IE(t))return function S4(t,n){return PE(ME(t),n)}(t,n)}throw yE(t)}(t,n):$n(t)}function lh(...t){const n=ah(t),e=function y4(t,n){return"number"==typeof k_(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?$n(i[0]):wE(e)(oa(i,n)):A_}function ra(t,n){return Ct((e,i)=>{let o=null,r=0,s=!1;const a=()=>s&&!o&&i.complete();e.subscribe(tt(i,l=>{o?.unsubscribe();let c=0;const d=r++;$n(t(l,d)).subscribe(o=tt(i,u=>i.next(n?n(l,u,d,c++):u),()=>{o=null,a()}))},()=>{s=!0,a()}))})}const ch={schedule(t,n){const e=setTimeout(t,n);return()=>clearTimeout(e)},scheduleBeforeRender(t){if(typeof window>"u")return ch.schedule(t,0);if(typeof window.requestAnimationFrame>"u")return ch.schedule(t,16);const n=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(n)}};let N_;function N4(t,n,e){let i=e;return function E4(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&n.some((o,r)=>!("*"===o||!function P4(t,n){if(!N_){const e=Element.prototype;N_=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&N_.call(t,n)}(t,o)||(i=r,0))),i}class F4{constructor(n,e){this.componentFactory=e.get(_r).resolveComponentFactory(n)}create(n){return new L4(this.componentFactory,n)}}class L4{constructor(n,e){this.componentFactory=n,this.injector=e,this.eventEmitters=new Lz(1),this.events=this.eventEmitters.pipe(ra(i=>lh(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(pe),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=ch.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(n){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,e,i){this.runInZone(()=>{i&&(e=i.call(this.componentRef?.instance,e)),null!==this.componentRef?function O4(t,n){return t===n||t!=t&&n!=n}(e,this.getInputValue(n))&&(void 0!==e||!this.unchangedInputs.has(n))||(this.recordInputChange(n,e),this.unchangedInputs.delete(n),this.hasInputChanges=!0,this.componentRef.instance[n]=e,this.scheduleDetectChanges()):this.initialInputValues.set(n,e)})}initializeComponent(n){const e=Gt.create({providers:[],parent:this.injector}),i=function k4(t,n){const e=t.childNodes,i=n.map(()=>[]);let o=-1;n.some((r,s)=>"*"===r&&(o=s,!0));for(let r=0,s=e.length;r<s;++r){const a=e[r],l=N4(a,n,o);-1!==l&&i[l].push(a)}return i}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,n),this.viewChangeDetectorRef=this.componentRef.injector.get(lo),this.implementsOnChanges=function x4(t){return"function"==typeof t}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Ui).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:n,transform:e})=>{this.initialInputValues.has(n)&&this.setInputValue(n,this.initialInputValues.get(n),e)}),this.initialInputValues.clear()}initializeOutputs(n){const e=this.componentFactory.outputs.map(({propName:i,templateName:o})=>n.instance[i].pipe(Nn(s=>({name:o,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(n){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,n.instance.ngOnChanges(e)}markViewForCheck(n){this.hasInputChanges&&(this.hasInputChanges=!1,n.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=ch.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(n,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[n];if(i)return void(i.currentValue=e);const o=this.unchangedInputs.has(n),r=o?void 0:this.getInputValue(n);this.inputChanges[n]=new wb(r,e,o)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}}class B4 extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}const{isArray:j4}=Array,{getPrototypeOf:H4,prototype:z4,keys:$4}=Object;const{isArray:q4}=Array;function OE(t){return Nn(n=>function W4(t,n){return q4(n)?t(...n):t(n)}(t,n))}function J4(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function Q4(...t){const n=function v4(t){return ve(k_(t))?t.pop():void 0}(t),{args:e,keys:i}=function U4(t){if(1===t.length){const n=t[0];if(j4(n))return{args:n,keys:null};if(function G4(t){return t&&"object"==typeof t&&H4(t)===z4}(n)){const e=$4(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}(t),o=new ot(r=>{const{length:s}=e;if(!s)return void r.complete();const a=new Array(s);let l=s,c=s;for(let d=0;d<s;d++){let u=!1;$n(e[d]).subscribe(tt(r,h=>{u||(u=!0,c--),a[d]=h},()=>l--,void 0,()=>{(!l||!u)&&(c||r.next(i?J4(i,a):a),r.complete())}))}});return n?o.pipe(OE(n)):o}let TE=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(i){return new(i||t)(C(jn),C(he))}}static{this.\u0275dir=A({type:t})}}return t})(),Er=(()=>{class t extends TE{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=we(t)))(o||t)}})()}static{this.\u0275dir=A({type:t,features:[q]})}}return t})();const Ci=new k(""),X4={provide:Ci,useExisting:xe(()=>R_),multi:!0};let R_=(()=>{class t extends Er{writeValue(e){this.setProperty("checked",e)}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=we(t)))(o||t)}})()}static{this.\u0275dir=A({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,o){1&i&&ge("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},features:[te([X4]),q]})}}return t})();const K4={provide:Ci,useExisting:xe(()=>cc),multi:!0},Y4=new k("");let cc=(()=>{class t extends TE{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Z4(){const t=$o()?$o().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(i){return new(i||t)(C(jn),C(he),C(Y4,8))}}static{this.\u0275dir=A({type:t,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(i,o){1&i&&ge("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[te([K4]),q]})}}return t})();function qo(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function AE(t){return null!=t&&"number"==typeof t.length}const Wt=new k(""),Wo=new k(""),e5=/^(?=.{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 Un{static min(n){return function kE(t){return n=>{if(qo(n.value)||qo(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}}(n)}static max(n){return function NE(t){return n=>{if(qo(n.value)||qo(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return RE(n)}static requiredTrue(n){return function FE(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function LE(t){return qo(t.value)||e5.test(t.value)?null:{email:!0}}(n)}static minLength(n){return BE(n)}static maxLength(n){return VE(n)}static pattern(n){return jE(n)}static nullValidator(n){return null}static compose(n){return qE(n)}static composeAsync(n){return WE(n)}}function RE(t){return qo(t.value)?{required:!0}:null}function BE(t){return n=>qo(n.value)||!AE(n.value)?null:n.value.length<t?{minlength:{requiredLength:t,actualLength:n.value.length}}:null}function VE(t){return n=>AE(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}function jE(t){if(!t)return dh;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(qo(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function dh(t){return null}function HE(t){return null!=t}function zE(t){return Ru(t)?oa(t):t}function $E(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function UE(t,n){return n.map(e=>e(t))}function GE(t){return t.map(n=>function t5(t){return!t.validate}(n)?n:e=>n.validate(e))}function qE(t){if(!t)return null;const n=t.filter(HE);return 0==n.length?null:function(e){return $E(UE(e,n))}}function F_(t){return null!=t?qE(GE(t)):null}function WE(t){if(!t)return null;const n=t.filter(HE);return 0==n.length?null:function(e){return Q4(UE(e,n).map(zE)).pipe(Nn($E))}}function L_(t){return null!=t?WE(GE(t)):null}function JE(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function QE(t){return t._rawValidators}function XE(t){return t._rawAsyncValidators}function B_(t){return t?Array.isArray(t)?t:[t]:[]}function uh(t,n){return Array.isArray(t)?t.includes(n):t===n}function KE(t,n){const e=B_(n);return B_(t).forEach(o=>{uh(e,o)||e.push(o)}),e}function ZE(t,n){return B_(n).filter(e=>!uh(t,e))}class YE{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(n){this._rawValidators=n||[],this._composedValidatorFn=F_(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=L_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class ln extends YE{get formDirective(){return null}get path(){return null}}class On extends YE{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ex{constructor(n){this._cd=n}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 V_=(()=>{class t extends ex{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(C(On,2))}}static{this.\u0275dir=A({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){2&i&&Re("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[q]})}}return t})(),j_=(()=>{class t extends ex{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(C(ln,10))}}static{this.\u0275dir=A({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){2&i&&Re("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[q]})}}return t})();const dc="VALID",fh="INVALID",sa="PENDING",uc="DISABLED";function $_(t){return(ph(t)?t.validators:t)||null}function U_(t,n){return(ph(n)?n.asyncValidators:t)||null}function ph(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function nx(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new x(1e3,"");if(!i[e])throw new x(1001,"")}function ix(t,n,e){t._forEachChild((i,o)=>{if(void 0===e[o])throw new x(1002,"")})}class gh{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===dc}get invalid(){return this.status===fh}get pending(){return this.status==sa}get disabled(){return this.status===uc}get enabled(){return this.status!==uc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(KE(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(KE(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(ZE(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(ZE(n,this._rawAsyncValidators))}hasValidator(n){return uh(this._rawValidators,n)}hasAsyncValidator(n){return uh(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=sa,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=uc,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=dc,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===dc||this.status===sa)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?uc:dc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=sa,this._hasOwnPendingAsyncValidator=!0;const e=zE(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new de,this.statusChanges=new de}_calculateStatus(){return this._allControlsDisabled()?uc:this.errors?fh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(sa)?sa:this._anyControlsHaveStatus(fh)?fh:dc}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){ph(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function r5(t){return Array.isArray(t)?F_(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function s5(t){return Array.isArray(t)?L_(t):t||null}(this._rawAsyncValidators)}}class xr extends gh{constructor(n,e,i){super($_(e),U_(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){ix(this,0,n),Object.keys(n).forEach(i=>{nx(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n?n[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class ox extends xr{}const Pr=new k("CallSetDisabledState",{providedIn:"root",factory:()=>hc}),hc="always";function mh(t,n){return[...n.path,t]}function fc(t,n,e=hc){G_(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function l5(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&rx(t,n)})}(t,n),function d5(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function c5(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&rx(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function a5(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function _h(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),yh(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function vh(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function G_(t,n){const e=QE(t);null!==n.validator?t.setValidators(JE(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=XE(t);null!==n.asyncValidator?t.setAsyncValidators(JE(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();vh(n._rawValidators,o),vh(n._rawAsyncValidators,o)}function yh(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=QE(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=XE(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return vh(n._rawValidators,i),vh(n._rawAsyncValidators,i),e}function rx(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function lx(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function cx(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}Promise.resolve();const gc=class extends gh{constructor(n=null,e,i){super($_(e),U_(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ph(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=cx(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){lx(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){lx(this._onDisabledChange,n)}_forEachChild(n){}_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(n){cx(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let dx=(()=>{class t extends ln{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return mh(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=we(t)))(o||t)}})()}static{this.\u0275dir=A({type:t,features:[q]})}}return t})();Promise.resolve();let px=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=A({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return t})();const b5={provide:Ci,useExisting:xe(()=>X_),multi:!0};let C5=(()=>{class t{constructor(){this._accessors=[]}add(e,i){this._accessors.push([e,i])}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e)return void this._accessors.splice(i,1)}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)})}_isSameGroup(e,i){return!!e[0].control&&e[0]._parent===i._control._parent&&e[1].name===i.name}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),X_=(()=>{class t extends Er{constructor(e,i,o,r){super(e,i),this._registry=o,this._injector=r,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=G(Pr,{optional:!0})??hc}ngOnInit(){this._control=this._injector.get(On),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static{this.\u0275fac=function(i){return new(i||t)(C(jn),C(he),C(C5),C(Gt))}}static{this.\u0275dir=A({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(i,o){1&i&&ge("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[te([b5]),q]})}}return t})();const K_=new k(""),S5={provide:ln,useExisting:xe(()=>mc)};let mc=(()=>{class t extends ln{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new de,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(yh(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return fc(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){_h(e.control||null,e,!1),function p5(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function ax(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(_h(i||null,e),(t=>t instanceof gc)(o)&&(fc(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function sx(t,n){G_(t,n)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function u5(t,n){return yh(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){G_(this.form,this),this._oldForm&&yh(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(i){return new(i||t)(C(Wt,10),C(Wo,10),C(Pr,8))}}static{this.\u0275dir=A({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){1&i&&ge("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[j.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[te([S5]),q,wn]})}}return t})();const w5={provide:ln,useExisting:xe(()=>Z_)};let Z_=(()=>{class t extends dx{constructor(e,i,o){super(),this.name=null,this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){vx(this._parent)}static{this.\u0275fac=function(i){return new(i||t)(C(ln,13),C(Wt,10),C(Wo,10))}}static{this.\u0275dir=A({type:t,selectors:[["","formGroupName",""]],inputs:{name:[j.None,"formGroupName","name"]},features:[te([w5]),q]})}}return t})();const D5={provide:ln,useExisting:xe(()=>bh)};let bh=(()=>{class t extends ln{constructor(e,i,o){super(),this.name=null,this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}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 mh(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){vx(this._parent)}static{this.\u0275fac=function(i){return new(i||t)(C(ln,13),C(Wt,10),C(Wo,10))}}static{this.\u0275dir=A({type:t,selectors:[["","formArrayName",""]],inputs:{name:[j.None,"formArrayName","name"]},features:[te([D5]),q]})}}return t})();function vx(t){return!(t instanceof Z_||t instanceof mc||t instanceof bh)}const E5={provide:On,useExisting:xe(()=>Ch)};let Ch=(()=>{class t extends On{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,i,o,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new de,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=function J_(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===cc?e=r:function f5(t){return Object.getPrototypeOf(t.constructor)===Er}(r)?i=r:o=r}),o||i||e||null}(0,r)}ngOnChanges(e){this._added||this._setUpControl(),function W_(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return mh(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{this.\u0275fac=function(i){return new(i||t)(C(ln,13),C(Wt,10),C(Wo,10),C(Ci,10),C(K_,8))}}static{this.\u0275dir=A({type:t,selectors:[["","formControlName",""]],inputs:{name:[j.None,"formControlName","name"],isDisabled:[j.None,"disabled","isDisabled"],model:[j.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[te([E5]),q,wn]})}}return t})();const x5={provide:Ci,useExisting:xe(()=>_c),multi:!0};function yx(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let _c=(()=>{class t extends Er{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const o=yx(this._getOptionId(e),e);this.setProperty("value",o)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function P5(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=we(t)))(o||t)}})()}static{this.\u0275dir=A({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,o){1&i&&ge("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[te([x5]),q]})}}return t})(),Y_=(()=>{class t{constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(yx(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(i){return new(i||t)(C(he),C(jn),C(_c,9))}}static{this.\u0275dir=A({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return t})();const O5={provide:Ci,useExisting:xe(()=>ev),multi:!0};function bx(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let ev=(()=>{class t extends Er{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const o=e.map(r=>this._getOptionId(r));i=(r,s)=>{r._setSelected(o.indexOf(s.toString())>-1)}}else i=(o,r)=>{o._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const o=[],r=i.selectedOptions;if(void 0!==r){const s=r;for(let a=0;a<s.length;a++){const c=this._getOptionValue(s[a].value);o.push(c)}}else{const s=i.options;for(let a=0;a<s.length;a++){const l=s[a];if(l.selected){const c=this._getOptionValue(l.value);o.push(c)}}}this.value=o,e(o)}}_registerOption(e){const i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){const i=function T5(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=we(t)))(o||t)}})()}static{this.\u0275dir=A({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,o){1&i&&ge("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[te([O5]),q]})}}return t})(),tv=(()=>{class t{constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(bx(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(bx(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(i){return new(i||t)(C(he),C(jn),C(ev,9))}}static{this.\u0275dir=A({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return t})();function Cx(t){return"number"==typeof t?t:parseInt(t,10)}let Or=(()=>{class t{constructor(){this._validator=dh}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):dh,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=A({type:t,features:[wn]})}}return t})();const N5={provide:Wt,useExisting:xe(()=>vc),multi:!0};let vc=(()=>{class t extends Or{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Ym,this.createValidator=e=>RE}enabled(e){return e}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=we(t)))(o||t)}})()}static{this.\u0275dir=A({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){2&i&&X("required",o._enabled?"":null)},inputs:{required:"required"},features:[te([N5]),q]})}}return t})();const L5={provide:Wt,useExisting:xe(()=>Mh),multi:!0};let Mh=(()=>{class t extends Or{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>Cx(e),this.createValidator=e=>BE(e)}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=we(t)))(o||t)}})()}static{this.\u0275dir=A({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&X("minlength",o._enabled?o.minlength:null)},inputs:{minlength:"minlength"},features:[te([L5]),q]})}}return t})();const B5={provide:Wt,useExisting:xe(()=>Ih),multi:!0};let Ih=(()=>{class t extends Or{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>Cx(e),this.createValidator=e=>VE(e)}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=we(t)))(o||t)}})()}static{this.\u0275dir=A({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&X("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[te([B5]),q]})}}return t})();const V5={provide:Wt,useExisting:xe(()=>nv),multi:!0};let nv=(()=>{class t extends Or{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>jE(e)}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=we(t)))(o||t)}})()}static{this.\u0275dir=A({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&X("pattern",o._enabled?o.pattern:null)},inputs:{pattern:"pattern"},features:[te([V5]),q]})}}return t})(),Ex=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Pe({type:t})}static{this.\u0275inj=De({})}}return t})();class Sh extends gh{constructor(n,e,i){super($_(e),U_(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){ix(this,0,n),n.forEach((i,o)=>{nx(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function xx(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let Px=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const o=this._reduceControls(e);let r={};return xx(i)?r=i:null!==i&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new xr(o,r)}record(e,i=null){const o=this._reduceControls(e);return new ox(o,i)}control(e,i,o){let r={};return this.useNonNullable?(xx(i)?r=i:(r.validators=i,r.asyncValidators=o),new gc(e,{...r,nonNullable:!0})):new gc(e,i,o)}array(e,i,o){const r=e.map(s=>this._createControl(s));return new Sh(r,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return e instanceof gc||e instanceof gh?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ox=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Pr,useValue:e.callSetDisabledState??hc}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Pe({type:t})}static{this.\u0275inj=De({imports:[Ex]})}}return t})(),Tx=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:K_,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Pr,useValue:e.callSetDisabledState??hc}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Pe({type:t})}static{this.\u0275inj=De({imports:[Ex]})}}return t})();class j5 extends Te{constructor(n,e){super()}schedule(n,e=0){return this}}const wh={setInterval(t,n,...e){const{delegate:i}=wh;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=wh;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class iv extends j5{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return wh.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&wh.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,wi(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}class yc{constructor(n,e=yc.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}yc.now=w_.now;class ov extends yc{constructor(n,e=yc.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const rv=new ov(iv),H5=rv;function Ax(t=0,n,e=H5){let i=-1;return null!=n&&(DE(n)?e=n:i=n),new ot(o=>{let r=function z5(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;r<0&&(r=0);let s=0;return e.schedule(function(){o.closed||(o.next(s++),0<=i?this.schedule(void 0,i):o.complete())},r)})}function kx(t){return Ct((n,e)=>{let r,i=null,o=!1;i=n.subscribe(tt(e,void 0,void 0,s=>{r=$n(t(s,kx(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function Dh(t,n,e){const i=ve(t)||n||e?{next:t,error:n,complete:e}:t;return i?Ct((o,r)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;o.subscribe(tt(r,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),r.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),r.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),r.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):Do}function Tr(...t){return oa(t,ah(t))}function aa(t,n){return Ct((e,i)=>{let o=0;e.subscribe(tt(i,r=>t.call(n,r,o++)&&i.next(r)))})}class Eh{}class xh{}class Tn{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Tn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Tn;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Tn?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===r.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=n.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class q5{encodeKey(n){return Nx(n)}encodeValue(n){return Nx(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const J5=/%(\d[a-f0-9])/gi,Q5={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Nx(t){return encodeURIComponent(t).replace(J5,(n,e)=>Q5[e]??n)}function Ph(t){return`${t}`}class Jo{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new q5,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function W5(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[s,a]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],o=Array.isArray(i)?i.map(Ph):[Ph(i)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Jo({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(Ph(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(Ph(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class X5{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function Rx(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Fx(t){return typeof Blob<"u"&&t instanceof Blob}function Lx(t){return typeof FormData<"u"&&t instanceof FormData}class bc{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function K5(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new Tn,this.context??=new X5,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+s}}else this.params=new Jo,this.urlWithParams=e}serializeBody(){return null===this.body?null:"string"==typeof this.body||Rx(this.body)||Fx(this.body)||Lx(this.body)||function Z5(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}(this.body)?this.body:this.body instanceof Jo?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||Lx(this.body)?null:Fx(this.body)?this.body.type||null:Rx(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Jo?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){const e=n.method||this.method,i=n.url||this.url,o=n.responseType||this.responseType,r=n.transferCache??this.transferCache,s=void 0!==n.body?n.body:this.body,a=n.withCredentials??this.withCredentials,l=n.reportProgress??this.reportProgress;let c=n.headers||this.headers,d=n.params||this.params;const u=n.context??this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce((h,f)=>h.set(f,n.setHeaders[f]),c)),n.setParams&&(d=Object.keys(n.setParams).reduce((h,f)=>h.set(f,n.setParams[f]),d)),new bc(e,i,s,{params:d,headers:c,context:u,reportProgress:l,responseType:o,withCredentials:a,transferCache:r})}}var Qo=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Qo||{});class sv{constructor(n,e=Cc.Ok,i="OK"){this.headers=n.headers||new Tn,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Oh extends sv{constructor(n={}){super(n),this.type=Qo.ResponseHeader}clone(n={}){return new Oh({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Ar extends sv{constructor(n={}){super(n),this.type=Qo.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Ar({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class la extends sv{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var Cc=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(Cc||{});function av(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let lv=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof bc)r=e;else{let l,c;l=o.headers instanceof Tn?o.headers:new Tn(o.headers),o.params&&(c=o.params instanceof Jo?o.params:new Jo({fromObject:o.params})),r=new bc(e,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const s=Tr(r).pipe(function U5(t,n){return ve(n)?lc(t,n,1):lc(t,1)}(l=>this.handler.handle(l)));if(e instanceof bc||"events"===o.observe)return s;const a=s.pipe(aa(l=>l instanceof Ar));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(Nn(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(Nn(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(Nn(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Nn(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Jo).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,av(o,i))}post(e,i,o={}){return this.request("POST",e,av(o,i))}put(e,i,o={}){return this.request("PUT",e,av(o,i))}static{this.\u0275fac=function(i){return new(i||t)(O(Eh))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac})}}return t})();function Vx(t,n){return n(t)}const Mc=new k(""),jx=new k(""),Hx=new k("");let zx=(()=>{class t extends Eh{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=G(ks);const o=G(Hx,{optional:!0});this.backend=o??e}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Mc),...this.injector.get(jx,[])]));this.chain=o.reduceRight((r,s)=>function o9(t,n,e){return(i,o)=>function dp(t,n){t instanceof cs&&t.assertNotDestroyed();const i=ko(t),o=In(void 0);try{return n()}finally{ko(i),In(o)}}(e,()=>n(i,r=>t(r,o)))}(r,s,this.injector),Vx)}const i=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(function G5(t){return Ct((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}(()=>this.pendingTasks.remove(i)))}static{this.\u0275fac=function(i){return new(i||t)(O(xh),O(di))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac})}}return t})();const u9=/^\)\]\}',?\n/;let Ux=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new x(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?oa(i.\u0275loadImpl()):Tr(null)).pipe(ra(()=>new ot(r=>{const s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((_,y)=>s.setRequestHeader(_,y.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const _=e.detectContentTypeHeader();null!==_&&s.setRequestHeader("Content-Type",_)}if(e.responseType){const _=e.responseType.toLowerCase();s.responseType="json"!==_?_:"text"}const a=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const _=s.statusText||"OK",y=new Tn(s.getAllResponseHeaders()),b=function h9(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return l=new Oh({headers:y,status:s.status,statusText:_,url:b}),l},d=()=>{let{headers:_,status:y,statusText:b,url:M}=c(),w=null;y!==Cc.NoContent&&(w=typeof s.response>"u"?s.responseText:s.response),0===y&&(y=w?Cc.Ok:0);let D=y>=200&&y<300;if("json"===e.responseType&&"string"==typeof w){const P=w;w=w.replace(u9,"");try{w=""!==w?JSON.parse(w):null}catch(z){w=P,D&&(D=!1,w={error:z,text:w})}}D?(r.next(new Ar({body:w,headers:_,status:y,statusText:b,url:M||void 0})),r.complete()):r.error(new la({error:w,headers:_,status:y,statusText:b,url:M||void 0}))},u=_=>{const{url:y}=c(),b=new la({error:_,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});r.error(b)};let h=!1;const f=_=>{h||(r.next(c()),h=!0);let y={type:Qo.DownloadProgress,loaded:_.loaded};_.lengthComputable&&(y.total=_.total),"text"===e.responseType&&s.responseText&&(y.partialText=s.responseText),r.next(y)},p=_=>{let y={type:Qo.UploadProgress,loaded:_.loaded};_.lengthComputable&&(y.total=_.total),r.next(y)};return s.addEventListener("load",d),s.addEventListener("error",u),s.addEventListener("timeout",u),s.addEventListener("abort",u),e.reportProgress&&(s.addEventListener("progress",f),null!==a&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),r.next({type:Qo.Sent}),()=>{s.removeEventListener("error",u),s.removeEventListener("abort",u),s.removeEventListener("load",d),s.removeEventListener("timeout",u),e.reportProgress&&(s.removeEventListener("progress",f),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(i){return new(i||t)(O(HD))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac})}}return t})();const uv=new k(""),Gx=new k("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),qx=new k("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Wx{}let g9=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=OD(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(i){return new(i||t)(O($e),O(oo),O(Gx))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac})}}return t})();function m9(t,n){const e=t.url.toLowerCase();if(!G(uv)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=G(Wx).getToken(),o=G(qx);return null!=i&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,i)})),n(t)}function Jx(...t){const n=[lv,Ux,zx,{provide:Eh,useExisting:zx},{provide:xh,useExisting:Ux},{provide:Mc,useValue:m9,multi:!0},{provide:uv,useValue:!0},{provide:Wx,useClass:g9}];for(const e of t)n.push(...e.\u0275providers);return function Qa(t){return{\u0275providers:t}}(n)}var iP=function(t){return t.SINGLE_STEP="template_campanha",t.MULTI_STEP="template_campanha_multi_step",t}(iP||{});let M9=(()=>{class t{getByCampaignId(e,i){return`${ei_contentstack_base_url}/${i}/entries?environment=${ei_contentstack_env}&query={"uid" : "${e}"}`}getHeaders(){return{headers:new Tn({api_key:ei_contentstack_api_key,access_token:ei_contentstack_access_token})}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),S9=(()=>{class t{constructor(e){this.http=e,this.isCharonSessionValid=!1}init(){return this.http.get("https://apicd.cloud.itau.com.br/charon/bg6l5eoz",{observe:"response"}).pipe(Dh(e=>{this.endpoints=e.body?.links,this.charonSession=e.headers.get("x-charon-session"),this.isCharonSessionValid=!0,setTimeout(()=>this.isCharonSessionValid=!1,1e4)}))}get(e,i){return this.isCharonSessionValid?this.http.get(this.getEndpoint(e),this.getHeaders(i)):this.init().pipe(ra(()=>this.http.get(this.getEndpoint(e),this.getHeaders(i))))}post(e,i,o){return this.isCharonSessionValid?this.http.post(this.getEndpoint(e),i,this.getHeaders(o)):this.init().pipe(ra(()=>this.http.post(this.getEndpoint(e),i,this.getHeaders(o))))}getToken(){this.token=sessionStorage.getItem("Authorization")}getEndpoint(e){return this.endpoints.find(i=>i.rel===e).href}getHeaders(e){const i=e?.segment?String(e.segment).toLowerCase():"";e={...e,segment:i},this.getToken();let o=new Tn({"x-itau-correlationID":ei_contentstack_access_token,"x-charon-session":this.charonSession,"x-origin-cf-apigw":ei_contentstack_api_key,"Content-Type":"application/json"});if(e){const r=btoa(JSON.stringify(e));o=o.set("X-Charon-Params",r)}return{headers:o}}static{this.\u0275fac=function(i){return new(i||t)(O(lv))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),oP=(()=>{class t{showErrors(e){let i="";return i=e.error instanceof ErrorEvent?e.error.message:`Error Code: ${e.status}\nMessage: ${e.message}`,function w9(t,n){const e=ve(t)?t:()=>t,i=o=>o.error(e());return new ot(n?o=>n.schedule(i,0,o):i)}(()=>new Error(i))}convertToSlug(e){return(e=this.stripString(e)).toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"")}stripString(e,i=!1){let s="",a=!1;for(let l=0;l<e.length;l++){a=!1;for(let c=0;c<64;c++)if(e.slice(l,l+1)==="\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd8\xd9\xda\xdb\xdc\xdd\u0154\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff\u0155".slice(c,c+1)){s+="AAAAAAACEEEEIIIIDNOOOOOOUUUUYRsBaaaaaaaceeeeiiiionoooooouuuuybyr".slice(c,c+1),a=!0;break}!1===a&&(s+=e.slice(l,l+1))}return i?s.trim().replace(/[^\w\s]/gi,""):s.trim().replace(/[^\w\s:\-\/]/gi,"")}pascalCase(e){const i=this.stripString;return e.split(":").map(o=>(o=i(o,!0)).charAt(0).toUpperCase()+o.replace(/\s(.)/g,r=>r.toUpperCase()).replace(/\s/g,"").replace(/^(.)/,r=>r.toLowerCase()).slice(1)).join(":")}skewerCase(e,i){return this.stripString(e.substring(0,100).toLowerCase(),i).replace(/\s+/gi,"-")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),D9=(()=>{class t{constructor(e,i,o,r){this.httpClient=e,this.contentStackService=i,this.caronteService=o,this.handlersService=r}getForm(e){return this.httpClient.get(this.contentStackService.getByCampaignId(e,iP.SINGLE_STEP),this.contentStackService.getHeaders()).pipe(function $5(t=1/0){let n;n=t&&"object"==typeof t?t:{count:t};const{count:e=1/0,delay:i,resetOnSuccess:o=!1}=n;return e<=0?Do:Ct((r,s)=>{let l,a=0;const c=()=>{let d=!1;l=r.subscribe(tt(s,u=>{o&&(a=0),s.next(u)},void 0,u=>{if(a++<e){const h=()=>{l?(l.unsubscribe(),l=null,c()):d=!0};if(null!=i){const f="number"==typeof i?Ax(i):$n(i(u,a)),p=tt(s,()=>{p.unsubscribe(),h()},()=>{s.complete()});f.subscribe(p)}else h()}else s.error(u)})),d&&(l.unsubscribe(),l=null,c())};c()})}(1),kx(this.handlersService.showErrors))}create(e){return this.caronteService.post("campanhas",e).pipe(Dh(i=>{console.log("response",i)}))}static{this.\u0275fac=function(i){return new(i||t)(O(lv),O(M9),O(S9),O(oP))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const E9=["addListener","removeListener"],x9=["addEventListener","removeEventListener"],P9=["on","off"];function Ic(t,n,e,i){if(ve(e)&&(i=e,e=void 0),i)return Ic(t,n,e).pipe(OE(i));const[o,r]=function A9(t){return ve(t.addEventListener)&&ve(t.removeEventListener)}(t)?x9.map(s=>a=>t[s](n,a,e)):function O9(t){return ve(t.addListener)&&ve(t.removeListener)}(t)?E9.map(rP(t,n)):function T9(t){return ve(t.on)&&ve(t.off)}(t)?P9.map(rP(t,n)):[];if(!o&&T_(t))return lc(s=>Ic(s,n,e))($n(t));if(!o)throw new TypeError("Invalid event target");return new ot(s=>{const a=(...l)=>s.next(1<l.length?l:l[0]);return o(a),()=>r(a)})}function rP(t,n){return e=>i=>t[e](n,i)}function Vt(t){return Ct((n,e)=>{$n(t).subscribe(tt(e,()=>e.complete(),Ra)),!e.closed&&n.subscribe(e)})}function sP(...t){return function k9(){return wE(1)}()(oa(t,ah(t)))}function aP(...t){const n=ah(t);return Ct((e,i)=>{(n?sP(t,e,n):sP(t,e)).subscribe(i)})}function ca(t){return t<=0?()=>A_:Ct((n,e)=>{let i=0;n.subscribe(tt(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}const N9={Area_de_pessoas:"area_de_pessoas",Atlas:"atlas",Cartao_branco:"cartao_branco",Credicard:"credicard",Credicard_on:"credicard_on",Decathlon:"decathlon",Empresas:"empresas",Emps:"emps",Fast_shop_pay:"fast_shop_pay",Hipercard:"hipercard",Icarros:"icarros",Ids:"ids",Investment_service:"investment_service",Ion:"ion",Itau_bba:"itau_bba",Itau_gestao_de_ativos:"itau_gestao_de_ativos",Itaucard:"itaucard",Iti:"iti",Magalu:"magalu",Oca:"oca",Personal_bank:"personal_bank",Personnalite:"personnalite",Players_bank:"players_bank",Private:"private",Rede:"rede",Samsung:"samsung",Uniclass:"uniclass",Varejo:"varejo",Vivo:"vivo",Varejo_beta:"varejo_beta",Uniclass_beta:"uniclass_beta"};var Sc={d:(t,n)=>{for(var e in n)Sc.o(n,e)&&!Sc.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n)},F={};Sc.d(F,{Nm:()=>W9,bT:()=>t8,M7:()=>bP,zs:()=>yP,K4:()=>g8,Mf:()=>m8,gT:()=>Z9,Bg:()=>gP,qG:()=>mP,Jg:()=>_P,oj:()=>r8,Vw:()=>n8,bx:()=>M8,tm:()=>T8,qq:()=>P8,EP:()=>E8,LJ:()=>I8,l$:()=>_8,xg:()=>b8,_$:()=>y8,Vm:()=>v8,DP:()=>C8,BT:()=>A8,mw:()=>O8,DG:()=>x8,Oq:()=>D8,e4:()=>S8,u9:()=>w8,Vs:()=>k8,_Y:()=>p8,u7:()=>J9,IV:()=>a8,IO:()=>s8,XX:()=>q8,zX:()=>U8,wC:()=>wc,fN:()=>K9,$A:()=>R9,Z0:()=>DP,Az:()=>Y9,Rh:()=>W8,mj:()=>mv,vg:()=>ha,NI:()=>L8,I8:()=>B8,yp:()=>q9,oV:()=>Sv,PW:()=>F9,ly:()=>ua,So:()=>$9,DX:()=>X9,T_:()=>_v,xH:()=>d8,RD:()=>u8,vd:()=>o8,C1:()=>N8,Cr:()=>F8,pm:()=>G8,yQ:()=>R8,zr:()=>pP,uf:()=>V9,lq:()=>pv,Wb:()=>V8,zi:()=>j8,w9:()=>H8,cR:()=>vv,cg:()=>U9,hj:()=>vP,SZ:()=>l8,Te:()=>Ah,kl:()=>f8,bG:()=>fv,J9:()=>e8,W_:()=>z8,Jv:()=>Nr,Q1:()=>Q8,hv:()=>cP,LU:()=>H9,jx:()=>z9,P$:()=>hv,kP:()=>uP,R0:()=>J8,PT:()=>G9,Gl:()=>B9,bh:()=>Q9,mA:()=>L9,QS:()=>j9,qS:()=>c8,sg:()=>h8});var hv=function(t,n,e){void 0===e&&(e="true"),t.hasAttribute(n)||(t.setAttribute(n,e),t.setAttribute("data-setted-".concat(n),"true"))},cP=function(t,n){"true"!==t.getAttribute("data-setted-".concat(n))||(t.removeAttribute("data-setted-".concat(n)),t.removeAttribute(n))},R9=function(t){if(void 0===t&&(t=""),!t)return"";var n=t.split(" ");return n.length>1?"".concat(n[0][0]).concat(n[n.length-1][0]):"".concat(n[0][0])},fv=function(t){return void 0===t&&(t=""),t.normalize("NFKD").replace(/[\u0080-\uF8FF]/g,"").toLocaleLowerCase()},F9=function(t,n){return void 0===t&&(t=""),"upperCase"===n?t.toUpperCase():"lowerCase"===n?t.toLowerCase():t},L9=function(t){return void 0===t&&(t=""),t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()},Ah=function(t,n,e){void 0===e&&(e=0);var i=n.match(t);if(i){if(e>=0&&e<i.length)return i[e];if(e<0&&-e<=i.length)return i[i.length+e]}return""},pv=function(t,n,e){void 0===t&&(t=""),void 0===n&&(n="");var i=void 0===e?{}:e,o=i.normalize,r=void 0===o||o,s=i.method,a=void 0===s?"includes":s,l=(r?fv(t):t).trim(),c=(r?fv(n):n).trim();return"equals"===a?l===c:l[a](c)},gv=function(){return navigator.userAgent.includes("iPad")||!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Mac OS")&&navigator.maxTouchPoints>1},kh=function(){var t,n,e;return"Windows"===(null===(t=navigator.userAgentData)||void 0===t?void 0:t.platform)||navigator.userAgent.includes("Windows NT")?"Windows":"Android"===(null===(n=navigator.userAgentData)||void 0===n?void 0:n.platform)||navigator.userAgent.includes("Android")?"Android":"iPhone"===navigator.platform||navigator.userAgent.includes("iPhone")||gv()?"IOS":"macOS"===(null===(e=navigator.userAgentData)||void 0===e?void 0:e.platform)||navigator.userAgent.includes("Mac OS")||"MacIntel"===navigator.platform?"MacOS":"Windows"},dP=function(){var t,n,e,i,o=navigator.userAgent.includes("CriOS"),r=!o&&("iPhone"===navigator.platform||gv()),s=(navigator.vendor||"").includes("Apple Computer, Inc")&&("MacIntel"===navigator.platform||navigator.userAgent.includes("Macintosh"));return null!==(n=null===(t=navigator.userAgentData)||void 0===t?void 0:t.brands)&&void 0!==n&&n.some(function(a){return"Microsoft Edge"===a.brand})||navigator.userAgent.includes("Edg")||navigator.userAgent.includes("EdgiOS")?"Edge":o||null!==(i=null===(e=navigator.userAgentData)||void 0===e?void 0:e.brands)&&void 0!==i&&i.some(function(a){return"Google Chrome"===a.brand})?"Chrome":navigator.userAgent.includes("Firefox/")||navigator.userAgent.includes("FxiOS/")?"Firefox":r||s?"Safari":"Internet Explorer"},Nr={get isMobile(){return n=kh(),!((null===(t=navigator.userAgentData)||void 0===t||!t.mobile)&&"Android"!==n&&"IOS"!==n);var t,n},get os(){return kh()},get userAgent(){return dP()},get userAgentVersion(){return t=kh(),n={Chrome:"".concat("IOS"===t?"CriOS":"Chrome"),Edge:"".concat("IOS"===t?"EdgiOS":"Edg"),Firefox:"".concat("IOS"===t?"FxiOS":"Firefox"),"Internet Explorer":"rv",Safari:"Version"}[dP()],e=new RegExp("".concat(n,"rv"!==n?"\\/(\\d+)":":(\\d+)")),Ah(e,navigator.userAgent,1);var t,n,e},get osVersion(){return function(){var t,n=navigator.userAgent,e=(null===(t=n.match(/\((.*?)\)/))||void 0===t?void 0:t[1].replace(/_/g,"."))||"";if(gv()){var i=n.includes("CPU OS")?"CPU OS":"Mac OS X";return Ah(new RegExp("".concat(i," (\\d+(?:\\.\\d+)*)")),e,1)}var o=kh();return Ah(new RegExp("".concat({Android:"Android",IOS:"iPhone OS",MacOS:"Mac OS X",Windows:"Windows NT"}[o]," (\\d+(?:\\.\\d+)*)")),e,1)}()}},mv=function(t){return"BUTTON"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName||"SUMMARY"===t.tagName||t.hasAttribute("tabindex")},uP=function(t,n){var e=void 0===n?{}:n,i=e.focusInterval,o=void 0===i?10:i,r=e.focusTotalRepetitions,s=void 0===r?10:r,a=e.noBlur,l=void 0!==a&&a;return new Promise(function(c){l||t.blur();var d=0,u=setInterval(function(){t.focus(),++d>=s&&(clearInterval(u),c())},o)})},_v=function(t){var n;mv(n=t)||hv(n,"tabindex","-1"),"IOS"!==Nr.os?"Windows"!==Nr.os?t.focus():setTimeout(function(){return t.focus()}):uP(t)},hP=function(t){var n="string"==typeof t.firstChild||t.firstChild instanceof Text,e=mv(t),i="true"!==t.getAttribute("aria-hidden");return(n||e)&&i},fP=function(t){var n=Array.from(t.children);return n.length?n.reduce(function(e,i){return hP(e)?e:hP(i)?i:"true"===i.getAttribute("aria-hidden")?e:i.firstChild?fP(i):e},t):t},B9=function(t){var n="dialog"===t.getAttribute("role")||"DIALOG"===t.tagName;_v("Android"===Nr.os&&n?t:fP(t))},V9=function(t){return document.activeElement===t},j9=function(t,n,e){if(void 0===t&&(t=document.querySelector(".cdk-overlay-container")),void 0===n&&(n=!0),void 0===e&&(e=Array.from(document.querySelectorAll(".cdk-live-announcer-element"))),t){var i=function(o){var r,s;Array.from(null!==(s=null===(r=o.parentElement)||void 0===r?void 0:r.children)&&void 0!==s?s:[]).filter(function(a){return!a.isEqualNode(o)&&!e.some(function(l){return l.isEqualNode(a)})&&"SCRIPT"!==a.tagName&&"STYLE"!==a.tagName&&"LINK"!==a.tagName&&"HEAD"!==a.tagName}).forEach(function(a){n?hv(a,"aria-hidden","true"):cP(a,"aria-hidden")}),o.parentElement&&i(o.parentElement)};i(t)}},vv=function(t){var n=t instanceof Document?document.scrollingElement:t;if(!n||n instanceof DocumentFragment)return!1;var e=getComputedStyle(n),i=e.overflowX,o=e.overflowY;return("auto"===i||"scroll"===i)&&n.scrollWidth>n.offsetWidth||("auto"===o||"scroll"===o)&&n.scrollHeight>n.offsetHeight},H9=function(t,n,e){void 0===e&&(e="smooth"),n&&n.scrollTo&&n.scrollTo({left:t.offsetLeft-(n.clientWidth-t.offsetWidth)/2,behavior:e})},pP=function(t){return!t||t instanceof DocumentFragment?document.scrollingElement:vv(t)?t:pP(t.parentNode)},z9=function(t,n,e){void 0===n&&(n=0),void 0===e&&(e=40);var i=t.offsetWidth%n,o=i>n-e/2?n-i+e:i<e?e-i:0;o>0&&(t.scrollLeft=o)},$9=function(t){!Nr.isMobile&&t&&(vv(t)?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex"))},Nh=function(){return Nh=Object.assign||function(t){for(var n,e=1,i=arguments.length;e<i;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Nh.apply(this,arguments)};function ho(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var i,o,r=e.call(t),s=[];try{for(;(void 0===n||n-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(o)throw o.error}}return s}function da(t,n,e){if(e||2===arguments.length)for(var i,o=0,r=n.length;o<r;o++)!i&&o in n||(i||(i=Array.prototype.slice.call(n,0,o)),i[o]=n[o]);return t.concat(i||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError;var U9=function(t,n){return t.length===n.length&&t.every(function(e,i){return e===n[i]})},G9=function(t,n,e){void 0===n&&(n=0),void 0===e&&(e=!0);var i=da([],ho(t),!1);return i.sort(function(o,r){if(o[n]===r[n])return 0;var s=o[n]<r[n]?-1:1;return e?s:-1*s}),i},q9=function(t,n){return t.filter(function(e){return!n.includes(e)})},W9={success:"confirmacao",error:"error_circle_base"},yv="data:image/svg+xml;charset=UTF-8,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='40px' height='40px' viewBox='0 0 40 40' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3C!-- Generator: Sketch 58 (84663) - https://sketch.com --%3E%3Ctitle%3EGroup 2%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cdefs%3E%3ClinearGradient x1='50%25' y1='-20.7957192%25' x2='50%25' y2='75.0698753%25' id='linearGradient-1'%3E%3Cstop stop-color='%23EC7000' offset='0%25'%3E%3C/stop%3E%3Cstop stop-color='%23FFD735' offset='100%25'%3E%3C/stop%3E%3C/linearGradient%3E%3C/defs%3E%3Cg id='Page-2' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Artboard' transform='translate(-167.000000, -198.000000)'%3E%3Cg id='Group-2' transform='translate(167.000000, 198.000000)'%3E%3Cpath d='M20,0 C8.95454424,0 0,8.95442431 0,20.0002679 L0,20.0002679 C0,31.0455757 8.95454424,40 20,40 L20,40 C31.0465272,40 40,31.0455757 40,20.0002679 L40,20.0002679 C40,8.95442431 31.0465272,0 20,0 Z' id='Fill-1' fill='url(%23linearGradient-1)'%3E%3C/path%3E%3Cpath d='M16,29 L16,29 C18.3925714,27.6666667 21.6074286,27.6666667 24,29' id='Stroke-4' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3Cpath d='M28,22.9997596 C28,24.1047001 28.8952999,25 30.0002404,25 C31.1047001,25 32,24.1047001 32,22.9997596 C32,21.8952999 31.1047001,21 30.0002404,21 C28.8952999,21 28,21.8952999 28,22.9997596' id='Fill-10' fill='%23231D19'%3E%3C/path%3E%3Cpath d='M32,19.3979764 C31.5385928,19.1470489 30.9795309,19 30.3773987,19 C29.3876333,19 28.5151386,19.3966273 28,20' id='Stroke-12' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3Cpath d='M12,22.9997596 C12,24.1047001 11.1047001,25 9.99975959,25 C8.89529992,25 8,24.1047001 8,22.9997596 C8,21.8952999 8.89529992,21 9.99975959,21 C11.1047001,21 12,21.8952999 12,22.9997596' id='Fill-6' fill='%23231D19'%3E%3C/path%3E%3Cpath d='M8,19.3979764 C8.46135806,19.1470489 9.0203603,19 9.62242831,19 C10.6120883,19 11.4844899,19.3966273 12,20' id='Stroke-8' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",bv="data:image/svg+xml;charset=UTF-8,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='41px' height='40px' viewBox='0 0 41 40' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3C!-- Generator: Sketch 58 (84663) - https://sketch.com --%3E%3Ctitle%3EGroup 2%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cg id='Page-2' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Artboard' transform='translate(-271.000000, -198.000000)'%3E%3Cg id='Group-2' transform='translate(271.000000, 198.000000)'%3E%3Ccircle id='Oval-Copy-8' fill='%23FFD735' cx='21' cy='20' r='20'%3E%3C/circle%3E%3Cpath d='M17,30 L17,30 C19.3925714,28.6666667 22.6074286,28.6666667 25,30' id='Stroke-3' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3Cpath d='M6.82823035,24.8650074 L4.14275994,22.0597038 C4.06655533,21.9800987 3.93146533,21.9800987 3.85476588,22.0597038 L1.16979031,24.8650074 C-0.389930105,26.4943268 -0.389930105,29.1455894 1.16979031,30.7759427 C1.92589844,31.5647567 2.93041381,32 3.99876291,32 C6.25026288,32 8,30.0920628 8,27.8202166 C8,26.7036779 7.5833488,25.6538213 6.82823035,24.8650074' id='Fill-5' fill='%23106EB0'%3E%3C/path%3E%3Cpath d='M29,22.9997596 C29,24.1047001 29.8952999,25 30.9997596,25 C32.1047001,25 33,24.1047001 33,22.9997596 C33,21.8952999 32.1047001,21 30.9997596,21 C29.8952999,21 29,21.8952999 29,22.9997596' id='Fill-8' fill='%23231D19'%3E%3C/path%3E%3Cpath d='M33,18.1994573 C32.4594054,18.7042062 31.8043967,19 31.0989258,19 C30.3045216,19 29.5750687,18.6255088 29,18' id='Stroke-10' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3Cpath d='M13,22.9997596 C13,24.1047001 12.1048077,25 11,25 C9.89567308,25 9,24.1047001 9,22.9997596 C9,21.8952999 9.89567308,21 11,21 C12.1048077,21 13,21.8952999 13,22.9997596' id='Fill-12' fill='%23231D19'%3E%3C/path%3E%3Cpath d='M9,18.1994573 C9.54052704,18.7042062 10.195454,19 10.9013363,19 C11.6951418,19 12.4245036,18.6255088 13,18' id='Stroke-14' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",Cv="data:image/svg+xml;charset=UTF-8,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='40px' height='40px' viewBox='0 0 40 40' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3C!-- Generator: Sketch 58 (84663) - https://sketch.com --%3E%3Ctitle%3EGroup 3%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cg id='Page-2' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Artboard' transform='translate(-375.000000, -198.000000)'%3E%3Cg id='Group-3' transform='translate(375.000000, 198.000000)'%3E%3Ccircle id='Oval-Copy-7' fill='%23FFD735' cx='20' cy='20' r='20'%3E%3C/circle%3E%3Cpath d='M12,22.9997596 C12,24.1047001 11.1047001,25 9.99975959,25 C8.89529992,25 8,24.1047001 8,22.9997596 C8,21.8952999 8.89529992,21 9.99975959,21 C11.1047001,21 12,21.8952999 12,22.9997596' id='Fill-3-Copy-2' fill='%23231D19'%3E%3C/path%3E%3Cpath d='M32,22.9997596 C32,24.1047001 31.1047001,25 30.0002404,25 C28.8952999,25 28,24.1047001 28,22.9997596 C28,21.8952999 28.8952999,21 30.0002404,21 C31.1047001,21 32,21.8952999 32,22.9997596' id='Fill-5-Copy-2' fill='%23231D19'%3E%3C/path%3E%3Cpolyline id='Stroke-7-Copy-2' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' points='16 30 21.478863 30 24 30'%3E%3C/polyline%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",Mv="data:image/svg+xml;charset=UTF-8,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='40px' height='40px' viewBox='0 0 40 40' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3C!-- Generator: Sketch 58 (84663) - https://sketch.com --%3E%3Ctitle%3EGroup 3%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cg id='Page-2' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Artboard' transform='translate(-479.000000, -198.000000)'%3E%3Cg id='Group-3' transform='translate(479.000000, 198.000000)'%3E%3Ccircle id='Oval-Copy-6' fill='%23FFD735' cx='20' cy='20' r='20'%3E%3C/circle%3E%3Cpath d='M7.49285834,19.0780347 C7.37839458,19.384594 7.03130511,19.5424284 6.71761232,19.4305675 C6.40391953,19.3187067 6.24241249,18.9795101 6.35687625,18.6729507 C6.59489533,18.0354827 7.01764654,17.4819177 7.58593436,17.082183 C8.22762031,16.6313596 8.9910809,16.4222903 9.75734384,16.4743229 C10.0904645,16.4969433 10.3417479,16.7791874 10.3186012,17.1047328 C10.2954545,17.4302783 10.0066427,17.6758475 9.67352211,17.6532272 C9.18702517,17.6201919 8.70316854,17.7526932 8.29207472,18.0415116 C7.92339224,18.3008436 7.64878839,18.6604193 7.49285834,19.0780347 Z' id='Stroke-3-Copy' fill='%23231D19' fill-rule='nonzero' transform='translate(8.320080, 17.966527) rotate(-345.000000) translate(-8.320080, -17.966527) '%3E%3C/path%3E%3Cpath d='M30.4928583,19.0780347 C30.3783946,19.384594 30.0313051,19.5424284 29.7176123,19.4305675 C29.4039195,19.3187067 29.2424125,18.9795101 29.3568763,18.6729507 C29.5948953,18.0354827 30.0176465,17.4819177 30.5859344,17.082183 C31.2276203,16.6313596 31.9910809,16.4222903 32.7573438,16.4743229 C33.0904645,16.4969433 33.3417479,16.7791874 33.3186012,17.1047328 C33.2954545,17.4302783 33.0066427,17.6758475 32.6735221,17.6532272 C32.1870252,17.6201919 31.7031685,17.7526932 31.2920747,18.0415116 C30.9233922,18.3008436 30.6487884,18.6604193 30.4928583,19.0780347 Z' id='Stroke-3-Copy-2' fill='%23231D19' fill-rule='nonzero' transform='translate(31.320080, 17.966527) scale(-1, 1) rotate(-345.000000) translate(-31.320080, -17.966527) '%3E%3C/path%3E%3Cpath d='M11.9313297,22.4824008 C12.217328,23.5490421 11.5838057,24.6454859 10.517681,24.9314938 C9.45107552,25.217021 8.35466858,24.5839581 8.06867027,23.5173168 C7.78267197,22.4511562 8.41619426,21.3542317 9.48231904,21.0687045 C10.5489245,20.7826966 11.6453314,21.4157595 11.9313297,22.4824008' id='Fill-5-Copy' fill='%23231D19'%3E%3C/path%3E%3Cpath d='M28.0687016,23.5175791 C28.3546977,24.5846926 29.4506152,25.2172698 30.5176928,24.9312641 C31.5838091,24.6457392 32.2173263,23.5493041 31.9313303,22.4826713 C31.6453343,21.4160385 30.5489361,20.7829807 29.4823391,21.0685056 C28.4157422,21.3545113 27.7827056,22.4509463 28.0687016,23.5175791' id='Fill-9-Copy' fill='%23231D19'%3E%3C/path%3E%3Cpath d='M16,30 L16,30 C18.3925714,28.6666667 21.6074286,28.6666667 24,30' id='Stroke-3-Copy-3' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' transform='translate(20.000000, 29.500000) rotate(-180.000000) translate(-20.000000, -29.500000) '%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",Iv="data:image/svg+xml;charset=UTF-8,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='40px' height='40px' viewBox='0 0 40 40' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3C!-- Generator: Sketch 58 (84663) - https://sketch.com --%3E%3Ctitle%3EGroup 3%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cdefs%3E%3Cpath d='M7,7 C10.8659932,7 14,3.86599325 14,0 C14,0 0,0 0,0 C0,3.86599325 3.13400675,7 7,7 Z' id='path-1'%3E%3C/path%3E%3C/defs%3E%3Cg id='Page-2' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Artboard' transform='translate(-583.000000, -198.000000)'%3E%3Cg id='Group-3' transform='translate(583.000000, 198.000000)'%3E%3Ccircle id='Oval-Copy-2' fill='%23FFD735' cx='20' cy='20' r='20'%3E%3C/circle%3E%3Cg id='Rectangle-Copy-4' transform='translate(26.667347, 27.192474) rotate(-15.000000) translate(-26.667347, -27.192474) translate(19.667347, 23.692474)'%3E%3Cmask id='mask-2' fill='white'%3E%3Cuse xlink:href='%23path-1'%3E%3C/use%3E%3C/mask%3E%3Cuse id='Mask' fill='%23EC7000' xlink:href='%23path-1'%3E%3C/use%3E%3Crect id='Rectangle' fill='%23FFFFFF' mask='url(%23mask-2)' x='-0.774094079' y='-0.974744871' width='15' height='3'%3E%3C/rect%3E%3C/g%3E%3Cg id='Group-Copy-8' transform='translate(11.000000, 17.000000)'%3E%3Cpath d='M0,2 C0.206174855,1.43496906 0.57399436,0.92648719 1.09009945,0.555010381 C1.67077334,0.137558719 2.34496066,-0.0385249671 3,0.00699013699' id='Stroke-3-Copy' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3Cpath d='M4.93132973,3.48240078 C5.21732803,4.54904208 4.58380574,5.64548589 3.51768096,5.9314938 C2.45107552,6.21702104 1.35466858,5.58395813 1.06867027,4.51731683 C0.78267197,3.45115622 1.41619426,2.35423172 2.48231904,2.06870449 C3.54892448,1.78269657 4.64533142,2.41575948 4.93132973,3.48240078' id='Fill-5-Copy' fill='%23231D19'%3E%3C/path%3E%3C/g%3E%3Cg id='Group-Copy-9' transform='translate(30.750173, 14.885095) scale(-1, 1) rotate(34.000000) translate(-30.750173, -14.885095) translate(28.250173, 11.885095)'%3E%3Cpath d='M-3.63797881e-12,2 C0.206174855,1.43496906 0.57399436,0.92648719 1.09009945,0.555010381 C1.67077334,0.137558719 2.34496066,-0.0385249671 3,0.00699013699' id='Stroke-3-Copy' stroke='%23231D19' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3Cpath d='M4.93132973,3.48240078 C5.21732803,4.54904208 4.58380574,5.64548589 3.51768096,5.9314938 C2.45107552,6.21702104 1.35466858,5.58395813 1.06867027,4.51731683 C0.78267197,3.45115622 1.41619426,2.35423172 2.48231904,2.06870449 C3.54892448,1.78269657 4.64533142,2.41575948 4.93132973,3.48240078' id='Fill-5-Copy' fill='%23231D19'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",gP=[{key:"veryBad",value:"muito ruim",face:yv},{key:"bad",value:"ruim",face:bv},{key:"okay",value:"regular",face:Cv},{key:"good",value:["bom","boa"],face:Mv},{key:"veryGood",value:["muito bom","muito boa"],face:Iv}],mP=[{key:"veryBad",value:"very bad",face:yv},{key:"bad",value:"bad",face:bv},{key:"okay",value:"okay",face:Cv},{key:"good",value:"good",face:Mv},{key:"veryGood",value:"very good",face:Iv}],_P=[{key:"veryBad",value:["muy malo","muy mala"],face:yv},{key:"bad",value:["malo","mala"],face:bv},{key:"okay",value:"regular",face:Cv},{key:"good",value:["bueno","buena"],face:Mv},{key:"veryGood",value:["muy bueno","muy buena"],face:Iv}],J9={"pt-BR":gP,en:mP,es:_P},Q9=function(t){if(void 0===t&&(t=""),"IOS"===Nr.os){var e=Nr.osVersion.match(/(\d+)/);if(e&&parseInt(e[0],10)<17)return t.replace(/(\r\n|\r|\n)/g,"  ").length}return t.length},X9=function(t,n,e){void 0===t&&(t=[]),void 0===n&&(n="");var i=(void 0===e?{}:e).filter,o=void 0===i?"none":i;return t.filter(function(r){var s=String(r.label),a=String(n);switch(o){case"startsWith":return pv(s,a,{method:"startsWith"});case"includes":return pv(s,a);case"none":return!0;default:return"function"!=typeof o||o(s,a)}})},K9={finished:"Conclu\xeddo",inprogress:"Em andamento",waiting:"Em espera",error:"N\xe3o realizado",alert:"Aten\xe7\xe3o",disabled:"Desabilitado"},Z9={marker_radius:4,marker_width:8,marker_height:8,color_opacity:1,legend_item_gap:-4,legend_item_margin:8,multi_column_gap:1,font_family:"Itau Text",drop_shadow:0,line_thickness:1,donut_thickness:"72%",grid_color:"var(--ids_color_border_soft)",menu:!1,color_01:"var(--ids_color_chart_01)",color_02:"var(--ids_color_chart_02)",color_03:"var(--ids_color_chart_03)",color_04:"var(--ids_color_chart_04)",color_05:"var(--ids_color_chart_05)",color_06:"var(--ids_color_chart_06)",color_07:"var(--ids_color_chart_07)",color_08:"var(--ids_color_chart_08)",legend_color:"var(--ids_color_action_neutral_base)",label_color:"var(--ids_color_action_neutral_base)",title_color:"var(--ids_color_action_neutral_base)",background_color:"var(--ids_color_bg_base)"},Y9=function(t){return void 0===t&&(t="R$ 0,00"),Number(t.replace("R$","").trim().replace(".","").replace(",","."))||0},vP=function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))},e8=function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n},Sv=function(t){return null!=t&&"false"!=="".concat(t)},ua=function(t,n){return void 0===n&&(n=0),vP(t)?Number(t):n},t8=(new Date).getDate(),yP=(new Date).getFullYear(),bP=(new Date).getMonth(),n8=120,i8=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o8=function(t,n){void 0===t&&(t=yP),void 0===n&&(n=bP);for(var e=ua(t),i=ua(n),o=new Date(e,i,1).getDay(),r=new Date(e,i+1,0).getDate(),s=1,a=[],l=function(d){var u=[];if(i8.forEach(function(){if(o>0)return u.push(""),void o--;s>r?u.length<=7&&(u.push(""),s++):(u.push(String(s)),s++)}),a.push(u),s>r)return"break"},c=0;c<6&&"break"!==l();c++);return a},r8={"cs-CZ":"dd/mm/yyyy","da-DK":"dd/mm/yyyy","de-AT":"dd/mm/yyyy","de-CH":"dd/mm/yyyy","de-DE":"dd/mm/yyyy","el-GR":"dd/mm/yyyy","en-AU":"dd/mm/yyyy","en-CA":"yyyy-mm-dd","en-GB":"dd/mm/yyyy","en-IE":"dd/mm/yyyy","en-IN":"dd/mm/yyyy","en-NZ":"dd/mm/yyyy","en-US":"mm/dd/yyyy","en-ZA":"yyyy/mm/dd","es-AR":"dd/mm/yyyy","es-CL":"dd/mm/yyyy","es-CO":"dd/mm/yyyy","es-ES":"dd/mm/yyyy","es-MX":"dd/mm/yyyy","es-US":"dd/mm/yyyy","fi-FI":"dd/mm/yyyy","fr-BE":"dd/mm/yyyy","fr-CA":"yyyy/mm/dd","fr-CH":"dd/mm/yyyy","fr-FR":"dd/mm/yyyy","he-IL":"dd/mm/yyyy","hi-IN":"dd/mm/yyyy","hu-HU":"yyyy/mm/dd","id-ID":"dd/mm/yyyy","it-CH":"dd/mm/yyyy","it-IT":"dd/mm/yyyy","ja-JP":"yyyy/mm/dd","ko-KR":"yyyy/mm/dd","nl-BE":"dd/mm/yyyy","nl-NL":"dd/mm/yyyy","no-NO":"dd/mm/yyyy","pl-PL":"dd/mm/yyyy","pt-BR":"dd/mm/yyyy","pt-PT":"dd/mm/yyyy","ro-RO":"dd/mm/yyyy","ru-RU":"dd/mm/yyyy","sk-SK":"dd/mm/yyyy","sv-SE":"yyyy/mm/dd","ta-IN":"dd/mm/yyyy","ta-LK":"dd/mm/yyyy","th-TH":"dd/mm/2566","tr-TR":"dd/mm/yyyy","zh-CN":"yyyy/mm/dd","zh-HK":"dd/mm/yyyy","zh-TW":"yyyy/mm/dd"},s8=[{id:0,name:"janeiro",abbr:"jan"},{id:1,name:"fevereiro",abbr:"fev"},{id:2,name:"mar\xe7o",abbr:"mar"},{id:3,name:"abril",abbr:"abr"},{id:4,name:"maio",abbr:"mai"},{id:5,name:"junho",abbr:"jun"},{id:6,name:"julho",abbr:"jul"},{id:7,name:"agosto",abbr:"ago"},{id:8,name:"setembro",abbr:"set"},{id:9,name:"outubro",abbr:"out"},{id:10,name:"novembro",abbr:"nov"},{id:11,name:"dezembro",abbr:"dez"}],a8=[{name:"domingo",abbr:"D"},{name:"segunda-feira",abbr:"S"},{name:"ter\xe7a-feira",abbr:"T"},{name:"quarta-feira",abbr:"Q"},{name:"quinta-feira",abbr:"Q"},{name:"sexta-feira",abbr:"S"},{name:"s\xe1bado",abbr:"S"}],l8=function(t){return void 0===t&&(t=""),/^\d{4}\/\d{2}\/\d{2}$/.test(t)},ha=function(t,n){var e,i,o;if(void 0===n&&(n="dd/mm/yyyy"),!t||t.length!==n.length)return t;var r=-1!==n.indexOf("d")?n.indexOf("d"):0,s=-1!==n.indexOf("m")?n.indexOf("m"):3,a=-1!==n.indexOf("y")?n.indexOf("y"):6,l=(null===(e=n.match(/d|D/g))||void 0===e?void 0:e.length)||2,c=(null===(i=n.match(/m|M/g))||void 0===i?void 0:i.length)||2,d=(null===(o=n.match(/y|Y/g))||void 0===o?void 0:o.length)||4,u=t.slice(r,r+l),h=t.slice(s,s+c),f=t.slice(a,a+d);return"".concat(f,"/").concat(h,"/").concat(u)},c8=function(t,n){var e=void 0===n?{}:n,i=e.min,o=e.max,r=e.format,s=void 0===r?"dd/mm/yyyy":r,a=e.filter;if(!t||t.length<s.length)return!1;var l=ha(t),c=new Date(l);if(isNaN(c.getTime()))return!1;var d=ho(l.split("/"),3),u=d[0],h=d[1];if(d[2]!==("0"+c.getDate()).slice(-2)||h!==("0"+(c.getMonth()+1)).slice(-2)||u!==String(c.getFullYear()))return!1;if(i){var f=new Date(ha(t,s)),p=new Date(ha(i,s));if(f.getTime()<p.getTime())return!1}if(o){f=new Date(ha(t,s));var _=new Date(ha(o,s));if(f.getTime()>_.getTime())return!1}return!a||a(c)},d8=function(t,n){var e=(void 0===n?{}:n).lang;return new Intl.DateTimeFormat(void 0===e?"pt-BR":e,{month:"2-digit",day:"2-digit",year:"numeric"}).format(t)},u8=function(t){var n=ho(t.split("/").map(Number),3);return new Date(n[2],n[1]-1,n[0])},h8=function(t){var n=t.getDay();return 0===n||6===n},f8=function(t){var n=t.command,e=void 0===n?"ArrowRight":n,i=t.calendar,o=void 0===i?[]:i,r=t.goToNextMonth,s=t.goToPrevMonth,a=t.focusDay,l=t.getCalendar,c=document.activeElement,d=ua(c?.getAttribute("data-row")),u=ua(c?.getAttribute("data-col")),h=o.length-1,f={ArrowDown:function(){(d+=d<h&&""===o[d+1][u]?2:1)>h&&(r(),JSON.stringify(o)!==JSON.stringify(l())&&(h=l().length-1,d=""===l()[0][u]?1:0))},ArrowUp:function(){(d-=d>0&&""===o[d-1][u]?2:1)<0&&(s(),JSON.stringify(o)!==JSON.stringify(l())&&(h=l().length-1,d=""===l()[h][u]?h-1:h))},ArrowRight:function(){var p=o[h].filter(function(_){return _}).length-1;d!==h&&6===u?(d+=1,u=0):u+=1,d===h&&u>p&&(r(),JSON.stringify(o)!==JSON.stringify(l())&&(u=l()[0].findIndex(function(_){return"1"===_}),d=""===l()[0][u]?1:0))},ArrowLeft:function(){0!==d&&0===u?(d-=1,u=6):u-=1;var p=o[0].findIndex(function(_){return"1"===_});u<p&&0===d&&(s(),JSON.stringify(o)!==JSON.stringify(l())&&(h=l().length-1,u=l()[h].filter(function(_){return _}).length-1,d=""===l()[h][u]?h-1:h))}}[e];f?.(),a(d,u,c)},CP=function(t,n,e){return function(){for(var i=this,o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var s=n.map(function(c){return i[c]}),a=JSON.stringify(da(da([],ho(o),!1),ho(s),!1));if(e.has(a))return e.get(a);var l=t.apply(this,o);return e.set(a,l),l}},p8=function(t){return void 0===t&&(t=[]),function(n,e,i){var o=new Map;if(i?.value){var r=i.value;i.value=CP(r,t,o)}else i?.get&&(i.get=CP(r=i.get,t,o))}},g8=function(t){return function(n,e,i){var o,r=i.value;i.value=function(){for(var s=this,a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];clearTimeout(o),o=setTimeout(function(){return r.apply(s,a)},t)}}},m8=function(){return function(t,n,e){if(e?.set&&e){var i=e.set;e.set=function(o){i.apply(this,[Sv(o)])}}else r=n,Object.defineProperty(t,r,{get:function(){return this["_".concat(r)]},set:function(s){this["_".concat(r)]=Sv(s)},enumerable:!0,configurable:!0});var r}},_8={maxTouchPoints:0,userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36",userAgentData:{brands:[{brand:"Not A;Brand",version:"99"},{brand:"Chromium",version:"98"},{brand:"Google Chrome",version:"98"}],mobile:!1,platform:"Windows"},vendor:"Google Inc.",platform:"Win32"},v8={maxTouchPoints:0,userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0",userAgentData:void 0,vendor:"",platform:"Win32"},y8={maxTouchPoints:1,userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/122.0 Mobile/15E148 Safari/605.1.15",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"iPhone"},b8={maxTouchPoints:0,userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39",userAgentData:{brands:[{brand:"Not A;Brand",version:"99"},{brand:"Chromium",version:"99"},{brand:"Microsoft Edge",version:"99"}],mobile:!1,platform:"Windows"},vendor:"Google Inc.",platform:"Win32"},C8={maxTouchPoints:0,userAgent:"Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; itx; wbx 1.0.0; rv:11.0) like Gecko",userAgentData:void 0,vendor:"",platform:"Win32"},M8={maxTouchPoints:1,userAgent:"Mozilla/5.0 (Linux; Android 11; Mi A3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36",userAgentData:{brands:[{brand:"Not A;Brand",version:"99"},{brand:"Chromium",version:"98"},{brand:"Google Chrome",version:"99"}],mobile:!0,platform:"Android"},vendor:"Google Inc.",platform:"Linux armv8l"},I8={maxTouchPoints:0,userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36",userAgentData:{brands:[{brand:"Not A;Brand",version:"99"},{brand:"Chromium",version:"98"},{brand:"Google Chrome",version:"99"}],mobile:!1,platform:"macOS"},vendor:"Google Inc.",platform:"MacIntel"},S8={maxTouchPoints:0,userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.1",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"MacIntel"},w8={maxTouchPoints:0,userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",userAgentData:void 0,vendor:"Apple Computer, Inc.",platform:"MacIntel"},D8={maxTouchPoints:5,userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"iPhone"},E8={maxTouchPoints:5,userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/96.0.4664.53 Mobile/15E148 Safari/604.1",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"iPhone"},x8={maxTouchPoints:5,userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 17_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Mobile/15E148 Safari/604.1",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"iPhone"},P8={maxTouchPoints:5,userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 17_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/96.0.4664.53 Mobile/15E148 Safari/604.1",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"iPhone"},O8={maxTouchPoints:5,userAgent:"Mozilla/5.0 (iPad; CPU OS 17_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2 Mobile/15E148 Safari/604.1",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"iPad"},T8={maxTouchPoints:5,userAgent:"Mozilla/5.0 (iPad; CPU OS 17_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/121.0.6167.66 Mobile/15E148 Safari/604.1",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"iPad"},A8={maxTouchPoints:5,userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15",userAgentData:void 0,vendor:"Apple Computer, Inc",platform:"iPad"},k8={maxTouchPoints:5,userAgent:"unknown",userAgentData:void 0,vendor:"unknown",platform:"unknown"},N8=function(t){return Object.entries(t).reduce(function(n,e){var i=ho(e,2);return i[1]?n+" "+i[0]:n},"").replace(/\s\s/g," ").trim()},R8=function(t){var n=void 0===t?{}:t,e=n.scope,i=function(o,r){for(var s=[],a=[o];a.length>0;){var l=a.pop(),c=l.style.zIndex,d=getComputedStyle(l).getPropertyValue("z-index");c&&"auto"!==c&&l!==r&&s.push(Number(c)),d&&"auto"!==d&&l!==r&&s.push(Number(d));var u=Array.from(l.children);a.push.apply(a,da([],ho(u),!1))}return s}(void 0===e?document.body:e,n.except);return i.length>0?Math.max.apply(Math,da([],ho(i),!1))+1:1},F8=function(t,n){var e=void 0===n?{}:n,i=e.open,o=void 0!==i&&i,r=e.hasSelectedValue,s=void 0!==r&&r,a=e.editable,l=void 0!==a&&a,c=e.inOnTheFirstOption,u=e.hasValue,h=void 0!==u&&u;return"Backspace"===t.code&&l&&h?"erase":t.altKey&&"ArrowUp"===t.code?"close":t.altKey&&"ArrowDown"===t.code?"open":"Escape"===t.code?!o&&l?"clear":"close":"ArrowUp"===t.code?void 0!==c&&c?"close":o?s?"previous":"last":"none":"ArrowDown"===t.code?s?"next":"first":"Enter"===t.code||"NumpadEnter"===t.code?"select":"Tab"===t.code?s||h?"select":"out":1===t.key.length?l?"type":"search":"ArrowRight"===t.code&&l?"cursor-to-right":"ArrowLeft"===t.code&&l?"cursor-to-left":"Home"===t.code?l?"cursor-to-start":"first":"End"===t.code?l?"cursor-to-end":"last":"Delete"===t.code&&l?"clear":"none"},L8=function(t,n){var e=(void 0===n?{}:n).debounce,i=void 0===e?10:e,o=!1;return function(r){if("ArrowUp"===r.key||"ArrowDown"===r.key||"ArrowLeft"===r.key||"ArrowRight"===r.key){if(r.preventDefault(),o)return;o=!0,t&&t(r.key),setTimeout(function(){o=!1},i)}}},B8=function(t){return JSON.parse(JSON.stringify(t))},fa=function(t){return t||0===t?"".concat(t,"px"):""},Rh=function(t){return t?Number(t.replace("px","")):0},wv=function(t,n,e){return void 0===e&&(e="add"),t||0===t?"add"===e?t+n:t-n:void 0},V8=function(t,n){return void 0===n&&(n=document.documentElement),t.getBoundingClientRect().bottom<n.getBoundingClientRect().top},j8=function(t,n){return void 0===n&&(n=document.documentElement),t.getBoundingClientRect().top>n.getBoundingClientRect().bottom},H8=function(t,n,e){return void 0===n&&(n=document.documentElement),void 0===e&&(e=0),t.getBoundingClientRect().bottom+e<n.getBoundingClientRect().bottom},z8=function(t,n){var e,i=t.style,o=(null===(e=n?.getBoundingClientRect)||void 0===e?void 0:e.call(n))||{},r=o.top,s=o.right,a=o.bottom,l=o.left,c=o.width,d=o.height,u=n?getComputedStyle(n):{},h=u.font,f=void 0===h?"":h,p=u.paddingTop,_=void 0===p?"0":p,y=u.paddingBottom,b=void 0===y?"0":y;i.top=fa(wv(r,Rh(_))),i.right=fa(s),i.bottom=fa(wv(a,Rh(b),"subtract")),i.left=fa(l),i.width=fa(c),i.height=fa(wv(d,Rh(_)+Rh(b),"subtract")),i.position=n?"fixed":"",i.font=f};const MP=(Sc.d(Dv={},{BehaviorSubject:()=>Jn}),Dv);var Dv;const $8=(Sc.d(n={},{Themes:()=>N9}),n);var n,wc=Object.keys($8.Themes).reduce(function(t,n){var e;return Nh(Nh({},t),((e={})[n]=n.toLocaleLowerCase(),e))},{}),SP=new MP.BehaviorSubject("Varejo"),wP=new MP.BehaviorSubject(document.documentElement),U8={light:"light",dark:"dark"},G8=function(){return wP.value.getAttribute("data-theme")},q8=SP.asObservable(),DP=function(t,n,e){var i,o;void 0===t&&(t=wc.Varejo),void 0===n&&(n=document.documentElement);var r=[],s=n instanceof HTMLElement?n:document.documentElement;"string"==typeof n&&(s=null!==(o=document.querySelector(n))&&void 0!==o?o:s),s.classList.forEach(function(a){(a.startsWith("voxel-theme")||a.startsWith("ids-theme"))&&r.push(a)}),r.length>0&&(i=s.classList).remove.apply(i,da([],ho(r),!1)),s.classList.add("ids-theme-".concat(t)),s.removeAttribute("data-theme"),e&&s.setAttribute("data-theme",e),s.classList.contains("cdk-overlay-container")||wP.next(s)},W8=function(t,n,e){return void 0===t&&(t=wc.Varejo),void 0===n&&(n=document),s=function(){return function(a,l){var c,d,u,h,f={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return h={next:p(0),throw:p(1),return:p(2)},"function"==typeof Symbol&&(h[Symbol.iterator]=function(){return this}),h;function p(_){return function(y){return function(b){if(c)throw new TypeError("Generator is already executing.");for(;h&&(h=0,b[0]&&(f=0)),f;)try{if(c=1,d&&(u=2&b[0]?d.return:b[0]?d.throw||((u=d.return)&&u.call(d),0):d.next)&&!(u=u.call(d,b[1])).done)return u;switch(d=0,u&&(b=[2&b[0],u.value]),b[0]){case 0:case 1:u=b;break;case 4:return f.label++,{value:b[1],done:!1};case 5:f.label++,d=b[1],b=[0];continue;case 7:b=f.ops.pop(),f.trys.pop();continue;default:if(!((u=(u=f.trys).length>0&&u[u.length-1])||6!==b[0]&&2!==b[0])){f=0;continue}if(3===b[0]&&(!u||b[1]>u[0]&&b[1]<u[3])){f.label=b[1];break}if(6===b[0]&&f.label<u[1]){f.label=u[1],u=b;break}if(u&&f.label<u[2]){f.label=u[2],f.ops.push(b);break}u[2]&&f.ops.pop(),f.trys.pop();continue}b=l.call(a,f)}catch(M){b=[6,M],d=0}finally{c=u=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([_,y])}}}(this,function(a){var l;return DP(t,n,e),SP.next((l=t,Object.keys(wc).find(function(c){return wc[c]===l}))),[2]})},new((r=void 0)||(r=Promise))(function(a,l){function c(h){try{u(s.next(h))}catch(f){l(f)}}function d(h){try{u(s.throw(h))}catch(f){l(f)}}function u(h){var f;h.done?a(h.value):(f=h.value,f instanceof r?f:new r(function(p){p(f)})).then(c,d)}u((s=s.apply(void 0,[])).next())});var r,s},J8=function(t,n){return t.slice().sort(function(e,i){return(e[n.name]<i[n.name]?-1:1)*("asc"===n.direction?1:-1)})},Q8=function(t,n){var e;void 0===t&&(t=0),void 0===n&&(n=16);var i="string"==typeof t?ua(null===(e=t.match(/([0-9]+)/gm))||void 0===e?void 0:e[0]):t;return"".concat(i/n,"rem")},X8=F.Nm,ti=F.Mf,EP=F._Y,Z8=F.I8,Ye=F.oV,xP=F.PW,Y8=F.ly,e$=F.C1,t$=F.bG,PP=F.J9,cn=F.Jv,n$=F.Q1,Dc=F.bh;let Ev;try{Ev=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Ev=!1}let Ec,Rr,xv,fo=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?VD(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Ev)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(i){return new(i||t)(O(oo))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function TP(t){return function i$(){if(null==Ec&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ec=!0}))}finally{Ec=Ec||!1}return Ec}()?t:!!t.capture}function o$(){if(null==Rr){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Rr=!1,Rr;if("scrollBehavior"in document.documentElement.style)Rr=!0;else{const t=Element.prototype.scrollTo;Rr=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Rr}function Fr(t){return t.composedPath?t.composedPath()[0]:t.target}function AP(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function x$(t,n){return t===n}function po(t){return null!=t&&"false"!=`${t}`}function NP(t){return Array.isArray(t)?t:[t]}function wt(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Lh(t){return t instanceof he?t.nativeElement:t}const H$=new k("cdk-input-modality-detector-options"),z$={ignoreKeys:[18,17,224,91,16]},ga=TP({passive:!0,capture:!0});let $$=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new Jn(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Fr(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(function V$(t){return 0===t.buttons||0===t.detail}(s)?"keyboard":"mouse"),this._mostRecentTarget=Fr(s))},this._onTouchstart=s=>{!function j$(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}(s)?(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Fr(s)):this._modality.next("keyboard")},this._options={...z$,...r},this.modalityDetected=this._modality.pipe(function D$(t){return aa((n,e)=>t<=e)}(1)),this.modalityChanged=this.modalityDetected.pipe(function E$(t,n=Do){return t=t??x$,Ct((e,i)=>{let o,r=!0;e.subscribe(tt(i,s=>{const a=n(s);(r||!t(o,a))&&(r=!1,o=a,i.next(s))}))})}()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,ga),o.addEventListener("mousedown",this._onMousedown,ga),o.addEventListener("touchstart",this._onTouchstart,ga)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ga),document.removeEventListener("mousedown",this._onMousedown,ga),document.removeEventListener("touchstart",this._onTouchstart,ga))}static{this.\u0275fac=function(i){return new(i||t)(O(fo),O(pe),O($e),O(H$,8))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const U$=new k("liveAnnouncerElement",{providedIn:"root",factory:function G$(){return null}}),q$=new k("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let W$=0,Lr=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[r,s]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==s&&o&&(s=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r<i.length;r++)i[r].remove();return o.classList.add(e),o.classList.add("cdk-visually-hidden"),o.setAttribute("aria-atomic","true"),o.setAttribute("aria-live","polite"),o.id="cdk-live-announcer-"+W$++,this._document.body.appendChild(o),o}_exposeAnnouncerToModals(e){const i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<i.length;o++){const r=i[o],s=r.getAttribute("aria-owns");s?-1===s.indexOf(e)&&r.setAttribute("aria-owns",s+" "+e):r.setAttribute("aria-owns",e)}}static{this.\u0275fac=function(i){return new(i||t)(O(U$,8),O(pe),O($e),O(q$,8))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const J$=new k("cdk-focus-monitor-default-options"),Bh=TP({passive:!0,capture:!0});let Q$=(()=>{class t{constructor(e,i,o,r,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new re,this._rootNodeFocusAndBlurListener=a=>{for(let c=Fr(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=r,this._detectionMode=s?.detectionMode||0}monitor(e,i=!1){const o=Lh(e);if(!this._platform.isBrowser||1!==o.nodeType)return Tr();const r=function s$(t){if(function r$(){if(null==xv){const t=typeof document<"u"?document.head:null;xv=!(!t||!t.createShadowRoot&&!t.attachShadow)}return xv}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(o)||this._getDocument(),s=this._elementInfo.get(o);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new re,rootNode:r};return this._elementInfo.set(o,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Lh(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=Lh(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=Fr(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Bh),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Bh)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Vt(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Bh),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Bh),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let s=0;s<r.length;s++)if(r[s].contains(i))return!0;return!1}static{this.\u0275fac=function(i){return new(i||t)(O(pe),O(fo),O($$),O($e,8),O(J$,8))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const xc={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=xc;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const o=n(r=>{e=void 0,t(r)});return new Te(()=>e?.(o))},requestAnimationFrame(...t){const{delegate:n}=xc;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=xc;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};new class K$ extends ov{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class X$ extends iv{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=xc.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(xc.cancelAnimationFrame(e),n._scheduled=void 0)}});let Pv,Y$=1;const Vh={};function VP(t){return t in Vh&&(delete Vh[t],!0)}const eU={setImmediate(t){const n=Y$++;return Vh[n]=!0,Pv||(Pv=Promise.resolve()),Pv.then(()=>VP(n)&&t()),n},clearImmediate(t){VP(t)}},{setImmediate:tU,clearImmediate:nU}=eU,jh={setImmediate(...t){const{delegate:n}=jh;return(n?.setImmediate||tU)(...t)},clearImmediate(t){const{delegate:n}=jh;return(n?.clearImmediate||nU)(t)},delegate:void 0};new class oU extends ov{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class iU extends iv{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=jh.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(jh.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}});function jP(t,n=rv){return function sU(t){return Ct((n,e)=>{let i=!1,o=null,r=null,s=!1;const a=()=>{if(r?.unsubscribe(),r=null,i){i=!1;const c=o;o=null,e.next(c)}s&&e.complete()},l=()=>{r=null,s&&e.complete()};n.subscribe(tt(e,c=>{i=!0,o=c,r||$n(t(c)).subscribe(r=tt(e,a,l))},()=>{s=!0,(!i||!r||r.closed)&&e.complete()}))})}(()=>Ax(t,n))}const aU=new k("cdk-dir-doc",{providedIn:"root",factory:function lU(){return G($e)}}),cU=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Ov=(()=>{class t{constructor(e){this.value="ltr",this.change=new de,e&&(this.value=function dU(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?cU.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||t)(O(aU,8))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Tv=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Pe({type:t})}static{this.\u0275inj=De({})}}return t})(),hU=(()=>{class t{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new re,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ot(i=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(jP(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Tr()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const o=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(aa(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let o=Lh(i),r=e.getElementRef().nativeElement;do{if(o==r)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ic(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(i){return new(i||t)(O(pe),O(fo),O($e,8))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Av=(()=>{class t{constructor(e,i,o){this._platform=e,this._change=new re,this._changeListener=r=>{this._change.next(r)},this._document=o,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||o.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(jP(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static{this.\u0275fac=function(i){return new(i||t)(O(fo),O(pe),O($e,8))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),HP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Pe({type:t})}static{this.\u0275inj=De({})}}return t})(),zP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Pe({type:t})}static{this.\u0275inj=De({imports:[Tv,HP,Tv,HP]})}}return t})();class kv{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class gU extends kv{constructor(n,e,i,o,r){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=o,this.projectableNodes=r}}class $P extends kv{constructor(n,e,i,o){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=o}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class mU extends kv{constructor(n){super(),this.element=n instanceof he?n.nativeElement:n}}class _U{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof gU?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof $P?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof mU?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class vU extends _U{constructor(n,e,i,o,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=o,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let o;return n.viewContainerRef?(o=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>o.destroy())):(o=i.create(n.injector||this._defaultInjector||Gt.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=n,o}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(i);-1!==o&&e.remove(o)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let yU=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Pe({type:t})}static{this.\u0275inj=De({})}}return t})();const UP=o$();class bU{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=wt(-this._previousScrollPosition.left),n.style.top=wt(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,o=this._document.body.style,r=i.scrollBehavior||"",s=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),UP&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),UP&&(i.scrollBehavior=r,o.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class CU{constructor(n,e,i,o){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(aa(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class GP{enable(){}disable(){}attach(){}}function Nv(t,n){return n.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function qP(t,n){return n.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class MU{constructor(n,e,i,o){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=o,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();Nv(e,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let IU=(()=>{class t{constructor(e,i,o,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new GP,this.close=s=>new CU(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new bU(this._viewportRuler,this._document),this.reposition=s=>new MU(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=r}static{this.\u0275fac=function(i){return new(i||t)(O(hU),O(Av),O(pe),O($e))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();class WP{constructor(n){if(this.scrollStrategy=new GP,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class SU{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}let JP=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static{this.\u0275fac=function(i){return new(i||t)(O($e))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),wU=(()=>{class t extends JP{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=o=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){const a=r[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(o)):a.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static{this.\u0275fac=function(i){return new(i||t)(O($e),O(pe,8))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),DU=(()=>{class t extends JP{constructor(e,i,o){super(e),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Fr(r)},this._clickListener=r=>{const s=Fr(r),a="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const d=l[c];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(s)||d.overlayElement.contains(a))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(r)):u.next(r)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}static{this.\u0275fac=function(i){return new(i||t)(O($e),O(fo),O(pe,8))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),QP=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||AP()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r<o.length;r++)o[r].remove()}const i=this._document.createElement("div");i.classList.add(e),AP()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}static{this.\u0275fac=function(i){return new(i||t)(O($e),O(fo))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();class EU{constructor(n,e,i,o,r,s,a,l,c,d=!1){this._portalOutlet=n,this._host=e,this._pane=i,this._config=o,this._ngZone=r,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._backdropElement=null,this._backdropClick=new re,this._attachments=new re,this._detachments=new re,this._locationChanges=Te.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new re,this._outsidePointerEvents=new re,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(ca(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,n&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...this._config,direction:n},this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=wt(this._config.width),n.height=wt(this._config.height),n.minWidth=wt(this._config.minWidth),n.minHeight=wt(this._config.minHeight),n.maxWidth=wt(this._config.maxWidth),n.maxHeight=wt(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,e,i){const o=NP(e||[]).filter(r=>!!r);o.length&&(i?n.classList.add(...o):n.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(Vt(lh(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const XP="cdk-overlay-connected-position-bounding-box",xU=/([A-Za-z%]+)$/;class PU{get positions(){return this._preferredPositions}constructor(n,e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new re,this._resizeSubscription=Te.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(XP),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,o=this._containerRect,r=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(n,o,a),c=this._getOverlayPoint(l,e,a),d=this._getOverlayFit(c,e,i,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(d,c,i)?r.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleArea<d.visibleArea)&&(s={overlayFit:d,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}if(r.length){let a=null,l=-1;for(const c of r){const d=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);d>l&&(l=d,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Br(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(XP),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let o,r;if("center"==i.originX)o=n.left+n.width/2;else{const s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;o="start"==i.originX?s:a}return e.left<0&&(o-=e.left),r="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(n,e,i){let o,r;return o="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+o,y:n.y+r}}_getOverlayFit(n,e,i,o){const r=ZP(e);let{x:s,y:a}=n,l=this._getOffset(o,"x"),c=this._getOffset(o,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+r.height-i.height,p=this._subtractOverflows(r.width,0-s,s+r.width-i.width),_=this._subtractOverflows(r.height,h,f),y=p*_;return{visibleArea:y,isCompletelyWithinViewport:r.width*r.height===y,fitsInViewportVertically:_===r.height,fitsInViewportHorizontally:p==r.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const o=i.bottom-e.y,r=i.right-e.x,s=KP(this._overlayRef.getConfig().minHeight),a=KP(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=s&&s<=o)&&(n.fitsInViewportHorizontally||null!=a&&a<=r)}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const o=ZP(e),r=this._viewportRect,s=Math.max(n.x+o.width-r.width,0),a=Math.max(n.y+o.height-r.height,0),l=Math.max(r.top-i.top-n.y,0),c=Math.max(r.left-i.left-n.x,0);let d=0,u=0;return d=o.width<=r.width?c||-s:n.x<this._viewportMargin?r.left-i.left-n.x:0,u=o.height<=r.height?l||-a:n.y<this._viewportMargin?r.top-i.top-n.y:0,this._previousPushAmount={x:d,y:u},{x:n.x+d,y:n.y+u}}_applyPosition(n,e){if(this._setTransformOrigin(n),this._setOverlayElementStyles(e,n),this._setBoundingBoxStyles(e,n),n.panelClass&&this._addPanelClasses(n.panelClass),this._lastPosition=n,this._positionChanges.observers.length){const i=this._getScrollVisibility(),o=new SU(n,i);this._positionChanges.next(o)}this._isInitialRender=!1}_setTransformOrigin(n){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,o=n.overlayY;i="center"===n.overlayX?"center":this._isRtl()?"start"===n.overlayX?"right":"left":"start"===n.overlayX?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${i} ${o}`}_calculateBoundingBoxRect(n,e){const i=this._viewportRect,o=this._isRtl();let r,s,a,d,u,h;if("top"===e.overlayY)s=n.y,r=i.height-s+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-n.y+2*this._viewportMargin,r=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-n.y+i.top,n.y),p=this._lastBoundingBoxSize.height;r=2*f,s=n.y-f,r>p&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-p/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)h=i.width-n.x+this._viewportMargin,d=n.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)u=n.x,d=i.right-n.x;else{const f=Math.min(i.right-n.x+i.left,n.x),p=this._lastBoundingBoxSize.width;d=2*f,u=n.x-f,d>p&&!this._isInitialRender&&!this._growAfterOpen&&(u=n.x-p/2)}return{top:s,left:u,bottom:a,right:h,width:d,height:r}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;o.height=wt(i.height),o.top=wt(i.top),o.bottom=wt(i.bottom),o.width=wt(i.width),o.left=wt(i.left),o.right=wt(i.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(o.maxHeight=wt(r)),s&&(o.maxWidth=wt(s))}this._lastBoundingBoxSize=i,Br(this._boundingBox.style,o)}_resetBoundingBoxStyles(){Br(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Br(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(o){const d=this._viewportRuler.getViewportScrollPosition();Br(i,this._getExactOverlayY(e,n,d)),Br(i,this._getExactOverlayX(e,n,d))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(o?i.maxHeight=wt(s.maxHeight):r&&(i.maxHeight="")),s.maxWidth&&(o?i.maxWidth=wt(s.maxWidth):r&&(i.maxWidth="")),Br(this._pane.style,i)}_getExactOverlayY(n,e,i){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"bottom"===n.overlayY?o.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":o.top=wt(r.y),o}_getExactOverlayX(n,e,i){let s,o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),s=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===s?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=wt(r.x),o}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:qP(n,i),isOriginOutsideView:Nv(n,i),isOverlayClipped:qP(e,i),isOverlayOutsideView:Nv(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,o)=>i-Math.max(o,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&NP(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof he)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function Br(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function KP(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(xU);return e&&"px"!==e?null:parseFloat(n)}return t||null}function ZP(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const YP="cdk-global-overlay-wrapper";class OU{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(YP),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:s,maxHeight:a}=i,l=!("100%"!==o&&"100vw"!==o||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",p="",_="";l?_="flex-start":"center"===d?(_="center",h?p=u:f=u):h?"left"===d||"end"===d?(_="flex-end",f=u):("right"===d||"start"===d)&&(_="flex-start",p=u):"left"===d||"start"===d?(_="flex-start",f=u):("right"===d||"end"===d)&&(_="flex-end",p=u),n.position=this._cssPosition,n.marginLeft=l?"0":f,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":p,e.justifyContent=_,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(YP),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let TU=(()=>{class t{constructor(e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r}global(){return new OU}flexibleConnectedTo(e){return new PU(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(i){return new(i||t)(O(Av),O($e),O(fo),O(QP))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),AU=0,Rv=(()=>{class t{constructor(e,i,o,r,s,a,l,c,d,u,h,f){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=r,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=d,this._location=u,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(e){const i=this._createHostElement(),o=this._createPaneElement(i),r=this._createPortalOutlet(o),s=new WP(e);return s.direction=s.direction||this._directionality.value,new EU(r,i,o,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+AU++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Ui)),new vU(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(i){return new(i||t)(O(IU),O(QP),O(_r),O(TU),O(wU),O(Gt),O(pe),O($e),O(Ov),O(bD),O(DU),O(Wp,8))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const kU=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],e1=new k("cdk-connected-overlay-scroll-strategy");let Pc=(()=>{class t{constructor(e){this.elementRef=e}static{this.\u0275fac=function(i){return new(i||t)(C(he))}}static{this.\u0275dir=A({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}}return t})(),t1=(()=>{class t{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=po(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=po(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=po(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=po(e)}get push(){return this._push}set push(e){this._push=po(e)}constructor(e,i,o,r,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Te.EMPTY,this._attachSubscription=Te.EMPTY,this._detachSubscription=Te.EMPTY,this._positionSubscription=Te.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new de,this.positionChange=new de,this.attach=new de,this.detach=new de,this.overlayKeydown=new de,this.overlayOutsideClick=new de,this._templatePortal=new $P(i,o),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=kU);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!function kP(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new WP({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Pc?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function pU(t,n=!1){return Ct((e,i)=>{let o=0;e.subscribe(tt(i,r=>{const s=t(r,o++);(s||n)&&i.next(r),!s&&i.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(C(Rv),C(Lt),C(an),C(e1),C(Ov,8))}}static{this.\u0275dir=A({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[j.None,"cdkConnectedOverlayOrigin","origin"],positions:[j.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[j.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[j.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[j.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[j.None,"cdkConnectedOverlayWidth","width"],height:[j.None,"cdkConnectedOverlayHeight","height"],minWidth:[j.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[j.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[j.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[j.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[j.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[j.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[j.None,"cdkConnectedOverlayOpen","open"],disableClose:[j.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[j.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[j.None,"cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:[j.None,"cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:[j.None,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:[j.None,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:[j.None,"cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[wn]})}}return t})();const RU={provide:e1,deps:[Rv],useFactory:function NU(t){return()=>t.scrollStrategies.reposition()}};let FU=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Pe({type:t})}static{this.\u0275inj=De({providers:[Rv,RU],imports:[Tv,yU,zP,zP]})}}return t})();var oe=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(oe||{});const go="*";function LU(t,n){return{type:oe.Trigger,name:t,definitions:n,options:{}}}function n1(t,n=null){return{type:oe.Animate,styles:n,timings:t}}function Oc(t){return{type:oe.Style,styles:t,offset:null}}function o1(t,n,e=null){return{type:oe.Transition,expr:t,animation:n,options:e}}function r1(t,n,e=null){return{type:oe.Query,selector:t,animation:n,options:e}}class Tc{constructor(n=0,e=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=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class s1{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==r&&this._onFinish()}),s.onDestroy(()=>{++i==r&&this._onDestroy()}),s.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}$c(511);const Jt=["*"],r6=["idsIconButton",""],s6=["alertTitleRef"],a6=["alertContentRef"];function l6(t,n){if(1&t&&(N(0,"div",7)(1,"ids-icon",8),ue(2),V()()),2&t){const e=H(2);T(2),st(" ",e.iconName||"informacao_outline"," ")}}function c6(t,n){if(1&t&&(N(0,"h2",9,1),ue(2),V()),2&t){const e=H(2);T(2),Pn(e.header)}}function d6(t,n){if(1&t){const e=qt();N(0,"div"),Ne(1,l6,3,1,"div",3),N(2,"div",4),Ne(3,c6,3,1,"h2",5),N(4,"section",null,0),Oe(6),V()(),N(7,"button",6),ge("click",function(){return He(e),ze(H().onClose())}),ue(8," fechar "),V()()}if(2&t){const e=H();Ks(e.classes),T(),R("ngIf",e.icon),T(2),R("ngIf",e.header),T(4),X("aria-label",e.closeLabel)}}const u6=["panel"],h6=[[["ids-option"]]],f6=["ids-option"],A6=["idsContextualButton",""],k6=[[["ids-icon"]]],N6=["ids-icon"],R6=["idsMainButton",""];function F6(t,n){if(1&t&&mn(0,"ids-loading",2),2&t){const e=H();R("variant","secondary"===e.variant?e.variant:void 0)("contrast","secondary"===e.variant?e.contrast:e.variant||e.contrast?void 0:"onBrand")}}const Jv=["content"];function L6(t,n){1&t&&(N(0,"ids-icon",4),ue(1," aviso_outline "),V())}function B6(t,n){if(1&t&&(kt(0),Ne(1,L6,2,0,"ids-icon",2),N(2,"span",3,0),Oe(4),V(),Nt()),2&t){const e=H();T(),R("ngIf","error"===e.status),T(),R("id",e.id)}}const V6=["dummy"],j6=["suffix"],H6=["prefix"],z6=["formField"],$6=[[["label"]],"*",[["ids-icon"],["","idsSuffix",""]],[["ids-listbox"]],[["ids-listbox"]]],U6=["label","*","ids-icon, [idsSuffix]","ids-listbox","ids-listbox"],G6=(t,n)=>({"--ids-form-field-text-width":t,"--ids-form-field-prefix-width":n});function q6(t,n){if(1&t&&(N(0,"label",13),ue(1),V()),2&t){const e=H();R("for",e.field.controlId),X("id",e.field.labelId?e.field.labelId:null),T(),st(" ",e.label," ")}}function W6(t,n){1&t&&(N(0,"ids-icon",14),ue(1," editar_outline "),V())}function J6(t,n){if(1&t&&(N(0,"ids-icon",14),ue(1),V()),2&t){const e=H();T(),st(" ",e.externalSuffix," ")}}function Q6(t,n){if(1&t&&(N(0,"div",15)(1,"ids-form-message",16),ue(2),V()()),2&t){const e=H();T(),R("status",e.hasError?"error":void 0)("id",e.describedById)("announceDescription",!e.isTextarea),T(),st(" ",e.message," ")}}const X6=["select"];function K6(t,n){if(1&t){const e=qt();N(0,"div",4,1),ge("keydown",function(o){return He(e),ze(H().handleKeydown(o))}),Oe(2),V()}if(2&t){const e=H();Xs("max-height",e.listMaxHeight,"rem"),Re("ids-listbox--top","top"===e.panelPosition),R("id",e.panelId),X("aria-labelledby",e.labelId)("aria-hidden",!e.panelOpen)}}const oG=["formSelectionLabel"],rG=[[["input"]],"*",[["ids-form-message"]]],sG=["input","*","ids-form-message"],aG=[[["legend"]],[["ids-form-selection"]]],lG=["legend","ids-form-selection"];function cG(t,n){if(1&t&&(N(0,"legend"),ue(1),V()),2&t){const e=H();T(),st(" ",e.legend," ")}}let Gi=(()=>{class t{set size(e){this._size=xP(e,"upperCase")}get size(){return this._size}constructor(e){this._elementRef=e}ngOnInit(){this.role=this._elementRef.nativeElement.hasAttribute("aria-label")?"img":null}}return t.\u0275fac=function(e){return new(e||t)(C(he))},t.\u0275cmp=be({type:t,selectors:[["ids-icon"]],hostVars:23,hostBindings:function(e,i){2&e&&(X("role",i.role),Re("ids-icon",!0)("ids-icon--small","S"===i.size)("ids-icon--large","L"===i.size)("ids-icon--xlarge","XL"===i.size)("ids-icon--primary","primary"===i.variant)("ids-icon--neutral","neutral"===i.variant)("ids-icon--success","success"===i.variant)("ids-icon--alert","alert"===i.variant)("ids-icon--information","information"===i.variant)("ids-icon--error","error"===i.variant)("ids-icon--on-brand","onBrand"===i.contrast))},inputs:{size:"size",variant:"variant",contrast:"contrast"},standalone:!0,features:[ut],ngContentSelectors:Jt,decls:2,vars:0,consts:[["aria-hidden","true"]],template:function(e,i){1&e&&(Ze(),N(0,"span",0),Oe(1),V())},encapsulation:2}),t})(),Ko=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({imports:[Gi]}),t})(),Qv=(()=>{class t{constructor(e){this.elementRef=e,this.isMobile=cn.isMobile}ngOnInit(){this.title=this.elementRef.nativeElement.getAttribute("title"),this.ariaLabel=this.elementRef.nativeElement.getAttribute("aria-label")}ngAfterContentInit(){this.icon&&(this.icon.contrast=this.contrast)}}return t.\u0275fac=function(e){return new(e||t)(C(he))},t.\u0275cmp=be({type:t,selectors:[["","idsIconButton",""]],contentQueries:function(e,i,o){if(1&e&&Qe(o,Gi,5),2&e){let r;Z(r=Y())&&(i.icon=r.first)}},hostVars:16,hostBindings:function(e,i){2&e&&(X("title",i.isMobile?null:i.title)("aria-label",i.ariaLabel||i.title),Re("ids-icon-button",!0)("ids-icon-button--neutral","neutral"===i.variant)("ids-icon-button--secondary","secondary"===i.variant)("ids-icon-button--on-brand","onBrand"===i.contrast)("ids-icon-button--small","S"===i.size)("ids-icon-button--large","L"===i.size)("ids-icon-button--xlarge","XL"===i.size))},inputs:{variant:"variant",contrast:"contrast",size:"size",title:"title",ariaLabel:[j.None,"aria-label","ariaLabel"]},standalone:!0,features:[ut],attrs:r6,ngContentSelectors:Jt,decls:1,vars:0,template:function(e,i){1&e&&(Ze(),Oe(0))},dependencies:[Ko],styles:['.ids-icon-button[_ngcontent-%COMP%], .ids-icon-button[_nghost-%COMP%]{all:unset;all:revert;box-sizing:border-box;align-items:center;background-color:transparent;border:0;color:var(--ids_color_action_primary_base);cursor:pointer;display:inline-flex;font:var(--ids_textStyle_icon_medium);font-feature-settings:"liga","dlig";-webkit-font-smoothing:antialiased;font-style:normal;font-variant-ligatures:discretionary-ligatures;justify-content:center;min-height:var(--ids_size_general_48x);min-width:var(--ids_size_general_48x);padding:var(--ids_spacing_3x)}.ids-icon-button[_ngcontent-%COMP%]:focus, .ids-icon-button[_nghost-%COMP%]:focus{outline:revert!important}.ids-icon-button[_ngcontent-%COMP%]:disabled, .ids-icon-button[aria-disabled=true][_ngcontent-%COMP%], .ids-icon-button[_nghost-%COMP%]:disabled, .ids-icon-button[aria-disabled=true][_nghost-%COMP%]{color:var(--ids_color_action_disabled_variant);cursor:not-allowed}@media (hover: hover) and (pointer: fine){.ids-icon-button[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-icon-button[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-icon-button[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-icon-button[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){color:var(--ids_color_action_primary_variant)}}.ids-icon-button--neutral[_ngcontent-%COMP%], .ids-icon-button--neutral[_nghost-%COMP%]{color:var(--ids_color_action_neutral_base)}@media (hover: hover) and (pointer: fine){.ids-icon-button--neutral[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-icon-button--neutral[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-icon-button--neutral[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-icon-button--neutral[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){color:var(--ids_color_action_neutral_variant)}}.ids-icon-button--secondary[_ngcontent-%COMP%], .ids-icon-button--secondary[_nghost-%COMP%]{color:var(--ids_color_action_secondary_base)}@media (hover: hover) and (pointer: fine){.ids-icon-button--secondary[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-icon-button--secondary[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-icon-button--secondary[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-icon-button--secondary[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){color:var(--ids_color_action_secondary_variant)}}.ids-icon-button--on-brand[_ngcontent-%COMP%], .ids-icon-button--on-brand[_nghost-%COMP%]{color:var(--ids_color_contrast_onBrand_primary)}.ids-icon-button--on-brand[_ngcontent-%COMP%]:disabled, .ids-icon-button--on-brand[aria-disabled=true][_ngcontent-%COMP%], .ids-icon-button--on-brand[_nghost-%COMP%]:disabled, .ids-icon-button--on-brand[aria-disabled=true][_nghost-%COMP%]{color:var(--ids_color_contrast_onBrand_primary_medium)}@media (hover: hover) and (pointer: fine){.ids-icon-button--on-brand[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-icon-button--on-brand[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-icon-button--on-brand[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-icon-button--on-brand[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){color:var(--ids_color_contrast_onBrand_primary_strong)}}.ids-icon-button--small[_ngcontent-%COMP%], .ids-icon-button--small[_nghost-%COMP%]{font:var(--ids_textStyle_icon_small)}.ids-icon-button--large[_ngcontent-%COMP%], .ids-icon-button--large[_nghost-%COMP%]{font:var(--ids_textStyle_icon_large)}.ids-icon-button--xlarge[_ngcontent-%COMP%], .ids-icon-button--xlarge[_nghost-%COMP%]{font:var(--ids_textStyle_icon_xLarge)}']}),t})(),g1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({imports:[Qv]}),t})(),DG=(()=>{class t{set origin(e){this._origin=e instanceof Pc?e:new Pc(new he(e))}get origin(){return this._origin||this._autoDetectedOrigin}set show(e){if(!e&&this._show)return this._show=e,setTimeout(()=>{this.visible=e},200),void this._liveAnnouncer.announce(this.closeMessage,200);e&&(this._autoDetectedOrigin=new Pc(new he(document.activeElement))),this.visible=e,setTimeout(()=>{this._show=e})}get show(){return this._show}get classes(){return{"ids-alert":!0,"ids-alert--success":"success"===this.variant,"ids-alert--error":"error"===this.variant,"ids-alert--closing":!this._show}}get iconName(){return X8[this.variant]}constructor(e,i){this._liveAnnouncer=e,this._renderer=i,this._destroy=new re,this.visible=this.show,this.closeLabel="fechar",this.closeMessage="fechado",this.close=new de,this.showChange=new de,this.hostClass=null}_getElementToFocus(){const e=this.alertContentList.get(0);if(!e)return null;const i=e.nativeElement.firstElementChild||e.nativeElement;return this._renderer.setAttribute(i,"tabindex","-1"),i}ngAfterViewInit(){this.alertContentList.changes.pipe(Vt(this._destroy)).subscribe(e=>{if(0===e.length||this.skipFocus)return;const i=this.header?this.alertTitle?.nativeElement:this._getElementToFocus();i&&setTimeout(()=>{i.focus()},250)})}ngOnDestroy(){this._destroy.complete()}onClose(){this.origin?.elementRef?.nativeElement?.focus(),this.showChange.emit(!this.show),this.close.emit()}}return t.\u0275fac=function(e){return new(e||t)(C(Lr),C(jn))},t.\u0275cmp=be({type:t,selectors:[["ids-alert"]],viewQuery:function(e,i){if(1&e&&(je(s6,5),je(a6,5)),2&e){let o;Z(o=Y())&&(i.alertTitle=o.first),Z(o=Y())&&(i.alertContentList=o)}},hostVars:2,hostBindings:function(e,i){2&e&&Ks(i.hostClass)},inputs:{closeLabel:"closeLabel",closeMessage:"closeMessage",icon:"icon",header:"header",origin:"origin",show:"show",skipFocus:"skipFocus",variant:"variant"},outputs:{close:"close",showChange:"showChange"},standalone:!0,features:[ut],ngContentSelectors:Jt,decls:1,vars:1,consts:[["alertContentRef",""],["alertTitleRef",""],[3,"class",4,"ngIf"],["class","ids-alert__icon",4,"ngIf"],[1,"ids-alert__content"],["tabindex","-1","class","ids-alert__title",4,"ngIf"],["idsIconButton","","variant","neutral","size","S","type","button",3,"click"],[1,"ids-alert__icon"],["size","L"],["tabindex","-1",1,"ids-alert__title"]],template:function(e,i){1&e&&(Ze(),Ne(0,d6,9,5,"div",2)),2&e&&R("ngIf",i.visible)},dependencies:[Yn,Zn,Ko,Gi,g1,Qv],styles:[".ids-animation-fade-in-start[_ngcontent-%COMP%]{opacity:0}.ids-animation-fade-in-moderate-end[_ngcontent-%COMP%]{opacity:1;transition:opacity .2s cubic-bezier(.42,0,.58,1)}.ids-animation-fade-out-start[_ngcontent-%COMP%]{opacity:1}.ids-animation-fade-out-moderate-output-end[_ngcontent-%COMP%]{opacity:0;transition:opacity 275ms cubic-bezier(.42,0,.58,1)}.ids-animation-scale-x-down[_ngcontent-%COMP%]{transform:scaleX(0);transform:scaleX(var(--ids-scale-x-down, 0))}.ids-animation-scale-x-up[_ngcontent-%COMP%]{transform:scaleX(1);transform:scaleX(var(--ids-scale-x-up, 100%))}.ids-animation-time-transform-slow[_ngcontent-%COMP%]{transition:transform 2s cubic-bezier(0,0,.58,1)}.ids-animation-width-down[_ngcontent-%COMP%]{width:0;width:var(--ids-width-down, 0)}.ids-animation-width-up[_ngcontent-%COMP%]{width:100%;width:var(--ids-width-up, 100%)}.ids-animation-time-width-slow[_ngcontent-%COMP%]{transition:width 2s cubic-bezier(0,0,.58,1)}.ids-motion-none[_ngcontent-%COMP%], .ids-motion-none[_ngcontent-%COMP%]:before, .ids-motion-none[_ngcontent-%COMP%]:after, .ids-motion-none[_ngcontent-%COMP%]   *[_ngcontent-%COMP%], .ids-motion-none[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]:before, .ids-motion-none[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]:after{animation:none!important;transition:none!important}.ids-alert[_ngcontent-%COMP%]{align-items:flex-start;background-color:var(--ids_color_bg_base);border:var(--ids_size_border_small) solid var(--ids_color_feedback_neutral);border-radius:var(--ids_size_cornerRadius_card_02);color:var(--ids_color_text_body_01);display:flex;font:var(--ids_textStyle_f02_s14_h20_wrg);overflow:hidden;transition:transform .2s cubic-bezier(.42,0,.58,1),opacity .2s linear;width:100%}.ids-alert__content[_ngcontent-%COMP%]{padding:var(--ids_size_general_16x) 0 var(--ids_size_general_16x) var(--ids_size_general_16x);text-align:left;width:100%}.ids-alert__content[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{font:var(--ids_textStyle_f02_s14_h20_wrg)}.ids-alert__icon[_ngcontent-%COMP%]{align-self:center;font-size:0;line-height:1;padding-left:var(--ids_size_general_16x)}.ids-alert[_ngcontent-%COMP%]   .ids-icon-button[_ngcontent-%COMP%]{border-radius:inherit}.ids-alert[_ngcontent-%COMP%]     .ids-icon-button{border-radius:inherit}.ids-alert__title[_ngcontent-%COMP%]{color:var(--ids_color_feedback_neutral);font:var(--ids_textStyle_f02_s14_h20_wbd)}.ids-alert--success[_ngcontent-%COMP%]{border-color:var(--ids_color_feedback_success)}.ids-alert--success[_ngcontent-%COMP%]   .ids-alert__icon[_ngcontent-%COMP%]   .ids-icon[_ngcontent-%COMP%]{color:var(--ids_color_feedback_success)}.ids-alert--error[_ngcontent-%COMP%]{border-color:var(--ids_color_feedback_error)}.ids-alert--error[_ngcontent-%COMP%]   .ids-alert__icon[_ngcontent-%COMP%]   .ids-icon[_ngcontent-%COMP%]{color:var(--ids_color_feedback_error)}.ids-alert--closing[_ngcontent-%COMP%]{opacity:0;transform:scale(.8)}ids-alert[_nghost-%COMP%]{display:block}"]}),bn([ti(),Bt("design:type",Object)],t.prototype,"icon",void 0),bn([ti(),Bt("design:type",Object),Bt("design:paramtypes",[Object])],t.prototype,"show",null),bn([ti(),Bt("design:type",Object)],t.prototype,"skipFocus",void 0),bn([EP(["variant","_show"]),Bt("design:type",Object),Bt("design:paramtypes",[])],t.prototype,"classes",null),t})(),EG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({imports:[DG]}),t})();const m1=(...t)=>t,xG=t=>(()=>{class e extends t{get viewModelChange$(){return this._viewModelChange.asObservable()}constructor(...o){super(...o),this.formState=new re,this._disabled=!1,this._focused=!1,this._active=!1,this._updateFirstOnBlur=!1,this.formAcessorChanged=m1,this.formAcessorTouched=m1,this._destroy=new re,this._viewModelChange=new Jn(this.value),this.ngControl&&(this.ngControl.valueAccessor=this),this.errorState=this.formState.pipe(aa(()=>!!this.ngControl),Nn(()=>!(!this.ngControl.touched&&!this.ngControl.dirty||!this.ngControl.invalid||!(!this.updateFirstOnBlur||this.updateFirstOnBlur&&this.ngControl.touched))))}ngOnDestroy(){this._destroy.complete(),this.formState.complete()}set value(o){o!==this._value&&(this._value=o,this.formAcessorChanged(o))}get value(){return this._value}set disabled(o){this._disabled=Ye(o)}get disabled(){return this._disabled}set focused(o){this._focused=o}get focused(){return this._focused}set active(o){this._active=o}get active(){return this._active}set updateFirstOnBlur(o){this._updateFirstOnBlur=o}get updateFirstOnBlur(){return this._updateFirstOnBlur}formAcessorHandleChange(){setTimeout(()=>{this.formState.next()},0)}formAcessorHandleFocus(){this.focused=!0,this.formState.next()}formAcessorHandleBlur(){this.focused=!1,this.active=!1,this.formAcessorTouched(),this.formState.next()}writeValue(o){o!==this._value&&(this.value=o,this.elementRef.nativeElement.value=o,this.formAcessorTouched(),this._viewModelChange.next(o))}registerOnChange(o){this.formAcessorChanged=r=>{this.focused&&(this.active=!0),o(r),this.formState.next()}}registerOnTouched(o){this.formAcessorTouched=o}setDisabledState(o){this._disabled=o,this.formState.next()}}return e.\u0275fac=function(o){!function P0(){throw new Error("invalid")}()},e.\u0275dir=A({type:e,inputs:{value:"value",disabled:"disabled"},features:[q]}),e})(),_1=t=>{const n={originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},e={originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},i=[];return{top:()=>i.push(e),bottom:()=>i.push(n),auto:()=>i.push(n,e)}[t](),i};class PG{constructor(n,e,i){this.ngControl=n,this.elementRef=e,this.errorState=i}}let Vr=(()=>{class t extends(xG(PG)){get input$(){return Ic(this.elementRef.nativeElement,"input")}get keydown$(){return Ic(this.elementRef.nativeElement,"keydown")}constructor(e,i){super(e,i),this.ngControl=e,this.elementRef=i,this._externalDescribedBy=!1,this.invalid=null,this._controlDescribedBy=null,this.ariaLabelledby=null,this.ariaLabel=null}set controlDescribedBy(e){this._externalDescribedBy=!0,this._controlDescribedBy=e}get controlDescribedBy(){return this._controlDescribedBy}get controlAriaInvalid(){return"IOS"===cn.os?null:this.invalid}set controlAriaInvalid(e){this.invalid=e}get nativeElement(){return this.elementRef.nativeElement}handleInvalid(e){this.controlAriaInvalid=e||null}handleDescribedby(e){this._externalDescribedBy||(this._controlDescribedBy=e||null)}focus(){this.elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(C(On,10),C(he))},t.\u0275dir=A({type:t,selectors:[["do-not-use-ids-form-control-mixin-base"]],hostVars:4,hostBindings:function(e,i){2&e&&X("aria-describedby",i.controlDescribedBy)("aria-labelledby",i.ariaLabelledby)("aria-label",i.ariaLabel)("aria-invalid",i.controlAriaInvalid)},inputs:{controlDescribedBy:[j.None,"aria-describedby","controlDescribedBy"],ariaLabelledby:[j.None,"aria-labelledby","ariaLabelledby"],ariaLabel:[j.None,"aria-label","ariaLabel"],controlAriaInvalid:[j.None,"invalid","controlAriaInvalid"]},features:[q]}),t})(),Xh=(()=>{class t{constructor(){this.classes=[],this.listboxOpen=!1,this._classesSubject=new Jn([]),this._suffixIconSubject=new Jn(""),this._inputSubject=new re,this._listboxSubject=new re,this._formFieldElementSubject=new re,this._listboxOpenSubject=new re}emitClasses(){this._classesSubject.next(this.classes)}emitSuffixIcon(){this._suffixIconSubject.next(this.suffixIcon)}emitInput(){this._inputSubject.next(this.input)}emitListbox(){this._listboxSubject.next(this.listbox)}emitFormFieldElement(){this._formFieldElementSubject.next(this.formFieldElement)}emitListboxOpen(){this._listboxOpenSubject.next(this.listboxOpen)}classes$(){return this._classesSubject.asObservable()}suffixIcon$(){return this._suffixIconSubject.asObservable()}input$(){return this._inputSubject.asObservable()}listbox$(){return this._listboxSubject.asObservable()}formFieldElement$(){return this._formFieldElementSubject.asObservable()}listboxOpen$(){return this._listboxOpenSubject.asObservable()}addClass(e){this.classes.push(e),this.emitClasses()}sendSuffixIcon(e){this.suffixIcon=e,this.emitSuffixIcon()}sendInput(e){this.input=e,this.emitInput()}sendListbox(e){this.listbox=e,this.emitListbox()}sendFormFieldElement(e){this.formFieldElement=e,this.emitFormFieldElement()}sendListboxOpen(e){this.listboxOpen=e,this.emitListboxOpen()}removeClass(e){this.classes=this.classes.filter(i=>i!==e),this.emitClasses()}removeSuffixIcon(){this.suffixIcon="",this.emitSuffixIcon()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:null}),t})(),OG=0,v1=(()=>{class t{get title(){return this.label||null}set selected(e){!this._selected&&e&&this.selectedChange.emit(),this._selected=e}get selected(){return this._selected}set label(e){e&&(this._label=e)}get label(){return this._label||(this.element.nativeElement.textContent||"").trim()}get optionLabel(){return this.label}get value(){return this._value}set value(e){this._value=e}get disabled(){return this._disabled}set disabled(e){this._disabled=Ye(e)}get small(){return this._small}set small(e){this._small=Ye(e)}onClick(){this.selectAndClose()}constructor(e){this.element=e,this._destroy=new re,this.highlighted=!1,this.showing=!0,this._selected=!1,this.id="ids-option-"+OG++,this._disabled=!1,this._small=!1,this.change=new de,this.selectedChange=new de}_emitOptionChangeEvent(e){this.change.emit({option:this,close:e})}show(){this.showing=!0}hide(){this.showing=!1}select(e=!1){this.disabled||(this.selected=!0,this._emitOptionChangeEvent(e))}selectAndClose(){this.select(!0)}highlight(){this.highlighted=!0}unhighlight(){this.highlighted=!1}deselect(){this.selected=!1}ngOnDestroy(){this._destroy.complete()}}return t.\u0275fac=function(e){return new(e||t)(C(he))},t.\u0275cmp=be({type:t,selectors:[["ids-option"]],hostVars:18,hostBindings:function(e,i){1&e&&ge("click",function(){return i.onClick()}),2&e&&(X("id",i.id)("role","option")("tabindex",i.disabled?"-1":"0")("aria-selected",i.selected)("aria-disabled",i.disabled)("title",i.title),Re("ids-option",!0)("ids-option--selected",i.selected)("ids-option--disabled",i.disabled)("ids-option--highlighted",i.highlighted)("ids-option--small",i.small)("ids-option--hide",!i.showing))},inputs:{selected:"selected",label:"label",id:"id",value:"value",disabled:"disabled",small:"small"},outputs:{change:"change",selectedChange:"selectedChange"},standalone:!0,features:[ut],ngContentSelectors:Jt,decls:3,vars:0,consts:[["option",""],[1,"ids-option__text"]],template:function(e,i){1&e&&(Ze(),N(0,"span",1,0),Oe(2),V())},styles:[".ids-option[_ngcontent-%COMP%], .ids-option[_nghost-%COMP%]{align-items:center;background-color:var(--ids_color_bg_base);border-left:var(--ids_size_border_large) solid var(--ids_color_bg_base);color:var(--ids_color_action_neutral_variant);cursor:pointer;display:flex;font:var(--ids_textStyle_label_medium_regular);min-height:var(--ids_size_general_48x);text-align:left}.ids-option[_ngcontent-%COMP%]:not(.ids-option--small):hover, .ids-option[_nghost-%COMP%]:not(.ids-option--small):hover{background-color:var(--ids_color_bg_variant_02);border-left-color:var(--ids_color_bg_variant_02)}.ids-option[_ngcontent-%COMP%]   [aria-selected=true][_ngcontent-%COMP%], .ids-option--selected[_ngcontent-%COMP%], .ids-option[_nghost-%COMP%]   [aria-selected=true][_ngcontent-%COMP%], .ids-option--selected[_nghost-%COMP%]{border-left-color:var(--ids_color_action_primary_variant);font:var(--ids_textStyle_label_medium_bold)}.ids-option[_ngcontent-%COMP%]   [aria-selected=true][_ngcontent-%COMP%]:hover, .ids-option--selected[_ngcontent-%COMP%]:hover, .ids-option[_nghost-%COMP%]   [aria-selected=true][_ngcontent-%COMP%]:hover, .ids-option--selected[_nghost-%COMP%]:hover{border-left-color:var(--ids_color_action_primary_variant)}.ids-option[_ngcontent-%COMP%]   [aria-disabled=true][_ngcontent-%COMP%], .ids-option--disabled[_ngcontent-%COMP%], .ids-option[_nghost-%COMP%]   [aria-disabled=true][_ngcontent-%COMP%], .ids-option--disabled[_nghost-%COMP%]{background-color:var(--ids_color_bg_variant_01);border-left-color:var(--ids_color_bg_variant_01);color:var(--ids_color_action_disabled_variant);pointer-events:none}.ids-option--highlighted[_ngcontent-%COMP%], .ids-option--highlighted[_nghost-%COMP%]{background-color:var(--ids_color_bg_variant_02);border-left-color:var(--ids_color_bg_variant_02)}.ids-option--hide[_ngcontent-%COMP%], .ids-option--hide[_nghost-%COMP%]{display:none}.ids-option__text[_ngcontent-%COMP%], .ids-option__text[_nghost-%COMP%]{flex:1;overflow:hidden;padding:var(--ids_size_general_12x) var(--ids_size_general_8x);text-overflow:ellipsis;white-space:nowrap}"]}),t})(),Xv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({imports:[v1]}),t})(),TG=0,y1=(()=>{class t extends Vr{get isTypeNumberOnIOS(){return"IOS"===cn.os&&"number"===this._type}get isTypeNumberOnMobile(){return cn.isMobile&&"number"===this._type}set readonly(e){this._readonly=Ye(e)}get readonly(){return this._readonly}set noLabel(e){this._noLabel=Ye(e)}get noLabel(){return this._noLabel}get controlDisabled(){return this.disabled&&!this.controlValue||null}get controlReadOnly(){return this.disabled&&!!this.controlValue||this.readonly}get controlValue(){return this.value}get inputClasses(){return this.noStyles?null:e$({"ids-input":!0,"ids-input--large":"L"===this.size,"ids-input--center":this.noLabel,"ids-input--small":this.noLabel})}set type(e){this._type=e}get type(){return this.isTypeNumberOnMobile?"text":this._type}set inputmode(e){this._inputmode=e}get inputmode(){return this.isTypeNumberOnMobile?"decimal":this._inputmode}set pattern(e){this._pattern=e}get pattern(){return this.isTypeNumberOnIOS?"[0-9]*":this._pattern}set controlUpdateFirstOnBlur(e){this.updateFirstOnBlur=Ye(e)}controlInput({value:e,valueAsNumber:i}){const o=this.elementRef.nativeElement.maxLength,s=(Dc(e)>o||Dc(String(i))>o)&&(e?.substring(0,o)||Number(String(i)?.substring(0,o)));this.value=s||i||e,this.valueChange.emit(this.value),this.elementRef.nativeElement.value=this.value}controlChange(e){this.value=e,this.formAcessorHandleChange()}controlFocus(){this.formAcessorHandleFocus()}controlBlur(){this.formAcessorHandleBlur()}controlKeyup(e){const i=e.target;this.verifyAndAnnouceLimit(i),this.autoResize&&this.handleElementHeight(i)}constructor(e,i,o,r){super(e,i),this.ngControl=e,this.elementRef=i,this.liveAnnoucer=o,this.renderer=r,this._readonly=null,this._noLabel=!1,this.autoResize=cn.isMobile,this.noStyles=!1,this.controlId="ids-input-"+TG++,this.valueChange=new de}verifyAndAnnouceLimit(e){const i=e.maxLength;-1!==i&&Dc(e.value)>=i&&"MacOS"!==cn.os&&this.liveAnnoucer.announce("Limite de caracteres atingido",1e3)}handleElementHeight(e){"TEXTAREA"===e.tagName&&(e.style.height="auto",e.style.height=`${e.scrollHeight+1}px`)}ngAfterViewInit(){setTimeout(()=>{this.handleElementHeight(this.nativeElement)},500)}ngDoCheck(){this.ngControl&&this.ngControl.touched&&this.ngControl.invalid&&!this.active&&this.formAcessorHandleBlur()}setControlValue(e){this.renderer.setProperty(this.elementRef.nativeElement,"value",e),this.value=e,this.valueChange.emit(e)}resetControlValue(){this.setControlValue("")}}return t.\u0275fac=function(e){return new(e||t)(C(On,10),C(he),C(Lr),C(jn))},t.\u0275dir=A({type:t,selectors:[["","idsInput","",3,"idsDatepicker",""]],hostVars:8,hostBindings:function(e,i){1&e&&ge("input",function(r){return i.controlInput(r.target)})("ngModelChange",function(r){return i.controlChange(r)})("focus",function(){return i.controlFocus()})("blur",function(){return i.controlBlur()})("keyup",function(r){return i.controlKeyup(r)}),2&e&&X("disabled",i.controlDisabled)("readonly",i.controlReadOnly)("value",i.controlValue)("class",i.inputClasses)("id",i.controlId)("type",i.type)("inputmode",i.inputmode)("pattern",i.pattern)},inputs:{readonly:"readonly",autoResize:"autoResize",noStyles:"noStyles",noLabel:"noLabel",controlId:[j.None,"id","controlId"],type:"type",inputmode:"inputmode",pattern:"pattern",controlUpdateFirstOnBlur:[j.None,"updateFirstOnBlur","controlUpdateFirstOnBlur"],size:"size"},outputs:{valueChange:"valueChange"},standalone:!0,features:[te([{provide:Vr,useExisting:xe(()=>t)}]),q]}),bn([ti(),Bt("design:type",Object)],t.prototype,"autoResize",void 0),bn([ti(),Bt("design:type",Object)],t.prototype,"noStyles",void 0),t})(),AG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["ids-checkbox"]],standalone:!0,features:[ut],ngContentSelectors:Jt,decls:3,vars:0,consts:[[1,"ids-checkbox"],["aria-hidden","true",1,"ids-checkbox__icon","ids-icon"]],template:function(e,i){1&e&&(Ze(),N(0,"span",0),Oe(1),mn(2,"span",1),V())},encapsulation:2}),t})(),Kh=(()=>{class t{constructor(){this.labelIds=[],this.inputIdSubject=new re,this.labelIdsSubject=new re}setInputId(e=""){e&&this.inputIdSubject.next(e)}setLabelId(e="",i){!e||this.labelIds.includes(e)||("number"==typeof i?this.labelIds[i]=e:this.labelIds.push(e),this.labelIdsSubject.next(this.labelIds))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:null}),t})(),jr=(()=>{class t{set rootClasses(e){this._rootClasses=e}get rootClasses(){return this._rootClasses}get control(){return this.ngControl?.control}get rtlDirection(){return this._rtlDirection}set disabled(e){this._disabled=Ye(e)}get disabled(){return this._disabled}set invalid(e){this._invalid=Ye(e)}get invalid(){return this._invalid}set id(e){this.formSelectionService&&this.formSelectionService.setInputId(e),this._id=e}get id(){return this._id}get ariaInvalid(){return"IOS"===cn.os?null:this.invalid}set ariaLabelledBy(e){this._ariaLabelledBy=e}get ariaLabelledBy(){return this._ariaLabelledBy||("IOS"!==cn.os?`${this.id}-label`:"")}constructor(e,i,o){this.ngControl=e,this.elementRef=i,this.formSelectionService=o,this.state="",this.destroy=new re,this._rtlDirection=!1,this._isFocused=!1,this._disabled=!1,this._invalid=!1,this._ariaLabelledBy="",this.subscribeLabelId()}ngOnInit(){this.formSelectionService&&this.formSelectionService.setInputId(this.id)}ngOnDestroy(){this.destroy.complete()}subscribeLabelId(){this.formSelectionService&&this.formSelectionService.labelIdsSubject.pipe(Vt(this.destroy)).subscribe(e=>{let i="";e.forEach(o=>{i=`${i} ${o}`}),this.ariaLabelledBy=i.trim()})}onFocus(){this._isFocused=!0}onFocusout(){this._isFocused=!1}}return t.\u0275fac=function(e){return new(e||t)(C(On,10),C(he),C(Kh,8))},t.\u0275dir=A({type:t,hostVars:3,hostBindings:function(e,i){1&e&&ge("focus",function(){return i.onFocus()})("focusout",function(){return i.onFocusout()}),2&e&&X("id",i.id)("aria-invalid",i.ariaInvalid)("aria-labelledby",i.ariaLabelledBy)},inputs:{contrast:"contrast",disabled:"disabled",invalid:"invalid",id:"id",ariaLabelledBy:[j.None,"aria-labelledby","ariaLabelledBy"]}}),t})(),kG=0,b1=(()=>{class t extends jr{constructor(){super(...arguments),this._id="ids-checkbox-"+ ++kG}get rootClasses(){return{"ids-checkbox":!0,"ids-checkbox--invalid":this.invalid}}get iconClasses(){return"ids-checkbox__icon ids-icon ids-icon--medium"}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=we(t)))(i||t)}})(),t.\u0275dir=A({type:t,selectors:[["","idsCheckbox",""]],hostVars:3,hostBindings:function(e,i){2&e&&(X("type","checkbox"),Re("ids-checkbox__input",!0))},standalone:!0,features:[te([{provide:jr,useExisting:t}]),q]}),t})(),NG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({imports:[AG]}),t})(),C1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["","idsContextualButton",""]],hostVars:4,hostBindings:function(e,i){2&e&&Re("ids-contextual-button",!0)("ids-contextual-button--on-brand","onBrand"===i.contrast)},inputs:{contrast:"contrast"},standalone:!0,features:[ut],attrs:A6,ngContentSelectors:Jt,decls:1,vars:0,template:function(e,i){1&e&&(Ze(),Oe(0))},styles:[".ids-contextual-button[_ngcontent-%COMP%], .ids-contextual-button[_nghost-%COMP%]{all:unset;all:revert;box-sizing:border-box;align-items:center;background-color:transparent;border:currentcolor solid var(--ids_size_border_small);border-radius:var(--ids_size_cornerRadius_button);color:var(--ids_color_action_secondary_base);cursor:pointer;display:inline-flex;font:var(--ids_textStyle_f02_s14_h20_wbd);justify-content:center;min-height:var(--ids_size_general_32x);outline-offset:var(--ids_size_general_4x);padding:var(--ids_size_general_5x) var(--ids_size_general_16x);text-align:center;text-decoration:none}.ids-contextual-button[_ngcontent-%COMP%]:focus, .ids-contextual-button[_nghost-%COMP%]:focus{outline:revert!important}.ids-contextual-button[_ngcontent-%COMP%]:disabled, .ids-contextual-button[aria-disabled=true][_ngcontent-%COMP%], .ids-contextual-button[_nghost-%COMP%]:disabled, .ids-contextual-button[aria-disabled=true][_nghost-%COMP%]{border-color:var(--ids_color_action_disabled_base);color:var(--ids_color_action_disabled_variant);cursor:not-allowed}@media (hover: hover) and (pointer: fine){.ids-contextual-button[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-contextual-button[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-contextual-button[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-contextual-button[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){background-color:var(--ids_color_action_secondary_base_soft);color:var(--ids_color_action_secondary_variant)}}.ids-contextual-button--on-brand[_ngcontent-%COMP%], .ids-contextual-button--on-brand[_nghost-%COMP%]{color:var(--ids_color_contrast_onBrand_primary)}.ids-contextual-button--on-brand[_ngcontent-%COMP%]:disabled, .ids-contextual-button--on-brand[aria-disabled=true][_ngcontent-%COMP%], .ids-contextual-button--on-brand[_nghost-%COMP%]:disabled, .ids-contextual-button--on-brand[aria-disabled=true][_nghost-%COMP%]{border-color:var(--ids_color_contrast_onBrand_primary_medium);color:var(--ids_color_contrast_onBrand_primary_medium)}@media (hover: hover) and (pointer: fine){.ids-contextual-button--on-brand[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-contextual-button--on-brand[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-contextual-button--on-brand[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-contextual-button--on-brand[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){background-color:var(--ids_color_contrast_onBrand_primary_soft);color:var(--ids_color_contrast_onBrand_primary)}}"]}),t})(),RG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({imports:[C1]}),t})();const M1=new k("currency.config"),I1=new k("date.config");class BG{constructor(n,e){this.iCurrencyConfig=n,this.iDateConfig=e}}let S1=(()=>{class t extends(function FG(t){return class extends t{constructor(...n){super(...n),this.currencyTemplate={allowNegative:!1,decimal:",",precision:2,thousands:".",prefix:"R$ ",suffix:""},this.currencyMask=(e,i)=>{const{allowNegative:o,decimal:r,precision:s,thousands:a,prefix:l,suffix:c}={...this.currencyTemplate,...i};if(""===e)return{mask:this.regExpMask(l+c),valueMask:"",value:""};const d=this.removeMask(e,!0);let u=d.slice(0,d.length-s).replace(/^0*/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,a);""===u&&(u="0"),u=u.replace(/\B(?=([0-9]{3})+(?![0-9]))/g,a);const h=d.slice(d.length-s),f=parseInt(h,10)||0;let p=parseInt(u,10)+f/100;p=e.indexOf("-")>-1?-p:p,s>0&&(u+="0"===u&&h.length<s?r+"0".repeat(s-1)+h:r+h);const _=e.indexOf("-")>-1&&o&&0!==p?"-":"",y=parseFloat(u.split(a).join("").replace(r,".")).toFixed(s);return{mask:this.regExpMask(_+l+u+c),valueMask:u,value:y}},this.currencyTemplate={...this.currencyTemplate,...n[0]}}}}(function LG(t){return class extends t{constructor(...e){super(...e),this.dateTemplate={format:"dd/mm/yyyy"},this.dateMask=(i,o)=>{const r=o?.format||this.dateTemplate.format,s=[],a=o?.range;let c=0;r.split("").forEach(_=>{if(/([^dmyHMS])/.test(_))return/[^0-9]/.test(i.split("")[c])&&c++,void s.push(_);s.push(/[^0-9]/.test(i.split("")[c])?"":i.split("")[c]),c++});const d=r.split(/([^dmyHMS])/),p=d[r.split(/([^dmyHMS])/).findIndex(_=>_.includes("yy"))].length>2?[/[0-9]/,/[0-9]/,/[0-9]/,/[0-9]/]:[/[0-9]/,/[0-9]/];return d.splice(d.indexOf("dd"),1,/[0-9]/,/[0-9]/),d.splice(d.indexOf("mm"),1,/[0-9]/,/[0-9]/),d.splice(d.indexOf("yyyy"),1,...p),a&&d.push(" ","-"," ",...d),d},this.dateTemplate={...this.dateTemplate,...e[1]}}}}(BG))){constructor(e,i){super(e,i),this.iCurrencyConfig=e,this.iDateConfig=i,this.placeholderChar="_"}removeMask(e,i=!1){const o=i?/\D/g:/[^A-Za-z0-9]/g;return this.valueIsNotEmpty(e)?e.replace(o,""):""}valueIsNotEmpty(e){return e&&""!==e}regExpMask(e){return e.split("").map(i=>Number.isNaN(parseInt(i,10))?i:new RegExp(/[0-9]/))}convertMaskToPlaceholder(e){return e.map(i=>i instanceof RegExp?this.placeholderChar:i).join("")}valueWithMask(e="",i,o="",r=0,s=!1,a=!1,l=!1,c){let d="";if("function"==typeof i){const w=i(e,c);i=w.mask?w.mask:w,e=Object.prototype.hasOwnProperty.call(w,"valueMask")?w.valueMask:e,d=Object.prototype.hasOwnProperty.call(w,"value")?w.value:d}if(l){const w=this.removeMask(e,!0);let D=0;i.map(z=>{D=z instanceof RegExp?D+1:D}).join("");let P=w.replace(/^0*/g,"");P.length>D&&(P=w.slice(0,-1)),e="0".repeat(D-P.length)+P}const u=!1===s&&void 0!==o,h=this.convertMaskToPlaceholder(i),f=e.length-o.length,p=f>0,_=r+(p?-f:0),y=_+Math.abs(f);let b="";if(!p&&a){let w="";for(let D=_;D<y;D++)h[D]===this.placeholderChar&&(w+=this.placeholderChar);e=e.slice(0,_)+w+e.slice(_,e.length)}const M=e.split("").map((w,D)=>({char:w,isNew:D>=_&&D<y}));for(let w=e.length-1;w>=0;w--){M[w].char!==this.placeholderChar&&M[w].char===h[w>=_&&o.length===i.length?w-f:w]&&M.splice(w,1);break}e:for(let w=0;w<h.length;w++){if(h[w]===this.placeholderChar){if(M.length>0)for(;M.length>0;){const D=M.shift();if(D&&this.placeholderChar===D.char&&!u){b+=this.placeholderChar;continue e}if(D&&i[w].test(D.char)){if(a&&D.isNew&&""!==o&&s&&p){let P=null;for(let z=0;M.length>z;z++){const W=M[z];if(W.char!==this.placeholderChar&&!W.isNew)break;if(W.char===this.placeholderChar){P=z;break}}null!==P?(b+=D.char,M.splice(P,1)):w--}else b+=D.char;continue e}}u||(b+=h.substr(w,h.length));break}b+=h[w]}if(u&&!p){let w=null;for(let D=0;D<b.length;D++)h[D]===this.placeholderChar&&(w=D);b=null!==w?b.substr(0,w+1):""}return d=this.verifyAndAdjustDecimal(c,b,this.valueIsNotEmpty(d)?d:this.removeMask(b)),{valueMask:b,placeholder:h,value:d}}adjustCaretPosition(e="",i,o,r,s="",a=!1,l=!1,c=!1,d=!1,u=[]){if(0===r||!e.length)return 0;const f=s.length,p=o.length,_=i.length,y=e.length-f,b=y>0,M=b&&(s===i||i===o);if((!c||c&&b||l)&&(!a||a&&!b)&&(!l||l&&!b)&&_===f&&!M&&i!==s)return r+1;let w=0,D="";if(M)w=r-y;else{const P=i.toLowerCase(),Ce=e.toLowerCase().substr(0,r).split("").filter(Xt=>-1!==P.indexOf(Xt));D=Ce[Ce.length-1];const lt=Ce.filter(Xt=>Xt===D).length,vt=o.substr(0,o.indexOf(this.placeholderChar)).split("").filter((Xt,An)=>Xt===D&&e[An]!==Xt).length+lt;let yt=0;for(let Xt=0;Xt<_&&(w=Xt+1,P[Xt]===D&&yt++,!(yt>=vt));Xt++);}if(b){let P=w;for(let z=w;z<=p;z++)if(o[z]===this.placeholderChar&&(P=z),o[z]===this.placeholderChar||u&&-1!==u.indexOf(z)||z===p)return P}for(let P=w;P>=0;P--){const z=d&&-1!==o[P-1].search(/[ /-]/g);if(o[P-1]===this.placeholderChar||z||-1!==u.indexOf(P)||0===P)return P}}verifyAndAdjustDecimal(e,i,o){if(!this.valueIsNotEmpty(o)||-1!==o.indexOf(".")||!e?.decimal)return o;const{decimal:r,precision:s=0}=e,a=i.indexOf(r);if(-1===a)return o;const l=`${o.slice(0,a)}.${o.slice(a)}`;return s>0?parseFloat(l).toFixed(s):l}}return t.\u0275fac=function(e){return new(e||t)(O(M1,8),O(I1,8))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})(),Kv=(()=>{class t{constructor(e,i,o,r,s){this.ngControl=e,this.elementRef=i,this.idsMaskService=o,this.renderer=r,this.la=s,this._announce=!1,this._lastKey="",this._shouldKeepMask=!1,this._onChange=a=>{},this._onTouched=()=>{},this.allowLeadingZeros=!1,this.forceEndCursor=!1,this.guide=!1,this.keepCharPositions=!1,this.ngControl&&(this.ngControl.valueAccessor=this)}ngOnInit(){this._handleMaskType()}ngAfterViewInit(){(this._value&&"string"==typeof this._value||this._value?.length>0||this.guide&&"date"!==this.idsMask)&&this.setValueMask()}get isCurrencyOnIOS(){return"IOS"===cn.os&&"currency"===this.idsMask}get isCurrencyOnMobile(){return cn.isMobile&&"currency"===this.idsMask}get isRangeDate(){return this.config?.range}set announce(e){this._announce=Ye(e)}get announce(){return this._announce||"date"===this.idsMask||"currency"===this.idsMask}set config(e){this._config=Z8(e)}get config(){return this._config}set disabled(e){this._disabled=Ye(e)}get disabled(){return this._disabled||this.ngControl&&this.ngControl.disabled&&!this.controlValue||null}set idsMask(e){this._idsMask=e,this.ngControl?.dirty&&this._handleMaskType()}get idsMask(){return this._idsMask}set readonly(e){this._readonly=Ye(e)}get readonly(){return this._readonly||this.ngControl&&this.ngControl.disabled&&!!this.controlValue||null}set shouldKeepMask(e){this._shouldKeepMask=Ye(e)}get shouldKeepMask(){return this._shouldKeepMask||"date"===this.idsMask}set value(e){e!==this._value&&(this._value=this.handleValue(e),this._onChange(e))}get value(){return this._value}handleValue(e){return"number"==typeof e&&("currency"===this.idsMask||this.config&&this.config.decimal)?e.toFixed(this.config?.precision??"2"):e}get controlValue(){return this._value}get inputmode(){const e=this.elementRef.nativeElement.getAttribute("inputmode");return this.isCurrencyOnMobile?e||"decimal":e}get pattern(){const e=this.elementRef.nativeElement.getAttribute("pattern");return this.isCurrencyOnIOS?e||"[0-9.?,]*":e}controlBlur(){this._onTouched()}controlChange(){this._onChange(this.value)}onInput(e){if("date"===this.idsMask)return this._handleMaskOnInput(e,i=>this._transformDateValue(i,!1)),void(this.value=this.isRangeDate?this._setDateRangeValue():this.value);this._handleMaskOnInput(e)}onKeyDown(e=""){this._lastKey=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}writeValue(e){this.value=e,this._mask&&this.setValueMask()}setValueMask(){const e=this.valueMask(this._value?.toString(),this.elementRef.nativeElement.selectionEnd);this.renderer.setProperty(this.elementRef.nativeElement,"value",e.valueMask),this._previousMaskValue=e.valueMask}valueMask(e,i){const o=this.idsMaskService.valueWithMask(e,this._mask,this._previousMaskValue,i,!!this.guide,!!this.keepCharPositions,!!this.allowLeadingZeros,this.config),r=this.idsMaskService.adjustCaretPosition(e,o.valueMask,o.placeholder,i,this._previousMaskValue,!!this.guide,!!this.allowLeadingZeros,!!this.keepCharPositions,"date"===this.idsMask);return{valueMask:o.valueMask,cleanValue:o.value,position:r}}_announceValue(){this.announce&&this.la.announce("currency"===this.idsMask&&this.prefixToBeAnnounced?`${this.prefixToBeAnnounced} ${this._valueMask.valueMask}`:this._valueMask.valueMask,1e3)}_handleMaskOnInput(e,i){let o=e.value;i&&(o=i(o)),this._valueMask=this.valueMask(o,e.selectionEnd??0),this.value=this.shouldKeepMask?this._valueMask.valueMask:this._valueMask.cleanValue,this._renderElementValue(),this._setCursorPosition(e),this._previousMaskValue=this._valueMask.valueMask,this._announceValue()}_renderElementValue(){this.renderer.setProperty(this.elementRef.nativeElement,"value",this._valueMask.valueMask)}_handleMaskType(){return"currency"===this.idsMask?this._mask=this.idsMaskService.currencyMask:"date"===this.idsMask?(this.guide=!0,this.keepCharPositions=!0,this._mask=this.idsMaskService.dateMask):this._mask="string"==typeof this.idsMask?this.idsMaskService.regExpMask(this.idsMask):this.idsMask}_transformDateValue(e="",i=!0){const o=this.idsMaskService.placeholderChar,r=i?RegExp(`${o}`,"g"):/ /g,s=i?" ":`${o}`,l=RegExp("(\\s?-\\s?)|\\s","g"),c=!e.includes("-")&&"Backspace"===this._lastKey||"Space"===this._lastKey||/\w-|-\w/.test(e);let d;if(!e)return e;d=i||!this.isRangeDate?e.replace(r,s):c?this._previousMaskValue:e.replace(l,(h,f)=>f||"_");const u=d.replace(/[ /-]/g,"");return i&&0===u.length&&(d=""),d}_setCursorPosition(e){const i="Backspace"===this._lastKey,{position:o,valueMask:r}=this._valueMask;this.forceEndCursor&&i&&(o===r.length-1||o===r.length)||"currency"===this.idsMask||e.setSelectionRange(o??0,o??0,"none")}_setDateRangeValue(){const{valueMask:e,cleanValue:i}=this._valueMask,o=this.config?.format?.length||10,r=this.config?.format?.replace(/[/-]/g,"").length||8,s=e.substring(o+3,2*o+3);return[e.substring(0,o),i.length>r?s:""]}}return t.\u0275fac=function(e){return new(e||t)(C(On,10),C(he),C(S1),C(jn),C(Lr))},t.\u0275dir=A({type:t,selectors:[["","idsMask",""]],hostVars:5,hostBindings:function(e,i){1&e&&ge("blur",function(){return i.controlBlur()})("change",function(){return i.controlChange()})("input",function(r){return i.onInput(r.target)})("keydown",function(r){return i.onKeyDown(r.code)}),2&e&&(Su("disabled",i.disabled)("readonly",i.readonly),X("value",i.controlValue)("inputmode",i.inputmode)("pattern",i.pattern))},inputs:{announce:"announce",allowLeadingZeros:"allowLeadingZeros",config:"config",disabled:"disabled",forceEndCursor:"forceEndCursor",guide:"guide",idsMask:"idsMask",keepCharPositions:"keepCharPositions",readonly:"readonly",shouldKeepMask:"shouldKeepMask",value:"value"},standalone:!0}),bn([ti(),Bt("design:type",Object)],t.prototype,"allowLeadingZeros",void 0),bn([ti(),Bt("design:type",Object)],t.prototype,"forceEndCursor",void 0),bn([ti(),Bt("design:type",Object)],t.prototype,"guide",void 0),bn([ti(),Bt("design:type",Object)],t.prototype,"keepCharPositions",void 0),t})(),VG=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:M1,useValue:e.currencyConfig},{provide:I1,useValue:e.dateConfig}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({providers:[S1]}),t})(),jG=0,Zv=(()=>{class t{set size(e){this._size=e,this.circleRadius=this._circleRadiusValues[this.size]}get size(){return xP(this._size,"upperCase")}constructor(e){this.liveAnnouncer=e,this._circleRadiusValues={XS:8,S:12,L:32,XL:64},this.circleRadius=16,this.id="ids-loading-"+jG++,this.ariaLabel="carregando"}ngAfterViewInit(){this.ariaLive&&this.liveAnnouncer.announce(this.ariaLabel,this.ariaLive,1e3)}}return t.\u0275fac=function(e){return new(e||t)(C(Lr))},t.\u0275cmp=be({type:t,selectors:[["ids-loading"]],hostVars:6,hostBindings:function(e,i){2&e&&(wm("@inOut",!0),X("id",null)("aria-hidden",null)("aria-label",null)("aria-live",null)("role",null))},inputs:{id:"id",ariaHidden:[j.None,"aria-hidden","ariaHidden"],ariaLabel:[j.None,"aria-label","ariaLabel"],ariaLive:[j.None,"aria-live","ariaLive"],role:"role",contrast:"contrast",variant:"variant",size:"size"},standalone:!0,features:[ut],ngContentSelectors:N6,decls:8,vars:18,consts:[[1,"ids-loading"],["xmlns","http://www.w3.org/2000/svg","role","img",1,"ids-loading__svg"],["cx","50%","cy","50%",1,"ids-loading__circle-ring"],["cx","50%","cy","50%",1,"ids-loading__circle-spinner"],[1,"ids-loading__icon"]],template:function(e,i){1&e&&(Ze(k6),N(0,"div",0),Tp(),N(1,"svg",1)(2,"title"),ue(3),V(),mn(4,"circle",2)(5,"circle",3),V(),Ap(),N(6,"div",4),Oe(7),V()()),2&e&&(Re("ids-loading--xsmall","XS"===i.size)("ids-loading--small","S"===i.size)("ids-loading--large","L"===i.size)("ids-loading--xlarge","XL"===i.size)("ids-loading--on-brand","onBrand"===i.contrast)("ids-loading--secondary","secondary"===i.variant),X("id",i.id)("aria-hidden",i.ariaHidden)("role",i.role),T(3),Pn(i.ariaLabel),T(),X("r",i.circleRadius),T(),X("r",i.circleRadius))},styles:["@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ids-loading[_ngcontent-%COMP%]{color:var(--ids_color_action_primary_base);display:inline-block;height:calc(var(--ids_size_general_32x) + var(--ids_size_general_3x) * 2);position:relative;width:calc(var(--ids_size_general_32x) + var(--ids_size_general_3x) * 2)}.ids-loading__svg[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin .8s linear infinite;height:calc(var(--ids_size_general_32x) + var(--ids_size_general_3x) * 2);width:calc(var(--ids_size_general_32x) + var(--ids_size_general_3x) * 2)}.ids-loading__circle-ring[_ngcontent-%COMP%]{fill:transparent;opacity:var(--ids_opacity_soft);stroke:currentcolor;stroke-width:var(--ids_size_general_3x)}.ids-loading__circle-spinner[_ngcontent-%COMP%]{--spin-value: var(--ids_size_general_3x);fill:transparent;stroke:currentcolor;stroke-dasharray:100.5309649149;stroke-dashoffset:75.3982236862;stroke-linecap:round;stroke-width:var(--ids_size_general_3x)}.ids-loading__icon[_ngcontent-%COMP%]{display:flex;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.ids-loading--xsmall[_ngcontent-%COMP%], .ids-loading--xsmall[_ngcontent-%COMP%]   .ids-loading__svg[_ngcontent-%COMP%]{height:calc(var(--ids_size_general_16x) + var(--ids_size_general_2x) * 2);width:calc(var(--ids_size_general_16x) + var(--ids_size_general_2x) * 2)}.ids-loading--xsmall[_ngcontent-%COMP%]   .ids-loading__circle-ring[_ngcontent-%COMP%]{stroke-width:var(--ids_size_general_2x)}.ids-loading--xsmall[_ngcontent-%COMP%]   .ids-loading__circle-spinner[_ngcontent-%COMP%]{--spin-value: var(--ids_size_general_2x);stroke-dasharray:50.2654824574;stroke-dashoffset:37.6991118431;stroke-width:var(--ids_size_general_2x)}.ids-loading--small[_ngcontent-%COMP%], .ids-loading--small[_ngcontent-%COMP%]   .ids-loading__svg[_ngcontent-%COMP%]{height:calc(var(--ids_size_general_24x) + var(--ids_size_general_2x) * 2);width:calc(var(--ids_size_general_24x) + var(--ids_size_general_2x) * 2)}.ids-loading--small[_ngcontent-%COMP%]   .ids-loading__circle-ring[_ngcontent-%COMP%]{stroke-width:var(--ids_size_general_2x)}.ids-loading--small[_ngcontent-%COMP%]   .ids-loading__circle-spinner[_ngcontent-%COMP%]{--spin-value: var(--ids_size_general_2x);stroke-dasharray:75.3982236862;stroke-dashoffset:56.5486677646;stroke-width:var(--ids_size_general_2x)}.ids-loading--large[_ngcontent-%COMP%], .ids-loading--large[_ngcontent-%COMP%]   .ids-loading__svg[_ngcontent-%COMP%]{height:calc(var(--ids_size_general_64x) + var(--ids_size_general_4x) * 2);width:calc(var(--ids_size_general_64x) + var(--ids_size_general_4x) * 2)}.ids-loading--large[_ngcontent-%COMP%]   .ids-loading__circle-ring[_ngcontent-%COMP%]{stroke-width:var(--ids_size_general_4x)}.ids-loading--large[_ngcontent-%COMP%]   .ids-loading__circle-spinner[_ngcontent-%COMP%]{--spin-value: var(--ids_size_general_4x);stroke-dasharray:201.0619298297;stroke-dashoffset:150.7964473723;stroke-width:var(--ids_size_general_4x)}.ids-loading--xlarge[_ngcontent-%COMP%], .ids-loading--xlarge[_ngcontent-%COMP%]   .ids-loading__svg[_ngcontent-%COMP%]{height:calc(var(--ids_size_general_128x) + var(--ids_size_general_5x) * 2);width:calc(var(--ids_size_general_128x) + var(--ids_size_general_5x) * 2)}.ids-loading--xlarge[_ngcontent-%COMP%]   .ids-loading__circle-ring[_ngcontent-%COMP%]{stroke-width:var(--ids_size_general_5x)}.ids-loading--xlarge[_ngcontent-%COMP%]   .ids-loading__circle-spinner[_ngcontent-%COMP%]{--spin-value: var(--ids_size_general_5x);stroke-dasharray:402.1238596595;stroke-dashoffset:301.5928947446;stroke-width:var(--ids_size_general_5x)}.ids-loading--secondary[_ngcontent-%COMP%]{color:var(--ids_color_action_secondary_base)}.ids-loading--on-brand[_ngcontent-%COMP%]{color:var(--ids_color_contrast_onBrand_primary)}"],data:{animation:[LU("inOut",[o1(":enter",[r1(".ids-loading",[Oc({opacity:"0"}),n1("200ms ease-in-out",Oc({opacity:"1"}))])]),o1(":leave",[r1(".ids-loading",[n1("250ms ease-in-out",Oc({opacity:"0"}))])])])]}}),t})(),w1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({imports:[Zv]}),t})(),Yv=(()=>{class t{constructor(){this._full=!1,this._loading=!1}get full(){return this._full}set full(e){this._full=Ye(e)}get loading(){return this._loading}set loading(e){this._loading=Ye(e)}onKeydown(e){this.loading&&e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["button","idsMainButton",""]],hostVars:10,hostBindings:function(e,i){1&e&&ge("keydown",function(r){return i.onKeydown(r)}),2&e&&Re("ids-main-button",!0)("ids-main-button--full",i.full)("ids-main-button--secondary","secondary"===i.variant)("ids-main-button--on-brand","onBrand"===i.contrast)("ids-main-button--loading",i.loading)},inputs:{contrast:"contrast",variant:"variant",full:"full",loading:"loading"},standalone:!0,features:[ut],attrs:R6,ngContentSelectors:Jt,decls:3,vars:3,consts:[[1,"ids-main-button__content"],["class","ids-main-button__loading","size","S","aria-live","polite",3,"variant","contrast",4,"ngIf"],["size","S","aria-live","polite",1,"ids-main-button__loading",3,"variant","contrast"]],template:function(e,i){1&e&&(Ze(),N(0,"span",0),Oe(1),V(),Ne(2,F6,1,2,"ids-loading",1)),2&e&&(Re("ids-main-button__content--hidden",i.loading),T(2),R("ngIf",i.loading))},dependencies:[Yn,Zn,w1,Zv],styles:[".ids-main-button[_ngcontent-%COMP%], .ids-main-button[_nghost-%COMP%]{all:unset;all:revert;box-sizing:border-box;background:var(--ids_color_action_primary_base);border:var(--ids_size_border_small) solid transparent;border-radius:var(--ids_size_cornerRadius_button);color:var(--ids_color_action_primary_contrast);cursor:pointer;font:var(--ids_textStyle_f02_s16_h24_wbd);min-height:3.125rem;outline-offset:var(--ids_size_general_4x);padding:var(--ids_size_general_10x) calc(var(--ids_size_general_24x) - var(--ids_size_border_small));position:relative;text-align:center;text-decoration:none}.ids-main-button[_ngcontent-%COMP%]:focus, .ids-main-button[_nghost-%COMP%]:focus{outline:revert!important}.ids-main-button__content[_ngcontent-%COMP%], .ids-main-button__content[_nghost-%COMP%]{align-items:center;display:inline-flex;gap:var(--ids_size_general_10x);justify-content:center}.ids-main-button__content--hidden[_ngcontent-%COMP%], .ids-main-button__content--hidden[_nghost-%COMP%]{visibility:hidden}.ids-main-button__loading[_ngcontent-%COMP%], .ids-main-button__loading[_nghost-%COMP%]{left:0;position:absolute;right:0;width:100%}.ids-main-button--loading[_ngcontent-%COMP%], .ids-main-button--loading[_nghost-%COMP%]{pointer-events:none}.ids-main-button--full[_ngcontent-%COMP%], .ids-main-button--full[_nghost-%COMP%]{width:100%}.ids-main-button--full[_ngcontent-%COMP%]   .ids-main-button__content[_ngcontent-%COMP%], .ids-main-button--full[_nghost-%COMP%]   .ids-main-button__content[_ngcontent-%COMP%]{width:100%}.ids-main-button--full[_ngcontent-%COMP%]   .ids-icon[_ngcontent-%COMP%], .ids-main-button--full[_nghost-%COMP%]   .ids-icon[_ngcontent-%COMP%]{margin-left:auto}.ids-main-button--full[_ngcontent-%COMP%]     ids-icon, .ids-main-button--full[_nghost-%COMP%]     ids-icon{margin-left:auto}.ids-main-button[_ngcontent-%COMP%]:disabled, .ids-main-button[aria-disabled=true][_ngcontent-%COMP%], .ids-main-button[_nghost-%COMP%]:disabled, .ids-main-button[aria-disabled=true][_nghost-%COMP%]{background-color:var(--ids_color_action_disabled_base);border-color:var(--ids_color_action_disabled_base);color:var(--ids_color_action_disabled_variant);cursor:not-allowed}@media (hover: hover) and (pointer: fine){.ids-main-button[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-main-button[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-main-button[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-main-button[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){background-color:var(--ids_color_action_primary_variant)}}.ids-main-button--secondary[_ngcontent-%COMP%], .ids-main-button--secondary[_nghost-%COMP%]{background-color:transparent;border-color:currentcolor;color:var(--ids_color_action_secondary_base)}.ids-main-button--secondary[_ngcontent-%COMP%]:disabled, .ids-main-button--secondary[aria-disabled=true][_ngcontent-%COMP%], .ids-main-button--secondary[_nghost-%COMP%]:disabled, .ids-main-button--secondary[aria-disabled=true][_nghost-%COMP%]{background-color:transparent;color:var(--ids_color_action_disabled_variant)}@media (hover: hover) and (pointer: fine){.ids-main-button--secondary[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-main-button--secondary[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-main-button--secondary[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-main-button--secondary[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){background-color:var(--ids_color_action_secondary_base_soft);color:var(--ids_color_action_secondary_variant)}}.ids-main-button--on-brand[_ngcontent-%COMP%], .ids-main-button--on-brand[_nghost-%COMP%]{background-color:var(--ids_color_action_primary_contrast);border-color:var(--ids_color_action_primary_contrast);color:var(--ids_color_action_primary_base)}.ids-main-button--on-brand[_ngcontent-%COMP%]:disabled, .ids-main-button--on-brand[aria-disabled=true][_ngcontent-%COMP%], .ids-main-button--on-brand[_nghost-%COMP%]:disabled, .ids-main-button--on-brand[aria-disabled=true][_nghost-%COMP%]{background-color:var(--ids_color_action_primary_contrast);border-color:var(--ids_color_action_primary_contrast);color:var(--ids_color_action_disabled_variant)}@media (hover: hover) and (pointer: fine){.ids-main-button--on-brand[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-main-button--on-brand[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-main-button--on-brand[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-main-button--on-brand[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){background-color:var(--ids_color_action_primary_contrast);color:var(--ids_color_action_primary_variant)}}.ids-main-button--on-brand.ids-main-button--secondary[_ngcontent-%COMP%], .ids-main-button--on-brand.ids-main-button--secondary[_nghost-%COMP%]{background-color:transparent;border-color:currentcolor;color:var(--ids_color_action_primary_contrast)}.ids-main-button--on-brand.ids-main-button--secondary[_ngcontent-%COMP%]:disabled, .ids-main-button--on-brand.ids-main-button--secondary[aria-disabled=true][_ngcontent-%COMP%], .ids-main-button--on-brand.ids-main-button--secondary[_nghost-%COMP%]:disabled, .ids-main-button--on-brand.ids-main-button--secondary[aria-disabled=true][_nghost-%COMP%]{background-color:transparent;color:var(--ids_color_action_primary_contrast_medium)}@media (hover: hover) and (pointer: fine){.ids-main-button--on-brand.ids-main-button--secondary[_ngcontent-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-main-button--on-brand.ids-main-button--secondary[_ngcontent-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]), .ids-main-button--on-brand.ids-main-button--secondary[_nghost-%COMP%]:hover:not(:disabled):not([aria-disabled=true]), .ids-main-button--on-brand.ids-main-button--secondary[_nghost-%COMP%]:focus-visible:not(:disabled):not([aria-disabled=true]){background-color:var(--ids_color_action_primary_contrast_soft);color:var(--ids_color_action_primary_contrast)}}@media (min-width: 64rem){.ids-main-button[_ngcontent-%COMP%], .ids-main-button[_nghost-%COMP%]{font:var(--ids_textStyle_f02_s20_h26_wbd)}}"]}),t})(),D1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({imports:[Yv]}),t})(),HG=0,E1=(()=>{class t{constructor(){this.classes=!0,this.id="ids-prefix-"+HG++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=A({type:t,selectors:[["","idsPrefix",""]],hostVars:3,hostBindings:function(e,i){2&e&&(X("id",i.id),Re("ids-form-field__prefix",i.classes))},inputs:{id:"id"},exportAs:["idsPrefix"],standalone:!0}),t})(),x1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=A({type:t,selectors:[["","idsSuffix",""]],exportAs:["idsSuffix"],standalone:!0}),t})(),P1=(()=>{class t{get formFieldLabelClass(){return!0}constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(C(he))},t.\u0275dir=A({type:t,selectors:[["","idsFormFieldLabel",""]],hostVars:2,hostBindings:function(e,i){2&e&&Re("ids-form-field__label",i.formFieldLabelClass)},standalone:!0}),t})(),zG=0,ya=(()=>{class t{get classes(){return{"ids-form-message":!0,"ids-form-message--disabled":"disabled"===this.status,"ids-form-message--error":"error"===this.status,"ids-form-message--on-brand":"onBrand"===this.contrast}}constructor(e){this.liveAnnouncer=e,this.observer=new MutationObserver(()=>this._checkAriaLive()),this.id="ids-form-message-"+ ++zG,this._hostId=null,this.ariaLive="off",this.show=!0}ngAfterViewInit(){this.contentRef&&"off"===this.ariaLive&&"Windows"!==cn.os&&this._listenToMutation()}ngOnDestroy(){this.observer.disconnect()}_listenToMutation(){this.observer.observe(this.contentRef.nativeElement,{subtree:!0,characterData:!0})}_checkAriaLive(){this.ariaLive="polite","Safari"===cn.userAgent&&this.announceDescription&&this.liveAnnouncer.announce(this.contentRef.nativeElement.textContent,1e3)}}return t.\u0275fac=function(e){return new(e||t)(C(Lr))},t.\u0275cmp=be({type:t,selectors:[["ids-form-message"]],viewQuery:function(e,i){if(1&e&&je(Jv,5),2&e){let o;Z(o=Y())&&(i.contentRef=o.first)}},hostVars:2,hostBindings:function(e,i){2&e&&X("aria-live",null)("id",i._hostId)},inputs:{id:"id",contrast:"contrast",ariaLive:[j.None,"aria-live","ariaLive"],show:"show",announceDescription:"announceDescription",status:"status"},standalone:!0,features:[ut],ngContentSelectors:Jt,decls:2,vars:4,consts:[["content",""],[4,"ngIf"],["size","S",4,"ngIf"],[3,"id"],["size","S"]],template:function(e,i){1&e&&(Ze(),N(0,"div"),Ne(1,B6,5,2,"ng-container",1),V()),2&e&&(Ks(i.classes),X("aria-live",i.ariaLive),T(),R("ngIf",i.show))},dependencies:[Yn,Zn,Ko,Gi],styles:[".ids-form-message[_ngcontent-%COMP%]{align-items:center;color:var(--ids_color_action_neutral_base);display:flex;font:var(--ids_textStyle_f02_s14_h20_wrg);margin-right:var(--ids_spacing_2x)}.ids-form-message[_ngcontent-%COMP%]   .ids-icon[_ngcontent-%COMP%]{margin-right:var(--ids_size_general_4x);margin-top:var(--ids_size_general_1x)}.ids-form-message--error[_ngcontent-%COMP%]{color:var(--ids_color_feedback_error)}.ids-form-message--disabled[_ngcontent-%COMP%]{color:var(--ids_color_action_disabled_variant)}.ids-form-message--hidden[_ngcontent-%COMP%]{display:none}.ids-form-message--on-brand[_ngcontent-%COMP%]{color:var(--ids_color_contrast_onBrand_primary)}.ids-form-message--on-brand.ids-form-message--disabled[_ngcontent-%COMP%]{color:var(--ids_color_contrast_onBrand_primary_medium)}"]}),bn([ti(),Bt("design:type",Object)],t.prototype,"show",void 0),bn([ti(),Bt("design:type",Object)],t.prototype,"announceDescription",void 0),t})(),O1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({imports:[ya]}),t})(),$G=(()=>{class t{transform(e=0){return n$(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=fn({name:"pxToRem",type:t,pure:!0,standalone:!0}),t})(),UG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({}),t})(),T1=0,Zh=(()=>{class t{get hasValue(){return!(!this.field.value&&!this.field.nativeElement.value&&"date"!==this.field.nativeElement.type)}get classes(){const e=this.externalClasses.join(" ");return this.field?{"ids-form-field":!0,"ids-form-field--error":this.hasError,"ids-form-field--large":"L"===this.size||this.isCurrency&&this.center,"ids-form-field--value":this.hasValue,"ids-form-field--button-suffix":this.isButtonSuffix,"ids-form-field--center":this.center,"ids-form-field--placeholder":this.hasPlaceHolder,"ids-form-field--focus":this.isFocused,"ids-form-field--visible-focus":this.canShowVisibleFocus,"ids-form-field--disabled":this.isDisabled||this.isReadOnly,"ids-form-field--suffix":this.hasSuffix,"ids-form-field--outline":this.outline,"ids-form-field--on-brand":"onBrand"===this.contrast,"ids-form-field--secondary":"secondary"===this.variant,"ids-form-field--no-label":!this.hasLabel,"ids-form-field--no-border":this.noBorder,"ids-form-field--no-message":this.noMessage,[e]:!0}:""}get isCurrency(){return this.mask&&"currency"===this.mask.idsMask}get isDisabled(){return!!(this.field.nativeElement.disabled||this.field.nativeElement.disabled||this.field.disabled)}get isReadOnly(){return!!this.field.nativeElement.readOnly}get hasPrefix(){return!!(this.prefix||this.isCurrency&&this.hasValue)}get hasSuffix(){return!!(this.hasContentSuffix||this.externalSuffix||this.edit)}get hasPlaceHolder(){return!!this.field.nativeElement.placeholder}get hasLabel(){return!(!this.labelDirective&&!this.label)}get isTextarea(){return"textarea"===this.field?.nativeElement?.type}get maxLength(){return this.field.nativeElement.maxLength}get hasMaxLength(){return this.maxLength>=0}get isButtonSuffix(){return!this.outline&&this.suffix?.nativeElement?.querySelector("button")}get isFocused(){return(this.field.focused||document.activeElement===this.field.nativeElement)&&!(this.field.disabled||this.field.nativeElement.disabled)}get lastCharactersMessage(){const e=this.maxLength-Dc(this.field.value.toString());return e>1?`${e} ${this.charactersRemainingMessage.plural}`:`${e} ${this.charactersRemainingMessage.singular}`}get message(){return this.hasError?this.errorMessage:this.description}get isFieldInvalid(){return!(!this.field.ngControl.touched&&!this.field.ngControl.dirty||!this.field.invalid||!(!this.field.updateFirstOnBlur||this.field.updateFirstOnBlur&&this.field.ngControl.touched))}get prefixWidth(){return this.prefixElement?.nativeElement.offsetWidth||0}get textWidth(){return this.dummy.nativeElement.offsetWidth||0}set describedById(e){this._externalDescription=!0,this._describedById=e}get describedById(){return this._describedById}set thresholdAnnounce(e){this._thresholdAnnounce=Y8(e)}get thresholdAnnounce(){return this._thresholdAnnounce}set noBorder(e){this._noBorder=Ye(e)}get noBorder(){return this._noBorder}get errorMessage(){return this._errorMessage}set errorMessage(e){this._errorMessage=e}set description(e){this._description=e}get description(){return this.isTextarea&&this.hasMaxLength&&this.maxLength-Dc(this.field.value.toString())<=this.thresholdAnnounce?this.lastCharactersMessage:this._description}set edit(e){this._edit=Ye(e)}get edit(){return this._edit}set noValidate(e){this._noValidate=Ye(e)}get noValidate(){return this._noValidate}set center(e){this._center=Ye(e)}get center(){return this._center}get hasContentSuffix(){return this.contentIcon||this.contentSuffix}describedHandler(){return(this.field.active||!this.field.focused)&&!this.hasError}updateAriaLabelledByWithPrefix(){this.prefix&&(this.field.ariaLabelledby=`${this.field.controlId} ${this.prefix.id}`)}constructor(e,i,o){this._focusMonitor=e,this._formFieldService=i,this.cdr=o,this._errorShowed=!1,this.externalSuffix="",this.externalClasses=[],this.outline=!1,this.canShowVisibleFocus=!1,this.hasError=!1,this.selector="IdsFormFieldComponent",this.fieldDefined=!1,this._describedById="ids-describedby-"+ ++T1,this._externalDescription=!1,this._destroy=new re,this.label="",this._thresholdAnnounce=15,this._errorMessage="o preenchimento do campo \xe9 obrigat\xf3rio",this._description="",this._edit=!1,this._noValidate=!1,this._center=!1,this.charactersRemainingMessage={singular:"caracter restante",plural:"caracteres restantes"},this._formFieldService.classes$().subscribe(r=>{this.externalClasses=r}),this._formFieldService.suffixIcon$().subscribe(r=>{this.externalSuffix=r})}ngAfterContentInit(){if(this.isCurrency){if(this.fieldPrefix=this.mask.config?.prefix||"R$",this.mask.prefixToBeAnnounced=this.fieldPrefix.trim(),this.mask.config)return void(this.mask.config={...this.mask.config,prefix:""});this.mask.config={allowNegative:!1,decimal:",",precision:2,thousands:".",prefix:"",suffix:""}}this.fieldSetup(),this.labelSetup()}ngAfterViewInit(){this._formFieldService.sendFormFieldElement(this.formField.nativeElement)}ngAfterViewChecked(){this.fieldDefined||Promise.resolve().then(()=>{this.fieldSetup()}),this.cdr.detectChanges()}initializeField(){this.field.errorState.pipe(aP(!1),Vt(this._destroy)).subscribe(e=>{const i=this.noValidate?this.isFieldInvalid:e;"IOS"===cn.os&&i!==this._errorShowed&&(this.describedById="ids-describedby-"+ ++T1,this._errorShowed=i),this.hasError=i,this.field.handleDescribedby(this.describedById),this.noValidate||this.field.handleInvalid(this.hasError)}),this.updateAriaLabelledByWithPrefix()}activateFocusMonitor(){this._focusMonitor.monitor(this.field.nativeElement,!0).pipe(Vt(this._destroy)).subscribe(e=>this.canShowVisibleFocus="keyboard"===e||"program"===e)}labelSetup(){this.labelDirective&&(this.labelDirective.elementRef.nativeElement.setAttribute("for",this.field.controlId),this.field.labelId&&this.labelDirective.elementRef.nativeElement.setAttribute("id",this.field.labelId))}fieldSetup(){this.field&&(this.initializeField(),this.activateFocusMonitor(),this.fieldDefined=!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.field),this._destroy.complete()}}return t.\u0275fac=function(e){return new(e||t)(C(Q$),C(Xh),C(lo))},t.\u0275cmp=be({type:t,selectors:[["ids-form-field"]],contentQueries:function(e,i,o){if(1&e&&(Qe(o,Kv,5),Qe(o,Vr,7),Qe(o,E1,7),Qe(o,P1,7),Qe(o,x1,7),Qe(o,Gi,7)),2&e){let r;Z(r=Y())&&(i.mask=r.first),Z(r=Y())&&(i.field=r.first),Z(r=Y())&&(i.prefix=r.first),Z(r=Y())&&(i.labelDirective=r.first),Z(r=Y())&&(i.contentSuffix=r.first),Z(r=Y())&&(i.contentIcon=r.first)}},viewQuery:function(e,i){if(1&e&&(je(V6,7),je(j6,5),je(H6,5),je(z6,5),je(ya,5)),2&e){let o;Z(o=Y())&&(i.dummy=o.first),Z(o=Y())&&(i.suffix=o.first),Z(o=Y())&&(i.prefixElement=o.first),Z(o=Y())&&(i.formField=o.first),Z(o=Y())&&(i.formMessage=o.first)}},inputs:{describedById:[j.None,"aria-describedby","describedById"],contrast:"contrast",label:"label",size:"size",noMessage:"noMessage",thresholdAnnounce:"thresholdAnnounce",variant:"variant",noBorder:"noBorder",errorMessage:"errorMessage",description:"description",edit:"edit",noValidate:"noValidate",center:"center",charactersRemainingMessage:"charactersRemainingMessage"},standalone:!0,features:[te([{provide:Xh},{provide:Kv}]),ut],ngContentSelectors:U6,decls:23,vars:18,consts:[["formField",""],["prefix",""],["suffix",""],["dummy",""],[3,"ngClass"],[1,"ids-form-field__container"],["class","ids-form-field__label",3,"for",4,"ngIf"],[1,"ids-form-field__content"],["aria-hidden","true",1,"ids-form-field__prefix"],[1,"ids-form-field__suffix"],["variant","primary",4,"ngIf"],["class","ids-form-field__status-message",4,"ngIf"],["aria-hidden","true",1,"ids-input","ids-dummy-width"],[1,"ids-form-field__label",3,"for"],["variant","primary"],[1,"ids-form-field__status-message"],[3,"status","id","announceDescription"]],template:function(e,i){1&e&&(Ze($6),N(0,"div",4,0),Ou(2,"pxToRem"),Ou(3,"pxToRem"),N(4,"div",5),Ne(5,q6,2,3,"label",6),Oe(6),N(7,"div",7)(8,"div",8,1),ue(10),V(),Oe(11,1),N(12,"div",9,2),Oe(14,2),Ne(15,W6,2,0,"ids-icon",10)(16,J6,2,1,"ids-icon",10),V()(),Oe(17,3),Oe(18,4),V(),Ne(19,Q6,3,4,"div",11),N(20,"div",12,3),ue(22),V()()),2&e&&(function mi(t){vi(RI,U2,t,!1)}(YS(15,G6,Tu(2,11,i.textWidth),Tu(3,13,i.prefixWidth))),R("ngClass",i.classes),T(5),R("ngIf",i.label&&!i.labelDirective),T(3),Xs("visibility",i.isCurrency&&i.hasValue?"visible":"hidden"),T(2),st(" ",i.fieldPrefix," "),T(5),R("ngIf",i.edit),T(),R("ngIf",i.externalSuffix&&!i.hasContentSuffix),T(3),R("ngIf",!i.noMessage),T(3),st(" ",i.field.nativeElement.value," "))},dependencies:[Yn,ih,Zn,Ko,Gi,O1,ya,UG,$G],styles:["ids-form-field{display:block}\n"],encapsulation:2}),bn([EP(["hasValue","size","hasError","isButtonSuffix","center","hasPlaceHolder","isFocused","canShowVisibleFocus","isDisabled","isReadOnly","hasSuffix","outline","contrast","variant","hasLabel","noBorder","noMessage"]),Bt("design:type",Object),Bt("design:paramtypes",[])],t.prototype,"classes",null),bn([ti(),Bt("design:type",Object)],t.prototype,"noMessage",void 0),t})(),A1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({imports:[Zh]}),t})();const k1=(t,n)=>{let e;return null===t?`${n}`:(n&&"object"==typeof n&&(e="Object"),`${t}: ${e}`.slice(0,50))};let GG=0,ey=(()=>{class t extends Vr{get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e}controlSelect({value:e}){this.value=this.getOptionValue(e),this.value||this._renderer.setProperty(this.elementRef.nativeElement,"value",null)}controlChange(){this.formAcessorHandleChange()}controlFocus(){this.formAcessorHandleFocus()}controlBlur(){this.formAcessorHandleBlur()}constructor(e,i,o,r){super(e,i),this.ngControl=e,this.elementRef=i,this._renderer=o,this._formFieldService=r,this._compareWith=PP,this._platform=cn,this.optionMap=new Map,this.idCounter=0,this.controlId="ids-native-select-"+GG++}ngOnInit(){this._formFieldService.sendSuffixIcon("seta_baixo")}ngDoCheck(){this.ngControl&&this.ngControl.touched&&this.ngControl.invalid&&!this.active&&this.formAcessorHandleBlur()}ngAfterViewInit(){("IOS"===this._platform.os||"MacOS"===this._platform.os)&&!this.value&&this._renderer.setProperty(this.elementRef.nativeElement,"value",null)}writeValue(e){this.value=e;const i=this.getOptionId(e);null===i&&this._renderer.setProperty(this.elementRef.nativeElement,"selectedIndex",-1);const o=k1(i,e)||null;this._renderer.setProperty(this.elementRef.nativeElement,"value",o)}registerOption(){return(this.idCounter++).toString()}getOptionId(e){for(const i of Array.from(this.optionMap.keys()))if(this.compareWith(this.optionMap.get(i),e))return i;return null}getOptionValue(e){const i=this.extractId(e);return this.optionMap.has(i)?this.optionMap.get(i):e}extractId(e){return e.split(":")[0]}}return t.\u0275fac=function(e){return new(e||t)(C(On,10),C(he),C(jn),C(Xh))},t.\u0275dir=A({type:t,selectors:[["","idsNativeSelect",""]],hostVars:5,hostBindings:function(e,i){1&e&&ge("change",function(r){return i.controlSelect(r.target)})("ngModelChange",function(){return i.controlChange()})("focus",function(){return i.controlFocus()})("blur",function(){return i.controlBlur()}),2&e&&(X("id",i.controlId)("disabled",i.disabled||null)("value",i.value),Re("ids-input",!0))},inputs:{controlId:[j.None,"id","controlId"],compareWith:"compareWith"},standalone:!0,features:[te([{provide:Vr,useExisting:xe(()=>t)}]),q]}),t})(),N1=(()=>{class t{constructor(e,i,o){this.element=e,this.renderer=i,this.select=o,this.select&&(this.id=this.select.registerOption())}set ngValue(e){null!==this.select&&(this.select.optionMap.set(this.id,e),this.setElementValue(k1(this.id,e)),this.select.writeValue(this.select.value))}set value(e){this.setElementValue(e),this.select&&this.select.writeValue(this.select.value)}setElementValue(e){this.renderer.setProperty(this.element.nativeElement,"value",e)}}return t.\u0275fac=function(e){return new(e||t)(C(he),C(jn),C(ey,9))},t.\u0275dir=A({type:t,selectors:[["","idsNativeOption",""]],inputs:{ngValue:"ngValue",value:"value"},standalone:!0}),t})(),Yh=0,qG=(()=>{class t extends Vr{get arrayOption(){return this.options.toArray()}get enabledOptions(){return this.arrayOption.filter(e=>!e.disabled&&e.value)}get hightlightedDisabledOption(){return this.arrayOption.find(e=>e.highlighted)}get optionTextValue(){return null!=this.value&&void 0!==this.value&&""!==this.value&&this.options.find(e=>this.compareWith(e.value,this.value))?.optionLabel||""}get ariaActiveDescendant(){return this.hightlightedDisabledOption?this.hightlightedDisabledOption.id:this.panelOpen&&this.lastSelectedOption?this.lastSelectedOption.id:null}get eventObject(){return{source:this,value:this.value}}get listMaxHeight(){return 3*this.visibleOptions+1.5}get position(){return this._position}set position(e){this._position=e,this.positions=_1(this.position)}set required(e){this._required=Ye(e)}get required(){return this._required}set noLabel(e){this._noLabel=Ye(e)}get noLabel(){return this._noLabel}set small(e){this._small=Ye(e)}get small(){return this._small}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e}controlChange(){this.formAcessorHandleChange()}constructor(e,i,o,r,s,a,l){super(s,a),this._appRef=e,this._cdr=i,this._la=o,this._platform=r,this.ngControl=s,this.elementRef=a,this._formFieldService=l,this._compareWith=PP,this._destroy=new re,this._clearSearchString=new re,this.containerPadding=24,this.panelId=`ids-select__panel-options-${Yh}`,this.labelId=`ids-select-label-${Yh}`,this.valueId=`ids-select-value-${Yh}`,this.panelOpen=!1,this.panelPosition="bottom",this.searchString="",this.positions=[],this.controlId="ids-select-"+Yh++,this.visibleOptions=5,this._position="auto",this.change=new de,this.focusOutput=new de,this.blur=new de,this.opened=new de,this.closed=new de}ngOnInit(){this._formFieldService.sendSuffixIcon("seta_baixo")}ngAfterContentInit(){this._initializeSelection(),this._listenToControlChanges(),this._listenToOptionsChanges(),this._listenToPositionChanges(),this.positions=_1(this.position)}ngOnDestroy(){this._destroy.complete()}_announceValue(e){this._la.announce(e,"assertive",1e3)}_clearSelection(){this.lastSelectedOption&&(this.lastSelectedOption.deselect(),this.lastSelectedOption=null)}_filterAndSelectOption(e){const i=""===this.searchString&&"Space"===e.code;!/[a-zA-Z0-9-_ ]/.test(e.key)||e.key.length>1||i||(e.preventDefault(),this.searchString+=e.key,this.arrayOption.find(o=>t$(o.optionLabel??"").includes(this.searchString)&&!o.disabled)?.select(),0===this._clearSearchString.observers.length&&this._initializeSearchStringObserver(),this._clearSearchString.next())}_handleClosedKeydown(e){const i="Enter"===e.code||"NumpadEnter"===e.code||"Space"===e.code,o="ArrowUp"===e.code||"ArrowDown"===e.code,r=this.lastSelectedOption?this.enabledOptions.findIndex(s=>s.id===this.lastSelectedOption?.id):-1;if(i||e.altKey&&o)return e.preventDefault(),void this._open();if("Home"===e.code)return e.preventDefault(),this.enabledOptions[0].selectAndClose(),void this._announceValue(this.optionTextValue);if("End"===e.code)return e.preventDefault(),this.enabledOptions[this.enabledOptions.length-1].selectAndClose(),void this._announceValue(this.optionTextValue);if(("ArrowUp"===e.code||"ArrowLeft"===e.code)&&!e.altKey){e.preventDefault();const s=this.enabledOptions[r-1]||(-1===r||this.compareWith(this.enabledOptions[r].value,this.arrayOption[0].value)?null:this.arrayOption[0]);if(!s)return;return s.selectAndClose(),void this._announceValue(this.optionTextValue)}if(("ArrowDown"===e.code||"ArrowRight"===e.code)&&!e.altKey){e.preventDefault();const s=this.enabledOptions[r+1];if(!s)return;return s.selectAndClose(),void this._announceValue(this.optionTextValue)}}_handleOpenKeydown(e){const r=this._platform.SAFARI;if("Enter"===e.code||"NumpadEnter"===e.code||"Tab"===e.code||("ArrowUp"===e.code||"ArrowDown"===e.code)&&e.altKey||"Space"===e.code&&""===this.searchString){if(e.preventDefault(),this.hightlightedDisabledOption)return;return this.lastSelectedOption&&!this.compareWith(this.lastSelectedOption.value,this.value)?void this.lastSelectedOption.selectAndClose():void(this.panelOpen&&this.detach())}return"Escape"===e.code?(e.preventDefault(),void(this.panelOpen&&this.detach())):"Home"===e.code?(e.preventDefault(),this.enabledOptions[0].select(),void(r&&this._announceValue(this.optionTextValue))):"End"===e.code?(e.preventDefault(),this.enabledOptions[this.enabledOptions.length-1].select(),void(r&&this._announceValue(this.optionTextValue))):"ArrowUp"!==e.code||e.altKey?"ArrowDown"!==e.code||e.altKey?void this._filterAndSelectOption(e):(e.preventDefault(),this._setSelectedOptionByIndex(1),void(r&&this._announceValue(this.optionTextValue))):(e.preventDefault(),this._setSelectedOptionByIndex(-1),void(r&&this._announceValue(this.optionTextValue)))}_initializeSearchStringObserver(){this._clearSearchString.pipe(function lP(t,n=rv){return Ct((e,i)=>{let o=null,r=null,s=null;const a=()=>{if(o){o.unsubscribe(),o=null;const c=r;r=null,i.next(c)}};function l(){const c=s+t,d=n.now();if(d<c)return o=this.schedule(void 0,c-d),void i.add(o);a()}e.subscribe(tt(i,c=>{r=c,s=n.now(),o||(o=n.schedule(l,t),i.add(o))},()=>{a(),i.complete()},void 0,()=>{r=o=null}))})}(1e3),Vt(this._destroy)).subscribe(()=>{this.searchString=""})}_initializeSelection(){const e=this.ngControl?this.ngControl.value:this.value,i=this.enabledOptions.find(o=>this.compareWith(o.value,e));i?setTimeout(()=>{i.select()}):e&&(this._setControlValue(null),this._clearSelection())}_open(){const e=this.elementRef.nativeElement.parentElement?.parentElement?.offsetWidth||this.elementRef.nativeElement.offsetWidth;this.panelOpen=!0,this.selectWidth=e,this.arrayOption.length>0&&!this.lastSelectedOption&&this.arrayOption[0].select(),this.value&&this.lastSelectedOption&&!this.compareWith(this.value,this.lastSelectedOption.value)&&(this.hightlightedDisabledOption&&this.hightlightedDisabledOption.unhighlight(),this.arrayOption.find(i=>this.compareWith(this.value,i.value))?.select()),this.opened.emit(this.eventObject)}_listenToControlChanges(){this.ngControl&&this.ngControl.valueChanges?.pipe(Vt(this._destroy)).subscribe(e=>{if(e&&(!this.lastSelectedOption||!this.compareWith(this.lastSelectedOption.value,e)))return this._appRef.tick(),void this._initializeSelection();!this.value&&this.lastSelectedOption&&this._clearSelection()})}_listenToOptionsChanges(){this.options.changes.pipe(Vt(this._destroy),aP(this.options),ra(()=>lh(...this.options.map(e=>e.change)))).subscribe(e=>{this._setSelectedOption(e)})}_listenToPositionChanges(){this.overlayDir.positionChange.pipe(Vt(this._destroy)).subscribe(e=>{const i="bottom"===e.connectionPair.originY?"bottom":"top";i!==this.panelPosition&&(this.panelPosition=i,this._cdr.detectChanges())})}_setControlValue(e){this.value=e,this.nativeElement.value=e}_setSelectedOption(e){const i=e.option,o=e.close||!1;if(this.lastSelectedOption&&!this.compareWith(this.lastSelectedOption.value,i.value)&&this.lastSelectedOption.deselect(),this.lastSelectedOption=i,o)return this.compareWith(i.value,this.value)||(this._setControlValue(i.value),this.change.emit(this.eventObject)),!this.value&&this.lastSelectedOption&&this._clearSelection(),void(this.panelOpen&&this.detach());this.panel?this._setScrollPosition(i):this.overlayDir.positionChange.pipe(ca(1)).subscribe(()=>this._setScrollPosition(i))}_setScrollPosition(e){const o=e.element.nativeElement,r=o.offsetTop-this.panel.nativeElement.scrollTop;r/o.offsetHeight>=this.visibleOptions?o.scrollIntoView(!1):r<0&&o.scrollIntoView()}_setSelectedOptionByIndex(e=1){const i=this.lastSelectedOption||this.hightlightedDisabledOption?this.arrayOption.findIndex(r=>r.highlighted||r.selected):-1,o=this.arrayOption[i+e];if(o){if(o.disabled)return o.highlight(),this.lastSelectedOption?.deselect(),this._clearSelection(),void this._setScrollPosition(o);this.hightlightedDisabledOption&&this.hightlightedDisabledOption.unhighlight(),o.select()}}attach(){this.overlayDir.positionChange.pipe(ca(1)).subscribe(()=>{this.lastSelectedOption&&this._setScrollPosition(this.lastSelectedOption)})}detach(){this.panelOpen=!1,this.select.nativeElement.focus(),this.closed.emit(this.eventObject)}handleKeydown(e){if(!this.disabled){if(this.panelOpen)return void this._handleOpenKeydown(e);this._handleClosedKeydown(e)}}onBlur(){this.formAcessorHandleBlur(),this.blur.emit(this.eventObject)}onFocus(){this.formAcessorHandleFocus(),this.focusOutput.emit(this.eventObject)}toggle(){if(!this.disabled){if(this.panelOpen)return void this.detach();this._open()}}}return t.\u0275fac=function(e){return new(e||t)(C(Ui),C(lo),C(Lr),C(fo),C(On,10),C(he),C(Xh))},t.\u0275cmp=be({type:t,selectors:[["ids-select"]],contentQueries:function(e,i,o){if(1&e&&Qe(o,v1,5),2&e){let r;Z(r=Y())&&(i.options=r)}},viewQuery:function(e,i){if(1&e&&(je(X6,7),je(t1,7),je(u6,5)),2&e){let o;Z(o=Y())&&(i.select=o.first),Z(o=Y())&&(i.overlayDir=o.first),Z(o=Y())&&(i.panel=o.first)}},hostVars:3,hostBindings:function(e,i){1&e&&ge("ngModelChange",function(){return i.controlChange()}),2&e&&X("id",null)("aria-labelledby",null)("aria-label",null)},inputs:{controlId:[j.None,"id","controlId"],visibleOptions:"visibleOptions",position:"position",required:"required",noLabel:"noLabel",small:"small",compareWith:"compareWith"},outputs:{change:"change",focusOutput:"focus",blur:"blur",opened:"opened",closed:"closed"},standalone:!0,features:[te([{provide:Vr,useExisting:xe(()=>t)}]),q,ut],ngContentSelectors:f6,decls:5,vars:22,consts:[["select","","origin","cdkOverlayOrigin"],["panel",""],["cdkOverlayOrigin","","role","combobox","aria-haspopup","listbox",1,"ids-input",3,"click","keydown","focus","blur","id","tabindex"],["cdkConnectedOverlay","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop","cdkConnectedOverlayPanelClass","ids-listbox-wrapper",3,"backdropClick","attach","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],["role","listbox","tabindex","-1",1,"ids-listbox",3,"keydown","id"]],template:function(e,i){if(1&e){const o=qt();Ze(h6),N(0,"div",2,0),ge("click",function(){return He(o),ze(i.toggle())})("keydown",function(s){return He(o),ze(i.handleKeydown(s))})("focus",function(){return He(o),ze(i.onFocus())})("blur",function(){return He(o),ze(i.onBlur())}),ue(3),V(),Ne(4,K6,3,7,"ng-template",3),ge("backdropClick",function(){return He(o),ze(i.detach())})("attach",function(){return He(o),ze(i.attach())})}if(2&e){const o=function OS(t){return ms(function vA(){return ie.lFrame.contextLView}(),ae+t)}(2);Re("ids-input--disabled",i.disabled)("ids-input--center",i.noLabel)("ids-input--small",i.small),R("id",i.controlId)("tabindex",i.disabled&&!i.value?"-1":"0"),X("aria-disabled",i.disabled||null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel)("aria-describedby",i.controlDescribedBy)("aria-labelledby",i.ariaLabel?null:i.ariaLabelledby||i.labelId)("aria-invalid",i.controlAriaInvalid)("aria-activedescendant",i.ariaActiveDescendant)("aria-controls",i.panelId)("aria-required",i.required),T(3),st(" ",i.optionTextValue,"\n"),T(),R("cdkConnectedOverlayOrigin",o)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i.positions)("cdkConnectedOverlayWidth",i.selectWidth)}},dependencies:[FU,t1,Pc,Ko,Xv],encapsulation:2}),t})(),R1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({imports:[qG,Xv]}),t})(),JG=(()=>{class t{constructor(){this._formSelectionGroupLegendClass=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=A({type:t,selectors:[["legend"]],hostVars:2,hostBindings:function(e,i){2&e&&Re("ids-form-selection-legend",i._formSelectionGroupLegendClass)},standalone:!0}),t})(),ty=(()=>{class t{constructor(e){this._cdr=e,this._destroy=new re,this.COMPONENT_NOT_FOUND='IdsComponents: N\xe3o foi poss\xedvel encontrar a diretiva idsCheckbox ou idsRadioButton, nem o input type="checkbox" ou type="radio" dentro do ids-form-selection.',this.ariaHidden="IOS"!==cn.os}ngOnInit(){this.input&&(this.input.contrast=this.contrast)}ngAfterContentInit(){if(!this.input)throw new Error(this.COMPONENT_NOT_FOUND)}ngAfterViewInit(){this.formSelectionLabel.nativeElement.getElementsByTagName("a").length&&(this.ariaHidden=null,this.formSelectionLabel.nativeElement.style.position="relative",this._cdr.detectChanges())}ngOnDestroy(){this._destroy.complete()}}return t.\u0275fac=function(e){return new(e||t)(C(lo))},t.\u0275cmp=be({type:t,selectors:[["ids-form-selection"]],contentQueries:function(e,i,o){if(1&e&&(Qe(o,jr,7),Qe(o,ya,4)),2&e){let r;Z(r=Y())&&(i.input=r.first),Z(r=Y())&&(i.status=r)}},viewQuery:function(e,i){if(1&e&&je(oG,5),2&e){let o;Z(o=Y())&&(i.formSelectionLabel=o.first)}},inputs:{contrast:"contrast"},standalone:!0,features:[ut],ngContentSelectors:sG,decls:10,vars:15,consts:[["inputRef",""],["formSelectionLabel",""],[1,"ids-form-selection"],[1,"ids-form-selection__input"],["aria-hidden","true"],[1,"ids-form-selection__label",3,"for","id"]],template:function(e,i){1&e&&(Ze(rG),N(0,"div",2)(1,"div",3,0)(3,"span"),Oe(4),mn(5,"i",4),V()(),N(6,"label",5,1),Oe(8,1),V()(),Oe(9,2)),2&e&&(Re("ids-form-selection--on-brand","onBrand"===i.contrast||"onBrand"===i.input.contrast)("ids-form-selection--disabled",i.input.disabled||i.input.elementRef.nativeElement.disabled)("ids-form-selection--invalid",i.input.ariaInvalid||"true"===i.input.elementRef.nativeElement.getAttribute("aria-invalid"))("ids-form-selection--rtl",i.input.rtlDirection),T(3),Ks(i.input.rootClasses),T(2),Ks(i.input.iconClasses),T(),R("for",i.input.id)("id",i.input.id+"-label"),X("aria-hidden",i.ariaHidden))},dependencies:[Yn],encapsulation:2}),t})(),QG=0,F1=(()=>{class t{constructor(){this.id="ids-selection-group-"+ ++QG,this._hostId=null,this._inline=!1,this.legend=""}set inline(e){this._inline=Ye(e)}get inline(){return this._inline}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["ids-form-selection-group"]],contentQueries:function(e,i,o){if(1&e&&(Qe(o,ty,4),Qe(o,ya,4)),2&e){let r;Z(r=Y())&&(i.options=r),Z(r=Y())&&(i.status=r)}},hostVars:1,hostBindings:function(e,i){2&e&&X("id",i._hostId)},inputs:{id:"id",inline:"inline",legend:"legend"},standalone:!0,features:[ut],ngContentSelectors:lG,decls:5,vars:4,consts:[[1,"ids-form-selection-group",3,"id"],[4,"ngIf"],[1,"ids-form-selection-group__options"]],template:function(e,i){1&e&&(Ze(aG),N(0,"fieldset",0),Ne(1,cG,2,1,"legend",1),Oe(2),N(3,"div",2),Oe(4,1),V()()),2&e&&(Re("ids-form-selection-group--inline",i.inline),R("id",i.id),T(),R("ngIf",i.legend))},dependencies:[Yn,Zn],styles:[".ids-form-selection-group[_ngcontent-%COMP%]{display:grid;grid-gap:var(--ids_size_general_8x);gap:var(--ids_size_general_8x)}.ids-form-selection-group__options[_ngcontent-%COMP%]{display:grid}.ids-form-selection-group--inline[_ngcontent-%COMP%]   .ids-form-selection-group__options[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:0 var(--ids_size_general_24x);width:100%}"]}),t})(),XG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({imports:[F1]}),t})(),KG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({imports:[ty]}),t})(),ny=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({}),t})(),ZG=0,L1=(()=>{class t extends jr{constructor(){super(...arguments),this._id="ids-radio-button-"+ ++ZG,this.inputClasses="ids-radio-button__input",this.type="radio"}get rootClasses(){return{"ids-radio-button":!0,"ids-radio-button--invalid":this.invalid}}get iconClasses(){return"ids-radio-button__icon ids-icon ids-icon--medium"}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=we(t)))(i||t)}})(),t.\u0275dir=A({type:t,selectors:[["","idsRadioButton",""]],hostVars:5,hostBindings:function(e,i){2&e&&(Su("type",i.type),X("type","radio")("class",i.inputClasses),Re("ids-radio-button__input",!0))},standalone:!0,features:[te([{provide:jr,useExisting:t}]),q]}),t})(),a7=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=be({type:t,selectors:[["ids-radio-button"]],standalone:!0,features:[ut],ngContentSelectors:Jt,decls:3,vars:0,consts:[[1,"ids-radio-button"],["aria-hidden","true",1,"ids-radio-button__icon","ids-icon"]],template:function(e,i){1&e&&(Ze(),N(0,"span",0),Oe(1),mn(2,"span",1),V())},encapsulation:2}),t})(),l7=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({imports:[a7]}),t})();new k("SegmentTypeDefault");new k("SegmentTypeConfig"),new k("ElementToApplySegmentDefault"),new k("ElementToApplySegmentConfig");new k("SegmentColorModeConfig"),new Wa,new Wa;const v7=["titleRef"];function y7(t,n){if(1&t){const e=qt();N(0,"div",2)(1,"div",3)(2,"h4",4,0),ue(4),V(),N(5,"button",5),ge("click",function(){return He(e),ze(H().onClose())}),ue(6),V()()()}if(2&t){const e=H();T(4),Pn(e.title),T(2),st(" ",e.textButton," ")}}let G1=(()=>{class t{constructor(){this.title="Seus dados foram recebidos e ser\xe3o processados.",this.textButton="Ok, entendi",this.showChange=new de}onClose(){this.showChange.emit({show:!1,type:"success"})}onFocus(){setTimeout(()=>{this.titleRef.nativeElement.focus()})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=be({type:t,selectors:[["app-success"]],viewQuery:function(i,o){if(1&i&&je(v7,5),2&i){let r;Z(r=Y())&&(o.titleRef=r.first)}},inputs:{show:"show",title:"title",textButton:"textButton"},outputs:{showChange:"showChange"},decls:1,vars:1,consts:[["titleRef",""],["class","container",4,"ngIf"],[1,"container"],[1,"box"],["tabindex","-1",1,"ids-title","-small","-bold","title"],["idsMainButton","",3,"click"]],template:function(i,o){1&i&&Ne(0,y7,7,2,"div",1),2&i&&R("ngIf",o.show)},dependencies:[Zn,Yv],styles:['@font-face{font-family:ItauDisplay-Light;font-style:normal;font-weight:300;src:url(itaudisplay_lt-webfont.eot),url(itaudisplay_lt-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_lt-webfont.woff2) format("woff2"),url(itaudisplay_lt-webfont.woff) format("woff"),url(itaudisplay_lt-webfont.ttf) format("truetype"),url(itaudisplay_lt-webfont.svg#itau_displaylight) format("svg")}@font-face{font-family:ItauDisplay-Regular;font-style:normal;font-weight:400;src:url(itaudisplay_rg-webfont.eot),url(itaudisplay_rg-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_rg-webfont.woff2) format("woff2"),url(itaudisplay_rg-webfont.woff) format("woff"),url(itaudisplay_rg-webfont.ttf) format("truetype"),url(itaudisplay_rg-webfont.svg#itau_displayregular) format("svg")}@font-face{font-family:ItauDisplay-Bold;font-style:normal;font-weight:700;src:url(itaudisplay_bd-webfont.eot),url(itaudisplay_bd-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_bd-webfont.woff2) format("woff2"),url(itaudisplay_bd-webfont.woff) format("woff"),url(itaudisplay_bd-webfont.ttf) format("truetype"),url(itaudisplay_bd-webfont.svg#itau_displaybold) format("svg")}@font-face{font-family:ItauDisplay-XBold;font-style:normal;font-weight:800;src:url(itaudisplay_xbd-webfont.eot),url(itaudisplay_xbd-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_xbd-webfont.woff2) format("woff2"),url(itaudisplay_xbd-webfont.woff) format("woff"),url(itaudisplay_xbd-webfont.ttf) format("truetype"),url(itaudisplay_xbd-webfont.svg#itau_displayxbold) format("svg")}@font-face{font-family:itau-font;font-style:normal;font-weight:900;src:url(itaudisplay_blk-webfont.eot),url(itaudisplay_blk-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_blk-webfont.woff2) format("woff2"),url(itaudisplay_blk-webfont.woff) format("woff"),url(itaudisplay_blk-webfont.ttf) format("truetype"),url(itaudisplay_blk-webfont.svg#itau_displayblack) format("svg")}@font-face{font-family:ItauText-Light;font-style:normal;font-weight:300;src:url(ItauText_Lt.eot),url(ItauText_Lt.eot?#iefix) format("embedded-opentype"),url(ItauText_Lt.woff2) format("woff2"),url(ItauText_Lt.woff) format("woff"),url(ItauText_Lt.ttf) format("truetype")}@font-face{font-family:ItauText-Regular;font-style:normal;font-weight:500;src:url(ItauText_Rg.eot),url(ItauText_Rg.eot?#iefix) format("embedded-opentype"),url(ItauText_Rg.woff2) format("woff2"),url(ItauText_Rg.woff) format("woff"),url(ItauText_Rg.ttf) format("truetype")}@font-face{font-family:ItauText-Bold;font-style:normal;font-weight:800;src:url(ItauText_Bd.eot),url(ItauText_Bd.eot?#iefix) format("embedded-opentype"),url(ItauText_Bd.woff2) format("woff2"),url(ItauText_Bd.woff) format("woff"),url(ItauText_Bd.ttf) format("truetype")}@font-face{font-family:ItauText-XBold;font-style:normal;font-weight:900;src:url(ItauText_XBd.eot),url(ItauText_XBd.eot?#iefix) format("embedded-opentype"),url(ItauText_XBd.woff2) format("woff2"),url(ItauText_XBd.woff) format("woff"),url(ItauText_XBd.ttf) format("truetype")}[_ngcontent-%COMP%]:root{--faas-primary-color: #ec7000;--faas-secondary-color: #dd6100;--faas-error-color: #781b8e;--faas-focus: #56504c;--faas-font-light: ItauDisplay-Light, sans-serif;--faas-font-regular: ItauText-Regular, sans-serif;--faas-font-bold: ItauText-Bold, sans-serif;--faas-font-xbold: ItauText-XBold, sans-serif}*[_ngcontent-%COMP%]{box-sizing:border-box;font:var(--ids_textStyle_f02_s16_h24_wrg, --faas-font-regular, "ItauText-Regular", sans-serif)}body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{margin:0;padding:0;scroll-behavior:smooth}fieldset[_ngcontent-%COMP%]{border:0;padding:0}.title[_ngcontent-%COMP%]{margin:0;max-width:493px}@media screen and (max-width: 768px){.title[_ngcontent-%COMP%]{font-size:24px}}.text-interface[_ngcontent-%COMP%]{font-family:var(--faas-font-regular, "ItauText-Regular", sans-serif);font-style:normal;font-weight:400;font-size:16px;line-height:150%;color:#595959}.btn-primary[_ngcontent-%COMP%]{cursor:pointer;font-family:var(--faas-font-bold, "ItauText-Bold", sans-serif);background-color:var(--faas-primary-color, #ec7000);border-radius:4px;border:1px solid var(--faas-secondary-color, #dd6100);height:48px;font-weight:700;color:#fff;font-size:20px;line-height:32px;width:398px}@media screen and (max-width: 768px){.btn-primary[_ngcontent-%COMP%]{width:259.5px}}@media screen and (max-width: 480px){.btn-primary[_ngcontent-%COMP%]{width:100%;font-size:16px}}@media screen and (max-width: 320px){.btn-primary[_ngcontent-%COMP%]{width:288px}}.btn-danger[_ngcontent-%COMP%]{cursor:pointer;background-color:#fff;border-radius:4px;border:1px solid #106eb0;height:30px;width:120px;font-family:var(--faas-font-bold, "ItauText-Bold", sans-serif);color:#106eb0;font-size:14px;line-height:24px}.invalid-feedback[_ngcontent-%COMP%]{color:var(--faas-error-color, #781b8e);font-size:12px;line-height:18px;margin:0}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=date][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=date][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}.uniclass[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #ec7000);border:1px solid var(--faas-secondary-color, #D9640B)}.family-office[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, "");border:1px solid var(--faas-secondary-color, "")}.cartoes[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .varejo[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .private-bank[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .empresas[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #ec7000);border:1px solid var(--faas-secondary-color, #dd6100)}.personnalite-rebranding[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #0d1733);border:1px solid var(--faas-secondary-color, #122047)}.container[_ngcontent-%COMP%]{background-color:var(--ids_color_bg_base);position:absolute;width:100%;height:96%;left:0;top:15px;display:flex;align-items:center;justify-content:center;flex-direction:column}@media screen and (max-width: 480px){.container[_ngcontent-%COMP%]{position:fixed;height:100%;top:0}}.box[_ngcontent-%COMP%]{width:276px;display:flex;align-items:center;justify-content:center;flex-direction:column}.box[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:208px}.title[_ngcontent-%COMP%]{text-align:center;margin-bottom:20px}']})}}return t})(),q1=(()=>{class t{constructor(e){this.handlers=e}getSdk(e){return ct(function*(){const i=document.createElement("script");return new Promise((o,r)=>{i.src=e,i.async=!0,i.onload=()=>o(window.SDKAnalytics),i.onerror=r,document.head.appendChild(i)})})()}initSdk(){var e=this;return ct(function*(){const i=e.getGtm();return e.SDKAnalytics=e.getSdk("https://sdk-analytics-web.cloud.itau.com.br/index.js").then(o=>{e.ItauDigitalAnalytics=o({gtm:i,dual_tagging:!1})}),e.SDKAnalytics})()}getGtm(){return window._containerGTM||"GTM-5NGCP8C"}formatPageName(){let e=document.location.pathname;return e.endsWith("/")&&(e=e.slice(0,-1)),e}screenView(){let e=this.formatPageName();this.ItauDigitalAnalytics.track({analytics:{event_name:"screen_view",parameters:{custom_path:`${this.handlers.skewerCase(e,!1)}`,implementation_team:"sinl:martech"}}})}trackEvent(e){const{eventName:i,action:o,text:r,type:s}=e,a=s?`${s}:`:"",l=this.handlers.skewerCase(o,!1),c=this.handlers.skewerCase(r,!1);let d=this.formatPageName();this.ItauDigitalAnalytics.track({analytics:{event_name:`${i}`,parameters:{detail:`${a}${l}:${c}`,custom_path:`${this.handlers.skewerCase(d,!1)}`,implementation_team:"sinl:martech"}}})}static{this.\u0275fac=function(i){return new(i||t)(O(oP))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const b7=["titleRef"],C7=t=>({container:t});function M7(t,n){if(1&t){const e=qt();N(0,"div",2)(1,"div",3)(2,"div",4),Tp(),N(3,"svg",5),mn(4,"path",6),V(),Ap(),N(5,"h4",7,0),ue(7),V(),N(8,"p",8),ue(9),V(),N(10,"button",9),ge("click",function(){return He(e),ze(H().onClose())}),ue(11),V()()()()}if(2&t){const e=H();R("ngClass",Nm(4,C7,!e.isMultiStep)),T(7),Pn(e.title),T(2),Pn(e.description),T(2),st(" ",e.textButton," ")}}let W1=(()=>{class t{constructor(e){this.analyticsService=e,this.title="Algo deu errado",this.description="N\xe3o foi poss\xedvel carregar as informa\xe7\xf5es.",this.textButton="Ok, entendi",this.campaignName="",this.isMultiStep=!1,this.showChange=new de}onClose(){this.showChange.emit({show:!1,type:"error"}),this.analyticsService.trackEvent({eventName:"click",action:`Faas:${this.campaignName}`,type:"btn",text:`${this.textButton}`})}onFocus(){setTimeout(()=>{this.titleRef.nativeElement.focus()})}static{this.\u0275fac=function(i){return new(i||t)(C(q1))}}static{this.\u0275cmp=be({type:t,selectors:[["app-error"]],viewQuery:function(i,o){if(1&i&&je(b7,5),2&i){let r;Z(r=Y())&&(o.titleRef=r.first)}},inputs:{show:"show",title:"title",description:"description",textButton:"textButton",campaignName:"campaignName",isMultiStep:"isMultiStep"},outputs:{showChange:"showChange"},decls:1,vars:1,consts:[["titleRef",""],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[1,"box"],[1,"container-error"],["width","21","height","20","viewBox","0 0 21 20","fill","none","xmlns","http://www.w3.org/2000/svg","aria-hidden","true",1,"error-alert-svg-icon"],["d","M10.5 1.97729C10.5781 1.97729 10.7031 2.00854 10.875 2.07104C11.0625 2.11792 11.2188 2.25073 11.3438 2.46948L19.2656 16.321C19.3438 16.4617 19.3984 16.6101 19.4297 16.7664C19.4766 16.9226 19.5 17.0789 19.5 17.2351C19.5 17.3914 19.4766 17.5398 19.4297 17.6804C19.3984 17.821 19.3438 17.9617 19.2656 18.1023C19.1875 18.2273 19.0938 18.3445 18.9844 18.4539C18.875 18.5632 18.7578 18.657 18.6328 18.7351C18.4922 18.8132 18.3438 18.8757 18.1875 18.9226C18.0469 18.9539 17.8906 18.9695 17.7188 18.9695H3.28125C3.10938 18.9695 2.94531 18.9539 2.78906 18.9226C2.64844 18.8757 2.50781 18.8132 2.36719 18.7351C2.24219 18.657 2.125 18.5632 2.01562 18.4539C1.90625 18.3445 1.8125 18.2273 1.73438 18.1023C1.65625 17.9617 1.59375 17.821 1.54688 17.6804C1.51562 17.5398 1.5 17.3914 1.5 17.2351C1.5 17.0789 1.51562 16.9226 1.54688 16.7664C1.59375 16.6101 1.65625 16.4617 1.73438 16.321L9.65625 2.46948C9.78125 2.25073 9.92969 2.11792 10.1016 2.07104C10.2891 2.00854 10.4219 1.97729 10.5 1.97729ZM10.5 0.969482C10.1719 0.969482 9.85156 1.05542 9.53906 1.22729C9.22656 1.38354 8.97656 1.63354 8.78906 1.97729L0.867188 15.8289C0.335938 16.7507 0.335938 17.6726 0.867188 18.5945C1.41406 19.5164 2.21875 19.9773 3.28125 19.9773H17.7188C18.7812 19.9773 19.5781 19.5164 20.1094 18.5945C20.6562 17.6726 20.6641 16.7507 20.1328 15.8289L12.2109 1.97729C12.0234 1.63354 11.7734 1.38354 11.4609 1.22729C11.1484 1.05542 10.8281 0.969482 10.5 0.969482ZM10.0078 7.97729H10.9922V13.9773H10.0078V7.97729ZM11.25 15.7351C11.25 15.9382 11.1719 16.1179 11.0156 16.2742C10.875 16.4148 10.7031 16.4851 10.5 16.4851C10.2969 16.4851 10.1172 16.4148 9.96094 16.2742C9.82031 16.1179 9.75 15.9382 9.75 15.7351C9.75 15.5164 9.82031 15.3367 9.96094 15.196C10.1172 15.0554 10.2969 14.9851 10.5 14.9851C10.7031 14.9851 10.875 15.0554 11.0156 15.196C11.1719 15.3367 11.25 15.5164 11.25 15.7351Z","fill","#B71C1C",2,"fill","var(--ids_color_feedback_error)"],["tabindex","-1",1,"title","ids-title","-small"],[1,"description","ids-body-text"],["idsContextualButton","",1,"btn-danger",3,"click"]],template:function(i,o){1&i&&Ne(0,M7,12,6,"div",1),2&i&&R("ngIf",o.show)},dependencies:[ih,Zn,C1],styles:['@font-face{font-family:ItauDisplay-Light;font-style:normal;font-weight:300;src:url(itaudisplay_lt-webfont.eot),url(itaudisplay_lt-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_lt-webfont.woff2) format("woff2"),url(itaudisplay_lt-webfont.woff) format("woff"),url(itaudisplay_lt-webfont.ttf) format("truetype"),url(itaudisplay_lt-webfont.svg#itau_displaylight) format("svg")}@font-face{font-family:ItauDisplay-Regular;font-style:normal;font-weight:400;src:url(itaudisplay_rg-webfont.eot),url(itaudisplay_rg-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_rg-webfont.woff2) format("woff2"),url(itaudisplay_rg-webfont.woff) format("woff"),url(itaudisplay_rg-webfont.ttf) format("truetype"),url(itaudisplay_rg-webfont.svg#itau_displayregular) format("svg")}@font-face{font-family:ItauDisplay-Bold;font-style:normal;font-weight:700;src:url(itaudisplay_bd-webfont.eot),url(itaudisplay_bd-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_bd-webfont.woff2) format("woff2"),url(itaudisplay_bd-webfont.woff) format("woff"),url(itaudisplay_bd-webfont.ttf) format("truetype"),url(itaudisplay_bd-webfont.svg#itau_displaybold) format("svg")}@font-face{font-family:ItauDisplay-XBold;font-style:normal;font-weight:800;src:url(itaudisplay_xbd-webfont.eot),url(itaudisplay_xbd-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_xbd-webfont.woff2) format("woff2"),url(itaudisplay_xbd-webfont.woff) format("woff"),url(itaudisplay_xbd-webfont.ttf) format("truetype"),url(itaudisplay_xbd-webfont.svg#itau_displayxbold) format("svg")}@font-face{font-family:itau-font;font-style:normal;font-weight:900;src:url(itaudisplay_blk-webfont.eot),url(itaudisplay_blk-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_blk-webfont.woff2) format("woff2"),url(itaudisplay_blk-webfont.woff) format("woff"),url(itaudisplay_blk-webfont.ttf) format("truetype"),url(itaudisplay_blk-webfont.svg#itau_displayblack) format("svg")}@font-face{font-family:ItauText-Light;font-style:normal;font-weight:300;src:url(ItauText_Lt.eot),url(ItauText_Lt.eot?#iefix) format("embedded-opentype"),url(ItauText_Lt.woff2) format("woff2"),url(ItauText_Lt.woff) format("woff"),url(ItauText_Lt.ttf) format("truetype")}@font-face{font-family:ItauText-Regular;font-style:normal;font-weight:500;src:url(ItauText_Rg.eot),url(ItauText_Rg.eot?#iefix) format("embedded-opentype"),url(ItauText_Rg.woff2) format("woff2"),url(ItauText_Rg.woff) format("woff"),url(ItauText_Rg.ttf) format("truetype")}@font-face{font-family:ItauText-Bold;font-style:normal;font-weight:800;src:url(ItauText_Bd.eot),url(ItauText_Bd.eot?#iefix) format("embedded-opentype"),url(ItauText_Bd.woff2) format("woff2"),url(ItauText_Bd.woff) format("woff"),url(ItauText_Bd.ttf) format("truetype")}@font-face{font-family:ItauText-XBold;font-style:normal;font-weight:900;src:url(ItauText_XBd.eot),url(ItauText_XBd.eot?#iefix) format("embedded-opentype"),url(ItauText_XBd.woff2) format("woff2"),url(ItauText_XBd.woff) format("woff"),url(ItauText_XBd.ttf) format("truetype")}[_ngcontent-%COMP%]:root{--faas-primary-color: #ec7000;--faas-secondary-color: #dd6100;--faas-error-color: #781b8e;--faas-focus: #56504c;--faas-font-light: ItauDisplay-Light, sans-serif;--faas-font-regular: ItauText-Regular, sans-serif;--faas-font-bold: ItauText-Bold, sans-serif;--faas-font-xbold: ItauText-XBold, sans-serif}*[_ngcontent-%COMP%]{box-sizing:border-box;font:var(--ids_textStyle_f02_s16_h24_wrg, --faas-font-regular, "ItauText-Regular", sans-serif)}body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{margin:0;padding:0;scroll-behavior:smooth}fieldset[_ngcontent-%COMP%]{border:0;padding:0}.title[_ngcontent-%COMP%]{margin:0;max-width:493px}@media screen and (max-width: 768px){.title[_ngcontent-%COMP%]{font-size:24px}}.text-interface[_ngcontent-%COMP%]{font-family:var(--faas-font-regular, "ItauText-Regular", sans-serif);font-style:normal;font-weight:400;font-size:16px;line-height:150%;color:#595959}.btn-primary[_ngcontent-%COMP%]{cursor:pointer;font-family:var(--faas-font-bold, "ItauText-Bold", sans-serif);background-color:var(--faas-primary-color, #ec7000);border-radius:4px;border:1px solid var(--faas-secondary-color, #dd6100);height:48px;font-weight:700;color:#fff;font-size:20px;line-height:32px;width:398px}@media screen and (max-width: 768px){.btn-primary[_ngcontent-%COMP%]{width:259.5px}}@media screen and (max-width: 480px){.btn-primary[_ngcontent-%COMP%]{width:100%;font-size:16px}}@media screen and (max-width: 320px){.btn-primary[_ngcontent-%COMP%]{width:288px}}.btn-danger[_ngcontent-%COMP%]{cursor:pointer;background-color:#fff;border-radius:4px;border:1px solid #106eb0;height:30px;width:120px;font-family:var(--faas-font-bold, "ItauText-Bold", sans-serif);color:#106eb0;font-size:14px;line-height:24px}.invalid-feedback[_ngcontent-%COMP%]{color:var(--faas-error-color, #781b8e);font-size:12px;line-height:18px;margin:0}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=date][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=date][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}.uniclass[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #ec7000);border:1px solid var(--faas-secondary-color, #D9640B)}.family-office[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, "");border:1px solid var(--faas-secondary-color, "")}.cartoes[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .varejo[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .private-bank[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .empresas[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #ec7000);border:1px solid var(--faas-secondary-color, #dd6100)}.personnalite-rebranding[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #0d1733);border:1px solid var(--faas-secondary-color, #122047)}.container[_ngcontent-%COMP%]{background-color:var(--ids_color_bg_base);position:absolute;width:100%;height:96%;left:0;top:15px;display:flex;align-items:center;justify-content:center;flex-direction:column}@media screen and (max-width: 480px){.container[_ngcontent-%COMP%]{position:fixed;height:100%;top:0}}.box[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;width:240px}.box[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:center;flex-direction:column}.box[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:14px;line-height:24px}.box[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .box[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:32px;height:32px}.description[_ngcontent-%COMP%]{margin-bottom:30px}.title[_ngcontent-%COMP%]{margin:16px 0 0}.title[_ngcontent-%COMP%]:focus-visible{outline:none}']})}}return t})();function ef(t){return ef="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ef(t)}function tf(t,n){if(n.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+n.length+" present")}function iy(t){tf(1,arguments);var n=Object.prototype.toString.call(t);return t instanceof Date||"object"===ef(t)&&"[object Date]"===n?new Date(t.getTime()):"number"==typeof t||"[object Number]"===n?new Date(t):(("string"==typeof t||"[object String]"===n)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Zo(t){return t.replace(/\D/g,"")}function Q1(t){return t.charCodeAt(0)-48}function Mi(t){return String(t).replace(/[^\d]/g,"")}var at={AC:{code:"2",areaCodes:[68],ieLength:13,name:"Acre"},AL:{code:"4",areaCodes:[82],ieLength:9,name:"Alagoas"},AP:{code:"2",areaCodes:[96],ieLength:9,name:"Amap\xe1"},AM:{code:"2",areaCodes:[92,97],ieLength:9,name:"Amazonas"},BA:{code:"5",areaCodes:[71,73,74,75,77],ieLength:[8,9],name:"Bahia"},CE:{code:"3",areaCodes:[85,88],ieLength:9,name:"Cear\xe1"},DF:{code:"1",areaCodes:[61],ieLength:13,name:"Distrito Federal"},ES:{code:"7",areaCodes:[27,28],ieLength:9,name:"Esp\xedrito Santo"},GO:{code:"1",areaCodes:[62,64],ieLength:9,name:"Goi\xe1s"},MA:{code:"3",areaCodes:[98,99],ieLength:9,name:"Maranh\xe3o"},MG:{code:"6",areaCodes:[31,32,33,34,35,37,38],ieLength:13,name:"Minas Gerais"},MT:{code:"1",areaCodes:[65,66],ieLength:11,name:"Mato Grosso"},MS:{code:"1",areaCodes:[67],ieLength:9,name:"Mato Grosso do Sul"},PA:{code:"2",areaCodes:[91,93,94],ieLength:9,name:"Par\xe1"},PB:{code:"4",areaCodes:[83],ieLength:9,name:"Para\xedba"},PE:{code:"4",areaCodes:[81,87],ieLength:9,name:"Pernambuco"},PI:{code:"3",areaCodes:[86,89],ieLength:9,name:"Piau\xed"},PR:{code:"9",areaCodes:[41,42,43,44,45,46],ieLength:10,name:"Paran\xe1"},RJ:{code:"7",areaCodes:[21,22,24],ieLength:8,name:"Rio de Janeiro"},RN:{code:"4",areaCodes:[84],ieLength:[9,10],name:"Rio Grande do Norte"},RO:{code:"2",areaCodes:[69],ieLength:14,name:"Rond\xf4nia"},RS:{code:"0",areaCodes:[51,53,54,55],ieLength:10,name:"Rio Grande do Sul"},RR:{code:"2",areaCodes:[95],ieLength:9,name:"Roraima"},SC:{code:"9",areaCodes:[47,48,49],ieLength:9,name:"Santa Catarina"},SE:{code:"5",areaCodes:[79],ieLength:9,name:"Sergipe"},SP:{code:"8",areaCodes:[11,12,13,14,15,16,17,18,19],ieLength:12,name:"S\xe3o Paulo"},TO:{code:"1",areaCodes:[63],ieLength:[9,11],name:"Tocantins"}},Yq=Object.keys(at).reduce(function(t,n){return t.concat(at[n].areaCodes)},[]),rO=10,sO=11,eW=[6,7,8,9],tW=[2,3,4,5];function oW(t){var n=function hy(t){return{isValidDigits:!!t&&"string"==typeof t,digits:Mi(t)}}(t),i=n.digits;return!!n.isValidDigits&&function nW(t){return function lO(t){return t.length>=rO&&t.length<sO}(t)||function aO(t){return t.length===sO}(t)}(i)&&function iW(t){return t.length===rO?function dO(t){return tW.includes(Number(t.charAt(2)))}(t):function cO(t){return eW.includes(Number(t.charAt(2)))}(t)}(i)&&function uy(t){return Yq.includes(Number(t.substr(0,2)))}(i)}class zr{static isValidDate(){return({value:n})=>{let i=!1;if(/^([0-2]\d|(3)[0-1])(\/)(((0)\d)|((1)[0-2]))(\/)\d{4}$/.test(n)){const o=new Date,r=Number(n.split("/")[0]),s=Number(n.split("/")[1]),a=Number(n.split("/")[2]);if(Math.abs(a-o.getFullYear())<=100&&r>=1&&r<=31&&s>=1&&s<=12&&(i=!0),i){const u=this.stringToDate(n);i=function S7(t){if(tf(1,arguments),!function I7(t){return tf(1,arguments),t instanceof Date||"object"===ef(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var n=iy(t);return!isNaN(Number(n))}(u),i&&function w7(t,n){tf(2,arguments);var e=iy(t),i=iy(n);return e.getTime()>i.getTime()}(u,o)&&(i=!1)}}return i?null:{invalidDate:!0}}}static isValidCpfCnpj(){return({value:n})=>function J1(t){const n=Zo(t);if(11!==n.length||/^(\d)\1{10}$/.test(n))return!1;let e=0;for(let s=0;s<9;s++)e+=parseInt(n.charAt(s))*(10-s);let i=e%11;const o=i<2?0:11-i;if(parseInt(n.charAt(9))!==o)return!1;e=0;for(let s=0;s<10;s++)e+=parseInt(n.charAt(s))*(11-s);i=e%11;const r=i<2?0:11-i;return parseInt(n.charAt(10))===r}(n)||function oy(t){const n=/[a-zA-Z]/.test(t),e=n?function Fc(t){return t.replace(/[^a-zA-Z0-9]/g,"")}(t):Zo(t);if(14!==e.length||!n&&/^(\d)\1{13}$/.test(e)||n&&!/\d{2}$/.test(e))return!1;let i=e.length-2,o=e.substring(0,i);const r=e.substring(i);let s=0,a=2;for(let d=i-1;d>=0;d--)s+=(n?Q1(o.charAt(d)):parseInt(o.charAt(d)))*a,a=9===a?2:a+1;let l=s%11,c=l<2?0:11-l;if(c!==parseInt(r.charAt(0)))return!1;i+=1,o=e.substring(0,i),s=0,a=2;for(let d=i-1;d>=0;d--)s+=(n?Q1(o.charAt(d)):parseInt(o.charAt(d)))*a,a=9===a?2:a+1;return l=s%11,c=l<2?0:11-l,c===parseInt(r.charAt(1))}(n)?null:{invalidCpfCnpj:!0}}static requiredMinCheckbox(n=1){return i=>{if(i instanceof Sh)return i.controls.map(r=>r.value).reduce((r,s)=>s?r+s:r,0)>=n?null:{required:!0};throw new Error("formArray is not an instance of FormArray")}}static isValidPhone(){return({value:n})=>oW(n)?null:{invalidPhone:!0}}static isValidPostalCode(){return({value:n})=>function z7(t){return!(!t||"string"!=typeof t)&&function H7(t){return 8===t.length}(Mi(t))}(n)?null:{invalidPostalCode:!0}}static stringToDate(n){const[e,i,o]=n.split("/").map(r=>Number(r));return new Date(Date.UTC(o,i-1,e))}static currencyValidator(n,e,i){return o=>{const r=o.value;if("string"==typeof r){if("BRL"===i){const s=r.replace(/[^0-9,]/g,"").split(",")[0];return parseInt(s)<n||parseInt(s)>e?{invalidCurrency:!0}:null}{const s=r.replace(/[^0-9.]/g,"").split(".")[0];return parseInt(s)<n||parseInt(s)>e?{invalidCurrency:!0}:null}}return null}}}const fO={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let rf;const uW=new Uint8Array(16);function hW(){if(!rf&&(rf=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!rf))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rf(uW)}const Qt=[];for(let t=0;t<256;++t)Qt.push((t+256).toString(16).slice(1));const $r=function fW(t,n,e){if(fO.randomUUID&&!n&&!t)return fO.randomUUID();const i=(t=t||{}).random||(t.rng||hW)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n){e=e||0;for(let o=0;o<16;++o)n[e+o]=i[o];return n}return function pO(t,n=0){return Qt[t[n+0]]+Qt[t[n+1]]+Qt[t[n+2]]+Qt[t[n+3]]+"-"+Qt[t[n+4]]+Qt[t[n+5]]+"-"+Qt[t[n+6]]+Qt[t[n+7]]+"-"+Qt[t[n+8]]+Qt[t[n+9]]+"-"+Qt[t[n+10]]+Qt[t[n+11]]+Qt[t[n+12]]+Qt[t[n+13]]+Qt[t[n+14]]+Qt[t[n+15]]}(i)},pW=[{label:"AC",value:"AC"},{label:"AL",value:"AL"},{label:"AP",value:"AP"},{label:"AM",value:"AM"},{label:"BA",value:"BA"},{label:"CE",value:"CE"},{label:"DF",value:"DF"},{label:"ES",value:"ES"},{label:"GO",value:"GO"},{label:"MA",value:"MA"},{label:"MS",value:"MS"},{label:"MT",value:"MT"},{label:"MG",value:"MG"},{label:"PA",value:"PA"},{label:"PB",value:"PB"},{label:"PR",value:"PR"},{label:"PE",value:"PE"},{label:"PI",value:"PI"},{label:"RJ",value:"RJ"},{label:"RN",value:"RN"},{label:"RS",value:"RS"},{label:"RO",value:"RO"},{label:"RR",value:"RR"},{label:"SC",value:"SC"},{label:"SP",value:"SP"},{label:"SE",value:"SE"},{label:"TO",value:"TO"}];var sf=function(t){return t.BRL="R$",t.USD="$",t.EUR="\u20ac",t}(sf||{}),Ie=function(t){return t.stringMax150="string_0_150",t.stringNoLimit="string_mais_150",t.numberMax150="number_0_150",t.email="email",t.cpfCnpj="cpf_cnpj",t.telephone="telephone",t.date="date_field",t.checkbox="checkbox",t.required="required",t.postalcode="postalcode",t.image="imagem",t.moeda="moeda",t.agencia="agencia",t.conta="conta",t}(Ie||{});const gW=["(",/[1-9]/,/\d/,")"," ",/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d$/],mW=["(",/[1-9]/,/\d/,")"," ",/\d/,/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d$/];let gO=(()=>{class t{constructor(e){this.fb=e,this.maskConta=i=>i.length<=8?[/\d/,/\d/,/\d/,/\d/,/\d/,"-",/\d/]:[],this.maskAgencia=i=>i.length<=4?[/\d/,/\d/,/\d/,/\d/]:[]}getValidator(e){const i=[];return"complemento"!==e.fieldName&&i.push(Un.required),e.validator===Ie.stringMax150&&i.push(Un.maxLength(150)),e.validator===Ie.numberMax150&&i.push(Un.maxLength(150),Un.pattern("^[0-9]*$")),e.validator===Ie.email&&i.push(Un.pattern("[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}")),e.validator===Ie.cpfCnpj&&i.push(zr.isValidCpfCnpj()),e.validator===Ie.date&&i.push(zr.isValidDate()),e.validator===Ie.telephone&&i.push(zr.isValidPhone()),e.validator===Ie.postalcode&&i.push(zr.isValidPostalCode()),e.validator===Ie.agencia&&i.push(Un.required,Un.pattern("^(?!0{4})[0-9]{4}$")),e.validator===Ie.conta&&i.push(Un.required,Un.pattern(/\d{5}-\d/)),e.validator===Ie.moeda&&i.push(zr.currencyValidator(e.minimum??0,e.maximum??0,e.type)),i}createFormControls(e,i,o=!0){for(const r of e)if(r.options&&r.fieldType===Ie.checkbox){const s=r.options.map(a=>this.fb.control(!1));i.addControl(r.fieldName,this.fb.array(s,o?zr.requiredMinCheckbox():null))}else"address"!==r.fieldType&&"image"!==r.fieldType&&i.addControl(r.fieldName,this.fb.control("",o?this.getValidator(r):null))}generateNameField(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/([^\w]+|\s+)/g,"_").replace(/\-\-+/g,"_").replace(/(^-+|-+$)/,"_").toLowerCase()}formatFormFields(e){const i=[];console.log("[fields]",e);for(const o of e)o.textos_de_0_a_150&&i.push({id:o.textos_de_0_a_150._metadata.uid,fieldLabel:o.textos_de_0_a_150.string_0_150,fieldName:this.generateNameField(o.textos_de_0_a_150.string_0_150),fieldType:"text",validator:Ie.stringMax150,inputMode:"text"}),o.numerico_de_0_a_150&&i.push({id:o.numerico_de_0_a_150._metadata.uid,fieldLabel:o.numerico_de_0_a_150.number_0_150,fieldName:this.generateNameField(o.numerico_de_0_a_150.number_0_150),fieldType:"number",validator:Ie.numberMax150,inputMode:"numeric"}),o.email&&i.push({id:o.email._metadata.uid,fieldLabel:o.email.email,fieldName:this.generateNameField(o.email.email),fieldType:"email",validator:Ie.email,inputMode:"email"}),o.cpf_cnpj&&i.push({id:o.cpf_cnpj._metadata.uid,fieldLabel:o.cpf_cnpj.cpf_cnpj,fieldName:this.generateNameField(o.cpf_cnpj.cpf_cnpj),fieldType:"text",validator:Ie.cpfCnpj}),o.telefone&&i.push({id:o.telefone._metadata.uid,fieldLabel:o.telefone.telephone,fieldName:this.generateNameField(o.telefone.telephone),fieldType:"text",validator:Ie.telephone}),o.textos_mais_150&&i.push({id:o.textos_mais_150._metadata.uid,fieldLabel:o.textos_mais_150.string_mais_150,fieldName:this.generateNameField(o.textos_mais_150.string_mais_150),fieldType:"text",validator:Ie.stringNoLimit,inputMode:"text"}),o.boolean&&i.push({id:o.boolean._metadata.uid,fieldLabel:o.boolean.options_field_name,fieldName:this.generateNameField(o.boolean.options_field_name),fieldType:o.boolean.check_or_radio,options:o.boolean.options_fields.map((r,s)=>({id:`${o.boolean?._metadata.uid}${s}`,description:r})),validator:Ie.required}),o.date_field&&i.push({id:o.date_field._metadata.uid,fieldLabel:o.date_field.nome_do_campo_data,fieldName:this.generateNameField(o.date_field.nome_do_campo_data),fieldType:"date",validator:Ie.date}),o?.address?.active&&(i.push({id:o.address._metadata.uid,fieldLabel:"Address",fieldName:"address",fieldType:"address"}),i.push(...this.formatFieldAddress())),o?.image?.picture&&i.push({id:o.image._metadata.uid,fieldLabel:"Image",fieldName:"image-"+o.image._metadata.uid,fieldType:"image",image:{path:o.image.picture.path,alt:o.image.picture.title}}),o.dropdown&&i.push({id:o.dropdown._metadata.uid,fieldLabel:o.dropdown.input_name,fieldName:this.generateNameField(o.dropdown.input_name),fieldType:"select",validator:Ie.required,options:o.dropdown.input_options.map(r=>({label:r,value:r}))}),o.moeda&&i.push({id:o.moeda._metadata.uid,fieldLabel:o.moeda.input_name,fieldName:this.generateNameField(o.moeda.input_name),fieldType:"text",validator:Ie.moeda,type:o.moeda.type,minimum:o.moeda.minimum,maximum:o.moeda.maximum}),o.agencia&&i.push({id:o.agencia._metadata.uid,fieldLabel:o.agencia.input_name,fieldName:this.generateNameField(o.agencia.input_name),fieldType:"text",validator:Ie.agencia}),o.conta&&i.push({id:o.conta._metadata.uid,fieldLabel:o.conta.input_name,fieldName:this.generateNameField(o.conta.input_name),fieldType:"text",validator:Ie.conta});return i}formatFieldAddress(){return[{id:$r(),fieldLabel:"Endere\xe7o",fieldName:"endereco",fieldType:"text",validator:"required"},{id:$r(),fieldLabel:"N\xfamero",fieldName:"numero",fieldType:"text",validator:"required"},{id:$r(),fieldLabel:"Complemento (opcional)",fieldName:"complemento",fieldType:"text"},{id:$r(),fieldLabel:"Bairro",fieldName:"bairro",fieldType:"text",validator:"required"},{id:$r(),fieldLabel:"CEP",fieldName:"cep",fieldType:"text",validator:Ie.postalcode,inputMode:"numeric"},{id:$r(),fieldLabel:"Cidade",fieldName:"cidade",validator:"required",fieldType:"text"},{id:$r(),fieldLabel:"Estado",fieldName:"estado",fieldType:"select",validator:"required",options:pW}]}formatFieldsToSend(e,i){for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=e[o];if(r instanceof Array){const a=i.find(c=>c.fieldName===o)?.options,l=r.map((c,d)=>c?a[d].description:null).filter(c=>null!==c).join(",");e[o]=l}}return e}sanitizeValue(e,i){return i.validator===Ie.cpfCnpj&&(e=this.sanitizeStringUperCase(e)),(i.validator===Ie.stringMax150||i.validator===Ie.stringNoLimit)&&(e=this.sanitizeString(e)),i.validator===Ie.telephone&&(e=this.sanitizePhone(e)),e}sanitizeStringUperCase(e){return e.toUpperCase()}sanitizeString(e){return/^[a-zA-Z \xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd8\xd9\xda\xdb\xdc\xdd\u0154\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff\u0155]*$/.test(e)?e:e.replace(/[^a-zA-Z \xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd8\xd9\xda\xdb\xdc\xdd\u0154\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff\u0155]*/g,"")}sanitizeNumber(e){return/^\d*$/.test(e)?e:e.replace(/\D*/g,"")}sanitizePhone(e){return/^\(\d{2}\) \d{4,5}-\d{4}$/.test(e)?e:e.replace(/\D*/g,"")}sanitizeCep(e){return/^\d{5}-\d{3}$/.test(e)?e:e.replace(/\D*/g,"")}sanitizeAddress(e){return/^[a-zA-Z0-9 \xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd8\xd9\xda\xdb\xdc\xdd\u0154\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff\u0155]*$/.test(e)?e:e.replace(/[^a-zA-Z0-9 \xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd8\xd9\xda\xdb\xdc\xdd\u0154\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff\u0155]*/g,"")}maskCpfCnpj(e){return(e=e.replace(/[^a-z0-9]+/gi,"")).length<=11?[/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,".",/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,".",/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,"-",/[0-9a-zA-Z]/,/[0-9a-zA-Z]/]:[/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,".",/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,".",/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,"/",/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,/[0-9a-zA-Z]/,"-",/[0-9a-zA-Z]/,/[0-9a-zA-Z]/]}phoneMask(e){return e.length<15?gW:mW}getErrorMessage(e,i){return e.get(i.fieldName)?.errors?.required?`Campo ${i.fieldLabel.toLowerCase()} \xe9 obrigat\xf3rio`:`Campo ${i.fieldLabel.toLowerCase()} inv\xe1lido`}currencyMaskConfig(e){return{allowNegative:!1,decimal:"R$"===sf[e]?",":".",precision:2,thousands:"R$"===sf[e]?".":",",prefix:`${sf[e]} `}}static{this.\u0275fac=function(i){return new(i||t)(O(Px))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const _W=new k("recaptcha-language"),vW=new k("recaptcha-base-url"),yW=new k("recaptcha-nonce-tag"),mO=(new k("recaptcha-settings"),new k("recaptcha-v3-site-key")),CW_loadScript=function bW(t,n,e,i,o){window.ng2recaptchaloaded=()=>{n(grecaptcha)};const r=document.createElement("script");r.innerHTML="",r.src=`${i||"https://www.google.com/recaptcha/api.js"}?render=${t}&onload=ng2recaptchaloaded${e}`,o&&(r.nonce=o),r.async=!0,r.defer=!0,document.head.appendChild(r)};let _O=(()=>{class t{constructor(e,i,o,r,s,a){this.onLoadComplete=l=>{this.grecaptcha=l,this.actionBacklog&&this.actionBacklog.length>0&&(this.actionBacklog.forEach(([c,d])=>this.executeActionWithSubject(c,d)),this.actionBacklog=void 0)},this.zone=e,this.isBrowser=VD(o),this.siteKey=i,this.nonce=s,this.language=a,this.baseUrl=r,this.init()}get onExecute(){return this.onExecuteSubject||(this.onExecuteSubject=new re,this.onExecuteObservable=this.onExecuteSubject.asObservable()),this.onExecuteObservable}get onExecuteError(){return this.onExecuteErrorSubject||(this.onExecuteErrorSubject=new re,this.onExecuteErrorObservable=this.onExecuteErrorSubject.asObservable()),this.onExecuteErrorObservable}execute(e){const i=new re;return this.isBrowser&&(this.grecaptcha?this.executeActionWithSubject(e,i):(this.actionBacklog||(this.actionBacklog=[]),this.actionBacklog.push([e,i]))),i.asObservable()}executeActionWithSubject(e,i){const o=r=>{this.zone.run(()=>{i.error(r),this.onExecuteErrorSubject&&this.onExecuteErrorSubject.next({action:e,error:r})})};this.zone.runOutsideAngular(()=>{try{this.grecaptcha.execute(this.siteKey,{action:e}).then(r=>{this.zone.run(()=>{i.next(r),i.complete(),this.onExecuteSubject&&this.onExecuteSubject.next({action:e,token:r})})},o)}catch(r){o(r)}})}init(){this.isBrowser&&("grecaptcha"in window?this.grecaptcha=grecaptcha:CW_loadScript(this.siteKey,this.onLoadComplete,this.language?"&hl="+this.language:"",this.baseUrl,this.nonce))}}return t.\u0275fac=function(e){return new(e||t)(O(pe),O(mO),O(oo),O(vW,8),O(yW,8),O(_W,8))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})(),MW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Pe({type:t}),t.\u0275inj=De({providers:[_O]}),t})(),vO=(()=>{class t{constructor(){this.loading=new re}start(){this.loading.next(!0)}stop(){this.loading.next(!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function IW(t,n){1&t&&(N(0,"div",1),mn(1,"ids-loading",2),N(2,"p",3),ue(3,"Processando..."),V()())}let SW=(()=>{class t{constructor(e){this.loaderService=e,this.loading=this.loaderService.loading}static{this.\u0275fac=function(i){return new(i||t)(C(vO))}}static{this.\u0275cmp=be({type:t,selectors:[["app-loader"]],decls:2,vars:3,consts:[["class","container","role","alert","aria-busy","false",4,"ngIf"],["role","alert","aria-busy","false",1,"container"],["size","L"],[1,"loader-text"]],template:function(i,o){1&i&&(Ne(0,IW,4,0,"div",0),Ou(1,"async")),2&i&&R("ngIf",Tu(1,1,o.loading))},dependencies:[Zn,Zv,FD],styles:['@font-face{font-family:ItauDisplay-Light;font-style:normal;font-weight:300;src:url(itaudisplay_lt-webfont.eot),url(itaudisplay_lt-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_lt-webfont.woff2) format("woff2"),url(itaudisplay_lt-webfont.woff) format("woff"),url(itaudisplay_lt-webfont.ttf) format("truetype"),url(itaudisplay_lt-webfont.svg#itau_displaylight) format("svg")}@font-face{font-family:ItauDisplay-Regular;font-style:normal;font-weight:400;src:url(itaudisplay_rg-webfont.eot),url(itaudisplay_rg-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_rg-webfont.woff2) format("woff2"),url(itaudisplay_rg-webfont.woff) format("woff"),url(itaudisplay_rg-webfont.ttf) format("truetype"),url(itaudisplay_rg-webfont.svg#itau_displayregular) format("svg")}@font-face{font-family:ItauDisplay-Bold;font-style:normal;font-weight:700;src:url(itaudisplay_bd-webfont.eot),url(itaudisplay_bd-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_bd-webfont.woff2) format("woff2"),url(itaudisplay_bd-webfont.woff) format("woff"),url(itaudisplay_bd-webfont.ttf) format("truetype"),url(itaudisplay_bd-webfont.svg#itau_displaybold) format("svg")}@font-face{font-family:ItauDisplay-XBold;font-style:normal;font-weight:800;src:url(itaudisplay_xbd-webfont.eot),url(itaudisplay_xbd-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_xbd-webfont.woff2) format("woff2"),url(itaudisplay_xbd-webfont.woff) format("woff"),url(itaudisplay_xbd-webfont.ttf) format("truetype"),url(itaudisplay_xbd-webfont.svg#itau_displayxbold) format("svg")}@font-face{font-family:itau-font;font-style:normal;font-weight:900;src:url(itaudisplay_blk-webfont.eot),url(itaudisplay_blk-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_blk-webfont.woff2) format("woff2"),url(itaudisplay_blk-webfont.woff) format("woff"),url(itaudisplay_blk-webfont.ttf) format("truetype"),url(itaudisplay_blk-webfont.svg#itau_displayblack) format("svg")}@font-face{font-family:ItauText-Light;font-style:normal;font-weight:300;src:url(ItauText_Lt.eot),url(ItauText_Lt.eot?#iefix) format("embedded-opentype"),url(ItauText_Lt.woff2) format("woff2"),url(ItauText_Lt.woff) format("woff"),url(ItauText_Lt.ttf) format("truetype")}@font-face{font-family:ItauText-Regular;font-style:normal;font-weight:500;src:url(ItauText_Rg.eot),url(ItauText_Rg.eot?#iefix) format("embedded-opentype"),url(ItauText_Rg.woff2) format("woff2"),url(ItauText_Rg.woff) format("woff"),url(ItauText_Rg.ttf) format("truetype")}@font-face{font-family:ItauText-Bold;font-style:normal;font-weight:800;src:url(ItauText_Bd.eot),url(ItauText_Bd.eot?#iefix) format("embedded-opentype"),url(ItauText_Bd.woff2) format("woff2"),url(ItauText_Bd.woff) format("woff"),url(ItauText_Bd.ttf) format("truetype")}@font-face{font-family:ItauText-XBold;font-style:normal;font-weight:900;src:url(ItauText_XBd.eot),url(ItauText_XBd.eot?#iefix) format("embedded-opentype"),url(ItauText_XBd.woff2) format("woff2"),url(ItauText_XBd.woff) format("woff"),url(ItauText_XBd.ttf) format("truetype")}[_ngcontent-%COMP%]:root{--faas-primary-color: #ec7000;--faas-secondary-color: #dd6100;--faas-error-color: #781b8e;--faas-focus: #56504c;--faas-font-light: ItauDisplay-Light, sans-serif;--faas-font-regular: ItauText-Regular, sans-serif;--faas-font-bold: ItauText-Bold, sans-serif;--faas-font-xbold: ItauText-XBold, sans-serif}*[_ngcontent-%COMP%]{box-sizing:border-box;font:var(--ids_textStyle_f02_s16_h24_wrg, --faas-font-regular, "ItauText-Regular", sans-serif)}body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{margin:0;padding:0;scroll-behavior:smooth}fieldset[_ngcontent-%COMP%]{border:0;padding:0}.title[_ngcontent-%COMP%]{margin:0;max-width:493px}@media screen and (max-width: 768px){.title[_ngcontent-%COMP%]{font-size:24px}}.text-interface[_ngcontent-%COMP%]{font-family:var(--faas-font-regular, "ItauText-Regular", sans-serif);font-style:normal;font-weight:400;font-size:16px;line-height:150%;color:#595959}.btn-primary[_ngcontent-%COMP%]{cursor:pointer;font-family:var(--faas-font-bold, "ItauText-Bold", sans-serif);background-color:var(--faas-primary-color, #ec7000);border-radius:4px;border:1px solid var(--faas-secondary-color, #dd6100);height:48px;font-weight:700;color:#fff;font-size:20px;line-height:32px;width:398px}@media screen and (max-width: 768px){.btn-primary[_ngcontent-%COMP%]{width:259.5px}}@media screen and (max-width: 480px){.btn-primary[_ngcontent-%COMP%]{width:100%;font-size:16px}}@media screen and (max-width: 320px){.btn-primary[_ngcontent-%COMP%]{width:288px}}.btn-danger[_ngcontent-%COMP%]{cursor:pointer;background-color:#fff;border-radius:4px;border:1px solid #106eb0;height:30px;width:120px;font-family:var(--faas-font-bold, "ItauText-Bold", sans-serif);color:#106eb0;font-size:14px;line-height:24px}.invalid-feedback[_ngcontent-%COMP%]{color:var(--faas-error-color, #781b8e);font-size:12px;line-height:18px;margin:0}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=date][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=date][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}.uniclass[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #ec7000);border:1px solid var(--faas-secondary-color, #D9640B)}.family-office[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, "");border:1px solid var(--faas-secondary-color, "")}.cartoes[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .varejo[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .private-bank[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .empresas[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #ec7000);border:1px solid var(--faas-secondary-color, #dd6100)}.personnalite-rebranding[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #0d1733);border:1px solid var(--faas-secondary-color, #122047)}.container[_ngcontent-%COMP%]{background-color:var(--ids_color_bg_base);position:absolute;width:100%;height:100%;left:0;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:1}.container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:16px;line-height:24px;color:var(--ids_color_text_body_01);margin-top:25px}@media screen and (max-width: 480px){.container[_ngcontent-%COMP%]{position:fixed;height:100%;top:0}}.lds-ring[_ngcontent-%COMP%]{display:flex;justify-content:center;position:relative;width:64px;height:64px}.lds-ring[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:4px solid black;border-radius:50%;animation:_ngcontent-%COMP%_lds-ring 1.2s linear infinite;border-color:#ec7000 rgba(236,112,0,.16) rgba(236,112,0,.16) rgba(236,112,0,.16)}@keyframes _ngcontent-%COMP%_lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}']})}}return t})();const af=new k("ngx-mask config"),yO=new k("new ngx-mask config"),bO=new k("initial ngx-mask config"),wW={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,apm:!1,leadZero:!1,keepCharacterPositions:!1,triggerOnMaskChange:!1,inputTransformFn:t=>t,outputTransformFn:t=>t,maskFilled:new de,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},DW=["Hh:m0:s0","Hh:m0","m0:s0"],EW=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let xW=(()=>{class t{constructor(){this._config=G(af),this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.hiddenInput=this._config.hiddenInput,this.clearIfNotMatch=this._config.clearIfNotMatch,this.specialCharacters=this._config.specialCharacters,this.patterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime,this.leadZero=this._config.leadZero,this.apm=this._config.apm,this.inputTransformFn=this._config.inputTransformFn,this.outputTransformFn=this._config.outputTransformFn,this.keepCharacterPositions=this._config.keepCharacterPositions,this._shift=new Set,this.plusOnePosition=!1,this.maskExpression="",this.actualValue="",this.showKeepCharacterExp="",this.shownMaskExpression="",this.deletedSpecialCharacter=!1,this._formatWithSeparators=(e,i,o,r)=>{let s=[],a="";if(Array.isArray(o)){const h=new RegExp(o.map(f=>"[\\^$.|?*+()".indexOf(f)>=0?`\\${f}`:f).join("|"));s=e.split(h),a=e.match(h)?.[0]??""}else s=e.split(o),a=o;const l=s.length>1?`${a}${s[1]}`:"";let c=s[0]??"";const d=this.separatorLimit.replace(/\s/g,"");d&&+d&&(c="-"===c[0]?`-${c.slice(1,c.length).slice(0,d.length)}`:c.slice(0,d.length));const u=/(\d+)(\d{3})/;for(;i&&u.test(c);)c=c.replace(u,"$1"+i+"$2");return void 0===r?c+l:0===r?c:c+l.substring(0,r+1)},this.percentage=e=>{const i=e.replace(",","."),o=Number(i);return!isNaN(o)&&o>=0&&o<=100},this.getPrecision=e=>{const i=e.split(".");return i.length>1?Number(i[i.length-1]):1/0},this.checkAndRemoveSuffix=e=>{for(let i=this.suffix?.length-1;i>=0;i--){const o=this.suffix.substring(i,this.suffix?.length);if(e.includes(o)&&i!==this.suffix?.length-1&&(i-1<0||!e.includes(this.suffix.substring(i-1,this.suffix?.length))))return e.replace(o,"")}return e},this.checkInputPrecision=(e,i,o)=>{if(i<1/0){if(Array.isArray(o)){const l=o.find(c=>c!==this.thousandSeparator);o=l||o[0]}const r=new RegExp(this._charToRegExpExpression(o)+`\\d{${i}}.*$`),s=e.match(r),a=(s&&s[0]?.length)??0;a-1>i&&(e=e.substring(0,e.length-(a-1-i))),0===i&&this._compareOrIncludes(e[e.length-1],o,this.thousandSeparator)&&(e=e.substring(0,e.length-1))}return e}}applyMaskWithPattern(e,i){const[o,r]=i;return this.customPattern=r,this.applyMask(e,o)}applyMask(e,i,o=0,r=!1,s=!1,a=(()=>{})){if(!i||"string"!=typeof e)return"";let l=0,c="",d=!1,u=!1,h=1,f=!1;e.slice(0,this.prefix.length)===this.prefix&&(e=e.slice(this.prefix.length,e.length)),this.suffix&&e?.length>0&&(e=this.checkAndRemoveSuffix(e)),"("===e&&this.prefix&&(e="");const p=e.toString().split("");if(this.allowNegativeNumbers&&"-"===e.slice(l,l+1)&&(c+=e.slice(l,l+1)),"IP"===i){const D=e.split(".");this.ipError=this._validIP(D),i="099.099.099.099"}const _=[];for(let D=0;D<e.length;D++)e[D]?.match("\\d")&&_.push(e[D]??"");if("CPF_CNPJ"===i&&(this.cpfCnpjError=11!==_.length&&14!==_.length,i=_.length>11?"00.000.000/0000-00":"000.000.000-00"),i.startsWith("percent")){if(e.match("[a-z]|[A-Z]")||e.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!s){e=this._stripToDecimal(e);const z=this.getPrecision(i);e=this.checkInputPrecision(e,z,this.decimalMarker)}const D="string"==typeof this.decimalMarker?this.decimalMarker:".";if(e.indexOf(D)>0&&!this.percentage(e.substring(0,e.indexOf(D)))){let z=e.substring(0,e.indexOf(D)-1);this.allowNegativeNumbers&&"-"===e.slice(l,l+1)&&!s&&(z=e.substring(0,e.indexOf(D))),e=`${z}${e.substring(e.indexOf(D),e.length)}`}let P="";P=this.allowNegativeNumbers&&"-"===e.slice(l,l+1)?e.slice(l+1,l+e.length):e,c=this.percentage(P)?this._splitPercentZero(e):this._splitPercentZero(e.substring(0,e.length-1))}else if(i.startsWith("separator")){(e.match("[w\u0430-\u044f\u0410-\u042f]")||e.match("[\u0401\u0451\u0410-\u044f]")||e.match("[a-z]|[A-Z]")||e.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\]:";<>.?/]/)||e.match("[^A-Za-z0-9,]"))&&(e=this._stripToDecimal(e));const D=this.getPrecision(i),P=Array.isArray(this.decimalMarker)?".":this.decimalMarker;0===D?e=this.allowNegativeNumbers?e.length>2&&"-"===e[0]&&"0"===e[1]&&e[2]!==this.thousandSeparator&&","!==e[2]&&"."!==e[2]?"-"+e.slice(2,e.length):"0"===e[0]&&e.length>1&&e[1]!==this.thousandSeparator&&","!==e[1]&&"."!==e[1]?e.slice(1,e.length):e:e.length>1&&"0"===e[0]&&e[1]!==this.thousandSeparator&&","!==e[1]&&"."!==e[1]?e.slice(1,e.length):e:(e[0]===P&&e.length>1&&(e="0"+e.slice(0,e.length+1),this.plusOnePosition=!0),"0"===e[0]&&e[1]!==P&&e[1]!==this.thousandSeparator&&(e=e.length>1?e.slice(0,1)+P+e.slice(1,e.length+1):e,this.plusOnePosition=!0),this.allowNegativeNumbers&&"-"===e[0]&&(e[1]===P||"0"===e[1])&&(e=e[1]===P&&e.length>2?e.slice(0,1)+"0"+e.slice(1,e.length):"0"===e[1]&&e.length>2&&e[2]!==P?e.slice(0,2)+P+e.slice(2,e.length):e,this.plusOnePosition=!0)),s&&("0"===e[0]&&e[1]===this.decimalMarker&&("0"===e[o]||e[o]===this.decimalMarker)&&(e=e.slice(2,e.length)),"-"===e[0]&&"0"===e[1]&&e[2]===this.decimalMarker&&("0"===e[o]||e[o]===this.decimalMarker)&&(e="-"+e.slice(3,e.length)),e=this._compareOrIncludes(e[e.length-1],this.decimalMarker,this.thousandSeparator)?e.slice(0,e.length-1):e);const z=this._charToRegExpExpression(this.thousandSeparator);let W='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(z,"");if(Array.isArray(this.decimalMarker))for(const yt of this.decimalMarker)W=W.replace(this._charToRegExpExpression(yt),"");else W=W.replace(this._charToRegExpExpression(this.decimalMarker),"");const Ce=new RegExp("["+W+"]");e.match(Ce)&&(e=e.substring(0,e.length-1));const lt=(e=this.checkInputPrecision(e,D,this.decimalMarker)).replace(new RegExp(z,"g"),"");c=this._formatWithSeparators(lt,this.thousandSeparator,this.decimalMarker,D);const dn=c.indexOf(",")-e.indexOf(","),vt=c.length-e.length;if(vt>0&&c[o]!==this.thousandSeparator){u=!0;let yt=0;do{this._shift.add(o+yt),yt++}while(yt<vt)}else c[o-1]===this.decimalMarker||-4===vt||-3===vt||","===c[o]?(this._shift.clear(),this._shift.add(o-1)):0!==dn&&o>0&&!(c.indexOf(",")>=o&&o>3)||!(c.indexOf(".")>=o&&o>3)&&vt<=0?(this._shift.clear(),u=!0,h=vt,this._shift.add(o+=vt)):this._shift.clear()}else for(let D=0,P=p[0];D<p.length&&l!==i.length;D++,P=p[D]??""){const z="*"in this.patterns;if(this._checkSymbolMask(P,i[l]??"")&&"?"===i[l+1])c+=P,l+=2;else if("*"===i[l+1]&&d&&this._checkSymbolMask(P,i[l+2]??""))c+=P,l+=3,d=!1;else if(this._checkSymbolMask(P,i[l]??"")&&"*"===i[l+1]&&!z)c+=P,d=!0;else if("?"===i[l+1]&&this._checkSymbolMask(P,i[l+2]??""))c+=P,l+=3;else if(this._checkSymbolMask(P,i[l]??"")){if("H"===i[l]&&(this.apm?Number(P)>9:Number(P)>2)){o=this.leadZeroDateTime?o:o+1,l+=1,this._shiftStep(i,l,p.length),D--,this.leadZeroDateTime&&(c+="0");continue}if("h"===i[l]&&(this.apm?1===c.length&&Number(c)>1||"1"===c&&Number(P)>2||1===e.slice(l-1,l).length&&Number(e.slice(l-1,l))>2||"1"===e.slice(l-1,l)&&Number(P)>2:"2"===c&&Number(P)>3||("2"===c.slice(l-2,l)||"2"===c.slice(l-3,l)||"2"===c.slice(l-4,l)||"2"===c.slice(l-1,l))&&Number(P)>3&&l>10)){o+=1,l+=1,D--;continue}if(("m"===i[l]||"s"===i[l])&&Number(P)>5){o=this.leadZeroDateTime?o:o+1,l+=1,this._shiftStep(i,l,p.length),D--,this.leadZeroDateTime&&(c+="0");continue}const W=31,Ce=e[l],lt=e[l+1],dn=e[l+2],vt=e[l-1],yt=e[l-2],Xt=e[l-3],An=e.slice(l-3,l-1),Wr=e.slice(l-1,l+1),U=e.slice(l,l+2),J=e.slice(l-2,l);if("d"===i[l]){const ee="M0"===i.slice(0,2),Se="M0"===i.slice(0,2)&&this.specialCharacters.includes(yt);if(Number(P)>3&&this.leadZeroDateTime||!ee&&(Number(U)>W||Number(Wr)>W||this.specialCharacters.includes(lt))||(Se?Number(Wr)>W||!this.specialCharacters.includes(Ce)&&this.specialCharacters.includes(dn)||this.specialCharacters.includes(Ce):Number(U)>W||this.specialCharacters.includes(lt))){o=this.leadZeroDateTime?o:o+1,l+=1,this._shiftStep(i,l,p.length),D--,this.leadZeroDateTime&&(c+="0");continue}}if("M"===i[l]){const Se=0===l&&(Number(P)>2||Number(U)>12||this.specialCharacters.includes(lt)),Dt=i.slice(l+2,l+3),ii=An.includes(Dt)&&(this.specialCharacters.includes(yt)&&Number(Wr)>12&&!this.specialCharacters.includes(Ce)||this.specialCharacters.includes(Ce)||this.specialCharacters.includes(Xt)&&Number(J)>12&&!this.specialCharacters.includes(vt)||this.specialCharacters.includes(vt)),Cn=Number(An)<=W&&!this.specialCharacters.includes(An)&&this.specialCharacters.includes(vt)&&(Number(U)>12||this.specialCharacters.includes(lt)),Ji=Number(U)>12&&5===l||this.specialCharacters.includes(lt)&&5===l,et=Number(An)>W&&!this.specialCharacters.includes(An)&&!this.specialCharacters.includes(J)&&Number(J)>12,bf=Number(An)<=W&&!this.specialCharacters.includes(An)&&!this.specialCharacters.includes(vt)&&Number(Wr)>12;if(Number(P)>1&&this.leadZeroDateTime||Se||ii||bf||et||Cn||Ji&&!this.leadZeroDateTime){o=this.leadZeroDateTime?o:o+1,l+=1,this._shiftStep(i,l,p.length),D--,this.leadZeroDateTime&&(c+="0");continue}}c+=P,l++}else" "===P&&" "===i[l]||"/"===P&&"/"===i[l]?(c+=P,l++):-1!==this.specialCharacters.indexOf(i[l]??"")?(c+=i[l],l++,this._shiftStep(i,l,p.length),D--):"9"===i[l]&&this.showMaskTyped?this._shiftStep(i,l,p.length):this.patterns[i[l]??""]&&this.patterns[i[l]??""]?.optional?(p[l]&&"099.099.099.099"!==i&&"000.000.000-00"!==i&&"00.000.000/0000-00"!==i&&!i.match(/^9+\.0+$/)&&!this.patterns[i[l]??""]?.optional&&(c+=p[l]),i.includes("9*")&&i.includes("0*")&&l++,l++,D--):"*"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2]??"")&&this._findSpecialChar(P)===this.maskExpression[l+2]&&d||"?"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2]??"")&&this._findSpecialChar(P)===this.maskExpression[l+2]&&d?(l+=3,c+=P):this.showMaskTyped&&this.specialCharacters.indexOf(P)<0&&P!==this.placeHolderCharacter&&1===this.placeHolderCharacter.length&&(f=!0)}c.length+1===i.length&&-1!==this.specialCharacters.indexOf(i[i.length-1]??"")&&(c+=i[i.length-1]);let y=o+1;for(;this._shift.has(y);)h++,y++;let b=r&&!i.startsWith("separator")?l:this._shift.has(o)?h:0;f&&b--,a(b,u),h<0&&this._shift.clear();let M=!1;s&&(M=p.every(D=>this.specialCharacters.includes(D)));let w=`${this.prefix}${M?"":c}${this.showMaskTyped?"":this.suffix}`;if(0===c.length&&(w=this.dropSpecialCharacters?`${c}`:`${this.prefix}${c}`),c.includes("-")&&this.prefix&&this.allowNegativeNumbers){if(s&&"-"===c)return"";w=`-${this.prefix}${c.split("-").join("")}${this.suffix}`}return w}_findDropSpecialChar(e){return Array.isArray(this.dropSpecialCharacters)?this.dropSpecialCharacters.find(i=>i===e):this._findSpecialChar(e)}_findSpecialChar(e){return this.specialCharacters.find(i=>i===e)}_checkSymbolMask(e,i){return this.patterns=this.customPattern?this.customPattern:this.patterns,(this.patterns[i]?.pattern&&this.patterns[i]?.pattern.test(e))??!1}_stripToDecimal(e){return e.split("").filter((i,o)=>{const r="string"==typeof this.decimalMarker?i===this.decimalMarker:this.decimalMarker.includes(i);return i.match("^-?\\d")||i===this.thousandSeparator||r||"-"===i&&0===o&&this.allowNegativeNumbers}).join("")}_charToRegExpExpression(e){return e&&(" "===e?"\\s":"[\\^$.|?*+()".indexOf(e)>=0?`\\${e}`:e)}_shiftStep(e,i,o){const r=/[*?]/g.test(e.slice(0,i))?o:i;this._shift.add(r+this.prefix.length||0)}_compareOrIncludes(e,i,o){return Array.isArray(i)?i.filter(r=>r!==o).includes(e):e===i}_validIP(e){return!(4===e.length&&!e.some((i,o)=>e.length!==o+1?""===i||Number(i)>255:""===i||Number(i.substring(0,3))>255))}_splitPercentZero(e){const i=e.indexOf("string"==typeof this.decimalMarker?this.decimalMarker:".");if(-1===i){const o=parseInt(e,10);return isNaN(o)?"":o.toString()}{const o=parseInt(e.substring(0,i),10),r=e.substring(i+1),s=isNaN(o)?"":o.toString();return""===s?"":s+("string"==typeof this.decimalMarker?this.decimalMarker:".")+r}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac})}}return t})(),fy=(()=>{class t extends xW{constructor(){super(...arguments),this.isNumberValue=!1,this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.maskChanged=!1,this._maskExpressionArray=[],this.triggerOnMaskChange=!1,this._previousValue="",this._currentValue="",this._emitValue=!1,this.onChange=e=>{},this._elementRef=G(he,{optional:!0}),this.document=G($e),this._config=G(af),this._renderer=G(jn,{optional:!0})}applyMask(e,i,o=0,r=!1,s=!1,a=(()=>{})){if(!i)return e!==this.actualValue?this.actualValue:e;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),!e&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown+this.suffix;const l=e&&"number"==typeof this.selStart?e[this.selStart]??"":"";let c="";if(void 0!==this.hiddenInput&&!this.writingValue){let f=e&&1===e.length?e.split(""):this.actualValue.split("");"object"==typeof this.selStart&&"object"==typeof this.selEnd?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):""!==e&&f.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(e.length>f.length?f.splice(this.selStart,0,l):e.length<f.length&&(f.length-e.length==1?f.splice(s?this.selStart-1:e.length-1,1):f.splice(this.selStart,this.selEnd-this.selStart))):f=[],this.showMaskTyped&&(this.hiddenInput||(e=this.removeMask(e))),c=this.actualValue.length&&f.length<=e.length?this.shiftTypedSymbols(f.join("")):e}if(r&&(this.hiddenInput||!this.hiddenInput)&&(c=e),s&&-1!==this.specialCharacters.indexOf(this.maskExpression[o]??"")&&this.showMaskTyped&&(c=this._currentValue),this.deletedSpecialCharacter&&o&&(this.specialCharacters.includes(this.actualValue.slice(o,o+1))?o+=1:"M0"!==i.slice(o-1,o+1)&&(o-=2),this.deletedSpecialCharacter=!1),this.showMaskTyped&&1===this.placeHolderCharacter.length&&!this.leadZeroDateTime&&(e=this.removeMask(e)),c=this.maskChanged?e:c&&c.length?c:e,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!r){const f=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(f),this.actualValue?this.actualValue:this.prefix+this.maskIsShown+this.suffix}const d=super.applyMask(c,i,o,r,s,a);if(this.actualValue=this.getActualValue(d),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.specialCharacters=this.specialCharacters.filter(f=>!this._compareOrIncludes(f,this.decimalMarker,this.thousandSeparator))),(d||""===d)&&(this._previousValue=this._currentValue,this._currentValue=d,this._emitValue=this._previousValue!==this._currentValue||this.maskChanged||this._previousValue===this._currentValue&&r),this._emitValue&&this.formControlResult(d),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?s?this.hideInput(d,this.maskExpression):this.hideInput(d,this.maskExpression)+this.maskIsShown.slice(d.length):d;const u=d.length,h=this.prefix+this.maskIsShown+this.suffix;if(this.maskExpression.includes("H")){const f=this._numberSkipedSymbols(d);return d+h.slice(u+f)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?d+h:d+h.slice(u)}_numberSkipedSymbols(e){const i=/(^|\D)(\d\D)/g;let o=i.exec(e),r=0;for(;null!=o;)r+=1,o=i.exec(e);return r}applyValueChanges(e,i,o,r=(()=>{})){const s=this._elementRef?.nativeElement;s&&(s.value=this.applyMask(s.value,this.maskExpression,e,i,o,r),s!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(e,i){return e.split("").map((o,r)=>this.patterns&&this.patterns[i[r]??""]&&this.patterns[i[r]??""]?.symbol?this.patterns[i[r]??""]?.symbol:o).join("")}getActualValue(e){const i=e.split("").filter((o,r)=>{const s=this.maskExpression[r]??"";return this._checkSymbolMask(o,s)||this.specialCharacters.includes(s)&&o===s});return i.join("")===e?i.join(""):e}shiftTypedSymbols(e){let i="";return(e&&e.split("").map((r,s)=>{if(this.specialCharacters.includes(e[s+1]??"")&&e[s+1]!==this.maskExpression[s+1])return i=r,e[s+1];if(i.length){const a=i;return i="",a}return r})||[]).join("")}numberToString(e){return!e&&0!==e||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith("separator")&&this.separatorLimit.length>14&&String(e).length>14?String(e):Number(e).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace("/-/","-")}showMaskInInput(e){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(e){if("IP"===this.maskExpression)return this._checkForIp(e);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(e)}return this.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const e=this._elementRef?.nativeElement;e&&this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==e.value.replace(this.placeHolderCharacter,"").length&&(this.formElementProperty=["value",""],this.applyMask("",this.maskExpression))}set formElementProperty([e,i]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>this._renderer?.setProperty(this._elementRef?.nativeElement,e,i))}checkDropSpecialCharAmount(e){return e.split("").filter(o=>this._findDropSpecialChar(o)).length}removeMask(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(e){if("#"===e)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const i=[];for(let o=0;o<e.length;o++){const r=e[o]??"";r&&r.match("\\d")&&i.push(r)}return i.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>3&&i.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>6&&i.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(e){const i=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,o=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===e)return i;const r=[];for(let s=0;s<e.length;s++){const a=e[s]??"";a&&a.match("\\d")&&r.push(a)}return r.length<=3?i.slice(r.length,i.length):r.length>3&&r.length<=6?i.slice(r.length+1,i.length):r.length>6&&r.length<=9?i.slice(r.length+2,i.length):r.length>9&&r.length<11?i.slice(r.length+3,i.length):11===r.length?"":12===r.length?o.slice(17===e.length?16:15,o.length):r.length>12&&r.length<=14?o.slice(r.length+4,o.length):""}_getActiveElement(e=this.document){const i=e?.activeElement?.shadowRoot;return i?.activeElement?this._getActiveElement(i):e.activeElement}formControlResult(e){if(this.writingValue||!this.triggerOnMaskChange&&this.maskChanged)return this.maskChanged&&this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(e)))))),void(this.maskChanged=!1);Array.isArray(this.dropSpecialCharacters)?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.dropSpecialCharacters))))):this.onChange(this.outputTransformFn(this._toNumber(this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===e?this._checkSymbols(this._removeSuffix(this._removePrefix(e))):e)))}_toNumber(e){if(!this.isNumberValue||""===e||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters))return e;if(String(e).length>16&&this.separatorLimit.length>14)return String(e);const i=Number(e);if(this.maskExpression.startsWith("separator")&&Number.isNaN(i)){const o=String(e).replace(",",".");return Number(o)}return Number.isNaN(i)?e:i}_removeMask(e,i){return this.maskExpression.startsWith("percent")&&e.includes(".")?e:e&&e.replace(this._regExpForRemove(i),"")}_removePrefix(e){return this.prefix?e&&e.replace(this.prefix,""):e}_removeSuffix(e){return this.suffix?e&&e.replace(this.suffix,""):e}_retrieveSeparatorValue(e){let i=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(o=>this.dropSpecialCharacters.includes(o)):this.specialCharacters;return!this.deletedSpecialCharacter&&this._checkPatternForSpace()&&e.includes(" ")&&this.maskExpression.includes("*")&&(i=i.filter(o=>" "!==o)),this._removeMask(e,i)}_regExpForRemove(e){return new RegExp(e.map(i=>`\\${i}`).join("|"),"gi")}_replaceDecimalMarkerToDot(e){const i=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return e.replace(this._regExpForRemove(i),".")}_checkSymbols(e){if(""===e)return e;this.maskExpression.startsWith("percent")&&","===this.decimalMarker&&(e=e.replace(",","."));const i=this._retrieveSeparatorPrecision(this.maskExpression),o=this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(e));return this.isNumberValue&&i?e===this.decimalMarker?null:this.separatorLimit.length>14?String(o):this._checkPrecision(this.maskExpression,o):o}_checkPatternForSpace(){for(const e in this.patterns)if(this.patterns[e]&&this.patterns[e]?.hasOwnProperty("pattern")){const i=this.patterns[e]?.pattern.toString(),o=this.patterns[e]?.pattern;if(i?.includes(" ")&&o?.test(this.maskExpression))return!0}return!1}_retrieveSeparatorPrecision(e){const i=e.match(new RegExp("^separator\\.([^d]*)"));return i?Number(i[1]):null}_checkPrecision(e,i){const o=e.slice(10,11);return e.indexOf("2")>0||this.leadZero&&Number(o)>1?(","===this.decimalMarker&&this.leadZero&&(i=i.replace(",",".")),this.leadZero?Number(i).toFixed(Number(o)):Number(i).toFixed(2)):this.numberToString(i)}_repeatPatternSymbols(e){return e.match(/{[0-9]+}/)&&e.split("").reduce((i,o,r)=>{if(this._start="{"===o?r:this._start,"}"!==o)return this._findSpecialChar(o)?i+o:i;this._end=r;const s=Number(e.slice(this._start+1,this._end)),a=new Array(s+1).join(e[this._start-1]);if(e.slice(0,this._start).length>1&&e.includes("S")){const l=e.slice(0,this._start-1);return l.includes("{")?i+a:l+i+a}return i+a},"")||e}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=we(t)))(o||t)}})()}static{this.\u0275prov=B({token:t,factory:t.\u0275fac})}}return t})();function PW(){const t=G(bO),n=G(yO);return n instanceof Function?{...t,...n()}:{...t,...n}}function py(t){return[{provide:yO,useValue:t},{provide:bO,useValue:wW},{provide:af,useFactory:PW},fy]}let CO=(()=>{class t{constructor(){this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this.leadZero=null,this.triggerOnMaskChange=null,this.apm=null,this.inputTransformFn=null,this.outputTransformFn=null,this.keepCharacterPositions=null,this.maskFilled=new de,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this._isFocused=!1,this._isComposing=!1,this.document=G($e),this._maskService=G(fy,{self:!0}),this._config=G(af),this.onChange=e=>{},this.onTouch=()=>{}}ngOnChanges(e){const{maskExpression:i,specialCharacters:o,patterns:r,prefix:s,suffix:a,thousandSeparator:l,decimalMarker:c,dropSpecialCharacters:d,hiddenInput:u,showMaskTyped:h,placeHolderCharacter:f,shownMaskExpression:p,showTemplate:_,clearIfNotMatch:y,validation:b,separatorLimit:M,allowNegativeNumbers:w,leadZeroDateTime:D,leadZero:P,triggerOnMaskChange:z,apm:W,inputTransformFn:Ce,outputTransformFn:lt,keepCharacterPositions:dn}=e;if(i&&(i.currentValue!==i.previousValue&&!i.firstChange&&(this._maskService.maskChanged=!0),i.currentValue&&i.currentValue.split("||").length>1?(this._maskExpressionArray=i.currentValue.split("||").sort((vt,yt)=>vt.length-yt.length),this._setMask()):(this._maskExpressionArray=[],this._maskValue=i.currentValue||"",this._maskService.maskExpression=this._maskValue)),o){if(!o.currentValue||!Array.isArray(o.currentValue))return;this._maskService.specialCharacters=o.currentValue||[]}w&&(this._maskService.allowNegativeNumbers=w.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.specialCharacters=this._maskService.specialCharacters.filter(vt=>"-"!==vt))),r&&r.currentValue&&(this._maskService.patterns=r.currentValue),W&&W.currentValue&&(this._maskService.apm=W.currentValue),s&&(this._maskService.prefix=s.currentValue),a&&(this._maskService.suffix=a.currentValue),l&&(this._maskService.thousandSeparator=l.currentValue),c&&(this._maskService.decimalMarker=c.currentValue),d&&(this._maskService.dropSpecialCharacters=d.currentValue),u&&(this._maskService.hiddenInput=u.currentValue),h&&(this._maskService.showMaskTyped=h.currentValue,!1===h.previousValue&&!0===h.currentValue&&this._isFocused&&requestAnimationFrame(()=>{this._maskService._elementRef?.nativeElement.click()})),f&&(this._maskService.placeHolderCharacter=f.currentValue),p&&(this._maskService.shownMaskExpression=p.currentValue),_&&(this._maskService.showTemplate=_.currentValue),y&&(this._maskService.clearIfNotMatch=y.currentValue),b&&(this._maskService.validation=b.currentValue),M&&(this._maskService.separatorLimit=M.currentValue),D&&(this._maskService.leadZeroDateTime=D.currentValue),P&&(this._maskService.leadZero=P.currentValue),z&&(this._maskService.triggerOnMaskChange=z.currentValue),Ce&&(this._maskService.inputTransformFn=Ce.currentValue),lt&&(this._maskService.outputTransformFn=lt.currentValue),dn&&(this._maskService.keepCharacterPositions=dn.currentValue),this._applyMask()}validate({value:e}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(e);if(this._maskService.cpfCnpjError)return this._createValidationError(e);if(this._maskValue.startsWith("separator")||EW.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(DW.includes(this._maskValue))return this._validateTime(e);if(e&&e.toString().length>=1){let i=0;if(this._maskValue.startsWith("percent"))return null;for(const o in this._maskService.patterns)if(this._maskService.patterns[o]?.optional&&(this._maskValue.indexOf(o)!==this._maskValue.lastIndexOf(o)?i+=this._maskValue.split("").filter(s=>s===o).join("").length:-1!==this._maskValue.indexOf(o)&&i++,-1!==this._maskValue.indexOf(o)&&e.toString().length>=this._maskValue.indexOf(o)||i===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&e.toString().length===this._maskValue.length+Number((this._maskValue.split("{")[1]??"").split("}")[0])-4)return null;if(this._maskValue.indexOf("*")>1&&e.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&e.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(e);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){e="number"==typeof e?String(e):e;const o=this._maskValue.split("*"),r=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkDropSpecialCharAmount(this._maskValue)-i:this.prefix?this._maskValue.length+this.prefix.length-i:this._maskValue.length-i;if(1===o.length&&e.toString().length<r)return this._createValidationError(e);if(o.length>1){const s=o[o.length-1];if(s&&this._maskService.specialCharacters.includes(s[0])&&String(e).includes(s[0]??"")&&!this.dropSpecialCharacters){const a=e.split(s[0]);return a[a.length-1].length===s.length-1?null:this._createValidationError(e)}return(s&&!this._maskService.specialCharacters.includes(s[0])||!s||this._maskService.dropSpecialCharacters)&&e.length>=r-1?null:this._createValidationError(e)}}if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null}return e&&this.maskFilled.emit(),null}onPaste(){this._justPasted=!0}onFocus(){this._isFocused=!0}onModelChange(e){(""===e||null==e)&&this._maskService.actualValue&&(this._maskService.actualValue=this._maskService.getActualValue(""))}onInput(e){if(this._isComposing)return;const i=e.target,o=this._maskService.inputTransformFn(i.value);if("number"!==i.type)if("string"==typeof o||"number"==typeof o){if(i.value=o.toString(),this._inputValue=i.value,this._setMask(),!this._maskValue)return void this.onChange(i.value);let r=1===i.selectionStart?i.selectionStart+this._maskService.prefix.length:i.selectionStart;if(this.showMaskTyped&&this.keepCharacterPositions&&1===this._maskService.placeHolderCharacter.length){const c=i.value.slice(r-1,r),d=this.prefix.length,u=this._maskService._checkSymbolMask(c,this._maskService.maskExpression[r-1-d]??""),h=this._maskService._checkSymbolMask(c,this._maskService.maskExpression[r+1-d]??""),f=this._maskService.selStart===this._maskService.selEnd,p=Number(this._maskService.selStart)-d,_=Number(this._maskService.selEnd)-d;if("Backspace"===this._code)if(f){if(!this._maskService.specialCharacters.includes(this._maskService.maskExpression.slice(r-this.prefix.length,r+1-this.prefix.length))&&f)if(1===p&&this.prefix)this._maskService.actualValue=this.prefix+this._maskService.placeHolderCharacter+i.value.split(this.prefix).join("").split(this.suffix).join("")+this.suffix,r-=1;else{const y=i.value.substring(0,r),b=i.value.substring(r);this._maskService.actualValue=y+this._maskService.placeHolderCharacter+b}}else this._maskService.actualValue=this._maskService.selStart===d?this.prefix+this._maskService.maskIsShown.slice(0,_)+this._inputValue.split(this.prefix).join(""):this._maskService.selStart===this._maskService.maskIsShown.length+d?this._inputValue+this._maskService.maskIsShown.slice(p,_):this.prefix+this._inputValue.split(this.prefix).join("").slice(0,p)+this._maskService.maskIsShown.slice(p,_)+this._maskService.actualValue.slice(_+d,this._maskService.maskIsShown.length+d)+this.suffix;"Backspace"!==this._code&&(u||h||!f?this._maskService.specialCharacters.includes(i.value.slice(r,r+1))&&h&&!this._maskService.specialCharacters.includes(i.value.slice(r+1,r+2))?(this._maskService.actualValue=i.value.slice(0,r-1)+i.value.slice(r,r+1)+c+i.value.slice(r+2),r+=1):u?this._maskService.actualValue=1===i.value.length&&1===r?this.prefix+c+this._maskService.maskIsShown.slice(1,this._maskService.maskIsShown.length)+this.suffix:i.value.slice(0,r-1)+c+i.value.slice(r+1).split(this.suffix).join("")+this.suffix:this.prefix&&1===i.value.length&&r-d==1&&this._maskService._checkSymbolMask(i.value,this._maskService.maskExpression[r-1-d]??"")&&(this._maskService.actualValue=this.prefix+i.value+this._maskService.maskIsShown.slice(1,this._maskService.maskIsShown.length)+this.suffix):r=Number(i.selectionStart)-1)}let s=0,a=!1;if("Delete"===this._code&&(this._maskService.deletedSpecialCharacter=!0),this._inputValue.length>=this._maskService.maskExpression.length-1&&"Backspace"!==this._code&&"d0/M0/0000"===this._maskService.maskExpression&&r<10){const c=this._inputValue.slice(r-1,r);i.value=this._inputValue.slice(0,r-1)+c+this._inputValue.slice(r+1)}if("d0/M0/0000"===this._maskService.maskExpression&&this.leadZeroDateTime&&(r<3&&Number(i.value)>31&&Number(i.value)<40||5===r&&Number(i.value.slice(3,5))>12)&&(r+=2),"Hh:m0:s0"===this._maskService.maskExpression&&this.apm&&(this._justPasted&&"00"===i.value.slice(0,2)&&(i.value=i.value.slice(1,2)+i.value.slice(2,i.value.length)),i.value="00"===i.value?"0":i.value),this._maskService.applyValueChanges(r,this._justPasted,"Backspace"===this._code||"Delete"===this._code,(c,d)=>{this._justPasted=!1,s=c,a=d}),this._getActiveElement()!==i)return;this._maskService.plusOnePosition&&(r+=1,this._maskService.plusOnePosition=!1),this._maskExpressionArray.length&&(r="Backspace"===this._code?this.specialCharacters.includes(this._inputValue.slice(r-1,r))?r-1:r:1===i.selectionStart?i.selectionStart+this._maskService.prefix.length:i.selectionStart),this._position=1===this._position&&1===this._inputValue.length?null:this._position;let l=this._position?this._inputValue.length+r+s:r+("Backspace"!==this._code||a?s:0);l>this._getActualInputLength()&&(l=i.value===this._maskService.decimalMarker&&1===i.value.length?this._getActualInputLength()+1:this._getActualInputLength()),l<0&&(l=0),i.setSelectionRange(l,l),this._position=null}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof o);else{if(!this._maskValue)return void this.onChange(i.value);this._maskService.applyValueChanges(i.value.length,this._justPasted,"Backspace"===this._code||"Delete"===this._code)}}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,this._justPasted=!0,this.onInput(e)}onBlur(e){if(this._maskValue){const i=e.target;if(this.leadZero&&i.value.length>0&&"string"==typeof this.decimalMarker){const o=this._maskService.maskExpression,r=Number(this._maskService.maskExpression.slice(o.length-1,o.length));if(r>1){i.value=this.suffix?i.value.split(this.suffix).join(""):i.value;const s=i.value.split(this.decimalMarker)[1];i.value=i.value.includes(this.decimalMarker)?i.value+"0".repeat(r-s.length)+this.suffix:i.value+this.decimalMarker+"0".repeat(r)+this.suffix,this._maskService.actualValue=i.value}}this._maskService.clearIfNotMatchFn()}this._isFocused=!1,this.onTouch()}onClick(e){if(!this._maskValue)return;const i=e.target;null!==i&&null!==i.selectionStart&&i.selectionStart===i.selectionEnd&&i.selectionStart>this._maskService.prefix.length&&38!==e.keyCode&&this._maskService.showMaskTyped&&!this.keepCharacterPositions&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),i.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===i.value?(i.focus(),i.setSelectionRange(0,0)):i.selectionStart>this._maskService.actualValue.length&&i.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const s=i&&(i.value===this._maskService.prefix?this._maskService.prefix+this._maskService.maskIsShown:i.value);i&&i.value!==s&&(i.value=s),i&&"number"!==i.type&&(i.selectionStart||i.selectionEnd)<=this._maskService.prefix.length?i.selectionStart=this._maskService.prefix.length:i&&i.selectionEnd>this._getActualInputLength()&&(i.selectionEnd=this._getActualInputLength())}onKeyDown(e){if(!this._maskValue)return;if(this._isComposing)return void("Enter"===e.key&&this.onCompositionEnd(e));this._code=e.code?e.code:e.key;const i=e.target;if(this._inputValue=i.value,this._setMask(),"number"!==i.type){if("ArrowUp"===e.key&&e.preventDefault(),"ArrowLeft"===e.key||"Backspace"===e.key||"Delete"===e.key){if("Backspace"===e.key&&0===i.value.length&&(i.selectionStart=i.selectionEnd),"Backspace"===e.key&&0!==i.selectionStart)if(this.specialCharacters=this.specialCharacters?.length?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&i.selectionStart<=this.prefix.length)i.setSelectionRange(this.prefix.length,i.selectionEnd);else if(this._inputValue.length!==i.selectionStart&&1!==i.selectionStart)for(;this.specialCharacters.includes((this._inputValue[i.selectionStart-1]??"").toString())&&(this.prefix.length>=1&&i.selectionStart>this.prefix.length||0===this.prefix.length);)i.setSelectionRange(i.selectionStart-1,i.selectionEnd);this.checkSelectionOnDeletion(i),this._maskService.prefix.length&&i.selectionStart<=this._maskService.prefix.length&&i.selectionEnd<=this._maskService.prefix.length&&e.preventDefault(),"Backspace"===e.key&&!i.readOnly&&0===i.selectionStart&&i.selectionEnd===i.value.length&&0!==i.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<i.selectionStart?i.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):("KeyA"===e.code&&e.ctrlKey||"KeyA"===e.code&&e.metaKey)&&(i.setSelectionRange(0,this._getActualInputLength()),e.preventDefault()),this._maskService.selStart=i.selectionStart,this._maskService.selEnd=i.selectionEnd}}writeValue(e){var i=this;return ct(function*(){if("object"==typeof e&&null!==e&&"value"in e&&("disable"in e&&i.setDisabledState(!!e.disable),e=e.value),null!==e&&(e=i.inputTransformFn?i.inputTransformFn(e):e),"string"==typeof e||"number"==typeof e||null==e){(null==e||""===e)&&(i._maskService._currentValue="",i._maskService._previousValue="");let o=e;if("number"==typeof o||i._maskValue.startsWith("separator")){o=String(o);const r=i._maskService.currentLocaleDecimalMarker();Array.isArray(i._maskService.decimalMarker)||(o=i._maskService.decimalMarker!==r?o.replace(r,i._maskService.decimalMarker):o),i._maskService.leadZero&&o&&i.maskExpression&&!1!==i.dropSpecialCharacters&&(o=i._maskService._checkPrecision(i._maskService.maskExpression,o)),","===i._maskService.decimalMarker&&(o=o.toString().replace(".",",")),i.maskExpression?.startsWith("separator")&&i.leadZero&&requestAnimationFrame(()=>{i._maskService.applyMask(o?.toString()??"",i._maskService.maskExpression)}),i._maskService.isNumberValue=!0}"string"!=typeof o&&(o=""),i._inputValue=o,i._setMask(),o&&i._maskService.maskExpression||i._maskService.maskExpression&&(i._maskService.prefix||i._maskService.showMaskTyped)?("function"!=typeof i.inputTransformFn&&(i._maskService.writingValue=!0),i._maskService.formElementProperty=["value",i._maskService.applyMask(o,i._maskService.maskExpression)],"function"!=typeof i.inputTransformFn&&(i._maskService.writingValue=!1)):i._maskService.formElementProperty=["value",o],i._inputValue=o}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof e)})()}registerOnChange(e){this._maskService.onChange=this.onChange=e}registerOnTouched(e){this.onTouch=e}_getActiveElement(e=this.document){const i=e?.activeElement?.shadowRoot;return i?.activeElement?this._getActiveElement(i):e.activeElement}checkSelectionOnDeletion(e){e.selectionStart=Math.min(Math.max(this.prefix.length,e.selectionStart),this._inputValue.length-this.suffix.length),e.selectionEnd=Math.min(Math.max(this.prefix.length,e.selectionEnd),this._inputValue.length-this.suffix.length)}setDisabledState(e){this._maskService.formElementProperty=["disabled",e]}_applyMask(){this._maskService.maskExpression=this._maskService._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(e){const i=this._maskValue.split("").filter(o=>":"!==o).length;return e&&(0==+(e[e.length-1]??-1)&&e.length<i||e.length<=i-2)?this._createValidationError(e):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(e){return{mask:{requiredMask:this._maskValue,actualValue:e}}}_setMask(){this._maskExpressionArray.some(e=>{if(e.split("").some(o=>this._maskService.specialCharacters.includes(o))&&this._inputValue&&!e.includes("S")||e.includes("{")){const o=this._maskService.removeMask(this._inputValue)?.length<=this._maskService.removeMask(e)?.length;if(o)return this._maskValue=this.maskExpression=this._maskService.maskExpression=e.includes("{")?this._maskService._repeatPatternSymbols(e):e,o;{const r=this._maskExpressionArray[this._maskExpressionArray.length-1]??"";this._maskValue=this.maskExpression=this._maskService.maskExpression=r.includes("{")?this._maskService._repeatPatternSymbols(r):r}}else{const o=this._maskService.removeMask(this._inputValue)?.split("").every((r,s)=>{const a=e.charAt(s);return this._maskService._checkSymbolMask(r,a)});if(o)return this._maskValue=this.maskExpression=this._maskService.maskExpression=e,o}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=A({type:t,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(i,o){1&i&&ge("paste",function(){return o.onPaste()})("focus",function(s){return o.onFocus(s)})("ngModelChange",function(s){return o.onModelChange(s)})("input",function(s){return o.onInput(s)})("compositionstart",function(s){return o.onCompositionStart(s)})("compositionend",function(s){return o.onCompositionEnd(s)})("blur",function(s){return o.onBlur(s)})("click",function(s){return o.onClick(s)})("keydown",function(s){return o.onKeyDown(s)})},inputs:{maskExpression:[j.None,"mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime",leadZero:"leadZero",triggerOnMaskChange:"triggerOnMaskChange",apm:"apm",inputTransformFn:"inputTransformFn",outputTransformFn:"outputTransformFn",keepCharacterPositions:"keepCharacterPositions"},outputs:{maskFilled:"maskFilled"},exportAs:["mask","ngxMask"],standalone:!0,features:[te([{provide:Ci,useExisting:t,multi:!0},{provide:Wt,useExisting:t,multi:!0},fy]),wn]})}}return t})();const OW=t=>({isMultiStep:t});function TW(t,n){if(1&t){const e=qt();N(0,"ids-form-field",3)(1,"input",4),ge("input",function(o){He(e);const r=H().$implicit;return ze(H().sanitizeInputOnChange(o,r))})("keydown",function(o){return He(e),ze(H(2).handleKeyDown(o))})("blur",function(o){He(e);const r=H().$implicit;return ze(H().handleBlur(o,r))}),V()()}if(2&t){const e=H().$implicit,i=H();R("label",e.fieldLabel)("errorMessage",i.getErrorMessage(i.form,e)),T(),R("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("type",e.fieldType||"text")("inputmode","cep"===e.fieldName?"numeric":"")("required",(e.validator===i.validatorTypes.required||e.validator===i.validatorTypes.postalcode)&&!i.removeRequired)("mask","cep"!==e.fieldName||i.removeRequired?null:"00000-000")("maxlength",i.removeRequired?null:"cep"===e.fieldName?9:150)("minlength",i.removeRequired?null:"numero"===e.fieldName?1:"endereco"===e.fieldName?3:"bairro"===e.fieldName||"cidade"===e.fieldName?2:null),X("data-testid",e.fieldName)}}function AW(t,n){if(1&t){const e=qt();N(0,"ids-form-field",3)(1,"input",5),ge("input",function(o){He(e);const r=H().$implicit;return ze(H().sanitizeInputOnChange(o,r))})("keydown",function(o){return He(e),ze(H(2).handleKeyDown(o))}),V()()}if(2&t){const e=H().$implicit,i=H();R("label",e.fieldLabel)("errorMessage",i.getErrorMessage(i.form,e)),T(),R("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("required",(e.validator===i.validatorTypes.required||e.validator===i.validatorTypes.postalcode)&&!i.removeRequired),X("data-testid",e.fieldName)}}function kW(t,n){if(1&t&&(N(0,"option",9),ue(1),V()),2&t){const e=n.$implicit;R("value",e.value),T(),st(" ",e.label," ")}}function NW(t,n){if(1&t&&(N(0,"ids-form-field",3)(1,"select",6),Ne(2,kW,2,2,"option",7),V(),N(3,"ids-icon",8),ue(4,"seta_baixo"),V()()),2&t){const e=H().$implicit,i=H();R("label",e.fieldLabel)("errorMessage",i.getErrorMessage(i.form,e)),T(),R("required",e.validator===i.validatorTypes.required&&!i.removeRequired)("formControlName",e.fieldName)("id",e.id)("name",e.fieldName),X("data-testid",e.fieldName),T(),R("ngForOf",e.options)}}function RW(t,n){if(1&t&&(kt(0),Ne(1,TW,2,12,"ids-form-field",2)(2,AW,2,7,"ids-form-field",2)(3,NW,5,8,"ids-form-field",2),Nt()),2&t){const e=n.$implicit;T(),R("ngIf","select"!==e.fieldType&&"number"!==e.fieldType),T(),R("ngIf","number"===e.fieldType),T(),R("ngIf","select"===e.fieldType)}}let FW=(()=>{class t{constructor(e,i,o){this.controlContainer=e,this.fieldService=i,this.fb=o,this.removeRequired=!1,this.isMultiStep=!1,this.addressFields=[],this.validatorTypes=Ie,this.getErrorMessage=this.fieldService.getErrorMessage}ngOnInit(){this.form=this.controlContainer.control,this.addFieldsControl(),this.updateAddressFields()}addFieldsControl(){const e=this.removeRequired?null:Un.required,i=this.removeRequired?null:[Un.required,zr.isValidPostalCode()];this.form.addControl("endereco",this.fb.control("",e)),this.form.addControl("numero",this.fb.control("",e)),this.form.addControl("complemento",this.fb.control("")),this.form.addControl("bairro",this.fb.control("",e)),this.form.addControl("cep",this.fb.control("",i)),this.form.addControl("cidade",this.fb.control("",e)),this.form.addControl("estado",this.fb.control("",e))}updateAddressFields(){for(const e of this.formFields)["endereco","complemento","numero","bairro","cidade","estado","cep"].includes(e.fieldName)&&this.addressFields.push(e)}sanitizeInputOnChange(e,i){const o=e.target,r=o.value,s=this.form.get(i.fieldName),a=c=>{o.value=c.toString(),s?.setValue(c)},l=(c,d)=>{c&&(o.value.length<d?c.setValidators([Un.minLength(d)]):c.clearValidators(),c.updateValueAndValidity())};switch(i.fieldName){case"endereco":case"bairro":case"cidade":case"numero":case"complemento":a(this.fieldService.sanitizeAddress(r)),"endereco"===i.fieldName?l(s,3):("cidade"===i.fieldName||"bairro"===i.fieldName)&&l(s,2);break;case"cep":a(this.fieldService.sanitizeCep(r))}}handleKeyDown(e){"Enter"===e.key&&e.preventDefault()}handleBlur(e,i){const o=this.form.get(i.fieldName);o&&""===o.value&&-1===["complemento"].indexOf(i.fieldName)&&o.setErrors({required:!0})}static{this.\u0275fac=function(i){return new(i||t)(C(ln),C(gO),C(Px))}}static{this.\u0275cmp=be({type:t,selectors:[["app-address-form"]],inputs:{formFields:"formFields",removeRequired:"removeRequired",isMultiStep:"isMultiStep"},decls:2,vars:5,consts:[[1,"address-container",3,"formGroup","ngClass"],[4,"ngFor","ngForOf"],[3,"label","errorMessage",4,"ngIf"],[3,"label","errorMessage"],["idsInput","","autocomplete","off",3,"input","keydown","blur","id","name","formControlName","type","inputmode","required","mask","maxlength","minlength"],["idsInput","","maxlength","1000000",3,"input","keydown","id","name","formControlName","required"],["idsNativeSelect","",3,"required","formControlName","id","name"],["idsNativeOption","",3,"value",4,"ngFor","ngForOf"],["variant","primary"],["idsNativeOption","",3,"value"]],template:function(i,o){1&i&&(N(0,"div",0),Ne(1,RW,4,3,"ng-container",1),V()),2&i&&(R("formGroup",o.form)("ngClass",Nm(3,OW,o.isMultiStep)),T(),R("ngForOf",o.addressFields))},dependencies:[ih,u_,Zn,Y_,tv,cc,_c,V_,j_,vc,Mh,Ih,y1,mc,Ch,ey,N1,Zh,Gi,CO],styles:[".address-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.address-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-outer-spin-button, .address-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.address-container[_ngcontent-%COMP%]   input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}@media screen and (min-width: 768px){.address-container[_ngcontent-%COMP%]:not(.isMultiStep){flex-direction:row;flex-wrap:wrap;gap:1rem}}.address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form[_ngcontent-%COMP%], .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form-ids[_ngcontent-%COMP%], .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   ids-form-field[_ngcontent-%COMP%]{--input-field-margin: 1rem}@media screen and (min-width: 768px){.address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form[_ngcontent-%COMP%]:first-child, .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form-ids[_ngcontent-%COMP%]:first-child, .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   ids-form-field[_ngcontent-%COMP%]:first-child{width:100%}.address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form[_ngcontent-%COMP%]:nth-child(2), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form-ids[_ngcontent-%COMP%]:nth-child(2), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   ids-form-field[_ngcontent-%COMP%]:nth-child(2){width:126px}.address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form[_ngcontent-%COMP%]:nth-child(3), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form-ids[_ngcontent-%COMP%]:nth-child(3), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   ids-form-field[_ngcontent-%COMP%]:nth-child(3){width:256px}.address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form[_ngcontent-%COMP%]:nth-child(4), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form-ids[_ngcontent-%COMP%]:nth-child(4), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   ids-form-field[_ngcontent-%COMP%]:nth-child(4){width:229px}.address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form[_ngcontent-%COMP%]:nth-child(5), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form-ids[_ngcontent-%COMP%]:nth-child(5), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   ids-form-field[_ngcontent-%COMP%]:nth-child(5){width:153px}.address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form[_ngcontent-%COMP%]:nth-child(6), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form-ids[_ngcontent-%COMP%]:nth-child(6), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   ids-form-field[_ngcontent-%COMP%]:nth-child(6){width:242px}.address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form[_ngcontent-%COMP%]:nth-child(7), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   app-input-form-ids[_ngcontent-%COMP%]:nth-child(7), .address-container[_ngcontent-%COMP%]:not(.isMultiStep)   ids-form-field[_ngcontent-%COMP%]:nth-child(7){width:140px}}.address-container.isMultiStep[_ngcontent-%COMP%]   app-input-form[_ngcontent-%COMP%], .address-container.isMultiStep[_ngcontent-%COMP%]   app-input-form-ids[_ngcontent-%COMP%], .address-container.isMultiStep[_ngcontent-%COMP%]   ids-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();const LW=["formRef"],BW=["main"];function VW(t,n){if(1&t&&(N(0,"div",15)(1,"h2",16),ue(2),V(),N(3,"p",17),ue(4),V()()),2&t){const e=H();T(2),Pn(e.formTitle),T(2),Pn(e.formSubtitle)}}function jW(t,n){if(1&t&&(kt(0),N(1,"ids-form-field",20),mn(2,"input",21),V(),Nt()),2&t){const e=H().$implicit,i=H();T(),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),T(),R("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("type",e.fieldType)("inputmode",e.inputMode||"")("pattern","email"===e.type?"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}":"")("maxlength","string_0_150"===e.validator?150:500),X("data-testid",e.fieldName)}}function HW(t,n){if(1&t){const e=qt();kt(0),N(1,"ids-form-field",20)(2,"input",22),ge("keydown.e",function(o){return He(e),ze(o.preventDefault())}),V()(),Nt()}if(2&t){const e=H().$implicit,i=H();T(),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),T(),R("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("aria-label",e.fieldLabel)("type",e.fieldType),X("data-testid",e.fieldName)}}function zW(t,n){if(1&t){const e=qt();kt(0),N(1,"ids-form-field",20)(2,"input",23),ge("input",function(o){He(e);const r=H().$implicit;return ze(H().sanitizeInputOnChange(o,r))}),V()(),Nt()}if(2&t){const e=H().$implicit,i=H();T(),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),T(),R("id",e.id)("type","text")("name",e.fieldName)("formControlName",e.fieldName),X("data-testid",e.fieldName)}}function $W(t,n){if(1&t){const e=qt();kt(0),N(1,"ids-form-field",20)(2,"input",24),ge("input",function(o){He(e);const r=H().$implicit;return ze(H().sanitizeInputOnChange(o,r))}),V()(),Nt()}if(2&t){const e=H().$implicit,i=H();T(),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),T(),R("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("idsMask",i.maskCpfCnpj),X("data-testid",e.fieldName)}}function UW(t,n){if(1&t){const e=qt();kt(0),N(1,"ids-form-field",20)(2,"input",25),ge("input",function(o){He(e);const r=H().$implicit;return ze(H().sanitizeInputOnChange(o,r))}),V()(),Nt()}if(2&t){const e=H().$implicit,i=H();T(),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),T(),R("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("type","tel")("idsMask",i.phoneMask)("inputmode","numeric"),X("data-testid",e.fieldName)}}function GW(t,n){if(1&t&&(N(0,"ids-form-selection",30),mn(1,"input",31),N(2,"span",27),ue(3),V()()),2&t){const e=n.index,i=H(2).$implicit;R("formArrayName",i.fieldName),T(),R("name",i.fieldName)("formControlName",e)("id",i.options[e].id),X("data-testid",i.options[e].id),T(2),Pn(i.options[e].description)}}function qW(t,n){if(1&t&&(kt(0),N(1,"ids-form-selection-group",26)(2,"legend",27),ue(3),V(),Ne(4,GW,4,6,"ids-form-selection",28),V(),N(5,"ids-form-message",29),ue(6),V(),Nt()),2&t){const e=H().$implicit,i=H();T(),R("id",e.id),T(2),Pn(e.fieldLabel),T(),R("ngForOf",i.getControls(e.fieldName)),T(),R("show",i.verifyError(e.fieldName)),T(),st(" ",i.errorMessage(i.form,e)," ")}}function WW(t,n){if(1&t&&(kt(0),mn(1,"app-address-form",32),Nt()),2&t){const e=H(2);T(),R("formFields",e.formFields)}}function JW(t,n){if(1&t&&(N(0,"option",36),ue(1),V()),2&t){const e=n.$implicit;R("value",e.value),T(),st(" ",e.label," ")}}function QW(t,n){if(1&t&&(kt(0),N(1,"ids-form-field",20)(2,"select",33),Ne(3,JW,2,2,"option",34),V(),N(4,"ids-icon",35),ue(5,"seta_baixo"),V()(),Nt()),2&t){const e=H().$implicit,i=H();T(),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),T(),R("required",e.validator||"")("formControlName",e.fieldName)("id",e.id)("name",e.fieldName),X("data-testid",e.fieldName),T(),R("ngForOf",e.options)}}function XW(t,n){if(1&t&&(N(0,"ids-form-selection"),mn(1,"input",38),N(2,"span",27),ue(3),V()()),2&t){const e=n.$implicit,i=H(2).$implicit;T(),R("id",e.id)("value",e.description)("name",i.fieldName)("formControlName",i.fieldName),X("data-testid",i.fieldName),T(2),Pn(e.description)}}function KW(t,n){if(1&t&&(kt(0),N(1,"ids-form-selection-group")(2,"legend",27),ue(3),V(),Ne(4,XW,4,6,"ids-form-selection",37),V(),N(5,"ids-form-message",29),ue(6),V(),Nt()),2&t){const e=H().$implicit,i=H();T(3),Pn(e.fieldLabel),T(),R("ngForOf",e.options),T(),R("show",i.verifyError(e.fieldName)),T(),st(" ",i.errorMessage(i.form,e)," ")}}function ZW(t,n){if(1&t){const e=qt();kt(0),N(1,"ids-form-field",20)(2,"input",39),ge("input",function(o){He(e);const r=H().$implicit;return ze(H().sanitizeInputOnChange(o,r))}),V()(),Nt()}if(2&t){const e=H().$implicit,i=H();T(),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),T(),R("config",i.currencyConfig(e.type||"BRL"))("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("type",e.fieldType),X("data-testid",e.fieldName)}}function YW(t,n){if(1&t){const e=qt();kt(0),N(1,"ids-form-field",20)(2,"input",40),ge("input",function(o){He(e);const r=H().$implicit;return ze(H().sanitizeInputOnChange(o,r))}),V()(),Nt()}if(2&t){const e=H().$implicit,i=H();T(),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),T(),R("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("type",e.fieldType)("idsMask",i.maskAgencia),X("data-testid",e.fieldName)}}function eJ(t,n){if(1&t){const e=qt();kt(0),N(1,"ids-form-field",20)(2,"input",41),ge("input",function(o){He(e);const r=H().$implicit;return ze(H().sanitizeInputOnChange(o,r))}),V()(),Nt()}if(2&t){const e=H().$implicit,i=H();T(),R("label",e.fieldLabel)("errorMessage",i.errorMessage(i.form,e)),T(),R("id",e.id)("name",e.fieldName)("formControlName",e.fieldName)("type",e.fieldType)("idsMask",i.maskConta),X("data-testid",e.fieldName)}}function tJ(t,n){if(1&t&&(N(0,"div",18),Ne(1,jW,3,10,"ng-container",19)(2,HW,3,8,"ng-container",19)(3,zW,3,7,"ng-container",19)(4,$W,3,7,"ng-container",19)(5,UW,3,9,"ng-container",19)(6,qW,7,5,"ng-container",19)(7,WW,2,1,"ng-container",19)(8,QW,6,8,"ng-container",19)(9,KW,7,4,"ng-container",19)(10,ZW,3,8,"ng-container",19)(11,YW,3,8,"ng-container",19)(12,eJ,3,8,"ng-container",19),V()),2&t){const e=n.$implicit;T(),R("ngIf","text"===e.fieldType&&("string_0_150"===e.validator||"string_mais_150"===e.validator)||"email"===e.fieldType),T(),R("ngIf","number"===e.fieldType&&"numero"!==e.fieldName),T(),R("ngIf","date"===e.fieldType&&"date_field"===e.validator),T(),R("ngIf","text"===e.fieldType&&"cpf_cnpj"===e.validator),T(),R("ngIf","text"===e.fieldType&&"telephone"===e.validator),T(),R("ngIf","checkbox"===e.fieldType&&e.options&&e.options.length>0),T(),R("ngIf","address"===e.fieldType),T(),R("ngIf","select"===e.fieldType&&"estado"!==e.fieldName),T(),R("ngIf","radio"===e.fieldType),T(),R("ngIf","text"===e.fieldType&&"moeda"===e.validator),T(),R("ngIf","text"===e.fieldType&&"agencia"===e.validator),T(),R("ngIf","text"===e.fieldType&&"conta"===e.validator)}}let nJ=(()=>{class t{constructor(e,i,o,r,s){this.formService=e,this.recaptchaV3Service=i,this.loaderService=o,this.fieldService=r,this.analyticsService=s,this.segment="varejo",this.formFields=[],this.form=new xr({},{updateOn:"change"}),this.errorMessage=(a,l)=>this.fieldService.getErrorMessage(a,l),this.contentError={show:!1,title:"",errors:[]},this.error={show:!1},this.success={show:!1},this.submittedError=!1,this.campaignName="",this.maskCpfCnpj=this.fieldService.maskCpfCnpj,this.phoneMask=this.fieldService.phoneMask,this.maskConta=this.fieldService.maskConta,this.maskAgencia=this.fieldService.maskAgencia,this.currencyConfig=a=>this.fieldService.currencyMaskConfig(a),this.initializeAnalytics()}initializeAnalytics(){var e=this;return ct(function*(){try{yield e.analyticsService.initSdk(),e.analyticsService.screenView()}catch(i){console.error("Failed to initialize analytics",i)}})()}ngOnInit(){this.formService.getForm(this.campaignId).subscribe(e=>{this.legalText=e.entries[0].legal_text,this.formTitle=e.entries[0].form_title,this.formSubtitle=e.entries[0].form_subtitle,this.formFields=this.fieldService.formatFormFields(e.entries[0].form_fields),this.fieldService.createFormControls(this.formFields,this.form),this.campaignName=this.formTitle}),this.isMobile=window.innerWidth<=480}ngAfterViewInit(){window.onload=()=>this.findHyperlinks()}onSubmit(){const e=this.form.controls;if(this.submittedError&&(this.submittedError=!1),this.form.valid){this.setCurrencyObj();const i=this.form.value;for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)){const r=i[o];if(r instanceof Array){const a=this.formFields.find(c=>c.fieldName===o)?.options,l=r.map((c,d)=>c?a[d].description:null).filter(c=>null!==c).join(",");i[o]=l}}this.addOverflow(),this.loaderService.start(),this.analyticsService.trackEvent({eventName:"click",action:`Faas:${this.campaignName}`,type:"btn",text:"enviar"}),this.recaptchaV3Service.execute(ei_recaptcha_action).subscribe({next:o=>{i.recaptchaToken=o,i.id_campanha=this.campaignId,this.formService.create(i).subscribe({next:r=>{this.formRef.nativeElement.style.visibility="hidden",this.loaderService.stop(),this.success.show=!0,this.successRef.onFocus(),this.contentError.show=!1,this.reset(e),this.analyticsService.trackEvent({eventName:"success",action:`Faas:${this.campaignName}`,type:"",text:"mensagem de sucesso:seus dados foram enviados com sucesso"})},error:r=>{this.formRef.nativeElement.style.visibility="hidden",this.contentError.show=!1,this.error={show:!0,description:r.error.errors[0].message},this.errorRef.onFocus(),this.loaderService.stop(),this.reset(e),this.analyticsService.trackEvent({eventName:"visualization",action:`Faas:${this.campaignName}`,type:"",text:`mensagem de erro:${String(this.error.description)}`})},complete:()=>{console.log("Form submission completed.")}})},error:o=>{this.formRef.nativeElement.style.visibility="hidden",this.contentError.show=!1,this.error={show:!0,description:"Ocorreu um erro inesperado"},this.errorRef.onFocus(),this.loaderService.stop(),this.reset(e),this.analyticsService.trackEvent({eventName:"visualization",action:`Faas:${this.campaignName}`,type:"",text:`mensagem de erro:${String(this.error.description)}`})},complete:()=>{console.log("ReCaptcha execution completed.")}})}else this.loaderService.stop(),this.verifyForm(this.form)}verifyForm(e){const i=Object.keys(e.controls),o=i.filter(a=>e.get(a).invalid),r=i.map(a=>e.get(a)),s=r.filter(a=>a.invalid);this.handleErrorValidation(s,o),this.submittedError=!0,r.forEach(a=>{a.markAsDirty(),a.markAsTouched(),(a instanceof xr||a instanceof Sh)&&this.verifyForm(a)})}handleErrorValidation(e,i){const o=e.length;if(o>0){const r=[];let s;i.forEach(a=>{const l=this.formFields.find(c=>c.fieldName===a);if(l&&this.form.get(a)?.errors&&(r.push({id:l.id,description:`O campo \u201c${l.fieldLabel}\u201d tem um erro de preenchimento`}),!s)){s=a;const d=document.querySelector(`input[name="${a}"]`),u=document.querySelector(`select[name="${a}"]`),h=document.querySelector('input[type="radio"]');(u||h)&&(h?.focus(),h?.scrollTo({top:0,behavior:"smooth"}),u?.focus(),u?.scrollTo({top:0,behavior:"smooth"})),d?.focus(),d?.scrollTo({top:0,behavior:"smooth"})}}),this.contentError={title:`Existem ${o} erros que precisam ser corrigidos:`,show:!0,errors:r},this.analyticsService.trackEvent({eventName:"visualization",action:`Faas:${this.campaignName}`,type:"",text:`mensagem de erro:${String(this.contentError.title)}`})}}verifyError(e){const i=this.form.get(e),o=i?.invalid&&(i?.touched||i?.dirty);return(this.submittedError&&o||!o&&"submit"!==i?.updateOn)&&this.changeFormUpdateStrategy(i,"change"),o}getControls(e){return this.form.get(e)?this.form.get(e).controls:null}onClose(e){"contentError"===e.type?this.contentError.show=e.show:(this.removeOverflow(),this[e.type].show=e.show,this.formRef.nativeElement.style.visibility="visible")}onFocus(e){const i=this.formRef.nativeElement[e];i&&("fieldset"===i.type?i.children[1].children[0].children[0].focus():i.focus())}changeFormUpdateStrategy(e,i){Object.defineProperty(e,"updateOn",{get:()=>i,configurable:!0})}reset(e){this.form.reset();for(const i in e)this.form.get(i)?.markAsUntouched(),this.form.get(i)?.markAsPristine()}addOverflow(){this.isMobile&&this.main.nativeElement.classList.add("handle-overflow")}removeOverflow(){const e=this.main.nativeElement.classList;e.contains("handle-overflow")&&e.remove("handle-overflow")}sanitizeInputOnChange(e,i){const o=e.target,r=o.value;(i.validator===Ie.stringMax150||i.validator===Ie.stringNoLimit)&&(o.value=this.fieldService.sanitizeString(r),this.form.get(i.fieldName)?.setValue(o.value)),i.validator===Ie.numberMax150&&(o.value=this.fieldService.sanitizeNumber(r),this.form.get(i.fieldName)?.setValue(Number(o.value))),i.validator===Ie.telephone&&(o.value=this.fieldService.sanitizePhone(r),this.form.get(i.fieldName)?.setValue(o.value)),i.validator===Ie.moeda&&this.form.get(i.fieldName)?.setValue(o.value),i.validator===Ie.cpfCnpj?(o.value=r.toUpperCase(),this.form.get(i.fieldName)?.setValue(o.value)):this.form.get(i.fieldName)?.setValue(o.value)}findHyperlinks(){Array.from(document.getElementsByClassName("legal-text")||[]).forEach(i=>{Array.from(i.getElementsByTagName("a")).forEach(r=>{r&&r.addEventListener("click",s=>{s.preventDefault(),this.analyticsService.trackEvent({eventName:"click",action:`Faas:${this.campaignName}`,type:"lnk",text:r.textContent??""})})})})}setCurrencyObj(){this.formFields.filter(i=>i.validator===Ie.moeda).forEach(i=>{const o=this.form.get(i.fieldName);if(o&&"string"==typeof o.value){const r=o.value,s="BRL"===i.type?r.replace(/[^0-9,]/g,"").replace(/,/g,"."):r.replace(/[^0-9.]/g,"").replace(/,/g,"."),a={type:i.type,minimum:i.minimum,maximum:i.maximum,formatted:r,value:parseFloat(s)};o.setValue(a)}})}static{this.\u0275fac=function(i){return new(i||t)(C(D9),C(_O),C(vO),C(gO),C(q1))}}static{this.\u0275cmp=be({type:t,selectors:[["lib-martech-faas"]],viewQuery:function(i,o){if(1&i&&(je(LW,5),je(BW,5),je(W1,5),je(G1,5)),2&i){let r;Z(r=Y())&&(o.formRef=r.first),Z(r=Y())&&(o.main=r.first),Z(r=Y())&&(o.errorRef=r.first),Z(r=Y())&&(o.successRef=r.first)}},inputs:{campaignId:"campaignId",segment:"segment"},decls:17,vars:9,consts:[["main",""],["successRef",""],["errorRef",""],["formRef",""],[1,"container","ids-content-section"],[1,"ids-container-lg",2,"width","100%"],[1,"box","ids-row"],["class","text-box",4,"ngIf"],[1,"main-box"],[3,"showChange","show"],[3,"showChange","show","description","campaignName"],["aria-labelledby","titleFormLead","role","form","idsForm","",1,"form-box",3,"ngSubmit","formGroup"],["class","control",4,"ngFor","ngForOf"],[1,"legal-text","ids-body-text","-xsmall",3,"innerHTML"],["idsMainButton","","data-testid","button-submit","full","","type","submit",3,"disabled"],[1,"text-box"],["id","titleFormLead",1,"ids-title","-small","-bold","title"],[1,"ids-overline-text","text-interface"],[1,"control"],[4,"ngIf"],[3,"label","errorMessage"],["idsInput","","required","",3,"id","name","formControlName","type","inputmode","pattern","maxlength"],["idsInput","","required","",3,"keydown.e","id","name","formControlName","aria-label","type"],["idsInput","","inputmode","numeric","mask","00/00/0000","maxlength","10","minlength","10","required","",3,"input","id","type","name","formControlName"],["idsInput","","type","text","maxlength","18","autocomplete","off","required","",3,"input","id","name","formControlName","idsMask"],["idsInput","","maxlength","15","required","",3,"input","id","name","formControlName","type","idsMask","inputmode"],[3,"id"],[1,"ids-color-text-body-1"],["class","checkbox-radio-control",3,"formArrayName",4,"ngFor","ngForOf"],["status","error",3,"show"],[1,"checkbox-radio-control",3,"formArrayName"],["idsCheckbox","","type","checkbox","aria-required","true",1,"form-control",3,"name","formControlName","id"],[3,"formFields"],["idsNativeSelect","",3,"required","formControlName","id","name"],["idsNativeOption","",3,"value",4,"ngFor","ngForOf"],["variant","primary"],["idsNativeOption","",3,"value"],[4,"ngFor","ngForOf"],["type","radio","idsRadioButton","",3,"id","value","name","formControlName"],["idsInput","","idsMask","currency","announce","","required","",3,"input","config","id","name","formControlName","type"],["idsInput","","maxlength","4","inputmode","numeric","required","",3,"input","id","name","formControlName","type","idsMask"],["idsInput","","inputmode","numeric","required","",3,"input","id","name","formControlName","type","idsMask"]],template:function(i,o){if(1&i){const r=qt();N(0,"div",4,0)(2,"div",5)(3,"div",6),Ne(4,VW,5,2,"div",7),N(5,"div",8)(6,"app-success",9,1),ge("showChange",function(a){return He(r),ze(o.onClose(a))}),V(),N(8,"app-error",10,2),ge("showChange",function(a){return He(r),ze(o.onClose(a))}),V(),mn(10,"app-loader"),N(11,"form",11,3),ge("ngSubmit",function(){return He(r),ze(o.onSubmit())}),Ne(13,tJ,13,12,"div",12),mn(14,"p",13),N(15,"button",14),ue(16,"Enviar"),V()()()()()()}2&i&&(T(4),R("ngIf",o.formTitle||o.formSubtitle),T(2),R("show",o.success.show),T(2),R("show",o.error.show)("description",o.error.description)("campaignName",o.campaignName),T(3),R("formGroup",o.form),T(2),R("ngForOf",o.formFields),T(),R("innerHTML",o.legalText,n0),T(),R("disabled",!o.form.valid))},dependencies:[u_,Zn,px,Y_,tv,cc,R_,_c,X_,V_,j_,vc,Mh,Ih,nv,mc,Ch,bh,G1,W1,SW,FW,y1,Zh,ty,F1,JG,ya,b1,L1,Yv,CO,Kv,Gi,ey,N1],styles:['@font-face{font-family:ItauDisplay-Light;font-style:normal;font-weight:300;src:url(itaudisplay_lt-webfont.eot),url(itaudisplay_lt-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_lt-webfont.woff2) format("woff2"),url(itaudisplay_lt-webfont.woff) format("woff"),url(itaudisplay_lt-webfont.ttf) format("truetype"),url(itaudisplay_lt-webfont.svg#itau_displaylight) format("svg")}@font-face{font-family:ItauDisplay-Regular;font-style:normal;font-weight:400;src:url(itaudisplay_rg-webfont.eot),url(itaudisplay_rg-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_rg-webfont.woff2) format("woff2"),url(itaudisplay_rg-webfont.woff) format("woff"),url(itaudisplay_rg-webfont.ttf) format("truetype"),url(itaudisplay_rg-webfont.svg#itau_displayregular) format("svg")}@font-face{font-family:ItauDisplay-Bold;font-style:normal;font-weight:700;src:url(itaudisplay_bd-webfont.eot),url(itaudisplay_bd-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_bd-webfont.woff2) format("woff2"),url(itaudisplay_bd-webfont.woff) format("woff"),url(itaudisplay_bd-webfont.ttf) format("truetype"),url(itaudisplay_bd-webfont.svg#itau_displaybold) format("svg")}@font-face{font-family:ItauDisplay-XBold;font-style:normal;font-weight:800;src:url(itaudisplay_xbd-webfont.eot),url(itaudisplay_xbd-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_xbd-webfont.woff2) format("woff2"),url(itaudisplay_xbd-webfont.woff) format("woff"),url(itaudisplay_xbd-webfont.ttf) format("truetype"),url(itaudisplay_xbd-webfont.svg#itau_displayxbold) format("svg")}@font-face{font-family:itau-font;font-style:normal;font-weight:900;src:url(itaudisplay_blk-webfont.eot),url(itaudisplay_blk-webfont.eot?#iefix) format("embedded-opentype"),url(itaudisplay_blk-webfont.woff2) format("woff2"),url(itaudisplay_blk-webfont.woff) format("woff"),url(itaudisplay_blk-webfont.ttf) format("truetype"),url(itaudisplay_blk-webfont.svg#itau_displayblack) format("svg")}@font-face{font-family:ItauText-Light;font-style:normal;font-weight:300;src:url(ItauText_Lt.eot),url(ItauText_Lt.eot?#iefix) format("embedded-opentype"),url(ItauText_Lt.woff2) format("woff2"),url(ItauText_Lt.woff) format("woff"),url(ItauText_Lt.ttf) format("truetype")}@font-face{font-family:ItauText-Regular;font-style:normal;font-weight:500;src:url(ItauText_Rg.eot),url(ItauText_Rg.eot?#iefix) format("embedded-opentype"),url(ItauText_Rg.woff2) format("woff2"),url(ItauText_Rg.woff) format("woff"),url(ItauText_Rg.ttf) format("truetype")}@font-face{font-family:ItauText-Bold;font-style:normal;font-weight:800;src:url(ItauText_Bd.eot),url(ItauText_Bd.eot?#iefix) format("embedded-opentype"),url(ItauText_Bd.woff2) format("woff2"),url(ItauText_Bd.woff) format("woff"),url(ItauText_Bd.ttf) format("truetype")}@font-face{font-family:ItauText-XBold;font-style:normal;font-weight:900;src:url(ItauText_XBd.eot),url(ItauText_XBd.eot?#iefix) format("embedded-opentype"),url(ItauText_XBd.woff2) format("woff2"),url(ItauText_XBd.woff) format("woff"),url(ItauText_XBd.ttf) format("truetype")}[_ngcontent-%COMP%]:root{--faas-primary-color: #ec7000;--faas-secondary-color: #dd6100;--faas-error-color: #781b8e;--faas-focus: #56504c;--faas-font-light: ItauDisplay-Light, sans-serif;--faas-font-regular: ItauText-Regular, sans-serif;--faas-font-bold: ItauText-Bold, sans-serif;--faas-font-xbold: ItauText-XBold, sans-serif}*[_ngcontent-%COMP%]{box-sizing:border-box;font:var(--ids_textStyle_f02_s16_h24_wrg, --faas-font-regular, "ItauText-Regular", sans-serif)}body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{margin:0;padding:0;scroll-behavior:smooth}fieldset[_ngcontent-%COMP%]{border:0;padding:0}.title[_ngcontent-%COMP%]{margin:0;max-width:493px}@media screen and (max-width: 768px){.title[_ngcontent-%COMP%]{font-size:24px}}.text-interface[_ngcontent-%COMP%]{font-family:var(--faas-font-regular, "ItauText-Regular", sans-serif);font-style:normal;font-weight:400;font-size:16px;line-height:150%;color:#595959}.btn-primary[_ngcontent-%COMP%]{cursor:pointer;font-family:var(--faas-font-bold, "ItauText-Bold", sans-serif);background-color:var(--faas-primary-color, #ec7000);border-radius:4px;border:1px solid var(--faas-secondary-color, #dd6100);height:48px;font-weight:700;color:#fff;font-size:20px;line-height:32px;width:398px}@media screen and (max-width: 768px){.btn-primary[_ngcontent-%COMP%]{width:259.5px}}@media screen and (max-width: 480px){.btn-primary[_ngcontent-%COMP%]{width:100%;font-size:16px}}@media screen and (max-width: 320px){.btn-primary[_ngcontent-%COMP%]{width:288px}}.btn-danger[_ngcontent-%COMP%]{cursor:pointer;background-color:#fff;border-radius:4px;border:1px solid #106eb0;height:30px;width:120px;font-family:var(--faas-font-bold, "ItauText-Bold", sans-serif);color:#106eb0;font-size:14px;line-height:24px}.invalid-feedback[_ngcontent-%COMP%]{color:var(--faas-error-color, #781b8e);font-size:12px;line-height:18px;margin:0}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=date][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=date][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}.uniclass[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #ec7000);border:1px solid var(--faas-secondary-color, #D9640B)}.family-office[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, "");border:1px solid var(--faas-secondary-color, "")}.cartoes[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .varejo[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .private-bank[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], .empresas[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #ec7000);border:1px solid var(--faas-secondary-color, #dd6100)}.personnalite-rebranding[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--faas-primary-color, #0d1733);border:1px solid var(--faas-secondary-color, #122047)}.container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column}.box[_ngcontent-%COMP%]{background-color:var(--ids_color_bg_base);padding:32px;border-radius:10px;gap:32px;display:flex;justify-content:center;align-items:center}@media screen and (max-width: 480px){.box[_ngcontent-%COMP%]{flex-direction:column;width:100%;box-shadow:none;background-color:transparent;padding:24px;gap:16px}}@media screen and (max-width: 768px){.box[_ngcontent-%COMP%]   .text-box[_ngcontent-%COMP%]{max-width:287.5px}}@media screen and (max-width: 480px){.box[_ngcontent-%COMP%]   .text-box[_ngcontent-%COMP%]{width:100%}}@media screen and (max-width: 320px){.box[_ngcontent-%COMP%]   .text-box[_ngcontent-%COMP%]{max-width:288px}}.box[_ngcontent-%COMP%]   .main-box[_ngcontent-%COMP%]{position:relative;border-radius:10px;border:1px solid var(--border-soft, #E1E9ED)}@media screen and (max-width: 480px){.box[_ngcontent-%COMP%]   .main-box[_ngcontent-%COMP%]{padding:0;width:100%;border:none}}.box[_ngcontent-%COMP%]   .form-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:32px}.box[_ngcontent-%COMP%]   .form-box[_ngcontent-%COMP%]   .control[_ngcontent-%COMP%]:nth-child(n){width:398px}@media screen and (max-width: 768px){.box[_ngcontent-%COMP%]   .form-box[_ngcontent-%COMP%]   .control[_ngcontent-%COMP%]:nth-child(n){width:316px}}@media screen and (max-width: 480px){.box[_ngcontent-%COMP%]   .form-box[_ngcontent-%COMP%]   .control[_ngcontent-%COMP%]:nth-child(n){width:100%}}@media screen and (max-width: 320px){.box[_ngcontent-%COMP%]   .form-box[_ngcontent-%COMP%]   .control[_ngcontent-%COMP%]:nth-child(n){width:288px}}@media screen and (max-width: 480px){.box[_ngcontent-%COMP%]   .form-box[_ngcontent-%COMP%]{padding:0}}.box[_ngcontent-%COMP%]   ids-form-selection-group[_ngcontent-%COMP%]   legend[_ngcontent-%COMP%]{padding-top:24px}p.legal-text.ids-body-text.-xsmall[_ngcontent-%COMP%]{color:var(--ids_color_text_body_02);margin:16px 0;width:398px}p.legal-text.ids-body-text.-xsmall[_ngcontent-%COMP%]   a.ids-link[_ngcontent-%COMP%]{font-weight:700}@media screen and (max-width: 768px){p.legal-text.ids-body-text.-xsmall[_ngcontent-%COMP%]{width:316px}}@media screen and (max-width: 480px){p.legal-text.ids-body-text.-xsmall[_ngcontent-%COMP%]{width:100%}}@media screen and (max-width: 320px){p.legal-text.ids-body-text.-xsmall[_ngcontent-%COMP%]{width:288px}}.form-group[_ngcontent-%COMP%]{margin-bottom:2rem}.input-label[_ngcontent-%COMP%]{font-size:16px;color:var(--faas-focus, #56504c);margin-bottom:10px}.uniclass[_ngcontent-%COMP%]   .input-label[_ngcontent-%COMP%], .family-office[_ngcontent-%COMP%]   .input-label[_ngcontent-%COMP%], .cartoes[_ngcontent-%COMP%]   .input-label[_ngcontent-%COMP%], .varejo[_ngcontent-%COMP%]   .input-label[_ngcontent-%COMP%], .private-bank[_ngcontent-%COMP%]   .input-label[_ngcontent-%COMP%], .empresas[_ngcontent-%COMP%]   .input-label[_ngcontent-%COMP%], .personnalite-rebranding[_ngcontent-%COMP%]   .input-label[_ngcontent-%COMP%]{color:var(--faas-focus, #56504c)}.handle-overflow[_ngcontent-%COMP%]{height:100vh;overflow:hidden}']})}}return t})();function MO(t){return new x(3e3,!1)}function Yo(t){switch(t.length){case 0:return new Tc;case 1:return t[0];default:return new s1(t)}}function IO(t,n,e=new Map,i=new Map){const o=[],r=[];let s=-1,a=null;if(n.forEach(l=>{const c=l.get("offset"),d=c==s,u=d&&a||new Map;l.forEach((h,f)=>{let p=f,_=h;if("offset"!==f)switch(p=t.normalizePropertyName(p,o),_){case"!":_=e.get(f);break;case go:_=i.get(f);break;default:_=t.normalizeStyleValue(f,p,_,o)}u.set(p,_)}),d||r.push(u),a=u,s=c}),o.length)throw function wJ(t){return new x(3502,!1)}();return r}function gy(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&my(e,"start",t)));break;case"done":t.onDone(()=>i(e&&my(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&my(e,"destroy",t)))}}function my(t,n,e){const r=_y(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(r._data=s),r}function _y(t,n,e,i,o="",r=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!s}}function Gn(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function SO(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const LJ=typeof document>"u"?null:document.documentElement;function vy(t){const n=t.parentNode||t.host||null;return n===LJ?null:n}let Ur=null,wO=!1;function DO(t,n){for(;n;){if(n===t)return!0;n=vy(n)}return!1}function EO(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let yy=(()=>{class t{validateStyleProperty(e){return function VJ(t){Ur||(Ur=function jJ(){return typeof document<"u"?document.body:null}()||{},wO=!!Ur.style&&"WebkitAppearance"in Ur.style);let n=!0;return Ur.style&&!function BJ(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Ur.style,!n&&wO&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Ur.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return DO(e,i)}getParentElement(e){return vy(e)}query(e,i,o){return EO(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,s,a=[],l){return new Tc(o,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac})}}return t})();class by{static{this.NOOP=new yy}}class Cy{}const zJ=1e3,My="ng-enter",lf="ng-leave",cf="ng-trigger",df=".ng-trigger",PO="ng-animating",Iy=".ng-animating";function vo(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Sy(parseFloat(n[1]),n[2])}function Sy(t,n){return"s"===n?t*zJ:t}function uf(t,n,e){return t.hasOwnProperty("duration")?t:function UJ(t,n,e){let o,r=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(MO()),{duration:0,delay:0,easing:""};o=Sy(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=Sy(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else o=t;if(!e){let a=!1,l=n.length;o<0&&(n.push(function iJ(){return new x(3100,!1)}()),a=!0),r<0&&(n.push(function oJ(){return new x(3101,!1)}()),a=!0),a&&n.splice(l,0,MO())}return{duration:o,delay:r,easing:s}}(t,n,e)}function Wi(t,n,e){n.forEach((i,o)=>{const r=Dy(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=i})}function Gr(t,n){n.forEach((e,i)=>{const o=Dy(i);t.style[o]=""})}function Bc(t){return Array.isArray(t)?1==t.length?t[0]:function BU(t,n=null){return{type:oe.Sequence,steps:t,options:n}}(t):t}const wy=new RegExp("{{\\s*(.+?)\\s*}}","g");function TO(t){let n=[];if("string"==typeof t){let e;for(;e=wy.exec(t);)n.push(e[1]);wy.lastIndex=0}return n}function Vc(t,n,e){const i=`${t}`,o=i.replace(wy,(r,s)=>{let a=n[s];return null==a&&(e.push(function sJ(t){return new x(3003,!1)}()),a=""),a.toString()});return o==i?t:o}const WJ=/-+([a-z0-9])/g;function Dy(t){return t.replace(WJ,(...n)=>n[1].toUpperCase())}function qn(t,n,e){switch(n.type){case oe.Trigger:return t.visitTrigger(n,e);case oe.State:return t.visitState(n,e);case oe.Transition:return t.visitTransition(n,e);case oe.Sequence:return t.visitSequence(n,e);case oe.Group:return t.visitGroup(n,e);case oe.Animate:return t.visitAnimate(n,e);case oe.Keyframes:return t.visitKeyframes(n,e);case oe.Style:return t.visitStyle(n,e);case oe.Reference:return t.visitReference(n,e);case oe.AnimateChild:return t.visitAnimateChild(n,e);case oe.AnimateRef:return t.visitAnimateRef(n,e);case oe.Query:return t.visitQuery(n,e);case oe.Stagger:return t.visitStagger(n,e);default:throw function aJ(t){return new x(3004,!1)}()}}function Ey(t,n){return window.getComputedStyle(t)[n]}const XJ=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 AO extends Cy{normalizePropertyName(n,e){return Dy(n)}normalizeStyleValue(n,e,i,o){let r="";const s=i.toString().trim();if(XJ.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function lJ(t,n){return new x(3005,!1)}())}return s+r}}const hf="*";const ff=new Set(["true","1"]),pf=new Set(["false","0"]);function kO(t,n){const e=ff.has(t)||pf.has(t),i=ff.has(n)||pf.has(n);return(o,r)=>{let s=t==hf||t==o,a=n==hf||n==r;return!s&&e&&"boolean"==typeof o&&(s=o?ff.has(t):pf.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?ff.has(n):pf.has(n)),s&&a}}const eQ=new RegExp("s*:selfs*,?","g");function xy(t,n,e,i){return new tQ(t).build(n,e,i)}class tQ{constructor(n){this._driver=n}build(n,e,i){const o=new oQ(e);return this._resetContextStyleTimingState(o),qn(this,Bc(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function cJ(){return new x(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==oe.State){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,e))}),l.name=c}else if(a.type==oe.Transition){const l=this.visitTransition(a,e);i+=l.queryCount,o+=l.depCount,s.push(l)}else e.errors.push(function dJ(){return new x(3007,!1)}())}),{type:oe.Trigger,name:n.name,states:r,transitions:s,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,s=o||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{TO(l).forEach(c=>{s.hasOwnProperty(c)||r.add(c)})})}),r.size&&e.errors.push(function uJ(t,n){return new x(3008,!1)}(0,r.values()))}return{type:oe.State,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=qn(this,Bc(n.animation),e),o=function KJ(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function ZJ(t,n,e){if(":"==t[0]){const l=function YJ(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(function CJ(t){return new x(3016,!1)}()),"* => *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function bJ(t){return new x(3015,!1)}()),n;const o=i[1],r=i[2],s=i[3];n.push(kO(o,s)),"<"==r[0]&&(o!=hf||s!=hf)&&n.push(kO(s,o))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:oe.Transition,matchers:o,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:qr(n.options)}}visitSequence(n,e){return{type:oe.Sequence,steps:n.steps.map(i=>qn(this,i,e)),options:qr(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(s=>{e.currentTime=i;const a=qn(this,s,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:oe.Group,steps:r,options:qr(n.options)}}visitAnimate(n,e){const i=function sQ(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Py(uf(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=Py(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=uf(e,n);return Py(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:Oc({});if(r.type==oe.Keyframes)o=this.visitKeyframes(r,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Oc(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,o=l}return e.currentAnimateTimings=null,{type:oe.Animate,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of o)"string"==typeof a?a===go?i.push(a):e.errors.push(new x(3002,!1)):i.push(new Map(Object.entries(a)));let r=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!r))for(let l of a.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:oe.Style,styles:i,easing:s,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),d=c.get(l);let u=!0;d&&(r!=o&&r>=d.startTime&&o<=d.endTime&&(e.errors.push(function fJ(t,n,e,i,o){return new x(3010,!1)}()),u=!1),r=d.startTime),u&&c.set(l,{startTime:r,endTime:o}),e.options&&function qJ(t,n,e){const i=n.params||{},o=TO(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function rJ(t){return new x(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:oe.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function pJ(){return new x(3011,!1)}()),i;let r=0;const s=[];let a=!1,l=!1,c=0;const d=n.steps.map(b=>{const M=this._makeStyleAst(b,e);let w=null!=M.offset?M.offset:function rQ(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(M.styles),D=0;return null!=w&&(r++,D=M.offset=w),l=l||D<0||D>1,a=a||D<c,c=D,s.push(D),M});l&&e.errors.push(function gJ(){return new x(3012,!1)}()),a&&e.errors.push(function mJ(){return new x(3200,!1)}());const u=n.steps.length;let h=0;r>0&&r<u?e.errors.push(function _J(){return new x(3202,!1)}()):0==r&&(h=1/(u-1));const f=u-1,p=e.currentTime,_=e.currentAnimateTimings,y=_.duration;return d.forEach((b,M)=>{const w=h>0?M==f?1:h*M:s[M],D=w*y;e.currentTime=p+_.delay+D,_.duration=D,this._validateStyleAst(b,e),b.offset=w,i.styles.push(b)}),i}visitReference(n,e){return{type:oe.Reference,animation:qn(this,Bc(n.animation),e),options:qr(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:oe.AnimateChild,options:qr(n.options)}}visitAnimateRef(n,e){return{type:oe.AnimateRef,animation:this.visitReference(n.animation,e),options:qr(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,s]=function nQ(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(eQ,"")),t=t.replace(/@\*/g,df).replace(/@\w+/g,e=>df+"-"+e.slice(1)).replace(/:animating/g,Iy),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,Gn(e.collectedStyles,e.currentQuerySelector,new Map);const a=qn(this,Bc(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:oe.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:qr(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function vJ(){return new x(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:uf(n.timings,e.errors,!0);return{type:oe.Stagger,animation:qn(this,Bc(n.animation),e),timings:i,options:null}}}class oQ{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function qr(t){return t?(t={...t}).params&&(t.params=function iQ(t){return t?{...t}:null}(t.params)):t={},t}function Py(t,n,e){return{duration:t,delay:n,easing:e}}function Oy(t,n,e,i,o,r,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:s,subTimeline:a}}class gf{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const cQ=new RegExp(":enter","g"),uQ=new RegExp(":leave","g");function Ty(t,n,e,i,o,r=new Map,s=new Map,a,l,c=[]){return(new hQ).buildKeyframes(t,n,e,i,o,r,s,a,l,c)}class hQ{buildKeyframes(n,e,i,o,r,s,a,l,c,d=[]){c=c||new gf;const u=new Ay(n,e,c,o,r,d,[]);u.options=l;const h=l.delay?vo(l.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,l),qn(this,i,u);const f=u.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let _=f.length-1;_>=0;_--){const y=f[_];if(y.element===e){p=y;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,u.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[Oy(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,o,o.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const o of n){const r=o?.delay;if(r){const s="number"==typeof r?r:vo(Vc(r,o?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const s=null!=i.duration?vo(i.duration):null,a=null!=i.delay?vo(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),qn(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){o.previousNode.type==oe.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=mf);const s=vo(r.delay);o.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>qn(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?vo(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);r&&a.delayNextStep(r),qn(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return uf(e.params?Vc(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;r.type==oe.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?vo(o.delay):0;r&&(e.previousNode.type===oe.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=mf);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(n.options,c);r&&u.delayNextStep(r),c===e.element&&(l=u.currentTimeline),qn(this,n.animation,u),u.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,s=Math.abs(r.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const d=e.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;qn(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-u+(o.startTime-i.currentTimeline.startTime)}}const mf={};class Ay{constructor(n,e,i,o,r,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=mf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new _f(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=vo(i.duration)),null!=i.delay&&(o.delay=vo(i.delay));const r=i.params;if(r){let s=o.params;s||(s=this.options.params={}),Object.keys(r).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Vc(r[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new Ay(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=mf,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},r=new fQ(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,s){let a=[];if(o&&a.push(this.element),n.length>0){n=(n=n.replace(cQ,"."+this._enterClassName)).replace(uQ,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&0==a.length&&s.push(function yJ(t){return new x(3014,!1)}()),a}}class _f{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new _f(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||go),this._currentKeyframe.set(e,go);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){e&&this._previousKeyframe.set("easing",e);const r=o&&o.params||{},s=function pQ(t,n){const e=new Map;let i;return t.forEach(o=>{if("*"===o){i??=n.keys();for(let r of i)e.set(r,go)}else for(let[r,s]of o)e.set(r,s)}),e}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=Vc(l,r,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??go),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{"!"===d?n.add(u):d===go&&e.add(u)}),i||c.set("offset",l/this.duration),o.push(c)});const r=[...n.values()],s=[...e.values()];if(i){const a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return Oy(this.element,o,r,s,this.duration,this.startTime,this.easing,!1)}}class fQ extends _f{constructor(n,e,i,o,r,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=i+e,a=e/s,l=new Map(n[0]);l.set("offset",0),r.push(l);const c=new Map(n[0]);c.set("offset",FO(a)),r.push(c);const d=n.length-1;for(let u=1;u<=d;u++){let h=new Map(n[u]);const f=h.get("offset");h.set("offset",FO((e+f*i)/s)),r.push(h)}i=s,e=0,o="",n=r}return Oy(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function FO(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function LO(t,n,e,i,o,r,s,a,l,c,d,u,h){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}const ky={};class BO{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function gQ(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,i):new Map}build(n,e,i,o,r,s,a,l,c,d){const u=[],h=this.ast.options&&this.ast.options.params||ky,p=this.buildStyles(i,a&&a.params||ky,u),_=l&&l.params||ky,y=this.buildStyles(o,_,u),b=new Set,M=new Map,w=new Map,D="void"===o,P={params:VO(_,h),delay:this.ast.options?.delay},z=d?[]:Ty(n,e,this.ast.animation,r,s,p,y,P,c,u);let W=0;return z.forEach(Ce=>{W=Math.max(Ce.duration+Ce.delay,W)}),u.length?LO(e,this._triggerName,i,o,D,p,y,[],[],M,w,W,u):(z.forEach(Ce=>{const lt=Ce.element,dn=Gn(M,lt,new Set);Ce.preStyleProps.forEach(yt=>dn.add(yt));const vt=Gn(w,lt,new Set);Ce.postStyleProps.forEach(yt=>vt.add(yt)),lt!==e&&b.add(lt)}),LO(e,this._triggerName,i,o,D,p,y,z,[...b.values()],M,w,W))}}function VO(t,n){const e={...n};return Object.entries(t).forEach(([i,o])=>{null!=o&&(e[i]=o)}),e}class mQ{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,o=VO(n,this.defaultParams);return this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((s,a)=>{s&&(s=Vc(s,o,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class vQ{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new mQ(o.style,o.options&&o.options.params||{},i))}),jO(this.states,"true","1"),jO(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new BO(n,o,this.states))}),this.fallbackTransition=function yQ(t,n,e){return new BO(t,{type:oe.Transition,animation:{type:oe.Sequence,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(s=>s.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function jO(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const bQ=new gf;class CQ{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=xy(this._driver,e,i,[]);if(i.length)throw function DJ(t){return new x(3503,!1)}();this._animations.set(n,r)}_buildPlayer(n,e,i){const o=n.element,r=IO(this._normalizer,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations.get(n);let s;const a=new Map;if(r?(s=Ty(this._driver,e,r,My,lf,new Map,new Map,i,bQ,o),s.forEach(d=>{const u=Gn(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(o.push(function EJ(){return new x(3300,!1)}()),s=[]),o.length)throw function xJ(t){return new x(3504,!1)}();a.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,go))})});const c=Yo(s.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function PJ(t){return new x(3301,!1)}();return e}listen(n,e,i,o){const r=_y(e,"","","");return gy(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const HO="ng-animate-queued",Ny="ng-animate-disabled",DQ=[],zO={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},EQ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ii="__ng_removed";class Ry{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function TQ(t){return t??null}(i?n.value:n),i){const{value:r,...s}=n;this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const jc="void",Fy=new Ry(jc);class xQ{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,ni(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.has(e))throw function OJ(t,n){return new x(3302,!1)}();if(null==i||0==i.length)throw function TJ(t){return new x(3303,!1)}();if(!function AQ(t){return"start"==t||"done"==t}(i))throw function AJ(t,n){return new x(3400,!1)}();const r=Gn(this._elementListeners,n,[]),s={name:e,phase:i,callback:o};r.push(s);const a=Gn(this._engine.statesByElement,n,new Map);return a.has(e)||(ni(n,cf),ni(n,cf+"-"+e),a.set(e,Fy)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(s);l>=0&&r.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function kJ(t){return new x(3401,!1)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),s=new Ly(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(ni(n,cf),ni(n,cf+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new Ry(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=Fy),c.value!==jc&&l.value===c.value){if(!function RQ(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o<e.length;o++){const r=e[o];if(!n.hasOwnProperty(r)||t[r]!==n[r])return!1}return!0}(l.params,c.params)){const _=[],y=r.matchStyles(l.value,l.params,_),b=r.matchStyles(c.value,c.params,_);_.length?this._engine.reportError(_):this._engine.afterFlush(()=>{Gr(n,y),Wi(n,b)})}return}const h=Gn(this._engine.playersByElement,n,[]);h.forEach(_=>{_.namespaceId==this.id&&_.triggerName==e&&_.queued&&_.destroy()});let f=r.matchTransition(l.value,c.value,n,c.params),p=!1;if(!f){if(!o)return;f=r.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(ni(n,HO),s.onStart(()=>{Ma(n,HO)})),s.onDone(()=>{let _=this.players.indexOf(s);_>=0&&this.players.splice(_,1);const y=this._engine.playersByElement.get(n);if(y){let b=y.indexOf(s);b>=0&&y.splice(b,1)}}),this.players.push(s),h.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,df,!0);i.forEach(o=>{if(o[Ii])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(s=>s.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),s=new Map;if(r){const a=[];if(r.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const d=this.trigger(n,c,jc,o);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&Yo(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const s=r.name;if(o.has(s))return;o.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||Fy,d=new Ry(jc),u=new Ly(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[Ii];(!r||r===zO)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){ni(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,s=this._elementListeners.get(r);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=_y(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,gy(i.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,s=o.transition.ast.depCount;return 0==r||0==s?r-s:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class PQ{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i,o){this.bodyNode=n,this.driver=e,this._normalizer=i,this.scheduler=o,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=(r,s)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new xQ(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=o.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(n,e,i,o){if(vf(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(n,e,i,o){if(!vf(e))return;const r=e[Ii];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),ni(n,Ny)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Ma(n,Ny))}removeNode(n,e,i){if(vf(e)){this.scheduler?.notify();const o=n?this._fetchNamespace(n):null;o?o.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const r=this.namespacesByHostElement.get(e);r&&r.id!==n&&r.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[Ii]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return vf(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,df,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,Iy,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Yo(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Ii];if(e&&e.setForRemoval){if(n[Ii]=zO,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(Ny)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)ni(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,n)}finally{for(let o=0;o<i.length;o++)i[o]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Yo(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function NJ(t){return new x(3402,!1)}()}_flushAnimations(n,e){const i=new gf,o=[],r=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(U=>{d.add(U);const J=this.driver.query(U,".ng-animate-queued",!0);for(let ee=0;ee<J.length;ee++)d.add(J[ee])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=GO(h,this.collectedEnterElements),p=new Map;let _=0;f.forEach((U,J)=>{const ee=My+_++;p.set(J,ee),U.forEach(Se=>ni(Se,ee))});const y=[],b=new Set,M=new Set;for(let U=0;U<this.collectedLeaveElements.length;U++){const J=this.collectedLeaveElements[U],ee=J[Ii];ee&&ee.setForRemoval&&(y.push(J),b.add(J),ee.hasAnimation?this.driver.query(J,".ng-star-inserted",!0).forEach(Se=>b.add(Se)):M.add(J))}const w=new Map,D=GO(h,Array.from(b));D.forEach((U,J)=>{const ee=lf+_++;w.set(J,ee),U.forEach(Se=>ni(Se,ee))}),n.push(()=>{f.forEach((U,J)=>{const ee=p.get(J);U.forEach(Se=>Ma(Se,ee))}),D.forEach((U,J)=>{const ee=w.get(J);U.forEach(Se=>Ma(Se,ee))}),y.forEach(U=>{this.processLeaveNode(U)})});const P=[],z=[];for(let U=this._namespaceList.length-1;U>=0;U--)this._namespaceList[U].drainQueuedTransitions(e).forEach(ee=>{const Se=ee.player,Dt=ee.element;if(P.push(Se),this.collectedEnterElements.length){const un=Dt[Ii];if(un&&un.setForMove){if(un.previousTriggersValues&&un.previousTriggersValues.has(ee.triggerName)){const Jr=un.previousTriggersValues.get(ee.triggerName),oi=this.statesByElement.get(ee.element);if(oi&&oi.has(ee.triggerName)){const Cf=oi.get(ee.triggerName);Cf.value=Jr,oi.set(ee.triggerName,Cf)}}return void Se.destroy()}}const ii=!u||!this.driver.containsElement(u,Dt),Cn=w.get(Dt),Ji=p.get(Dt),et=this._buildInstruction(ee,i,Ji,Cn,ii);if(et.errors&&et.errors.length)return void z.push(et);if(ii)return Se.onStart(()=>Gr(Dt,et.fromStyles)),Se.onDestroy(()=>Wi(Dt,et.toStyles)),void o.push(Se);if(ee.isFallbackTransition)return Se.onStart(()=>Gr(Dt,et.fromStyles)),Se.onDestroy(()=>Wi(Dt,et.toStyles)),void o.push(Se);const bf=[];et.timelines.forEach(un=>{un.stretchStartingKeyframe=!0,this.disabledNodes.has(un.element)||bf.push(un)}),et.timelines=bf,i.append(Dt,et.timelines),s.push({instruction:et,player:Se,element:Dt}),et.queriedElements.forEach(un=>Gn(a,un,[]).push(Se)),et.preStyleProps.forEach((un,Jr)=>{if(un.size){let oi=l.get(Jr);oi||l.set(Jr,oi=new Set),un.forEach((Cf,jy)=>oi.add(jy))}}),et.postStyleProps.forEach((un,Jr)=>{let oi=c.get(Jr);oi||c.set(Jr,oi=new Set),un.forEach((Cf,jy)=>oi.add(jy))})});if(z.length){const U=[];z.forEach(J=>{U.push(function RJ(t,n){return new x(3505,!1)}())}),P.forEach(J=>J.destroy()),this.reportError(U)}const W=new Map,Ce=new Map;s.forEach(U=>{const J=U.element;i.has(J)&&(Ce.set(J,J),this._beforeAnimationBuild(U.player.namespaceId,U.instruction,W))}),o.forEach(U=>{const J=U.element;this._getPreviousPlayers(J,!1,U.namespaceId,U.triggerName,null).forEach(Se=>{Gn(W,J,[]).push(Se),Se.destroy()})});const lt=y.filter(U=>WO(U,l,c)),dn=new Map;UO(dn,this.driver,M,c,go).forEach(U=>{WO(U,l,c)&&lt.push(U)});const yt=new Map;f.forEach((U,J)=>{UO(yt,this.driver,new Set(U),l,"!")}),lt.forEach(U=>{const J=dn.get(U),ee=yt.get(U);dn.set(U,new Map([...J?.entries()??[],...ee?.entries()??[]]))});const Xt=[],An=[],Wr={};s.forEach(U=>{const{element:J,player:ee,instruction:Se}=U;if(i.has(J)){if(d.has(J))return ee.onDestroy(()=>Wi(J,Se.toStyles)),ee.disabled=!0,ee.overrideTotalTime(Se.totalTime),void o.push(ee);let Dt=Wr;if(Ce.size>1){let Cn=J;const Ji=[];for(;Cn=Cn.parentNode;){const et=Ce.get(Cn);if(et){Dt=et;break}Ji.push(Cn)}Ji.forEach(et=>Ce.set(et,Dt))}const ii=this._buildAnimation(ee.namespaceId,Se,W,r,yt,dn);if(ee.setRealPlayer(ii),Dt===Wr)Xt.push(ee);else{const Cn=this.playersByElement.get(Dt);Cn&&Cn.length&&(ee.parentPlayer=Yo(Cn)),o.push(ee)}}else Gr(J,Se.fromStyles),ee.onDestroy(()=>Wi(J,Se.toStyles)),An.push(ee),d.has(J)&&o.push(ee)}),An.forEach(U=>{const J=r.get(U.element);if(J&&J.length){const ee=Yo(J);U.setRealPlayer(ee)}}),o.forEach(U=>{U.parentPlayer?U.syncPlayerEvents(U.parentPlayer):U.destroy()});for(let U=0;U<y.length;U++){const J=y[U],ee=J[Ii];if(Ma(J,lf),ee&&ee.hasAnimation)continue;let Se=[];if(a.size){let ii=a.get(J);ii&&ii.length&&Se.push(...ii);let Cn=this.driver.query(J,Iy,!0);for(let Ji=0;Ji<Cn.length;Ji++){let et=a.get(Cn[Ji]);et&&et.length&&Se.push(...et)}}const Dt=Se.filter(ii=>!ii.destroyed);Dt.length?kQ(this,J,Dt):this.processLeaveNode(J)}return y.length=0,Xt.forEach(U=>{this.players.push(U),U.onDone(()=>{U.destroy();const J=this.players.indexOf(U);this.players.splice(J,1)}),U.play()}),Xt}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!r||r==jc;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||s.push(c)})}}return(i||o)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const r=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,d=c!==r,u=Gn(i,c,[]);this._getPreviousPlayers(c,d,s,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),u.push(f)})}Gr(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,s){const a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,h=e.timelines.map(p=>{const _=p.element;d.add(_);const y=_[Ii];if(y&&y.removedBeforeQueried)return new Tc(p.duration,p.delay);const b=_!==l,M=function NQ(t){const n=[];return qO(t,n),n}((i.get(_)||DQ).map(W=>W.getRealPlayer())).filter(W=>!!W.element&&W.element===_),w=r.get(_),D=s.get(_),P=IO(this._normalizer,p.keyframes,w,D),z=this._buildPlayer(p,P,M);if(p.subTimeline&&o&&u.add(_),b){const W=new Ly(n,a,_);W.setRealPlayer(z),c.push(W)}return z});c.forEach(p=>{Gn(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function OQ(t,n,e){let i=t.get(n);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),d.forEach(p=>ni(p,PO));const f=Yo(h);return f.onDestroy(()=>{d.forEach(p=>Ma(p,PO)),Wi(l,e.toStyles)}),u.forEach(p=>{Gn(o,p,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new Tc(n.duration,n.delay)}}class Ly{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new Tc,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(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>gy(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){Gn(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function vf(t){return t&&1===t.nodeType}function $O(t,n){const e=t.style.display;return t.style.display=n??"none",e}function UO(t,n,e,i,o){const r=[];e.forEach(l=>r.push($O(l)));const s=[];i.forEach((l,c)=>{const d=new Map;l.forEach(u=>{const h=n.computeStyle(c,u,o);d.set(u,h),(!h||0==h.length)&&(c[Ii]=EQ,s.push(c))}),t.set(c,d)});let a=0;return e.forEach(l=>$O(l,r[a++])),s}function GO(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const o=new Set(n),r=new Map;function s(a){if(!a)return 1;let l=r.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:o.has(c)?1:s(c),r.set(a,l),l}return n.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function ni(t,n){t.classList?.add(n)}function Ma(t,n){t.classList?.remove(n)}function kQ(t,n,e){Yo(e).onDone(()=>t.processLeaveNode(n))}function qO(t,n){for(let e=0;e<t.length;e++){const i=t[e];i instanceof s1?qO(i.players,n):n.push(i)}}function WO(t,n,e){const i=e.get(t);if(!i)return!1;let o=n.get(t);return o?i.forEach(r=>o.add(r)):n.set(t,i),e.delete(t),!0}class Hc{constructor(n,e,i,o){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new PQ(n.body,e,i,o),this._timelineEngine=new CQ(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(n,e,i,o,r){const s=n+"-"+o;let a=this._triggerCache[s];if(!a){const l=[],d=xy(this._driver,r,l,[]);if(l.length)throw function SJ(t,n){return new x(3404,!1)}();a=function _Q(t,n,e){return new vQ(t,n,e)}(o,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,o,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,s]=SO(i);this._timelineEngine.command(r,e,s,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[s,a]=SO(i);return this._timelineEngine.listen(s,e,a,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class zc{static{this.initialStylesByElement=new WeakMap}constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let o=zc.initialStylesByElement.get(n);o||zc.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Wi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Wi(this._element,this._initialStyles),this._endStyles&&(Wi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(zc.initialStylesByElement.delete(this._element),this._startStyles&&(Gr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Gr(this._element,this._endStyles),this._endStyles=null),Wi(this._element,this._initialStyles),this._state=3)}}function By(t){let n=null;return t.forEach((e,i)=>{(function LQ(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class JO{constructor(n,e,i,o){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=o,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,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(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&n.set(o,this._finished?i:Ey(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class QO{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return DO(n,e)}getParentElement(n){return vy(n)}query(n,e,i){return EO(n,e,i)}computeStyle(n,e,i){return Ey(n,e)}animate(n,e,i,o,r,s=[]){const l={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const c=new Map,d=s.filter(f=>f instanceof JO);(function JJ(t,n){return 0===t||0===n})(i,o)&&d.forEach(f=>{f.currentSnapshot.forEach((p,_)=>c.set(_,p))});let u=function GJ(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}(e).map(f=>new Map(f));u=function QJ(t,n,e){if(e.size&&n.length){let i=n[0],o=[];if(e.forEach((r,s)=>{i.has(s)||o.push(s),i.set(s,r)}),o.length)for(let r=1;r<n.length;r++){let s=n[r];o.forEach(a=>s.set(a,Ey(t,a)))}}return n}(n,u,c);const h=function FQ(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=By(n[0]),n.length>1&&(i=By(n[n.length-1]))):n instanceof Map&&(e=By(n)),e||i?new zc(t,e,i):null}(n,u);return new JO(n,u,l,h)}}const XO="@.disabled";class KO{constructor(n,e,i,o){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==XO?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class BQ extends KO{constructor(n,e,i,o,r){super(e,i,o,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==XO?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function VQ(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.slice(1),s="";return"@"!=r.charAt(0)&&([r,s]=function jQ(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}class HQ{constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(o,r)=>{const s=r?.parentNode(o);s&&r.removeChild(s,o)}}createRenderer(n,e){const o=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){const c=this._rendererCache;let d=c.get(o);return d||(d=new KO("",o,this.engine,()=>c.delete(o)),c.set(o,d)),d}const r=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);const a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,s,n,c.name,c)};return e.data.animation.forEach(a),new BQ(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&n<this._microtaskId)return void this._zone.run(()=>e(i));const o=this._animationCallbacksBuffer;0==o.length&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{const[s,a]=r;s(a)}),this._animationCallbacksBuffer=[]})}),o.push([e,i])}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()}}const ZO=[{provide:Cy,useFactory:function $Q(){return new AO}},{provide:Hc,useClass:(()=>{class t extends Hc{constructor(e,i,o){super(e,i,o,G(lu,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(i){return new(i||t)(O($e),O(by),O(Cy))}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac})}}return t})()},{provide:Hg,useFactory:function UQ(t,n,e){return new HQ(t,n,e)},deps:[M_,Hc,pe]}],Vy=[{provide:by,useFactory:()=>new QO},{provide:Wp,useValue:"BrowserAnimations"},...ZO],YO=[{provide:by,useClass:yy},{provide:Wp,useValue:"NoopAnimations"},...ZO];let GQ=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?YO:Vy}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Pe({type:t})}static{this.\u0275inj=De({providers:Vy,imports:[lE]})}}return t})(),qQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Pe({type:t})}static{this.\u0275inj=De({providers:[py()],imports:[Yn,GQ,Ox,ny,Tx,ny,R1,Xv,A1,EG,Ko,w1,D1,RG,Yn,Ox,Tx]})}}return t})(),WQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Pe({type:t})}static{this.\u0275inj=De({providers:[Jx()],imports:[Yn,lE]})}}return t})(),JQ=(()=>{class t{constructor(e){this.injector=e}ngDoBootstrap(){const e=function V4(t,n){const e=function A4(t,n){return n.get(_r).resolveComponentFactory(t).inputs}(t,n.injector),i=n.strategyFactory||new F4(t,n.injector),o=function T4(t){const n={};return t.forEach(({propName:e,templateName:i,transform:o})=>{n[function D4(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(i)]=[e,o]}),n}(e);class r extends B4{static{this.observedAttributes=Object.keys(o)}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||n.injector);e.forEach(({propName:l,transform:c})=>{if(!this.hasOwnProperty(l))return;const d=this[l];delete this[l],a.setInputValue(l,d,c)})}return this._ngElementStrategy}constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,d){const[u,h]=o[a];this.ngElementStrategy.setInputValue(u,c,h)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return e.forEach(({propName:s,transform:a})=>{Object.defineProperty(r.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(l){this.ngElementStrategy.setInputValue(s,l,a)},configurable:!0,enumerable:!0})}),r}(nJ,{injector:this.injector});customElements.define("form-as-a-service",e)}static{this.\u0275fac=function(i){return new(i||t)(O(Gt))}}static{this.\u0275mod=Pe({type:t})}static{this.\u0275inj=De({providers:[py(),Jx(),{provide:mO,useValue:ei_recaptcha_siteKey}],imports:[qQ,WQ,ny,A1,KG,XG,O1,NG,l7,D1,VG,Ko,R1,MW]})}}return t})();Az().bootstrapModule(JQ).catch(t=>console.error(t))},511:(Qr,Ia,$c)=>{var yo;!function(ct,Mf,bt,ht){"use strict";var kn,er=["","webkit","Moz","MS","ms","o"],Qi=Mf.createElement("div"),ce="function",bo=Math.round,Xi=Math.abs,Uc=Date.now;function Sa(g,m,v){return setTimeout(Xr(g,v),m)}function Si(g,m,v){return!!Array.isArray(g)&&(ri(g,v[m],v),!0)}function ri(g,m,v){var I;if(g)if(g.forEach)g.forEach(m,v);else if(g.length!==ht)for(I=0;I<g.length;)m.call(v,g[I],I,g),I++;else for(I in g)g.hasOwnProperty(I)&&m.call(v,g[I],I,g)}function wa(g,m,v){var I="DEPRECATED METHOD: "+m+"\n"+v+" AT \n";return function(){var S=new Error("get-stack-trace"),$=S&&S.stack?S.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",ye=ct.console&&(ct.console.warn||ct.console.log);return ye&&ye.call(ct.console,I,$),g.apply(this,arguments)}}kn="function"!=typeof Object.assign?function(m){if(m===ht||null===m)throw new TypeError("Cannot convert undefined or null to object");for(var v=Object(m),I=1;I<arguments.length;I++){var S=arguments[I];if(S!==ht&&null!==S)for(var $ in S)S.hasOwnProperty($)&&(v[$]=S[$])}return v}:Object.assign;var Da=wa(function(m,v,I){for(var S=Object.keys(v),$=0;$<S.length;)(!I||I&&m[S[$]]===ht)&&(m[S[$]]=v[S[$]]),$++;return m},"extend","Use `assign`."),Gc=wa(function(m,v){return Da(m,v,!0)},"merge","Use `assign`.");function Kt(g,m,v){var S,I=m.prototype;(S=g.prototype=Object.create(I)).constructor=g,S._super=I,v&&kn(S,v)}function Xr(g,m){return function(){return g.apply(m,arguments)}}function tr(g,m){return typeof g==ce?g.apply(m&&m[0]||ht,m):g}function Ea(g,m){return g===ht?m:g}function nr(g,m,v){ri(ir(m),function(I){g.addEventListener(I,v,!1)})}function Ki(g,m,v){ri(ir(m),function(I){g.removeEventListener(I,v,!1)})}function Co(g,m){for(;g;){if(g==m)return!0;g=g.parentNode}return!1}function Mn(g,m){return g.indexOf(m)>-1}function ir(g){return g.trim().split(/\s+/g)}function or(g,m,v){if(g.indexOf&&!v)return g.indexOf(m);for(var I=0;I<g.length;){if(v&&g[I][v]==m||!v&&g[I]===m)return I;I++}return-1}function xa(g){return Array.prototype.slice.call(g,0)}function If(g,m,v){for(var I=[],S=[],$=0;$<g.length;){var ye=m?g[$][m]:g[$];or(S,ye)<0&&I.push(g[$]),S[$]=ye,$++}return v&&(I=m?I.sort(function(Ft,Yt){return Ft[m]>Yt[m]}):I.sort()),I}function Kr(g,m){for(var v,I,S=m[0].toUpperCase()+m.slice(1),$=0;$<er.length;){if((I=(v=er[$])?v+S:m)in g)return I;$++}return ht}var Sf=1;function Pa(g){var m=g.ownerDocument||g;return m.defaultView||m.parentWindow||ct}var Wc="ontouchstart"in ct,Oa=Kr(ct,"PointerEvent")!==ht,zy=Wc&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Zr="touch",Ta="mouse",wf=25,Ht=1,it=4,Zt=8,Aa=1,ve=2,Io=4,Zi=8,wi=16,Te=ve|Io,Di=Zi|wi,ka=Te|Di,Na=["x","y"],Wn=["clientX","clientY"];function zt(g,m){var v=this;this.manager=g,this.callback=m,this.element=g.element,this.target=g.options.inputTarget,this.domHandler=function(I){tr(g.options.enable,[g])&&v.handler(I)},this.init()}function Ra(g,m,v){var I=v.pointers.length,S=v.changedPointers.length,$=m&Ht&&I-S==0,ye=m&(it|Zt)&&I-S==0;v.isFirst=!!$,v.isFinal=!!ye,$&&(g.session={}),v.eventType=m,function Df(g,m){var v=g.session,I=m.pointers,S=I.length;v.firstInput||(v.firstInput=Yr(m)),S>1&&!v.firstMultiple?v.firstMultiple=Yr(m):1===S&&(v.firstMultiple=!1);var $=v.firstInput,ye=v.firstMultiple,xt=ye?ye.center:$.center,Ft=m.center=Ei(I);m.timeStamp=Uc(),m.deltaTime=m.timeStamp-$.timeStamp,m.angle=Fa(xt,Ft),m.distance=So(xt,Ft),function Ef(g,m){var v=m.center,I=g.offsetDelta||{},S=g.prevDelta||{},$=g.prevInput||{};(m.eventType===Ht||$.eventType===it)&&(S=g.prevDelta={x:$.deltaX||0,y:$.deltaY||0},I=g.offsetDelta={x:v.x,y:v.y}),m.deltaX=S.x+(v.x-I.x),m.deltaY=S.y+(v.y-I.y)}(v,m),m.offsetDirection=Qc(m.deltaX,m.deltaY);var Yt=rr(m.deltaTime,m.deltaX,m.deltaY);m.overallVelocityX=Yt.x,m.overallVelocityY=Yt.y,m.overallVelocity=Xi(Yt.x)>Xi(Yt.y)?Yt.x:Yt.y,m.scale=ye?function Pf(g,m){return So(m[0],m[1],Wn)/So(g[0],g[1],Wn)}(ye.pointers,I):1,m.rotation=ye?function La(g,m){return Fa(m[1],m[0],Wn)+Fa(g[1],g[0],Wn)}(ye.pointers,I):0,m.maxPointers=v.prevInput?m.pointers.length>v.prevInput.maxPointers?m.pointers.length:v.prevInput.maxPointers:m.pointers.length,function xf(g,m){var S,$,ye,xt,v=g.lastInterval||m,I=m.timeStamp-v.timeStamp;if(m.eventType!=Zt&&(I>wf||v.velocity===ht)){var Ft=m.deltaX-v.deltaX,Yt=m.deltaY-v.deltaY,B=rr(I,Ft,Yt);$=B.x,ye=B.y,S=Xi(B.x)>Xi(B.y)?B.x:B.y,xt=Qc(Ft,Yt),g.lastInterval=m}else S=v.velocity,$=v.velocityX,ye=v.velocityY,xt=v.direction;m.velocity=S,m.velocityX=$,m.velocityY=ye,m.direction=xt}(v,m);var B=g.element;Co(m.srcEvent.target,B)&&(B=m.srcEvent.target),m.target=B}(g,v),g.emit("hammer.input",v),g.recognize(v),g.session.prevInput=v}function Yr(g){for(var m=[],v=0;v<g.pointers.length;)m[v]={clientX:bo(g.pointers[v].clientX),clientY:bo(g.pointers[v].clientY)},v++;return{timeStamp:Uc(),pointers:m,center:Ei(m),deltaX:g.deltaX,deltaY:g.deltaY}}function Ei(g){var m=g.length;if(1===m)return{x:bo(g[0].clientX),y:bo(g[0].clientY)};for(var v=0,I=0,S=0;S<m;)v+=g[S].clientX,I+=g[S].clientY,S++;return{x:bo(v/m),y:bo(I/m)}}function rr(g,m,v){return{x:m/g||0,y:v/g||0}}function Qc(g,m){return g===m?Aa:Xi(g)>=Xi(m)?g<0?ve:Io:m<0?Zi:wi}function So(g,m,v){v||(v=Na);var I=m[v[0]]-g[v[0]],S=m[v[1]]-g[v[1]];return Math.sqrt(I*I+S*S)}function Fa(g,m,v){return v||(v=Na),180*Math.atan2(m[v[1]]-g[v[1]],m[v[0]]-g[v[0]])/Math.PI}zt.prototype={handler:function(){},init:function(){this.evEl&&nr(this.element,this.evEl,this.domHandler),this.evTarget&&nr(this.target,this.evTarget,this.domHandler),this.evWin&&nr(Pa(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&Ki(this.element,this.evEl,this.domHandler),this.evTarget&&Ki(this.target,this.evTarget,this.domHandler),this.evWin&&Ki(Pa(this.element),this.evWin,this.domHandler)}};var Ba={mousedown:Ht,mousemove:2,mouseup:it},es="mousedown",Of="mousemove mouseup";function wo(){this.evEl=es,this.evWin=Of,this.pressed=!1,zt.apply(this,arguments)}Kt(wo,zt,{handler:function(m){var v=Ba[m.type];v&Ht&&0===m.button&&(this.pressed=!0),2&v&&1!==m.which&&(v=it),this.pressed&&(v&it&&(this.pressed=!1),this.callback(this.manager,v,{pointers:[m],changedPointers:[m],pointerType:Ta,srcEvent:m}))}});var Tf={pointerdown:Ht,pointermove:2,pointerup:it,pointercancel:Zt,pointerout:Zt},Va={2:Zr,3:"pen",4:Ta,5:"kinect"},Do="pointerdown",Af="pointermove pointerup pointercancel";function ts(){this.evEl=Do,this.evWin=Af,zt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}ct.MSPointerEvent&&!ct.PointerEvent&&(Do="MSPointerDown",Af="MSPointerMove MSPointerUp MSPointerCancel"),Kt(ts,zt,{handler:function(m){var v=this.store,I=!1,S=m.type.toLowerCase().replace("ms",""),$=Tf[S],ye=Va[m.pointerType]||m.pointerType,xt=ye==Zr,Ft=or(v,m.pointerId,"pointerId");$&Ht&&(0===m.button||xt)?Ft<0&&(v.push(m),Ft=v.length-1):$&(it|Zt)&&(I=!0),!(Ft<0)&&(v[Ft]=m,this.callback(this.manager,$,{pointers:v,changedPointers:[m],pointerType:ye,srcEvent:m}),I&&v.splice(Ft,1))}});var ot={touchstart:Ht,touchmove:2,touchend:it,touchcancel:Zt};function Kc(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,zt.apply(this,arguments)}function Nf(g,m){var v=xa(g.touches),I=xa(g.changedTouches);return m&(it|Zt)&&(v=If(v.concat(I),"identifier",!0)),[v,I]}Kt(Kc,zt,{handler:function(m){var v=ot[m.type];if(v===Ht&&(this.started=!0),this.started){var I=Nf.call(this,m,v);v&(it|Zt)&&I[0].length-I[1].length==0&&(this.started=!1),this.callback(this.manager,v,{pointers:I[0],changedPointers:I[1],pointerType:Zr,srcEvent:m})}}});var re={touchstart:Ht,touchmove:2,touchend:it,touchcancel:Zt},Zc="touchstart touchmove touchend touchcancel";function Jn(){this.evTarget=Zc,this.targetIds={},zt.apply(this,arguments)}function Yc(g,m){var v=xa(g.touches),I=this.targetIds;if(m&(2|Ht)&&1===v.length)return I[v[0].identifier]=!0,[v,v];var S,$,ye=xa(g.changedTouches),xt=[],Ft=this.target;if($=v.filter(function(Yt){return Co(Yt.target,Ft)}),m===Ht)for(S=0;S<$.length;)I[$[S].identifier]=!0,S++;for(S=0;S<ye.length;)I[ye[S].identifier]&&xt.push(ye[S]),m&(it|Zt)&&delete I[ye[S].identifier],S++;return xt.length?[If($.concat(xt),"identifier",!0),xt]:void 0}Kt(Jn,zt,{handler:function(m){var v=re[m.type],I=Yc.call(this,m,v);I&&this.callback(this.manager,v,{pointers:I[0],changedPointers:I[1],pointerType:Zr,srcEvent:m})}});var Ct=2500;function ja(){zt.apply(this,arguments);var g=Xr(this.handler,this);this.touch=new Jn(this.manager,g),this.mouse=new wo(this.manager,g),this.primaryTouch=null,this.lastTouches=[]}function Nn(g,m){g&Ht?(this.primaryTouch=m.changedPointers[0].identifier,Rf.call(this,m)):g&(it|Zt)&&Rf.call(this,m)}function Rf(g){var m=g.changedPointers[0];if(m.identifier===this.primaryTouch){var v={x:m.clientX,y:m.clientY};this.lastTouches.push(v);var I=this.lastTouches;setTimeout(function(){var $=I.indexOf(v);$>-1&&I.splice($,1)},Ct)}}function ed(g){for(var m=g.srcEvent.clientX,v=g.srcEvent.clientY,I=0;I<this.lastTouches.length;I++){var S=this.lastTouches[I],$=Math.abs(m-S.x),ye=Math.abs(v-S.y);if($<=25&&ye<=25)return!0}return!1}Kt(ja,zt,{handler:function(m,v,I){var $=I.pointerType==Ta;if(!($&&I.sourceCapabilities&&I.sourceCapabilities.firesTouchEvents)){if(I.pointerType==Zr)Nn.call(this,v,I);else if($&&ed.call(this,I))return;this.callback(m,v,I)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var x=Kr(Qi.style,"touchAction"),Yi=x!==ht,sr="compute",td="manipulation",Eo="none",xo="pan-x",hn="pan-y",si=function nd(){if(!Yi)return!1;var g={},m=ct.CSS&&ct.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(v){g[v]=!m||ct.CSS.supports("touch-action",v)}),g}();function xi(g,m){this.manager=g,this.set(m)}xi.prototype={set:function(g){g==sr&&(g=this.compute()),Yi&&this.manager.element.style&&si[g]&&(this.manager.element.style[x]=g),this.actions=g.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var g=[];return ri(this.manager.recognizers,function(m){tr(m.options.enable,[m])&&(g=g.concat(m.getTouchAction()))}),function Po(g){if(Mn(g,Eo))return Eo;var m=Mn(g,xo),v=Mn(g,hn);return m&&v?Eo:m||v?m?xo:hn:Mn(g,td)?td:"auto"}(g.join(" "))},preventDefaults:function(g){var m=g.srcEvent,v=g.offsetDirection;if(!this.manager.session.prevented){var I=this.actions,S=Mn(I,Eo)&&!si[Eo],$=Mn(I,hn)&&!si[hn],ye=Mn(I,xo)&&!si[xo];if(S&&1===g.pointers.length&&g.distance<2&&g.deltaTime<250)return;return ye&&$||!(S||$&&v&Te||ye&&v&Di)?void 0:this.preventSrc(m)}m.preventDefault()},preventSrc:function(g){this.manager.session.prevented=!0,g.preventDefault()}};var Oo=1;function ai(g){this.options=kn({},this.defaults,g||{}),this.id=function Hy(){return Sf++}(),this.manager=null,this.options.enable=Ea(this.options.enable,!0),this.state=Oo,this.simultaneous={},this.requireFail=[]}function dt(g){return 16&g?"cancel":8&g?"end":4&g?"move":2&g?"start":""}function is(g){return g==wi?"down":g==Zi?"up":g==ve?"left":g==Io?"right":""}function za(g,m){var v=m.manager;return v?v.get(g):g}function Rn(){ai.apply(this,arguments)}function xe(){Rn.apply(this,arguments),this.pX=null,this.pY=null}function K(){Rn.apply(this,arguments)}function To(){ai.apply(this,arguments),this._timer=null,this._input=null}function $t(){Rn.apply(this,arguments)}function id(){Rn.apply(this,arguments)}function os(){ai.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ao(g,m){return(m=m||{}).recognizers=Ea(m.recognizers,Ao.defaults.preset),new od(g,m)}function od(g,m){this.options=kn({},Ao.defaults,m||{}),this.options.inputTarget=this.options.inputTarget||g,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=g,this.input=function Jc(g){return new(g.options.inputClass||(Oa?ts:zy?Jn:Wc?ja:wo))(g,Ra)}(this),this.touchAction=new xi(this,this.options.touchAction),Lf(this,!0),ri(this.options.recognizers,function(v){var I=this.add(new v[0](v[1]));v[2]&&I.recognizeWith(v[2]),v[3]&&I.requireFailure(v[3])},this)}function Lf(g,m){var I,v=g.element;v.style&&(ri(g.options.cssProps,function(S,$){I=Kr(v.style,$),m?(g.oldCssProps[I]=v.style[I],v.style[I]=S):v.style[I]=g.oldCssProps[I]||""}),m||(g.oldCssProps={}))}ai.prototype={defaults:{},set:function(g){return kn(this.options,g),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(g){if(Si(g,"recognizeWith",this))return this;var m=this.simultaneous;return m[(g=za(g,this)).id]||(m[g.id]=g,g.recognizeWith(this)),this},dropRecognizeWith:function(g){return Si(g,"dropRecognizeWith",this)||(g=za(g,this),delete this.simultaneous[g.id]),this},requireFailure:function(g){if(Si(g,"requireFailure",this))return this;var m=this.requireFail;return-1===or(m,g=za(g,this))&&(m.push(g),g.requireFailure(this)),this},dropRequireFailure:function(g){if(Si(g,"dropRequireFailure",this))return this;g=za(g,this);var m=or(this.requireFail,g);return m>-1&&this.requireFail.splice(m,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(g){return!!this.simultaneous[g.id]},emit:function(g){var m=this,v=this.state;function I(S){m.manager.emit(S,g)}v<8&&I(m.options.event+dt(v)),I(m.options.event),g.additionalEvent&&I(g.additionalEvent),v>=8&&I(m.options.event+dt(v))},tryEmit:function(g){if(this.canEmit())return this.emit(g);this.state=32},canEmit:function(){for(var g=0;g<this.requireFail.length;){if(!(this.requireFail[g].state&(32|Oo)))return!1;g++}return!0},recognize:function(g){var m=kn({},g);if(!tr(this.options.enable,[this,m]))return this.reset(),void(this.state=32);56&this.state&&(this.state=Oo),this.state=this.process(m),30&this.state&&this.tryEmit(m)},process:function(g){},getTouchAction:function(){},reset:function(){}},Kt(Rn,ai,{defaults:{pointers:1},attrTest:function(g){var m=this.options.pointers;return 0===m||g.pointers.length===m},process:function(g){var m=this.state,v=g.eventType,I=6&m,S=this.attrTest(g);return I&&(v&Zt||!S)?16|m:I||S?v&it?8|m:2&m?4|m:2:32}}),Kt(xe,Rn,{defaults:{event:"pan",threshold:10,pointers:1,direction:ka},getTouchAction:function(){var g=this.options.direction,m=[];return g&Te&&m.push(hn),g&Di&&m.push(xo),m},directionTest:function(g){var m=this.options,v=!0,I=g.distance,S=g.direction,$=g.deltaX,ye=g.deltaY;return S&m.direction||(m.direction&Te?(S=0===$?Aa:$<0?ve:Io,v=$!=this.pX,I=Math.abs(g.deltaX)):(S=0===ye?Aa:ye<0?Zi:wi,v=ye!=this.pY,I=Math.abs(g.deltaY))),g.direction=S,v&&I>m.threshold&&S&m.direction},attrTest:function(g){return Rn.prototype.attrTest.call(this,g)&&(2&this.state||!(2&this.state)&&this.directionTest(g))},emit:function(g){this.pX=g.deltaX,this.pY=g.deltaY;var m=is(g.direction);m&&(g.additionalEvent=this.options.event+m),this._super.emit.call(this,g)}}),Kt(K,Rn,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Eo]},attrTest:function(g){return this._super.attrTest.call(this,g)&&(Math.abs(g.scale-1)>this.options.threshold||2&this.state)},emit:function(g){1!==g.scale&&(g.additionalEvent=this.options.event+(g.scale<1?"in":"out")),this._super.emit.call(this,g)}}),Kt(To,ai,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(g){var m=this.options,v=g.pointers.length===m.pointers,I=g.distance<m.threshold,S=g.deltaTime>m.time;if(this._input=g,!I||!v||g.eventType&(it|Zt)&&!S)this.reset();else if(g.eventType&Ht)this.reset(),this._timer=Sa(function(){this.state=8,this.tryEmit()},m.time,this);else if(g.eventType&it)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(g){8===this.state&&(g&&g.eventType&it?this.manager.emit(this.options.event+"up",g):(this._input.timeStamp=Uc(),this.manager.emit(this.options.event,this._input)))}}),Kt($t,Rn,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Eo]},attrTest:function(g){return this._super.attrTest.call(this,g)&&(Math.abs(g.rotation)>this.options.threshold||2&this.state)}}),Kt(id,Rn,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Te|Di,pointers:1},getTouchAction:function(){return xe.prototype.getTouchAction.call(this)},attrTest:function(g){var v,m=this.options.direction;return m&(Te|Di)?v=g.overallVelocity:m&Te?v=g.overallVelocityX:m&Di&&(v=g.overallVelocityY),this._super.attrTest.call(this,g)&&m&g.offsetDirection&&g.distance>this.options.threshold&&g.maxPointers==this.options.pointers&&Xi(v)>this.options.velocity&&g.eventType&it},emit:function(g){var m=is(g.offsetDirection);m&&this.manager.emit(this.options.event+m,g),this.manager.emit(this.options.event,g)}}),Kt(os,ai,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[td]},process:function(g){var m=this.options,v=g.pointers.length===m.pointers,I=g.distance<m.threshold,S=g.deltaTime<m.time;if(this.reset(),g.eventType&Ht&&0===this.count)return this.failTimeout();if(I&&S&&v){if(g.eventType!=it)return this.failTimeout();var $=!this.pTime||g.timeStamp-this.pTime<m.interval,ye=!this.pCenter||So(this.pCenter,g.center)<m.posThreshold;if(this.pTime=g.timeStamp,this.pCenter=g.center,ye&&$?this.count+=1:this.count=1,this._input=g,0==this.count%m.taps)return this.hasRequireFailures()?(this._timer=Sa(function(){this.state=8,this.tryEmit()},m.interval,this),2):8}return 32},failTimeout:function(){return this._timer=Sa(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ao.VERSION="2.0.7",Ao.defaults={domEvents:!1,touchAction:sr,enable:!0,inputTarget:null,inputClass:null,preset:[[$t,{enable:!1}],[K,{enable:!1},["rotate"]],[id,{direction:Te}],[xe,{direction:Te},["swipe"]],[os],[os,{event:"doubletap",taps:2},["tap"]],[To]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},od.prototype={set:function(g){return kn(this.options,g),g.touchAction&&this.touchAction.update(),g.inputTarget&&(this.input.destroy(),this.input.target=g.inputTarget,this.input.init()),this},stop:function(g){this.session.stopped=g?2:1},recognize:function(g){var m=this.session;if(!m.stopped){this.touchAction.preventDefaults(g);var v,I=this.recognizers,S=m.curRecognizer;(!S||S&&8&S.state)&&(S=m.curRecognizer=null);for(var $=0;$<I.length;)v=I[$],2===m.stopped||S&&v!=S&&!v.canRecognizeWith(S)?v.reset():v.recognize(g),!S&&14&v.state&&(S=m.curRecognizer=v),$++}},get:function(g){if(g instanceof ai)return g;for(var m=this.recognizers,v=0;v<m.length;v++)if(m[v].options.event==g)return m[v];return null},add:function(g){if(Si(g,"add",this))return this;var m=this.get(g.options.event);return m&&this.remove(m),this.recognizers.push(g),g.manager=this,this.touchAction.update(),g},remove:function(g){if(Si(g,"remove",this))return this;if(g=this.get(g)){var m=this.recognizers,v=or(m,g);-1!==v&&(m.splice(v,1),this.touchAction.update())}return this},on:function(g,m){if(g!==ht&&m!==ht){var v=this.handlers;return ri(ir(g),function(I){v[I]=v[I]||[],v[I].push(m)}),this}},off:function(g,m){if(g!==ht){var v=this.handlers;return ri(ir(g),function(I){m?v[I]&&v[I].splice(or(v[I],m),1):delete v[I]}),this}},emit:function(g,m){this.options.domEvents&&function Gy(g,m){var v=Mf.createEvent("Event");v.initEvent(g,!0,!0),v.gesture=m,m.target.dispatchEvent(v)}(g,m);var v=this.handlers[g]&&this.handlers[g].slice();if(v&&v.length){m.type=g,m.preventDefault=function(){m.srcEvent.preventDefault()};for(var I=0;I<v.length;)v[I](m),I++}},destroy:function(){this.element&&Lf(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},kn(Ao,{INPUT_START:Ht,INPUT_MOVE:2,INPUT_END:it,INPUT_CANCEL:Zt,STATE_POSSIBLE:Oo,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:Aa,DIRECTION_LEFT:ve,DIRECTION_RIGHT:Io,DIRECTION_UP:Zi,DIRECTION_DOWN:wi,DIRECTION_HORIZONTAL:Te,DIRECTION_VERTICAL:Di,DIRECTION_ALL:ka,Manager:od,Input:zt,TouchAction:xi,TouchInput:Jn,MouseInput:wo,PointerEventInput:ts,TouchMouseInput:ja,SingleTouchInput:Kc,Recognizer:ai,AttrRecognizer:Rn,Tap:os,Pan:xe,Swipe:id,Pinch:K,Rotate:$t,Press:To,on:nr,off:Ki,each:ri,merge:Gc,extend:Da,assign:kn,inherit:Kt,bindFn:Xr,prefixed:Kr}),(typeof ct<"u"?ct:typeof self<"u"?self:{}).Hammer=Ao,(yo=function(){return Ao}.call(Ia,$c,Ia,Qr))!==ht&&(Qr.exports=yo)}(window,document)}},Qr=>{Qr(Qr.s=17)}]);
