1import{$ as b,$a as Ut,$b as me,Aa as tn,Ac as _n,Ba as en,Bc as vn,C as ai,Cc as En,Dc as bn,Ec as fi,Fc as Cn,G as H,Ga as pe,Gc as yn,Ha as on,Ia as nt,J as W,Ja as nn,K as B,Ka as y,Mb as fe,Nb as li,Oa as rn,Pa as sn,Qa as an,Sb as ln,T as Go,Ub as cn,W as qo,Wa as Dt,Xa as w,Ya as Yt,Za as vt,ab as Gt,b as Uo,bb as qt,bc as J,dc as ci,ec as ui,fa as zo,g as ue,ga as _t,hc as un,ia as Xo,ja as de,ka as Qo,kc as di,nc as he,pc as dn,qa as ft,ra as mt,rc as pn,sa as Jo,sb as P,ta as Zo,tc as fn,u as si,ua as Pe,uc as mn,va as Re,vc as pi,wa as j,xa as h,ya as f,yc as hn,za as Q,zc as gn}from"./chunk-A3JCXIPB.js";import{a as z,b as ri,f as ss,h as yt}from"./chunk-HHJ6TDNL.js";var An=class i{constructor(){this.avisoService=H(Cn);this.messagesServiceModal=H(ci);this.formBuilder=H(En);this.activatedRoute=H(ln);this.router=H(cn);this.dadosCompartilhadosService=H(ui);this.houveMudancaNoForm=!1;this.destroy$=new Uo;this.MSG_DADOS_PENDENTES=`<p class="fw-bolder"> ATEN\xC7\xC3O!</p> 2 <p> Nesta tela existem dados pendentes. Ao clicar neste bot\xE3o, eles n\xE3o ser\xE3o salvos. Tem certeza que deseja voltar?</p>`;this.MSG_LIMPAR="<p>Voc\xEA tem certeza de que deseja limpar as informa\xE7\xF5es desta tela?</p>";this.MSG_CAMPO_OBRIGATORIO="Este campo \xE9 obrigat\xF3rio";this.MSG_CAMPO_OBRIGATORIO_PEQ="Obrigat\xF3rio";this.platformService=H(yn)}verificaValidacoesForm(t){Object.keys(t.controls).forEach(e=>{let o=t.get(e);o?.markAsDirty(),o?.markAsTouched(),(o instanceof dn||o instanceof mn)&&this.verificaValidacoesForm(o)})}verificaValidTouched(t){return this.form.get(t)?.invalid&&(this.form.get(t)?.touched||this.form.get(t)?.dirty)}aplicaCssErro(t){return{"is-invalid":this.verificaValidTouched(t)}}formularioValido(){return this.verificaValidacoesForm(this.form),!this.form.valid&&this.form.status!="DISABLED"?(this.focusOnFirstInvalidField(),!1):!0}focusOnFirstInvalidField(){for(let t in this.form.controls)if(this.form.get(t)?.invalid){let o=document.getElementById(t);o&&o.focus();break}}limparForm(t){this.messagesServiceModal.openModalConfirmation(this.MSG_LIMPAR,t,e=>{e==="Sim"&&this.form.reset()})}verificaAlteracoesInputs(){return!!this.form.dirty}verificaSeHouveMudancaoNoForm(){this.form.valueChanges.subscribe(()=>{this.houveMudancaNoForm=!0})}platform(){return this.platformService.is("desktop")||this.platformService.is("mobileweb")?"WEB":this.platformService.is("android")?"ANDROID":this.platformService.is("ios")||this.platformService.is("iphone")||this.platformService.is("ipad")?"IOS":"WEB"}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275dir=Xo({type:i})}};var Tn=class i extends me{static{this.\u0275fac=(()=>{let t;return function(o){return(t||(t=qo(i)))(o||i)}})()}static{this.\u0275cmp=_t({type:i,selectors:[["app-custom-button-proximo"]],features:[Qo],decls:2,vars:1,consts:[["type","button","title","Pr\xF3ximo",1,"btn","btn-rounded",3,"click","disabled"]],template:function(e,o){e&1&&(tn(0,"button",0),nn("click",function(){return o.btnClickedEmit()}),w(1,` Pr\xF3ximo 3`),en()),e&2&&on("disabled",o.disabled())},styles:[".btn-rounded[_ngcontent-%COMP%]{border-radius:25px;background:#fff;color:#04335d;font-weight:700}.btn-rounded[_ngcontent-%COMP%]:hover{background-color:#467396;color:#fff}.btn-danger-custom[_ngcontent-%COMP%]{border-radius:25px;background:#f99;color:maroon;font-weight:700;position:relative;right:2px}.btn-danger-custom[_ngcontent-%COMP%]:hover{background-color:#fab6b6;color:maroon}"]})}};var bt=class{static convertDateToString(t){let e=new Date,o=e.getHours(),n=e.getMinutes(),r=e.getSeconds(),s=t.day<10?`0${t.day}`:t.day,a=t.month<10?`0${t.month}`:t.month,c=o<10?`0${o}`:o,d=n<10?`0${n}`:n,u=r<10?`0${r}`:r;return`${s}-${a}-${t.year} ${c}:${d}:${u}`}static convertDateToStringSemHora(t){let e=String(t.day).padStart(2,"0"),o=String(t.month).padStart(2,"0");return`${e}/${o}/${t.year}`}static convertStringToDate(t){let e;if(t&&(e=t.split("-"),e.length===3)){let o=parseInt(e[0],10),n=parseInt(e[1],10),r=parseInt(e[2],10);if(!isNaN(o)&&!isNaN(n)&&!isNaN(r))return{day:o,month:n,year:r}}return null}static applyTelMask(t){let e=t.value?.replace(/\D/g,"");e?.length>11&&(e=e?.slice(2,13)),e?.length>10?e=e?.replace(/^(\d{2})(\d{5})(\d{4})$/,"($1) $2-$3"):e?.length>6?e=e?.replace(/^(\d{2})(\d{4})(\d{0,4})$/,"($1) $2-$3"):e?.length>2?e=e?.replace(/^(\d{2})(\d{0,5})$/,"($1) $2"):e?.length>0&&(e=e?.replace(/^(\d{0,2})/,"($1")),t.setValue(e,{emitEvent:!1})}static applyTelMaskSemFormControl(t){let e="";return t&&(e=t?.replace(/\D/g,"")),e?.length>11&&(e=e?.slice(0,11)),e?.length>10?e=e?.replace(/^(\d{2})(\d{5})(\d{4})$/,"($1) $2-$3"):e?.length>6?e=e?.replace(/^(\d{2})(\d{4})(\d{0,4})$/,"($1) $2-$3"):e?.length>2?e=e?.replace(/^(\d{2})(\d{0,5})$/,"($1) $2"):e?.length>0&&(e=e?.replace(/^(\d{0,2})/,"($1")),e}static applyCepMask(t){let e=t.value?.replace(/\D/g,"");e.length>5&&(e=`${e.slice(0,5)}-${e.slice(5,8)}`),t.setValue(e,{emitEvent:!1})}static applyCpfMask(t){let e=t.value?.replace(/\D/g,"");e=e?.replace(/\D/g,""),e.length>11&&(e=e?.substring(0,11));let o=e?.replace(/(\d{3})(\d)/,"$1.$2")?.replace(/(\d{3})(\d)/,"$1.$2")?.replace(/(\d{3})(\d{2})$/,"$1-$2");t.setValue(o,{emitEvent:!1})}static applyRGMask(t){let e=t.value?.replace(/\D/g,"");e=e?.replace(/\D/g,""),e.length>10&&(e=e?.substring(0,10)),t.setValue(e,{emitEvent:!1})}static applyDateMask(t){let e=t.value;e=e.replace(/\D/g,""),e.length>8&&(e=e.substring(0,8));let o=e.substring(0,2),n=e.substring(2,4),r=e.substring(4,8),s=o;n&&(s+="/"+n),r&&(s+="/"+r),t.setValue(s,{emitEvent:!1})}static applyHeightMask(t){let e=t.value;e=String(e).replace(/\D/g,""),e.length>3&&(e=e.substring(0,3)),t.setValue(e,{emitEvent:!1})}static applyNumeroMask(t){let e=t.value;typeof e!="string"&&(e=String(e)),e=e?.replace(/\D/g,"");let o=e;t.setValue(o,{emitEvent:!1})}static applyMatriculaMask(t){let e=t.value.replace(/\D/g,"");e.length===32?e=e.replace(/^(\d{6})(\d{2})(\d{2})(\d{4})(\d{1})(\d{5})(\d{3})(\d{7})(\d{2})$/,"$1 $2 $3 $4 $5 $6 $7 $8 $9"):e.length>32&&(e=e.slice(0,32),e=e.replace(/^(\d{6})(\d{2})(\d{2})(\d{4})(\d{1})(\d{5})(\d{3})(\d{7})(\d{2})$/,"$1 $2 $3 $4 $5 $6 $7 $8 $9")),t.setValue(e,{emitEvent:!1})}static applyMatriculaMaskSemFormControl(t){let e="";return t&&(e=t.replace(/\D/g,"")),e&&e.length>40&&(e=e.slice(0,40)),e=e.replace(/^(\d{6})(\d{2})(\d{2})(\d{4})(\d{1})(\d{5})(\d{3})(\d{7})(\d{2})?$/,"$1 $2 $3 $4 $5 $6 $7 $8 $9"),e}static removeAcentuacao(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}static objetoMudou(t,e){let o=Object.keys(e),n=!1;for(let r of o)if(t[r]!==e[r]&&!this.ehUmObjeto(e[r]))return n=!0,n;return n}static ehUmObjeto(t){return!(typeof t=="string"||typeof t=="number"||typeof t=="boolean")}static telefoneFormatado(t){let e="";return t&&(e=t.replace(/\D/g,"")),e?.length>11&&(e=e?.slice(2,13)),e?.length>10&&(e=e?.replace(/^(\d{2})(\d{5})(\d{4})$/,"($1) $2-$3")),e}static obtemDDD(t){return t?t.replace(/[^0-9]/g,"").slice(0,2):null}static obtemNumeroTelefone(t){return t?t.replace(/[^0-9]/g,"").slice(2,12):null}};var Sn=class i{constructor(){this.http=H(li);this.messagesServiceModal=H(ci)}getTipoSexo(t){return yt(this,null,function*(){let e=J.config.serverUrlRemota+"/dominio/tipo-sexo";try{return{error:null,data:yield ue(this.http.get(e))}}catch(o){return o instanceof fe?(this.messagesServiceModal.openModal(o.error,t),{error:o,data:null}):(this.messagesServiceModal.openModal("Erro desconhecido",t),{error:new Error("Erro desconhecido"),data:null})}})}getTipoEstadoCivil(t){return yt(this,null,function*(){let e=J.config.serverUrlRemota+"/dominio/tipo-estado-civil";try{return{error:null,data:yield ue(this.http.get(e))}}catch(o){return o instanceof fe?(this.messagesServiceModal.openModal(o.error,t),{error:o,data:null}):(this.messagesServiceModal.openModal("Erro desconhecido",t),{error:new Error("Erro desconhecido"),data:null})}})}
3getTipoMotivoEncaminhamento(t){return yt(this,null,function*(){let e=J.config.serverUrlRemota+"/dominio/tipo-motivo-encaminhamento";try{return{error:null,data:yield ue(this.http.get(e))}}catch(o){return o instanceof fe?(this.messagesServiceModal.openModal(o.error,t),{error:o,data:null}):(this.messagesServiceModal.openModal("Erro desconhecido",t),{error:new Error("Erro desconhecido"),data:null})}})}getTipoInstrucao(){let t=J.config.serverUrlRemota+"/dominio/tipo-instrucao";return this.http.get(t).pipe(si())}getTipoCorOlhos(){let t=J.config.serverUrlRemota+"/dominio/tipo-cor-olhos";return this.http.get(t).pipe(si())}getTipoCorCutis(){let t=J.config.serverUrlRemota+"/dominio/tipo-cor-cutis";return this.http.get(t).pipe(si())}getUfs(){let t=J.config.serverUrlRemota+"/endereco/uf/lista";return this.http.get(t)}getMunicipios(t){let e=J.config.serverUrlRemota+"/endereco/municipio/lista/";return this.http.get(e+"?uf="+t)}getCNHs(){let t=J.config.serverUrlRemota+"/dominio/tipo-cnh-categoria";return this.http.get(t)}getTipoResponsavel(t){return yt(this,null,function*(){let e=J.config.serverUrlRemota+"/dominio/tipo-responsavel";try{return{error:null,data:yield ue(this.http.get(e))}}catch(o){return o instanceof fe?(this.messagesServiceModal.openModal(o.error,t),{error:o,data:null}):(this.messagesServiceModal.openModal("Erro desconhecido",t),{error:new Error("Erro desconhecido"),data:null})}})}getTipoIdProfissional(t){return yt(this,null,function*(){let e=J.config.serverUrlRemota+"/dominio/tipo-id-profissional";try{return{error:null,data:yield ue(this.http.get(e))}}catch(o){return o instanceof fe?(this.messagesServiceModal.openModal(o.error,t),{error:o,data:null}):(this.messagesServiceModal.openModal("Erro desconhecido",t),{error:new Error("Erro desconhecido"),data:null})}})}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=ai({token:i,factory:i.\u0275fac,providedIn:"root"})}};var as=(i,t)=>t.codigo;function ls(i,t){if(i&1&&(h(0,"option",3),w(1),f()),i&2){let e=t.$implicit;j("value",e),b(),vt(" ",e," ")}}function cs(i,t){if(i&1&&Pe(0,ls,2,2,"option",3,Zo),i&2){let e=y();Re(e.opcoes())}}function us(i,t){if(i&1&&(h(0,"option",4),w(1),f()),i&2){let e=t.$implicit;j("ngValue",e),b(),vt(" ",e.valor," ")}}function ds(i,t){if(i&1&&Pe(0,us,2,2,"option",4,as),i&2){let e=y();Re(e.opcoes())}}function ps(i,t){if(i&1&&(h(0,"small",2),w(1),f()),i&2){let e=y();b(),vt(" ",e.errorMessage()?e.errorMessage():"Este campo \xE9 obrigat\xF3rio")}}var wn=class i{constructor(){this.id=P();this.label=P();this.formControl=P.required();this.opcoes=P.required();this.errorMessage=P();this.ehArrayString=!1}ngOnInit(){typeof this.opcoes()[0]=="string"&&(this.ehArrayString=!0)}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=_t({type:i,selectors:[["app-custom-select"]],inputs:{id:[1,"id"],label:[1,"label"],formControl:[1,"formControl"],opcoes:[1,"opcoes"],errorMessage:[1,"errorMessage"]},decls:6,vars:8,consts:[[1,"form-label",3,"for"],[3,"formControl","id"],[1,"px-1","text-danger"],[3,"value"],[3,"ngValue"]],template:function(e,o){e&1&&(h(0,"label",0),w(1),f(),h(2,"select",1),ft(3,cs,2,0)(4,ds,2,0),f(),ft(5,ps,2,1,"small",2)),e&2&&(j("for",o.id()),b(),Yt(o.label()),b(),Dt(o.formControl().invalid&&o.formControl().touched?"form-select is-invalid":"form-select"),j("formControl",o.formControl())("id",o.id()),b(),mt(o.ehArrayString?3:4),b(2),mt(o.formControl().invalid&&o.formControl().touched?5:-1))},dependencies:[fi,gn,_n,hn,he,pi],encapsulation:2})}};function fs(i,t){if(i&1&&(h(0,"small",3),w(1),f()),i&2){let e=y(2);b(),vt(" ",e.errorMessage()?e.errorMessage():"Este campo \xE9 obrigat\xF3rio")}}function ms(i,t){if(i&1){let e=pe();h(0,"label",1),w(1),f(),h(2,"input",2),nt("input",function(){W(e);let n=y();return B(n.aplicaMascara())}),f(),ft(3,fs,2,1,"small",3)}if(i&2){let e=y();j("for",e.id()),b(),Yt(e.topLabel()),b(),Dt(e.formControl().invalid&&e.formControl().touched?"form-control rounded-pill is-invalid "+e.cssClass():"form-control rounded-pill "+e.cssClass()),j("id",e.id())("formControl",e.formControl())("type",e.type())("placeholder",e.placeholder())("ariaLabel",e.ariaLabel())("ariaDescription",e.ariaDescription())("maxlength",e.tamMax())("autocomplete",e.autocomplete()),b(),mt(e.formControl().invalid&&e.formControl().touched?3:-1)}}function hs(i,t){if(i&1&&(h(0,"small",3),w(1),f()),i&2){let e=y(2);b(),vt(" ",e.errorMessage()?e.errorMessage():"Este campo \xE9 obrigat\xF3rio"," ")}}function gs(i,t){if(i&1){let e=pe();h(0,"div",0)(1,"div",4)(2,"label",1),w(3),f()(),h(4,"div",5)(5,"div",6)(6,"input",2),nt("input",function(){W(e);let n=y();return B(n.aplicaMascara())}),f()(),h(7,"div",6),ft(8,hs,2,1,"small",3),f()()()}if(i&2){let e=y();b(2),j("for",e.id()),b(),Yt(e.leftLabel()),b(3),Dt(e.formControl().invalid&&e.formControl().touched?"form-control rounded-pill is-invalid":"form-control rounded-pill"),j("id",e.id())("formControl",e.formControl())("type",e.type())("placeholder",e.placeholder())("ariaLabel",e.ariaLabel())("ariaDescription",e.ariaDescription())("maxlength",e.tamMax())("autocomplete",e.autocomplete()),b(2),mt(e.formControl().invalid&&e.formControl().touched?8:-1)}}function _s(i,t){if(i&1&&(h(0,"small",7),w(1),f()),i&2){let e=y(2);b(),vt("",e.errorMessage()," ")}}function vs(i,t){if(i&1){let e=pe();h(0,"input",2),nt("input",function(){W(e);let n=y();return B(n.aplicaMascara())}),f(),h(1,"div",6),ft(2,_s,2,1,"small",7),f()}if(i&2){let e=y();Dt(e.formControl().invalid&&e.formControl().touched?"form-control rounded-pill is-invalid":"form-control rounded-pill"),j("id",e.id())("formControl",e.formControl())("type",e.type())("placeholder",e.placeholder())("ariaLabel",e.ariaLabel())("ariaDescription",e.ariaDescription())("maxlength",e.tamMax())("autocomplete",e.autocomplete()),b(2),mt(e.formControl().invalid&&e.formControl().touched?2:-1)}}var xn=class i{constructor(){this.type=P.required();this.id=P();this.placeholder=P("");this.cssClass=P("");this.formControl=P.required();this.topLabel=P();
3this.leftLabel=P();this.ariaLabel=P();this.ariaDescription=P();this.tpMask=P();this.tamMax=P();this.errorMessage=P();this.autocomplete=P("on")}ngOnInit(){this.tpMask()&&this.formControl().value&&this.aplicaMascara()}aplicaMascara(){switch(this.tpMask()){case"tel":bt.applyTelMask(this.formControl());break;case"cpf":bt.applyCpfMask(this.formControl());break;case"cep":bt.applyCepMask(this.formControl());break;case"hCentimetros":bt.applyHeightMask(this.formControl());break;case"numero":bt.applyNumeroMask(this.formControl());break;case"matricula":bt.applyMatriculaMask(this.formControl());break;default:break}}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=_t({type:i,selectors:[["app-custom-input"]],inputs:{type:[1,"type"],id:[1,"id"],placeholder:[1,"placeholder"],cssClass:[1,"cssClass"],formControl:[1,"formControl"],topLabel:[1,"topLabel"],leftLabel:[1,"leftLabel"],ariaLabel:[1,"ariaLabel"],ariaDescription:[1,"ariaDescription"],tpMask:[1,"tpMask"],tamMax:[1,"tamMax"],errorMessage:[1,"errorMessage"],autocomplete:[1,"autocomplete"]},decls:3,vars:1,consts:[[1,"row","align-items-center"],[1,"form-label",3,"for"],[3,"input","id","formControl","type","placeholder","ariaLabel","ariaDescription","maxlength","autocomplete"],[1,"px-1","text-danger"],[1,"col-auto"],[1,"col"],[1,"row"],[1,"pl-2","text-danger"]],template:function(e,o){e&1&&ft(0,ms,4,13)(1,gs,9,13,"div",0)(2,vs,3,11),e&2&&mt(o.topLabel()?0:o.leftLabel()?1:2)},dependencies:[fi,di,he,vn,pi],styles:[".white-label[_ngcontent-%COMP%]{color:#04335d}"]})}};var zi=(o=>(o[o.PENDENTE=0]="PENDENTE",o[o.SUCESSO=1]="SUCESSO",o[o.ERRO=2]="ERRO",o))(zi||{});var Ti={};ss(Ti,{afterMain:()=>In,afterRead:()=>Mn,afterWrite:()=>kn,applyStyles:()=>_e,arrow:()=>gi,auto:()=>ke,basePlacements:()=>At,beforeMain:()=>$n,beforeRead:()=>Nn,beforeWrite:()=>Pn,bottom:()=>R,clippingParents:()=>Xi,computeStyles:()=>Ee,createPopper:()=>Ue,createPopperBase:()=>Un,createPopperLite:()=>Gn,detectOverflow:()=>tt,end:()=>Mt,eventListeners:()=>be,flip:()=>bi,hide:()=>Ci,left:()=>M,main:()=>Ln,modifierPhases:()=>Ji,offset:()=>yi,placements:()=>Fe,popper:()=>zt,popperGenerator:()=>oe,popperOffsets:()=>Ae,preventOverflow:()=>Ai,read:()=>Dn,reference:()=>Qi,right:()=>I,start:()=>Ct,top:()=>N,variationPlacements:()=>hi,viewport:()=>Ve,write:()=>Rn});var N="top",R="bottom",I="right",M="left",ke="auto",At=[N,R,I,M],Ct="start",Mt="end",Xi="clippingParents",Ve="viewport",zt="popper",Qi="reference",hi=At.reduce(function(i,t){return i.concat([t+"-"+Ct,t+"-"+Mt])},[]),Fe=[].concat(At,[ke]).reduce(function(i,t){return i.concat([t,t+"-"+Ct,t+"-"+Mt])},[]),Nn="beforeRead",Dn="read",Mn="afterRead",$n="beforeMain",Ln="main",In="afterMain",Pn="beforeWrite",Rn="write",kn="afterWrite",Ji=[Nn,Dn,Mn,$n,Ln,In,Pn,Rn,kn];function K(i){return i?(i.nodeName||"").toLowerCase():null}function x(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var t=i.ownerDocument;return t&&t.defaultView||window}return i}function rt(i){var t=x(i).Element;return i instanceof t||i instanceof Element}function V(i){var t=x(i).HTMLElement;return i instanceof t||i instanceof HTMLElement}function ge(i){if(typeof ShadowRoot>"u")return!1;var t=x(i).ShadowRoot;return i instanceof t||i instanceof ShadowRoot}function Es(i){var t=i.state;Object.keys(t.elements).forEach(function(e){var o=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];!V(r)||!K(r)||(Object.assign(r.style,o),Object.keys(n).forEach(function(s){var a=n[s];a===!1?r.removeAttribute(s):r.setAttribute(s,a===!0?"":a)}))})}function bs(i){var t=i.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],r=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:e[o]),a=s.reduce(function(c,d){return c[d]="",c},{});!V(n)||!K(n)||(Object.assign(n.style,a),Object.keys(r).forEach(function(c){n.removeAttribute(c)}))})}}var _e={name:"applyStyles",enabled:!0,phase:"write",fn:Es,effect:bs,requires:["computeStyles"]};function Y(i){return i.split("-")[0]}var ht=Math.max,Xt=Math.min,Tt=Math.round;function ve(){var i=navigator.userAgentData;return i!=null&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function He(){return!/^((?!chrome|android).)*safari/i.test(ve())}function st(i,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var o=i.getBoundingClientRect(),n=1,r=1;t&&V(i)&&(n=i.offsetWidth>0&&Tt(o.width)/i.offsetWidth||1,r=i.offsetHeight>0&&Tt(o.height)/i.offsetHeight||1);
vendor: 10,200 bytes, line 3
3var s=rt(i)?x(i):window,a=s.visualViewport,c=!He()&&e,d=(o.left+(c&&a?a.offsetLeft:0))/n,u=(o.top+(c&&a?a.offsetTop:0))/r,g=o.width/n,_=o.height/r;return{width:g,height:_,top:u,right:d+g,bottom:u+_,left:d,x:d,y:u}}function Qt(i){var t=st(i),e=i.offsetWidth,o=i.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:i.offsetLeft,y:i.offsetTop,width:e,height:o}}function We(i,t){var e=t.getRootNode&&t.getRootNode();if(i.contains(t))return!0;if(e&&ge(e)){var o=t;do{if(o&&i.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Z(i){return x(i).getComputedStyle(i)}function Zi(i){return["table","td","th"].indexOf(K(i))>=0}function G(i){return((rt(i)?i.ownerDocument:i.document)||window.document).documentElement}function St(i){return K(i)==="html"?i:i.assignedSlot||i.parentNode||(ge(i)?i.host:null)||G(i)}function Vn(i){return!V(i)||Z(i).position==="fixed"?null:i.offsetParent}function Cs(i){var t=/firefox/i.test(ve()),e=/Trident/i.test(ve());if(e&&V(i)){var o=Z(i);if(o.position==="fixed")return null}var n=St(i);for(ge(n)&&(n=n.host);V(n)&&["html","body"].indexOf(K(n))<0;){var r=Z(n);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return n;n=n.parentNode}return null}function gt(i){for(var t=x(i),e=Vn(i);e&&Zi(e)&&Z(e).position==="static";)e=Vn(e);return e&&(K(e)==="html"||K(e)==="body"&&Z(e).position==="static")?t:e||Cs(i)||t}function Jt(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function Zt(i,t,e){return ht(i,Xt(t,e))}function Fn(i,t,e){var o=Zt(i,t,e);return o>e?e:o}function Be(){return{top:0,right:0,bottom:0,left:0}}function je(i){return Object.assign({},Be(),i)}function Ke(i,t){return t.reduce(function(e,o){return e[o]=i,e},{})}var ys=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,je(typeof t!="number"?t:Ke(t,At))};function As(i){var t,e=i.state,o=i.name,n=i.options,r=e.elements.arrow,s=e.modifiersData.popperOffsets,a=Y(e.placement),c=Jt(a),d=[M,I].indexOf(a)>=0,u=d?"height":"width";if(!(!r||!s)){var g=ys(n.padding,e),_=Qt(r),m=c==="y"?N:M,S=c==="y"?R:I,v=e.rects.reference[u]+e.rects.reference[c]-s[c]-e.rects.popper[u],C=s[c]-e.rects.reference[c],O=gt(r),$=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,L=v/2-C/2,E=g[m],A=$-_[u]-g[S],T=$/2-_[u]/2+L,D=Zt(E,T,A),U=c;e.modifiersData[o]=(t={},t[U]=D,t.centerOffset=D-T,t)}}function Ts(i){var t=i.state,e=i.options,o=e.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||We(t.elements.popper,n)&&(t.elements.arrow=n))}var gi={name:"arrow",enabled:!0,phase:"main",fn:As,effect:Ts,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function at(i){return i.split("-")[1]}var Ss={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ws(i,t){var e=i.x,o=i.y,n=t.devicePixelRatio||1;return{x:Tt(e*n)/n||0,y:Tt(o*n)/n||0}}function Hn(i){var t,e=i.popper,o=i.popperRect,n=i.placement,r=i.variation,s=i.offsets,a=i.position,c=i.gpuAcceleration,d=i.adaptive,u=i.roundOffsets,g=i.isFixed,_=s.x,m=_===void 0?0:_,S=s.y,v=S===void 0?0:S,C=typeof u=="function"?u({x:m,y:v}):{x:m,y:v};m=C.x,v=C.y;var O=s.hasOwnProperty("x"),$=s.hasOwnProperty("y"),L=M,E=N,A=window;if(d){var T=gt(e),D="clientHeight",U="clientWidth";if(T===x(e)&&(T=G(e),Z(T).position!=="static"&&a==="absolute"&&(D="scrollHeight",U="scrollWidth")),T=T,n===N||(n===M||n===I)&&r===Mt){E=R;var F=g&&T===A&&A.visualViewport?A.visualViewport.height:T[D];v-=F-o.height,v*=c?1:-1}if(n===M||(n===N||n===R)&&r===Mt){L=I;var k=g&&T===A&&A.visualViewport?A.visualViewport.width:T[U];m-=k-o.width,m*=c?1:-1}}var q=Object.assign({position:a},d&&Ss),dt=u===!0?ws({x:m,y:v},x(e)):{x:m,y:v};if(m=dt.x,v=dt.y,c){var X;return Object.assign({},q,(X={},X[E]=$?"0":"",X[L]=O?"0":"",X.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",X))}return Object.assign({},q,(t={},t[E]=$?v+"px":"",t[L]=O?m+"px":"",t.transform="",t))}function Os(i){var t=i.state,e=i.options,o=e.gpuAcceleration,n=o===void 0?!0:o,r=e.adaptive,s=r===void 0?!0:r,a=e.roundOffsets,c=a===void 0?!0:a,d={placement:Y(t.placement),variation:at(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Hn(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Hn(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Ee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Os,data:{}};var _i={passive:!0};function xs(i){var t=i.state,e=i.instance,o=i.options,n=o.scroll,r=n===void 0?!0:n,s=o.resize,a=s===void 0?!0:s,c=x(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&d.forEach(function(u){u.addEventListener("scroll",e.update,_i)}),a&&c.addEventListener("resize",e.update,_i),function(){r&&d.forEach(function(u){u.removeEventListener("scroll",e.update,_i)}),a&&c.removeEventListener("resize",e.update,_i)}}var be={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xs,data:{}};var Ns={left:"right",right:"left",bottom:"top",top:"bottom"};function Ce(i){return i.replace(/left|right|bottom|top/g,function(t){return Ns[t]})}var Ds={start:"end",end:"start"};function vi(i){return i.replace(/start|end/g,function(t){return Ds[t]})}function te(i){var t=x(i),e=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:e,scrollTop:o}}function ee(i){return st(G(i)).left+te(i).scrollLeft}function to(i,t){var e=x(i),o=G(i),n=e.visualViewport,r=o.clientWidth,s=o.clientHeight,a=0,c=0;if(n){r=n.width,s=n.height;var d=He();(d||!d&&t==="fixed")&&(a=n.offsetLeft,c=n.offsetTop)}return{width:r,height:s,x:a+ee(i),y:c}}function eo(i){var t,e=G(i),o=te(i),n=(t=i.ownerDocument)==null?void 0:t.body,r=ht(e.scrollWidth,e.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=ht(e.scrollHeight,e.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+ee(i),c=-o.scrollTop;return Z(n||e).direction==="rtl"&&(a+=ht(e.clientWidth,n?n.clientWidth:0)-r),{width:r,height:s,x:a,y:c}}function ie(i){var t=Z(i),e=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+n+o)}function Ei(i){return["html","body","#document"].indexOf(K(i))>=0?i.ownerDocument.body:V(i)&&ie(i)?i:Ei(St(i))}function $t(i,t){var e;t===void 0&&(t=[]);var o=Ei(i),n=o===((e=i.ownerDocument)==null?void 0:e.body),r=x(o),s=n?[r].concat(r.visualViewport||[],ie(o)?o:[]):o,a=t.concat(s);return n?a:a.concat($t(St(s)))}function ye(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function Ms(i,t){var e=st(i,!1,t==="fixed");return e.top=e.top+i.clientTop,e.left=e.left+i.clientLeft,e.bottom=e.top+i.clientHeight,e.right=e.left+i.clientWidth,e.width=i.clientWidth,e.height=i.clientHeight,e.x=e.left,e.y=e.top,e}function Wn(i,t,e){return t===Ve?ye(to(i,e)):rt(t)?Ms(t,e):ye(eo(G(i)))}function $s(i){var t=$t(St(i)),e=["absolute","fixed"].indexOf(Z(i).position)>=0,o=e&&V(i)?gt(i):i;return rt(o)?t.filter(function(n){return rt(n)&&We(n,o)&&K(n)!=="body"}):[]}function io(i,t,e,o){var n=t==="clippingParents"?$s(i):[].concat(t),r=[].concat(n,[e]),s=r[0],a=r.reduce(function(c,d){var u=Wn(i,d,o);return c.top=ht(u.top,c.top),c.right=Xt(u.right,c.right),c.bottom=Xt(u.bottom,c.bottom),c.left=ht(u.left,c.left),c},Wn(i,s,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ye(i){var t=i.reference,e=i.element,o=i.placement,n=o?Y(o):null,r=o?at(o):null,s=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,c;switch(n){case N:c={x:s,y:t.y-e.height};break;case R:c={x:s,y:t.y+t.height};break;case I:c={x:t.x+t.width,y:a};break;case M:c={x:t.x-e.width,y:a};break;default:c={x:t.x,y:t.y}}var d=n?Jt(n):null;if(d!=null){var u=d==="y"?"height":"width";switch(r){case Ct:c[d]=c[d]-(t[u]/2-e[u]/2);break;case Mt:c[d]=c[d]+(t[u]/2-e[u]/2);break;default:}}return c}function tt(i,t){t===void 0&&(t={});var e=t,o=e.placement,n=o===void 0?i.placement:o,r=e.strategy,s=r===void 0?i.strategy:r,a=e.boundary,c=a===void 0?Xi:a,d=e.rootBoundary,u=d===void 0?Ve:d,g=e.elementContext,_=g===void 0?zt:g,m=e.altBoundary,S=m===void 0?!1:m,v=e.padding,C=v===void 0?0:v,O=je(typeof C!="number"?C:Ke(C,At)),$=_===zt?Qi:zt,L=i.rects.popper,E=i.elements[S?$:_],A=io(rt(E)?E:E.contextElement||G(i.elements.popper),c,u,s),T=st(i.elements.reference),D=Ye({reference:T,element:L,strategy:"absolute",placement:n}),U=ye(Object.assign({},L,D)),F=_===zt?U:T,k={top:A.top-F.top+O.top,bottom:F.bottom-A.bottom+O.bottom,left:A.left-F.left+O.left,right:F.right-A.right+O.right},q=i.modifiersData.offset;if(_===zt&&q){var dt=q[n];Object.keys(k).forEach(function(X){var Ht=[I,R].indexOf(X)>=0?1:-1,Wt=[N,R].indexOf(X)>=0?"y":"x";k[X]+=dt[Wt]*Ht})}return k}function oo(i,t){t===void 0&&(t={});var e=t,o=e.placement,n=e.boundary,r=e.rootBoundary,s=e.padding,a=e.flipVariations,c=e.allowedAutoPlacements,d=c===void 0?Fe:c,u=at(o),g=u?a?hi:hi.filter(function(S){return at(S)===u}):At,_=g.filter(function(S){return d.indexOf(S)>=0});_.length===0&&(_=g);var m=_.reduce(function(S,v){return S[v]=tt(i,{placement:v,boundary:n,rootBoundary:r,padding:s})[Y(v)],S},{});return Object.keys(m).sort(function(S,v){return m[S]-m[v]})}function Ls(i){if(Y(i)===ke)return[];var t=Ce(i);return[vi(i),t,vi(t)]}function Is(i){var t=i.state,e=i.options,o=i.name;if(!t.modifiersData[o]._skip){for(var n=e.mainAxis,r=n===void 0?!0:n,s=e.altAxis,a=s===void 0?!0:s,c=e.fallbackPlacements,d=e.padding,u=e.boundary,g=e.rootBoundary,_=e.altBoundary,m=e.flipVariations,S=m===void 0?!0:m,v=e.allowedAutoPlacements,C=t.options.placement,O=Y(C),$=O===C,L=c||($||!S?[Ce(C)]:Ls(C)),E=[C].concat(L).reduce(function(ce,Nt){return ce.concat(Y(Nt)===ke?oo(t,{placement:Nt,boun
vendor: 3,993 bytes, line 3
3dary:u,rootBoundary:g,padding:d,flipVariations:S,allowedAutoPlacements:v}):Nt)},[]),A=t.rects.reference,T=t.rects.popper,D=new Map,U=!0,F=E[0],k=0;k<E.length;k++){var q=E[k],dt=Y(q),X=at(q)===Ct,Ht=[N,R].indexOf(dt)>=0,Wt=Ht?"width":"height",it=tt(t,{placement:q,boundary:u,rootBoundary:g,altBoundary:_,padding:d}),pt=Ht?X?I:M:X?R:N;A[Wt]>T[Wt]&&(pt=Ce(pt));var ti=Ce(pt),Bt=[];if(r&&Bt.push(it[dt]<=0),a&&Bt.push(it[pt]<=0,it[ti]<=0),Bt.every(function(ce){return ce})){F=q,U=!1;break}D.set(q,Bt)}if(U)for(var ei=S?3:1,Yi=function(Nt){var Ie=E.find(function(oi){var jt=D.get(oi);if(jt)return jt.slice(0,Nt).every(function(Ui){return Ui})});if(Ie)return F=Ie,"break"},Le=ei;Le>0;Le--){var ii=Yi(Le);if(ii==="break")break}t.placement!==F&&(t.modifiersData[o]._skip=!0,t.placement=F,t.reset=!0)}}var bi={name:"flip",enabled:!0,phase:"main",fn:Is,requiresIfExists:["offset"],data:{_skip:!1}};function Bn(i,t,e){return e===void 0&&(e={x:0,y:0}),{top:i.top-t.height-e.y,right:i.right-t.width+e.x,bottom:i.bottom-t.height+e.y,left:i.left-t.width-e.x}}function jn(i){return[N,I,R,M].some(function(t){return i[t]>=0})}function Ps(i){var t=i.state,e=i.name,o=t.rects.reference,n=t.rects.popper,r=t.modifiersData.preventOverflow,s=tt(t,{elementContext:"reference"}),a=tt(t,{altBoundary:!0}),c=Bn(s,o),d=Bn(a,n,r),u=jn(c),g=jn(d);t.modifiersData[e]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":g})}var Ci={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ps};function Rs(i,t,e){var o=Y(i),n=[M,N].indexOf(o)>=0?-1:1,r=typeof e=="function"?e(Object.assign({},t,{placement:i})):e,s=r[0],a=r[1];return s=s||0,a=(a||0)*n,[M,I].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}function ks(i){var t=i.state,e=i.options,o=i.name,n=e.offset,r=n===void 0?[0,0]:n,s=Fe.reduce(function(u,g){return u[g]=Rs(g,t.rects,r),u},{}),a=s[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[o]=s}var yi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ks};function Vs(i){var t=i.state,e=i.name;t.modifiersData[e]=Ye({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Ae={name:"popperOffsets",enabled:!0,phase:"read",fn:Vs,data:{}};function no(i){return i==="x"?"y":"x"}function Fs(i){var t=i.state,e=i.options,o=i.name,n=e.mainAxis,r=n===void 0?!0:n,s=e.altAxis,a=s===void 0?!1:s,c=e.boundary,d=e.rootBoundary,u=e.altBoundary,g=e.padding,_=e.tether,m=_===void 0?!0:_,S=e.tetherOffset,v=S===void 0?0:S,C=tt(t,{boundary:c,rootBoundary:d,padding:g,altBoundary:u}),O=Y(t.placement),$=at(t.placement),L=!$,E=Jt(O),A=no(E),T=t.modifiersData.popperOffsets,D=t.rects.reference,U=t.rects.popper,F=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,k=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),q=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,dt={x:0,y:0};if(T){if(r){var X,Ht=E==="y"?N:M,Wt=E==="y"?R:I,it=E==="y"?"height":"width",pt=T[E],ti=pt+C[Ht],Bt=pt-C[Wt],ei=m?-U[it]/2:0,Yi=$===Ct?D[it]:U[it],Le=$===Ct?-U[it]:-D[it],ii=t.elements.arrow,ce=m&&ii?Qt(ii):{width:0,height:0},Nt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Be(),Ie=Nt[Ht],oi=Nt[Wt],jt=Zt(0,D[it],ce[it]),Ui=L?D[it]/2-ei-jt-Ie-k.mainAxis:Yi-jt-Ie-k.mainAxis,ts=L?-D[it]/2+ei+jt+oi+k.mainAxis:Le+jt+oi+k.mainAxis,Gi=t.elements.arrow&>(t.elements.arrow),es=Gi?E==="y"?Gi.clientTop||0:Gi.clientLeft||0:0,ko=(X=q?.[E])!=null?X:0,is=pt+Ui-ko-es,os=pt+ts-ko,Vo=Zt(m?Xt(ti,is):ti,pt,m?ht(Bt,os):Bt);T[E]=Vo,dt[E]=Vo-pt}if(a){var Fo,ns=E==="x"?N:M,rs=E==="x"?R:I,Kt=T[A],ni=A==="y"?"height":"width",Ho=Kt+C[ns],Wo=Kt-C[rs],qi=[N,M].indexOf(O)!==-1,Bo=(Fo=q?.[A])!=null?Fo:0,jo=qi?Ho:Kt-D[ni]-U[ni]-Bo+k.altAxis,Ko=qi?
vendor: 13,842 bytes, line 3
3Kt+D[ni]+U[ni]-Bo-k.altAxis:Wo,Yo=m&&qi?Fn(jo,Kt,Ko):Zt(m?jo:Ho,Kt,m?Ko:Wo);T[A]=Yo,dt[A]=Yo-Kt}t.modifiersData[o]=dt}}var Ai={name:"preventOverflow",enabled:!0,phase:"main",fn:Fs,requiresIfExists:["offset"]};function ro(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function so(i){return i===x(i)||!V(i)?te(i):ro(i)}function Hs(i){var t=i.getBoundingClientRect(),e=Tt(t.width)/i.offsetWidth||1,o=Tt(t.height)/i.offsetHeight||1;return e!==1||o!==1}function ao(i,t,e){e===void 0&&(e=!1);var o=V(t),n=V(t)&&Hs(t),r=G(t),s=st(i,n,e),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!e)&&((K(t)!=="body"||ie(r))&&(a=so(t)),V(t)?(c=st(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):r&&(c.x=ee(r))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function Ws(i){var t=new Map,e=new Set,o=[];i.forEach(function(r){t.set(r.name,r)});function n(r){e.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(a){if(!e.has(a)){var c=t.get(a);c&&n(c)}}),o.push(r)}return i.forEach(function(r){e.has(r.name)||n(r)}),o}function lo(i){var t=Ws(i);return Ji.reduce(function(e,o){return e.concat(t.filter(function(n){return n.phase===o}))},[])}function co(i){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(i())})})),t}}function uo(i){var t=i.reduce(function(e,o){var n=e[o.name];return e[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,e},{});return Object.keys(t).map(function(e){return t[e]})}var Kn={placement:"bottom",modifiers:[],strategy:"absolute"};function Yn(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function oe(i){i===void 0&&(i={});var t=i,e=t.defaultModifiers,o=e===void 0?[]:e,n=t.defaultOptions,r=n===void 0?Kn:n;return function(a,c,d){d===void 0&&(d=r);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Kn,r),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},g=[],_=!1,m={state:u,setOptions:function(O){var $=typeof O=="function"?O(u.options):O;v(),u.options=Object.assign({},r,u.options,$),u.scrollParents={reference:rt(a)?$t(a):a.contextElement?$t(a.contextElement):[],popper:$t(c)};var L=lo(uo([].concat(o,u.options.modifiers)));return u.orderedModifiers=L.filter(function(E){return E.enabled}),S(),m.update()},forceUpdate:function(){if(!_){var O=u.elements,$=O.reference,L=O.popper;if(Yn($,L)){u.rects={reference:ao($,gt(L),u.options.strategy==="fixed"),popper:Qt(L)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(k){return u.modifiersData[k.name]=Object.assign({},k.data)});for(var E=0;E<u.orderedModifiers.length;E++){if(u.reset===!0){u.reset=!1,E=-1;continue}var A=u.orderedModifiers[E],T=A.fn,D=A.options,U=D===void 0?{}:D,F=A.name;typeof T=="function"&&(u=T({state:u,options:U,name:F,instance:m})||u)}}}},update:co(function(){return new Promise(function(C){m.forceUpdate(),C(u)})}),destroy:function(){v(),_=!0}};if(!Yn(a,c))return m;m.setOptions(d).then(function(C){!_&&d.onFirstUpdate&&d.onFirstUpdate(C)});function S(){u.orderedModifiers.forEach(function(C){var O=C.name,$=C.options,L=$===void 0?{}:$,E=C.effect;if(typeof E=="function"){var A=E({state:u,name:O,instance:m,options:L}),T=function(){};g.push(A||T)}})}function v(){g.forEach(function(C){return C()}),g=[]}return m}}var Un=oe();var Bs=[be,Ae,Ee,_e],Gn=oe({defaultModifiers:Bs});var js=[be,Ae,Ee,_e,yi,bi,Ai,gi,Ci],Ue=oe({defaultModifiers:js});var Lt=new Map,po={set(i,t,e){Lt.has(i)||Lt.set(i,new Map);let o=Lt.get(i);if(!o.has(t)&&o.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`);return}o.set(t,e)},get(i,t){return Lt.has(i)&&Lt.get(i).get(t)||null},remove(i,t){if(!Lt.has(i))return;let e=Lt.get(i);e.delete(t),e.size===0&&Lt.delete(i)}},Ks=1e6,Ys=1e3,xo="transitionend",yr=i=>(i&&window.CSS&&window.CSS.escape&&(i=i.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),i),Us=i=>i==null?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase(),Gs=i=>{do i+=Math.floor(Math.random()*Ks);while(document.getElementById(i));return i},qs=i=>{if(!i)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(i),o=Number.parseFloat(t),n=Number.parseFloat(e);return!o&&!n?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*Ys)},Ar=i=>{i.dispatchEvent(new Event(xo))},wt=i=>!i||typeof i!="object"?!1:(typeof i.jquery<"u"&&(i=i[0]),typeof i.nodeType<"u"),It=i=>wt(i)?i.jquery?i[0]:i:typeof i=="string"&&i.length>0?document.querySelector(yr(i)):null,Me=i=>{if(!wt(i)||i.getClientRects().length===0)return!1;let t=getComputedStyle(i).getPropertyValue("visibility")==="visible",e=i.closest("details:not([open])");if(!e)return t;if(e!==i){let o=i.closest("summary");if(o&&o.parentNode!==e||o===null)return!1}return t},Pt=i=>!i||i.nodeType!==Node.ELEMENT_NODE||i.classList.contains("disabled")?!0:typeof i.disabled<"u"?i.disabled:i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false",Tr=i=>{if(!document.documentElement.attachShadow)return null;if(typeof i.getRootNode=="function"){let t=i.getRootNode();return t instanceof ShadowRoot?t:null}return i instanceof ShadowRoot?i:i.parentNode?Tr(i.parentNode):null},Li=()=>{},Je=i=>{i.offsetHeight},Sr=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,fo=[],zs=i=>{document.readyState==="loading"?(fo.length||document.addEventListener("DOMContentLoaded",()=>{for(let t of fo)t()}),fo.push(i)):i()},lt=()=>document.documentElement.dir==="rtl",ut=i=>{zs(()=>{let t=Sr();if(t){let e=i.NAME,o=t.fn[e];t.fn[e]=i.jQueryInterface,t.fn[e].Constructor=i,t.fn[e].noConflict=()=>(t.fn[e]=o,i.jQueryInterface)}})},et=(i,t=[],e=i)=>typeof i=="function"?i.call(...t):e,wr=(i,t,e=!0)=>{if(!e){et(i);return}let n=qs(t)+5,r=!1,s=({target:a})=>{a===t&&(r=!0,t.removeEventListener(xo,s),et(i))};t.addEventListener(xo,s),setTimeout(()=>{r||Ar(t)},n)},Lo=(i,t,e,o)=>{let n=i.length,r=i.indexOf(t);return r===-1?!e&&o?i[n-1]:i[0]:(r+=e?1:-1,o&&(r=(r+n)%n),i[Math.max(0,Math.min(r,n-1))])},Xs=/[^.]*(?=\..*)\.|.*/,Qs=/\..*/,Js=/::\d+$/,mo={},qn=1,Or={mouseenter:"mouseover",mouseleave:"mouseout"},Zs=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function xr(i,t){return t&&`${t}::${qn++}`||i.uidEvent||qn++}function Nr(i){let t=xr(i);return i.uidEvent=t,mo[t]=mo[t]||{},mo[t]}function ta(i,t){return function e(o){return Io(o,{delegateTarget:i}),e.oneOff&&l.off(i,o.type,t),t.apply(i,[o])}}function ea(i,t,e){return function o(n){let r=i.querySelectorAll(t);for(let{target:s}=n;s&&s!==this;s=s.parentNode)for(let a of r)if(a===s)return Io(n,{delegateTarget:s}),o.oneOff&&l.off(i,n.type,t,e),e.apply(s,[n])}}function Dr(i,t,e=null){return Object.values(i).find(o=>o.callable===t&&o.delegationSelector===e)}function Mr(i,t,e){let o=typeof t=="string",n=o?e:t||e,r=$r(i);return Zs.has(r)||(r=i),[o,n,r]}function zn(i,t,e,o,n){if(typeof t!="string"||!i)return;let[r,s,a]=Mr(t,e,o);t in Or&&(s=(S=>function(v){if(!v.relatedTarget||v.relatedTarget!==v.delegateTarget&&!v.delegateTarget.contains(v.relatedTarget))return S.call(this,v)})(s));let c=Nr(i),d=c[a]||(c[a]={}),u=Dr(d,s,r?e:null);if(u){u.oneOff=u.oneOff&&n;return}let g=xr(s,t.replace(Xs,"")),_=r?ea(i,e,s):ta(i,s);_.delegationSelector=r?e:null,_.callable=s,_.oneOff=n,_.uidEvent=g,d[g]=_,i.addEventListener(a,_,r)}function No(i,t,e,o,n){let r=Dr(t[e],o,n);r&&(i.removeEventListener(e,r,!!n),delete t[e][r.uidEvent])}function ia(i,t,e,o){let n=t[e]||{};for(let[r,s]of Object.entries(n))r.includes(o)&&No(i,t,e,s.callable,s.delegationSelector)}function $r(i){return i=i.replace(Qs,""),Or[i]||i}var l={on(i,t,e,o){zn(i,t,e,o,!1)},one(i,t,e,o){zn(i,t,e,o,!0)},off(i,t,e,o){if(typeof t!="string"||!i)return;let[n,r,s]=Mr(t,e,o),a=s!==t,c=Nr(i),d=c[s]||{},u=t.startsWith(".");if(typeof r<"u"){if(!Object.keys(d).length)return;No(i,c,s,r,n?e:null);return}if(u)for(let g of Object.keys(c))ia(i,c,g,t.slice(1));for(let[g,_]of Object.entries(d)){let m=g.replace(Js,"");(!a||t.includes(m))&&No(i,c,s,_.callable,_.delegationSelector)}},trigger(i,t,e){if(typeof t!="string"||!i)return null;let o=Sr(),n=$r(t),r=t!==n,s=null,a=!0,c=!0,d=!1;r&&o&&(s=o.Event(t,e),o(i).trigger(s),a=!s.isPropagationStopped(),c=!s.isImmediatePropagationStopped(),d=s.isDefaultPrevented());let u=Io(new Event(t,{bubbles:a,cancelable:!0}),e);return d&&u.preventDefault(),c&&i.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function Io(i,t={}){for(let[e,o]of Object.entries(t))try{i[e]=o}catch(n){Object.defineProperty(i,e,{configurable:!0,get(){return o}})}return i}function Xn(i){if(i==="true")return!0;if(i==="false")return!1;if(i===Number(i).toString())return Number(i);if(i===""||i==="null")return null;if(typeof i!="string")return i;try{return JSON.parse(decodeURIComponent(i))}catch(t){return i}}function ho(i){return i.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}var Ot={setDataAttribute(i,t,e){i.setAttribute(`data-bs-${ho(t)}`,e)},removeDataAttribute(i,t){i.removeAttribute(`data-bs-${ho(t)}`)},getDataAttributes(i){if(!i)return{};let t={},e=Object.keys(i.dataset).filter(o=>o.startsWith("bs")&&!o.startsWith("bsConfig"));for(let o of e){let n=o.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=Xn(i.dataset[o])}return t},getDataAttribute(i,t){return Xn(i.getAttribute(`data-bs-${ho(t)}`))}},se=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){let o=wt(e)?Ot.getDataAttribute(e,"config"):{};return z(z(z(z({},this.constructor.Default),typeof o=="object"?o:{}),wt(e)?Ot.getDataAttributes(e):{}),typeof t=="object"?t:{})}_typeCheckConfig(t,e=this.constructor.DefaultType){for(let[o,n]of Object.entries(e)){let r=t[o],s=wt(r)?"element":Us(r);if(!new RegExp(n).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${s}" but expected type "${n}".`)}}},oa="5.3.8",ot=class extends se{constructor(t,e){super(),t=It(t),t&&(this._element=t,this._config=this._getConfig(e),po.set(this._element,this.constructor.DATA_KEY,this))}dispose(){po.remove(this._element,this.constructor.DATA_KEY),l.off(this._element,this.constructor.EVENT_KEY);for(let t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,o=!0){wr(t,e,o)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return po.get(It(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return oa}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}},go=i=>{let t=i.getAttribute("data-bs-target");if(!t||t==="#"){let e=i.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return t?t.split(",").map(e=>yr(e)).join(","):null},p={find(i,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,i))},findOne(i,t=document.documentElement){return Element.prototype.querySelector.call(t,i)},children(i,t){return[].concat(...i.children).filter(e=>e.matches(t))},parents(i,t){let e=[],o=i.parentNode.closest(t);for(;o;)e.push(o),o=o.parentNode.closest(t);return e},prev(i,t){let e=i.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(i,t){let e=i.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]},focusableChildren(i){let t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,i).filter(e=>!Pt(e)&&Me(e))},getSelectorFromElement(i){let t=go(i);return t&&p.findOne(t)?t:null},getElementFromSelector(i){let t=go(i);return t?p.findOne(t):null},getMultipleElementsFromSelector(i){let t=go(i);return t?p.find(t):[]}},ji=(i,t="hide")=>{let e=`click.dismiss${i.EVENT_KEY}`,o=i.NAME;l.on(document,e,`[data-bs-dismiss="${o}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Pt(this))return;let r=p.getElementFromSelector(this)||this.closest(`.${o}`);i.getOrCreateInstance(r)[t]()})},na="alert",ra="bs.alert",Lr=`.${ra}`,sa=`close${Lr}`,aa=`closed${Lr}`,la="fade",ca="show",Ii=class i extends ot{static get NAME(){return na}close(){if(l.trigger(this._element,sa).defaultPrevented)return;this._element.classList.remove(ca);let e=this._element.classList.contains(la);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),l.trigger(this._element,aa),this.dispose()}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method n
3amed "${t}"`);e[t](this)}})}};ji(Ii,"close");ut(Ii);var ua="button",da="bs.button",pa=`.${da}`,fa=".data-api",ma="active",Qn='[data-bs-toggle="button"]',ha=`click${pa}${fa}`,Pi=class i extends ot{static get NAME(){return ua}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(ma))}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this);t==="toggle"&&e[t]()})}};l.on(document,ha,Qn,i=>{i.preventDefault();let t=i.target.closest(Qn);Pi.getOrCreateInstance(t).toggle()});ut(Pi);var ga="swipe",$e=".bs.swipe",_a=`touchstart${$e}`,va=`touchmove${$e}`,Ea=`touchend${$e}`,ba=`pointerdown${$e}`,Ca=`pointerup${$e}`,ya="touch",Aa="pen",Ta="pointer-event",Sa=40,wa={endCallback:null,leftCallback:null,rightCallback:null},Oa={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"},Ri=class i extends se{constructor(t,e){super(),this._element=t,!(!t||!i.isSupported())&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return wa}static get DefaultType(){return Oa}static get NAME(){return ga}dispose(){l.off(this._element,$e)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),et(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){let t=Math.abs(this._deltaX);if(t<=Sa)return;let e=t/this._deltaX;this._deltaX=0,e&&et(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(l.on(this._element,ba,t=>this._start(t)),l.on(this._element,Ca,t=>this._end(t)),this._element.classList.add(Ta)):(l.on(this._element,_a,t=>this._start(t)),l.on(this._element,va,t=>this._move(t)),l.on(this._element,Ea,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===Aa||t.pointerType===ya)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}},xa="carousel",Na="bs.carousel",Vt=`.${Na}`,Ir=".data-api",Da="ArrowLeft",Ma="ArrowRight",$a=500,Ge="next",Te="prev",we="left",Mi="right",La=`slide${Vt}`,_o=`slid${Vt}`,Ia=`keydown${Vt}`,Pa=`mouseenter${Vt}`,Ra=`mouseleave${Vt}`,ka=`dragstart${Vt}`,Va=`load${Vt}${Ir}`,Fa=`click${Vt}${Ir}`,Pr="carousel",Si="active",Ha="slide",Wa="carousel-item-end",Ba="carousel-item-start",ja="carousel-item-next",Ka="carousel-item-prev",Rr=".active",kr=".carousel-item",Ya=Rr+kr,Ua=".carousel-item img",Ga=".carousel-indicators",qa="[data-bs-slide], [data-bs-slide-to]",za='[data-bs-ride="carousel"]',Xa={[Da]:Mi,[Ma]:we},Qa={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ja={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},ze=class i extends ot{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=p.findOne(Ga,this._element),this._addEventListeners(),this._config.ride===Pr&&this.cycle()}static get Default(){return Qa}static get DefaultType(){return Ja}static get NAME(){return xa}next(){this._slide(Ge)}nextWhenVisible(){!document.hidden&&Me(this._element)&&this.next()}prev(){this._slide(Te)}pause(){this._isSliding&&Ar(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){l.one(this._element,_o,()=>this.cycle());return}this.cycle()}}to(t){let e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){l.one(this._element,_o,()=>this.to(t));return}let o=this._getItemIndex(this._getActive());if(o===t)return;let n=t>o?Ge:Te;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&l.on(this._element,Ia,t=>
vendor: 9,144 bytes, line 3
3this._keydown(t)),this._config.pause==="hover"&&(l.on(this._element,Pa,()=>this.pause()),l.on(this._element,Ra,()=>this._maybeEnableCycle())),this._config.touch&&Ri.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let o of p.find(Ua,this._element))l.on(o,ka,n=>n.preventDefault());let e={leftCallback:()=>this._slide(this._directionToOrder(we)),rightCallback:()=>this._slide(this._directionToOrder(Mi)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),$a+this._config.interval))}};this._swipeHelper=new Ri(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;let e=Xa[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;let e=p.findOne(Rr,this._indicatorsElement);e.classList.remove(Si),e.removeAttribute("aria-current");let o=p.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);o&&(o.classList.add(Si),o.setAttribute("aria-current","true"))}_updateInterval(){let t=this._activeElement||this._getActive();if(!t)return;let e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;let o=this._getActive(),n=t===Ge,r=e||Lo(this._getItems(),o,n,this._config.wrap);if(r===o)return;let s=this._getItemIndex(r),a=m=>l.trigger(this._element,m,{relatedTarget:r,direction:this._orderToDirection(t),from:this._getItemIndex(o),to:s});if(a(La).defaultPrevented||!o||!r)return;let d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=r;let u=n?Ba:Wa,g=n?ja:Ka;r.classList.add(g),Je(r),o.classList.add(u),r.classList.add(u);let _=()=>{r.classList.remove(u,g),r.classList.add(Si),o.classList.remove(Si,g,u),this._isSliding=!1,a(_o)};this._queueCallback(_,o,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(Ha)}_getActive(){return p.findOne(Ya,this._element)}_getItems(){return p.find(kr,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return lt()?t===we?Te:Ge:t===we?Ge:Te}_orderToDirection(t){return lt()?t===Te?we:Mi:t===Te?Mi:we}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this,t);if(typeof t=="number"){e.to(t);return}if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}};l.on(document,Fa,qa,function(i){let t=p.getElementFromSelector(this);if(!t||!t.classList.contains(Pr))return;i.preventDefault();let e=ze.getOrCreateInstance(t),o=this.getAttribute("data-bs-slide-to");if(o){e.to(o),e._maybeEnableCycle();return}if(Ot.getDataAttribute(this,"slide")==="next"){e.next(),e._maybeEnableCycle();return}e.prev(),e._maybeEnableCycle()});l.on(window,Va,()=>{let i=p.find(za);for(let t of i)ze.getOrCreateInstance(t)});ut(ze);var Za="collapse",tl="bs.collapse",Ze=`.${tl}`,el=".data-api",il=`show${Ze}`,ol=`shown${Ze}`,nl=`hide${Ze}`,rl=`hidden${Ze}`,sl=`click${Ze}${el}`,vo="show",xe="collapse",wi="collapsing",al="collapsed",ll=`:scope .${xe} .${xe}`,cl="collapse-horizontal",ul="width",dl="height",pl=".collapse.show, .collapse.collapsing",Do='[data-bs-toggle="collapse"]',fl={parent:null,toggle:!0},ml={parent:"(null|element)",toggle:"boolean"},ki=class i extends ot{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];let o=p.find(Do);for(let n of o){let r=p.getSelectorFromElement(n),s=p.find(r).filter(a=>a===this._element);r!==null&&s.length&&this._triggerArray.push(n)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return fl}static get DefaultType(){return ml}static get NAME(){return Za}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(pl).filter(a=>a!==this._element).map(a=>i.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||l.trigger(this._element,il).defaultPrevented)return;for(let a of t)a.hide();let o=this._getDimension();this._element.classList.remove(xe),this._element.classList.add(wi),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let n=()=>{this._isTransitioning=!1,this._element.classList.remove(wi),this._element.classList.add(xe,vo),this._element.style[o]="",l.trigger(this._element,ol)},s=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[o]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||l.trigger(this._element,nl).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Je(this._element),this._element.classList.add(wi),this._element.classList.remove(xe,vo);for(let n of this._triggerArray){let r=p.getElementFromSelector(n);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([n],!1)}this._isTransitioning=!0;let o=()=>{this._isTransitioning=!1,this._element.classList.remove(wi),this._element.classList.add(xe),l.trigger(this._element,rl)};this._element.style[e]="",this._queueCallback(o,this._element,!0)}_isShown(t=this._element){return t.classList.contains(vo)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=It(t.parent),t}_getDimension(){return this._element.classList.contains(cl)?ul:dl}_initializeChildren(){if(!this._config.parent)return;let t=this._getFirstLevelChildren(Do);for(let e of t){let o=p.getElementFromSelector(e);o&&this._addAriaAndCollapsedClass([e],this._isShown(o))}}_getFirstLevelChildren(t){let e=p.find(ll,this._config.parent);return p.find(t,this._config.parent).filter(o=>!e.includes(o))}_addAriaAndCollapsedClass(t,e){if(t.length)for(let o of t)o.classList.toggle(al,!e),o.setAttribute("aria-expanded",e)}static jQueryInterface(t){let e={};return typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){let o=i.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof o[t]>"u")throw new TypeError(`No method named "${t}"`);o[t]()}})}};l.on(document,sl,Do,function(i){(i.target.tagName==="A"||i.delegateTarget&&i.delegateTarget.tagName==="A")&&i.preventDefault();for(let t of p.getMultipleElementsFromSelector(this))ki.getOrCreateInstance(t,{toggle:!1}).toggle()});ut(ki);var Jn="dropdown",hl="bs.dropdown",ae=`.${hl}`,Po=".data-api",gl="Escape",Zn="Tab",_l="ArrowUp",tr="ArrowDown",vl=2,El=`hide${ae}`,bl=`hidden${ae}`,Cl=`show${ae}`,yl=`shown${ae}`,Vr=`click${ae}${Po}`,Fr=`keydown${ae}${Po}`,Al=`keyup${ae}${Po}`,Oe="show",Tl="dropup",Sl="dropend",wl="dropstart",Ol="dropup-center",xl="dropdown-center",ne='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Nl=`${ne}.${Oe}`,$i=".dropdown-menu",Dl=".navbar",Ml=".navbar-nav",$l=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ll=lt()?"top-end":"top-start",Il=lt()?"top-start":"top-end",Pl=lt()?"bottom-end":"bottom-start",Rl=lt()?"bottom-start":"bottom-end",kl=lt()?"left-start":"right-start",Vl=lt()?"right-start":"left-start",Fl="top",Hl="bottom",Wl={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Bl={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"},Rt=class i extends ot{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=p.next(this._element,$i)[0]||p.prev(this._element,$i)[0]||p.findOne($i,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Wl}static get DefaultType(){return Bl}static get NAME(){return Jn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Pt(this._element)||this._isShown())return;let t={relatedTarget:this._element};if(!l.trigger(this._element,Cl,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Ml))for(let o of[].concat(...document.body.children))l.on(o,"mouseover",Li);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Oe),this._element.classList.add(Oe),l.trigger(this._element,yl,t)}}hide(){if(Pt(this._element)||!this._isShown())return;let t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!l.trigger(this._element,El,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(let o of[].concat(...document.body.children))l.off(o,"mouseover",Li);this._popper&&this._popper.destroy(),this._menu.classList.remove(Oe),this._element.classList.remove(Oe),this._element.setAttribute("aria-expanded","fal
3se"),Ot.removeDataAttribute(this._menu,"popper"),l.trigger(this._element,bl,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!wt(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Jn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof Ti>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;this._config.reference==="parent"?t=this._parent:wt(this._config.reference)?t=It(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);let e=this._getPopperConfig();this._popper=Ue(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Oe)}_getPlacement(){let t=this._parent;if(t.classList.contains(Sl))return kl;if(t.classList.contains(wl))return Vl;if(t.classList.contains(Ol))return Fl;if(t.classList.contains(xl))return Hl;let e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Tl)?e?Il:Ll:e?Rl:Pl}_detectNavbar(){return this._element.closest(Dl)!==null}_getOffset(){let{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){let t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Ot.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),z(z({},t),et(this._config.popperConfig,[void 0,t]))}_selectMenuItem({key:t,target:e}){let o=p.find($l,this._menu).filter(n=>Me(n));o.length&&Lo(o,e,t===tr,!o.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===vl||t.type==="keyup"&&t.key!==Zn)return;let e=p.find(Nl);for(let o of e){let n=i.getInstance(o);if(!n||n._config.autoClose===!1)continue;let r=t.composedPath(),s=r.includes(n._menu);if(r.includes(n._element)||n._config.autoClose==="inside"&&!s||n._config.autoClose==="outside"&&s||n._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Zn||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let a={relatedTarget:n._element};t.type==="click"&&(a.clickEvent=t),n._completeHide(a)}}static dataApiKeydownHandler(t){let e=/input|textarea/i.test(t.target.tagName),o=t.key===gl,n=[_l,tr].includes(t.key);if(!n&&!o||e&&!o)return;t.preventDefault();let r=this.matches(ne)?this:p.prev(this,ne)[0]||p.next(this,ne)[0]||p.findOne(ne,t.delegateTarget.parentNode),s=i.getOrCreateInstance(r);if(n){t.stopPropagation(),s.show(),s._selectMenuItem(t);return}s._isShown()&&(t.stopPropagation(),s.hide(),r.focus())}};l.on(document,Fr,ne,Rt.dataApiKeydownHandler);l.on(document,Fr,$i,Rt.dataApiKeydownHandler);l.on(document,Vr,Rt.clearMenus);l.on(document,Al,Rt.clearMenus);l.on(document,Vr,ne,function(i){i.preventDefault(),Rt.getOrCreateInstance(this).toggle()});ut(Rt);var Hr="backdrop",jl="fade",er="show",ir=`mousedown.bs.${Hr}`,Kl={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Yl={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"},Vi=class extends se{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Kl}static get DefaultType(){return Yl}static get NAME(){return Hr}show(t){if(!this._config.isVisible){et(t);return}this._append();let e=this._getElement();this._config.isAnimated&&Je(e),e.classList.add(er),this._emulateAnimation(()=>{et(t)})}hide(t){if(!this._config.isVisible){et(t);return}this._getElement().classList.remove(er),this._emulateAnimation(()=>{this.dispose(),et(t)})}dispose(){this._isAppended&&(l.off(this._element,ir),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){let t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(jl),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=It(t.rootElement),t}_append(){if(this._isAppended)return;let t=this._getElement();this._config.rootElement.append(t),l.on(t,ir,()=>{et(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){wr(t,this._getElement(),this._config.isAnimated)}},Ul="focustrap",Gl="bs.focustrap",Fi=`.${Gl}`,ql=`focusin${Fi}`,zl=`keydown.tab${Fi}`,Xl="Tab",Ql="forward",or="backward",Jl={autofocus:!0,trapElement:null},Zl={autofocus:"boolean",trapElement:"element"},Hi=class extends se{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Jl}static get DefaultType(){return Zl}static get NAME(){return Ul}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),l.off(document,Fi),l.on(document,ql,t=>this._handleFocusin(t)),l.on(document,zl,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,l.off(document,Fi))}_handleFocusin(t){let{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;let o=p.focusableChildren(e);o.length===0?e.focus():this._lastTabNavDirection===or?o[o.length-1].focus():o[0].focus()}_handleKeydown(t){t.key===Xl&&(this._lastTabNavDirection=t.shiftKey?or:Ql)}},nr=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",rr=".sticky-top",Oi="padding-right",sr="margin-right",Xe=class{constructor(){this._element=document.body}getWidth(){let t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){let t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Oi,e=>e+t),this._setElementAttributes(nr,Oi,e=>e+t),this._setElementAttributes(rr,sr,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Oi),this._resetElementAttributes(nr,Oi),this._resetElementAttributes(rr,sr)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,o){let n=this.getWidth(),r=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+n)return;this._saveInitialAttribute(s,e);let a=window.getComputedStyle(s).getPropertyValue(e);s.style.setProperty(e,`${o(Number.parseFloat(a))}px`)};this._applyManipulationCallback(t,r)}_saveInitialAttribute(t,e){let o=t.style.getPropertyValue(e);o&&Ot.setDataAttribute(t,e,o)}_resetElementAttributes(t,e){let o=n=>{let r=Ot.getDataAttribute(n,e);if(r===null){n.style.removeProperty(e);return}Ot.removeDataAttribute(n,e),n.style.setProperty(e,r)};this._applyManipulationCallback(t,o)}
vendor: 4,322 bytes, line 3
3_applyManipulationCallback(t,e){if(wt(t)){e(t);return}for(let o of p.find(t,this._element))e(o)}},tc="modal",ec="bs.modal",ct=`.${ec}`,ic=".data-api",oc="Escape",nc=`hide${ct}`,rc=`hidePrevented${ct}`,Wr=`hidden${ct}`,Br=`show${ct}`,sc=`shown${ct}`,ac=`resize${ct}`,lc=`click.dismiss${ct}`,cc=`mousedown.dismiss${ct}`,uc=`keydown.dismiss${ct}`,dc=`click${ct}${ic}`,ar="modal-open",pc="fade",lr="show",Eo="modal-static",fc=".modal.show",mc=".modal-dialog",hc=".modal-body",gc='[data-bs-toggle="modal"]',_c={backdrop:!0,focus:!0,keyboard:!0},vc={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"},Ne=class i extends ot{constructor(t,e){super(t,e),this._dialog=p.findOne(mc,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Xe,this._addEventListeners()}static get Default(){return _c}static get DefaultType(){return vc}static get NAME(){return tc}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||l.trigger(this._element,Br,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ar),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||l.trigger(this._element,nc).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(lr),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){l.off(window,ct),l.off(this._dialog,ct),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Vi({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Hi({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;let e=p.findOne(hc,this._dialog);e&&(e.scrollTop=0),Je(this._element),this._element.classList.add(lr);let o=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,l.trigger(this._element,sc,{relatedTarget:t})};this._queueCallback(o,this._dialog,this._isAnimated())}_addEventListeners(){l.on(this._element,uc,t=>{if(t.key===oc){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),l.on(window,ac,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),l.on(this._element,cc,t=>{l.one(this._element,lc,e=>{if(!(this._element!==t.target||this._element!==e.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(ar),this._resetAdjustments(),this._scrollBar.reset(),l.trigger(this._element,Wr)})}_isAnimated(){return this._element.classList.contains(pc)}_triggerBackdropTransition(){if(l.trigger(this._element,rc).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(Eo)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Eo),this._queueCallback(()=>{this._element.classList.remove(Eo),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),o=e>0;if(o&&!t){let n=lt()?"paddingLeft":"paddingRight";this._element.style[n]=`${e}px`}if(!o&&t){let n=lt()?"paddingRight":"paddingLeft";this._element.style[n]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){let o=i.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof o[t]>
3"u")throw new TypeError(`No method named "${t}"`);o[t](e)}})}};l.on(document,dc,gc,function(i){let t=p.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&i.preventDefault(),l.one(t,Br,n=>{n.defaultPrevented||l.one(t,Wr,()=>{Me(this)&&this.focus()})});let e=p.findOne(fc);e&&Ne.getInstance(e).hide(),Ne.getOrCreateInstance(t).toggle(this)});ji(Ne);ut(Ne);var Ec="offcanvas",bc="bs.offcanvas",xt=`.${bc}`,jr=".data-api",Cc=`load${xt}${jr}`,yc="Escape",cr="show",ur="showing",dr="hiding",Ac="offcanvas-backdrop",Kr=".offcanvas.show",Tc=`show${xt}`,Sc=`shown${xt}`,wc=`hide${xt}`,pr=`hidePrevented${xt}`,Yr=`hidden${xt}`,Oc=`resize${xt}`,xc=`click${xt}${jr}`,Nc=`keydown.dismiss${xt}`,Dc='[data-bs-toggle="offcanvas"]',Mc={backdrop:!0,keyboard:!0,scroll:!1},$c={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"},kt=class i extends ot{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Mc}static get DefaultType(){return $c}static get NAME(){return Ec}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||l.trigger(this._element,Tc,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Xe().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ur);let o=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(cr),this._element.classList.remove(ur),l.trigger(this._element,Sc,{relatedTarget:t})};this._queueCallback(o,this._element,!0)}hide(){if(!this._isShown||l.trigger(this._element,wc).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(dr),this._backdrop.hide();let e=()=>{this._element.classList.remove(cr,dr),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Xe().reset(),l.trigger(this._element,Yr)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let t=()=>{if(this._config.backdrop==="static"){l.trigger(this._element,pr);return}this.hide()},e=!!this._config.backdrop;return new Vi({className:Ac,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new Hi({trapElement:this._element})}_addEventListeners(){l.on(this._element,Nc,t=>{if(t.key===yc){if(this._config.keyboard){this.hide();return}l.trigger(this._element,pr)}})}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};l.on(document,xc,Dc,function(i){let t=p.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Pt(this))return;l.one(t,Yr,()=>{Me(this)&&this.focus()});let e=p.findOne(Kr);e&&e!==t&&kt.getInstance(e).hide(),kt.getOrCreateInstance(t).toggle(this)});l.on(window,Cc,()=>{for(let i of p.find(Kr))kt.getOrCreateInstance(i).show()});l.on(window,Oc,()=>{for(let i of p.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(i).position!=="fixed"&&kt.getOrCreateInstance(i).hide()});ji(kt);ut(kt);var Lc=/^aria-[\w-]*$/i,Ur={"*":["class","dir","id","lang","role",Lc],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ic=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Pc=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Rc=(i,t)=>{let e=i.nodeName.toLowerCase();return t.includes(e)?Ic.has(e)?!!Pc.test(i.nodeValue):!0:t.filter(o=>o instanceof RegExp).some(o=>o.test(e))};function kc(i,t,e){if(!i.length)return i;if(e&&typeof e=="function")return e(i);let n=new window.DOMParser().parseFromString(i,"text/html"),r=[].concat(...n.body.querySelectorAll("*"));for(let s of r){let a=s.nodeName.toLowerCase();if(!Object.keys(t).includes(a)){s.remove();continue}let c=[].concat(...s.attributes),d=[].concat(t["*"]||[],t[a]||[]);for(let u of c)Rc(u,d)||s.removeAttribute(u.nodeName)}return n.body.innerHTML}var Vc="TemplateFactory",Fc={allowList:Ur,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Hc={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Wc={entry:"(string|element|function|null)",selector:"(string|element)"},Mo=class extends se{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Fc}static get DefaultType(){return Hc}static get NAME(){return Vc}getContent(){return Object.values(this._config.content).map(t=>
vendor: 14,092 bytes, line 3
3this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content=z(z({},this._config.content),t),this}toHtml(){let t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(let[n,r]of Object.entries(this._config.content))this._setContent(t,r,n);let e=t.children[0],o=this._resolvePossibleFunction(this._config.extraClass);return o&&e.classList.add(...o.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(let[e,o]of Object.entries(t))super._typeCheckConfig({selector:e,entry:o},Wc)}_setContent(t,e,o){let n=p.findOne(o,t);if(n){if(e=this._resolvePossibleFunction(e),!e){n.remove();return}if(wt(e)){this._putElementInTemplate(It(e),n);return}if(this._config.html){n.innerHTML=this._maybeSanitize(e);return}n.textContent=e}}_maybeSanitize(t){return this._config.sanitize?kc(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return et(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="",e.append(t);return}e.textContent=t.textContent}},Bc="tooltip",jc=new Set(["sanitize","allowList","sanitizeFn"]),bo="fade",Kc="modal",xi="show",Yc=".tooltip-inner",fr=`.${Kc}`,mr="hide.bs.modal",qe="hover",Co="focus",yo="click",Uc="manual",Gc="hide",qc="hidden",zc="show",Xc="shown",Qc="inserted",Jc="click",Zc="focusin",tu="focusout",eu="mouseenter",iu="mouseleave",ou={AUTO:"auto",TOP:"top",RIGHT:lt()?"left":"right",BOTTOM:"bottom",LEFT:lt()?"right":"left"},nu={allowList:Ur,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},ru={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"},De=class i extends ot{constructor(t,e){if(typeof Ti>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return nu}static get DefaultType(){return ru}static get NAME(){return Bc}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),l.off(this._element.closest(fr),mr,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;let t=l.trigger(this._element,this.constructor.eventName(zc)),o=(Tr(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!o)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));let{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),l.trigger(this._element,this.constructor.eventName(Qc))),this._popper=this._createPopper(n),n.classList.add(xi),"ontouchstart"in document.documentElement)for(let a of[].concat(...document.body.children))l.on(a,"mouseover",Li);let s=()=>{l.trigger(this._element,this.constructor.eventName(Xc)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||l.trigger(this._element,this.constructor.eventName(Gc)).defaultPrevented)return;if(this._getTipElement().classList.remove(xi),"ontouchstart"in document.documentElement)for(let n of[].concat(...document.body.children))l.off(n,"mouseover",Li);this._activeTrigger[yo]=!1,this._activeTrigger[Co]=!1,this._activeTrigger[qe]=!1,this._isHovered=null;let o=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),l.trigger(this._element,this.constructor.eventName(qc)))};this._queueCallback(o,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){let e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(bo,xi),e.classList.add(`bs-${this.constructor.NAME}-auto`);let o=Gs(this.constructor.NAME).toString();return e.setAttribute("id",o),this._isAnimated()&&e.classList.add(bo),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Mo(ri(z({},this._config),{content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)})),this._templateFactory}_getContentForTemplate(){return{[Yc]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(bo)}_isShown(){return this.tip&&this.tip.classList.contains(xi)}_createPopper(t){let e=et(this._config.placement,[this,t,this._element]),o=ou[e.toUpperCase()];return Ue(this._element,t,this._getPopperConfig(o))}_getOffset(){let{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return et(t,[this._element,this._element])}_getPopperConfig(t){let e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:o=>{this._getTipElement().setAttribute("data-popper-placement",o.state.placement)}}]};return z(z({},e),et(this._config.popperConfig,[void 0,e]))}_setListeners(){let t=this._config.trigger.split(" ");for(let e of t)if(e==="click")l.on(this._element,this.constructor.eventName(Jc),this._config.selector,o=>{let n=this._initializeOnDelegatedTarget(o);n._activeTrigger[yo]=!(n._isShown()&&n._activeTrigger[yo]),n.toggle()});else if(e!==Uc){let o=e===qe?this.constructor.eventName(eu):this.constructor.eventName(Zc),n=e===qe?this.constructor.eventName(iu):this.constructor.eventName(tu);l.on(this._element,o,this._config.selector,r=>{let s=this._initializeOnDelegatedTarget(r);s._activeTrigger[r.type==="focusin"?Co:qe]=!0,s._enter()}),l.on(this._element,n,this._config.selector,r=>{let s=this._initializeOnDelegatedTarget(r);s._activeTrigger[r.type==="focusout"?Co:qe]=s._element.contains(r.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},l.on(this._element.closest(fr),mr,this._hideModalHandler)}_fixTitle(){let t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){let e=Ot.getDataAttributes(this._element);for(let o of Object.keys(e))jc.has(o)&&delete e[o];return t=z(z({},e),typeof t=="object"&&t?t:{}),t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:It(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){let t={};for(let[e,o]of Object.entries(this._config))this.constructor.Default[e]!==o&&(t[e]=o);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}};ut(De);var su="popover",au=".popover-header",lu=".popover-body",cu=ri(z({},De.Default),{content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"}),uu=ri(z({},De.DefaultType),{content:"(null|string|element|function)"}),$o=class i extends De{static get Default(){return cu}static get DefaultType(){return uu}static get NAME(){return su}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[au]:this._getTitle(),[lu]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}};ut($o);var du="scrollspy",pu="bs.scrollspy",Ro=`.${pu}`,fu=".data-api",mu=`activate${Ro}`,hr=`click${Ro}`,hu=`load${Ro}${fu}`,gu="dropdown-item",Se="active",_u='[data-bs-spy="scroll"]',Ao="[href]",vu=".nav, .list-group",gr=".nav-link",Eu=".nav-item",bu=".list-group-item",Cu=`${gr}, ${Eu} > ${gr}, ${bu}`,yu=".dropdown",Au=".dropdown-toggle",Tu={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Su={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"},Wi=class i extends ot{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Tu}static get DefaultType(){return Su}static get NAME(){return du}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=It(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(e=>Number.parseFloat(e))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(l.off(this._config.target,hr),l.on(this._config.target,hr,Ao,t=>{let e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();let o=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(o.scrollTo){o.scrollTo({top:n,behavior:"smooth"});return}o.scrollTop=n}}))}_getNewObserver(){let t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),t)}_observerCallback(t){let e=s=>this._targetLinks.get(`#${s.target.id}`),o=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(e(s))},n=(this._rootElement||document.documentElement).scrollTop,r=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(let s of t){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(s));continue}let a=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&a){if(o(s),!n)return;continue}!r&&!a&&o(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let t=p.find(Ao,this._config.target);for(let e of t){if(!e.hash||Pt(e))continue;let o=p.findOne(decodeURI(e.hash),this._element);Me(o)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,o))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Se),this._activateParents(t),l.trigger(this._element,mu,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(gu)){p.findOne(Au,t.closest(yu)).classList.add(Se);return}for(let e of p.parents(t,vu))for(let o of p.prev(e,Cu))o.classList.add(Se)}_clearActiveClass(t){t.classList.remove(Se);let e=p.find(`${Ao}.${Se}`,t);for(let o of e)o.classList.remove(Se)}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method n
3amed "${t}"`);e[t]()}})}};l.on(window,hu,()=>{for(let i of p.find(_u))Wi.getOrCreateInstance(i)});ut(Wi);var wu="tab",Ou="bs.tab",le=`.${Ou}`,xu=`hide${le}`,Nu=`hidden${le}`,Du=`show${le}`,Mu=`shown${le}`,$u=`click${le}`,Lu=`keydown${le}`,Iu=`load${le}`,Pu="ArrowLeft",_r="ArrowRight",Ru="ArrowUp",vr="ArrowDown",To="Home",Er="End",re="active",br="fade",So="show",ku="dropdown",Gr=".dropdown-toggle",Vu=".dropdown-menu",wo=`:not(${Gr})`,Fu='.list-group, .nav, [role="tablist"]',Hu=".nav-item, .list-group-item",Wu=`.nav-link${wo}, .list-group-item${wo}, [role="tab"]${wo}`,qr='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Oo=`${Wu}, ${qr}`,Bu=`.${re}[data-bs-toggle="tab"], .${re}[data-bs-toggle="pill"], .${re}[data-bs-toggle="list"]`,Qe=class i extends ot{constructor(t){super(t),this._parent=this._element.closest(Fu),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),l.on(this._element,Lu,e=>this._keydown(e)))}static get NAME(){return wu}show(){let t=this._element;if(this._elemIsActive(t))return;let e=this._getActiveElem(),o=e?l.trigger(e,xu,{relatedTarget:t}):null;l.trigger(t,Du,{relatedTarget:e}).defaultPrevented||o&&o.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(re),this._activate(p.getElementFromSelector(t));let o=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(So);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),l.trigger(t,Mu,{relatedTarget:e})};this._queueCallback(o,t,t.classList.contains(br))}_deactivate(t,e){if(!t)return;t.classList.remove(re),t.blur(),this._deactivate(p.getElementFromSelector(t));let o=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(So);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),l.trigger(t,Nu,{relatedTarget:e})};this._queueCallback(o,t,t.classList.contains(br))}_keydown(t){if(![Pu,_r,Ru,vr,To,Er].includes(t.key))return;t.stopPropagation(),t.preventDefault();let e=this._getChildren().filter(n=>!Pt(n)),o;if([To,Er].includes(t.key))o=e[t.key===To?0:e.length-1];else{let n=[_r,vr].includes(t.key);o=Lo(e,t.target,n,!0)}o&&(o.focus({preventScroll:!0}),i.getOrCreateInstance(o).show())}_getChildren(){return p.find(Oo,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(let o of e)this._setInitialAttributesOnChild(o)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);let e=this._elemIsActive(t),o=this._getOuterElement(t);t.setAttribute("aria-selected",e),o!==t&&this._setAttributeIfNotExists(o,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){let e=p.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){let o=this._getOuterElement(t);if(!o.classList.contains(ku))return;let n=(r,s)=>{let a=p.findOne(r,o);a&&a.classList.toggle(s,e)};n(Gr,re),n(Vu,So),o.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,o){t.hasAttribute(e)||t.setAttribute(e,o)}_elemIsActive(t){return t.classList.contains(re)}_getInnerElement(t){return t.matches(Oo)?t:p.findOne(Oo,t)}_getOuterElement(t){return t.closest(Hu)||t}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}};l.on(document,$u,qr,function(i){["A","AREA"].includes(this.tagName)&&i.preventDefault(),!Pt(this)&&Qe.getOrCreateInstance(this).show()});l.on(window,Iu,()=>{for(let i of p.find(Bu))Qe.getOrCreateInstance(i)});ut(Qe);var ju="toast",Ku="bs.toast",Ft=`.${Ku}`,Yu=`mouseover${Ft}`,Uu=`mouseout${Ft}`,Gu=`focusin${Ft}`,qu=`focusout${Ft}`,zu=`hide${Ft}`,Xu=`hidden${Ft}`,Qu=`show${Ft}`,Ju=`shown${Ft}`,Zu="fade",Cr="hide",Ni="show",Di="showing",td={animation:"boolean",autohide:"boolean",delay:"number"},ed={animation:!0,autohide:!0,delay:5e3},Bi=class i extends ot{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ed}static get DefaultType(){return td}static get NAME(){return ju}show(){if(l.trigger(this._element,Qu).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Zu);let e=()=>{this._element.classList.remove(Di),l.trigger(this._element,Ju),this._maybeScheduleHide()};this._element.classList.remove(Cr),Je(this._element),this._element.classList.add(Ni,Di),this._queueCallback(e,this._element,this._config.animation)}
3hide(){if(!this.isShown()||l.trigger(this._element,zu).defaultPrevented)return;let e=()=>{this._element.classList.add(Cr),this._element.classList.remove(Di,Ni),l.trigger(this._element,Xu)};this._element.classList.add(Di),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Ni),super.dispose()}isShown(){return this._element.classList.contains(Ni)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=e;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=e;break}}if(e){this._clearTimeout();return}let o=t.relatedTarget;this._element===o||this._element.contains(o)||this._maybeScheduleHide()}_setListeners(){l.on(this._element,Yu,t=>this._onInteraction(t,!0)),l.on(this._element,Uu,t=>this._onInteraction(t,!1)),l.on(this._element,Gu,t=>this._onInteraction(t,!0)),l.on(this._element,qu,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};ji(Bi);ut(Bi);var Ki=class i{constructor(){this.http=H(li)}getAvaliacaoSatisfacao(t){let e=J.config.serverUrlRemota+"/pre-cadastro/pesquisa-satisfacao/";return this.http.get(e+t)}gravaAvaliacaoSatisfacao(t){let e=J.config.serverUrlRemota+"/pre-cadastro/pesquisa-satisfacao";return this.http.post(e,t,{responseType:"text"})}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=ai({token:i,factory:i.\u0275fac,providedIn:"root"})}};function id(i,t){if(i&1&&(h(0,"small",22),w(1),f()),i&2){let e=y(2);b(),vt("J\xE1 que voc\xEA nos deu ",e.score," estrela(s), conte-nos como podemos melhorar.")}}function od(i,t){if(i&1){let e=pe();h(0,"div",5)(1,"h5",6)(2,"div",7),w(3,"\u{1F60A}"),f(),h(4,"h3",8),w(5,"Como foi sua experi\xEAncia de uso?"),f()()(),h(6,"div",9)(7,"div",10)(8,"input",11),qt("ngModelChange",function(n){W(e);let r=y();return Gt(r.score,n)||(r.score=n),B(n)}),nt("ngModelChange",function(n){W(e);let r=y();return B(r.onScoreChange(n))}),f(),Q(9,"label",12),h(10,"input",13),qt("ngModelChange",function(n){W(e);let r=y();return Gt(r.score,n)||(r.score=n),B(n)}),nt("ngModelChange",function(n){W(e);let r=y();return B(r.onScoreChange(n))}),f(),Q(11,"label",14),h(12,"input",15),qt("ngModelChange",function(n){W(e);let r=y();return Gt(r.score,n)||(r.score=n),B(n)}),nt("ngModelChange",function(n){W(e);let r=y();return B(r.onScoreChange(n))}),f(),Q(13,"label",16),h(14,"input",17),qt("ngModelChange",function(n){W(e);let r=y();return Gt(r.score,n)||(r.score=n),B(n)}),nt("ngModelChange",function(n){W(e);let r=y();return B(r.onScoreChange(n))}),f(),Q(15,"label",18),h(16,"input",19),qt("ngModelChange",function(n){W(e);let r=y();return Gt(r.score,n)||(r.score=n),B(n)}),nt("ngModelChange",function(n){W(e);let r=y();return B(r.onScoreChange(n))}),f(),Q(17,"label",20),f(),h(18,"div",21),ft(19,id,2,1,"small",22),h(20,"textarea",23),qt("ngModelChange",function(n){W(e);let r=y();return Gt(r.comentario,n)||(r.comentario=n),B(n)}),nt("ngModelChange",function(n){W(e);let r=y();return B(r.onComentarioChange(n))}),f()()(),h(21,"div",24)(22,"div",25),Q(23,"app-custom-button",26),f(),h(24,"div",25)(25,"app-custom-button",27),nt("btnClicked",function(){W(e);let n=y();
3return B(n.enviar())}),f()()()}if(i&2){let e=y();b(8),j("value",5),Ut("ngModel",e.score),b(2),j("value",4),Ut("ngModel",e.score),b(2),j("value",3),Ut("ngModel",e.score),b(2),j("value",2),Ut("ngModel",e.score),b(2),j("value",1),Ut("ngModel",e.score),b(3),mt(e.score<4?19:-1),b(),Dt(e.formularioValido==!1&&e.score<4?"form-control is-invalid":"form-control"),Ut("ngModel",e.comentario),b(5),j("disabled",!e.formularioValido)}}function nd(i,t){i&1&&(h(0,"div",3)(1,"div",25),Q(2,"i",28),f(),h(3,"div",25),w(4," Avalia\xE7\xE3o enviada com sucesso! Obrigado por sua contribui\xE7\xE3o. "),f(),h(5,"div",29),Q(6,"app-custom-button",30),f()())}function rd(i,t){i&1&&(h(0,"div",4)(1,"div",25),Q(2,"i",31),f(),h(3,"div",25),w(4," N\xE3o foi poss\xEDvel enviar sua avalia\xE7\xE3o. Tente novamente mais tarde. "),f(),h(5,"div",29),Q(6,"app-custom-button",30),f()())}var zr=class i{constructor(){this.StatusRequisicao=zi;this.statusRequisicaoAvaliacaoSatisfacao=0;this.dadosCompartilhadosService=H(ui);this.avaliacaoSatisfacaoService=H(Ki)}enviar(){this.validaFormulario(),this.criaModel(),this.formularioValido&&this.avaliacaoSatisfacaoModel?this.avaliacaoSatisfacaoService.gravaAvaliacaoSatisfacao(this.avaliacaoSatisfacaoModel).subscribe({error:t=>{this.statusRequisicaoAvaliacaoSatisfacao=2,console.error("Erro ao enviar avalia\xE7\xE3o de satisfa\xE7\xE3o:",t)},complete:()=>{this.statusRequisicaoAvaliacaoSatisfacao=1}}):console.error("Erro ao enviar avalia\xE7\xE3o de satisfa\xE7\xE3o: Formul\xE1rio inv\xE1lido.")}criaModel(){this.avaliacaoSatisfacaoModel={uuidPrecadastro:this.dadosCompartilhadosService.getProtocolo()?.uuid,score:this.score,comentario:this.comentario}}onScoreChange(t){this.score=t,this.validaFormulario()}onComentarioChange(t){this.comentario=t,this.validaFormulario()}validaFormulario(){if(!this.score){this.formularioValido=!1;return}if(this.score<=3&&!this.comentario?.trim()){this.formularioValido=!1;return}this.formularioValido=!0}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=_t({type:i,selectors:[["app-avaliacao-satisfacao"]],decls:6,vars:1,consts:[["id","avaliacaoSatisfacaoModal","tabindex","-1","aria-labelledby","avaliacaoModalLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog","modal
3-dialog-centered"],[1,"modal-content"],[1,"row","flex-column","my-3","text-success","text-center"],[1,"row","flex-column","my-3","text-danger","text-center"],[1,"modal-header","justify-content-center"],["id","avaliacaoModalLabel",1,"modal-title","text-center"],[1,"rating-emoji"],[1,"rating-title"],[1,"modal-body","container","text-center"],[1,"star-rating"],["type","radio","id","star5","name","rating",3,"ngModelChange","value","ngModel"],["for","star5",1,"bi","bi-star-fill"],["type","radio","id","star4","name","rating",3,"ngModelChange","value","ngModel"],["for","star4",1,"bi","bi-star-fill"],["type","radio","id","star3","name","rating",3,"ngModelChange","value","ngModel"],["for","star3",1,"bi","bi-star-fill"],["type","radio","id","star2","name","rating",3,"ngModelChange","value","ngModel"],["for","star2",1,"bi","bi-star-fill"],["type","radio","id","star1","name","rating",3,"ngModelChange","value","ngModel"],["for","star1",1,"bi","bi-star-fill"],[1,"rating-feedback"],[1,"text-danger"],["rows","3","placeholder","Conte-nos como foi sua experi\xEAncia de uso do Identidade F\xE1cil RS (opcional se voc\xEA deu 4 ou 5 estrelas)",3,"ngModelChange","ngModel"],[1,"row","justify-content-between","text-center","align-items-center","my-3"],[1,"col"],["label","Ignorar","cssClass","btn-light-custom","data-bs-dismiss","modal"],["label","Enviar","cssClass","btn-primary-custom",3,"btnClicked","disabled"],[1,"bi","bi-check-square","fs-1"],[1,"col","pt-3"],["label","Fechar","cssClass","btn-primary-custom","data-bs-dismiss","modal"],[1,"bi","bi-x-square","text-center","fs-1"]],template:function(e,o){e&1&&(h(0,"div",0)(1,"div",1)(2,"div",2),ft(3,od,26,15)(4,nd,7,0,"div",3)(5,rd,7,0,"div",4),f()()()),e&2&&(b(3),mt(o.statusRequisicaoAvaliacaoSatisfacao==o.StatusRequisicao.PENDENTE?3:o.statusRequisicaoAvaliacaoSatisfacao==o.StatusRequisicao.SUCESSO?4:o.statusRequisicaoAvaliacaoSatisfacao==o.StatusRequisicao.ERRO?5:-1))},dependencies:[bn,di,fn,he,pn,me],styles:[".rating-container[_ngcontent-%COMP%]{background:linear-gradient(145deg,#fff,#f0f0f0);border-radius:20px;padding:2rem;max-width:400px;margin:2rem auto}.star-rating[_ngcontent-%COMP%]{direction:rtl;display:inline-block;padding:20px}.star-rating[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.star-rating[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#bbb;cursor:pointer;font-size:30px;padding:5px;transition:all .3s ease}.star-rating[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:hover, .star-rating[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:hover ~ label[_ngcontent-%COMP%], .star-rating[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ label[_ngcontent-%COMP%]{color:#f7b731}.rating-title[_ngcontent-%COMP%]{color:#2d3436;font-weight:600;margin-bottom:1.5rem}.rating-feedback[_ngcontent-%COMP%]{margin-top:1.5rem;color:#636e72}.submit-rating[_ngcontent-%COMP%]{background:linear-gradient(145deg,#f7b731,#f0932b);border:none;padding:10px 25px;border-radius:25px;color:#fff;font-weight:600;margin-top:1rem;transition:all .3s ease}.submit-rating[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 5px 15px #f7b73166}.rating-emoji[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:1rem}"]})}};var Xr=class i{transform(t){if(!t)return"";if(t==="Indeterminada")return t;let[e]=t.split(" "),[o,n,r]=e.split("-");return`${o}/${n}/${r}`}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275pipe=de({name:"formataData",type:i,pure:!0})}};var sd=["dialogContainer"];function ad(i,t){if(i&1&&(h(0,"li",12),w(1),f()),i&2){let e=t.$implicit;b(),Yt(e.nome)}}function ld(i,t){i&1&&w(0," N\xE3o foi encontrada nenhuma cidade dispon\xEDvel. ")}var Qr=class i{constructor(){this.municipioDisponiveis=Go([]);this.etapaAgendamentoService=H(un)}ngOnInit(){return yt(this,null,function*(){yield this.carregaMunicipios()})}carregaMunicipios(){return yt(this,null,function*(){let t=yield this.etapaAgendamentoService.getMunicipios(this.viewContainerRef);t.data&&this.municipioDisponiveis.set(t.data)})}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=_t({type:i,selectors:[["app-lista-cidades-disponiveis"]],viewQuery:function(e,o){if(e&1&&rn(sd,5,zo),e&2){let n;
3sn(n=an())&&(o.viewContainerRef=n.first)}},decls:22,vars:1,consts:[[1,"row","justify-content-center","text-bg-light","box-shadow","rounded","p-3","mb-2"],[1,"col","text-center"],[1,"text-danger","pb-2"],["label","Consultar","cssClass","btn-primary-custom","icon","bi-box-arrow-up-right","data-bs-toggle","modal","data-bs-target","#cidadesDisponiveisModal"],["id","cidadesDisponiveisModal","tabindex","-1","aria-labelledby","cidadesDisponiveisModal","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog","modal-dialog-scrollable","align-content-center"],[1,"modal-content"],[1,"modal-header"],["id","exampleModalLabel",1,"modal-title","fs-5"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close"],[1,"modal-body","max-h-50"],[1,"list-group","justify-content-center"],[1,"list-group-item"],[1,"modal-footer"],["label","Ok","cssClass","btn-primary-custom mb-2 me-2","data-bs-dismiss","modal"]],template:function(e,o){e&1&&(h(0,"div",0)(1,"div",1)(2,"span",2)(3,"strong"),w(4," Aten\xE7\xE3o: "),f(),w(5,"Antes de prosseguir, verifique as cidades dispon\xEDveis para solicitar o servi\xE7o: "),f(),w(6," \xA0 "),Q(7,"app-custom-button",3),f()(),h(8,"div",4)(9,"div",5)(10,"div",6)(11,"div",7)(12,"h1",8),w(13," Cidades dispon\xEDveis "),f(),Q(14,"button",9),f(),h(15,"div",10)(16,"ul",11),Pe(17,ad,2,1,"li",12,Jo,!1,ld,1,0),f()(),h(20,"div",13),Q(21,"app-custom-button",14),f()()()()),e&2&&(b(17),Re(o.municipioDisponiveis()))},dependencies:[me],encapsulation:2})}};var Jr=class i{constructor(){this.tamanhoCPF=11}transform(t){return t&&(t.length>this.tamanhoCPF?t:(t=t.replace(/[^\d]/g,""),t.padStart(this.tamanhoCPF,"0").replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4")))}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275pipe=de({name:"formataCPF",type:i,pure:!0})}};var Zr=class i{transform(t){if(!t||t.length!==11)return t;let e=t.substring(0,2),o=t.substring(2,7),n=t.substring(7);return`(${e}) ${o}-${n}`}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275pipe=de({name:"formataTelefone",type:i,pure:!0})}};export{An as a,Tn as b,bt as c,Sn as d,wn as e,xn as f,gi as g,bi as h,yi as i,Ai as j,Gn as k,zi as l,Ne as m,Ki as n,zr as o,Xr as p,Qr as q,Jr as r,Zr as s};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.